diff --git a/package.json b/package.json index 7bbff1cf..960b2851 100755 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "leaflet.markercluster": "^1.5.3", "localforage": "^1.10.0", "lodash": "^4.17.21", + "mongoose-paginate-v2": "^1.9.1", "normalize.css": "^8.0.1", "nprogress": "^0.2.0", "pinia": "^3.0.3", diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/noimg.png b/scripts/_ALL_SITES/piuchebuono.app/public/noimg.png new file mode 100644 index 00000000..dc14c4b5 Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/noimg.png differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/Alimentazione_Sana_STAMPA_02.jpg b/scripts/_ALL_SITES/piuchebuono.app/public/upload/Alimentazione_Sana_STAMPA_02.jpg new file mode 100644 index 00000000..9cf89ae1 Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/Alimentazione_Sana_STAMPA_02.jpg differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/catalogs/68492ff070f4f6b5ac58f298/educazione_e_formazione.png b/scripts/_ALL_SITES/piuchebuono.app/public/upload/catalogs/68492ff070f4f6b5ac58f298/educazione_e_formazione.png new file mode 100644 index 00000000..45710338 Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/catalogs/68492ff070f4f6b5ac58f298/educazione_e_formazione.png differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/catalogs/introduttiva_default.png b/scripts/_ALL_SITES/piuchebuono.app/public/upload/catalogs/introduttiva_default.png new file mode 100644 index 00000000..f1700cd1 Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/catalogs/introduttiva_default.png differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/catalogs/sfondo_default.png b/scripts/_ALL_SITES/piuchebuono.app/public/upload/catalogs/sfondo_default.png new file mode 100644 index 00000000..6f2c57ca Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/catalogs/sfondo_default.png differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/profile/surya1977/mybachecas/antony.jpg b/scripts/_ALL_SITES/piuchebuono.app/public/upload/profile/surya1977/mybachecas/antony.jpg new file mode 100644 index 00000000..adcb3d95 Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/profile/surya1977/mybachecas/antony.jpg differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/profile/surya1977/mygoods/1_module.jpg b/scripts/_ALL_SITES/piuchebuono.app/public/upload/profile/surya1977/mygoods/1_module.jpg new file mode 100644 index 00000000..73aad9f2 Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/profile/surya1977/mygoods/1_module.jpg differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/profile/surya1977/mygoods/Screenshot 2025-03-02 alle 15.29.33.png b/scripts/_ALL_SITES/piuchebuono.app/public/upload/profile/surya1977/mygoods/Screenshot 2025-03-02 alle 15.29.33.png new file mode 100644 index 00000000..adeb797e Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/profile/surya1977/mygoods/Screenshot 2025-03-02 alle 15.29.33.png differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/profile/surya1977/myskills/tea.jpg b/scripts/_ALL_SITES/piuchebuono.app/public/upload/profile/surya1977/myskills/tea.jpg new file mode 100644 index 00000000..58089dac Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/profile/surya1977/myskills/tea.jpg differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacataloghis/6826288e9d83740a238e3024/Sconto_Libri.pdf b/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacataloghis/6826288e9d83740a238e3024/Sconto_Libri.pdf new file mode 100644 index 00000000..cdce30ad Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacataloghis/6826288e9d83740a238e3024/Sconto_Libri.pdf differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacataloghis/6876665aba6e67e652829082/Catalogo GruppoMacro.pdf b/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacataloghis/6876665aba6e67e652829082/Catalogo GruppoMacro.pdf new file mode 100644 index 00000000..8a53578d Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacataloghis/6876665aba6e67e652829082/Catalogo GruppoMacro.pdf differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacataloghis/6876665aba6e67e652829082/Catalogo_GruppoMacro.pdf b/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacataloghis/6876665aba6e67e652829082/Catalogo_GruppoMacro.pdf new file mode 100644 index 00000000..8a53578d Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacataloghis/6876665aba6e67e652829082/Catalogo_GruppoMacro.pdf differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacataloghis/6876763c3bf731021e85b591/Catalogo_GruppoMacro.pdf b/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacataloghis/6876763c3bf731021e85b591/Catalogo_GruppoMacro.pdf new file mode 100644 index 00000000..8a53578d Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacataloghis/6876763c3bf731021e85b591/Catalogo_GruppoMacro.pdf differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacatalogs/6826288e9d83740a238e3024/Educazione e Formazione_WEB_02.png b/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacatalogs/6826288e9d83740a238e3024/Educazione e Formazione_WEB_02.png new file mode 100644 index 00000000..c6d5fe2f Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacatalogs/6826288e9d83740a238e3024/Educazione e Formazione_WEB_02.png differ diff --git a/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacatalogs/6826288e9d83740a238e3024/educazione_e_formazione.png b/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacatalogs/6826288e9d83740a238e3024/educazione_e_formazione.png new file mode 100644 index 00000000..45710338 Binary files /dev/null and b/scripts/_ALL_SITES/piuchebuono.app/public/upload/raccoltacatalogs/6826288e9d83740a238e3024/educazione_e_formazione.png differ diff --git a/scripts/_ALL_SITES/riso.app/package.json b/scripts/_ALL_SITES/riso.app/package.json index c54bf092..960b2851 100755 --- a/scripts/_ALL_SITES/riso.app/package.json +++ b/scripts/_ALL_SITES/riso.app/package.json @@ -1,8 +1,8 @@ { "name": "riso", "version": "1.2.67", - "description": "Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.", - "productName": "Riso", + "productName": "Riso 💚 - Rete Italiana Scambi Orizzontali", + "description": "Progetto RISO (Rete Italiana Scambi Orizzontali) promuove una rete di comunità locali che favoriscono scambi di beni, servizi e ospitalità. Con l'App RISO, sviluppata per facilitare il baratto, il dono e l'uso di monete alternative come i RIS, il progetto crea legami autentici basati sulla fiducia e sostenibilità. Partecipa agli scambi e costruisci una comunità più consapevole e autosufficiente.", "author": "Surya", "private": true, "keywords": [], @@ -61,6 +61,7 @@ "leaflet.markercluster": "^1.5.3", "localforage": "^1.10.0", "lodash": "^4.17.21", + "mongoose-paginate-v2": "^1.9.1", "normalize.css": "^8.0.1", "nprogress": "^0.2.0", "pinia": "^3.0.3", diff --git a/scripts/_ALL_SITES/riso.app/public/noimg.png b/scripts/_ALL_SITES/riso.app/public/noimg.png new file mode 100644 index 00000000..dc14c4b5 Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/noimg.png differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/Alimentazione_Sana_STAMPA_02.jpg b/scripts/_ALL_SITES/riso.app/public/upload/Alimentazione_Sana_STAMPA_02.jpg new file mode 100644 index 00000000..9cf89ae1 Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/Alimentazione_Sana_STAMPA_02.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/catalogs/68492ff070f4f6b5ac58f298/educazione_e_formazione.png b/scripts/_ALL_SITES/riso.app/public/upload/catalogs/68492ff070f4f6b5ac58f298/educazione_e_formazione.png new file mode 100644 index 00000000..45710338 Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/catalogs/68492ff070f4f6b5ac58f298/educazione_e_formazione.png differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/catalogs/introduttiva_default.png b/scripts/_ALL_SITES/riso.app/public/upload/catalogs/introduttiva_default.png new file mode 100644 index 00000000..f1700cd1 Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/catalogs/introduttiva_default.png differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/catalogs/sfondo_default.png b/scripts/_ALL_SITES/riso.app/public/upload/catalogs/sfondo_default.png new file mode 100644 index 00000000..6f2c57ca Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/catalogs/sfondo_default.png differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/63d519189de57e8242cebff00_movimento_sacro.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/63d519189de57e8242cebff00_movimento_sacro.jpg new file mode 100644 index 00000000..865c607a Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/63d519189de57e8242cebff00_movimento_sacro.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/63d519189de57e8242cebff01_movimento_sacro.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/63d519189de57e8242cebff01_movimento_sacro.jpg new file mode 100644 index 00000000..865c607a Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/63d519189de57e8242cebff01_movimento_sacro.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/94d88a380c6d98f01dbbde402 b/scripts/_ALL_SITES/riso.app/public/upload/products/94d88a380c6d98f01dbbde402 new file mode 100644 index 00000000..865c607a Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/94d88a380c6d98f01dbbde402 differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa00_lab_quadri.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa00_lab_quadri.jpg new file mode 100644 index 00000000..f08e370b Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa00_lab_quadri.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa01_movimento_sacro.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa01_movimento_sacro.jpg new file mode 100644 index 00000000..865c607a Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa01_movimento_sacro.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa02_movimento_sacro.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa02_movimento_sacro.jpg new file mode 100644 index 00000000..865c607a Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa02_movimento_sacro.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa03_movimento_sacro.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa03_movimento_sacro.jpg new file mode 100644 index 00000000..865c607a Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa03_movimento_sacro.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa04_lab_quadri.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa04_lab_quadri.jpg new file mode 100644 index 00000000..f08e370b Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa04_lab_quadri.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa05_movimento_sacro.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa05_movimento_sacro.jpg new file mode 100644 index 00000000..865c607a Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/a239a0f0d61fd5c3acd43aa05_movimento_sacro.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca700_lab_quadri.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca700_lab_quadri.jpg new file mode 100644 index 00000000..f08e370b Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca700_lab_quadri.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca701_lab_quadri.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca701_lab_quadri.jpg new file mode 100644 index 00000000..f08e370b Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca701_lab_quadri.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca702_movimento_sacro.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca702_movimento_sacro.jpg new file mode 100644 index 00000000..865c607a Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca702_movimento_sacro.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca703_movimento_sacro.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca703_movimento_sacro.jpg new file mode 100644 index 00000000..865c607a Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca703_movimento_sacro.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca704_movimento_sacro.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca704_movimento_sacro.jpg new file mode 100644 index 00000000..865c607a Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca704_movimento_sacro.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca705_movimento_sacro.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca705_movimento_sacro.jpg new file mode 100644 index 00000000..865c607a Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca705_movimento_sacro.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca706_lab_quadri.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca706_lab_quadri.jpg new file mode 100644 index 00000000..f08e370b Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca706_lab_quadri.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca707_lab_quadri.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca707_lab_quadri.jpg new file mode 100644 index 00000000..f08e370b Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca707_lab_quadri.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca708_movimento_sacro.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca708_movimento_sacro.jpg new file mode 100644 index 00000000..865c607a Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca708_movimento_sacro.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca709_lab_quadri.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca709_lab_quadri.jpg new file mode 100644 index 00000000..f08e370b Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/f58eaa55f86a8495e922ca709_lab_quadri.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/products/lab_quadri.jpg b/scripts/_ALL_SITES/riso.app/public/upload/products/lab_quadri.jpg new file mode 100644 index 00000000..f08e370b Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/products/lab_quadri.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/profile/surya1977/mybachecas/antony.jpg b/scripts/_ALL_SITES/riso.app/public/upload/profile/surya1977/mybachecas/antony.jpg new file mode 100644 index 00000000..adcb3d95 Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/profile/surya1977/mybachecas/antony.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/profile/surya1977/mygoods/1_module.jpg b/scripts/_ALL_SITES/riso.app/public/upload/profile/surya1977/mygoods/1_module.jpg new file mode 100644 index 00000000..73aad9f2 Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/profile/surya1977/mygoods/1_module.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/profile/surya1977/mygoods/Screenshot 2025-03-02 alle 15.29.33.png b/scripts/_ALL_SITES/riso.app/public/upload/profile/surya1977/mygoods/Screenshot 2025-03-02 alle 15.29.33.png new file mode 100644 index 00000000..adeb797e Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/profile/surya1977/mygoods/Screenshot 2025-03-02 alle 15.29.33.png differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/profile/surya1977/myskills/tea.jpg b/scripts/_ALL_SITES/riso.app/public/upload/profile/surya1977/myskills/tea.jpg new file mode 100644 index 00000000..58089dac Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/profile/surya1977/myskills/tea.jpg differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/raccoltacataloghis/6826288e9d83740a238e3024/Sconto_Libri.pdf b/scripts/_ALL_SITES/riso.app/public/upload/raccoltacataloghis/6826288e9d83740a238e3024/Sconto_Libri.pdf new file mode 100644 index 00000000..cdce30ad Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/raccoltacataloghis/6826288e9d83740a238e3024/Sconto_Libri.pdf differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/raccoltacataloghis/6876665aba6e67e652829082/Catalogo GruppoMacro.pdf b/scripts/_ALL_SITES/riso.app/public/upload/raccoltacataloghis/6876665aba6e67e652829082/Catalogo GruppoMacro.pdf new file mode 100644 index 00000000..8a53578d Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/raccoltacataloghis/6876665aba6e67e652829082/Catalogo GruppoMacro.pdf differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/raccoltacataloghis/6876665aba6e67e652829082/Catalogo_GruppoMacro.pdf b/scripts/_ALL_SITES/riso.app/public/upload/raccoltacataloghis/6876665aba6e67e652829082/Catalogo_GruppoMacro.pdf new file mode 100644 index 00000000..8a53578d Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/raccoltacataloghis/6876665aba6e67e652829082/Catalogo_GruppoMacro.pdf differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/raccoltacataloghis/6876763c3bf731021e85b591/Catalogo_GruppoMacro.pdf b/scripts/_ALL_SITES/riso.app/public/upload/raccoltacataloghis/6876763c3bf731021e85b591/Catalogo_GruppoMacro.pdf new file mode 100644 index 00000000..8a53578d Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/raccoltacataloghis/6876763c3bf731021e85b591/Catalogo_GruppoMacro.pdf differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/raccoltacatalogs/6826288e9d83740a238e3024/Educazione e Formazione_WEB_02.png b/scripts/_ALL_SITES/riso.app/public/upload/raccoltacatalogs/6826288e9d83740a238e3024/Educazione e Formazione_WEB_02.png new file mode 100644 index 00000000..c6d5fe2f Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/raccoltacatalogs/6826288e9d83740a238e3024/Educazione e Formazione_WEB_02.png differ diff --git a/scripts/_ALL_SITES/riso.app/public/upload/raccoltacatalogs/6826288e9d83740a238e3024/educazione_e_formazione.png b/scripts/_ALL_SITES/riso.app/public/upload/raccoltacatalogs/6826288e9d83740a238e3024/educazione_e_formazione.png new file mode 100644 index 00000000..45710338 Binary files /dev/null and b/scripts/_ALL_SITES/riso.app/public/upload/raccoltacatalogs/6826288e9d83740a238e3024/educazione_e_formazione.png differ diff --git a/scripts/_ALL_SITES/riso.app/src/db/lang/ws_it.js b/scripts/_ALL_SITES/riso.app/src/db/lang/ws_it.js index 67a41dd0..fbf80a6d 100755 --- a/scripts/_ALL_SITES/riso.app/src/db/lang/ws_it.js +++ b/scripts/_ALL_SITES/riso.app/src/db/lang/ws_it.js @@ -1,6 +1,6 @@ const msg_website_it = { ws: { - sitename: 'Riso', + sitename: 'RISO', siteshortname: 'RISO', description: 'Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.', keywords: 'riso, piattaforma di scambio, rete italiana scambio orizzontale, riso app, riso piattaforma, scambio e baratto, momenta RIS', diff --git a/scripts/now.txt b/scripts/now.txt index a1eb1e45..3b39ebd8 100644 --- a/scripts/now.txt +++ b/scripts/now.txt @@ -1 +1 @@ -TERMINA DI LAVORARE SU gruppomacro.app: (Sovrascrivo!) +TERMINA DI LAVORARE SU piuchebuono.app: (Sovrascrivo!) diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index a17a9ae5..400d728b 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -451,7 +451,7 @@ export const shared_consts = { TABLES_DIRECTORY_A_PARTE: ['mygroups'], TABLES_WITH_ADMINS: ['mygroups', 'circuits'], TABLES_DIRECTORY_SINGLE_IMG: ['circuits', 'catalogs', 'raccoltacataloghis'], - TABLES_IMAGEFILE_SINGOLO: ['productInfos', 'products'], + TABLES_IMAGEFILE_SINGOLO: ['products'], TABLES_PER_EDITORI: ['catalogs', 'raccoltacataloghis'], diff --git a/src/components/CCatalogoCard/CCatalogoCard.vue b/src/components/CCatalogoCard/CCatalogoCard.vue index 147652f7..c924d22d 100755 --- a/src/components/CCatalogoCard/CCatalogoCard.vue +++ b/src/components/CCatalogoCard/CCatalogoCard.vue @@ -97,7 +97,7 @@ :src=" myproduct.productInfo.imagefile ? tools.getFullFileNameByImageFile( - 'productInfos', + 'products', myproduct.productInfo.imagefile ) : myproduct.productInfo.image_link @@ -901,8 +901,8 @@ = 0 && key) { productStore.products[idprod][key as keyof IProduct] = value } - } else if (table === 'productinfos') { + /*} else if (table === 'productinfos') { const productStore = useProducts() const idprod = productStore.products.findIndex((rec: IProduct) => rec.productInfo._id === id) if (idprod >= 0 && key) { const myfield = key as keyof IProductInfo productStore.products[idprod].productInfo[myfield] = value - } + }*/ } else if (table === 'arrvariazioni') { const productStore = useProducts() const idprod = productStore.products.findIndex((rec: IProduct) => rec._id === id) diff --git a/src/model/Products.ts b/src/model/Products.ts index 284f1940..eee94d5f 100755 --- a/src/model/Products.ts +++ b/src/model/Products.ts @@ -123,7 +123,7 @@ export interface IProduct { _id?: any active?: boolean isbn?: string - idProductInfo?: string, + // idProductInfo?: string, productInfo: IProductInfo, idProducer?: string, idProvider?: string, @@ -208,7 +208,7 @@ export interface IProductsState { collane?: ICollana[] catprods_gas: ICatProd[] subcatprods: ISubCatProd[] - productInfos: IProductInfo[] + // productInfos: IProductInfo[] userActive: IUserShort isPubblicatoById?: (idStatoProdotto: number) => boolean; diff --git a/src/rootgen/admin/gestoreordini_old/gestoreordini.ts b/src/rootgen/admin/gestoreordini_old/gestoreordini.ts index 2609427d..b24758ca 100755 --- a/src/rootgen/admin/gestoreordini_old/gestoreordini.ts +++ b/src/rootgen/admin/gestoreordini_old/gestoreordini.ts @@ -48,14 +48,14 @@ export default defineComponent({ preserveNullAndEmptyArrays: true, }, }, - { + /*{ $lookup: { from: 'productinfos', localField: 'product.idProductInfo', foreignField: '_id', as: 'productInfo', }, - }, + },*/ { $unwind: { path: '$productInfo', @@ -109,10 +109,10 @@ export default defineComponent({ $group: { _id: '$product._id', name: { - $first: '$productInfo.name', + $first: '$product.productInfo.name', }, weight: { - $first: '$productInfo.weight', + $first: '$product.productInfo.weight', }, price_acquistato: { $first: '$product.price_acquistato', diff --git a/src/router/routesECommerce.ts b/src/router/routesECommerce.ts index 7f480507..8c767d25 100644 --- a/src/router/routesECommerce.ts +++ b/src/router/routesECommerce.ts @@ -291,7 +291,7 @@ function getRoutesEcomm(site: ISites) { path: '/product/:idprod/:cosa', materialIcon: 'event', name: 'otherpages.product', - component: () => import('@src/views/ecommerce/productInfo/productInfo.vue'), + component: () => import('app/src/views/ecommerce/productView/productView.vue'), inmenu: false, infooter: false }, diff --git a/src/store/Modules/fieldsTable.ts b/src/store/Modules/fieldsTable.ts index 2c7bd4dc..7a69ff7e 100755 --- a/src/store/Modules/fieldsTable.ts +++ b/src/store/Modules/fieldsTable.ts @@ -1,12 +1,12 @@ -import type { IColGridTable } from '@model' -import { useUserStore } from '@store/UserStore' -import { lists } from './lists' -import { costanti } from './costanti' -import { useGlobalStore } from '@store/globalStore' -import { shared_consts } from '@src/common/shared_vuejs' +import type { IColGridTable } from '@model'; +import { useUserStore } from '@store/UserStore'; +import { lists } from './lists'; +import { costanti } from './costanti'; +import { useGlobalStore } from '@store/globalStore'; +import { shared_consts } from '@src/common/shared_vuejs'; function getTabSector() { - return 'sectors' + return 'sectors'; } const DeleteRec = { @@ -20,7 +20,7 @@ const DeleteRec = { askaction: 'db.deletetherecord', // required: true, visuonlyEditVal: true, -} +}; const ModifRec = { name: 'modifrec', @@ -33,7 +33,7 @@ const ModifRec = { askaction: '', // required: true, visuonlyEditVal: true, -} +}; const DuplicateRec = { name: 'copyrec', @@ -46,93 +46,129 @@ const DuplicateRec = { askaction: 'db.duplicatedrecordquestion', visuonlyEditVal: true, visible: true, -} +}; function AddCol(params: IColGridTable) { return { name: params.name, - required: (params.required === undefined) ? false : params.required, - label: (params.label === undefined) ? '' : params.label, - label_trans: (params.label_trans === undefined) ? '' : params.label_trans, - visibleif: (params.visibleif === undefined) ? 0 : params.visibleif, - visib_field: (params.visib_field === undefined) ? '' : params.visib_field, - visib_value: (params.visib_value === undefined) ? '' : params.visib_value, - visulabel: (params.visulabel === undefined) ? true : params.visulabel, - align: (params.align === undefined) ? 'left' : params.align, - field: (params.field === undefined) ? params.name : params.field, - subfield: (params.subfield === undefined) ? '' : params.subfield, - sortable: (params.sortable === undefined) ? true : params.sortable, - disable: (params.disable === undefined) ? false : params.disable, - titlepopupedit: (params.titlepopupedit === undefined) ? '' : params.titlepopupedit, - field_extra1: (params.field_extra1 === undefined) ? '' : params.field_extra1, - field_toduplicate_nospace: (params.field_toduplicate_nospace === undefined) ? '' : params.field_toduplicate_nospace, - showLinkResult: (params.showLinkResult === undefined) ? '' : params.showLinkResult, - subfield_extra1: (params.subfield_extra1 === undefined) ? '' : params.subfield_extra1, - allowNewValue: (params.allowNewValue === undefined) ? false : params.allowNewValue, - showpicprofile_ifnotset: (params.showpicprofile_ifnotset === undefined) ? false : params.showpicprofile_ifnotset, - extrafield: (params.extrafield === undefined) ? '' : params.extrafield, - tipoconto: (params.tipoconto === undefined) ? shared_consts.AccountType.USER : params.tipoconto, - visible: (params.visible === undefined) ? true : params.visible, - icon: (params.icon === undefined) ? '' : params.icon, - action: (params.action === undefined) ? '' : params.action, - foredit: (params.foredit === undefined) ? true : params.foredit, - isInModif: (params.isInModif === undefined) ? false : params.isInModif, - fieldtype: (params.fieldtype === undefined) ? costanti.FieldType.string : params.fieldtype, - fieldtype_real: (params.fieldtype_real === undefined) ? ((params.fieldtype === undefined) ? costanti.FieldType.string : params.fieldtype) : params.fieldtype_real, - field_outtype: (params.field_outtype === undefined) ? costanti.FieldType.string : params.field_outtype, - tipovisu: (params.tipovisu === undefined) ? costanti.TipoVisu.NONE : params.tipovisu, - link: (params.link === undefined) ? '' : params.link, - typeobj: (params.typeobj === undefined) ? '' : params.typeobj, - inline: (params.inline === undefined) ? '' : params.inline, - askaction: (params.askaction === undefined) ? '' : params.askaction, - tablesel: (params.tablesel === undefined) ? '' : params.tablesel, - jointable: (params.jointable === undefined) ? '' : params.jointable, - addall: (params.addall === undefined) ? false : params.addall, - addnone: (params.addnone === undefined) ? false : params.addnone, - filter: (params.filter === undefined) ? null : params.filter, - allowchar: (params.allowchar === undefined) ? null : params.allowchar, - showWhen: (params.showWhen === undefined) ? costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView : params.showWhen, - noshowlabel: (params.noshowlabel === undefined) ? false : params.noshowlabel, - numpag_carousel: (params.numpag_carousel === undefined) ? 0 : params.numpag_carousel, - notsave: (params.notsave === undefined) ? false : params.notsave, - filter_table: (params.filter_table === undefined) ? '' : params.filter_table, - remote_table: (params.remote_table === undefined) ? '' : params.remote_table, - remote_key: (params.remote_key === undefined) ? '' : params.remote_key, - remote_field: (params.remote_field === undefined) ? '' : params.remote_field, - showonlyif_dipersona: (params.showonlyif_dipersona === undefined) ? false : params.showonlyif_dipersona, - maxlength: (params.maxlength === undefined) ? 0 : params.maxlength, - minlength: (params.minlength === undefined) ? 0 : params.minlength, - filter_field: (params.filter_field === undefined) ? '' : params.filter_field, - isadvanced_field: (params.isadvanced_field === undefined) ? false : params.isadvanced_field, - path: (params.path === undefined) ? '' : params.path, - onlyforAdmin: (params.onlyforAdmin === undefined) ? false : params.onlyforAdmin, - dont_clone: (params.dont_clone === undefined) ? false : params.dont_clone, - } + required: params.required === undefined ? false : params.required, + label: params.label === undefined ? '' : params.label, + label_trans: params.label_trans === undefined ? '' : params.label_trans, + visibleif: params.visibleif === undefined ? 0 : params.visibleif, + visib_field: params.visib_field === undefined ? '' : params.visib_field, + visib_value: params.visib_value === undefined ? '' : params.visib_value, + visulabel: params.visulabel === undefined ? true : params.visulabel, + align: params.align === undefined ? 'left' : params.align, + field: params.field === undefined ? params.name : params.field, + subfield: params.subfield === undefined ? '' : params.subfield, + sortable: params.sortable === undefined ? true : params.sortable, + disable: params.disable === undefined ? false : params.disable, + titlepopupedit: params.titlepopupedit === undefined ? '' : params.titlepopupedit, + field_extra1: params.field_extra1 === undefined ? '' : params.field_extra1, + field_toduplicate_nospace: + params.field_toduplicate_nospace === undefined + ? '' + : params.field_toduplicate_nospace, + showLinkResult: params.showLinkResult === undefined ? '' : params.showLinkResult, + subfield_extra1: params.subfield_extra1 === undefined ? '' : params.subfield_extra1, + allowNewValue: params.allowNewValue === undefined ? false : params.allowNewValue, + showpicprofile_ifnotset: + params.showpicprofile_ifnotset === undefined + ? false + : params.showpicprofile_ifnotset, + extrafield: params.extrafield === undefined ? '' : params.extrafield, + tipoconto: + params.tipoconto === undefined ? shared_consts.AccountType.USER : params.tipoconto, + visible: params.visible === undefined ? true : params.visible, + icon: params.icon === undefined ? '' : params.icon, + action: params.action === undefined ? '' : params.action, + foredit: params.foredit === undefined ? true : params.foredit, + isInModif: params.isInModif === undefined ? false : params.isInModif, + fieldtype: + params.fieldtype === undefined ? costanti.FieldType.string : params.fieldtype, + fieldtype_real: + params.fieldtype_real === undefined + ? params.fieldtype === undefined + ? costanti.FieldType.string + : params.fieldtype + : params.fieldtype_real, + field_outtype: + params.field_outtype === undefined + ? costanti.FieldType.string + : params.field_outtype, + tipovisu: params.tipovisu === undefined ? costanti.TipoVisu.NONE : params.tipovisu, + link: params.link === undefined ? '' : params.link, + typeobj: params.typeobj === undefined ? '' : params.typeobj, + inline: params.inline === undefined ? '' : params.inline, + askaction: params.askaction === undefined ? '' : params.askaction, + tablesel: params.tablesel === undefined ? '' : params.tablesel, + jointable: params.jointable === undefined ? '' : params.jointable, + addall: params.addall === undefined ? false : params.addall, + addnone: params.addnone === undefined ? false : params.addnone, + filter: params.filter === undefined ? null : params.filter, + allowchar: params.allowchar === undefined ? null : params.allowchar, + showWhen: + params.showWhen === undefined + ? costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView + : params.showWhen, + noshowlabel: params.noshowlabel === undefined ? false : params.noshowlabel, + numpag_carousel: params.numpag_carousel === undefined ? 0 : params.numpag_carousel, + notsave: params.notsave === undefined ? false : params.notsave, + filter_table: params.filter_table === undefined ? '' : params.filter_table, + remote_table: params.remote_table === undefined ? '' : params.remote_table, + remote_key: params.remote_key === undefined ? '' : params.remote_key, + remote_field: params.remote_field === undefined ? '' : params.remote_field, + showonlyif_dipersona: + params.showonlyif_dipersona === undefined ? false : params.showonlyif_dipersona, + maxlength: params.maxlength === undefined ? 0 : params.maxlength, + minlength: params.minlength === undefined ? 0 : params.minlength, + filter_field: params.filter_field === undefined ? '' : params.filter_field, + isadvanced_field: + params.isadvanced_field === undefined ? false : params.isadvanced_field, + path: params.path === undefined ? '' : params.path, + onlyforAdmin: params.onlyforAdmin === undefined ? false : params.onlyforAdmin, + dont_clone: params.dont_clone === undefined ? false : params.dont_clone, + }; } -export const colTablePublisher = [ - AddCol({ name: 'name', label_trans: 'reg.name' }), -] +export const colTablePublisher = [AddCol({ name: 'name', label_trans: 'reg.name' })]; export const colmailinglist = [ AddCol({ name: 'name', label_trans: 'reg.name' }), AddCol({ name: 'surname', label_trans: 'reg.surname' }), AddCol({ name: 'email', label_trans: 'reg.email' }), - AddCol({ name: 'news_on', label_trans: 'newsletter.news_on', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'diario_on', label_trans: 'newsletter.diario_on', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'email_errata', label_trans: 'newsletter.email_errata', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'lastid_newstosent', label_trans: 'reg.lastid_newstosent', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'news_on', + label_trans: 'newsletter.news_on', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'diario_on', + label_trans: 'newsletter.diario_on', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'email_errata', + label_trans: 'newsletter.email_errata', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'lastid_newstosent', + label_trans: 'reg.lastid_newstosent', + fieldtype: costanti.FieldType.string, + }), AddCol(DeleteRec), -] +]; export const colTableRaccoltaCataloghi = [ - AddCol({ name: 'title', label_trans: 'racccat.title', required: true, }), + AddCol({ name: 'title', label_trans: 'racccat.title', required: true }), AddCol({ name: 'foto_raccolta', label_trans: 'racccat.foto_raccolta', fieldtype: costanti.FieldType.imagerec, jointable: '', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, isadvanced_field: false, }), AddCol({ @@ -172,23 +208,27 @@ export const colTableRaccoltaCataloghi = [ label_trans: 'cataloglist.pdf_online_stampa', }),*/ - AddCol(ModifRec), AddCol(DuplicateRec), AddCol(DeleteRec), -] +]; // exclude field with dont_clone: true in the fieldstable colTableCatalogList export const colTableCatalogList = [ - AddCol({ name: 'active', label_trans: 'myelems.pubblica_online', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'title', label_trans: 'gallery.title', dont_clone: true}), + AddCol({ + name: 'active', + label_trans: 'myelems.pubblica_online', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ name: 'title', label_trans: 'gallery.title', dont_clone: true }), AddCol({ name: 'foto_collana', label_trans: 'cataloglist.foto_collana', fieldtype: costanti.FieldType.imagerec, jointable: '', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, isadvanced_field: false, }), AddCol({ @@ -204,7 +244,11 @@ export const colTableCatalogList = [ jointable: 'mypages_id', dont_clone: true, }), - AddCol({ name: 'isCatalogoGenerale', label_trans: 'cataloglist.isCatalogoGenerale', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'isCatalogoGenerale', + label_trans: 'cataloglist.isCatalogoGenerale', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'argomenti', label_trans: 'cataloglist.argomenti', @@ -247,16 +291,30 @@ export const colTableCatalogList = [ isadvanced_field: true, }), - AddCol({ name: 'descr_introduttiva', label_trans: 'cataloglist.descr_introduttiva', fieldtype: costanti.FieldType.html, maxlength: 1300 }), - AddCol({ name: 'pagina_introduttiva_sfondo_nero', label_trans: 'cataloglist.pagina_introduttiva_sfondo_nero', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'backcolor', label_trans: 'cataloglist.backcolor', fieldtype: costanti.FieldType.pickcolor }), + AddCol({ + name: 'descr_introduttiva', + label_trans: 'cataloglist.descr_introduttiva', + fieldtype: costanti.FieldType.html, + maxlength: 1300, + }), + AddCol({ + name: 'pagina_introduttiva_sfondo_nero', + label_trans: 'cataloglist.pagina_introduttiva_sfondo_nero', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'backcolor', + label_trans: 'cataloglist.backcolor', + fieldtype: costanti.FieldType.pickcolor, + }), AddCol({ name: 'img_bordata', label_trans: 'cataloglist.img_bordata', fieldtype: costanti.FieldType.imagerec, jointable: '', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, isadvanced_field: false, }), AddCol({ @@ -264,7 +322,8 @@ export const colTableCatalogList = [ label_trans: 'cataloglist.img_intro', fieldtype: costanti.FieldType.imagerec, jointable: '', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, isadvanced_field: false, }), AddCol({ @@ -284,7 +343,8 @@ export const colTableCatalogList = [ label_trans: 'cataloglist.img_bordata_stampa', fieldtype: costanti.FieldType.imagerec, jointable: '', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, isadvanced_field: false, }), AddCol({ @@ -292,7 +352,8 @@ export const colTableCatalogList = [ label_trans: 'cataloglist.img_intro_stampa', fieldtype: costanti.FieldType.imagerec, jointable: '', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, isadvanced_field: false, }), @@ -317,8 +378,7 @@ export const colTableCatalogList = [ AddCol(ModifRec), // AddCol(DuplicateRec), AddCol(DeleteRec), - -] +]; export const colgallery = [ AddCol({ name: 'author_username', label_trans: 'gallery.author_username' }), @@ -329,19 +389,35 @@ export const colgallery = [ label_trans: 'gallery.list', fieldtype: costanti.FieldType.listimages, jointable: '', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, isInModif: true, }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colmylistcards = [ - AddCol({ name: 'imagefile', label_trans: 'imagefile', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'imagefile', + label_trans: 'imagefile', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'image', label_trans: 'image', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'vers_img', label_trans: 'vers_img', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'vers_img', + label_trans: 'vers_img', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'alt', label_trans: 'alt', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'description', label_trans: 'description', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'description', + label_trans: 'description', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'style', label_trans: 'style' }), AddCol({ name: 'alt', label_trans: 'alt' }), AddCol({ name: 'size', label_trans: 'size' }), @@ -349,53 +425,177 @@ export const colmylistcards = [ AddCol({ name: 'content', label_trans: 'content' }), AddCol({ name: 'colorsub', label_trans: 'colorsub' }), AddCol({ name: 'link', label_trans: 'link' }), -] +]; export const IBorder = [ AddCol({ name: 'top', label_trans: 'size.top', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'bottom', label_trans: 'size.bottom', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'left', label_trans: 'size.left', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'right', label_trans: 'size.right', fieldtype: costanti.FieldType.string }), -] + AddCol({ + name: 'bottom', + label_trans: 'size.bottom', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'left', + label_trans: 'size.left', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'right', + label_trans: 'size.right', + fieldtype: costanti.FieldType.string, + }), +]; export const colISize = [ - AddCol({ name: 'width', label_trans: 'size.width', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'height', label_trans: 'size.height', fieldtype: costanti.FieldType.string }), -] + AddCol({ + name: 'width', + label_trans: 'size.width', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'height', + label_trans: 'size.height', + fieldtype: costanti.FieldType.string, + }), +]; export const colIText = [ - AddCol({ name: 'contenuto', label_trans: 'catalogo.contenuto', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'maxlength', label_trans: 'catalogo.maxlength', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'posiz_text', label_trans: 'catalogo.posiz_text', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'perc_text', label_trans: 'catalogo.perc_text', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'margintop', label_trans: 'catalogo.margintop', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'line_height', label_trans: 'catalogo.line_height', fieldtype: costanti.FieldType.number }), -] + AddCol({ + name: 'contenuto', + label_trans: 'catalogo.contenuto', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'maxlength', + label_trans: 'catalogo.maxlength', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'posiz_text', + label_trans: 'catalogo.posiz_text', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'perc_text', + label_trans: 'catalogo.perc_text', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'margintop', + label_trans: 'catalogo.margintop', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'line_height', + label_trans: 'catalogo.line_height', + fieldtype: costanti.FieldType.number, + }), +]; export const colmyIImg = [ - AddCol({ name: 'imagefile', label_trans: 'iimg.imagefile', fieldtype: costanti.FieldType.imagerec }), + AddCol({ + name: 'imagefile', + label_trans: 'iimg.imagefile', + fieldtype: costanti.FieldType.imagerec, + }), AddCol({ name: 'fit', label_trans: 'iimg.fit', fieldtype: costanti.FieldType.string }), -] +]; export const colmyScheda = [ - AddCol({ name: 'name', label_trans: 'scheda.name', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'isTemplate', label_trans: 'scheda.isTemplate', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'isPagIntro', label_trans: 'scheda.isPagIntro', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'linkIdTemplate', label_trans: 'scheda.linkIdTemplate', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'widthscheda', label_trans: 'scheda.widthscheda', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'widthpag', label_trans: 'scheda.widthpag', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'widthimg', label_trans: 'scheda.widthimg', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'heightimg', label_trans: 'scheda.heightimg', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'widthcard', label_trans: 'scheda.widthcard', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'heightcard', label_trans: 'scheda.heightcard', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'height_Printable', label_trans: 'scheda.height_Printable', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'numschede_perCol', label_trans: 'scheda,numschede_perCol', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'numschede_perRiga', label_trans: 'scheda.numschede_perRiga', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'margine_top', label_trans: 'scheda.margine_top', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'margine_pagina', label_trans: 'scheda.margine_pagina', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'margine_riga', label_trans: 'scheda.margine_riga', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'name', + label_trans: 'scheda.name', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'isTemplate', + label_trans: 'scheda.isTemplate', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'isPagIntro', + label_trans: 'scheda.isPagIntro', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'linkIdTemplate', + label_trans: 'scheda.linkIdTemplate', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'widthscheda', + label_trans: 'scheda.widthscheda', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'widthpag', + label_trans: 'scheda.widthpag', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'widthimg', + label_trans: 'scheda.widthimg', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'heightimg', + label_trans: 'scheda.heightimg', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'widthcard', + label_trans: 'scheda.widthcard', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'heightcard', + label_trans: 'scheda.heightcard', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'height_Printable', + label_trans: 'scheda.height_Printable', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'numschede_perCol', + label_trans: 'scheda,numschede_perCol', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'numschede_perRiga', + label_trans: 'scheda.numschede_perRiga', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'margine_top', + label_trans: 'scheda.margine_top', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'margine_pagina', + label_trans: 'scheda.margine_pagina', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'margine_riga', + label_trans: 'scheda.margine_riga', + fieldtype: costanti.FieldType.string, + }), - AddCol({ name: 'productTypes', label_trans: 'productTypes', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'excludeproductTypes', label_trans: 'excludeproductTypes', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'idTipologie', label_trans: 'idTipologie', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'productTypes', + label_trans: 'productTypes', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'excludeproductTypes', + label_trans: 'excludeproductTypes', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'idTipologie', + label_trans: 'idTipologie', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'idTipoFormato', label_trans: 'cataloglist.idTipoFormato', @@ -411,15 +611,35 @@ export const colmyScheda = [ fieldtype: costanti.FieldType.multiselect, jointable: 'collanas', }), - AddCol({ name: 'sort_field', label_trans: 'catalogo.sort_field', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'sort_dir', label_trans: 'catalogo.sort_dir', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'sort_field', + label_trans: 'catalogo.sort_field', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'sort_dir', + label_trans: 'catalogo.sort_dir', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'arrProdottiSpeciali', label_trans: 'editore' }), -] +]; export const colmyelCatalogo = [ - AddCol({ name: 'productTypes', label_trans: 'productTypes', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'excludeproductTypes', label_trans: 'excludeproductTypes', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'idTipologie', label_trans: 'idTipologie', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'productTypes', + label_trans: 'productTypes', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'excludeproductTypes', + label_trans: 'excludeproductTypes', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'idTipologie', + label_trans: 'idTipologie', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'pdf', label_trans: 'pdf' }), AddCol({ name: 'pdf_filename', label_trans: 'pdf_filename' }), AddCol({ name: 'editore', label_trans: 'editore' }), @@ -432,62 +652,202 @@ export const colmyelCatalogo = [ }), AddCol({ name: 'width', label_trans: 'width', fieldtype: costanti.FieldType.string }), AddCol({ name: 'height', label_trans: 'height', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'optcatalogo.', label_trans: 'catalogo.optcatalogo.', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'margine_pagina', label_trans: 'margine_pagina', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'margine_riga', label_trans: 'margine_riga', fieldtype: costanti.FieldType.string }), - -] + AddCol({ + name: 'optcatalogo.', + label_trans: 'catalogo.optcatalogo.', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'margine_pagina', + label_trans: 'margine_pagina', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'margine_riga', + label_trans: 'margine_riga', + fieldtype: costanti.FieldType.string, + }), +]; export const colcrons = [ - AddCol({ name: 'active', label_trans: 'cron.active', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'descr', label_trans: 'cron.descr', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'status', label_trans: 'cron.status', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'nomeFunzioneDbOp', label_trans: 'cron.nomeFunzioneDbOp', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'startTime', label_trans: 'cron.startTime', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'everyXMinutes', label_trans: 'cron.everyXMinutes', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'quanteVolteEseguito', label_trans: 'cron.eseguito', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'quanteVolteEseguiAlGG', label_trans: 'cron.quanteVolteEseguiAlGG', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'lastJobStarted', label_trans: 'cron.lastJobStarted', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'lastJobEnd', label_trans: 'cron.lastJobEnd', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'active', + label_trans: 'cron.active', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'descr', + label_trans: 'cron.descr', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'status', + label_trans: 'cron.status', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'nomeFunzioneDbOp', + label_trans: 'cron.nomeFunzioneDbOp', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'startTime', + label_trans: 'cron.startTime', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'everyXMinutes', + label_trans: 'cron.everyXMinutes', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'quanteVolteEseguito', + label_trans: 'cron.eseguito', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'quanteVolteEseguiAlGG', + label_trans: 'cron.quanteVolteEseguiAlGG', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'lastJobStarted', + label_trans: 'cron.lastJobStarted', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'lastJobEnd', + label_trans: 'cron.lastJobEnd', + fieldtype: costanti.FieldType.date, + }), AddCol({ name: 'log', label_trans: 'cron.log', fieldtype: costanti.FieldType.string }), AddCol(DeleteRec), AddCol(DuplicateRec), // AddCol({ name: 'date_created', label_trans: 'cron.date_created', fieldtype: costanti.FieldType.date }), -] +]; export const colmyelems = [ - AddCol({ name: 'active', label_trans: 'myelems.active', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'active', + label_trans: 'myelems.active', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'path', label_trans: 'myelems.path' }), AddCol({ name: 'idPage', label_trans: 'myelems.idPage' }), - AddCol({ name: 'order', label_trans: 'myelems.order', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'type', label_trans: 'myelems.type', fieldtype: costanti.FieldType.select, jointable: 'elemtypes' }), + AddCol({ + name: 'order', + label_trans: 'myelems.order', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'type', + label_trans: 'myelems.type', + fieldtype: costanti.FieldType.select, + jointable: 'elemtypes', + }), AddCol({ name: 'container', label_trans: 'myelems.container' }), AddCol({ name: 'container2', label_trans: 'myelems.container2' }), - AddCol({ name: 'span', label_trans: 'myelems.span', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'span', + label_trans: 'myelems.span', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'container3', label_trans: 'myelems.container3' }), AddCol({ name: 'container4', label_trans: 'myelems.container4' }), AddCol({ name: 'img', label_trans: 'myelems.img' }), - AddCol({ name: 'align', label_trans: 'myelems.align', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'vertalign', label_trans: 'myelems.vertalign', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'fit', label_trans: 'myelems.fit', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'parambool', label_trans: 'myelems.parambool', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'parambool2', label_trans: 'myelems.parambool2', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'parambool3', label_trans: 'myelems.parambool3', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'parambool4', label_trans: 'myelems.parambool4', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'number', label_trans: 'myelems.number', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'num2', label_trans: 'myelems.num2', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'align', + label_trans: 'myelems.align', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'vertalign', + label_trans: 'myelems.vertalign', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'fit', + label_trans: 'myelems.fit', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'parambool', + label_trans: 'myelems.parambool', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'parambool2', + label_trans: 'myelems.parambool2', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'parambool3', + label_trans: 'myelems.parambool3', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'parambool4', + label_trans: 'myelems.parambool4', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'number', + label_trans: 'myelems.number', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'num2', + label_trans: 'myelems.num2', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'imgback', label_trans: 'myelems.imgback' }), AddCol({ name: 'size', label_trans: 'myelems.size' }), AddCol({ name: 'ratio', label_trans: 'myelems.ratio' }), - AddCol({ name: 'containerHtml', label_trans: 'myelems.containerHtml', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'listcards', label_trans: 'myelems.listcards', fieldtype: costanti.FieldType.listimages }), - AddCol({ name: 'height', label_trans: 'myelems.height', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'heightimg', label_trans: 'myelems.heightimg', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'heightcarousel', label_trans: 'myelems.heightcarousel', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'widthimg', label_trans: 'pages.widthimg', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'link', label_trans: 'pages.link', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'width', label_trans: 'myelems.width', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'onlyif_logged', label_trans: 'myelems.onlyif_logged', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'containerHtml', + label_trans: 'myelems.containerHtml', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'listcards', + label_trans: 'myelems.listcards', + fieldtype: costanti.FieldType.listimages, + }), + AddCol({ + name: 'height', + label_trans: 'myelems.height', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'heightimg', + label_trans: 'myelems.heightimg', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'heightcarousel', + label_trans: 'myelems.heightcarousel', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'widthimg', + label_trans: 'pages.widthimg', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'link', + label_trans: 'pages.link', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'width', + label_trans: 'myelems.width', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'onlyif_logged', + label_trans: 'myelems.onlyif_logged', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'color', label_trans: 'myelems.color' }), AddCol({ name: 'colorsub', label_trans: 'myelems.colorsub' }), AddCol({ name: 'colorsub2', label_trans: 'myelems.colorsub2' }), @@ -498,7 +858,11 @@ export const colmyelems = [ label_trans: 'gallery.list', fieldtype: costanti.FieldType.listimages, jointable: '', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, isInModif: true, }), AddCol({ @@ -508,110 +872,335 @@ export const colmyelems = [ }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colmsg_templates = [ AddCol({ name: 'title', label_trans: 'pages.title' }), - AddCol({ name: 'typemsg', label_trans: 'TypeMsg', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'title_it', label_trans: 'Tit Ita', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'typemsg', + label_trans: 'TypeMsg', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'title_it', + label_trans: 'Tit Ita', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'msg_it', label_trans: 'ITA', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'title_si', label_trans: 'Tit SLO', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'title_si', + label_trans: 'Tit SLO', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'msg_si', label_trans: 'SLO', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'title_enUs', label_trans: 'Tit ENG', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'title_enUs', + label_trans: 'Tit ENG', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'msg_enUs', label_trans: 'ENG', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'title_es', label_trans: 'Tit ESP', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'title_es', + label_trans: 'Tit ESP', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'msg_es', label_trans: 'ESP', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'title_pt', label_trans: 'Tit POR', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'title_pt', + label_trans: 'Tit POR', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'msg_pt', label_trans: 'POR', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'title_fr', label_trans: 'Tit FRA', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'title_fr', + label_trans: 'Tit FRA', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'msg_fr', label_trans: 'FRA', fieldtype: costanti.FieldType.html }), -] +]; export const colmyscrapingbook = [ - AddCol({ name: 'isbn', label_trans: 'myscrapingbook.isbn', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'fonte', label_trans: 'myscrapingbook.fonte', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'titolo', label_trans: 'myscrapingbook.titolo', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'titoloOriginale', label_trans: 'myscrapingbook.titoloOriginale', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'sottotitolo', label_trans: 'myscrapingbook.sottotitolo', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'autore', label_trans: 'myscrapingbook.autore', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'pagine', label_trans: 'myscrapingbook.pagina', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'misure', label_trans: 'myscrapingbook.misure', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'edizione', label_trans: 'myscrapingbook.edizione', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'editore', label_trans: 'myscrapingbook.editore', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'date_pub', label_trans: 'myscrapingbook.date_pub', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'url', label_trans: 'myscrapingbook.url', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'stelline', label_trans: 'myscrapingbook.stelline', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'prezzo', label_trans: 'myscrapingbook.prezzo', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'date_extraction', label_trans: 'myscrapingbook.date_extraction', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'descrizione_lunga', label_trans: 'myscrapingbook.descrizione_lunga', fieldtype: costanti.FieldType.html }), -] + AddCol({ + name: 'isbn', + label_trans: 'myscrapingbook.isbn', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'fonte', + label_trans: 'myscrapingbook.fonte', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'titolo', + label_trans: 'myscrapingbook.titolo', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'titoloOriginale', + label_trans: 'myscrapingbook.titoloOriginale', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'sottotitolo', + label_trans: 'myscrapingbook.sottotitolo', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'autore', + label_trans: 'myscrapingbook.autore', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'pagine', + label_trans: 'myscrapingbook.pagina', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'misure', + label_trans: 'myscrapingbook.misure', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'edizione', + label_trans: 'myscrapingbook.edizione', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'editore', + label_trans: 'myscrapingbook.editore', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'date_pub', + label_trans: 'myscrapingbook.date_pub', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'url', + label_trans: 'myscrapingbook.url', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'stelline', + label_trans: 'myscrapingbook.stelline', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'prezzo', + label_trans: 'myscrapingbook.prezzo', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'date_extraction', + label_trans: 'myscrapingbook.date_extraction', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'descrizione_lunga', + label_trans: 'myscrapingbook.descrizione_lunga', + fieldtype: costanti.FieldType.html, + }), +]; export const colmypage = [ AddCol({ - name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.string, + name: '_id', + label_trans: 'index', + fieldtype: costanti.FieldType.string, showWhen: costanti.showWhen.InPage + costanti.showWhen.InEdit, }), AddCol({ name: 'path', label_trans: 'pages.path' }), AddCol({ name: 'icon', label_trans: 'pages.icon' }), - AddCol({ name: 'order', label_trans: 'pages.order', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'active', label_trans: 'pages.active', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'inmenu', label_trans: 'pages.inmenu', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'isTemplate', label_trans: 'mypages.isTemplate', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'order', + label_trans: 'pages.order', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'active', + label_trans: 'pages.active', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'inmenu', + label_trans: 'pages.inmenu', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'isTemplate', + label_trans: 'mypages.isTemplate', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'title', label_trans: 'pages.title' }), AddCol({ name: 'subtitle', label_trans: 'pages.subtitle' }), - AddCol({ name: 'mainMenu', label_trans: 'pages.mainMenu', fieldtype: costanti.FieldType.boolean }), AddCol({ - name: 'sottoMenu', label_trans: 'pages.sottoMenu', + name: 'mainMenu', + label_trans: 'pages.mainMenu', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'sottoMenu', + label_trans: 'pages.sottoMenu', fieldtype: costanti.FieldType.multiselect, jointable: 'mypages', }), - AddCol({ name: 'infooter', label_trans: 'pages.infooter', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'infooter', + label_trans: 'pages.infooter', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'img1', label_trans: 'pages.img1' }), - AddCol({ name: 'content', label_trans: 'pages.contentfield', fieldtype: costanti.FieldType.html }), + AddCol({ + name: 'content', + label_trans: 'pages.contentfield', + fieldtype: costanti.FieldType.html, + }), AddCol({ name: 'video1', label_trans: 'pages.video1' }), AddCol({ name: 'ratio1', label_trans: 'pages.ratio1' }), AddCol({ name: 'img2', label_trans: 'pages.img2' }), - AddCol({ name: 'content2', label_trans: 'pages.content2', fieldtype: costanti.FieldType.html }), + AddCol({ + name: 'content2', + label_trans: 'pages.content2', + fieldtype: costanti.FieldType.html, + }), AddCol({ name: 'video2', label_trans: 'pages.video2' }), AddCol({ name: 'ratio2', label_trans: 'pages.ratio2' }), AddCol({ name: 'img3', label_trans: 'pages.img3' }), - AddCol({ name: 'content3', label_trans: 'pages.content3', fieldtype: costanti.FieldType.html }), + AddCol({ + name: 'content3', + label_trans: 'pages.content3', + fieldtype: costanti.FieldType.html, + }), AddCol({ name: 'video3', label_trans: 'pages.video3' }), AddCol({ name: 'ratio3', label_trans: 'pages.ratio3' }), - AddCol({ name: 'content4', label_trans: 'pages.content4', fieldtype: costanti.FieldType.html }), + AddCol({ + name: 'content4', + label_trans: 'pages.content4', + fieldtype: costanti.FieldType.html, + }), AddCol({ name: 'lang', label_trans: 'pages.lang' }), AddCol({ name: 'keywords', label_trans: 'pages.keywords' }), AddCol({ name: 'description', label_trans: 'pages.description' }), - AddCol({ name: 'heightimg', label_trans: 'pages.heightimg', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'color', label_trans: 'pages.color', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'onlyif_logged', label_trans: 'pages.onlyif_logged', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'only_residenti', label_trans: 'pages.only_residenti', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'only_consiglio', label_trans: 'pages.only_consiglio', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'only_collab', label_trans: 'pages.only_collab', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'only_admin', label_trans: 'pages.only_admin', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'imgback', label_trans: 'pages.imgback', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'submenu', label_trans: 'pages.submenu', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'l_par', label_trans: 'pages.l_par', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'l_child', label_trans: 'pages.l_child', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'internalpage', label_trans: 'pages.internalpage', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'loadFirst', label_trans: 'pages.loadFirst', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'showFooter', label_trans: 'pages.showFooter', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'hideHeader', label_trans: 'pages.hideHeader', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'iconsize', label_trans: 'pages.iconsize', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'extraclass', label_trans: 'pages.extraclass', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'heightimg', + label_trans: 'pages.heightimg', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'color', + label_trans: 'pages.color', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'onlyif_logged', + label_trans: 'pages.onlyif_logged', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'only_residenti', + label_trans: 'pages.only_residenti', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'only_consiglio', + label_trans: 'pages.only_consiglio', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'only_collab', + label_trans: 'pages.only_collab', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'only_admin', + label_trans: 'pages.only_admin', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'imgback', + label_trans: 'pages.imgback', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'submenu', + label_trans: 'pages.submenu', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'l_par', + label_trans: 'pages.l_par', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'l_child', + label_trans: 'pages.l_child', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'internalpage', + label_trans: 'pages.internalpage', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'loadFirst', + label_trans: 'pages.loadFirst', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'showFooter', + label_trans: 'pages.showFooter', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'hideHeader', + label_trans: 'pages.hideHeader', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'iconsize', + label_trans: 'pages.iconsize', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'extraclass', + label_trans: 'pages.extraclass', + fieldtype: costanti.FieldType.string, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colmybot = [ AddCol({ name: 'page', label_trans: 'bot.page', fieldtype: costanti.FieldType.number }), AddCol({ name: 'riga', label_trans: 'bot.riga', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'index', label_trans: 'bot.index', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'active', label_trans: 'bot.active', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'lang', label_trans: 'bot.lang', fieldtype: costanti.FieldType.select, jointable: 'lang' }), - AddCol({ name: 'main', label_trans: 'bot.main', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'index', + label_trans: 'bot.index', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'active', + label_trans: 'bot.active', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'lang', + label_trans: 'bot.lang', + fieldtype: costanti.FieldType.select, + jointable: 'lang', + }), + AddCol({ + name: 'main', + label_trans: 'bot.main', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'label', label_trans: 'bot.label' }), - AddCol({ name: 'type', label_trans: 'bot.type', fieldtype: costanti.FieldType.select, jointable: 'bottype' }), + AddCol({ + name: 'type', + label_trans: 'bot.type', + fieldtype: costanti.FieldType.select, + jointable: 'bottype', + }), AddCol({ name: 'value', label_trans: 'bot.value' }), AddCol({ name: 'visibility', @@ -619,17 +1208,21 @@ export const colmybot = [ fieldtype: costanti.FieldType.binary, jointable: 'visibility', }), - AddCol({ name: 'date_updated', label_trans: 'bot.date_updated', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'date_updated', + label_trans: 'bot.date_updated', + fieldtype: costanti.FieldType.date, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colopzemail = [ AddCol({ name: 'key', label_trans: 'col.key' }), AddCol({ name: 'label_it', label_trans: 'col.label' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const coldestnewsletter = [ AddCol({ name: 'descr', label_trans: 'destnewsletter.descr' }), @@ -638,19 +1231,42 @@ export const coldestnewsletter = [ label_trans: 'destnewsletter.tipodest_id', fieldtype: costanti.FieldType.select, jointable: 'tipodest', - }), -] - + }), +]; export const coltemplemail = [ AddCol({ name: 'subject', label_trans: 'templemail.subject' }), - AddCol({ name: 'testoheadermail', label_trans: 'templemail.testoheadermail', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'content', label_trans: 'templemail.content', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'disclaimer', label_trans: 'templemail.disclaimer', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'piedipagina', label_trans: 'templemail.piedipagina', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'firma', label_trans: 'templemail.firma', fieldtype: costanti.FieldType.html }), + AddCol({ + name: 'testoheadermail', + label_trans: 'templemail.testoheadermail', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'content', + label_trans: 'templemail.content', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'disclaimer', + label_trans: 'templemail.disclaimer', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'piedipagina', + label_trans: 'templemail.piedipagina', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'firma', + label_trans: 'templemail.firma', + fieldtype: costanti.FieldType.html, + }), AddCol({ name: 'img', label_trans: 'templemail.img' }), - AddCol({ name: 'content2', label_trans: 'templemail.content2', fieldtype: costanti.FieldType.html }), + AddCol({ + name: 'content2', + label_trans: 'templemail.content2', + fieldtype: costanti.FieldType.html, + }), AddCol({ name: 'img2', label_trans: 'templemail.img2' }), AddCol({ name: 'options', @@ -660,42 +1276,82 @@ export const coltemplemail = [ }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; // SHOW_LAST_N_EV export const colnewstosent = [ AddCol({ name: 'label', label_trans: 'event.title' }), AddCol({ name: 'templemail_str', label_trans: 'newsletter.templemail' }), AddCol({ name: 'destnewsletter_str', label_trans: 'newsletter.destnewsletter' }), - AddCol({ name: 'datetoSent', label_trans: 'newsletter.datetoSent', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'activate', label_trans: 'newsletter.activate', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'numemail_tot', label_trans: 'newsletter.numemail_tot', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'numemail_sent', label_trans: 'newsletter.numemail_sent', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'datestartJob', label_trans: 'newsletter.datestartJob', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'datefinishJob', label_trans: 'newsletter.datefinishJob', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'datetoSent', + label_trans: 'newsletter.datetoSent', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'activate', + label_trans: 'newsletter.activate', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'numemail_tot', + label_trans: 'newsletter.numemail_tot', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'numemail_sent', + label_trans: 'newsletter.numemail_sent', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'datestartJob', + label_trans: 'newsletter.datestartJob', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'datefinishJob', + label_trans: 'newsletter.datefinishJob', + fieldtype: costanti.FieldType.date, + }), AddCol({ name: 'lastemailsent_Job', label_trans: 'newsletter.lastemailsent_Job', - fieldtype: costanti.FieldType.date + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'starting_job', + label_trans: 'newsletter.starting_job', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'finish_job', + label_trans: 'newsletter.finish_job', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'processing_job', + label_trans: 'newsletter.processing_job', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'error_job', + label_trans: 'newsletter.error_job', + fieldtype: costanti.FieldType.string, }), - AddCol({ name: 'starting_job', label_trans: 'newsletter.starting_job', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'finish_job', label_trans: 'newsletter.finish_job', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'processing_job', label_trans: 'newsletter.processing_job', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'error_job', label_trans: 'newsletter.error_job', fieldtype: costanti.FieldType.string }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; const colTableWhere = [ AddCol({ name: 'code', label_trans: 'where.code' }), AddCol({ name: 'placename', label_trans: 'cal.where' }), AddCol({ name: 'whereicon', label_trans: 'where.whereicon' }), AddCol(DeleteRec), -] +]; const colTableCard = [ AddCol({ name: 'label', label_trans: 'label' }), AddCol({ name: 'card', label_trans: 'card' }), AddCol(DeleteRec), -] +]; export const colTableProducer = [ AddCol({ name: 'name', label_trans: 'producer.name' }), @@ -708,56 +1364,122 @@ export const colTableProducer = [ AddCol({ name: 'website', label_trans: 'reg.website' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const getcolorderscart = [ AddCol({ name: 'numorder', label_trans: 'order.numorder' }), AddCol({ name: 'numord_pers', label_trans: 'order.numord_pers' }), - AddCol({ name: 'created_at', label_trans: 'order.created_at', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'created_at', + label_trans: 'order.created_at', + fieldtype: costanti.FieldType.date, + }), AddCol({ name: 'status', label_trans: 'order.status' }), AddCol({ name: 'items', label_trans: 'order.items' }), - AddCol({ name: 'userId', label_trans: 'order.users', fieldtype: costanti.FieldType.select, jointable: 'users' }), + AddCol({ + name: 'userId', + label_trans: 'order.users', + fieldtype: costanti.FieldType.select, + jointable: 'users', + }), AddCol({ name: 'note', label_trans: 'order.note' }), AddCol({ name: 'codice_sconto', label_trans: 'order.codice_sconto' }), AddCol({ name: 'descr_sconto', label_trans: 'order.descr_sconto' }), - AddCol({ name: 'confermato', label_trans: 'order.confermato', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'date_confermato', label_trans: 'order.date_confermato', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'consegnato', label_trans: 'order.consegnato', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'date_consegnato', label_trans: 'order.date_consegnato', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'preparato', label_trans: 'order.preparato', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'date_preparato', label_trans: 'order.date_preparato', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'pagato', label_trans: 'order.pagato', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'date_pagato', label_trans: 'order.date_pagato', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'spedito', label_trans: 'order.spedito', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'date_spedito', label_trans: 'order.date_spedito', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'confermato', + label_trans: 'order.confermato', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'date_confermato', + label_trans: 'order.date_confermato', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'consegnato', + label_trans: 'order.consegnato', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'date_consegnato', + label_trans: 'order.date_consegnato', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'preparato', + label_trans: 'order.preparato', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'date_preparato', + label_trans: 'order.date_preparato', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'pagato', + label_trans: 'order.pagato', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'date_pagato', + label_trans: 'order.date_pagato', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'spedito', + label_trans: 'order.spedito', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'date_spedito', + label_trans: 'order.date_spedito', + fieldtype: costanti.FieldType.date, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableShareWithUs = [ AddCol({ name: 'description', label_trans: 'share.description' }), - AddCol({ name: 'numshared', label_trans: 'share.numshared', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'rating', label_trans: 'share.rating', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'numshared', + label_trans: 'share.numshared', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'rating', + label_trans: 'share.rating', + fieldtype: costanti.FieldType.number, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableHours = [ // AddCol({ name: 'userId', label_trans: 'hours.userId' }), // AddCol({ name: 'todoId', label_trans: 'hours.todoId' }), - AddCol({ name: 'date', label_trans: 'hours.date', fieldtype: costanti.FieldType.onlydate }), - AddCol({ name: 'hours', label_trans: 'hours.hours', fieldtype: costanti.FieldType.hours }), + AddCol({ + name: 'date', + label_trans: 'hours.date', + fieldtype: costanti.FieldType.onlydate, + }), + AddCol({ + name: 'hours', + label_trans: 'hours.hours', + fieldtype: costanti.FieldType.hours, + }), // AddCol({ name: 'time_start', label_trans: 'hours.time_start', fieldtype: costanti.FieldType.number }), // AddCol({ name: 'time_end', label_trans: 'hours.time_end', fieldtype: costanti.FieldType.number }), AddCol({ name: 'descr', label_trans: 'hours.note' }), AddCol({ name: 'username', label_trans: 'reg.username_short', - showWhen: costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView + showWhen: + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTablegroups = [ AddCol({ name: 'descr', label_trans: 'proj.longdescr' }), @@ -771,21 +1493,21 @@ export const colTablegroups = [ }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTabledepartments = [ AddCol({ name: 'name', label_trans: 'store.name' }), AddCol({ name: 'username', label_trans: 'store.username' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTablecategories = [ AddCol({ name: 'name', label_trans: 'categories.name' }), AddCol({ name: 'img', label_trans: 'categories.img' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableCatProd = [ AddCol({ name: 'name', label_trans: 'categories.name' }), @@ -795,32 +1517,40 @@ export const colTableCatProd = [ AddCol({ name: 'color', label_trans: 'categories.color' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableStatiProdotto = [ AddCol({ name: 'IdTipologia', label_trans: 'statoprod.IdTipologia' }), AddCol({ name: 'Descrizione', label_trans: 'statoprod.Descrizione' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableTipoFormato = [ AddCol({ name: 'IdTipoFormato', label_trans: 'statoprod.IdTipologia' }), AddCol({ name: 'Descrizione', label_trans: 'statoprod.Descrizione' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableTipologie = [ AddCol({ name: 'IdTipologia', label_trans: 'statoprod.IdTipologia' }), AddCol({ name: 'Descrizione', label_trans: 'statoprod.Descrizione' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableCollane = [ - AddCol({ name: '_id', label_trans: 'catalogo.id', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'idCollana', label_trans: 'collane.idCollana', fieldtype: costanti.FieldType.number }), + AddCol({ + name: '_id', + label_trans: 'catalogo.id', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'idCollana', + label_trans: 'collane.idCollana', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'title', label_trans: 'collane.title' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableCatAI = [ AddCol({ name: 'name', label_trans: 'categories.name' }), @@ -829,7 +1559,7 @@ export const colTableCatAI = [ AddCol({ name: 'color', label_trans: 'categories.color' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableQueryAI = [ AddCol({ name: 'descr', label_trans: 'queryai.descr' }), @@ -844,7 +1574,7 @@ export const colTableQueryAI = [ AddCol({ name: 'output_type', label_trans: 'queryai.output_type' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableSubCatProd = [ AddCol({ name: 'name', label_trans: 'categories.name' }), @@ -859,7 +1589,7 @@ export const colTableSubCatProd = [ AddCol({ name: 'color', label_trans: 'categories.color' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableStorehouse = [ AddCol({ name: 'name', label_trans: 'store.name' }), @@ -872,17 +1602,49 @@ export const colTableStorehouse = [ AddCol({ name: 'region', label_trans: 'store.region' }), AddCol({ name: 'img', label_trans: 'store.img' }), AddCol({ name: 'website', label_trans: 'reg.website' }), - AddCol({ name: 'email_html_header', label_trans: 'store.email_html_header', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'email_html_footer', label_trans: 'store.email_html_footer', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'email_html_makeorder', label_trans: 'store.email_html_makeorder', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'email_html_GAS_makeorder', label_trans: 'store.email_html_GAS_makeorder', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'email_html_order_confirmed', label_trans: 'store.email_html_order_confirmed', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'email_html_GAS_order_confirmed', label_trans: 'store.email_html_GAS_order_confirmed', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'email_html_order_consegnato', label_trans: 'store.email_html_order_consegnato', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'email_html_GAS_order_consegnato', label_trans: 'store.email_GAS_html_order_consegnato', fieldtype: costanti.FieldType.html }), + AddCol({ + name: 'email_html_header', + label_trans: 'store.email_html_header', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'email_html_footer', + label_trans: 'store.email_html_footer', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'email_html_makeorder', + label_trans: 'store.email_html_makeorder', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'email_html_GAS_makeorder', + label_trans: 'store.email_html_GAS_makeorder', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'email_html_order_confirmed', + label_trans: 'store.email_html_order_confirmed', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'email_html_GAS_order_confirmed', + label_trans: 'store.email_html_GAS_order_confirmed', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'email_html_order_consegnato', + label_trans: 'store.email_html_order_consegnato', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'email_html_GAS_order_consegnato', + label_trans: 'store.email_GAS_html_order_consegnato', + fieldtype: costanti.FieldType.html, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableProviders = [ AddCol({ name: 'name', label_trans: 'store.name' }), @@ -895,38 +1657,82 @@ export const colTableProviders = [ AddCol({ name: 'website', label_trans: 'reg.website' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableGasordine = [ - AddCol({ name: 'active', label_trans: 'sites.active', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'active', + label_trans: 'sites.active', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'name', label_trans: 'store.name' }), AddCol({ name: 'description', label_trans: 'store.description' }), AddCol({ name: 'referente', label_trans: 'store.referent' }), AddCol({ name: 'city', label_trans: 'store.city' }), AddCol({ name: 'img', label_trans: 'store.img' }), - AddCol({ name: 'dataora_chiusura_ordini', label_trans: 'gas.dataora_chiusura_ordini', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'note_ordine_gas', label_trans: 'gas.note_ordine_gas', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'data_arrivo_merce', label_trans: 'gas.data_arrivo_merce', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'dataora_ritiro', label_trans: 'gas.dataora_ritiro', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'dataora_chiusura_ordini', + label_trans: 'gas.dataora_chiusura_ordini', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'note_ordine_gas', + label_trans: 'gas.note_ordine_gas', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'data_arrivo_merce', + label_trans: 'gas.data_arrivo_merce', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'dataora_ritiro', + label_trans: 'gas.dataora_ritiro', + fieldtype: costanti.FieldType.date, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableScontistica = [ - AddCol({ name: 'attivo', label_trans: 'scontistica.attivo', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'attivo', + label_trans: 'scontistica.attivo', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'code', label_trans: 'scontistica.code' }), AddCol({ name: 'description', label_trans: 'scontistica.description' }), - AddCol({ name: 'qta', label_trans: 'scontistica.qta', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'perc_sconto', label_trans: 'scontistica.perc_sconto', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'price', label_trans: 'scontistica.price', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'applica', label_trans: 'scontistica.applica', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'comulativo', label_trans: 'scontistica.comulativo', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'qta', + label_trans: 'scontistica.qta', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'perc_sconto', + label_trans: 'scontistica.perc_sconto', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'price', + label_trans: 'scontistica.price', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'applica', + label_trans: 'scontistica.applica', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'comulativo', + label_trans: 'scontistica.comulativo', + fieldtype: costanti.FieldType.boolean, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colAdType = [ AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }), AddCol({ name: 'descr', label_trans: 'store.description' }), -] +]; export const colSectors = [ AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }), @@ -937,14 +1743,18 @@ export const colSectors = [ fieldtype: costanti.FieldType.select, jointable: getTabSector(), }), - AddCol({ name: 'main', label_trans: 'store.main', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'main', + label_trans: 'store.main', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'color', label_trans: 'products.color' }), AddCol({ name: 'theme', label_trans: 'products.theme' }), AddCol({ name: 'img', label_trans: 'store.img' }), AddCol({ name: 'icon', label_trans: 'store.icon' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colSectorGoods = [ AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }), @@ -955,14 +1765,18 @@ export const colSectorGoods = [ fieldtype: costanti.FieldType.select, jointable: 'sectorgoods', }), - AddCol({ name: 'main', label_trans: 'store.main', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'main', + label_trans: 'store.main', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'color', label_trans: 'products.color' }), AddCol({ name: 'theme', label_trans: 'products.theme' }), AddCol({ name: 'img', label_trans: 'store.img' }), AddCol({ name: 'icon', label_trans: 'store.icon' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colCatGrps = [ AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }), @@ -973,25 +1787,32 @@ export const colCatGrps = [ fieldtype: costanti.FieldType.select, jointable: 'catgrps', }), - AddCol({ name: 'main', label_trans: 'store.main', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'main', + label_trans: 'store.main', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'color', label_trans: 'products.color' }), AddCol({ name: 'theme', label_trans: 'products.theme' }), AddCol({ name: 'img', label_trans: 'store.img' }), AddCol({ name: 'icon', label_trans: 'store.icon' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] - +]; export const colLevels = [ AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }), AddCol({ name: 'descr', label_trans: 'store.description' }), - AddCol({ name: 'years_of_exp', label_trans: 'years_of_exp', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'years_of_exp', + label_trans: 'years_of_exp', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'color', label_trans: 'products.color' }), AddCol({ name: 'theme', label_trans: 'products.theme' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colCitys = [ AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }), @@ -1004,7 +1825,7 @@ export const colCitys = [ AddCol({ name: 'country', label_trans: 'city.country' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colProvinces = [ AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }), @@ -1012,17 +1833,17 @@ export const colProvinces = [ AddCol({ name: 'prov', label_trans: 'city.prov' }), AddCol({ name: 'card', label_trans: 'city.card' }), AddCol({ - name: 'idCircuitToAssign', label_trans: 'city.idCircuitToAssign', + name: 'idCircuitToAssign', + label_trans: 'city.idCircuitToAssign', fieldtype: costanti.FieldType.select, jointable: 'listcircuits', - - }), + }), AddCol({ name: 'descr', label_trans: 'store.description' }), AddCol({ name: 'lat', label_trans: 'city.lat' }), AddCol({ name: 'long', label_trans: 'city.long' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; /* export const colProvinces = [ @@ -1039,28 +1860,32 @@ export const colTableCountry = [ AddCol({ name: 'id', label_trans: 'index', fieldtype: costanti.FieldType.string }), AddCol({ name: 'value', label_trans: 'city.country' }), AddCol({ name: 'flag', label_trans: 'city.flag' }), -] +]; export const colTablePhones = [ AddCol({ name: 'id', label_trans: 'index', fieldtype: costanti.FieldType.string }), AddCol({ name: 'value', label_trans: 'city.country' }), AddCol({ name: 'flag', label_trans: 'city.flag' }), -] +]; export const colTableUsersGeneric = [ AddCol({ name: 'username', label_trans: 'reg.username_short' }), AddCol({ - name: 'date', label_trans: 'reg.date', fieldtype: costanti.FieldType.onlydate, - showWhen: costanti.showWhen.InPage + costanti.showWhen.InView_OnlyifExist + name: 'date', + label_trans: 'reg.date', + fieldtype: costanti.FieldType.onlydate, + showWhen: costanti.showWhen.InPage + costanti.showWhen.InView_OnlyifExist, }), -] +]; export const colTableMyGroup = [ AddCol({ name: 'groupname', label_trans: 'reg.groupname' }), AddCol({ - name: 'date', label_trans: 'reg.date', fieldtype: costanti.FieldType.onlydate, - showWhen: costanti.showWhen.InPage + costanti.showWhen.InView_OnlyifExist + name: 'date', + label_trans: 'reg.date', + fieldtype: costanti.FieldType.onlydate, + showWhen: costanti.showWhen.InPage + costanti.showWhen.InView_OnlyifExist, }), -] +]; export const colSkills = [ AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }), @@ -1077,7 +1902,7 @@ export const colSkills = [ AddCol({ name: 'theme', label_trans: 'products.theme' }), AddCol(DuplicateRec), AddCol(DeleteRec), -] +]; export const colGoods = [ // AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }), AddCol({ name: 'descr', label_trans: 'store.description' }), @@ -1093,7 +1918,7 @@ export const colGoods = [ AddCol({ name: 'theme', label_trans: 'products.theme' }), AddCol(DuplicateRec), AddCol(DeleteRec), -] +]; /* export const colSubSkills = [ @@ -1117,7 +1942,11 @@ export const colSubSkills = [ export const colmyMovement = [ // AddCol({ name: '_id', label_trans: 'reg.id' }), - AddCol({ name: 'transactionDate', label_trans: 'movement.transactionDate', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'transactionDate', + label_trans: 'movement.transactionDate', + fieldtype: costanti.FieldType.date, + }), AddCol({ name: 'userfrom.username', label_trans: 'reg.username', @@ -1199,16 +2028,26 @@ export const colmyMovement = [ }), AddCol({ - name: 'amount', label_trans: 'movement.amount', - fieldtype: costanti.FieldType.currency, required: true, tipovisu: costanti.TipoVisu.TESTO_BORDATO + name: 'amount', + label_trans: 'movement.amount', + fieldtype: costanti.FieldType.currency, + required: true, + tipovisu: costanti.TipoVisu.TESTO_BORDATO, }), - AddCol({ name: 'causal', label_trans: 'movement.causal', tipovisu: costanti.TipoVisu.TESTO_BORDATO }), - -] + AddCol({ + name: 'causal', + label_trans: 'movement.causal', + tipovisu: costanti.TipoVisu.TESTO_BORDATO, + }), +]; export const colmyMovementTable = [ // AddCol({ name: '_id', label_trans: 'reg.id' }), - AddCol({ name: 'transactionDate', label_trans: 'movement.transactionDate', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'transactionDate', + label_trans: 'movement.transactionDate', + fieldtype: costanti.FieldType.date, + }), AddCol({ name: 'userfrom.username', label_trans: 'circuit.sender', @@ -1283,32 +2122,51 @@ export const colmyMovementTable = [ }), AddCol({ - name: 'amount', label_trans: 'movement.amount', - fieldtype: costanti.FieldType.currency, required: true, tipovisu: costanti.TipoVisu.TESTO_BORDATO + name: 'amount', + label_trans: 'movement.amount', + fieldtype: costanti.FieldType.currency, + required: true, + tipovisu: costanti.TipoVisu.TESTO_BORDATO, }), - AddCol({ name: 'causal', label_trans: 'movement.causal', tipovisu: costanti.TipoVisu.TESTO_BORDATO }), - -] + AddCol({ + name: 'causal', + label_trans: 'movement.causal', + tipovisu: costanti.TipoVisu.TESTO_BORDATO, + }), +]; export const colmyUserPeopleSaldi = [ // AddCol({ name: '_id', label_trans: 'reg.id' }), AddCol({ name: 'username', label_trans: 'reg.username_short' }), // AddCol({ name: 'name', label_trans: 'reg.name' }), AddCol({ - name: 'profile.img', field: 'profile', subfield: 'img', label_trans: 'reg.img', sortable: false, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + name: 'profile.img', + field: 'profile', + subfield: 'img', + label_trans: 'reg.img', + sortable: false, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, }), - AddCol({ name: 'saldo', label_trans: 'account.saldo', fieldtype: costanti.FieldType.currency }), - -] + AddCol({ + name: 'saldo', + label_trans: 'account.saldo', + fieldtype: costanti.FieldType.currency, + }), +]; export const colmyUserPeople = [ // AddCol({ name: '_id', label_trans: 'reg.id' }), AddCol({ name: 'username', label_trans: 'reg.username_short' }), // AddCol({ name: 'name', label_trans: 'reg.name' }), AddCol({ - name: 'profile.img', field: 'profile', subfield: 'img', label_trans: 'reg.img', sortable: false, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + name: 'profile.img', + field: 'profile', + subfield: 'img', + label_trans: 'reg.img', + sortable: false, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, }), // AddCol({ name: 'reported', label_trans: 'reg.reported', fieldtype: costanti.FieldType.boolean }), /* AddCol({ @@ -1324,21 +2182,26 @@ export const colmyUserPeople = [ */ // AddCol({ name: 'sospeso', label_trans: 'reg.sospeso', fieldtype: costanti.FieldType.boolean }), // AddCol({ name: 'deleted', label_trans: 'reg.deleted', fieldtype: costanti.FieldType.boolean }), -] +]; export const colmyUserGroup = [ // AddCol({ name: '_id', label_trans: 'reg.id' }), AddCol({ - name: 'title', label_trans: 'reg.nameorg', + name: 'title', + label_trans: 'reg.nameorg', field_toduplicate_nospace: 'groupname', - required: true, noshowlabel: true, maxlength: 50 + required: true, + noshowlabel: true, + maxlength: 50, }), AddCol({ - name: 'groupname', label_trans: 'reg.groupname', required: false, + name: 'groupname', + label_trans: 'reg.groupname', + required: false, maxlength: 50, allowchar: costanti.ALLOWCHAR_CODE, showLinkResult: '{site}/grp/{value}', - showWhen: costanti.showWhen.InPage + costanti.showWhen.NewRec + showWhen: costanti.showWhen.InPage + costanti.showWhen.NewRec, }), AddCol({ name: 'idCity', @@ -1348,7 +2211,11 @@ export const colmyUserGroup = [ tablesel: 'cities', noshowlabel: true, icon: 'fas fa-map-marker-alt', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, remote_table: 'mycities', remote_key: '_id', remote_field: 'comune', @@ -1363,13 +2230,13 @@ export const colmyUserGroup = [ icon: 'category', noshowlabel: true, }), - AddCol( - { - name: 'descr', label_trans: 'shared.short_descr', required: true, - noshowlabel: true, - maxlength: 100 - } - ), + AddCol({ + name: 'descr', + label_trans: 'shared.short_descr', + required: true, + noshowlabel: true, + maxlength: 100, + }), /*AddCol({ name: 'pwd', label_trans: 'groups.pwd', fieldtype: costanti.FieldType.crypted, visibleif: costanti.BINARY_CHECK, visib_field: 'visibility', visib_value: shared_consts.Visibility_Group.PASSWORD, @@ -1384,29 +2251,38 @@ export const colmyUserGroup = [ showWhen: costanti.showWhen.InView_OnlyifExist, }), AddCol({ - name: 'date_created', label_trans: 'reg.pub_created', fieldtype: costanti.FieldType.onlydate, + name: 'date_created', + label_trans: 'reg.pub_created', + fieldtype: costanti.FieldType.onlydate, required: false, visible: false, sortable: true, - showWhen: 0 + showWhen: 0, }), AddCol({ - name: 'date_updated', label_trans: 'reg.pub_updated', fieldtype: costanti.FieldType.onlydate, + name: 'date_updated', + label_trans: 'reg.pub_updated', + fieldtype: costanti.FieldType.onlydate, required: false, visible: false, sortable: true, - showWhen: 0 + showWhen: 0, }), AddCol({ name: 'photos', label_trans: 'skill.photos', fieldtype: costanti.FieldType.listimages, jointable: '', - showWhen: costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, }), AddCol({ - name: 'note', label_trans: 'reg.detailsPage', fieldtype: costanti.FieldType.html, - titlepopupedit: 'detailsPage', field_extra1: 'groupname', subfield_extra1: '', + name: 'note', + label_trans: 'reg.detailsPage', + fieldtype: costanti.FieldType.html, + titlepopupedit: 'detailsPage', + field_extra1: 'groupname', + subfield_extra1: '', }), AddCol({ name: '', @@ -1420,25 +2296,38 @@ export const colmyUserGroup = [ label_trans: 'bot.visibility', fieldtype: costanti.FieldType.multiselect, jointable: 'visibilGroup', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, isadvanced_field: true, }), AddCol({ - name: 'link_telegram', label_trans: 'reg.link_telegram', fieldtype: costanti.FieldType.link, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + name: 'link_telegram', + label_trans: 'reg.link_telegram', + fieldtype: costanti.FieldType.link, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, icon: 'fab fa-telegram', isadvanced_field: true, }), AddCol({ - name: 'website', label_trans: 'reg.website', fieldtype: costanti.FieldType.link, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + name: 'website', + label_trans: 'reg.website', + fieldtype: costanti.FieldType.link, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, isadvanced_field: true, }), AddCol(ModifRec), AddCol(DeleteRec), -] - +]; export const colmyGoods = [ AddCol({ @@ -1449,7 +2338,11 @@ export const colmyGoods = [ fieldtype: costanti.FieldType.username_chip, link: '/my/username', noshowlabel: true, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, }), AddCol({ name: 'idCity', @@ -1459,7 +2352,11 @@ export const colmyGoods = [ tablesel: 'cities', noshowlabel: true, icon: 'fas fa-map-marker-alt', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, remote_table: 'mycities', remote_key: '_id', remote_field: 'comune', @@ -1480,7 +2377,8 @@ export const colmyGoods = [ fieldtype: costanti.FieldType.multioption, required: true, jointable: 'adtypes', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, icon: 'fas fa-bullhorn', noshowlabel: true, numpag_carousel: 1, @@ -1491,7 +2389,11 @@ export const colmyGoods = [ name: 'descr', label_trans: 'proj.shortdescr', fieldtype: costanti.FieldType.string, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, maxlength: 120, required: true, @@ -1504,12 +2406,20 @@ export const colmyGoods = [ fieldtype: costanti.FieldType.listimages, jointable: '', showpicprofile_ifnotset: true, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, }), AddCol({ - name: 'note', label_trans: 'proj.descrapprof', fieldtype: costanti.FieldType.html, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, - titlepopupedit: 'Dettagli', field_extra1: 'username', subfield_extra1: '', + name: 'note', + label_trans: 'proj.descrapprof', + fieldtype: costanti.FieldType.html, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, + titlepopupedit: 'Dettagli', + field_extra1: 'username', + subfield_extra1: '', // minlength: 50, required: false, }), @@ -1519,7 +2429,10 @@ export const colmyGoods = [ fieldtype: costanti.FieldType.select, required: true, jointable: 'sectorgoods', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, visible: true, icon: 'category', }), @@ -1534,7 +2447,11 @@ export const colmyGoods = [ filter_field: 'idSectorGood', noshowlabel: true, icon: 'engineering', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, allowNewValue: false, }), AddCol({ @@ -1542,7 +2459,11 @@ export const colmyGoods = [ label_trans: 'contribtype.name', fieldtype: costanti.FieldType.multiselect, jointable: 'contribtypes', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, icon: 'fas fa-hand-holding', // icon: 'fas fa-hands-helping', @@ -1559,7 +2480,11 @@ export const colmyGoods = [ label_trans: 'shipping.name', fieldtype: costanti.FieldType.multiselect, jointable: 'shippings', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, icon: 'fas fa-shipping-fast', // icon: 'fas fa-hands-helping', @@ -1570,7 +2495,11 @@ export const colmyGoods = [ label_trans: 'otherfilters.name', fieldtype: costanti.FieldType.multiselect, jointable: 'otherfilters', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, icon: 'fas fa-filter', // icon: 'fas fa-hands-helping', @@ -1582,15 +2511,21 @@ export const colmyGoods = [ fieldtype: costanti.FieldType.select, jointable: 'pub_to_share', icon: 'fas fa-users', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, isadvanced_field: true, }), AddCol({ - name: 'date_created', label_trans: 'event.dateCreated', fieldtype: costanti.FieldType.onlydate, + name: 'date_created', + label_trans: 'event.dateCreated', + fieldtype: costanti.FieldType.onlydate, required: false, visible: false, sortable: true, - showWhen: 0 + showWhen: 0, }), /*AddCol({ name: 'idSubSkill', @@ -1611,13 +2546,19 @@ export const colmyGoods = [ // **ADDFIELD_MYSKILL AddCol({ - name: 'website', label_trans: 'reg.website', isadvanced_field: true, fieldtype: costanti.FieldType.link, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist + name: 'website', + label_trans: 'reg.website', + isadvanced_field: true, + fieldtype: costanti.FieldType.link, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, }), AddCol(DuplicateRec), AddCol(ModifRec), AddCol(DeleteRec), -] +]; export const colAttivita = [ AddCol({ @@ -1645,7 +2586,10 @@ export const colAttivita = [ fieldtype: costanti.FieldType.select, required: true, jointable: getTabSector(), - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, visible: true, icon: 'category', numpag_carousel: 4, @@ -1660,16 +2604,27 @@ export const colAttivita = [ filter_field: 'idSector', noshowlabel: true, icon: 'engineering', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, allowNewValue: false, required: false, sortable: false, }), AddCol({ - name: 'note', label_trans: 'attivita.note', fieldtype: costanti.FieldType.html, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, - titlepopupedit: 'Dettagli', field_extra1: 'username', subfield_extra1: '', + name: 'note', + label_trans: 'attivita.note', + fieldtype: costanti.FieldType.html, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, + titlepopupedit: 'Dettagli', + field_extra1: 'username', + subfield_extra1: '', required: false, isadvanced_field: true, numpag_carousel: 3, @@ -1678,7 +2633,11 @@ export const colAttivita = [ name: 'coordinate_gps', label_trans: 'attivita.coordinate_gps', fieldtype: costanti.FieldType.coordinates, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, required: false, }), AddCol({ @@ -1689,7 +2648,11 @@ export const colAttivita = [ tablesel: 'cities', noshowlabel: true, icon: 'fas fa-map-marker-alt', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, remote_table: 'mycities', remote_key: '_id', remote_field: 'comune', @@ -1698,11 +2661,13 @@ export const colAttivita = [ numpag_carousel: 2, }), AddCol({ - name: 'date_updated', label_trans: 'reg.pub_updated', fieldtype: costanti.FieldType.date, + name: 'date_updated', + label_trans: 'reg.pub_updated', + fieldtype: costanti.FieldType.date, required: false, visible: false, sortable: true, - showWhen: 0 + showWhen: 0, }), AddCol({ @@ -1713,16 +2678,29 @@ export const colAttivita = [ fieldtype: costanti.FieldType.username_chip, link: '', noshowlabel: true, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, }), AddCol({ - name: 'date_pub', label_trans: 'products.date_pub', + name: 'date_pub', + label_trans: 'products.date_pub', fieldtype: costanti.FieldType.onlydate, foredit: false, noshowlabel: true, }), - AddCol({ name: 'email', label_trans: 'attivita.email', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'cell_phone', label_trans: 'attivita.cell_phone', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'email', + label_trans: 'attivita.email', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'cell_phone', + label_trans: 'attivita.cell_phone', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'whatsapp', label_trans: 'attivita.whatsapp', @@ -1739,7 +2717,8 @@ export const colAttivita = [ label_trans: 'attivita.logo', fieldtype: costanti.FieldType.imagerec, jointable: '', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, isadvanced_field: false, }), AddCol({ @@ -1747,27 +2726,26 @@ export const colAttivita = [ label_trans: 'attivita.foto', fieldtype: costanti.FieldType.listimages, jointable: '', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, isadvanced_field: false, }), - AddCol({ - name: 'date_updated', label_trans: 'reg.pub_updated', fieldtype: costanti.FieldType.date, + name: 'date_updated', + label_trans: 'reg.pub_updated', + fieldtype: costanti.FieldType.date, required: false, visible: false, sortable: true, - showWhen: 0 + showWhen: 0, }), AddCol(DuplicateRec), AddCol(ModifRec), AddCol(DeleteRec), //++Todo: Aggiungere ORARI di Servizio - - -] - +]; export const colmySkills = [ AddCol({ @@ -1778,7 +2756,11 @@ export const colmySkills = [ tablesel: 'cities', noshowlabel: true, icon: 'fas fa-map-marker-alt', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, remote_table: 'mycities', remote_key: '_id', remote_field: 'comune', @@ -1792,7 +2774,8 @@ export const colmySkills = [ fieldtype: costanti.FieldType.multioption, required: true, jointable: 'adtypes', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, icon: 'fas fa-bullhorn', noshowlabel: true, numpag_carousel: 1, @@ -1804,7 +2787,11 @@ export const colmySkills = [ label_trans: 'statusSkill.name', fieldtype: costanti.FieldType.multioption, jointable: 'statusSkills', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, icon: 'mood', required: true, @@ -1821,13 +2808,21 @@ export const colmySkills = [ fieldtype: costanti.FieldType.username_chip, link: '/my/username', noshowlabel: true, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, }), AddCol({ name: 'descr', label_trans: 'proj.shortdescr', fieldtype: costanti.FieldType.string, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, maxlength: 120, required: true, @@ -1840,14 +2835,25 @@ export const colmySkills = [ fieldtype: costanti.FieldType.listimages, jointable: '', showpicprofile_ifnotset: true, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, isadvanced_field: false, numpag_carousel: 6, }), AddCol({ - name: 'note', label_trans: 'proj.descrapprof', fieldtype: costanti.FieldType.html, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, - titlepopupedit: 'Dettagli', field_extra1: 'username', subfield_extra1: '', + name: 'note', + label_trans: 'proj.descrapprof', + fieldtype: costanti.FieldType.html, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, + titlepopupedit: 'Dettagli', + field_extra1: 'username', + subfield_extra1: '', required: false, numpag_carousel: 3, }), @@ -1857,7 +2863,10 @@ export const colmySkills = [ fieldtype: costanti.FieldType.select, required: true, jointable: getTabSector(), - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, visible: true, icon: 'category', numpag_carousel: 4, @@ -1872,7 +2881,11 @@ export const colmySkills = [ noshowlabel: true, addnone: true, icon: 'engineering', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, allowNewValue: false, required: false, numpag_carousel: 4, @@ -1882,7 +2895,11 @@ export const colmySkills = [ label_trans: 'contribtype.name', fieldtype: costanti.FieldType.multiselect, jointable: 'contribtypes', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, icon: 'fas fa-hand-holding', // icon: 'fas fa-hands-helping', @@ -1912,13 +2929,22 @@ export const colmySkills = [ fieldtype: costanti.FieldType.select, jointable: 'pub_to_share', icon: 'fas fa-users', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, numpag_carousel: 2, isadvanced_field: true, }), AddCol({ - name: 'website', label_trans: 'reg.website', fieldtype: costanti.FieldType.link, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + name: 'website', + label_trans: 'reg.website', + fieldtype: costanti.FieldType.link, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, numpag_carousel: 6, isadvanced_field: true, }), @@ -1935,17 +2961,19 @@ export const colmySkills = [ numpag_carousel: 7, }),*/ AddCol({ - name: 'date_created', label_trans: 'event.dateCreated', fieldtype: costanti.FieldType.onlydate, + name: 'date_created', + label_trans: 'event.dateCreated', + fieldtype: costanti.FieldType.onlydate, required: false, visible: false, sortable: true, - showWhen: 0 + showWhen: 0, }), // **ADDFIELD_MYSKILL AddCol(DuplicateRec), AddCol(ModifRec), AddCol(DeleteRec), -] +]; export const colmyHosp = [ AddCol({ @@ -1956,7 +2984,11 @@ export const colmyHosp = [ fieldtype: costanti.FieldType.username_chip, link: '/my/username', noshowlabel: true, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, sortable: false, }), AddCol({ @@ -1967,7 +2999,11 @@ export const colmyHosp = [ tablesel: 'cities', noshowlabel: true, icon: 'fas fa-map-marker-alt', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, remote_table: 'mycities', remote_key: '_id', remote_field: 'comune', @@ -1976,8 +3012,11 @@ export const colmyHosp = [ }), AddCol({ - name: 'visibile', label_trans: 'hosps.visibile', fieldtype: costanti.FieldType.boolean, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + name: 'visibile', + label_trans: 'hosps.visibile', + fieldtype: costanti.FieldType.boolean, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, }), AddCol({ @@ -1986,7 +3025,8 @@ export const colmyHosp = [ fieldtype: costanti.FieldType.multioption, required: true, jointable: 'adtypes', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit, icon: 'fas fa-bullhorn', noshowlabel: true, numpag_carousel: 1, @@ -1999,7 +3039,10 @@ export const colmyHosp = [ fieldtype: costanti.FieldType.select, required: true, jointable: 'typehosps', // toolsext.TABTYPEHOSP, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, visible: true, icon: 'category', sortable: false, @@ -2011,7 +3054,10 @@ export const colmyHosp = [ fieldtype: costanti.FieldType.select, required: true, jointable: 'people', //toolsext.TABPEOPLE, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, visible: true, icon: 'category', sortable: false, @@ -2022,7 +3068,11 @@ export const colmyHosp = [ label_trans: 'hosps.accomodation.title', fieldtype: costanti.FieldType.listobj, jointable: '', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, sortable: false, }), AddCol({ @@ -2030,7 +3080,11 @@ export const colmyHosp = [ label_trans: 'hosps.preferences', fieldtype: costanti.FieldType.multiselect, jointable: 'hosps_preferences', //'hosps_preferences', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, icon: 'fas fa-asterisk', // icon: 'fas fa-hands-helping', @@ -2051,16 +3105,27 @@ export const colmyHosp = [ name: 'descr', label_trans: 'proj.shortdescr', fieldtype: costanti.FieldType.string, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, maxlength: 120, required: true, sortable: false, }), AddCol({ - name: 'note', label_trans: 'proj.descrapprof', fieldtype: costanti.FieldType.html, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, - titlepopupedit: 'Dettagli', field_extra1: 'username', subfield_extra1: '', + name: 'note', + label_trans: 'proj.descrapprof', + fieldtype: costanti.FieldType.html, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, + titlepopupedit: 'Dettagli', + field_extra1: 'username', + subfield_extra1: '', required: false, sortable: false, }), @@ -2069,7 +3134,11 @@ export const colmyHosp = [ label_trans: 'contribtype.name', fieldtype: costanti.FieldType.multiselect, jointable: 'contribtypes', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, icon: 'fas fa-hand-holding', // icon: 'fas fa-hands-helping', @@ -2081,7 +3150,11 @@ export const colmyHosp = [ fieldtype: costanti.FieldType.listimages, jointable: '', showpicprofile_ifnotset: true, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, sortable: false, }), AddCol({ @@ -2093,8 +3166,13 @@ export const colmyHosp = [ sortable: false, }), AddCol({ - name: 'link_maplocation', label_trans: 'reg.link_maplocation', fieldtype: costanti.FieldType.link, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + name: 'link_maplocation', + label_trans: 'reg.link_maplocation', + fieldtype: costanti.FieldType.link, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, sortable: false, isadvanced_field: true, }), @@ -2104,26 +3182,37 @@ export const colmyHosp = [ fieldtype: costanti.FieldType.select, jointable: 'pub_to_share', icon: 'fas fa-users', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, isadvanced_field: true, }), AddCol({ - name: 'website', label_trans: 'reg.website', fieldtype: costanti.FieldType.link, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + name: 'website', + label_trans: 'reg.website', + fieldtype: costanti.FieldType.link, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, sortable: false, isadvanced_field: true, }), AddCol({ - name: 'date_created', label_trans: 'event.dateCreated', fieldtype: costanti.FieldType.onlydate, + name: 'date_created', + label_trans: 'event.dateCreated', + fieldtype: costanti.FieldType.onlydate, required: false, visible: false, sortable: true, - showWhen: 0 + showWhen: 0, }), AddCol(DuplicateRec), AddCol(ModifRec), AddCol(DeleteRec), -] +]; export const colmyBachecas = [ AddCol({ @@ -2131,7 +3220,11 @@ export const colmyBachecas = [ label_trans: 'statusSkill.name', fieldtype: costanti.FieldType.multioption, jointable: 'statusSkills', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, icon: 'mood', sortable: false, @@ -2141,7 +3234,11 @@ export const colmyBachecas = [ name: 'descr', label_trans: 'proj.shortdescr', fieldtype: costanti.FieldType.string, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, maxlength: 120, required: true, @@ -2153,7 +3250,11 @@ export const colmyBachecas = [ fieldtype: costanti.FieldType.listimages, jointable: '', showpicprofile_ifnotset: true, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, sortable: false, }), @@ -2165,7 +3266,11 @@ export const colmyBachecas = [ fieldtype: costanti.FieldType.username_chip, link: '/my/username', noshowlabel: true, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, sortable: false, }), AddCol({ @@ -2177,30 +3282,28 @@ export const colmyBachecas = [ link: '/mygrp/groupname', noshowlabel: true, }), - AddCol( - { - name: 'dateTimeStart', - label_trans: 'event.dateTimeStart', - // jointable: toolsext.TABCALALLDATE, - fieldtype: costanti.FieldType.date, - // fieldtype: costanti.FieldType.select, - // fieldtype_real: costanti.FieldType.onlydate, - // fieldtype: costanti.FieldType.onlydate, - icon: 'fas fa-calendar-day', - required: true, - }), - AddCol( - { - name: 'dateTimeEnd', - label_trans: 'event.dateTimeEnd', - fieldtype: costanti.FieldType.date, - // jointable: toolsext.TABCALALLDATE, - // fieldtype: costanti.FieldType.select, - // fieldtype_real: costanti.FieldType.onlydate, - icon: 'fas fa-calendar-day', - sortable: false, - required: true, - }), + AddCol({ + name: 'dateTimeStart', + label_trans: 'event.dateTimeStart', + // jointable: toolsext.TABCALALLDATE, + fieldtype: costanti.FieldType.date, + // fieldtype: costanti.FieldType.select, + // fieldtype_real: costanti.FieldType.onlydate, + // fieldtype: costanti.FieldType.onlydate, + icon: 'fas fa-calendar-day', + required: true, + }), + AddCol({ + name: 'dateTimeEnd', + label_trans: 'event.dateTimeEnd', + fieldtype: costanti.FieldType.date, + // jointable: toolsext.TABCALALLDATE, + // fieldtype: costanti.FieldType.select, + // fieldtype_real: costanti.FieldType.onlydate, + icon: 'fas fa-calendar-day', + sortable: false, + required: true, + }), AddCol({ name: 'idCity', label_trans: 'skill.cityorprovince', @@ -2209,7 +3312,11 @@ export const colmyBachecas = [ tablesel: 'cities', noshowlabel: true, icon: 'fas fa-map-marker-alt', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, remote_table: 'mycities', remote_key: '_id', remote_field: 'comune', @@ -2222,7 +3329,10 @@ export const colmyBachecas = [ fieldtype: costanti.FieldType.select, required: true, jointable: getTabSector(), - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, visible: true, icon: 'category', sortable: false, @@ -2237,15 +3347,26 @@ export const colmyBachecas = [ filter_field: 'idSector', noshowlabel: true, icon: 'engineering', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView, allowNewValue: false, required: false, sortable: false, }), AddCol({ - name: 'note', label_trans: 'proj.descrapprof', fieldtype: costanti.FieldType.html, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, - titlepopupedit: 'Dettagli', field_extra1: 'username', subfield_extra1: '', + name: 'note', + label_trans: 'proj.descrapprof', + fieldtype: costanti.FieldType.html, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, + titlepopupedit: 'Dettagli', + field_extra1: 'username', + subfield_extra1: '', required: false, sortable: false, }), @@ -2270,14 +3391,24 @@ export const colmyBachecas = [ sortable: false, }), AddCol({ - name: 'link_maplocation', label_trans: 'reg.link_maplocation', fieldtype: costanti.FieldType.link, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + name: 'link_maplocation', + label_trans: 'reg.link_maplocation', + fieldtype: costanti.FieldType.link, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, sortable: false, isadvanced_field: true, }), AddCol({ - name: 'website', label_trans: 'reg.website', fieldtype: costanti.FieldType.link, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + name: 'website', + label_trans: 'reg.website', + fieldtype: costanti.FieldType.link, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, sortable: false, isadvanced_field: true, }), @@ -2300,11 +3431,15 @@ export const colmyBachecas = [ isadvanced_field: true, }), AddCol({ - name: 'min_partecip', label_trans: 'event.min_partecip', fieldtype: costanti.FieldType.number, + name: 'min_partecip', + label_trans: 'event.min_partecip', + fieldtype: costanti.FieldType.number, isadvanced_field: true, }), AddCol({ - name: 'max_partecip', label_trans: 'event.max_partecip', fieldtype: costanti.FieldType.number, + name: 'max_partecip', + label_trans: 'event.max_partecip', + fieldtype: costanti.FieldType.number, isadvanced_field: true, }), AddCol({ @@ -2312,7 +3447,11 @@ export const colmyBachecas = [ label_trans: 'contribtype.name', fieldtype: costanti.FieldType.multiselect, jointable: 'contribtypes', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, icon: 'fas fa-hand-holding', // icon: 'fas fa-hands-helping', @@ -2320,7 +3459,9 @@ export const colmyBachecas = [ sortable: false, }), AddCol({ - name: 'contribstr', label_trans: 'event.contribstr', fieldtype: costanti.FieldType.string, + name: 'contribstr', + label_trans: 'event.contribstr', + fieldtype: costanti.FieldType.string, isadvanced_field: true, }), AddCol({ @@ -2332,17 +3473,19 @@ export const colmyBachecas = [ isadvanced_field: true, }), AddCol({ - name: 'date_created', label_trans: 'event.dateCreated', fieldtype: costanti.FieldType.onlydate, + name: 'date_created', + label_trans: 'event.dateCreated', + fieldtype: costanti.FieldType.onlydate, required: false, visible: false, sortable: true, - showWhen: 0 + showWhen: 0, }), // **ADDFIELD_MYBACHECAS AddCol(DuplicateRec), AddCol(ModifRec), AddCol(DeleteRec), -] +]; export const colStatusSkills = [ AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }), @@ -2352,49 +3495,181 @@ export const colStatusSkills = [ AddCol({ name: 'icon', label_trans: 'pages.icon' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableSites = [ - AddCol({ name: 'active', label_trans: 'sites.active', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'idapp', label_trans: 'sites.idapp', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'name', label_trans: 'sites.name', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'adminemail', label_trans: 'sites.adminemail', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'manageremail', label_trans: 'sites.manageremail', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'replyTo', label_trans: 'sites.replyTo', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'host', label_trans: 'sites.host', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'host_ip', label_trans: 'sites.host_ip', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'host_test', label_trans: 'sites.host_test', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'host_test_ip', label_trans: 'sites.host_test_ip', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'host_testapi', label_trans: 'sites.host_testapi', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'host_testapi_ip', label_trans: 'sites.host_testapi_ip', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'cf_token', label_trans: 'sites.cf_token', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'cf_zoneId', label_trans: 'sites.cf_zoneId', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'servermail', label_trans: 'sites.servermail', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'enable_servermail', label_trans: 'sites.enable_servermail', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'portapp', label_trans: 'sites.portapp', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'active', + label_trans: 'sites.active', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'idapp', + label_trans: 'sites.idapp', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'name', + label_trans: 'sites.name', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'adminemail', + label_trans: 'sites.adminemail', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'manageremail', + label_trans: 'sites.manageremail', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'replyTo', + label_trans: 'sites.replyTo', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'host', + label_trans: 'sites.host', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'host_ip', + label_trans: 'sites.host_ip', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'host_test', + label_trans: 'sites.host_test', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'host_test_ip', + label_trans: 'sites.host_test_ip', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'host_testapi', + label_trans: 'sites.host_testapi', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'host_testapi_ip', + label_trans: 'sites.host_testapi_ip', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'cf_token', + label_trans: 'sites.cf_token', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'cf_zoneId', + label_trans: 'sites.cf_zoneId', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'servermail', + label_trans: 'sites.servermail', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'enable_servermail', + label_trans: 'sites.enable_servermail', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'portapp', + label_trans: 'sites.portapp', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'dir', label_trans: 'sites.dir' }), - AddCol({ name: 'dir_test', label_trans: 'sites.dir_test', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'email_from', label_trans: 'sites.email_from', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'email_pwd', label_trans: 'sites.email_pwd', fieldtype: costanti.FieldType.password }), - AddCol({ name: 'telegram_key', label_trans: 'sites.telegram_key', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'telegram_bot_name', label_trans: 'sites.telegram_bot_name', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'telegram_support_chat', label_trans: 'sites.telegram_support_chat', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'telegram_key_test', label_trans: 'sites.telegram_key_test', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'load_process_telegram_test', label_trans: 'sites.load_process_telegram_test', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'load_process_telegramt', label_trans: 'sites.load_process_telegram', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'dir_test', + label_trans: 'sites.dir_test', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'email_from', + label_trans: 'sites.email_from', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'email_pwd', + label_trans: 'sites.email_pwd', + fieldtype: costanti.FieldType.password, + }), + AddCol({ + name: 'telegram_key', + label_trans: 'sites.telegram_key', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'telegram_bot_name', + label_trans: 'sites.telegram_bot_name', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'telegram_support_chat', + label_trans: 'sites.telegram_support_chat', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'telegram_key_test', + label_trans: 'sites.telegram_key_test', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'load_process_telegram_test', + label_trans: 'sites.load_process_telegram_test', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'load_process_telegramt', + label_trans: 'sites.load_process_telegram', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'telegram_bot_name_test', label_trans: 'sites.telegram_bot_name_test', - fieldtype: costanti.FieldType.string + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'pathreg_add', + label_trans: 'sites.pathreg_add', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'ask_to_verify_reg', + label_trans: 'sites.ask_to_verify_reg', + fieldtype: costanti.FieldType.boolean, }), - AddCol({ name: 'pathreg_add', label_trans: 'sites.pathreg_add', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'ask_to_verify_reg', label_trans: 'sites.ask_to_verify_reg', fieldtype: costanti.FieldType.boolean }), AddCol({ name: 'who', label_trans: 'sites.who', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'status', label_trans: 'sites.status', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'note', label_trans: 'sites.note', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'domain_provider', label_trans: 'sites.domain_provider', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'domain_expiring', label_trans: 'reg.domain_expiring', fieldtype: costanti.FieldType.onlydate }), - AddCol({ name: 'next_payment', label_trans: 'reg.next_payment', fieldtype: costanti.FieldType.onlydate }), + AddCol({ + name: 'status', + label_trans: 'sites.status', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'note', + label_trans: 'sites.note', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'domain_provider', + label_trans: 'sites.domain_provider', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'domain_expiring', + label_trans: 'reg.domain_expiring', + fieldtype: costanti.FieldType.onlydate, + }), + AddCol({ + name: 'next_payment', + label_trans: 'reg.next_payment', + fieldtype: costanti.FieldType.onlydate, + }), AddCol({ name: 'description', label_trans: 'reg.description' }), AddCol({ name: 'keywords', label_trans: 'reg.keywords' }), // Configuration @@ -2563,54 +3838,146 @@ export const colTableSites = [ }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableIscrittiConacreis = [ - AddCol({ name: 'annoTesseramento', label_trans: 'reg.annoTesseramento', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'numTesseraInterna', label_trans: 'reg.numTesseraInterna', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'codiceConacreis', label_trans: 'reg.codiceConacreis', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'annoTesseramento', + label_trans: 'reg.annoTesseramento', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'numTesseraInterna', + label_trans: 'reg.numTesseraInterna', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'codiceConacreis', + label_trans: 'reg.codiceConacreis', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'metodo_pagamento', label_trans: 'reg.metodo_pagamento', fieldtype: costanti.FieldType.select, jointable: 'metodo_pagamento', }), - AddCol({ name: 'ha_pagato', label_trans: 'reg.ha_pagato', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'ha_pagato', + label_trans: 'reg.ha_pagato', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'name', label_trans: 'reg.name', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'surname', label_trans: 'reg.surname', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'dateofreg', label_trans: 'reg.dateofreg', fieldtype: costanti.FieldType.onlydate }), - AddCol({ name: 'dateofapproved', label_trans: 'reg.dateofapproved', fieldtype: costanti.FieldType.onlydate }), - AddCol({ name: 'email', label_trans: 'reg.email', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'fiscalcode', label_trans: 'reg.fiscalcode', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'residency_address', label_trans: 'reg.residency_address', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'residency_city', label_trans: 'reg.residency_city', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'residency_province', label_trans: 'reg.residency_province', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'residency_country', label_trans: 'reg.residency_country', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'residency_zipcode', label_trans: 'reg.residency_zipcode', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'dateofbirth', label_trans: 'reg.dateofbirth', fieldtype: costanti.FieldType.onlydate }), - AddCol({ name: 'born_city', label_trans: 'reg.born_city', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'born_province', label_trans: 'reg.born_province', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'born_country', label_trans: 'reg.born_country', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'cell_phone', label_trans: 'reg.cell_phone', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'surname', + label_trans: 'reg.surname', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'dateofreg', + label_trans: 'reg.dateofreg', + fieldtype: costanti.FieldType.onlydate, + }), + AddCol({ + name: 'dateofapproved', + label_trans: 'reg.dateofapproved', + fieldtype: costanti.FieldType.onlydate, + }), + AddCol({ + name: 'email', + label_trans: 'reg.email', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'fiscalcode', + label_trans: 'reg.fiscalcode', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'residency_address', + label_trans: 'reg.residency_address', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'residency_city', + label_trans: 'reg.residency_city', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'residency_province', + label_trans: 'reg.residency_province', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'residency_country', + label_trans: 'reg.residency_country', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'residency_zipcode', + label_trans: 'reg.residency_zipcode', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'dateofbirth', + label_trans: 'reg.dateofbirth', + fieldtype: costanti.FieldType.onlydate, + }), + AddCol({ + name: 'born_city', + label_trans: 'reg.born_city', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'born_province', + label_trans: 'reg.born_province', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'born_country', + label_trans: 'reg.born_country', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'cell_phone', + label_trans: 'reg.cell_phone', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'iscrizione_compilata', label_trans: 'reg.iscrizione_compilata', - fieldtype: costanti.FieldType.boolean + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'motivazioni', + label_trans: 'reg.motivazioni', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'newsletter_on', + label_trans: 'reg.newsletter_on', + fieldtype: costanti.FieldType.boolean, }), - AddCol({ name: 'motivazioni', label_trans: 'reg.motivazioni', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'newsletter_on', label_trans: 'reg.newsletter_on', fieldtype: costanti.FieldType.boolean }), AddCol({ name: 'competenze_professionalita', label_trans: 'reg.competenze_professionalita', fieldtype: costanti.FieldType.string, }), - AddCol({ name: 'cosa_potrei_offrire', label_trans: 'reg.cosa_potrei_offrire', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'cosa_potrei_offrire', + label_trans: 'reg.cosa_potrei_offrire', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'cosa_vorrei_ricevere', label_trans: 'reg.cosa_vorrei_ricevere', - fieldtype: costanti.FieldType.string + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'altre_comunicazioni', + label_trans: 'reg.altre_comunicazioni', + fieldtype: costanti.FieldType.string, }), - AddCol({ name: 'altre_comunicazioni', label_trans: 'reg.altre_comunicazioni', fieldtype: costanti.FieldType.string }), AddCol({ name: 'come_ci_hai_conosciuto', label_trans: 'reg.come_ci_hai_conosciuto', @@ -2619,41 +3986,138 @@ export const colTableIscrittiConacreis = [ AddCol({ name: 'note', label_trans: 'reg.note', fieldtype: costanti.FieldType.string }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableIscrittiArcadei = [ - AddCol({ name: 'annoTesseramento', label_trans: 'reg.annoTesseramento', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'numTesseraInterna', label_trans: 'reg.numTesseraInterna', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'annoTesseramento', + label_trans: 'reg.annoTesseramento', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'numTesseraInterna', + label_trans: 'reg.numTesseraInterna', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'metodo_pagamento', label_trans: 'reg.metodo_pagamento', fieldtype: costanti.FieldType.select, jointable: 'metodo_pagamento', }), - AddCol({ name: 'ha_pagato', label_trans: 'reg.ha_pagato', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'ha_pagato', + label_trans: 'reg.ha_pagato', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'name', label_trans: 'reg.name', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'surname', label_trans: 'reg.surname', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'dateofreg', label_trans: 'reg.dateofreg', fieldtype: costanti.FieldType.onlydate }), - AddCol({ name: 'dateofapproved', label_trans: 'reg.dateofapproved', fieldtype: costanti.FieldType.onlydate }), - AddCol({ name: 'email', label_trans: 'reg.email', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'email2', label_trans: 'reg.email2', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'surname', + label_trans: 'reg.surname', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'dateofreg', + label_trans: 'reg.dateofreg', + fieldtype: costanti.FieldType.onlydate, + }), + AddCol({ + name: 'dateofapproved', + label_trans: 'reg.dateofapproved', + fieldtype: costanti.FieldType.onlydate, + }), + AddCol({ + name: 'email', + label_trans: 'reg.email', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'email2', + label_trans: 'reg.email2', + fieldtype: costanti.FieldType.string, + }), // AddCol({ name: 'fiscalcode', label_trans: 'reg.fiscalcode', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'residency_address', label_trans: 'reg.residency_address', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'residency_city', label_trans: 'reg.residency_city', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'residency_province', label_trans: 'reg.residency_province', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'residency_country', label_trans: 'reg.residency_country', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'residency_zipcode', label_trans: 'reg.residency_zipcode', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'dateofbirth', label_trans: 'reg.dateofbirth', fieldtype: costanti.FieldType.onlydate }), - AddCol({ name: 'born_city', label_trans: 'reg.born_city', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'born_province', label_trans: 'reg.born_province', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'born_country', label_trans: 'reg.born_country', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'cell_phone', label_trans: 'reg.cell_phone', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'cell_phone2', label_trans: 'reg.cell_phone2', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'doctype', label_trans: 'reg.doctype', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'documentnumber', label_trans: 'reg.documentnumber', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'quota_versata', label_trans: 'reg.quota_versata', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'categorie_interesse', label_trans: 'reg.categorie_interesse', fieldtype: costanti.FieldType.multiselect, jointable: 'cat_interesse_arcadei', }), - AddCol({ name: 'altre_comunicazioni', label_trans: 'reg.altre_comunicazioni', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'residency_address', + label_trans: 'reg.residency_address', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'residency_city', + label_trans: 'reg.residency_city', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'residency_province', + label_trans: 'reg.residency_province', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'residency_country', + label_trans: 'reg.residency_country', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'residency_zipcode', + label_trans: 'reg.residency_zipcode', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'dateofbirth', + label_trans: 'reg.dateofbirth', + fieldtype: costanti.FieldType.onlydate, + }), + AddCol({ + name: 'born_city', + label_trans: 'reg.born_city', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'born_province', + label_trans: 'reg.born_province', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'born_country', + label_trans: 'reg.born_country', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'cell_phone', + label_trans: 'reg.cell_phone', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'cell_phone2', + label_trans: 'reg.cell_phone2', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'doctype', + label_trans: 'reg.doctype', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'documentnumber', + label_trans: 'reg.documentnumber', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'quota_versata', + label_trans: 'reg.quota_versata', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'categorie_interesse', + label_trans: 'reg.categorie_interesse', + fieldtype: costanti.FieldType.multiselect, + jointable: 'cat_interesse_arcadei', + }), + AddCol({ + name: 'altre_comunicazioni', + label_trans: 'reg.altre_comunicazioni', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'come_ci_hai_conosciuto', label_trans: 'reg.come_ci_hai_conosciuto', @@ -2662,66 +4126,152 @@ export const colTableIscrittiArcadei = [ AddCol({ name: 'iscrizione_compilata', label_trans: 'reg.iscrizione_compilata', - fieldtype: costanti.FieldType.boolean + fieldtype: costanti.FieldType.boolean, }), AddCol({ name: 'note', label_trans: 'reg.note', fieldtype: costanti.FieldType.string }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableGestoreOrdini = [ AddCol({ name: 'name', label_trans: 'products.name' }), - AddCol({ name: 'totalQty', label_trans: 'orderscart.totalQty', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'totalQtyPreordered', label_trans: 'orderscart.totalQtyPreordered', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'price', label_trans: 'order.price', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'quantity', label_trans: 'order.quantity', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'quantitypreordered', label_trans: 'order.quantitypreordered', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'TotalPriceProduct', label_trans: 'orderscart.TotalPriceProduct', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'TotalPriceProduct_Sell', label_trans: 'orderscart.TotalPriceProduct_Sell', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'TotalPriceProductCalc', label_trans: 'orderscart.TotalPriceProductCalc', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'status', label_trans: 'orderscart.status', fieldtype: costanti.FieldType.number }), -] + AddCol({ + name: 'totalQty', + label_trans: 'orderscart.totalQty', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'totalQtyPreordered', + label_trans: 'orderscart.totalQtyPreordered', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'price', + label_trans: 'order.price', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'quantity', + label_trans: 'order.quantity', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'quantitypreordered', + label_trans: 'order.quantitypreordered', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'TotalPriceProduct', + label_trans: 'orderscart.TotalPriceProduct', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'TotalPriceProduct_Sell', + label_trans: 'orderscart.TotalPriceProduct_Sell', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'TotalPriceProductCalc', + label_trans: 'orderscart.TotalPriceProductCalc', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'status', + label_trans: 'orderscart.status', + fieldtype: costanti.FieldType.number, + }), +]; export const colTableVariazioni = [ - AddCol({ name: '_id', label_trans: 'catalogo.id', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'price', label_trans: 'catalogo.prezzo', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'sale_price', label_trans: 'catalogo.prezzo_scontato', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'quantita', label_trans: 'catalogo.quantita', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'availability', label_trans: 'catalogo.availability', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'formato', label_trans: 'catalogo.formato', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'misure', label_trans: 'catalogo.misure', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'ristampa', label_trans: 'catalogo.ristampa', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'edizione', label_trans: 'catalogo.edizione', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'tipologia', label_trans: 'catalogo.tipologia', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'edizione', label_trans: 'catalogo.edizione', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'preOrderDate', label_trans: 'catalogo.preOrderDate', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'addtocart_link', label_trans: 'catalogo.addtocart_link', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'eta', label_trans: 'catalogo.eta', fieldtype: costanti.FieldType.string }), -] - -export const colTableProductInfosShort = [ - AddCol({ name: 'code', label_trans: 'products.code', required: true }), - AddCol({ name: 'name', label_trans: 'products.name' }), - AddCol({ name: 'description', label_trans: 'products.description', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'imagefile', label_trans: 'products.img', fieldtype: costanti.FieldType.imgfile_sfuso, path: 'products/' }), - AddCol({ - name: 'idCatProds', - label_trans: 'products.category', - fieldtype: costanti.FieldType.multiselect, - jointable: 'catprods', + AddCol({ + name: '_id', + label_trans: 'catalogo.id', + fieldtype: costanti.FieldType.string, }), - AddCol(DeleteRec), - AddCol(DuplicateRec), -] + AddCol({ + name: 'price', + label_trans: 'catalogo.prezzo', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'sale_price', + label_trans: 'catalogo.prezzo_scontato', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'quantita', + label_trans: 'catalogo.quantita', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'availability', + label_trans: 'catalogo.availability', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'formato', + label_trans: 'catalogo.formato', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'misure', + label_trans: 'catalogo.misure', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'ristampa', + label_trans: 'catalogo.ristampa', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'edizione', + label_trans: 'catalogo.edizione', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'tipologia', + label_trans: 'catalogo.tipologia', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'edizione', + label_trans: 'catalogo.edizione', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'preOrderDate', + label_trans: 'catalogo.preOrderDate', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'addtocart_link', + label_trans: 'catalogo.addtocart_link', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'eta', + label_trans: 'catalogo.eta', + fieldtype: costanti.FieldType.string, + }), +]; export const colTableProductInfos = [ AddCol({ name: 'code', label_trans: 'products.code', required: true }), AddCol({ name: 'codice_EAN', label_trans: 'products.codice_EAN' }), AddCol({ name: 'barcode', label_trans: 'products.barcode' }), AddCol({ name: 'name', label_trans: 'products.name' }), - AddCol({ name: 'description', label_trans: 'products.description', fieldtype: costanti.FieldType.html }), + AddCol({ + name: 'description', + label_trans: 'products.description', + fieldtype: costanti.FieldType.html, + }), AddCol({ name: 'icon', label_trans: 'products.icon' }), - AddCol({ name: 'imagefile', label_trans: 'products.img', fieldtype: costanti.FieldType.image_and_filename, path: 'products/' }), + AddCol({ + name: 'imagefile', + label_trans: 'products.img', + fieldtype: costanti.FieldType.image_and_filename, + path: 'products/', + }), AddCol({ name: 'department', label_trans: 'products.department', @@ -2742,71 +4292,203 @@ export const colTableProductInfos = [ }), AddCol({ name: 'color', label_trans: 'products.color' }), AddCol({ name: 'size', label_trans: 'products.size' }), - AddCol({ name: 'weight', label_trans: 'products.weight', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'weight_lordo', label_trans: 'products.weight_lordo', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'vegan', label_trans: 'products.vegan', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'sfuso', label_trans: 'products.sfuso', fieldtype: costanti.FieldType.boolean }), AddCol({ - name: 'unit', label_trans: 'products.unit', - fieldtype: costanti.FieldType.select, jointable: 'units', + name: 'weight', + label_trans: 'products.weight', + fieldtype: costanti.FieldType.number, }), AddCol({ - name: 'unit_lordo', label_trans: 'products.unit_lordo', - fieldtype: costanti.FieldType.select, jointable: 'units', + name: 'weight_lordo', + label_trans: 'products.weight_lordo', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'vegan', + label_trans: 'products.vegan', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'sfuso', + label_trans: 'products.sfuso', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'unit', + label_trans: 'products.unit', + fieldtype: costanti.FieldType.select, + jointable: 'units', + }), + AddCol({ + name: 'unit_lordo', + label_trans: 'products.unit_lordo', + fieldtype: costanti.FieldType.select, + jointable: 'units', + }), + AddCol({ + name: 'stars', + label_trans: 'products.stars', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'date', + label_trans: 'products.date', + fieldtype: costanti.FieldType.date, }), - AddCol({ name: 'stars', label_trans: 'products.stars', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'date', label_trans: 'products.date', fieldtype: costanti.FieldType.date }), AddCol({ name: 'link_scheda', label_trans: 'products.link_scheda' }), - AddCol({ name: 'ingredienti', label_trans: 'products.ingredienti', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'descrizione_breve_macro', label_trans: 'products.descrizione_breve_macro', fieldtype: costanti.FieldType.editor_nohtml }), - AddCol({ name: 'descrizione_completa_macro', label_trans: 'products.descrizione_completa_macro', fieldtype: costanti.FieldType.editor_nohtml }), - AddCol({ name: 'descr_trafiletto_catalogo', label_trans: 'products.descr_trafiletto_catalogo', fieldtype: costanti.FieldType.editor_nohtml }), - AddCol({ name: 'valori_nutrizionali', label_trans: 'products.valori_nutrizionali', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'author', label_trans: 'products.author', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'collezione', label_trans: 'products.collezione', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'date_pub', label_trans: 'products.date_pub', fieldtype: costanti.FieldType.onlydate }), - AddCol({ name: 'publisher', label_trans: 'products.publisher', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'pagine', label_trans: 'products.pagine', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'note', label_trans: 'products.note', fieldtype: costanti.FieldType.html }), + AddCol({ + name: 'ingredienti', + label_trans: 'products.ingredienti', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'descrizione_breve_macro', + label_trans: 'products.descrizione_breve_macro', + fieldtype: costanti.FieldType.editor_nohtml, + }), + AddCol({ + name: 'descrizione_completa_macro', + label_trans: 'products.descrizione_completa_macro', + fieldtype: costanti.FieldType.editor_nohtml, + }), + AddCol({ + name: 'descr_trafiletto_catalogo', + label_trans: 'products.descr_trafiletto_catalogo', + fieldtype: costanti.FieldType.editor_nohtml, + }), + AddCol({ + name: 'valori_nutrizionali', + label_trans: 'products.valori_nutrizionali', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'author', + label_trans: 'products.author', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'collezione', + label_trans: 'products.collezione', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'date_pub', + label_trans: 'products.date_pub', + fieldtype: costanti.FieldType.onlydate, + }), + AddCol({ + name: 'publisher', + label_trans: 'products.publisher', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'pagine', + label_trans: 'products.pagine', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'note', + label_trans: 'products.note', + fieldtype: costanti.FieldType.html, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableOrdersCart = [ AddCol({ name: '_id', label_trans: 'others.value' }), - AddCol({ name: 'numorder', label_trans: 'orderscart.numorder', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'totalQty', label_trans: 'orderscart.totalQty', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'totalQtyPreordered', label_trans: 'orderscart.totalQtyPreordered', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'totalPrice', label_trans: 'orderscart.totalPrice', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'totalPriceCalc', label_trans: 'orderscart.totalPriceCalc', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'totalPriceIntero', label_trans: 'orderscart.totalPriceIntero', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'status', label_trans: 'orderscart.status', fieldtype: costanti.FieldType.number }), -] + AddCol({ + name: 'numorder', + label_trans: 'orderscart.numorder', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'totalQty', + label_trans: 'orderscart.totalQty', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'totalQtyPreordered', + label_trans: 'orderscart.totalQtyPreordered', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'totalPrice', + label_trans: 'orderscart.totalPrice', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'totalPriceCalc', + label_trans: 'orderscart.totalPriceCalc', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'totalPriceIntero', + label_trans: 'orderscart.totalPriceIntero', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'status', + label_trans: 'orderscart.status', + fieldtype: costanti.FieldType.number, + }), +]; export const colTableProdShort = [ - AddCol({ name: 'active', label_trans: 'products.active', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'name', label_trans: 'products.name' }), - AddCol({ name: 'price', label_trans: 'products.price', fieldtype: costanti.FieldType.number, required: true }), - AddCol({ name: 'price_acquistato', label_trans: 'products.price_acquistato', fieldtype: costanti.FieldType.number, required: true }), AddCol({ - name: 'idProductInfo', - label_trans: 'products.productInfo', - fieldtype: costanti.FieldType.select, - jointable: 'productinfos', + name: 'active', + label_trans: 'products.active', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ name: 'name', label_trans: 'products.name' }), + AddCol({ + name: 'price', + label_trans: 'products.price', + fieldtype: costanti.FieldType.number, + required: true, + }), + AddCol({ + name: 'price_acquistato', + label_trans: 'products.price_acquistato', + fieldtype: costanti.FieldType.number, + required: true, }), -] + AddCol({ name: 'productInfo.code', label_trans: 'products.code', required: true }), + AddCol({ + name: 'productInfo.description', + label_trans: 'products.description', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'productInfo.imagefile', + label_trans: 'products.img', + fieldtype: costanti.FieldType.imgfile_sfuso, + path: 'products/', + }), + AddCol({ + name: 'productInfo.idCatProds', + label_trans: 'products.category', + fieldtype: costanti.FieldType.multiselect, + jointable: 'catprods', + }), + AddCol(DeleteRec), + AddCol(DuplicateRec), +]; export const colTableProducts = [ - AddCol({ name: 'active', label_trans: 'products.active', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'active', + label_trans: 'products.active', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'isbn', label_trans: 'products.isbn' }), AddCol({ name: 'name', label_trans: 'products.name' }), - AddCol({ + /*AddCol({ name: 'idProductInfo', label_trans: 'products.productInfo', fieldtype: costanti.FieldType.select, jointable: 'productinfos', - }), + }),*/ AddCol({ name: 'idProducer', label_trans: 'products.producer', @@ -2837,8 +4519,12 @@ export const colTableProducts = [ fieldtype: costanti.FieldType.multiselect, jointable: 'scontisticas', }), - AddCol({ name: 'price', label_trans: 'products.price', fieldtype: costanti.FieldType.number, required: true }), - + AddCol({ + name: 'price', + label_trans: 'products.price', + fieldtype: costanti.FieldType.number, + required: true, + }), // arrvariazioni /* AddCol({ name: 'sale_price', label_trans: 'products.sale_price', fieldtype: costanti.FieldType.number, required: false }), @@ -2851,86 +4537,115 @@ export const colTableProducts = [ AddCol({ name: 'status', label_trans: 'products.status', fieldtype: costanti.FieldType.string }), */ - AddCol({ name: 'price_acquistato', label_trans: 'products.price_acquistato', fieldtype: costanti.FieldType.number, required: true }), + AddCol({ + name: 'price_acquistato', + label_trans: 'products.price_acquistato', + fieldtype: costanti.FieldType.number, + required: true, + }), AddCol({ name: 'after_price', label_trans: 'products.after_price' }), AddCol({ name: 'minBuyQty', label_trans: 'products.minBuyQty', - fieldtype: costanti.FieldType.number + fieldtype: costanti.FieldType.number, }), AddCol({ name: 'minStepQty', label_trans: 'products.minStepQty', - fieldtype: costanti.FieldType.number + fieldtype: costanti.FieldType.number, }), AddCol({ name: 'maxBookableSinglePersQty', label_trans: 'products.maxBookableSinglePersQty', - fieldtype: costanti.FieldType.number + fieldtype: costanti.FieldType.number, }), AddCol({ name: 'stockQty', label_trans: 'products.stockQty', - fieldtype: costanti.FieldType.number + fieldtype: costanti.FieldType.number, }), AddCol({ name: 'stockBloccatiQty', label_trans: 'products.stockBloccatiQty', - fieldtype: costanti.FieldType.number + fieldtype: costanti.FieldType.number, }), AddCol({ name: 'bookedQtyOrdered', label_trans: 'products.bookedQtyOrdered', - fieldtype: costanti.FieldType.number + fieldtype: costanti.FieldType.number, }), AddCol({ name: 'bookedQtyConfirmed', label_trans: 'products.bookedQtyConfirmed', - fieldtype: costanti.FieldType.number + fieldtype: costanti.FieldType.number, }), AddCol({ name: 'qtyToReachForGas', label_trans: 'ecomm.qtyToReachForGas', - fieldtype: costanti.FieldType.number + fieldtype: costanti.FieldType.number, }), AddCol({ name: 'note', label_trans: 'ecomm.note', - fieldtype: costanti.FieldType.html + fieldtype: costanti.FieldType.html, }), AddCol({ name: 'maxbookableGASQty', label_trans: 'ecomm.maxbookableGASQty', - fieldtype: costanti.FieldType.number + fieldtype: costanti.FieldType.number, }), AddCol({ name: 'bookedGASQtyOrdered', label_trans: 'ecomm.bookedGASQtyOrdered', - fieldtype: costanti.FieldType.number + fieldtype: costanti.FieldType.number, }), AddCol({ name: 'bookableGASBloccatiQty', label_trans: 'ecomm.bookableGASBloccatiQty', - fieldtype: costanti.FieldType.number + fieldtype: costanti.FieldType.number, }), - AddCol({ name: 'canBeShipped', label_trans: 'products.canBeShipped', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'canBeBuyOnline', label_trans: 'products.canBeBuyOnline', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'validaprod', label_trans: 'products.validaprod', fieldtype: costanti.FieldType.verifica }), - AddCol({ name: 'scraped', label_trans: 'products.scraped', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'scraped_error', label_trans: 'products.scraped_error', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'canBeShipped', + label_trans: 'products.canBeShipped', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'canBeBuyOnline', + label_trans: 'products.canBeBuyOnline', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'validaprod', + label_trans: 'products.validaprod', + fieldtype: costanti.FieldType.verifica, + }), + AddCol({ + name: 'scraped', + label_trans: 'products.scraped', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'scraped_error', + label_trans: 'products.scraped_error', + fieldtype: costanti.FieldType.boolean, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; const colcontribtype = [ AddCol({ name: '_id', label_trans: 'others.value' }), AddCol({ name: 'label', label_trans: 'proj.longdescr' }), - AddCol({ name: 'showprice', label_trans: 'event.showprice', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'showprice', + label_trans: 'event.showprice', + fieldtype: costanti.FieldType.boolean, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; const colpaymenttype = [ AddCol({ name: '_id', label_trans: 'others.value' }), @@ -2938,7 +4653,7 @@ const colpaymenttype = [ AddCol({ name: 'label', label_trans: 'proj.longdescr' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; const colworkers = [ AddCol({ name: '_id', label_trans: 'others.value' }), @@ -2947,21 +4662,25 @@ const colworkers = [ AddCol({ name: 'surname', label_trans: 'reg.surname' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; const colflotte = [ AddCol({ name: 'index', label_trans: 'others.value' }), AddCol({ name: 'riga', label_trans: 'reg.riga' }), AddCol({ name: 'col_prima', label_trans: 'ColPrima' }), AddCol({ name: 'col_ultima', label_trans: 'ColUltima' }), -] +]; const colnavi = [ AddCol({ name: '_id', label_trans: 'others.value' }), AddCol({ name: 'idListaIngresso', label_trans: 'idListaIngresso' }), AddCol({ name: 'riga', label_trans: 'reg.riga' }), AddCol({ name: 'col', label_trans: 'reg.col' }), AddCol({ name: 'ind_order', label_trans: 'ind_order' }), - AddCol({ name: 'created', label_trans: 'cal.data', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'created', + label_trans: 'cal.data', + fieldtype: costanti.FieldType.date, + }), // AddCol({ name: 'date_start', label_trans: 'date_start', fieldtype: costanti.FieldType.date }), // AddCol({ name: 'date_gift_chat_open', label_trans: 'date_gift_chat_open', fieldtype: costanti.FieldType.date }), // AddCol({ name: 'link_chat', label_trans: 'reg.link_chat' }), @@ -2972,19 +4691,39 @@ const colnavi = [ fieldtype: costanti.FieldType.boolean, }), // AddCol({ name: 'provvisoria', label_trans: 'reg.provvisoria', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'made_gift', label_trans: 'reg.made_gift', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'received_gift', label_trans: 'reg.received_gift', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'date_made_gift', label_trans: 'date_made_gift', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'made_gift', + label_trans: 'reg.made_gift', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'received_gift', + label_trans: 'reg.received_gift', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'date_made_gift', + label_trans: 'date_made_gift', + fieldtype: costanti.FieldType.date, + }), // AddCol({ name: 'received_gift', label_trans: 'received_gift', fieldtype: costanti.FieldType.boolean }), // AddCol({ name: 'date_received_gift', label_trans: 'date_received_gift', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'offerta_al_fondo', label_trans: 'offerta_al_fondo', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'num_tess', label_trans: 'num_tess', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'offerta_al_fondo', + label_trans: 'offerta_al_fondo', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'num_tess', + label_trans: 'num_tess', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'note', label_trans: 'note', fieldtype: costanti.FieldType.string }), // AddCol({ name: 'note_interne', label_trans: 'note_interne', fieldtype: costanti.FieldType.string }), // AddCol({ name: 'facilitatore', label_trans: 'facilitatore', fieldtype: costanti.FieldType.string }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; const colnavepersistente = [ AddCol({ name: '_id', label_trans: 'others.value' }), AddCol({ name: 'riga', label_trans: 'reg.riga' }), @@ -2992,62 +4731,146 @@ const colnavepersistente = [ AddCol({ name: 'date_gift_chat_open', label_trans: 'dashboard.nave_in_partenza', - fieldtype: costanti.FieldType.date + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'date_start', + label_trans: 'dashboard.nave_in_chiusura', + fieldtype: costanti.FieldType.date, }), - AddCol({ name: 'date_start', label_trans: 'dashboard.nave_in_chiusura', fieldtype: costanti.FieldType.date }), AddCol({ name: 'link_chat', label_trans: 'reg.link_chat' }), - AddCol({ name: 'provvisoria', label_trans: 'reg.provvisoria', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'DoniAttesaDiConferma', label_trans: 'note_bot', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'DoniMancanti', label_trans: 'note_bot', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'DoniConfermati', label_trans: 'note_bot', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'DoniConfermati', label_trans: 'note_bot', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'DoniTotali', label_trans: 'note_bot', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'note_interne', label_trans: 'note_interne', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'facilitatore', label_trans: 'facilitatore', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'provvisoria', + label_trans: 'reg.provvisoria', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'DoniAttesaDiConferma', + label_trans: 'note_bot', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'DoniMancanti', + label_trans: 'note_bot', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'DoniConfermati', + label_trans: 'note_bot', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'DoniConfermati', + label_trans: 'note_bot', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'DoniTotali', + label_trans: 'note_bot', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'note_interne', + label_trans: 'note_interne', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'facilitatore', + label_trans: 'facilitatore', + fieldtype: costanti.FieldType.string, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; const collistaingresso = [ AddCol({ name: '_id', label_trans: 'others.value' }), AddCol({ name: 'ind_order', label_trans: 'ind_order' }), AddCol({ name: 'username', label_trans: 'reg.username_short' }), AddCol({ name: 'invitante_username', label_trans: 'reg.aportador_solidario' }), - AddCol({ name: 'date_added', label_trans: 'date_added', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'added', label_trans: 'Aggiunto', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'date_added', + label_trans: 'date_added', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'added', + label_trans: 'Aggiunto', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'navestr', label_trans: 'Nave', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'num_tess', label_trans: 'num_tess', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'num_tess', + label_trans: 'num_tess', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'note', label_trans: 'reg.note', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'deleted', label_trans: 'reg.deleted', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'deleted', + label_trans: 'reg.deleted', + fieldtype: costanti.FieldType.boolean, + }), AddCol(DuplicateRec), AddCol(DeleteRec), -] +]; const colgraduatoria = [ AddCol({ name: 'index', label_trans: 'index' }), - AddCol({ name: 'punteggio', label_trans: 'Punt', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'punteggio', + label_trans: 'Punt', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'ind_order', label_trans: 'ind_order' }), - AddCol({ name: 'num_tess', label_trans: 'num_tess', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'num_tess', + label_trans: 'num_tess', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'username', label_trans: 'reg.username_short' }), AddCol({ name: 'name', label_trans: 'reg.name' }), AddCol({ name: 'surname', label_trans: 'reg.surname' }), - AddCol({ name: 'numNaviEntrato', label_trans: 'Navi', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'indimbarco', label_trans: 'Imbarco', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'numNaviEntrato', + label_trans: 'Navi', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'indimbarco', + label_trans: 'Imbarco', + fieldtype: costanti.FieldType.number, + }), // AddCol({ name: 'numinvitati', label_trans: 'Inv.', fieldtype: costanti.FieldType.number }), // AddCol({ name: 'numinvitatiattivi', label_trans: 'Att.', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'numinvitatiTot', label_trans: 'Inv (Tot)', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'numinvitatiattiviTot', label_trans: 'Att. Tot', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'numinvitatiTot', + label_trans: 'Inv (Tot)', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'numinvitatiattiviTot', + label_trans: 'Att. Tot', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'invitante_username', label_trans: 'reg.aportador_solidario' }), AddCol({ name: 'navestr', label_trans: 'Nave', fieldtype: costanti.FieldType.string }), AddCol({ name: 'note', label_trans: 'note', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'date_added', label_trans: 'date_added', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'date_added', + label_trans: 'date_added', + fieldtype: costanti.FieldType.date, + }), AddCol(DuplicateRec), AddCol(DeleteRec), -] +]; const coldisciplines = [ AddCol({ name: 'typol_code', label_trans: 'disc.typol_code' }), - AddCol({ name: 'order', label_trans: 'disc.order', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'order', + label_trans: 'disc.order', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'label', label_trans: 'event.title' }), AddCol({ name: 'description', label_trans: 'proj.longdescr' }), AddCol({ name: 'linkpage', label_trans: 'event.linkpage' }), @@ -3055,8 +4878,16 @@ const coldisciplines = [ AddCol({ name: 'icon', label_trans: 'event.icon' }), AddCol({ name: 'img', label_trans: 'event.img' }), AddCol({ name: 'img_small', label_trans: 'event.img_small' }), - AddCol({ name: 'showinhome', label_trans: 'event.showinhome', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'showinnewsletter', label_trans: 'event.showinnewsletter', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'showinhome', + label_trans: 'event.showinhome', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'showinnewsletter', + label_trans: 'event.showinnewsletter', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'teachers', label_trans: 'event.teacher', @@ -3065,43 +4896,55 @@ const coldisciplines = [ }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; const colTablePermission = [ AddCol({ name: '_id', label_trans: 'others.value' }), AddCol({ name: 'label', label_trans: 'proj.longdescr' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; const colTableTipoDiAttivita = [ AddCol({ name: '_id', label_trans: 'others.value' }), AddCol({ name: 'label', label_trans: 'proj.longdescr' }), AddCol({ name: 'note', label_trans: 'proj.longdescr' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; const colCalDate = [ AddCol({ name: '_id', label_trans: 'rec.date', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'datestr', label_trans: 'reg.date', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'filter', label_trans: 'reg.filter', fieldtype: costanti.FieldType.object }), -] + AddCol({ + name: 'datestr', + label_trans: 'reg.date', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'filter', + label_trans: 'reg.filter', + fieldtype: costanti.FieldType.object, + }), +]; const colTableGeneric = [ AddCol({ name: 'value', label_trans: 'others.value' }), AddCol({ name: 'label', label_trans: 'proj.longdescr' }), -] +]; const colTableGenTrans = [ AddCol({ name: 'value', label_trans: 'others.value' }), AddCol({ name: 'labeltrans', label_trans: 'proj.longdescr' }), -] +]; export const colTableOperator = [ AddCol({ name: 'username', label_trans: 'reg.username_short' }), AddCol({ name: 'name', label_trans: 'reg.name' }), AddCol({ name: 'surname', label_trans: 'reg.surname' }), - AddCol({ name: 'showInTeam', label_trans: 'op.showInTeam', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'showInTeam', + label_trans: 'op.showInTeam', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'arrDisciplines', label_trans: 'op.arrDisciplines', @@ -3111,7 +4954,11 @@ export const colTableOperator = [ AddCol({ name: 'email', label_trans: 'reg.email' }), AddCol({ name: 'img', label_trans: 'event.img' }), AddCol({ name: 'cell', label_trans: 'reg.cell' }), - AddCol({ name: 'usertelegram', label_trans: 'op.usertelegram', fieldtype: costanti.FieldType.username_telegram }), + AddCol({ + name: 'usertelegram', + label_trans: 'op.usertelegram', + fieldtype: costanti.FieldType.username_telegram, + }), AddCol({ name: 'qualification', label_trans: 'op.qualification' }), AddCol({ name: 'disciplines', label_trans: 'op.disciplines' }), AddCol({ name: 'certifications', label_trans: 'op.certifications' }), @@ -3122,25 +4969,47 @@ export const colTableOperator = [ AddCol({ name: 'facebook', label_trans: 'op.facebook' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; const colTableEvents = [ AddCol({ name: '_id', label_trans: 'event._id' }), AddCol({ - name: 'typol', label_trans: 'event.typol', fieldtype: costanti.FieldType.select, jointable: 'disciplines', + name: 'typol', + label_trans: 'event.typol', + fieldtype: costanti.FieldType.select, + jointable: 'disciplines', }), AddCol({ name: 'short_tit', label_trans: 'event.short_tit' }), AddCol({ name: 'title', label_trans: 'event.title' }), - AddCol({ name: 'details', label_trans: 'event.details', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'bodytext', label_trans: 'event.bodytext', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'dateTimeStart', label_trans: 'event.dateTimeStart', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'dateTimeEnd', label_trans: 'event.dateTimeEnd', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'details', + label_trans: 'event.details', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'bodytext', + label_trans: 'event.bodytext', + fieldtype: costanti.FieldType.html, + }), + AddCol({ + name: 'dateTimeStart', + label_trans: 'event.dateTimeStart', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'dateTimeEnd', + label_trans: 'event.dateTimeEnd', + fieldtype: costanti.FieldType.date, + }), AddCol({ name: 'bgcolor', label_trans: 'event.bgcolor' }), AddCol({ name: 'icon', label_trans: 'event.icon' }), AddCol({ name: 'img_small', label_trans: 'event.img_small' }), AddCol({ name: 'img', label_trans: 'event.img' }), AddCol({ - name: 'wherecode', label_trans: 'event.where', fieldtype: costanti.FieldType.select, jointable: 'wheres', + name: 'wherecode', + label_trans: 'event.where', + fieldtype: costanti.FieldType.select, + jointable: 'wheres', }), AddCol({ name: 'contribtype', @@ -3151,7 +5020,10 @@ const colTableEvents = [ AddCol({ name: 'price', label_trans: 'event.price' }), AddCol({ name: 'infoafterprice', label_trans: 'event.infoafterprice' }), AddCol({ - name: 'teacher', label_trans: 'event.teacher', fieldtype: costanti.FieldType.select, jointable: 'operators', + name: 'teacher', + label_trans: 'event.teacher', + fieldtype: costanti.FieldType.select, + jointable: 'operators', }), AddCol({ name: 'teacher2', @@ -3176,8 +5048,16 @@ const colTableEvents = [ AddCol({ name: 'facebook', label_trans: 'event.facebook' }), AddCol({ name: 'linkpdf', label_trans: 'event.linkpdf' }), AddCol({ name: 'note', label_trans: 'event.note' }), - AddCol({ name: 'nobookable', label_trans: 'event.nobookable', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'internal', label_trans: 'event.internal', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'nobookable', + label_trans: 'event.nobookable', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'internal', + label_trans: 'event.internal', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'pagefooter', @@ -3186,129 +5066,246 @@ const colTableEvents = [ jointable: 'internalpage', }), - AddCol({ name: 'news', label_trans: 'event.news', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'canceled', label_trans: 'event.canceled', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'deleted', label_trans: 'event.deleted', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'news', + label_trans: 'event.news', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'canceled', + label_trans: 'event.canceled', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'deleted', + label_trans: 'event.deleted', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'dupId', label_trans: 'event.dupId' }), - AddCol({ name: 'modified', label_trans: 'event.modified', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'modified', + label_trans: 'event.modified', + fieldtype: costanti.FieldType.boolean, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] - +]; export const fields = { colSettings: [ AddCol({ name: 'key', label_trans: 'col.label' }), AddCol({ - name: 'type', label_trans: 'col.type', fieldtype: costanti.FieldType.select, jointable: 'fieldstype', + name: 'type', + label_trans: 'col.type', + fieldtype: costanti.FieldType.select, + jointable: 'fieldstype', + }), + AddCol({ + name: 'value_str', + label_trans: 'col.value', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'value_num', + label_trans: 'cal.num', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'value_date', + label_trans: 'cal.data', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'value_bool', + label_trans: 'cal.bool', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'serv', + label_trans: 'cal.serv', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'crypted', + label_trans: 'cal.crypted', + fieldtype: costanti.FieldType.boolean, }), - AddCol({ name: 'value_str', label_trans: 'col.value', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'value_num', label_trans: 'cal.num', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'value_date', label_trans: 'cal.data', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'value_bool', label_trans: 'cal.bool', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'serv', label_trans: 'cal.serv', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'crypted', label_trans: 'cal.crypted', fieldtype: costanti.FieldType.boolean }), AddCol(DeleteRec), AddCol(DuplicateRec), ], - -} +}; export const colTableCalZoom = [ // AddCol({ name: '_id', label_trans: 'reg.id' }), AddCol({ name: 'title', label_trans: 'event.title' }), AddCol({ name: 'lang', label_trans: 'pages.lang' }), AddCol({ name: 'typeconf', label_trans: 'zoom.typeconf' }), - AddCol({ name: 'date_start', label_trans: 'event.dateTimeStart', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'date_end', label_trans: 'event.dateTimeEnd', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'benvenuto', label_trans: 'event.benvenuto', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'icon', label_trans: 'event.icon', fieldtype: costanti.FieldType.string }), - AddCol({ name: 'color', label_trans: 'event.color', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'date_start', + label_trans: 'event.dateTimeStart', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'date_end', + label_trans: 'event.dateTimeEnd', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'benvenuto', + label_trans: 'event.benvenuto', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'icon', + label_trans: 'event.icon', + fieldtype: costanti.FieldType.string, + }), + AddCol({ + name: 'color', + label_trans: 'event.color', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'id_conf_zoom', label_trans: 'zoom.id_conf_zooom' }), AddCol({ name: 'note', label_trans: 'zoom.note' }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableUsersBase = [ AddCol({ name: 'index', label_trans: 'reg.index' }), AddCol({ name: 'ind_order', label_trans: 'reg.ind_order' }), - AddCol({ name: 'sospeso', label_trans: 'reg.sospeso', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'deleted', label_trans: 'reg.deleted', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'date_reg', label_trans: 'reg.date_reg', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'sospeso', + label_trans: 'reg.sospeso', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'deleted', + label_trans: 'reg.deleted', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'date_reg', + label_trans: 'reg.date_reg', + fieldtype: costanti.FieldType.date, + }), AddCol({ name: 'username', label_trans: 'reg.username_short' }), AddCol({ name: 'name', label_trans: 'reg.name' }), AddCol({ name: 'surname', label_trans: 'reg.surname' }), AddCol({ name: 'email', label_trans: 'reg.email' }), - AddCol({ name: 'verified_email', label_trans: 'reg.verified_email', fieldtype: costanti.FieldType.boolean }), AddCol({ - name: 'profile.nationality', field: 'profile', subfield: 'nationality', label_trans: 'reg.nationality', + name: 'verified_email', + label_trans: 'reg.verified_email', + fieldtype: costanti.FieldType.boolean, }), AddCol({ - name: 'profile.cell', field: 'profile', subfield: 'cell', label_trans: 'reg.cell', maxlength: 12 + name: 'profile.nationality', + field: 'profile', + subfield: 'nationality', + label_trans: 'reg.nationality', }), AddCol({ - name: 'perm', label_trans: 'reg.perm', fieldtype: costanti.FieldType.binary, jointable: 'permissions', + name: 'profile.cell', + field: 'profile', + subfield: 'cell', + label_trans: 'reg.cell', + maxlength: 12, + }), + AddCol({ + name: 'perm', + label_trans: 'reg.perm', + fieldtype: costanti.FieldType.binary, + jointable: 'permissions', }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; // IColGridTable export const colTableUsers = [ // AddCol({ name: '_id', label_trans: 'reg.id' }), - AddCol({ name: 'index', label_trans: 'reg.index', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'index', + label_trans: 'reg.index', + fieldtype: costanti.FieldType.number, + }), // AddCol({ name: 'ind_order', label_trans: 'reg.ind_order' }), AddCol({ name: 'old_order', label_trans: 'old_order' }), - AddCol({ name: 'sospeso', label_trans: 'reg.sospeso', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'deleted', label_trans: 'reg.deleted', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'subaccount', label_trans: 'SubAccount', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'navinonpresenti', label_trans: 'Navi Non Presenti', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'sospeso', + label_trans: 'reg.sospeso', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'deleted', + label_trans: 'reg.deleted', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'subaccount', + label_trans: 'SubAccount', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'navinonpresenti', + label_trans: 'Navi Non Presenti', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'non_voglio_imbarcarmi', label_trans: 'non_voglio_imbarcarmi', - fieldtype: costanti.FieldType.boolean + fieldtype: costanti.FieldType.boolean, }), AddCol({ name: 'username', label_trans: 'reg.username_short' }), AddCol({ name: 'name', label_trans: 'reg.name' }), AddCol({ name: 'surname', label_trans: 'reg.surname' }), AddCol({ name: 'email', label_trans: 'reg.email' }), - AddCol({ name: 'verified_email', label_trans: 'reg.verified_email', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'verified_email', + label_trans: 'reg.verified_email', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'profile.dateofbirth', field: 'profile', subfield: 'dateofbirth', - label_trans: 'reg.dateofbirth', fieldtype: costanti.FieldType.onlydate + label_trans: 'reg.dateofbirth', + fieldtype: costanti.FieldType.onlydate, }), AddCol({ name: 'profile.born_city', field: 'profile', subfield: 'born_city', - label_trans: 'reg.born_city', fieldtype: costanti.FieldType.string + label_trans: 'reg.born_city', + fieldtype: costanti.FieldType.string, }), AddCol({ name: 'profile.born_province', field: 'profile', subfield: 'born_province', - label_trans: 'reg.born_province', fieldtype: costanti.FieldType.string + label_trans: 'reg.born_province', + fieldtype: costanti.FieldType.string, }), AddCol({ name: 'profile.born_country', field: 'profile', subfield: 'born_country', - label_trans: 'reg.born_country', fieldtype: costanti.FieldType.string + label_trans: 'reg.born_country', + fieldtype: costanti.FieldType.string, }), AddCol({ name: 'profile.resid_province', field: 'profile', subfield: 'resid_province', - label_trans: 'reg.resid_province', fieldtype: costanti.FieldType.string + label_trans: 'reg.resid_province', + fieldtype: costanti.FieldType.string, }), AddCol({ name: 'profile.resid_card', field: 'profile', subfield: 'resid_card', - label_trans: 'reg.resid_card', fieldtype: costanti.FieldType.string + label_trans: 'reg.resid_card', + fieldtype: costanti.FieldType.string, }), AddCol({ name: 'profile.resplist', @@ -3325,7 +5322,10 @@ export const colTableUsers = [ fieldtype: costanti.FieldType.boolean, }), AddCol({ - name: 'profile.teleg_id', field: 'profile', subfield: 'teleg_id', label_trans: 'reg.teleg_id', + name: 'profile.teleg_id', + field: 'profile', + subfield: 'teleg_id', + label_trans: 'reg.teleg_id', }), AddCol({ name: 'profile.saw_and_accepted', @@ -3364,7 +5364,10 @@ export const colTableUsers = [ fieldtype: costanti.FieldType.boolean, }), AddCol({ - name: 'profile.my_dream', field: 'profile', subfield: 'my_dream', label_trans: 'reg.my_dream', + name: 'profile.my_dream', + field: 'profile', + subfield: 'my_dream', + label_trans: 'reg.my_dream', }), AddCol({ name: 'profile.email_paypal', @@ -3414,11 +5417,31 @@ export const colTableUsers = [ AddCol({ name: 'note', label_trans: 'reg.note' }), // AddCol({ name: 'aportador_solidario_ind_order', label_trans: 'reg.aportador_solidario_ind_order' }), // AddCol({ name: 'aportador_solidario_nome_completo', label_trans: 'reg.aportador_solidario_nome_completo' }), - AddCol({ name: 'news_on', label_trans: 'reg.news_on', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'test', label_trans: 'reg.test', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'diario_on', label_trans: 'reg.diario_on', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'email_errata', label_trans: 'reg.email_errata', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'lastid_newstosent', label_trans: 'reg.lastid_newstosent', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'news_on', + label_trans: 'reg.news_on', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'test', + label_trans: 'reg.test', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'diario_on', + label_trans: 'reg.diario_on', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'email_errata', + label_trans: 'reg.email_errata', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'lastid_newstosent', + label_trans: 'reg.lastid_newstosent', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'aportador_solidario', label_trans: 'reg.aportador_solidario' }), AddCol({ name: 'profile.special_req', @@ -3430,7 +5453,10 @@ export const colTableUsers = [ // AddCol({ name: 'profile.vuole_ritessersi', field: 'profile', subfield: 'vuole_ritessersi', label_trans: 'reg.vuole_ritessersi', fieldtype: costanti.FieldType.boolean }), AddCol({ name: 'lang', field: 'lang', label_trans: 'reg.lang' }), AddCol({ - name: 'profile.nationality', field: 'profile', subfield: 'nationality', label_trans: 'reg.nationality', + name: 'profile.nationality', + field: 'profile', + subfield: 'nationality', + label_trans: 'reg.nationality', }), AddCol({ name: 'profile.intcode_cell', @@ -3439,13 +5465,22 @@ export const colTableUsers = [ label_trans: 'reg.intcode_cell', }), AddCol({ - name: 'profile.iso2_cell', field: 'profile', subfield: 'iso2_cell', label_trans: 'reg.iso2_cell', + name: 'profile.iso2_cell', + field: 'profile', + subfield: 'iso2_cell', + label_trans: 'reg.iso2_cell', }), AddCol({ - name: 'profile.cell', field: 'profile', subfield: 'cell', label_trans: 'reg.cell', + name: 'profile.cell', + field: 'profile', + subfield: 'cell', + label_trans: 'reg.cell', }), AddCol({ - name: 'profile.country_pay', field: 'profile', subfield: 'country_pay', label_trans: 'reg.country_pay', + name: 'profile.country_pay', + field: 'profile', + subfield: 'country_pay', + label_trans: 'reg.country_pay', }), AddCol({ name: 'profile.teleg_id_old', @@ -3481,23 +5516,39 @@ export const colTableUsers = [ label_trans: 'reg.myshares', }), AddCol({ - name: 'profile.img', field: 'profile', subfield: 'img', label_trans: 'reg.img', sortable: false, + name: 'profile.img', + field: 'profile', + subfield: 'img', + label_trans: 'reg.img', + sortable: false, + }), + AddCol({ + name: 'date_reg', + label_trans: 'reg.date_reg', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'lasttimeonline', + label_trans: 'reg.lasttimeonline', + fieldtype: costanti.FieldType.date, }), - AddCol({ name: 'date_reg', label_trans: 'reg.date_reg', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'lasttimeonline', label_trans: 'reg.lasttimeonline', fieldtype: costanti.FieldType.date }), // AddCol({ name: 'idapp', label_trans: 'reg.idapp', fieldtype: costanti.FieldType.string }), AddCol({ name: 'perm', label_trans: 'reg.perm', fieldtype: costanti.FieldType.binary, jointable: 'permissions', - titlepopupedit: 'Permessi' + titlepopupedit: 'Permessi', }), AddCol({ name: 'ipaddr', label_trans: 'reg.ipaddr' }), - AddCol({ name: 'banIp', label_trans: 'reg.banIp', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'banIp', + label_trans: 'reg.banIp', + fieldtype: costanti.FieldType.boolean, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableUsersCNM = [ // AddCol({ name: '_id', label_trans: 'reg.id' }), @@ -3507,7 +5558,11 @@ export const colTableUsersCNM = [ AddCol({ name: 'name', label_trans: 'reg.name' }), AddCol({ name: 'surname', label_trans: 'reg.surname' }), AddCol({ name: 'email', label_trans: 'reg.email' }), - AddCol({ name: 'verified_email', label_trans: 'reg.verified_email', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'verified_email', + label_trans: 'reg.verified_email', + fieldtype: costanti.FieldType.boolean, + }), // AddCol({ name: 'made_gift', label_trans: 'reg.made_gift', fieldtype: costanti.FieldType.boolean }), AddCol({ name: 'note', label_trans: 'reg.note' }), // AddCol({ name: 'aportador_solidario', label_trans: 'reg.aportador_solidario' }), @@ -3533,14 +5588,23 @@ export const colTableUsersCNM = [ fieldtype: costanti.FieldType.boolean, }), AddCol({ - name: 'profile.my_dream', field: 'profile', subfield: 'my_dream', label_trans: 'reg.my_dream', + name: 'profile.my_dream', + field: 'profile', + subfield: 'my_dream', + label_trans: 'reg.my_dream', }), AddCol({ name: 'lang', field: 'lang', label_trans: 'reg.lang' }), AddCol({ - name: 'profile.nationality', field: 'profile', subfield: 'nationality', label_trans: 'reg.nationality', + name: 'profile.nationality', + field: 'profile', + subfield: 'nationality', + label_trans: 'reg.nationality', }), AddCol({ - name: 'profile.cell', field: 'profile', subfield: 'cell', label_trans: 'reg.cell', + name: 'profile.cell', + field: 'profile', + subfield: 'cell', + label_trans: 'reg.cell', }), AddCol({ name: 'profile.email_paypal', @@ -3567,7 +5631,10 @@ export const colTableUsersCNM = [ label_trans: 'revolut' }), */ AddCol({ - name: 'profile.teleg_id', field: 'profile', subfield: 'teleg_id', label_trans: 'reg.teleg_id', + name: 'profile.teleg_id', + field: 'profile', + subfield: 'teleg_id', + label_trans: 'reg.teleg_id', }), AddCol({ @@ -3611,10 +5678,31 @@ export const colTableUsersCNM = [ label_trans: 'reg.consiglio', fieldtype: costanti.FieldType.boolean, }), - AddCol({ name: 'profile.motivazioni', field: 'profile', subfield: 'motivazioni', label_trans: 'reg.motivazioni' }), - AddCol({ name: 'profile.biografia', field: 'profile', subfield: 'biografia', label_trans: 'reg.biografia' }), - AddCol({ name: 'profile.note', field: 'profile', subfield: 'note', label_trans: 'reg.note' }), - AddCol({ name: 'profile.da_contattare', field: 'profile', subfield: 'da_contattare', label_trans: 'reg.da_contattare', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'profile.motivazioni', + field: 'profile', + subfield: 'motivazioni', + label_trans: 'reg.motivazioni', + }), + AddCol({ + name: 'profile.biografia', + field: 'profile', + subfield: 'biografia', + label_trans: 'reg.biografia', + }), + AddCol({ + name: 'profile.note', + field: 'profile', + subfield: 'note', + label_trans: 'reg.note', + }), + AddCol({ + name: 'profile.da_contattare', + field: 'profile', + subfield: 'da_contattare', + label_trans: 'reg.da_contattare', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'profile.competenze_professionalita', field: 'profile', @@ -3660,23 +5748,39 @@ export const colTableUsersCNM = [ jointable: 'paymenttypes', }), AddCol({ - name: 'profile.img', field: 'profile', subfield: 'img', label_trans: 'reg.img', sortable: false, + name: 'profile.img', + field: 'profile', + subfield: 'img', + label_trans: 'reg.img', + sortable: false, + }), + AddCol({ + name: 'date_reg', + label_trans: 'reg.date_reg', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'lasttimeonline', + label_trans: 'reg.lasttimeonline', + fieldtype: costanti.FieldType.date, }), - AddCol({ name: 'date_reg', label_trans: 'reg.date_reg', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'lasttimeonline', label_trans: 'reg.lasttimeonline', fieldtype: costanti.FieldType.date }), // AddCol({ name: 'idapp', label_trans: 'reg.idapp', fieldtype: costanti.FieldType.string }), AddCol({ name: 'perm', label_trans: 'reg.perm', fieldtype: costanti.FieldType.binary, jointable: 'permissions', - titlepopupedit: 'Permessi' + titlepopupedit: 'Permessi', }), AddCol({ name: 'ipaddr', label_trans: 'reg.ipaddr' }), - AddCol({ name: 'deleted', label_trans: 'reg.deleted', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'deleted', + label_trans: 'reg.deleted', + fieldtype: costanti.FieldType.boolean, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableUsersISP = [ // AddCol({ name: '_id', label_trans: 'reg.id' }), @@ -3686,38 +5790,82 @@ export const colTableUsersISP = [ AddCol({ name: 'name', label_trans: 'reg.name' }), AddCol({ name: 'surname', label_trans: 'reg.surname' }), AddCol({ name: 'email', label_trans: 'reg.email' }), - AddCol({ name: 'verified_email', label_trans: 'reg.verified_email', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'verified_email', + label_trans: 'reg.verified_email', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'note', label_trans: 'reg.note' }), AddCol({ name: 'aportador_solidario', label_trans: 'reg.aportador_solidario' }), AddCol({ name: 'verified_by_aportador', label_trans: 'reg.verified_by_aportador', - fieldtype: costanti.FieldType.boolean + fieldtype: costanti.FieldType.boolean, }), AddCol({ name: 'idMyGroup', label_trans: 'reg.idMyGroup', - fieldtype: costanti.FieldType.string + fieldtype: costanti.FieldType.string, }), AddCol({ name: 'notask_verif', label_trans: 'reg.notAsk_ToVerify', - fieldtype: costanti.FieldType.boolean + fieldtype: costanti.FieldType.boolean, }), - AddCol({ name: 'news_on', label_trans: 'reg.news_on', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'diario_on', label_trans: 'reg.diario_on', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'test', label_trans: 'reg.test', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'email_errata', label_trans: 'reg.email_errata', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'lastid_newstosent', label_trans: 'reg.lastid_newstosent', fieldtype: costanti.FieldType.string }), + AddCol({ + name: 'news_on', + label_trans: 'reg.news_on', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'diario_on', + label_trans: 'reg.diario_on', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'test', + label_trans: 'reg.test', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'email_errata', + label_trans: 'reg.email_errata', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'lastid_newstosent', + label_trans: 'reg.lastid_newstosent', + fieldtype: costanti.FieldType.string, + }), - AddCol({ name: 'trust_modified', label_trans: 'reg.trust_modified', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'blocked', label_trans: 'reg.blocked', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'trust_modified', + label_trans: 'reg.trust_modified', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'blocked', + label_trans: 'reg.blocked', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'username_who_block', label_trans: 'reg.username_who_block' }), - AddCol({ name: 'date_blocked', label_trans: 'reg.date_blocked', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'reported', label_trans: 'reg.reported', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'date_blocked', + label_trans: 'reg.date_blocked', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'reported', + label_trans: 'reg.reported', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'username_who_report', label_trans: 'reg.username_who_reported' }), - AddCol({ name: 'date_report', label_trans: 'reg.date_reported', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'date_report', + label_trans: 'reg.date_reported', + fieldtype: costanti.FieldType.date, + }), AddCol({ name: 'profile.resplist', field: 'profile', @@ -3740,15 +5888,27 @@ export const colTableUsersISP = [ fieldtype: costanti.FieldType.boolean, }), AddCol({ - name: 'profile.my_dream', field: 'profile', subfield: 'my_dream', label_trans: 'reg.my_dream', + name: 'profile.my_dream', + field: 'profile', + subfield: 'my_dream', + label_trans: 'reg.my_dream', }), AddCol({ name: 'lang', field: 'lang', label_trans: 'reg.lang' }), AddCol({ - name: 'profile.nationality', field: 'profile', subfield: 'nationality', label_trans: 'reg.nationality', + name: 'profile.nationality', + field: 'profile', + subfield: 'nationality', + label_trans: 'reg.nationality', }), - AddCol({ name: 'profile.dateofbirth', label_trans: 'reg.dateofbirth', fieldtype: costanti.FieldType.date }), AddCol({ - name: 'profile.born_city_id', label_trans: 'reg.born_city', fieldtype: costanti.FieldType.select_by_server, + name: 'profile.dateofbirth', + label_trans: 'reg.dateofbirth', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'profile.born_city_id', + label_trans: 'reg.born_city', + fieldtype: costanti.FieldType.select_by_server, jointable: 'cities', tablesel: 'cities', remote_table: 'mycities', @@ -3760,36 +5920,45 @@ export const colTableUsersISP = [ name: 'profile.born_city', field: 'profile', subfield: 'born_city', - label_trans: 'reg.born_city', fieldtype: costanti.FieldType.string + label_trans: 'reg.born_city', + fieldtype: costanti.FieldType.string, }), AddCol({ name: 'profile.born_province', field: 'profile', subfield: 'born_province', - label_trans: 'reg.born_province', fieldtype: costanti.FieldType.string + label_trans: 'reg.born_province', + fieldtype: costanti.FieldType.string, }), AddCol({ name: 'profile.born_country', field: 'profile', subfield: 'born_country', - label_trans: 'reg.born_country', fieldtype: costanti.FieldType.string + label_trans: 'reg.born_country', + fieldtype: costanti.FieldType.string, }), AddCol({ name: 'profile.resid_province', field: 'profile', subfield: 'resid_province', - label_trans: 'reg.resid_province', fieldtype: costanti.FieldType.string + label_trans: 'reg.resid_province', + fieldtype: costanti.FieldType.string, }), AddCol({ name: 'profile.resid_card', field: 'profile', subfield: 'resid_card', - label_trans: 'reg.resid_card', fieldtype: costanti.FieldType.string + label_trans: 'reg.resid_card', + fieldtype: costanti.FieldType.string, }), AddCol({ - name: 'profile.cell', field: 'profile', subfield: 'cell', label_trans: 'reg.cell', maxlength: 12, - tipovisu: costanti.TipoVisu.TESTO_BORDATO + name: 'profile.cell', + field: 'profile', + subfield: 'cell', + label_trans: 'reg.cell', + maxlength: 12, + tipovisu: costanti.TipoVisu.TESTO_BORDATO, }), AddCol({ name: 'profile.email_paypal', @@ -3797,7 +5966,11 @@ export const colTableUsersISP = [ subfield: 'email_paypal', label_trans: 'reg.email_paypal', }), - AddCol({ name: 'profile.version', label_trans: 'reg.version', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'profile.version', + label_trans: 'reg.version', + fieldtype: costanti.FieldType.number, + }), /* AddCol({ name: 'profile.payeer_id', @@ -3818,13 +5991,18 @@ export const colTableUsersISP = [ label_trans: 'revolut' }), */ AddCol({ - name: 'profile.teleg_id', field: 'profile', subfield: 'teleg_id', label_trans: 'reg.teleg_id', + name: 'profile.teleg_id', + field: 'profile', + subfield: 'teleg_id', + label_trans: 'reg.teleg_id', }), AddCol({ - name: 'tokenreg', label_trans: 'reg.tokenreg', + name: 'tokenreg', + label_trans: 'reg.tokenreg', }), AddCol({ - name: 'date_tokenreg', label_trans: 'reg.date_tokenreg', + name: 'date_tokenreg', + label_trans: 'reg.date_tokenreg', }), AddCol({ name: 'profile.teleg_id_old', @@ -3893,10 +6071,31 @@ export const colTableUsersISP = [ fieldtype: costanti.FieldType.boolean, }), // AddCol({ name: 'profile.motivazioni', field: 'profile', subfield: 'motivazioni', label_trans: 'reg.motivazioni', }), - AddCol({ name: 'profile.biografia', field: 'profile', subfield: 'biografia', label_trans: 'reg.biografia' }), - AddCol({ name: 'profile.note', field: 'profile', subfield: 'note', label_trans: 'reg.note' }), - AddCol({ name: 'profile.da_contattare', field: 'profile', subfield: 'da_contattare', label_trans: 'reg.da_contattare', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'profile.qualifica', field: 'profile', subfield: 'qualifica', label_trans: 'reg.qualifica' }), + AddCol({ + name: 'profile.biografia', + field: 'profile', + subfield: 'biografia', + label_trans: 'reg.biografia', + }), + AddCol({ + name: 'profile.note', + field: 'profile', + subfield: 'note', + label_trans: 'reg.note', + }), + AddCol({ + name: 'profile.da_contattare', + field: 'profile', + subfield: 'da_contattare', + label_trans: 'reg.da_contattare', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'profile.qualifica', + field: 'profile', + subfield: 'qualifica', + label_trans: 'reg.qualifica', + }), AddCol({ name: 'profile.paymenttypes', field: 'profile', @@ -3906,70 +6105,140 @@ export const colTableUsersISP = [ jointable: 'paymenttypes', }), AddCol({ - name: 'profile.img', field: 'profile', subfield: 'img', label_trans: 'reg.img', sortable: false, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + name: 'profile.img', + field: 'profile', + subfield: 'img', + label_trans: 'reg.img', + sortable: false, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, + }), + AddCol({ + name: 'date_reg', + label_trans: 'reg.date_reg', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'lasttimeonline', + label_trans: 'reg.lasttimeonline', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'useragent', + label_trans: 'reg.useragent', + fieldtype: costanti.FieldType.string, }), - AddCol({ name: 'date_reg', label_trans: 'reg.date_reg', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'lasttimeonline', label_trans: 'reg.lasttimeonline', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'useragent', label_trans: 'reg.useragent', fieldtype: costanti.FieldType.string }), AddCol({ name: 'perm', label_trans: 'reg.perm', fieldtype: costanti.FieldType.binary, jointable: 'permissions', - titlepopupedit: 'Permessi' + titlepopupedit: 'Permessi', }), AddCol({ name: 'notifs', label_trans: 'reg.notifs', fieldtype: costanti.FieldType.binary, jointable: 'usernotifs', - titlepopupedit: 'Notifiche' + titlepopupedit: 'Notifiche', }), AddCol({ name: 'ipaddr', label_trans: 'reg.ipaddr' }), - AddCol({ name: 'banIp', label_trans: 'reg.banIp', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'deleted', label_trans: 'reg.deleted', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'banIp', + label_trans: 'reg.banIp', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'deleted', + label_trans: 'reg.deleted', + fieldtype: costanti.FieldType.boolean, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableExtraList = [ // AddCol({ name: '_id', label_trans: 'reg.id' }), AddCol({ name: 'username', label_trans: 'reg.username_short' }), - AddCol({ name: 'registered', label_trans: 'reg.registered', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'registered', + label_trans: 'reg.registered', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'ind_order', label_trans: 'reg.ind_order' }), - AddCol({ name: 'date_reg', label_trans: 'reg.date_reg', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'date_reg', + label_trans: 'reg.date_reg', + fieldtype: costanti.FieldType.date, + }), AddCol({ name: 'name_complete', label_trans: 'reg.name_complete' }), AddCol({ name: 'name', label_trans: 'reg.name' }), AddCol({ name: 'surname', label_trans: 'reg.surname' }), AddCol({ name: 'note', label_trans: 'reg.note' }), - AddCol({ name: 'contacted', label_trans: 'reg.contacted', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'contacted', + label_trans: 'reg.contacted', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'saw_zoom_presentation', label_trans: 'reg.saw_zoom_presentation', fieldtype: costanti.FieldType.boolean, }), - AddCol({ name: 'num_invitati', label_trans: 'reg.num_invitati', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'is_in_whatsapp', label_trans: 'reg.is_in_whatsapp', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'is_in_telegram', label_trans: 'reg.is_in_telegram', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'num_invitati', + label_trans: 'reg.num_invitati', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'is_in_whatsapp', + label_trans: 'reg.is_in_whatsapp', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'is_in_telegram', + label_trans: 'reg.is_in_telegram', + fieldtype: costanti.FieldType.boolean, + }), AddCol({ name: 'cell_complete', label_trans: 'reg.cell_complete' }), - AddCol({ name: 'nationality', label_trans: 'reg.nationality', fieldtype: costanti.FieldType.nationality }), - AddCol({ name: 'aportador_solidario_name_surname', label_trans: 'reg.aportador_solidario_nome_completo' }), - AddCol({ name: 'aportador_solidario_ind_order', label_trans: 'reg.aportador_solidario_ind_order' }), + AddCol({ + name: 'nationality', + label_trans: 'reg.nationality', + fieldtype: costanti.FieldType.nationality, + }), + AddCol({ + name: 'aportador_solidario_name_surname', + label_trans: 'reg.aportador_solidario_nome_completo', + }), + AddCol({ + name: 'aportador_solidario_ind_order', + label_trans: 'reg.aportador_solidario_ind_order', + }), AddCol({ name: 'aportador_solidario_originale_name_surname', label_trans: 'reg.aportador_solidario_nome_completo_orig', }), - AddCol({ name: 'col_b', label_trans: 'reg.col_b', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'col_h', label_trans: 'reg.col_h', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'col_b', + label_trans: 'reg.col_b', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'col_h', + label_trans: 'reg.col_h', + fieldtype: costanti.FieldType.number, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableCashCategory = [ AddCol({ name: 'descr', label_trans: 'pages.description' }), AddCol({ name: 'notes', label_trans: 'reg.note' }), -] +]; export const colTableSubCashCategory = [ AddCol({ @@ -3980,21 +6249,27 @@ export const colTableSubCashCategory = [ }), AddCol({ name: 'descr', label_trans: 'pages.description' }), AddCol({ name: 'notes', label_trans: 'reg.note' }), -] +]; export const colTableCircuitComplete = [ // AddCol({ name: 'groupnameId', label_trans: 'circuit.groupnameId', fieldtype: costanti.FieldType.select, jointable: 'mygroups' }), // da togliere poi AddCol({ - name: 'name', label_trans: 'circuit.name', + name: 'name', + label_trans: 'circuit.name', maxlength: 50, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage, }), AddCol({ - name: 'path', label_trans: 'circuit.path', + name: 'path', + label_trans: 'circuit.path', allowchar: costanti.ALLOWCHAR_CODE, }), AddCol({ name: 'subname', label_trans: 'circuit.subname' }), - AddCol({ name: 'longdescr', label_trans: 'circuit.descr', fieldtype: costanti.FieldType.html }), + AddCol({ + name: 'longdescr', + label_trans: 'circuit.descr', + fieldtype: costanti.FieldType.html, + }), AddCol({ name: 'idCity', label_trans: 'skill.cityorprovince', @@ -4003,7 +6278,11 @@ export const colTableCircuitComplete = [ tablesel: 'cities', noshowlabel: true, icon: 'fas fa-map-marker-alt', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, remote_table: 'mycities', remote_key: '_id', remote_field: 'comune', @@ -4017,7 +6296,11 @@ export const colTableCircuitComplete = [ tablesel: 'provinces', noshowlabel: true, icon: 'fas fa-map-marker-alt', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, required: true, }), // AddCol({ name: 'strProv', label_trans: 'reg.provincia', fieldtype: costanti.FieldType.string, @@ -4028,54 +6311,189 @@ export const colTableCircuitComplete = [ label_trans: 'bot.visibility', fieldtype: costanti.FieldType.multiselect, jointable: 'visibilGroup', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, }), - AddCol({ name: 'regulation', label_trans: 'circuit.regulation', fieldtype: costanti.FieldType.html }), - AddCol({ name: 'systemUserDescr', label_trans: 'circuit.systemUserDescr' }), - AddCol({ name: 'systemUserId', label_trans: 'circuit.systemUserId', fieldtype: costanti.FieldType.select, jointable: 'users' }), AddCol({ - name: 'createdBy', label_trans: 'circuit.founder', fieldtype: costanti.FieldType.select, jointable: 'users', + name: 'regulation', + label_trans: 'circuit.regulation', + fieldtype: costanti.FieldType.html, + }), + AddCol({ name: 'systemUserDescr', label_trans: 'circuit.systemUserDescr' }), + AddCol({ + name: 'systemUserId', + label_trans: 'circuit.systemUserId', + fieldtype: costanti.FieldType.select, + jointable: 'users', + }), + AddCol({ + name: 'createdBy', + label_trans: 'circuit.founder', + fieldtype: costanti.FieldType.select, + jointable: 'users', showWhen: costanti.showWhen.InPage + costanti.showWhen.InView, }), - AddCol({ name: 'totCircolante', label_trans: 'circuit.totCircolante', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'totTransato', label_trans: 'circuit.totTransato', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'totTransato_pend', label_trans: 'circuit.totTransato_pend', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'saldo_pend', label_trans: 'circuit.saldo_pend', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'totCircolante', + label_trans: 'circuit.totCircolante', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'totTransato', + label_trans: 'circuit.totTransato', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'totTransato_pend', + label_trans: 'circuit.totTransato_pend', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'saldo_pend', + label_trans: 'circuit.saldo_pend', + fieldtype: costanti.FieldType.number, + }), // AddCol({ name: 'nome_valuta', label_trans: 'circuit.nome_valuta' }), AddCol({ name: 'symbol', label_trans: 'circuit.symbol' }), AddCol({ name: 'color', label_trans: 'circuit.color' }), AddCol({ name: 'abbrev', label_trans: 'circuit.abbrev' }), - AddCol({ name: 'compara_valuta', label_trans: 'circuit.compara_valuta', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'compara_euro', label_trans: 'circuit.compara_euro', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'valuta_per_euro', label_trans: 'circuit.valuta_per_euro', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'fido_scoperto_default', label_trans: 'circuit.fido_scoperto_default', fieldtype: costanti.FieldType.currency }), - AddCol({ name: 'qta_max_default', label_trans: 'circuit.qta_max_default', fieldtype: costanti.FieldType.currency }), - AddCol({ name: 'fido_scoperto_default_grp', label_trans: 'circuit.fido_scoperto_default_grp', fieldtype: costanti.FieldType.currency }), - AddCol({ name: 'qta_max_default_grp', label_trans: 'circuit.qta_max_default_grp', fieldtype: costanti.FieldType.currency }), - AddCol({ name: 'fido_scoperto_default_contocom', label_trans: 'circuit.fido_scoperto_default_contocom', fieldtype: costanti.FieldType.currency }), - AddCol({ name: 'qta_max_default_contocom', label_trans: 'circuit.qta_max_default_contocom', fieldtype: costanti.FieldType.currency }), - AddCol({ name: 'data_costituz', label_trans: 'circuit.data_costituz', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'deperimento', label_trans: 'circuit.deperimento', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'showAlways', label_trans: 'circuit.showAlways', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'ignoreLimits', label_trans: 'circuit.ignoreLimits', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'transactionsEnabled', label_trans: 'circuit.transactionsEnabled', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'askManagerToEnter', label_trans: 'circuit.askManagerToEnter', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'sendEmailAfterAskingToEnter', label_trans: 'circuit.sendEmailAfterAskingToEnter', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'circuitoIndipendente', label_trans: 'circuit.circuitoIndipendente', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'creditodiPartenza', label_trans: 'circuit.creditodiPartenza', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'compara_valuta', + label_trans: 'circuit.compara_valuta', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'compara_euro', + label_trans: 'circuit.compara_euro', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'valuta_per_euro', + label_trans: 'circuit.valuta_per_euro', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'fido_scoperto_default', + label_trans: 'circuit.fido_scoperto_default', + fieldtype: costanti.FieldType.currency, + }), + AddCol({ + name: 'qta_max_default', + label_trans: 'circuit.qta_max_default', + fieldtype: costanti.FieldType.currency, + }), + AddCol({ + name: 'fido_scoperto_default_grp', + label_trans: 'circuit.fido_scoperto_default_grp', + fieldtype: costanti.FieldType.currency, + }), + AddCol({ + name: 'qta_max_default_grp', + label_trans: 'circuit.qta_max_default_grp', + fieldtype: costanti.FieldType.currency, + }), + AddCol({ + name: 'fido_scoperto_default_contocom', + label_trans: 'circuit.fido_scoperto_default_contocom', + fieldtype: costanti.FieldType.currency, + }), + AddCol({ + name: 'qta_max_default_contocom', + label_trans: 'circuit.qta_max_default_contocom', + fieldtype: costanti.FieldType.currency, + }), + AddCol({ + name: 'data_costituz', + label_trans: 'circuit.data_costituz', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'deperimento', + label_trans: 'circuit.deperimento', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'showAlways', + label_trans: 'circuit.showAlways', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'ignoreLimits', + label_trans: 'circuit.ignoreLimits', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'transactionsEnabled', + label_trans: 'circuit.transactionsEnabled', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'askManagerToEnter', + label_trans: 'circuit.askManagerToEnter', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'sendEmailAfterAskingToEnter', + label_trans: 'circuit.sendEmailAfterAskingToEnter', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'circuitoIndipendente', + label_trans: 'circuit.circuitoIndipendente', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'creditodiPartenza', + label_trans: 'circuit.creditodiPartenza', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'freq_deper', label_trans: 'circuit.freq_deper' }), - AddCol({ name: 'minuto_deper', label_trans: 'circuit.minuto_deper', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'ora_deper', label_trans: 'circuit.ora_deper', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'giorno_deper', label_trans: 'circuit.giorno_deper', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'mese_deper', label_trans: 'circuit.mese_deper', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'ultimo_deper', label_trans: 'circuit.ultimo_deper', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'durata_deper', label_trans: 'circuit.durata_deper', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'minuto_deper', + label_trans: 'circuit.minuto_deper', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'ora_deper', + label_trans: 'circuit.ora_deper', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'giorno_deper', + label_trans: 'circuit.giorno_deper', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'mese_deper', + label_trans: 'circuit.mese_deper', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'ultimo_deper', + label_trans: 'circuit.ultimo_deper', + fieldtype: costanti.FieldType.date, + }), + AddCol({ + name: 'durata_deper', + label_trans: 'circuit.durata_deper', + fieldtype: costanti.FieldType.number, + }), AddCol({ name: 'photos', label_trans: 'skill.photos', fieldtype: costanti.FieldType.listimages, jointable: '', - showWhen: costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, }), AddCol({ name: 'admins', @@ -4086,43 +6504,71 @@ export const colTableCircuitComplete = [ showWhen: costanti.showWhen.InView_OnlyifExist, }), AddCol({ - name: 'date_created', label_trans: 'reg.pub_created', fieldtype: costanti.FieldType.onlydate, + name: 'date_created', + label_trans: 'reg.pub_created', + fieldtype: costanti.FieldType.onlydate, required: false, visible: false, sortable: true, - showWhen: 0 + showWhen: 0, }), AddCol({ - name: 'date_updated', label_trans: 'reg.pub_updated', fieldtype: costanti.FieldType.onlydate, + name: 'date_updated', + label_trans: 'reg.pub_updated', + fieldtype: costanti.FieldType.onlydate, required: false, visible: false, sortable: true, - showWhen: 0 + showWhen: 0, + }), + AddCol({ + name: 'circuitoIndipendente', + label_trans: 'circuit.circuitoIndipendente', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'askManagerToEnter', + label_trans: 'circuit.askManagerToEnter', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'sendEmailAfterAskingToEnter', + label_trans: 'circuit.sendEmailAfterAskingToEnter', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, }), - AddCol({ name: 'circuitoIndipendente', label_trans: 'circuit.circuitoIndipendente', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'askManagerToEnter', label_trans: 'circuit.askManagerToEnter', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'sendEmailAfterAskingToEnter', label_trans: 'circuit.sendEmailAfterAskingToEnter', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), AddCol(ModifRec), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableCircuit = [ // AddCol({ name: '_id', label_trans: 'circuit.Id' }), // da togliere poi AddCol({ - name: 'name', label_trans: 'circuit.name', + name: 'name', + label_trans: 'circuit.name', required: true, maxlength: 50, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView, }), AddCol({ - name: 'path', label_trans: 'circuit.path', required: true, + name: 'path', + label_trans: 'circuit.path', + required: true, maxlength: 50, - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView, + showWhen: + costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView, allowchar: costanti.ALLOWCHAR_CODE, }), AddCol({ name: 'subname', label_trans: 'circuit.subname' }), - AddCol({ name: 'longdescr', label_trans: 'circuit.descr', fieldtype: costanti.FieldType.html }), + AddCol({ + name: 'longdescr', + label_trans: 'circuit.descr', + fieldtype: costanti.FieldType.html, + }), AddCol({ name: 'idCity', label_trans: 'skill.cityorprovince', @@ -4131,7 +6577,11 @@ export const colTableCircuit = [ tablesel: 'cities', noshowlabel: true, icon: 'fas fa-map-marker-alt', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, remote_table: 'mycities', remote_key: '_id', remote_field: 'comune', @@ -4145,7 +6595,11 @@ export const colTableCircuit = [ tablesel: 'provinces', noshowlabel: true, icon: 'fas fa-map-marker-alt', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, required: true, }), AddCol({ @@ -4153,98 +6607,198 @@ export const colTableCircuit = [ label_trans: 'bot.visibility', fieldtype: costanti.FieldType.multiselect, jointable: 'visibilGroup', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, onlyforAdmin: true, }), AddCol({ - name: 'systemUserId', label_trans: 'circuit.systemUserId', fieldtype: costanti.FieldType.select, jointable: 'users', + name: 'systemUserId', + label_trans: 'circuit.systemUserId', + fieldtype: costanti.FieldType.select, + jointable: 'users', showWhen: costanti.showWhen.InEdit + costanti.showWhen.InView, - onlyforAdmin: true + onlyforAdmin: true, }), AddCol({ - name: 'createdBy', label_trans: 'circuit.founder', fieldtype: costanti.FieldType.select, jointable: 'users', + name: 'createdBy', + label_trans: 'circuit.founder', + fieldtype: costanti.FieldType.select, + jointable: 'users', showWhen: costanti.showWhen.InPage + costanti.showWhen.InView, }), AddCol({ - name: 'date_created', label_trans: 'reg.pub_created', fieldtype: costanti.FieldType.onlydate, + name: 'date_created', + label_trans: 'reg.pub_created', + fieldtype: costanti.FieldType.onlydate, required: false, visible: false, sortable: true, - showWhen: 0 + showWhen: 0, }), AddCol({ - name: 'date_updated', label_trans: 'reg.pub_updated', fieldtype: costanti.FieldType.onlydate, + name: 'date_updated', + label_trans: 'reg.pub_updated', + fieldtype: costanti.FieldType.onlydate, required: false, visible: false, sortable: true, - showWhen: 0 + showWhen: 0, }), // AddCol({ name: 'nome_valuta', label_trans: 'circuit.nome_valuta', required: true }), AddCol({ name: 'symbol', label_trans: 'circuit.symbol' }), AddCol({ name: 'link_group', label_trans: 'circuit.link_group' }), AddCol({ name: 'color', label_trans: 'circuit.color' }), AddCol({ - name: 'fido_scoperto_default', label_trans: 'circuit.fido_scoperto_default', - fieldtype: costanti.FieldType.currency, required: true, visulabel: true + name: 'fido_scoperto_default', + label_trans: 'circuit.fido_scoperto_default', + fieldtype: costanti.FieldType.currency, + required: true, + visulabel: true, }), AddCol({ - name: 'qta_max_default', label_trans: 'circuit.qta_max_default', - fieldtype: costanti.FieldType.currency, required: true, visulabel: true + name: 'qta_max_default', + label_trans: 'circuit.qta_max_default', + fieldtype: costanti.FieldType.currency, + required: true, + visulabel: true, }), - AddCol({ name: 'fido_scoperto_default_grp', label_trans: 'circuit.fido_scoperto_default_grp', fieldtype: costanti.FieldType.currency }), - AddCol({ name: 'qta_max_default_grp', label_trans: 'circuit.qta_max_default_grp', fieldtype: costanti.FieldType.currency }), - AddCol({ name: 'fido_scoperto_default_contocom', label_trans: 'circuit.fido_scoperto_default_contocom', fieldtype: costanti.FieldType.currency }), - AddCol({ name: 'qta_max_default_contocom', label_trans: 'circuit.qta_max_default_contocom', fieldtype: costanti.FieldType.currency }), - AddCol({ name: 'valuta_per_euro', label_trans: 'circuit.valuta_per_euro', fieldtype: costanti.FieldType.number }), AddCol({ - name: 'totCircolante', label_trans: 'circuit.totCircolante', - fieldtype: costanti.FieldType.currency, visulabel: true, + name: 'fido_scoperto_default_grp', + label_trans: 'circuit.fido_scoperto_default_grp', + fieldtype: costanti.FieldType.currency, + }), + AddCol({ + name: 'qta_max_default_grp', + label_trans: 'circuit.qta_max_default_grp', + fieldtype: costanti.FieldType.currency, + }), + AddCol({ + name: 'fido_scoperto_default_contocom', + label_trans: 'circuit.fido_scoperto_default_contocom', + fieldtype: costanti.FieldType.currency, + }), + AddCol({ + name: 'qta_max_default_contocom', + label_trans: 'circuit.qta_max_default_contocom', + fieldtype: costanti.FieldType.currency, + }), + AddCol({ + name: 'valuta_per_euro', + label_trans: 'circuit.valuta_per_euro', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'totCircolante', + label_trans: 'circuit.totCircolante', + fieldtype: costanti.FieldType.currency, + visulabel: true, showWhen: costanti.showWhen.InPage + costanti.showWhen.InView, }), AddCol({ - name: 'totTransato', label_trans: 'circuit.totTransato', - fieldtype: costanti.FieldType.currency, visulabel: true, + name: 'totTransato', + label_trans: 'circuit.totTransato', + fieldtype: costanti.FieldType.currency, + visulabel: true, showWhen: costanti.showWhen.InPage + costanti.showWhen.InView, }), - AddCol({ name: 'regulation', label_trans: 'circuit.regulation', fieldtype: costanti.FieldType.html, required: false }), - AddCol({ name: 'deperimento', label_trans: 'circuit.deperimento', fieldtype: costanti.FieldType.boolean, disable: true }), - AddCol({ name: 'showAlways', label_trans: 'circuit.showAlways', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'ignoreLimits', label_trans: 'circuit.ignoreLimits', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'transactionsEnabled', label_trans: 'circuit.transactionsEnabled', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'askManagerToEnter', label_trans: 'circuit.askManagerToEnter', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'sendEmailAfterAskingToEnter', label_trans: 'circuit.sendEmailAfterAskingToEnter', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'circuitoIndipendente', label_trans: 'circuit.circuitoIndipendente', fieldtype: costanti.FieldType.boolean, onlyforAdmin: true }), - AddCol({ name: 'creditodiPartenza', label_trans: 'circuit.creditodiPartenza', fieldtype: costanti.FieldType.number }), AddCol({ - name: 'status', label_trans: 'circuit.status', + name: 'regulation', + label_trans: 'circuit.regulation', + fieldtype: costanti.FieldType.html, + required: false, + }), + AddCol({ + name: 'deperimento', + label_trans: 'circuit.deperimento', + fieldtype: costanti.FieldType.boolean, + disable: true, + }), + AddCol({ + name: 'showAlways', + label_trans: 'circuit.showAlways', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'ignoreLimits', + label_trans: 'circuit.ignoreLimits', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'transactionsEnabled', + label_trans: 'circuit.transactionsEnabled', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'askManagerToEnter', + label_trans: 'circuit.askManagerToEnter', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'sendEmailAfterAskingToEnter', + label_trans: 'circuit.sendEmailAfterAskingToEnter', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'circuitoIndipendente', + label_trans: 'circuit.circuitoIndipendente', + fieldtype: costanti.FieldType.boolean, + onlyforAdmin: true, + }), + AddCol({ + name: 'creditodiPartenza', + label_trans: 'circuit.creditodiPartenza', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'status', + label_trans: 'circuit.status', fieldtype: costanti.FieldType.select, jointable: 'statuscircuit', - showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, - onlyforAdmin: true - } - ), - AddCol({ name: 'data_costituz', label_trans: 'circuit.data_costituz', fieldtype: costanti.FieldType.date }), + showWhen: + costanti.showWhen.NewRec + + costanti.showWhen.InPage + + costanti.showWhen.InEdit + + costanti.showWhen.InView_OnlyifExist, + onlyforAdmin: true, + }), + AddCol({ + name: 'data_costituz', + label_trans: 'circuit.data_costituz', + fieldtype: costanti.FieldType.date, + }), AddCol({ name: 'photos', label_trans: 'skill.photos', fieldtype: costanti.FieldType.listimages, jointable: '', - showWhen: costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, + showWhen: + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView, }), AddCol(ModifRec), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colmyUserCircuit = [ AddCol({ - name: 'circuitId', label_trans: 'account.circuitId', + name: 'circuitId', + label_trans: 'account.circuitId', fieldtype: costanti.FieldType.select, jointable: 'listcircuits', }), AddCol({ - name: 'username', label_trans: 'account.users', fieldtype: costanti.FieldType.username_chip, - tipovisu: costanti.TipoVisu.LINK + name: 'username', + label_trans: 'account.users', + fieldtype: costanti.FieldType.username_chip, + tipovisu: costanti.TipoVisu.LINK, }), AddCol({ @@ -4269,26 +6823,74 @@ export const colmyUserCircuit = [ tipoconto: shared_consts.AccountType.CONTO_DI_GRUPPO, }), - AddCol({ name: 'deperibile', label_trans: 'account.deperibile', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'fidoConcesso', label_trans: 'account.fidoConcesso', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'qta_maxConcessa', label_trans: 'account.qta_maxConcessa', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'deperibile', + label_trans: 'account.deperibile', + fieldtype: costanti.FieldType.boolean, + }), + AddCol({ + name: 'fidoConcesso', + label_trans: 'account.fidoConcesso', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'qta_maxConcessa', + label_trans: 'account.qta_maxConcessa', + fieldtype: costanti.FieldType.number, + }), - AddCol({ name: 'totCircolante', label_trans: 'circuit.totCircolante', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'totTransato', label_trans: 'circuit.totTransato', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'numtransactions', label_trans: 'circuit.numtransactions', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'saldo_pend', label_trans: 'circuit.saldo_pend', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'totTransato_pend', label_trans: 'circuit.totTransato_pend', fieldtype: costanti.FieldType.number }), + AddCol({ + name: 'totCircolante', + label_trans: 'circuit.totCircolante', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'totTransato', + label_trans: 'circuit.totTransato', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'numtransactions', + label_trans: 'circuit.numtransactions', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'saldo_pend', + label_trans: 'circuit.saldo_pend', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'totTransato_pend', + label_trans: 'circuit.totTransato_pend', + fieldtype: costanti.FieldType.number, + }), - AddCol({ name: 'importo_iniziale', label_trans: 'account.importo_iniziale', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'saldo', label_trans: 'account.saldo', fieldtype: costanti.FieldType.currency }), - AddCol({ name: 'deleted', label_trans: 'reg.deleted', fieldtype: costanti.FieldType.boolean }), + AddCol({ + name: 'importo_iniziale', + label_trans: 'account.importo_iniziale', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'saldo', + label_trans: 'account.saldo', + fieldtype: costanti.FieldType.currency, + }), + AddCol({ + name: 'deleted', + label_trans: 'reg.deleted', + fieldtype: costanti.FieldType.boolean, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const colTableNotifCoins = [ // AddCol({ name: 'date_created', label_trans: 'sendnotifs.date_created', fieldtype: costanti.FieldType.date }), - AddCol({ name: 'datenotif', label_trans: 'sendnotifs.datenotif', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'datenotif', + label_trans: 'sendnotifs.datenotif', + fieldtype: costanti.FieldType.date, + }), AddCol({ name: 'extrarec.dest', label_trans: 'reg.username', @@ -4326,172 +6928,183 @@ export const colTableNotifCoins = [ noshowlabel: true, tipoconto: shared_consts.AccountType.COMMUNITY_ACCOUNT, }), - AddCol({ name: 'extrarec.qty', field: 'extrarec', subfield: 'qty', label_trans: 'movement.amount', fieldtype: costanti.FieldType.currency }), - AddCol({ name: 'extrarec.causal', field: 'extrarec', subfield: 'causal', label_trans: 'movement.causal', tipovisu: costanti.TipoVisu.TESTO_BORDATO }), - -] + AddCol({ + name: 'extrarec.qty', + field: 'extrarec', + subfield: 'qty', + label_trans: 'movement.amount', + fieldtype: costanti.FieldType.currency, + }), + AddCol({ + name: 'extrarec.causal', + field: 'extrarec', + subfield: 'causal', + label_trans: 'movement.causal', + tipovisu: costanti.TipoVisu.TESTO_BORDATO, + }), +]; export const colTableMovement = [ - AddCol({ name: 'transactionDate', label_trans: 'movement.transactionDate', fieldtype: costanti.FieldType.date }), AddCol({ - name: 'accountFromId', label_trans: 'movement.accountFromId', fieldtype: costanti.FieldType.select, - required: true, jointable: 'listaccounts', + name: 'transactionDate', + label_trans: 'movement.transactionDate', + fieldtype: costanti.FieldType.date, }), AddCol({ - name: 'accountToId', label_trans: 'movement.accountToId', fieldtype: costanti.FieldType.select, - required: true, jointable: 'listaccounts' + name: 'accountFromId', + label_trans: 'movement.accountFromId', + fieldtype: costanti.FieldType.select, + required: true, + jointable: 'listaccounts', + }), + AddCol({ + name: 'accountToId', + label_trans: 'movement.accountToId', + fieldtype: costanti.FieldType.select, + required: true, + jointable: 'listaccounts', + }), + AddCol({ + name: 'amount', + label_trans: 'movement.amount', + fieldtype: costanti.FieldType.number, + required: true, }), - AddCol({ name: 'amount', label_trans: 'movement.amount', fieldtype: costanti.FieldType.number, required: true }), AddCol({ name: 'causal', label_trans: 'movement.causal' }), AddCol({ name: 'causal_table', label_trans: 'movement.causal_table' }), - AddCol({ name: 'causal_IdRec', label_trans: 'movement.causal_IdRec', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'residual', label_trans: 'movement.residual', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'expiringDate', label_trans: 'movement.expiringDate', fieldtype: costanti.FieldType.date }), + AddCol({ + name: 'causal_IdRec', + label_trans: 'movement.causal_IdRec', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'residual', + label_trans: 'movement.residual', + fieldtype: costanti.FieldType.number, + }), + AddCol({ + name: 'expiringDate', + label_trans: 'movement.expiringDate', + fieldtype: costanti.FieldType.date, + }), AddCol(DeleteRec), AddCol(DuplicateRec), -] +]; export const fieldsTable = { getrecTableList(mytable: string) { - return this.tablesList.find((rec) => rec.value === mytable) + return this.tablesList.find((rec) => rec.value === mytable); }, getColByTable(mytable: string, namecol: string) { - - const tablerec: any = this.tablesList.find((rec) => rec.value === mytable) + const tablerec: any = this.tablesList.find((rec) => rec.value === mytable); if (tablerec) { // console.log('tablerec', tablerec.columns) - const mycol = tablerec.columns.find((col: any) => col.name === namecol) + const mycol = tablerec.columns.find((col: any) => col.name === namecol); // console.log('mycol = ', mycol) - return mycol - } else - return null + return mycol; + } else return null; }, getColByColumns(mycolumns: any, namecol: string) { if (mycolumns) { // console.log('tablerec', tablerec.columns) - const mycol = mycolumns.find((col: any) => col.name === namecol) + const mycol = mycolumns.find((col: any) => col.name === namecol); // console.log('mycol = ', mycol) - return mycol - } else - return null + return mycol; + } else return null; }, getArrColsByTable(mytable: string): any { - const tablerec: any = this.tablesList.find((rec) => rec.value === mytable) + const tablerec: any = this.tablesList.find((rec) => rec.value === mytable); if (tablerec && tablerec.columns) { - return tablerec.columns - } else - return [] + return tablerec.columns; + } else return []; }, getKeyByTable(mytable: string): string { - const myrec = this.getrecTableList(mytable) - if (myrec) return ((myrec.colkey) ? myrec.colkey : '_id') - return '_id' + const myrec = this.getrecTableList(mytable); + if (myrec) return myrec.colkey ? myrec.colkey : '_id'; + return '_id'; }, getLabelByTable(mytable: string, collabel?: any): string { if (collabel) { - return collabel + return collabel; } else { - const myrec = this.getrecTableList(mytable) - if (myrec) { // @ts-ignore - return ((myrec.collabel) ? myrec.collabel : 'label') + const myrec = this.getrecTableList(mytable); + if (myrec) { + // @ts-ignore + return myrec.collabel ? myrec.collabel : 'label'; } - return 'label' + return 'label'; } }, getValByTabAndId(table: string, field: string, idvalue: any) { - const globalStore = useGlobalStore() + const globalStore = useGlobalStore(); - const col = fieldsTable.getColByTable(table, field) + const col = fieldsTable.getColByTable(table, field); if (col) { - return globalStore.getValueByTable(col, idvalue) + return globalStore.getValueByTable(col, idvalue); } - return '' + return ''; }, getTitleByTable(mytable: string): string { - const myrec = this.getrecTableList(mytable) - if (myrec) return myrec.label - return '' + const myrec = this.getrecTableList(mytable); + if (myrec) return myrec.label; + return ''; }, getTitleImgByTable(mytable: string): string { - const myrec = this.getrecTableList(mytable) - if (myrec) return myrec.label - return '' + const myrec = this.getrecTableList(mytable); + if (myrec) return myrec.label; + return ''; }, getIconByTable(mytable: string): string { - const myrec: any = this.getrecTableList(mytable) - if (myrec) return ((myrec.icon) ? myrec.icon : '') - return '' + const myrec: any = this.getrecTableList(mytable); + if (myrec) return myrec.icon ? myrec.icon : ''; + return ''; }, getColByAdType(adType: number) { - if (adType === costanti.AdType.OFFRO) - return 'green' - else if (adType === costanti.AdType.CERCO) - return 'red' - else if (adType === 3) - return 'blue' + if (adType === costanti.AdType.OFFRO) return 'green'; + else if (adType === costanti.AdType.CERCO) return 'red'; + else if (adType === 3) return 'blue'; }, getIconByAdType(adType: number) { - if (adType === 1) - return 'fas fa-street-view' - else if (adType === 2) - return 'fas fa-search' - else if (adType === 3) - return 'fas fa-calendar-plus' + if (adType === 1) return 'fas fa-street-view'; + else if (adType === 2) return 'fas fa-search'; + else if (adType === 3) return 'fas fa-calendar-plus'; }, - - // Tabelle che hanno il /pickup - tableRemotePickup: [ - 'countries', - 'phones', - 'cities', - 'products', - 'catalogs', - ], + tableRemotePickup: ['countries', 'phones', 'cities', 'products', 'catalogs'], - tableWithUsername: [ - 'myskills', - 'mygoods', - 'mybachecas', - 'myhosps', - ], + tableWithUsername: ['myskills', 'mygoods', 'mybachecas', 'myhosps'], - tableforEnableCircuits: [ - 'myskills', - 'mygoods', - 'mybachecas', - 'myhosps', - ], + tableforEnableCircuits: ['myskills', 'mygoods', 'mybachecas', 'myhosps'], circuitslistcomplete() { - return colTableCircuitComplete + return colTableCircuitComplete; }, circuitslist() { - return colTableCircuit + return colTableCircuit; }, accountslist() { - return colmyUserCircuit + return colmyUserCircuit; }, movslist() { - return colTableMovement + return colTableMovement; }, colOperators() { - return colTableOperator + return colTableOperator; }, colDisciplines() { - return coldisciplines + return coldisciplines; }, userlist() { - return colTableUsersISP + return colTableUsersISP; }, tablesList: [ @@ -4544,13 +7157,6 @@ export const fieldsTable = { colkey: '_id', collabel: 'numorder', }, - { - value: 'productinfos', - label: 'Info Prodotti', - columns: colTableProductInfos, - colkey: '_id', - collabel: (rec: any) => `${rec.name} (${rec.code})`, - }, { value: 'arrvariazioni', label: 'Variazioni Prodotti', @@ -5006,7 +7612,7 @@ export const fieldsTable = { }, { value: 'cat_interesse_arcadei', - label: 'Categorie d\'Interesse Arcadei', + label: "Categorie d'Interesse Arcadei", columns: colTableGeneric, colkey: 'value', collabel: 'label', @@ -5390,29 +7996,35 @@ export const fieldsTable = { collabel: 'label', }, ], - -} - +}; export const func = { gettablesList() { - const userStore = useUserStore() + const userStore = useUserStore(); if (fieldsTable.tablesList) { - const mylist = fieldsTable.tablesList.filter((rec: any) => ((rec.onlyAdmin === userStore.isAdmin) || (!rec.onlyAdmin)) && (!rec.noshow)) + const mylist = fieldsTable.tablesList.filter( + (rec: any) => + (rec.onlyAdmin === userStore.isAdmin || !rec.onlyAdmin) && !rec.noshow + ); - return mylist + return mylist; } - return [] + return []; }, gettablesListByTable(table: string) { - const userStore = useUserStore() + const userStore = useUserStore(); if (fieldsTable.tablesList) { - const mylist = fieldsTable.tablesList.filter((rec: any) => ((rec.onlyAdmin === userStore.isAdmin) || (!rec.onlyAdmin)) && (!rec.noshow) && rec.value === table) + const mylist = fieldsTable.tablesList.filter( + (rec: any) => + (rec.onlyAdmin === userStore.isAdmin || !rec.onlyAdmin) && + !rec.noshow && + rec.value === table + ); - return mylist + return mylist; } - return [] + return []; }, -} +}; diff --git a/src/store/Modules/tools.ts b/src/store/Modules/tools.ts index d862d2e6..71278368 100644 --- a/src/store/Modules/tools.ts +++ b/src/store/Modules/tools.ts @@ -8974,8 +8974,6 @@ export const tools = { ris = 'pages/' + (path ? path : myrow.path); } else if (table === 'imgcards') { ris = 'pages/' + path; - } else if (table === 'productInfos') { - ris = path; } else if (table === 'imgs') { ris = path; } else { diff --git a/src/store/Products.ts b/src/store/Products.ts index b93c9e36..f35956aa 100755 --- a/src/store/Products.ts +++ b/src/store/Products.ts @@ -141,7 +141,6 @@ export const useProducts = defineStore('Products', { authors: [], publishers: [], subcatprods: [], - productInfos: [], userActive: { username: '', name: '', surname: '', _id: '' }, }), diff --git a/src/store/globalStore.ts b/src/store/globalStore.ts index 25291a7f..68c608c0 100644 --- a/src/store/globalStore.ts +++ b/src/store/globalStore.ts @@ -537,7 +537,6 @@ export const useGlobalStore = defineStore('GlobalStore', { else if (table === 'producers') ris = state.producers; else if (table === 'storehouses') ris = state.storehouses; else if (table === 'providers') ris = state.providers; - else if (table === 'productinfos') ris = Products.productInfos; // else if (table === 'products') ris = Products.products else if (table === 'gasordines') ris = state.gasordines; else if (table === 'scontisticas') ris = state.scontisticas; @@ -2076,9 +2075,6 @@ export const useGlobalStore = defineStore('GlobalStore', { this.gallery = res.data.gallery ? [...res.data.gallery] : []; this.calzoom = res.data.calzoom ? [...res.data.calzoom] : []; Products.products = res.data.products ? [...res.data.products] : []; - Products.productInfos = res.data.productInfos - ? [...res.data.productInfos] - : []; this.producers = res.data.producers ? [...res.data.producers] : []; this.storehouses = res.data.storehouses ? [...res.data.storehouses] : []; this.providers = res.data.providers ? [...res.data.providers] : []; @@ -3154,7 +3150,6 @@ export const useGlobalStore = defineStore('GlobalStore', { try { if (table === 'products') { await productStore.loadProductById(id, true); - } else if (table === 'productinfos') { } } catch (error) { console.error("Errore durante l'aggiornamento della tabella in memoria:", error); diff --git a/src/views/ecommerce/productInfo/index.ts b/src/views/ecommerce/productInfo/index.ts deleted file mode 100755 index 03d92e98..00000000 --- a/src/views/ecommerce/productInfo/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {default as ProductInfo} from './productInfo.vue' diff --git a/src/views/ecommerce/productView/index.ts b/src/views/ecommerce/productView/index.ts new file mode 100755 index 00000000..5e2fca8e --- /dev/null +++ b/src/views/ecommerce/productView/index.ts @@ -0,0 +1 @@ +export {default as ProductInfo} from './productView.vue' diff --git a/src/views/ecommerce/productInfo/productInfo.scss b/src/views/ecommerce/productView/productView.scss similarity index 100% rename from src/views/ecommerce/productInfo/productInfo.scss rename to src/views/ecommerce/productView/productView.scss diff --git a/src/views/ecommerce/productInfo/productInfo.ts b/src/views/ecommerce/productView/productView.ts similarity index 100% rename from src/views/ecommerce/productInfo/productInfo.ts rename to src/views/ecommerce/productView/productView.ts diff --git a/src/views/ecommerce/productInfo/productInfo.vue b/src/views/ecommerce/productView/productView.vue similarity index 100% rename from src/views/ecommerce/productInfo/productInfo.vue rename to src/views/ecommerce/productView/productView.vue diff --git a/yarn.lock b/yarn.lock index d59dcb2a..a6965c64 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4092,11 +4092,6 @@ acorn@^8.15.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816" integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg== -adler-32@~1.3.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/adler-32/-/adler-32-1.3.1.tgz#1dbf0b36dda0012189a32b3679061932df1821e2" - integrity sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A== - ajv-keywords@^3.5.2: version "3.5.2" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" @@ -4882,14 +4877,6 @@ canvg@^3.0.6: stackblur-canvas "^2.0.0" svg-pathdata "^6.0.3" -cfb@~1.2.1: - version "1.2.2" - resolved "https://registry.yarnpkg.com/cfb/-/cfb-1.2.2.tgz#94e687628c700e5155436dac05f74e08df23bc44" - integrity sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA== - dependencies: - adler-32 "~1.3.0" - crc-32 "~1.2.0" - chalk@^1.1.1, chalk@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" @@ -5059,11 +5046,6 @@ coa@~1.0.1: dependencies: q "^1.1.2" -codepage@~1.15.0: - version "1.15.0" - resolved "https://registry.yarnpkg.com/codepage/-/codepage-1.15.0.tgz#2e00519024b39424ec66eeb3ec07227e692618ab" - integrity sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA== - collect-v8-coverage@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz#c0b29bcd33bcd0779a1344c2136051e6afd3d9e9" @@ -5293,7 +5275,7 @@ cosmiconfig@^9.0.0: js-yaml "^4.1.0" parse-json "^5.2.0" -crc-32@^1.2.0, crc-32@~1.2.0, crc-32@~1.2.1: +crc-32@^1.2.0: version "1.2.2" resolved "https://registry.yarnpkg.com/crc-32/-/crc-32-1.2.2.tgz#3cad35a934b8bf71f25ca524b6da51fb7eace2ff" integrity sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ== @@ -6671,11 +6653,6 @@ forwarded@0.2.0: resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== -frac@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/frac/-/frac-1.1.2.tgz#3d74f7f6478c88a1b5020306d747dc6313c74d0b" - integrity sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA== - fraction.js@^4.3.7: version "4.3.7" resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.3.7.tgz#06ca0085157e42fda7f9e726e79fefc4068840f7" @@ -8745,6 +8722,25 @@ mlly@^1.2.0, mlly@^1.7.4: pkg-types "^1.3.0" ufo "^1.5.4" +mongoose-lean-virtuals@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/mongoose-lean-virtuals/-/mongoose-lean-virtuals-1.1.1.tgz#450c1a74b36c573a49db16769ea44d8457c03b44" + integrity sha512-8chOqpVE3bcoWT2pIgcJeIZlXaOfQCavZgQZF4qytUtjRBqsNMyzUoR16qdw9XL2kC478N8iA8z0AA+NSS0d1A== + dependencies: + mpath "^0.8.4" + +mongoose-paginate-v2@^1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/mongoose-paginate-v2/-/mongoose-paginate-v2-1.9.1.tgz#2f724eb31539db0378bb3c319e696e843fdafd91" + integrity sha512-DgURdWkPCeY6cuzkONk0snkFFG/l6ABABDkV3PyW/M2XGvfK/yP4i6Y/PuXkqhfVxKHFLvZ/qBnQxkGzzvo43Q== + dependencies: + mongoose-lean-virtuals "^1.1.0" + +mpath@^0.8.4: + version "0.8.4" + resolved "https://registry.yarnpkg.com/mpath/-/mpath-0.8.4.tgz#6b566d9581621d9e931dd3b142ed3618e7599313" + integrity sha512-DTxNZomBcTWlrMW76jy1wvV37X/cNNxPW1y2Jzd4DZkAaC5ZGsm8bfGfNOthcDuRJujXLqiuS6o3Tpy0JEoh7g== + ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" @@ -10732,13 +10728,6 @@ sprintf-js@~1.0.2: resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== -ssf@~0.11.2: - version "0.11.2" - resolved "https://registry.yarnpkg.com/ssf/-/ssf-0.11.2.tgz#0b99698b237548d088fc43cdf2b70c1a7512c06c" - integrity sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g== - dependencies: - frac "~1.1.2" - stack-trace@^1.0.0-pre2: version "1.0.0-pre2" resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-1.0.0-pre2.tgz#46a83a79f1b287807e9aaafc6a5dd8bcde626f9c" @@ -12000,21 +11989,11 @@ wildcard@^2.0.1: resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-2.0.1.tgz#5ab10d02487198954836b6349f74fff961e10f67" integrity sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ== -wmf@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wmf/-/wmf-1.0.2.tgz#7d19d621071a08c2bdc6b7e688a9c435298cc2da" - integrity sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw== - word-wrap@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== -word@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/word/-/word-0.3.0.tgz#8542157e4f8e849f4a363a288992d47612db9961" - integrity sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA== - workbox-background-sync@7.3.0: version "7.3.0" resolved "https://registry.yarnpkg.com/workbox-background-sync/-/workbox-background-sync-7.3.0.tgz#b6340731a8d5b42b9e75a8a87c8806928e6e6303" @@ -12227,19 +12206,6 @@ ws@~8.17.1: resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b" integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ== -xlsx@^0.18.5: - version "0.18.5" - resolved "https://registry.yarnpkg.com/xlsx/-/xlsx-0.18.5.tgz#16711b9113c848076b8a177022799ad356eba7d0" - integrity sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ== - dependencies: - adler-32 "~1.3.0" - cfb "~1.2.1" - codepage "~1.15.0" - crc-32 "~1.2.1" - ssf "~0.11.2" - wmf "~1.0.1" - word "~0.3.0" - xml-name-validator@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz#79a006e2e63149a8600f15430f0a4725d1524835"