design-comuni-plone-theme 11.11.1 → 11.12.0

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 (164) hide show
  1. package/.github/workflows/npm.yml +3 -1
  2. package/.yarn/cache/@formatjs-ecma402-abstract-npm-1.18.2-281c9afdd0-c664056cca.zip +0 -0
  3. package/.yarn/cache/@formatjs-fast-memoize-npm-2.2.0-4a46a61b8b-8697fe72a7.zip +0 -0
  4. package/.yarn/cache/@formatjs-icu-messageformat-parser-npm-2.7.6-59cd895220-d537253cbf.zip +0 -0
  5. package/.yarn/cache/@formatjs-icu-skeleton-parser-npm-1.8.0-0f1fd4bf3f-85ca45148a.zip +0 -0
  6. package/.yarn/cache/@formatjs-intl-localematcher-npm-0.5.4-e30cfcd8fd-a0af57874f.zip +0 -0
  7. package/.yarn/cache/@internationalized-date-npm-3.5.3-435a424ba4-e3b011b587.zip +0 -0
  8. package/.yarn/cache/@internationalized-message-npm-3.1.3-ed0b43d16d-76b7aadad0.zip +0 -0
  9. package/.yarn/cache/@internationalized-number-npm-3.5.2-0f0b803d0d-b622849a6c.zip +0 -0
  10. package/.yarn/cache/@internationalized-string-npm-3.2.2-dc233d6c2e-32d5944f0a.zip +0 -0
  11. package/.yarn/cache/@plone-components-npm-2.0.0-alpha.7-ae15679e71-6eb35f5ef6.zip +0 -0
  12. package/.yarn/cache/@react-aria-breadcrumbs-npm-3.5.12-4df37e0505-19c473c624.zip +0 -0
  13. package/.yarn/cache/@react-aria-button-npm-3.9.4-bcfdfa6d77-3644f5b504.zip +0 -0
  14. package/.yarn/cache/@react-aria-calendar-npm-3.5.7-4a24a3018a-08088c27ad.zip +0 -0
  15. package/.yarn/cache/@react-aria-checkbox-npm-3.14.2-ec0875b197-33c280dbaa.zip +0 -0
  16. package/.yarn/cache/@react-aria-color-npm-3.0.0-beta.32-b69a571afd-fcaa145f2d.zip +0 -0
  17. package/.yarn/cache/@react-aria-combobox-npm-3.9.0-9d01e3bcc8-ebc3aa2523.zip +0 -0
  18. package/.yarn/cache/@react-aria-datepicker-npm-3.10.0-b44d40522c-b5b3226e0e.zip +0 -0
  19. package/.yarn/cache/@react-aria-dialog-npm-3.5.13-fd75d2058e-b03586c90b.zip +0 -0
  20. package/.yarn/cache/@react-aria-dnd-npm-3.6.0-085417ff5c-da39c859dc.zip +0 -0
  21. package/.yarn/cache/@react-aria-focus-npm-3.17.0-a0d6fd01c9-bac778f7f9.zip +0 -0
  22. package/.yarn/cache/@react-aria-form-npm-3.0.4-1f761ca8f4-97a8f25e7b.zip +0 -0
  23. package/.yarn/cache/@react-aria-grid-npm-3.9.0-cdd984835d-c3841b238b.zip +0 -0
  24. package/.yarn/cache/@react-aria-gridlist-npm-3.8.0-40b98ff740-04ab1cccee.zip +0 -0
  25. package/.yarn/cache/@react-aria-i18n-npm-3.11.0-3bd97ed4c6-c4c7c7bd16.zip +0 -0
  26. package/.yarn/cache/@react-aria-interactions-npm-3.21.2-c6fe2e70fd-df7ca376b1.zip +0 -0
  27. package/.yarn/cache/@react-aria-label-npm-3.7.7-39b24fbd65-bfa2ec757c.zip +0 -0
  28. package/.yarn/cache/@react-aria-link-npm-3.7.0-cf388c071e-0af089b4b6.zip +0 -0
  29. package/.yarn/cache/@react-aria-listbox-npm-3.12.0-c9a3fcfdc1-2591d78997.zip +0 -0
  30. package/.yarn/cache/@react-aria-live-announcer-npm-3.3.3-46433149f6-501e772dba.zip +0 -0
  31. package/.yarn/cache/@react-aria-menu-npm-3.14.0-6fa31f531d-7f716c6ef9.zip +0 -0
  32. package/.yarn/cache/@react-aria-meter-npm-3.4.12-2821308fcd-a344cbb3df.zip +0 -0
  33. package/.yarn/cache/@react-aria-numberfield-npm-3.11.2-09acd47715-4e86800c8a.zip +0 -0
  34. package/.yarn/cache/@react-aria-overlays-npm-3.22.0-90340dac2d-bc2a4ed89d.zip +0 -0
  35. package/.yarn/cache/@react-aria-progress-npm-3.4.12-dfcbd6cd8f-3ca779f189.zip +0 -0
  36. package/.yarn/cache/@react-aria-radio-npm-3.10.3-94cedc9974-62cc213b68.zip +0 -0
  37. package/.yarn/cache/@react-aria-searchfield-npm-3.7.4-aaf2343364-ca4bc43633.zip +0 -0
  38. package/.yarn/cache/@react-aria-select-npm-3.14.4-36c0aabf5a-7b091a7a9c.zip +0 -0
  39. package/.yarn/cache/@react-aria-selection-npm-3.18.0-ac9a672791-58d96d02cd.zip +0 -0
  40. package/.yarn/cache/@react-aria-separator-npm-3.3.12-cba989b17a-972f038c36.zip +0 -0
  41. package/.yarn/cache/@react-aria-slider-npm-3.7.7-ed4b28f711-3d4b8c88cc.zip +0 -0
  42. package/.yarn/cache/@react-aria-spinbutton-npm-3.6.4-1361ae7900-d3df661c3b.zip +0 -0
  43. package/.yarn/cache/@react-aria-ssr-npm-3.9.3-83f9d6a628-9bbc8fea4a.zip +0 -0
  44. package/.yarn/cache/@react-aria-switch-npm-3.6.3-491c39fd33-754bdd8fe0.zip +0 -0
  45. package/.yarn/cache/@react-aria-table-npm-3.14.0-28948a50ad-8ce75e4b03.zip +0 -0
  46. package/.yarn/cache/@react-aria-tabs-npm-3.9.0-06e5f74497-1460c136f1.zip +0 -0
  47. package/.yarn/cache/@react-aria-tag-npm-3.4.0-1910b576b8-1fcd4068af.zip +0 -0
  48. package/.yarn/cache/@react-aria-textfield-npm-3.14.4-1c110be229-b9ba98a86e.zip +0 -0
  49. package/.yarn/cache/@react-aria-toggle-npm-3.10.3-93811531bc-a54c83da54.zip +0 -0
  50. package/.yarn/cache/@react-aria-toolbar-npm-3.0.0-beta.4-8a6d41e05d-ae6fc5f49a.zip +0 -0
  51. package/.yarn/cache/@react-aria-tooltip-npm-3.7.3-e2a6890301-57743f4bbd.zip +0 -0
  52. package/.yarn/cache/@react-aria-tree-npm-3.0.0-alpha.0-48c591e08d-2829e3a0ef.zip +0 -0
  53. package/.yarn/cache/@react-aria-utils-npm-3.24.0-b754bf323d-0f0b530f06.zip +0 -0
  54. package/.yarn/cache/@react-aria-visually-hidden-npm-3.8.11-437e8b0708-5b0e770a9c.zip +0 -0
  55. package/.yarn/cache/@react-spectrum-utils-npm-3.11.6-38e10974c6-6089e7b70b.zip +0 -0
  56. package/.yarn/cache/@react-stately-calendar-npm-3.5.0-269efd3343-8395aaf34d.zip +0 -0
  57. package/.yarn/cache/@react-stately-checkbox-npm-3.6.4-a5dc7cc18a-89c38c8698.zip +0 -0
  58. package/.yarn/cache/@react-stately-collections-npm-3.10.6-669dc2c16b-bc81d37b45.zip +0 -0
  59. package/.yarn/cache/@react-stately-color-npm-3.6.0-aee6f5f342-2cf47e66f0.zip +0 -0
  60. package/.yarn/cache/@react-stately-combobox-npm-3.8.3-15ca98aa5c-dad97a15fb.zip +0 -0
  61. package/.yarn/cache/@react-stately-data-npm-3.11.3-cce895778d-dfc8d1ac9a.zip +0 -0
  62. package/.yarn/cache/@react-stately-datepicker-npm-3.9.3-fe9d43086a-c2fee2a75e.zip +0 -0
  63. package/.yarn/cache/@react-stately-dnd-npm-3.3.0-12dd68769d-afc0565ac1.zip +0 -0
  64. package/.yarn/cache/@react-stately-flags-npm-3.0.2-1ec044f94e-c2c19b6043.zip +0 -0
  65. package/.yarn/cache/@react-stately-form-npm-3.0.2-4bc729a2ea-9dfae19354.zip +0 -0
  66. package/.yarn/cache/@react-stately-grid-npm-3.8.6-907965ec36-313e63ff3b.zip +0 -0
  67. package/.yarn/cache/@react-stately-list-npm-3.10.4-77dd54c792-19325e9ab4.zip +0 -0
  68. package/.yarn/cache/@react-stately-menu-npm-3.7.0-90a0db1055-a108e379e4.zip +0 -0
  69. package/.yarn/cache/@react-stately-numberfield-npm-3.9.2-3a89f1bc42-96956b46c5.zip +0 -0
  70. package/.yarn/cache/@react-stately-overlays-npm-3.6.6-f8aa64654d-bc910b54b2.zip +0 -0
  71. package/.yarn/cache/@react-stately-radio-npm-3.10.3-071befd78c-f8d356f86a.zip +0 -0
  72. package/.yarn/cache/@react-stately-searchfield-npm-3.5.2-2f3fb6c209-43558cfff5.zip +0 -0
  73. package/.yarn/cache/@react-stately-select-npm-3.6.3-be5e642bfa-34fbe8501b.zip +0 -0
  74. package/.yarn/cache/@react-stately-selection-npm-3.15.0-8b7bc0694b-9edcb36fed.zip +0 -0
  75. package/.yarn/cache/@react-stately-slider-npm-3.5.3-562ef6c5cb-06d0a53b7c.zip +0 -0
  76. package/.yarn/cache/@react-stately-table-npm-3.11.7-5c9e0fd96a-58d51f98d6.zip +0 -0
  77. package/.yarn/cache/@react-stately-tabs-npm-3.6.5-146716fcbd-d1968d1417.zip +0 -0
  78. package/.yarn/cache/@react-stately-toggle-npm-3.7.3-37e71d088a-5c5e7b52fa.zip +0 -0
  79. package/.yarn/cache/@react-stately-tooltip-npm-3.4.8-fd6ef872a2-25cc3e3c24.zip +0 -0
  80. package/.yarn/cache/@react-stately-tree-npm-3.8.0-500b430bb7-19c17a7406.zip +0 -0
  81. package/.yarn/cache/@react-stately-utils-npm-3.10.0-066f48a98e-780dab3581.zip +0 -0
  82. package/.yarn/cache/@react-stately-virtualizer-npm-3.7.0-2e4e9a8821-c04424dfff.zip +0 -0
  83. package/.yarn/cache/@react-types-breadcrumbs-npm-3.7.4-0e067c6509-132d9d1b0a.zip +0 -0
  84. package/.yarn/cache/@react-types-button-npm-3.9.3-491d887431-a9da87eb7e.zip +0 -0
  85. package/.yarn/cache/@react-types-calendar-npm-3.4.5-9491b2662c-6e3b6e44df.zip +0 -0
  86. package/.yarn/cache/@react-types-checkbox-npm-3.8.0-fa41e40b34-9786fd8224.zip +0 -0
  87. package/.yarn/cache/@react-types-color-npm-3.0.0-beta.24-a1c15bc97a-894371276c.zip +0 -0
  88. package/.yarn/cache/@react-types-combobox-npm-3.11.0-e0a5e09d36-3bf3ad11d0.zip +0 -0
  89. package/.yarn/cache/@react-types-datepicker-npm-3.7.3-1c968964c9-1053453aee.zip +0 -0
  90. package/.yarn/cache/@react-types-dialog-npm-3.5.9-037d2817d8-efeb8dc70e.zip +0 -0
  91. package/.yarn/cache/@react-types-form-npm-3.7.3-faea9d8969-e88a1a4097.zip +0 -0
  92. package/.yarn/cache/@react-types-grid-npm-3.2.5-47670b811f-e3588328cf.zip +0 -0
  93. package/.yarn/cache/@react-types-link-npm-3.5.4-44b62607b6-5d7555e036.zip +0 -0
  94. package/.yarn/cache/@react-types-listbox-npm-3.4.8-2e0a7f4dea-31e7b4c8b1.zip +0 -0
  95. package/.yarn/cache/@react-types-menu-npm-3.9.8-a4a0f57423-d5fb6d99bc.zip +0 -0
  96. package/.yarn/cache/@react-types-meter-npm-3.4.0-768a873170-cc30fd4745.zip +0 -0
  97. package/.yarn/cache/@react-types-numberfield-npm-3.8.2-a842f6619d-e8ed43b08f.zip +0 -0
  98. package/.yarn/cache/@react-types-overlays-npm-3.8.6-78e91b1a37-8efb3c2569.zip +0 -0
  99. package/.yarn/cache/@react-types-progress-npm-3.5.3-27066d6e69-d13f2db5c3.zip +0 -0
  100. package/.yarn/cache/@react-types-radio-npm-3.8.0-5d03b4b24f-f868f13ff2.zip +0 -0
  101. package/.yarn/cache/@react-types-searchfield-npm-3.5.4-9a6cb6c41b-806f97f5d6.zip +0 -0
  102. package/.yarn/cache/@react-types-select-npm-3.9.3-436aaa190f-b3db4acb66.zip +0 -0
  103. package/.yarn/cache/@react-types-shared-npm-3.23.0-1952004986-aa3507ef30.zip +0 -0
  104. package/.yarn/cache/@react-types-slider-npm-3.7.2-369a50984c-fcdafa3511.zip +0 -0
  105. package/.yarn/cache/@react-types-switch-npm-3.5.2-19ff24a621-e8caae2da6.zip +0 -0
  106. package/.yarn/cache/@react-types-table-npm-3.9.4-0afc8754dd-80dae2adfe.zip +0 -0
  107. package/.yarn/cache/@react-types-tabs-npm-3.3.6-047a1fd9c3-69d89f3c5c.zip +0 -0
  108. package/.yarn/cache/@react-types-textfield-npm-3.9.2-2bd9f93005-9102b983c5.zip +0 -0
  109. package/.yarn/cache/@react-types-tooltip-npm-3.4.8-8d81ea0e23-a3122729eb.zip +0 -0
  110. package/.yarn/cache/@swc-helpers-npm-0.4.14-f806c3fb16-273fd3f3fc.zip +0 -0
  111. package/.yarn/cache/@swc-helpers-npm-0.4.36-507abd5d2a-20b9f021a9.zip +0 -0
  112. package/.yarn/cache/@swc-helpers-npm-0.5.11-94bd1e1b3e-5d85e641d9.zip +0 -0
  113. package/.yarn/cache/client-only-npm-0.0.1-07d3e9505c-0c16bf660d.zip +0 -0
  114. package/.yarn/cache/clsx-npm-2.1.1-96125b98be-acd3e1ab9d.zip +0 -0
  115. package/.yarn/cache/intl-messageformat-npm-10.5.11-1feb0e2115-b5574447a0.zip +0 -0
  116. package/.yarn/cache/react-aria-components-npm-1.2.0-30040153be-43319158c8.zip +0 -0
  117. package/.yarn/cache/react-aria-npm-3.33.0-688afc3857-980f9da630.zip +0 -0
  118. package/.yarn/cache/react-stately-npm-3.31.0-9465d26d77-d59440e0a7.zip +0 -0
  119. package/.yarn/cache/use-sync-external-store-npm-1.2.2-7923c915e1-fe07c071c4.zip +0 -0
  120. package/.yarn/cache/{volto-form-block-npm-3.7.2-f24953a510-7387a1b85a.zip → volto-form-block-npm-3.8.3-dd17b59f52-44b043f3ea.zip} +0 -0
  121. package/.yarn/cache/{volto-gdpr-privacy-npm-2.2.1-bc93b3e168-bce76108c3.zip → volto-gdpr-privacy-npm-2.2.5-1673f4cc81-0cfc4e9ba7.zip} +0 -0
  122. package/.yarn/cache/volto-multilingual-widget-npm-3.2.1-6fcb25c017-c24fd5379c.zip +0 -0
  123. package/.yarn/install-state.gz +0 -0
  124. package/CHANGELOG.md +53 -0
  125. package/RELEASE.md +17 -0
  126. package/locales/de/LC_MESSAGES/volto.po +15 -0
  127. package/locales/en/LC_MESSAGES/volto.po +15 -0
  128. package/locales/es/LC_MESSAGES/volto.po +15 -0
  129. package/locales/fr/LC_MESSAGES/volto.po +15 -0
  130. package/locales/it/LC_MESSAGES/volto.po +16 -1
  131. package/locales/volto.pot +16 -1
  132. package/package.json +4 -4
  133. package/publiccode.yml +2 -2
  134. package/src/components/ItaliaTheme/Blocks/IconBlocks/Block/ViewBlock.jsx +1 -2
  135. package/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx +8 -4
  136. package/src/components/ItaliaTheme/Blocks/Listing/SmallBlockLinksTemplate.jsx +1 -0
  137. package/src/components/ItaliaTheme/Breadcrumbs/Breadcrumbs.jsx +13 -7
  138. package/src/components/ItaliaTheme/Header/HeaderSlim/TertiaryMenu.jsx +1 -1
  139. package/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx +4 -4
  140. package/src/components/ItaliaTheme/Pagination/Pagination.jsx +5 -0
  141. package/src/components/ItaliaTheme/Pagination/PaginationItem.jsx +15 -1
  142. package/src/components/ItaliaTheme/Slider/SingleSlideWrapper.jsx +2 -0
  143. package/src/components/ItaliaTheme/View/Commons/ContactsCard.jsx +2 -31
  144. package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando.jsx +3 -0
  145. package/src/components/ItaliaTheme/View/DocumentoView/DocumentoAccedereServizio.jsx +5 -8
  146. package/src/components/ItaliaTheme/View/FAQ/FaqFolder/SearchBar.jsx +5 -0
  147. package/src/components/ItaliaTheme/View/PersonaView/PersonaDocumenti.jsx +0 -1
  148. package/src/components/ItaliaTheme/View/ServizioView/ServizioCondizioni.jsx +5 -1
  149. package/src/components/ItaliaTheme/View/UOView/UOServices.jsx +38 -2
  150. package/src/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm.jsx +2 -2
  151. package/src/config/italiaConfig.js +2 -2
  152. package/src/customizations/volto/components/manage/Blocks/Search/components/DateRangeFacet.jsx +16 -2
  153. package/src/customizations/volto/components/manage/UniversalLink/UniversalLink.jsx +3 -1
  154. package/src/customizations/volto-form-block/components/FormResult.jsx +78 -0
  155. package/src/customizations/volto-form-block/components/FormView.jsx +79 -66
  156. package/src/customizations/volto-form-block/components/Widget/Button.jsx +50 -0
  157. package/src/overrideTranslations.jsx +8 -0
  158. package/src/theme/ItaliaTheme/Blocks/_gridBlock.scss +5 -0
  159. package/src/theme/ItaliaTheme/Components/_pager.scss +10 -0
  160. package/src/theme/ItaliaTheme/Views/_slider.scss +1 -0
  161. package/src/theme/_site-variables.scss +1 -1
  162. package/src/theme/extras/_search.scss +5 -0
  163. package/.yarn/cache/volto-multilingual-widget-npm-3.0.0-58c1ce4fb7-3fa0611e79.zip +0 -0
  164. /package/src/theme/ItaliaTheme/Blocks/{_inEvidenceTemplate.scss → _inevidencetemplate.scss} +0 -0
