design-comuni-plone-theme 12.2.3 → 12.3.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/install-state.gz +0 -0
- package/CHANGELOG.md +26 -0
- package/RELEASE.md +11 -0
- package/locales/de/LC_MESSAGES/volto.po +41 -0
- package/locales/en/LC_MESSAGES/volto.po +41 -0
- package/locales/es/LC_MESSAGES/volto.po +41 -0
- package/locales/fr/LC_MESSAGES/volto.po +41 -0
- package/locales/it/LC_MESSAGES/volto.po +41 -0
- package/locales/volto.pot +42 -1
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/src/actions/getCTSchema.js +13 -0
- package/src/actions/index.js +3 -0
- package/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/Listing/TableTemplate.jsx +163 -0
- package/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/TableTemplateSkeleton.jsx +50 -0
- package/src/components/ItaliaTheme/View/Commons/SideMenu.jsx +2 -1
- package/src/components/ItaliaTheme/View/Commons/SideMenuByTitles.jsx +16 -8
- package/src/components/ItaliaTheme/index.js +5 -0
- package/src/components/ItaliaTheme/manage/Widgets/BlocksViewWidget.jsx +7 -0
- package/src/components/ItaliaTheme/manage/Widgets/CTFieldsWidget.jsx +84 -0
- package/src/components/ItaliaTheme/manage/Widgets/CTTitleColumnWidget.jsx +22 -0
- package/src/components/ItaliaTheme/manage/Widgets/DataGridWidget.jsx +26 -0
- package/src/components/ItaliaTheme/manage/Widgets/PDCViewWidget.jsx +21 -0
- package/src/config/Blocks/ListingOptions/index.js +1 -0
- package/src/config/Blocks/ListingOptions/tableTemplate.js +105 -0
- package/src/config/Blocks/listingVariations.js +18 -0
- package/src/config/Widgets/widgets.js +24 -1
- package/src/customizations/volto/helpers/Html/Html.jsx +28 -14
- package/src/helpers/getWidgetView.js +112 -0
- package/src/helpers/index.js +1 -0
- package/src/reducers/ctSchema.js +80 -0
- package/src/reducers/index.js +2 -0
- package/src/theme/ItaliaTheme/Blocks/_smallblockLinkstemplate.scss +1 -0
- package/src/theme/ItaliaTheme/Blocks/_tableTemplate.scss +46 -0
- package/src/theme/site.scss +1 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { GET_CT_SCHEMA } from 'design-comuni-plone-theme/actions';
|
|
2
|
+
|
|
3
|
+
const initialState = {
|
|
4
|
+
error: null,
|
|
5
|
+
result: {},
|
|
6
|
+
loaded: false,
|
|
7
|
+
loading: false,
|
|
8
|
+
subrequests: {},
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export function ctSchema(state = initialState, action = {}) {
|
|
12
|
+
switch (action.type) {
|
|
13
|
+
case `${GET_CT_SCHEMA}_PENDING`:
|
|
14
|
+
return action.subrequest
|
|
15
|
+
? {
|
|
16
|
+
...state,
|
|
17
|
+
subrequests: {
|
|
18
|
+
...state.subrequests,
|
|
19
|
+
[action.subrequest]: {
|
|
20
|
+
...state.subrequests[action.subrequest],
|
|
21
|
+
result: {},
|
|
22
|
+
error: null,
|
|
23
|
+
loaded: false,
|
|
24
|
+
loading: true,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
}
|
|
28
|
+
: {
|
|
29
|
+
...state,
|
|
30
|
+
error: null,
|
|
31
|
+
loading: true,
|
|
32
|
+
loaded: false,
|
|
33
|
+
};
|
|
34
|
+
case `${GET_CT_SCHEMA}_SUCCESS`:
|
|
35
|
+
return action.subrequest
|
|
36
|
+
? {
|
|
37
|
+
...state,
|
|
38
|
+
subrequests: {
|
|
39
|
+
...state.subrequests,
|
|
40
|
+
[action.subrequest]: {
|
|
41
|
+
error: null,
|
|
42
|
+
result: action.result,
|
|
43
|
+
loaded: true,
|
|
44
|
+
loading: false,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
: {
|
|
49
|
+
...state,
|
|
50
|
+
error: null,
|
|
51
|
+
result: action.result,
|
|
52
|
+
loaded: true,
|
|
53
|
+
loading: false,
|
|
54
|
+
};
|
|
55
|
+
case `${GET_CT_SCHEMA}_FAIL`:
|
|
56
|
+
return action.subrequest
|
|
57
|
+
? {
|
|
58
|
+
...state,
|
|
59
|
+
subrequests: {
|
|
60
|
+
...state.subrequests,
|
|
61
|
+
[action.subrequest]: {
|
|
62
|
+
error: action.error,
|
|
63
|
+
result: {},
|
|
64
|
+
loading: false,
|
|
65
|
+
loaded: false,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
: {
|
|
70
|
+
...state,
|
|
71
|
+
error: action.error,
|
|
72
|
+
result: {},
|
|
73
|
+
|
|
74
|
+
loading: false,
|
|
75
|
+
loaded: false,
|
|
76
|
+
};
|
|
77
|
+
default:
|
|
78
|
+
return state;
|
|
79
|
+
}
|
|
80
|
+
}
|
package/src/reducers/index.js
CHANGED
|
@@ -13,6 +13,7 @@ import { modulisticaItems } from './modulisticaItems';
|
|
|
13
13
|
import { originalQueryReducer } from './originalQueryReducer';
|
|
14
14
|
import { searchBandiFiltersReducer } from './searchBandiFiltersReducer';
|
|
15
15
|
import { breadcrumbs } from './breadcrumbs';
|
|
16
|
+
import { ctSchema } from './ctSchema';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Root reducer.
|
|
@@ -32,6 +33,7 @@ const reducers = {
|
|
|
32
33
|
originalQuery: originalQueryReducer,
|
|
33
34
|
searchBandiFilters: searchBandiFiltersReducer,
|
|
34
35
|
breadcrumbs: breadcrumbs,
|
|
36
|
+
ct_schema: ctSchema,
|
|
35
37
|
};
|
|
36
38
|
|
|
37
39
|
export default reducers;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.table-template {
|
|
2
|
+
table.table {
|
|
3
|
+
th {
|
|
4
|
+
vertical-align: top;
|
|
5
|
+
}
|
|
6
|
+
td {
|
|
7
|
+
background-color: #fff;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&,
|
|
11
|
+
p,
|
|
12
|
+
ul,
|
|
13
|
+
ul,
|
|
14
|
+
li,
|
|
15
|
+
ol {
|
|
16
|
+
font-size: 0.9rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.date-column {
|
|
20
|
+
min-width: 6.5rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
ul.relations.widget {
|
|
24
|
+
list-style-type: none;
|
|
25
|
+
padding-left: 0;
|
|
26
|
+
li {
|
|
27
|
+
a {
|
|
28
|
+
.icon {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
+ .pagination-wrapper {
|
|
37
|
+
.mt-5.pagination-wrapper {
|
|
38
|
+
margin-top: 0 !important;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.link-button .btn.btn-primary {
|
|
43
|
+
color: color-contrast($primary);
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
}
|
|
46
|
+
}
|
package/src/theme/site.scss
CHANGED