@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,134 @@
|
|
|
1
|
+
import React, {
|
|
2
|
+
HTMLAttributes,
|
|
3
|
+
ReactNode,
|
|
4
|
+
RefCallback,
|
|
5
|
+
useEffect,
|
|
6
|
+
useMemo,
|
|
7
|
+
useRef,
|
|
8
|
+
} from 'react';
|
|
9
|
+
import { st, classes } from './SlidingModal.st.css.js';
|
|
10
|
+
|
|
11
|
+
export interface SlidingModalProps {
|
|
12
|
+
dataHook?: string;
|
|
13
|
+
width: string | number;
|
|
14
|
+
isOpen?: boolean;
|
|
15
|
+
style?: HTMLAttributes<HTMLElement>['style'];
|
|
16
|
+
className?: HTMLAttributes<HTMLElement>['className'];
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
contentRef?: RefCallback<HTMLDivElement>;
|
|
19
|
+
onExited?: () => void;
|
|
20
|
+
onEntered?: () => void;
|
|
21
|
+
onEntering?: () => void;
|
|
22
|
+
onExiting?: () => void;
|
|
23
|
+
transitionStatus?: string;
|
|
24
|
+
onRequestClose?: () => void;
|
|
25
|
+
shadowWidth?: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function SlidingModal(props: SlidingModalProps) {
|
|
29
|
+
const {
|
|
30
|
+
dataHook,
|
|
31
|
+
className,
|
|
32
|
+
style: styleProp,
|
|
33
|
+
shadowWidth = 20,
|
|
34
|
+
width,
|
|
35
|
+
isOpen,
|
|
36
|
+
children,
|
|
37
|
+
contentRef,
|
|
38
|
+
onExited,
|
|
39
|
+
onEntered,
|
|
40
|
+
onEntering,
|
|
41
|
+
onExiting,
|
|
42
|
+
onRequestClose,
|
|
43
|
+
transitionStatus,
|
|
44
|
+
} = props;
|
|
45
|
+
|
|
46
|
+
const style = useMemo(
|
|
47
|
+
() => ({
|
|
48
|
+
...styleProp,
|
|
49
|
+
transform: `translate3d(${
|
|
50
|
+
isOpen
|
|
51
|
+
? 0
|
|
52
|
+
: typeof width === 'number'
|
|
53
|
+
? `${width + shadowWidth}px`
|
|
54
|
+
: `${width}px`
|
|
55
|
+
}, 0, 0)`,
|
|
56
|
+
}),
|
|
57
|
+
[styleProp, width, isOpen],
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
const isOpenRef = useRef(isOpen);
|
|
61
|
+
const divRef = useRef<HTMLDivElement>();
|
|
62
|
+
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
if (process.env.NODE_ENV === 'test' && isOpen) {
|
|
65
|
+
onEntered?.();
|
|
66
|
+
} else {
|
|
67
|
+
if (process.env.NODE_ENV === 'test' && isOpenRef.current) {
|
|
68
|
+
onExited?.();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
isOpenRef.current = isOpen;
|
|
73
|
+
}, [isOpen]);
|
|
74
|
+
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
const rootElement = divRef.current;
|
|
77
|
+
|
|
78
|
+
if (!rootElement) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const onTransitionEnd = (e: TransitionEvent) => {
|
|
83
|
+
if (e.propertyName === 'transform') {
|
|
84
|
+
isOpenRef.current ? onEntered?.() : onExited?.();
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const onTransitionStart = (e: TransitionEvent) => {
|
|
89
|
+
if (e.propertyName === 'transform') {
|
|
90
|
+
isOpenRef.current ? onEntering?.() : onExiting?.();
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
rootElement.addEventListener('transitionend', onTransitionEnd);
|
|
95
|
+
rootElement.addEventListener('transitionstart', onTransitionStart);
|
|
96
|
+
|
|
97
|
+
return () => {
|
|
98
|
+
rootElement.removeEventListener('transitionend', onTransitionEnd);
|
|
99
|
+
rootElement.removeEventListener('transitionstart', onTransitionStart);
|
|
100
|
+
};
|
|
101
|
+
}, []);
|
|
102
|
+
|
|
103
|
+
return (
|
|
104
|
+
<div
|
|
105
|
+
tabIndex={-1}
|
|
106
|
+
onKeyDown={(e) => {
|
|
107
|
+
if (e.nativeEvent.code === 'Escape') {
|
|
108
|
+
onRequestClose?.();
|
|
109
|
+
}
|
|
110
|
+
}}
|
|
111
|
+
ref={(el) => {
|
|
112
|
+
if (el) {
|
|
113
|
+
divRef.current = el;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
contentRef?.(el);
|
|
117
|
+
}}
|
|
118
|
+
data-hook={dataHook}
|
|
119
|
+
data-transition-status={transitionStatus}
|
|
120
|
+
className={st(
|
|
121
|
+
classes.root,
|
|
122
|
+
{
|
|
123
|
+
exited: transitionStatus === 'exited',
|
|
124
|
+
},
|
|
125
|
+
...[className, isOpen ? 'cairo-sliding-modal-is-open' : undefined],
|
|
126
|
+
)}
|
|
127
|
+
role="presentation"
|
|
128
|
+
style={style}
|
|
129
|
+
aria-modal={undefined}
|
|
130
|
+
>
|
|
131
|
+
{children}
|
|
132
|
+
</div>
|
|
133
|
+
);
|
|
134
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UniDriver } from '@wix/wix-ui-test-utils/unidriver';
|
|
2
|
+
import { baseUniDriverFactory } from '../../unidriver';
|
|
3
|
+
|
|
4
|
+
export const SlidingModalUniDriver = (base: UniDriver, _: UniDriver) => {
|
|
5
|
+
const isOpen = () => base.hasClass('cairo-sliding-modal-is-open');
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
...baseUniDriverFactory(base),
|
|
9
|
+
isOpen,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SlidingModal';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { TaskState } from '@wix/bex-core';
|
|
2
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
3
|
+
import { Box, BoxProps, Loader } from '@wix/design-system';
|
|
4
|
+
import { observer } from 'mobx-react-lite';
|
|
5
|
+
|
|
6
|
+
export interface SplashProps extends Partial<BoxProps> {
|
|
7
|
+
state: TaskState<unknown>;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
renderError: (params: { err: unknown; isOnline: boolean }) => ReactElement;
|
|
10
|
+
dataHook?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function _Splash(props: SplashProps) {
|
|
14
|
+
const { state, children, renderError, height = '100vh', ...rest } = props;
|
|
15
|
+
|
|
16
|
+
const { status } = state;
|
|
17
|
+
|
|
18
|
+
let child: ReactNode;
|
|
19
|
+
|
|
20
|
+
if (status.isIdle || status.isLoading) {
|
|
21
|
+
child = (
|
|
22
|
+
<Box height="100%" align="center" verticalAlign="middle">
|
|
23
|
+
<Loader dataHook="initial-loader" size="large" />
|
|
24
|
+
</Box>
|
|
25
|
+
);
|
|
26
|
+
} else {
|
|
27
|
+
child = children;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<Box
|
|
32
|
+
boxSizing="border-box"
|
|
33
|
+
align="center"
|
|
34
|
+
width="100%"
|
|
35
|
+
direction="vertical"
|
|
36
|
+
{...rest}
|
|
37
|
+
height={height}
|
|
38
|
+
>
|
|
39
|
+
{child}
|
|
40
|
+
</Box>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const Splash = observer(_Splash);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LoaderUniDriver } from '@wix/design-system/dist/testkit/unidriver';
|
|
2
|
+
import { baseUniDriverFactory } from '../../unidriver';
|
|
3
|
+
import { UniDriver, waitFor } from '@wix/wix-ui-test-utils/unidriver';
|
|
4
|
+
|
|
5
|
+
export function SplashUniDriver(
|
|
6
|
+
base: UniDriver,
|
|
7
|
+
body: UniDriver,
|
|
8
|
+
{ dataHook: _ }: { dataHook: string },
|
|
9
|
+
) {
|
|
10
|
+
const getInitialLoaderBase = () => base.$('[data-hook="initial-loader"]');
|
|
11
|
+
const getInitialLoader = () => LoaderUniDriver(getInitialLoaderBase(), body);
|
|
12
|
+
|
|
13
|
+
return {
|
|
14
|
+
...baseUniDriverFactory(base),
|
|
15
|
+
waitInitialLoader: (timeout?: number) =>
|
|
16
|
+
getInitialLoaderBase().wait(timeout),
|
|
17
|
+
/** Indicates whether initial loader is in loading status */
|
|
18
|
+
isInitialLoaderLoading: () => getInitialLoader().isLoading(),
|
|
19
|
+
/** Indicates whether initial loader exists */
|
|
20
|
+
initialLoaderExists: () => getInitialLoader().exists(),
|
|
21
|
+
waitInitialLoaderRemoved: (timeout?: number) =>
|
|
22
|
+
waitFor(async () => !(await getInitialLoader().exists()), timeout),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Splash';
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box,
|
|
3
|
+
Divider,
|
|
4
|
+
SkeletonGroup,
|
|
5
|
+
SkeletonLine,
|
|
6
|
+
Table,
|
|
7
|
+
TableToolbar,
|
|
8
|
+
Text,
|
|
9
|
+
TextButton,
|
|
10
|
+
} from '@wix/design-system';
|
|
11
|
+
import React, { Fragment } from 'react';
|
|
12
|
+
import { useWixPatternsContainer } from '@wix/bex-core/react';
|
|
13
|
+
import { observer } from 'mobx-react-lite';
|
|
14
|
+
import { useSelector } from '../../useSelector';
|
|
15
|
+
import { Trans } from '../Trans';
|
|
16
|
+
|
|
17
|
+
export interface SummaryItem {
|
|
18
|
+
title: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}
|
|
21
|
+
export type SummaryBarStatus = 'loading' | 'error' | 'success';
|
|
22
|
+
export type SummaryData = SummaryItem[];
|
|
23
|
+
|
|
24
|
+
export interface SummaryBarProps {
|
|
25
|
+
/**
|
|
26
|
+
* Data to display in the summary bar.
|
|
27
|
+
* @external
|
|
28
|
+
*/
|
|
29
|
+
data: SummaryData;
|
|
30
|
+
/**
|
|
31
|
+
* Summary bar status.
|
|
32
|
+
* <br><br>
|
|
33
|
+
* Supported values:<br>
|
|
34
|
+
* - `"success"`<br>
|
|
35
|
+
* - `"loading"`<br>
|
|
36
|
+
* - `"error"`
|
|
37
|
+
* @external
|
|
38
|
+
* @default success
|
|
39
|
+
*/
|
|
40
|
+
status: SummaryBarStatus;
|
|
41
|
+
/**
|
|
42
|
+
* Function that is called every time **Reload** is clicked.
|
|
43
|
+
* @external
|
|
44
|
+
*/
|
|
45
|
+
onRetry: () => void | Promise<void>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const SkeletonSummaryBar = () => (
|
|
49
|
+
<SkeletonGroup dataHook="skeleton-summary-bar">
|
|
50
|
+
<Box gap="SP4" height="18px" verticalAlign="middle">
|
|
51
|
+
<SkeletonLine width="112px" />
|
|
52
|
+
<SkeletonLine width="112px" />
|
|
53
|
+
<SkeletonLine width="112px" />
|
|
54
|
+
</Box>
|
|
55
|
+
</SkeletonGroup>
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
const ErrorSummaryBar = ({
|
|
59
|
+
onRetry,
|
|
60
|
+
}: {
|
|
61
|
+
onRetry: SummaryBarProps['onRetry'];
|
|
62
|
+
}) => {
|
|
63
|
+
const { translate: t, ...container } = useWixPatternsContainer();
|
|
64
|
+
useSelector(() => container.initTask.status);
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<Box gap="3px" dataHook="error-summary-bar">
|
|
68
|
+
<Text
|
|
69
|
+
weight="thin"
|
|
70
|
+
size="small"
|
|
71
|
+
skin="standard"
|
|
72
|
+
secondary
|
|
73
|
+
dataHook="summary-bar-error-text"
|
|
74
|
+
>
|
|
75
|
+
{t('cairo.table.summaryBar.loadError')}
|
|
76
|
+
</Text>
|
|
77
|
+
<TextButton
|
|
78
|
+
size="small"
|
|
79
|
+
weight="thin"
|
|
80
|
+
dataHook="summary-bar-retry-button"
|
|
81
|
+
onClick={onRetry}
|
|
82
|
+
>
|
|
83
|
+
{t('cairo.table.summaryBar.loadError.cta')}
|
|
84
|
+
</TextButton>
|
|
85
|
+
</Box>
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const SummaryBarContent = ({ data }: { data: SummaryBarProps['data'] }) => {
|
|
90
|
+
const { translate: t, ...container } = useWixPatternsContainer();
|
|
91
|
+
useSelector(() => container.initTask.status);
|
|
92
|
+
|
|
93
|
+
return (
|
|
94
|
+
<TableToolbar.ItemGroup dataHook="summary-bar-content">
|
|
95
|
+
{data.map(({ title, value }, index) => (
|
|
96
|
+
<Fragment key={index}>
|
|
97
|
+
<TableToolbar.Item>
|
|
98
|
+
<Box gap="3px">
|
|
99
|
+
<Box>
|
|
100
|
+
<Text
|
|
101
|
+
weight="thin"
|
|
102
|
+
size="small"
|
|
103
|
+
skin="standard"
|
|
104
|
+
secondary
|
|
105
|
+
dataHook="summary-bar-item"
|
|
106
|
+
>
|
|
107
|
+
<Trans
|
|
108
|
+
i18nKey="cairo.table.summaryBar.list.item"
|
|
109
|
+
values={{
|
|
110
|
+
title,
|
|
111
|
+
value,
|
|
112
|
+
}}
|
|
113
|
+
components={{
|
|
114
|
+
value: (
|
|
115
|
+
<Text weight="normal" size="small" skin="standard" />
|
|
116
|
+
),
|
|
117
|
+
}}
|
|
118
|
+
/>
|
|
119
|
+
</Text>
|
|
120
|
+
</Box>
|
|
121
|
+
</Box>
|
|
122
|
+
</TableToolbar.Item>
|
|
123
|
+
<TableToolbar.Item>
|
|
124
|
+
{index !== data.length - 1 && (
|
|
125
|
+
<Box height="18px">
|
|
126
|
+
<Divider direction="vertical" dataHook="summary-bar-divider" />
|
|
127
|
+
</Box>
|
|
128
|
+
)}
|
|
129
|
+
</TableToolbar.Item>
|
|
130
|
+
</Fragment>
|
|
131
|
+
))}
|
|
132
|
+
</TableToolbar.ItemGroup>
|
|
133
|
+
);
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const _SummaryBar = (props: SummaryBarProps) => {
|
|
137
|
+
const { data, status, onRetry } = props;
|
|
138
|
+
const contentByStatus = {
|
|
139
|
+
loading: <SkeletonSummaryBar />,
|
|
140
|
+
error: <ErrorSummaryBar onRetry={onRetry} />,
|
|
141
|
+
success: <SummaryBarContent data={data} />,
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
return (
|
|
145
|
+
<Table.SubToolbar dataHook="summary-bar">
|
|
146
|
+
{contentByStatus[status]}
|
|
147
|
+
</Table.SubToolbar>
|
|
148
|
+
);
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export const SummaryBar = observer(_SummaryBar);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TextButtonUniDriver,
|
|
3
|
+
TextUniDriver,
|
|
4
|
+
} from '@wix/design-system/dist/testkit/unidriver';
|
|
5
|
+
import { UniDriver } from '@wix/wix-ui-test-utils/unidriver';
|
|
6
|
+
|
|
7
|
+
export const SummaryBarUniDriver = async (base: UniDriver, body: UniDriver) => {
|
|
8
|
+
const summaryBarBase = await base.get('[data-hook="summary-bar"]');
|
|
9
|
+
|
|
10
|
+
const isSuccessState = async () =>
|
|
11
|
+
(await summaryBarBase.get('[data-hook="summary-bar-content"]')).exists();
|
|
12
|
+
|
|
13
|
+
const isLoadingState = async () =>
|
|
14
|
+
(await summaryBarBase.get('[data-hook="skeleton-summary-bar"]')).exists();
|
|
15
|
+
|
|
16
|
+
const isErrorState = async () =>
|
|
17
|
+
(await summaryBarBase.get('[data-hook="error-summary-bar"]')).exists();
|
|
18
|
+
|
|
19
|
+
const getRetryButton = async () =>
|
|
20
|
+
TextButtonUniDriver(
|
|
21
|
+
await summaryBarBase.get('[data-hook="summary-bar-retry-button"]'),
|
|
22
|
+
body,
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
const getErrorText = async () =>
|
|
26
|
+
TextUniDriver(
|
|
27
|
+
await summaryBarBase.get('[data-hook="summary-bar-error-text"]'),
|
|
28
|
+
body,
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
const getItemTextAt = async (index: number) =>
|
|
32
|
+
(await summaryBarBase.getAll('[data-hook="summary-bar-item"]'))
|
|
33
|
+
.at(index)
|
|
34
|
+
.text();
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
...summaryBarBase,
|
|
38
|
+
/** Is SummaryBar in success state */
|
|
39
|
+
isSuccessState,
|
|
40
|
+
/** Is SummaryBar in loading state */
|
|
41
|
+
isLoadingState,
|
|
42
|
+
/** Is SummaryBar in error state */
|
|
43
|
+
isErrorState,
|
|
44
|
+
/** Gets retry button text */
|
|
45
|
+
getRetryButton,
|
|
46
|
+
/** Gets error text */
|
|
47
|
+
getErrorText,
|
|
48
|
+
getItemTextAt,
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default SummaryBarUniDriver;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SummaryBar';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { observer } from 'mobx-react-lite';
|
|
2
|
+
import { CounterBadge, CounterBadgeProps } from '@wix/design-system';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import {
|
|
5
|
+
useFilterValueTotalState,
|
|
6
|
+
UseFilterValueTotalStateParams,
|
|
7
|
+
} from './useFilterValueTotalState';
|
|
8
|
+
import { FiltersMap } from '@wix/bex-core';
|
|
9
|
+
import { initTabTotal } from '../../state/initTabTotal';
|
|
10
|
+
|
|
11
|
+
export interface TabCounterBadgeProps<V, T, F extends FiltersMap>
|
|
12
|
+
extends UseFilterValueTotalStateParams<V, T, F>,
|
|
13
|
+
Partial<CounterBadgeProps> {}
|
|
14
|
+
|
|
15
|
+
function _TabCounterBadge<V, T = unknown, F extends FiltersMap = FiltersMap>(
|
|
16
|
+
props: TabCounterBadgeProps<V, T, F>,
|
|
17
|
+
) {
|
|
18
|
+
const { value, ...rest } = props;
|
|
19
|
+
const state = useFilterValueTotalState(props);
|
|
20
|
+
|
|
21
|
+
const {
|
|
22
|
+
totalsCollection: { totalStatus, total, lifecycleState },
|
|
23
|
+
} = state;
|
|
24
|
+
|
|
25
|
+
return totalStatus === 'success' && lifecycleState === 'result' ? (
|
|
26
|
+
<CounterBadge {...rest}>{total}</CounterBadge>
|
|
27
|
+
) : null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
_TabCounterBadge.initTabTotal = initTabTotal;
|
|
31
|
+
export const TabTotalCounterBadge = observer(_TabCounterBadge);
|
|
32
|
+
TabTotalCounterBadge.displayName = 'TabTotalCounterBadge';
|
|
33
|
+
TabTotalCounterBadge.initTabTotal = initTabTotal;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { observer } from 'mobx-react-lite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import {
|
|
4
|
+
useFilterValueTotalState,
|
|
5
|
+
UseFilterValueTotalStateParams,
|
|
6
|
+
} from './useFilterValueTotalState';
|
|
7
|
+
import { FiltersMap } from '@wix/bex-core';
|
|
8
|
+
import { initTabTotal } from '../../state/initTabTotal';
|
|
9
|
+
|
|
10
|
+
export interface TabTotalDropdownOptionProps<V, T, F extends FiltersMap>
|
|
11
|
+
extends UseFilterValueTotalStateParams<V, T, F> {}
|
|
12
|
+
|
|
13
|
+
function _TabTotalDropdownOption<
|
|
14
|
+
V,
|
|
15
|
+
T = unknown,
|
|
16
|
+
F extends FiltersMap = FiltersMap,
|
|
17
|
+
>(props: TabTotalDropdownOptionProps<V, T, F>) {
|
|
18
|
+
const state = useFilterValueTotalState(props);
|
|
19
|
+
|
|
20
|
+
const {
|
|
21
|
+
totalsCollection: {
|
|
22
|
+
result: { total },
|
|
23
|
+
initTask,
|
|
24
|
+
},
|
|
25
|
+
} = state;
|
|
26
|
+
|
|
27
|
+
const { isIdle, isLoading } = initTask.status;
|
|
28
|
+
|
|
29
|
+
return isIdle || isLoading ? null : <span data-hook="total">({total})</span>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
_TabTotalDropdownOption.initTabTotal = initTabTotal;
|
|
33
|
+
export const TabTotalDropdownOption = observer(_TabTotalDropdownOption);
|
|
34
|
+
TabTotalDropdownOption.displayName = 'TabTotalDropdownOption';
|
|
35
|
+
TabTotalDropdownOption.initTabTotal = initTabTotal;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { observer } from 'mobx-react-lite';
|
|
2
|
+
import { Text } from '@wix/design-system';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import {
|
|
5
|
+
useFilterValueTotalState,
|
|
6
|
+
UseFilterValueTotalStateParams,
|
|
7
|
+
} from './useFilterValueTotalState';
|
|
8
|
+
import { FiltersMap } from '@wix/bex-core';
|
|
9
|
+
import { initTabTotal } from '../../state/initTabTotal';
|
|
10
|
+
|
|
11
|
+
export interface TabTotalParensProps<V, T, F extends FiltersMap>
|
|
12
|
+
extends UseFilterValueTotalStateParams<V, T, F> {}
|
|
13
|
+
|
|
14
|
+
function _TabTotalParens<V, T = unknown, F extends FiltersMap = FiltersMap>(
|
|
15
|
+
props: TabTotalParensProps<V, T, F>,
|
|
16
|
+
) {
|
|
17
|
+
const state = useFilterValueTotalState(props);
|
|
18
|
+
|
|
19
|
+
const {
|
|
20
|
+
totalsCollection: {
|
|
21
|
+
result: { total },
|
|
22
|
+
initTask,
|
|
23
|
+
},
|
|
24
|
+
} = state;
|
|
25
|
+
|
|
26
|
+
const { isIdle, isLoading } = initTask.status;
|
|
27
|
+
|
|
28
|
+
return isIdle || isLoading ? null : (
|
|
29
|
+
<Text size="small">
|
|
30
|
+
(<span data-hook="total">{total}</span>)
|
|
31
|
+
</Text>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_TabTotalParens.initTabTotal = initTabTotal;
|
|
36
|
+
export const TabTotalParens = observer(_TabTotalParens);
|
|
37
|
+
TabTotalParens.displayName = 'TabTotalParens';
|
|
38
|
+
TabTotalParens.initTabTotal = initTabTotal;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { useFilterContext } from '../FilterContext';
|
|
2
|
+
import { useCollectionContext } from '../CollectionContext';
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
|
+
import { FilterValueTotalState } from '../../state';
|
|
5
|
+
import { CollectionOptimisticActions, FiltersMap } from '@wix/bex-core';
|
|
6
|
+
|
|
7
|
+
export interface UseFilterValueTotalStateParams<V, T, F extends FiltersMap> {
|
|
8
|
+
/**
|
|
9
|
+
* The filter value (passed at first argument to `counterBadge(value)`)
|
|
10
|
+
*/
|
|
11
|
+
readonly value: V | null | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* [`OptimisticActions`](./?path=/story/features-actions-updates--collectionoptimisticactions) instance to wire the total to
|
|
14
|
+
*/
|
|
15
|
+
readonly optimisticActions?: CollectionOptimisticActions<T, F>;
|
|
16
|
+
/**
|
|
17
|
+
* When set to `true` the total value will not change after table search
|
|
18
|
+
*/
|
|
19
|
+
readonly ignoreSearch?: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function useFilterValueTotalState<V, T, F extends FiltersMap>({
|
|
23
|
+
value,
|
|
24
|
+
...params
|
|
25
|
+
}: UseFilterValueTotalStateParams<V, T, F>) {
|
|
26
|
+
const filter = useFilterContext<V[]>();
|
|
27
|
+
const collection = useCollectionContext();
|
|
28
|
+
|
|
29
|
+
const [state] = useState(
|
|
30
|
+
() =>
|
|
31
|
+
new FilterValueTotalState({
|
|
32
|
+
filter,
|
|
33
|
+
value,
|
|
34
|
+
collection,
|
|
35
|
+
...params,
|
|
36
|
+
}),
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
useEffect(() => state.init(), []);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (value !== state.value) {
|
|
42
|
+
state.refresh(value);
|
|
43
|
+
}
|
|
44
|
+
}, [value]);
|
|
45
|
+
|
|
46
|
+
return state;
|
|
47
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CollectionState, FiltersMap } from '@wix/bex-core';
|
|
3
|
+
import { TableVirtual } from './TableVirtual';
|
|
4
|
+
import { useWixPatternsContainer } from '@wix/bex-core/react';
|
|
5
|
+
import { CollectionTableBaseProps } from '../CollectionTable';
|
|
6
|
+
import { TableState } from '../../state';
|
|
7
|
+
import { TableCompat } from './TableCompat';
|
|
8
|
+
import type { TableSectionsProp } from '../TableSections';
|
|
9
|
+
|
|
10
|
+
export interface TableProps<T, F extends FiltersMap>
|
|
11
|
+
extends CollectionTableBaseProps<T, F> {
|
|
12
|
+
rowHeight?: number | ((item: T, index: number) => number);
|
|
13
|
+
estimatedRowHeight?: number;
|
|
14
|
+
/**
|
|
15
|
+
* A state instance created using the [`useTableCollection()`](./?path=/story/base-components-collections-table-usetablecollection--usetablecollection) hook, responsible for managing the data displayed in the table.
|
|
16
|
+
* @overrideType [TableState](./?path=/story/base-components-collections-table-tablestate--tablestate)
|
|
17
|
+
* @external
|
|
18
|
+
*/
|
|
19
|
+
state: CollectionState<T, F> | TableState<T, F>;
|
|
20
|
+
|
|
21
|
+
// a flag to opt out from virtualization
|
|
22
|
+
isVirtual?: boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Configuration for rendering table sections. When provided, the table will render with section headers
|
|
26
|
+
* that group related rows together
|
|
27
|
+
* @external
|
|
28
|
+
*/
|
|
29
|
+
sections?: TableSectionsProp<T>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function Table<T, F extends FiltersMap = FiltersMap>(
|
|
33
|
+
props: TableProps<T, F>,
|
|
34
|
+
) {
|
|
35
|
+
const { rowHeight, estimatedRowHeight, isVirtual, ...tableProps } = props;
|
|
36
|
+
const container = useWixPatternsContainer();
|
|
37
|
+
|
|
38
|
+
const { internalExperiments } = container;
|
|
39
|
+
|
|
40
|
+
const isVirtualExperiment = internalExperiments?.enabled(
|
|
41
|
+
'specs.Cairo.TableVirtualizationAsDefault',
|
|
42
|
+
);
|
|
43
|
+
return isVirtualExperiment && isVirtual !== false && !props.rowDetails ? (
|
|
44
|
+
<TableVirtual
|
|
45
|
+
{...tableProps}
|
|
46
|
+
rowHeight={rowHeight}
|
|
47
|
+
estimatedRowHeight={estimatedRowHeight}
|
|
48
|
+
/>
|
|
49
|
+
) : (
|
|
50
|
+
<TableCompat {...tableProps} />
|
|
51
|
+
);
|
|
52
|
+
}
|