@wix/auto-patterns 1.54.0 → 1.55.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/dist/cjs/assets/locale/messages_en.json +1 -0
- package/dist/cjs/cms-fields/components/address/input/address-input.st.css.js +3 -3
- package/dist/cjs/cms-fields/components/address/input/address-input.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/audio/actions/actions-menu/actions-menu.st.css.js +3 -3
- package/dist/cjs/cms-fields/components/audio/actions/actions-menu/actions-menu.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/audio/audio-field/form-audio-field.st.css.js +4 -4
- package/dist/cjs/cms-fields/components/audio/audio-field/form-audio-field.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/audio/audio-player/audio-player.st.css.js +2 -2
- package/dist/cjs/cms-fields/components/audio/audio-player/audio-player.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/color-view/color-view.st.css.js +4 -4
- package/dist/cjs/cms-fields/components/color-view/color-view.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/delete-dialog/delete-dialog.st.css.js +3 -3
- package/dist/cjs/cms-fields/components/delete-dialog/delete-dialog.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/document/form-document-field.st.css.js +7 -7
- package/dist/cjs/cms-fields/components/document/form-document-field.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/exclamation/exclamation.st.css +2 -3
- package/dist/cjs/cms-fields/components/exclamation/exclamation.st.css.js +5 -5
- package/dist/cjs/cms-fields/components/exclamation/exclamation.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/exclamation/type-mismatch-exclamation.js +1 -0
- package/dist/cjs/cms-fields/components/exclamation/type-mismatch-exclamation.js.map +1 -1
- package/dist/cjs/cms-fields/components/highlighted-text/highlighted-text.st.css.js +5 -5
- package/dist/cjs/cms-fields/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/media-control/paste-url-button.st.css.js +4 -4
- package/dist/cjs/cms-fields/components/media-control/paste-url-button.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/media-gallery/form-media-gallery-field.st.css.js +10 -10
- package/dist/cjs/cms-fields/components/media-gallery/form-media-gallery-field.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/media-image/media-image.st.css.js +4 -4
- package/dist/cjs/cms-fields/components/media-image/media-image.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/media-loader/media-loader.st.css.js +3 -3
- package/dist/cjs/cms-fields/components/media-loader/media-loader.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
- package/dist/cjs/cms-fields/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/multi-document/multi-document-input/form-multi-document.st.css.js +5 -5
- package/dist/cjs/cms-fields/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +6 -6
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +5 -5
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +3 -3
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +3 -3
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +9 -9
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +4 -4
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +4 -4
- package/dist/cjs/cms-fields/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +18 -18
- package/dist/cjs/cms-fields/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +4 -4
- package/dist/cjs/cms-fields/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +18 -18
- package/dist/cjs/cms-fields/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/components/text/text-view.st.css.js +3 -3
- package/dist/cjs/cms-fields/components/text/text-view.st.css.js.map +1 -1
- package/dist/cjs/cms-fields/validations/array.js +26 -0
- package/dist/cjs/cms-fields/validations/array.js.map +1 -0
- package/dist/cjs/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js +2 -1
- package/dist/cjs/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js.map +1 -1
- package/dist/cjs/components/AutoPatternsGrid/AutoPatternsGrid.js +4 -3
- package/dist/cjs/components/AutoPatternsGrid/AutoPatternsGrid.js.map +1 -1
- package/dist/cjs/components/fields/Array.js +111 -0
- package/dist/cjs/components/fields/Array.js.map +1 -0
- package/dist/cjs/components/fields/index.js +5 -2
- package/dist/cjs/components/fields/index.js.map +1 -1
- package/dist/cjs/components/layouts/FormField.js +2 -1
- package/dist/cjs/components/layouts/FormField.js.map +1 -1
- package/dist/cjs/hooks/useBaseTableFeatures.js +1 -0
- package/dist/cjs/hooks/useBaseTableFeatures.js.map +1 -1
- package/dist/cjs/hooks/useColumns.js +26 -18
- package/dist/cjs/hooks/useColumns.js.map +1 -1
- package/dist/cjs/hooks/useFiltersState.js +1 -0
- package/dist/cjs/hooks/useFiltersState.js.map +1 -1
- package/dist/cjs/services/translations.js.map +1 -1
- package/dist/cjs/styles.global.css +1 -1
- package/dist/cjs/types/CollectionPageConfig.js.map +1 -1
- package/dist/esm/assets/locale/messages_en.json +1 -0
- package/dist/esm/cms-fields/components/address/input/address-input.st.css.js +3 -3
- package/dist/esm/cms-fields/components/address/input/address-input.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/audio/actions/actions-menu/actions-menu.st.css.js +3 -3
- package/dist/esm/cms-fields/components/audio/actions/actions-menu/actions-menu.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/audio/audio-field/form-audio-field.st.css.js +4 -4
- package/dist/esm/cms-fields/components/audio/audio-field/form-audio-field.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/audio/audio-player/audio-player.st.css.js +2 -2
- package/dist/esm/cms-fields/components/audio/audio-player/audio-player.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/color-view/color-view.st.css.js +4 -4
- package/dist/esm/cms-fields/components/color-view/color-view.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/delete-dialog/delete-dialog.st.css.js +3 -3
- package/dist/esm/cms-fields/components/delete-dialog/delete-dialog.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/document/form-document-field.st.css.js +7 -7
- package/dist/esm/cms-fields/components/document/form-document-field.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/exclamation/exclamation.st.css +2 -3
- package/dist/esm/cms-fields/components/exclamation/exclamation.st.css.js +5 -5
- package/dist/esm/cms-fields/components/exclamation/exclamation.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/exclamation/type-mismatch-exclamation.js +2 -1
- package/dist/esm/cms-fields/components/exclamation/type-mismatch-exclamation.js.map +1 -1
- package/dist/esm/cms-fields/components/highlighted-text/highlighted-text.st.css.js +5 -5
- package/dist/esm/cms-fields/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/media-control/paste-url-button.st.css.js +4 -4
- package/dist/esm/cms-fields/components/media-control/paste-url-button.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/media-gallery/form-media-gallery-field.st.css.js +10 -10
- package/dist/esm/cms-fields/components/media-gallery/form-media-gallery-field.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/media-image/media-image.st.css.js +4 -4
- package/dist/esm/cms-fields/components/media-image/media-image.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/media-loader/media-loader.st.css.js +3 -3
- package/dist/esm/cms-fields/components/media-loader/media-loader.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
- package/dist/esm/cms-fields/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/multi-document/multi-document-input/form-multi-document.st.css.js +5 -5
- package/dist/esm/cms-fields/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +6 -6
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +5 -5
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +3 -3
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +3 -3
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +9 -9
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +4 -4
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +4 -4
- package/dist/esm/cms-fields/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +18 -18
- package/dist/esm/cms-fields/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +4 -4
- package/dist/esm/cms-fields/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +18 -18
- package/dist/esm/cms-fields/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
- package/dist/esm/cms-fields/components/text/text-view.st.css.js +3 -3
- package/dist/esm/cms-fields/components/text/text-view.st.css.js.map +1 -1
- package/dist/esm/cms-fields/validations/array.js +20 -0
- package/dist/esm/cms-fields/validations/array.js.map +1 -0
- package/dist/esm/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js +1 -0
- package/dist/esm/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js.map +1 -1
- package/dist/esm/components/AutoPatternsGrid/AutoPatternsGrid.js +2 -1
- package/dist/esm/components/AutoPatternsGrid/AutoPatternsGrid.js.map +1 -1
- package/dist/esm/components/fields/Array.js +86 -0
- package/dist/esm/components/fields/Array.js.map +1 -0
- package/dist/esm/components/fields/index.js +1 -0
- package/dist/esm/components/fields/index.js.map +1 -1
- package/dist/esm/components/layouts/FormField.js +2 -1
- package/dist/esm/components/layouts/FormField.js.map +1 -1
- package/dist/esm/hooks/useBaseTableFeatures.js +1 -0
- package/dist/esm/hooks/useBaseTableFeatures.js.map +1 -1
- package/dist/esm/hooks/useColumns.js +6 -4
- package/dist/esm/hooks/useColumns.js.map +1 -1
- package/dist/esm/hooks/useFiltersState.js +1 -0
- package/dist/esm/hooks/useFiltersState.js.map +1 -1
- package/dist/esm/services/translations.js.map +1 -1
- package/dist/esm/styles.global.css +1 -1
- package/dist/esm/types/CollectionPageConfig.js.map +1 -1
- package/dist/types/cms-fields/components/audio/audio-field/form-audio-field.st.css.d.ts.map +1 -1
- package/dist/types/cms-fields/components/color-view/color-view.st.css.d.ts.map +1 -1
- package/dist/types/cms-fields/components/media-gallery/form-media-gallery-field.st.css.d.ts.map +1 -1
- package/dist/types/cms-fields/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.d.ts.map +1 -1
- package/dist/types/cms-fields/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.d.ts.map +1 -1
- package/dist/types/cms-fields/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.d.ts.map +1 -1
- package/dist/types/cms-fields/components/text/text-view.st.css.d.ts.map +1 -1
- package/dist/types/cms-fields/validations/array.d.ts +3 -0
- package/dist/types/cms-fields/validations/array.d.ts.map +1 -0
- package/dist/types/components/AutoPatternsApp/AutoPatternsApp.uni.driver.d.ts +193 -5
- package/dist/types/components/AutoPatternsApp/AutoPatternsApp.uni.driver.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsEntityPage/AutoPatternsEntityPage.d.ts +1 -0
- package/dist/types/components/AutoPatternsEntityPage/AutoPatternsEntityPage.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsGrid/AutoPatternsGrid.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsTable/AutoPatternsTable.uni.driver.d.ts +193 -5
- package/dist/types/components/AutoPatternsTable/AutoPatternsTable.uni.driver.d.ts.map +1 -1
- package/dist/types/components/fields/Array.d.ts +6 -0
- package/dist/types/components/fields/Array.d.ts.map +1 -0
- package/dist/types/components/fields/index.d.ts +1 -0
- package/dist/types/components/fields/index.d.ts.map +1 -1
- package/dist/types/components/layouts/FormField.d.ts.map +1 -1
- package/dist/types/hooks/useBaseTableFeatures.d.ts +2 -0
- package/dist/types/hooks/useBaseTableFeatures.d.ts.map +1 -1
- package/dist/types/hooks/useColumns.d.ts.map +1 -1
- package/dist/types/hooks/useFiltersState.d.ts.map +1 -1
- package/dist/types/services/translations.d.ts +1 -1
- package/dist/types/services/translations.d.ts.map +1 -1
- package/dist/types/testkit/enzyme.d.ts +193 -5
- package/dist/types/testkit/enzyme.d.ts.map +1 -1
- package/dist/types/testkit/jsdom.d.ts +193 -5
- package/dist/types/testkit/jsdom.d.ts.map +1 -1
- package/dist/types/testkit/playwright.d.ts +193 -5
- package/dist/types/testkit/playwright.d.ts.map +1 -1
- package/dist/types/testkit/puppeteer.d.ts +193 -5
- package/dist/types/testkit/puppeteer.d.ts.map +1 -1
- package/dist/types/types/CollectionPageConfig.d.ts +6 -0
- package/dist/types/types/CollectionPageConfig.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -62,9 +62,15 @@ const useColumns = columns => {
|
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
case 'ARRAY':
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
return /*#__PURE__*/_react.default.createElement(_cmsFields.JsonView, {
|
|
66
|
+
data: itemValue,
|
|
67
|
+
__self: void 0,
|
|
68
|
+
__source: {
|
|
69
|
+
fileName: _jsxFileName,
|
|
70
|
+
lineNumber: 66,
|
|
71
|
+
columnNumber: 16
|
|
72
|
+
}
|
|
73
|
+
});
|
|
68
74
|
case 'REFERENCE':
|
|
69
75
|
if (fieldDefinition.referenceMetadata && getSchema) {
|
|
70
76
|
const {
|
|
@@ -82,7 +88,7 @@ const useColumns = columns => {
|
|
|
82
88
|
__self: void 0,
|
|
83
89
|
__source: {
|
|
84
90
|
fileName: _jsxFileName,
|
|
85
|
-
lineNumber:
|
|
91
|
+
lineNumber: 79,
|
|
86
92
|
columnNumber: 15
|
|
87
93
|
}
|
|
88
94
|
}, name && /*#__PURE__*/_react.default.createElement(_ReferenceAvatar.ReferenceAvatar, {
|
|
@@ -91,14 +97,14 @@ const useColumns = columns => {
|
|
|
91
97
|
__self: void 0,
|
|
92
98
|
__source: {
|
|
93
99
|
fileName: _jsxFileName,
|
|
94
|
-
lineNumber:
|
|
100
|
+
lineNumber: 80,
|
|
95
101
|
columnNumber: 26
|
|
96
102
|
}
|
|
97
103
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
98
104
|
__self: void 0,
|
|
99
105
|
__source: {
|
|
100
106
|
fileName: _jsxFileName,
|
|
101
|
-
lineNumber:
|
|
107
|
+
lineNumber: 81,
|
|
102
108
|
columnNumber: 17
|
|
103
109
|
}
|
|
104
110
|
}, name));
|
|
@@ -118,7 +124,7 @@ const useColumns = columns => {
|
|
|
118
124
|
__self: void 0,
|
|
119
125
|
__source: {
|
|
120
126
|
fileName: _jsxFileName,
|
|
121
|
-
lineNumber:
|
|
127
|
+
lineNumber: 95,
|
|
122
128
|
columnNumber: 15
|
|
123
129
|
}
|
|
124
130
|
});
|
|
@@ -134,7 +140,7 @@ const useColumns = columns => {
|
|
|
134
140
|
__self: void 0,
|
|
135
141
|
__source: {
|
|
136
142
|
fileName: _jsxFileName,
|
|
137
|
-
lineNumber:
|
|
143
|
+
lineNumber: 107,
|
|
138
144
|
columnNumber: 11
|
|
139
145
|
}
|
|
140
146
|
});
|
|
@@ -144,7 +150,7 @@ const useColumns = columns => {
|
|
|
144
150
|
__self: void 0,
|
|
145
151
|
__source: {
|
|
146
152
|
fileName: _jsxFileName,
|
|
147
|
-
lineNumber:
|
|
153
|
+
lineNumber: 110,
|
|
148
154
|
columnNumber: 16
|
|
149
155
|
}
|
|
150
156
|
});
|
|
@@ -154,7 +160,7 @@ const useColumns = columns => {
|
|
|
154
160
|
__self: void 0,
|
|
155
161
|
__source: {
|
|
156
162
|
fileName: _jsxFileName,
|
|
157
|
-
lineNumber:
|
|
163
|
+
lineNumber: 112,
|
|
158
164
|
columnNumber: 16
|
|
159
165
|
}
|
|
160
166
|
});
|
|
@@ -164,7 +170,7 @@ const useColumns = columns => {
|
|
|
164
170
|
__self: void 0,
|
|
165
171
|
__source: {
|
|
166
172
|
fileName: _jsxFileName,
|
|
167
|
-
lineNumber:
|
|
173
|
+
lineNumber: 114,
|
|
168
174
|
columnNumber: 16
|
|
169
175
|
}
|
|
170
176
|
});
|
|
@@ -174,7 +180,7 @@ const useColumns = columns => {
|
|
|
174
180
|
__self: void 0,
|
|
175
181
|
__source: {
|
|
176
182
|
fileName: _jsxFileName,
|
|
177
|
-
lineNumber:
|
|
183
|
+
lineNumber: 116,
|
|
178
184
|
columnNumber: 16
|
|
179
185
|
}
|
|
180
186
|
});
|
|
@@ -184,7 +190,7 @@ const useColumns = columns => {
|
|
|
184
190
|
__self: void 0,
|
|
185
191
|
__source: {
|
|
186
192
|
fileName: _jsxFileName,
|
|
187
|
-
lineNumber:
|
|
193
|
+
lineNumber: 118,
|
|
188
194
|
columnNumber: 16
|
|
189
195
|
}
|
|
190
196
|
});
|
|
@@ -194,7 +200,7 @@ const useColumns = columns => {
|
|
|
194
200
|
__self: void 0,
|
|
195
201
|
__source: {
|
|
196
202
|
fileName: _jsxFileName,
|
|
197
|
-
lineNumber:
|
|
203
|
+
lineNumber: 120,
|
|
198
204
|
columnNumber: 16
|
|
199
205
|
}
|
|
200
206
|
});
|
|
@@ -204,7 +210,7 @@ const useColumns = columns => {
|
|
|
204
210
|
__self: void 0,
|
|
205
211
|
__source: {
|
|
206
212
|
fileName: _jsxFileName,
|
|
207
|
-
lineNumber:
|
|
213
|
+
lineNumber: 122,
|
|
208
214
|
columnNumber: 16
|
|
209
215
|
}
|
|
210
216
|
});
|
|
@@ -214,7 +220,7 @@ const useColumns = columns => {
|
|
|
214
220
|
__self: void 0,
|
|
215
221
|
__source: {
|
|
216
222
|
fileName: _jsxFileName,
|
|
217
|
-
lineNumber:
|
|
223
|
+
lineNumber: 124,
|
|
218
224
|
columnNumber: 16
|
|
219
225
|
}
|
|
220
226
|
});
|
|
@@ -224,7 +230,7 @@ const useColumns = columns => {
|
|
|
224
230
|
__self: void 0,
|
|
225
231
|
__source: {
|
|
226
232
|
fileName: _jsxFileName,
|
|
227
|
-
lineNumber:
|
|
233
|
+
lineNumber: 126,
|
|
228
234
|
columnNumber: 16
|
|
229
235
|
}
|
|
230
236
|
});
|
|
@@ -239,9 +245,11 @@ const useColumns = columns => {
|
|
|
239
245
|
return null;
|
|
240
246
|
}
|
|
241
247
|
const sortable = column.sortable && (fieldDefinition == null || (_fieldDefinition$capa = fieldDefinition.capabilities) == null ? void 0 : _fieldDefinition$capa.sortable);
|
|
248
|
+
const displayName = column.name || (fieldDefinition == null ? void 0 : fieldDefinition.displayName);
|
|
242
249
|
const baseColumnConfig = {
|
|
243
250
|
id: column.id,
|
|
244
|
-
title:
|
|
251
|
+
title: displayName,
|
|
252
|
+
fieldType: fieldDefinition == null ? void 0 : fieldDefinition.type,
|
|
245
253
|
width: column.width,
|
|
246
254
|
...createSortConfiguration(column, sortable),
|
|
247
255
|
...createCustomColumnConfiguration(column),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_providers","_lodash","_designSystem","_getImageUrl","_cmsFields","_schema","_ReferenceAvatar","_LazyRichContentView","_MultiReferenceViewField","_jsxFileName","useColumns","columns","fields","useSchema","getSchema","useSchemaRegistry","overrides","useAutoPatternsOverridesContext","existingColumns","filter","column","_overrides$columns","id","createRenderer","fieldDefinition","itemValue","type","Date","toLocaleDateString","date","toLocaleString","default","createElement","TimeView","data","__self","__source","fileName","lineNumber","columnNumber","join","referenceMetadata","referencedCollectionId","refSchema","name","image","extractReferenceDisplayValues","Box","gap","verticalAlign","ReferenceAvatar","MultiReferenceViewField","field","value","imageUrl","getImageUrl","Image","src","width","dataHook","JsonView","MediaGalleryView","AddressView","RichTextView","DocumentView","LazyRichContentView","MultiDocumentView","AudioView","ColorView","map","_overrides$columns2","_fieldDefinition$capa","sortable","capabilities","baseColumnConfig","title","displayName","createSortConfiguration","createCustomColumnConfiguration","tooltipContent","infoTooltipProps","content","render","row","_overrides$columns3","get","camelCase","_overrides$columns4","_overrides$columns4$c","call","Boolean","exports","sortableColumnConfig","defaultSortOrder","sortMode","undefined","reorderDisabled","hiddenFromCustomColumnsSelection","hideable","defaultHidden"],"sources":["../../../src/hooks/useColumns.tsx"],"sourcesContent":["import React from 'react';\nimport { TableColumn } from '@wix/patterns';\nimport {\n useAutoPatternsOverridesContext,\n useSchema,\n useSchemaRegistry,\n} from '../providers';\nimport { Column, Field } from '../types';\nimport { camelCase, get } from 'lodash';\nimport { Box, Image } from '@wix/design-system';\nimport { getImageUrl } from '../utils/media/getImageUrl';\nimport {\n AddressView,\n AudioView,\n ColorView,\n JsonView,\n MediaGalleryView,\n RichTextView,\n TimeView,\n DocumentView,\n MultiDocumentView,\n} from '../cms-fields';\nimport { extractReferenceDisplayValues } from '../utils/schema';\nimport { ReferenceAvatar } from '../components/ReferenceAvatar';\nimport { LazyRichContentView } from '../components/LazyRichContentView';\nimport { MultiReferenceViewField } from '../components/MultiReferenceViewField';\n\nexport const useColumns = (columns: Column[]) => {\n const { fields } = useSchema();\n const { getSchema } = useSchemaRegistry();\n const overrides = useAutoPatternsOverridesContext();\n\n const existingColumns = columns.filter((column) => {\n return !!fields[column.id] || overrides?.columns?.[column.id];\n });\n\n const createRenderer = (fieldDefinition: Field, itemValue: any) => {\n if (itemValue == null) {\n return '';\n }\n\n switch (fieldDefinition.type) {\n case 'BOOLEAN':\n return itemValue ? '✔' : '✖';\n case 'DATE':\n if (itemValue instanceof Date) {\n return itemValue.toLocaleDateString();\n }\n if (typeof itemValue === 'string') {\n const date = new Date(itemValue);\n return date.toLocaleDateString();\n }\n return itemValue;\n case 'DATETIME':\n if (itemValue instanceof Date) {\n return itemValue.toLocaleString();\n }\n if (typeof itemValue === 'string') {\n const date = new Date(itemValue);\n return date.toLocaleString();\n }\n return itemValue;\n case 'TIME':\n return <TimeView data={itemValue} />;\n case 'ARRAY':\n // We assume that the array contains strings\n // If the array contains objects, we need to handle it differently\n return itemValue.join(', ');\n case 'REFERENCE':\n if (fieldDefinition.referenceMetadata && getSchema) {\n const { referencedCollectionId } = fieldDefinition.referenceMetadata;\n const refSchema = getSchema(referencedCollectionId);\n\n if (refSchema) {\n const { name, image } = extractReferenceDisplayValues(\n itemValue,\n refSchema,\n );\n\n return (\n <Box gap=\"SP2\" verticalAlign=\"middle\">\n {name && <ReferenceAvatar name={name} image={image} />}\n <div>{name}</div>\n </Box>\n );\n }\n }\n\n return itemValue;\n case 'MULTI_REFERENCE':\n if (fieldDefinition.referenceMetadata && getSchema) {\n const { referencedCollectionId } = fieldDefinition.referenceMetadata;\n const refSchema = getSchema(referencedCollectionId);\n\n if (refSchema) {\n return (\n <MultiReferenceViewField\n field={fieldDefinition}\n value={itemValue}\n />\n );\n }\n }\n return itemValue;\n case 'IMAGE':\n const imageUrl = getImageUrl(itemValue);\n\n return (\n <Image src={imageUrl} width=\"48px\" dataHook=\"auto-patterns-image\" />\n );\n case 'OBJECT':\n return <JsonView data={itemValue} />;\n case 'MEDIA_GALLERY':\n return <MediaGalleryView data={itemValue} />;\n case 'ADDRESS':\n return <AddressView data={itemValue} />;\n case 'RICH_TEXT':\n return <RichTextView data={itemValue} />;\n case 'DOCUMENT':\n return <DocumentView data={itemValue} />;\n case 'RICH_CONTENT':\n return <LazyRichContentView data={itemValue} />;\n case 'MULTI_DOCUMENT':\n return <MultiDocumentView data={itemValue} />;\n case 'AUDIO':\n return <AudioView data={itemValue} />;\n case 'COLOR':\n return <ColorView data={itemValue} />;\n default:\n return itemValue;\n }\n };\n\n return existingColumns\n .map((column) => {\n const fieldDefinition = fields[column.id];\n if (!fieldDefinition && !overrides?.columns?.[column.id]) {\n return null;\n }\n\n const sortable =\n column.sortable && fieldDefinition?.capabilities?.sortable;\n const baseColumnConfig = {\n id: column.id,\n title: column.name || fieldDefinition?.displayName,\n width: column.width,\n ...createSortConfiguration(column, sortable),\n ...createCustomColumnConfiguration(column),\n ...(column.tooltipContent && {\n infoTooltipProps: {\n content: column.tooltipContent,\n },\n }),\n render: (row: any) => {\n const itemValue = get(row, column.id);\n\n if (overrides?.columns?.[camelCase(column.id)]) {\n return overrides?.columns?.[camelCase(column.id)]?.({\n value: itemValue,\n row,\n });\n }\n\n if (fieldDefinition) {\n return createRenderer(fieldDefinition, itemValue);\n }\n\n return null; // Shouldn't really happen\n },\n };\n\n return baseColumnConfig;\n })\n .filter(Boolean) as TableColumn<any>[];\n};\n\nconst createSortConfiguration = (\n column: Column,\n sortable?: boolean,\n): Partial<TableColumn<any>> => {\n if (!sortable) {\n return {};\n }\n const sortableColumnConfig = {\n sortable,\n defaultSortOrder: column.defaultSortOrder,\n };\n\n // default sort mode is ['asc', 'desc', undefined]\n // so if sort mode is 'desc' -> we want to override the default\n // and set it to ['desc', 'asc', undefined]\n if (column.sortMode && column.sortMode === 'desc') {\n return {\n ...sortableColumnConfig,\n sortMode: ['desc', 'asc', undefined],\n };\n }\n return {\n ...sortableColumnConfig,\n };\n};\n\nconst createCustomColumnConfiguration = (\n column: Column,\n): Partial<TableColumn<any>> => {\n const reorderDisabled = !!column.reorderDisabled;\n\n if (column.hiddenFromCustomColumnsSelection) {\n return { hiddenFromCustomColumnsSelection: true };\n }\n if (column.hideable === false) {\n return {\n hideable: false,\n reorderDisabled,\n };\n }\n return {\n defaultHidden: !!column.defaultHidden,\n reorderDisabled,\n };\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAMA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAWA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,oBAAA,GAAAR,OAAA;AACA,IAAAS,wBAAA,GAAAT,OAAA;AAAgF,IAAAU,YAAA;AAEzE,MAAMC,UAAU,GAAIC,OAAiB,IAAK;EAC/C,MAAM;IAAEC;EAAO,CA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QAAQ,IAAI1E,MAAM,CAAC0E,QAAQ,KAAK,MAAM,EAAE;IACjD,OAAO;MACL,GAAGF,oBAAoB;MACvBE,QAAQ,EAAE,CAAC,MAAM,EAAE,KAAK,EAAEC,SAAS;IACrC,CAAC;EACH;EACA,OAAO;IACL,GAAGH;EACL,CAAC;AACH,CAAC;AAED,MAAMd,+BAA+B,GACnC1D,MAAc,IACgB;EAC9B,MAAM4E,eAAe,GAAG,CAAC,CAAC5E,MAAM,CAAC4E,eAAe;EAEhD,IAAI5E,MAAM,CAAC6E,gCAAgC,EAAE;IAC3C,OAAO;MAAEA,gCAAgC,EAAE;IAAK,CAAC;EACnD;EACA,IAAI7E,MAAM,CAAC8E,QAAQ,KAAK,KAAK,EAAE;IAC7B,OAAO;MACLA,QAAQ,EAAE,KAAK;MACfF;IACF,CAAC;EACH;EACA,OAAO;IACLG,aAAa,EAAE,CAAC,CAAC/E,MAAM,CAAC+E,aAAa;IACrCH;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_providers","_lodash","_designSystem","_getImageUrl","_cmsFields","_schema","_ReferenceAvatar","_LazyRichContentView","_MultiReferenceViewField","_jsxFileName","useColumns","columns","fields","useSchema","getSchema","useSchemaRegistry","overrides","useAutoPatternsOverridesContext","existingColumns","filter","column","_overrides$columns","id","createRenderer","fieldDefinition","itemValue","type","Date","toLocaleDateString","date","toLocaleString","default","createElement","TimeView","data","__self","__source","fileName","lineNumber","columnNumber","JsonView","referenceMetadata","referencedCollectionId","refSchema","name","image","extractReferenceDisplayValues","Box","gap","verticalAlign","ReferenceAvatar","MultiReferenceViewField","field","value","imageUrl","getImageUrl","Image","src","width","dataHook","MediaGalleryView","AddressView","RichTextView","DocumentView","LazyRichContentView","MultiDocumentView","AudioView","ColorView","map","_overrides$columns2","_fieldDefinition$capa","sortable","capabilities","displayName","baseColumnConfig","title","fieldType","createSortConfiguration","createCustomColumnConfiguration","tooltipContent","infoTooltipProps","content","render","row","_overrides$columns3","get","camelCase","_overrides$columns4","_overrides$columns4$c","call","Boolean","exports","sortableColumnConfig","defaultSortOrder","sortMode","undefined","reorderDisabled","hiddenFromCustomColumnsSelection","hideable","defaultHidden"],"sources":["../../../src/hooks/useColumns.tsx"],"sourcesContent":["import React from 'react';\nimport { TableColumn } from '@wix/patterns';\nimport {\n useAutoPatternsOverridesContext,\n useSchema,\n useSchemaRegistry,\n} from '../providers';\nimport { Column, Field } from '../types';\nimport { camelCase, get } from 'lodash';\nimport { Box, Image } from '@wix/design-system';\nimport { getImageUrl } from '../utils/media/getImageUrl';\nimport {\n AddressView,\n AudioView,\n ColorView,\n JsonView,\n MediaGalleryView,\n RichTextView,\n TimeView,\n DocumentView,\n MultiDocumentView,\n} from '../cms-fields';\nimport { extractReferenceDisplayValues } from '../utils/schema';\nimport { ReferenceAvatar } from '../components/ReferenceAvatar';\nimport { LazyRichContentView } from '../components/LazyRichContentView';\nimport { MultiReferenceViewField } from '../components/MultiReferenceViewField';\n\nexport const useColumns = (columns: Column[]) => {\n const { fields } = useSchema();\n const { getSchema } = useSchemaRegistry();\n const overrides = useAutoPatternsOverridesContext();\n\n const existingColumns = columns.filter((column) => {\n return !!fields[column.id] || overrides?.columns?.[column.id];\n });\n\n const createRenderer = (fieldDefinition: Field, itemValue: any) => {\n if (itemValue == null) {\n return '';\n }\n\n switch (fieldDefinition.type) {\n case 'BOOLEAN':\n return itemValue ? '✔' : '✖';\n case 'DATE':\n if (itemValue instanceof Date) {\n return itemValue.toLocaleDateString();\n }\n if (typeof itemValue === 'string') {\n const date = new Date(itemValue);\n return date.toLocaleDateString();\n }\n return itemValue;\n case 'DATETIME':\n if (itemValue instanceof Date) {\n return itemValue.toLocaleString();\n }\n if (typeof itemValue === 'string') {\n const date = new Date(itemValue);\n return date.toLocaleString();\n }\n return itemValue;\n case 'TIME':\n return <TimeView data={itemValue} />;\n case 'ARRAY':\n return <JsonView data={itemValue} />;\n case 'REFERENCE':\n if (fieldDefinition.referenceMetadata && getSchema) {\n const { referencedCollectionId } = fieldDefinition.referenceMetadata;\n const refSchema = getSchema(referencedCollectionId);\n\n if (refSchema) {\n const { name, image } = extractReferenceDisplayValues(\n itemValue,\n refSchema,\n );\n\n return (\n <Box gap=\"SP2\" verticalAlign=\"middle\">\n {name && <ReferenceAvatar name={name} image={image} />}\n <div>{name}</div>\n </Box>\n );\n }\n }\n\n return itemValue;\n case 'MULTI_REFERENCE':\n if (fieldDefinition.referenceMetadata && getSchema) {\n const { referencedCollectionId } = fieldDefinition.referenceMetadata;\n const refSchema = getSchema(referencedCollectionId);\n\n if (refSchema) {\n return (\n <MultiReferenceViewField\n field={fieldDefinition}\n value={itemValue}\n />\n );\n }\n }\n return itemValue;\n case 'IMAGE':\n const imageUrl = getImageUrl(itemValue);\n\n return (\n <Image src={imageUrl} width=\"48px\" dataHook=\"auto-patterns-image\" />\n );\n case 'OBJECT':\n return <JsonView data={itemValue} />;\n case 'MEDIA_GALLERY':\n return <MediaGalleryView data={itemValue} />;\n case 'ADDRESS':\n return <AddressView data={itemValue} />;\n case 'RICH_TEXT':\n return <RichTextView data={itemValue} />;\n case 'DOCUMENT':\n return <DocumentView data={itemValue} />;\n case 'RICH_CONTENT':\n return <LazyRichContentView data={itemValue} />;\n case 'MULTI_DOCUMENT':\n return <MultiDocumentView data={itemValue} />;\n case 'AUDIO':\n return <AudioView data={itemValue} />;\n case 'COLOR':\n return <ColorView data={itemValue} />;\n default:\n return itemValue;\n }\n };\n\n return existingColumns\n .map((column) => {\n const fieldDefinition = fields[column.id];\n if (!fieldDefinition && !overrides?.columns?.[column.id]) {\n return null;\n }\n\n const sortable =\n column.sortable && fieldDefinition?.capabilities?.sortable;\n\n const displayName = column.name || fieldDefinition?.displayName;\n\n const baseColumnConfig = {\n id: column.id,\n title: displayName,\n fieldType: fieldDefinition?.type,\n width: column.width,\n ...createSortConfiguration(column, sortable),\n ...createCustomColumnConfiguration(column),\n ...(column.tooltipContent && {\n infoTooltipProps: {\n content: column.tooltipContent,\n },\n }),\n render: (row: any) => {\n const itemValue = get(row, column.id);\n\n if (overrides?.columns?.[camelCase(column.id)]) {\n return overrides?.columns?.[camelCase(column.id)]?.({\n value: itemValue,\n row,\n });\n }\n\n if (fieldDefinition) {\n return createRenderer(fieldDefinition, itemValue);\n }\n\n return null; // Shouldn't really happen\n },\n };\n\n return baseColumnConfig;\n })\n .filter(Boolean) as TableColumn<any>[];\n};\n\nconst createSortConfiguration = (\n column: Column,\n sortable?: boolean,\n): Partial<TableColumn<any>> => {\n if (!sortable) {\n return {};\n }\n const sortableColumnConfig = {\n sortable,\n defaultSortOrder: column.defaultSortOrder,\n };\n\n // default sort mode is ['asc', 'desc', undefined]\n // so if sort mode is 'desc' -> we want to override the default\n // and set it to ['desc', 'asc', undefined]\n if (column.sortMode && column.sortMode === 'desc') {\n return {\n ...sortableColumnConfig,\n sortMode: ['desc', 'asc', undefined],\n };\n }\n return {\n ...sortableColumnConfig,\n };\n};\n\nconst createCustomColumnConfiguration = (\n column: Column,\n): Partial<TableColumn<any>> => {\n const reorderDisabled = !!column.reorderDisabled;\n\n if (column.hiddenFromCustomColumnsSelection) {\n return { hiddenFromCustomColumnsSelection: true };\n }\n if (column.hideable === false) {\n return {\n hideable: false,\n reorderDisabled,\n };\n }\n return {\n defaultHidden: !!column.defaultHidden,\n reorderDisabled,\n };\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAMA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAWA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,oBAAA,GAAAR,OAAA;AACA,IAAAS,wBAAA,GAAAT,OAAA;AAAgF,IAAAU,YAAA;AAEz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ACC,OAAA,CAAAjF,UAAA,GAAAA,UAAA;AAEF,MAAMmE,uBAAuB,GAAGA,CAC9BzD,MAAc,EACdmD,QAAkB,KACY;EAC9B,IAAI,CAACA,QAAQ,EAAE;IACb,OAAO,CAAC,CAAC;EACX;EACA,MAAMqB,oBAAoB,GAAG;IAC3BrB,QAAQ;IACRsB,gBAAgB,EAAEzE,MAAM,CAACyE;EAC3B,CAAC;;EAED;EACA;EACA;EACA,IAAIzE,MAAM,CAAC0E,QAAQ,IAAI1E,MAAM,CAAC0E,QAAQ,KAAK,MAAM,EAAE;IACjD,OAAO;MACL,GAAGF,oBAAoB;MACvBE,QAAQ,EAAE,CAAC,MAAM,EAAE,KAAK,EAAEC,SAAS;IACrC,CAAC;EACH;EACA,OAAO;IACL,GAAGH;EACL,CAAC;AACH,CAAC;AAED,MAAMd,+BAA+B,GACnC1D,MAAc,IACgB;EAC9B,MAAM4E,eAAe,GAAG,CAAC,CAAC5E,MAAM,CAAC4E,eAAe;EAEhD,IAAI5E,MAAM,CAAC6E,gCAAgC,EAAE;IAC3C,OAAO;MAAEA,gCAAgC,EAAE;IAAK,CAAC;EACnD;EACA,IAAI7E,MAAM,CAAC8E,QAAQ,KAAK,KAAK,EAAE;IAC7B,OAAO;MACLA,QAAQ,EAAE,KAAK;MACfF;IACF,CAAC;EACH;EACA,OAAO;IACLG,aAAa,EAAE,CAAC,CAAC/E,MAAM,CAAC+E,aAAa;IACrCH;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_patterns","_filterCreators","_providers","_AutoPatternsAppContainerProvider","useFiltersState","config","schema","useSchema","schemaRegistry","useSchemaRegistry","translate","t","useAutoPatternsAppContainer","filters","React","useState","currFilters","items","forEach","filter","id","fieldId","fieldDefinition","fields","label","displayName","openByDefault","tagLabel","sectionTitle","baseParams","commonFilterProps","initiallyOpen","accordionItemProps","toolbarItemProps","toolbarTagProps","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_patterns","_filterCreators","_providers","_AutoPatternsAppContainerProvider","useFiltersState","config","schema","useSchema","schemaRegistry","useSchemaRegistry","translate","t","useAutoPatternsAppContainer","filters","React","useState","currFilters","items","forEach","filter","id","fieldId","fieldDefinition","fields","label","displayName","openByDefault","tagLabel","sectionTitle","baseParams","commonFilterProps","fieldType","type","initiallyOpen","accordionItemProps","toolbarItemProps","toolbarTagProps","push","createDateTimeFilter","dateConfig","createBooleanFilter","booleanConfig","createHasValueFilter","hasValueLabel","noValueLabel","createNumberFilter","numberConfig","referencedCollectionId","referenceMetadata","referencedSchema","getSchema","createReferenceFilter","dynamicOptionsConfig","additionalParams","createOperatorFilter","operators","FilterOperator","CONTAINS","NOT_CONTAINS","IS_EMPTY","EXISTS","enumConfig","createEnumFilter","filterFieldMapping","useMemo","reduce","acc","filtersObject","key"],"sources":["../../../src/hooks/useFiltersState.tsx"],"sourcesContent":["import React from 'react';\nimport { Filter, FilterOperator } from '@wix/patterns';\nimport {\n createBooleanFilter,\n createDateTimeFilter,\n createEnumFilter,\n createNumberFilter,\n createOperatorFilter,\n createReferenceFilter,\n createHasValueFilter,\n} from '../utils/filterCreators';\nimport {\n DateFilterConfig,\n DynamicOptionsFilterConfig,\n EnumFilterConfig,\n Field,\n Filter as SchemaFilterType,\n FiltersConfig,\n} from '../types';\nimport { useSchema, useSchemaRegistry } from '../providers';\nimport { useAutoPatternsAppContainer } from '../components/AutoPatternsApp/AutoPatternsAppContainerProvider';\n\nexport interface FilterOptions {\n key: string;\n fieldId: string;\n fieldDefinition: Field;\n filter: Filter<any>;\n collectionData?: { id: string; name: string }[];\n collectionId?: string;\n componentName?: string;\n props: Record<string, any>;\n dateConfig?: DateFilterConfig;\n enumConfig?: EnumFilterConfig;\n dynamicOptionsFilterConfig?: DynamicOptionsFilterConfig;\n}\n\nexport function useFiltersState(config?: FiltersConfig) {\n const schema = useSchema();\n const schemaRegistry = useSchemaRegistry();\n const { translate: t } = useAutoPatternsAppContainer();\n const [filters] = React.useState(() => {\n const currFilters: FilterOptions[] = [];\n config?.items.forEach((filter) => {\n const { id, fieldId } = filter;\n const fieldDefinition = schema.fields[fieldId];\n if (!fieldDefinition) {\n return;\n }\n\n const label = filter.displayName || fieldDefinition.displayName;\n const { openByDefault, tagLabel, sectionTitle } = filter;\n\n const baseParams = {\n id,\n fieldId,\n fieldDefinition,\n commonFilterProps: {\n fieldType: fieldDefinition.type,\n sectionTitle,\n initiallyOpen: openByDefault,\n accordionItemProps: {\n label,\n },\n toolbarItemProps: {\n label,\n },\n toolbarTagProps: { label: tagLabel },\n },\n };\n\n switch (fieldDefinition.type) {\n case 'DATE':\n case 'DATETIME':\n currFilters.push(\n createDateTimeFilter({\n ...baseParams,\n config: filter.dateConfig,\n }),\n );\n break;\n\n case 'BOOLEAN':\n currFilters.push(\n createBooleanFilter({\n ...baseParams,\n config: filter.booleanConfig,\n }),\n );\n break;\n\n case 'RICH_CONTENT':\n case 'TIME':\n case 'DOCUMENT':\n case 'MULTI_DOCUMENT':\n case 'AUDIO':\n currFilters.push(\n createHasValueFilter({\n ...baseParams,\n hasValueLabel: t('auto-patterns.filters.has_value'),\n noValueLabel: t('auto-patterns.filters.no_value'),\n }),\n );\n break;\n\n case 'NUMBER':\n currFilters.push(\n createNumberFilter({\n ...baseParams,\n config: filter.numberConfig,\n }),\n );\n break;\n\n case 'REFERENCE':\n case 'MULTI_REFERENCE': {\n const { referencedCollectionId } = fieldDefinition.referenceMetadata;\n const referencedSchema = schemaRegistry.getSchema(\n referencedCollectionId,\n );\n\n if (referencedSchema) {\n currFilters.push(\n createReferenceFilter({\n ...baseParams,\n config: filter.dynamicOptionsConfig,\n additionalParams: {\n referencedSchema,\n },\n }),\n );\n }\n break;\n }\n\n case 'RICH_TEXT':\n case 'ADDRESS':\n case 'EMAIL': {\n currFilters.push(\n createOperatorFilter({\n ...baseParams,\n additionalParams: {\n operators: [\n FilterOperator.CONTAINS,\n FilterOperator.NOT_CONTAINS,\n FilterOperator.IS_EMPTY,\n FilterOperator.EXISTS,\n ],\n },\n }),\n );\n break;\n }\n\n default:\n if (filter?.enumConfig) {\n currFilters.push(\n createEnumFilter({\n ...baseParams,\n config: filter.enumConfig,\n }),\n );\n }\n break;\n }\n });\n return currFilters;\n });\n\n const filterFieldMapping = React.useMemo(() => {\n return config?.items.reduce((acc, filter) => {\n acc[filter.id] = filter;\n return acc;\n }, {} as Record<string, SchemaFilterType>);\n }, [config?.items]);\n\n const filtersObject = filters.reduce((acc, filter) => {\n acc[filter.key] = filter.filter;\n return acc;\n }, {} as { [key: string]: Filter<any> });\n\n return { filters, filterFieldMapping, filtersObject };\n}\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AAiBA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,iCAAA,GAAAJ,OAAA;AAgBO,SAASK,eAAeA,CAACC,MAAsB,EAAE;EACtD,MAAMC,MAAM,GAAG,IAAAC,oBAAS,EAAC,CAAC;EAC1B,MAAMC,cAAc,GAAG,IAAAC,4BAAiB,EAAC,CAAC;EAC1C,MAAM;IAAEC,SAAS,EAAEC;EAAE,CAAC,GAAG,IAAAC,6DAA2B,EAAC,CAAC;EACtD,MAAM,CAACC,OAAO,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAC,MAAM;IACrC,MAAMC,WAA4B,GAAG,EAAE;IACvCX,MAAM,YAANA,MAAM,CAAEY,KAAK,CAACC,OAAO,CAAEC,MAAM,IAAK;MAChC,MAAM;QAAEC,EAAE;QAAEC;MAAQ,CAAC,GAAGF,MAAM;MAC9B,MAAMG,eAAe,GAAGhB,MAAM,CAACiB,MAAM,CAACF,OAAO,CAAC;MAC9C,IAAI,CAACC,eAAe,EAAE;QACpB;MACF;MAEA,MAAME,KAAK,GAAGL,MAAM,CAACM,WAAW,IAA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EAAE,CAAC7D,MAAM,oBAANA,MAAM,CAAEY,KAAK,CAAC,CAAC;EAEnB,MAAMkD,aAAa,GAAGtD,OAAO,CAACoD,MAAM,CAAC,CAACC,GAAG,EAAE/C,MAAM,KAAK;IACpD+C,GAAG,CAAC/C,MAAM,CAACiD,GAAG,CAAC,GAAGjD,MAAM,CAACA,MAAM;IAC/B,OAAO+C,GAAG;EACZ,CAAC,EAAE,CAAC,CAAmC,CAAC;EAExC,OAAO;IAAErD,OAAO;IAAEkD,kBAAkB;IAAEI;EAAc,CAAC;AACvD","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../../src/services/translations.ts"],"sourcesContent":["// DO NOT UPDATE THIS FILE! This file was auto-generated by generate-keys.ts\nexport type TranslationsKeys =\n | 'CMS.document.add.button.text'\n | 'CMS.document.addMore.button.text'\n | 'CMS.document.action.open'\n | 'CMS.document.action.download'\n | 'CMS.document.action.replace'\n | 'CMS.document.action.replaceWithUrl'\n | 'CMS.document.action.delete'\n | 'CMS.document.pasteUrl.button'\n | 'CMS.document.pasteUrl.title'\n | 'CMS.document.replaceWithUrl.title'\n | 'CMS.document.delete.confirm'\n | 'CMS.document.delete.cancel'\n | 'CMS.mediaControl.pasteUrl.button.save'\n | 'CMS.mediaControl.pasteUrl.button.cancel'\n | 'CMS.mediaControl.pasteUrl.placeholder.document'\n | 'CMS.mediaControl.pasteUrl.placeholder.image'\n | 'CMS.mediaControl.pasteUrl.error.document'\n | 'CMS.mediaControl.pasteUrl.error.image'\n | 'auto-patterns.filters.has_value'\n | 'auto-patterns.filters.no_value'\n | 'auto-patterns.fields.type_mismatch_convert_disabled'\n | 'auto-patterns.fields.type_mismatch_clear'\n | 'auto-patterns.fields.field_type_object_title'\n | 'auto-patterns.fields.field_type_address_title'\n | 'auto-patterns.fields.field_type_time_title'\n | 'auto-patterns.time_input.placeholder'\n | 'auto-patterns.time_input.invalid_message'\n | 'auto-patterns.fields.no_results_found'\n | 'auto-patterns.fields.no_items'\n | 'auto-patterns.fields.select_placeholder'\n | 'auto-patterns.fields.field_type_address_placeholder'\n | 'auto-patterns.fields.field_type_rich_text_title'\n | 'auto-patterns.fields.field_type_rich_content_title'\n | 'auto-patterns.fields.field_type_multi_document_title'\n | 'auto-patterns.fields.field_type_email_title'\n | 'auto-patterns.fields.email_input_error'\n | 'CMS.richTextEditor.toolbar.button.link.cancel'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h1.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h1.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h2.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h2.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h3.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h3.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h4.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h4.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h5.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h5.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h6.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h6.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.p1.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.p1.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.p2.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.p2.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.p3.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.p3.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.button.info'\n | 'CMS.richTextEditor.toolbar.headerDropdown.button.info.link'\n | 'CMS.richTextEditor.toolbar.headerDropdown.help.text'\n | 'CMS.richTextEditor.toolbar.button.tooltip.align'\n | 'CMS.richTextEditor.toolbar.button.tooltip.bold'\n | 'CMS.richTextEditor.toolbar.button.tooltip.clear-formation'\n | 'CMS.richTextEditor.toolbar.button.tooltip.full-screen.exit'\n | 'CMS.richTextEditor.toolbar.button.tooltip.full-screen'\n | 'CMS.richTextEditor.toolbar.header'\n | 'CMS.richTextEditor.toolbar.button.tooltip.italic'\n | 'CMS.richTextEditor.toolbar.button.link'\n | 'CMS.richTextEditor.toolbar.button.tooltip.ol'\n | 'CMS.richTextEditor.toolbar.button.tooltip.ul'\n | 'CMS.richTextEditor.toolbar.button.tooltip.underline'\n | 'CMS.richTextEditor.toolbar.button.link.paste.url.title'\n | 'CMS.richTextEditor.toolbar.button.link.paste.url.placeholder'\n | 'CMS.richTextEditor.toolbar.button.link.save'\n | 'CMS.richContentCommon.publishLoader'\n | 'auto-patterns.fields.field_type_audio_title'\n | 'CMS.audio.button.add'\n | 'CMS.audio.button.replace'\n | 'CMS.audio.button.download'\n | 'CMS.audio.button.delete'\n | 'CMS.mediaGallery.addGallery'\n | 'CMS.mediaGallery.emptyHint'\n | 'CMS.mediaGallery.manageGallery'\n | 'CMS.mediaGallery.preview'\n | 'CMS.mediaGallery.clear'\n | 'CMS.mediaGallery.addMedia'\n | 'CMS.mediaGallery.replaceItem'\n | 'CMS.mediaGallery.preview.replace'\n | 'CMS.mediaGallery.preview.download'\n | 'CMS.mediaGallery.preview.delete'\n | 'CMS.mediaGallery.preview.previousItem'\n | 'CMS.mediaGallery.preview.nextItem'\n | 'CMS.mediaGallery.noItems.title'\n | 'CMS.mediaGallery.noItems.subtitle'\n | 'CMS.mediaGallery.noItems.addMedia'\n | 'CMS.mediaGallery.addLink.titleImage'\n | 'CMS.mediaGallery.addLink.titleVideo'\n | 'CMS.mediaGallery.addLink.subtitleImage'\n | 'CMS.mediaGallery.addLink.subtitleVideo'\n | 'CMS.mediaGallery.addLink.urlLabel'\n | 'CMS.mediaGallery.addLink.invalidUrl'\n | 'CMS.mediaGallery.addLink.targetLabel'\n | 'CMS.mediaGallery.addLink.newTab'\n | 'CMS.mediaGallery.addLink.currentTab'\n | 'CMS.mediaGallery.addLink.save'\n | 'CMS.mediaGallery.addLink.cancel'\n | 'CMS.mediaGallery.dialog.emptySearchResultsTitle'\n | 'CMS.mediaGallery.dialog.emptySearchResultsSubtitle'\n | 'CMS.mediaGallery.dialog.modalDone'\n | 'CMS.mediaGallery.dialog.modalDoneEmpty'\n | 'CMS.mediaGallery.dialog.modalTitle'\n | 'CMS.mediaGallery.dialog.selectionSelectAll'\n | 'CMS.mediaGallery.dialog.selectionDeselectAll'\n | 'CMS.mediaGallery.dialog.selectionDelete'\n | 'CMS.mediaGallery.dialog.sortLabel'\n | 'CMS.mediaGallery.dialog.sortByTitleAsc'\n | 'CMS.mediaGallery.dialog.sortByTitleDesc'\n | 'CMS.mediaGallery.dialog.sortByFilenameAsc'\n | 'CMS.mediaGallery.dialog.sortByFilenameDesc'\n | 'CMS.mediaGallery.dialog.searchPlaceholder'\n | 'CMS.mediaGallery.dialog.settingsTitle'\n | 'CMS.mediaGallery.dialog.settingsNewItemsDirectionLabel'\n | 'CMS.mediaGallery.dialog.settingsNewItemsDirectionStart'\n | 'CMS.mediaGallery.dialog.settingsNewItemsDirectionEnd'\n | 'CMS.mediaGallery.dialog.settingsNewItemsTitleLabel'\n | 'CMS.mediaGallery.dialog.settingsNewItemsTitleEmpty'\n | 'CMS.mediaGallery.dialog.settingsNewItemsTitleFilename'\n | 'CMS.mediaGallery.dialog.itemTitleLabel'\n | 'CMS.mediaGallery.dialog.itemTitlePlaceholder'\n | 'CMS.mediaGallery.dialog.itemDescriptionLabel'\n | 'CMS.mediaGallery.dialog.itemDescriptionPlaceholder'\n | 'CMS.mediaGallery.dialog.itemAltLabel'\n | 'CMS.mediaGallery.dialog.itemAltTooltip'\n | 'CMS.mediaGallery.dialog.itemAltPlaceholder'\n | 'CMS.mediaGallery.dialog.itemDeleteTooltip'\n | 'CMS.mediaGallery.dialog.itemFocalPointTooltip'\n | 'CMS.mediaGallery.dialog.masonryLayoutTooltip'\n | 'CMS.mediaGallery.dialog.gridLayoutTooltip'\n | 'CMS.mediaGallery.dialog.externalLinkLabel'\n | 'CMS.mediaGallery.dialog.externalLinkButtonEdit'\n | 'CMS.mediaGallery.dialog.externalLinkButtonAdd'\n | 'CMS.mediaGallery.dialog.externalLinkTextPlaceholder'\n | 'CMS.document.delete.title'\n | 'CMS.document.delete.message'\n | 'auto-patterns.fields.type_mismatch_convert'\n | 'auto-patterns.fields.type_mismatch_tip'\n | 'CMS.mediaGallery.dialog.selectionSelected';\n\nexport type Translate = {\n (key: TranslationsKeys, params?: Record<string, string | number>): string;\n (key: 'CMS.document.delete.title', params: { filename: string }): string;\n (key: 'CMS.document.delete.message', params: { filename: string }): string;\n (\n key: 'auto-patterns.fields.type_mismatch_convert',\n params: { typeName: string },\n ): string;\n (\n key: 'auto-patterns.fields.type_mismatch_tip',\n params: { typeName: string },\n ): string;\n (\n key: 'CMS.mediaGallery.dialog.selectionSelected',\n params: { items: string },\n ): string;\n};\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/services/translations.ts"],"sourcesContent":["// DO NOT UPDATE THIS FILE! This file was auto-generated by generate-keys.ts\nexport type TranslationsKeys =\n | 'CMS.document.add.button.text'\n | 'CMS.document.addMore.button.text'\n | 'CMS.document.action.open'\n | 'CMS.document.action.download'\n | 'CMS.document.action.replace'\n | 'CMS.document.action.replaceWithUrl'\n | 'CMS.document.action.delete'\n | 'CMS.document.pasteUrl.button'\n | 'CMS.document.pasteUrl.title'\n | 'CMS.document.replaceWithUrl.title'\n | 'CMS.document.delete.confirm'\n | 'CMS.document.delete.cancel'\n | 'CMS.mediaControl.pasteUrl.button.save'\n | 'CMS.mediaControl.pasteUrl.button.cancel'\n | 'CMS.mediaControl.pasteUrl.placeholder.document'\n | 'CMS.mediaControl.pasteUrl.placeholder.image'\n | 'CMS.mediaControl.pasteUrl.error.document'\n | 'CMS.mediaControl.pasteUrl.error.image'\n | 'auto-patterns.filters.has_value'\n | 'auto-patterns.filters.no_value'\n | 'auto-patterns.fields.type_mismatch_convert_disabled'\n | 'auto-patterns.fields.type_mismatch_clear'\n | 'auto-patterns.fields.field_type_object_title'\n | 'auto-patterns.fields.field_type_array_title'\n | 'auto-patterns.fields.field_type_address_title'\n | 'auto-patterns.fields.field_type_time_title'\n | 'auto-patterns.time_input.placeholder'\n | 'auto-patterns.time_input.invalid_message'\n | 'auto-patterns.fields.no_results_found'\n | 'auto-patterns.fields.no_items'\n | 'auto-patterns.fields.select_placeholder'\n | 'auto-patterns.fields.field_type_address_placeholder'\n | 'auto-patterns.fields.field_type_rich_text_title'\n | 'auto-patterns.fields.field_type_rich_content_title'\n | 'auto-patterns.fields.field_type_multi_document_title'\n | 'auto-patterns.fields.field_type_email_title'\n | 'auto-patterns.fields.email_input_error'\n | 'CMS.richTextEditor.toolbar.button.link.cancel'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h1.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h1.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h2.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h2.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h3.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h3.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h4.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h4.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h5.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h5.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h6.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.h6.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.p1.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.p1.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.p2.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.p2.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.p3.subtitle'\n | 'CMS.richTextEditor.toolbar.headerDropdown.option.p3.title'\n | 'CMS.richTextEditor.toolbar.headerDropdown.button.info'\n | 'CMS.richTextEditor.toolbar.headerDropdown.button.info.link'\n | 'CMS.richTextEditor.toolbar.headerDropdown.help.text'\n | 'CMS.richTextEditor.toolbar.button.tooltip.align'\n | 'CMS.richTextEditor.toolbar.button.tooltip.bold'\n | 'CMS.richTextEditor.toolbar.button.tooltip.clear-formation'\n | 'CMS.richTextEditor.toolbar.button.tooltip.full-screen.exit'\n | 'CMS.richTextEditor.toolbar.button.tooltip.full-screen'\n | 'CMS.richTextEditor.toolbar.header'\n | 'CMS.richTextEditor.toolbar.button.tooltip.italic'\n | 'CMS.richTextEditor.toolbar.button.link'\n | 'CMS.richTextEditor.toolbar.button.tooltip.ol'\n | 'CMS.richTextEditor.toolbar.button.tooltip.ul'\n | 'CMS.richTextEditor.toolbar.button.tooltip.underline'\n | 'CMS.richTextEditor.toolbar.button.link.paste.url.title'\n | 'CMS.richTextEditor.toolbar.button.link.paste.url.placeholder'\n | 'CMS.richTextEditor.toolbar.button.link.save'\n | 'CMS.richContentCommon.publishLoader'\n | 'auto-patterns.fields.field_type_audio_title'\n | 'CMS.audio.button.add'\n | 'CMS.audio.button.replace'\n | 'CMS.audio.button.download'\n | 'CMS.audio.button.delete'\n | 'CMS.mediaGallery.addGallery'\n | 'CMS.mediaGallery.emptyHint'\n | 'CMS.mediaGallery.manageGallery'\n | 'CMS.mediaGallery.preview'\n | 'CMS.mediaGallery.clear'\n | 'CMS.mediaGallery.addMedia'\n | 'CMS.mediaGallery.replaceItem'\n | 'CMS.mediaGallery.preview.replace'\n | 'CMS.mediaGallery.preview.download'\n | 'CMS.mediaGallery.preview.delete'\n | 'CMS.mediaGallery.preview.previousItem'\n | 'CMS.mediaGallery.preview.nextItem'\n | 'CMS.mediaGallery.noItems.title'\n | 'CMS.mediaGallery.noItems.subtitle'\n | 'CMS.mediaGallery.noItems.addMedia'\n | 'CMS.mediaGallery.addLink.titleImage'\n | 'CMS.mediaGallery.addLink.titleVideo'\n | 'CMS.mediaGallery.addLink.subtitleImage'\n | 'CMS.mediaGallery.addLink.subtitleVideo'\n | 'CMS.mediaGallery.addLink.urlLabel'\n | 'CMS.mediaGallery.addLink.invalidUrl'\n | 'CMS.mediaGallery.addLink.targetLabel'\n | 'CMS.mediaGallery.addLink.newTab'\n | 'CMS.mediaGallery.addLink.currentTab'\n | 'CMS.mediaGallery.addLink.save'\n | 'CMS.mediaGallery.addLink.cancel'\n | 'CMS.mediaGallery.dialog.emptySearchResultsTitle'\n | 'CMS.mediaGallery.dialog.emptySearchResultsSubtitle'\n | 'CMS.mediaGallery.dialog.modalDone'\n | 'CMS.mediaGallery.dialog.modalDoneEmpty'\n | 'CMS.mediaGallery.dialog.modalTitle'\n | 'CMS.mediaGallery.dialog.selectionSelectAll'\n | 'CMS.mediaGallery.dialog.selectionDeselectAll'\n | 'CMS.mediaGallery.dialog.selectionDelete'\n | 'CMS.mediaGallery.dialog.sortLabel'\n | 'CMS.mediaGallery.dialog.sortByTitleAsc'\n | 'CMS.mediaGallery.dialog.sortByTitleDesc'\n | 'CMS.mediaGallery.dialog.sortByFilenameAsc'\n | 'CMS.mediaGallery.dialog.sortByFilenameDesc'\n | 'CMS.mediaGallery.dialog.searchPlaceholder'\n | 'CMS.mediaGallery.dialog.settingsTitle'\n | 'CMS.mediaGallery.dialog.settingsNewItemsDirectionLabel'\n | 'CMS.mediaGallery.dialog.settingsNewItemsDirectionStart'\n | 'CMS.mediaGallery.dialog.settingsNewItemsDirectionEnd'\n | 'CMS.mediaGallery.dialog.settingsNewItemsTitleLabel'\n | 'CMS.mediaGallery.dialog.settingsNewItemsTitleEmpty'\n | 'CMS.mediaGallery.dialog.settingsNewItemsTitleFilename'\n | 'CMS.mediaGallery.dialog.itemTitleLabel'\n | 'CMS.mediaGallery.dialog.itemTitlePlaceholder'\n | 'CMS.mediaGallery.dialog.itemDescriptionLabel'\n | 'CMS.mediaGallery.dialog.itemDescriptionPlaceholder'\n | 'CMS.mediaGallery.dialog.itemAltLabel'\n | 'CMS.mediaGallery.dialog.itemAltTooltip'\n | 'CMS.mediaGallery.dialog.itemAltPlaceholder'\n | 'CMS.mediaGallery.dialog.itemDeleteTooltip'\n | 'CMS.mediaGallery.dialog.itemFocalPointTooltip'\n | 'CMS.mediaGallery.dialog.masonryLayoutTooltip'\n | 'CMS.mediaGallery.dialog.gridLayoutTooltip'\n | 'CMS.mediaGallery.dialog.externalLinkLabel'\n | 'CMS.mediaGallery.dialog.externalLinkButtonEdit'\n | 'CMS.mediaGallery.dialog.externalLinkButtonAdd'\n | 'CMS.mediaGallery.dialog.externalLinkTextPlaceholder'\n | 'CMS.document.delete.title'\n | 'CMS.document.delete.message'\n | 'auto-patterns.fields.type_mismatch_convert'\n | 'auto-patterns.fields.type_mismatch_tip'\n | 'CMS.mediaGallery.dialog.selectionSelected';\n\nexport type Translate = {\n (key: TranslationsKeys, params?: Record<string, string | number>): string;\n (key: 'CMS.document.delete.title', params: { filename: string }): string;\n (key: 'CMS.document.delete.message', params: { filename: string }): string;\n (\n key: 'auto-patterns.fields.type_mismatch_convert',\n params: { typeName: string },\n ): string;\n (\n key: 'auto-patterns.fields.type_mismatch_tip',\n params: { typeName: string },\n ): string;\n (\n key: 'CMS.mediaGallery.dialog.selectionSelected',\n params: { items: string },\n ): string;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.addressinput2318145384__tableAddressInput{height:36px!important;margin-left:-1px;display:flex!important;align-items:center;width:100%}.addressinput2318145384__tableAddressInput>div{padding:0!important;width:100%}.addressinput2318145384__tableAddressInput:focus-within{margin-left:2px}.actionsmenu4127278817__action{margin-left:calc(var(--wds-space-100, 6px)*-1)}.formaudiofield3167007424__addItem{height:120px!important;box-sizing:border-box}.formaudiofield3167007424__addItem:focus-within{box-shadow:var(--wds-input-shadow-focus-standard, 0 0 0 3px var(--wds-color-blue-300, var(--wsr-color-B30)));border-radius:var(--wds-border-radius-400, 8px)}.formaudiofield3167007424__addItem.formaudiofield3167007424--disabled{pointer-events:auto!important}.formaudiofield3167007424__addItem.formaudiofield3167007424--error{border:1px solid var(--wds-color-red-100, var(--wsr-color-R10))!important}.formaudiofield3167007424__mediaTitle{line-height:18px!important}.audioplayer3285355404__root{width:fit-content;z-index:1000;position:fixed!important;bottom:42px;right:48px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.colorview4238697284__view{width:100%}.colorview4238697284__fillPreview{flex-shrink:0}.colorview4238697284__view .colorview4238697284__fillPreview{width:18px;height:18px;min-width:18px!important;min-height:18px!important}.deletedialog2489656603__layout{max-width:510px!important}.formdocumentfield2104802659__viewWrapper{border-radius:var(--wds-border-radius-300, calc(2px * 3));border:1px solid var(--wds-color-blue-300, var(--wsr-color-B30))}.formdocumentfield2104802659__viewWrapper:hover{background:var(--wds-color-blue-500, var(--wsr-color-B50));cursor:pointer}.formdocumentfield2104802659__textWidth{max-width:calc(100% - 196px)}.formdocumentfield2104802659__documentLoader{padding-top:21px;padding-bottom:21px}.formdocumentfield2104802659__addDocument{padding-top:17px!important;padding-bottom:17px!important}.formdocumentfield2104802659__addDocument.formdocumentfield2104802659--error{border:1px solid var(--wds-color-red-100, var(--wsr-color-R10))!important}.formdocumentfield2104802659__addItemWrapper:focus-within{box-shadow:var(--wds-input-shadow-focus-standard, 0 0 0 3px var(--wds-color-blue-300, var(--wsr-color-B30)));border-radius:var(--wds-border-radius-400, calc(2px * 4))}.exclamation2572614214__exclamation{display:flex;justify-content:center;align-items:center;box-sizing:border-box;border-radius:3px;cursor:pointer}.exclamation2572614214__exclamation.exclamation2572614214---type-7-warning:not(.exclamation2572614214--customSize),.exclamation2572614214__exclamation.exclamation2572614214---type-5-error:not(.exclamation2572614214--customSize){width:24px;height:24px}.exclamation2572614214__exclamation.exclamation2572614214---type-7-warning svg{color:var(--wds-color-fill-warning-primary)}.exclamation2572614214__exclamation.exclamation2572614214---type-5-error svg{color:var(--wds-color-fill-destructive-primary)}.exclamation2572614214__actions{margin-top:20px;display:flex;flex-direction:column}.exclamation2572614214__action{white-space:normal!important;height:auto!important;text-align:left;gap:6px}.exclamation2572614214__action+.exclamation2572614214__action{margin-top:6px}.exclamation2572614214__action.exclamation2572614214--accented{color:var(--wds-color-blue-100)}.exclamation2572614214__action.exclamation2572614214--accented:hover{color:var(--wds-color-blue-200)}.highlightedtext3269337011__root.highlightedtext3269337011--highlightedBackground{animation:highlightedtext3269337011__highlighted 150ms ease-out 1 forwards}.highlightedtext3269337011__substring.highlightedtext3269337011--isHighlighted{animation:highlightedtext3269337011__highlighted-match 150ms ease-out 50ms 1 forwards}@keyframes highlightedtext3269337011__highlighted{0%{background-color:transparent}to{background-color:var(--wds-color-yellow-400, var(--wsr-color-Y40))}}@keyframes highlightedtext3269337011__highlighted-match{0%{background-color:transparent}to{background-color:var(--wds-color-yellow-200, var(--wsr-color-Y20))}}.pasteurlbutton680970126__root{margin-top:6px}.pasteurlbutton680970126__iconButtonTooltip{height:max-content}.pasteurlbutton680970126__iconButton{width:24px;height:24px}.formmediagalleryfield3396321146__container{display:flex;min-height:128px;max-height:259px}.formmediagalleryfield3396321146__viewBox{display:flex;height:100%;width:100%;flex-wrap:wrap}.formmediagalleryfield3396321146__addItemWrapper{height:128px;width:100%;box-sizing:border-box}.formmediagalleryfield3396321146__addItem{box-sizing:border-box}.formmediagalleryfield3396321146__overlay{width:initial!important;min-width:382px!important}.formmediagalleryfield3396321146__image.formmediagalleryfield3396321146--withMarginRight{margin-right:3px}.formmediagalleryfield3396321146__image.formmediagalleryfield3396321146--withMarginTop{margin-top:3px}.formmediagalleryfield3396321146__previewImage{max-height:calc(100% - 12px)!important}.formmediagalleryfield3396321146__previewVideo{border-radius:8px;max-width:100%;max-height:calc(100% - 12px)!important}.mediaimage1693184816__root{display:flex;align-items:center;flex-shrink:0;position:relative;box-sizing:border-box}.mediaimage1693184816__root.mediaimage1693184816--error{--mediaimage1693184816-from:calc(50% - 0.5px);--mediaimage1693184816-to:calc(50% + 0.5px);background-image:linear-gradient(to bottom right,transparent var(--mediaimage1693184816-from),var(--wds-color-red-200, var(--wsr-color-R20)) var(--mediaimage1693184816-from),var(--wds-color-red-200, var(--wsr-color-R20)) var(--mediaimage1693184816-to),transparent var(--mediaimage1693184816-to))}.mediaimage1693184816__root.mediaimage1693184816--error>*{opacity:0}.medialoader3720392081__loader{border-radius:6px}.medialoader3720392081__loader.medialoader3720392081--isDashed{border:dashed 1px var(--wds-color-blue-300, var(--wsr-color-B30))}.medialoader3720392081__loader.medialoader3720392081--isSolid{border:solid 1px var(--wds-color-blue-300, var(--wsr-color-B30))}.mediatag4101533748__root{box-sizing:border-box;padding:3px 6px 3px 3px;border-radius:3px;max-height:24px;min-width:54px;max-width:100%;background-color:var(--wds-color-blue-400, var(--wsr-color-B40))}.formmultidocument629546005__viewRoot{border-radius:var(--wds-border-radius-300, calc(2px * 3));border:1px solid var(--wds-color-blue-300, var(--wsr-color-B30))}.formmultidocument629546005__singleViewWrapper{border-radius:0;border-bottom:1px solid var(--wds-color-neutral-600, var(--wsr-color-D60));background-color:transparent!important}.formmultidocument629546005__viewRoot>div:first-child .formmultidocument629546005__singleViewWrapper{border-top-left-radius:var(--wds-border-radius-300, calc(2px * 3));border-top-right-radius:var(--wds-border-radius-300, calc(2px * 3))}.formmultidocument629546005__singleViewWrapper:hover{background-color:var(--wds-color-blue-500, var(--wsr-color-B50))!important}.formmultidocument629546005__singleViewWrapper:focus-visible{border-bottom:1px solid transparent;position:relative;z-index:1}.formmultidocument629546005__addDocumentButton{border-bottom-left-radius:var(--wds-border-radius-300, calc(2px * 3));border-bottom-right-radius:var(--wds-border-radius-300, calc(2px * 3))}.formmultidocument629546005__addDocumentButton:focus-within{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--wds-border-radius-300, calc(2px * 3));border-bottom-right-radius:var(--wds-border-radius-300, calc(2px * 3))}.richcontentdefaultvalueinput2286555694__richContentEditorContainer .richcontentdefaultvalueinput2286555694__editor{max-height:calc(40vh - var(--richcontentdefaultvalueinput2286555694-topToolbarHeight) - var(--richcontentdefaultvalueinput2286555694-bottomToolbarHeight))}.richcontentforminput3300181656__root{outline:0;box-sizing:border-box;border:1px solid var(--wds-color-blue-300);border-radius:var(--wds-border-radius-300)}.richcontentforminput3300181656__root:focus-within{border:1px solid var(--wds-color-blue-100);box-shadow:var(--wds-input-shadow-focus-standard)}.richcontentforminput3300181656__root .richcontentforminput3300181656__editor{overflow-y:auto;max-height:calc(80vh - var(--richcontentforminput3300181656-topToolbarHeight) - var(--richcontentforminput3300181656-bottomToolbarHeight))}.richcontentformreadonlyinput342606768__root{outline:0;box-sizing:border-box;border:1px solid var(--wds-color-black-600);border-radius:var(--wds-border-radius-300)}.richcontentformreadonlyinput342606768__root:focus-within{border:1px solid var(--wds-color-blue-100);box-shadow:var(--wds-input-shadow-focus-standard)}.fullscreenmodal1813716381__modalContent{display:flex;position:relative;height:100%;width:782px;background-color:var(--wds-color-white);border-radius:var(--wds-border-radius-300);margin-top:24px}.publishloader4272413996__publishLoader{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--wds-color-white);z-index:5000;border-radius:inherit}.togglefullscreenbutton3159249764__root{z-index:5;box-sizing:border-box;position:absolute;right:0;top:calc(50% - 16px)!important;padding-right:3px}.togglefullscreenbutton3159249764__root button{border-radius:6px!important}.richcontenteditor2770941394__root{position:relative}.richcontenteditor2770941394__root,.richcontenteditor2770941394__toolbarContainer,.richcontenteditor2770941394__footerToolbarContainer{width:100%;box-sizing:border-box}.richcontenteditor2770941394__toolbarContainer div{box-sizing:border-box}.richcontenteditor2770941394__toolbarAndFullScreenButtonWrapper{display:flex;position:relative}.richcontenteditor2770941394__editor{box-sizing:border-box;padding:36px 24px 36px 55px}.richcontenteditor2770941394__modalEditor .richcontenteditor2770941394__editor{overflow-y:auto;min-height:calc(100% - var(--richcontenteditor2770941394-topToolbarHeight) - var(--richcontenteditor2770941394-bottomToolbarHeight));max-height:calc(100% - var(--richcontenteditor2770941394-topToolbarHeight) - var(--richcontenteditor2770941394-bottomToolbarHeight));min-width:592px;box-sizing:border-box}.richcontenteditor2770941394__modalEditor .richcontenteditor2770941394__footerToolbarContainer{margin-top:9px}.richcontenteditor2770941394__toolbarContainer button[data-hook~=text-button-headings]>span{display:inline-flex;padding-inline-end:3px!important}.richcontenteditor2770941394__toolbarContainer button[data-hook~=text-button-ai]>span{padding-inline-end:9px!important}.richcontenttoolbar2463177924__toolbar{border-top:1px solid rgba(51,51,51,.1);z-index:2;margin-right:auto;padding-left:6px;margin-left:auto;position:relative;height:40px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box}.richcontenttoolbar2463177924__toolbarButton{line-height:40px;background:0 0;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;margin:0 5px 0 0}.richcontenttoolbar2463177924__toolbarButton:disabled{color:graytext}.richcontenttoolbar2463177924__toolbar label{padding:0 8px}.richcontentviewer3036903153__root{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:36px}.richcontentviewer3036903153__root.richcontentviewer3036903153--isFullScreen{padding:12px 24px}.richcontentviewer3036903153__root:not(.richcontentviewer3036903153--isFullScreen){padding:6px 24px 6px 12px}.richcontentviewer3036903153__root ToggleButton{margin:0;padding:0;border:0;position:absolute;top:2px!important;right:2px;width:30px;height:30px}.richcontentviewer3036903153__viewer{height:calc(100% - 36px);width:100%}.richcontentviewer3036903153__modalViewer{min-width:592px;overflow:auto}.richtexteditor2894815764__root{width:100%;box-sizing:border-box;outline:0;overflow:hidden;border-radius:var(--wds-border-radius-300)}.richtexteditor2894815764__root.richtexteditor2894815764---border-4-none{border:0}.richtexteditor2894815764__root.richtexteditor2894815764---border-8-standard{border:1px solid var(--wds-color-blue-300)}.richtexteditor2894815764__root.richtexteditor2894815764---border-8-standard:focus,.richtexteditor2894815764__root.richtexteditor2894815764---border-8-standard:focus-within{border:1px solid var(--wds-color-blue-100);box-shadow:var(--wds-input-shadow-focus-standard)}.richtexteditor2894815764__root.richtexteditor2894815764---border-8-standard.richtexteditor2894815764---status-5-error{border:1px solid var(--wds-color-red-100)}.richtexteditor2894815764__root.richtexteditor2894815764---border-8-standard.richtexteditor2894815764---status-5-error:focus,.richtexteditor2894815764__root.richtexteditor2894815764---border-8-standard.richtexteditor2894815764---status-5-error:focus-within{border:1px solid var(--wds-color-red-100);box-shadow:0 0 0 3px var(--wds-color-red-300)}.richtexteditor2894815764__root.richtexteditor2894815764---border-8-standard.richtexteditor2894815764---status-7-warning{border:1px solid var(--wds-color-yellow-100)}.richtexteditor2894815764__root.richtexteditor2894815764---border-8-standard.richtexteditor2894815764---status-7-warning:focus,.richtexteditor2894815764__root.richtexteditor2894815764---border-8-standard.richtexteditor2894815764---status-7-warning:focus-within{border:1px solid var(--wds-color-yellow-100);box-shadow:0 0 0 3px var(--wds-color-yellow-300)}.richtexteditor2894815764__nativeInput{position:absolute;opacity:0;padding:0;margin:0;border:0;width:0;height:0}.richtexteditor2894815764__editor{height:auto;line-height:auto;display:flex;width:100%;height:100%;min-height:234px;overflow:hidden;box-sizing:border-box;flex-direction:row;border-radius:var(--wds-border-radius-300)}.richtexteditor2894815764__editor.richtexteditor2894815764--isFullScreen{max-width:782px;min-width:582px;background:var(--wds-color-black-700)}.richtexteditor2894815764__editor:not(.richtexteditor2894815764--isFullScreen){max-height:80vh}.richtexteditor2894815764__editor>div{flex:1;max-width:100%}.toolbar1545081041__root{padding:12px 18px;display:flex;border-bottom:1px solid var(--wds-color-blue-400);background:var(--wds-color-white);align-items:center}.toolbar1545081041__item{display:flex;margin-right:12px}.toolbar1545081041__item svg,.toolbar1545081041__item svg path,.toolbar1545081041__item svg text{color:inherit;fill:currentColor}.toolbar1545081041__separator{display:inline-flex;margin-right:12px;border-left:1px solid #ddd;height:100%}.toolbar1545081041__clearFormatting{margin-left:auto}.toolbar1545081041__fullScreen{margin-right:0}.toolbar1545081041__dropdownItemContent{height:36px;width:100%;display:flex;gap:12px;justify-content:space-between;align-items:center}.toolbar1545081041__dropdownItemContent.toolbar1545081041--selected .toolbar1545081041__dropdownItemTitle,.toolbar1545081041__dropdownItemContent.toolbar1545081041--selected .toolbar1545081041__dropdownItemSubtitle{color:var(--wds-color-white)!important}.toolbar1545081041__dropdownItemSubtitle{color:var(--wds-color-black-400)!important;padding-right:12px;flex-shrink:0}.toolbar1545081041__dropdownHeaderOne{font-weight:var(--wds-font-weight-bold)!important;font-size:36px!important;line-height:1.2!important;font-family:var(--wds-font-family-default)!important}.toolbar1545081041__dropdownHeaderTwo{font-weight:var(--wds-font-weight-bold)!important;font-size:32px!important;line-height:1.2!important;font-family:var(--wds-font-family-default)!important}.toolbar1545081041__dropdownHeaderThree{font-weight:var(--wds-font-weight-medium)!important;font-size:28px!important;line-height:1.2!important;font-family:var(--wds-font-family-default)!important}.toolbar1545081041__dropdownHeaderFour{font-weight:var(--wds-font-weight-bold)!important;font-size:24px!important;line-height:1.2!important;font-family:var(--wds-font-family-default)!important}.toolbar1545081041__dropdownHeaderFive{font-weight:var(--wds-font-weight-bold)!important;font-size:22px!important;line-height:1.2!important;font-family:var(--wds-font-family-default)!important}.toolbar1545081041__dropdownHeaderSix{font-weight:var(--wds-font-weight-medium)!important;font-size:20px!important;line-height:1.2!important;font-family:var(--wds-font-family-default)!important}.toolbar1545081041__dropdownParagraphOne{font-weight:var(--wds-font-weight-medium)!important;font-size:18px!important;line-height:1.33!important;font-family:var(--wds-font-family-default)!important}.toolbar1545081041__dropdownNormalText{font-weight:var(--wds-font-weight-medium)!important;font-size:var(--wds-font-size-500)!important;line-height:var(--wds-font-line-height-300)!important;font-family:var(--wds-font-family-default)!important}.toolbar1545081041__dropdownParagraphThree{font-weight:var(--wds-font-weight-medium)!important;font-size:14px!important;line-height:1.29!important;font-family:var(--wds-font-family-default)!important}.textview2984609354__textView::after{content:"";display:block}.richeditor2564386792__root{display:flex;flex-direction:column;font-weight:var(--wds-font-weight-medium);font-size:var(--wds-font-size-500);line-height:var(--wds-font-line-height-300);font-family:var(--wds-font-family-default)}.richeditor2564386792__editor{box-sizing:border-box;overflow:auto;display:flex;flex-direction:column;flex:1;cursor:text;color:var(--wds-color-black-100);background:var(--wds-color-black-700)}.richeditor2564386792__editor .DraftEditor-root{width:100%;height:100%}.richeditor2564386792__editor .DraftEditor-root [data-contents]{overflow:auto}.richeditor2564386792__editor .DraftEditor-editorContainer{display:flex;min-height:100%;background:#fff}.richeditor2564386792__editor .public-DraftEditor-content{padding:12px 24px 24px;min-height:100%;width:100%;box-sizing:border-box}.richeditor2564386792__editor .public-DraftEditor-content ol,.richeditor2564386792__editor .public-DraftEditor-content ul{display:flex;flex-direction:column;padding:0}.richeditor2564386792__editor .public-DraftEditor-content a,.richeditor2564386792__editor .public-DraftEditor-content a:visited{color:inherit;text-decoration:none}.richeditor2564386792__header-one:not(li),.richeditor2564386792__header-two:not(li),.richeditor2564386792__header-three:not(li),.richeditor2564386792__header-four:not(li),.richeditor2564386792__header-five:not(li),.richeditor2564386792__header-six:not(li){margin-block:0;margin:0}.richeditor2564386792__header-one,.richeditor2564386792__editor li.richeditor2564386792__header-one .public-DraftStyleDefault-block{font:var(--rt-h1-fontStyle, normal) var(--rt-h1-fontWeight, var(--wds-font-weight-bold)) var(--rt-h1-fontSize, 72px)/var(--rt-h1-lineHeight, 1.33) var(--rt-h1-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__header-two,.richeditor2564386792__editor li.richeditor2564386792__header-two .public-DraftStyleDefault-block{font:var(--rt-h2-fontStyle, normal) var(--rt-h2-fontWeight, var(--wds-font-weight-bold)) var(--rt-h2-fontSize, 42px)/var(--rt-h2-lineHeight, 1.2) var(--rt-h2-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__header-three,.richeditor2564386792__editor li.richeditor2564386792__header-three .public-DraftStyleDefault-block{font:var(--rt-h3-fontStyle, normal) var(--rt-h3-fontWeight, var(--wds-font-weight-medium)) var(--rt-h3-fontSize, 38px)/var(--rt-h3-lineHeight, 1.2) var(--rt-h3-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__header-four,.richeditor2564386792__editor li.richeditor2564386792__header-four .public-DraftStyleDefault-block{font:var(--rt-h4-fontStyle, normal) var(--rt-h4-fontWeight, var(--wds-font-weight-bold)) var(--rt-h4-fontSize, 34px)/var(--rt-h4-lineHeight, 1.2) var(--rt-h4-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__header-five,.richeditor2564386792__editor li.richeditor2564386792__header-five .public-DraftStyleDefault-block{font:var(--rt-h5-fontStyle, normal) var(--rt-h5-fontWeight, var(--wds-font-weight-bold)) var(--rt-h5-fontSize, 28px)/var(--rt-h5-lineHeight, 1.2) var(--rt-h5-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__header-six,.richeditor2564386792__editor li.richeditor2564386792__header-six .public-DraftStyleDefault-block{font:var(--rt-h6-fontStyle, normal) var(--rt-h6-fontWeight, var(--wds-font-weight-medium)) var(--rt-h6-fontSize, 22px)/var(--rt-h6-lineHeight, 1.2) var(--rt-h6-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__paragraph-one,.richeditor2564386792__editor li.richeditor2564386792__paragraph-one .public-DraftStyleDefault-block{font:var(--rt-p1-fontStyle, normal) var(--rt-p1-fontWeight, var(--wds-font-weight-medium)) var(--rt-p1-fontSize, 18px)/var(--rt-p1-lineHeight, 24px) var(--rt-p1-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__unstyled,.richeditor2564386792__editor li.richeditor2564386792__unstyled .public-DraftStyleDefault-block{font:var(--rt-unstyled-fontStyle, normal) var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium)) var(--rt-unstyled-fontSize, 16px)/var(--rt-unstyled-lineHeight, 24px) var(--rt-unstyled-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__paragraph-three,.richeditor2564386792__editor li.richeditor2564386792__paragraph-three .public-DraftStyleDefault-block{font:var(--rt-p3-fontStyle, normal) var(--rt-p3-fontWeight, var(--wds-font-weight-medium)) var(--rt-p3-fontSize, 14px)/var(--rt-p3-lineHeight, 18px) var(--rt-p3-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__editor li.richeditor2564386792__header-one:first-child~li{font:var(--rt-h1-fontStyle, normal) var(--rt-h1-fontWeight, var(--wds-font-weight-bold)) var(--rt-h1-fontSize, 72px)/var(--rt-h1-lineHeight, 1.33) var(--rt-h1-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__editor li.richeditor2564386792__header-one:first-child~li::marker{line-height:var(--rt-h1-fontSize, 72px)}.richeditor2564386792__editor li.richeditor2564386792__header-two:first-child~li{font:var(--rt-h2-fontStyle, normal) var(--rt-h2-fontWeight, var(--wds-font-weight-bold)) var(--rt-h2-fontSize, 42px)/var(--rt-h2-lineHeight, 1.2) var(--rt-h2-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__editor li.richeditor2564386792__header-two:first-child~li::marker{line-height:var(--rt-h2-fontSize, 42px)}.richeditor2564386792__editor li.richeditor2564386792__header-three:first-child~li{font:var(--rt-h3-fontStyle, normal) var(--rt-h3-fontWeight, var(--wds-font-weight-medium)) var(--rt-h3-fontSize, 38px)/var(--rt-h3-lineHeight, 1.2) var(--rt-h3-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__editor li.richeditor2564386792__header-three:first-child~li::marker{line-height:var(--rt-h3-fontSize, 38px)}.richeditor2564386792__editor li.richeditor2564386792__header-four:first-child~li{font:var(--rt-h4-fontStyle, normal) var(--rt-h4-fontWeight, var(--wds-font-weight-bold)) var(--rt-h4-fontSize, 34px)/var(--rt-h4-lineHeight, 1.2) var(--rt-h4-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__editor li.richeditor2564386792__header-four:first-child~li::marker{line-height:var(--rt-h4-fontSize, 34px)}.richeditor2564386792__editor li.richeditor2564386792__header-five:first-child~li{font:var(--rt-h5-fontStyle, normal) var(--rt-h5-fontWeight, var(--wds-font-weight-bold)) var(--rt-h5-fontSize, 28px)/var(--rt-h5-lineHeight, 1.2) var(--rt-h5-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__editor li.richeditor2564386792__header-five:first-child~li::marker{line-height:var(--rt-h5-fontSize, 28px)}.richeditor2564386792__editor li.richeditor2564386792__header-six:first-child~li{font:var(--rt-h6-fontStyle, normal) var(--rt-h6-fontWeight, var(--wds-font-weight-medium)) var(--rt-h6-fontSize, 22px)/var(--rt-h6-lineHeight, 1.2) var(--rt-h6-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__editor li.richeditor2564386792__header-six:first-child~li::marker{line-height:var(--rt-h6-fontSize, 22px)}.richeditor2564386792__editor li.richeditor2564386792__paragraph-one:first-child~li{font:var(--rt-p1-fontStyle, normal) var(--rt-p1-fontWeight, var(--wds-font-weight-medium)) var(--rt-p1-fontSize, 18px)/var(--rt-p1-lineHeight, 24px) var(--rt-p1-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__editor li.richeditor2564386792__unstyled:first-child~li{font:var(--rt-unstyled-fontStyle, normal) var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium)) var(--rt-unstyled-fontSize, 16px)/var(--rt-unstyled-lineHeight, 24px) var(--rt-unstyled-fontFamily, var(--wds-font-family-default))}.richeditor2564386792__editor li.richeditor2564386792__paragraph-three:first-child~li{font:var(--rt-p3-fontStyle, normal) var(--rt-p3-fontWeight, var(--wds-font-weight-medium)) var(--rt-p3-fontSize, 14px)/var(--rt-p3-lineHeight, 18px) var(--rt-p3-fontFamily, var(--wds-font-family-default))}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth0{margin-inline-start:2ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth1{margin-inline-start:4ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth2{margin-inline-start:6ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth3{margin-inline-start:8ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth4{margin-inline-start:10ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth0:first-child{margin-inline-start:2ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0{margin-inline-start:2ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0:nth-child(n+10){margin-inline-start:3ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0:nth-child(n+100){margin-inline-start:4ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0:nth-child(n+1000){margin-inline-start:5ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth1:first-child{margin-inline-start:4ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1{margin-inline-start:4ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1:nth-child(n+10){margin-inline-start:5ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1:nth-child(n+100){margin-inline-start:6ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1:nth-child(n+1000){margin-inline-start:7ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth2:first-child{margin-inline-start:6ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2{margin-inline-start:6ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2:nth-child(n+10){margin-inline-start:7ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2:nth-child(n+100){margin-inline-start:8ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2:nth-child(n+1000){margin-inline-start:9ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth3:first-child{margin-inline-start:8ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3{margin-inline-start:8ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3:nth-child(n+10){margin-inline-start:9ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3:nth-child(n+100){margin-inline-start:10ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3:nth-child(n+1000){margin-inline-start:11ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth4:first-child{margin-inline-start:10ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4{margin-inline-start:10ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4:nth-child(n+10){margin-inline-start:11ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4:nth-child(n+100){margin-inline-start:12ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4:nth-child(n+1000){margin-inline-start:13ch}.richeditor2564386792__align-left{text-align:left;align-self:flex-start}.richeditor2564386792__align-right{text-align:right;align-self:flex-end}.richeditor2564386792__align-center{text-align:center;align-self:center}.richeditor2564386792__align-justify{text-align:justify;align-self:stretch}.richeditor2564386792__withMargin{display:inline-block}.richeditor2564386792__dir-rtl,.richeditor2564386792__editor .public-DraftStyleDefault-rtl{direction:rtl}.richeditor2564386792__editor .public-DraftStyleDefault-listRTL{direction:rtl;text-align:right;max-width:100%}
|
|
1
|
+
.addressinput1401564759__tableAddressInput{height:36px!important;margin-left:-1px;display:flex!important;align-items:center;width:100%}.addressinput1401564759__tableAddressInput>div{padding:0!important;width:100%}.addressinput1401564759__tableAddressInput:focus-within{margin-left:2px}.actionsmenu1915560084__action{margin-left:calc(var(--wds-space-100, 6px)*-1)}.formaudiofield925238266__addItem{height:120px!important;box-sizing:border-box}.formaudiofield925238266__addItem:focus-within{box-shadow:var(--wds-input-shadow-focus-standard, 0 0 0 3px var(--wds-color-blue-300, var(--wsr-color-B30)));border-radius:var(--wds-border-radius-400, 8px)}.formaudiofield925238266__addItem.formaudiofield925238266--disabled{pointer-events:auto!important}.formaudiofield925238266__addItem.formaudiofield925238266--error{border:1px solid var(--wds-color-red-100, var(--wsr-color-R10))!important}.formaudiofield925238266__mediaTitle{line-height:18px!important}.audioplayer3633182906__root{width:fit-content;z-index:1000;position:fixed!important;bottom:42px;right:48px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.colorview609827872__view{width:100%}.colorview609827872__fillPreview{flex-shrink:0}.colorview609827872__view .colorview609827872__fillPreview{width:18px;height:18px;min-width:18px!important;min-height:18px!important}.deletedialog4241109069__layout{max-width:510px!important}.formdocumentfield2311952233__viewWrapper{border-radius:var(--wds-border-radius-300, calc(2px * 3));border:1px solid var(--wds-color-blue-300, var(--wsr-color-B30))}.formdocumentfield2311952233__viewWrapper:hover{background:var(--wds-color-blue-500, var(--wsr-color-B50));cursor:pointer}.formdocumentfield2311952233__textWidth{max-width:calc(100% - 196px)}.formdocumentfield2311952233__documentLoader{padding-top:21px;padding-bottom:21px}.formdocumentfield2311952233__addDocument{padding-top:17px!important;padding-bottom:17px!important}.formdocumentfield2311952233__addDocument.formdocumentfield2311952233--error{border:1px solid var(--wds-color-red-100, var(--wsr-color-R10))!important}.formdocumentfield2311952233__addItemWrapper:focus-within{box-shadow:var(--wds-input-shadow-focus-standard, 0 0 0 3px var(--wds-color-blue-300, var(--wsr-color-B30)));border-radius:var(--wds-border-radius-400, calc(2px * 4))}.exclamation2430457607__exclamation{display:flex;justify-content:center;align-items:center;box-sizing:border-box;border-radius:3px;cursor:pointer}.exclamation2430457607__exclamation.exclamation2430457607---type-7-warning:not(.exclamation2430457607--customSize),.exclamation2430457607__exclamation.exclamation2430457607---type-5-error:not(.exclamation2430457607--customSize){width:24px;height:24px}.exclamation2430457607__exclamation.exclamation2430457607---type-7-warning{color:var(--wds-color-fill-warning-primary)}.exclamation2430457607__exclamation.exclamation2430457607---type-5-error{color:var(--wds-color-fill-destructive-primary)}.exclamation2430457607__actions{display:flex;flex-direction:column}.exclamation2430457607__action{white-space:normal!important;height:auto!important;text-align:left;gap:6px}.exclamation2430457607__action+.exclamation2430457607__action{margin-top:6px}.exclamation2430457607__action.exclamation2430457607--accented{color:var(--wds-color-blue-100)}.exclamation2430457607__action.exclamation2430457607--accented:hover{color:var(--wds-color-blue-200)}.highlightedtext3517253541__root.highlightedtext3517253541--highlightedBackground{animation:highlightedtext3517253541__highlighted 150ms ease-out 1 forwards}.highlightedtext3517253541__substring.highlightedtext3517253541--isHighlighted{animation:highlightedtext3517253541__highlighted-match 150ms ease-out 50ms 1 forwards}@keyframes highlightedtext3517253541__highlighted{0%{background-color:transparent}to{background-color:var(--wds-color-yellow-400, var(--wsr-color-Y40))}}@keyframes highlightedtext3517253541__highlighted-match{0%{background-color:transparent}to{background-color:var(--wds-color-yellow-200, var(--wsr-color-Y20))}}.pasteurlbutton862966435__root{margin-top:6px}.pasteurlbutton862966435__iconButtonTooltip{height:max-content}.pasteurlbutton862966435__iconButton{width:24px;height:24px}.formmediagalleryfield731448597__container{display:flex;min-height:128px;max-height:259px}.formmediagalleryfield731448597__viewBox{display:flex;height:100%;width:100%;flex-wrap:wrap}.formmediagalleryfield731448597__addItemWrapper{height:128px;width:100%;box-sizing:border-box}.formmediagalleryfield731448597__addItem{box-sizing:border-box}.formmediagalleryfield731448597__overlay{width:initial!important;min-width:382px!important}.formmediagalleryfield731448597__image.formmediagalleryfield731448597--withMarginRight{margin-right:3px}.formmediagalleryfield731448597__image.formmediagalleryfield731448597--withMarginTop{margin-top:3px}.formmediagalleryfield731448597__previewImage{max-height:calc(100% - 12px)!important}.formmediagalleryfield731448597__previewVideo{border-radius:8px;max-width:100%;max-height:calc(100% - 12px)!important}.mediaimage3908295999__root{display:flex;align-items:center;flex-shrink:0;position:relative;box-sizing:border-box}.mediaimage3908295999__root.mediaimage3908295999--error{--mediaimage3908295999-from:calc(50% - 0.5px);--mediaimage3908295999-to:calc(50% + 0.5px);background-image:linear-gradient(to bottom right,transparent var(--mediaimage3908295999-from),var(--wds-color-red-200, var(--wsr-color-R20)) var(--mediaimage3908295999-from),var(--wds-color-red-200, var(--wsr-color-R20)) var(--mediaimage3908295999-to),transparent var(--mediaimage3908295999-to))}.mediaimage3908295999__root.mediaimage3908295999--error>*{opacity:0}.medialoader1993955425__loader{border-radius:6px}.medialoader1993955425__loader.medialoader1993955425--isDashed{border:dashed 1px var(--wds-color-blue-300, var(--wsr-color-B30))}.medialoader1993955425__loader.medialoader1993955425--isSolid{border:solid 1px var(--wds-color-blue-300, var(--wsr-color-B30))}.mediatag2203521930__root{box-sizing:border-box;padding:3px 6px 3px 3px;border-radius:3px;max-height:24px;min-width:54px;max-width:100%;background-color:var(--wds-color-blue-400, var(--wsr-color-B40))}.formmultidocument577982951__viewRoot{border-radius:var(--wds-border-radius-300, calc(2px * 3));border:1px solid var(--wds-color-blue-300, var(--wsr-color-B30))}.formmultidocument577982951__singleViewWrapper{border-radius:0;border-bottom:1px solid var(--wds-color-neutral-600, var(--wsr-color-D60));background-color:transparent!important}.formmultidocument577982951__viewRoot>div:first-child .formmultidocument577982951__singleViewWrapper{border-top-left-radius:var(--wds-border-radius-300, calc(2px * 3));border-top-right-radius:var(--wds-border-radius-300, calc(2px * 3))}.formmultidocument577982951__singleViewWrapper:hover{background-color:var(--wds-color-blue-500, var(--wsr-color-B50))!important}.formmultidocument577982951__singleViewWrapper:focus-visible{border-bottom:1px solid transparent;position:relative;z-index:1}.formmultidocument577982951__addDocumentButton{border-bottom-left-radius:var(--wds-border-radius-300, calc(2px * 3));border-bottom-right-radius:var(--wds-border-radius-300, calc(2px * 3))}.formmultidocument577982951__addDocumentButton:focus-within{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--wds-border-radius-300, calc(2px * 3));border-bottom-right-radius:var(--wds-border-radius-300, calc(2px * 3))}.richcontentdefaultvalueinput1236402630__richContentEditorContainer .richcontentdefaultvalueinput1236402630__editor{max-height:calc(40vh - var(--richcontentdefaultvalueinput1236402630-topToolbarHeight) - var(--richcontentdefaultvalueinput1236402630-bottomToolbarHeight))}.richcontentforminput2430782855__root{outline:0;box-sizing:border-box;border:1px solid var(--wds-color-blue-300);border-radius:var(--wds-border-radius-300)}.richcontentforminput2430782855__root:focus-within{border:1px solid var(--wds-color-blue-100);box-shadow:var(--wds-input-shadow-focus-standard)}.richcontentforminput2430782855__root .richcontentforminput2430782855__editor{overflow-y:auto;max-height:calc(80vh - var(--richcontentforminput2430782855-topToolbarHeight) - var(--richcontentforminput2430782855-bottomToolbarHeight))}.richcontentformreadonlyinput1489426521__root{outline:0;box-sizing:border-box;border:1px solid var(--wds-color-black-600);border-radius:var(--wds-border-radius-300)}.richcontentformreadonlyinput1489426521__root:focus-within{border:1px solid var(--wds-color-blue-100);box-shadow:var(--wds-input-shadow-focus-standard)}.fullscreenmodal1383832737__modalContent{display:flex;position:relative;height:100%;width:782px;background-color:var(--wds-color-white);border-radius:var(--wds-border-radius-300);margin-top:24px}.publishloader109313238__publishLoader{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--wds-color-white);z-index:5000;border-radius:inherit}.togglefullscreenbutton3282889064__root{z-index:5;box-sizing:border-box;position:absolute;right:0;top:calc(50% - 16px)!important;padding-right:3px}.togglefullscreenbutton3282889064__root button{border-radius:6px!important}.richcontenteditor3248723731__root{position:relative}.richcontenteditor3248723731__root,.richcontenteditor3248723731__toolbarContainer,.richcontenteditor3248723731__footerToolbarContainer{width:100%;box-sizing:border-box}.richcontenteditor3248723731__toolbarContainer div{box-sizing:border-box}.richcontenteditor3248723731__toolbarAndFullScreenButtonWrapper{display:flex;position:relative}.richcontenteditor3248723731__editor{box-sizing:border-box;padding:36px 24px 36px 55px}.richcontenteditor3248723731__modalEditor .richcontenteditor3248723731__editor{overflow-y:auto;min-height:calc(100% - var(--richcontenteditor3248723731-topToolbarHeight) - var(--richcontenteditor3248723731-bottomToolbarHeight));max-height:calc(100% - var(--richcontenteditor3248723731-topToolbarHeight) - var(--richcontenteditor3248723731-bottomToolbarHeight));min-width:592px;box-sizing:border-box}.richcontenteditor3248723731__modalEditor .richcontenteditor3248723731__footerToolbarContainer{margin-top:9px}.richcontenteditor3248723731__toolbarContainer button[data-hook~=text-button-headings]>span{display:inline-flex;padding-inline-end:3px!important}.richcontenteditor3248723731__toolbarContainer button[data-hook~=text-button-ai]>span{padding-inline-end:9px!important}.richcontenttoolbar30366578__toolbar{border-top:1px solid rgba(51,51,51,.1);z-index:2;margin-right:auto;padding-left:6px;margin-left:auto;position:relative;height:40px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box}.richcontenttoolbar30366578__toolbarButton{line-height:40px;background:0 0;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;margin:0 5px 0 0}.richcontenttoolbar30366578__toolbarButton:disabled{color:graytext}.richcontenttoolbar30366578__toolbar label{padding:0 8px}.richcontentviewer1473775247__root{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:36px}.richcontentviewer1473775247__root.richcontentviewer1473775247--isFullScreen{padding:12px 24px}.richcontentviewer1473775247__root:not(.richcontentviewer1473775247--isFullScreen){padding:6px 24px 6px 12px}.richcontentviewer1473775247__root ToggleButton{margin:0;padding:0;border:0;position:absolute;top:2px!important;right:2px;width:30px;height:30px}.richcontentviewer1473775247__viewer{height:calc(100% - 36px);width:100%}.richcontentviewer1473775247__modalViewer{min-width:592px;overflow:auto}.richtexteditor4055661011__root{width:100%;box-sizing:border-box;outline:0;overflow:hidden;border-radius:var(--wds-border-radius-300)}.richtexteditor4055661011__root.richtexteditor4055661011---border-4-none{border:0}.richtexteditor4055661011__root.richtexteditor4055661011---border-8-standard{border:1px solid var(--wds-color-blue-300)}.richtexteditor4055661011__root.richtexteditor4055661011---border-8-standard:focus,.richtexteditor4055661011__root.richtexteditor4055661011---border-8-standard:focus-within{border:1px solid var(--wds-color-blue-100);box-shadow:var(--wds-input-shadow-focus-standard)}.richtexteditor4055661011__root.richtexteditor4055661011---border-8-standard.richtexteditor4055661011---status-5-error{border:1px solid var(--wds-color-red-100)}.richtexteditor4055661011__root.richtexteditor4055661011---border-8-standard.richtexteditor4055661011---status-5-error:focus,.richtexteditor4055661011__root.richtexteditor4055661011---border-8-standard.richtexteditor4055661011---status-5-error:focus-within{border:1px solid var(--wds-color-red-100);box-shadow:0 0 0 3px var(--wds-color-red-300)}.richtexteditor4055661011__root.richtexteditor4055661011---border-8-standard.richtexteditor4055661011---status-7-warning{border:1px solid var(--wds-color-yellow-100)}.richtexteditor4055661011__root.richtexteditor4055661011---border-8-standard.richtexteditor4055661011---status-7-warning:focus,.richtexteditor4055661011__root.richtexteditor4055661011---border-8-standard.richtexteditor4055661011---status-7-warning:focus-within{border:1px solid var(--wds-color-yellow-100);box-shadow:0 0 0 3px var(--wds-color-yellow-300)}.richtexteditor4055661011__nativeInput{position:absolute;opacity:0;padding:0;margin:0;border:0;width:0;height:0}.richtexteditor4055661011__editor{height:auto;line-height:auto;display:flex;width:100%;height:100%;min-height:234px;overflow:hidden;box-sizing:border-box;flex-direction:row;border-radius:var(--wds-border-radius-300)}.richtexteditor4055661011__editor.richtexteditor4055661011--isFullScreen{max-width:782px;min-width:582px;background:var(--wds-color-black-700)}.richtexteditor4055661011__editor:not(.richtexteditor4055661011--isFullScreen){max-height:80vh}.richtexteditor4055661011__editor>div{flex:1;max-width:100%}.toolbar2895226836__root{padding:12px 18px;display:flex;border-bottom:1px solid var(--wds-color-blue-400);background:var(--wds-color-white);align-items:center}.toolbar2895226836__item{display:flex;margin-right:12px}.toolbar2895226836__item svg,.toolbar2895226836__item svg path,.toolbar2895226836__item svg text{color:inherit;fill:currentColor}.toolbar2895226836__separator{display:inline-flex;margin-right:12px;border-left:1px solid #ddd;height:100%}.toolbar2895226836__clearFormatting{margin-left:auto}.toolbar2895226836__fullScreen{margin-right:0}.toolbar2895226836__dropdownItemContent{height:36px;width:100%;display:flex;gap:12px;justify-content:space-between;align-items:center}.toolbar2895226836__dropdownItemContent.toolbar2895226836--selected .toolbar2895226836__dropdownItemTitle,.toolbar2895226836__dropdownItemContent.toolbar2895226836--selected .toolbar2895226836__dropdownItemSubtitle{color:var(--wds-color-white)!important}.toolbar2895226836__dropdownItemSubtitle{color:var(--wds-color-black-400)!important;padding-right:12px;flex-shrink:0}.toolbar2895226836__dropdownHeaderOne{font-weight:var(--wds-font-weight-bold)!important;font-size:36px!important;line-height:1.2!important;font-family:var(--wds-font-family-default)!important}.toolbar2895226836__dropdownHeaderTwo{font-weight:var(--wds-font-weight-bold)!important;font-size:32px!important;line-height:1.2!important;font-family:var(--wds-font-family-default)!important}.toolbar2895226836__dropdownHeaderThree{font-weight:var(--wds-font-weight-medium)!important;font-size:28px!important;line-height:1.2!important;font-family:var(--wds-font-family-default)!important}.toolbar2895226836__dropdownHeaderFour{font-weight:var(--wds-font-weight-bold)!important;font-size:24px!important;line-height:1.2!important;font-family:var(--wds-font-family-default)!important}.toolbar2895226836__dropdownHeaderFive{font-weight:var(--wds-font-weight-bold)!important;font-size:22px!important;line-height:1.2!important;font-family:var(--wds-font-family-default)!important}.toolbar2895226836__dropdownHeaderSix{font-weight:var(--wds-font-weight-medium)!important;font-size:20px!important;line-height:1.2!important;font-family:var(--wds-font-family-default)!important}.toolbar2895226836__dropdownParagraphOne{font-weight:var(--wds-font-weight-medium)!important;font-size:18px!important;line-height:1.33!important;font-family:var(--wds-font-family-default)!important}.toolbar2895226836__dropdownNormalText{font-weight:var(--wds-font-weight-medium)!important;font-size:var(--wds-font-size-500)!important;line-height:var(--wds-font-line-height-300)!important;font-family:var(--wds-font-family-default)!important}.toolbar2895226836__dropdownParagraphThree{font-weight:var(--wds-font-weight-medium)!important;font-size:14px!important;line-height:1.29!important;font-family:var(--wds-font-family-default)!important}.textview1495705__textView::after{content:"";display:block}.richeditor2418785126__root{display:flex;flex-direction:column;font-weight:var(--wds-font-weight-medium);font-size:var(--wds-font-size-500);line-height:var(--wds-font-line-height-300);font-family:var(--wds-font-family-default)}.richeditor2418785126__editor{box-sizing:border-box;overflow:auto;display:flex;flex-direction:column;flex:1;cursor:text;color:var(--wds-color-black-100);background:var(--wds-color-black-700)}.richeditor2418785126__editor .DraftEditor-root{width:100%;height:100%}.richeditor2418785126__editor .DraftEditor-root [data-contents]{overflow:auto}.richeditor2418785126__editor .DraftEditor-editorContainer{display:flex;min-height:100%;background:#fff}.richeditor2418785126__editor .public-DraftEditor-content{padding:12px 24px 24px;min-height:100%;width:100%;box-sizing:border-box}.richeditor2418785126__editor .public-DraftEditor-content ol,.richeditor2418785126__editor .public-DraftEditor-content ul{display:flex;flex-direction:column;padding:0}.richeditor2418785126__editor .public-DraftEditor-content a,.richeditor2418785126__editor .public-DraftEditor-content a:visited{color:inherit;text-decoration:none}.richeditor2418785126__header-one:not(li),.richeditor2418785126__header-two:not(li),.richeditor2418785126__header-three:not(li),.richeditor2418785126__header-four:not(li),.richeditor2418785126__header-five:not(li),.richeditor2418785126__header-six:not(li){margin-block:0;margin:0}.richeditor2418785126__header-one,.richeditor2418785126__editor li.richeditor2418785126__header-one .public-DraftStyleDefault-block{font:var(--rt-h1-fontStyle, normal) var(--rt-h1-fontWeight, var(--wds-font-weight-bold)) var(--rt-h1-fontSize, 72px)/var(--rt-h1-lineHeight, 1.33) var(--rt-h1-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__header-two,.richeditor2418785126__editor li.richeditor2418785126__header-two .public-DraftStyleDefault-block{font:var(--rt-h2-fontStyle, normal) var(--rt-h2-fontWeight, var(--wds-font-weight-bold)) var(--rt-h2-fontSize, 42px)/var(--rt-h2-lineHeight, 1.2) var(--rt-h2-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__header-three,.richeditor2418785126__editor li.richeditor2418785126__header-three .public-DraftStyleDefault-block{font:var(--rt-h3-fontStyle, normal) var(--rt-h3-fontWeight, var(--wds-font-weight-medium)) var(--rt-h3-fontSize, 38px)/var(--rt-h3-lineHeight, 1.2) var(--rt-h3-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__header-four,.richeditor2418785126__editor li.richeditor2418785126__header-four .public-DraftStyleDefault-block{font:var(--rt-h4-fontStyle, normal) var(--rt-h4-fontWeight, var(--wds-font-weight-bold)) var(--rt-h4-fontSize, 34px)/var(--rt-h4-lineHeight, 1.2) var(--rt-h4-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__header-five,.richeditor2418785126__editor li.richeditor2418785126__header-five .public-DraftStyleDefault-block{font:var(--rt-h5-fontStyle, normal) var(--rt-h5-fontWeight, var(--wds-font-weight-bold)) var(--rt-h5-fontSize, 28px)/var(--rt-h5-lineHeight, 1.2) var(--rt-h5-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__header-six,.richeditor2418785126__editor li.richeditor2418785126__header-six .public-DraftStyleDefault-block{font:var(--rt-h6-fontStyle, normal) var(--rt-h6-fontWeight, var(--wds-font-weight-medium)) var(--rt-h6-fontSize, 22px)/var(--rt-h6-lineHeight, 1.2) var(--rt-h6-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__paragraph-one,.richeditor2418785126__editor li.richeditor2418785126__paragraph-one .public-DraftStyleDefault-block{font:var(--rt-p1-fontStyle, normal) var(--rt-p1-fontWeight, var(--wds-font-weight-medium)) var(--rt-p1-fontSize, 18px)/var(--rt-p1-lineHeight, 24px) var(--rt-p1-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__unstyled,.richeditor2418785126__editor li.richeditor2418785126__unstyled .public-DraftStyleDefault-block{font:var(--rt-unstyled-fontStyle, normal) var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium)) var(--rt-unstyled-fontSize, 16px)/var(--rt-unstyled-lineHeight, 24px) var(--rt-unstyled-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__paragraph-three,.richeditor2418785126__editor li.richeditor2418785126__paragraph-three .public-DraftStyleDefault-block{font:var(--rt-p3-fontStyle, normal) var(--rt-p3-fontWeight, var(--wds-font-weight-medium)) var(--rt-p3-fontSize, 14px)/var(--rt-p3-lineHeight, 18px) var(--rt-p3-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__editor li.richeditor2418785126__header-one:first-child~li{font:var(--rt-h1-fontStyle, normal) var(--rt-h1-fontWeight, var(--wds-font-weight-bold)) var(--rt-h1-fontSize, 72px)/var(--rt-h1-lineHeight, 1.33) var(--rt-h1-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__editor li.richeditor2418785126__header-one:first-child~li::marker{line-height:var(--rt-h1-fontSize, 72px)}.richeditor2418785126__editor li.richeditor2418785126__header-two:first-child~li{font:var(--rt-h2-fontStyle, normal) var(--rt-h2-fontWeight, var(--wds-font-weight-bold)) var(--rt-h2-fontSize, 42px)/var(--rt-h2-lineHeight, 1.2) var(--rt-h2-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__editor li.richeditor2418785126__header-two:first-child~li::marker{line-height:var(--rt-h2-fontSize, 42px)}.richeditor2418785126__editor li.richeditor2418785126__header-three:first-child~li{font:var(--rt-h3-fontStyle, normal) var(--rt-h3-fontWeight, var(--wds-font-weight-medium)) var(--rt-h3-fontSize, 38px)/var(--rt-h3-lineHeight, 1.2) var(--rt-h3-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__editor li.richeditor2418785126__header-three:first-child~li::marker{line-height:var(--rt-h3-fontSize, 38px)}.richeditor2418785126__editor li.richeditor2418785126__header-four:first-child~li{font:var(--rt-h4-fontStyle, normal) var(--rt-h4-fontWeight, var(--wds-font-weight-bold)) var(--rt-h4-fontSize, 34px)/var(--rt-h4-lineHeight, 1.2) var(--rt-h4-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__editor li.richeditor2418785126__header-four:first-child~li::marker{line-height:var(--rt-h4-fontSize, 34px)}.richeditor2418785126__editor li.richeditor2418785126__header-five:first-child~li{font:var(--rt-h5-fontStyle, normal) var(--rt-h5-fontWeight, var(--wds-font-weight-bold)) var(--rt-h5-fontSize, 28px)/var(--rt-h5-lineHeight, 1.2) var(--rt-h5-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__editor li.richeditor2418785126__header-five:first-child~li::marker{line-height:var(--rt-h5-fontSize, 28px)}.richeditor2418785126__editor li.richeditor2418785126__header-six:first-child~li{font:var(--rt-h6-fontStyle, normal) var(--rt-h6-fontWeight, var(--wds-font-weight-medium)) var(--rt-h6-fontSize, 22px)/var(--rt-h6-lineHeight, 1.2) var(--rt-h6-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__editor li.richeditor2418785126__header-six:first-child~li::marker{line-height:var(--rt-h6-fontSize, 22px)}.richeditor2418785126__editor li.richeditor2418785126__paragraph-one:first-child~li{font:var(--rt-p1-fontStyle, normal) var(--rt-p1-fontWeight, var(--wds-font-weight-medium)) var(--rt-p1-fontSize, 18px)/var(--rt-p1-lineHeight, 24px) var(--rt-p1-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__editor li.richeditor2418785126__unstyled:first-child~li{font:var(--rt-unstyled-fontStyle, normal) var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium)) var(--rt-unstyled-fontSize, 16px)/var(--rt-unstyled-lineHeight, 24px) var(--rt-unstyled-fontFamily, var(--wds-font-family-default))}.richeditor2418785126__editor li.richeditor2418785126__paragraph-three:first-child~li{font:var(--rt-p3-fontStyle, normal) var(--rt-p3-fontWeight, var(--wds-font-weight-medium)) var(--rt-p3-fontSize, 14px)/var(--rt-p3-lineHeight, 18px) var(--rt-p3-fontFamily, var(--wds-font-family-default))}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth0{margin-inline-start:2ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth1{margin-inline-start:4ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth2{margin-inline-start:6ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth3{margin-inline-start:8ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth4{margin-inline-start:10ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth0:first-child{margin-inline-start:2ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0{margin-inline-start:2ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0:nth-child(n+10){margin-inline-start:3ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0:nth-child(n+100){margin-inline-start:4ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0:nth-child(n+1000){margin-inline-start:5ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth1:first-child{margin-inline-start:4ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1{margin-inline-start:4ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1:nth-child(n+10){margin-inline-start:5ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1:nth-child(n+100){margin-inline-start:6ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1:nth-child(n+1000){margin-inline-start:7ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth2:first-child{margin-inline-start:6ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2{margin-inline-start:6ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2:nth-child(n+10){margin-inline-start:7ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2:nth-child(n+100){margin-inline-start:8ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2:nth-child(n+1000){margin-inline-start:9ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth3:first-child{margin-inline-start:8ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3{margin-inline-start:8ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3:nth-child(n+10){margin-inline-start:9ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3:nth-child(n+100){margin-inline-start:10ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3:nth-child(n+1000){margin-inline-start:11ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth4:first-child{margin-inline-start:10ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4{margin-inline-start:10ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4:nth-child(n+10){margin-inline-start:11ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4:nth-child(n+100){margin-inline-start:12ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4:nth-child(n+1000){margin-inline-start:13ch}.richeditor2418785126__align-left{text-align:left;align-self:flex-start}.richeditor2418785126__align-right{text-align:right;align-self:flex-end}.richeditor2418785126__align-center{text-align:center;align-self:center}.richeditor2418785126__align-justify{text-align:justify;align-self:stretch}.richeditor2418785126__withMargin{display:inline-block}.richeditor2418785126__dir-rtl,.richeditor2418785126__editor .public-DraftStyleDefault-rtl{direction:rtl}.richeditor2418785126__editor .public-DraftStyleDefault-listRTL{direction:rtl;text-align:right;max-width:100%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ComponentTypeEnum","exports"],"sources":["../../../src/types/CollectionPageConfig.ts"],"sourcesContent":["import { CollectionToolbarFiltersProps } from '@wix/patterns';\nimport {\n DateRangeFilterMode,\n DateRangeOptions,\n DateRangePredefinedPresetOptions,\n} from '@wix/patterns/core';\nimport { BaseCollectionConfig } from './types';\nimport {\n ActionCellConfig,\n BulkActionsConfig,\n CollectionPageOnRowClickActionConfig,\n CollectionPagePrimaryActions,\n CollectionPageSecondaryActions,\n} from './actions';\n\nexport interface CollectionPageTitle {\n /**\n * The title text.\n */\n text: string;\n /**\n * Determines whether to hide the number of total entities on the title of the page.\n */\n hideTotal?: boolean;\n}\n\nexport interface CollectionPageSubtitle {\n /**\n * The subtitle text.\n */\n text: string;\n /**\n * \"Learn more\" link.\n */\n learnMore?: {\n /**\n * Where the link should navigate to.\n */\n url: string;\n /**\n * The label of the link button. defaults to \"Learn More\".\n */\n label?: string;\n };\n}\n\nexport interface CollectionPageConfig {\n /**\n * Route configuration.\n */\n route: {\n /**\n * Route path (relative path).\n */\n path: string;\n };\n /**\n * Page title configuration.\n */\n title: CollectionPageTitle;\n /**\n * Page subtitle configuration.\n */\n subtitle?: CollectionPageSubtitle;\n /**\n * Page-level actions to render in the page header.\n */\n actions?: {\n /**\n * Primary actions.\n */\n primaryActions?: CollectionPagePrimaryActions;\n /**\n * Secondary actions.\n */\n secondaryActions?: CollectionPageSecondaryActions;\n };\n /**\n * Components rendered within the page layout.\n */\n components: ComponentConfig[];\n}\n\nexport interface CollectionComponentConfig\n extends BaseCollectionComponentConfig {\n /**\n * Type discriminator.\n */\n type: 'collection';\n /**\n * Layout items to render.\n */\n layout: LayoutItemConfig[];\n}\n\nexport interface CustomComponentConfig {\n /**\n * Type discriminator.\n */\n type: 'custom';\n /**\n * Identifier that maps to a custom React component provided via overrides.\n */\n id: string;\n}\n\nexport type ComponentConfig = CollectionComponentConfig | CustomComponentConfig;\n\nexport interface LayoutItemConfig {\n /**\n * Rendering mode for the collection component.\n */\n type: 'Table' | 'Grid';\n /**\n * Table-specific configuration.\n */\n table?: TableSpecificConfig;\n /**\n * Grid-specific configuration.\n */\n grid?: GridSpecificConfig;\n}\n\nexport type ColumnsConfig = Column[];\n\nexport interface TableSpecificConfig {\n /**\n * Table columns configuration.\n */\n columns: ColumnsConfig;\n /**\n * Enables custom columns (hide/reorder columns) functionality.\n */\n customColumns?: {\n enabled: boolean;\n };\n /**\n * Number of leading columns that remain sticky on horizontal scroll.\n */\n stickyColumns?: number;\n /**\n * Row click action.\n */\n onRowClick?: CollectionPageOnRowClickActionConfig;\n /**\n * Show column headers (title bar).\n * @default true\n */\n showTitleBar?: boolean;\n /**\n * Sectioning support for table.\n *\n * The `id` must match the identifier of a custom sectioning override component.\n * This allows you to provide a custom React component for table section rendering.\n */\n sections?: {\n id: string;\n };\n /**\n * Data extension configuration.\n */\n dataExtension?: {\n enabled: boolean;\n };\n}\n\nexport interface GridSpecificConfig {\n /**\n * Grid item.\n */\n item: GridItem;\n}\n\nexport interface TableConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig {}\n\nexport interface GridConfig\n extends BaseCollectionComponentConfig,\n GridSpecificConfig {}\n\nexport interface TableGridSwitchConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig,\n GridSpecificConfig {}\n\nexport type CollectionConfig = BaseCollectionConfig & {\n /**\n * Default fetch limit (items per page).\n */\n limit?: number;\n /**\n * Reflect search/filters/sort in the URL.\n * @default false\n */\n reflectQueryInUrl?: boolean;\n /**\n * Scope of \"Select All\":\n * - 'all': select the entire collection (server-side).\n * - 'page': select only currently visible items.\n * @default \"all\"\n */\n selectAllScope?: 'page' | 'all';\n /**\n * Selection behavior when data changes:\n * - 'preserve': keep current selections if still valid.\n * - 'clear': clear selection on data refresh.\n * @default \"clear\"\n */\n selectionUpdateMode?: 'preserve' | 'clear';\n /**\n * Enables optimistic UI actions;\n * Identifier that maps to a custom optimistic actions provided via overrides.\n */\n optimisticActions?: {\n id: string;\n };\n /**\n * Pagination strategy:\n * - 'cursor': `find()` must return { items, cursor, total? }\n * - 'offset': `find()` must return { items, hasNext, total? }\n * @default \"offset\"\n */\n paginationMode?: 'cursor' | 'offset';\n};\n\nexport interface BaseCollectionComponentConfig {\n /**\n * Collection data configuration and behavior.\n */\n collection: CollectionConfig;\n /**\n * Entity page to navigate to (by page id) when interacting with rows (e.g. onRowClick/update).\n */\n entityPageId?: string;\n /**\n * Search configuration.\n */\n search?: {\n /**\n * Whether to show the search input.\n * @default true\n */\n shown?: boolean;\n };\n /**\n * Toolbar title configuration.\n */\n toolbarTitle?: ToolbarTitle;\n /**\n * Action cell configuration per row.\n */\n actionCell?: ActionCellConfig;\n /**\n * Empty state configuration.\n */\n emptyState?: EmptyState;\n /**\n * Filters configuration.\n */\n filters?: FiltersConfig;\n /**\n * Views configuration.\n */\n views?: ViewsConfig;\n /**\n * Bulk action toolbar configuration.\n */\n bulkActionToolbar?: BulkActionsConfig;\n /**\n * Drag and drop configuration.\n */\n dragAndDrop?: {\n /**\n * Whether drag and drop is enabled. When enabled, the schema must support a \"move\" action.\n */\n enabled: boolean;\n /**\n * Custom drag and drop cancel handler.\n */\n dragAndDropCancel?: {\n id?: string;\n };\n };\n /**\n * Import configuration. Renders an `ImportButton` in the collection toolbar\n * that allows users to upload CSV files and bulk-import entities.\n */\n import?: ImportConfig;\n}\n\nexport interface ImportConfig {\n enabled?: boolean;\n}\n\nexport interface ToolbarTitle {\n /**\n * Title text.\n */\n title: string;\n /**\n * Subtitle configuration.\n */\n subtitle?: {\n /**\n * Subtitle text.\n */\n text: string;\n /**\n * Info tooltip content with an optional link.\n */\n info?: {\n content: {\n text: string;\n link?: {\n url: string;\n label: string;\n };\n };\n };\n /**\n * \"Learn more\" link.\n */\n learnMore?: {\n /**\n * Where the link should navigate to.\n */\n url: string;\n /**\n * The label of the link button.\n */\n label?: string;\n };\n };\n /**\n * Show total items on the toolbar.\n * @default false\n */\n showTotal?: boolean;\n /**\n * Limit displayed item count in the toolbar.\n */\n itemsLimit?: number;\n}\n\nexport interface Column {\n /**\n * FieldId to bind the column to.\n */\n id: string;\n /**\n * Column header text.\n */\n name: string;\n /**\n * CSS width value (e.g. '120px', '20%').\n */\n width: string;\n /**\n * Whether the column supports sorting.\n */\n sortable?: boolean;\n /**\n * Initial sort order when the page loads.\n */\n defaultSortOrder?: 'asc' | 'desc';\n /**\n * Current sort mode selected in UI.\n */\n sortMode?: 'asc' | 'desc';\n /**\n * Hide column by default in the custom columns panel.\n * When true, the column will not be shown initially and must be enabled by the user via the customize columns UI.\n */\n defaultHidden?: boolean;\n /**\n * Exclude from the \"customize columns\" selection UI.\n */\n hiddenFromCustomColumnsSelection?: boolean;\n /**\n * Controls whether the \"hide/show\" checkbox for this column is enabled in the custom columns panel.\n * If set to false, the checkbox will be disabled and the user cannot toggle visibility for this column.\n */\n hideable?: boolean;\n /**\n * Prevent column reordering in the customization UI.\n */\n reorderDisabled?: boolean;\n /**\n * Tooltip content to display when hovering over the info icon in the column header.\n */\n tooltipContent?: string;\n}\n\nexport interface GridItem {\n /**\n * FieldId to use as the card title.\n */\n titleFieldId: string;\n /**\n * FieldId to use as the card subtitle.\n */\n subtitleFieldId?: string;\n /**\n * FieldId to use as the card image.\n */\n imageFieldId?: string;\n /**\n * Controls which content is shown in the card (preset):\n * - 'full': shows title and subtitle.\n * - 'title': shows only the title.\n * - 'empty': hides both title and subtitle.\n */\n cardContentMode?: 'full' | 'title' | 'empty'; // Footer is not supported in auto-patterns\n /**\n * Position of the image inside the card layout.\n */\n imagePlacement?: 'top' | 'side';\n}\n\nexport interface EmptyState {\n /**\n * Empty state title.\n */\n title?: string;\n /**\n * Empty state subtitle.\n */\n subtitle?: string;\n /**\n * Image to display in the empty state.\n */\n image?: {\n id: string;\n };\n /**\n * \"Add new\" call-to-action button.\n */\n addNewCta?: {\n id?: string;\n text?: string;\n };\n /**\n * Custom CTA slot (advanced).\n */\n customCta?: {\n id?: string;\n };\n}\n\nexport interface FilterOption {\n value: string;\n label: string;\n}\n\nexport type FilterSelectionMode = 'single' | 'multiple';\n\nexport type FilterOptionType =\n | 'checkbox'\n | 'inlineCheckbox'\n | 'radio'\n | 'select';\n\nexport enum ComponentTypeEnum {\n SINGLE = 'single',\n MULTI_SELECT = 'multi-select',\n RADIO_GROUP = 'radio-group',\n NUMBER = 'number',\n DATE_RANGE = 'date-range',\n}\n\nexport type FilterItems = Filter[];\n\nexport interface FiltersConfig {\n /**\n * Filter items to display.\n */\n items: FilterItems;\n /**\n * Maximum number of filters shown inline before moving to the panel.\n * @default 0 (all in panel).\n */\n maxInlineFilters?: CollectionToolbarFiltersProps['inline'];\n /**\n * Title for the filter panel drawer.\n */\n panelTitle?: string;\n}\n\nexport interface ViewsConfig {\n /**\n * Whether to show the views control.\n * @default false\n */\n enabled?: boolean;\n /**\n * Props for the Save View modal.\n */\n saveViewModalProps?: {\n /**\n * Placeholder text for the new view name input in the modal.\n */\n placeholderName?: string;\n /**\n * props for the learn more link in the modal.\n */\n learnMore?: {\n /**\n * Redirect URL for the Learn More button in the modal.\n */\n url?: string;\n };\n };\n /**\n * Props for the views control dropdown.\n */\n viewsDropdownProps?: {\n /**\n * Show the total number of items next to the views control.\n * @default false\n */\n showTotal?: boolean;\n /**\n * Hide the \"All items\" view from the dropdown. Only works when custom presets exist.\n * @default false\n */\n hideAllItemsView?: boolean;\n /**\n * Custom label for the \"All items\" view. Ignored if a preset has `isDefaultView: true`.\n * @default \"All items\"\n */\n customAllItemsViewLabel?: string;\n };\n /**\n * Custom presets to use for the views control.\n */\n presets?:\n | {\n type: 'categories';\n categories: AutoCategory[];\n }\n | {\n type: 'views';\n views: AutoView[];\n };\n}\n\nexport interface AutoCategory {\n /**\n * Category unique identifier.\n */\n id: string;\n /**\n * Category name that will be displayed in the views control.\n */\n label: string;\n /**\n * Category views.\n */\n views: AutoView[];\n /**\n * An icon that will be displayed next to the category label.\n */\n icon?: {\n tooltipContent: string;\n size?: 'small' | 'medium';\n };\n}\n\nexport interface AutoView {\n /**\n * View unique identifier.\n */\n id: string;\n /**\n * Display name for the view in the dropdown.\n */\n label: string;\n /**\n * Filters to apply when the view is selected. Keys must be filters id declared in this config.\n * @external\n */\n filters?: Record<string, AutoFilterValue | null>;\n /**\n * Column preferences for the view. Use this to control column order, visibility, and sorting.\n */\n columnPreferences?: ColumnPreferences[];\n /**\n * Makes this view the default selection instead of the \"All items\" view.\n */\n isDefaultView?: boolean;\n}\n\ninterface ColumnPreferences {\n /**\n * Column unique identifier.\n */\n id: string;\n /**\n * Sorting direction of the column in the view.\n */\n direction?: 'asc' | 'desc';\n /**\n * Pass false to hide the column from the view.\n */\n show?: boolean;\n}\n\nexport interface BaseOptionsFilterConfig {\n /**\n * Selection behavior: single choice or multiple choices.\n */\n selectionMode: FilterSelectionMode;\n}\n\nexport interface DateFilterConfig {\n /**\n * Controls behavior: presets only, custom only, or both.\n */\n mode?: DateRangeFilterMode;\n /**\n * Which preset ranges to display (only if mode supports presets).\n */\n presets?: DateRangeOptions;\n /**\n * Whether to include time selection.\n * @default true\n */\n includeTime?: boolean;\n}\n\nexport type AutoFilterValue =\n | {\n filterType: 'date';\n value: DateFilterValue;\n }\n | {\n filterType: 'number';\n value: NumberFilterValue;\n }\n | {\n filterType: 'boolean';\n value: BooleanFilterValue;\n }\n | {\n filterType: 'enum';\n value: EnumFilterValue;\n }\n | {\n filterType: 'reference';\n value: ReferenceFilterValue;\n }\n | {\n filterType: 'hasValue';\n value: HasValueFilterValue;\n };\n\nexport type DateFilterValue =\n | {\n preset: DateRangeOptions | DateRangePredefinedPresetOptions;\n }\n | {\n /**\n * Start date. format: MM-DD-YYYY\n */\n from?: string;\n /**\n * End date. format: MM-DD-YYYY\n */\n to?: string;\n };\n\nexport interface NumberFilterConfig {\n /**\n * Minimum allowed value.\n */\n min?: number;\n /**\n * Maximum allowed value.\n */\n max?: number;\n /**\n * Whether decimal values are allowed.\n */\n allowedDecimals?: boolean;\n}\n\nexport type NumberFilterValue = {\n /**\n * Minimum allowed value. default is negative infinity\n */\n from?: number;\n /**\n * Maximum allowed value. default is infinity\n */\n to?: number;\n};\n\nexport interface BooleanFilterConfig {\n /**\n * Label for the \"true\" option.\n */\n trueLabel?: string;\n /**\n * Label for the \"false\" option.\n */\n falseLabel?: string;\n}\n\nexport type BooleanFilterValue = {\n /**\n * checked for true, unchecked for false, all for all\n */\n id: 'checked' | 'unchecked' | 'all';\n /**\n * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \\<field-name\\>: \\<name\\>)\n */\n name: string;\n}[];\n\nexport type HasValueFilterValue = {\n /**\n * hasValue for cells with a value, noValue for empty cells\n */\n id: 'hasValue' | 'noValue';\n /**\n * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \\<field-name\\>: \\<name\\>)\n */\n name: string;\n}[];\n\nexport interface EnumFilterConfig extends BaseOptionsFilterConfig {\n /**\n * List of available options.\n */\n options: FilterOption[];\n /**\n * Rendering control for option appearance.\n */\n optionType?: FilterOptionType;\n}\n\nexport type EnumFilterValue = {\n /**\n * The option value (from the filter config)\n */\n id: string;\n /**\n * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \\<field-name\\>: \\<name\\>)\n */\n name: string;\n}[];\n\nexport interface DynamicOptionsFilterConfig extends BaseOptionsFilterConfig {}\n\nexport type ReferenceFilterValue = {\n /**\n * The option value (from the filter config)\n */\n id: string;\n /**\n * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \\<field-name\\>: \\<name\\>)\n */\n name: string;\n}[];\n\nexport interface Filter {\n /**\n * Filter unique identifier.\n */\n id: string;\n /**\n * Target field id this filter controls.\n */\n fieldId: string;\n /**\n * Optional filter display name (defaults to field name).\n */\n displayName?: string;\n /**\n * Optional grouping label. Filters with the same `sectionTitle` are grouped together.\n */\n sectionTitle?: string;\n /**\n * Whether the filter item is expanded by default in the panel.\n */\n openByDefault?: boolean;\n /**\n * Label shown in the table/grid tag when the filter is active.\n */\n tagLabel?: string;\n /**\n * Configuration for number inputs (NUMBER fields).\n */\n numberConfig?: NumberFilterConfig;\n /**\n * Configuration for date inputs (DATETIME fields).\n */\n dateConfig?: DateFilterConfig;\n /**\n * Configuration for boolean input labels (BOOLEAN fields).\n */\n booleanConfig?: BooleanFilterConfig;\n /**\n * Configuration for enum inputs (ARRAY/ARRAY_STRING fields).\n */\n enumConfig?: EnumFilterConfig;\n /**\n * Dynamic options configuration (advanced).\n */\n dynamicOptionsConfig?: DynamicOptionsFilterConfig;\n}\n"],"mappings":";;;;IA+cYA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["ComponentTypeEnum","exports"],"sources":["../../../src/types/CollectionPageConfig.ts"],"sourcesContent":["import { CollectionToolbarFiltersProps } from '@wix/patterns';\nimport {\n DateRangeFilterMode,\n DateRangeOptions,\n DateRangePredefinedPresetOptions,\n} from '@wix/patterns/core';\nimport { BaseCollectionConfig } from './types';\nimport {\n ActionCellConfig,\n BulkActionsConfig,\n CollectionPageOnRowClickActionConfig,\n CollectionPagePrimaryActions,\n CollectionPageSecondaryActions,\n} from './actions';\n\nexport interface CollectionPageTitle {\n /**\n * The title text.\n */\n text: string;\n /**\n * Determines whether to hide the number of total entities on the title of the page.\n */\n hideTotal?: boolean;\n}\n\nexport interface CollectionPageSubtitle {\n /**\n * The subtitle text.\n */\n text: string;\n /**\n * \"Learn more\" link.\n */\n learnMore?: {\n /**\n * Where the link should navigate to.\n */\n url: string;\n /**\n * The label of the link button. defaults to \"Learn More\".\n */\n label?: string;\n };\n}\n\nexport interface CollectionPageConfig {\n /**\n * Route configuration.\n */\n route: {\n /**\n * Route path (relative path).\n */\n path: string;\n };\n /**\n * Page title configuration.\n */\n title: CollectionPageTitle;\n /**\n * Page subtitle configuration.\n */\n subtitle?: CollectionPageSubtitle;\n /**\n * Page-level actions to render in the page header.\n */\n actions?: {\n /**\n * Primary actions.\n */\n primaryActions?: CollectionPagePrimaryActions;\n /**\n * Secondary actions.\n */\n secondaryActions?: CollectionPageSecondaryActions;\n };\n /**\n * Components rendered within the page layout.\n */\n components: ComponentConfig[];\n}\n\nexport interface CollectionComponentConfig\n extends BaseCollectionComponentConfig {\n /**\n * Type discriminator.\n */\n type: 'collection';\n /**\n * Layout items to render.\n */\n layout: LayoutItemConfig[];\n}\n\nexport interface CustomComponentConfig {\n /**\n * Type discriminator.\n */\n type: 'custom';\n /**\n * Identifier that maps to a custom React component provided via overrides.\n */\n id: string;\n}\n\nexport type ComponentConfig = CollectionComponentConfig | CustomComponentConfig;\n\nexport interface LayoutItemConfig {\n /**\n * Rendering mode for the collection component.\n */\n type: 'Table' | 'Grid';\n /**\n * Table-specific configuration.\n */\n table?: TableSpecificConfig;\n /**\n * Grid-specific configuration.\n */\n grid?: GridSpecificConfig;\n}\n\nexport type ColumnsConfig = Column[];\n\nexport interface TableSpecificConfig {\n /**\n * Table columns configuration.\n */\n columns: ColumnsConfig;\n /**\n * Enables custom columns (hide/reorder columns) functionality.\n */\n customColumns?: {\n enabled: boolean;\n };\n /**\n * Number of leading columns that remain sticky on horizontal scroll.\n */\n stickyColumns?: number;\n /**\n * Row click action.\n */\n onRowClick?: CollectionPageOnRowClickActionConfig;\n /**\n * Show column headers (title bar).\n * @default true\n */\n showTitleBar?: boolean;\n /**\n * Sectioning support for table.\n *\n * The `id` must match the identifier of a custom sectioning override component.\n * This allows you to provide a custom React component for table section rendering.\n */\n sections?: {\n id: string;\n };\n /**\n * Data extension configuration.\n */\n dataExtension?: {\n enabled: boolean;\n };\n}\n\nexport interface GridSpecificConfig {\n /**\n * Grid item.\n */\n item: GridItem;\n}\n\nexport interface TableConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig {}\n\nexport interface GridConfig\n extends BaseCollectionComponentConfig,\n GridSpecificConfig {}\n\nexport interface TableGridSwitchConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig,\n GridSpecificConfig {}\n\nexport type CollectionConfig = BaseCollectionConfig & {\n /**\n * Default fetch limit (items per page).\n */\n limit?: number;\n /**\n * Reflect search/filters/sort in the URL.\n * @default false\n */\n reflectQueryInUrl?: boolean;\n /**\n * Scope of \"Select All\":\n * - 'all': select the entire collection (server-side).\n * - 'page': select only currently visible items.\n * @default \"all\"\n */\n selectAllScope?: 'page' | 'all';\n /**\n * Selection behavior when data changes:\n * - 'preserve': keep current selections if still valid.\n * - 'clear': clear selection on data refresh.\n * @default \"clear\"\n */\n selectionUpdateMode?: 'preserve' | 'clear';\n /**\n * Enables optimistic UI actions;\n * Identifier that maps to a custom optimistic actions provided via overrides.\n */\n optimisticActions?: {\n id: string;\n };\n /**\n * Pagination strategy:\n * - 'cursor': `find()` must return { items, cursor, total? }\n * - 'offset': `find()` must return { items, hasNext, total? }\n * @default \"offset\"\n */\n paginationMode?: 'cursor' | 'offset';\n};\n\nexport interface BaseCollectionComponentConfig {\n /**\n * Collection data configuration and behavior.\n */\n collection: CollectionConfig;\n /**\n * Entity page to navigate to (by page id) when interacting with rows (e.g. onRowClick/update).\n */\n entityPageId?: string;\n /**\n * Search configuration.\n */\n search?: {\n /**\n * Whether to show the search input.\n * @default true\n */\n shown?: boolean;\n };\n /**\n * Toolbar title configuration.\n */\n toolbarTitle?: ToolbarTitle;\n /**\n * Action cell configuration per row.\n */\n actionCell?: ActionCellConfig;\n /**\n * Empty state configuration.\n */\n emptyState?: EmptyState;\n /**\n * Filters configuration.\n */\n filters?: FiltersConfig;\n /**\n * Views configuration.\n */\n views?: ViewsConfig;\n /**\n * Bulk action toolbar configuration.\n */\n bulkActionToolbar?: BulkActionsConfig;\n /**\n * Drag and drop configuration.\n */\n dragAndDrop?: {\n /**\n * Whether drag and drop is enabled. When enabled, the schema must support a \"move\" action.\n */\n enabled: boolean;\n /**\n * Custom drag and drop cancel handler.\n */\n dragAndDropCancel?: {\n id?: string;\n };\n };\n /**\n * Import configuration. Renders an `ImportButton` in the collection toolbar\n * that allows users to upload CSV files and bulk-import entities.\n */\n import?: ImportConfig;\n /**\n * Whether to show prefix icons for field types in column headers, filters, and the customize-columns panel.\n * When enabled, each column and filter receives its schema field type so Cairo can render the matching icon.\n * @default false\n */\n showFieldTypeIcons?: boolean;\n}\n\nexport interface ImportConfig {\n enabled?: boolean;\n}\n\nexport interface ToolbarTitle {\n /**\n * Title text.\n */\n title: string;\n /**\n * Subtitle configuration.\n */\n subtitle?: {\n /**\n * Subtitle text.\n */\n text: string;\n /**\n * Info tooltip content with an optional link.\n */\n info?: {\n content: {\n text: string;\n link?: {\n url: string;\n label: string;\n };\n };\n };\n /**\n * \"Learn more\" link.\n */\n learnMore?: {\n /**\n * Where the link should navigate to.\n */\n url: string;\n /**\n * The label of the link button.\n */\n label?: string;\n };\n };\n /**\n * Show total items on the toolbar.\n * @default false\n */\n showTotal?: boolean;\n /**\n * Limit displayed item count in the toolbar.\n */\n itemsLimit?: number;\n}\n\nexport interface Column {\n /**\n * FieldId to bind the column to.\n */\n id: string;\n /**\n * Column header text.\n */\n name: string;\n /**\n * CSS width value (e.g. '120px', '20%').\n */\n width: string;\n /**\n * Whether the column supports sorting.\n */\n sortable?: boolean;\n /**\n * Initial sort order when the page loads.\n */\n defaultSortOrder?: 'asc' | 'desc';\n /**\n * Current sort mode selected in UI.\n */\n sortMode?: 'asc' | 'desc';\n /**\n * Hide column by default in the custom columns panel.\n * When true, the column will not be shown initially and must be enabled by the user via the customize columns UI.\n */\n defaultHidden?: boolean;\n /**\n * Exclude from the \"customize columns\" selection UI.\n */\n hiddenFromCustomColumnsSelection?: boolean;\n /**\n * Controls whether the \"hide/show\" checkbox for this column is enabled in the custom columns panel.\n * If set to false, the checkbox will be disabled and the user cannot toggle visibility for this column.\n */\n hideable?: boolean;\n /**\n * Prevent column reordering in the customization UI.\n */\n reorderDisabled?: boolean;\n /**\n * Tooltip content to display when hovering over the info icon in the column header.\n */\n tooltipContent?: string;\n}\n\nexport interface GridItem {\n /**\n * FieldId to use as the card title.\n */\n titleFieldId: string;\n /**\n * FieldId to use as the card subtitle.\n */\n subtitleFieldId?: string;\n /**\n * FieldId to use as the card image.\n */\n imageFieldId?: string;\n /**\n * Controls which content is shown in the card (preset):\n * - 'full': shows title and subtitle.\n * - 'title': shows only the title.\n * - 'empty': hides both title and subtitle.\n */\n cardContentMode?: 'full' | 'title' | 'empty'; // Footer is not supported in auto-patterns\n /**\n * Position of the image inside the card layout.\n */\n imagePlacement?: 'top' | 'side';\n}\n\nexport interface EmptyState {\n /**\n * Empty state title.\n */\n title?: string;\n /**\n * Empty state subtitle.\n */\n subtitle?: string;\n /**\n * Image to display in the empty state.\n */\n image?: {\n id: string;\n };\n /**\n * \"Add new\" call-to-action button.\n */\n addNewCta?: {\n id?: string;\n text?: string;\n };\n /**\n * Custom CTA slot (advanced).\n */\n customCta?: {\n id?: string;\n };\n}\n\nexport interface FilterOption {\n value: string;\n label: string;\n}\n\nexport type FilterSelectionMode = 'single' | 'multiple';\n\nexport type FilterOptionType =\n | 'checkbox'\n | 'inlineCheckbox'\n | 'radio'\n | 'select';\n\nexport enum ComponentTypeEnum {\n SINGLE = 'single',\n MULTI_SELECT = 'multi-select',\n RADIO_GROUP = 'radio-group',\n NUMBER = 'number',\n DATE_RANGE = 'date-range',\n}\n\nexport type FilterItems = Filter[];\n\nexport interface FiltersConfig {\n /**\n * Filter items to display.\n */\n items: FilterItems;\n /**\n * Maximum number of filters shown inline before moving to the panel.\n * @default 0 (all in panel).\n */\n maxInlineFilters?: CollectionToolbarFiltersProps['inline'];\n /**\n * Title for the filter panel drawer.\n */\n panelTitle?: string;\n}\n\nexport interface ViewsConfig {\n /**\n * Whether to show the views control.\n * @default false\n */\n enabled?: boolean;\n /**\n * Props for the Save View modal.\n */\n saveViewModalProps?: {\n /**\n * Placeholder text for the new view name input in the modal.\n */\n placeholderName?: string;\n /**\n * props for the learn more link in the modal.\n */\n learnMore?: {\n /**\n * Redirect URL for the Learn More button in the modal.\n */\n url?: string;\n };\n };\n /**\n * Props for the views control dropdown.\n */\n viewsDropdownProps?: {\n /**\n * Show the total number of items next to the views control.\n * @default false\n */\n showTotal?: boolean;\n /**\n * Hide the \"All items\" view from the dropdown. Only works when custom presets exist.\n * @default false\n */\n hideAllItemsView?: boolean;\n /**\n * Custom label for the \"All items\" view. Ignored if a preset has `isDefaultView: true`.\n * @default \"All items\"\n */\n customAllItemsViewLabel?: string;\n };\n /**\n * Custom presets to use for the views control.\n */\n presets?:\n | {\n type: 'categories';\n categories: AutoCategory[];\n }\n | {\n type: 'views';\n views: AutoView[];\n };\n}\n\nexport interface AutoCategory {\n /**\n * Category unique identifier.\n */\n id: string;\n /**\n * Category name that will be displayed in the views control.\n */\n label: string;\n /**\n * Category views.\n */\n views: AutoView[];\n /**\n * An icon that will be displayed next to the category label.\n */\n icon?: {\n tooltipContent: string;\n size?: 'small' | 'medium';\n };\n}\n\nexport interface AutoView {\n /**\n * View unique identifier.\n */\n id: string;\n /**\n * Display name for the view in the dropdown.\n */\n label: string;\n /**\n * Filters to apply when the view is selected. Keys must be filters id declared in this config.\n * @external\n */\n filters?: Record<string, AutoFilterValue | null>;\n /**\n * Column preferences for the view. Use this to control column order, visibility, and sorting.\n */\n columnPreferences?: ColumnPreferences[];\n /**\n * Makes this view the default selection instead of the \"All items\" view.\n */\n isDefaultView?: boolean;\n}\n\ninterface ColumnPreferences {\n /**\n * Column unique identifier.\n */\n id: string;\n /**\n * Sorting direction of the column in the view.\n */\n direction?: 'asc' | 'desc';\n /**\n * Pass false to hide the column from the view.\n */\n show?: boolean;\n}\n\nexport interface BaseOptionsFilterConfig {\n /**\n * Selection behavior: single choice or multiple choices.\n */\n selectionMode: FilterSelectionMode;\n}\n\nexport interface DateFilterConfig {\n /**\n * Controls behavior: presets only, custom only, or both.\n */\n mode?: DateRangeFilterMode;\n /**\n * Which preset ranges to display (only if mode supports presets).\n */\n presets?: DateRangeOptions;\n /**\n * Whether to include time selection.\n * @default true\n */\n includeTime?: boolean;\n}\n\nexport type AutoFilterValue =\n | {\n filterType: 'date';\n value: DateFilterValue;\n }\n | {\n filterType: 'number';\n value: NumberFilterValue;\n }\n | {\n filterType: 'boolean';\n value: BooleanFilterValue;\n }\n | {\n filterType: 'enum';\n value: EnumFilterValue;\n }\n | {\n filterType: 'reference';\n value: ReferenceFilterValue;\n }\n | {\n filterType: 'hasValue';\n value: HasValueFilterValue;\n };\n\nexport type DateFilterValue =\n | {\n preset: DateRangeOptions | DateRangePredefinedPresetOptions;\n }\n | {\n /**\n * Start date. format: MM-DD-YYYY\n */\n from?: string;\n /**\n * End date. format: MM-DD-YYYY\n */\n to?: string;\n };\n\nexport interface NumberFilterConfig {\n /**\n * Minimum allowed value.\n */\n min?: number;\n /**\n * Maximum allowed value.\n */\n max?: number;\n /**\n * Whether decimal values are allowed.\n */\n allowedDecimals?: boolean;\n}\n\nexport type NumberFilterValue = {\n /**\n * Minimum allowed value. default is negative infinity\n */\n from?: number;\n /**\n * Maximum allowed value. default is infinity\n */\n to?: number;\n};\n\nexport interface BooleanFilterConfig {\n /**\n * Label for the \"true\" option.\n */\n trueLabel?: string;\n /**\n * Label for the \"false\" option.\n */\n falseLabel?: string;\n}\n\nexport type BooleanFilterValue = {\n /**\n * checked for true, unchecked for false, all for all\n */\n id: 'checked' | 'unchecked' | 'all';\n /**\n * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \\<field-name\\>: \\<name\\>)\n */\n name: string;\n}[];\n\nexport type HasValueFilterValue = {\n /**\n * hasValue for cells with a value, noValue for empty cells\n */\n id: 'hasValue' | 'noValue';\n /**\n * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \\<field-name\\>: \\<name\\>)\n */\n name: string;\n}[];\n\nexport interface EnumFilterConfig extends BaseOptionsFilterConfig {\n /**\n * List of available options.\n */\n options: FilterOption[];\n /**\n * Rendering control for option appearance.\n */\n optionType?: FilterOptionType;\n}\n\nexport type EnumFilterValue = {\n /**\n * The option value (from the filter config)\n */\n id: string;\n /**\n * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \\<field-name\\>: \\<name\\>)\n */\n name: string;\n}[];\n\nexport interface DynamicOptionsFilterConfig extends BaseOptionsFilterConfig {}\n\nexport type ReferenceFilterValue = {\n /**\n * The option value (from the filter config)\n */\n id: string;\n /**\n * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \\<field-name\\>: \\<name\\>)\n */\n name: string;\n}[];\n\nexport interface Filter {\n /**\n * Filter unique identifier.\n */\n id: string;\n /**\n * Target field id this filter controls.\n */\n fieldId: string;\n /**\n * Optional filter display name (defaults to field name).\n */\n displayName?: string;\n /**\n * Optional grouping label. Filters with the same `sectionTitle` are grouped together.\n */\n sectionTitle?: string;\n /**\n * Whether the filter item is expanded by default in the panel.\n */\n openByDefault?: boolean;\n /**\n * Label shown in the table/grid tag when the filter is active.\n */\n tagLabel?: string;\n /**\n * Configuration for number inputs (NUMBER fields).\n */\n numberConfig?: NumberFilterConfig;\n /**\n * Configuration for date inputs (DATETIME fields).\n */\n dateConfig?: DateFilterConfig;\n /**\n * Configuration for boolean input labels (BOOLEAN fields).\n */\n booleanConfig?: BooleanFilterConfig;\n /**\n * Configuration for enum inputs (ARRAY/ARRAY_STRING fields).\n */\n enumConfig?: EnumFilterConfig;\n /**\n * Dynamic options configuration (advanced).\n */\n dynamicOptionsConfig?: DynamicOptionsFilterConfig;\n}\n"],"mappings":";;;;IAqdYA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"auto-patterns.fields.type_mismatch_clear": "Clear this field",
|
|
27
27
|
"auto-patterns.fields.type_mismatch_tip": "The value does not match the field type {typeName}",
|
|
28
28
|
"auto-patterns.fields.field_type_object_title": "Object",
|
|
29
|
+
"auto-patterns.fields.field_type_array_title": "Array",
|
|
29
30
|
"auto-patterns.fields.field_type_address_title": "Address",
|
|
30
31
|
"auto-patterns.fields.field_type_time_title": "Time",
|
|
31
32
|
"auto-patterns.time_input.placeholder": "Enter time",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
3
|
import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.js";
|
|
4
|
-
var _namespace_ = "
|
|
4
|
+
var _namespace_ = "addressinput1401564759";
|
|
5
5
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
6
6
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
7
7
|
export var style = _style_;
|
|
8
8
|
export var st = _style_;
|
|
9
9
|
export var namespace = _namespace_;
|
|
10
10
|
export var classes = {
|
|
11
|
-
"root": "
|
|
12
|
-
"tableAddressInput": "
|
|
11
|
+
"root": "addressinput1401564759__root",
|
|
12
|
+
"tableAddressInput": "addressinput1401564759__tableAddressInput"
|
|
13
13
|
};
|
|
14
14
|
export var keyframes = {};
|
|
15
15
|
export var layers = {};
|