@wix/auto-patterns 1.10.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/README.md +0 -50
  2. package/dist/cjs/components/AutoPatternsCollectionPageContent/AutoPatternsCollectionPageContent.js +57 -53
  3. package/dist/cjs/components/AutoPatternsCollectionPageContent/AutoPatternsCollectionPageContent.js.map +1 -1
  4. package/dist/cjs/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js +38 -21
  5. package/dist/cjs/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js.map +1 -1
  6. package/dist/cjs/components/AutoPatternsEntityPage/Fields/ImageInput.js +2 -1
  7. package/dist/cjs/components/AutoPatternsEntityPage/Fields/ImageInput.js.map +1 -1
  8. package/dist/cjs/components/AutoPatternsTable/AutoPatternsTable.js +6 -2
  9. package/dist/cjs/components/AutoPatternsTable/AutoPatternsTable.js.map +1 -1
  10. package/dist/cjs/components/DynamicIcon.js +9 -45
  11. package/dist/cjs/components/DynamicIcon.js.map +1 -1
  12. package/dist/cjs/hooks/useActionCell.js +9 -23
  13. package/dist/cjs/hooks/useActionCell.js.map +1 -1
  14. package/dist/cjs/hooks/useBaseTableFeatures.js +7 -2
  15. package/dist/cjs/hooks/useBaseTableFeatures.js.map +1 -1
  16. package/dist/cjs/hooks/useBulkActionToolbar.js +28 -6
  17. package/dist/cjs/hooks/useBulkActionToolbar.js.map +1 -1
  18. package/dist/cjs/hooks/useCollectionPageActions.js +2 -3
  19. package/dist/cjs/hooks/useCollectionPageActions.js.map +1 -1
  20. package/dist/cjs/hooks/useColumns.js +19 -10
  21. package/dist/cjs/hooks/useColumns.js.map +1 -1
  22. package/dist/cjs/hooks/useCommonCollectionFeatures.js +6 -10
  23. package/dist/cjs/hooks/useCommonCollectionFeatures.js.map +1 -1
  24. package/dist/cjs/hooks/useEntityPageMoreActions.js +46 -0
  25. package/dist/cjs/hooks/useEntityPageMoreActions.js.map +1 -0
  26. package/dist/cjs/hooks/useGridFeatures.js +8 -12
  27. package/dist/cjs/hooks/useGridFeatures.js.map +1 -1
  28. package/dist/cjs/hooks/useTableFeatures.js +12 -8
  29. package/dist/cjs/hooks/useTableFeatures.js.map +1 -1
  30. package/dist/cjs/hooks/useTableGridSwitchFeatures.js +11 -7
  31. package/dist/cjs/hooks/useTableGridSwitchFeatures.js.map +1 -1
  32. package/dist/cjs/providers/PatternsWizardOverridesContext.js +1 -1
  33. package/dist/cjs/providers/PatternsWizardOverridesContext.js.map +1 -1
  34. package/dist/cjs/types/CollectionPageConfig.js.map +1 -1
  35. package/dist/cjs/types/EntityPageConfig.js.map +1 -1
  36. package/dist/cjs/types/actions/actionCell.js.map +1 -1
  37. package/dist/cjs/types/actions/base.js.map +1 -1
  38. package/dist/cjs/types/actions/bulkActions.js.map +1 -1
  39. package/dist/cjs/types/actions/collectionPageActions.js.map +1 -1
  40. package/dist/cjs/types/actions/entityPageActions.js +4 -0
  41. package/dist/cjs/types/actions/entityPageActions.js.map +1 -0
  42. package/dist/cjs/types/actions/index.js +6 -0
  43. package/dist/cjs/types/actions/index.js.map +1 -1
  44. package/dist/cjs/types/types.js.map +1 -1
  45. package/dist/cjs/utils/actions/bulkDeleteAction.js +12 -1
  46. package/dist/cjs/utils/actions/bulkDeleteAction.js.map +1 -1
  47. package/dist/cjs/utils/actions/createAction.js +12 -1
  48. package/dist/cjs/utils/actions/createAction.js.map +1 -1
  49. package/dist/cjs/utils/actions/customAction.js.map +1 -1
  50. package/dist/cjs/utils/actions/deleteAction.js +12 -1
  51. package/dist/cjs/utils/actions/deleteAction.js.map +1 -1
  52. package/dist/cjs/utils/actions/resolveAction.js +2 -17
  53. package/dist/cjs/utils/actions/resolveAction.js.map +1 -1
  54. package/dist/cjs/utils/actions/types.js.map +1 -1
  55. package/dist/cjs/utils/actions/updateAction.js +12 -1
  56. package/dist/cjs/utils/actions/updateAction.js.map +1 -1
  57. package/dist/esm/components/AutoPatternsCollectionPageContent/AutoPatternsCollectionPageContent.js +40 -36
  58. package/dist/esm/components/AutoPatternsCollectionPageContent/AutoPatternsCollectionPageContent.js.map +1 -1
  59. package/dist/esm/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js +14 -3
  60. package/dist/esm/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js.map +1 -1
  61. package/dist/esm/components/AutoPatternsEntityPage/Fields/ImageInput.js +2 -1
  62. package/dist/esm/components/AutoPatternsEntityPage/Fields/ImageInput.js.map +1 -1
  63. package/dist/esm/components/AutoPatternsTable/AutoPatternsTable.js +6 -2
  64. package/dist/esm/components/AutoPatternsTable/AutoPatternsTable.js.map +1 -1
  65. package/dist/esm/components/DynamicIcon.js +4 -13
  66. package/dist/esm/components/DynamicIcon.js.map +1 -1
  67. package/dist/esm/hooks/useActionCell.js +9 -23
  68. package/dist/esm/hooks/useActionCell.js.map +1 -1
  69. package/dist/esm/hooks/useBaseTableFeatures.js +6 -1
  70. package/dist/esm/hooks/useBaseTableFeatures.js.map +1 -1
  71. package/dist/esm/hooks/useBulkActionToolbar.js +27 -5
  72. package/dist/esm/hooks/useBulkActionToolbar.js.map +1 -1
  73. package/dist/esm/hooks/useCollectionPageActions.js +1 -2
  74. package/dist/esm/hooks/useCollectionPageActions.js.map +1 -1
  75. package/dist/esm/hooks/useColumns.js +19 -10
  76. package/dist/esm/hooks/useColumns.js.map +1 -1
  77. package/dist/esm/hooks/useCommonCollectionFeatures.js +2 -6
  78. package/dist/esm/hooks/useCommonCollectionFeatures.js.map +1 -1
  79. package/dist/esm/hooks/useEntityPageMoreActions.js +42 -0
  80. package/dist/esm/hooks/useEntityPageMoreActions.js.map +1 -0
  81. package/dist/esm/hooks/useGridFeatures.js +8 -12
  82. package/dist/esm/hooks/useGridFeatures.js.map +1 -1
  83. package/dist/esm/hooks/useTableFeatures.js +12 -8
  84. package/dist/esm/hooks/useTableFeatures.js.map +1 -1
  85. package/dist/esm/hooks/useTableGridSwitchFeatures.js +11 -7
  86. package/dist/esm/hooks/useTableGridSwitchFeatures.js.map +1 -1
  87. package/dist/esm/providers/PatternsWizardOverridesContext.js.map +1 -1
  88. package/dist/esm/types/CollectionPageConfig.js.map +1 -1
  89. package/dist/esm/types/EntityPageConfig.js.map +1 -1
  90. package/dist/esm/types/actions/actionCell.js.map +1 -1
  91. package/dist/esm/types/actions/base.js.map +1 -1
  92. package/dist/esm/types/actions/bulkActions.js.map +1 -1
  93. package/dist/esm/types/actions/collectionPageActions.js.map +1 -1
  94. package/dist/esm/types/actions/entityPageActions.js +2 -0
  95. package/dist/esm/types/actions/entityPageActions.js.map +1 -0
  96. package/dist/esm/types/actions/index.js +1 -0
  97. package/dist/esm/types/actions/index.js.map +1 -1
  98. package/dist/esm/types/types.js.map +1 -1
  99. package/dist/esm/utils/actions/bulkDeleteAction.js +3 -1
  100. package/dist/esm/utils/actions/bulkDeleteAction.js.map +1 -1
  101. package/dist/esm/utils/actions/createAction.js +3 -1
  102. package/dist/esm/utils/actions/createAction.js.map +1 -1
  103. package/dist/esm/utils/actions/customAction.js.map +1 -1
  104. package/dist/esm/utils/actions/deleteAction.js +3 -1
  105. package/dist/esm/utils/actions/deleteAction.js.map +1 -1
  106. package/dist/esm/utils/actions/resolveAction.js +1 -7
  107. package/dist/esm/utils/actions/resolveAction.js.map +1 -1
  108. package/dist/esm/utils/actions/types.js.map +1 -1
  109. package/dist/esm/utils/actions/updateAction.js +3 -1
  110. package/dist/esm/utils/actions/updateAction.js.map +1 -1
  111. package/dist/types/components/AutoPatternsCollectionPageContent/AutoPatternsCollectionPageContent.d.ts.map +1 -1
  112. package/dist/types/components/AutoPatternsEntityPage/AutoPatternsEntityPage.d.ts.map +1 -1
  113. package/dist/types/components/AutoPatternsEntityPage/Fields/ImageInput.d.ts.map +1 -1
  114. package/dist/types/components/AutoPatternsTable/AutoPatternsTable.d.ts.map +1 -1
  115. package/dist/types/components/DynamicIcon.d.ts.map +1 -1
  116. package/dist/types/hooks/useActionCell.d.ts +2 -4
  117. package/dist/types/hooks/useActionCell.d.ts.map +1 -1
  118. package/dist/types/hooks/useBaseTableFeatures.d.ts +2 -0
  119. package/dist/types/hooks/useBaseTableFeatures.d.ts.map +1 -1
  120. package/dist/types/hooks/useBulkActionToolbar.d.ts.map +1 -1
  121. package/dist/types/hooks/useCollectionPageActions.d.ts.map +1 -1
  122. package/dist/types/hooks/useColumns.d.ts.map +1 -1
  123. package/dist/types/hooks/useCommonCollectionFeatures.d.ts +2 -3
  124. package/dist/types/hooks/useCommonCollectionFeatures.d.ts.map +1 -1
  125. package/dist/types/hooks/useEntityPageHeaderTexts.d.ts.map +1 -1
  126. package/dist/types/hooks/useEntityPageMoreActions.d.ts +6 -0
  127. package/dist/types/hooks/useEntityPageMoreActions.d.ts.map +1 -0
  128. package/dist/types/hooks/useGridFeatures.d.ts.map +1 -1
  129. package/dist/types/hooks/useTableFeatures.d.ts +2 -0
  130. package/dist/types/hooks/useTableFeatures.d.ts.map +1 -1
  131. package/dist/types/hooks/useTableGridSwitchFeatures.d.ts +2 -0
  132. package/dist/types/hooks/useTableGridSwitchFeatures.d.ts.map +1 -1
  133. package/dist/types/providers/PatternsWizardOverridesContext.d.ts +4 -2
  134. package/dist/types/providers/PatternsWizardOverridesContext.d.ts.map +1 -1
  135. package/dist/types/types/CollectionPageConfig.d.ts +42 -31
  136. package/dist/types/types/CollectionPageConfig.d.ts.map +1 -1
  137. package/dist/types/types/EntityPageConfig.d.ts +2 -0
  138. package/dist/types/types/EntityPageConfig.d.ts.map +1 -1
  139. package/dist/types/types/actions/actionCell.d.ts +4 -4
  140. package/dist/types/types/actions/actionCell.d.ts.map +1 -1
  141. package/dist/types/types/actions/base.d.ts +0 -1
  142. package/dist/types/types/actions/base.d.ts.map +1 -1
  143. package/dist/types/types/actions/bulkActions.d.ts +19 -11
  144. package/dist/types/types/actions/bulkActions.d.ts.map +1 -1
  145. package/dist/types/types/actions/collectionPageActions.d.ts +2 -5
  146. package/dist/types/types/actions/collectionPageActions.d.ts.map +1 -1
  147. package/dist/types/types/actions/entityPageActions.d.ts +12 -0
  148. package/dist/types/types/actions/entityPageActions.d.ts.map +1 -0
  149. package/dist/types/types/actions/index.d.ts +1 -0
  150. package/dist/types/types/actions/index.d.ts.map +1 -1
  151. package/dist/types/types/types.d.ts +1 -0
  152. package/dist/types/types/types.d.ts.map +1 -1
  153. package/dist/types/utils/actions/bulkDeleteAction.d.ts +2 -1
  154. package/dist/types/utils/actions/bulkDeleteAction.d.ts.map +1 -1
  155. package/dist/types/utils/actions/createAction.d.ts +2 -1
  156. package/dist/types/utils/actions/createAction.d.ts.map +1 -1
  157. package/dist/types/utils/actions/customAction.d.ts +1 -1
  158. package/dist/types/utils/actions/customAction.d.ts.map +1 -1
  159. package/dist/types/utils/actions/deleteAction.d.ts +2 -1
  160. package/dist/types/utils/actions/deleteAction.d.ts.map +1 -1
  161. package/dist/types/utils/actions/resolveAction.d.ts +1 -3
  162. package/dist/types/utils/actions/resolveAction.d.ts.map +1 -1
  163. package/dist/types/utils/actions/types.d.ts +5 -4
  164. package/dist/types/utils/actions/types.d.ts.map +1 -1
  165. package/dist/types/utils/actions/updateAction.d.ts +2 -1
  166. package/dist/types/utils/actions/updateAction.d.ts.map +1 -1
  167. package/package.json +19 -22
  168. package/dist/cjs/types/wix-icons.d.js +0 -2
  169. package/dist/cjs/types/wix-icons.d.js.map +0 -1
  170. package/dist/cjs/utils/generated-icon-imports.js +0 -1438
  171. package/dist/cjs/utils/generated-icon-imports.js.map +0 -1
  172. package/dist/esm/types/wix-icons.d.js +0 -2
  173. package/dist/esm/types/wix-icons.d.js.map +0 -1
  174. package/dist/esm/utils/generated-icon-imports.js +0 -1432
  175. package/dist/esm/utils/generated-icon-imports.js.map +0 -1
  176. package/dist/types/utils/generated-icon-imports.d.ts +0 -4
  177. package/dist/types/utils/generated-icon-imports.d.ts.map +0 -1
