@wix/patterns 1.255.0 → 1.256.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/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/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.js +16 -11
- package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.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/DragHandle/DragHandle.st.css.js +2 -2
- package/dist/cjs/components/DragHandle/DragHandle.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/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 +2 -2
- 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/NestedTable/NestedTableWSRTable.js +12 -6
- package/dist/cjs/components/NestedTable/NestedTableWSRTable.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/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/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/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
- package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css.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/styles.global.css +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/components/CardContainer/CardContainer.st.css.js +2 -2
- package/dist/esm/components/CardContainer/CardContainer.st.css.js.map +1 -1
- 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/CollectionPageNew/CollectionPage.st.css.js.map +1 -1
- package/dist/esm/components/CollectionTable/CollectionTable.st.css.js +2 -2
- package/dist/esm/components/CollectionTable/CollectionTable.st.css.js.map +1 -1
- package/dist/esm/components/CollectionTable/CollectionTableWSRTable.js +4 -2
- package/dist/esm/components/CollectionTable/CollectionTableWSRTable.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/ViewsDropdown.st.css.js +2 -2
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
- package/dist/esm/components/DragHandle/DragHandle.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/Fade/Fade.st.css.js.map +1 -1
- package/dist/esm/components/Heading/Heading.st.css.js +2 -2
- package/dist/esm/components/Heading/Heading.st.css.js.map +1 -1
- package/dist/esm/components/InputOverflow/InputOverflow.st.css.js +2 -2
- package/dist/esm/components/LoadingRow/LoadingRow.st.css.js +3 -3
- 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/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
- package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js.map +1 -1
- 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/NestedTable/NestedTableWSRTable.js +4 -1
- package/dist/esm/components/NestedTable/NestedTableWSRTable.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/PickerContentAdditionalStep.st.css.js +2 -2
- package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
- 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/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
- package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js +2 -2
- 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/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/components/common.st.css.js.map +1 -1
- package/dist/esm/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
- package/dist/esm/state/FormPage/FormPageHeader.st.css.js +2 -2
- package/dist/esm/styles.global.css +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/components/CardContainer/CardContainer.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionPageNew/CollectionPage.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionTable/CollectionTable.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionTable/CollectionTableWSRTable.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/SearchOrCustomFilter.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/ViewsDropdown.st.css.d.ts.map +1 -1
- package/dist/types/components/Fade/Fade.st.css.d.ts.map +1 -1
- package/dist/types/components/Heading/Heading.st.css.d.ts.map +1 -1
- package/dist/types/components/MaxHeightText/MaxHeightText.st.css.d.ts.map +1 -1
- package/dist/types/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTableRow.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTableWSRTable.d.ts.map +1 -1
- package/dist/types/components/PickerContent/PickerContentAdditionalStep.st.css.d.ts.map +1 -1
- package/dist/types/components/PickerTableListItem/PickerTableListItem.st.css.d.ts.map +1 -1
- package/dist/types/components/ScrollableContent/ScrollableContent.st.css.d.ts.map +1 -1
- package/dist/types/components/SlidingModal/SlidingModal.st.css.d.ts.map +1 -1
- package/dist/types/components/ToolbarItemBox/ToolbarItemBox.st.css.d.ts.map +1 -1
- package/dist/types/components/common.st.css.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +147 -3
- package/src/aiAssistant/aiAssistant.ts +28 -0
- package/src/aiAssistant/createAiAssistant.ts +75 -0
- package/src/aiAssistant/index.ts +2 -0
- package/src/aiAssistant/useAiAssistantContext.ts +14 -0
- package/src/alpha/index.ts +3 -0
- package/src/bm/WixPatternsBMProvider.tsx +79 -0
- package/src/bm/buildBMCairoEssentials.ts +136 -0
- package/src/bm/buildCreateEssentials.ts +64 -0
- package/src/bm/errorMonitorCompat.ts +39 -0
- package/src/bm/testProviderPropsOverrides.ts +23 -0
- package/src/bm/useExperimentsCompat.ts +16 -0
- package/src/bm/usePickerModal.ts +90 -0
- package/src/bm/usePlatformApiCompat.ts +13 -0
- package/src/bm/warmUpPickerStandalone.ts +25 -0
- package/src/bm/withWixPatternsProvider.tsx +14 -0
- package/src/components/ActionCell/ActionCell.ts +75 -0
- package/src/components/ActionCell/index.ts +4 -0
- package/src/components/ActionCell/useActionCellColumn.ts +43 -0
- package/src/components/ActionCell/useActionCellColumnBase.ts +24 -0
- package/src/components/ActionCell/useRenderActionCellColumn.tsx +34 -0
- package/src/components/ActionControl/ActionButton.tsx +37 -0
- package/src/components/ActionControl/ActionControl.tsx +19 -0
- package/src/components/ActionControl/ActionControl.uni.driver.ts +30 -0
- package/src/components/ActionControl/ActionPopover.tsx +75 -0
- package/src/components/ActionControl/ActionSubItemProps.tsx +67 -0
- package/src/components/ActionControl/index.ts +4 -0
- package/src/components/ActionModal/CustomActionModal.tsx +64 -0
- package/src/components/ActionModal/MessageActionModal.tsx +73 -0
- package/src/components/ActionModal/index.ts +2 -0
- package/src/components/AppliedFiltersTagList/AppliedFiltersTagList.tsx +60 -0
- package/src/components/AppliedFiltersTagList/AppliedFiltersTagList.uni.driver.ts +38 -0
- package/src/components/AppliedFiltersTagList/AppliedFiltersTagListState.tsx +204 -0
- package/src/components/AppliedFiltersTagList/FilterTagContent.tsx +26 -0
- package/src/components/AppliedFiltersTagList/index.ts +1 -0
- package/src/components/AutoCompleteFilter/AutoCompleteFilter.tsx +29 -0
- package/src/components/AutoCompleteFilter/AutoCompleteFilterState.ts +97 -0
- package/src/components/AutoCompleteFilter/index.tsx +1 -0
- package/src/components/BorderOnlyBox.tsx +14 -0
- package/src/components/BulkAction/BulkActionModalRenderProp.ts +41 -0
- package/src/components/BulkAction/BulkActionToolbarRenderProp.ts +14 -0
- package/src/components/BulkAction/MultiCollectionBulkActionModal.tsx +35 -0
- package/src/components/BulkAction/MultiCollectionBulkActionRenderProps.ts +20 -0
- package/src/components/BulkAction/MultiCollectionBulkActionToolbar.tsx +38 -0
- package/src/components/BulkAction/SingleCollectionBulkActionModal.tsx +43 -0
- package/src/components/BulkAction/SingleCollectionBulkActionToolbar.tsx +54 -0
- package/src/components/BulkAction/index.ts +7 -0
- package/src/components/BulkActionButton/BulkActionButton.tsx +26 -0
- package/src/components/BulkActionButton/index.ts +1 -0
- package/src/components/BulkActionToolbar/BulkActionToolbar.driver.tsx +61 -0
- package/src/components/BulkActionToolbar/BulkActionToolbar.tsx +66 -0
- package/src/components/BulkActionToolbar/BulkActionToolbar.uni.driver.ts +36 -0
- package/src/components/BulkActionToolbar/index.ts +1 -0
- package/src/components/CardContainer/CardContainer.st.css +7 -0
- package/src/components/CardContainer/CardContainer.st.css.ts +25 -0
- package/src/components/CardContainer/CardContainer.tsx +83 -0
- package/src/components/CardContainer/CardContainer.uni.driver.ts +16 -0
- package/src/components/CardContainer/index.ts +1 -0
- package/src/components/Collapse/Collapse.st.css +8 -0
- package/src/components/Collapse/Collapse.st.css.ts +25 -0
- package/src/components/Collapse/Collapse.tsx +152 -0
- package/src/components/Collapse/index.ts +1 -0
- package/src/components/CollectionActionsBar.tsx +16 -0
- package/src/components/CollectionAutoComplete/CollectionAutoComplete.tsx +155 -0
- package/src/components/CollectionAutoComplete/index.tsx +1 -0
- package/src/components/CollectionCard/CollectionCard.tsx +127 -0
- package/src/components/CollectionCard/index.ts +1 -0
- package/src/components/CollectionContext.ts +6 -0
- package/src/components/CollectionEmptyStateBase/CollectionEmptyStateBase.tsx +22 -0
- package/src/components/CollectionEmptyStateBase/index.ts +1 -0
- package/src/components/CollectionErrorState/CollectionErrorState.tsx +55 -0
- package/src/components/CollectionErrorState/index.ts +1 -0
- package/src/components/CollectionFilter/CollectionFilter.tsx +32 -0
- package/src/components/CollectionFilter/CollectionFilterState.ts +97 -0
- package/src/components/CollectionFilter/index.ts +1 -0
- package/src/components/CollectionItemActions/CollectionItemActions.tsx +95 -0
- package/src/components/CollectionItemActions/CollectionItemActions.uni.driver.ts +101 -0
- package/src/components/CollectionItemActions/CollectionItemActionsHelper.ts +131 -0
- package/src/components/CollectionItemActions/getDefaultActionCellProps.ts +6 -0
- package/src/components/CollectionItemActions/index.ts +1 -0
- package/src/components/CollectionListHeader/CollectionListHeader.tsx +46 -0
- package/src/components/CollectionListHeader/index.ts +1 -0
- package/src/components/CollectionListItem/CollectionListChildSlot.tsx +16 -0
- package/src/components/CollectionListItem/CollectionListItem.tsx +49 -0
- package/src/components/CollectionListItem/CollectionListItem.uni.driver.ts +14 -0
- package/src/components/CollectionListItem/index.ts +2 -0
- package/src/components/CollectionListRow/CollectionListRow.tsx +99 -0
- package/src/components/CollectionListRow/index.ts +1 -0
- package/src/components/CollectionModal.tsx +18 -0
- package/src/components/CollectionMultiSelectCheckbox/CollectionMultiSelectCheckbox.tsx +204 -0
- package/src/components/CollectionMultiSelectCheckbox/index.ts +1 -0
- package/src/components/CollectionPage/CollectionPage.tsx +60 -0
- package/src/components/CollectionPage/index.ts +1 -0
- package/src/components/CollectionPageContent/CollectionPageContent.tsx +17 -0
- package/src/components/CollectionPageContent/index.ts +1 -0
- package/src/components/CollectionPageHeader/CollectionPageHeader.tsx +33 -0
- package/src/components/CollectionPageHeader/index.ts +1 -0
- package/src/components/CollectionPageHeaderNew/CollectionPageHeader.tsx +69 -0
- package/src/components/CollectionPageHeaderNew/index.ts +1 -0
- package/src/components/CollectionPageNew/CollectionPage.st.css +9 -0
- package/src/components/CollectionPageNew/CollectionPage.st.css.ts +25 -0
- package/src/components/CollectionPageNew/CollectionPage.tsx +90 -0
- package/src/components/CollectionPageNew/CollectionPage.uni.driver.ts +42 -0
- package/src/components/CollectionPageNew/index.ts +1 -0
- package/src/components/CollectionPageNew/useCollectionPageLoadReporting.ts +74 -0
- package/src/components/CollectionPagination.tsx +42 -0
- package/src/components/CollectionSearch.tsx +54 -0
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.tsx +57 -0
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.types.ts +29 -0
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.uni.driver.ts +22 -0
- package/src/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.tsx +45 -0
- package/src/components/CollectionSectionHeader/index.ts +6 -0
- package/src/components/CollectionTable/CollectionTable.st.css +11 -0
- package/src/components/CollectionTable/CollectionTable.st.css.ts +25 -0
- package/src/components/CollectionTable/CollectionTable.tsx +394 -0
- package/src/components/CollectionTable/CollectionTable.uni.driver.ts +399 -0
- package/src/components/CollectionTable/CollectionTableBaseCommonProps.ts +25 -0
- package/src/components/CollectionTable/CollectionTableContent.tsx +63 -0
- package/src/components/CollectionTable/CollectionTableContentCard.tsx +33 -0
- package/src/components/CollectionTable/CollectionTableWSRTable.tsx +298 -0
- package/src/components/CollectionTable/index.ts +1 -0
- package/src/components/CollectionTable/useTableCollectionSyncProps.ts +104 -0
- package/src/components/CollectionTableActionsColumn.tsx +62 -0
- package/src/components/CollectionToolbar/CollectionToolbar.st.css +40 -0
- package/src/components/CollectionToolbar/CollectionToolbar.st.css.ts +25 -0
- package/src/components/CollectionToolbar/CollectionToolbar.tsx +315 -0
- package/src/components/CollectionToolbar/CollectionToolbar.uni.driver.ts +628 -0
- package/src/components/CollectionToolbar/CollectionToolbarActionsGroupProps.ts +14 -0
- package/src/components/CollectionToolbar/CollectionToolbarActionsGroupResponsiveLayout.tsx +90 -0
- package/src/components/CollectionToolbar/CollectionToolbarActionsToolbarItemsGroup.tsx +73 -0
- package/src/components/CollectionToolbar/CollectionToolbarContext.ts +9 -0
- package/src/components/CollectionToolbar/CollectionToolbarSkeletonItem.tsx +21 -0
- package/src/components/CollectionToolbar/PrimaryActionButton.tsx +47 -0
- package/src/components/CollectionToolbar/ReorderModeDiscardChangesModal.tsx +26 -0
- package/src/components/CollectionToolbar/ReorderModeToolbar.tsx +105 -0
- package/src/components/CollectionToolbar/ReorderModeToolbar.uni.driver.ts +39 -0
- package/src/components/CollectionToolbar/SearchOrCustomFilter.st.css +10 -0
- package/src/components/CollectionToolbar/SearchOrCustomFilter.st.css.ts +25 -0
- package/src/components/CollectionToolbar/SearchOrCustomFilter.tsx +52 -0
- package/src/components/CollectionToolbar/ToolbarGroupScrollWidthBox.tsx +34 -0
- package/src/components/CollectionToolbar/ToolbarSecondaryActions.tsx +35 -0
- package/src/components/CollectionToolbar/ToolbarSecondaryActions.uni.driver.ts +21 -0
- package/src/components/CollectionToolbar/index.ts +4 -0
- package/src/components/CollectionToolbar/useCollectionToolbarSyncedProps.ts +35 -0
- package/src/components/CollectionToolbarFilters/CollectionToolbarFilters.tsx +248 -0
- package/src/components/CollectionToolbarFilters/CollectionToolbarFiltersState.ts +62 -0
- package/src/components/CollectionToolbarFilters/FiltersPanelSidePanelEntry.tsx +11 -0
- package/src/components/CollectionToolbarFilters/filterElement.ts +7 -0
- package/src/components/CollectionToolbarFilters/index.ts +2 -0
- package/src/components/CollectionToolbarFilters/useFiltersLayout.ts +60 -0
- package/src/components/CollectionToolbarFilters/useFiltersSyncProps.ts +95 -0
- package/src/components/CollectionToolbars/CollectionToolbars.tsx +197 -0
- package/src/components/CollectionToolbars/CollectionToolbarsProvider.tsx +32 -0
- package/src/components/CollectionToolbars/CollectionToolbarsVisualization.tsx +24 -0
- package/src/components/CollectionToolbars/ToolbarAndTitlebarContainer.tsx +35 -0
- package/src/components/CollectionToolbars/ToolbarState.ts +74 -0
- package/src/components/CollectionToolbars/index.ts +1 -0
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css +11 -0
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.ts +25 -0
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.tsx +80 -0
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonlyState.ts +66 -0
- package/src/components/CollectionViewsDropdown/CollectionViewsDropdown.tsx +26 -0
- package/src/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.ts +211 -0
- package/src/components/CollectionViewsDropdown/CollectionViewsDropdownBase.tsx +102 -0
- package/src/components/CollectionViewsDropdown/CollectionViewsDropdownStandalone.tsx +21 -0
- package/src/components/CollectionViewsDropdown/ManageViewPopover.tsx +132 -0
- package/src/components/CollectionViewsDropdown/ManageViewPopover.uni.driver.ts +85 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdown.st.css +3 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdown.st.css.ts +25 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdown.tsx +156 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdownListItem.uni.driver.ts +20 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdownModals.tsx +32 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdownPrefix.tsx +59 -0
- package/src/components/CollectionViewsDropdown/index.ts +3 -0
- package/src/components/CollectionViewsDropdown/modals/RenameView/CollectionRenameViewModal.tsx +143 -0
- package/src/components/CollectionViewsDropdown/modals/RenameView/CollectionRenameViewModal.uni.driver.ts +70 -0
- package/src/components/CollectionViewsDropdown/modals/SaveView/CollectionSaveViewModal.tsx +166 -0
- package/src/components/CollectionViewsDropdown/modals/SaveView/CollectionSaveViewModal.uni.driver.ts +78 -0
- package/src/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.tsx +79 -0
- package/src/components/CounterBadgeButton/CounterBadgeButton.tsx +31 -0
- package/src/components/CounterBadgeButton/index.ts +1 -0
- package/src/components/CtaProps.ts +24 -0
- package/src/components/CustomColumns/CustomColumns.tsx +29 -0
- package/src/components/CustomColumns/CustomColumnsDragAndDrop.ts +7 -0
- package/src/components/CustomColumns/CustomColumnsFull.tsx +14 -0
- package/src/components/CustomColumns/index.ts +2 -0
- package/src/components/CustomColumnsPanel/ColumnListTableListItem.tsx +170 -0
- package/src/components/CustomColumnsPanel/ColumnsList.tsx +115 -0
- package/src/components/CustomColumnsPanel/CustomColumnsCTAButton.tsx +97 -0
- package/src/components/CustomColumnsPanel/CustomColumnsNoResults.tsx +45 -0
- package/src/components/CustomColumnsPanel/CustomColumnsPanel.tsx +93 -0
- package/src/components/CustomColumnsPanel/CustomColumnsPanel.uni.driver.ts +155 -0
- package/src/components/CustomColumnsPanel/CustomColumnsPanelEntry.tsx +36 -0
- package/src/components/CustomColumnsPanel/CustomColumnsSearch.tsx +33 -0
- package/src/components/CustomColumnsPanel/index.ts +1 -0
- package/src/components/CustomFieldFilters/CheckboxCustomFieldFilter.tsx +30 -0
- package/src/components/CustomFieldFilters/DateCustomFieldFilter.tsx +16 -0
- package/src/components/CustomFieldFilters/DateCustomFieldFilterBase.tsx +21 -0
- package/src/components/CustomFieldFilters/DateTimeCustomFieldFilter.tsx +16 -0
- package/src/components/CustomFieldFilters/buildCustomFieldFilterElement.tsx +45 -0
- package/src/components/CustomFieldFilters/index.ts +1 -0
- package/src/components/CustomFieldModal/CustomFieldForm.tsx +367 -0
- package/src/components/CustomFieldModal/CustomFieldFormPiiFields.tsx +79 -0
- package/src/components/CustomFieldModal/CustomFieldModal.tsx +145 -0
- package/src/components/CustomFieldModal/CustomFieldModal.uni.driver.ts +247 -0
- package/src/components/CustomFieldModal/CustomFieldModalPrimaryButton.tsx +56 -0
- package/src/components/CustomFieldModal/CustomFieldTypeDropdown.tsx +157 -0
- package/src/components/CustomFieldModal/index.ts +2 -0
- package/src/components/CustomFields/CustomFieldsDisabledHint.tsx +31 -0
- package/src/components/CustomFields/CustomFieldsDisabledHint.uni.driver.ts +30 -0
- package/src/components/CustomFields/CustomFieldsDisabledTooltip.tsx +34 -0
- package/src/components/CustomFields/index.ts +2 -0
- package/src/components/CustomFieldsForm/CustomFieldsForm.tsx +73 -0
- package/src/components/CustomFieldsForm/CustomFieldsForm.uni.driver.ts +11 -0
- package/src/components/CustomFieldsForm/index.ts +1 -0
- package/src/components/CustomFieldsFormContext.ts +17 -0
- package/src/components/CustomFieldsPanel/AddCustomFieldCTAButton.tsx +38 -0
- package/src/components/CustomFieldsPanel/ArchiveFieldModal.tsx +34 -0
- package/src/components/CustomFieldsPanel/ArchiveFieldModal.uni.driver.ts +23 -0
- package/src/components/CustomFieldsPanel/CustomColumnsAddCustomFieldCTAButton.tsx +35 -0
- package/src/components/CustomFieldsPanel/CustomColumnsEditCustomFieldCTAButton.tsx +29 -0
- package/src/components/CustomFieldsPanel/CustomFieldItem.tsx +65 -0
- package/src/components/CustomFieldsPanel/CustomFieldPanel.uni.driver.ts +46 -0
- package/src/components/CustomFieldsPanel/CustomFieldPopover.uni.driver.ts +40 -0
- package/src/components/CustomFieldsPanel/CustomFieldsCollectionPanelEntry.tsx +13 -0
- package/src/components/CustomFieldsPanel/CustomFieldsList.tsx +40 -0
- package/src/components/CustomFieldsPanel/CustomFieldsPanel.tsx +68 -0
- package/src/components/CustomFieldsPanel/CustomFieldsPanelEntry.tsx +9 -0
- package/src/components/CustomFieldsPanel/ManageFieldsCTAButton.tsx +55 -0
- package/src/components/CustomFieldsPanel/ManageFieldsPopoverMenu.tsx +121 -0
- package/src/components/CustomFieldsTransforms/transformCustomCheckboxToWQL.tsx +15 -0
- package/src/components/CustomFieldsTransforms/transformCustomDateFilterToWQL.tsx +21 -0
- package/src/components/CustomFieldsTransforms/transformCustomFiltersToWQL.tsx +61 -0
- package/src/components/CustomFieldsTransforms/transformCustomNumberRangeFilterToWQL.tsx +21 -0
- package/src/components/CustomFieldsTransforms/transformSortToWQL.tsx +14 -0
- package/src/components/CustomFieldsWidget/ActionButtons.tsx +43 -0
- package/src/components/CustomFieldsWidget/CustomFieldsAllNamespacesForm.tsx +88 -0
- package/src/components/CustomFieldsWidget/CustomFieldsEmptyStateOverrides.ts +4 -0
- package/src/components/CustomFieldsWidget/CustomFieldsNamespaceForm.tsx +31 -0
- package/src/components/CustomFieldsWidget/CustomFieldsNamespaceSectionForm.tsx +73 -0
- package/src/components/CustomFieldsWidget/CustomFieldsViewWidget.tsx +145 -0
- package/src/components/CustomFieldsWidget/CustomFieldsViewWidget.uni.driver.ts +164 -0
- package/src/components/CustomFieldsWidget/CustomFieldsViewWidgetContent.tsx +81 -0
- package/src/components/CustomFieldsWidget/CustomFieldsViewWidgetInline.tsx +63 -0
- package/src/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.tsx +181 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidget.tsx +88 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidget.uni.driver.ts +168 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidgetCard.tsx +81 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidgetCommonComponents.tsx +45 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidgetContent.tsx +28 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidgetContentLazy.tsx +37 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidgetInline.tsx +52 -0
- package/src/components/CustomFieldsWidget/CustomFieldsWidgetLazyContent.ts +5 -0
- package/src/components/CustomFieldsWidget/EmptyStateContent.tsx +40 -0
- package/src/components/CustomFieldsWidget/EmptyStateViewContent.tsx +27 -0
- package/src/components/CustomFieldsWidget/ErrorStateContent.tsx +35 -0
- package/src/components/CustomFieldsWidget/OnCustomFieldChange.ts +11 -0
- package/src/components/CustomFieldsWidget/Skeletons.tsx +15 -0
- package/src/components/CustomFieldsWidget/index.ts +3 -0
- package/src/components/CustomFieldsWidget/types.ts +83 -0
- package/src/components/CustomFieldsWidget/useCustomFieldsFormState.ts +32 -0
- package/src/components/CustomFieldsWidget/useCustomFieldsViewWidget.ts +47 -0
- package/src/components/CustomFieldsWidgetContext.ts +17 -0
- package/src/components/DataExtension/CollectionDataExtensionState.ts +215 -0
- package/src/components/DataExtension/DataExtension.ts +77 -0
- package/src/components/DataExtension/index.ts +2 -0
- package/src/components/DataExtension/manageCustomFieldsPageAction.tsx +23 -0
- package/src/components/DateRangeFilter/DateRangeFilter.tsx +149 -0
- package/src/components/DateRangeFilter/index.ts +1 -0
- package/src/components/DateRangePicker/DateRangeFilter.uni.driver.ts +116 -0
- package/src/components/DateRangePicker/DateRangePicker.tsx +154 -0
- package/src/components/DateRangePicker/index.ts +1 -0
- package/src/components/DisabledTooltip/DisabledTooltip.tsx +36 -0
- package/src/components/DisabledTooltip/DisabledTooltipButton.uni.driver.ts +25 -0
- package/src/components/DisabledTooltip/index.ts +1 -0
- package/src/components/DiscardChangesModal.tsx +25 -0
- package/src/components/DragAndDrop/CollectionDragAndDropBI.ts +230 -0
- package/src/components/DragAndDrop/CollectionDragAndDropState.ts +204 -0
- package/src/components/DragAndDrop/DragAndDrop.ts +97 -0
- package/src/components/DragAndDrop/DragAndDrop.uni.driver.ts +223 -0
- package/src/components/DragAndDrop/DragAndDropAnnouncements.tsx +133 -0
- package/src/components/DragAndDrop/DragAndDropCategoriesProps.ts +12 -0
- package/src/components/DragAndDrop/DragAndDropState.ts +587 -0
- package/src/components/DragAndDrop/DragOverlayTestComponent.tsx +48 -0
- package/src/components/DragAndDrop/ReorderModeState.ts +195 -0
- package/src/components/DragAndDrop/TableDragAndDropState.ts +55 -0
- package/src/components/DragAndDrop/hasExceededDistance.ts +22 -0
- package/src/components/DragAndDrop/index.ts +3 -0
- package/src/components/DragAndDrop/initReordeModeState.ts +19 -0
- package/src/components/DragAndDrop/rectIntersection.ts +15 -0
- package/src/components/DragHandle/DragHandle.st.css +27 -0
- package/src/components/DragHandle/DragHandle.st.css.ts +25 -0
- package/src/components/DragHandle/DragHandle.tsx +40 -0
- package/src/components/DropdownFilter/CollectionDropdownFilter.uni.driver.ts +200 -0
- package/src/components/DropdownFilter/selectedItemsLabel.tsx +15 -0
- package/src/components/EditorXLogo.tsx +22 -0
- package/src/components/EmptyState/CollectionEmptyState.tsx +38 -0
- package/src/components/EmptyState/CollectionEmptyState.uni.driver.ts +25 -0
- package/src/components/EmptyState/CollectionNoResultsState.tsx +105 -0
- package/src/components/EmptyState/CollectionNoResultsState.uni.driver.ts +33 -0
- package/src/components/EmptyState/CollectionPremiumEmptyState.tsx +40 -0
- package/src/components/EmptyState/CollectionPremiumEmptyState.uni.driver.ts +27 -0
- package/src/components/EmptyState/EmptyState.uni.driver.ts +24 -0
- package/src/components/EmptyState/EmptyStateBase.tsx +78 -0
- package/src/components/EmptyState/NewItemButton.tsx +25 -0
- package/src/components/EmptyState/PremiumButton.tsx +23 -0
- package/src/components/EntityPage/EntityPage.tsx +82 -0
- package/src/components/EntityPage/EntityPage.uni.driver.ts +55 -0
- package/src/components/EntityPage/EntityPageActionsBar.tsx +24 -0
- package/src/components/EntityPage/EntityPagePlain.st.css +9 -0
- package/src/components/EntityPage/EntityPagePlain.st.css.ts +25 -0
- package/src/components/EntityPage/EntityPagePlain.tsx +34 -0
- package/src/components/EntityPage/EntityPageWrapper.tsx +33 -0
- package/src/components/EntityPage/index.ts +2 -0
- package/src/components/EntityPage/useEntityPageLoadReporting.ts +57 -0
- package/src/components/EntityPageAdditionalContent/EntityPageAdditionalContent.tsx +16 -0
- package/src/components/EntityPageAdditionalContent/index.ts +1 -0
- package/src/components/EntityPageCard/EntityPageCard.tsx +13 -0
- package/src/components/EntityPageCard/index.ts +1 -0
- package/src/components/EntityPageContent/EntityPageContent.tsx +21 -0
- package/src/components/EntityPageContent/index.ts +1 -0
- package/src/components/EntityPageExtensions/EntityPageExtensions.tsx +54 -0
- package/src/components/EntityPageExtensions/index.ts +1 -0
- package/src/components/EntityPageHeader/EntityPageHeader.tsx +17 -0
- package/src/components/EntityPageHeader/index.ts +1 -0
- package/src/components/EntityPageMainContent/EntityPageMainContent.tsx +13 -0
- package/src/components/EntityPageMainContent/index.ts +1 -0
- package/src/components/ErrorBoundary.tsx +21 -0
- package/src/components/ErrorCard/ErrorCard.tsx +71 -0
- package/src/components/ErrorCard/ErrorCard.uni.driver.ts +19 -0
- package/src/components/ErrorCard/index.ts +1 -0
- package/src/components/ErrorState/ErrorState.tsx +89 -0
- package/src/components/ErrorState/LoadingErrorState.tsx +52 -0
- package/src/components/ErrorState/OfflineErrorState.tsx +51 -0
- package/src/components/ErrorState/OfflineIllustration.tsx +63 -0
- package/src/components/ErrorState/ToolbarCollectionErrorState.uni.driver.ts +27 -0
- package/src/components/ErrorState/index.ts +2 -0
- package/src/components/ExpandableSearch.tsx +30 -0
- package/src/components/ExportButton/ExportButton.tsx +107 -0
- package/src/components/ExportButton/ExportButton.uni.driver.ts +18 -0
- package/src/components/ExportButton/ExportButtonModalLayout.tsx +98 -0
- package/src/components/ExportButton/ExportModal.tsx +27 -0
- package/src/components/ExportButton/ExportModal.uni.driver.ts +102 -0
- package/src/components/ExportButton/ExportProps.tsx +115 -0
- package/src/components/ExportButton/ExportStepCancel.tsx +17 -0
- package/src/components/ExportButton/ExportStepConfig.tsx +64 -0
- package/src/components/ExportButton/ExportStepError.tsx +28 -0
- package/src/components/ExportButton/ExportStepProgress.tsx +51 -0
- package/src/components/ExportButton/LinearAbsoluteProgressBar.tsx +50 -0
- package/src/components/ExportButton/RadioGroupSafe.tsx +16 -0
- package/src/components/ExportButton/getExportModalErrorProps.tsx +147 -0
- package/src/components/ExportButton/getExportModalStepProps.tsx +120 -0
- package/src/components/ExportButton/index.ts +3 -0
- package/src/components/ExtendedColumn/ExtendedColumn.tsx +99 -0
- package/src/components/ExtensionMenuItems/ExtensionMenuItems.ts +9 -0
- package/src/components/ExtensionMenuItems/index.ts +1 -0
- package/src/components/Extensions/Extensions.tsx +27 -0
- package/src/components/Extensions/index.ts +1 -0
- package/src/components/Fade/Fade.st.css +11 -0
- package/src/components/Fade/Fade.st.css.ts +25 -0
- package/src/components/Fade/Fade.tsx +38 -0
- package/src/components/Fade/index.ts +1 -0
- package/src/components/FileCard/DownloadButton.tsx +40 -0
- package/src/components/FileCard/FileCard.tsx +37 -0
- package/src/components/FileCard/FileCardList.tsx +32 -0
- package/src/components/FileCard/FileDetails.tsx +51 -0
- package/src/components/FileCard/FilePreview.tsx +66 -0
- package/src/components/FileCard/FilePreviewModal.tsx +69 -0
- package/src/components/FileCard/FileProps.ts +35 -0
- package/src/components/FileCard/Thumbnail.tsx +28 -0
- package/src/components/FileCard/formatBytes.ts +13 -0
- package/src/components/FileCard/icons.tsx +118 -0
- package/src/components/FileCard/resolveFileByMediaType.tsx +86 -0
- package/src/components/FileCard/useDownloadFile.ts +46 -0
- package/src/components/FilterContext.ts +12 -0
- package/src/components/FilterRenderingContext.tsx +13 -0
- package/src/components/FiltersPanel/AddApplyFiltersButton.ts +28 -0
- package/src/components/FiltersPanel/FilterAccordionTitle.tsx +33 -0
- package/src/components/FiltersPanel/FiltersPanel.tsx +118 -0
- package/src/components/FiltersPanel/FiltersPanel.uni.driver.ts +355 -0
- package/src/components/FiltersPanel/FiltersPanelAppliedFiltersSection.tsx +65 -0
- package/src/components/FiltersPanel/FiltersPanelContext.tsx +15 -0
- package/src/components/FiltersPanel/FiltersPanelFooter.tsx +44 -0
- package/src/components/FiltersPanel/FiltersPanelSelectedFiltersSection.tsx +76 -0
- package/src/components/FiltersPanel/FiltersPanelState.ts +36 -0
- package/src/components/FiltersPanel/index.ts +1 -0
- package/src/components/FolderIcon.tsx +23 -0
- package/src/components/FormFieldInput/FormFieldInput.tsx +71 -0
- package/src/components/FormFieldInput/FormFieldInput.uni.driver.ts +6 -0
- package/src/components/FormFieldInput/index.ts +1 -0
- package/src/components/FormPage/FormPage.tsx +24 -0
- package/src/components/FormPage/FormPageActionsBar.tsx +59 -0
- package/src/components/FormPage/FormPageProvider.tsx +37 -0
- package/src/components/FormPage/WidgetsFormProvider.tsx +20 -0
- package/src/components/FormPage/index.ts +4 -0
- package/src/components/FormPageAdditionalContent/FormPageAdditionalContent.tsx +27 -0
- package/src/components/FormPageAdditionalContent/index.ts +1 -0
- package/src/components/FormPageCard/FormPageCard.tsx +49 -0
- package/src/components/FormPageCard/FormPageCard.uni.driver.ts +6 -0
- package/src/components/FormPageCard/index.ts +1 -0
- package/src/components/FormPageContent/FormPageContent.tsx +21 -0
- package/src/components/FormPageContent/FormPageContent.uni.driver.ts +66 -0
- package/src/components/FormPageContent/index.ts +1 -0
- package/src/components/FormPageHeader/FormPageHeader.tsx +41 -0
- package/src/components/FormPageHeader/index.ts +1 -0
- package/src/components/FormPageMainContent/FormPageMainContent.tsx +26 -0
- package/src/components/FormPageMainContent/index.ts +1 -0
- package/src/components/Grid/DebugItemKeyRecycler.tsx +20 -0
- package/src/components/Grid/Grid.scss +3 -0
- package/src/components/Grid/Grid.tsx +150 -0
- package/src/components/Grid/Grid.types.ts +71 -0
- package/src/components/Grid/Grid.uni.driver.ts +488 -0
- package/src/components/Grid/GridCardItem.tsx +151 -0
- package/src/components/Grid/GridContent.tsx +129 -0
- package/src/components/Grid/GridEmptyState.tsx +8 -0
- package/src/components/Grid/GridFolders.tsx +155 -0
- package/src/components/Grid/GridFolders.types.ts +99 -0
- package/src/components/Grid/GridFolders.uni.driver.ts +68 -0
- package/src/components/Grid/GridFoldersFolderSection.tsx +87 -0
- package/src/components/Grid/GridFoldersItemsSection.tsx +69 -0
- package/src/components/Grid/GridFoldersLoadingSection.tsx +32 -0
- package/src/components/Grid/GridFoldersPlaceholderStates.tsx +41 -0
- package/src/components/Grid/GridFoldersSection.tsx +46 -0
- package/src/components/Grid/GridFoldersSection.uni.driver.ts +17 -0
- package/src/components/Grid/GridFoldersSectionsGroup.tsx +87 -0
- package/src/components/Grid/GridItem.tsx +103 -0
- package/src/components/Grid/GridItemBaseProps.ts +51 -0
- package/src/components/Grid/GridLayout.tsx +0 -0
- package/src/components/Grid/GridPlaceholderStates.tsx +43 -0
- package/src/components/Grid/GridSectionHeader.tsx +53 -0
- package/src/components/Grid/GridSingleGridContent.tsx +56 -0
- package/src/components/Grid/RenderItem.ts +11 -0
- package/src/components/Grid/SkeletonGrid.uni.driver.ts +12 -0
- package/src/components/Grid/SupportedCardGalleryItemProps.ts +15 -0
- package/src/components/Grid/index.ts +1 -0
- package/src/components/Grid/renderFolderItem.tsx +86 -0
- package/src/components/Grid/useGridBaseSyncProps.ts +108 -0
- package/src/components/Grid/useGridItemActions.tsx +145 -0
- package/src/components/Grid/useRenderItem.tsx +57 -0
- package/src/components/GridDragAndDropDndKit/DraggableCardOverlay.tsx +46 -0
- package/src/components/GridDragAndDropDndKit/GridDragAndDrop.ts +34 -0
- package/src/components/GridDragAndDropDndKit/GridDragOverlayCardItem.tsx +24 -0
- package/src/components/GridDragAndDropDndKit/GridDraggableCardItem.tsx +142 -0
- package/src/components/GridDragAndDropDndKit/GridSortableContext.tsx +120 -0
- package/src/components/GridDragAndDropDndKit/dndTestEventHandlers.ts +121 -0
- package/src/components/GridDragAndDropDndKit/sortableGridKeyboardCoordinates.ts +159 -0
- package/src/components/GridSections/GridSectionAndRepeater.tsx +49 -0
- package/src/components/GridSections/GridSectionHeader.tsx +40 -0
- package/src/components/GridSections/GridSectionsContent.tsx +84 -0
- package/src/components/GridSections/GridSectionsSectionState.ts +55 -0
- package/src/components/GridSections/GridSectionsSingleSkeletonGrid.tsx +49 -0
- package/src/components/GridSections/GridSectionsState.ts +63 -0
- package/src/components/Heading/Heading.st.css +10 -0
- package/src/components/Heading/Heading.st.css.ts +25 -0
- package/src/components/Heading/Heading.tsx +17 -0
- package/src/components/Heading/index.ts +1 -0
- package/src/components/Illustration/AddItemEmptyState.tsx +38 -0
- package/src/components/Illustration/CollectionPremiumEmptyStateIllustration.tsx +47 -0
- package/src/components/InfiniteScrollLoader/InfiniteScrollLoader.tsx +25 -0
- package/src/components/InfiniteScrollLoader/InfiniteScrollLoaderBase.tsx +32 -0
- package/src/components/InfiniteScrollLoader/InfiniteScrollLoaderBaseProps.ts +6 -0
- package/src/components/InfiniteScrollLoader/SkeletonInfiniteScrollLoader.tsx +33 -0
- package/src/components/InitialLoader/InitialLoader.tsx +28 -0
- package/src/components/InitialLoader/InitialSkeletonLoader.tsx +32 -0
- package/src/components/InitialLoader/index.ts +1 -0
- package/src/components/InitialLoadingConditional.tsx +35 -0
- package/src/components/InputOverflow/InputOverflow.st.css +7 -0
- package/src/components/InputOverflow/InputOverflow.st.css.ts +25 -0
- package/src/components/InputOverflow/InputOverflow.tsx +70 -0
- package/src/components/InputOverflow/index.ts +1 -0
- package/src/components/Kanban/Card.tsx +103 -0
- package/src/components/Kanban/CardActions.tsx +78 -0
- package/src/components/Kanban/CardsSkeleton.tsx +60 -0
- package/src/components/Kanban/Kanban.tsx +113 -0
- package/src/components/Kanban/Kanban.uni.driver.ts +237 -0
- package/src/components/Kanban/KanbanCardActionsHelper.ts +154 -0
- package/src/components/Kanban/KanbanProps.ts +45 -0
- package/src/components/Kanban/Stage.tsx +287 -0
- package/src/components/Kanban/StagesSkeleton.scss +10 -0
- package/src/components/Kanban/StagesSkeleton.tsx +44 -0
- package/src/components/Kanban/index.ts +2 -0
- package/src/components/Kanban/useCardActions.tsx +182 -0
- package/src/components/KanbanDragAndDropDndKit/KanbanCardDragAndDrop.ts +229 -0
- package/src/components/KanbanDragAndDropDndKit/KanbanDragAndDropContext.tsx +102 -0
- package/src/components/KanbanDragAndDropDndKit/KanbanDragOverlay.tsx +56 -0
- package/src/components/KanbanDragAndDropDndKit/KanbanDragOverlayCardItem.tsx +73 -0
- package/src/components/KanbanDragAndDropDndKit/KanbanDraggableCardItem.tsx +122 -0
- package/src/components/ListDragAndDrop/DraggableListItem.tsx +115 -0
- package/src/components/ListDragAndDrop/ListDragAndDrop.ts +9 -0
- package/src/components/ListDragAndDrop/ListDragAndDropContext.tsx +112 -0
- package/src/components/LoadingRow/AILoadingLottiePoster.tsx +29 -0
- package/src/components/LoadingRow/LoadingRow.st.css +47 -0
- package/src/components/LoadingRow/LoadingRow.st.css.ts +25 -0
- package/src/components/LoadingRow/LoadingRowState.ts +63 -0
- package/src/components/LoadingRow/LoadingRowTD.tsx +56 -0
- package/src/components/LoadingRow/aiLoadingLottie.ts +2388 -0
- package/src/components/MagnifyingGlassArt/MagnifyingGlassArt.tsx +136 -0
- package/src/components/MagnifyingGlassArt/index.ts +1 -0
- package/src/components/MaxHeightText/MaxHeightText.st.css +9 -0
- package/src/components/MaxHeightText/MaxHeightText.st.css.ts +25 -0
- package/src/components/MaxHeightText/MaxHeightText.tsx +20 -0
- package/src/components/MaxHeightText/index.ts +1 -0
- package/src/components/MaxLines/MaxLines.st.css +10 -0
- package/src/components/MaxLines/MaxLines.st.css.ts +25 -0
- package/src/components/MaxLines/MaxLines.tsx +79 -0
- package/src/components/MaxLines/index.ts +1 -0
- package/src/components/MaxSelection.tsx +106 -0
- package/src/components/MaybeTooltip.tsx +16 -0
- package/src/components/ModalHeadingBox/ModalHeadingBox.tsx +29 -0
- package/src/components/ModalHeadingBox/index.ts +1 -0
- package/src/components/MoreActions/ExploreAppsModal.tsx +27 -0
- package/src/components/MoreActions/ExploreAppsState.tsx +69 -0
- package/src/components/MoreActions/MoreActions.uni.driver.ts +55 -0
- package/src/components/MoreActions/MoreActionsBase.tsx +170 -0
- package/src/components/MoreActions/MoreActionsElement.ts +8 -0
- package/src/components/MoreActions/MoreActionsIcon.tsx +36 -0
- package/src/components/MoreActions/MoreActionsItem.ts +54 -0
- package/src/components/MoreActions/MoreActionsProps.ts +28 -0
- package/src/components/MoreActions/MoreActionsText.tsx +31 -0
- package/src/components/MoreActions/index.ts +4 -0
- package/src/components/MoreActions/useExploreAppsState.ts +33 -0
- package/src/components/MoreFiltersCTA/MoreFiltersCTA.tsx +34 -0
- package/src/components/MoreFiltersCTA/index.ts +1 -0
- package/src/components/MultiAutoInlineCheckboxFilter/MultiAutoInlineCheckboxFilter.tsx +62 -0
- package/src/components/MultiAutoInlineCheckboxFilter/index.ts +1 -0
- package/src/components/MultiBulkActionToolbar/BulkActionContainer.tsx +12 -0
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css +4 -0
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.ts +25 -0
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.tsx +264 -0
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.uni.driver.ts +73 -0
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbarState.ts +94 -0
- package/src/components/MultiBulkActionToolbar/index.ts +2 -0
- package/src/components/MultiCollectionSupportProvider.ts +17 -0
- package/src/components/MultiInlineCheckbox/MultiInlineCheckbox.tsx +63 -0
- package/src/components/MultiInlineCheckbox/MultiInlineCheckbox.uni.driver.ts +26 -0
- package/src/components/MultiInlineCheckbox/index.ts +1 -0
- package/src/components/MultiInlineCheckboxFilter/MultiInlineCheckboxFilter.tsx +46 -0
- package/src/components/MultiInlineCheckboxFilter/index.ts +1 -0
- package/src/components/MultiLevelSorting/MultiLevelSorting.tsx +11 -0
- package/src/components/MultiLevelSorting/MultiLevelSortingCTAButton.tsx +72 -0
- package/src/components/MultiLevelSorting/MultiLevelSortingCTAButton.uni.driver.ts +14 -0
- package/src/components/MultiLevelSorting/index.ts +1 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingColumnSelect.tsx +62 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingList.tsx +74 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingOrderSelect.tsx +76 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingPanel.tsx +94 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingPanel.uni.driver.ts +105 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingPanelEntry.tsx +17 -0
- package/src/components/MultiLevelSortingPanel/MultiLevelSortingTableListItem.tsx +93 -0
- package/src/components/MultiLevelSortingPanel/index.ts +1 -0
- package/src/components/MultiSelectCheckboxFilter/MultiSelectCheckboxFilter.tsx +25 -0
- package/src/components/MultiSelectCheckboxFilter/index.ts +1 -0
- package/src/components/MultiSelectCheckboxFilterBase/MultiSelectCheckboxFilterBase.tsx +76 -0
- package/src/components/MultiSelectCheckboxFilterBase/index.ts +1 -0
- package/src/components/MultiSelectCollectionFilter/MultiSelectCollectionFilter.tsx +124 -0
- package/src/components/MultiSelectCollectionFilter/index.ts +1 -0
- package/src/components/MultiSelectFilterBase/MultiSelectFilterBase.tsx +111 -0
- package/src/components/MultiSelectFilterBase/index.ts +1 -0
- package/src/components/NavigationModal/NavigationModal.tsx +29 -0
- package/src/components/NavigationModal/index.ts +1 -0
- package/src/components/NestedTable/ExpandCollapseAllButton.uni.driver.ts +17 -0
- package/src/components/NestedTable/ExpandCollapseButton.uni.driver.ts +19 -0
- package/src/components/NestedTable/MainCellLayout.tsx +62 -0
- package/src/components/NestedTable/NestedTable.tsx +139 -0
- package/src/components/NestedTable/NestedTable.uni.driver.ts +265 -0
- package/src/components/NestedTable/NestedTableActionCell.tsx +44 -0
- package/src/components/NestedTable/NestedTableContent.tsx +41 -0
- package/src/components/NestedTable/NestedTableFlatModeMainCell.tsx +60 -0
- package/src/components/NestedTable/NestedTableFlatModeMainCell.uni.driver.ts +15 -0
- package/src/components/NestedTable/NestedTableMainColumnTitle.tsx +59 -0
- package/src/components/NestedTable/NestedTableParentCell.tsx +111 -0
- package/src/components/NestedTable/NestedTableParentCell.uni.driver.ts +35 -0
- package/src/components/NestedTable/NestedTablePlaceholderStatesRow.st.css +4 -0
- package/src/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.ts +25 -0
- package/src/components/NestedTable/NestedTablePlaceholderStatesRow.tsx +58 -0
- package/src/components/NestedTable/NestedTableRow.st.css +33 -0
- package/src/components/NestedTable/NestedTableRow.st.css.ts +25 -0
- package/src/components/NestedTable/NestedTableRow.tsx +116 -0
- package/src/components/NestedTable/NestedTableRow.uni.driver.ts +31 -0
- package/src/components/NestedTable/NestedTableRowPlaceholderStates.tsx +63 -0
- package/src/components/NestedTable/NestedTableRowPlaceholderStates.uni.driver.ts +23 -0
- package/src/components/NestedTable/NestedTableWSRTable.tsx +198 -0
- package/src/components/NestedTable/index.ts +1 -0
- package/src/components/NestedTable/useFlatModeColumns.tsx +73 -0
- package/src/components/NestedTable/useModeTableProps.tsx +111 -0
- package/src/components/NestedTable/useNestedModeColumns.tsx +98 -0
- package/src/components/NestedTable/useNestedTableActionCell.tsx +55 -0
- package/src/components/NestedTableDragAndDrop/DepthLimitMessage.tsx +37 -0
- package/src/components/NestedTableDragAndDrop/DragAndDropDisabledMessage.tsx +25 -0
- package/src/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css +12 -0
- package/src/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.ts +25 -0
- package/src/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.tsx +26 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDrop.ts +35 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropContext.tsx +178 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropOverlay.tsx +61 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropOverlayPopover.tsx +44 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css +7 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.ts +25 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.tsx +63 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropState.ts +556 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragHandle.tsx +32 -0
- package/src/components/NestedTableDragAndDrop/NestedTableDragOverlay.uni.driver.ts +30 -0
- package/src/components/NestedTableDragAndDrop/NestedTableGhostIndentationCell.tsx +63 -0
- package/src/components/NestedTableDragAndDrop/NestedTableGhostRow.uni.driver.ts +30 -0
- package/src/components/NestedTableDragAndDrop/createUseIsDropDisabled.ts +128 -0
- package/src/components/NestedTableDragAndDrop/validateNestedTableDragAndDropProps.ts +29 -0
- package/src/components/NumberRangeFilter/NumberRangeFilter.tsx +78 -0
- package/src/components/NumberRangeFilter/index.ts +2 -0
- package/src/components/NumberRangeFilter/useNumberRangeFilter.ts +243 -0
- package/src/components/PageErrorState/PageErrorState.tsx +60 -0
- package/src/components/PageErrorState/PageErrorState.uni.driver.ts +16 -0
- package/src/components/PageErrorState/PageErrorStateIllustration.tsx +32 -0
- package/src/components/PageErrorState/index.ts +1 -0
- package/src/components/PageGridInfiniteScrollLoader.tsx +36 -0
- package/src/components/PageInfiniteScrollLoader.tsx +29 -0
- package/src/components/PageSubTitle/PageSubTitle.tsx +72 -0
- package/src/components/PageSubTitle/PageSubTitle.uni.driver.ts +22 -0
- package/src/components/PageSubTitle/index.ts +1 -0
- package/src/components/PageWrapper/InfiniteScrollPage.tsx +39 -0
- package/src/components/PageWrapper/PageWrapper.tsx +10 -0
- package/src/components/PageWrapper/PageWrapper.uni.driver.ts +13 -0
- package/src/components/PageWrapper/PageWrapperBase.tsx +79 -0
- package/src/components/PageWrapper/index.ts +1 -0
- package/src/components/PaginationTable/PaginationTable.tsx +49 -0
- package/src/components/PaginationTable/index.ts +1 -0
- package/src/components/PartialFunctionComponent.ts +6 -0
- package/src/components/Picker/Picker.tsx +124 -0
- package/src/components/Picker/Picker.uni.driver.ts +108 -0
- package/src/components/Picker/index.ts +1 -0
- package/src/components/PickerContent/PickerContent.st.css +3 -0
- package/src/components/PickerContent/PickerContent.st.css.ts +25 -0
- package/src/components/PickerContent/PickerContent.tsx +73 -0
- package/src/components/PickerContent/PickerContentAdditionalStep.st.css +14 -0
- package/src/components/PickerContent/PickerContentAdditionalStep.st.css.ts +25 -0
- package/src/components/PickerContent/PickerContentAdditionalStep.tsx +222 -0
- package/src/components/PickerContent/PickerContentBaseWrapped.tsx +29 -0
- package/src/components/PickerContent/PickerContentItemsSelection.tsx +330 -0
- package/src/components/PickerContent/PickerContentProvider.tsx +52 -0
- package/src/components/PickerContent/PickerContentV2.tsx +38 -0
- package/src/components/PickerContent/PickerContentWrapped.tsx +133 -0
- package/src/components/PickerContent/SelectAllCheckbox.tsx +57 -0
- package/src/components/PickerContent/index.ts +2 -0
- package/src/components/PickerEmptyState/PickerEmptyState.tsx +107 -0
- package/src/components/PickerEmptyState/PickerEmptyStateContainer.tsx +59 -0
- package/src/components/PickerEmptyState/index.ts +1 -0
- package/src/components/PickerListContent/PickerListContent.tsx +126 -0
- package/src/components/PickerListContent/index.ts +1 -0
- package/src/components/PickerListItemProps.ts +15 -0
- package/src/components/PickerModal/PickerModal.tsx +133 -0
- package/src/components/PickerModal/PickerModal.uni.driver.ts +216 -0
- package/src/components/PickerModal/PickerModalLayout.uni.driver.ts +118 -0
- package/src/components/PickerModal/index.ts +1 -0
- package/src/components/PickerModalOpenButton/PickerModalOpenButton.tsx +40 -0
- package/src/components/PickerModalOpenButton/index.ts +1 -0
- package/src/components/PickerModalSplash/PickerModalSplash.tsx +95 -0
- package/src/components/PickerModalSplash/index.ts +1 -0
- package/src/components/PickerSelectorListContent/PickerSelectorListContent.tsx +136 -0
- package/src/components/PickerSelectorListContent/index.ts +1 -0
- package/src/components/PickerStandalone/PickerStandalone.tsx +183 -0
- package/src/components/PickerStandalone/PickerStandalone.uni.driver.ts +216 -0
- package/src/components/PickerStandalone/PickerStandaloneTableListItem.tsx +95 -0
- package/src/components/PickerStandalone/index.ts +1 -0
- package/src/components/PickerStandaloneLayout/PickerStandaloneLayout.tsx +72 -0
- package/src/components/PickerStandaloneLayout/PickerStandaloneLayout.uni.driver.ts +40 -0
- package/src/components/PickerStandaloneLayout/PickerStandaloneLayoutFooter.tsx +55 -0
- package/src/components/PickerStandaloneLayout/PickerStandaloneLayoutHeader.tsx +177 -0
- package/src/components/PickerStandaloneLayout/PickerStandaloneLayoutTitles.tsx +95 -0
- package/src/components/PickerStandaloneLayout/index.ts +1 -0
- package/src/components/PickerSubheader/PickerSubheader.tsx +41 -0
- package/src/components/PickerSubheader/PickerSubheader.uni.driver.ts +10 -0
- package/src/components/PickerSubheader/index.ts +1 -0
- package/src/components/PickerTableListItem/PickerTableListItem.st.css +3 -0
- package/src/components/PickerTableListItem/PickerTableListItem.st.css.ts +25 -0
- package/src/components/PickerTableListItem/PickerTableListItem.tsx +103 -0
- package/src/components/PickerTableListItem/PickerTableListItem.uni.driver.ts +15 -0
- package/src/components/PickerTableListItem/index.ts +1 -0
- package/src/components/PlaceholderStates/PlaceholderStatesBase.tsx +105 -0
- package/src/components/PrimaryActions/PrimaryActions.tsx +78 -0
- package/src/components/PrimaryActions/index.ts +1 -0
- package/src/components/PrimaryPageButton/PrimaryPageButton.tsx +65 -0
- package/src/components/PrimaryPageButton/index.ts +1 -0
- package/src/components/QuerySearch.tsx +35 -0
- package/src/components/RadioGroupFilter/RadioGroupFilter.tsx +104 -0
- package/src/components/RadioGroupFilter/RadioGroupFilter.uni.driver.ts +27 -0
- package/src/components/RadioGroupFilter/index.ts +1 -0
- package/src/components/RequestId/RequestId.tsx +150 -0
- package/src/components/RequestId/RequestId.uni.driver.ts +31 -0
- package/src/components/RequestId/assets/locale/messages_cs.json +5 -0
- package/src/components/RequestId/assets/locale/messages_da.json +5 -0
- package/src/components/RequestId/assets/locale/messages_de.json +5 -0
- package/src/components/RequestId/assets/locale/messages_en.json +5 -0
- package/src/components/RequestId/assets/locale/messages_es.json +5 -0
- package/src/components/RequestId/assets/locale/messages_fr.json +5 -0
- package/src/components/RequestId/assets/locale/messages_hi.json +5 -0
- package/src/components/RequestId/assets/locale/messages_id.json +5 -0
- package/src/components/RequestId/assets/locale/messages_it.json +5 -0
- package/src/components/RequestId/assets/locale/messages_ja.json +5 -0
- package/src/components/RequestId/assets/locale/messages_ko.json +5 -0
- package/src/components/RequestId/assets/locale/messages_nl.json +5 -0
- package/src/components/RequestId/assets/locale/messages_no.json +5 -0
- package/src/components/RequestId/assets/locale/messages_pl.json +5 -0
- package/src/components/RequestId/assets/locale/messages_pt.json +5 -0
- package/src/components/RequestId/assets/locale/messages_ru.json +5 -0
- package/src/components/RequestId/assets/locale/messages_sv.json +5 -0
- package/src/components/RequestId/assets/locale/messages_th.json +5 -0
- package/src/components/RequestId/assets/locale/messages_tr.json +5 -0
- package/src/components/RequestId/assets/locale/messages_uk.json +5 -0
- package/src/components/RequestId/assets/locale/messages_vi.json +5 -0
- package/src/components/RequestId/assets/locale/messages_zh.json +5 -0
- package/src/components/RequestId/index.ts +1 -0
- package/src/components/Responsive/HorizontalAvailableSpaceBox.tsx +32 -0
- package/src/components/Responsive/HorizontalOverflowBox.tsx +26 -0
- package/src/components/ResponsiveButton/ResponsiveButton.tsx +72 -0
- package/src/components/ResponsiveButton/ResponsiveButton.uni.driver.ts +24 -0
- package/src/components/Rotate/Rotate.tsx +45 -0
- package/src/components/Rotate/index.ts +1 -0
- package/src/components/Router/PatternsReactRoute.tsx +9 -0
- package/src/components/Router/PatternsReactRouter.tsx +65 -0
- package/src/components/Router/createPlatformizedNavigator.tsx +27 -0
- package/src/components/Router/index.ts +3 -0
- package/src/components/Router/types.ts +21 -0
- package/src/components/Router/usePatternsNavigate.ts +20 -0
- package/src/components/ScrollableContent/ScrollableContent.st.css +15 -0
- package/src/components/ScrollableContent/ScrollableContent.st.css.ts +25 -0
- package/src/components/ScrollableContent/ScrollableContent.tsx +31 -0
- package/src/components/ScrollableContent/index.ts +1 -0
- package/src/components/SecondaryActions/SecondaryActions.tsx +77 -0
- package/src/components/SecondaryActions/index.ts +1 -0
- package/src/components/SettingsPage/SettingsPage.tsx +56 -0
- package/src/components/SettingsPage/SettingsPage.uni.driver.ts +16 -0
- package/src/components/SettingsPage/SettingsPageActionsBar.tsx +23 -0
- package/src/components/SettingsPage/SettingsPagePlain.tsx +26 -0
- package/src/components/SettingsPage/SettingsPageWrapper.tsx +35 -0
- package/src/components/SettingsPageAdditionalContent/SettingsPageAdditionalContent.tsx +16 -0
- package/src/components/SettingsPageAdditionalContent/index.ts +1 -0
- package/src/components/SettingsPageCard/SettingsPageCard.tsx +13 -0
- package/src/components/SettingsPageCard/index.ts +1 -0
- package/src/components/SettingsPageContent/SettingsPageContent.tsx +21 -0
- package/src/components/SettingsPageContent/index.ts +1 -0
- package/src/components/SettingsPageHeader/SettingsPageHeader.tsx +17 -0
- package/src/components/SettingsPageHeader/index.ts +1 -0
- package/src/components/SettingsPageMainContent/SettingsPageMainContent.tsx +14 -0
- package/src/components/SettingsPageMainContent/index.ts +1 -0
- package/src/components/SidePanelModal/SidePanelModal.tsx +109 -0
- package/src/components/SidePanelModal/SidePanelModalItem.tsx +34 -0
- package/src/components/SidePanelModal/index.ts +1 -0
- package/src/components/SingleSelectFilter/SingleSelectFilter.tsx +138 -0
- package/src/components/SingleSelectFilter/index.ts +1 -0
- package/src/components/SingleSelectFilterBase/SingleSelectFilterBase.tsx +83 -0
- package/src/components/SingleSelectFilterBase/index.ts +1 -0
- package/src/components/SkeletonCard/SkeletonCard.st.css +3 -0
- package/src/components/SkeletonCard/SkeletonCard.st.css.ts +25 -0
- package/src/components/SkeletonCard/SkeletonCard.tsx +42 -0
- package/src/components/SkeletonCard/SkeletonCard.uni.driver.ts +13 -0
- package/src/components/SkeletonCard/index.ts +1 -0
- package/src/components/SkeletonGrid/SkeletonCardByImagePlacement.tsx +22 -0
- package/src/components/SkeletonGrid/SkeletonGrid.tsx +51 -0
- package/src/components/SkeletonGrid/SkeletonSideImageCard.tsx +27 -0
- package/src/components/SkeletonGrid/SkeletonTopImageCard.tsx +48 -0
- package/src/components/SkeletonGrid/index.ts +1 -0
- package/src/components/SlidingModal/SlidingModal.st.css +11 -0
- package/src/components/SlidingModal/SlidingModal.st.css.ts +25 -0
- package/src/components/SlidingModal/SlidingModal.tsx +134 -0
- package/src/components/SlidingModal/SlidingModal.uni.driver.ts +11 -0
- package/src/components/SlidingModal/index.ts +1 -0
- package/src/components/Splash/Splash.tsx +44 -0
- package/src/components/Splash/Splash.uni.driver.ts +24 -0
- package/src/components/Splash/index.ts +1 -0
- package/src/components/SummaryBar/SummaryBar.tsx +151 -0
- package/src/components/SummaryBar/SummaryBar.uni.driver.ts +52 -0
- package/src/components/SummaryBar/index.ts +1 -0
- package/src/components/TabTotal/TabTotalComponentType.ts +4 -0
- package/src/components/TabTotal/TabTotalCounterBadge.tsx +33 -0
- package/src/components/TabTotal/TabTotalDropdownOption.tsx +35 -0
- package/src/components/TabTotal/TabTotalParens.tsx +38 -0
- package/src/components/TabTotal/index.ts +3 -0
- package/src/components/TabTotal/useFilterValueTotalState.ts +47 -0
- package/src/components/Table/Table.tsx +52 -0
- package/src/components/Table/Table.uni.driver.ts +582 -0
- package/src/components/Table/TableBase.tsx +88 -0
- package/src/components/Table/TableBaseRow.tsx +39 -0
- package/src/components/Table/TableCompat.tsx +37 -0
- package/src/components/Table/TableV2.tsx +16 -0
- package/src/components/Table/TableVirtual.tsx +76 -0
- package/src/components/Table/getVirtualTableProps.ts +29 -0
- package/src/components/Table/index.ts +3 -0
- package/src/components/Table/useTableBaseRow.tsx +31 -0
- package/src/components/Table/useTableSyncProps.ts +66 -0
- package/src/components/TableDragAndDrop.ts +40 -0
- package/src/components/TableDragAndDropContext/TableDragAndDropContext.tsx +132 -0
- package/src/components/TableDragAndDropContext/createUseIsDropDisabled.ts +15 -0
- package/src/components/TableDragAndDropContext/index.ts +4 -0
- package/src/components/TableFolders/TableFolders.tsx +89 -0
- package/src/components/TableFolders/TableFolders.types.tsx +6 -0
- package/src/components/TableFolders/TableFolders.uni.driver.ts +74 -0
- package/src/components/TableFolders/TableFoldersContent.tsx +328 -0
- package/src/components/TableFolders/TableFoldersInfiniteScroll.tsx +42 -0
- package/src/components/TableFolders/TableFoldersLayout.tsx +42 -0
- package/src/components/TableFolders/index.ts +1 -0
- package/src/components/TableFolders/useOrFolderActionCellColumn.ts +78 -0
- package/src/components/TableFolders/useTableFoldersSyncProps.ts +45 -0
- package/src/components/TableGridSwitch/TableGridSwitch.tsx +110 -0
- package/src/components/TableGridSwitch/TableGridSwitch.uni.driver.ts +45 -0
- package/src/components/TableGridSwitch/TableGridSwitchDragAndDrop.ts +7 -0
- package/src/components/TableGridSwitchButton/TableGridSwitchButton.tsx +49 -0
- package/src/components/TableGridSwitchButton/TableGridSwitchButton.uni.driver.ts +17 -0
- package/src/components/TableGridSwitchButton/index.ts +1 -0
- package/src/components/TableGridSwitchFolders/TableGridSwitchFolders.tsx +84 -0
- package/src/components/TableGridSwitchFolders/TableGridSwitchFolders.uni.driver.ts +50 -0
- package/src/components/TablePlaceholderStates/TablePlaceholderStates.tsx +45 -0
- package/src/components/TableSections/TableSectionRow.tsx +84 -0
- package/src/components/TableSections/TableSections.tsx +61 -0
- package/src/components/TableSections/TableSectionsState.ts +128 -0
- package/src/components/TableSections/index.ts +5 -0
- package/src/components/TableSections/useTableSectionRow.tsx +35 -0
- package/src/components/TableSkeleton/TableSkeleton.tsx +106 -0
- package/src/components/TableTopNotification/ScrollAwayPushStrategy.ts +50 -0
- package/src/components/TableTopNotification/ScrollAwayScheduleStrategy.ts +81 -0
- package/src/components/TableTopNotification/TableTopNotification.tsx +127 -0
- package/src/components/TableTopNotification/TableTopNotification.uni.driver.ts +18 -0
- package/src/components/TableTopNotification/TableTopNotificationState.ts +75 -0
- package/src/components/TableTopNotification/TopNotificationRenderProp.ts +9 -0
- package/src/components/TableTopNotification/index.ts +2 -0
- package/src/components/TabsFilter/TabTitle.tsx +64 -0
- package/src/components/TabsFilter/TabsDefault.tsx +58 -0
- package/src/components/TabsFilter/TabsDropdown.tsx +106 -0
- package/src/components/TabsFilter/TabsFilter.st.css +3 -0
- package/src/components/TabsFilter/TabsFilter.st.css.ts +25 -0
- package/src/components/TabsFilter/TabsFilter.tsx +225 -0
- package/src/components/TabsFilter/TabsFilter.uni.driver.ts +86 -0
- package/src/components/TabsFilter/TabsFilterState.ts +93 -0
- package/src/components/TabsFilter/TabsResponsiveState.ts +122 -0
- package/src/components/TabsFilter/index.ts +1 -0
- package/src/components/TabsFilter/types.ts +13 -0
- package/src/components/Tags/BulkAssignTagsPopover/AsyncJobProgressModal.tsx +52 -0
- package/src/components/Tags/BulkAssignTagsPopover/AsyncJobProgressModal.uni.driver.ts +31 -0
- package/src/components/Tags/BulkAssignTagsPopover/BulkAssignTagsPopover.tsx +133 -0
- package/src/components/Tags/BulkAssignTagsPopover/BulkAssignTagsPopover.uni.driver.ts +133 -0
- package/src/components/Tags/BulkAssignTagsPopover/CreateTagButton.tsx +40 -0
- package/src/components/Tags/BulkAssignTagsPopover/EmptyState.tsx +85 -0
- package/src/components/Tags/BulkAssignTagsPopover/Footer.tsx +67 -0
- package/src/components/Tags/BulkAssignTagsPopover/index.ts +1 -0
- package/src/components/Tags/ManageTags/CollectionManageTagsModal.tsx +13 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/List/TagListItemEditable.tsx +62 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/List/TagListItemView.tsx +94 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/List/TagsListItem.tsx +27 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css +3 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.ts +25 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.tsx +212 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.uni.driver.ts +118 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsNotification.tsx +80 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/NewTagItemEditable.tsx +31 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/TagItemEditable.tsx +81 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/index.ts +2 -0
- package/src/components/Tags/ManageTags/index.ts +1 -0
- package/src/components/Tags/Tags.tsx +66 -0
- package/src/components/Tags/TagsBulkAssignUtils.ts +59 -0
- package/src/components/Tags/TagsFolders.tsx +12 -0
- package/src/components/Tags/index.ts +3 -0
- package/src/components/Tags/manageTagsPageAction.tsx +23 -0
- package/src/components/Tags/types.ts +10 -0
- package/src/components/Tags/useTagsBulkAssignFoldersUtils.ts +45 -0
- package/src/components/Tags/useTagsBulkAssignUtils.ts +31 -0
- package/src/components/TagsAssignButton/TagsAssignButton.tsx +54 -0
- package/src/components/TagsAssignButton/TagsAssignButton.uni.driver.ts +14 -0
- package/src/components/TagsAssignButton/index.ts +1 -0
- package/src/components/TagsColumn/TagsColumn.tsx +32 -0
- package/src/components/TagsColumn/TagsColumnContent.tsx +36 -0
- package/src/components/TagsColumn/index.ts +1 -0
- package/src/components/TagsFilter/TagsFilter.tsx +61 -0
- package/src/components/TagsFilter/index.ts +2 -0
- package/src/components/TagsFilter/tagsFilterBuilder.tsx +53 -0
- package/src/components/TagsWidget/TagsWidget.tsx +212 -0
- package/src/components/TagsWidget/TagsWidget.uni.driver.ts +113 -0
- package/src/components/TagsWidget/TagsWidgetContent.tsx +232 -0
- package/src/components/TagsWidget/index.ts +1 -0
- package/src/components/TagsWidgetContext.ts +14 -0
- package/src/components/TextBreadcrumbs.tsx +35 -0
- package/src/components/TextWidthLoader.tsx +18 -0
- package/src/components/ToolbarCollection/ToolbarCollection.tsx +390 -0
- package/src/components/ToolbarCollection/checkConflictingToolbarProps.ts +53 -0
- package/src/components/ToolbarCollection/index.ts +1 -0
- package/src/components/ToolbarCollection/useToolbarCollectionSyncProps.ts +192 -0
- package/src/components/ToolbarCollectionContentAutoSizer/ContainerRectDebug.tsx +51 -0
- package/src/components/ToolbarCollectionContentAutoSizer/ToolbarCollectionContentAutoSizer.tsx +67 -0
- package/src/components/ToolbarCollectionContentAutoSizer/index.ts +1 -0
- package/src/components/ToolbarCollectionContext.ts +18 -0
- package/src/components/ToolbarItem/ToolbarItem.st.css +3 -0
- package/src/components/ToolbarItem/ToolbarItem.st.css.ts +25 -0
- package/src/components/ToolbarItem/ToolbarItem.tsx +11 -0
- package/src/components/ToolbarItemBox/ToolbarItemBox.st.css +13 -0
- package/src/components/ToolbarItemBox/ToolbarItemBox.st.css.ts +25 -0
- package/src/components/ToolbarItemBox/ToolbarItemBox.tsx +38 -0
- package/src/components/ToolbarItemBox/index.ts +1 -0
- package/src/components/ToolbarTitle/ToolbarTitle.tsx +102 -0
- package/src/components/ToolbarTitle/index.ts +1 -0
- package/src/components/Trans/Trans.tsx +11 -0
- package/src/components/Trans/index.tsx +1 -0
- package/src/components/VirtualGridRepeater/ForceRenderIndexes.tsx +76 -0
- package/src/components/VirtualGridRepeater/GridForceRenderIndexes.tsx +37 -0
- package/src/components/VirtualGridRepeater/GridState.ts +43 -0
- package/src/components/VirtualGridRepeater/RenderItem.ts +12 -0
- package/src/components/VirtualGridRepeater/TableForceRenderIndexes.tsx +54 -0
- package/src/components/VirtualGridRepeater/VirtualGridItem.tsx +56 -0
- package/src/components/VirtualGridRepeater/VirtualGridRepeater.tsx +22 -0
- package/src/components/VirtualGridRepeater/VirtualGridRepeaterBase.tsx +125 -0
- package/src/components/VirtualGridRepeater/VirtualGridRepeaterContext.ts +15 -0
- package/src/components/VirtualGridRepeater/VirtualGridRepeaterState.ts +164 -0
- package/src/components/VirtualGridRepeater/VirtualGridStateContext.ts +16 -0
- package/src/components/VirtualGridRepeater/VirtualInternalMemoItem.tsx +66 -0
- package/src/components/VirtualGridRepeater/VirtualItem.tsx +6 -0
- package/src/components/VirtualGridRepeater/VirtualTableRepeater.tsx +62 -0
- package/src/components/VirtualGridRepeater/VirtualTableRow.tsx +35 -0
- package/src/components/VirtualGridRepeater/VirtualTableRowMutated.tsx +75 -0
- package/src/components/VirtualGridRepeater/VirtualTableRowMutatedState.ts +120 -0
- package/src/components/VisuallyHidden.tsx +15 -0
- package/src/components/WixLogo.tsx +24 -0
- package/src/components/WixPatternsModalsContainer.tsx +91 -0
- package/src/components/WixPatternsTestProvider.tsx +36 -0
- package/src/components/assertComponentType.ts +77 -0
- package/src/components/collectionStateProps.ts +8 -0
- package/src/components/common.st.css +9 -0
- package/src/components/common.st.css.ts +25 -0
- package/src/components/createChildSlot.ts +29 -0
- package/src/components/deleteSecondaryAction/deleteSecondaryAction.tsx +48 -0
- package/src/components/deleteSecondaryAction/index.ts +1 -0
- package/src/components/index.ts +13 -0
- package/src/components/isValidElement.ts +15 -0
- package/src/components/uniDriverFactory.ts +3 -0
- package/src/components/unidriver.ts +5 -0
- package/src/components/useCollectionReachBottom.tsx +73 -0
- package/src/components/usePageButtonBiParams.ts +29 -0
- package/src/components/useWidgetPageStatus.tsx +17 -0
- package/src/container/index.ts +1 -0
- package/src/container/useCairoTranslations.ts +7 -0
- package/src/createContext.ts +33 -0
- package/src/dashboard/WixPatternsDashboardBaseProvider.tsx +124 -0
- package/src/dashboard/WixPatternsDashboardProvider.tsx +44 -0
- package/src/dashboard/WixPatternsDashboardProviderInternal.tsx +28 -0
- package/src/dashboard/WixPatternsDashboardTestProvider.tsx +74 -0
- package/src/dashboard/WixPatternsProvider.tsx +13 -0
- package/src/dashboard/WixPatternsProviderInternal.tsx +12 -0
- package/src/dashboard/getInstanceJwtData.ts +17 -0
- package/src/dashboard/useEnvironment.ts +15 -0
- package/src/docs-types.ts +35 -0
- package/src/essentials/WixPatternsEssentialsProvider.tsx +31 -0
- package/src/essentials/buildWixPatternsEssentials.ts +49 -0
- package/src/essentials/usePickerModal.ts +67 -0
- package/src/essentials/warmUpPickerStandalone.ts +11 -0
- package/src/essentials/withWixPatternsProvider.tsx +14 -0
- package/src/exports/alpha.ts +1 -0
- package/src/exports/bm.ts +5 -0
- package/src/exports/components.ts +1 -0
- package/src/exports/core.ts +1 -0
- package/src/exports/essentials.ts +10 -0
- package/src/exports/form.ts +8 -0
- package/src/exports/giza.ts +6 -0
- package/src/exports/history.ts +1 -0
- package/src/exports/mobx.ts +1 -0
- package/src/exports/nextjs.ts +1 -0
- package/src/exports/page.ts +3 -0
- package/src/exports/provider/index.ts +3 -0
- package/src/exports/provider/internal.ts +3 -0
- package/src/exports/router/index.ts +1 -0
- package/src/exports/testkit/backend.ts +1 -0
- package/src/exports/testkit/bm.ts +1 -0
- package/src/exports/testkit/enzyme.ts +1 -0
- package/src/exports/testkit/index.ts +12 -0
- package/src/exports/testkit/internal.ts +1 -0
- package/src/exports/testkit/jsdom.ts +1 -0
- package/src/exports/testkit/playwright.ts +1 -0
- package/src/exports/testkit/puppeteer.ts +1 -0
- package/src/exports/testkit/unidriver.ts +7 -0
- package/src/exports/utils/index.ts +3 -0
- package/src/exports/utils/react.ts +1 -0
- package/src/exports/version.ts +1 -0
- package/src/external-types.d.ts +8 -0
- package/src/external-types.tests.d.ts +8 -0
- package/src/fields/BaseInput/BaseInput.ts +16 -0
- package/src/fields/BaseInput/index.ts +1 -0
- package/src/fields/Checkbox/Checkbox.tsx +30 -0
- package/src/fields/Checkbox/index.ts +1 -0
- package/src/fields/DateInput/DateInput.tsx +74 -0
- package/src/fields/DateInput/index.ts +1 -0
- package/src/fields/DateTime/DateTime.tsx +170 -0
- package/src/fields/DateTime/index.ts +1 -0
- package/src/fields/Dropdown/Dropdown.tsx +36 -0
- package/src/fields/Dropdown/index.ts +1 -0
- package/src/fields/Field/Field.tsx +16 -0
- package/src/fields/Field/Field.uni.driver.ts +247 -0
- package/src/fields/Field/index.ts +1 -0
- package/src/fields/LongText/LongText.tsx +37 -0
- package/src/fields/LongText/index.ts +1 -0
- package/src/fields/Number/Number.tsx +26 -0
- package/src/fields/Number/index.ts +1 -0
- package/src/fields/ShortText/ShortText.tsx +37 -0
- package/src/fields/ShortText/index.ts +1 -0
- package/src/fields/Url/Url.tsx +72 -0
- package/src/fields/Url/index.ts +1 -0
- package/src/fields/dataHooks.ts +4 -0
- package/src/fields/index.ts +8 -0
- package/src/fields/useTextInput.ts +34 -0
- package/src/giza/WixPatternsGizaProvider.tsx +75 -0
- package/src/giza/buildWixPatternsEssentials.ts +61 -0
- package/src/giza/index.ts +2 -0
- package/src/giza/usePickerModal.ts +70 -0
- package/src/hooks/CollectionFoldersBaseConfig.ts +13 -0
- package/src/hooks/customModalContent.ts +8 -0
- package/src/hooks/index.ts +23 -0
- package/src/hooks/listItem.ts +18 -0
- package/src/hooks/useAmbassador/index.ts +2 -0
- package/src/hooks/useAmbassador/useAmbassadorGrid.ts +25 -0
- package/src/hooks/useAmbassador/useAmbassadorTable.ts +26 -0
- package/src/hooks/useAutoScrollOnLoad.tsx +35 -0
- package/src/hooks/useBuildAccordionItems.tsx +108 -0
- package/src/hooks/useBuildOption.ts +96 -0
- package/src/hooks/useCollectionComponentBaseParams.ts +11 -0
- package/src/hooks/useCollectionFilterInitialFetchTiming.ts +40 -0
- package/src/hooks/useCollectionOptions.tsx +81 -0
- package/src/hooks/useCollectionPageChild/index.ts +1 -0
- package/src/hooks/useCollectionPageChild/useCollectionPageChild.tsx +38 -0
- package/src/hooks/useColumnsSyncProps.ts +93 -0
- package/src/hooks/useCreateNestedOptimisticActions.ts +31 -0
- package/src/hooks/useCreateWSRColumnBase.ts +56 -0
- package/src/hooks/useCustomFieldsWidget.ts +53 -0
- package/src/hooks/useDateRangeFilterState.ts +31 -0
- package/src/hooks/useDropdownPlaceholder.ts +62 -0
- package/src/hooks/useDropdownSelectFilterState.ts +29 -0
- package/src/hooks/useEmptyStateTexts.ts +40 -0
- package/src/hooks/useEntity.ts +9 -0
- package/src/hooks/useEntityPage.ts +30 -0
- package/src/hooks/useEntityPageChild/index.ts +1 -0
- package/src/hooks/useEntityPageChild/useEntityPageChild.tsx +41 -0
- package/src/hooks/useExtensionMenuItems.tsx +30 -0
- package/src/hooks/useFilterCollection/index.ts +1 -0
- package/src/hooks/useFilterCollection/useFilterCollection.ts +87 -0
- package/src/hooks/useFilterCollectionStates.tsx +123 -0
- package/src/hooks/useFixMissingContactsViews.ts +95 -0
- package/src/hooks/useGridCollection.ts +32 -0
- package/src/hooks/useGridFolders.ts +49 -0
- package/src/hooks/useIsMobile.ts +10 -0
- package/src/hooks/useIsScrollTop.ts +20 -0
- package/src/hooks/useItemsSelectionFilter/index.ts +5 -0
- package/src/hooks/useItemsSelectionFilter/useItemsSelectionFilter.ts +160 -0
- package/src/hooks/useKanban.ts +83 -0
- package/src/hooks/useMigrateOrdersViews.ts +97 -0
- package/src/hooks/useNestedTable.ts +93 -0
- package/src/hooks/useOptionalCachedState.ts +93 -0
- package/src/hooks/usePageHeader.ts +27 -0
- package/src/hooks/usePageHeaderNew.ts +26 -0
- package/src/hooks/usePickerContent/index.ts +2 -0
- package/src/hooks/usePickerContent/usePickerContent.spec.tsx +84 -0
- package/src/hooks/usePickerContent/usePickerContent.ts +94 -0
- package/src/hooks/usePickerContent/usePickerContentState.ts +64 -0
- package/src/hooks/usePickerModal/PickerModalState.ts +491 -0
- package/src/hooks/usePickerModal/UsePickerModalParamsBase.ts +127 -0
- package/src/hooks/usePickerModal/index.ts +8 -0
- package/src/hooks/usePickerModal/usePickerModal.ts +32 -0
- package/src/hooks/usePickerModal/usePickerModalState.ts +93 -0
- package/src/hooks/usePickerStandalone/index.ts +1 -0
- package/src/hooks/usePickerStandalone/usePickerStandalone.spec.tsx +139 -0
- package/src/hooks/usePickerStandalone/usePickerStandalone.ts +117 -0
- package/src/hooks/usePromiseState.ts +70 -0
- package/src/hooks/useRafRender.ts +17 -0
- package/src/hooks/useSettings.ts +9 -0
- package/src/hooks/useSettingsPage.ts +26 -0
- package/src/hooks/useSettingsPageChild/index.ts +1 -0
- package/src/hooks/useSettingsPageChild/useSettingsPageChild.tsx +41 -0
- package/src/hooks/useStaticListFilterCollection.ts +59 -0
- package/src/hooks/useSyncCollectionOnEntityCreate.ts +45 -0
- package/src/hooks/useSyncCollectionOnEntityReturn.ts +154 -0
- package/src/hooks/useSyncCollectionOnEntityUpdate.ts +69 -0
- package/src/hooks/useSyncTotal.ts +28 -0
- package/src/hooks/useTableCollection.ts +43 -0
- package/src/hooks/useTableFolders.ts +49 -0
- package/src/hooks/useTableGridSwitchCollection.ts +40 -0
- package/src/hooks/useTableGridSwitchFolders.ts +51 -0
- package/src/hooks/useTableRoundedCornersEnabled.ts +6 -0
- package/src/hooks/useTagsWidget.ts +67 -0
- package/src/hooks/useViews.ts +49 -0
- package/src/hooks/useWidgetForm.ts +11 -0
- package/src/index.ts +241 -0
- package/src/minimalRequiredWdsRuntimeCheck.ts +16 -0
- package/src/model/filterProps.ts +85 -0
- package/src/model/index.ts +3 -0
- package/src/model/tableColumn.ts +150 -0
- package/src/model/view.ts +138 -0
- package/src/nextjs/styleableDecorator.ts +55 -0
- package/src/providers/CairoProvider.tsx +43 -0
- package/src/providers/CollectionPageContext.ts +6 -0
- package/src/providers/DropdownTranslationProvider.tsx +64 -0
- package/src/providers/EntityPageContext.ts +19 -0
- package/src/providers/FilterToolbarState.ts +21 -0
- package/src/providers/FilterTranslationProvider.tsx +36 -0
- package/src/providers/FormPageContext.ts +5 -0
- package/src/providers/PageContext.ts +5 -0
- package/src/providers/ScrollableContentContext.ts +20 -0
- package/src/providers/SettingsPageContext.ts +19 -0
- package/src/providers/TableContext.ts +15 -0
- package/src/providers/WidgetsFormContext.ts +5 -0
- package/src/providers/WixPatternsBaseProvider.tsx +44 -0
- package/src/providers/WixPatternsMinimalEssentials.ts +11 -0
- package/src/providers/WixPatternsRouterProvider.tsx +28 -0
- package/src/providers/index.ts +12 -0
- package/src/reach-bottom-listener/index.ts +3 -0
- package/src/reach-bottom-listener/reachBottomListener.ts +151 -0
- package/src/reach-bottom-listener/scrollPosition.ts +39 -0
- package/src/reach-bottom-listener/scrollableWindow.ts +35 -0
- package/src/services/index.ts +1 -0
- package/src/services/viewsService.ts +233 -0
- package/src/services/withCairoViewsTestFlag.ts +17 -0
- package/src/sledPage.ts +5 -0
- package/src/state/AdditionalStepState.ts +30 -0
- package/src/state/BulkActionToolbarState.ts +298 -0
- package/src/state/CollectionFilterState.ts +25 -0
- package/src/state/CollectionPage/CollectionPageHeader.st.css +15 -0
- package/src/state/CollectionPage/CollectionPageHeader.st.css.ts +25 -0
- package/src/state/CollectionPage/index.ts +2 -0
- package/src/state/CollectionPage/pushFactoryIfNotExistsOrAddToTopOfGroup.ts +52 -0
- package/src/state/CollectionPage/useCollectionPageContent.tsx +7 -0
- package/src/state/CollectionPage/useCollectionPageHeader.tsx +105 -0
- package/src/state/CollectionReachBottom.ts +61 -0
- package/src/state/CollectionViewsQueryCompareHelper.ts +224 -0
- package/src/state/CollectionViewsState.ts +445 -0
- package/src/state/CollectionViewsStateBIReporter.ts +291 -0
- package/src/state/CustomColumnsDragAndDropState.ts +145 -0
- package/src/state/CustomColumnsHistoryState.ts +92 -0
- package/src/state/CustomColumnsState.ts +500 -0
- package/src/state/CustomFields/CustomFieldsAllNamespacesFormState.ts +133 -0
- package/src/state/CustomFields/CustomFieldsFormState.ts +203 -0
- package/src/state/CustomFields/CustomFieldsPanelState.ts +80 -0
- package/src/state/CustomFields/CustomFieldsWidgetState.ts +324 -0
- package/src/state/CustomFields/index.ts +3 -0
- package/src/state/DateRangeFilterState.ts +44 -0
- package/src/state/DateRangePickerState.ts +378 -0
- package/src/state/DragAndDrop/createOptimisticActionsOrderByModeReaction.ts +21 -0
- package/src/state/DropdownCollectionFilterState.ts +103 -0
- package/src/state/DropdownSelectFilterState.ts +46 -0
- package/src/state/DropdownSelectState.ts +202 -0
- package/src/state/EntityPage/EntityPageState.ts +407 -0
- package/src/state/EntityPage/EntityPageStateBIReporter.ts +138 -0
- package/src/state/EntityPage/index.ts +3 -0
- package/src/state/EntityPage/useEntityPageContent.tsx +20 -0
- package/src/state/EntityPage/useEntityPageHeader.tsx +41 -0
- package/src/state/ExtensionMenuItemsState.ts +70 -0
- package/src/state/ExtensionsState.ts +54 -0
- package/src/state/FeaturesAvailabilityBIParams.ts +26 -0
- package/src/state/FilterValueTotalState.ts +150 -0
- package/src/state/FoldersAndItemsCollectionsState.ts +164 -0
- package/src/state/FormPage/FormFooter.tsx +30 -0
- package/src/state/FormPage/FormPageHeader.st.css +15 -0
- package/src/state/FormPage/FormPageHeader.st.css.ts +25 -0
- package/src/state/FormPage/index.ts +2 -0
- package/src/state/FormPage/useFormPageContent.tsx +121 -0
- package/src/state/FormPage/useFormPageHeader.tsx +84 -0
- package/src/state/GridBaseState.ts +333 -0
- package/src/state/GridFoldersBIReporter.ts +46 -0
- package/src/state/GridFoldersState.ts +222 -0
- package/src/state/GridParentState.ts +8 -0
- package/src/state/GridState.ts +86 -0
- package/src/state/ICollectionComponentState.ts +5 -0
- package/src/state/IndeterminateMapState.ts +84 -0
- package/src/state/IntersectionObserverState.ts +47 -0
- package/src/state/ItemActionsState.tsx +93 -0
- package/src/state/KanbanState/KanbanDragEndEvent.ts +5 -0
- package/src/state/KanbanState/KanbanStageState.ts +201 -0
- package/src/state/KanbanState/KanbanState.ts +674 -0
- package/src/state/KanbanState/KanbanStateBIReporter.ts +316 -0
- package/src/state/KanbanState/index.ts +2 -0
- package/src/state/MultiLevelSortingDragAndDrop.ts +146 -0
- package/src/state/MultiLevelSortingState.ts +345 -0
- package/src/state/NestedTableState/NestedCollectionFetchAllCollectionState.ts +235 -0
- package/src/state/NestedTableState/NestedCollectionFetchAllState.ts +138 -0
- package/src/state/NestedTableState/NestedCollectionLevelDescriptor.ts +38 -0
- package/src/state/NestedTableState/NestedCollectionNodeState.ts +181 -0
- package/src/state/NestedTableState/NestedCollectionState.ts +81 -0
- package/src/state/NestedTableState/NestedTableColumn.ts +8 -0
- package/src/state/NestedTableState/NestedTableFlatModeSectionState.ts +116 -0
- package/src/state/NestedTableState/NestedTableFlatModeState.ts +251 -0
- package/src/state/NestedTableState/NestedTableFlatModeStateBIReporter.ts +46 -0
- package/src/state/NestedTableState/NestedTableLeafNodeState.ts +54 -0
- package/src/state/NestedTableState/NestedTableLevelDescriptor.ts +54 -0
- package/src/state/NestedTableState/NestedTableNestedModeState.ts +284 -0
- package/src/state/NestedTableState/NestedTableNestedModeStateBIReporter.ts +26 -0
- package/src/state/NestedTableState/NestedTableNodeState.ts +569 -0
- package/src/state/NestedTableState/NestedTableNodeStateBIReporter.ts +59 -0
- package/src/state/NestedTableState/NestedTableNodeStateOptimisticActions.ts +88 -0
- package/src/state/NestedTableState/NestedTableNodeStatePublicAPI.ts +58 -0
- package/src/state/NestedTableState/NestedTableState.ts +370 -0
- package/src/state/NestedTableState/createNestedOptimisticActions.ts +56 -0
- package/src/state/NestedTableState/createNestedTableLevel.ts +24 -0
- package/src/state/NestedTableState/createParentIdPredicate.ts +30 -0
- package/src/state/NestedTableState/getNodeOrLeaf.ts +19 -0
- package/src/state/NestedTableState/index.ts +9 -0
- package/src/state/NestedTableState/types.ts +11 -0
- package/src/state/PickerContentState.ts +392 -0
- package/src/state/PickerContentStateBI.ts +70 -0
- package/src/state/PickerStandaloneState.ts +381 -0
- package/src/state/RectState.ts +140 -0
- package/src/state/ResizeObserverState.ts +33 -0
- package/src/state/Responsive/HorizontalOverflowState.ts +85 -0
- package/src/state/Responsive/HorizontalSpaceAvailableState.ts +86 -0
- package/src/state/ResponsiveColumnsState.ts +68 -0
- package/src/state/ScrollState.ts +68 -0
- package/src/state/SelectFieldState.ts +65 -0
- package/src/state/SettingsPage/SettingsPageState.ts +276 -0
- package/src/state/SettingsPage/SettingsPageStateBIReporter.ts +134 -0
- package/src/state/SettingsPage/useSettingsPageContent.tsx +20 -0
- package/src/state/SettingsPage/useSettingsPageHeader.tsx +31 -0
- package/src/state/SidePanelsState.ts +103 -0
- package/src/state/TableFoldersState.ts +239 -0
- package/src/state/TableGridSwitchFoldersState.ts +107 -0
- package/src/state/TableGridSwitchState.ts +94 -0
- package/src/state/TableState.ts +228 -0
- package/src/state/TableVirtualState.ts +181 -0
- package/src/state/TagsBulkAssignAsyncState.ts +409 -0
- package/src/state/TagsBulkAssignButtonState.ts +28 -0
- package/src/state/TagsBulkAssignPopoverState.ts +454 -0
- package/src/state/TagsBulkAssignSyncState.ts +196 -0
- package/src/state/TagsCollectionState.ts +143 -0
- package/src/state/TagsModalState.ts +475 -0
- package/src/state/Toolbar/ToolbarResponsivePriorityState.ts +110 -0
- package/src/state/Toolbar/ToolbarResponsiveState.ts +131 -0
- package/src/state/ToolbarBIReporter.ts +238 -0
- package/src/state/ToolbarCollectionState.ts +900 -0
- package/src/state/ViewTypeState.ts +70 -0
- package/src/state/ViewsHistoryState.ts +63 -0
- package/src/state/ViewsLocalSearchBIReporter.ts +132 -0
- package/src/state/ViewsLocalSearchState.ts +146 -0
- package/src/state/ViewsState.ts +699 -0
- package/src/state/WixPatternsRouterState.ts +51 -0
- package/src/state/getToolbarCollectionFeaturesInitializers.ts +48 -0
- package/src/state/gridSizePresets.ts +111 -0
- package/src/state/index.ts +34 -0
- package/src/state/indexOfCompareFn.ts +25 -0
- package/src/state/initCustomColumns.ts +22 -0
- package/src/state/initTabTotal.ts +32 -0
- package/src/state/presetsToCategories.ts +25 -0
- package/src/state/setViewsState.ts +37 -0
- package/src/state/simplifyColumns.ts +35 -0
- package/src/state/simplifyExtendedColumns.tsx +95 -0
- package/src/state/toolbarFeatureInitializer.ts +9 -0
- package/src/state/warmUpPickerStandalone.ts +22 -0
- package/src/stylable-esm-runtime.ts +90 -0
- package/src/styles.global.css +1 -0
- package/src/test-types.d.ts +1 -0
- package/src/test-utils/AppsMocks.ts +56 -0
- package/src/test-utils/AsyncJobMocks.ts +85 -0
- package/src/test-utils/CairoTestApp.tsx +139 -0
- package/src/test-utils/CairoTestAppRouter.tsx +21 -0
- package/src/test-utils/DataExtensionMocks.ts +84 -0
- package/src/test-utils/ExportMocks.ts +46 -0
- package/src/test-utils/ExtensionWidget.tsx +53 -0
- package/src/test-utils/HttpErrorMocks.tsx +29 -0
- package/src/test-utils/ItemsSelectionMocks.ts +51 -0
- package/src/test-utils/MultiSelectCheckboxStaticListFilter.tsx +27 -0
- package/src/test-utils/OrdersMocks.ts +98 -0
- package/src/test-utils/Router.tsx +58 -0
- package/src/test-utils/SettingsModalLayout.tsx +146 -0
- package/src/test-utils/SingleSelectFilter.tsx +23 -0
- package/src/test-utils/TagsMocks.ts +273 -0
- package/src/test-utils/ToastState.ts +29 -0
- package/src/test-utils/WixPatternsEssentialsTestProvider.tsx +124 -0
- package/src/test-utils/columns.ts +17 -0
- package/src/test-utils/createPromise.ts +22 -0
- package/src/test-utils/createSitesBackend.ts +36 -0
- package/src/test-utils/createStatusesBackend.ts +33 -0
- package/src/test-utils/dataExtensionServiceMocks.ts +82 -0
- package/src/test-utils/flush.ts +41 -0
- package/src/test-utils/getUniDriverStyle.ts +10 -0
- package/src/test-utils/index.ts +14 -0
- package/src/test-utils/site.ts +6 -0
- package/src/test-utils/status.ts +4 -0
- package/src/test-utils/statusFilters.ts +3 -0
- package/src/test-utils/tagsServiceMocks.ts +68 -0
- package/src/test-utils/toast.ts +13 -0
- package/src/test-utils/viewsServiceTestkit.ts +176 -0
- package/src/testkit/backend.ts +1 -0
- package/src/testkit/enzyme.ts +78 -0
- package/src/testkit/jsdom.ts +104 -0
- package/src/testkit/playwright.ts +92 -0
- package/src/testkit/puppeteer.ts +95 -0
- package/src/unidriver/baseUniDriverFactory.ts +11 -0
- package/src/unidriver/index.ts +1 -0
- package/src/useSelector.ts +9 -0
- package/src/utils/assertProp.ts +13 -0
- package/src/utils/datesUtil.ts +71 -0
- package/src/utils/getCollectionComponentUniqueId.ts +7 -0
- package/src/utils/isErrorResponse.ts +10 -0
- package/src/utils/matchMediaQuery.ts +30 -0
- package/src/utils/minimalRequiredRuntimeCheck.ts +22 -0
- package/src/utils/replaceUrlCurlySegments.ts +53 -0
- package/src/utils/useWindowFlipPopoverProps.ts +32 -0
- package/src/utils/validateEncodedUrl.ts +22 -0
- package/src/utils/wordStartsWithMatch.ts +7 -0
- package/src/version.ts +1 -0
- package/src/wix-design-system-version.ts +1 -0
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { Box, CardProps, usePageScrollContext } from '@wix/design-system';
|
|
2
|
+
import React, {
|
|
3
|
+
CSSProperties,
|
|
4
|
+
ReactElement,
|
|
5
|
+
ReactNode,
|
|
6
|
+
useEffect,
|
|
7
|
+
useState,
|
|
8
|
+
} from 'react';
|
|
9
|
+
import { CollectionToolbarProps, FilterElement, TabsFilterProps } from '../..';
|
|
10
|
+
import { ComputedQuery, FiltersMap } from '@wix/bex-core';
|
|
11
|
+
import { ToolbarCollectionState } from '../../state';
|
|
12
|
+
import {
|
|
13
|
+
assertComponentType,
|
|
14
|
+
CollectionSearchElement,
|
|
15
|
+
CollectionToolbarFiltersElement,
|
|
16
|
+
CollectionViewsDropdownElement,
|
|
17
|
+
CustomColumnsElement,
|
|
18
|
+
PrimaryActionButtonElement,
|
|
19
|
+
ReorderModeToolbarElement,
|
|
20
|
+
TabsFilterElement,
|
|
21
|
+
ToolbarTitleElement,
|
|
22
|
+
TopNotificationElement,
|
|
23
|
+
ToolbarSecondaryActionsElement,
|
|
24
|
+
} from '../assertComponentType';
|
|
25
|
+
import { CollectionToolbars } from '../CollectionToolbars';
|
|
26
|
+
import {
|
|
27
|
+
DragAndDropBulkSubmit,
|
|
28
|
+
DragAndDropCancel,
|
|
29
|
+
DragAndDropSubmit,
|
|
30
|
+
} from '../DragAndDrop';
|
|
31
|
+
import { TableGridSwitchButtonProps } from '../TableGridSwitchButton';
|
|
32
|
+
import { checkConflictingToolbarProps } from './checkConflictingToolbarProps';
|
|
33
|
+
import type { AddApplyFiltersButtonType } from '../FiltersPanel/AddApplyFiltersButton';
|
|
34
|
+
import type { TagsElement } from '../Tags';
|
|
35
|
+
import type { ExtensionMenuItemsType } from '../ExtensionMenuItems';
|
|
36
|
+
import { TablePlaceholderStatesProps } from '../TablePlaceholderStates/TablePlaceholderStates';
|
|
37
|
+
import { DragAndDropCategoriesProps } from '../DragAndDrop/DragAndDropCategoriesProps';
|
|
38
|
+
import { MoreActionsElement } from '../MoreActions';
|
|
39
|
+
|
|
40
|
+
export interface ToolbarBaseProps {
|
|
41
|
+
/**
|
|
42
|
+
* Displays a title at the left of a toolbar. Accepts a [ToolbarTitle](./?path=/story/features-display-toolbar--toolbartitle) component.
|
|
43
|
+
* @overrideType [ToolbarTitle](./?path=/story/features-display-toolbar--toolbartitle)
|
|
44
|
+
* @external
|
|
45
|
+
*/
|
|
46
|
+
title?: ToolbarTitleElement;
|
|
47
|
+
/**
|
|
48
|
+
* Displays a search input on the right side of the table toolbar.<br> <br>
|
|
49
|
+
* Accepts a boolean or a custom React element as a parameter. When passing `false`, no search input is displayed.
|
|
50
|
+
* @default true
|
|
51
|
+
* @external
|
|
52
|
+
*/
|
|
53
|
+
search?: boolean | FilterElement | CollectionSearchElement;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Indicates whether to show Table Title Bar or not.
|
|
57
|
+
* Note: if you pass `showTitleBar = false` title bar is not removed from the DOM. For better accessibility column titles should be defined as well.
|
|
58
|
+
* @default true
|
|
59
|
+
* @external
|
|
60
|
+
*/
|
|
61
|
+
showTitleBar?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* A [`<ExportButton />`](./?path=/story/features-export--exportto) react element to be added to the toolbar
|
|
64
|
+
*/
|
|
65
|
+
exportButton?: ReactElement;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* A [`<ExportModal />`](./?path=/story/features-export--exportto#CTA_is_out_of_the_table) react element to be rendered in table's context.
|
|
69
|
+
*/
|
|
70
|
+
exportModal?: ReactElement;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface ToolbarCollectionBaseProps<T, F extends FiltersMap>
|
|
74
|
+
extends ToolbarBaseProps,
|
|
75
|
+
DragAndDropCategoriesProps<F> {
|
|
76
|
+
children?: ReactNode | ReactNode[];
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Adds view options to the table headers.
|
|
80
|
+
* Accepts a [Views](./?path=/story/features-display-views--views) component.
|
|
81
|
+
* @overrideType [Views](./?path=/story/features-display-views--views)
|
|
82
|
+
* @external
|
|
83
|
+
*/
|
|
84
|
+
views?: CollectionViewsDropdownElement<F>;
|
|
85
|
+
/**
|
|
86
|
+
* Adds filters to the toolbar and/or a sliding panel.
|
|
87
|
+
* Accepts a `ToolbarFilters` component, which must have the `panelTitle` prop defined.
|
|
88
|
+
* @overrideType [ToolbarFilters](./?path=%2Fstory%2Ffeatures-filter-components--toolbarfilters)
|
|
89
|
+
* @external
|
|
90
|
+
*/
|
|
91
|
+
filters?: CollectionToolbarFiltersElement;
|
|
92
|
+
/**
|
|
93
|
+
* Displays tabs at the left of a toolbar.
|
|
94
|
+
* Accepts a [TabsFilter](./?path=/story/features-filter-components--tabsfilter) component.
|
|
95
|
+
* @overrideType [TabsFilter](./?path=/story/features-filter-components--tabsfilter)
|
|
96
|
+
* @external
|
|
97
|
+
*/
|
|
98
|
+
tabs?: TabsFilterElement<TabsFilterProps<T>>;
|
|
99
|
+
|
|
100
|
+
selectionToolbar?: ReactElement;
|
|
101
|
+
|
|
102
|
+
sticky?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Minimum height for a card's container when showing:<br>
|
|
105
|
+
* - A loader<br>
|
|
106
|
+
* - Empty state<br>
|
|
107
|
+
* - Error state
|
|
108
|
+
* <br><br>
|
|
109
|
+
* If no unit is specified, `px` is used.
|
|
110
|
+
* @default 300px
|
|
111
|
+
* @external
|
|
112
|
+
*/
|
|
113
|
+
minCardHeight?: CSSProperties['minHeight'];
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* A render function to be rendered when there's an error fetching data from the server.<br>
|
|
117
|
+
* The function accepts the following parameters <br>
|
|
118
|
+
* * `err`: The error thrown by the [fetchData](./?path=/story/common-hooks--usecollection) function <br>
|
|
119
|
+
* * `isOnline`: Indicates whether internet connection is available <br>
|
|
120
|
+
* * `retry`: Retry collection fetch on failed response, similar to `collection.retryFetch` <br>
|
|
121
|
+
* Returns [`EmptyState`](https://www.docs.wixdesignsystem.com/?path=/story/components-layout--emptystate) component.
|
|
122
|
+
* @external
|
|
123
|
+
* @deprecated Use `errorState` instead.
|
|
124
|
+
*/
|
|
125
|
+
renderError?: TablePlaceholderStatesProps['renderError'];
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* A render function to be rendered when there's an error fetching data from the server.<br>
|
|
129
|
+
* The function accepts the following parameters <br>
|
|
130
|
+
* * `err`: The error thrown by the [fetchData](./?path=/story/common-hooks--usecollection) function <br>
|
|
131
|
+
* * `isOnline`: Indicates whether internet connection is available <br>
|
|
132
|
+
* * `retry`: Retry collection fetch on failed response, similar to `collection.retryFetch` <br>
|
|
133
|
+
* Returns [`EmptyState`](https://www.docs.wixdesignsystem.com/?path=/story/components-layout--emptystate) component.
|
|
134
|
+
* @external
|
|
135
|
+
*/
|
|
136
|
+
errorState?: TablePlaceholderStatesProps['errorState'];
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Renders when there are no items to display. Accepts a [`CollectionEmptyState`](./?path=/story/features-display-empty-states--collectionemptystate) component.
|
|
140
|
+
* @external
|
|
141
|
+
* @overrideType [CollectionEmptyState](./?path=/story/features-display-empty-states--collectionemptystate)
|
|
142
|
+
*/
|
|
143
|
+
emptyState?: ReactNode;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Shown when a search or filter has no results.
|
|
147
|
+
* Accepts a [`CollectionNoResultsState`](./?path=/story/features-display-empty-states--collectionnoresultsstate) component,
|
|
148
|
+
* or a function that accepts the following parameters:
|
|
149
|
+
* - `hasAvailableItems`: Indicates whether other items may be shown using other filter or search parameters.
|
|
150
|
+
* - `query`: An instance of [`ComputedQuery`](./?path=/story/common-models--computedquery) representing the query that resulted in the empty state.
|
|
151
|
+
* The function should return [`CollectionNoResultsState`](./?path=/story/features-display-empty-states--collectionnoresultsstate).
|
|
152
|
+
* @external
|
|
153
|
+
* @overrideType [CollectionNoResultsState](./?path=/story/features-display-empty-states--collectionnoresultsstate)
|
|
154
|
+
*/
|
|
155
|
+
noResultsState?:
|
|
156
|
+
| ReactNode
|
|
157
|
+
| ((params: {
|
|
158
|
+
hasAvailableItems: boolean;
|
|
159
|
+
query: ComputedQuery<F>;
|
|
160
|
+
}) => ReactNode);
|
|
161
|
+
|
|
162
|
+
cardProps?: Partial<CardProps>;
|
|
163
|
+
onSelectedItems?: (allSelected: boolean, items: T[]) => unknown;
|
|
164
|
+
/**
|
|
165
|
+
* Renders a notification below the header. Accepts a [`TableTopNotification`](./?path=/story/features-display-tabletopnotification--tabletopnotification) component.
|
|
166
|
+
* @overrideType [TableTopNotification](./?path=/story/features-display-tabletopnotification--tabletopnotification)
|
|
167
|
+
* @external
|
|
168
|
+
*/
|
|
169
|
+
topNotification?:
|
|
170
|
+
| TopNotificationElement
|
|
171
|
+
| ((params: {
|
|
172
|
+
query: ComputedQuery<F>;
|
|
173
|
+
}) => TopNotificationElement | boolean | null | undefined)
|
|
174
|
+
| boolean
|
|
175
|
+
| null
|
|
176
|
+
| undefined;
|
|
177
|
+
|
|
178
|
+
extraToolbar?: ReactNode;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Display a summary bar below the toolbar.
|
|
182
|
+
* Accepts a [`SummaryBar`](./?path=/story/features-display-toolbar--summarybar) component.
|
|
183
|
+
* @overrideType [SummaryBar](./?path=/story/features-display-toolbar--summarybar)
|
|
184
|
+
* @external
|
|
185
|
+
*/
|
|
186
|
+
summaryBar?: ReactNode;
|
|
187
|
+
tableGridSwitchButton?: ReactElement<TableGridSwitchButtonProps>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Function that submits a drop event to the server. <br> <br>
|
|
191
|
+
* The parameter is an event object containing the following details: <br>
|
|
192
|
+
* -`from: {item: T; index: number}`: The dragged item. <br>
|
|
193
|
+
* -`after: null | [item: T; iindex: number}`: The previous dropped item. If this is the first item to be dropped, this argument is `null`. <br>
|
|
194
|
+
* -`filters`: Applied [Drag and Drop](./?path=/story/features-sort-drag-and-drop--overview) filters.
|
|
195
|
+
*
|
|
196
|
+
* @returns Promise
|
|
197
|
+
* @external
|
|
198
|
+
*/
|
|
199
|
+
dragAndDropSubmit?: DragAndDropSubmit<T, F>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Function that submits an array of drop events to the server. <br> <br>
|
|
203
|
+
* The parameter is an array of event objects containing the following details: <br>
|
|
204
|
+
* -`from: {item: T; index: number}`: The dragged item. <br>
|
|
205
|
+
* -`after: null | [item: T; index: number}`: The previous dropped item. If this is the first item to be dropped, this argument is `null`. <br>
|
|
206
|
+
* -`filters`: Applied [Drag and Drop](./?path=/story/features-sort-drag-and-drop--overview) filters. <br>
|
|
207
|
+
*
|
|
208
|
+
* @returns Promise
|
|
209
|
+
* @external
|
|
210
|
+
*/
|
|
211
|
+
dragAndDropBulkSubmit?: DragAndDropBulkSubmit<T, F>;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* A function that cancels a drop event. <br>
|
|
215
|
+
* Supported arguments: <br>
|
|
216
|
+
* - `from: {item: T; index: number}`: The dragged item.
|
|
217
|
+
* - `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`.
|
|
218
|
+
* - `filters`: Currently applied filters. Used in cases where your server holds a unique ordering per filtering. See the `dragAndDropCategories` prop.
|
|
219
|
+
*
|
|
220
|
+
* If the move is cancelled, the function returns a toast config object with a message. Otherwise, the function will return a null value.
|
|
221
|
+
* @external
|
|
222
|
+
*/
|
|
223
|
+
dragAndDropCancel?: DragAndDropCancel<T, F>;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @deprecated It doesn't need to be passed implicitly anymore.
|
|
227
|
+
*/
|
|
228
|
+
extensionMenuItems?: ExtensionMenuItemsType;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Drag and drop reorder mode toolbar. This prop accepts a `ReorderModeToolbar` component.<br>
|
|
232
|
+
* The `ReorderModeToolbar` component accepts the following props:<br>
|
|
233
|
+
* + `learnMoreUrl`: [string] A URL in the toolbar.<br>
|
|
234
|
+
* + `reorderModeTitle`: [string] A title in the toolbar.
|
|
235
|
+
* @external
|
|
236
|
+
*/
|
|
237
|
+
dragAndDropReorderModeToolbar?: ReorderModeToolbarElement | null;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* 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
|
+
* @overrideType [CustomColumns](./?path=/story/features-display--customcolumns)
|
|
242
|
+
* @external
|
|
243
|
+
*/
|
|
244
|
+
customColumns?: CustomColumnsElement | null;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Adds functionality to allow visitors to sort multiple columns simultaneously.
|
|
248
|
+
* Accepts a [MultiLevelSorting](./?path=/story/features-sort-sortable-columns-multilevelsorting--multilevelsorting) component.
|
|
249
|
+
* @overrideType [MultiLevelSorting](./?path=/story/features-sort-sortable-columns-multilevelsorting--multilevelsorting)
|
|
250
|
+
* @external
|
|
251
|
+
*/
|
|
252
|
+
multiLevelSorting?: CollectionToolbarProps<T, F>['multiLevelSorting'];
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Adds functionality for a primary action button in the toolbar.
|
|
256
|
+
* Accepts a [PrimaryActionButton](./?path=/story/features-actions-primaryactionbutton--primaryactionbutton) component.
|
|
257
|
+
* @external
|
|
258
|
+
* @overrideType [PrimaryActionButton](./?path=/story/features-actions-primaryactionbutton--primaryactionbutton)
|
|
259
|
+
*/
|
|
260
|
+
primaryActionButton?: PrimaryActionButtonElement;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Secondary buttons w/o PopoverMenu component to be rendered on the toolbar.
|
|
264
|
+
* @overrideType [ToolbarSecondaryActions](./?path=/story/wip-toolbarsecondaryactions--toolbarsecondaryactions)
|
|
265
|
+
* @external
|
|
266
|
+
*/
|
|
267
|
+
secondaryActions?: ToolbarSecondaryActionsElement;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* A [`MoreActions`](./?path=/story/features-actions-more-actions--more-actions) component to be rendered on the header.
|
|
271
|
+
* @overrideType [MoreActions](./?path=/story/features-actions-more-actions--more-actions)
|
|
272
|
+
* @external
|
|
273
|
+
*/
|
|
274
|
+
moreActions?: MoreActionsElement;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Apply filter button implementation: `import { AddApplyFiltersButton } from '@wix/patterns';`
|
|
278
|
+
* <br>
|
|
279
|
+
* Add `Apply` button to the filters panel footer. Panel filters will be applied only after the button is clicked.
|
|
280
|
+
*/
|
|
281
|
+
AddApplyFiltersButton?: AddApplyFiltersButtonType;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Limits the amount of rows a visitor can select.
|
|
285
|
+
* @external
|
|
286
|
+
*/
|
|
287
|
+
maxSelection?: number;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Indicates whether the table should have an [internal scroll](./?path=/story/features-display-internal-scroll--internal-scroll) instead of the default page scroll.
|
|
291
|
+
* @external
|
|
292
|
+
*/
|
|
293
|
+
internalScroll?: boolean;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Enables tags feature. In this element you can pass the configuration
|
|
297
|
+
* @overrideType [TagsElement](./?path=/story/features-enrich-tags--tags)
|
|
298
|
+
*/
|
|
299
|
+
tags?: TagsElement<T, F>;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface ToolbarCollectionProps<T, F extends FiltersMap>
|
|
303
|
+
extends ToolbarCollectionBaseProps<T, F> {
|
|
304
|
+
state: ToolbarCollectionState<T, F>;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export function ToolbarCollection<T, F extends FiltersMap>(
|
|
308
|
+
props: ToolbarCollectionProps<T, F>,
|
|
309
|
+
) {
|
|
310
|
+
const {
|
|
311
|
+
state,
|
|
312
|
+
filters,
|
|
313
|
+
title,
|
|
314
|
+
tabs,
|
|
315
|
+
views,
|
|
316
|
+
extraToolbar,
|
|
317
|
+
selectionToolbar,
|
|
318
|
+
dragAndDropReorderModeToolbar,
|
|
319
|
+
sticky: stickyProp,
|
|
320
|
+
search,
|
|
321
|
+
children,
|
|
322
|
+
tableGridSwitchButton,
|
|
323
|
+
exportButton,
|
|
324
|
+
primaryActionButton,
|
|
325
|
+
secondaryActions,
|
|
326
|
+
moreActions,
|
|
327
|
+
summaryBar,
|
|
328
|
+
topNotification,
|
|
329
|
+
} = props;
|
|
330
|
+
assertComponentType(views, 'CollectionViewsDropdown', 'views');
|
|
331
|
+
checkConflictingToolbarProps(props);
|
|
332
|
+
|
|
333
|
+
const { scrollableContentRef: scrollablePageRef } = usePageScrollContext();
|
|
334
|
+
|
|
335
|
+
const [sticky, setSticky] = useState(
|
|
336
|
+
stickyProp ?? scrollablePageRef?.current != null,
|
|
337
|
+
);
|
|
338
|
+
|
|
339
|
+
useEffect(() => {
|
|
340
|
+
setSticky(stickyProp ?? scrollablePageRef?.current != null);
|
|
341
|
+
}, [stickyProp]);
|
|
342
|
+
|
|
343
|
+
return (
|
|
344
|
+
<>
|
|
345
|
+
<CollectionToolbars
|
|
346
|
+
sticky={sticky}
|
|
347
|
+
state={state}
|
|
348
|
+
search={search}
|
|
349
|
+
views={views}
|
|
350
|
+
title={title}
|
|
351
|
+
tabs={tabs}
|
|
352
|
+
filters={filters}
|
|
353
|
+
selectionToolbar={selectionToolbar}
|
|
354
|
+
dragAndDropReorderModeToolbar={dragAndDropReorderModeToolbar}
|
|
355
|
+
extraToolbar={extraToolbar}
|
|
356
|
+
tableGridSwitchButton={tableGridSwitchButton}
|
|
357
|
+
exportButton={exportButton}
|
|
358
|
+
primaryActionButton={primaryActionButton}
|
|
359
|
+
secondaryActions={secondaryActions}
|
|
360
|
+
moreActions={moreActions}
|
|
361
|
+
summaryBar={summaryBar}
|
|
362
|
+
topNotification={
|
|
363
|
+
typeof topNotification === 'function'
|
|
364
|
+
? () =>
|
|
365
|
+
topNotification({ query: state.collection.result.originQuery })
|
|
366
|
+
: topNotification
|
|
367
|
+
}
|
|
368
|
+
titleBar={
|
|
369
|
+
<Box
|
|
370
|
+
width="100%"
|
|
371
|
+
borderTopColor="D60"
|
|
372
|
+
borderTopWidth="1px"
|
|
373
|
+
borderTopStyle="solid"
|
|
374
|
+
boxSizing="border-box"
|
|
375
|
+
/>
|
|
376
|
+
}
|
|
377
|
+
/>
|
|
378
|
+
<Box
|
|
379
|
+
dataHook="toolbar-collection-content"
|
|
380
|
+
width="100%"
|
|
381
|
+
direction="vertical"
|
|
382
|
+
minHeight={0}
|
|
383
|
+
flex={1}
|
|
384
|
+
verticalAlign="middle"
|
|
385
|
+
>
|
|
386
|
+
{children}
|
|
387
|
+
</Box>
|
|
388
|
+
</>
|
|
389
|
+
);
|
|
390
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ToolbarCollectionProps } from './ToolbarCollection';
|
|
2
|
+
import { FiltersMap } from '@wix/bex-core';
|
|
3
|
+
|
|
4
|
+
export function checkConflictingToolbarProps<T, F extends FiltersMap>(
|
|
5
|
+
props: ToolbarCollectionProps<T, F>,
|
|
6
|
+
) {
|
|
7
|
+
const {
|
|
8
|
+
tabs,
|
|
9
|
+
views,
|
|
10
|
+
title,
|
|
11
|
+
dragAndDropBulkSubmit,
|
|
12
|
+
dragAndDropSubmit,
|
|
13
|
+
dragAndDropReorderModeToolbar,
|
|
14
|
+
} = props;
|
|
15
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
16
|
+
const tabsProp = { key: '`tabs`', val: tabs };
|
|
17
|
+
const viewsProp = { key: '`views`', val: views };
|
|
18
|
+
const titleProp = { key: '`title`', val: title?.props.title };
|
|
19
|
+
const dragAndDropSubmitProp = {
|
|
20
|
+
key: '`dragAndDropSubmit`',
|
|
21
|
+
val: dragAndDropSubmit,
|
|
22
|
+
};
|
|
23
|
+
const dragAndDropBulkSubmitProp = {
|
|
24
|
+
key: '`dragAndDropBulkSubmit`',
|
|
25
|
+
val: dragAndDropBulkSubmit,
|
|
26
|
+
};
|
|
27
|
+
const dragAndDropReorderModeToolbarProp = {
|
|
28
|
+
key: '`dragAndDropReorderModeToolbar`',
|
|
29
|
+
val: dragAndDropReorderModeToolbar,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const conflictingProps = [
|
|
33
|
+
[titleProp, tabsProp],
|
|
34
|
+
[titleProp, viewsProp],
|
|
35
|
+
[dragAndDropSubmitProp, dragAndDropReorderModeToolbarProp],
|
|
36
|
+
[dragAndDropSubmitProp, dragAndDropBulkSubmitProp],
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
if (title?.props.subtitle != null && title?.props.title == null) {
|
|
40
|
+
throw new Error(
|
|
41
|
+
'Cairo: Invalid `subtitle` provided and `title` not provided.',
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
for (const pair of conflictingProps) {
|
|
46
|
+
if (pair[0].val != null && pair[1].val != null) {
|
|
47
|
+
throw new Error(
|
|
48
|
+
`Cairo: Invalid both ${pair[0].key} and ${pair[1].key} props provided, either ${pair[0].key} or ${pair[1].key} is supported.`,
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ToolbarCollection';
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { FiltersMap } from '@wix/bex-core';
|
|
2
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import { action, reaction, runInAction } from 'mobx';
|
|
4
|
+
import { ToolbarCollectionProps } from './ToolbarCollection';
|
|
5
|
+
import { checkConflictingToolbarProps } from './checkConflictingToolbarProps';
|
|
6
|
+
import { useCollectionPageContext } from '../../providers';
|
|
7
|
+
import { useWixPatternsRouter } from '../../providers/WixPatternsRouterProvider';
|
|
8
|
+
import { useSyncTotal } from '../../hooks/useSyncTotal';
|
|
9
|
+
|
|
10
|
+
export function useToolbarCollectionSyncProps<T, F extends FiltersMap>(
|
|
11
|
+
props: ToolbarCollectionProps<T, F> & {
|
|
12
|
+
isUsingDragAndDrop: boolean;
|
|
13
|
+
isUsingBulkActionsToolbar: boolean;
|
|
14
|
+
isUsingHorizontalScroll: boolean;
|
|
15
|
+
isUsingFolders: boolean;
|
|
16
|
+
isUsingTableVirtualization: boolean;
|
|
17
|
+
},
|
|
18
|
+
) {
|
|
19
|
+
const {
|
|
20
|
+
state,
|
|
21
|
+
views,
|
|
22
|
+
tabs,
|
|
23
|
+
exportButton,
|
|
24
|
+
dragAndDropCategories,
|
|
25
|
+
maxSelection,
|
|
26
|
+
search,
|
|
27
|
+
filters,
|
|
28
|
+
isUsingDragAndDrop,
|
|
29
|
+
isUsingBulkActionsToolbar,
|
|
30
|
+
isUsingHorizontalScroll,
|
|
31
|
+
isUsingFolders,
|
|
32
|
+
isUsingTableVirtualization,
|
|
33
|
+
summaryBar,
|
|
34
|
+
secondaryActions,
|
|
35
|
+
moreActions,
|
|
36
|
+
} = props;
|
|
37
|
+
|
|
38
|
+
checkConflictingToolbarProps(props);
|
|
39
|
+
|
|
40
|
+
state.internalScroll = props.internalScroll;
|
|
41
|
+
|
|
42
|
+
const pageState = useCollectionPageContext();
|
|
43
|
+
const router = useWixPatternsRouter();
|
|
44
|
+
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
pageState.primaryToolbar = state;
|
|
47
|
+
|
|
48
|
+
return () => {
|
|
49
|
+
if (pageState.primaryToolbar === state) {
|
|
50
|
+
pageState.primaryToolbar = null;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
54
|
+
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
reaction(
|
|
57
|
+
() => ({
|
|
58
|
+
scrollTop: state.scrollTopBeforeUnmount,
|
|
59
|
+
routerState: router?.currentState,
|
|
60
|
+
}),
|
|
61
|
+
({ scrollTop, routerState }) => {
|
|
62
|
+
pageState.scrollTopBeforeUnmount = routerState?._createdEntity
|
|
63
|
+
? 0
|
|
64
|
+
: scrollTop;
|
|
65
|
+
},
|
|
66
|
+
{ fireImmediately: true },
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
return () => {
|
|
70
|
+
const scrollTop =
|
|
71
|
+
pageState.pageState.scrollableContentRef.current?.scrollTop;
|
|
72
|
+
if (scrollTop !== undefined) {
|
|
73
|
+
state.scrollTopBeforeUnmount = scrollTop;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}, []);
|
|
77
|
+
|
|
78
|
+
const getIsUsingAllItemsView = () =>
|
|
79
|
+
!!(
|
|
80
|
+
// views=undefined, it means thw user didn't pass so allItemsViews=false
|
|
81
|
+
(
|
|
82
|
+
views &&
|
|
83
|
+
// views.props=undefined, it means the user passed views without configuring allItems so allItemsViews=true
|
|
84
|
+
(!views.props ||
|
|
85
|
+
// views.props.allItemsViewProps=undefined, it means the user passed allItemsViewProps
|
|
86
|
+
// without configuring the hidden so allItemsViews=true
|
|
87
|
+
!views.props.allItemsViewProps ||
|
|
88
|
+
// allItemsViews depends on hidden's value
|
|
89
|
+
!views.props.allItemsViewProps.hidden)
|
|
90
|
+
)
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
useEffect(() => {
|
|
94
|
+
if (exportButton) {
|
|
95
|
+
state.featuredComponents.exportButton.set(exportButton);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return () => {
|
|
99
|
+
state.featuredComponents.exportButton.set(null);
|
|
100
|
+
};
|
|
101
|
+
}, [exportButton]);
|
|
102
|
+
|
|
103
|
+
const tabsFilterProps = useMemo(() => {
|
|
104
|
+
return tabs?.props
|
|
105
|
+
? {
|
|
106
|
+
filter: tabs.props.filter,
|
|
107
|
+
}
|
|
108
|
+
: undefined;
|
|
109
|
+
}, [tabs]);
|
|
110
|
+
|
|
111
|
+
useEffect(
|
|
112
|
+
() =>
|
|
113
|
+
reaction(
|
|
114
|
+
() => pageState.hasHeader,
|
|
115
|
+
(hasHeader) => {
|
|
116
|
+
if (hasHeader) {
|
|
117
|
+
state.minimizedHeaderHeight = 66;
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
fireImmediately: true,
|
|
122
|
+
},
|
|
123
|
+
),
|
|
124
|
+
[],
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
useSyncTotal(state.collection);
|
|
128
|
+
|
|
129
|
+
useEffect(() => {
|
|
130
|
+
runInAction(() => {
|
|
131
|
+
state.dragAndDropCategories = dragAndDropCategories;
|
|
132
|
+
});
|
|
133
|
+
// We accept this prop once on purpose because it's array it changes on every render. We expose a setter `set dragAndDropCategories` instead.
|
|
134
|
+
}, []);
|
|
135
|
+
|
|
136
|
+
useState(() => views?.type.setViewsState(state, views?.props));
|
|
137
|
+
|
|
138
|
+
useEffect(
|
|
139
|
+
action(() => {
|
|
140
|
+
state.viewsProps = views?.props;
|
|
141
|
+
}),
|
|
142
|
+
[views],
|
|
143
|
+
);
|
|
144
|
+
|
|
145
|
+
useState(() => {
|
|
146
|
+
props.AddApplyFiltersButton?.setStateObject(state);
|
|
147
|
+
|
|
148
|
+
state.featuresAvailability = {
|
|
149
|
+
isDisablingSearch: search === false,
|
|
150
|
+
isUsingFilters: !!filters,
|
|
151
|
+
isUsingDragAndDrop,
|
|
152
|
+
isUsingBulkActionsToolbar,
|
|
153
|
+
isUsingHorizontalScroll,
|
|
154
|
+
isUsingFolders,
|
|
155
|
+
isUsingTableVirtualization,
|
|
156
|
+
isUsingTags: !!props.tags,
|
|
157
|
+
isUsingTabs: !!tabs,
|
|
158
|
+
isUsingSummaryRow: !!summaryBar,
|
|
159
|
+
isUsingSecondaryActions: !!secondaryActions,
|
|
160
|
+
isUsingMoreActions: !!moreActions,
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
state.additionalFeaturesAvailability = {
|
|
164
|
+
isUsingTableSubtitle: !!props.title?.props.subtitle,
|
|
165
|
+
isUsingCounterInHeader: !!props.title?.props.showTotal,
|
|
166
|
+
isUsingSelectAllLimitation: !!props.maxSelection,
|
|
167
|
+
isUsingErrorMessage: !!(props.errorState ?? props.renderError),
|
|
168
|
+
isUsingAllItemsView: getIsUsingAllItemsView(),
|
|
169
|
+
isUsingCustomEmptyState: !!props.emptyState,
|
|
170
|
+
isUsingCustomNoResultsState: !!props.noResultsState,
|
|
171
|
+
isUsingPrimaryActionCta: !!props.primaryActionButton,
|
|
172
|
+
};
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
useEffect(
|
|
176
|
+
action(() => {
|
|
177
|
+
if (tabsFilterProps?.filter) {
|
|
178
|
+
state.tabsFilterProps = tabsFilterProps;
|
|
179
|
+
tabsFilterProps.filter.persistent = true;
|
|
180
|
+
}
|
|
181
|
+
}),
|
|
182
|
+
[tabsFilterProps],
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
useEffect(() => {
|
|
186
|
+
runInAction(() => {
|
|
187
|
+
state.bulk.maxSelection = maxSelection;
|
|
188
|
+
});
|
|
189
|
+
}, [maxSelection]);
|
|
190
|
+
|
|
191
|
+
return state;
|
|
192
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { usePageContext, useScrollableContentContext } from '../../providers';
|
|
3
|
+
import { useToolbarCollectionContext } from '../ToolbarCollectionContext';
|
|
4
|
+
import { createPortal } from 'react-dom';
|
|
5
|
+
import { observer } from 'mobx-react-lite';
|
|
6
|
+
import { RectState } from '../../state/RectState';
|
|
7
|
+
import { useWixPatternsContainer } from '@wix/bex-core/react';
|
|
8
|
+
|
|
9
|
+
function _ContainerRectDebug() {
|
|
10
|
+
const container = useWixPatternsContainer();
|
|
11
|
+
const { stackingRootRef } = usePageContext();
|
|
12
|
+
const { scrollableContentRef } = useScrollableContentContext();
|
|
13
|
+
const toolbar = useToolbarCollectionContext();
|
|
14
|
+
|
|
15
|
+
const [scrollableContentRect] = useState(
|
|
16
|
+
() =>
|
|
17
|
+
new RectState({
|
|
18
|
+
container,
|
|
19
|
+
}),
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
scrollableContentRect.element = scrollableContentRef?.current;
|
|
24
|
+
return scrollableContentRect.init();
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
if (stackingRootRef?.current == null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return createPortal(
|
|
32
|
+
<div
|
|
33
|
+
style={{
|
|
34
|
+
position: 'fixed',
|
|
35
|
+
zIndex: 50,
|
|
36
|
+
background: 'transparent',
|
|
37
|
+
pointerEvents: 'none',
|
|
38
|
+
border: '#15e9e9 1px solid',
|
|
39
|
+
...(toolbar.containerRect && {
|
|
40
|
+
top: toolbar.containerRect.top,
|
|
41
|
+
left: toolbar.containerRect.left,
|
|
42
|
+
bottom: 0,
|
|
43
|
+
width: toolbar.containerRect.width,
|
|
44
|
+
}),
|
|
45
|
+
}}
|
|
46
|
+
/>,
|
|
47
|
+
stackingRootRef.current,
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const ContainerRectDebug = observer(_ContainerRectDebug);
|