@wix/auto-patterns 1.41.0 → 1.43.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 (42) hide show
  1. package/dist/cjs/components/AutoPatternsGrid/AutoPatternsGrid.js +3 -1
  2. package/dist/cjs/components/AutoPatternsGrid/AutoPatternsGrid.js.map +1 -1
  3. package/dist/cjs/components/AutoPatternsTable/AutoPatternsTable.js +3 -1
  4. package/dist/cjs/components/AutoPatternsTable/AutoPatternsTable.js.map +1 -1
  5. package/dist/cjs/hooks/useCommonCollectionFeatures.js +12 -7
  6. package/dist/cjs/hooks/useCommonCollectionFeatures.js.map +1 -1
  7. package/dist/cjs/hooks/useTableFeatures.js.map +1 -1
  8. package/dist/cjs/hooks/useViews.js +107 -0
  9. package/dist/cjs/hooks/useViews.js.map +1 -0
  10. package/dist/cjs/types/CollectionPageConfig.js.map +1 -1
  11. package/dist/esm/components/AutoPatternsGrid/AutoPatternsGrid.js +2 -0
  12. package/dist/esm/components/AutoPatternsGrid/AutoPatternsGrid.js.map +1 -1
  13. package/dist/esm/components/AutoPatternsTable/AutoPatternsTable.js +2 -0
  14. package/dist/esm/components/AutoPatternsTable/AutoPatternsTable.js.map +1 -1
  15. package/dist/esm/hooks/useCommonCollectionFeatures.js +8 -3
  16. package/dist/esm/hooks/useCommonCollectionFeatures.js.map +1 -1
  17. package/dist/esm/hooks/useTableFeatures.js.map +1 -1
  18. package/dist/esm/hooks/useViews.js +106 -0
  19. package/dist/esm/hooks/useViews.js.map +1 -0
  20. package/dist/esm/types/CollectionPageConfig.js.map +1 -1
  21. package/dist/types/components/AutoPatternsGrid/AutoPatternsGrid.d.ts.map +1 -1
  22. package/dist/types/components/AutoPatternsTable/AutoPatternsTable.d.ts.map +1 -1
  23. package/dist/types/hooks/useCommonCollectionFeatures.d.ts +3 -2
  24. package/dist/types/hooks/useCommonCollectionFeatures.d.ts.map +1 -1
  25. package/dist/types/hooks/useGridFeatures.d.ts +1 -0
  26. package/dist/types/hooks/useGridFeatures.d.ts.map +1 -1
  27. package/dist/types/hooks/useTableFeatures.d.ts +1 -0
  28. package/dist/types/hooks/useTableFeatures.d.ts.map +1 -1
  29. package/dist/types/hooks/useTableGridSwitchFeatures.d.ts +1 -0
  30. package/dist/types/hooks/useTableGridSwitchFeatures.d.ts.map +1 -1
  31. package/dist/types/hooks/useViews.d.ts +4 -0
  32. package/dist/types/hooks/useViews.d.ts.map +1 -0
  33. package/dist/types/testkit/playwright.d.ts +1 -1
  34. package/dist/types/testkit/playwright.d.ts.map +1 -1
  35. package/dist/types/types/CollectionPageConfig.d.ts +187 -1
  36. package/dist/types/types/CollectionPageConfig.d.ts.map +1 -1
  37. package/mcp-docs/app_config_structure.md +92 -0
  38. package/mcp-docs/auto-patterns-guide.md +467 -0
  39. package/mcp-docs/custom_overrides.md +37 -0
  40. package/mcp-docs/index.md +4 -0
  41. package/mcp-docs/views.md +335 -0
  42. package/package.json +20 -14
