io-sanita-theme 2.10.0 → 2.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/RELEASE.md +15 -0
  3. package/locales/de/LC_MESSAGES/volto.po +50 -0
  4. package/locales/en/LC_MESSAGES/volto.po +50 -0
  5. package/locales/es/LC_MESSAGES/volto.po +50 -0
  6. package/locales/fr/LC_MESSAGES/volto.po +50 -0
  7. package/locales/it/LC_MESSAGES/volto.po +50 -0
  8. package/locales/volto.pot +51 -1
  9. package/package.json +1 -1
  10. package/src/actions/ctSchema.js +13 -0
  11. package/src/actions/index.js +3 -0
  12. package/src/components/Blocks/Accordion/Container.jsx +1 -1
  13. package/src/components/Blocks/Listing/AttachmentCard/AttachmentCardTemplate.jsx +0 -2
  14. package/src/components/Blocks/Listing/Skeletons/TableTemplateSkeleton.jsx +53 -0
  15. package/src/components/Blocks/Listing/Table/TableTemplate.jsx +172 -0
  16. package/src/components/Blocks/Listing/Table/table-templates.scss +41 -0
  17. package/src/components/Blocks/index.js +3 -2
  18. package/src/components/View/Widgets/BlocksViewWidget.jsx +7 -0
  19. package/src/components/View/Widgets/ParliamoDiWidgetView.jsx +26 -0
  20. package/src/components/View/Widgets/SelectViewWidget.jsx +18 -0
  21. package/src/components/manage/Widgets/CTFieldsWidget/CTFieldsWidget.jsx +84 -0
  22. package/src/components/manage/Widgets/CTTitleColumnWidget/CTTitleColumnWidget.jsx +22 -0
  23. package/src/config/blocks/listing/ListingOptions/index.js +1 -0
  24. package/src/config/blocks/listing/ListingOptions/tableTemplate.js +105 -0
  25. package/src/config/blocks/listing/listingVariations.js +20 -3
  26. package/src/config/ioSanitaConfig.js +3 -3
  27. package/src/config/widgets/widgets.js +39 -0
  28. package/src/customizations/@plone/volto-slate/blocks/Table/TableBlockView.jsx +177 -0
  29. package/src/customizations/volto/components/manage/Blocks/Listing/ListingBody.jsx +6 -6
  30. package/src/customizations/volto/components/manage/Widgets/ImageWidget.jsx +343 -0
  31. package/src/overrideTranslations.jsx +8 -0
  32. package/src/reducers/ctSchema.js +80 -0
  33. package/src/reducers/index.js +2 -0
  34. package/src/theme/_bootstrap-italia.scss +1 -0
  35. package/src/theme/_variables.scss +1 -1
  36. package/src/theme/bootstrap-italia/custom/_tables.scss +1 -0
  37. package/src/theme/io-sanita/components/blocks/_skeleton.scss +5 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.11.1](https://github.com/RedTurtle/io-sanita-theme/compare/2.11.0...2.11.1) (2025-03-31)
4
+
5
+ ### Bug Fixes
6
+
7
+ * a11y Table block ([#76](https://github.com/RedTurtle/io-sanita-theme/issues/76)) ([773d4d9](https://github.com/RedTurtle/io-sanita-theme/commit/773d4d9da80563ef531bcff4d546dd79cbedce00))
8
+ * display none to -newsletterSubscribe on main footer settings ([f2d61ea](https://github.com/RedTurtle/io-sanita-theme/commit/f2d61eabd36d66ea8e5bb146762c5d9bbec595e5))
9
+ * ImageWidget submit form . Backport of voltopr ([2c6c873](https://github.com/RedTurtle/io-sanita-theme/commit/2c6c873042661006f0ba3d60159630d68b07ed20))
10
+ * locales ([b21cbbf](https://github.com/RedTurtle/io-sanita-theme/commit/b21cbbfa51927914081f912e22a801cc9400073f))
11
+ * remove newsletter subscribe option in footer configuration form ([#77](https://github.com/RedTurtle/io-sanita-theme/issues/77)) ([f6b5bf4](https://github.com/RedTurtle/io-sanita-theme/commit/f6b5bf4c7f7b862c2b7ed06908ee6ac2c0be0413))
12
+ * table template view taxonomy ([1175082](https://github.com/RedTurtle/io-sanita-theme/commit/11750828a8cbf7b414fbd8358204af9aa23e24d6))
13
+
14
+ ## [2.11.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.10.0...2.11.0) (2025-03-25)
15
+
16
+ ### Features
17
+
18
+ * Table listing template ([#75](https://github.com/RedTurtle/io-sanita-theme/issues/75)) ([9f478e2](https://github.com/RedTurtle/io-sanita-theme/commit/9f478e248761f6becf40660da4b66bf64b3796e3))
19
+
3
20
  ## [2.10.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.9.1...2.10.0) (2025-03-24)
4
21
 
5
22
  ### Features
package/RELEASE.md CHANGED
@@ -41,6 +41,21 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 2.11.1 (31/03/2025)
45
+
46
+ ### Fix
47
+
48
+ - sistemato un problema di perdita di dati durante il caricamento di una nuova immagine nel form di inseriemento dati di un ct con i campi a blocchi.
49
+ - sistemata la visualizzazione delle tassonomie nel template 'Tabella' del blocco elenco
50
+ - sistemata l'accessibilità per il blocco Tabella
51
+ - rimosso il flag di configurazione 'Mostra la form di iscrizione' nel footer.
52
+
53
+ ## Versione 2.11.0 (25/03/2025)
54
+
55
+ ### Novità
56
+
57
+ - Aggiunto il template 'tabella' del blocco elenco in cui è possibile selezionare quali colonne dei content-type mostrare
58
+
44
59
  ## Versione 2.10.0 (24/03/2025)
45
60
 
46
61
  ### Novità
@@ -1077,6 +1077,11 @@ msgstr ""
1077
1077
  msgid "appStoreLink"
1078
1078
  msgstr ""
1079
1079
 
1080
+ #. Default: "ascending"
1081
+ #: overrideTranslations
1082
+ msgid "ascendingTableSort"
1083
+ msgstr ""
1084
+
1080
1085
  #. Default: "Allegato"
1081
1086
  #: components/Cards/CardFile/CardFile
1082
1087
  msgid "attachment"
@@ -1727,6 +1732,11 @@ msgstr ""
1727
1732
  msgid "delete"
1728
1733
  msgstr ""
1729
1734
 
1735
+ #. Default: "descending"
1736
+ #: overrideTranslations
1737
+ msgid "descendingTableSort"
1738
+ msgstr ""
1739
+
1730
1740
  #. Default: "Testo per il link al dettaglio"
1731
1741
  #: config/blocks/listing/ListingOptions/utils
1732
1742
  msgid "detail_link_label"
@@ -3952,6 +3962,46 @@ msgstr ""
3952
3962
  msgid "successivo"
3953
3963
  msgstr ""
3954
3964
 
3965
+ #. Default: "Colore delle righe alternato"
3966
+ #: config/blocks/listing/ListingOptions/tableTemplate
3967
+ msgid "table_variation_alternate_rows"
3968
+ msgstr ""
3969
+
3970
+ #. Default: "Colonne della tabella"
3971
+ #: config/blocks/listing/ListingOptions/tableTemplate
3972
+ msgid "table_variation_columns"
3973
+ msgstr ""
3974
+
3975
+ #. Default: "Colonna"
3976
+ #: config/blocks/listing/ListingOptions/tableTemplate
3977
+ msgid "table_variaton_column"
3978
+ msgstr ""
3979
+
3980
+ #. Default: "Tipo di contenuto"
3981
+ #: config/blocks/listing/ListingOptions/tableTemplate
3982
+ msgid "table_variaton_ct"
3983
+ msgstr ""
3984
+
3985
+ #. Default: "Campo"
3986
+ #: config/blocks/listing/ListingOptions/tableTemplate
3987
+ msgid "table_variaton_field"
3988
+ msgstr ""
3989
+
3990
+ #. Default: "Titolo"
3991
+ #: config/blocks/listing/ListingOptions/tableTemplate
3992
+ msgid "table_variaton_title"
3993
+ msgstr ""
3994
+
3995
+ #. Default: "Titolo della colonna. Se vuoi, puoi modificare il titolo di default."
3996
+ #: config/blocks/listing/ListingOptions/tableTemplate
3997
+ msgid "table_variaton_title_description"
3998
+ msgstr ""
3999
+
4000
+ #. Default: "Titolo"
4001
+ #: components/Blocks/Listing/Table/TableTemplate
4002
+ msgid "tabletemplate_column_title"
4003
+ msgstr ""
4004
+
3955
4005
  #. Default: "Telefono"
3956
4006
  #: components/View/PuntoDiContatto/PuntoDiContattoContatti
3957
4007
  msgid "telefono"
@@ -1072,6 +1072,11 @@ msgstr "Opening date"
1072
1072
  msgid "appStoreLink"
1073
1073
  msgstr ""
1074
1074
 
1075
+ #. Default: "ascending"
1076
+ #: overrideTranslations
1077
+ msgid "ascendingTableSort"
1078
+ msgstr ""
1079
+
1075
1080
  #. Default: "Allegato"
1076
1081
  #: components/Cards/CardFile/CardFile
1077
1082
  msgid "attachment"
@@ -1722,6 +1727,11 @@ msgstr "Start date"
1722
1727
  msgid "delete"
1723
1728
  msgstr ""
1724
1729
 
1730
+ #. Default: "descending"
1731
+ #: overrideTranslations
1732
+ msgid "descendingTableSort"
1733
+ msgstr ""
1734
+
1725
1735
  #. Default: "Testo per il link al dettaglio"
1726
1736
  #: config/blocks/listing/ListingOptions/utils
1727
1737
  msgid "detail_link_label"
@@ -3947,6 +3957,46 @@ msgstr "Operating unit"
3947
3957
  msgid "successivo"
3948
3958
  msgstr "Next"
3949
3959
 
3960
+ #. Default: "Colore delle righe alternato"
3961
+ #: config/blocks/listing/ListingOptions/tableTemplate
3962
+ msgid "table_variation_alternate_rows"
3963
+ msgstr ""
3964
+
3965
+ #. Default: "Colonne della tabella"
3966
+ #: config/blocks/listing/ListingOptions/tableTemplate
3967
+ msgid "table_variation_columns"
3968
+ msgstr ""
3969
+
3970
+ #. Default: "Colonna"
3971
+ #: config/blocks/listing/ListingOptions/tableTemplate
3972
+ msgid "table_variaton_column"
3973
+ msgstr ""
3974
+
3975
+ #. Default: "Tipo di contenuto"
3976
+ #: config/blocks/listing/ListingOptions/tableTemplate
3977
+ msgid "table_variaton_ct"
3978
+ msgstr ""
3979
+
3980
+ #. Default: "Campo"
3981
+ #: config/blocks/listing/ListingOptions/tableTemplate
3982
+ msgid "table_variaton_field"
3983
+ msgstr ""
3984
+
3985
+ #. Default: "Titolo"
3986
+ #: config/blocks/listing/ListingOptions/tableTemplate
3987
+ msgid "table_variaton_title"
3988
+ msgstr ""
3989
+
3990
+ #. Default: "Titolo della colonna. Se vuoi, puoi modificare il titolo di default."
3991
+ #: config/blocks/listing/ListingOptions/tableTemplate
3992
+ msgid "table_variaton_title_description"
3993
+ msgstr ""
3994
+
3995
+ #. Default: "Titolo"
3996
+ #: components/Blocks/Listing/Table/TableTemplate
3997
+ msgid "tabletemplate_column_title"
3998
+ msgstr ""
3999
+
3950
4000
  #. Default: "Telefono"
3951
4001
  #: components/View/PuntoDiContatto/PuntoDiContattoContatti
3952
4002
  msgid "telefono"
@@ -1079,6 +1079,11 @@ msgstr ""
1079
1079
  msgid "appStoreLink"
1080
1080
  msgstr ""
1081
1081
 
1082
+ #. Default: "ascending"
1083
+ #: overrideTranslations
1084
+ msgid "ascendingTableSort"
1085
+ msgstr ""
1086
+
1082
1087
  #. Default: "Allegato"
1083
1088
  #: components/Cards/CardFile/CardFile
1084
1089
  msgid "attachment"
@@ -1729,6 +1734,11 @@ msgstr ""
1729
1734
  msgid "delete"
1730
1735
  msgstr ""
1731
1736
 
1737
+ #. Default: "descending"
1738
+ #: overrideTranslations
1739
+ msgid "descendingTableSort"
1740
+ msgstr ""
1741
+
1732
1742
  #. Default: "Testo per il link al dettaglio"
1733
1743
  #: config/blocks/listing/ListingOptions/utils
1734
1744
  msgid "detail_link_label"
@@ -3954,6 +3964,46 @@ msgstr ""
3954
3964
  msgid "successivo"
3955
3965
  msgstr ""
3956
3966
 
3967
+ #. Default: "Colore delle righe alternato"
3968
+ #: config/blocks/listing/ListingOptions/tableTemplate
3969
+ msgid "table_variation_alternate_rows"
3970
+ msgstr ""
3971
+
3972
+ #. Default: "Colonne della tabella"
3973
+ #: config/blocks/listing/ListingOptions/tableTemplate
3974
+ msgid "table_variation_columns"
3975
+ msgstr ""
3976
+
3977
+ #. Default: "Colonna"
3978
+ #: config/blocks/listing/ListingOptions/tableTemplate
3979
+ msgid "table_variaton_column"
3980
+ msgstr ""
3981
+
3982
+ #. Default: "Tipo di contenuto"
3983
+ #: config/blocks/listing/ListingOptions/tableTemplate
3984
+ msgid "table_variaton_ct"
3985
+ msgstr ""
3986
+
3987
+ #. Default: "Campo"
3988
+ #: config/blocks/listing/ListingOptions/tableTemplate
3989
+ msgid "table_variaton_field"
3990
+ msgstr ""
3991
+
3992
+ #. Default: "Titolo"
3993
+ #: config/blocks/listing/ListingOptions/tableTemplate
3994
+ msgid "table_variaton_title"
3995
+ msgstr ""
3996
+
3997
+ #. Default: "Titolo della colonna. Se vuoi, puoi modificare il titolo di default."
3998
+ #: config/blocks/listing/ListingOptions/tableTemplate
3999
+ msgid "table_variaton_title_description"
4000
+ msgstr ""
4001
+
4002
+ #. Default: "Titolo"
4003
+ #: components/Blocks/Listing/Table/TableTemplate
4004
+ msgid "tabletemplate_column_title"
4005
+ msgstr ""
4006
+
3957
4007
  #. Default: "Telefono"
3958
4008
  #: components/View/PuntoDiContatto/PuntoDiContattoContatti
3959
4009
  msgid "telefono"
@@ -1079,6 +1079,11 @@ msgstr ""
1079
1079
  msgid "appStoreLink"
1080
1080
  msgstr ""
1081
1081
 
1082
+ #. Default: "ascending"
1083
+ #: overrideTranslations
1084
+ msgid "ascendingTableSort"
1085
+ msgstr ""
1086
+
1082
1087
  #. Default: "Allegato"
1083
1088
  #: components/Cards/CardFile/CardFile
1084
1089
  msgid "attachment"
@@ -1729,6 +1734,11 @@ msgstr ""
1729
1734
  msgid "delete"
1730
1735
  msgstr ""
1731
1736
 
1737
+ #. Default: "descending"
1738
+ #: overrideTranslations
1739
+ msgid "descendingTableSort"
1740
+ msgstr ""
1741
+
1732
1742
  #. Default: "Testo per il link al dettaglio"
1733
1743
  #: config/blocks/listing/ListingOptions/utils
1734
1744
  msgid "detail_link_label"
@@ -3954,6 +3964,46 @@ msgstr ""
3954
3964
  msgid "successivo"
3955
3965
  msgstr ""
3956
3966
 
3967
+ #. Default: "Colore delle righe alternato"
3968
+ #: config/blocks/listing/ListingOptions/tableTemplate
3969
+ msgid "table_variation_alternate_rows"
3970
+ msgstr ""
3971
+
3972
+ #. Default: "Colonne della tabella"
3973
+ #: config/blocks/listing/ListingOptions/tableTemplate
3974
+ msgid "table_variation_columns"
3975
+ msgstr ""
3976
+
3977
+ #. Default: "Colonna"
3978
+ #: config/blocks/listing/ListingOptions/tableTemplate
3979
+ msgid "table_variaton_column"
3980
+ msgstr ""
3981
+
3982
+ #. Default: "Tipo di contenuto"
3983
+ #: config/blocks/listing/ListingOptions/tableTemplate
3984
+ msgid "table_variaton_ct"
3985
+ msgstr ""
3986
+
3987
+ #. Default: "Campo"
3988
+ #: config/blocks/listing/ListingOptions/tableTemplate
3989
+ msgid "table_variaton_field"
3990
+ msgstr ""
3991
+
3992
+ #. Default: "Titolo"
3993
+ #: config/blocks/listing/ListingOptions/tableTemplate
3994
+ msgid "table_variaton_title"
3995
+ msgstr ""
3996
+
3997
+ #. Default: "Titolo della colonna. Se vuoi, puoi modificare il titolo di default."
3998
+ #: config/blocks/listing/ListingOptions/tableTemplate
3999
+ msgid "table_variaton_title_description"
4000
+ msgstr ""
4001
+
4002
+ #. Default: "Titolo"
4003
+ #: components/Blocks/Listing/Table/TableTemplate
4004
+ msgid "tabletemplate_column_title"
4005
+ msgstr ""
4006
+
3957
4007
  #. Default: "Telefono"
3958
4008
  #: components/View/PuntoDiContatto/PuntoDiContattoContatti
3959
4009
  msgid "telefono"
@@ -1072,6 +1072,11 @@ msgstr ""
1072
1072
  msgid "appStoreLink"
1073
1073
  msgstr ""
1074
1074
 
1075
+ #. Default: "ascending"
1076
+ #: overrideTranslations
1077
+ msgid "ascendingTableSort"
1078
+ msgstr "ordine crescente"
1079
+
1075
1080
  #. Default: "Allegato"
1076
1081
  #: components/Cards/CardFile/CardFile
1077
1082
  msgid "attachment"
@@ -1722,6 +1727,11 @@ msgstr ""
1722
1727
  msgid "delete"
1723
1728
  msgstr "elimina"
1724
1729
 
1730
+ #. Default: "descending"
1731
+ #: overrideTranslations
1732
+ msgid "descendingTableSort"
1733
+ msgstr "ordine discendente"
1734
+
1725
1735
  #. Default: "Testo per il link al dettaglio"
1726
1736
  #: config/blocks/listing/ListingOptions/utils
1727
1737
  msgid "detail_link_label"
@@ -3947,6 +3957,46 @@ msgstr ""
3947
3957
  msgid "successivo"
3948
3958
  msgstr ""
3949
3959
 
3960
+ #. Default: "Colore delle righe alternato"
3961
+ #: config/blocks/listing/ListingOptions/tableTemplate
3962
+ msgid "table_variation_alternate_rows"
3963
+ msgstr ""
3964
+
3965
+ #. Default: "Colonne della tabella"
3966
+ #: config/blocks/listing/ListingOptions/tableTemplate
3967
+ msgid "table_variation_columns"
3968
+ msgstr ""
3969
+
3970
+ #. Default: "Colonna"
3971
+ #: config/blocks/listing/ListingOptions/tableTemplate
3972
+ msgid "table_variaton_column"
3973
+ msgstr ""
3974
+
3975
+ #. Default: "Tipo di contenuto"
3976
+ #: config/blocks/listing/ListingOptions/tableTemplate
3977
+ msgid "table_variaton_ct"
3978
+ msgstr ""
3979
+
3980
+ #. Default: "Campo"
3981
+ #: config/blocks/listing/ListingOptions/tableTemplate
3982
+ msgid "table_variaton_field"
3983
+ msgstr ""
3984
+
3985
+ #. Default: "Titolo"
3986
+ #: config/blocks/listing/ListingOptions/tableTemplate
3987
+ msgid "table_variaton_title"
3988
+ msgstr ""
3989
+
3990
+ #. Default: "Titolo della colonna. Se vuoi, puoi modificare il titolo di default."
3991
+ #: config/blocks/listing/ListingOptions/tableTemplate
3992
+ msgid "table_variaton_title_description"
3993
+ msgstr ""
3994
+
3995
+ #. Default: "Titolo"
3996
+ #: components/Blocks/Listing/Table/TableTemplate
3997
+ msgid "tabletemplate_column_title"
3998
+ msgstr ""
3999
+
3950
4000
  #. Default: "Telefono"
3951
4001
  #: components/View/PuntoDiContatto/PuntoDiContattoContatti
3952
4002
  msgid "telefono"
package/locales/volto.pot CHANGED
@@ -1,7 +1,7 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Plone\n"
4
- "POT-Creation-Date: 2025-03-24T09:51:21.877Z\n"
4
+ "POT-Creation-Date: 2025-03-31T11:23:16.064Z\n"
5
5
  "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
6
  "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
7
  "Content-Type: text/plain; charset=utf-8\n"
@@ -1074,6 +1074,11 @@ msgstr ""
1074
1074
  msgid "appStoreLink"
1075
1075
  msgstr ""
1076
1076
 
1077
+ #. Default: "ascending"
1078
+ #: overrideTranslations
1079
+ msgid "ascendingTableSort"
1080
+ msgstr ""
1081
+
1077
1082
  #. Default: "Allegato"
1078
1083
  #: components/Cards/CardFile/CardFile
1079
1084
  msgid "attachment"
@@ -1724,6 +1729,11 @@ msgstr ""
1724
1729
  msgid "delete"
1725
1730
  msgstr ""
1726
1731
 
1732
+ #. Default: "descending"
1733
+ #: overrideTranslations
1734
+ msgid "descendingTableSort"
1735
+ msgstr ""
1736
+
1727
1737
  #. Default: "Testo per il link al dettaglio"
1728
1738
  #: config/blocks/listing/ListingOptions/utils
1729
1739
  msgid "detail_link_label"
@@ -3949,6 +3959,46 @@ msgstr ""
3949
3959
  msgid "successivo"
3950
3960
  msgstr ""
3951
3961
 
3962
+ #. Default: "Colore delle righe alternato"
3963
+ #: config/blocks/listing/ListingOptions/tableTemplate
3964
+ msgid "table_variation_alternate_rows"
3965
+ msgstr ""
3966
+
3967
+ #. Default: "Colonne della tabella"
3968
+ #: config/blocks/listing/ListingOptions/tableTemplate
3969
+ msgid "table_variation_columns"
3970
+ msgstr ""
3971
+
3972
+ #. Default: "Colonna"
3973
+ #: config/blocks/listing/ListingOptions/tableTemplate
3974
+ msgid "table_variaton_column"
3975
+ msgstr ""
3976
+
3977
+ #. Default: "Tipo di contenuto"
3978
+ #: config/blocks/listing/ListingOptions/tableTemplate
3979
+ msgid "table_variaton_ct"
3980
+ msgstr ""
3981
+
3982
+ #. Default: "Campo"
3983
+ #: config/blocks/listing/ListingOptions/tableTemplate
3984
+ msgid "table_variaton_field"
3985
+ msgstr ""
3986
+
3987
+ #. Default: "Titolo"
3988
+ #: config/blocks/listing/ListingOptions/tableTemplate
3989
+ msgid "table_variaton_title"
3990
+ msgstr ""
3991
+
3992
+ #. Default: "Titolo della colonna. Se vuoi, puoi modificare il titolo di default."
3993
+ #: config/blocks/listing/ListingOptions/tableTemplate
3994
+ msgid "table_variaton_title_description"
3995
+ msgstr ""
3996
+
3997
+ #. Default: "Titolo"
3998
+ #: components/Blocks/Listing/Table/TableTemplate
3999
+ msgid "tabletemplate_column_title"
4000
+ msgstr ""
4001
+
3952
4002
  #. Default: "Telefono"
3953
4003
  #: components/View/PuntoDiContatto/PuntoDiContattoContatti
3954
4004
  msgid "telefono"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "io-sanita-theme",
3
- "version": "2.10.0",
3
+ "version": "2.11.1",
4
4
  "description": "io-sanita-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -0,0 +1,13 @@
1
+ export const GET_CT_SCHEMA = 'GET_CT_SCHEMA';
2
+
3
+ export function getCTSchema(type, url) {
4
+ url = typeof url !== 'undefined' ? url : '';
5
+ return {
6
+ type: GET_CT_SCHEMA,
7
+ subrequest: type,
8
+ request: {
9
+ op: 'get',
10
+ path: `${url}/@types/${type}`,
11
+ },
12
+ };
13
+ }
@@ -19,6 +19,7 @@ import {
19
19
  getTassonomieSearch,
20
20
  GET_TASSONOMIE_SEARCH,
21
21
  } from './search';
22
+ import { getCTSchema, GET_CT_SCHEMA } from './ctSchema';
22
23
 
23
24
  import { getFarmacia, GET_FARMACIA } from './getFarmacia';
24
25
  import {
@@ -57,4 +58,6 @@ export {
57
58
  RESET_QUERYSTRING_RESULTS,
58
59
  getSearchBandiFilters,
59
60
  GET_SEARCH_BANDI_FILTERS,
61
+ getCTSchema,
62
+ GET_CT_SCHEMA,
60
63
  };
@@ -5,7 +5,7 @@ import { TextBlockView } from '@plone/volto-slate/blocks/Text';
5
5
  const AccordionContainer = ({ data, headerChildren, children }) => {
6
6
  return data.show_block_bg ? (
7
7
  <div className="public-ui">
8
- <div className="full-width section section-muted section-inset-shadow py-5">
8
+ <div className="full-width section section-muted section-inset-shadow py-5 mb-4">
9
9
  <Container className="px-md-4">
10
10
  <Card className="card-bg rounded no-after" noWrapper={false}>
11
11
  {(data.title || data.description || headerChildren) && (
@@ -7,8 +7,6 @@ import { ListingContainer } from 'io-sanita-theme/components/Blocks';
7
7
  import { LinkMore } from 'io-sanita-theme/components';
8
8
  import { CardFile } from 'io-sanita-theme/components';
9
9
 
10
- import AttachmentCardTemplateSkeleton from '../Skeletons/AttachmentCardTemplateSkeleton';
11
-
12
10
  const AttachmentCardTemplate = (props) => {
13
11
  const {
14
12
  items,
@@ -0,0 +1,53 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
4
+ import { Row, Col, Table } from 'design-react-kit';
5
+ import { ListingContainer } from 'io-sanita-theme/components/Blocks';
6
+
7
+ const SimpleListTemplateSkeleton = (props) => {
8
+ const { isEditMode, title, linkHref, show_block_bg, show_pointer_list } =
9
+ props;
10
+ return (
11
+ <div className="table-skeleton-template">
12
+ <ListingContainer data={props} isEditMode={isEditMode}>
13
+ <div className="skeleton-template">
14
+ {title && (
15
+ <Row>
16
+ <Col>
17
+ <h2 className="mb-4">{title}</h2>
18
+ </Col>
19
+ </Row>
20
+ )}
21
+
22
+ <Table size="sm" responsive bordered>
23
+ <thead>
24
+ <tr>
25
+ {[0, 1, 2, 3, 4].map((i) => (
26
+ <th scope="col" key={i}></th>
27
+ ))}
28
+ </tr>
29
+ </thead>
30
+ <tbody>
31
+ {[0, 1, 2, 3, 4, 5, 6].map((i) => (
32
+ <tr key={i}>
33
+ {[0, 1, 2, 3, 4].map((i) => (
34
+ <td scope="col" key={i}></td>
35
+ ))}
36
+ </tr>
37
+ ))}
38
+ </tbody>
39
+ </Table>
40
+ {linkHref && <div className="link-button text-center my-5"></div>}
41
+ </div>
42
+ </ListingContainer>
43
+ </div>
44
+ );
45
+ };
46
+
47
+ SimpleListTemplateSkeleton.propTypes = {
48
+ linkHref: PropTypes.any,
49
+ isEditMode: PropTypes.bool,
50
+ title: PropTypes.string,
51
+ };
52
+
53
+ export default SimpleListTemplateSkeleton;