@@ -5,19 +5,17 @@
5
5
  */
6
6
  import React from 'react';
7
7
  import { useIntl, defineMessages } from 'react-intl';
8
- import {
9
- Card,
10
- CardBody,
11
- Row,
12
- Col,
13
- Button,
14
- Alert,
15
- Progress,
16
- } from 'design-react-kit';
8
+ import { Card, CardBody, Row, Col, Alert, Progress } from 'design-react-kit';
17
9
  // eslint-disable-next-line import/no-unresolved
18
10
  import { getFieldName } from 'volto-form-block/components/utils';
19
11
  // eslint-disable-next-line import/no-unresolved
20
12
  import Field from 'volto-form-block/components/Field';
13
+ import {
14
+ OTPWidget,
15
+ OTP_FIELDNAME_EXTENDER,
16
+ Button,
17
+ } from 'volto-form-block/components/Widget';
18
+ import { FormResult } from 'volto-form-block/components';
21
19
  // eslint-disable-next-line import/no-unresolved
22
20
  import config from '@plone/volto/registry';
23
21
 
@@ -64,6 +62,8 @@ const FormView = ({
64
62
  captcha,
65
63
  id,
66
64
  getErrorMessage,
65
+ path,
66
+ block_id,
67
67
  }) => {
68
68
  const intl = useIntl();
69
69
  const alertTransition = {
@@ -86,23 +86,6 @@ const FormView = ({
86
86
  return formErrors?.filter((e) => e.field === field).length === 0;
87
87
  };
88
88
 
89
- /* Function that replaces variables from the user customized message */
90
- const replaceMessage = (text) => {
91
- let i = 0;
92
- while (i < data.subblocks.length) {
93
- let idField = getFieldName(
94
- data.subblocks[i].label,
95
- data.subblocks[i].field_id,
96
- );
97
- text = text.replaceAll(
98
- '${' + idField + '}',
99
- formData[idField]?.value || '',
100
- );
101
- i++;
102
- }
103
- return text;
104
- };
105
-
106
89
  var FieldSchema = config.blocks.blocksConfig.form.fieldSchema;
107
90
  var fieldSchemaProperties = FieldSchema()?.properties;
108
91
  var fields_to_send = [];
@@ -117,6 +100,26 @@ const FormView = ({
117
100
  onSubmit(e);
118
101
  };
119
102
 
103
+ const getFieldsToSendWithValue = (subblock) => {
104
+ var fields_to_send = [];
105
+ var fieldSchemaProperties = FieldSchema(subblock)?.properties;
106
+ for (var key in fieldSchemaProperties) {
107
+ if (fieldSchemaProperties[key].send_to_backend) {
108
+ fields_to_send.push(key);
109
+ }
110
+ }
111
+
112
+ var fields_to_send_with_value = Object.assign(
113
+ {},
114
+ ...fields_to_send.map((field) => {
115
+ return {
116
+ [field]: subblock[field],
117
+ };
118
+ }),
119
+ );
120
+ return fields_to_send_with_value;
121
+ };
122
+
120
123
  return (
121
124
  <div className="block form">
122
125
  <div className="public-ui">
@@ -128,38 +131,11 @@ const FormView = ({
128
131
  <Card className="card-bg rounded py-3" noWrapper={false} tag="div">
129
132
  <CardBody tag="div">
130
133
  {formState.result ? (
131
- <Alert
132
- color="success"
133
- fade
134
- isOpen
135
- tag="div"
136
- transition={alertTransition}
137
- >
138
- <h4>{intl.formatMessage(messages.success)}</h4>
139
- <br />
140
- {/* Custom message */}
141
- {data.send_message && (
142
- <>
143
- <p
144
- dangerouslySetInnerHTML={{
145
- __html: replaceMessage(data.send_message),
146
- }}
147
- />
148
- <br />
149
- </>
150
- )}
151
- <Button
152
- color="primary"
153
- outline
154
- onClick={(e) => {
155
- e.preventDefault();
156
- e.stopPropagation();
157
- resetFormState();
158
- }}
159
- >
160
- {intl.formatMessage(messages.reset)}
161
- </Button>
162
- </Alert>
134
+ <FormResult
135
+ formState={formState}
136
+ data={data}
137
+ resetFormState={resetFormState}
138
+ />
163
139
  ) : (
164
140
  <form
165
141
  onSubmit={submit}
@@ -201,14 +177,8 @@ const FormView = ({
201
177
  )}
202
178
  {data.subblocks.map((subblock, index) => {
203
179
  let name = getFieldName(subblock.label, subblock.id);
204
- var fields_to_send_with_value = Object.assign(
205
- {},
206
- ...fields_to_send.map((field) => {
207
- return {
208
- [field]: subblock[field],
209
- };
210
- }),
211
- );
180
+ const fields_to_send_with_value =
181
+ getFieldsToSendWithValue(subblock);
212
182
 
213
183
  return (
214
184
  <Row key={'row' + index}>
@@ -238,6 +208,49 @@ const FormView = ({
238
208
  );
239
209
  })}
240
210
 
211
+ {/*OTP*/}
212
+ {data.subblocks
213
+ .filter((subblock) => subblock.use_as_bcc)
214
+ .map((subblock, index) => {
215
+ const fieldName = getFieldName(
216
+ subblock.label,
217
+ subblock.id,
218
+ );
219
+ const name = fieldName + OTP_FIELDNAME_EXTENDER;
220
+ const fieldValue = formData[fieldName]?.value;
221
+ const value = formData[fieldName]?.otp;
222
+ const fields_to_send_with_value =
223
+ getFieldsToSendWithValue(subblock);
224
+
225
+ return (
226
+ <Row key={'row_otp' + index}>
227
+ <Col className="py-2">
228
+ <OTPWidget
229
+ {...subblock}
230
+ fieldValue={fieldValue}
231
+ onChange={(field, value) => {
232
+ onChangeFormData(
233
+ subblock.id,
234
+ fieldName,
235
+ fieldValue,
236
+ {
237
+ ...fields_to_send_with_value,
238
+ otp: value,
239
+ },
240
+ );
241
+ }}
242
+ value={value}
243
+ valid={isValidField(name)}
244
+ errorMessage={getErrorMessage(name)}
245
+ formHasErrors={formErrors?.length > 0}
246
+ path={path}
247
+ block_id={block_id}
248
+ />
249
+ </Col>
250
+ </Row>
251
+ );
252
+ })}
253
+
241
254
  {enableCaptcha && <>{captcha.render()}</>}
242
255
 
243
256
  {formErrors.length > 0 && (
@@ -0,0 +1,50 @@
1
+ /**
2
+ * customizations:
3
+ * used design-react-kit button
4
+ *
5
+ *
6
+ * Button component.
7
+ * This is a wrapper for Buttons, to eventually customize Button component if you don't like to use semantic-ui, for example.
8
+ * @module components/Widget/OTPWidget
9
+ */
10
+
11
+ import { Button as DesignButton } from 'design-react-kit';
12
+
13
+ const Button = (props) => {
14
+ let _props = { ...props };
15
+ if (props.primary) {
16
+ _props.color = 'primary';
17
+ delete _props.primary;
18
+ }
19
+ if (props.secondary) {
20
+ _props.color = 'secondary';
21
+ delete _props.secondary;
22
+ }
23
+ if (props.basic) {
24
+ _props.outline = true;
25
+ delete _props.basic;
26
+ }
27
+ if (props.size) {
28
+ switch (props.size) {
29
+ case 'mini':
30
+ case 'tiny':
31
+ case 'small':
32
+ _props.size = 'xs';
33
+ break;
34
+ case 'medium':
35
+ case 'large':
36
+ _props.size = 'sm';
37
+ break;
38
+ case 'big':
39
+ case 'huge':
40
+ case 'massive':
41
+ _props.size = 'lg';
42
+ break;
43
+ default:
44
+ break;
45
+ }
46
+ }
47
+ return <DesignButton {..._props} />;
48
+ };
49
+
50
+ export default Button;
@@ -21,6 +21,10 @@ defineMessages({
21
21
  id: 'rrule_in',
22
22
  defaultMessage: 'il giorno',
23
23
  },
24
+ rrule_on: {
25
+ id: 'rrule_on',
26
+ defaultMessage: 'di',
27
+ },
24
28
  rrule_on_the: {
25
29
  id: 'rrule_on the',
26
30
  defaultMessage: 'di',
@@ -60,4 +64,8 @@ defineMessages({
60
64
  id: 'toggleMenu_close',
61
65
  defaultMessage: 'Chiudi',
62
66
  },
67
+ clearDates: {
68
+ id: 'Clear dates',
69
+ defaultMessage: 'Pulisci i campi',
70
+ },
63
71
  });
@@ -52,6 +52,11 @@
52
52
  }
53
53
  }
54
54
  }
55
+
56
+ &.image img {
57
+ object-fit: contain;
58
+ object-position: center;
59
+ }
55
60
  }
56
61
 
57
62
  //in edit (cms-ui)
@@ -19,3 +19,13 @@
19
19
  }
20
20
  }
21
21
  }
22
+
23
+ .pagination-wrapper {
24
+ li.page-item {
25
+ button.page-link {
26
+ .icon.icon-primary.disabled {
27
+ fill: $gray-600 !important;
28
+ }
29
+ }
30
+ }
31
+ }
@@ -12,6 +12,7 @@
12
12
  &:focus {
13
13
  border: 1px solid;
14
14
  }
15
+
15
16
  figure {
16
17
  a {
17
18
  display: block;
@@ -16,7 +16,7 @@ $primary-text: #fff !default;
16
16
  $secondary-text: #fff !default;
17
17
  $tertiary: #be2816 !default;
18
18
  $tertiary-text: #fff !default;
19
- $highlight-search: #ff0 !default;
19
+ $highlight-search: #ffff00 !default;
20
20
  $font-family-monospace-light: Roboto Mono Light !default;
21
21
 
22
22
  // Per abilitare l'header bianco impostare a true
@@ -89,6 +89,7 @@ body.search-modal-opened {
89
89
 
90
90
  .search-results-wrapper {
91
91
  mark.highlighted-text {
92
+ padding: 0em 0.1875em;
92
93
  background-color: $highlight-search;
93
94
  }
94
95
 
@@ -103,6 +104,10 @@ body.search-modal-opened {
103
104
  content: none;
104
105
  }
105
106
  }
107
+
108
+ .card-title {
109
+ line-height: 1.3em;
110
+ }
106
111
  }
107
112
  }
108
113