@wix/auto-patterns 1.43.0 → 1.44.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/components/AutoPatternsApp/AutoPatternsApp.js +19 -5
- package/dist/cjs/components/AutoPatternsApp/AutoPatternsApp.js.map +1 -1
- package/dist/cjs/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.js +29 -74
- package/dist/cjs/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.js.map +1 -1
- package/dist/cjs/components/AutoPatternsGrid/AutoPatternsGrid.js +147 -25
- package/dist/cjs/components/AutoPatternsGrid/AutoPatternsGrid.js.map +1 -1
- package/dist/cjs/components/AutoPatternsRoute/AutoPatternsPage.js +10 -27
- package/dist/cjs/components/AutoPatternsRoute/AutoPatternsPage.js.map +1 -1
- package/dist/cjs/components/AutoPatternsTable/AutoPatternsTable.js +141 -40
- package/dist/cjs/components/AutoPatternsTable/AutoPatternsTable.js.map +1 -1
- package/dist/cjs/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.js +169 -9
- package/dist/cjs/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.js.map +1 -1
- package/dist/cjs/hooks/getCommonCollectionFeaturesAsync.js +11 -0
- package/dist/cjs/hooks/getCommonCollectionFeaturesAsync.js.map +1 -0
- package/dist/cjs/hooks/getFilterComponent.js +52 -0
- package/dist/cjs/hooks/getFilterComponent.js.map +1 -0
- package/dist/cjs/hooks/index.js +4 -11
- package/dist/cjs/hooks/index.js.map +1 -1
- package/dist/cjs/hooks/pluginsDynamicImports.js +25 -0
- package/dist/cjs/hooks/pluginsDynamicImports.js.map +1 -0
- package/dist/cjs/hooks/useAsyncFeaturesPromiseState.js +30 -0
- package/dist/cjs/hooks/useAsyncFeaturesPromiseState.js.map +1 -0
- package/dist/cjs/hooks/useBaseCollectionComponentReadyFeatures.js +62 -0
- package/dist/cjs/hooks/useBaseCollectionComponentReadyFeatures.js.map +1 -0
- package/dist/cjs/hooks/useBasePatternsStateParams.js +36 -0
- package/dist/cjs/hooks/useBasePatternsStateParams.js.map +1 -0
- package/dist/cjs/hooks/useCollectionInitAsyncDeps.js +15 -0
- package/dist/cjs/hooks/useCollectionInitAsyncDeps.js.map +1 -0
- package/dist/cjs/hooks/useCommonCollectionFeatures.js +14 -4
- package/dist/cjs/hooks/useCommonCollectionFeatures.js.map +1 -1
- package/dist/cjs/hooks/useFilters.js +17 -103
- package/dist/cjs/hooks/useFilters.js.map +1 -1
- package/dist/cjs/hooks/useFiltersState.js +112 -0
- package/dist/cjs/hooks/useFiltersState.js.map +1 -0
- package/dist/cjs/hooks/useGridFeaturesAsync.js +42 -0
- package/dist/cjs/hooks/useGridFeaturesAsync.js.map +1 -0
- package/dist/cjs/hooks/useGridVisibleFieldIds.js +17 -0
- package/dist/cjs/hooks/useGridVisibleFieldIds.js.map +1 -0
- package/dist/cjs/hooks/useSyncCollectionStateToAppContext.js +22 -0
- package/dist/cjs/hooks/useSyncCollectionStateToAppContext.js.map +1 -0
- package/dist/cjs/hooks/useTableFeaturesAsync.js +51 -0
- package/dist/cjs/hooks/useTableFeaturesAsync.js.map +1 -0
- package/dist/cjs/hooks/useTableGridSwitchFeaturesAsync.js +52 -0
- package/dist/cjs/hooks/useTableGridSwitchFeaturesAsync.js.map +1 -0
- package/dist/cjs/hooks/useTableSections.js +18 -0
- package/dist/cjs/hooks/useTableSections.js.map +1 -0
- package/dist/cjs/utils/filterCreators.js +16 -31
- package/dist/cjs/utils/filterCreators.js.map +1 -1
- package/dist/cjs/utils/minimalRequiredPatternsRuntimeCheck.js +18 -0
- package/dist/cjs/utils/minimalRequiredPatternsRuntimeCheck.js.map +1 -0
- package/dist/cjs/utils/minimalRequiredRuntimeCheck.js +21 -0
- package/dist/cjs/utils/minimalRequiredRuntimeCheck.js.map +1 -0
- package/dist/esm/components/AutoPatternsApp/AutoPatternsApp.js +14 -1
- package/dist/esm/components/AutoPatternsApp/AutoPatternsApp.js.map +1 -1
- package/dist/esm/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.js +23 -31
- package/dist/esm/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.js.map +1 -1
- package/dist/esm/components/AutoPatternsGrid/AutoPatternsGrid.js +134 -28
- package/dist/esm/components/AutoPatternsGrid/AutoPatternsGrid.js.map +1 -1
- package/dist/esm/components/AutoPatternsRoute/AutoPatternsPage.js +3 -7
- package/dist/esm/components/AutoPatternsRoute/AutoPatternsPage.js.map +1 -1
- package/dist/esm/components/AutoPatternsTable/AutoPatternsTable.js +126 -41
- package/dist/esm/components/AutoPatternsTable/AutoPatternsTable.js.map +1 -1
- package/dist/esm/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.js +155 -10
- package/dist/esm/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.js.map +1 -1
- package/dist/esm/hooks/getCommonCollectionFeaturesAsync.js +7 -0
- package/dist/esm/hooks/getCommonCollectionFeaturesAsync.js.map +1 -0
- package/dist/esm/hooks/getFilterComponent.js +48 -0
- package/dist/esm/hooks/getFilterComponent.js.map +1 -0
- package/dist/esm/hooks/index.js +1 -2
- package/dist/esm/hooks/index.js.map +1 -1
- package/dist/esm/hooks/pluginsDynamicImports.js +13 -0
- package/dist/esm/hooks/pluginsDynamicImports.js.map +1 -0
- package/dist/esm/hooks/useAsyncFeaturesPromiseState.js +28 -0
- package/dist/esm/hooks/useAsyncFeaturesPromiseState.js.map +1 -0
- package/dist/esm/hooks/useBaseCollectionComponentReadyFeatures.js +58 -0
- package/dist/esm/hooks/useBaseCollectionComponentReadyFeatures.js.map +1 -0
- package/dist/esm/hooks/useBasePatternsStateParams.js +32 -0
- package/dist/esm/hooks/useBasePatternsStateParams.js.map +1 -0
- package/dist/esm/hooks/useCollectionInitAsyncDeps.js +11 -0
- package/dist/esm/hooks/useCollectionInitAsyncDeps.js.map +1 -0
- package/dist/esm/hooks/useCommonCollectionFeatures.js +1 -0
- package/dist/esm/hooks/useCommonCollectionFeatures.js.map +1 -1
- package/dist/esm/hooks/useFilters.js +14 -100
- package/dist/esm/hooks/useFilters.js.map +1 -1
- package/dist/esm/hooks/useFiltersState.js +107 -0
- package/dist/esm/hooks/useFiltersState.js.map +1 -0
- package/dist/esm/hooks/useGridFeaturesAsync.js +37 -0
- package/dist/esm/hooks/useGridFeaturesAsync.js.map +1 -0
- package/dist/esm/hooks/useGridVisibleFieldIds.js +13 -0
- package/dist/esm/hooks/useGridVisibleFieldIds.js.map +1 -0
- package/dist/esm/hooks/useSyncCollectionStateToAppContext.js +18 -0
- package/dist/esm/hooks/useSyncCollectionStateToAppContext.js.map +1 -0
- package/dist/esm/hooks/useTableFeaturesAsync.js +46 -0
- package/dist/esm/hooks/useTableFeaturesAsync.js.map +1 -0
- package/dist/esm/hooks/useTableGridSwitchFeaturesAsync.js +47 -0
- package/dist/esm/hooks/useTableGridSwitchFeaturesAsync.js.map +1 -0
- package/dist/esm/hooks/useTableSections.js +14 -0
- package/dist/esm/hooks/useTableSections.js.map +1 -0
- package/dist/esm/utils/filterCreators.js +17 -32
- package/dist/esm/utils/filterCreators.js.map +1 -1
- package/dist/esm/utils/minimalRequiredPatternsRuntimeCheck.js +14 -0
- package/dist/esm/utils/minimalRequiredPatternsRuntimeCheck.js.map +1 -0
- package/dist/esm/utils/minimalRequiredRuntimeCheck.js +17 -0
- package/dist/esm/utils/minimalRequiredRuntimeCheck.js.map +1 -0
- package/dist/types/components/AutoPatternsApp/AutoPatternsApp.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.d.ts +6 -0
- package/dist/types/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsGrid/AutoPatternsGrid.d.ts +17 -2
- package/dist/types/components/AutoPatternsGrid/AutoPatternsGrid.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsRoute/AutoPatternsPage.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsTable/AutoPatternsTable.d.ts +17 -2
- package/dist/types/components/AutoPatternsTable/AutoPatternsTable.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.d.ts +18 -2
- package/dist/types/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.d.ts.map +1 -1
- package/dist/types/hooks/getCommonCollectionFeaturesAsync.d.ts +4 -0
- package/dist/types/hooks/getCommonCollectionFeaturesAsync.d.ts.map +1 -0
- package/dist/types/hooks/getFilterComponent.d.ts +4 -0
- package/dist/types/hooks/getFilterComponent.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +1 -2
- package/dist/types/hooks/index.d.ts.map +1 -1
- package/dist/types/hooks/pluginsDynamicImports.d.ts +7 -0
- package/dist/types/hooks/pluginsDynamicImports.d.ts.map +1 -0
- package/dist/types/hooks/useAsyncFeaturesPromiseState.d.ts +6 -0
- package/dist/types/hooks/useAsyncFeaturesPromiseState.d.ts.map +1 -0
- package/dist/types/hooks/useBaseCollectionComponentReadyFeatures.d.ts +36 -0
- package/dist/types/hooks/useBaseCollectionComponentReadyFeatures.d.ts.map +1 -0
- package/dist/types/hooks/useBasePatternsStateParams.d.ts +31 -0
- package/dist/types/hooks/useBasePatternsStateParams.d.ts.map +1 -0
- package/dist/types/hooks/useCollectionInitAsyncDeps.d.ts +4 -0
- package/dist/types/hooks/useCollectionInitAsyncDeps.d.ts.map +1 -0
- package/dist/types/hooks/useCommonCollectionFeatures.d.ts +1 -0
- package/dist/types/hooks/useCommonCollectionFeatures.d.ts.map +1 -1
- package/dist/types/hooks/useFilters.d.ts +9 -21
- package/dist/types/hooks/useFilters.d.ts.map +1 -1
- package/dist/types/hooks/useFiltersState.d.ts +26 -0
- package/dist/types/hooks/useFiltersState.d.ts.map +1 -0
- package/dist/types/hooks/useGridDragAndDrop.d.ts +1 -1
- package/dist/types/hooks/useGridFeaturesAsync.d.ts +26 -0
- package/dist/types/hooks/useGridFeaturesAsync.d.ts.map +1 -0
- package/dist/types/hooks/useGridVisibleFieldIds.d.ts +3 -0
- package/dist/types/hooks/useGridVisibleFieldIds.d.ts.map +1 -0
- package/dist/types/hooks/useSyncCollectionStateToAppContext.d.ts +6 -0
- package/dist/types/hooks/useSyncCollectionStateToAppContext.d.ts.map +1 -0
- package/dist/types/hooks/useTableFeaturesAsync.d.ts +29 -0
- package/dist/types/hooks/useTableFeaturesAsync.d.ts.map +1 -0
- package/dist/types/hooks/useTableGridSwitchDragAndDrop.d.ts +1 -1
- package/dist/types/hooks/useTableGridSwitchFeaturesAsync.d.ts +29 -0
- package/dist/types/hooks/useTableGridSwitchFeaturesAsync.d.ts.map +1 -0
- package/dist/types/hooks/useTableSections.d.ts +8 -0
- package/dist/types/hooks/useTableSections.d.ts.map +1 -0
- package/dist/types/utils/filterCreators.d.ts +10 -19
- package/dist/types/utils/filterCreators.d.ts.map +1 -1
- package/dist/types/utils/minimalRequiredPatternsRuntimeCheck.d.ts +5 -0
- package/dist/types/utils/minimalRequiredPatternsRuntimeCheck.d.ts.map +1 -0
- package/dist/types/utils/minimalRequiredRuntimeCheck.d.ts +9 -0
- package/dist/types/utils/minimalRequiredRuntimeCheck.d.ts.map +1 -0
- package/package.json +14 -13
- package/dist/cjs/hooks/useGridFeatures.js +0 -63
- package/dist/cjs/hooks/useGridFeatures.js.map +0 -1
- package/dist/cjs/hooks/useTableFeatures.js +0 -79
- package/dist/cjs/hooks/useTableFeatures.js.map +0 -1
- package/dist/cjs/hooks/useTableGridSwitchFeatures.js +0 -83
- package/dist/cjs/hooks/useTableGridSwitchFeatures.js.map +0 -1
- package/dist/esm/hooks/useGridFeatures.js +0 -58
- package/dist/esm/hooks/useGridFeatures.js.map +0 -1
- package/dist/esm/hooks/useTableFeatures.js +0 -74
- package/dist/esm/hooks/useTableFeatures.js.map +0 -1
- package/dist/esm/hooks/useTableGridSwitchFeatures.js +0 -78
- package/dist/esm/hooks/useTableGridSwitchFeatures.js.map +0 -1
- package/dist/types/hooks/useGridFeatures.d.ts +0 -43
- package/dist/types/hooks/useGridFeatures.d.ts.map +0 -1
- package/dist/types/hooks/useTableFeatures.d.ts +0 -27
- package/dist/types/hooks/useTableFeatures.d.ts.map +0 -1
- package/dist/types/hooks/useTableGridSwitchFeatures.d.ts +0 -52
- package/dist/types/hooks/useTableGridSwitchFeatures.d.ts.map +0 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { dateRangeFilter, idNameArrayFilter, numberRangeFilter
|
|
1
|
+
import { dateRangeFilter, idNameArrayFilter, numberRangeFilter } from '@wix/patterns';
|
|
2
2
|
import { BooleanFilters } from '../dataSourceAdapters/constants';
|
|
3
3
|
export const createDateTimeFilter = _ref => {
|
|
4
4
|
let {
|
|
5
5
|
id,
|
|
6
6
|
fieldId,
|
|
7
7
|
commonFilterProps,
|
|
8
|
-
config
|
|
8
|
+
config,
|
|
9
|
+
fieldDefinition
|
|
9
10
|
} = _ref;
|
|
10
11
|
return {
|
|
11
12
|
key: id,
|
|
12
13
|
fieldId,
|
|
14
|
+
fieldDefinition,
|
|
13
15
|
filter: dateRangeFilter(),
|
|
14
|
-
component: DateRangeFilter,
|
|
15
16
|
props: {
|
|
16
17
|
...commonFilterProps,
|
|
17
18
|
mode: config == null ? void 0 : config.mode,
|
|
@@ -24,12 +25,14 @@ export const createBooleanFilter = _ref2 => {
|
|
|
24
25
|
let {
|
|
25
26
|
id,
|
|
26
27
|
fieldId,
|
|
28
|
+
fieldDefinition,
|
|
27
29
|
commonFilterProps,
|
|
28
30
|
config
|
|
29
31
|
} = _ref2;
|
|
30
32
|
return {
|
|
31
33
|
key: id,
|
|
32
34
|
fieldId,
|
|
35
|
+
fieldDefinition,
|
|
33
36
|
filter: idNameArrayFilter({
|
|
34
37
|
matches: (fieldValue, filterValue) => {
|
|
35
38
|
if (fieldValue) {
|
|
@@ -38,7 +41,6 @@ export const createBooleanFilter = _ref2 => {
|
|
|
38
41
|
return filterValue.some(v => v.id === BooleanFilters.unchecked);
|
|
39
42
|
}
|
|
40
43
|
}),
|
|
41
|
-
component: RadioGroupFilter,
|
|
42
44
|
props: {
|
|
43
45
|
...commonFilterProps,
|
|
44
46
|
data: [{
|
|
@@ -55,14 +57,15 @@ export const createNumberFilter = _ref3 => {
|
|
|
55
57
|
let {
|
|
56
58
|
id,
|
|
57
59
|
fieldId,
|
|
60
|
+
fieldDefinition,
|
|
58
61
|
commonFilterProps,
|
|
59
62
|
config
|
|
60
63
|
} = _ref3;
|
|
61
64
|
return {
|
|
62
65
|
key: id,
|
|
63
66
|
fieldId,
|
|
67
|
+
fieldDefinition,
|
|
64
68
|
filter: numberRangeFilter(),
|
|
65
|
-
component: NumberRangeFilter,
|
|
66
69
|
props: {
|
|
67
70
|
...commonFilterProps,
|
|
68
71
|
min: config == null ? void 0 : config.min,
|
|
@@ -75,65 +78,47 @@ export const createEnumFilter = _ref4 => {
|
|
|
75
78
|
let {
|
|
76
79
|
id,
|
|
77
80
|
fieldId,
|
|
81
|
+
fieldDefinition,
|
|
78
82
|
commonFilterProps,
|
|
79
83
|
config
|
|
80
84
|
} = _ref4;
|
|
81
85
|
const {
|
|
82
|
-
options
|
|
83
|
-
selectionMode,
|
|
84
|
-
optionType
|
|
86
|
+
options
|
|
85
87
|
} = config;
|
|
86
88
|
const data = (options == null ? void 0 : options.map(option => ({
|
|
87
89
|
id: option.value,
|
|
88
90
|
name: option.label
|
|
89
91
|
}))) ?? [];
|
|
90
|
-
const inlineComponentThreshold = 5;
|
|
91
|
-
let component;
|
|
92
|
-
if (selectionMode === 'single') {
|
|
93
|
-
component = data.length > inlineComponentThreshold ? AutoCompleteFilter : RadioGroupFilter;
|
|
94
|
-
if (optionType === 'select') {
|
|
95
|
-
component = AutoCompleteFilter;
|
|
96
|
-
} else if (optionType === 'radio') {
|
|
97
|
-
component = RadioGroupFilter;
|
|
98
|
-
}
|
|
99
|
-
} else {
|
|
100
|
-
component = data.length > inlineComponentThreshold ? MultiSelectCheckboxFilter : MultiInlineCheckboxFilter;
|
|
101
|
-
if (optionType === 'select') {
|
|
102
|
-
component = MultiSelectCollectionFilter;
|
|
103
|
-
} else if (optionType === 'inlineCheckbox') {
|
|
104
|
-
component = MultiInlineCheckboxFilter;
|
|
105
|
-
} else if (optionType === 'checkbox') {
|
|
106
|
-
component = MultiSelectCheckboxFilter;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
92
|
return {
|
|
110
93
|
key: id,
|
|
111
94
|
fieldId,
|
|
95
|
+
fieldDefinition,
|
|
112
96
|
filter: idNameArrayFilter(),
|
|
113
|
-
component,
|
|
114
97
|
collectionData: data,
|
|
115
98
|
props: {
|
|
116
99
|
...commonFilterProps,
|
|
117
100
|
data
|
|
118
|
-
}
|
|
101
|
+
},
|
|
102
|
+
enumConfig: config
|
|
119
103
|
};
|
|
120
104
|
};
|
|
121
105
|
export const createReferenceFilter = _ref5 => {
|
|
122
106
|
let {
|
|
123
107
|
id,
|
|
124
108
|
fieldId,
|
|
109
|
+
fieldDefinition,
|
|
125
110
|
commonFilterProps,
|
|
126
111
|
config,
|
|
127
112
|
additionalParams
|
|
128
113
|
} = _ref5;
|
|
129
|
-
const component = (config == null ? void 0 : config.selectionMode) === 'single' ? AutoCompleteFilter : MultiSelectCollectionFilter;
|
|
130
114
|
return {
|
|
131
115
|
key: id,
|
|
132
116
|
fieldId,
|
|
117
|
+
fieldDefinition,
|
|
133
118
|
filter: idNameArrayFilter(),
|
|
134
|
-
component,
|
|
135
119
|
collectionId: additionalParams.referencedSchema.id,
|
|
136
|
-
props: commonFilterProps
|
|
120
|
+
props: commonFilterProps,
|
|
121
|
+
dynamicOptionsFilterConfig: config
|
|
137
122
|
};
|
|
138
123
|
};
|
|
139
124
|
//# sourceMappingURL=filterCreators.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["dateRangeFilter","idNameArrayFilter","numberRangeFilter","
|
|
1
|
+
{"version":3,"names":["dateRangeFilter","idNameArrayFilter","numberRangeFilter","BooleanFilters","createDateTimeFilter","_ref","id","fieldId","commonFilterProps","config","fieldDefinition","key","filter","props","mode","dateRangeOptions","presets","filterByTime","includeTime","createBooleanFilter","_ref2","matches","fieldValue","filterValue","some","v","checked","unchecked","data","name","trueLabel","falseLabel","createNumberFilter","_ref3","min","max","decimal","allowedDecimals","createEnumFilter","_ref4","options","map","option","value","label","collectionData","enumConfig","createReferenceFilter","_ref5","additionalParams","collectionId","referencedSchema","dynamicOptionsFilterConfig"],"sources":["../../../src/utils/filterCreators.ts"],"sourcesContent":["import {\n dateRangeFilter,\n idNameArrayFilter,\n numberRangeFilter,\n} from '@wix/patterns';\nimport { BooleanFilters } from '../dataSourceAdapters/constants';\nimport {\n DynamicOptionsFilterConfig,\n EnumFilterConfig,\n Field,\n SchemaConfig,\n} from '../types';\nimport { FilterOptions } from '../hooks/useFiltersState';\n\ninterface FilterOption {\n value: string;\n label: string;\n}\n\ninterface BaseFilterParams {\n id: string;\n fieldId: string;\n commonFilterProps: Record<string, any>;\n fieldDefinition: Field;\n}\n\nexport const createDateTimeFilter = ({\n id,\n fieldId,\n commonFilterProps,\n config,\n fieldDefinition,\n}: BaseFilterParams & {\n config?: {\n mode?: 'ONLY_PREDEFINED' | 'ONLY_CUSTOM' | 'COMBINE';\n presets?: string[];\n includeTime?: boolean;\n };\n}): FilterOptions => ({\n key: id,\n fieldId,\n fieldDefinition,\n filter: dateRangeFilter(),\n props: {\n ...commonFilterProps,\n mode: config?.mode,\n dateRangeOptions: config?.presets,\n filterByTime: config?.includeTime,\n },\n});\n\nexport const createBooleanFilter = ({\n id,\n fieldId,\n fieldDefinition,\n commonFilterProps,\n config,\n}: BaseFilterParams & {\n config?: {\n trueLabel?: string;\n falseLabel?: string;\n };\n}): FilterOptions => ({\n key: id,\n fieldId,\n fieldDefinition,\n filter: idNameArrayFilter({\n matches: (fieldValue, filterValue) => {\n if (fieldValue) {\n return filterValue.some((v) => v.id === BooleanFilters.checked);\n }\n return filterValue.some((v) => v.id === BooleanFilters.unchecked);\n },\n }),\n props: {\n ...commonFilterProps,\n data: [\n {\n id: 'checked',\n name: config?.trueLabel || 'Yes',\n },\n {\n id: 'unchecked',\n name: config?.falseLabel || 'No',\n },\n ],\n },\n});\n\nexport const createNumberFilter = ({\n id,\n fieldId,\n fieldDefinition,\n commonFilterProps,\n config,\n}: BaseFilterParams & {\n config?: {\n min?: number;\n max?: number;\n allowedDecimals?: boolean;\n };\n}): FilterOptions => ({\n key: id,\n fieldId,\n fieldDefinition,\n filter: numberRangeFilter(),\n props: {\n ...commonFilterProps,\n min: config?.min,\n max: config?.max,\n decimal: config?.allowedDecimals,\n },\n});\n\nexport const createEnumFilter = ({\n id,\n fieldId,\n fieldDefinition,\n commonFilterProps,\n config,\n}: BaseFilterParams & {\n config: EnumFilterConfig;\n}): FilterOptions => {\n const { options } = config;\n\n const data =\n options?.map((option: FilterOption) => ({\n id: option.value,\n name: option.label,\n })) ?? [];\n\n return {\n key: id,\n fieldId,\n fieldDefinition,\n filter: idNameArrayFilter(),\n collectionData: data,\n props: { ...commonFilterProps, data },\n enumConfig: config,\n };\n};\n\nexport const createReferenceFilter = ({\n id,\n fieldId,\n fieldDefinition,\n commonFilterProps,\n config,\n additionalParams,\n}: BaseFilterParams & {\n config?: DynamicOptionsFilterConfig;\n additionalParams: {\n referencedSchema: SchemaConfig;\n };\n}): FilterOptions => {\n return {\n key: id,\n fieldId,\n fieldDefinition,\n filter: idNameArrayFilter(),\n collectionId: additionalParams.referencedSchema.id,\n props: commonFilterProps,\n dynamicOptionsFilterConfig: config,\n };\n};\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import patternsPackageJson from '@wix/patterns/package.json';
|
|
2
|
+
import { minimalRequiredRuntimeCheck } from './minimalRequiredRuntimeCheck';
|
|
3
|
+
export function minimalRequiredPatternsRuntimeCheck(_ref) {
|
|
4
|
+
let {
|
|
5
|
+
required,
|
|
6
|
+
requiredBy
|
|
7
|
+
} = _ref;
|
|
8
|
+
return minimalRequiredRuntimeCheck({
|
|
9
|
+
packageJson: patternsPackageJson,
|
|
10
|
+
required,
|
|
11
|
+
requiredBy
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=minimalRequiredPatternsRuntimeCheck.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["patternsPackageJson","minimalRequiredRuntimeCheck","minimalRequiredPatternsRuntimeCheck","_ref","required","requiredBy","packageJson"],"sources":["../../../src/utils/minimalRequiredPatternsRuntimeCheck.ts"],"sourcesContent":["import patternsPackageJson from '@wix/patterns/package.json';\nimport { minimalRequiredRuntimeCheck } from './minimalRequiredRuntimeCheck';\n\nexport function minimalRequiredPatternsRuntimeCheck({\n required,\n requiredBy,\n}: {\n required: string;\n requiredBy?: string;\n}) {\n return minimalRequiredRuntimeCheck({\n packageJson: patternsPackageJson,\n required,\n requiredBy,\n });\n}\n"],"mappings":"AAAA,OAAOA,mBAAmB,MAAM,4BAA4B;AAC5D,SAASC,2BAA2B,QAAQ,+BAA+B;AAE3E,OAAO,SAASC,mCAAmCA,CAAAC,IAAA,EAMhD;EAAA,IANiD;IAClDC,QAAQ;IACRC;EAIF,CAAC,GAAAF,IAAA;EACC,OAAOF,2BAA2B,CAAC;IACjCK,WAAW,EAAEN,mBAAmB;IAChCI,QAAQ;IACRC;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import semverSatisfies from 'semver/functions/satisfies';
|
|
2
|
+
export function minimalRequiredRuntimeCheck(_ref) {
|
|
3
|
+
let {
|
|
4
|
+
packageJson,
|
|
5
|
+
required,
|
|
6
|
+
requiredBy = 'WixPatterns'
|
|
7
|
+
} = _ref;
|
|
8
|
+
const {
|
|
9
|
+
version: actual,
|
|
10
|
+
name: packageName
|
|
11
|
+
} = packageJson;
|
|
12
|
+
const satisfies = actual.startsWith('0.0.0') || semverSatisfies(actual, required);
|
|
13
|
+
if (!satisfies) {
|
|
14
|
+
throw new Error(`[@wix/patterns]: ${packageName}@${actual} does not satisfy ${requiredBy} minimal requirement: ${required}`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=minimalRequiredRuntimeCheck.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["semverSatisfies","minimalRequiredRuntimeCheck","_ref","packageJson","required","requiredBy","version","actual","name","packageName","satisfies","startsWith","Error"],"sources":["../../../src/utils/minimalRequiredRuntimeCheck.ts"],"sourcesContent":["import semverSatisfies from 'semver/functions/satisfies';\n\nexport function minimalRequiredRuntimeCheck({\n packageJson,\n required,\n requiredBy = 'WixPatterns',\n}: {\n packageJson: { name: string; version: string };\n required: string;\n requiredBy?: string;\n}) {\n const { version: actual, name: packageName } = packageJson;\n\n const satisfies =\n actual.startsWith('0.0.0') || semverSatisfies(actual, required);\n\n if (!satisfies) {\n throw new Error(\n `[@wix/patterns]: ${packageName}@${actual} does not satisfy ${requiredBy} minimal requirement: ${required}`,\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,eAAe,MAAM,4BAA4B;AAExD,OAAO,SAASC,2BAA2BA,CAAAC,IAAA,EAQxC;EAAA,IARyC;IAC1CC,WAAW;IACXC,QAAQ;IACRC,UAAU,GAAG;EAKf,CAAC,GAAAH,IAAA;EACC,MAAM;IAAEI,OAAO,EAAEC,MAAM;IAAEC,IAAI,EAAEC;EAAY,CAAC,GAAGN,WAAW;EAE1D,MAAMO,SAAS,GACbH,MAAM,CAACI,UAAU,CAAC,OAAO,CAAC,IAAIX,eAAe,CAACO,MAAM,EAAEH,QAAQ,CAAC;EAEjE,IAAI,CAACM,SAAS,EAAE;IACd,MAAM,IAAIE,KAAK,CACb,oBAAoBH,WAAW,IAAIF,MAAM,qBAAqBF,UAAU,yBAAyBD,QAAQ,EAC3G,CAAC;EACH;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoPatternsApp.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsApp/AutoPatternsApp.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AutoPatternsApp.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsApp/AutoPatternsApp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAOxC,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA0B1D,CAAC"}
|
package/dist/types/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CollectionComponentConfig } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* AutoPatternsCollectionComponent - Entry Point for All Data Display Flows
|
|
5
|
+
*
|
|
6
|
+
* This is the main component that determines which data display pattern to render based on configuration.
|
|
7
|
+
* It serves as the entry point for three distinct rendering flows:
|
|
8
|
+
*/
|
|
3
9
|
export declare const AutoPatternsCollectionComponent: ({ component, index, }: {
|
|
4
10
|
component: CollectionComponentConfig;
|
|
5
11
|
index: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoPatternsCollectionComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AutoPatternsCollectionComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAOxD;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,GAAI,uBAG7C;IACD,SAAS,EAAE,yBAAyB,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;CACf,sBAqDA,CAAC"}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { GridConfig } from '../../types';
|
|
3
3
|
export interface AutoPatternsGridContentProps {
|
|
4
|
-
|
|
4
|
+
config: GridConfig;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* AutoPatternsGrid - Step 2 in Grid Flow
|
|
8
|
+
*
|
|
9
|
+
* FLOW 2: AutoPatternsCollectionComponent → [AutoPatternsGrid] → useGridFeaturesAsync → AutoPatternsGridLoaded → useBaseCollectionComponentReadyFeatures → Grid
|
|
10
|
+
*
|
|
11
|
+
* This is the main grid component that orchestrates the grid rendering flow.
|
|
12
|
+
* It handles the loading states and coordinates between async feature loading and final rendering.
|
|
13
|
+
*
|
|
14
|
+
* Key Responsibilities:
|
|
15
|
+
* - Extracts grid display features (renderItem, preset, imagePlacement) and visible field IDs
|
|
16
|
+
* - Calls useGridFeaturesAsync (Step 3) to load grid-specific async features
|
|
17
|
+
* - Creates initial grid state with basic collection
|
|
18
|
+
* - Monitors loading status and switches between loading/loaded states
|
|
19
|
+
* - Renders skeleton grid during loading or AutoPatternsGridLoaded when ready
|
|
20
|
+
*/
|
|
21
|
+
export declare const AutoPatternsGrid: (props: AutoPatternsGridContentProps) => React.JSX.Element;
|
|
7
22
|
//# sourceMappingURL=AutoPatternsGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoPatternsGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsGrid/AutoPatternsGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AutoPatternsGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsGrid/AutoPatternsGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AASxC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAMzC,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,UAAU,CAAC;CACpB;AAiED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,4BAA4B,sBA0DnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoPatternsPage.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsRoute/AutoPatternsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"AutoPatternsPage.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsRoute/AutoPatternsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAWzC,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,GAAI,gBAAgB,qBAAqB,6BA4BrE,CAAC"}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableConfig } from '../../types';
|
|
3
3
|
export interface AutoPatternsTableContentProps {
|
|
4
|
-
|
|
4
|
+
config: TableConfig;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* AutoPatternsTable - Step 2 in Table Flow
|
|
8
|
+
*
|
|
9
|
+
* FLOW 1: AutoPatternsCollectionComponent → [AutoPatternsTable] → useTableFeaturesAsync → AutoPatternsTableLoaded → useBaseCollectionComponentReadyFeatures → Table
|
|
10
|
+
*
|
|
11
|
+
* This is the main table component that orchestrates the table rendering flow.
|
|
12
|
+
* It handles the loading states and coordinates between async feature loading and final rendering.
|
|
13
|
+
*
|
|
14
|
+
* Key Responsibilities:
|
|
15
|
+
* - Prepares visible field IDs from table column configuration
|
|
16
|
+
* - Calls useTableFeaturesAsync (Step 3) to load table-specific async features
|
|
17
|
+
* - Creates initial table state with basic collection
|
|
18
|
+
* - Monitors loading status and switches between loading/loaded states
|
|
19
|
+
* - Renders skeleton table during loading or AutoPatternsTableLoaded when ready
|
|
20
|
+
*/
|
|
21
|
+
export declare const AutoPatternsTable: (props: AutoPatternsTableContentProps) => React.JSX.Element;
|
|
7
22
|
//# sourceMappingURL=AutoPatternsTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoPatternsTable.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsTable/AutoPatternsTable.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AutoPatternsTable.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsTable/AutoPatternsTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AASjD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK1C,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,WAAW,CAAC;CACrB;AAmED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,6BAA6B,sBA2DrE,CAAC"}
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableGridSwitchConfig } from '../../types';
|
|
3
3
|
export interface AutoPatternsTableGridSwitchProps {
|
|
4
|
-
|
|
4
|
+
config: TableGridSwitchConfig;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* AutoPatternsTableGridSwitch - Step 2 in TableGridSwitch Flow
|
|
8
|
+
*
|
|
9
|
+
* FLOW 3: AutoPatternsCollectionComponent → [AutoPatternsTableGridSwitch] → useTableGridSwitchFeaturesAsync → AutoPatternsTableGridSwitchLoaded → useBaseCollectionComponentReadyFeatures → TableGridSwitch
|
|
10
|
+
*
|
|
11
|
+
* This is the main table-grid-switch component that orchestrates the combined table/grid rendering flow.
|
|
12
|
+
* It handles both table and grid configurations simultaneously to support runtime switching.
|
|
13
|
+
*
|
|
14
|
+
* Key Responsibilities:
|
|
15
|
+
* - Merges visible field IDs from both table columns AND grid features for comprehensive data fetching
|
|
16
|
+
* - Extracts grid display features (renderItem, preset, imagePlacement) for grid mode
|
|
17
|
+
* - Calls useTableGridSwitchFeaturesAsync (Step 3) to load combined async features
|
|
18
|
+
* - Creates initial table-grid-switch state with basic collection
|
|
19
|
+
* - Monitors loading status and switches between loading/loaded states
|
|
20
|
+
* - Renders skeleton TableGridSwitch during loading or AutoPatternsTableGridSwitchLoaded when ready
|
|
21
|
+
*/
|
|
22
|
+
export declare const AutoPatternsTableGridSwitch: (props: AutoPatternsTableGridSwitchProps) => React.JSX.Element;
|
|
7
23
|
//# sourceMappingURL=AutoPatternsTableGridSwitch.d.ts.map
|
package/dist/types/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoPatternsTableGridSwitch.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AutoPatternsTableGridSwitch.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AASjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAMpD,MAAM,WAAW,gCAAgC;IAC/C,MAAM,EAAE,qBAAqB,CAAC;CAC/B;AAwED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,gCAAgC,sBA+ExC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCommonCollectionFeaturesAsync.d.ts","sourceRoot":"","sources":["../../../src/hooks/getCommonCollectionFeaturesAsync.ts"],"names":[],"mappings":"AAEA,wBAAgB,gCAAgC;;EAI/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFilterComponent.d.ts","sourceRoot":"","sources":["../../../src/hooks/getFilterComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAUlD,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,GAAG,WAAW,GAAG,IAAI,CAwD5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const importTableDragAndDrop: () => Promise<typeof import("./useTableDragAndDrop")>;
|
|
2
|
+
export declare const importTableGridSwitchDragAndDrop: () => Promise<typeof import("./useTableGridSwitchDragAndDrop")>;
|
|
3
|
+
export declare const importGridDragAndDrop: () => Promise<typeof import("./useGridDragAndDrop")>;
|
|
4
|
+
export declare const importBaseTableFeatures: () => Promise<typeof import("./useBaseTableFeatures")>;
|
|
5
|
+
export declare const importCommonCollectionFeatures: () => Promise<typeof import("./useCommonCollectionFeatures")>;
|
|
6
|
+
export declare const importTableSections: () => Promise<typeof import("./useTableSections")>;
|
|
7
|
+
//# sourceMappingURL=pluginsDynamicImports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluginsDynamicImports.d.ts","sourceRoot":"","sources":["../../../src/hooks/pluginsDynamicImports.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,uDAIhC,CAAC;AAEJ,eAAO,MAAM,gCAAgC,iEAI1C,CAAC;AAEJ,eAAO,MAAM,qBAAqB,sDAI/B,CAAC;AAEJ,eAAO,MAAM,uBAAuB,wDAIjC,CAAC;AAEJ,eAAO,MAAM,8BAA8B,+DAIxC,CAAC;AAEJ,eAAO,MAAM,mBAAmB,oDAI7B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PromiseState } from '@wix/patterns/core';
|
|
2
|
+
export type AsyncFeaturesState<T extends Record<string, () => Promise<any> | null>> = {
|
|
3
|
+
[K in keyof T]: T[K] extends () => Promise<infer R> | null ? R | null | undefined : null | undefined;
|
|
4
|
+
};
|
|
5
|
+
export declare function useAsyncFeaturesPromiseState<T extends Record<string, () => Promise<any> | null>>(loaders: T): PromiseState<AsyncFeaturesState<T>>;
|
|
6
|
+
//# sourceMappingURL=useAsyncFeaturesPromiseState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAsyncFeaturesPromiseState.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAsyncFeaturesPromiseState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,MAAM,MAAM,kBAAkB,CAC5B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,IACjD;KACD,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,GACtD,CAAC,GAAG,IAAI,GAAG,SAAS,GACpB,IAAI,GAAG,SAAS;CACrB,CAAC;AAEF,wBAAgB,4BAA4B,CAC1C,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,EACnD,OAAO,EAAE,CAAC,GAAG,YAAY,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CA4BjD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BaseCollectionComponentConfig } from '../types';
|
|
2
|
+
import { CollectionState } from '@wix/patterns';
|
|
3
|
+
import { getCommonCollectionFeaturesAsync } from './getCommonCollectionFeaturesAsync';
|
|
4
|
+
import { useBasePatternsStateParams } from './useBasePatternsStateParams';
|
|
5
|
+
import { PromiseState } from '@wix/patterns/core';
|
|
6
|
+
import { AsyncFeaturesState } from './useAsyncFeaturesPromiseState';
|
|
7
|
+
export interface UseBaseCollectionComponentReadyFeaturesParams {
|
|
8
|
+
config: BaseCollectionComponentConfig;
|
|
9
|
+
collection: CollectionState<any>;
|
|
10
|
+
asyncFeaturesState: PromiseState<AsyncFeaturesState<ReturnType<typeof getCommonCollectionFeaturesAsync>>>;
|
|
11
|
+
baseStateParams: ReturnType<typeof useBasePatternsStateParams>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* useBaseCollectionComponentReadyFeatures - Step 5 (Shared Across All Flows)
|
|
15
|
+
*
|
|
16
|
+
* This is the shared hook used by all flows to prepare final collection features once async loading is complete.
|
|
17
|
+
* It handles the common functionality needed by all collection components regardless of display mode.
|
|
18
|
+
*
|
|
19
|
+
* Key Responsibilities:
|
|
20
|
+
* - Syncs collection state to app context for external consumption
|
|
21
|
+
* - Initializes async dependencies and connects them to the collection
|
|
22
|
+
* - Extracts and prepares common collection features (filters, search, actions, etc.)
|
|
23
|
+
* - Returns standardized props that all final components (Table/Grid/TableGridSwitch) can use
|
|
24
|
+
* - Provides consistent interface across all three rendering flows
|
|
25
|
+
*/
|
|
26
|
+
export declare function useBaseCollectionComponentReadyFeatures(props: UseBaseCollectionComponentReadyFeaturesParams): {
|
|
27
|
+
filters: import("react").JSX.Element | undefined;
|
|
28
|
+
search?: boolean | undefined;
|
|
29
|
+
title?: import("react").JSX.Element | undefined;
|
|
30
|
+
views?: import("react").JSX.Element | undefined;
|
|
31
|
+
emptyState?: import("react").JSX.Element | undefined;
|
|
32
|
+
actionCell?: ((item: any, index: any, api: any) => {}) | undefined;
|
|
33
|
+
bulkActionToolbar?: ((param: import("./useBulkActionToolbar").BulkActionToolbarRenderProp) => import("react").JSX.Element) | undefined;
|
|
34
|
+
optimisticActions?: import("@wix/patterns").CollectionOptimisticActions<unknown, import("@wix/patterns").FiltersMap> | undefined;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=useBaseCollectionComponentReadyFeatures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBaseCollectionComponentReadyFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBaseCollectionComponentReadyFeatures.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,eAAe,EAAe,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,WAAW,6CAA6C;IAC5D,MAAM,EAAE,6BAA6B,CAAC;IACtC,UAAU,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;IACjC,kBAAkB,EAAE,YAAY,CAC9B,kBAAkB,CAAC,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,CACxE,CAAC;IACF,eAAe,EAAE,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;CAChE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uCAAuC,CACrD,KAAK,EAAE,6CAA6C;;;;;;;;;EAoCrD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseCollectionComponentConfig } from '../types';
|
|
2
|
+
export interface UseBasePatternsStateParamsProps {
|
|
3
|
+
visibleFieldIds: string[];
|
|
4
|
+
}
|
|
5
|
+
export declare function useBasePatternsStateParams(config: BaseCollectionComponentConfig, props: UseBasePatternsStateParamsProps): {
|
|
6
|
+
params: {
|
|
7
|
+
queryName: string;
|
|
8
|
+
paginationMode: any;
|
|
9
|
+
itemKey: (item: any) => any;
|
|
10
|
+
itemName: (item: any) => any;
|
|
11
|
+
toExtendedFields: (item: any) => any;
|
|
12
|
+
fetchErrorMessage: ({ err }: {
|
|
13
|
+
err: unknown;
|
|
14
|
+
}) => string;
|
|
15
|
+
fetchData: ((q: import("@wix/patterns").CursorQuery<any>) => Promise<import("../types").CursorQueryResult>) | ((q: import("@wix/patterns").OffsetQuery<any>) => Promise<import("../types").OffsetQueryResult>);
|
|
16
|
+
filters: {
|
|
17
|
+
[key: string]: import("@wix/bex-core").Filter<any>;
|
|
18
|
+
};
|
|
19
|
+
limit: number | undefined;
|
|
20
|
+
persistQueryToUrl: boolean | undefined;
|
|
21
|
+
disableAutoSelectAllCount: boolean;
|
|
22
|
+
selectionConsistencyMode: "preserve" | "clear" | undefined;
|
|
23
|
+
};
|
|
24
|
+
fetchData: ((q: import("@wix/patterns").CursorQuery<any>) => Promise<import("../types").CursorQueryResult>) | ((q: import("@wix/patterns").OffsetQuery<any>) => Promise<import("../types").OffsetQueryResult>);
|
|
25
|
+
filterFieldMapping: Record<string, import("../types").Filter> | undefined;
|
|
26
|
+
filtersObject: {
|
|
27
|
+
[key: string]: import("@wix/bex-core").Filter<any>;
|
|
28
|
+
};
|
|
29
|
+
filters: import("./useFiltersState").FilterOptions[];
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=useBasePatternsStateParams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBasePatternsStateParams.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBasePatternsStateParams.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAGzD,MAAM,WAAW,+BAA+B;IAC9C,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,6BAA6B,EACrC,KAAK,EAAE,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;EA0BvC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CollectionState } from '@wix/patterns';
|
|
2
|
+
import { PromiseState } from '@wix/patterns/core';
|
|
3
|
+
export declare function useCollectionInitAsyncDeps(asyncFeaturesState: PromiseState<any>, collection: CollectionState<any, {}>): void;
|
|
4
|
+
//# sourceMappingURL=useCollectionInitAsyncDeps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCollectionInitAsyncDeps.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCollectionInitAsyncDeps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,wBAAgB,0BAA0B,CACxC,kBAAkB,EAAE,YAAY,CAAC,GAAG,CAAC,EACrC,UAAU,EAAE,eAAe,CAAC,GAAG,EAAE,EAAE,CAAC,QASrC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CollectionState } from '@wix/patterns';
|
|
3
3
|
import { BaseCollectionComponentConfig } from '../types';
|
|
4
|
+
export * from './useFilters';
|
|
4
5
|
export type UseCommonCollectionFeaturesParams = Pick<BaseCollectionComponentConfig, 'actionCell' | 'toolbarTitle' | 'search' | 'emptyState' | 'collection' | 'bulkActionToolbar' | 'entityPageId' | 'views'> & {
|
|
5
6
|
collectionState: CollectionState<any>;
|
|
6
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCommonCollectionFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCommonCollectionFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAgB,MAAM,eAAe,CAAC;AAG9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAMzD,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAClD,6BAA6B,EAC3B,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,YAAY,GACZ,YAAY,GACZ,mBAAmB,GACnB,cAAc,GACd,OAAO,CACV,GAAG;IACF,eAAe,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,oLASzC,iCAAiC;;;;;;;;CAqEnC,CAAC"}
|
|
1
|
+
{"version":3,"file":"useCommonCollectionFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCommonCollectionFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAgB,MAAM,eAAe,CAAC;AAG9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAMzD,cAAc,cAAc,CAAC;AAE7B,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAClD,6BAA6B,EAC3B,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,YAAY,GACZ,YAAY,GACZ,mBAAmB,GACnB,cAAc,GACd,OAAO,CACV,GAAG;IACF,eAAe,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,oLASzC,iCAAiC;;;;;;;;CAqEnC,CAAC"}
|
|
@@ -1,30 +1,18 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CollectionToolbarFiltersProps
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
filter: Filter<any>;
|
|
8
|
-
component: React.ElementType;
|
|
9
|
-
collectionData?: {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
}[];
|
|
13
|
-
collectionId?: string;
|
|
14
|
-
componentName?: string;
|
|
15
|
-
props: Record<string, any>;
|
|
1
|
+
import React, { ElementType } from 'react';
|
|
2
|
+
import { CollectionToolbarFiltersProps } from '@wix/patterns';
|
|
3
|
+
import { FiltersConfig } from '../types';
|
|
4
|
+
import { FilterOptions, useFiltersState } from './useFiltersState';
|
|
5
|
+
export interface FilterOptionsWithComponent extends FilterOptions {
|
|
6
|
+
component: ElementType;
|
|
16
7
|
}
|
|
17
8
|
export interface ReturnValue {
|
|
18
|
-
filters: {
|
|
19
|
-
[key: string]: Filter<any>;
|
|
20
|
-
};
|
|
21
9
|
components: React.JSX.Element[];
|
|
22
10
|
collectionToolbarFiltersProps: Pick<CollectionToolbarFiltersProps, 'inline' | 'panelTitle' | 'useNewFilters'>;
|
|
23
11
|
}
|
|
24
|
-
export declare const useFilters: (configuration
|
|
25
|
-
filterFieldMapping: Record<string,
|
|
12
|
+
export declare const useFilters: (configuration: FiltersConfig | undefined, filtersState: ReturnType<typeof useFiltersState>) => {
|
|
13
|
+
filterFieldMapping: Record<string, import("../types").Filter> | undefined;
|
|
26
14
|
filtersObject: {
|
|
27
|
-
[key: string]: Filter<any>;
|
|
15
|
+
[key: string]: import("@wix/patterns").Filter<any>;
|
|
28
16
|
};
|
|
29
17
|
filterComponent: React.JSX.Element | undefined;
|
|
30
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFilters.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFilters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useFilters.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFilters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAEL,6BAA6B,EAC9B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKzC,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGnE,MAAM,WAAW,0BAA2B,SAAQ,aAAa;IAC/D,SAAS,EAAE,WAAW,CAAC;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;IAChC,6BAA6B,EAAE,IAAI,CACjC,6BAA6B,EAC7B,QAAQ,GAAG,YAAY,GAAG,eAAe,CAC1C,CAAC;CACH;AAED,eAAO,MAAM,UAAU,GACrB,eAAe,aAAa,GAAG,SAAS,EACxC,cAAc,UAAU,CAAC,OAAO,eAAe,CAAC;;;;;;CAoEjD,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DateFilterConfig, DynamicOptionsFilterConfig, EnumFilterConfig, Field, Filter as SchemaFilterType, FiltersConfig } from '../types';
|
|
2
|
+
import { Filter } from '@wix/patterns';
|
|
3
|
+
export interface FilterOptions {
|
|
4
|
+
key: string;
|
|
5
|
+
fieldId: string;
|
|
6
|
+
fieldDefinition: Field;
|
|
7
|
+
filter: Filter<any>;
|
|
8
|
+
collectionData?: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}[];
|
|
12
|
+
collectionId?: string;
|
|
13
|
+
componentName?: string;
|
|
14
|
+
props: Record<string, any>;
|
|
15
|
+
dateConfig?: DateFilterConfig;
|
|
16
|
+
enumConfig?: EnumFilterConfig;
|
|
17
|
+
dynamicOptionsFilterConfig?: DynamicOptionsFilterConfig;
|
|
18
|
+
}
|
|
19
|
+
export declare function useFiltersState(config?: FiltersConfig): {
|
|
20
|
+
filters: FilterOptions[];
|
|
21
|
+
filterFieldMapping: Record<string, SchemaFilterType> | undefined;
|
|
22
|
+
filtersObject: {
|
|
23
|
+
[key: string]: Filter<any>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=useFiltersState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFiltersState.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFiltersState.ts"],"names":[],"mappings":"AASA,OAAO,EACL,gBAAgB,EAChB,0BAA0B,EAC1B,gBAAgB,EAChB,KAAK,EACL,MAAM,IAAI,gBAAgB,EAC1B,aAAa,EACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,KAAK,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;IACpB,cAAc,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;CACzD;AAED,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,aAAa;;;;;;EAyGrD"}
|
|
@@ -18,7 +18,7 @@ export declare function useGridDragAndDrop(config: GridConfig): {
|
|
|
18
18
|
}) => void;
|
|
19
19
|
};
|
|
20
20
|
dragAndDropSubmit?: import("@wix/patterns").DragAndDropSubmit<any, {}> | undefined;
|
|
21
|
-
dragAndDropCancel?: import("@wix/patterns/dist/types/components/DragAndDrop").DragAndDropCancel<any, {}> | undefined;
|
|
22
21
|
dragAndDropCategories?: never[][] | null | undefined;
|
|
22
|
+
dragAndDropCancel?: import("@wix/patterns/dist/types/components/DragAndDrop").DragAndDropCancel<any, {}> | undefined;
|
|
23
23
|
} | null;
|
|
24
24
|
//# sourceMappingURL=useGridDragAndDrop.d.ts.map
|