design-comuni-plone-theme 11.33.1 → 11.34.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.
- package/.yarn/cache/@tanstack-react-table-npm-8.21.2-f809795b71-3cda97794c.zip +0 -0
- package/.yarn/cache/@tanstack-table-core-npm-8.21.2-0f1fa83089-21573388b2.zip +0 -0
- package/.yarn/cache/{tar-fs-npm-2.1.3-32d6d6fb31-8dd66c2077.zip → tar-fs-npm-2.1.4-90a454735f-a9e18e2e61.zip} +0 -0
- package/.yarn/cache/volto-blocks-widget-npm-3.4.7-1bc2eeb4b5-4350a9c54b.zip +0 -0
- package/.yarn/cache/{volto-form-block-npm-3.12.0-0e050cb6bf-878c6f6af8.zip → volto-form-block-npm-3.13.0-f978a02e9c-0ce41843f5.zip} +0 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +31 -0
- package/RELEASE.md +20 -0
- package/locales/de/LC_MESSAGES/volto.po +82 -2
- package/locales/en/LC_MESSAGES/volto.po +84 -4
- package/locales/es/LC_MESSAGES/volto.po +82 -2
- package/locales/fr/LC_MESSAGES/volto.po +82 -2
- package/locales/it/LC_MESSAGES/volto.po +84 -4
- package/locales/volto.pot +83 -3
- package/package.json +3 -3
- package/publiccode.yml +2 -2
- package/src/actions/contacts.js +13 -0
- package/src/actions/index.js +3 -0
- package/src/components/ItaliaTheme/Blocks/Common/SearchFilters/DateFilter.jsx +50 -44
- package/src/components/ItaliaTheme/Blocks/Common/SearchFilters/SelectFilter.jsx +3 -2
- package/src/components/ItaliaTheme/Blocks/Common/SearchFilters/TextFilter.jsx +44 -16
- package/src/components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate.jsx +2 -0
- package/src/components/ItaliaTheme/Blocks/Listing/CardWithSlideUpTextTemplate.jsx +4 -1
- package/src/components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate.jsx +1 -0
- package/src/components/ItaliaTheme/Blocks/Listing/SimpleCard/Card/SimpleCardDefault.jsx +1 -0
- package/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/BandiInEvidenceTemplateSkeleton.jsx +2 -0
- package/src/components/ItaliaTheme/ContactsBlock/ContactsBlock.jsx +77 -0
- package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderTassonomiaArgomenti.jsx +2 -2
- package/src/components/ItaliaTheme/index.js +4 -0
- package/src/components/ItaliaTheme/manage/Widgets/ConditionallyRequiredDateWidget.jsx +25 -0
- package/src/components/ItaliaTheme/manage/Widgets/ContactsWidget/ContactsConfigForm.jsx +90 -0
- package/src/components/ItaliaTheme/manage/Widgets/ContactsWidget/ContactsConfigWidget.jsx +394 -0
- package/src/components/SelectInput/SelectInput.jsx +7 -2
- package/src/config/Widgets/widgets.js +11 -0
- package/src/config/italiaConfig.js +3 -1
- package/src/customizations/volto/components/theme/Footer/Footer.jsx +8 -1
- package/src/customizations/volto-form-block/components/Edit.jsx +100 -49
- package/src/customizations/volto-form-block/components/Field.jsx +71 -62
- package/src/customizations/volto-form-block/components/FormResult.jsx +25 -18
- package/src/customizations/volto-form-block/components/FormView.jsx +192 -194
- package/src/customizations/volto-form-block/components/Sidebar.jsx +7 -172
- package/src/customizations/volto-form-block/components/View.jsx +9 -5
- package/src/overrideTranslations.jsx +7 -2
- package/src/reducers/contacts.js +38 -0
- package/src/reducers/index.js +2 -0
- package/src/theme/ItaliaTheme/Blocks/_form.scss +20 -1
- package/src/theme/ItaliaTheme/Blocks/common/_searchBlockFilters.scss +56 -0
- package/src/theme/ItaliaTheme/Components/_contactsBlock.scss +40 -0
- package/src/theme/ItaliaTheme/Widgets/_contactsConfigWidget.scss +39 -0
- package/src/theme/site.scss +2 -0
- package/.yarn/cache/volto-blocks-widget-npm-3.4.1-c4d451e2c2-4f5c183698.zip +0 -0
|
@@ -101,12 +101,12 @@ defineMessages({
|
|
|
101
101
|
},
|
|
102
102
|
success_warning: {
|
|
103
103
|
id: 'form_submit_success_warning',
|
|
104
|
-
defaultMessage: "
|
|
104
|
+
defaultMessage: "La tua iscrizione è in lista d'attesa",
|
|
105
105
|
},
|
|
106
106
|
success_warning_description: {
|
|
107
107
|
id: 'form_submit_success_warning_description',
|
|
108
108
|
defaultMessage:
|
|
109
|
-
|
|
109
|
+
'I tuoi dati sono stati inviati correttamente. Tuttavia, è stato raggiunto il limite massimo di iscrizioni: la tua richiesta è stata inserita in lista d’attesa.',
|
|
110
110
|
},
|
|
111
111
|
field_unique_title: {
|
|
112
112
|
id: 'field_unique_title',
|
|
@@ -130,6 +130,11 @@ defineMessages({
|
|
|
130
130
|
defaultMessage:
|
|
131
131
|
'As per the official information architecture outlined in measure 1.4.1, all forms must be properly uploaded in the designated section within Amministrazione > Documenti e Dati > Modulistica, and linked to the relevant service sheet. It is no longer possible to upload files and attachments directly into this container.',
|
|
132
132
|
},
|
|
133
|
+
warning_enable_save: {
|
|
134
|
+
id: 'warning_enable_save',
|
|
135
|
+
defaultMessage:
|
|
136
|
+
'Selezionare la voce "Salva i dati compilati" nella barra laterale per abilitare il salvataggio e la visualizzazione dei dati',
|
|
137
|
+
},
|
|
133
138
|
//table block
|
|
134
139
|
hideHeaders: {
|
|
135
140
|
id: 'Hide headers',
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { GET_CONTACTS } from 'design-comuni-plone-theme/actions';
|
|
2
|
+
|
|
3
|
+
const initialState = {
|
|
4
|
+
error: null,
|
|
5
|
+
result: {},
|
|
6
|
+
loaded: false,
|
|
7
|
+
loading: false,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export function contacts(state = initialState, action = {}) {
|
|
11
|
+
switch (action.type) {
|
|
12
|
+
case `${GET_CONTACTS}_PENDING`:
|
|
13
|
+
return {
|
|
14
|
+
...state,
|
|
15
|
+
error: null,
|
|
16
|
+
loading: true,
|
|
17
|
+
loaded: false,
|
|
18
|
+
};
|
|
19
|
+
case `${GET_CONTACTS}_SUCCESS`:
|
|
20
|
+
return {
|
|
21
|
+
...state,
|
|
22
|
+
error: null,
|
|
23
|
+
result: action.result,
|
|
24
|
+
loading: false,
|
|
25
|
+
loaded: true,
|
|
26
|
+
};
|
|
27
|
+
case `${GET_CONTACTS}_FAIL`:
|
|
28
|
+
return {
|
|
29
|
+
...state,
|
|
30
|
+
error: action.error,
|
|
31
|
+
result: {},
|
|
32
|
+
loading: false,
|
|
33
|
+
loaded: false,
|
|
34
|
+
};
|
|
35
|
+
default:
|
|
36
|
+
return state;
|
|
37
|
+
}
|
|
38
|
+
}
|
package/src/reducers/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { originalQueryReducer } from './originalQueryReducer';
|
|
|
14
14
|
import { searchBandiFiltersReducer } from './searchBandiFiltersReducer';
|
|
15
15
|
import { breadcrumbs } from './breadcrumbs';
|
|
16
16
|
import { ctSchema } from './ctSchema';
|
|
17
|
+
import { contacts } from './contacts';
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
* Root reducer.
|
|
@@ -34,6 +35,7 @@ const reducers = {
|
|
|
34
35
|
searchBandiFilters: searchBandiFiltersReducer,
|
|
35
36
|
breadcrumbs: breadcrumbs,
|
|
36
37
|
ct_schema: ctSchema,
|
|
38
|
+
contacts: contacts,
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
export default reducers;
|
|
@@ -125,9 +125,13 @@
|
|
|
125
125
|
background-position: 99% !important;
|
|
126
126
|
background-size: 22px 20px !important;
|
|
127
127
|
|
|
128
|
+
legend {
|
|
129
|
+
font-weight: 600;
|
|
130
|
+
line-height: 1.8rem;
|
|
131
|
+
}
|
|
132
|
+
|
|
128
133
|
> label {
|
|
129
134
|
position: unset;
|
|
130
|
-
|
|
131
135
|
display: block;
|
|
132
136
|
padding: 0 $input-spacing-x;
|
|
133
137
|
margin-bottom: 0.55rem;
|
|
@@ -298,3 +302,18 @@
|
|
|
298
302
|
.grecaptcha-badge {
|
|
299
303
|
bottom: 115px !important;
|
|
300
304
|
}
|
|
305
|
+
|
|
306
|
+
.cms-ui {
|
|
307
|
+
.ui.tab.container {
|
|
308
|
+
.dt-wrapper {
|
|
309
|
+
button.ui.button {
|
|
310
|
+
width: auto;
|
|
311
|
+
padding: 1.2rem;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.dt-wrapper-table .ui.table {
|
|
315
|
+
font-size: 0.9rem;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
&.text-filter {
|
|
11
11
|
min-width: 35%;
|
|
12
|
+
|
|
13
|
+
.form-group {
|
|
14
|
+
margin-bottom: 0;
|
|
15
|
+
}
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
&.select-filter {
|
|
@@ -182,3 +186,55 @@
|
|
|
182
186
|
}
|
|
183
187
|
}
|
|
184
188
|
}
|
|
189
|
+
|
|
190
|
+
.search-container {
|
|
191
|
+
.filter-wrapper {
|
|
192
|
+
&.text-filter {
|
|
193
|
+
input.focus--mouse {
|
|
194
|
+
outline: 2px solid $inner-focus-shadow !important;
|
|
195
|
+
outline-offset: 2px;
|
|
196
|
+
border: none !important;
|
|
197
|
+
box-shadow: 0 0 0 2px $outer-focus-outline !important;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.form-group {
|
|
201
|
+
margin-bottom: 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.form-text {
|
|
205
|
+
display: block;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&.date-filter {
|
|
210
|
+
position: relative;
|
|
211
|
+
|
|
212
|
+
legend {
|
|
213
|
+
line-height: 1.2rem;
|
|
214
|
+
font-size: $select-label-size;
|
|
215
|
+
font-weight: 600;
|
|
216
|
+
position: absolute;
|
|
217
|
+
top: -22px;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.bg-primary {
|
|
224
|
+
.search-container {
|
|
225
|
+
.filter-wrapper {
|
|
226
|
+
&.text-filter,
|
|
227
|
+
&.select-filter {
|
|
228
|
+
label.active {
|
|
229
|
+
color: color-contrast($primary);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
&.date-filter {
|
|
234
|
+
legend {
|
|
235
|
+
color: color-contrast($primary);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.contacts-block {
|
|
2
|
+
box-shadow: inset 0 4px 6px -4px rgba(0, 0, 0, 0.3);
|
|
3
|
+
.contacts-box {
|
|
4
|
+
background-color: #fff;
|
|
5
|
+
|
|
6
|
+
&:after {
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
h2 {
|
|
11
|
+
font-size: 1.3333rem;
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
line-height: 1.2;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.contacts-list {
|
|
17
|
+
padding: 0;
|
|
18
|
+
li {
|
|
19
|
+
list-style-type: none;
|
|
20
|
+
|
|
21
|
+
a {
|
|
22
|
+
column-gap: 2%;
|
|
23
|
+
.icon-container {
|
|
24
|
+
width: 5%;
|
|
25
|
+
display: flex;
|
|
26
|
+
|
|
27
|
+
.icon {
|
|
28
|
+
color: currentColor;
|
|
29
|
+
fill: currentColor;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.text-container {
|
|
34
|
+
width: 93%;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.cms-ui .contacts-configuration-widget {
|
|
2
|
+
.column .wrapper {
|
|
3
|
+
height: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.delete-button {
|
|
7
|
+
margin-top: 1rem;
|
|
8
|
+
text-align: end;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ui.header.contacts-items-header {
|
|
12
|
+
font-size: 1.2rem;
|
|
13
|
+
opacity: 0.8;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.contact-items-menu {
|
|
17
|
+
.move-buttons .button i {
|
|
18
|
+
transform: rotate(90deg);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.item-title {
|
|
22
|
+
margin-left: 0.5rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.icon {
|
|
26
|
+
margin-right: 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.help-text {
|
|
31
|
+
font-size: 0.8rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.contact-config-form {
|
|
35
|
+
.inline.field.delete-field {
|
|
36
|
+
margin-top: 1rem;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
package/src/theme/site.scss
CHANGED
|
@@ -121,6 +121,7 @@
|
|
|
121
121
|
@import 'ItaliaTheme/Widgets/dataGridWidget';
|
|
122
122
|
@import 'ItaliaTheme/Widgets/canaleDigitaleWidget';
|
|
123
123
|
@import 'ItaliaTheme/Widgets/luoghiCorrelatiEventoWidget';
|
|
124
|
+
@import 'ItaliaTheme/Widgets/contactsConfigWidget';
|
|
124
125
|
@import 'ItaliaTheme/Components/megamenu';
|
|
125
126
|
@import 'ItaliaTheme/Components/sharing';
|
|
126
127
|
@import 'ItaliaTheme/Components/logo';
|
|
@@ -135,6 +136,7 @@
|
|
|
135
136
|
@import 'ItaliaTheme/Components/contactsCard';
|
|
136
137
|
@import 'ItaliaTheme/Components/navscroll';
|
|
137
138
|
@import 'ItaliaTheme/Components/customerSatisfaction';
|
|
139
|
+
@import 'ItaliaTheme/Components/contactsBlock';
|
|
138
140
|
@import 'ItaliaTheme/Print/all_pages';
|
|
139
141
|
@import 'ItaliaTheme/Print/page';
|
|
140
142
|
@import 'ItaliaTheme/Print/persona';
|
|
Binary file
|