@@ -0,0 +1,106 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import { columnSortOrder, Views } from '@wix/patterns';
4
+ const iconToInfo = icon => {
5
+ return {
6
+ ...icon,
7
+ content: icon == null ? void 0 : icon.tooltipContent
8
+ };
9
+ };
10
+ const SORT_DIRECTION_MAP = {
11
+ asc: columnSortOrder.Ascending,
12
+ desc: columnSortOrder.Descending
13
+ };
14
+ const transformViews = views => {
15
+ return views.map(view => {
16
+ const {
17
+ label,
18
+ columnPreferences,
19
+ ...rest
20
+ } = view;
21
+ return {
22
+ name: label,
23
+ sortDirections: columnPreferences == null ? void 0 : columnPreferences.filter(_ref => {
24
+ let {
25
+ direction
26
+ } = _ref;
27
+ return direction !== undefined;
28
+ }).map(_ref2 => {
29
+ let {
30
+ id,
31
+ direction
32
+ } = _ref2;
33
+ return {
34
+ columnId: id,
35
+ direction: SORT_DIRECTION_MAP[direction]
36
+ };
37
+ }),
38
+ selectedColumns: columnPreferences == null ? void 0 : columnPreferences.filter(_ref3 => {
39
+ let {
40
+ show
41
+ } = _ref3;
42
+ return show !== undefined;
43
+ }).map(_ref4 => {
44
+ let {
45
+ id,
46
+ show
47
+ } = _ref4;
48
+ return {
49
+ id,
50
+ isSelected: show
51
+ };
52
+ }),
53
+ ...rest
54
+ };
55
+ });
56
+ };
57
+ const transformPresets = presets => {
58
+ if (!presets) {
59
+ return;
60
+ }
61
+ if (presets.type === 'categories') {
62
+ return presets.categories.map(preset => {
63
+ const {
64
+ views,
65
+ id,
66
+ label,
67
+ icon,
68
+ ...rest
69
+ } = preset;
70
+ return {
71
+ id,
72
+ name: label,
73
+ info: iconToInfo(icon),
74
+ views: transformViews(views),
75
+ ...rest
76
+ };
77
+ });
78
+ } else {
79
+ return transformViews(presets.views);
80
+ }
81
+ };
82
+ export const useViews = config => {
83
+ var _saveViewModalProps$l;
84
+ const {
85
+ enabled,
86
+ saveViewModalProps,
87
+ viewsDropdownProps,
88
+ presets,
89
+ ...rest
90
+ } = config || {};
91
+ return enabled ? /*#__PURE__*/React.createElement(Views, _extends({}, rest, {
92
+ viewNamePlaceholder: saveViewModalProps == null ? void 0 : saveViewModalProps.placeholderName,
93
+ learnMoreLink: saveViewModalProps == null || (_saveViewModalProps$l = saveViewModalProps.learnMore) == null ? void 0 : _saveViewModalProps$l.url,
94
+ showTotal: viewsDropdownProps == null ? void 0 : viewsDropdownProps.showTotal,
95
+ allItemsViewProps: {
96
+ ...((viewsDropdownProps == null ? void 0 : viewsDropdownProps.customAllItemsViewLabel) && {
97
+ name: viewsDropdownProps.customAllItemsViewLabel
98
+ }),
99
+ ...((viewsDropdownProps == null ? void 0 : viewsDropdownProps.hideAllItemsView) && {
100
+ hidden: viewsDropdownProps.hideAllItemsView
101
+ })
102
+ },
103
+ presets: transformPresets(presets)
104
+ })) : undefined;
105
+ };
106
+ //# sourceMappingURL=useViews.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","columnSortOrder","Views","iconToInfo","icon","content","tooltipContent","SORT_DIRECTION_MAP","asc","Ascending","desc","Descending","transformViews","views","map","view","label","columnPreferences","rest","name","sortDirections","filter","_ref","direction","undefined","_ref2","id","columnId","selectedColumns","_ref3","show","_ref4","isSelected","transformPresets","presets","type","categories","preset","info","useViews","config","_saveViewModalProps$l","enabled","saveViewModalProps","viewsDropdownProps","createElement","_extends","viewNamePlaceholder","placeholderName","learnMoreLink","learnMore","url","showTotal","allItemsViewProps","customAllItemsViewLabel","hideAllItemsView","hidden"],"sources":["../../../src/hooks/useViews.tsx"],"sourcesContent":["import React from 'react';\nimport { Category, columnSortOrder, View, Views } from '@wix/patterns';\nimport { ViewsConfig, AutoView, AutoCategory } from '../types';\nimport { InfoIconProps } from '@wix/design-system';\n\nconst iconToInfo = (icon: AutoCategory['icon']): InfoIconProps => {\n return {\n ...icon,\n content: icon?.tooltipContent,\n };\n};\n\nconst SORT_DIRECTION_MAP = {\n asc: columnSortOrder.Ascending,\n desc: columnSortOrder.Descending,\n};\n\nconst transformViews = (views: AutoView[]): View<any>[] => {\n return views.map((view) => {\n const { label, columnPreferences, ...rest } = view;\n return {\n name: label,\n sortDirections: columnPreferences\n ?.filter(({ direction }) => direction !== undefined)\n .map(({ id, direction }) => ({\n columnId: id,\n direction: SORT_DIRECTION_MAP[direction!],\n })),\n selectedColumns: columnPreferences\n ?.filter(({ show }) => show !== undefined)\n .map(({ id, show }) => ({\n id,\n isSelected: show,\n })),\n ...rest,\n };\n });\n};\n\nconst transformPresets = (presets: ViewsConfig['presets']) => {\n if (!presets) {\n return;\n }\n\n if (presets.type === 'categories') {\n return presets.categories.map((preset) => {\n const { views, id, label, icon, ...rest } = preset;\n return {\n id,\n name: label,\n info: iconToInfo(icon),\n views: transformViews(views),\n ...rest,\n };\n }) as Category<any>[];\n } else {\n return transformViews(presets.views);\n }\n};\n\nexport const useViews = (config: ViewsConfig | undefined) => {\n const { enabled, saveViewModalProps, viewsDropdownProps, presets, ...rest } =\n config || {};\n\n return enabled ? (\n <Views\n {...rest}\n viewNamePlaceholder={saveViewModalProps?.placeholderName}\n learnMoreLink={saveViewModalProps?.learnMore?.url}\n showTotal={viewsDropdownProps?.showTotal}\n allItemsViewProps={{\n ...(viewsDropdownProps?.customAllItemsViewLabel && {\n name: viewsDropdownProps.customAllItemsViewLabel,\n }),\n ...(viewsDropdownProps?.hideAllItemsView && {\n hidden: viewsDropdownProps.hideAllItemsView,\n }),\n }}\n presets={transformPresets(presets)}\n />\n ) : undefined;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAmBC,eAAe,EAAQC,KAAK,QAAQ,eAAe;AAItE,MAAMC,UAAU,GAAIC,IAA0B,IAAoB;EAChE,OAAO;IACL,GAAGA,IAAI;IACPC,OAAO,EAAED,IAAI,oBAAJA,IAAI,CAAEE;EACjB,CAAC;AACH,CAAC;AAED,MAAMC,kBAAkB,GAAG;EACzBC,GAAG,EAAEP,eAAe,CAACQ,SAAS;EAC9BC,IAAI,EAAET,eAAe,CAACU;AACxB,CAAC;AAED,MAAMC,cAAc,GAAIC,KAAiB,IAAkB;EACzD,OAAOA,KAAK,CAACC,GAAG,CAAEC,IAAI,IAAK;IACzB,MAAM;MAAEC,KAAK;MAAEC,iBAAiB;MAAE,GAAGC;IAAK,CAAC,GAAGH,IAAI;IAClD,OAAO;MACLI,IAAI,EAAEH,KAAK;MACXI,cAAc,EAAEH,iBAAiB,oBAAjBA,iBAAiB,CAC7BI,MAAM,CAACC,IAAA;QAAA,IAAC;UAAEC;QAAU,CAAC,GAAAD,IAAA;QAAA,OAAKC,SAAS,KAAKC,SAAS;MAAA,EAAC,CACnDV,GAAG,CAACW,KAAA;QAAA,IAAC;UAAEC,EAAE;UAAEH;QAAU,CAAC,GAAAE,KAAA;QAAA,OAAM;UAC3BE,QAAQ,EAAED,EAAE;UACZH,SAAS,EAAEhB,kBAAkB,CAACgB,SAAS;QACzC,CAAC;MAAA,CAAC,CAAC;MACLK,eAAe,EAAEX,iBAAiB,oBAAjBA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BA,kBAAkB,CAAEK,eAAgB;IACzDC,aAAa,EAAEN,kBAAkB,aAAAF,qBAAA,GAAlBE,kBAAkB,CAAEO,SAAS,qBAA7BT,qBAAA,CAA+BU,GAAI;IAClDC,SAAS,EAAER,kBAAkB,oBAAlBA,kBAAkB,CAAEQ,SAAU;IACzCC,iBAAiB,EAAE;MACjB,IAAI,CAAAT,kBAAkB,oBAAlBA,kBAAkB,CAAEU,uBAAuB,KAAI;QACjDnC,IAAI,EAAEyB,kBAAkB,CAACU;MAC3B,CAAC,CAAC;MACF,IAAI,CAAAV,kBAAkB,oBAAlBA,kBAAkB,CAAEW,gBAAgB,KAAI;QAC1CC,MAAM,EAAEZ,kBAAkB,CAACW;MAC7B,CAAC;IACH,CAAE;IACFrB,OAAO,EAAED,gBAAgB,CAACC,OAAO;EAAE,EACpC,CAAC,GACAV,SAAS;AACf,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 CollectionPageOnRowClickActionConfig,\n CollectionPagePrimaryActions,\n CollectionPageSecondaryActions,\n} from './actions';\n\nexport interface CollectionPageTitle {\n /**\n * The title text.\n */\n text: string;\n /**\n * Determines whether to hide the number of total entities on the title of the page.\n */\n hideTotal?: boolean;\n}\n\nexport interface CollectionPageSubtitle {\n /**\n * The subtitle text.\n */\n text: string;\n /**\n * \"Learn more\" link.\n */\n learnMore?: {\n /**\n * Where the link should navigate to.\n */\n url: string;\n /**\n * The label of the link button. defaults to \"Learn More\".\n */\n label?: string;\n };\n}\n\nexport interface CollectionPageConfig {\n /**\n * Route configuration.\n */\n route: {\n /**\n * Route path (relative path).\n */\n path: string;\n };\n /**\n * Page title configuration.\n */\n title: CollectionPageTitle;\n /**\n * Page subtitle configuration.\n */\n subtitle?: CollectionPageSubtitle;\n /**\n * Page-level actions to render in the page header.\n */\n actions?: {\n /**\n * Primary actions.\n */\n primaryActions?: CollectionPagePrimaryActions;\n /**\n * Secondary actions.\n */\n secondaryActions?: CollectionPageSecondaryActions;\n };\n /**\n * Components rendered within the page layout.\n */\n components: ComponentConfig[];\n}\n\nexport interface CollectionComponentConfig\n extends BaseCollectionComponentConfig {\n /**\n * Type discriminator.\n */\n type: 'collection';\n /**\n * Layout items to render.\n */\n layout: LayoutItemConfig[];\n}\n\nexport interface CustomComponentConfig {\n /**\n * Type discriminator.\n */\n type: 'custom';\n /**\n * Identifier that maps to a custom React component provided via overrides.\n */\n id: string;\n}\n\nexport type ComponentConfig = CollectionComponentConfig | CustomComponentConfig;\n\nexport interface LayoutItemConfig {\n /**\n * Rendering mode for the collection component.\n */\n type: 'Table' | 'Grid';\n /**\n * Table-specific configuration.\n */\n table?: TableSpecificConfig;\n /**\n * Grid-specific configuration.\n */\n grid?: GridSpecificConfig;\n}\n\nexport type ColumnsConfig = Column[];\n\nexport interface TableSpecificConfig {\n /**\n * Table columns configuration.\n */\n columns: ColumnsConfig;\n /**\n * Enables custom columns (hide/reorder columns) functionality.\n */\n customColumns?: {\n enabled: boolean;\n };\n /**\n * Number of leading columns that remain sticky on horizontal scroll.\n */\n stickyColumns?: number;\n /**\n * Row click action.\n */\n onRowClick?: CollectionPageOnRowClickActionConfig;\n /**\n * Show column headers (title bar).\n * @default true\n */\n showTitleBar?: boolean;\n /**\n * Sectioning support for table.\n *\n * The `id` must match the identifier of a custom sectioning override component.\n * This allows you to provide a custom React component for table section rendering.\n */\n sections?: {\n id: string;\n };\n /**\n * Data extension configuration.\n */\n dataExtension?: {\n enabled: boolean;\n };\n}\n\nexport interface GridSpecificConfig {\n /**\n * Grid item.\n */\n item: GridItem;\n}\n\nexport interface TableConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig {}\n\nexport interface GridConfig\n extends BaseCollectionComponentConfig,\n GridSpecificConfig {}\n\nexport interface TableGridSwitchConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig,\n GridSpecificConfig {}\n\nexport type CollectionConfig = BaseCollectionConfig & {\n /**\n * Default fetch limit (items per page).\n */\n limit?: number;\n /**\n * Reflect search/filters/sort in the URL.\n * @default false\n */\n reflectQueryInUrl?: boolean;\n /**\n * Scope of \"Select All\":\n * - 'all': select the entire collection (server-side).\n * - 'page': select only currently visible items.\n * @default \"all\"\n */\n selectAllScope?: 'page' | 'all';\n /**\n * Selection behavior when data changes:\n * - 'preserve': keep current selections if still valid.\n * - 'clear': clear selection on data refresh.\n * @default \"clear\"\n */\n selectionUpdateMode?: 'preserve' | 'clear';\n /**\n * Enables optimistic UI actions;\n * Identifier that maps to a custom optimistic actions provided via overrides.\n */\n optimisticActions?: {\n id: string;\n };\n /**\n * Pagination strategy:\n * - 'cursor': `find()` must return { items, cursor, total? }\n * - 'offset': `find()` must return { items, hasNext, total? }\n * @default \"offset\"\n */\n paginationMode?: 'cursor' | 'offset';\n};\n\nexport interface BaseCollectionComponentConfig {\n /**\n * Collection data configuration and behavior.\n */\n collection: CollectionConfig;\n /**\n * Entity page to navigate to (by page id) when interacting with rows (e.g. onRowClick/update).\n */\n entityPageId?: string;\n /**\n * Search configuration.\n */\n search?: {\n /**\n * Whether to show the search input.\n * @default true\n */\n shown?: boolean;\n };\n /**\n * Toolbar title configuration.\n */\n toolbarTitle?: ToolbarTitle;\n /**\n * Action cell configuration per row.\n */\n actionCell?: ActionCellConfig;\n /**\n * Empty state configuration.\n */\n emptyState?: EmptyState;\n /**\n * Filters configuration.\n */\n filters?: FiltersConfig;\n /**\n * Bulk action toolbar configuration.\n */\n bulkActionToolbar?: BulkActionsConfig;\n /**\n * Drag and drop configuration.\n */\n dragAndDrop?: {\n /**\n * Whether drag and drop is enabled. When enabled, the schema must support a \"move\" action.\n */\n enabled: boolean;\n /**\n * Custom drag and drop cancel handler.\n */\n dragAndDropCancel?: {\n id?: string;\n };\n };\n}\n\nexport interface ToolbarTitle {\n /**\n * Title text.\n */\n title: string;\n /**\n * Subtitle configuration.\n */\n subtitle?: {\n /**\n * Subtitle text.\n */\n text: string;\n /**\n * Info tooltip content with an optional link.\n */\n info?: {\n content: {\n text: string;\n link?: {\n url: string;\n label: string;\n };\n };\n };\n /**\n * \"Learn more\" link.\n */\n learnMore?: {\n /**\n * Where the link should navigate to.\n */\n url: string;\n /**\n * The label of the link button.\n */\n label?: string;\n };\n };\n /**\n * Show total items on the toolbar.\n * @default false\n */\n showTotal?: boolean;\n /**\n * Limit displayed item count in the toolbar.\n */\n itemsLimit?: number;\n}\n\nexport interface Column {\n /**\n * FieldId to bind the column to.\n */\n id: string;\n /**\n * Column header text.\n */\n name: string;\n /**\n * CSS width value (e.g. '120px', '20%').\n */\n width: string;\n /**\n * Whether the column supports sorting.\n */\n sortable?: boolean;\n /**\n * Initial sort order when the page loads.\n */\n defaultSortOrder?: 'asc' | 'desc';\n /**\n * Current sort mode selected in UI.\n */\n sortMode?: 'asc' | 'desc';\n /**\n * Hide column by default in the custom columns panel.\n * When true, the column will not be shown initially and must be enabled by the user via the customize columns UI.\n */\n defaultHidden?: boolean;\n /**\n * Exclude from the \"customize columns\" selection UI.\n */\n hiddenFromCustomColumnsSelection?: boolean;\n /**\n * Controls whether the \"hide/show\" checkbox for this column is enabled in the custom columns panel.\n * If set to false, the checkbox will be disabled and the user cannot toggle visibility for this column.\n */\n hideable?: boolean;\n /**\n * Prevent column reordering in the customization UI.\n */\n reorderDisabled?: boolean;\n /**\n * Tooltip content to display when hovering over the info icon in the column header.\n */\n tooltipContent?: string;\n}\n\nexport interface GridItem {\n /**\n * FieldId to use as the card title.\n */\n titleFieldId: string;\n /**\n * FieldId to use as the card subtitle.\n */\n subtitleFieldId?: string;\n /**\n * FieldId to use as the card image.\n */\n imageFieldId?: string;\n /**\n * Controls which content is shown in the card (preset):\n * - 'full': shows title and subtitle.\n * - 'title': shows only the title.\n * - 'empty': hides both title and subtitle.\n */\n cardContentMode?: 'full' | 'title' | 'empty'; // Footer is not supported in auto-patterns\n /**\n * Position of the image inside the card layout.\n */\n imagePlacement?: 'top' | 'side';\n}\n\nexport interface EmptyState {\n /**\n * Empty state title.\n */\n title?: string;\n /**\n * Empty state subtitle.\n */\n subtitle?: string;\n /**\n * Image to display in the empty state.\n */\n image?: {\n id: string;\n };\n /**\n * \"Add new\" call-to-action button.\n */\n addNewCta?: {\n id?: string;\n text?: string;\n };\n /**\n * Custom CTA slot (advanced).\n */\n customCta?: {\n id?: string;\n };\n}\n\nexport interface FilterOption {\n value: string;\n label: string;\n}\n\nexport type FilterSelectionMode = 'single' | 'multiple';\n\nexport type FilterOptionType =\n | 'checkbox'\n | 'inlineCheckbox'\n | 'radio'\n | 'select';\n\nexport enum ComponentTypeEnum {\n SINGLE = 'single',\n MULTI_SELECT = 'multi-select',\n RADIO_GROUP = 'radio-group',\n NUMBER = 'number',\n DATE_RANGE = 'date-range',\n}\n\nexport type FilterItems = Filter[];\n\nexport interface FiltersConfig {\n /**\n * Filter items to display.\n */\n items: FilterItems;\n /**\n * Maximum number of filters shown inline before moving to the panel.\n * @default 0 (all in panel).\n */\n maxInlineFilters?: CollectionToolbarFiltersProps['inline'];\n /**\n * Title for the filter panel drawer.\n */\n panelTitle?: string;\n}\n\nexport interface BaseOptionsFilterConfig {\n /**\n * Selection behavior: single choice or multiple choices.\n */\n selectionMode: FilterSelectionMode;\n}\n\nexport interface DateFilterConfig {\n /**\n * Controls behavior: presets only, custom only, or both.\n */\n mode?: DateRangeFilterMode;\n /**\n * Which preset ranges to display (only if mode supports presets).\n */\n presets?: DateRangeOptions;\n /**\n * Whether to include time selection.\n * @default true\n */\n includeTime?: boolean;\n}\n\nexport interface NumberFilterConfig {\n /**\n * Minimum allowed value.\n */\n min?: number;\n /**\n * Maximum allowed value.\n */\n max?: number;\n /**\n * Whether decimal values are allowed.\n */\n allowedDecimals?: boolean;\n}\n\nexport interface BooleanFilterConfig {\n /**\n * Label for the \"true\" option.\n */\n trueLabel?: string;\n /**\n * Label for the \"false\" option.\n */\n falseLabel?: string;\n}\n\nexport interface EnumFilterConfig extends BaseOptionsFilterConfig {\n /**\n * List of available options.\n */\n options: FilterOption[];\n /**\n * Rendering control for option appearance.\n */\n optionType?: FilterOptionType;\n}\n\nexport interface DynamicOptionsFilterConfig extends BaseOptionsFilterConfig {}\n\nexport interface Filter {\n /**\n * Filter unique identifier.\n */\n id: string;\n /**\n * Target field id this filter controls.\n */\n fieldId: string;\n /**\n * Optional filter display name (defaults to field name).\n */\n displayName?: string;\n /**\n * Optional grouping label. Filters with the same `sectionTitle` are grouped together.\n */\n sectionTitle?: string;\n /**\n * Whether the filter item is expanded by default in the panel.\n */\n openByDefault?: boolean;\n /**\n * Label shown in the table/grid tag when the filter is active.\n */\n tagLabel?: string;\n /**\n * Configuration for number inputs (NUMBER fields).\n */\n numberConfig?: NumberFilterConfig;\n /**\n * Configuration for date inputs (DATETIME fields).\n */\n dateConfig?: DateFilterConfig;\n /**\n * Configuration for boolean input labels (BOOLEAN fields).\n */\n booleanConfig?: BooleanFilterConfig;\n /**\n * Configuration for enum inputs (ARRAY/ARRAY_STRING fields).\n */\n enumConfig?: EnumFilterConfig;\n /**\n * Dynamic options configuration (advanced).\n */\n dynamicOptionsConfig?: DynamicOptionsFilterConfig;\n}\n"],"mappings":"AA8bA,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 {\n DateRangeFilterMode,\n DateRangeOptions,\n DateRangePredefinedPresetOptions,\n} from '@wix/patterns/core';\nimport { BaseCollectionConfig } from './types';\nimport {\n ActionCellConfig,\n BulkActionsConfig,\n CollectionPageOnRowClickActionConfig,\n CollectionPagePrimaryActions,\n CollectionPageSecondaryActions,\n} from './actions';\n\nexport interface CollectionPageTitle {\n /**\n * The title text.\n */\n text: string;\n /**\n * Determines whether to hide the number of total entities on the title of the page.\n */\n hideTotal?: boolean;\n}\n\nexport interface CollectionPageSubtitle {\n /**\n * The subtitle text.\n */\n text: string;\n /**\n * \"Learn more\" link.\n */\n learnMore?: {\n /**\n * Where the link should navigate to.\n */\n url: string;\n /**\n * The label of the link button. defaults to \"Learn More\".\n */\n label?: string;\n };\n}\n\nexport interface CollectionPageConfig {\n /**\n * Route configuration.\n */\n route: {\n /**\n * Route path (relative path).\n */\n path: string;\n };\n /**\n * Page title configuration.\n */\n title: CollectionPageTitle;\n /**\n * Page subtitle configuration.\n */\n subtitle?: CollectionPageSubtitle;\n /**\n * Page-level actions to render in the page header.\n */\n actions?: {\n /**\n * Primary actions.\n */\n primaryActions?: CollectionPagePrimaryActions;\n /**\n * Secondary actions.\n */\n secondaryActions?: CollectionPageSecondaryActions;\n };\n /**\n * Components rendered within the page layout.\n */\n components: ComponentConfig[];\n}\n\nexport interface CollectionComponentConfig\n extends BaseCollectionComponentConfig {\n /**\n * Type discriminator.\n */\n type: 'collection';\n /**\n * Layout items to render.\n */\n layout: LayoutItemConfig[];\n}\n\nexport interface CustomComponentConfig {\n /**\n * Type discriminator.\n */\n type: 'custom';\n /**\n * Identifier that maps to a custom React component provided via overrides.\n */\n id: string;\n}\n\nexport type ComponentConfig = CollectionComponentConfig | CustomComponentConfig;\n\nexport interface LayoutItemConfig {\n /**\n * Rendering mode for the collection component.\n */\n type: 'Table' | 'Grid';\n /**\n * Table-specific configuration.\n */\n table?: TableSpecificConfig;\n /**\n * Grid-specific configuration.\n */\n grid?: GridSpecificConfig;\n}\n\nexport type ColumnsConfig = Column[];\n\nexport interface TableSpecificConfig {\n /**\n * Table columns configuration.\n */\n columns: ColumnsConfig;\n /**\n * Enables custom columns (hide/reorder columns) functionality.\n */\n customColumns?: {\n enabled: boolean;\n };\n /**\n * Number of leading columns that remain sticky on horizontal scroll.\n */\n stickyColumns?: number;\n /**\n * Row click action.\n */\n onRowClick?: CollectionPageOnRowClickActionConfig;\n /**\n * Show column headers (title bar).\n * @default true\n */\n showTitleBar?: boolean;\n /**\n * Sectioning support for table.\n *\n * The `id` must match the identifier of a custom sectioning override component.\n * This allows you to provide a custom React component for table section rendering.\n */\n sections?: {\n id: string;\n };\n /**\n * Data extension configuration.\n */\n dataExtension?: {\n enabled: boolean;\n };\n}\n\nexport interface GridSpecificConfig {\n /**\n * Grid item.\n */\n item: GridItem;\n}\n\nexport interface TableConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig {}\n\nexport interface GridConfig\n extends BaseCollectionComponentConfig,\n GridSpecificConfig {}\n\nexport interface TableGridSwitchConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig,\n GridSpecificConfig {}\n\nexport type CollectionConfig = BaseCollectionConfig & {\n /**\n * Default fetch limit (items per page).\n */\n limit?: number;\n /**\n * Reflect search/filters/sort in the URL.\n * @default false\n */\n reflectQueryInUrl?: boolean;\n /**\n * Scope of \"Select All\":\n * - 'all': select the entire collection (server-side).\n * - 'page': select only currently visible items.\n * @default \"all\"\n */\n selectAllScope?: 'page' | 'all';\n /**\n * Selection behavior when data changes:\n * - 'preserve': keep current selections if still valid.\n * - 'clear': clear selection on data refresh.\n * @default \"clear\"\n */\n selectionUpdateMode?: 'preserve' | 'clear';\n /**\n * Enables optimistic UI actions;\n * Identifier that maps to a custom optimistic actions provided via overrides.\n */\n optimisticActions?: {\n id: string;\n };\n /**\n * Pagination strategy:\n * - 'cursor': `find()` must return { items, cursor, total? }\n * - 'offset': `find()` must return { items, hasNext, total? }\n * @default \"offset\"\n */\n paginationMode?: 'cursor' | 'offset';\n};\n\nexport interface BaseCollectionComponentConfig {\n /**\n * Collection data configuration and behavior.\n */\n collection: CollectionConfig;\n /**\n * Entity page to navigate to (by page id) when interacting with rows (e.g. onRowClick/update).\n */\n entityPageId?: string;\n /**\n * Search configuration.\n */\n search?: {\n /**\n * Whether to show the search input.\n * @default true\n */\n shown?: boolean;\n };\n /**\n * Toolbar title configuration.\n */\n toolbarTitle?: ToolbarTitle;\n /**\n * Action cell configuration per row.\n */\n actionCell?: ActionCellConfig;\n /**\n * Empty state configuration.\n */\n emptyState?: EmptyState;\n /**\n * Filters configuration.\n */\n filters?: FiltersConfig;\n /**\n * Views configuration.\n */\n views?: ViewsConfig;\n /**\n * Bulk action toolbar configuration.\n */\n bulkActionToolbar?: BulkActionsConfig;\n /**\n * Drag and drop configuration.\n */\n dragAndDrop?: {\n /**\n * Whether drag and drop is enabled. When enabled, the schema must support a \"move\" action.\n */\n enabled: boolean;\n /**\n * Custom drag and drop cancel handler.\n */\n dragAndDropCancel?: {\n id?: string;\n };\n };\n}\n\nexport interface ToolbarTitle {\n /**\n * Title text.\n */\n title: string;\n /**\n * Subtitle configuration.\n */\n subtitle?: {\n /**\n * Subtitle text.\n */\n text: string;\n /**\n * Info tooltip content with an optional link.\n */\n info?: {\n content: {\n text: string;\n link?: {\n url: string;\n label: string;\n };\n };\n };\n /**\n * \"Learn more\" link.\n */\n learnMore?: {\n /**\n * Where the link should navigate to.\n */\n url: string;\n /**\n * The label of the link button.\n */\n label?: string;\n };\n };\n /**\n * Show total items on the toolbar.\n * @default false\n */\n showTotal?: boolean;\n /**\n * Limit displayed item count in the toolbar.\n */\n itemsLimit?: number;\n}\n\nexport interface Column {\n /**\n * FieldId to bind the column to.\n */\n id: string;\n /**\n * Column header text.\n */\n name: string;\n /**\n * CSS width value (e.g. '120px', '20%').\n */\n width: string;\n /**\n * Whether the column supports sorting.\n */\n sortable?: boolean;\n /**\n * Initial sort order when the page loads.\n */\n defaultSortOrder?: 'asc' | 'desc';\n /**\n * Current sort mode selected in UI.\n */\n sortMode?: 'asc' | 'desc';\n /**\n * Hide column by default in the custom columns panel.\n * When true, the column will not be shown initially and must be enabled by the user via the customize columns UI.\n */\n defaultHidden?: boolean;\n /**\n * Exclude from the \"customize columns\" selection UI.\n */\n hiddenFromCustomColumnsSelection?: boolean;\n /**\n * Controls whether the \"hide/show\" checkbox for this column is enabled in the custom columns panel.\n * If set to false, the checkbox will be disabled and the user cannot toggle visibility for this column.\n */\n hideable?: boolean;\n /**\n * Prevent column reordering in the customization UI.\n */\n reorderDisabled?: boolean;\n /**\n * Tooltip content to display when hovering over the info icon in the column header.\n */\n tooltipContent?: string;\n}\n\nexport interface GridItem {\n /**\n * FieldId to use as the card title.\n */\n titleFieldId: string;\n /**\n * FieldId to use as the card subtitle.\n */\n subtitleFieldId?: string;\n /**\n * FieldId to use as the card image.\n */\n imageFieldId?: string;\n /**\n * Controls which content is shown in the card (preset):\n * - 'full': shows title and subtitle.\n * - 'title': shows only the title.\n * - 'empty': hides both title and subtitle.\n */\n cardContentMode?: 'full' | 'title' | 'empty'; // Footer is not supported in auto-patterns\n /**\n * Position of the image inside the card layout.\n */\n imagePlacement?: 'top' | 'side';\n}\n\nexport interface EmptyState {\n /**\n * Empty state title.\n */\n title?: string;\n /**\n * Empty state subtitle.\n */\n subtitle?: string;\n /**\n * Image to display in the empty state.\n */\n image?: {\n id: string;\n };\n /**\n * \"Add new\" call-to-action button.\n */\n addNewCta?: {\n id?: string;\n text?: string;\n };\n /**\n * Custom CTA slot (advanced).\n */\n customCta?: {\n id?: string;\n };\n}\n\nexport interface FilterOption {\n value: string;\n label: string;\n}\n\nexport type FilterSelectionMode = 'single' | 'multiple';\n\nexport type FilterOptionType =\n | 'checkbox'\n | 'inlineCheckbox'\n | 'radio'\n | 'select';\n\nexport enum ComponentTypeEnum {\n SINGLE = 'single',\n MULTI_SELECT = 'multi-select',\n RADIO_GROUP = 'radio-group',\n NUMBER = 'number',\n DATE_RANGE = 'date-range',\n}\n\nexport type FilterItems = Filter[];\n\nexport interface FiltersConfig {\n /**\n * Filter items to display.\n */\n items: FilterItems;\n /**\n * Maximum number of filters shown inline before moving to the panel.\n * @default 0 (all in panel).\n */\n maxInlineFilters?: CollectionToolbarFiltersProps['inline'];\n /**\n * Title for the filter panel drawer.\n */\n panelTitle?: string;\n}\n\nexport interface ViewsConfig {\n /**\n * Whether to show the views control.\n * @default false\n */\n enabled?: boolean;\n /**\n * Props for the Save View modal.\n */\n saveViewModalProps?: {\n /**\n * Placeholder text for the new view name input in the modal.\n */\n placeholderName?: string;\n /**\n * props for the learn more link in the modal.\n */\n learnMore?: {\n /**\n * Redirect URL for the Learn More button in the modal.\n */\n url?: string;\n };\n };\n /**\n * Props for the views control dropdown.\n */\n viewsDropdownProps?: {\n /**\n * Show the total number of items next to the views control.\n * @default false\n */\n showTotal?: boolean;\n /**\n * Hide the \"All items\" view from the dropdown. Only works when custom presets exist.\n * @default false\n */\n hideAllItemsView?: boolean;\n /**\n * Custom label for the \"All items\" view. Ignored if a preset has `isDefaultView: true`.\n * @default \"All items\"\n */\n customAllItemsViewLabel?: string;\n };\n /**\n * Custom presets to use for the views control.\n */\n presets?:\n | {\n type: 'categories';\n categories: AutoCategory[];\n }\n | {\n type: 'views';\n views: AutoView[];\n };\n}\n\nexport interface AutoCategory {\n /**\n * Category unique identifier.\n */\n id: string;\n /**\n * Category name that will be displayed in the views control.\n */\n label: string;\n /**\n * Category views.\n */\n views: AutoView[];\n /**\n * An icon that will be displayed next to the category label.\n */\n icon?: {\n tooltipContent: string;\n size?: 'small' | 'medium';\n };\n}\n\nexport interface AutoView {\n /**\n * View unique identifier.\n */\n id: string;\n /**\n * Display name for the view in the dropdown.\n */\n label: string;\n /**\n * Filters to apply when the view is selected. Keys must be filters id declared in this config.\n * @external\n */\n filters?: Record<string, AutoFilterValue | null>;\n /**\n * Column preferences for the view. Use this to control column order, visibility, and sorting.\n */\n columnPreferences?: ColumnPreferences[];\n /**\n * Makes this view the default selection instead of the \"All items\" view.\n */\n isDefaultView?: boolean;\n}\n\ninterface ColumnPreferences {\n /**\n * Column unique identifier.\n */\n id: string;\n /**\n * Sorting direction of the column in the view.\n */\n direction?: 'asc' | 'desc';\n /**\n * Pass false to hide the column from the view.\n */\n show?: boolean;\n}\n\nexport interface BaseOptionsFilterConfig {\n /**\n * Selection behavior: single choice or multiple choices.\n */\n selectionMode: FilterSelectionMode;\n}\n\nexport interface DateFilterConfig {\n /**\n * Controls behavior: presets only, custom only, or both.\n */\n mode?: DateRangeFilterMode;\n /**\n * Which preset ranges to display (only if mode supports presets).\n */\n presets?: DateRangeOptions;\n /**\n * Whether to include time selection.\n * @default true\n */\n includeTime?: boolean;\n}\n\nexport type AutoFilterValue =\n | {\n filterType: 'date';\n value: DateFilterValue;\n }\n | {\n filterType: 'number';\n value: NumberFilterValue;\n }\n | {\n filterType: 'boolean';\n value: BooleanFilterValue;\n }\n | {\n filterType: 'enum';\n value: EnumFilterValue;\n }\n | {\n filterType: 'reference';\n value: ReferenceFilterValue;\n };\n\nexport type DateFilterValue =\n | {\n preset: DateRangeOptions | DateRangePredefinedPresetOptions;\n }\n | {\n /**\n * Start date. format: MM-DD-YYYY\n */\n from?: string;\n /**\n * End date. format: MM-DD-YYYY\n */\n to?: string;\n };\n\nexport interface NumberFilterConfig {\n /**\n * Minimum allowed value.\n */\n min?: number;\n /**\n * Maximum allowed value.\n */\n max?: number;\n /**\n * Whether decimal values are allowed.\n */\n allowedDecimals?: boolean;\n}\n\nexport type NumberFilterValue = {\n /**\n * Minimum allowed value. default is negative infinity\n */\n from?: number;\n /**\n * Maximum allowed value. default is infinity\n */\n to?: number;\n};\n\nexport interface BooleanFilterConfig {\n /**\n * Label for the \"true\" option.\n */\n trueLabel?: string;\n /**\n * Label for the \"false\" option.\n */\n falseLabel?: string;\n}\n\nexport type BooleanFilterValue = {\n /**\n * checked for true, unchecked for false, all for all\n */\n id: 'checked' | 'unchecked' | 'all';\n /**\n * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \\<field-name\\>: \\<name\\>)\n */\n name: string;\n}[];\n\nexport interface EnumFilterConfig extends BaseOptionsFilterConfig {\n /**\n * List of available options.\n */\n options: FilterOption[];\n /**\n * Rendering control for option appearance.\n */\n optionType?: FilterOptionType;\n}\n\nexport type EnumFilterValue = {\n /**\n * The option value (from the filter config)\n */\n id: string;\n /**\n * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \\<field-name\\>: \\<name\\>)\n */\n name: string;\n}[];\n\nexport interface DynamicOptionsFilterConfig extends BaseOptionsFilterConfig {}\n\nexport type ReferenceFilterValue = {\n /**\n * The option value (from the filter config)\n */\n id: string;\n /**\n * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \\<field-name\\>: \\<name\\>)\n */\n name: string;\n}[];\n\nexport interface Filter {\n /**\n * Filter unique identifier.\n */\n id: string;\n /**\n * Target field id this filter controls.\n */\n fieldId: string;\n /**\n * Optional filter display name (defaults to field name).\n */\n displayName?: string;\n /**\n * Optional grouping label. Filters with the same `sectionTitle` are grouped together.\n */\n sectionTitle?: string;\n /**\n * Whether the filter item is expanded by default in the panel.\n */\n openByDefault?: boolean;\n /**\n * Label shown in the table/grid tag when the filter is active.\n */\n tagLabel?: string;\n /**\n * Configuration for number inputs (NUMBER fields).\n */\n numberConfig?: NumberFilterConfig;\n /**\n * Configuration for date inputs (DATETIME fields).\n */\n dateConfig?: DateFilterConfig;\n /**\n * Configuration for boolean input labels (BOOLEAN fields).\n */\n booleanConfig?: BooleanFilterConfig;\n /**\n * Configuration for enum inputs (ARRAY/ARRAY_STRING fields).\n */\n enumConfig?: EnumFilterConfig;\n /**\n * Dynamic options configuration (advanced).\n */\n dynamicOptionsConfig?: DynamicOptionsFilterConfig;\n}\n"],"mappings":"AAscA,WAAYA,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"AutoPatternsGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsGrid/AutoPatternsGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,UAAU,CAAC;CAC3B;AAED,eAAO,MAAM,gBAAgB,GAAI,oBAE9B,4BAA4B,sBA6B9B,CAAC"}
1
+ {"version":3,"file":"AutoPatternsGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsGrid/AutoPatternsGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,UAAU,CAAC;CAC3B;AAED,eAAO,MAAM,gBAAgB,GAAI,oBAE9B,4BAA4B,sBA+B9B,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,sBA0C/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,sBA4C/B,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import React from 'react';
2
2
  import { CollectionState } from '@wix/patterns';
3
3
  import { BaseCollectionComponentConfig } from '../types';
4
- export type UseCommonCollectionFeaturesParams = Pick<BaseCollectionComponentConfig, 'actionCell' | 'toolbarTitle' | 'search' | 'emptyState' | 'collection' | 'bulkActionToolbar' | 'entityPageId'> & {
4
+ export type UseCommonCollectionFeaturesParams = Pick<BaseCollectionComponentConfig, 'actionCell' | 'toolbarTitle' | 'search' | 'emptyState' | 'collection' | 'bulkActionToolbar' | 'entityPageId' | 'views'> & {
5
5
  collectionState: CollectionState<any>;
6
6
  };
7
- export declare const useCommonCollectionFeatures: ({ actionCell: actionCellConfig, bulkActionToolbar: bulkActionToolbarConfig, toolbarTitle, search, emptyState: emptyStateConfig, collection, collectionState, }: UseCommonCollectionFeaturesParams) => {
7
+ export declare const useCommonCollectionFeatures: ({ actionCell: actionCellConfig, bulkActionToolbar: bulkActionToolbarConfig, toolbarTitle, search, emptyState: emptyStateConfig, collection, collectionState, views: viewsConfig, }: UseCommonCollectionFeaturesParams) => {
8
8
  search: boolean;
9
9
  title: React.JSX.Element | undefined;
10
+ views: React.JSX.Element | undefined;
10
11
  emptyState: React.JSX.Element;
11
12
  actionCell: (item: any, index: any, api: any) => {};
12
13
  bulkActionToolbar: ((param: import("./useBulkActionToolbar").BulkActionToolbarRenderProp) => React.JSX.Element) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useCommonCollectionFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCommonCollectionFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAgB,MAAM,eAAe,CAAC;AAG9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAKzD,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAClD,6BAA6B,EAC3B,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,YAAY,GACZ,YAAY,GACZ,mBAAmB,GACnB,cAAc,CACjB,GAAG;IACF,eAAe,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,gKAQzC,iCAAiC;;;;;;;CAgEnC,CAAC"}
1
+ {"version":3,"file":"useCommonCollectionFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCommonCollectionFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAgB,MAAM,eAAe,CAAC;AAG9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAMzD,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAClD,6BAA6B,EAC3B,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,YAAY,GACZ,YAAY,GACZ,mBAAmB,GACnB,cAAc,GACd,OAAO,CACV,GAAG;IACF,eAAe,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,oLASzC,iCAAiC;;;;;;;;CAqEnC,CAAC"}
@@ -34,6 +34,7 @@ export declare const useGridFeatures: (configuration: GridConfig) => {
34
34
  } | null;
35
35
  search: boolean;
36
36
  title: import("react").JSX.Element | undefined;
37
+ views: import("react").JSX.Element | undefined;
37
38
  emptyState: import("react").JSX.Element;
38
39
  actionCell: (item: any, index: any, api: any) => {};
39
40
  bulkActionToolbar: ((param: import("./useBulkActionToolbar").BulkActionToolbarRenderProp) => import("react").JSX.Element) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useGridFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGridFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAWtC,eAAO,MAAM,eAAe,GAAI,eAAe,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CxD,CAAC"}
1
+ {"version":3,"file":"useGridFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGridFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAWtC,eAAO,MAAM,eAAe,GAAI,eAAe,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CxD,CAAC"}
@@ -18,6 +18,7 @@ export declare const useTableFeatures: (configuration: TableConfig) => {
18
18
  dataExtension: import("react").JSX.Element | undefined;
19
19
  search: boolean;
20
20
  title: import("react").JSX.Element | undefined;
21
+ views: import("react").JSX.Element | undefined;
21
22
  emptyState: import("react").JSX.Element;
22
23
  actionCell: (item: any, index: any, api: any) => {};
23
24
  bulkActionToolbar: ((param: import("./useBulkActionToolbar").BulkActionToolbarRenderProp) => import("react").JSX.Element) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useTableFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAYvC,eAAO,MAAM,gBAAgB,GAAI,eAAe,WAAW;;;;;;;;;;;;;;;;;;;;;;;CAqE1D,CAAC"}
1
+ {"version":3,"file":"useTableFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAYvC,eAAO,MAAM,gBAAgB,GAAI,eAAe,WAAW;;;;;;;;;;;;;;;;;;;;;;;;CAsE1D,CAAC"}
@@ -43,6 +43,7 @@ export declare const useTableGridSwitchFeatures: (config: TableGridSwitchConfig)
43
43
  dataExtension: import("react").JSX.Element | undefined;
44
44
  search: boolean;
45
45
  title: import("react").JSX.Element | undefined;
46
+ views: import("react").JSX.Element | undefined;
46
47
  emptyState: import("react").JSX.Element;
47
48
  actionCell: (item: any, index: any, api: any) => {};
48
49
  bulkActionToolbar: ((param: import("./useBulkActionToolbar").BulkActionToolbarRenderProp) => import("react").JSX.Element) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useTableGridSwitchFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableGridSwitchFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAYjD,eAAO,MAAM,0BAA0B,GAAI,QAAQ,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEvE,CAAC"}
1
+ {"version":3,"file":"useTableGridSwitchFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableGridSwitchFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAYjD,eAAO,MAAM,0BAA0B,GAAI,QAAQ,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEvE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ViewsConfig } from '../types';
3
+ export declare const useViews: (config: ViewsConfig | undefined) => React.JSX.Element | undefined;
4
+ //# sourceMappingURL=useViews.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useViews.d.ts","sourceRoot":"","sources":["../../../src/hooks/useViews.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAA0B,MAAM,UAAU,CAAC;AA0D/D,eAAO,MAAM,QAAQ,GAAI,QAAQ,WAAW,GAAG,SAAS,kCAqBvD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export declare const AutoPatternsAppTestkit: (arg: {
2
2
  dataHook: string;
3
3
  page: Page;
4
- wrapper: Locator;
4
+ wrapper?: Locator;
5
5
  }) => Promise<{
6
6
  collectionPage: () => import("../components/AutoPatternsApp/AutoPatternsApp.uni.driver").CollectionPageDriver;
7
7
  entityPage: () => import("../components/AutoPatternsApp/AutoPatternsApp.uni.driver").EntityPageDriver;
@@ -1 +1 @@
1
- {"version":3,"file":"playwright.d.ts","sourceRoot":"","sources":["../../../src/testkit/playwright.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAElC,CAAC"}
1
+ {"version":3,"file":"playwright.d.ts","sourceRoot":"","sources":["../../../src/testkit/playwright.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB;;;WAGiG,CAAC;;;;;;;;;;;;;;;EADpI,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { CollectionToolbarFiltersProps } from '@wix/patterns';
2
- import { DateRangeFilterMode, DateRangeOptions } from '@wix/patterns/core';
2
+ import { DateRangeFilterMode, DateRangeOptions, DateRangePredefinedPresetOptions } from '@wix/patterns/core';
3
3
  import { BaseCollectionConfig } from './types';
4
4
  import { ActionCellConfig, BulkActionsConfig, CollectionPageOnRowClickActionConfig, CollectionPagePrimaryActions, CollectionPageSecondaryActions } from './actions';
5
5
  export interface CollectionPageTitle {
@@ -229,6 +229,10 @@ export interface BaseCollectionComponentConfig {
229
229
  * Filters configuration.
230
230
  */
231
231
  filters?: FiltersConfig;
232
+ /**
233
+ * Views configuration.
234
+ */
235
+ views?: ViewsConfig;
232
236
  /**
233
237
  * Bulk action toolbar configuration.
234
238
  */
@@ -429,6 +433,119 @@ export interface FiltersConfig {
429
433
  */
430
434
  panelTitle?: string;
431
435
  }
436
+ export interface ViewsConfig {
437
+ /**
438
+ * Whether to show the views control.
439
+ * @default false
440
+ */
441
+ enabled?: boolean;
442
+ /**
443
+ * Props for the Save View modal.
444
+ */
445
+ saveViewModalProps?: {
446
+ /**
447
+ * Placeholder text for the new view name input in the modal.
448
+ */
449
+ placeholderName?: string;
450
+ /**
451
+ * props for the learn more link in the modal.
452
+ */
453
+ learnMore?: {
454
+ /**
455
+ * Redirect URL for the Learn More button in the modal.
456
+ */
457
+ url?: string;
458
+ };
459
+ };
460
+ /**
461
+ * Props for the views control dropdown.
462
+ */
463
+ viewsDropdownProps?: {
464
+ /**
465
+ * Show the total number of items next to the views control.
466
+ * @default false
467
+ */
468
+ showTotal?: boolean;
469
+ /**
470
+ * Hide the "All items" view from the dropdown. Only works when custom presets exist.
471
+ * @default false
472
+ */
473
+ hideAllItemsView?: boolean;
474
+ /**
475
+ * Custom label for the "All items" view. Ignored if a preset has `isDefaultView: true`.
476
+ * @default "All items"
477
+ */
478
+ customAllItemsViewLabel?: string;
479
+ };
480
+ /**
481
+ * Custom presets to use for the views control.
482
+ */
483
+ presets?: {
484
+ type: 'categories';
485
+ categories: AutoCategory[];
486
+ } | {
487
+ type: 'views';
488
+ views: AutoView[];
489
+ };
490
+ }
491
+ export interface AutoCategory {
492
+ /**
493
+ * Category unique identifier.
494
+ */
495
+ id: string;
496
+ /**
497
+ * Category name that will be displayed in the views control.
498
+ */
499
+ label: string;
500
+ /**
501
+ * Category views.
502
+ */
503
+ views: AutoView[];
504
+ /**
505
+ * An icon that will be displayed next to the category label.
506
+ */
507
+ icon?: {
508
+ tooltipContent: string;
509
+ size?: 'small' | 'medium';
510
+ };
511
+ }
512
+ export interface AutoView {
513
+ /**
514
+ * View unique identifier.
515
+ */
516
+ id: string;
517
+ /**
518
+ * Display name for the view in the dropdown.
519
+ */
520
+ label: string;
521
+ /**
522
+ * Filters to apply when the view is selected. Keys must be filters id declared in this config.
523
+ * @external
524
+ */
525
+ filters?: Record<string, AutoFilterValue | null>;
526
+ /**
527
+ * Column preferences for the view. Use this to control column order, visibility, and sorting.
528
+ */
529
+ columnPreferences?: ColumnPreferences[];
530
+ /**
531
+ * Makes this view the default selection instead of the "All items" view.
532
+ */
533
+ isDefaultView?: boolean;
534
+ }
535
+ interface ColumnPreferences {
536
+ /**
537
+ * Column unique identifier.
538
+ */
539
+ id: string;
540
+ /**
541
+ * Sorting direction of the column in the view.
542
+ */
543
+ direction?: 'asc' | 'desc';
544
+ /**
545
+ * Pass false to hide the column from the view.
546
+ */
547
+ show?: boolean;
548
+ }
432
549
  export interface BaseOptionsFilterConfig {
433
550
  /**
434
551
  * Selection behavior: single choice or multiple choices.
@@ -450,6 +567,34 @@ export interface DateFilterConfig {
450
567
  */
451
568
  includeTime?: boolean;
452
569
  }
570
+ export type AutoFilterValue = {
571
+ filterType: 'date';
572
+ value: DateFilterValue;
573
+ } | {
574
+ filterType: 'number';
575
+ value: NumberFilterValue;
576
+ } | {
577
+ filterType: 'boolean';
578
+ value: BooleanFilterValue;
579
+ } | {
580
+ filterType: 'enum';
581
+ value: EnumFilterValue;
582
+ } | {
583
+ filterType: 'reference';
584
+ value: ReferenceFilterValue;
585
+ };
586
+ export type DateFilterValue = {
587
+ preset: DateRangeOptions | DateRangePredefinedPresetOptions;
588
+ } | {
589
+ /**
590
+ * Start date. format: MM-DD-YYYY
591
+ */
592
+ from?: string;
593
+ /**
594
+ * End date. format: MM-DD-YYYY
595
+ */
596
+ to?: string;
597
+ };
453
598
  export interface NumberFilterConfig {
454
599
  /**
455
600
  * Minimum allowed value.
@@ -464,6 +609,16 @@ export interface NumberFilterConfig {
464
609
  */
465
610
  allowedDecimals?: boolean;
466
611
  }
612
+ export type NumberFilterValue = {
613
+ /**
614
+ * Minimum allowed value. default is negative infinity
615
+ */
616
+ from?: number;
617
+ /**
618
+ * Maximum allowed value. default is infinity
619
+ */
620
+ to?: number;
621
+ };
467
622
  export interface BooleanFilterConfig {
468
623
  /**
469
624
  * Label for the "true" option.
@@ -474,6 +629,16 @@ export interface BooleanFilterConfig {
474
629
  */
475
630
  falseLabel?: string;
476
631
  }
632
+ export type BooleanFilterValue = {
633
+ /**
634
+ * checked for true, unchecked for false, all for all
635
+ */
636
+ id: 'checked' | 'unchecked' | 'all';
637
+ /**
638
+ * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \<field-name\>: \<name\>)
639
+ */
640
+ name: string;
641
+ }[];
477
642
  export interface EnumFilterConfig extends BaseOptionsFilterConfig {
478
643
  /**
479
644
  * List of available options.
@@ -484,8 +649,28 @@ export interface EnumFilterConfig extends BaseOptionsFilterConfig {
484
649
  */
485
650
  optionType?: FilterOptionType;
486
651
  }
652
+ export type EnumFilterValue = {
653
+ /**
654
+ * The option value (from the filter config)
655
+ */
656
+ id: string;
657
+ /**
658
+ * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \<field-name\>: \<name\>)
659
+ */
660
+ name: string;
661
+ }[];
487
662
  export interface DynamicOptionsFilterConfig extends BaseOptionsFilterConfig {
488
663
  }
664
+ export type ReferenceFilterValue = {
665
+ /**
666
+ * The option value (from the filter config)
667
+ */
668
+ id: string;
669
+ /**
670
+ * A string that will appear on the filter tag, after the field name, when the filter is active (appears as \<field-name\>: \<name\>)
671
+ */
672
+ name: string;
673
+ }[];
489
674
  export interface Filter {
490
675
  /**
491
676
  * Filter unique identifier.
@@ -532,4 +717,5 @@ export interface Filter {
532
717
  */
533
718
  dynamicOptionsConfig?: DynamicOptionsFilterConfig;
534
719
  }
720
+ export {};
535
721
  //# sourceMappingURL=CollectionPageConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CollectionPageConfig.d.ts","sourceRoot":"","sources":["../../../src/types/CollectionPageConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,oCAAoC,EACpC,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EA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AAM,WAAW,MAAM;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;OAEG;IACH,oBAAoB,CAAC,EAAE,0BAA0B,CAAC;CACnD"}
1
+ {"version":3,"file":"CollectionPageConfig.d.ts","sourceRoot":"","sources":["../../../src/types/CollectionPageConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,gCAAgC,EACjC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,oCAAoC,EACpC,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;WAEG;QACH,KAAK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