@@ -9,9 +9,9 @@ export const useTableFeatures = configuration => {
9
9
  const {
10
10
  collectionId,
11
11
  limit,
12
- persistQueryToUrl,
13
- disableAutoSelectAllCount,
14
- selectionConsistencyMode
12
+ reflectQueryInUrl,
13
+ selectAllScope,
14
+ selectionUpdateMode
15
15
  } = configuration.collection;
16
16
  const {
17
17
  filterComponent,
@@ -22,7 +22,9 @@ export const useTableFeatures = configuration => {
22
22
  customColumns,
23
23
  visibleFieldIds,
24
24
  columns,
25
- onRowClick
25
+ onRowClick,
26
+ stickyColumns,
27
+ stickySelectionColumn
26
28
  } = useBaseTableFeatures(configuration);
27
29
  const {
28
30
  fetchData
@@ -46,9 +48,9 @@ export const useTableFeatures = configuration => {
46
48
  },
47
49
  fetchData,
48
50
  limit,
49
- persistQueryToUrl,
50
- disableAutoSelectAllCount,
51
- selectionConsistencyMode
51
+ persistQueryToUrl: reflectQueryInUrl,
52
+ disableAutoSelectAllCount: selectAllScope === 'page',
53
+ selectionConsistencyMode: selectionUpdateMode
52
54
  });
53
55
  const optimisticActions = useAutoPatternsOptimisticActions(collectionId, state.collection);
54
56
  const commonFeatures = useCommonCollectionFeatures({
@@ -62,7 +64,9 @@ export const useTableFeatures = configuration => {
62
64
  filters: filterComponent,
63
65
  optimisticActions,
64
66
  customColumns,
65
- onRowClick
67
+ onRowClick,
68
+ stickyColumns,
69
+ stickySelectionColumn
66
70
  };
67
71
  };
68
72
  //# sourceMappingURL=useTableFeatures.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useFetchData","useTableCollection","useCommonCollectionFeatures","useFilters","useSchema","useAutoPatternsOptimisticActions","useBaseTableFeatures","useTableFeatures","configuration","collectionId","limit","persistQueryToUrl","disableAutoSelectAllCount","selectionConsistencyMode","collection","filterComponent","filtersObject","filtersMapping","filters","customColumns","visibleFieldIds","columns","onRowClick","fetchData","collectionConfig","schema","state","queryName","itemKey","item","idField","itemName","displayField","toExtendedFields","extendedFields","fetchErrorMessage","_ref","err","String","optimisticActions","commonFeatures"],"sources":["../../../src/hooks/useTableFeatures.tsx"],"sourcesContent":["import { TableConfig } from '../types';\nimport { useFetchData } from './useFetchData';\nimport { useTableCollection } from '@wix/patterns';\nimport { useCommonCollectionFeatures } from './useCommonCollectionFeatures';\nimport { useFilters } from './useFilters';\nimport { useSchema } from '../providers/SchemaContext';\nimport { useAutoPatternsOptimisticActions } from './useAutoPatternsOptimisticActions';\nimport { useBaseTableFeatures } from './useBaseTableFeatures';\n\nexport const useTableFeatures = (configuration: TableConfig) => {\n const {\n collectionId,\n limit,\n persistQueryToUrl,\n disableAutoSelectAllCount,\n selectionConsistencyMode,\n } = configuration.collection;\n\n const { filterComponent, filtersObject, filtersMapping } = useFilters(\n configuration.filters,\n );\n const { customColumns, visibleFieldIds, columns, onRowClick } =\n useBaseTableFeatures(configuration);\n\n const { fetchData } = useFetchData({\n collectionConfig: configuration.collection,\n visibleFieldIds,\n filtersMapping,\n });\n\n const schema = useSchema();\n\n const state = useTableCollection<any>({\n queryName: `${collectionId}`,\n itemKey: (item) => item[schema.idField],\n itemName: (item) => item[schema.displayField],\n filters: filtersObject,\n toExtendedFields: (item) => item.extendedFields,\n fetchErrorMessage: ({ err }) => String(err),\n fetchData,\n limit,\n persistQueryToUrl,\n disableAutoSelectAllCount,\n selectionConsistencyMode,\n });\n\n const optimisticActions = useAutoPatternsOptimisticActions(\n collectionId,\n state.collection,\n );\n\n const commonFeatures = useCommonCollectionFeatures({\n ...configuration,\n optimisticActions,\n });\n\n return {\n ...commonFeatures,\n state,\n columns,\n filters: filterComponent,\n optimisticActions,\n customColumns,\n onRowClick,\n };\n};\n"],"mappings":"AACA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,kBAAkB,QAAQ,eAAe;AAClD,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,SAAS,QAAQ,4BAA4B;AACtD,SAASC,gCAAgC,QAAQ,oCAAoC;AACrF,SAASC,oBAAoB,QAAQ,wBAAwB;AAE7D,OAAO,MAAMC,gBAAgB,GAAIC,aAA0B,IAAK;EAC9D,MAAM;IACJC,YAAY;IACZC,KAAK;IACLC,iBAAiB;IACjBC,yBAAyB;IACzBC;EACF,CAAC,GAAGL,aAAa,CAACM,UAAU;EAE5B,MAAM;IAAEC,eAAe;IAAEC,aAAa;IAAEC;EAAe,CAAC,GAAGd,UAAU,CACnEK,aAAa,CAACU,OAChB,CAAC;EACD,MAAM;IAAEC,aAAa;IAAEC,eAAe;IAAEC,OAAO;IAAEC;EAAW,CAAC,GAC3DhB,oBAAoB,CAACE,aAAa,CAAC;EAErC,MAAM;IAAEe;EAAU,CAAC,GAAGvB,YAAY,CAAC;IACjCwB,gBAAgB,EAAEhB,aAAa,CAACM,UAAU;IAC1CM,eAAe;IACfH;EACF,CAAC,CAAC;EAEF,MAAMQ,MAAM,GAAGrB,SAAS,CAAC,CAAC;EAE1B,MAAMsB,KAAK,GAAGzB,kBAAkB,CAAM;IACpC0B,SAAS,EAAE,GAAGlB,YAAY,EAAE;IAC5BmB,OAAO,EAAGC,IAAI,IAAKA,IAAI,CAACJ,MAAM,CAACK,OAAO,CAAC;IACvCC,QAAQ,EAAGF,IAAI,IAAKA,IAAI,CAACJ,MAAM,CAACO,YAAY,CAAC;IAC7Cd,OAAO,EAAEF,aAAa;IACtBiB,gBAAgB,EAAGJ,IAAI,IAAKA,IAAI,CAACK,cAAc;IAC/CC,iBAAiB,EAAEC,IAAA;MAAA,IAAC;QAAEC;MAAI,CAAC,GAAAD,IAAA;MAAA,OAAKE,MAAM,CAACD,GAAG,CAAC;IAAA;IAC3Cd,SAAS;IACTb,KAAK;IACLC,iBAAiB;IACjBC,yBAAyB;IACzBC;EACF,CAAC,CAAC;EAEF,MAAM0B,iBAAiB,GAAGlC,gCAAgC,CACxDI,YAAY,EACZiB,KAAK,CAACZ,UACR,CAAC;EAED,MAAM0B,cAAc,GAAGtC,2BAA2B,CAAC;IACjD,GAAGM,aAAa;IAChB+B;EACF,CAAC,CAAC;EAEF,OAAO;IACL,GAAGC,cAAc;IACjBd,KAAK;IACLL,OAAO;IACPH,OAAO,EAAEH,eAAe;IACxBwB,iBAAiB;IACjBpB,aAAa;IACbG;EACF,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useFetchData","useTableCollection","useCommonCollectionFeatures","useFilters","useSchema","useAutoPatternsOptimisticActions","useBaseTableFeatures","useTableFeatures","configuration","collectionId","limit","reflectQueryInUrl","selectAllScope","selectionUpdateMode","collection","filterComponent","filtersObject","filtersMapping","filters","customColumns","visibleFieldIds","columns","onRowClick","stickyColumns","stickySelectionColumn","fetchData","collectionConfig","schema","state","queryName","itemKey","item","idField","itemName","displayField","toExtendedFields","extendedFields","fetchErrorMessage","_ref","err","String","persistQueryToUrl","disableAutoSelectAllCount","selectionConsistencyMode","optimisticActions","commonFeatures"],"sources":["../../../src/hooks/useTableFeatures.tsx"],"sourcesContent":["import { TableConfig } from '../types';\nimport { useFetchData } from './useFetchData';\nimport { useTableCollection } from '@wix/patterns';\nimport { useCommonCollectionFeatures } from './useCommonCollectionFeatures';\nimport { useFilters } from './useFilters';\nimport { useSchema } from '../providers/SchemaContext';\nimport { useAutoPatternsOptimisticActions } from './useAutoPatternsOptimisticActions';\nimport { useBaseTableFeatures } from './useBaseTableFeatures';\n\nexport const useTableFeatures = (configuration: TableConfig) => {\n const {\n collectionId,\n limit,\n reflectQueryInUrl,\n selectAllScope,\n selectionUpdateMode,\n } = configuration.collection;\n\n const { filterComponent, filtersObject, filtersMapping } = useFilters(\n configuration.filters,\n );\n const {\n customColumns,\n visibleFieldIds,\n columns,\n onRowClick,\n stickyColumns,\n stickySelectionColumn,\n } = useBaseTableFeatures(configuration);\n\n const { fetchData } = useFetchData({\n collectionConfig: configuration.collection,\n visibleFieldIds,\n filtersMapping,\n });\n\n const schema = useSchema();\n\n const state = useTableCollection<any>({\n queryName: `${collectionId}`,\n itemKey: (item) => item[schema.idField],\n itemName: (item) => item[schema.displayField],\n filters: filtersObject,\n toExtendedFields: (item) => item.extendedFields,\n fetchErrorMessage: ({ err }) => String(err),\n fetchData,\n limit,\n persistQueryToUrl: reflectQueryInUrl,\n disableAutoSelectAllCount: selectAllScope === 'page',\n selectionConsistencyMode: selectionUpdateMode,\n });\n\n const optimisticActions = useAutoPatternsOptimisticActions(\n collectionId,\n state.collection,\n );\n\n const commonFeatures = useCommonCollectionFeatures({\n ...configuration,\n optimisticActions,\n });\n\n return {\n ...commonFeatures,\n state,\n columns,\n filters: filterComponent,\n optimisticActions,\n customColumns,\n onRowClick,\n stickyColumns,\n stickySelectionColumn,\n };\n};\n"],"mappings":"AACA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,kBAAkB,QAAQ,eAAe;AAClD,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,SAAS,QAAQ,4BAA4B;AACtD,SAASC,gCAAgC,QAAQ,oCAAoC;AACrF,SAASC,oBAAoB,QAAQ,wBAAwB;AAE7D,OAAO,MAAMC,gBAAgB,GAAIC,aAA0B,IAAK;EAC9D,MAAM;IACJC,YAAY;IACZC,KAAK;IACLC,iBAAiB;IACjBC,cAAc;IACdC;EACF,CAAC,GAAGL,aAAa,CAACM,UAAU;EAE5B,MAAM;IAAEC,eAAe;IAAEC,aAAa;IAAEC;EAAe,CAAC,GAAGd,UAAU,CACnEK,aAAa,CAACU,OAChB,CAAC;EACD,MAAM;IACJC,aAAa;IACbC,eAAe;IACfC,OAAO;IACPC,UAAU;IACVC,aAAa;IACbC;EACF,CAAC,GAAGlB,oBAAoB,CAACE,aAAa,CAAC;EAEvC,MAAM;IAAEiB;EAAU,CAAC,GAAGzB,YAAY,CAAC;IACjC0B,gBAAgB,EAAElB,aAAa,CAACM,UAAU;IAC1CM,eAAe;IACfH;EACF,CAAC,CAAC;EAEF,MAAMU,MAAM,GAAGvB,SAAS,CAAC,CAAC;EAE1B,MAAMwB,KAAK,GAAG3B,kBAAkB,CAAM;IACpC4B,SAAS,EAAE,GAAGpB,YAAY,EAAE;IAC5BqB,OAAO,EAAGC,IAAI,IAAKA,IAAI,CAACJ,MAAM,CAACK,OAAO,CAAC;IACvCC,QAAQ,EAAGF,IAAI,IAAKA,IAAI,CAACJ,MAAM,CAACO,YAAY,CAAC;IAC7ChB,OAAO,EAAEF,aAAa;IACtBmB,gBAAgB,EAAGJ,IAAI,IAAKA,IAAI,CAACK,cAAc;IAC/CC,iBAAiB,EAAEC,IAAA;MAAA,IAAC;QAAEC;MAAI,CAAC,GAAAD,IAAA;MAAA,OAAKE,MAAM,CAACD,GAAG,CAAC;IAAA;IAC3Cd,SAAS;IACTf,KAAK;IACL+B,iBAAiB,EAAE9B,iBAAiB;IACpC+B,yBAAyB,EAAE9B,cAAc,KAAK,MAAM;IACpD+B,wBAAwB,EAAE9B;EAC5B,CAAC,CAAC;EAEF,MAAM+B,iBAAiB,GAAGvC,gCAAgC,CACxDI,YAAY,EACZmB,KAAK,CAACd,UACR,CAAC;EAED,MAAM+B,cAAc,GAAG3C,2BAA2B,CAAC;IACjD,GAAGM,aAAa;IAChBoC;EACF,CAAC,CAAC;EAEF,OAAO;IACL,GAAGC,cAAc;IACjBjB,KAAK;IACLP,OAAO;IACPH,OAAO,EAAEH,eAAe;IACxB6B,iBAAiB;IACjBzB,aAAa;IACbG,UAAU;IACVC,aAAa;IACbC;EACF,CAAC;AACH,CAAC","ignoreList":[]}
@@ -11,9 +11,9 @@ export const useTableGridSwitchFeatures = config => {
11
11
  const {
12
12
  collectionId,
13
13
  limit,
14
- persistQueryToUrl,
15
- disableAutoSelectAllCount,
16
- selectionConsistencyMode
14
+ reflectQueryInUrl,
15
+ selectAllScope,
16
+ selectionUpdateMode
17
17
  } = config.collection;
18
18
  const {
19
19
  filterComponent,
@@ -30,7 +30,9 @@ export const useTableGridSwitchFeatures = config => {
30
30
  customColumns,
31
31
  visibleFieldIds: tableVisibleFieldIds,
32
32
  columns: tableColumns,
33
- onRowClick
33
+ onRowClick,
34
+ stickyColumns,
35
+ stickySelectionColumn
34
36
  } = useBaseTableFeatures(config);
35
37
  const {
36
38
  fetchData: tableFetchData
@@ -53,9 +55,9 @@ export const useTableGridSwitchFeatures = config => {
53
55
  },
54
56
  fetchData: tableFetchData,
55
57
  limit,
56
- persistQueryToUrl,
57
- disableAutoSelectAllCount,
58
- selectionConsistencyMode
58
+ persistQueryToUrl: reflectQueryInUrl,
59
+ disableAutoSelectAllCount: selectAllScope === 'page',
60
+ selectionConsistencyMode: selectionUpdateMode
59
61
  });
60
62
  const optimisticActions = useAutoPatternsOptimisticActions(collectionId, state.collection);
61
63
  const commonFeatures = useCommonCollectionFeatures({
@@ -70,6 +72,8 @@ export const useTableGridSwitchFeatures = config => {
70
72
  optimisticActions,
71
73
  customColumns,
72
74
  onRowClick,
75
+ stickyColumns,
76
+ stickySelectionColumn,
73
77
  // Grid specific features
74
78
  imagePlacement,
75
79
  preset,
@@ -1 +1 @@
1
- {"version":3,"names":["useFetchData","useTableGridSwitchCollection","useCommonCollectionFeatures","useFilters","useSchema","useAutoPatternsOptimisticActions","useBaseGridFeatures","useBaseTableFeatures","useTableGridSwitchFeatures","config","schema","collectionId","limit","persistQueryToUrl","disableAutoSelectAllCount","selectionConsistencyMode","collection","filterComponent","filtersObject","filtersMapping","filters","preset","imagePlacement","visibleFieldIds","gridVisibleFieldIds","renderItem","customColumns","tableVisibleFieldIds","columns","tableColumns","onRowClick","fetchData","tableFetchData","collectionConfig","Array","from","Set","state","queryName","itemKey","item","idField","itemName","displayField","toExtendedFields","extendedFields","fetchErrorMessage","_ref","err","String","optimisticActions","commonFeatures"],"sources":["../../../src/hooks/useTableGridSwitchFeatures.tsx"],"sourcesContent":["import { TableGridSwitchConfig } from '../types';\nimport { useFetchData } from './useFetchData';\nimport { useTableGridSwitchCollection } from '@wix/patterns';\nimport { useCommonCollectionFeatures } from './useCommonCollectionFeatures';\nimport { useFilters } from './useFilters';\nimport { useSchema } from '../providers/SchemaContext';\nimport { useAutoPatternsOptimisticActions } from './useAutoPatternsOptimisticActions';\nimport { useBaseGridFeatures } from './useBaseGridFeatures';\nimport { useBaseTableFeatures } from './useBaseTableFeatures';\n\nexport const useTableGridSwitchFeatures = (config: TableGridSwitchConfig) => {\n const schema = useSchema();\n\n const {\n collectionId,\n limit,\n persistQueryToUrl,\n disableAutoSelectAllCount,\n selectionConsistencyMode,\n } = config.collection;\n\n const { filterComponent, filtersObject, filtersMapping } = useFilters(\n config.filters,\n );\n\n const {\n preset,\n imagePlacement,\n visibleFieldIds: gridVisibleFieldIds,\n renderItem,\n } = useBaseGridFeatures(config);\n\n const {\n customColumns,\n visibleFieldIds: tableVisibleFieldIds,\n columns: tableColumns,\n onRowClick,\n } = useBaseTableFeatures(config);\n\n const { fetchData: tableFetchData } = useFetchData({\n collectionConfig: config.collection,\n visibleFieldIds: Array.from(\n new Set([...tableVisibleFieldIds, ...gridVisibleFieldIds]),\n ),\n filtersMapping,\n });\n\n const state = useTableGridSwitchCollection<any>({\n queryName: `${collectionId}`,\n itemKey: (item) => item[schema.idField],\n itemName: (item) => item[schema.displayField],\n filters: filtersObject,\n toExtendedFields: (item) => item.extendedFields,\n fetchErrorMessage: ({ err }) => String(err),\n fetchData: tableFetchData,\n limit,\n persistQueryToUrl,\n disableAutoSelectAllCount,\n selectionConsistencyMode,\n });\n\n const optimisticActions = useAutoPatternsOptimisticActions(\n collectionId,\n state.collection,\n );\n\n const commonFeatures = useCommonCollectionFeatures({\n ...config,\n optimisticActions,\n });\n\n return {\n ...commonFeatures,\n state,\n columns: tableColumns,\n filters: filterComponent,\n optimisticActions,\n customColumns,\n onRowClick,\n // Grid specific features\n imagePlacement,\n preset,\n renderItem,\n };\n};\n"],"mappings":"AACA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,4BAA4B,QAAQ,eAAe;AAC5D,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,SAAS,QAAQ,4BAA4B;AACtD,SAASC,gCAAgC,QAAQ,oCAAoC;AACrF,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,oBAAoB,QAAQ,wBAAwB;AAE7D,OAAO,MAAMC,0BAA0B,GAAIC,MAA6B,IAAK;EAC3E,MAAMC,MAAM,GAAGN,SAAS,CAAC,CAAC;EAE1B,MAAM;IACJO,YAAY;IACZC,KAAK;IACLC,iBAAiB;IACjBC,yBAAyB;IACzBC;EACF,CAAC,GAAGN,MAAM,CAACO,UAAU;EAErB,MAAM;IAAEC,eAAe;IAAEC,aAAa;IAAEC;EAAe,CAAC,GAAGhB,UAAU,CACnEM,MAAM,CAACW,OACT,CAAC;EAED,MAAM;IACJC,MAAM;IACNC,cAAc;IACdC,eAAe,EAAEC,mBAAmB;IACpCC;EACF,CAAC,GAAGnB,mBAAmB,CAACG,MAAM,CAAC;EAE/B,MAAM;IACJiB,aAAa;IACbH,eAAe,EAAEI,oBAAoB;IACrCC,OAAO,EAAEC,YAAY;IACrBC;EACF,CAAC,GAAGvB,oBAAoB,CAACE,MAAM,CAAC;EAEhC,MAAM;IAAEsB,SAAS,EAAEC;EAAe,CAAC,GAAGhC,YAAY,CAAC;IACjDiC,gBAAgB,EAAExB,MAAM,CAACO,UAAU;IACnCO,eAAe,EAAEW,KAAK,CAACC,IAAI,CACzB,IAAIC,GAAG,CAAC,CAAC,GAAGT,oBAAoB,EAAE,GAAGH,mBAAmB,CAAC,CAC3D,CAAC;IACDL;EACF,CAAC,CAAC;EAEF,MAAMkB,KAAK,GAAGpC,4BAA4B,CAAM;IAC9CqC,SAAS,EAAE,GAAG3B,YAAY,EAAE;IAC5B4B,OAAO,EAAGC,IAAI,IAAKA,IAAI,CAAC9B,MAAM,CAAC+B,OAAO,CAAC;IACvCC,QAAQ,EAAGF,IAAI,IAAKA,IAAI,CAAC9B,MAAM,CAACiC,YAAY,CAAC;IAC7CvB,OAAO,EAAEF,aAAa;IACtB0B,gBAAgB,EAAGJ,IAAI,IAAKA,IAAI,CAACK,cAAc;IAC/CC,iBAAiB,EAAEC,IAAA;MAAA,IAAC;QAAEC;MAAI,CAAC,GAAAD,IAAA;MAAA,OAAKE,MAAM,CAACD,GAAG,CAAC;IAAA;IAC3CjB,SAAS,EAAEC,cAAc;IACzBpB,KAAK;IACLC,iBAAiB;IACjBC,yBAAyB;IACzBC;EACF,CAAC,CAAC;EAEF,MAAMmC,iBAAiB,GAAG7C,gCAAgC,CACxDM,YAAY,EACZ0B,KAAK,CAACrB,UACR,CAAC;EAED,MAAMmC,cAAc,GAAGjD,2BAA2B,CAAC;IACjD,GAAGO,MAAM;IACTyC;EACF,CAAC,CAAC;EAEF,OAAO;IACL,GAAGC,cAAc;IACjBd,KAAK;IACLT,OAAO,EAAEC,YAAY;IACrBT,OAAO,EAAEH,eAAe;IACxBiC,iBAAiB;IACjBxB,aAAa;IACbI,UAAU;IACV;IACAR,cAAc;IACdD,MAAM;IACNI;EACF,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useFetchData","useTableGridSwitchCollection","useCommonCollectionFeatures","useFilters","useSchema","useAutoPatternsOptimisticActions","useBaseGridFeatures","useBaseTableFeatures","useTableGridSwitchFeatures","config","schema","collectionId","limit","reflectQueryInUrl","selectAllScope","selectionUpdateMode","collection","filterComponent","filtersObject","filtersMapping","filters","preset","imagePlacement","visibleFieldIds","gridVisibleFieldIds","renderItem","customColumns","tableVisibleFieldIds","columns","tableColumns","onRowClick","stickyColumns","stickySelectionColumn","fetchData","tableFetchData","collectionConfig","Array","from","Set","state","queryName","itemKey","item","idField","itemName","displayField","toExtendedFields","extendedFields","fetchErrorMessage","_ref","err","String","persistQueryToUrl","disableAutoSelectAllCount","selectionConsistencyMode","optimisticActions","commonFeatures"],"sources":["../../../src/hooks/useTableGridSwitchFeatures.tsx"],"sourcesContent":["import { TableGridSwitchConfig } from '../types';\nimport { useFetchData } from './useFetchData';\nimport { useTableGridSwitchCollection } from '@wix/patterns';\nimport { useCommonCollectionFeatures } from './useCommonCollectionFeatures';\nimport { useFilters } from './useFilters';\nimport { useSchema } from '../providers/SchemaContext';\nimport { useAutoPatternsOptimisticActions } from './useAutoPatternsOptimisticActions';\nimport { useBaseGridFeatures } from './useBaseGridFeatures';\nimport { useBaseTableFeatures } from './useBaseTableFeatures';\n\nexport const useTableGridSwitchFeatures = (config: TableGridSwitchConfig) => {\n const schema = useSchema();\n\n const {\n collectionId,\n limit,\n reflectQueryInUrl,\n selectAllScope,\n selectionUpdateMode,\n } = config.collection;\n\n const { filterComponent, filtersObject, filtersMapping } = useFilters(\n config.filters,\n );\n\n const {\n preset,\n imagePlacement,\n visibleFieldIds: gridVisibleFieldIds,\n renderItem,\n } = useBaseGridFeatures(config);\n\n const {\n customColumns,\n visibleFieldIds: tableVisibleFieldIds,\n columns: tableColumns,\n onRowClick,\n stickyColumns,\n stickySelectionColumn,\n } = useBaseTableFeatures(config);\n\n const { fetchData: tableFetchData } = useFetchData({\n collectionConfig: config.collection,\n visibleFieldIds: Array.from(\n new Set([...tableVisibleFieldIds, ...gridVisibleFieldIds]),\n ),\n filtersMapping,\n });\n\n const state = useTableGridSwitchCollection<any>({\n queryName: `${collectionId}`,\n itemKey: (item) => item[schema.idField],\n itemName: (item) => item[schema.displayField],\n filters: filtersObject,\n toExtendedFields: (item) => item.extendedFields,\n fetchErrorMessage: ({ err }) => String(err),\n fetchData: tableFetchData,\n limit,\n persistQueryToUrl: reflectQueryInUrl,\n disableAutoSelectAllCount: selectAllScope === 'page',\n selectionConsistencyMode: selectionUpdateMode,\n });\n\n const optimisticActions = useAutoPatternsOptimisticActions(\n collectionId,\n state.collection,\n );\n\n const commonFeatures = useCommonCollectionFeatures({\n ...config,\n optimisticActions,\n });\n\n return {\n ...commonFeatures,\n state,\n columns: tableColumns,\n filters: filterComponent,\n optimisticActions,\n customColumns,\n onRowClick,\n stickyColumns,\n stickySelectionColumn,\n // Grid specific features\n imagePlacement,\n preset,\n renderItem,\n };\n};\n"],"mappings":"AACA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,4BAA4B,QAAQ,eAAe;AAC5D,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,SAAS,QAAQ,4BAA4B;AACtD,SAASC,gCAAgC,QAAQ,oCAAoC;AACrF,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,oBAAoB,QAAQ,wBAAwB;AAE7D,OAAO,MAAMC,0BAA0B,GAAIC,MAA6B,IAAK;EAC3E,MAAMC,MAAM,GAAGN,SAAS,CAAC,CAAC;EAE1B,MAAM;IACJO,YAAY;IACZC,KAAK;IACLC,iBAAiB;IACjBC,cAAc;IACdC;EACF,CAAC,GAAGN,MAAM,CAACO,UAAU;EAErB,MAAM;IAAEC,eAAe;IAAEC,aAAa;IAAEC;EAAe,CAAC,GAAGhB,UAAU,CACnEM,MAAM,CAACW,OACT,CAAC;EAED,MAAM;IACJC,MAAM;IACNC,cAAc;IACdC,eAAe,EAAEC,mBAAmB;IACpCC;EACF,CAAC,GAAGnB,mBAAmB,CAACG,MAAM,CAAC;EAE/B,MAAM;IACJiB,aAAa;IACbH,eAAe,EAAEI,oBAAoB;IACrCC,OAAO,EAAEC,YAAY;IACrBC,UAAU;IACVC,aAAa;IACbC;EACF,CAAC,GAAGzB,oBAAoB,CAACE,MAAM,CAAC;EAEhC,MAAM;IAAEwB,SAAS,EAAEC;EAAe,CAAC,GAAGlC,YAAY,CAAC;IACjDmC,gBAAgB,EAAE1B,MAAM,CAACO,UAAU;IACnCO,eAAe,EAAEa,KAAK,CAACC,IAAI,CACzB,IAAIC,GAAG,CAAC,CAAC,GAAGX,oBAAoB,EAAE,GAAGH,mBAAmB,CAAC,CAC3D,CAAC;IACDL;EACF,CAAC,CAAC;EAEF,MAAMoB,KAAK,GAAGtC,4BAA4B,CAAM;IAC9CuC,SAAS,EAAE,GAAG7B,YAAY,EAAE;IAC5B8B,OAAO,EAAGC,IAAI,IAAKA,IAAI,CAAChC,MAAM,CAACiC,OAAO,CAAC;IACvCC,QAAQ,EAAGF,IAAI,IAAKA,IAAI,CAAChC,MAAM,CAACmC,YAAY,CAAC;IAC7CzB,OAAO,EAAEF,aAAa;IACtB4B,gBAAgB,EAAGJ,IAAI,IAAKA,IAAI,CAACK,cAAc;IAC/CC,iBAAiB,EAAEC,IAAA;MAAA,IAAC;QAAEC;MAAI,CAAC,GAAAD,IAAA;MAAA,OAAKE,MAAM,CAACD,GAAG,CAAC;IAAA;IAC3CjB,SAAS,EAAEC,cAAc;IACzBtB,KAAK;IACLwC,iBAAiB,EAAEvC,iBAAiB;IACpCwC,yBAAyB,EAAEvC,cAAc,KAAK,MAAM;IACpDwC,wBAAwB,EAAEvC;EAC5B,CAAC,CAAC;EAEF,MAAMwC,iBAAiB,GAAGlD,gCAAgC,CACxDM,YAAY,EACZ4B,KAAK,CAACvB,UACR,CAAC;EAED,MAAMwC,cAAc,GAAGtD,2BAA2B,CAAC;IACjD,GAAGO,MAAM;IACT8C;EACF,CAAC,CAAC;EAEF,OAAO;IACL,GAAGC,cAAc;IACjBjB,KAAK;IACLX,OAAO,EAAEC,YAAY;IACrBT,OAAO,EAAEH,eAAe;IACxBsC,iBAAiB;IACjB7B,aAAa;IACbI,UAAU;IACVC,aAAa;IACbC,qBAAqB;IACrB;IACAV,cAAc;IACdD,MAAM;IACNI;EACF,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","createContext","useContext","PatternsWizardOverridesContext","undefined","PatternsWizardOverridesProvider","_ref","children","value","createElement","Provider","usePatternsWizardOverridesContext"],"sources":["../../../src/providers/PatternsWizardOverridesContext.tsx"],"sourcesContent":["import React, { createContext, useContext, ReactNode } from 'react';\nimport { CustomComponentProps, IColumnValue } from '../types';\nimport { CollectionConfig } from '@wix/patterns';\nimport { CustomActionParams, ResolvedAction } from '../utils/actions/types';\n\nexport interface PatternsWizardOverridesContextProps {\n actions?: Record<string, (props: CustomActionParams) => ResolvedAction>;\n columns?: Record<string, (props: IColumnValue<any>) => void>;\n modals?: Record<string, React.FC<any>>;\n HeaderAddon?: React.FC;\n emptyState?: Record<string, () => void>;\n fetchData?: Record<string, CollectionConfig<any, any>['fetchData']>;\n components?: Record<string, React.FC<CustomComponentProps>>;\n}\n\nconst PatternsWizardOverridesContext = createContext<\n PatternsWizardOverridesContextProps | undefined\n>(undefined);\n\nexport const PatternsWizardOverridesProvider: React.FC<{\n children: ReactNode;\n value: PatternsWizardOverridesContextProps;\n}> = ({ children, value }) => {\n return (\n <PatternsWizardOverridesContext.Provider value={value}>\n {children}\n </PatternsWizardOverridesContext.Provider>\n );\n};\n\nexport const usePatternsWizardOverridesContext = ():\n | PatternsWizardOverridesContextProps\n | undefined => {\n return useContext(PatternsWizardOverridesContext);\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,QAAmB,OAAO;AAenE,MAAMC,8BAA8B,gBAAGF,aAAa,CAElDG,SAAS,CAAC;AAEZ,OAAO,MAAMC,+BAGX,GAAGC,IAAA,IAAyB;EAAA,IAAxB;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAAF,IAAA;EACvB,oBACEN,KAAA,CAAAS,aAAA,CAACN,8BAA8B,CAACO,QAAQ;IAACF,KAAK,EAAEA;EAAM,GACnDD,QACsC,CAAC;AAE9C,CAAC;AAED,OAAO,MAAMI,iCAAiC,GAAGA,CAAA,KAEhC;EACf,OAAOT,UAAU,CAACC,8BAA8B,CAAC;AACnD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","createContext","useContext","PatternsWizardOverridesContext","undefined","PatternsWizardOverridesProvider","_ref","children","value","createElement","Provider","usePatternsWizardOverridesContext"],"sources":["../../../src/providers/PatternsWizardOverridesContext.tsx"],"sourcesContent":["import React, { createContext, useContext, ReactNode } from 'react';\nimport {\n CustomComponentProps,\n EntityPageMoreActionsActionParams,\n IColumnValue,\n} from '../types';\nimport { CollectionConfig } from '@wix/patterns';\nimport { CustomActionParams, ResolvedAction } from '../utils/actions/types';\nimport { CollectionPageActionParams } from '../types/actions/collectionPageActions';\nimport { ActionCellActionParams } from '../types/actions/actionCell';\n\nexport interface PatternsWizardOverridesContextProps {\n actions?: Record<\n string,\n (\n props: CustomActionParams<\n | EntityPageMoreActionsActionParams\n | CollectionPageActionParams\n | ActionCellActionParams\n >,\n ) => ResolvedAction\n >;\n columns?: Record<string, (props: IColumnValue<any>) => void>;\n modals?: Record<string, React.FC<any>>;\n HeaderAddon?: React.FC;\n emptyState?: Record<string, () => void>;\n fetchData?: Record<string, CollectionConfig<any, any>['fetchData']>;\n components?: Record<string, React.FC<CustomComponentProps>>;\n}\n\nconst PatternsWizardOverridesContext = createContext<\n PatternsWizardOverridesContextProps | undefined\n>(undefined);\n\nexport const PatternsWizardOverridesProvider: React.FC<{\n children: ReactNode;\n value: PatternsWizardOverridesContextProps;\n}> = ({ children, value }) => {\n return (\n <PatternsWizardOverridesContext.Provider value={value}>\n {children}\n </PatternsWizardOverridesContext.Provider>\n );\n};\n\nexport const usePatternsWizardOverridesContext = ():\n | PatternsWizardOverridesContextProps\n | undefined => {\n return useContext(PatternsWizardOverridesContext);\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,QAAmB,OAAO;AA8BnE,MAAMC,8BAA8B,gBAAGF,aAAa,CAElDG,SAAS,CAAC;AAEZ,OAAO,MAAMC,+BAGX,GAAGC,IAAA,IAAyB;EAAA,IAAxB;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAAF,IAAA;EACvB,oBACEN,KAAA,CAAAS,aAAA,CAACN,8BAA8B,CAACO,QAAQ;IAACF,KAAK,EAAEA;EAAM,GACnDD,QACsC,CAAC;AAE9C,CAAC;AAED,OAAO,MAAMI,iCAAiC,GAAGA,CAAA,KAEhC;EACf,OAAOT,UAAU,CAACC,8BAA8B,CAAC;AACnD,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["ComponentTypeEnum"],"sources":["../../../src/types/CollectionPageConfig.ts"],"sourcesContent":["import { CollectionToolbarFiltersProps } from '@wix/patterns';\nimport { DateRangeFilterMode, DateRangeOptions } from '@wix/patterns/core';\nimport { BaseCollectionConfig } from './types';\nimport {\n ActionCellConfig,\n BulkActionsConfig,\n CollectionPagePrimaryActions,\n CollectionPageSecondaryActions,\n} from './actions';\n\nexport interface CollectionPageConfig {\n route: {\n path: string;\n };\n title: { text: string; hideTotal?: boolean };\n subtitle?: {\n text: string;\n learnMore?: {\n url: string;\n label?: string;\n };\n };\n actions?: {\n primaryActions?: CollectionPagePrimaryActions;\n secondaryActions?: CollectionPageSecondaryActions;\n };\n components: ComponentConfig[];\n}\n\nexport interface ComponentConfig {\n type: 'Table' | 'Grid' | 'TableGridSwitch';\n table?: TableConfig;\n grid?: GridConfig;\n tableGridSwitch?: TableGridSwitchConfig;\n}\n\nexport interface CollectionConfig extends BaseCollectionConfig {\n fetchData?: FetchData;\n limit?: number;\n persistQueryToUrl?: boolean;\n disableAutoSelectAllCount?: boolean;\n selectionConsistencyMode?: 'preserve' | 'clear';\n}\n\nexport interface BaseCollectionComponentConfig {\n collection: CollectionConfig;\n entityPageId?: string;\n search?: { shown?: boolean };\n toolbarTitle?: ToolbarTitle;\n actionCell?: ActionCellConfig;\n emptyState?: EmptyState;\n filters?: FiltersConfig;\n bulkActionToolbar?: BulkActionsConfig;\n}\n\nexport interface TableConfig extends BaseCollectionComponentConfig {\n columns: Column[];\n customColumns?: {\n enabled: boolean;\n };\n}\n\nexport interface GridConfig extends BaseCollectionComponentConfig {\n item: GridItem;\n}\n\nexport interface TableGridSwitchConfig extends TableConfig, GridConfig {}\n\nexport interface ToolbarTitle {\n title: string;\n subtitle?: {\n text: string;\n info?: {\n content: {\n text: string;\n link?: {\n url: string;\n label: string;\n };\n };\n };\n learnMore?: {\n url: string;\n label?: string;\n };\n };\n showTotal?: boolean;\n itemsLimit?: number;\n}\n\nexport interface Column {\n id: string;\n name: string;\n width: string;\n sortable?: boolean;\n defaultSortOrder?: 'asc' | 'desc';\n sortMode?: 'asc' | 'desc';\n defaultHidden?: boolean;\n hiddenFromCustomColumnsSelection?: boolean;\n hideable?: boolean;\n reorderDisabled?: boolean;\n}\n\nexport interface GridItem {\n titleFieldId: string;\n subtitleFieldId?: string;\n imageFieldId?: string;\n cardContentMode?: 'full' | 'title' | 'empty'; // Footer is not supported in auto-patterns\n imagePlacement?: 'top' | 'side';\n}\n\nexport interface EmptyState {\n title?: string;\n subtitle?: string;\n image?: {\n id: string;\n };\n addNewCta?: {\n id?: string;\n text?: string;\n };\n customCta?: {\n id?: string;\n };\n}\n\ninterface FetchData {\n id: string;\n}\n\nexport interface FilterOption {\n value: string;\n label: string;\n}\n\nexport type FilterSelectionMode = 'single' | 'multiple';\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 interface FiltersConfig {\n items: Filter[];\n maxInlineFilters?: CollectionToolbarFiltersProps['inline'];\n panelTitle?: string;\n}\n\nexport interface BaseOptionsFilterConfig {\n selectionMode: FilterSelectionMode;\n}\n\nexport interface DateFilterConfig {\n mode?: DateRangeFilterMode;\n presets?: DateRangeOptions;\n includeTime?: boolean;\n}\n\nexport interface NumberFilterConfig {\n min?: number;\n max?: number;\n allowedDecimals?: boolean;\n}\n\nexport interface BooleanFilterConfig {\n trueLabel?: string;\n falseLabel?: string;\n}\n\nexport interface EnumFilterConfig extends BaseOptionsFilterConfig {\n options: FilterOption[];\n optionType?: FilterOptionType;\n}\n\nexport interface DynamicOptionsFilterConfig extends BaseOptionsFilterConfig {}\n\nexport interface Filter {\n id: string;\n fieldId: string;\n displayName?: string;\n sectionTitle?: string;\n openByDefault?: boolean;\n tagLabel?: string;\n numberConfig?: NumberFilterConfig;\n dateConfig?: DateFilterConfig;\n booleanConfig?: BooleanFilterConfig;\n enumConfig?: EnumFilterConfig;\n dynamicOptionsConfig?: DynamicOptionsFilterConfig;\n}\n"],"mappings":"AA8IA,WAAYA,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["ComponentTypeEnum"],"sources":["../../../src/types/CollectionPageConfig.ts"],"sourcesContent":["import { CollectionToolbarFiltersProps } from '@wix/patterns';\nimport { DateRangeFilterMode, DateRangeOptions } from '@wix/patterns/core';\nimport { BaseCollectionConfig } from './types';\nimport {\n ActionCellConfig,\n BulkActionsConfig,\n CollectionPagePrimaryActions,\n CollectionPageSecondaryActions,\n} from './actions';\n\nexport interface CollectionPageTitle {\n text: string;\n hideTotal?: boolean;\n}\n\nexport interface CollectionPageSubtitle {\n text: string;\n learnMore?: {\n url: string;\n label?: string;\n };\n}\n\nexport interface CollectionPageConfig {\n route: {\n path: string;\n };\n title: CollectionPageTitle;\n subtitle?: CollectionPageSubtitle;\n actions?: {\n primaryActions?: CollectionPagePrimaryActions;\n secondaryActions?: CollectionPageSecondaryActions;\n };\n components: ComponentConfig[];\n}\n\nexport interface ComponentConfig extends BaseCollectionComponentConfig {\n layout: LayoutItemConfig[];\n}\n\nexport interface LayoutItemConfig {\n type: 'Table' | 'Grid';\n table?: TableSpecificConfig;\n grid?: GridSpecificConfig;\n}\n\nexport type ColumnsConfig = Column[];\n\nexport interface TableSpecificConfig {\n columns: ColumnsConfig;\n customColumns?: {\n enabled: boolean;\n };\n stickyColumns?: number;\n}\n\nexport interface GridSpecificConfig {\n item: GridItem;\n}\n\nexport interface TableConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig {}\nexport interface GridConfig\n extends BaseCollectionComponentConfig,\n GridSpecificConfig {}\nexport interface TableGridSwitchConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig,\n GridSpecificConfig {}\n\nexport interface CollectionConfig extends BaseCollectionConfig {\n fetchData?: FetchData;\n limit?: number;\n reflectQueryInUrl?: boolean;\n selectAllScope?: 'page' | 'all';\n selectionUpdateMode?: 'preserve' | 'clear';\n}\n\nexport interface BaseCollectionComponentConfig {\n collection: CollectionConfig;\n entityPageId?: string;\n search?: { shown?: boolean };\n toolbarTitle?: ToolbarTitle;\n actionCell?: ActionCellConfig;\n emptyState?: EmptyState;\n filters?: FiltersConfig;\n bulkActionToolbar?: BulkActionsConfig;\n}\n\nexport interface ToolbarTitle {\n title: string;\n subtitle?: {\n text: string;\n info?: {\n content: {\n text: string;\n link?: {\n url: string;\n label: string;\n };\n };\n };\n learnMore?: {\n url: string;\n label?: string;\n };\n };\n showTotal?: boolean;\n itemsLimit?: number;\n}\n\nexport interface Column {\n id: string;\n name: string;\n width: string;\n sortable?: boolean;\n defaultSortOrder?: 'asc' | 'desc';\n sortMode?: 'asc' | 'desc';\n defaultHidden?: boolean;\n hiddenFromCustomColumnsSelection?: boolean;\n hideable?: boolean;\n reorderDisabled?: boolean;\n}\n\nexport interface GridItem {\n titleFieldId: string;\n subtitleFieldId?: string;\n imageFieldId?: string;\n cardContentMode?: 'full' | 'title' | 'empty'; // Footer is not supported in auto-patterns\n imagePlacement?: 'top' | 'side';\n}\n\nexport interface EmptyState {\n title?: string;\n subtitle?: string;\n image?: {\n id: string;\n };\n addNewCta?: {\n id?: string;\n text?: string;\n };\n customCta?: {\n id?: string;\n };\n}\n\ninterface FetchData {\n id: string;\n}\n\nexport interface FilterOption {\n value: string;\n label: string;\n}\n\nexport type FilterSelectionMode = 'single' | 'multiple';\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[];\nexport interface FiltersConfig {\n items: FilterItems;\n maxInlineFilters?: CollectionToolbarFiltersProps['inline'];\n panelTitle?: string;\n}\n\nexport interface BaseOptionsFilterConfig {\n selectionMode: FilterSelectionMode;\n}\n\nexport interface DateFilterConfig {\n mode?: DateRangeFilterMode;\n presets?: DateRangeOptions;\n includeTime?: boolean;\n}\n\nexport interface NumberFilterConfig {\n min?: number;\n max?: number;\n allowedDecimals?: boolean;\n}\n\nexport interface BooleanFilterConfig {\n trueLabel?: string;\n falseLabel?: string;\n}\n\nexport interface EnumFilterConfig extends BaseOptionsFilterConfig {\n options: FilterOption[];\n optionType?: FilterOptionType;\n}\n\nexport interface DynamicOptionsFilterConfig extends BaseOptionsFilterConfig {}\n\nexport interface Filter {\n id: string;\n fieldId: string;\n displayName?: string;\n sectionTitle?: string;\n openByDefault?: boolean;\n tagLabel?: string;\n numberConfig?: NumberFilterConfig;\n dateConfig?: DateFilterConfig;\n booleanConfig?: BooleanFilterConfig;\n enumConfig?: EnumFilterConfig;\n dynamicOptionsConfig?: DynamicOptionsFilterConfig;\n}\n"],"mappings":"AAoKA,WAAYA,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/types/EntityPageConfig.ts"],"sourcesContent":["import { FieldValues, UseFormReturn } from '@wix/patterns/form';\n\nexport interface EntityPageConfig {\n route: {\n path: string;\n params: {\n id: string;\n };\n };\n title?: {\n text: string;\n };\n subtitle?: {\n text: string;\n learnMore?: {\n url: string;\n label?: string;\n };\n };\n collectionId: string;\n entityTypeSource: string;\n parentPageId?: string;\n layout?: {\n main: CardLayout[];\n sidebar?: CardLayout[];\n };\n}\n\nexport interface CardLayout {\n type: 'card';\n card: {\n title: {\n text: string;\n };\n subtitle?: {\n text: string;\n };\n children: LayoutContent[];\n };\n}\n\nexport type LayoutContent =\n | FieldContent\n | ContainerContent\n | ComponentItemContent;\n\ninterface FieldContent {\n type: 'field';\n field: {\n span?: number;\n fieldId: string;\n };\n}\n\ninterface ContainerContent {\n type: 'container';\n container: {\n span?: number;\n children: LayoutContent[];\n };\n}\n\ninterface ComponentItemContent {\n type: 'component';\n component: {\n span?: number;\n componentId: string;\n };\n}\n\nexport interface CustomComponentProps {\n entity?: Record<string, any>;\n form: UseFormReturn<FieldValues, any, undefined>;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../src/types/EntityPageConfig.ts"],"sourcesContent":["import { FieldValues, UseFormReturn } from '@wix/patterns/form';\nimport { EntityPageMoreActions } from './actions/entityPageActions';\n\nexport interface EntityPageConfig {\n route: {\n path: string;\n params: {\n id: string;\n };\n };\n title?: {\n text: string;\n };\n subtitle?: {\n text: string;\n learnMore?: {\n url: string;\n label?: string;\n };\n };\n collectionId: string;\n entityTypeSource: string;\n parentPageId?: string;\n layout?: {\n main: CardLayout[];\n sidebar?: CardLayout[];\n };\n moreActions?: EntityPageMoreActions;\n}\n\nexport interface CardLayout {\n type: 'card';\n card: {\n title: {\n text: string;\n };\n subtitle?: {\n text: string;\n };\n children: LayoutContent[];\n };\n}\n\nexport type LayoutContent =\n | FieldContent\n | ContainerContent\n | ComponentItemContent;\n\ninterface FieldContent {\n type: 'field';\n field: {\n span?: number;\n fieldId: string;\n };\n}\n\ninterface ContainerContent {\n type: 'container';\n container: {\n span?: number;\n children: LayoutContent[];\n };\n}\n\ninterface ComponentItemContent {\n type: 'component';\n component: {\n span?: number;\n componentId: string;\n };\n}\n\nexport interface CustomComponentProps {\n entity?: Record<string, any>;\n form: UseFormReturn<FieldValues, any, undefined>;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../../src/types/actions/actionCell.ts"],"sourcesContent":["import {\n BaseActionParams,\n CustomActionModalProps,\n ResolvedAction,\n} from '../../exports/types';\nimport {\n CustomActionConfig,\n CustomModalActionConfig,\n DeleteActionConfig,\n UpdateActionConfig,\n} from './base';\n\nexport type ActionCellItemConfig =\n | UpdateActionConfig\n | CustomModalActionConfig\n | CustomActionConfig\n | DeleteActionConfig;\n\nexport interface ActionCellPrimaryAction {\n item: ActionCellItemConfig;\n}\n\nexport interface ActionCellSecondaryActions {\n items: ActionCellItemConfig[];\n}\n\nexport interface ActionCellConfig {\n primaryAction?: ActionCellPrimaryAction;\n secondaryActions?: ActionCellSecondaryActions;\n}\n\nexport interface ActionCellActionParams {\n item: any;\n}\n\nexport interface CustomActionCellActionParams extends BaseActionParams {\n actionParams: ActionCellActionParams;\n}\nexport type CustomActionCellActionResolver = (\n params: CustomActionCellActionParams,\n) => ResolvedAction;\n\nexport interface CustomActionCellActionModalProps\n extends CustomActionModalProps {\n actionParams: ActionCellActionParams;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../../src/types/actions/actionCell.ts"],"sourcesContent":["import {\n CustomActionModalProps,\n CustomActionParams,\n ResolvedAction,\n} from '../../exports/types';\nimport {\n CustomActionConfig,\n CustomModalActionConfig,\n DeleteActionConfig,\n UpdateActionConfig,\n} from './base';\n\nexport type ActionCellItemConfig =\n | UpdateActionConfig\n | CustomModalActionConfig\n | CustomActionConfig\n | DeleteActionConfig;\n\nexport interface ActionCellPrimaryAction {\n item: ActionCellItemConfig;\n}\n\nexport interface ActionCellSecondaryActions {\n items: ActionCellItemConfig[];\n inlineCount?: number;\n inlineAlwaysVisible?: boolean;\n}\n\nexport interface ActionCellConfig {\n primaryAction?: ActionCellPrimaryAction;\n secondaryActions?: ActionCellSecondaryActions;\n}\n\nexport interface ActionCellActionParams {\n item: any;\n}\n\nexport type CustomActionCellActionParams =\n CustomActionParams<ActionCellActionParams>;\n\nexport type CustomActionCellActionResolver = (\n params: CustomActionCellActionParams,\n) => ResolvedAction;\n\nexport interface CustomActionCellActionModalProps\n extends CustomActionModalProps {\n actionParams: ActionCellActionParams;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../../src/types/actions/base.ts"],"sourcesContent":["export type BaseActionItemConfig = {\n id: string;\n label?: string;\n icon?: string;\n};\n\nexport interface Feedback {\n successToast?: { text: string };\n errorToast?: { text: string };\n}\n\nexport interface BaseActionModal {\n title?: { text: string };\n actions?: {\n submit?: { text: string };\n cancel?: { text: string };\n };\n feedback?: Feedback;\n}\n\nexport interface ActionModalField {\n id: string;\n label?: string;\n}\n\nexport interface DeleteActionModal extends BaseActionModal {\n description?: { text: string };\n}\n\nexport interface BulkDeleteActionModal extends DeleteActionModal {}\n\nexport type BulkDeleteAction =\n | {\n mode: 'modal';\n modal: BulkDeleteActionModal;\n custom?: never;\n }\n | {\n mode: 'custom';\n custom: CustomAction;\n modal?: never;\n };\n\nexport type DeleteAction = {\n mode: 'modal';\n modal: DeleteActionModal;\n};\n\nexport interface BaseActionPage {\n id: string;\n}\n\nexport type CustomAction = {};\n\nexport type CustomModalAction = {\n id: string;\n};\n\nexport interface ActionModalWithFields extends BaseActionModal {\n fields: ActionModalField[];\n}\n\nexport interface UpdateActionModal extends ActionModalWithFields {}\n\nexport interface CreateActionModal extends ActionModalWithFields {}\n\nexport interface UpdateActionPage extends BaseActionPage {}\n\nexport interface CreateActionPage extends BaseActionPage {}\n\nexport type UpdateAction = {\n mode: 'page';\n page: UpdateActionPage;\n};\n\nexport type CreateAction = {\n mode: 'page';\n page: CreateActionPage;\n};\n\nexport type CreateActionConfig = BaseActionItemConfig & {\n type: 'create';\n create: CreateAction;\n};\n\nexport type UpdateActionConfig = BaseActionItemConfig & {\n type: 'update';\n update: UpdateAction;\n};\n\nexport type DeleteActionConfig = BaseActionItemConfig & {\n type: 'delete';\n delete: DeleteAction;\n};\n\nexport type BulkDeleteActionConfig = BaseActionItemConfig & {\n type: 'bulkDelete';\n bulkDelete: BulkDeleteAction;\n};\n\nexport type CustomModalActionConfig = BaseActionItemConfig & {\n type: 'customModal';\n customModal: CustomModalAction;\n};\n\nexport type CustomActionConfig = BaseActionItemConfig & {\n type: 'custom';\n custom: CustomAction;\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../../src/types/actions/base.ts"],"sourcesContent":["export type BaseActionItemConfig = {\n id: string;\n label?: string;\n};\n\nexport interface Feedback {\n successToast?: { text: string };\n errorToast?: { text: string };\n}\n\nexport interface BaseActionModal {\n title?: { text: string };\n actions?: {\n submit?: { text: string };\n cancel?: { text: string };\n };\n feedback?: Feedback;\n}\n\nexport interface ActionModalField {\n id: string;\n label?: string;\n}\n\nexport interface DeleteActionModal extends BaseActionModal {\n description?: { text: string };\n}\n\nexport interface BulkDeleteActionModal extends DeleteActionModal {}\n\nexport type BulkDeleteAction =\n | {\n mode: 'modal';\n modal: BulkDeleteActionModal;\n custom?: never;\n }\n | {\n mode: 'custom';\n custom: CustomAction;\n modal?: never;\n };\n\nexport type DeleteAction = {\n mode: 'modal';\n modal: DeleteActionModal;\n};\n\nexport interface BaseActionPage {\n id: string;\n}\n\nexport type CustomAction = {};\n\nexport type CustomModalAction = {\n id: string;\n};\n\nexport interface ActionModalWithFields extends BaseActionModal {\n fields: ActionModalField[];\n}\n\nexport interface UpdateActionModal extends ActionModalWithFields {}\n\nexport interface CreateActionModal extends ActionModalWithFields {}\n\nexport interface UpdateActionPage extends BaseActionPage {}\n\nexport interface CreateActionPage extends BaseActionPage {}\n\nexport type UpdateAction = {\n mode: 'page';\n page: UpdateActionPage;\n};\n\nexport type CreateAction = {\n mode: 'page';\n page: CreateActionPage;\n};\n\nexport type CreateActionConfig = BaseActionItemConfig & {\n type: 'create';\n create: CreateAction;\n};\n\nexport type UpdateActionConfig = BaseActionItemConfig & {\n type: 'update';\n update: UpdateAction;\n};\n\nexport type DeleteActionConfig = BaseActionItemConfig & {\n type: 'delete';\n delete: DeleteAction;\n};\n\nexport type BulkDeleteActionConfig = BaseActionItemConfig & {\n type: 'bulkDelete';\n bulkDelete: BulkDeleteAction;\n};\n\nexport type CustomModalActionConfig = BaseActionItemConfig & {\n type: 'customModal';\n customModal: CustomModalAction;\n};\n\nexport type CustomActionConfig = BaseActionItemConfig & {\n type: 'custom';\n custom: CustomAction;\n};\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../../src/types/actions/bulkActions.ts"],"sourcesContent":["import {\n BaseActionParams,\n CustomActionModalProps,\n ResolvedAction,\n} from '../../exports/types';\nimport {\n BulkDeleteActionConfig,\n CustomActionConfig,\n CustomModalActionConfig,\n} from './base';\n\nexport type BulkActionItemConfig =\n | BulkDeleteActionConfig\n | CustomModalActionConfig\n | CustomActionConfig;\n\nexport interface BulkActionsPrimaryActions {\n items: BulkActionItemConfig[];\n}\n\nexport interface BulkActionSection {\n items: BulkActionItemConfig[];\n}\n\nexport interface BulkActionsSecondaryActions {\n sections: BulkActionSection[];\n}\n\nexport interface BulkActionsConfig {\n primaryActions?: BulkActionsPrimaryActions;\n secondaryActions?: BulkActionsSecondaryActions;\n}\n\nexport interface BulkActionsActionParams {\n selectedValues: any[];\n total: number;\n}\n\nexport interface CustomBulkActionsActionParams extends BaseActionParams {\n actionParams: BulkActionsActionParams;\n}\nexport type CustomBulkActionsActionResolver = (\n params: CustomBulkActionsActionParams,\n) => ResolvedAction;\n\nexport interface CustomBulkActionsActionModalProps\n extends CustomActionModalProps {\n actionParams: BulkActionsActionParams;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../../src/types/actions/bulkActions.ts"],"sourcesContent":["import {\n BaseActionParams,\n CustomActionModalProps,\n ResolvedAction,\n} from '../../exports/types';\nimport {\n BulkDeleteActionConfig,\n CustomActionConfig,\n CustomModalActionConfig,\n} from './base';\n\nexport type BulkActionItemConfig =\n | BulkDeleteActionConfig\n | CustomModalActionConfig\n | CustomActionConfig;\n\ntype BulkActionSingleItem = {\n type: 'single';\n single: {\n item: BulkActionItemConfig;\n };\n};\n\ntype BulkActionMultiItem = {\n type: 'multi';\n multi: {\n label: string;\n items: BulkActionItemConfig[];\n };\n};\n\nexport type BulkActionSectionItem = BulkActionItemConfig[];\n\nexport type BulkActionPrimaryItem = BulkActionSingleItem | BulkActionMultiItem;\nexport type BulkActionSecondaryItem = BulkActionSectionItem;\n\nexport interface BulkActionsConfig {\n primaryActions?: BulkActionPrimaryItem[];\n secondaryActions?: BulkActionSecondaryItem[];\n}\n\nexport interface BulkActionsActionParams {\n selectedValues: any[];\n total: number;\n}\n\nexport interface CustomBulkActionsActionParams extends BaseActionParams {\n actionParams: BulkActionsActionParams;\n}\nexport type CustomBulkActionsActionResolver = (\n params: CustomBulkActionsActionParams,\n) => ResolvedAction;\n\nexport interface CustomBulkActionsActionModalProps\n extends CustomActionModalProps {\n actionParams: BulkActionsActionParams;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../../src/types/actions/collectionPageActions.ts"],"sourcesContent":["import {\n BaseActionParams,\n CustomActionModalProps,\n ResolvedAction,\n} from '../../exports/types';\nimport {\n CreateActionConfig,\n CustomActionConfig,\n CustomModalActionConfig,\n} from './base';\n\nexport type CollectionPageActionConfig = (\n | CreateActionConfig\n | CustomModalActionConfig\n | CustomActionConfig\n) & {\n collection: {\n collectionId: string;\n entityTypeSource: 'cms';\n };\n};\n\ntype CollectionPageSingleAction = {\n type: 'single';\n single: {\n item: CollectionPageActionConfig;\n };\n multi?: never;\n};\n\ntype CollectionPageMultiAction = {\n type: 'multi';\n multi: {\n label: string;\n icon?: string;\n items: CollectionPageActionConfig[];\n };\n single?: never;\n};\n\nexport type CollectionPagePrimaryActions =\n | CollectionPageSingleAction\n | CollectionPageMultiAction;\n\nexport type CollectionPageSecondaryActions =\n | CollectionPageSingleAction\n | CollectionPageMultiAction;\n\nexport interface CollectionPageActionParams {\n collectionId: string;\n}\n\nexport interface CustomActionCollectionPageActionParams\n extends BaseActionParams {\n actionParams: CollectionPageActionParams;\n}\nexport type CustomActionCollectionPageActionResolver = (\n params: CustomActionCollectionPageActionParams,\n) => ResolvedAction;\n\nexport interface CustomActionCollectionPageActionModalProps\n extends CustomActionModalProps {\n actionParams: CollectionPageActionParams;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../../src/types/actions/collectionPageActions.ts"],"sourcesContent":["import {\n CustomActionModalProps,\n CustomActionParams,\n ResolvedAction,\n} from '../../exports/types';\nimport {\n CreateActionConfig,\n CustomActionConfig,\n CustomModalActionConfig,\n} from './base';\n\nexport type CollectionPageActionConfig = (\n | CreateActionConfig\n | CustomModalActionConfig\n | CustomActionConfig\n) & {\n collection: {\n collectionId: string;\n entityTypeSource: 'cms';\n };\n};\n\ntype CollectionPageSingleAction = {\n type: 'single';\n single: {\n item: CollectionPageActionConfig;\n };\n multi?: never;\n};\n\ntype CollectionPageMultiAction = {\n type: 'multi';\n multi: {\n label: string;\n items: CollectionPageActionConfig[];\n };\n single?: never;\n};\n\nexport type CollectionPagePrimaryActions =\n | CollectionPageSingleAction\n | CollectionPageMultiAction;\n\nexport type CollectionPageSecondaryActions =\n | CollectionPageSingleAction\n | CollectionPageMultiAction;\n\nexport interface CollectionPageActionParams {\n collectionId: string;\n}\n\nexport type CustomActionCollectionPageActionParams =\n CustomActionParams<CollectionPageActionParams>;\n\nexport type CustomActionCollectionPageActionResolver = (\n params: CustomActionCollectionPageActionParams,\n) => ResolvedAction;\n\nexport interface CustomActionCollectionPageActionModalProps\n extends CustomActionModalProps {\n actionParams: CollectionPageActionParams;\n}\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=entityPageActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../../../src/types/actions/entityPageActions.ts"],"sourcesContent":["import { FieldValues, UseFormReturn } from '@wix/patterns/form';\nimport { CustomActionParams, ResolvedAction } from '../..';\nimport { CustomActionConfig } from './base';\n\nexport type EntityPageActionConfig = CustomActionConfig;\n\nexport type EntityPageMoreActions = EntityPageActionConfig[][];\n\nexport interface EntityPageMoreActionsActionParams {\n entity: any;\n form: UseFormReturn<FieldValues, any, undefined>;\n}\n\nexport type CustomEntityPageMoreActionsActionParams =\n CustomActionParams<EntityPageMoreActionsActionParams>;\n\nexport type CustomEntityPageMoreActionsActionResolver = (\n params: CustomEntityPageMoreActionsActionParams,\n) => ResolvedAction;\n"],"mappings":"","ignoreList":[]}
@@ -2,4 +2,5 @@ export * from './base';
2
2
  export * from './actionCell';
3
3
  export * from './bulkActions';
4
4
  export * from './collectionPageActions';
5
+ export * from './entityPageActions';
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../../src/types/actions/index.ts"],"sourcesContent":["export * from './base';\nexport * from './actionCell';\nexport * from './bulkActions';\nexport * from './collectionPageActions';\n"],"mappings":"AAAA,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,eAAe;AAC7B,cAAc,yBAAyB","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../../src/types/actions/index.ts"],"sourcesContent":["export * from './base';\nexport * from './actionCell';\nexport * from './bulkActions';\nexport * from './collectionPageActions';\nexport * from './entityPageActions';\n"],"mappings":"AAAA,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,eAAe;AAC7B,cAAc,yBAAyB;AACvC,cAAc,qBAAqB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/types/types.ts"],"sourcesContent":["import { EntityPageConfig } from './EntityPageConfig';\nimport { CollectionPageConfig } from './CollectionPageConfig';\n\nexport interface BaseCollectionConfig {\n collectionId: string;\n entityTypeSource: 'cms';\n}\n\nexport type PatternsFieldType =\n | 'SHORT_TEXT'\n | 'LONG_TEXT'\n | 'NUMBER'\n | 'BOOLEAN'\n | 'DATE'\n | 'DATETIME'\n | 'URL'\n | 'ARRAY'\n | 'REFERENCE'\n | 'IMAGE';\n\nexport interface AppConfig {\n pages: PageConfig[];\n}\n\nexport interface BasePageConfig {\n id: string;\n appMainPage?: boolean;\n}\n\nexport interface CollectionPageConfigType extends BasePageConfig {\n type: 'collectionPage';\n collectionPage: CollectionPageConfig;\n entityPage?: never;\n}\n\nexport interface EntityPageConfigType extends BasePageConfig {\n type: 'entityPage';\n entityPage: EntityPageConfig;\n collectionPage?: never;\n}\n\nexport type PageConfig = CollectionPageConfigType | EntityPageConfigType;\n\nexport type EntityProps = { [key: string]: any };\n\nexport interface IMenuItem<T extends EntityProps = any> {\n item: T;\n}\nexport interface IColumnValue<T> {\n value: T;\n}\n\nexport type QueryOperator =\n | 'CONTAINS'\n | 'ENDS_WITH'\n | 'EQ'\n | 'EXISTS'\n | 'GT'\n | 'GTE'\n | 'HAS_ALL'\n | 'HAS_SOME'\n | 'LT'\n | 'LTE'\n | 'NE'\n | 'STARTS_WITH'\n | 'URLIZED';\n\ninterface BaseField {\n id: string;\n displayName: string;\n validation?: {\n numberRange?: NumberRange;\n stringLengthRange?: StringLengthRange;\n required: boolean;\n };\n capabilities: {\n supportedQueryOperators: QueryOperator[];\n sortable: boolean;\n };\n}\n\nexport interface ReferenceField extends BaseField {\n type: 'REFERENCE';\n referenceMetadata: {\n referencedCollectionId: string;\n };\n}\n\nexport interface NonReferenceField extends BaseField {\n type: Exclude<PatternsFieldType, 'REFERENCE'>;\n}\n\nexport type Field = ReferenceField | NonReferenceField;\n\nexport interface NumberRange {\n min?: number;\n max?: number;\n}\nexport interface StringLengthRange {\n minLength?: number;\n maxLength?: number;\n}\n\nexport interface SchemaConfig {\n id: string;\n fields: Record<string, Field | undefined>;\n displayField: string;\n idField: string;\n imageField?: string;\n actions: {\n get: (entityId: string) => Promise<any>;\n create: (newEntity: Partial<any>) => Promise<any>;\n update: (updatedEntity: any) => Promise<any>;\n delete: (entityId: string) => Promise<any>;\n bulkDelete: (entityIds: string[]) => Promise<any>;\n };\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../src/types/types.ts"],"sourcesContent":["import { EntityPageConfig } from './EntityPageConfig';\nimport { CollectionPageConfig } from './CollectionPageConfig';\n\nexport interface BaseCollectionConfig {\n collectionId: string;\n entityTypeSource: 'cms';\n}\n\nexport type PatternsFieldType =\n | 'SHORT_TEXT'\n | 'LONG_TEXT'\n | 'NUMBER'\n | 'BOOLEAN'\n | 'DATE'\n | 'DATETIME'\n | 'URL'\n | 'ARRAY'\n | 'REFERENCE'\n | 'IMAGE';\n\nexport interface AppConfig {\n pages: PageConfig[];\n}\n\nexport interface BasePageConfig {\n id: string;\n appMainPage?: boolean;\n}\n\nexport interface CollectionPageConfigType extends BasePageConfig {\n type: 'collectionPage';\n collectionPage: CollectionPageConfig;\n entityPage?: never;\n}\n\nexport interface EntityPageConfigType extends BasePageConfig {\n type: 'entityPage';\n entityPage: EntityPageConfig;\n collectionPage?: never;\n}\n\nexport type PageConfig = CollectionPageConfigType | EntityPageConfigType;\n\nexport type EntityProps = { [key: string]: any };\n\nexport interface IMenuItem<T extends EntityProps = any> {\n item: T;\n}\nexport interface IColumnValue<T> {\n value: T;\n row: Record<string, any>;\n}\n\nexport type QueryOperator =\n | 'CONTAINS'\n | 'ENDS_WITH'\n | 'EQ'\n | 'EXISTS'\n | 'GT'\n | 'GTE'\n | 'HAS_ALL'\n | 'HAS_SOME'\n | 'LT'\n | 'LTE'\n | 'NE'\n | 'STARTS_WITH'\n | 'URLIZED';\n\ninterface BaseField {\n id: string;\n displayName: string;\n validation?: {\n numberRange?: NumberRange;\n stringLengthRange?: StringLengthRange;\n required: boolean;\n };\n capabilities: {\n supportedQueryOperators: QueryOperator[];\n sortable: boolean;\n };\n}\n\nexport interface ReferenceField extends BaseField {\n type: 'REFERENCE';\n referenceMetadata: {\n referencedCollectionId: string;\n };\n}\n\nexport interface NonReferenceField extends BaseField {\n type: Exclude<PatternsFieldType, 'REFERENCE'>;\n}\n\nexport type Field = ReferenceField | NonReferenceField;\n\nexport interface NumberRange {\n min?: number;\n max?: number;\n}\nexport interface StringLengthRange {\n minLength?: number;\n maxLength?: number;\n}\n\nexport interface SchemaConfig {\n id: string;\n fields: Record<string, Field | undefined>;\n displayField: string;\n idField: string;\n imageField?: string;\n actions: {\n get: (entityId: string) => Promise<any>;\n create: (newEntity: Partial<any>) => Promise<any>;\n update: (updatedEntity: any) => Promise<any>;\n delete: (entityId: string) => Promise<any>;\n bulkDelete: (entityIds: string[]) => Promise<any>;\n };\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ import { Delete } from '@wix/wix-ui-icons-common';
2
+ import React from 'react';
1
3
  export const bulkDeleteAction = params => {
2
4
  const {
3
5
  action,
@@ -15,7 +17,7 @@ export const bulkDeleteAction = params => {
15
17
  }
16
18
  },
17
19
  label: 'Delete',
18
- icon: 'Delete'
20
+ icon: /*#__PURE__*/React.createElement(Delete, null)
19
21
  };
20
22
  };
21
23
  //# sourceMappingURL=bulkDeleteAction.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["bulkDeleteAction","params","action","sdk","actionParams","onClick","bulkDelete","mode","openModal","modalParams","modal","label","icon"],"sources":["../../../../src/utils/actions/bulkDeleteAction.ts"],"sourcesContent":["import { BulkDeleteActionParams } from './types';\n\nexport const bulkDeleteAction = (params: BulkDeleteActionParams) => {\n const { action, sdk, actionParams } = params;\n return {\n onClick: () => {\n if (action.bulkDelete.mode === 'modal') {\n sdk.openModal('BulkDeleteModal', {\n modalParams: action.bulkDelete.modal,\n actionParams,\n sdk,\n });\n }\n },\n label: 'Delete',\n icon: 'Delete',\n };\n};\n"],"mappings":"AAEA,OAAO,MAAMA,gBAAgB,GAAIC,MAA8B,IAAK;EAClE,MAAM;IAAEC,MAAM;IAAEC,GAAG;IAAEC;EAAa,CAAC,GAAGH,MAAM;EAC5C,OAAO;IACLI,OAAO,EAAEA,CAAA,KAAM;MACb,IAAIH,MAAM,CAACI,UAAU,CAACC,IAAI,KAAK,OAAO,EAAE;QACtCJ,GAAG,CAACK,SAAS,CAAC,iBAAiB,EAAE;UAC/BC,WAAW,EAAEP,MAAM,CAACI,UAAU,CAACI,KAAK;UACpCN,YAAY;UACZD;QACF,CAAC,CAAC;MACJ;IACF,CAAC;IACDQ,KAAK,EAAE,QAAQ;IACfC,IAAI,EAAE;EACR,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Delete","React","bulkDeleteAction","params","action","sdk","actionParams","onClick","bulkDelete","mode","openModal","modalParams","modal","label","icon","createElement"],"sources":["../../../../src/utils/actions/bulkDeleteAction.tsx"],"sourcesContent":["import { BulkDeleteActionParams } from './types';\nimport { Delete } from '@wix/wix-ui-icons-common';\nimport React from 'react';\n\nexport const bulkDeleteAction = (params: BulkDeleteActionParams) => {\n const { action, sdk, actionParams } = params;\n return {\n onClick: () => {\n if (action.bulkDelete.mode === 'modal') {\n sdk.openModal('BulkDeleteModal', {\n modalParams: action.bulkDelete.modal,\n actionParams,\n sdk,\n });\n }\n },\n label: 'Delete',\n icon: <Delete />,\n };\n};\n"],"mappings":"AACA,SAASA,MAAM,QAAQ,0BAA0B;AACjD,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAO,MAAMC,gBAAgB,GAAIC,MAA8B,IAAK;EAClE,MAAM;IAAEC,MAAM;IAAEC,GAAG;IAAEC;EAAa,CAAC,GAAGH,MAAM;EAC5C,OAAO;IACLI,OAAO,EAAEA,CAAA,KAAM;MACb,IAAIH,MAAM,CAACI,UAAU,CAACC,IAAI,KAAK,OAAO,EAAE;QACtCJ,GAAG,CAACK,SAAS,CAAC,iBAAiB,EAAE;UAC/BC,WAAW,EAAEP,MAAM,CAACI,UAAU,CAACI,KAAK;UACpCN,YAAY;UACZD;QACF,CAAC,CAAC;MACJ;IACF,CAAC;IACDQ,KAAK,EAAE,QAAQ;IACfC,IAAI,eAAEb,KAAA,CAAAc,aAAA,CAACf,MAAM,MAAE;EACjB,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ import React from 'react';
2
+ import { Add } from '@wix/wix-ui-icons-common';
1
3
  export const createAction = params => {
2
4
  const {
3
5
  action,
@@ -27,7 +29,7 @@ export const createAction = params => {
27
29
  }
28
30
  },
29
31
  label: 'Create',
30
- icon: 'Add'
32
+ icon: /*#__PURE__*/React.createElement(Add, null)
31
33
  };
32
34
  };
33
35
  //# sourceMappingURL=createAction.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createAction","params","action","sdk","appConfig","onClick","create","mode","pageId","page","id","pageToNavigate","pages","find","type","navigateToEntityPage","entityPageId","item","label","icon"],"sources":["../../../../src/utils/actions/createAction.tsx"],"sourcesContent":["import { CreateActionParams } from './types';\n\nexport const createAction = (params: CreateActionParams) => {\n const { action, sdk } = params;\n const { appConfig } = sdk;\n\n return {\n onClick: () => {\n if (action.create.mode === 'page') {\n const pageId = action.create.page.id;\n const pageToNavigate = appConfig.pages.find(\n (page) => page.id === pageId,\n );\n\n if (pageToNavigate) {\n if (pageToNavigate.type === 'entityPage') {\n const { navigateToEntityPage } = sdk;\n if (navigateToEntityPage) {\n navigateToEntityPage({\n entityPageId: pageId,\n item: null,\n });\n }\n }\n }\n }\n },\n label: 'Create',\n icon: 'Add',\n };\n};\n"],"mappings":"AAEA,OAAO,MAAMA,YAAY,GAAIC,MAA0B,IAAK;EAC1D,MAAM;IAAEC,MAAM;IAAEC;EAAI,CAAC,GAAGF,MAAM;EAC9B,MAAM;IAAEG;EAAU,CAAC,GAAGD,GAAG;EAEzB,OAAO;IACLE,OAAO,EAAEA,CAAA,KAAM;MACb,IAAIH,MAAM,CAACI,MAAM,CAACC,IAAI,KAAK,MAAM,EAAE;QACjC,MAAMC,MAAM,GAAGN,MAAM,CAACI,MAAM,CAACG,IAAI,CAACC,EAAE;QACpC,MAAMC,cAAc,GAAGP,SAAS,CAACQ,KAAK,CAACC,IAAI,CACxCJ,IAAI,IAAKA,IAAI,CAACC,EAAE,KAAKF,MACxB,CAAC;QAED,IAAIG,cAAc,EAAE;UAClB,IAAIA,cAAc,CAACG,IAAI,KAAK,YAAY,EAAE;YACxC,MAAM;cAAEC;YAAqB,CAAC,GAAGZ,GAAG;YACpC,IAAIY,oBAAoB,EAAE;cACxBA,oBAAoB,CAAC;gBACnBC,YAAY,EAAER,MAAM;gBACpBS,IAAI,EAAE;cACR,CAAC,CAAC;YACJ;UACF;QACF;MACF;IACF,CAAC;IACDC,KAAK,EAAE,QAAQ;IACfC,IAAI,EAAE;EACR,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Add","createAction","params","action","sdk","appConfig","onClick","create","mode","pageId","page","id","pageToNavigate","pages","find","type","navigateToEntityPage","entityPageId","item","label","icon","createElement"],"sources":["../../../../src/utils/actions/createAction.tsx"],"sourcesContent":["import React from 'react';\nimport { Add } from '@wix/wix-ui-icons-common';\nimport { CreateActionParams } from './types';\n\nexport const createAction = (params: CreateActionParams) => {\n const { action, sdk } = params;\n const { appConfig } = sdk;\n\n return {\n onClick: () => {\n if (action.create.mode === 'page') {\n const pageId = action.create.page.id;\n const pageToNavigate = appConfig.pages.find(\n (page) => page.id === pageId,\n );\n\n if (pageToNavigate) {\n if (pageToNavigate.type === 'entityPage') {\n const { navigateToEntityPage } = sdk;\n if (navigateToEntityPage) {\n navigateToEntityPage({\n entityPageId: pageId,\n item: null,\n });\n }\n }\n }\n }\n },\n label: 'Create',\n icon: <Add />,\n };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,0BAA0B;AAG9C,OAAO,MAAMC,YAAY,GAAIC,MAA0B,IAAK;EAC1D,MAAM;IAAEC,MAAM;IAAEC;EAAI,CAAC,GAAGF,MAAM;EAC9B,MAAM;IAAEG;EAAU,CAAC,GAAGD,GAAG;EAEzB,OAAO;IACLE,OAAO,EAAEA,CAAA,KAAM;MACb,IAAIH,MAAM,CAACI,MAAM,CAACC,IAAI,KAAK,MAAM,EAAE;QACjC,MAAMC,MAAM,GAAGN,MAAM,CAACI,MAAM,CAACG,IAAI,CAACC,EAAE;QACpC,MAAMC,cAAc,GAAGP,SAAS,CAACQ,KAAK,CAACC,IAAI,CACxCJ,IAAI,IAAKA,IAAI,CAACC,EAAE,KAAKF,MACxB,CAAC;QAED,IAAIG,cAAc,EAAE;UAClB,IAAIA,cAAc,CAACG,IAAI,KAAK,YAAY,EAAE;YACxC,MAAM;cAAEC;YAAqB,CAAC,GAAGZ,GAAG;YACpC,IAAIY,oBAAoB,EAAE;cACxBA,oBAAoB,CAAC;gBACnBC,YAAY,EAAER,MAAM;gBACpBS,IAAI,EAAE;cACR,CAAC,CAAC;YACJ;UACF;QACF;MACF;IACF,CAAC;IACDC,KAAK,EAAE,QAAQ;IACfC,IAAI,eAAErB,KAAA,CAAAsB,aAAA,CAACrB,GAAG,MAAE;EACd,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["customAction","params","_sdk$overrides","sdk","action","actionParams","actionFunc","overrides","actions","id"],"sources":["../../../../src/utils/actions/customAction.tsx"],"sourcesContent":["import { CustomActionParams } from './types';\n\nexport const customAction = (params: CustomActionParams) => {\n const { sdk, action, actionParams } = params;\n\n const actionFunc = sdk.overrides?.actions?.[action.id];\n if (!actionFunc) {\n return null;\n }\n\n return actionFunc({\n action,\n actionParams,\n sdk,\n });\n};\n"],"mappings":"AAEA,OAAO,MAAMA,YAAY,GAAIC,MAA0B,IAAK;EAAA,IAAAC,cAAA;EAC1D,MAAM;IAAEC,GAAG;IAAEC,MAAM;IAAEC;EAAa,CAAC,GAAGJ,MAAM;EAE5C,MAAMK,UAAU,IAAAJ,cAAA,GAAGC,GAAG,CAACI,SAAS,cAAAL,cAAA,GAAbA,cAAA,CAAeM,OAAO,qBAAtBN,cAAA,CAAyBE,MAAM,CAACK,EAAE,CAAC;EACtD,IAAI,CAACH,UAAU,EAAE;IACf,OAAO,IAAI;EACb;EAEA,OAAOA,UAAU,CAAC;IAChBF,MAAM;IACNC,YAAY;IACZF;EACF,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["customAction","params","_sdk$overrides","sdk","action","actionParams","actionFunc","overrides","actions","id"],"sources":["../../../../src/utils/actions/customAction.tsx"],"sourcesContent":["import { CustomActionParams } from './types';\n\nexport const customAction = (params: CustomActionParams<any>) => {\n const { sdk, action, actionParams } = params;\n\n const actionFunc = sdk.overrides?.actions?.[action.id];\n if (!actionFunc) {\n return null;\n }\n\n return actionFunc({\n action,\n actionParams,\n sdk,\n });\n};\n"],"mappings":"AAEA,OAAO,MAAMA,YAAY,GAAIC,MAA+B,IAAK;EAAA,IAAAC,cAAA;EAC/D,MAAM;IAAEC,GAAG;IAAEC,MAAM;IAAEC;EAAa,CAAC,GAAGJ,MAAM;EAE5C,MAAMK,UAAU,IAAAJ,cAAA,GAAGC,GAAG,CAACI,SAAS,cAAAL,cAAA,GAAbA,cAAA,CAAeM,OAAO,qBAAtBN,cAAA,CAAyBE,MAAM,CAACK,EAAE,CAAC;EACtD,IAAI,CAACH,UAAU,EAAE;IACf,OAAO,IAAI;EACb;EAEA,OAAOA,UAAU,CAAC;IAChBF,MAAM;IACNC,YAAY;IACZF;EACF,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ import { Delete } from '@wix/wix-ui-icons-common';
2
+ import React from 'react';
1
3
  export const deleteAction = params => {
2
4
  const {
3
5
  action,
@@ -52,7 +54,7 @@ export const deleteAction = params => {
52
54
  });
53
55
  },
54
56
  label: 'Delete',
55
- icon: 'Delete'
57
+ icon: /*#__PURE__*/React.createElement(Delete, null)
56
58
  };
57
59
  };
58
60
  //# sourceMappingURL=deleteAction.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["deleteAction","params","action","sdk","actionParams","modal","modalParams","delete","getOptimisticActions","collectionId","api","optimisticActions","onClick","_modalParams$actions","_modalParams$actions2","openConfirmDeleteModal","title","text","primaryButtonOnClick","_modalParams$feedback","schema","getSchema","Error","deleteOne","item","successToast","feedback","errorToast","_modalParams$feedback2","submit","result","actions","idField","primaryButtonText","cancel","secondaryButtonText","description","content","label","icon"],"sources":["../../../../src/utils/actions/deleteAction.tsx"],"sourcesContent":["import { DeleteActionParams } from './types';\n\nexport const deleteAction = (params: DeleteActionParams) => {\n const { action, sdk, actionParams } = params;\n const { modal: modalParams } = action.delete;\n const { getOptimisticActions, collectionId } = sdk;\n const { api } = actionParams;\n const optimisticActions = getOptimisticActions(collectionId);\n\n return {\n onClick: () => {\n api.openConfirmDeleteModal({\n ...(modalParams.title ? { title: modalParams.title.text } : {}),\n primaryButtonOnClick: () => {\n const schema = sdk.getSchema(sdk.collectionId);\n if (!schema) {\n throw new Error('Schema not found');\n }\n optimisticActions?.deleteOne(actionParams.item, {\n successToast:\n modalParams.feedback?.successToast?.text ||\n 'Item deleted successfully',\n errorToast: () =>\n modalParams.feedback?.errorToast?.text || 'Failed to delete item',\n submit: async () => {\n const result = await schema.actions.delete(\n actionParams.item[schema.idField],\n );\n return [result];\n },\n });\n },\n ...(modalParams.actions?.submit\n ? {\n primaryButtonText: modalParams.actions.submit.text,\n }\n : {}),\n ...(modalParams.actions?.cancel\n ? {\n secondaryButtonText: modalParams.actions.cancel.text,\n }\n : {}),\n ...(modalParams.description\n ? { content: modalParams.description.text }\n : {}),\n });\n },\n label: 'Delete',\n icon: 'Delete',\n };\n};\n"],"mappings":"AAEA,OAAO,MAAMA,YAAY,GAAIC,MAA0B,IAAK;EAC1D,MAAM;IAAEC,MAAM;IAAEC,GAAG;IAAEC;EAAa,CAAC,GAAGH,MAAM;EAC5C,MAAM;IAAEI,KAAK,EAAEC;EAAY,CAAC,GAAGJ,MAAM,CAACK,MAAM;EAC5C,MAAM;IAAEC,oBAAoB;IAAEC;EAAa,CAAC,GAAGN,GAAG;EAClD,MAAM;IAAEO;EAAI,CAAC,GAAGN,YAAY;EAC5B,MAAMO,iBAAiB,GAAGH,oBAAoB,CAACC,YAAY,CAAC;EAE5D,OAAO;IACLG,OAAO,EAAEA,CAAA,KAAM;MAAA,IAAAC,oBAAA,EAAAC,qBAAA;MACbJ,GAAG,CAACK,sBAAsB,CAAC;QACzB,IAAIT,WAAW,CAACU,KAAK,GAAG;UAAEA,KAAK,EAAEV,WAAW,CAACU,KAAK,CAACC;QAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QAC/DC,oBAAoB,EAAEA,CAAA,KAAM;UAAA,IAAAC,qBAAA;UAC1B,MAAMC,MAAM,GAAGjB,GAAG,CAACkB,SAAS,CAAClB,GAAG,CAACM,YAAY,CAAC;UAC9C,IAAI,CAACW,MAAM,EAAE;YACX,MAAM,IAAIE,KAAK,CAAC,kBAAkB,CAAC;UACrC;UACAX,iBAAiB,YAAjBA,iBAAiB,CAAEY,SAAS,CAACnB,YAAY,CAACoB,IAAI,EAAE;YAC9CC,YAAY,EACV,EAAAN,qBAAA,GAAAb,WAAW,CAACoB,QAAQ,cAAAP,qBAAA,GAApBA,qBAAA,CAAsBM,YAAY,qBAAlCN,qBAAA,CAAoCF,IAAI,KACxC,2BAA2B;YAC7BU,UAAU,EAAEA,CAAA;cAAA,IAAAC,sBAAA;cAAA,OACV,EAAAA,sBAAA,GAAAtB,WAAW,CAACoB,QAAQ,cAAAE,sBAAA,GAApBA,sBAAA,CAAsBD,UAAU,qBAAhCC,sBAAA,CAAkCX,IAAI,KAAI,uBAAuB;YAAA;YACnEY,MAAM,EAAE,MAAAA,CAAA,KAAY;cAClB,MAAMC,MAAM,GAAG,MAAMV,MAAM,CAACW,OAAO,CAACxB,MAAM,CACxCH,YAAY,CAACoB,IAAI,CAACJ,MAAM,CAACY,OAAO,CAClC,CAAC;cACD,OAAO,CAACF,MAAM,CAAC;YACjB;UACF,CAAC,CAAC;QACJ,CAAC;QACD,IAAI,CAAAjB,oBAAA,GAAAP,WAAW,CAACyB,OAAO,aAAnBlB,oBAAA,CAAqBgB,MAAM,GAC3B;UACEI,iBAAiB,EAAE3B,WAAW,CAACyB,OAAO,CAACF,MAAM,CAACZ;QAChD,CAAC,GACD,CAAC,CAAC,CAAC;QACP,IAAI,CAAAH,qBAAA,GAAAR,WAAW,CAACyB,OAAO,aAAnBjB,qBAAA,CAAqBoB,MAAM,GAC3B;UACEC,mBAAmB,EAAE7B,WAAW,CAACyB,OAAO,CAACG,MAAM,CAACjB;QAClD,CAAC,GACD,CAAC,CAAC,CAAC;QACP,IAAIX,WAAW,CAAC8B,WAAW,GACvB;UAAEC,OAAO,EAAE/B,WAAW,CAAC8B,WAAW,CAACnB;QAAK,CAAC,GACzC,CAAC,CAAC;MACR,CAAC,CAAC;IACJ,CAAC;IACDqB,KAAK,EAAE,QAAQ;IACfC,IAAI,EAAE;EACR,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Delete","React","deleteAction","params","action","sdk","actionParams","modal","modalParams","delete","getOptimisticActions","collectionId","api","optimisticActions","onClick","_modalParams$actions","_modalParams$actions2","openConfirmDeleteModal","title","text","primaryButtonOnClick","_modalParams$feedback","schema","getSchema","Error","deleteOne","item","successToast","feedback","errorToast","_modalParams$feedback2","submit","result","actions","idField","primaryButtonText","cancel","secondaryButtonText","description","content","label","icon","createElement"],"sources":["../../../../src/utils/actions/deleteAction.tsx"],"sourcesContent":["import { DeleteActionParams } from './types';\nimport { Delete } from '@wix/wix-ui-icons-common';\nimport React from 'react';\n\nexport const deleteAction = (params: DeleteActionParams) => {\n const { action, sdk, actionParams } = params;\n const { modal: modalParams } = action.delete;\n const { getOptimisticActions, collectionId } = sdk;\n const { api } = actionParams;\n const optimisticActions = getOptimisticActions(collectionId);\n\n return {\n onClick: () => {\n api.openConfirmDeleteModal({\n ...(modalParams.title ? { title: modalParams.title.text } : {}),\n primaryButtonOnClick: () => {\n const schema = sdk.getSchema(sdk.collectionId);\n if (!schema) {\n throw new Error('Schema not found');\n }\n optimisticActions?.deleteOne(actionParams.item, {\n successToast:\n modalParams.feedback?.successToast?.text ||\n 'Item deleted successfully',\n errorToast: () =>\n modalParams.feedback?.errorToast?.text || 'Failed to delete item',\n submit: async () => {\n const result = await schema.actions.delete(\n actionParams.item[schema.idField],\n );\n return [result];\n },\n });\n },\n ...(modalParams.actions?.submit\n ? {\n primaryButtonText: modalParams.actions.submit.text,\n }\n : {}),\n ...(modalParams.actions?.cancel\n ? {\n secondaryButtonText: modalParams.actions.cancel.text,\n }\n : {}),\n ...(modalParams.description\n ? { content: modalParams.description.text }\n : {}),\n });\n },\n label: 'Delete',\n icon: <Delete />,\n };\n};\n"],"mappings":"AACA,SAASA,MAAM,QAAQ,0BAA0B;AACjD,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAO,MAAMC,YAAY,GAAIC,MAA0B,IAAK;EAC1D,MAAM;IAAEC,MAAM;IAAEC,GAAG;IAAEC;EAAa,CAAC,GAAGH,MAAM;EAC5C,MAAM;IAAEI,KAAK,EAAEC;EAAY,CAAC,GAAGJ,MAAM,CAACK,MAAM;EAC5C,MAAM;IAAEC,oBAAoB;IAAEC;EAAa,CAAC,GAAGN,GAAG;EAClD,MAAM;IAAEO;EAAI,CAAC,GAAGN,YAAY;EAC5B,MAAMO,iBAAiB,GAAGH,oBAAoB,CAACC,YAAY,CAAC;EAE5D,OAAO;IACLG,OAAO,EAAEA,CAAA,KAAM;MAAA,IAAAC,oBAAA,EAAAC,qBAAA;MACbJ,GAAG,CAACK,sBAAsB,CAAC;QACzB,IAAIT,WAAW,CAACU,KAAK,GAAG;UAAEA,KAAK,EAAEV,WAAW,CAACU,KAAK,CAACC;QAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QAC/DC,oBAAoB,EAAEA,CAAA,KAAM;UAAA,IAAAC,qBAAA;UAC1B,MAAMC,MAAM,GAAGjB,GAAG,CAACkB,SAAS,CAAClB,GAAG,CAACM,YAAY,CAAC;UAC9C,IAAI,CAACW,MAAM,EAAE;YACX,MAAM,IAAIE,KAAK,CAAC,kBAAkB,CAAC;UACrC;UACAX,iBAAiB,YAAjBA,iBAAiB,CAAEY,SAAS,CAACnB,YAAY,CAACoB,IAAI,EAAE;YAC9CC,YAAY,EACV,EAAAN,qBAAA,GAAAb,WAAW,CAACoB,QAAQ,cAAAP,qBAAA,GAApBA,qBAAA,CAAsBM,YAAY,qBAAlCN,qBAAA,CAAoCF,IAAI,KACxC,2BAA2B;YAC7BU,UAAU,EAAEA,CAAA;cAAA,IAAAC,sBAAA;cAAA,OACV,EAAAA,sBAAA,GAAAtB,WAAW,CAACoB,QAAQ,cAAAE,sBAAA,GAApBA,sBAAA,CAAsBD,UAAU,qBAAhCC,sBAAA,CAAkCX,IAAI,KAAI,uBAAuB;YAAA;YACnEY,MAAM,EAAE,MAAAA,CAAA,KAAY;cAClB,MAAMC,MAAM,GAAG,MAAMV,MAAM,CAACW,OAAO,CAACxB,MAAM,CACxCH,YAAY,CAACoB,IAAI,CAACJ,MAAM,CAACY,OAAO,CAClC,CAAC;cACD,OAAO,CAACF,MAAM,CAAC;YACjB;UACF,CAAC,CAAC;QACJ,CAAC;QACD,IAAI,CAAAjB,oBAAA,GAAAP,WAAW,CAACyB,OAAO,aAAnBlB,oBAAA,CAAqBgB,MAAM,GAC3B;UACEI,iBAAiB,EAAE3B,WAAW,CAACyB,OAAO,CAACF,MAAM,CAACZ;QAChD,CAAC,GACD,CAAC,CAAC,CAAC;QACP,IAAI,CAAAH,qBAAA,GAAAR,WAAW,CAACyB,OAAO,aAAnBjB,qBAAA,CAAqBoB,MAAM,GAC3B;UACEC,mBAAmB,EAAE7B,WAAW,CAACyB,OAAO,CAACG,MAAM,CAACjB;QAClD,CAAC,GACD,CAAC,CAAC,CAAC;QACP,IAAIX,WAAW,CAAC8B,WAAW,GACvB;UAAEC,OAAO,EAAE/B,WAAW,CAAC8B,WAAW,CAACnB;QAAK,CAAC,GACzC,CAAC,CAAC;MACR,CAAC,CAAC;IACJ,CAAC;IACDqB,KAAK,EAAE,QAAQ;IACfC,IAAI,eAAExC,KAAA,CAAAyC,aAAA,CAAC1C,MAAM,MAAE;EACjB,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,13 +1,7 @@
1
- import React from 'react';
2
- import { DynamicIcon } from '../../components/DynamicIcon';
3
- export const resolveIcon = icon => typeof icon === 'string' ? /*#__PURE__*/React.createElement(DynamicIcon, {
4
- icon: icon
5
- }) : icon;
6
1
  export const resolveAction = (actionConfig, action) => {
7
2
  return {
8
3
  ...action,
9
- label: actionConfig.label ?? action.label,
10
- icon: resolveIcon(actionConfig.icon ?? action.icon)
4
+ label: actionConfig.label ?? action.label
11
5
  };
12
6
  };
13
7
  //# sourceMappingURL=resolveAction.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","DynamicIcon","resolveIcon","icon","createElement","resolveAction","actionConfig","action","label"],"sources":["../../../../src/utils/actions/resolveAction.tsx"],"sourcesContent":["import React from 'react';\nimport { DynamicIcon } from '../../components/DynamicIcon';\nimport { BaseActionItemConfig, ResolvedAction } from '../../types';\n\nexport const resolveIcon = (icon: string | React.ReactNode): React.ReactNode =>\n typeof icon === 'string' ? <DynamicIcon icon={icon} /> : icon;\n\nexport const resolveAction = (\n actionConfig: BaseActionItemConfig,\n action: Partial<ResolvedAction>,\n) => {\n return {\n ...action,\n label: actionConfig.label ?? action.label,\n icon: resolveIcon(actionConfig.icon ?? action.icon),\n };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,QAAQ,8BAA8B;AAG1D,OAAO,MAAMC,WAAW,GAAIC,IAA8B,IACxD,OAAOA,IAAI,KAAK,QAAQ,gBAAGH,KAAA,CAAAI,aAAA,CAACH,WAAW;EAACE,IAAI,EAAEA;AAAK,CAAE,CAAC,GAAGA,IAAI;AAE/D,OAAO,MAAME,aAAa,GAAGA,CAC3BC,YAAkC,EAClCC,MAA+B,KAC5B;EACH,OAAO;IACL,GAAGA,MAAM;IACTC,KAAK,EAAEF,YAAY,CAACE,KAAK,IAAID,MAAM,CAACC,KAAK;IACzCL,IAAI,EAAED,WAAW,CAACI,YAAY,CAACH,IAAI,IAAII,MAAM,CAACJ,IAAI;EACpD,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["resolveAction","actionConfig","action","label"],"sources":["../../../../src/utils/actions/resolveAction.ts"],"sourcesContent":["import { BaseActionItemConfig, ResolvedAction } from '../../types';\n\nexport const resolveAction = (\n actionConfig: BaseActionItemConfig,\n action: Partial<ResolvedAction>,\n) => {\n return {\n ...action,\n label: actionConfig.label ?? action.label,\n };\n};\n"],"mappings":"AAEA,OAAO,MAAMA,aAAa,GAAGA,CAC3BC,YAAkC,EAClCC,MAA+B,KAC5B;EACH,OAAO;IACL,GAAGA,MAAM;IACTC,KAAK,EAAEF,YAAY,CAACE,KAAK,IAAID,MAAM,CAACC;EACtC,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../../src/utils/actions/types.ts"],"sourcesContent":["import { ActionCellAPI, CollectionOptimisticActions } from '@wix/patterns';\nimport {\n UpdateActionConfig,\n CustomActionConfig,\n CustomModalActionConfig,\n SchemaConfig,\n BulkDeleteActionConfig,\n DeleteActionConfig,\n CreateActionConfig,\n BaseSDK,\n} from '../../types';\n\nexport interface ResolvedAction {\n label: string;\n icon: string;\n onClick: () => void;\n disabled?: boolean;\n tooltip?: string;\n}\n\nexport interface BaseContextParams {\n schema: SchemaConfig;\n}\n\nexport interface ActionsSDK extends BaseSDK {\n getSchema: (collectionId: string) => SchemaConfig | undefined;\n collectionId: string; // TODO: Why collectionId is needed here? getSchema with internal collectionId is enough\n getOptimisticActions: (\n collectionId: string,\n ) => CollectionOptimisticActions<any, any>;\n}\n\nexport interface BaseActionParams {\n sdk: ActionsSDK;\n actionParams: Record<string, any>;\n}\n\nexport interface ActionCellBaseParams extends BaseActionParams {\n actionParams: {\n item: any;\n index: number;\n api: ActionCellAPI<any, any>;\n };\n}\n\nexport interface BulkDeleteActionParams extends BaseActionParams {\n action: BulkDeleteActionConfig;\n actionParams: {\n selectedValues: any[];\n total: number;\n };\n}\n\nexport interface DeleteActionParams extends ActionCellBaseParams {\n action: DeleteActionConfig;\n}\n\nexport interface UpdateActionParams extends ActionCellBaseParams {\n action: UpdateActionConfig;\n}\n\nexport interface CreateActionParams extends BaseActionParams {\n action: CreateActionConfig;\n}\n\nexport interface CustomModalActionParams extends BaseActionParams {\n action: CustomModalActionConfig;\n}\nexport interface CustomActionParams extends BaseActionParams {\n action: CustomActionConfig;\n}\n\nexport interface ActionModalProps {\n modalParams: Record<string, any>;\n actionParams: Record<string, any>;\n sdk: ActionsSDK;\n}\n\nexport interface CustomActionModalProps extends ActionModalProps {\n modalParams: { id: string };\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../../src/utils/actions/types.ts"],"sourcesContent":["import { ActionCellAPI, CollectionOptimisticActions } from '@wix/patterns';\nimport {\n UpdateActionConfig,\n CustomActionConfig,\n CustomModalActionConfig,\n SchemaConfig,\n BulkDeleteActionConfig,\n DeleteActionConfig,\n CreateActionConfig,\n BaseSDK,\n} from '../../types';\nimport { IconElement } from '@wix/design-system';\n\nexport interface ResolvedAction {\n label: string;\n icon: IconElement;\n onClick: () => void;\n disabled?: boolean;\n tooltip?: string;\n}\n\nexport interface BaseContextParams {\n schema: SchemaConfig;\n}\n\nexport interface ActionsSDK extends BaseSDK {\n getSchema: (collectionId: string) => SchemaConfig | undefined;\n collectionId: string; // TODO: Why collectionId is needed here? getSchema with internal collectionId is enough\n getOptimisticActions: (\n collectionId: string,\n ) => CollectionOptimisticActions<any, any>;\n}\n\nexport interface BaseActionParams<T = Record<string, any>> {\n sdk: ActionsSDK;\n actionParams: T;\n}\n\nexport interface ActionCellBaseParams extends BaseActionParams {\n actionParams: {\n item: any;\n index: number;\n api: ActionCellAPI<any, any>;\n };\n}\n\nexport interface BulkDeleteActionParams extends BaseActionParams {\n action: BulkDeleteActionConfig;\n actionParams: {\n selectedValues: any[];\n total: number;\n };\n}\n\nexport interface DeleteActionParams extends ActionCellBaseParams {\n action: DeleteActionConfig;\n}\n\nexport interface UpdateActionParams extends ActionCellBaseParams {\n action: UpdateActionConfig;\n}\n\nexport interface CreateActionParams extends BaseActionParams {\n action: CreateActionConfig;\n}\n\nexport interface CustomModalActionParams extends BaseActionParams {\n action: CustomModalActionConfig;\n}\nexport interface CustomActionParams<T> extends BaseActionParams<T> {\n action: CustomActionConfig;\n}\n\nexport interface ActionModalProps {\n modalParams: Record<string, any>;\n actionParams: Record<string, any>;\n sdk: ActionsSDK;\n}\n\nexport interface CustomActionModalProps extends ActionModalProps {\n modalParams: { id: string };\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ import { Edit } from '@wix/wix-ui-icons-common';
2
+ import React from 'react';
1
3
  export const updateAction = params => {
2
4
  const {
3
5
  action,
@@ -29,7 +31,7 @@ export const updateAction = params => {
29
31
  }
30
32
  },
31
33
  label: 'Update',
32
- icon: 'Edit'
34
+ icon: /*#__PURE__*/React.createElement(Edit, null)
33
35
  };
34
36
  };
35
37
  //# sourceMappingURL=updateAction.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["updateAction","params","action","sdk","actionParams","appConfig","onClick","update","mode","pageId","page","id","pageToNavigate","pages","find","type","navigateToEntityPage","item","entityPageId","label","icon"],"sources":["../../../../src/utils/actions/updateAction.tsx"],"sourcesContent":["import { UpdateActionParams } from './types';\n\nexport const updateAction = (params: UpdateActionParams) => {\n const { action, sdk, actionParams } = params;\n const { appConfig } = sdk;\n\n return {\n onClick: () => {\n if (action.update.mode === 'page') {\n const pageId = action.update.page.id;\n const pageToNavigate = appConfig.pages.find(\n (page) => page.id === pageId,\n );\n\n if (pageToNavigate) {\n if (pageToNavigate.type === 'entityPage') {\n const { navigateToEntityPage } = sdk;\n const item = actionParams.item;\n if (navigateToEntityPage && item) {\n navigateToEntityPage({\n item,\n entityPageId: pageId,\n });\n }\n }\n }\n }\n },\n label: 'Update',\n icon: 'Edit',\n };\n};\n"],"mappings":"AAEA,OAAO,MAAMA,YAAY,GAAIC,MAA0B,IAAK;EAC1D,MAAM;IAAEC,MAAM;IAAEC,GAAG;IAAEC;EAAa,CAAC,GAAGH,MAAM;EAC5C,MAAM;IAAEI;EAAU,CAAC,GAAGF,GAAG;EAEzB,OAAO;IACLG,OAAO,EAAEA,CAAA,KAAM;MACb,IAAIJ,MAAM,CAACK,MAAM,CAACC,IAAI,KAAK,MAAM,EAAE;QACjC,MAAMC,MAAM,GAAGP,MAAM,CAACK,MAAM,CAACG,IAAI,CAACC,EAAE;QACpC,MAAMC,cAAc,GAAGP,SAAS,CAACQ,KAAK,CAACC,IAAI,CACxCJ,IAAI,IAAKA,IAAI,CAACC,EAAE,KAAKF,MACxB,CAAC;QAED,IAAIG,cAAc,EAAE;UAClB,IAAIA,cAAc,CAACG,IAAI,KAAK,YAAY,EAAE;YACxC,MAAM;cAAEC;YAAqB,CAAC,GAAGb,GAAG;YACpC,MAAMc,IAAI,GAAGb,YAAY,CAACa,IAAI;YAC9B,IAAID,oBAAoB,IAAIC,IAAI,EAAE;cAChCD,oBAAoB,CAAC;gBACnBC,IAAI;gBACJC,YAAY,EAAET;cAChB,CAAC,CAAC;YACJ;UACF;QACF;MACF;IACF,CAAC;IACDU,KAAK,EAAE,QAAQ;IACfC,IAAI,EAAE;EACR,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Edit","React","updateAction","params","action","sdk","actionParams","appConfig","onClick","update","mode","pageId","page","id","pageToNavigate","pages","find","type","navigateToEntityPage","item","entityPageId","label","icon","createElement"],"sources":["../../../../src/utils/actions/updateAction.tsx"],"sourcesContent":["import { UpdateActionParams } from './types';\nimport { Edit } from '@wix/wix-ui-icons-common';\nimport React from 'react';\n\nexport const updateAction = (params: UpdateActionParams) => {\n const { action, sdk, actionParams } = params;\n const { appConfig } = sdk;\n\n return {\n onClick: () => {\n if (action.update.mode === 'page') {\n const pageId = action.update.page.id;\n const pageToNavigate = appConfig.pages.find(\n (page) => page.id === pageId,\n );\n\n if (pageToNavigate) {\n if (pageToNavigate.type === 'entityPage') {\n const { navigateToEntityPage } = sdk;\n const item = actionParams.item;\n if (navigateToEntityPage && item) {\n navigateToEntityPage({\n item,\n entityPageId: pageId,\n });\n }\n }\n }\n }\n },\n label: 'Update',\n icon: <Edit />,\n };\n};\n"],"mappings":"AACA,SAASA,IAAI,QAAQ,0BAA0B;AAC/C,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAO,MAAMC,YAAY,GAAIC,MAA0B,IAAK;EAC1D,MAAM;IAAEC,MAAM;IAAEC,GAAG;IAAEC;EAAa,CAAC,GAAGH,MAAM;EAC5C,MAAM;IAAEI;EAAU,CAAC,GAAGF,GAAG;EAEzB,OAAO;IACLG,OAAO,EAAEA,CAAA,KAAM;MACb,IAAIJ,MAAM,CAACK,MAAM,CAACC,IAAI,KAAK,MAAM,EAAE;QACjC,MAAMC,MAAM,GAAGP,MAAM,CAACK,MAAM,CAACG,IAAI,CAACC,EAAE;QACpC,MAAMC,cAAc,GAAGP,SAAS,CAACQ,KAAK,CAACC,IAAI,CACxCJ,IAAI,IAAKA,IAAI,CAACC,EAAE,KAAKF,MACxB,CAAC;QAED,IAAIG,cAAc,EAAE;UAClB,IAAIA,cAAc,CAACG,IAAI,KAAK,YAAY,EAAE;YACxC,MAAM;cAAEC;YAAqB,CAAC,GAAGb,GAAG;YACpC,MAAMc,IAAI,GAAGb,YAAY,CAACa,IAAI;YAC9B,IAAID,oBAAoB,IAAIC,IAAI,EAAE;cAChCD,oBAAoB,CAAC;gBACnBC,IAAI;gBACJC,YAAY,EAAET;cAChB,CAAC,CAAC;YACJ;UACF;QACF;MACF;IACF,CAAC;IACDU,KAAK,EAAE,QAAQ;IACfC,IAAI,eAAErB,KAAA,CAAAsB,aAAA,CAACvB,IAAI,MAAE;EACf,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"AutoPatternsCollectionPageContent.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsCollectionPageContent/AutoPatternsCollectionPageContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAE5C,OAAO,EAEL,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAKrB,MAAM,WAAW,sCAAsC;IACrD,aAAa,EAAE,oBAAoB,CAAC;CACrC;AAED,eAAO,MAAM,iCAAiC,GAAI,oBAE/C,sCAAsC,sBAwDxC,CAAC"}
1
+ {"version":3,"file":"AutoPatternsCollectionPageContent.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsCollectionPageContent/AutoPatternsCollectionPageContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAKnD,MAAM,WAAW,sCAAsC;IACrD,aAAa,EAAE,oBAAoB,CAAC;CACrC;AAED,eAAO,MAAM,iCAAiC,GAAI,oBAE/C,sCAAsC,sBAiDxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AutoPatternsEntityPage.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsEntityPage/AutoPatternsEntityPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAc,gBAAgB,EAAiB,MAAM,aAAa,CAAC;AAwI1E,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,gBAAgB,CAAC;CACjC;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAuGxE,CAAC"}
1
+ {"version":3,"file":"AutoPatternsEntityPage.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsEntityPage/AutoPatternsEntityPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAc,gBAAgB,EAAiB,MAAM,aAAa,CAAC;AA2I1E,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,gBAAgB,CAAC;CACjC;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAgIxE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ImageInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/Fields/ImageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAUzC,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,MAAM,CAAC;CAAG;AAElE,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,sBAoEhD,CAAC"}
1
+ {"version":3,"file":"ImageInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/Fields/ImageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAUzC,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,MAAM,CAAC;CAAG;AAElE,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,sBAmEhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AutoPatternsTable.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsTable/AutoPatternsTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,MAAM,WAAW,6BAA6B;IAC5C,aAAa,EAAE,WAAW,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,GAAI,oBAE/B,6BAA6B,sBA8B/B,CAAC"}
1
+ {"version":3,"file":"AutoPatternsTable.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsTable/AutoPatternsTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,MAAM,WAAW,6BAA6B;IAC5C,aAAa,EAAE,WAAW,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,GAAI,oBAE/B,6BAA6B,sBAkC/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DynamicIcon.d.ts","sourceRoot":"","sources":["../../../src/components/DynamicIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,eAAO,MAAM,WAAW,uCAAmB;IAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,8BAgCrE,CAAC;AAEH,eAAO,MAAM,YAAY,oDAEvB,CAAC"}
1
+ {"version":3,"file":"DynamicIcon.d.ts","sourceRoot":"","sources":["../../../src/components/DynamicIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,eAAO,MAAM,WAAW,uCAAmB;IAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,8BAyBrE,CAAC;AAEH,eAAO,MAAM,YAAY,oDAEvB,CAAC"}
@@ -1,9 +1,7 @@
1
- import { ActionCellConfig, ComponentConfig } from '../types';
1
+ import { ActionCellConfig } from '../types';
2
2
  export interface useActionCellParams {
3
3
  config?: ActionCellConfig;
4
4
  collectionId: string;
5
- collectionType?: ComponentConfig['type'];
6
- entityPageId?: string;
7
5
  }
8
- export declare const useActionCell: ({ config, collectionId, collectionType, entityPageId, }: useActionCellParams) => (item: any, index: any, api: any) => {};
6
+ export declare const useActionCell: ({ config, collectionId, }: useActionCellParams) => (item: any, index: any, api: any) => {};
9
7
  //# sourceMappingURL=useActionCell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useActionCell.d.ts","sourceRoot":"","sources":["../../../src/hooks/useActionCell.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAEhB,eAAe,EAEhB,MAAM,UAAU,CAAC;AAYlB,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,aAAa,GAAI,yDAK3B,mBAAmB,4CAoGrB,CAAC"}
1
+ {"version":3,"file":"useActionCell.d.ts","sourceRoot":"","sources":["../../../src/hooks/useActionCell.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAGjB,MAAM,UAAU,CAAC;AAUlB,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,GAAI,2BAG3B,mBAAmB,4CA0FrB,CAAC"}
@@ -5,5 +5,7 @@ export declare const useBaseTableFeatures: (configuration: TableConfig) => {
5
5
  visibleFieldIds: string[];
6
6
  onRowClick: (item: any) => void;
7
7
  customColumns: React.JSX.Element | undefined;
8
+ stickyColumns: number | undefined;
9
+ stickySelectionColumn: boolean;
8
10
  };
9
11
  //# sourceMappingURL=useBaseTableFeatures.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useBaseTableFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBaseTableFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAKvC,eAAO,MAAM,oBAAoB,GAAI,eAAe,WAAW;;;uBAWnC,GAAG;;CAc9B,CAAC"}
1
+ {"version":3,"file":"useBaseTableFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBaseTableFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAKvC,eAAO,MAAM,oBAAoB,GAAI,eAAe,WAAW;;;uBAWnC,GAAG;;;;CAmB9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useBulkActionToolbar.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBulkActionToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAEL,iBAAiB,EAElB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,UAAU,EAGX,MAAM,eAAe,CAAC;AAQvB,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,WAAW,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,mBAAmB,CAAC,CAAC,CACvD,CAAC,CAAC,CAAC,CAAC;AAEL,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,oBAAoB,GAAI,2BAGlC,0BAA0B,cAMjB,2BAA2B,mCAmFtC,CAAC"}
1
+ {"version":3,"file":"useBulkActionToolbar.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBulkActionToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAEL,iBAAiB,EAElB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,UAAU,EAGX,MAAM,eAAe,CAAC;AAQvB,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,WAAW,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,mBAAmB,CAAC,CAAC,CACvD,CAAC,CAAC,CAAC,CAAC;AAEL,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,oBAAoB,GAAI,2BAGlC,0BAA0B,cAMjB,2BAA2B,mCAoHtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useCollectionPageActions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCollectionPageActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAEL,oBAAoB,EAIrB,MAAM,UAAU,CAAC;AAYlB,MAAM,WAAW,8BAA8B;IAC7C,qBAAqB,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;CACxD;AAED,eAAO,MAAM,wBAAwB,GAAI,4BAEtC,8BAA8B;;;CA0HhC,CAAC"}
1
+ {"version":3,"file":"useCollectionPageActions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCollectionPageActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAEL,oBAAoB,EAIrB,MAAM,UAAU,CAAC;AAWlB,MAAM,WAAW,8BAA8B;IAC7C,qBAAqB,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;CACxD;AAED,eAAO,MAAM,wBAAwB,GAAI,4BAEtC,8BAA8B;;;CAyHhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useColumns.d.ts","sourceRoot":"","sources":["../../../src/hooks/useColumns.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAM5C,OAAO,EAAE,MAAM,EAAS,MAAM,UAAU,CAAC;AAKzC,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,EAAE,KA6GpB,WAAW,CAAC,GAAG,CAAC,EACvC,CAAC"}
1
+ {"version":3,"file":"useColumns.d.ts","sourceRoot":"","sources":["../../../src/hooks/useColumns.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAM5C,OAAO,EAAE,MAAM,EAAS,MAAM,UAAU,CAAC;AAKzC,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,EAAE,KAsHpB,WAAW,CAAC,GAAG,CAAC,EACvC,CAAC"}
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
2
  import { CollectionOptimisticActions } from '@wix/patterns';
3
- import { BaseCollectionComponentConfig, ComponentConfig } from '../types';
3
+ import { BaseCollectionComponentConfig } from '../types';
4
4
  export type UseCommonCollectionFeaturesParams = Pick<BaseCollectionComponentConfig, 'actionCell' | 'toolbarTitle' | 'search' | 'emptyState' | 'collection' | 'bulkActionToolbar' | 'entityPageId'> & {
5
5
  optimisticActions: CollectionOptimisticActions<any, any>;
6
- collectionType?: ComponentConfig['type'];
7
6
  };
8
- export declare const useCommonCollectionFeatures: ({ actionCell: actionCellConfig, bulkActionToolbar: bulkActionToolbarConfig, toolbarTitle, search, emptyState: emptyStateConfig, collection, collectionType, entityPageId, }: UseCommonCollectionFeaturesParams) => {
7
+ export declare const useCommonCollectionFeatures: ({ actionCell: actionCellConfig, bulkActionToolbar: bulkActionToolbarConfig, toolbarTitle, search, emptyState: emptyStateConfig, collection, }: UseCommonCollectionFeaturesParams) => {
9
8
  search: boolean;
10
9
  title: React.JSX.Element | undefined;
11
10
  emptyState: React.JSX.Element;
@@ -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,2BAA2B,EAAgB,MAAM,eAAe,CAAC;AAG1E,OAAO,EAAE,6BAA6B,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI1E,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAClD,6BAA6B,EAC3B,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,YAAY,GACZ,YAAY,GACZ,mBAAmB,GACnB,cAAc,CACjB,GAAG;IACF,iBAAiB,EAAE,2BAA2B,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACzD,cAAc,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,6KASzC,iCAAiC;;;;;;CA4DnC,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,2BAA2B,EAAgB,MAAM,eAAe,CAAC;AAG1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAIzD,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAClD,6BAA6B,EAC3B,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,YAAY,GACZ,YAAY,GACZ,mBAAmB,GACnB,cAAc,CACjB,GAAG;IACF,iBAAiB,EAAE,2BAA2B,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,+IAOzC,iCAAiC;;;;;;CA0DnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useEntityPageHeaderTexts.d.ts","sourceRoot":"","sources":["../../../src/hooks/useEntityPageHeaderTexts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,wBAAwB,GAAI,8CAItC;IACD,MAAM,EAAE,gBAAgB,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;;;;;;;;iBAC0B,CAAA;;;CAe1B,CAAC"}
1
+ {"version":3,"file":"useEntityPageHeaderTexts.d.ts","sourceRoot":"","sources":["../../../src/hooks/useEntityPageHeaderTexts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,wBAAwB,GAAI,8CAItC;IACD,MAAM,EAAE,gBAAgB,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;;;;;;;;iBAKK,CAAN;;;CAWC,CAAC"}