@wix/patterns 1.459.0 → 1.460.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/CardContainer/CardContainer.st.css.js +2 -2
- package/dist/cjs/components/CardContainer/CardContainer.st.css.js.map +1 -1
- package/dist/cjs/components/CmsFieldManagement/CmsFieldForm.st.css.js +3 -3
- package/dist/cjs/components/CmsFieldManagement/CmsFieldForm.st.css.js.map +1 -1
- package/dist/cjs/components/CmsFieldManagement/CmsFieldModal.st.css.js +3 -3
- package/dist/cjs/components/CmsFieldManagement/CmsFieldModal.st.css.js.map +1 -1
- package/dist/cjs/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.js +3 -3
- package/dist/cjs/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.js.map +1 -1
- package/dist/cjs/components/Collapse/Collapse.st.css.js +3 -3
- package/dist/cjs/components/Collapse/Collapse.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
- package/dist/cjs/components/CollectionPageNew/CollectionPage.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js +3 -3
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionTable/CollectionTable.st.css.js +2 -2
- package/dist/cjs/components/CollectionTable/CollectionTable.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.st.css.js +2 -2
- package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js +5 -5
- package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +4 -4
- package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
- package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
- package/dist/cjs/components/CustomFieldModal/CustomFieldForm.js +32 -29
- package/dist/cjs/components/CustomFieldModal/CustomFieldForm.js.map +1 -1
- package/dist/cjs/components/CustomFieldModal/CustomFieldTypeDropdown.js +6 -5
- package/dist/cjs/components/CustomFieldModal/CustomFieldTypeDropdown.js.map +1 -1
- package/dist/cjs/components/DragHandle/DragHandle.st.css.js +2 -2
- package/dist/cjs/components/DragHandle/DragHandle.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/EditableCell.st.css.js +3 -3
- package/dist/cjs/components/EditableTable/EditableCell.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/HeaderActionsPopover.st.css.js +2 -2
- package/dist/cjs/components/EditableTable/HeaderActionsPopover.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/CellViewLayout.st.css.js +2 -2
- package/dist/cjs/components/EditableTable/cellTypes/CellViewLayout.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/address/Edit.st.css.js +3 -3
- package/dist/cjs/components/EditableTable/cellTypes/address/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/array/Edit.st.css.js +3 -3
- package/dist/cjs/components/EditableTable/cellTypes/array/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/boolean/Edit.st.css.js +3 -3
- package/dist/cjs/components/EditableTable/cellTypes/boolean/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/boolean/View.st.css.js +3 -3
- package/dist/cjs/components/EditableTable/cellTypes/boolean/View.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/color/Edit.st.css.js +2 -2
- package/dist/cjs/components/EditableTable/cellTypes/color/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/date/Edit.st.css.js +3 -3
- package/dist/cjs/components/EditableTable/cellTypes/date/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/date/View.st.css.js +2 -2
- package/dist/cjs/components/EditableTable/cellTypes/date/View.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/datetime/Edit.st.css.js +8 -8
- package/dist/cjs/components/EditableTable/cellTypes/datetime/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/datetime/View.st.css.js +7 -7
- package/dist/cjs/components/EditableTable/cellTypes/datetime/View.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/email/Edit.st.css.js +3 -3
- package/dist/cjs/components/EditableTable/cellTypes/email/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/email/View.st.css.js +2 -2
- package/dist/cjs/components/EditableTable/cellTypes/email/View.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/number/Edit.st.css.js +3 -3
- package/dist/cjs/components/EditableTable/cellTypes/number/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/number/View.st.css.js +3 -3
- package/dist/cjs/components/EditableTable/cellTypes/number/View.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/object/Edit.st.css.js +3 -3
- package/dist/cjs/components/EditableTable/cellTypes/object/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/object/View.st.css.js +2 -2
- package/dist/cjs/components/EditableTable/cellTypes/object/View.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/select/Edit.st.css.js +3 -3
- package/dist/cjs/components/EditableTable/cellTypes/select/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/text/Edit.st.css.js +4 -4
- package/dist/cjs/components/EditableTable/cellTypes/text/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/text/View.st.css.js +2 -2
- package/dist/cjs/components/EditableTable/cellTypes/text/View.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/time/Edit.st.css.js +4 -4
- package/dist/cjs/components/EditableTable/cellTypes/time/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/url/Edit.st.css.js +3 -3
- package/dist/cjs/components/EditableTable/cellTypes/url/Edit.st.css.js.map +1 -1
- package/dist/cjs/components/EditableTable/cellTypes/url/View.st.css.js +5 -5
- package/dist/cjs/components/EditableTable/cellTypes/url/View.st.css.js.map +1 -1
- package/dist/cjs/components/EmptyState/EmptyStateBase.st.css.js +2 -2
- package/dist/cjs/components/EmptyState/EmptyStateBase.st.css.js.map +1 -1
- package/dist/cjs/components/EntityPage/EntityPagePlain.st.css.js +2 -2
- package/dist/cjs/components/EntityPage/EntityPagePlain.st.css.js.map +1 -1
- package/dist/cjs/components/Fade/Fade.st.css.js +2 -2
- package/dist/cjs/components/Fade/Fade.st.css.js.map +1 -1
- package/dist/cjs/components/Heading/Heading.st.css.js +2 -2
- package/dist/cjs/components/Heading/Heading.st.css.js.map +1 -1
- package/dist/cjs/components/ImportButton/ImportStepUpload.st.css.js +3 -3
- package/dist/cjs/components/ImportButton/ImportStepUpload.st.css.js.map +1 -1
- package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js +2 -2
- package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
- package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js +3 -3
- package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js.map +1 -1
- package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
- package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
- package/dist/cjs/components/MaxLines/MaxLines.st.css.js +2 -2
- package/dist/cjs/components/MaxLines/MaxLines.st.css.js.map +1 -1
- package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +5 -5
- package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
- package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js +5 -5
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
- package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js.map +1 -1
- package/dist/cjs/components/PickerContent/PickerContent.st.css.js +2 -2
- package/dist/cjs/components/PickerContent/PickerContent.st.css.js.map +1 -1
- package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js +4 -4
- package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
- package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
- package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
- package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
- package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
- package/dist/cjs/components/SetupWidget/SetupWidget.st.css.js +10 -10
- package/dist/cjs/components/SetupWidget/SetupWidget.st.css.js.map +1 -1
- package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js +3 -3
- package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
- package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js +2 -2
- package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
- package/dist/cjs/components/Table/AddFieldColumnHeader.st.css.js +4 -4
- package/dist/cjs/components/Table/AddFieldColumnHeader.st.css.js.map +1 -1
- package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js +3 -3
- package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js.map +1 -1
- package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
- package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js.map +1 -1
- package/dist/cjs/components/ToolbarItem/ToolbarItem.st.css.js +2 -2
- package/dist/cjs/components/ToolbarItem/ToolbarItem.st.css.js.map +1 -1
- package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
- package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js.map +1 -1
- package/dist/cjs/components/common.st.css.js +4 -4
- package/dist/cjs/components/common.st.css.js.map +1 -1
- package/dist/cjs/schema/entityPageFieldManagement.js +3 -1
- package/dist/cjs/schema/entityPageFieldManagement.js.map +1 -1
- package/dist/cjs/state/CollectionFieldsSourceState.js +3 -1
- package/dist/cjs/state/CollectionFieldsSourceState.js.map +1 -1
- package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
- package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css.js.map +1 -1
- package/dist/cjs/state/CustomFields/CustomFieldsPanelState.js +3 -0
- package/dist/cjs/state/CustomFields/CustomFieldsPanelState.js.map +1 -1
- package/dist/cjs/state/FormPage/FormPageHeader.st.css.js +2 -2
- package/dist/cjs/state/FormPage/FormPageHeader.st.css.js.map +1 -1
- package/dist/cjs/state/ManageFieldsSource.js.map +1 -1
- package/dist/cjs/state/ToolbarCollectionState.js +6 -2
- package/dist/cjs/state/ToolbarCollectionState.js.map +1 -1
- package/dist/cjs/styles.global.css +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/docs/ActionCellProps.md +6 -21
- package/dist/docs/AutoCompleteFilter.md +6 -128
- package/dist/docs/BulkActionModalRenderProp.md +6 -9
- package/dist/docs/CollectionEmptyState/2-ctas.tsx +67 -0
- package/dist/docs/CollectionEmptyState/demo.tsx +61 -0
- package/dist/docs/CollectionEmptyState/passive-empty-state.tsx +59 -0
- package/dist/docs/CollectionEmptyState.md +9 -207
- package/dist/docs/CollectionNoResultsState.md +6 -11
- package/dist/docs/CollectionOptimisticActions/create-many.tsx +110 -0
- package/dist/docs/CollectionOptimisticActions/create-one.tsx +104 -0
- package/dist/docs/CollectionOptimisticActions/delete-all.tsx +132 -0
- package/dist/docs/CollectionOptimisticActions/delete-many.tsx +104 -0
- package/dist/docs/CollectionOptimisticActions/delete-one.tsx +94 -0
- package/dist/docs/CollectionOptimisticActions/update-all.tsx +142 -0
- package/dist/docs/CollectionOptimisticActions/update-many.tsx +119 -0
- package/dist/docs/CollectionOptimisticActions/update-one.tsx +108 -0
- package/dist/docs/CollectionOptimisticActions.md +14 -939
- package/dist/docs/CollectionPage.md +6 -19
- package/dist/docs/CollectionPremiumEmptyState.md +6 -14
- package/dist/docs/CollectionSearch/default.tsx +57 -0
- package/dist/docs/CollectionSearch/max-length.tsx +59 -0
- package/dist/docs/CollectionSearch/placeholder.tsx +59 -0
- package/dist/docs/CollectionSearch/search-highlighting.tsx +60 -0
- package/dist/docs/CollectionSearch.md +10 -247
- package/dist/docs/ComputedQuery.md +6 -15
- package/dist/docs/CustomColumns/add-a-tooltip.tsx +85 -0
- package/dist/docs/CustomColumns/basic.tsx +78 -0
- package/dist/docs/CustomColumns/exclude-columns.tsx +79 -0
- package/dist/docs/CustomColumns/freeze-column-reorder.tsx +111 -0
- package/dist/docs/CustomColumns/get-visible-columns.tsx +92 -0
- package/dist/docs/CustomColumns/hide-specific-columns-by-default.tsx +79 -0
- package/dist/docs/CustomColumns/load-only-selected-columns.tsx +85 -0
- package/dist/docs/CustomColumns/lock-columns.tsx +80 -0
- package/dist/docs/CustomColumns/reorder-columns.tsx +84 -0
- package/dist/docs/CustomColumns.md +9 -791
- package/dist/docs/CustomFieldType/add-field-modal.tsx +206 -0
- package/dist/docs/CustomFieldType/editable-cell.tsx +206 -0
- package/dist/docs/CustomFieldType/entity-page-form.tsx +133 -0
- package/dist/docs/CustomFieldType/table-cell-and-filter.tsx +165 -0
- package/dist/docs/CustomFieldType.md +4 -718
- package/dist/docs/CustomFieldsWidget/basic.tsx +53 -0
- package/dist/docs/CustomFieldsWidget/controllable-state.tsx +78 -0
- package/dist/docs/CustomFieldsWidget/empty-state.tsx +20 -0
- package/dist/docs/CustomFieldsWidget/inline-theme.tsx +54 -0
- package/dist/docs/CustomFieldsWidget/responsive.tsx +44 -0
- package/dist/docs/CustomFieldsWidget/with-tpa-fields.tsx +57 -0
- package/dist/docs/CustomFieldsWidget/without-entity-page.tsx +42 -0
- package/dist/docs/CustomFieldsWidget.md +7 -362
- package/dist/docs/DateRangeFilter.Components.md +6 -71
- package/dist/docs/EntityPage/2-columns.tsx +72 -0
- package/dist/docs/EntityPage/basic.tsx +72 -0
- package/dist/docs/EntityPage/delete-action.tsx +77 -0
- package/dist/docs/EntityPage/delete-error-handling.tsx +65 -0
- package/dist/docs/EntityPage/demo.tsx +212 -0
- package/dist/docs/EntityPage/error-on-fetch.tsx +68 -0
- package/dist/docs/EntityPage/error-on-save.tsx +59 -0
- package/dist/docs/EntityPage/input-initialization-with-controller.tsx +96 -0
- package/dist/docs/EntityPage/input-initialization-with-usecontroller.tsx +99 -0
- package/dist/docs/EntityPage/loading.tsx +107 -0
- package/dist/docs/EntityPage/overriding-save-button-text.tsx +75 -0
- package/dist/docs/EntityPage.md +17 -1045
- package/dist/docs/ExportTo/cta-is-out-of-the-table.tsx +157 -0
- package/dist/docs/ExportTo/export-all-table.tsx +144 -0
- package/dist/docs/ExportTo/export-filtered-table.tsx +148 -0
- package/dist/docs/ExportTo/export-table-with-selection-bulk-selection.tsx +203 -0
- package/dist/docs/ExportTo.md +10 -674
- package/dist/docs/Filter Overview/interactive-example.tsx +211 -0
- package/dist/docs/Filter Overview.md +1 -213
- package/dist/docs/FilterProps.md +6 -13
- package/dist/docs/Grid/card-with-a-cta-that-opens-a-modal.tsx +103 -0
- package/dist/docs/Grid/card-with-a-cta-that-opens-a-popup.tsx +91 -0
- package/dist/docs/Grid/demo.tsx +73 -0
- package/dist/docs/Grid/grid-sections.tsx +62 -0
- package/dist/docs/Grid/grid-with-a-reduced-width.tsx +72 -0
- package/dist/docs/Grid/use-the-preset-prop.tsx +55 -0
- package/dist/docs/Grid.md +12 -509
- package/dist/docs/GridFolders.md +6 -45
- package/dist/docs/GridFoldersState.md +6 -3
- package/dist/docs/GridState.md +6 -5
- package/dist/docs/ImportButton/backup-error-handling.tsx +80 -0
- package/dist/docs/ImportButton/cms-import.tsx +38 -0
- package/dist/docs/ImportButton/create-new-field.tsx +40 -0
- package/dist/docs/ImportButton/platformized-import-fields-inline.tsx +65 -0
- package/dist/docs/ImportButton/platformized-import-from-a-source.tsx +50 -0
- package/dist/docs/ImportButton/required-fields.tsx +65 -0
- package/dist/docs/ImportButton/update-or-skip-by-id.tsx +40 -0
- package/dist/docs/ImportButton.md +7 -392
- package/dist/docs/Indeterminate/all-indeterminate.tsx +127 -0
- package/dist/docs/Indeterminate/items-indeterminate-status.tsx +126 -0
- package/dist/docs/Indeterminate.md +2 -257
- package/dist/docs/Internal Scroll/full-width-section.tsx +96 -0
- package/dist/docs/Internal Scroll/narrow-side-section.tsx +82 -0
- package/dist/docs/Internal Scroll.md +2 -182
- package/dist/docs/More Actions/collection-page-2.tsx +98 -0
- package/dist/docs/More Actions/collection-page.tsx +97 -0
- package/dist/docs/More Actions/explore-related-apps.tsx +129 -0
- package/dist/docs/More Actions/featured-more-actions-custom-position.tsx +116 -0
- package/dist/docs/More Actions/featured-more-actions-opt-out.tsx +86 -0
- package/dist/docs/More Actions/featured-more-actions.tsx +82 -0
- package/dist/docs/More Actions/integrate-with-extension.tsx +100 -0
- package/dist/docs/More Actions/more-actions-in-the-toolbar.tsx +96 -0
- package/dist/docs/More Actions/more-actions-with-a-divider.tsx +115 -0
- package/dist/docs/More Actions.md +9 -937
- package/dist/docs/MoreActionsItem.md +6 -16
- package/dist/docs/MultiAutoInlineCheckboxFilter.md +6 -879
- package/dist/docs/MultiBulkActionToolbar/basic-secondary-action.tsx +177 -0
- package/dist/docs/MultiBulkActionToolbar/bulk-action.tsx +169 -0
- package/dist/docs/MultiBulkActionToolbar/extend-menu-items.tsx +174 -0
- package/dist/docs/MultiBulkActionToolbar/maximum-selection.tsx +168 -0
- package/dist/docs/MultiBulkActionToolbar/popover-menu.tsx +123 -0
- package/dist/docs/MultiBulkActionToolbar/primary-secondary-actions-with-a-divider.tsx +218 -0
- package/dist/docs/MultiBulkActionToolbar.md +12 -1048
- package/dist/docs/MultiInlineCheckboxFilter.md +6 -878
- package/dist/docs/MultiLevelSorting/basic-multi-level-sorting.tsx +93 -0
- package/dist/docs/MultiLevelSorting/multi-level-sorting-with-custom-sort-order.tsx +100 -0
- package/dist/docs/MultiLevelSorting/multi-level-sorting-with-defined-sort-directions.tsx +96 -0
- package/dist/docs/MultiLevelSorting.md +9 -301
- package/dist/docs/MultiSelectCheckboxFilter.md +6 -133
- package/dist/docs/MultiSelectCollectionFilter.md +6 -138
- package/dist/docs/NestedTable/drag-and-drop.tsx +107 -0
- package/dist/docs/NestedTable/filters.tsx +192 -0
- package/dist/docs/NestedTable/flat-mode-search.tsx +92 -0
- package/dist/docs/NestedTable/node-api-usage.tsx +188 -0
- package/dist/docs/NestedTable/single-entity.tsx +85 -0
- package/dist/docs/NestedTable/various-entities.tsx +138 -0
- package/dist/docs/NestedTable.md +6 -814
- package/dist/docs/NumberRangeFilter.md +6 -13
- package/dist/docs/OperatorFilterPicker.md +6 -13
- package/dist/docs/PatternsReactRoute.md +6 -7
- package/dist/docs/PatternsReactRouter.md +9 -0
- package/dist/docs/PickerModal/multi-select.tsx +97 -0
- package/dist/docs/PickerModal/pre-selected-item.tsx +120 -0
- package/dist/docs/PickerModal/search-override.tsx +99 -0
- package/dist/docs/PickerModal/single-selection.tsx +98 -0
- package/dist/docs/PickerModal/with-filter-dropdown.tsx +139 -0
- package/dist/docs/PickerModal.md +11 -605
- package/dist/docs/PickerStandalone/basic.tsx +49 -0
- package/dist/docs/PickerStandalone/createnew.tsx +65 -0
- package/dist/docs/PickerStandalone/custom-empty-state.tsx +33 -0
- package/dist/docs/PickerStandalone/custom-items.tsx +78 -0
- package/dist/docs/PickerStandalone.md +4 -233
- package/dist/docs/PrimaryActionButton.md +6 -71
- package/dist/docs/PrimaryActions.md +6 -14
- package/dist/docs/PrimaryPageButton.md +6 -69
- package/dist/docs/RadioGroupFilter.md +6 -19
- package/dist/docs/SecondaryActions.md +6 -14
- package/dist/docs/SettingsPage/2-columns.tsx +70 -0
- package/dist/docs/SettingsPage/basic.tsx +66 -0
- package/dist/docs/SettingsPage/error-on-fetch.tsx +65 -0
- package/dist/docs/SettingsPage/error-on-save.tsx +59 -0
- package/dist/docs/SettingsPage/input-initialization-with-controller.tsx +89 -0
- package/dist/docs/SettingsPage/input-initialization-with-usecontroller.tsx +92 -0
- package/dist/docs/SettingsPage/loading.tsx +99 -0
- package/dist/docs/SettingsPage.md +13 -574
- package/dist/docs/SingleSelectFilter/custom-render-items.tsx +57 -0
- package/dist/docs/SingleSelectFilter/empty-state.tsx +33 -0
- package/dist/docs/SingleSelectFilter/sections.tsx +69 -0
- package/dist/docs/SingleSelectFilter/server-data.tsx +53 -0
- package/dist/docs/SingleSelectFilter/static-data.tsx +25 -0
- package/dist/docs/SingleSelectFilter.md +11 -374
- package/dist/docs/Sortable Columns/basic-sortable-column.tsx +90 -0
- package/dist/docs/Sortable Columns/custom-sort-order.tsx +94 -0
- package/dist/docs/Sortable Columns.md +2 -188
- package/dist/docs/Suggestions/carousel-customization.tsx +27 -0
- package/dist/docs/Suggestions/carousel-vs-container-layout.tsx +40 -0
- package/dist/docs/Suggestions/custom-card-rendering.tsx +99 -0
- package/dist/docs/Suggestions/with-transform-function.tsx +56 -0
- package/dist/docs/Suggestions.md +4 -230
- package/dist/docs/SummaryBar/error.tsx +75 -0
- package/dist/docs/SummaryBar/loading-with-error.tsx +96 -0
- package/dist/docs/SummaryBar/loading-with-success.tsx +105 -0
- package/dist/docs/SummaryBar/loading.tsx +73 -0
- package/dist/docs/SummaryBar/success.tsx +73 -0
- package/dist/docs/SummaryBar.md +11 -437
- package/dist/docs/Table/basic-table.tsx +74 -0
- package/dist/docs/Table/cursor-pagination.tsx +61 -0
- package/dist/docs/Table/fetch-total-async.tsx +83 -0
- package/dist/docs/Table/filters.tsx +152 -0
- package/dist/docs/Table/header.tsx +85 -0
- package/dist/docs/Table/horizontal-scroll.tsx +90 -0
- package/dist/docs/Table/table-disabled-rows.tsx +99 -0
- package/dist/docs/Table/using-ambassador.tsx +72 -0
- package/dist/docs/Table/using-with-external-data-source.tsx +79 -0
- package/dist/docs/Table/virtual.tsx +77 -0
- package/dist/docs/Table Sections/demo.tsx +96 -0
- package/dist/docs/Table Sections/with-badge.tsx +107 -0
- package/dist/docs/Table Sections/with-collapse.tsx +104 -0
- package/dist/docs/Table Sections/with-summary.tsx +118 -0
- package/dist/docs/Table Sections.md +4 -433
- package/dist/docs/Table.md +16 -961
- package/dist/docs/TableColumn.md +6 -21
- package/dist/docs/TableDragAndDrop/save-order-mode.tsx +85 -0
- package/dist/docs/TableDragAndDrop/specific-filters.tsx +135 -0
- package/dist/docs/TableDragAndDrop/specific-tabs.tsx +117 -0
- package/dist/docs/TableDragAndDrop/table.tsx +83 -0
- package/dist/docs/TableDragAndDrop.md +4 -428
- package/dist/docs/TableFolders/demo.tsx +101 -0
- package/dist/docs/TableFolders/table-folders.tsx +101 -0
- package/dist/docs/TableFolders/with-tags.tsx +124 -0
- package/dist/docs/TableFolders.md +9 -391
- package/dist/docs/TableFoldersState.md +6 -5
- package/dist/docs/TableGridSwitch/basic-table-grid-switch.tsx +91 -0
- package/dist/docs/TableGridSwitch/custom-columns.tsx +94 -0
- package/dist/docs/TableGridSwitch.md +8 -255
- package/dist/docs/TableGridSwitchFolders/demo.tsx +103 -0
- package/dist/docs/TableGridSwitchFolders/tablegridswitchfolders.tsx +103 -0
- package/dist/docs/TableGridSwitchFolders/with-tags.tsx +124 -0
- package/dist/docs/TableGridSwitchFolders.md +3 -336
- package/dist/docs/TableGridSwitchState.md +6 -6
- package/dist/docs/TableState.md +6 -7
- package/dist/docs/TableTopNotification/base.tsx +92 -0
- package/dist/docs/TableTopNotification/nested-table.tsx +114 -0
- package/dist/docs/TableTopNotification.md +8 -235
- package/dist/docs/TabsFilter/basic-tabs.tsx +96 -0
- package/dist/docs/TabsFilter/disabled-tabs.tsx +100 -0
- package/dist/docs/TabsFilter/tabs-with-a-basic-counter.tsx +149 -0
- package/dist/docs/TabsFilter/tabs-with-a-counter-badge.tsx +153 -0
- package/dist/docs/TabsFilter.md +10 -515
- package/dist/docs/Tags/basic.tsx +90 -0
- package/dist/docs/Tags/custom-config-for-tags-column.tsx +95 -0
- package/dist/docs/Tags/customized-filter-position.tsx +121 -0
- package/dist/docs/Tags/customized-tags-column-position.tsx +94 -0
- package/dist/docs/Tags/on-table-with-folders.tsx +124 -0
- package/dist/docs/Tags.md +5 -534
- package/dist/docs/ToolbarCollectionState.md +1 -1
- package/dist/docs/ToolbarFilters/2-filters-with-a-title.tsx +162 -0
- package/dist/docs/ToolbarFilters/2-filters-without-a-title.tsx +158 -0
- package/dist/docs/ToolbarFilters/add-filter-presets-for-future-dates.tsx +108 -0
- package/dist/docs/ToolbarFilters/apply-changes.tsx +167 -0
- package/dist/docs/ToolbarFilters/custom-label-for-tags.tsx +167 -0
- package/dist/docs/ToolbarFilters/customize-filter-display-tags.tsx +163 -0
- package/dist/docs/ToolbarFilters/mini-toolbar-with-filters.tsx +121 -0
- package/dist/docs/ToolbarFilters/mini-toolbar.tsx +80 -0
- package/dist/docs/ToolbarFilters/more-than-2-filters.tsx +164 -0
- package/dist/docs/ToolbarFilters/postpone-collection-filter-initial-fetch.tsx +158 -0
- package/dist/docs/ToolbarFilters.md +17 -1466
- package/dist/docs/ToolbarSecondaryActions/grouped-actions-with-dividers.tsx +91 -0
- package/dist/docs/ToolbarSecondaryActions/mixed-buttons-and-dropdown-menus.tsx +80 -0
- package/dist/docs/ToolbarSecondaryActions/multiple-actions-with-dropdown-menus.tsx +88 -0
- package/dist/docs/ToolbarSecondaryActions/multiple-secondary-action-buttons.tsx +73 -0
- package/dist/docs/ToolbarSecondaryActions.md +4 -340
- package/dist/docs/ToolbarTitle/title-and-count.tsx +60 -0
- package/dist/docs/ToolbarTitle/title-count-and-the-collection-s-item-limit.tsx +60 -0
- package/dist/docs/ToolbarTitle/title-subtitle-and-learn-more.tsx +68 -0
- package/dist/docs/ToolbarTitle/title.tsx +60 -0
- package/dist/docs/ToolbarTitle.md +4 -256
- package/dist/docs/Views/basic-view-that-can-be-chosen.tsx +142 -0
- package/dist/docs/Views/basic-view.tsx +134 -0
- package/dist/docs/Views/view-with-selected-columns.tsx +142 -0
- package/dist/docs/Views/views-separated-by-category-in-the-dropdown.tsx +209 -0
- package/dist/docs/Views.md +4 -635
- package/dist/docs/WidgetsFormProvider.md +9 -0
- package/dist/docs/WixPatternsBMProvider.md +9 -0
- package/dist/docs/WixPatternsBaseProvider.md +6 -3
- package/dist/docs/WixPatternsEssentialsProvider.md +9 -0
- package/dist/docs/WixPatternsGizaProvider.md +9 -0
- package/dist/docs/WixPatternsProvider.md +9 -0
- package/dist/docs/arrayFilter.md +6 -12
- package/dist/docs/customFilter.md +6 -19
- package/dist/docs/dateRangeFilter.Factories.md +6 -13
- package/dist/docs/deleteSecondaryAction.md +6 -13
- package/dist/docs/idNameArrayFilter.md +6 -12
- package/dist/docs/index.json +170 -96
- package/dist/docs/operatorFilter.md +6 -13
- package/dist/docs/stringFilter.md +6 -4
- package/dist/docs/stringsArrayFilter.md +6 -12
- package/dist/docs/useCreateCollection.md +6 -19
- package/dist/docs/useEntityPage.md +6 -13
- package/dist/docs/useFilterCollection.md +6 -13
- package/dist/docs/useGridCollection.md +6 -19
- package/dist/docs/useGridFolders.md +6 -4
- package/dist/docs/useOptimisticActions/custom-error-handling.tsx +178 -0
- package/dist/docs/useOptimisticActions/default-behaviour.tsx +155 -0
- package/dist/docs/useOptimisticActions/error-handling-and-retries.tsx +175 -0
- package/dist/docs/useOptimisticActions/items-orders.tsx +165 -0
- package/dist/docs/useOptimisticActions/revision-handling.tsx +109 -0
- package/dist/docs/useOptimisticActions/success-toast-with-undo.tsx +164 -0
- package/dist/docs/useOptimisticActions/update-with-query.tsx +195 -0
- package/dist/docs/useOptimisticActions.md +13 -1164
- package/dist/docs/usePatternsNavigate.md +11 -0
- package/dist/docs/usePickerModal.md +6 -16
- package/dist/docs/useStaticListFilterCollection.md +6 -4
- package/dist/docs/useTableCollection.md +6 -19
- package/dist/docs/useTableFolders.md +6 -4
- package/dist/docs/useTableGridSwitchCollection.md +6 -19
- package/dist/esm/components/CardContainer/CardContainer.st.css.js +2 -2
- package/dist/esm/components/CmsFieldManagement/CmsFieldForm.st.css.js +2 -2
- package/dist/esm/components/CmsFieldManagement/CmsFieldModal.st.css.js +2 -2
- package/dist/esm/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.js +2 -2
- package/dist/esm/components/Collapse/Collapse.st.css.js +2 -2
- package/dist/esm/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js +2 -2
- package/dist/esm/components/CollectionTable/CollectionTable.st.css.js +2 -2
- package/dist/esm/components/CollectionTable/CollectionTableWSRTable.st.css.js +2 -2
- package/dist/esm/components/CollectionTable/CollectionTableWSRTable.st.css.js.map +1 -1
- package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js +2 -2
- package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +2 -2
- package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
- package/dist/esm/components/CustomFieldModal/CustomFieldForm.js +4 -3
- package/dist/esm/components/CustomFieldModal/CustomFieldForm.js.map +1 -1
- package/dist/esm/components/CustomFieldModal/CustomFieldTypeDropdown.js +2 -2
- package/dist/esm/components/CustomFieldModal/CustomFieldTypeDropdown.js.map +1 -1
- package/dist/esm/components/DragHandle/DragHandle.st.css.js +2 -2
- package/dist/esm/components/EditableTable/EditableCell.st.css.js +2 -2
- package/dist/esm/components/EditableTable/HeaderActionsPopover.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/CellViewLayout.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/address/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/array/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/boolean/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/boolean/View.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/boolean/View.st.css.js.map +1 -1
- package/dist/esm/components/EditableTable/cellTypes/color/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/date/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/date/Edit.st.css.js.map +1 -1
- package/dist/esm/components/EditableTable/cellTypes/date/View.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/datetime/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/datetime/Edit.st.css.js.map +1 -1
- package/dist/esm/components/EditableTable/cellTypes/datetime/View.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/email/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/email/View.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/email/View.st.css.js.map +1 -1
- package/dist/esm/components/EditableTable/cellTypes/number/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/number/Edit.st.css.js.map +1 -1
- package/dist/esm/components/EditableTable/cellTypes/number/View.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/number/View.st.css.js.map +1 -1
- package/dist/esm/components/EditableTable/cellTypes/object/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/object/View.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/select/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/text/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/text/View.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/time/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/url/Edit.st.css.js +2 -2
- package/dist/esm/components/EditableTable/cellTypes/url/Edit.st.css.js.map +1 -1
- package/dist/esm/components/EditableTable/cellTypes/url/View.st.css.js +2 -2
- package/dist/esm/components/EmptyState/EmptyStateBase.st.css.js +2 -2
- package/dist/esm/components/EntityPage/EntityPagePlain.st.css.js +2 -2
- package/dist/esm/components/Fade/Fade.st.css.js +2 -2
- package/dist/esm/components/Heading/Heading.st.css.js +2 -2
- package/dist/esm/components/ImportButton/ImportStepUpload.st.css.js +2 -2
- package/dist/esm/components/ImportButton/ImportStepUpload.st.css.js.map +1 -1
- package/dist/esm/components/InputOverflow/InputOverflow.st.css.js +2 -2
- package/dist/esm/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
- package/dist/esm/components/LoadingRow/LoadingRow.st.css.js +3 -3
- package/dist/esm/components/LoadingRow/LoadingRow.st.css.js.map +1 -1
- package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
- package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
- package/dist/esm/components/MaxLines/MaxLines.st.css.js +2 -2
- package/dist/esm/components/MaxLines/MaxLines.st.css.js.map +1 -1
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTableRow.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
- package/dist/esm/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
- package/dist/esm/components/PickerContent/PickerContent.st.css.js +2 -2
- package/dist/esm/components/PickerContent/PickerContent.st.css.js.map +1 -1
- package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js +2 -2
- package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
- package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
- package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
- package/dist/esm/components/SetupWidget/SetupWidget.st.css.js +2 -2
- package/dist/esm/components/SetupWidget/SetupWidget.st.css.js.map +1 -1
- package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js +2 -2
- package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
- package/dist/esm/components/SlidingModal/SlidingModal.st.css.js +2 -2
- package/dist/esm/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
- package/dist/esm/components/Table/AddFieldColumnHeader.st.css.js +2 -2
- package/dist/esm/components/Table/AddFieldColumnHeader.st.css.js.map +1 -1
- package/dist/esm/components/TabsFilter/TabsFilter.st.css.js +2 -2
- package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
- package/dist/esm/components/ToolbarItem/ToolbarItem.st.css.js +2 -2
- package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
- package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js.map +1 -1
- package/dist/esm/components/common.st.css.js +2 -2
- package/dist/esm/schema/entityPageFieldManagement.js +2 -0
- package/dist/esm/schema/entityPageFieldManagement.js.map +1 -1
- package/dist/esm/state/CollectionFieldsSourceState.js +2 -0
- package/dist/esm/state/CollectionFieldsSourceState.js.map +1 -1
- package/dist/esm/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
- package/dist/esm/state/CustomFields/CustomFieldsPanelState.js +4 -0
- package/dist/esm/state/CustomFields/CustomFieldsPanelState.js.map +1 -1
- package/dist/esm/state/FormPage/FormPageHeader.st.css.js +2 -2
- package/dist/esm/state/ToolbarCollectionState.js +6 -2
- package/dist/esm/state/ToolbarCollectionState.js.map +1 -1
- package/dist/esm/styles.global.css +2 -2
- package/dist/esm/version.js +1 -1
- package/dist/types/components/CollectionTable/CollectionTableWSRTable.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/SearchOrCustomFilter.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.d.ts.map +1 -1
- package/dist/types/components/CustomFieldModal/CustomFieldForm.d.ts.map +1 -1
- package/dist/types/components/CustomFieldModal/CustomFieldTypeDropdown.d.ts.map +1 -1
- package/dist/types/components/EditableTable/cellTypes/boolean/View.st.css.d.ts.map +1 -1
- package/dist/types/components/EditableTable/cellTypes/date/Edit.st.css.d.ts.map +1 -1
- package/dist/types/components/EditableTable/cellTypes/datetime/Edit.st.css.d.ts.map +1 -1
- package/dist/types/components/EditableTable/cellTypes/email/View.st.css.d.ts.map +1 -1
- package/dist/types/components/EditableTable/cellTypes/number/Edit.st.css.d.ts.map +1 -1
- package/dist/types/components/EditableTable/cellTypes/number/View.st.css.d.ts.map +1 -1
- package/dist/types/components/EditableTable/cellTypes/url/Edit.st.css.d.ts.map +1 -1
- package/dist/types/components/ImportButton/ImportStepUpload.st.css.d.ts.map +1 -1
- package/dist/types/components/InputOverflow/InputOverflow.st.css.d.ts.map +1 -1
- package/dist/types/components/LoadingRow/LoadingRow.st.css.d.ts.map +1 -1
- package/dist/types/components/MaxHeightText/MaxHeightText.st.css.d.ts.map +1 -1
- package/dist/types/components/MaxLines/MaxLines.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTableRow.st.css.d.ts.map +1 -1
- package/dist/types/components/PickerContent/PickerContent.st.css.d.ts.map +1 -1
- package/dist/types/components/PickerTableListItem/PickerTableListItem.st.css.d.ts.map +1 -1
- package/dist/types/components/SetupWidget/SetupWidget.st.css.d.ts.map +1 -1
- package/dist/types/components/SkeletonCard/SkeletonCard.st.css.d.ts.map +1 -1
- package/dist/types/components/SlidingModal/SlidingModal.st.css.d.ts.map +1 -1
- package/dist/types/components/Table/AddFieldColumnHeader.st.css.d.ts.map +1 -1
- package/dist/types/components/ToolbarItemBox/ToolbarItemBox.st.css.d.ts.map +1 -1
- package/dist/types/schema/entityPageFieldManagement.d.ts.map +1 -1
- package/dist/types/state/CollectionFieldsSourceState.d.ts +2 -6
- package/dist/types/state/CollectionFieldsSourceState.d.ts.map +1 -1
- package/dist/types/state/CustomFields/CustomFieldsPanelState.d.ts +2 -4
- package/dist/types/state/CustomFields/CustomFieldsPanelState.d.ts.map +1 -1
- package/dist/types/state/ManageFieldsSource.d.ts +2 -6
- package/dist/types/state/ManageFieldsSource.d.ts.map +1 -1
- package/dist/types/state/ToolbarCollectionState.d.ts +2 -4
- package/dist/types/state/ToolbarCollectionState.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +7 -7
- package/src/components/CardContainer/CardContainer.st.css.ts +2 -2
- package/src/components/CmsFieldManagement/CmsFieldForm.st.css.ts +2 -2
- package/src/components/CmsFieldManagement/CmsFieldModal.st.css.ts +2 -2
- package/src/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.ts +2 -2
- package/src/components/Collapse/Collapse.st.css.ts +2 -2
- package/src/components/CollectionPageNew/CollectionPage.st.css.ts +2 -2
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.st.css.ts +2 -2
- package/src/components/CollectionTable/CollectionTable.st.css.ts +2 -2
- package/src/components/CollectionTable/CollectionTableWSRTable.st.css.ts +2 -2
- package/src/components/CollectionToolbar/CollectionToolbar.st.css.ts +2 -2
- package/src/components/CollectionToolbar/SearchOrCustomFilter.st.css.ts +2 -2
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.ts +2 -2
- package/src/components/CollectionViewsDropdown/ViewsDropdown.st.css.ts +2 -2
- package/src/components/CustomFieldModal/CustomFieldForm.tsx +7 -2
- package/src/components/CustomFieldModal/CustomFieldTypeDropdown.tsx +3 -1
- package/src/components/DragHandle/DragHandle.st.css.ts +2 -2
- package/src/components/EditableTable/EditableCell.st.css.ts +2 -2
- package/src/components/EditableTable/HeaderActionsPopover.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/CellViewLayout.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/address/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/array/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/boolean/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/boolean/View.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/color/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/date/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/date/View.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/datetime/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/datetime/View.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/email/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/email/View.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/number/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/number/View.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/object/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/object/View.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/select/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/text/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/text/View.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/time/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/url/Edit.st.css.ts +2 -2
- package/src/components/EditableTable/cellTypes/url/View.st.css.ts +2 -2
- package/src/components/EmptyState/EmptyStateBase.st.css.ts +2 -2
- package/src/components/EntityPage/EntityPagePlain.st.css.ts +2 -2
- package/src/components/Fade/Fade.st.css.ts +2 -2
- package/src/components/Heading/Heading.st.css.ts +2 -2
- package/src/components/ImportButton/ImportStepUpload.st.css.ts +2 -2
- package/src/components/InputOverflow/InputOverflow.st.css.ts +2 -2
- package/src/components/LoadingRow/LoadingRow.st.css.ts +3 -3
- package/src/components/MaxHeightText/MaxHeightText.st.css.ts +2 -2
- package/src/components/MaxLines/MaxLines.st.css.ts +2 -2
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.ts +2 -2
- package/src/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.ts +2 -2
- package/src/components/NestedTable/NestedTableRow.st.css.ts +2 -2
- package/src/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.ts +2 -2
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.ts +2 -2
- package/src/components/PickerContent/PickerContent.st.css.ts +2 -2
- package/src/components/PickerContent/PickerContentAdditionalStep.st.css.ts +2 -2
- package/src/components/PickerTableListItem/PickerTableListItem.st.css.ts +2 -2
- package/src/components/ScrollableContent/ScrollableContent.st.css.ts +2 -2
- package/src/components/SetupWidget/SetupWidget.st.css.ts +2 -2
- package/src/components/SkeletonCard/SkeletonCard.st.css.ts +2 -2
- package/src/components/SlidingModal/SlidingModal.st.css.ts +2 -2
- package/src/components/Table/AddFieldColumnHeader.st.css.ts +2 -2
- package/src/components/TabsFilter/TabsFilter.st.css.ts +2 -2
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.ts +2 -2
- package/src/components/ToolbarItem/ToolbarItem.st.css.ts +2 -2
- package/src/components/ToolbarItemBox/ToolbarItemBox.st.css.ts +2 -2
- package/src/components/common.st.css.ts +2 -2
- package/src/schema/entityPageFieldManagement.ts +2 -0
- package/src/state/CollectionFieldsSourceState.ts +4 -5
- package/src/state/CollectionPage/CollectionPageHeader.st.css.ts +2 -2
- package/src/state/CustomFields/CustomFieldsPanelState.ts +9 -5
- package/src/state/FormPage/FormPageHeader.st.css.ts +2 -2
- package/src/state/ManageFieldsSource.ts +2 -6
- package/src/state/ToolbarCollectionState.ts +14 -2
- package/src/styles.global.css +2 -2
- package/src/version.ts +1 -1
package/dist/docs/Grid.md
CHANGED
|
@@ -22,81 +22,7 @@ import { Grid, useGridCollection } from '@wix/patterns';
|
|
|
22
22
|
|
|
23
23
|
### Demo
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
import React from 'react';
|
|
27
|
-
import { CollectionPage } from '@wix/patterns/page';
|
|
28
|
-
import { Grid, ToolbarTitle, useGridCollection } from '@wix/patterns';
|
|
29
|
-
import { Text } from '@wix/design-system';
|
|
30
|
-
import { Delete } from '@wix/wix-ui-icons-common';
|
|
31
|
-
import { contacts } from '@wix/crm';
|
|
32
|
-
|
|
33
|
-
function Demo() {
|
|
34
|
-
|
|
35
|
-
const grid = useGridCollection<contacts.Contact>({
|
|
36
|
-
queryName: 'contacts-Demo',
|
|
37
|
-
paginationMode: 'offset',
|
|
38
|
-
itemName: (item) => `${item.info?.name?.first} ${item.info?.name?.last}`,
|
|
39
|
-
fetchData: (query) => {
|
|
40
|
-
const { limit, offset, search } = query;
|
|
41
|
-
|
|
42
|
-
let queryBuilder = contacts.queryContacts().limit(limit).skip(offset);
|
|
43
|
-
|
|
44
|
-
if (search) {
|
|
45
|
-
queryBuilder = queryBuilder.startsWith('info.name.first', search);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return queryBuilder.find().then(({ items = [], totalCount: total }) => {
|
|
49
|
-
return {
|
|
50
|
-
items,
|
|
51
|
-
total,
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
},
|
|
55
|
-
fetchErrorMessage: ({ err }) => String(err),
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
return (
|
|
59
|
-
<CollectionPage height="400px">
|
|
60
|
-
<CollectionPage.Header title={{ text: 'Contacts' }} />
|
|
61
|
-
<CollectionPage.Content>
|
|
62
|
-
<Grid
|
|
63
|
-
title={<ToolbarTitle title="Contacts list" />}
|
|
64
|
-
state={grid}
|
|
65
|
-
renderItem={(item) => ({
|
|
66
|
-
primaryActionProps: { label: item.info?.jobTitle },
|
|
67
|
-
})}
|
|
68
|
-
actionCell={(item, index, api) => {
|
|
69
|
-
return {
|
|
70
|
-
primaryAction: {
|
|
71
|
-
text: 'Edit',
|
|
72
|
-
onClick: () => {},
|
|
73
|
-
},
|
|
74
|
-
secondaryActions: [
|
|
75
|
-
{
|
|
76
|
-
text: `Delete contact`,
|
|
77
|
-
icon: <Delete />,
|
|
78
|
-
onClick: () => {
|
|
79
|
-
api.openConfirmDeleteModal({
|
|
80
|
-
content: (
|
|
81
|
-
<Text>
|
|
82
|
-
Are you sure want to delete
|
|
83
|
-
<Text weight="bold">{`${item.info?.name?.first} ${item.info?.name?.last}`}</Text>{' '}
|
|
84
|
-
contact?
|
|
85
|
-
</Text>
|
|
86
|
-
),
|
|
87
|
-
primaryButtonOnClick: () => {},
|
|
88
|
-
});
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
};
|
|
93
|
-
}}
|
|
94
|
-
/>
|
|
95
|
-
</CollectionPage.Content>
|
|
96
|
-
</CollectionPage>
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
```
|
|
25
|
+
Example code: read `dist/docs/Grid/demo.tsx`
|
|
100
26
|
|
|
101
27
|
---
|
|
102
28
|
|
|
@@ -106,288 +32,19 @@ function Demo() {
|
|
|
106
32
|
|
|
107
33
|
This example utilizes the `<Grid>` `renderAddItem` prop and the `<AddItem>` `onClick()` prop to run a function that opens a modal.
|
|
108
34
|
|
|
109
|
-
|
|
110
|
-
import React from 'react';
|
|
111
|
-
import { CollectionPage } from '@wix/patterns/page';
|
|
112
|
-
import { Grid, useGridCollection } from '@wix/patterns';
|
|
113
|
-
import {
|
|
114
|
-
AddItem,
|
|
115
|
-
Box,
|
|
116
|
-
CustomModalLayout,
|
|
117
|
-
Input,
|
|
118
|
-
Loader,
|
|
119
|
-
Modal,
|
|
120
|
-
TextButton,
|
|
121
|
-
} from '@wix/design-system';
|
|
122
|
-
import { contacts } from '@wix/crm';
|
|
123
|
-
|
|
124
|
-
function AddItemCardWithModal() {
|
|
125
|
-
|
|
126
|
-
const grid = useGridCollection<contacts.Contact>({
|
|
127
|
-
queryName: 'contacts-AddItemCardWithModal',
|
|
128
|
-
paginationMode: 'offset',
|
|
129
|
-
itemName: (item) => `${item.info?.name?.first} ${item.info?.name?.last}`,
|
|
130
|
-
fetchData: (query) => {
|
|
131
|
-
const { limit, offset, search } = query;
|
|
132
|
-
|
|
133
|
-
let queryBuilder = contacts.queryContacts().limit(limit).skip(offset);
|
|
134
|
-
|
|
135
|
-
if (search) {
|
|
136
|
-
queryBuilder = queryBuilder.startsWith('info.name.first', search);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
return queryBuilder.find().then(({ items = [] }) => {
|
|
140
|
-
const limitedItems = items.slice(0, 4);
|
|
141
|
-
return {
|
|
142
|
-
items: limitedItems,
|
|
143
|
-
total: limitedItems.length,
|
|
144
|
-
};
|
|
145
|
-
});
|
|
146
|
-
},
|
|
147
|
-
fetchErrorMessage: ({ err }) => String(err),
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
const [isModalOpen, setIsModalOpen] = React.useState<boolean>(false);
|
|
151
|
-
const [submitted, setSubmitted] = React.useState(false);
|
|
152
|
-
const [contactName, setContactName] = React.useState('');
|
|
153
|
-
|
|
154
|
-
return (
|
|
155
|
-
<CollectionPage height="400px">
|
|
156
|
-
<CollectionPage.Header title={{ text: 'Contacts' }} />
|
|
157
|
-
<CollectionPage.Content>
|
|
158
|
-
<Grid
|
|
159
|
-
state={grid}
|
|
160
|
-
renderAddItem={() => (
|
|
161
|
-
<AddItem
|
|
162
|
-
size="medium"
|
|
163
|
-
onClick={() => {
|
|
164
|
-
setIsModalOpen(true);
|
|
165
|
-
}}
|
|
166
|
-
>
|
|
167
|
-
<TextButton>New Item</TextButton>
|
|
168
|
-
</AddItem>
|
|
169
|
-
)}
|
|
170
|
-
renderItem={(item) => ({
|
|
171
|
-
primaryActionProps: { label: item.info?.jobTitle },
|
|
172
|
-
})}
|
|
173
|
-
/>
|
|
174
|
-
|
|
175
|
-
<Modal isOpen={isModalOpen}>
|
|
176
|
-
<CustomModalLayout
|
|
177
|
-
title="Create New Contact"
|
|
178
|
-
primaryButtonText={submitted ? undefined : 'Save'}
|
|
179
|
-
primaryButtonProps={{
|
|
180
|
-
children: submitted && (
|
|
181
|
-
<Box align="center" verticalAlign="middle" position="relative">
|
|
182
|
-
<Box visibility="hidden">Save</Box>
|
|
183
|
-
<Box position="absolute">
|
|
184
|
-
<Loader size="tiny" />
|
|
185
|
-
</Box>
|
|
186
|
-
</Box>
|
|
187
|
-
),
|
|
188
|
-
}}
|
|
189
|
-
secondaryButtonText="Cancel"
|
|
190
|
-
primaryButtonOnClick={() => {
|
|
191
|
-
setSubmitted(true);
|
|
192
|
-
window.setTimeout(() => setIsModalOpen(false), 1000);
|
|
193
|
-
}}
|
|
194
|
-
onCloseButtonClick={() => {
|
|
195
|
-
setIsModalOpen(false);
|
|
196
|
-
}}
|
|
197
|
-
secondaryButtonOnClick={() => {
|
|
198
|
-
setIsModalOpen(false);
|
|
199
|
-
}}
|
|
200
|
-
overflowY="none"
|
|
201
|
-
>
|
|
202
|
-
<Input
|
|
203
|
-
placeholder="Contact Name"
|
|
204
|
-
value={contactName}
|
|
205
|
-
onChange={(e) => setContactName(e.target.value)}
|
|
206
|
-
/>
|
|
207
|
-
</CustomModalLayout>
|
|
208
|
-
</Modal>
|
|
209
|
-
</CollectionPage.Content>
|
|
210
|
-
</CollectionPage>
|
|
211
|
-
);
|
|
212
|
-
}
|
|
213
|
-
```
|
|
35
|
+
Example code: read `dist/docs/Grid/card-with-a-cta-that-opens-a-modal.tsx`
|
|
214
36
|
|
|
215
37
|
### Card with a CTA that opens a popup
|
|
216
38
|
|
|
217
39
|
This example utilizes the `<Grid>` `renderAddItem` prop and the `<AddItem>` `onClick()` prop to run a function that opens a popup.
|
|
218
40
|
|
|
219
|
-
|
|
220
|
-
import React from 'react';
|
|
221
|
-
import { AddItem, Box, Layout, Popover, TextButton } from '@wix/design-system';
|
|
222
|
-
import { CollectionPage } from '@wix/patterns/page';
|
|
223
|
-
import {
|
|
224
|
-
Grid,
|
|
225
|
-
stringsArrayFilter,
|
|
226
|
-
ToolbarTitle,
|
|
227
|
-
useGridCollection,
|
|
228
|
-
} from '@wix/patterns';
|
|
229
|
-
import { contacts } from '@wix/crm';
|
|
230
|
-
|
|
231
|
-
function AddItemCardWithPopoverMenu() {
|
|
232
|
-
|
|
233
|
-
const grid = useGridCollection<contacts.Contact>({
|
|
234
|
-
queryName: 'contacts-AddItemCardWithPopoverMenu',
|
|
235
|
-
paginationMode: 'offset',
|
|
236
|
-
itemName: (item) => `${item.info?.name?.first} ${item.info?.name?.last}`,
|
|
237
|
-
fetchData: (query) => {
|
|
238
|
-
const { limit, offset, search } = query;
|
|
239
|
-
|
|
240
|
-
let queryBuilder = contacts.queryContacts().limit(limit).skip(offset);
|
|
241
|
-
|
|
242
|
-
if (search) {
|
|
243
|
-
queryBuilder = queryBuilder.startsWith('info.name.first', search);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
return queryBuilder.find().then(({ items = [] }) => {
|
|
247
|
-
const limitedItems = items.slice(0, 4);
|
|
248
|
-
return {
|
|
249
|
-
items: limitedItems,
|
|
250
|
-
total: limitedItems.length,
|
|
251
|
-
};
|
|
252
|
-
});
|
|
253
|
-
},
|
|
254
|
-
fetchErrorMessage: ({ err }) => String(err),
|
|
255
|
-
filters: {
|
|
256
|
-
level: stringsArrayFilter(),
|
|
257
|
-
},
|
|
258
|
-
});
|
|
259
|
-
|
|
260
|
-
const [shown, setShown] = React.useState<boolean>(false);
|
|
261
|
-
|
|
262
|
-
const addItemChildNode = (
|
|
263
|
-
<Layout cols={1} justifyItems="center">
|
|
264
|
-
<Popover shown={shown} placement="bottom" appendTo="scrollParent">
|
|
265
|
-
<Popover.Element>
|
|
266
|
-
<TextButton
|
|
267
|
-
onClick={() => {
|
|
268
|
-
setShown(!shown);
|
|
269
|
-
}}
|
|
270
|
-
>
|
|
271
|
-
New Item
|
|
272
|
-
</TextButton>
|
|
273
|
-
</Popover.Element>
|
|
274
|
-
<Popover.Content>
|
|
275
|
-
<Box padding="12px 24px" direction="vertical" maxWidth="200px">
|
|
276
|
-
Can be any react node!
|
|
277
|
-
</Box>
|
|
278
|
-
</Popover.Content>
|
|
279
|
-
</Popover>
|
|
280
|
-
</Layout>
|
|
281
|
-
);
|
|
282
|
-
|
|
283
|
-
return (
|
|
284
|
-
<CollectionPage height="400px">
|
|
285
|
-
<CollectionPage.Header title={{ text: 'Contacts' }} />
|
|
286
|
-
<CollectionPage.Content>
|
|
287
|
-
<Grid
|
|
288
|
-
title={<ToolbarTitle title="Contacts list" />}
|
|
289
|
-
state={grid}
|
|
290
|
-
preset="full"
|
|
291
|
-
renderAddItem={() => (
|
|
292
|
-
<AddItem
|
|
293
|
-
size="medium"
|
|
294
|
-
children={addItemChildNode}
|
|
295
|
-
onClick={() => {
|
|
296
|
-
setShown(!shown);
|
|
297
|
-
}}
|
|
298
|
-
/>
|
|
299
|
-
)}
|
|
300
|
-
renderItem={(item) => ({
|
|
301
|
-
key: item._id,
|
|
302
|
-
primaryActionProps: { label: item.info?.jobTitle },
|
|
303
|
-
title: `${item.info?.name?.first} ${item.info?.name?.last}`,
|
|
304
|
-
subtitle: item.info?.jobTitle,
|
|
305
|
-
})}
|
|
306
|
-
/>
|
|
307
|
-
</CollectionPage.Content>
|
|
308
|
-
</CollectionPage>
|
|
309
|
-
);
|
|
310
|
-
}
|
|
311
|
-
```
|
|
41
|
+
Example code: read `dist/docs/Grid/card-with-a-cta-that-opens-a-popup.tsx`
|
|
312
42
|
|
|
313
43
|
### Grid with a reduced width
|
|
314
44
|
|
|
315
45
|
This example utilizes the `<Cell>` `span` prop to set the width of the Grid to 2/3 of the page.
|
|
316
46
|
|
|
317
|
-
|
|
318
|
-
import React from 'react';
|
|
319
|
-
import { Box, Card, Cell, Layout, Page } from '@wix/design-system';
|
|
320
|
-
import { CollectionPage } from '@wix/patterns/page';
|
|
321
|
-
import { Grid, useGridCollection } from '@wix/patterns';
|
|
322
|
-
import { contacts } from '@wix/crm';
|
|
323
|
-
|
|
324
|
-
function TableGridSwitchTwoThirdsWithSideBar() {
|
|
325
|
-
|
|
326
|
-
const state = useGridCollection<contacts.Contact>({
|
|
327
|
-
queryName: 'contacts-GridTwoThirdsWithSideBar',
|
|
328
|
-
paginationMode: 'offset',
|
|
329
|
-
itemName: (item) => `${item.info?.name?.first} ${item.info?.name?.last}`,
|
|
330
|
-
fetchData: (query) => {
|
|
331
|
-
const { limit, offset, search } = query;
|
|
332
|
-
|
|
333
|
-
let queryBuilder = contacts.queryContacts().limit(limit).skip(offset);
|
|
334
|
-
|
|
335
|
-
if (search) {
|
|
336
|
-
queryBuilder = queryBuilder.startsWith('info.name.first', search);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
return queryBuilder.find().then(({ items = [], totalCount: total }) => {
|
|
340
|
-
return {
|
|
341
|
-
items,
|
|
342
|
-
total,
|
|
343
|
-
};
|
|
344
|
-
});
|
|
345
|
-
},
|
|
346
|
-
fetchErrorMessage: () => 'Error fetching contacts',
|
|
347
|
-
});
|
|
348
|
-
|
|
349
|
-
return (
|
|
350
|
-
<CollectionPage height="400px">
|
|
351
|
-
<CollectionPage.Header title={{ text: 'Contacts' }} />
|
|
352
|
-
<CollectionPage.Content>
|
|
353
|
-
<Layout>
|
|
354
|
-
<Cell span={8}>
|
|
355
|
-
<Grid
|
|
356
|
-
state={state}
|
|
357
|
-
actionCell={(item, index, api) => {
|
|
358
|
-
return {
|
|
359
|
-
primaryAction: {
|
|
360
|
-
text: 'Edit',
|
|
361
|
-
onClick: () => {},
|
|
362
|
-
},
|
|
363
|
-
};
|
|
364
|
-
}}
|
|
365
|
-
/>
|
|
366
|
-
</Cell>
|
|
367
|
-
<Cell span={4}>
|
|
368
|
-
<Page.Sticky>
|
|
369
|
-
<Layout>
|
|
370
|
-
<Cell>
|
|
371
|
-
<Card>
|
|
372
|
-
<Card.Header
|
|
373
|
-
title="Plan Info"
|
|
374
|
-
subtitle="Start by giving your plan a name and sum up what it’s about with a tagline"
|
|
375
|
-
/>
|
|
376
|
-
<Card.Divider />
|
|
377
|
-
<Card.Content>
|
|
378
|
-
<Box height="300px" />
|
|
379
|
-
</Card.Content>
|
|
380
|
-
</Card>
|
|
381
|
-
</Cell>
|
|
382
|
-
</Layout>
|
|
383
|
-
</Page.Sticky>
|
|
384
|
-
</Cell>
|
|
385
|
-
</Layout>
|
|
386
|
-
</CollectionPage.Content>
|
|
387
|
-
</CollectionPage>
|
|
388
|
-
);
|
|
389
|
-
}
|
|
390
|
-
```
|
|
47
|
+
Example code: read `dist/docs/Grid/grid-with-a-reduced-width.tsx`
|
|
391
48
|
|
|
392
49
|
### Use the `preset` prop
|
|
393
50
|
|
|
@@ -406,178 +63,24 @@ Grids have 3 preset card types. Change them using the `preset` prop.
|
|
|
406
63
|
Default: `title`.
|
|
407
64
|
|
|
408
65
|
|
|
409
|
-
|
|
410
|
-
import React from 'react';
|
|
411
|
-
import { CollectionPage } from '@wix/patterns/page';
|
|
412
|
-
import { Grid, useGridCollection } from '@wix/patterns';
|
|
413
|
-
import { contacts } from '@wix/crm';
|
|
414
|
-
import { Box, Button } from '@wix/design-system';
|
|
415
|
-
|
|
416
|
-
function GridWithPreset() {
|
|
417
|
-
const state = useGridCollection<contacts.Contact>({
|
|
418
|
-
queryName: 'contacts-GridPreset',
|
|
419
|
-
paginationMode: 'offset',
|
|
420
|
-
itemName: (item) => `${item.info?.name?.first} ${item.info?.name?.last}`,
|
|
421
|
-
fetchData: (query) => {
|
|
422
|
-
const { limit, offset, search } = query;
|
|
423
|
-
|
|
424
|
-
let queryBuilder = contacts.queryContacts().limit(limit).skip(offset);
|
|
425
|
-
|
|
426
|
-
if (search) {
|
|
427
|
-
queryBuilder = queryBuilder.startsWith('info.name.first', search);
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
return queryBuilder.find().then(({ items = [], totalCount: total }) => {
|
|
431
|
-
return {
|
|
432
|
-
items,
|
|
433
|
-
total,
|
|
434
|
-
};
|
|
435
|
-
});
|
|
436
|
-
},
|
|
437
|
-
fetchErrorMessage: () => 'Error fetching contacts',
|
|
438
|
-
});
|
|
439
|
-
|
|
440
|
-
return (
|
|
441
|
-
<CollectionPage height="400px">
|
|
442
|
-
<CollectionPage.Header title={{ text: 'Contacts' }} />
|
|
443
|
-
<CollectionPage.Content>
|
|
444
|
-
<Grid
|
|
445
|
-
state={state}
|
|
446
|
-
preset="full"
|
|
447
|
-
renderItem={(item) => ({
|
|
448
|
-
primaryActionProps: { label: item.info?.jobTitle },
|
|
449
|
-
title: `${item.info?.name?.first} ${item.info?.name?.last}`,
|
|
450
|
-
subtitle: item.info?.jobTitle,
|
|
451
|
-
footer: (
|
|
452
|
-
<Box gap="SP1" height="100%" padding="SP1" placeItems="center">
|
|
453
|
-
<Button size="tiny">Edit</Button>
|
|
454
|
-
<Button skin="inverted" size="tiny">
|
|
455
|
-
Preview
|
|
456
|
-
</Button>
|
|
457
|
-
</Box>
|
|
458
|
-
),
|
|
459
|
-
})}
|
|
460
|
-
/>
|
|
461
|
-
</CollectionPage.Content>
|
|
462
|
-
</CollectionPage>
|
|
463
|
-
);
|
|
464
|
-
}
|
|
465
|
-
```
|
|
66
|
+
Example code: read `dist/docs/Grid/use-the-preset-prop.tsx`
|
|
466
67
|
|
|
467
68
|
### Grid sections
|
|
468
69
|
|
|
469
70
|
This example fetches sorted collection data by `jobTitle` and then groups the grid into sections based on `jobTitle`. For more information, see [Grid Sections](./?path=/story/features-display-grid-sections--grid-sections).
|
|
470
71
|
|
|
471
|
-
|
|
472
|
-
import React from 'react';
|
|
473
|
-
import { CollectionPage } from '@wix/patterns/page';
|
|
474
|
-
import { Grid, GridSections, useGridCollection } from '@wix/patterns';
|
|
475
|
-
import { contacts } from '@wix/crm';
|
|
476
|
-
|
|
477
|
-
function GridSectionsExample() {
|
|
478
|
-
const groupBy = React.useCallback(
|
|
479
|
-
(item: contacts.Contact) => item.info?.jobTitle as string,
|
|
480
|
-
[],
|
|
481
|
-
);
|
|
482
|
-
|
|
483
|
-
const renderSection = React.useCallback(
|
|
484
|
-
(sectionId: string) => ({
|
|
485
|
-
title: sectionId,
|
|
486
|
-
primaryAction: {
|
|
487
|
-
id: 'show-all',
|
|
488
|
-
label: 'Show All',
|
|
489
|
-
onClick: () => {},
|
|
490
|
-
},
|
|
491
|
-
}),
|
|
492
|
-
[],
|
|
493
|
-
);
|
|
494
|
-
|
|
495
|
-
const grid = useGridCollection<contacts.Contact>({
|
|
496
|
-
queryName: 'GridSections',
|
|
497
|
-
paginationMode: 'offset',
|
|
498
|
-
itemName: (item) => `${item.info?.name?.first} ${item.info?.name?.last}`,
|
|
499
|
-
fetchData: (query) => {
|
|
500
|
-
const { limit, offset, search } = query;
|
|
501
|
-
|
|
502
|
-
let queryBuilder = contacts.queryContacts().limit(limit).skip(offset);
|
|
503
|
-
|
|
504
|
-
if (search) {
|
|
505
|
-
queryBuilder = queryBuilder.startsWith('info.name.first', search);
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
queryBuilder.ascending('info.jobTitle');
|
|
509
|
-
|
|
510
|
-
return queryBuilder.find().then(({ items = [], totalCount: total }) => ({
|
|
511
|
-
items,
|
|
512
|
-
total,
|
|
513
|
-
}));
|
|
514
|
-
},
|
|
515
|
-
fetchErrorMessage: ({ err }) => String(err),
|
|
516
|
-
});
|
|
517
|
-
|
|
518
|
-
return (
|
|
519
|
-
<CollectionPage height="400px">
|
|
520
|
-
<CollectionPage.Header title={{ text: 'Contacts' }} />
|
|
521
|
-
<CollectionPage.Content>
|
|
522
|
-
<Grid
|
|
523
|
-
sections={{
|
|
524
|
-
GridSections,
|
|
525
|
-
groupBy,
|
|
526
|
-
renderSection,
|
|
527
|
-
}}
|
|
528
|
-
state={grid}
|
|
529
|
-
/>
|
|
530
|
-
</CollectionPage.Content>
|
|
531
|
-
</CollectionPage>
|
|
532
|
-
);
|
|
533
|
-
}
|
|
534
|
-
```
|
|
72
|
+
Example code: read `dist/docs/Grid/grid-sections.tsx`
|
|
535
73
|
|
|
536
74
|
## API
|
|
537
75
|
|
|
538
76
|
### Props
|
|
539
77
|
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
| `errorState` | `((err: unknown, params: { isOnline: boolean; retry: () => void; }) => ReactElement<any, string \| JSXElementConstructor<any>>)` | No | - | A render function to be rendered when there's an error fetching data from the server.<br> The function accepts the following parameters <br> * `err`: The error thrown by the [fetchData](./?path=/story/common-hooks--usecollection) function <br> * `isOnline`: Indicates whether internet connection is available <br> * `retry`: Retry collection fetch on failed response, similar to `collection.retryFetch` <br> Returns [`EmptyState`](https://www.docs.wixdesignsystem.com/?path=/story/components-layout--emptystate) component. |
|
|
547
|
-
| `views` | `CollectionViewsDropdownElement<F>` | No | - | Adds view options to the table headers. Accepts a [Views](./?path=/story/features-display-views--views) component. |
|
|
548
|
-
| `filters` | `CollectionToolbarFiltersElement` | No | - | Adds filters to the toolbar and/or a sliding panel. Accepts a `ToolbarFilters` component, which must have the `panelTitle` prop defined. |
|
|
549
|
-
| `tabs` | `TabsFilterElement<TabsFilterProps<T>>` | No | - | Displays tabs at the left of a toolbar. Accepts a [TabsFilter](./?path=/story/features-filter-components--tabsfilter) component. |
|
|
550
|
-
| `minCardHeight` | `MinHeight<string \| number>` | No | `300px` | Minimum height for a card's container when showing:<br> - A loader<br> - Empty state<br> - Error state <br><br> If no unit is specified, `px` is used. |
|
|
551
|
-
| `renderError` | `((params: { err: unknown; isOnline: boolean; retry: () => void; }) => ReactElement<any, string \| JSXElementConstructor<any>>)` | No | - | A render function to be rendered when there's an error fetching data from the server.<br> The function accepts the following parameters <br> * `err`: The error thrown by the [fetchData](./?path=/story/common-hooks--usecollection) function <br> * `isOnline`: Indicates whether internet connection is available <br> * `retry`: Retry collection fetch on failed response, similar to `collection.retryFetch` <br> Returns [`EmptyState`](https://www.docs.wixdesignsystem.com/?path=/story/components-layout--emptystate) component. @deprecated Use `errorState` instead. |
|
|
552
|
-
| `emptyState` | `ReactNode` | No | - | Renders when there are no items to display. Accepts a [`CollectionEmptyState`](./?path=/story/features-display-empty-states--collectionemptystate) component. |
|
|
553
|
-
| `noResultsState` | `ReactNode \| ((params: { hasAvailableItems: boolean; query: ComputedQuery<F>; }) => ReactNode)` | No | - | Shown when a search or filter has no results. Accepts a [`CollectionNoResultsState`](./?path=/story/features-display-empty-states--collectionnoresultsstate) component, or a function that accepts the following parameters: - `hasAvailableItems`: Indicates whether other items may be shown using other filter or search parameters. - `query`: An instance of [`ComputedQuery`](./?path=/story/common-models--computedquery) representing the query that resulted in the empty state. The function should return [`CollectionNoResultsState`](./?path=/story/features-display-empty-states--collectionnoresultsstate). |
|
|
554
|
-
| `topNotification` | `boolean \| TopNotificationElement \| ((params: { query: ComputedQuery<F>; }) => boolean \| TopNotificationElement \| null) \| null` | No | - | Renders a notification below the header. Accepts a [`TableTopNotification`](./?path=/story/features-display-tabletopnotification--tabletopnotification) component. |
|
|
555
|
-
| `summaryBar` | `ReactNode` | No | - | Display a summary bar below the toolbar. Accepts a [`SummaryBar`](./?path=/story/features-display-toolbar--summarybar) component. |
|
|
556
|
-
| `dragAndDropSubmit` | `DragAndDropSubmit<T, F>` | No | - | Function that submits a drop event to the server. <br> <br> The parameter is an event object containing the following details: <br> -`from: {item: T; index: number}`: The dragged item. <br> -`after: null \| [item: T; iindex: number}`: The previous dropped item. If this is the first item to be dropped, this argument is `null`. <br> -`filters`: Applied [Drag and Drop](./?path=/story/features-sort-drag-and-drop--overview) filters. @returns Promise |
|
|
557
|
-
| `dragAndDropBulkSubmit` | `DragAndDropBulkSubmit<T, F>` | No | - | Function that submits an array of drop events to the server. <br> <br> The parameter is an array of event objects containing the following details: <br> -`from: {item: T; index: number}`: The dragged item. <br> -`after: null \| [item: T; index: number}`: The previous dropped item. If this is the first item to be dropped, this argument is `null`. <br> -`filters`: Applied [Drag and Drop](./?path=/story/features-sort-drag-and-drop--overview) filters. <br> @returns Promise |
|
|
558
|
-
| `dragAndDropCancel` | `DragAndDropCancel<T, F>` | No | - | A function that cancels a drop event. <br> Supported arguments: <br> - `from: {item: T; index: number}`: The dragged item. - `after: null \| {item: T; index: number}`: The item that the dragged item was dropped after. If dropped at the head of the collection, this argument will be `null`. - `filters`: Currently applied filters. Used in cases where your server holds a unique ordering per filtering. See the `dragAndDropCategories` prop. If the move is cancelled, the function returns a toast config object with a message. Otherwise, the function will return a null value. |
|
|
559
|
-
| `extensionMenuItems` | `ExtensionMenuItemsType` | No | - | @deprecated It doesn't need to be passed implicitly anymore. |
|
|
560
|
-
| `dragAndDropReorderModeToolbar` | `ReorderModeToolbarElement \| null` | No | - | Drag and drop reorder mode toolbar. This prop accepts a `ReorderModeToolbar` component.<br> The `ReorderModeToolbar` component accepts the following props:<br> + `learnMoreUrl`: [string] A URL in the toolbar.<br> + `reorderModeTitle`: [string] A title in the toolbar. |
|
|
561
|
-
| `customColumns` | `CustomColumnsElement \| null` | No | - | Adds functionality to allow visitors to create choose which columns to display and in what order. Accepts a [CustomColumns](./?path=/story/features-display--customcolumns) component. |
|
|
562
|
-
| `multiLevelSorting` | `MultiLevelSortingElement` | No | - | Adds functionality to allow visitors to sort multiple columns simultaneously. Accepts a [MultiLevelSorting](./?path=/story/features-sort-sortable-columns-multilevelsorting--multilevelsorting) component. |
|
|
563
|
-
| `primaryActionButton` | `PrimaryActionButtonElement` | No | - | Adds functionality for a primary action button in the toolbar. Accepts a [PrimaryActionButton](./?path=/story/features-actions-primary-actions--primary-action-button) component. |
|
|
564
|
-
| `secondaryActions` | `ToolbarSecondaryActionsElement` | No | - | Secondary buttons w/o PopoverMenu component to be rendered on the toolbar. |
|
|
565
|
-
| `moreActions` | `MoreActionsElement` | No | - | A [`MoreActions`](./?path=/story/features-actions-more-actions--more-actions) component to be rendered on the header. |
|
|
566
|
-
| `AddApplyFiltersButton` | `AddApplyFiltersButtonType` | No | - | Apply filter button implementation: `import { AddApplyFiltersButton } from '@wix/patterns';` <br> Add `Apply` button to the filters panel footer. Panel filters will be applied only after the button is clicked. |
|
|
567
|
-
| `internalScroll` | `boolean` | No | - | Indicates whether the table should have an [internal scroll](./?path=/story/features-display-internal-scroll--internal-scroll) instead of the default page scroll. |
|
|
568
|
-
| `showFieldTypeIcons` | `boolean` | No | `false` | When true, renders prefix icons for field types in column headers, filters, and the customize-columns panel. Each column and filter should have a `fieldType` property set so Cairo can render the matching icon. |
|
|
569
|
-
| `showTitleBar` | `boolean` | No | `true` | Indicates whether to show Table Title Bar or not. Note: if you pass `showTitleBar = false` title bar is not removed from the DOM. For better accessibility column titles should be defined as well. |
|
|
570
|
-
| `exportButton` | `ReactElement<any, string \| JSXElementConstructor<any>>` | No | - | A [`<ExportButton />`](./?path=/story/features-export--exportto) react element to be added to the toolbar |
|
|
571
|
-
| `importButton` | `ReactElement<any, string \| JSXElementConstructor<any>>` | No | - | A [`<ImportButton />`] react element to be added to the toolbar. |
|
|
572
|
-
| `exportModal` | `ReactElement<any, string \| JSXElementConstructor<any>>` | No | - | A [`<ExportModal />`](./?path=/story/features-export--exportto#CTA_is_out_of_the_table) react element to be rendered in table's context. |
|
|
573
|
-
| `importModal` | `ReactElement<any, string \| JSXElementConstructor<any>>` | No | - | A [`<ImportModal />`] react element to be rendered in table's context. |
|
|
574
|
-
| `dragAndDropCategories` | `(keyof F)[][] \| null` | No | - | By default, drag and drop works only without filters. To enable drag and drop with filters, pass an array of filters to this prop. The functionality will then work only for the specified filters, and to enable without filters, you must pass an empty array. For more information, see the [Drag and Drop Overview](//?path=/story/features-sort-drag-and-drop--overview). |
|
|
575
|
-
| `dragAndDrop` | `{ SortableContext: (<T, F extends FiltersMap>(props: GridSortableContextProps<T, F>) => Element) & { displayName: string; }; DraggableCard: (<T, F extends FiltersMap>(props: DraggableCardProps<...>) => Element) & { ...; }; DraggableCardOverlay: (<T, F extends FiltersMap>(props: DraggableCardOverlayProps<...>) => Rea...` | No | - | Adds functionality to allow visitors to reorder items manually. For more information, see the [Drag and Drop Overview](./?path=/story/features-sort-drag-and-drop--overview). |
|
|
576
|
-
| `bulkActionToolbar` | `BulkActionToolbarRenderProp<T, F>` | No | - | A toolbar for performing bulk actions on multiple items.<br> <br> Supported parameters: <br> -`selectedValues`: [array] Items that are checked in the selection column. <br> -`uncheckedValues`: [array] Items that are unchecked in the selection column. <br> -`isSelectAll`: [bool] Whether **Select All** is checked. <br> -`openModal`: [func] Opens a modal that contains the component from `bulkActionModal` render prop. <br> -`clearSelection`: [func] Clears all selections. Call this after the action on the selected items finishes. <br> -`total`: [number] Total number of items in the server. <br> -`openConfirmModal`: [func] Opens a `<MessageModalLayout>` to confirm an action is about to be applied to the selected items. <br> -`query`: [object] Current paging, sorting, and filtering. Often used together with bulk actions, such as `updateAll`. <br> |
|
|
577
|
-
| `sections` | `{ GridSections: (<T, F extends FiltersMap>(props: GridSectionsContentProps<T, F>) => Element) & { displayName: string; }; groupBy: GroupBy<T>; renderSection?: RenderSection<...>; }` | No | - | Creates [grid sections](./?path=/story/features-display-grid-sections--grid-sections) that group data based on the values of a specific field. |
|
|
578
|
-
| `actionCell` | `ActionCell<T, F>` | No | - | Adds an action on the grid item. For example, a delete button to delete an item. Accepts an [`ActionCellProps`](https://www.docs.wixdesignsystem.com/?path=/story/components-lists-table--tableactioncell) object, or a function that returns an `ActionCellProps` object. |
|
|
579
|
-
| `renderAddItem` | `(() => ReactElement<AddItemProps, string \| JSXElementConstructor<any>>)` | No | - | A function that renders [`<AddItem>`](https://www.docs.wixdesignsystem.com/?path=/story/components-actions--additem&activeTab=Description&globals=backgrounds.value:!hex(F8F8F8);backgrounds.grid:false) after all cards in a gallery. <br><br> The `<AddItem>` card will not show when filters are applied unless the filter is defined with the persistent option. |
|
|
580
|
-
| `imagePlacement` | `"top" \| "side"` | No | - | Sets placement of a background image. |
|
|
78
|
+
Read `dist/dts-bundle/components/Grid.d.ts` for `Grid`'s full prop list, with types and
|
|
79
|
+
descriptions. They are not repeated here, so the bundle is the single source of truth.
|
|
80
|
+
|
|
81
|
+
A one-line stub in that file is an answer, not a truncation: an empty body with a
|
|
82
|
+
"Produced by" note means you get the value from that hook or factory rather than
|
|
83
|
+
constructing it. `dist/dts-bundle/index.json` maps every name to its bundle path.
|
|
581
84
|
|
|
582
85
|
## Accessibility
|
|
583
86
|
|
package/dist/docs/GridFolders.md
CHANGED
|
@@ -211,49 +211,10 @@ function Basic() {
|
|
|
211
211
|
|
|
212
212
|
### Props
|
|
213
213
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
| `folderActionCell` | `ActionCell<T2, F2>` | No | - | Same as `actionCell`, but for a folder item. |
|
|
221
|
-
| `renderFolderAddItem` | `(() => ReactElement<AddItemProps, string \| JSXElementConstructor<any>>)` | No | - | Same as `renderAddItem`, but for a folder item. |
|
|
222
|
-
| `search` | `boolean \| FilterElement \| CollectionSearchElement` | No | `true` | Displays a search input on the right side of the table toolbar.<br> <br> Accepts a boolean or a custom React element as a parameter. When passing `false`, no search input is displayed. |
|
|
223
|
-
| `title` | `ToolbarTitleElement` | No | - | Displays a title at the left of a toolbar. Accepts a [ToolbarTitle](./?path=/story/features-display-toolbar--toolbartitle) component. |
|
|
224
|
-
| `tags` | `TagsElement<T1, Partial<F1 & F2>>` | No | - | Enables tags feature. In this element you can pass the configuration |
|
|
225
|
-
| `errorState` | `((err: unknown, params: { isOnline: boolean; retry: () => void; }) => ReactElement<any, string \| JSXElementConstructor<any>>)` | No | - | A render function to be rendered when there's an error fetching data from the server.<br> The function accepts the following parameters <br> * `err`: The error thrown by the [fetchData](./?path=/story/common-hooks--usecollection) function <br> * `isOnline`: Indicates whether internet connection is available <br> * `retry`: Retry collection fetch on failed response, similar to `collection.retryFetch` <br> Returns [`EmptyState`](https://www.docs.wixdesignsystem.com/?path=/story/components-layout--emptystate) component. |
|
|
226
|
-
| `maxSelection` | `number` | No | - | Limits the amount of rows a visitor can select. |
|
|
227
|
-
| `views` | `CollectionViewsDropdownElement<Partial<F1 & F2>>` | No | - | Adds view options to the table headers. Accepts a [Views](./?path=/story/features-display-views--views) component. |
|
|
228
|
-
| `filters` | `CollectionToolbarFiltersElement` | No | - | Adds filters to the toolbar and/or a sliding panel. Accepts a `ToolbarFilters` component, which must have the `panelTitle` prop defined. |
|
|
229
|
-
| `tabs` | `TabsFilterElement<TabsFilterProps<T1>>` | No | - | Displays tabs at the left of a toolbar. Accepts a [TabsFilter](./?path=/story/features-filter-components--tabsfilter) component. |
|
|
230
|
-
| `minCardHeight` | `MinHeight<string \| number>` | No | `300px` | Minimum height for a card's container when showing:<br> - A loader<br> - Empty state<br> - Error state <br><br> If no unit is specified, `px` is used. |
|
|
231
|
-
| `renderError` | `((params: { err: unknown; isOnline: boolean; retry: () => void; }) => ReactElement<any, string \| JSXElementConstructor<any>>)` | No | - | A render function to be rendered when there's an error fetching data from the server.<br> The function accepts the following parameters <br> * `err`: The error thrown by the [fetchData](./?path=/story/common-hooks--usecollection) function <br> * `isOnline`: Indicates whether internet connection is available <br> * `retry`: Retry collection fetch on failed response, similar to `collection.retryFetch` <br> Returns [`EmptyState`](https://www.docs.wixdesignsystem.com/?path=/story/components-layout--emptystate) component. @deprecated Use `errorState` instead. |
|
|
232
|
-
| `emptyState` | `ReactNode` | No | - | Renders when there are no items to display. Accepts a [`CollectionEmptyState`](./?path=/story/features-display-empty-states--collectionemptystate) component. |
|
|
233
|
-
| `noResultsState` | `ReactNode \| ((params: { hasAvailableItems: boolean; query: ComputedQuery<Partial<F1 & F2>>; }) => ReactNode)` | No | - | Shown when a search or filter has no results. Accepts a [`CollectionNoResultsState`](./?path=/story/features-display-empty-states--collectionnoresultsstate) component, or a function that accepts the following parameters: - `hasAvailableItems`: Indicates whether other items may be shown using other filter or search parameters. - `query`: An instance of [`ComputedQuery`](./?path=/story/common-models--computedquery) representing the query that resulted in the empty state. The function should return [`CollectionNoResultsState`](./?path=/story/features-display-empty-states--collectionnoresultsstate). |
|
|
234
|
-
| `summaryBar` | `ReactNode` | No | - | Display a summary bar below the toolbar. Accepts a [`SummaryBar`](./?path=/story/features-display-toolbar--summarybar) component. |
|
|
235
|
-
| `dragAndDropSubmit` | `DragAndDropSubmit<T1, Partial<F1 & F2>>` | No | - | Function that submits a drop event to the server. <br> <br> The parameter is an event object containing the following details: <br> -`from: {item: T; index: number}`: The dragged item. <br> -`after: null \| [item: T; iindex: number}`: The previous dropped item. If this is the first item to be dropped, this argument is `null`. <br> -`filters`: Applied [Drag and Drop](./?path=/story/features-sort-drag-and-drop--overview) filters. @returns Promise |
|
|
236
|
-
| `dragAndDropBulkSubmit` | `DragAndDropBulkSubmit<T1, Partial<F1 & F2>>` | No | - | Function that submits an array of drop events to the server. <br> <br> The parameter is an array of event objects containing the following details: <br> -`from: {item: T; index: number}`: The dragged item. <br> -`after: null \| [item: T; index: number}`: The previous dropped item. If this is the first item to be dropped, this argument is `null`. <br> -`filters`: Applied [Drag and Drop](./?path=/story/features-sort-drag-and-drop--overview) filters. <br> @returns Promise |
|
|
237
|
-
| `dragAndDropCancel` | `DragAndDropCancel<T1, Partial<F1 & F2>>` | No | - | A function that cancels a drop event. <br> Supported arguments: <br> - `from: {item: T; index: number}`: The dragged item. - `after: null \| {item: T; index: number}`: The item that the dragged item was dropped after. If dropped at the head of the collection, this argument will be `null`. - `filters`: Currently applied filters. Used in cases where your server holds a unique ordering per filtering. See the `dragAndDropCategories` prop. If the move is cancelled, the function returns a toast config object with a message. Otherwise, the function will return a null value. |
|
|
238
|
-
| `extensionMenuItems` | `ExtensionMenuItemsType` | No | - | @deprecated It doesn't need to be passed implicitly anymore. |
|
|
239
|
-
| `dragAndDropReorderModeToolbar` | `ReorderModeToolbarElement \| null` | No | - | Drag and drop reorder mode toolbar. This prop accepts a `ReorderModeToolbar` component.<br> The `ReorderModeToolbar` component accepts the following props:<br> + `learnMoreUrl`: [string] A URL in the toolbar.<br> + `reorderModeTitle`: [string] A title in the toolbar. |
|
|
240
|
-
| `customColumns` | `CustomColumnsElement \| null` | No | - | Adds functionality to allow visitors to create choose which columns to display and in what order. Accepts a [CustomColumns](./?path=/story/features-display--customcolumns) component. |
|
|
241
|
-
| `multiLevelSorting` | `MultiLevelSortingElement` | No | - | Adds functionality to allow visitors to sort multiple columns simultaneously. Accepts a [MultiLevelSorting](./?path=/story/features-sort-sortable-columns-multilevelsorting--multilevelsorting) component. |
|
|
242
|
-
| `primaryActionButton` | `PrimaryActionButtonElement` | No | - | Adds functionality for a primary action button in the toolbar. Accepts a [PrimaryActionButton](./?path=/story/features-actions-primary-actions--primary-action-button) component. |
|
|
243
|
-
| `secondaryActions` | `ToolbarSecondaryActionsElement` | No | - | Secondary buttons w/o PopoverMenu component to be rendered on the toolbar. |
|
|
244
|
-
| `moreActions` | `MoreActionsElement` | No | - | A [`MoreActions`](./?path=/story/features-actions-more-actions--more-actions) component to be rendered on the header. |
|
|
245
|
-
| `AddApplyFiltersButton` | `AddApplyFiltersButtonType` | No | - | Apply filter button implementation: `import { AddApplyFiltersButton } from '@wix/patterns';` <br> Add `Apply` button to the filters panel footer. Panel filters will be applied only after the button is clicked. |
|
|
246
|
-
| `internalScroll` | `boolean` | No | - | Indicates whether the table should have an [internal scroll](./?path=/story/features-display-internal-scroll--internal-scroll) instead of the default page scroll. |
|
|
247
|
-
| `showFieldTypeIcons` | `boolean` | No | `false` | When true, renders prefix icons for field types in column headers, filters, and the customize-columns panel. Each column and filter should have a `fieldType` property set so Cairo can render the matching icon. |
|
|
248
|
-
| `showTitleBar` | `boolean` | No | `true` | Indicates whether to show Table Title Bar or not. Note: if you pass `showTitleBar = false` title bar is not removed from the DOM. For better accessibility column titles should be defined as well. |
|
|
249
|
-
| `exportButton` | `ReactElement<any, string \| JSXElementConstructor<any>>` | No | - | A [`<ExportButton />`](./?path=/story/features-export--exportto) react element to be added to the toolbar |
|
|
250
|
-
| `importButton` | `ReactElement<any, string \| JSXElementConstructor<any>>` | No | - | A [`<ImportButton />`] react element to be added to the toolbar. |
|
|
251
|
-
| `exportModal` | `ReactElement<any, string \| JSXElementConstructor<any>>` | No | - | A [`<ExportModal />`](./?path=/story/features-export--exportto#CTA_is_out_of_the_table) react element to be rendered in table's context. |
|
|
252
|
-
| `importModal` | `ReactElement<any, string \| JSXElementConstructor<any>>` | No | - | A [`<ImportModal />`] react element to be rendered in table's context. |
|
|
253
|
-
| `dragAndDropCategories` | `(keyof F1 \| keyof F2)[][] \| null` | No | - | By default, drag and drop works only without filters. To enable drag and drop with filters, pass an array of filters to this prop. The functionality will then work only for the specified filters, and to enable without filters, you must pass an empty array. For more information, see the [Drag and Drop Overview](//?path=/story/features-sort-drag-and-drop--overview). |
|
|
254
|
-
| `preset` | `"title" \| "full" \| "footer" \| "empty"` | No | `title` | A `CardGalleryItem` preset to preserve the same card size regardless of the provided data. Subtitle will be shown only in 'full' or 'footer' presets. @example full — renders title + subtitle title — renders only title empty — renders a card without a footer |
|
|
255
|
-
| `renderItem` | `((item: T1, index: number) => Partial<SupportedCardGalleryItemProps>)` | No | - | A function that renders a custom item of the grid. Returns a WSR [`CardGalleryItemProps`](https://www.docs.wixdesignsystem.com/?path=/story/components-lists--cardgalleryitem) object. |
|
|
256
|
-
| `actionCell` | `ActionCell<T1, F1>` | No | - | Adds an action on the grid item. For example, a delete button to delete an item. Accepts an [`ActionCellProps`](https://www.docs.wixdesignsystem.com/?path=/story/components-lists-table--tableactioncell) object, or a function that returns an `ActionCellProps` object. |
|
|
257
|
-
| `renderAddItem` | `(() => ReactElement<AddItemProps, string \| JSXElementConstructor<any>>)` | No | - | A function that renders [`<AddItem>`](https://www.docs.wixdesignsystem.com/?path=/story/components-actions--additem&activeTab=Description&globals=backgrounds.value:!hex(F8F8F8);backgrounds.grid:false) after all cards in a gallery. <br><br> The `<AddItem>` card will not show when filters are applied unless the filter is defined with the persistent option. |
|
|
258
|
-
| `imagePlacement` | `"top" \| "side"` | No | - | Sets placement of a background image. |
|
|
214
|
+
Read `dist/dts-bundle/components/GridFolders.d.ts` for `GridFolders`'s full prop list, with types and
|
|
215
|
+
descriptions. They are not repeated here, so the bundle is the single source of truth.
|
|
216
|
+
|
|
217
|
+
A one-line stub in that file is an answer, not a truncation: an empty body with a
|
|
218
|
+
"Produced by" note means you get the value from that hook or factory rather than
|
|
219
|
+
constructing it. `dist/dts-bundle/index.json` maps every name to its bundle path.
|
|
259
220
|
|
|
@@ -14,7 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
### Props
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
Read `dist/dts-bundle/types/GridFoldersState.d.ts` for `GridFoldersState`'s full prop list, with types and
|
|
18
|
+
descriptions. They are not repeated here, so the bundle is the single source of truth.
|
|
19
|
+
|
|
20
|
+
A one-line stub in that file is an answer, not a truncation: an empty body with a
|
|
21
|
+
"Produced by" note means you get the value from that hook or factory rather than
|
|
22
|
+
constructing it. `dist/dts-bundle/index.json` maps every name to its bundle path.
|
|
20
23
|
|