@wix/patterns 1.358.0 → 1.360.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/CollectionSectionHeader/CollectionSectionHeader.st.css.js +3 -3
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionTable/CollectionTable.js +12 -11
- package/dist/cjs/components/CollectionTable/CollectionTable.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/CollectionTable.uni.driver.js +8 -0
- package/dist/cjs/components/CollectionTable/CollectionTable.uni.driver.js.map +1 -1
- package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.js +10 -8
- package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.js.map +1 -1
- package/dist/cjs/components/CollectionToolbar/CollectionToolbar.js +24 -22
- package/dist/cjs/components/CollectionToolbar/CollectionToolbar.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/CollectionToolbarActionsGroupProps.js.map +1 -1
- package/dist/cjs/components/CollectionToolbar/CollectionToolbarActionsGroupResponsiveLayout.js +13 -10
- package/dist/cjs/components/CollectionToolbar/CollectionToolbarActionsGroupResponsiveLayout.js.map +1 -1
- package/dist/cjs/components/CollectionToolbar/CollectionToolbarActionsToolbarItemsGroup.js +21 -11
- package/dist/cjs/components/CollectionToolbar/CollectionToolbarActionsToolbarItemsGroup.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/CollectionToolbar/useIsCollectionToolbarExists.js +2 -1
- package/dist/cjs/components/CollectionToolbar/useIsCollectionToolbarExists.js.map +1 -1
- package/dist/cjs/components/CollectionToolbars/CollectionToolbars.js +13 -13
- package/dist/cjs/components/CollectionToolbars/CollectionToolbars.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/CollectionViewsDropdown.uni.driver.js +85 -11
- package/dist/cjs/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/ManageViewPopover.js +102 -75
- package/dist/cjs/components/CollectionViewsDropdown/ManageViewPopover.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/ManageViewPopover.uni.driver.js +23 -9
- package/dist/cjs/components/CollectionViewsDropdown/ManageViewPopover.uni.driver.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/SaveToNewViewFooter.js +63 -0
- package/dist/cjs/components/CollectionViewsDropdown/SaveToNewViewFooter.js.map +1 -0
- package/dist/cjs/components/CollectionViewsDropdown/SaveToNewViewFooter.uni.driver.js +20 -0
- package/dist/cjs/components/CollectionViewsDropdown/SaveToNewViewFooter.uni.driver.js.map +1 -0
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.js +64 -30
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.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/CollectionViewsDropdown/ViewsDropdownPrefix.js +15 -9
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdownPrefix.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.js +20 -12
- package/dist/cjs/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.js.map +1 -1
- package/dist/cjs/components/CustomDrawerLayout.js +13 -11
- package/dist/cjs/components/CustomDrawerLayout.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/Grid/Grid.js +8 -7
- package/dist/cjs/components/Grid/Grid.js.map +1 -1
- package/dist/cjs/components/Heading/Heading.st.css.js +2 -2
- package/dist/cjs/components/Heading/Heading.st.css.js.map +1 -1
- package/dist/cjs/components/ImportButton/ImportButton.js +137 -0
- package/dist/cjs/components/ImportButton/ImportButton.js.map +1 -0
- package/dist/cjs/components/ImportButton/ImportButton.uni.driver.js +21 -0
- package/dist/cjs/components/ImportButton/ImportButton.uni.driver.js.map +1 -0
- package/dist/cjs/components/ImportButton/ImportButtonModalLayout.js +100 -0
- package/dist/cjs/components/ImportButton/ImportButtonModalLayout.js.map +1 -0
- package/dist/cjs/components/ImportButton/ImportModal.js +55 -0
- package/dist/cjs/components/ImportButton/ImportModal.js.map +1 -0
- package/dist/cjs/components/ImportButton/ImportModal.uni.driver.js +65 -0
- package/dist/cjs/components/ImportButton/ImportModal.uni.driver.js.map +1 -0
- package/dist/cjs/components/ImportButton/ImportProps.js +4 -0
- package/dist/cjs/components/ImportButton/ImportProps.js.map +1 -0
- package/dist/cjs/components/ImportButton/ImportStepConfiguration.js +220 -0
- package/dist/cjs/components/ImportButton/ImportStepConfiguration.js.map +1 -0
- package/dist/cjs/components/ImportButton/ImportStepError.js +39 -0
- package/dist/cjs/components/ImportButton/ImportStepError.js.map +1 -0
- package/dist/cjs/components/ImportButton/ImportStepProgress.js +86 -0
- package/dist/cjs/components/ImportButton/ImportStepProgress.js.map +1 -0
- package/dist/cjs/components/ImportButton/ImportStepUpload.js +76 -0
- package/dist/cjs/components/ImportButton/ImportStepUpload.js.map +1 -0
- package/dist/cjs/components/ImportButton/ImportStepUpload.st.css +3 -0
- package/dist/cjs/components/ImportButton/ImportStepUpload.st.css.js +23 -0
- package/dist/cjs/components/ImportButton/ImportStepUpload.st.css.js.map +1 -0
- package/dist/cjs/components/ImportButton/ImportStepper.js +54 -0
- package/dist/cjs/components/ImportButton/ImportStepper.js.map +1 -0
- package/dist/cjs/components/ImportButton/getImportModalStepProps.js +124 -0
- package/dist/cjs/components/ImportButton/getImportModalStepProps.js.map +1 -0
- package/dist/cjs/components/ImportButton/index.js +26 -0
- package/dist/cjs/components/ImportButton/index.js.map +1 -0
- package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js +2 -2
- package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
- package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js +3 -3
- package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js.map +1 -1
- package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
- package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
- package/dist/cjs/components/MaxLines/MaxLines.st.css.js +2 -2
- package/dist/cjs/components/MaxLines/MaxLines.st.css.js.map +1 -1
- package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +5 -5
- package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
- package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js +5 -5
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
- package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js.map +1 -1
- package/dist/cjs/components/PickerContent/PickerContent.st.css.js +2 -2
- package/dist/cjs/components/PickerContent/PickerContent.st.css.js.map +1 -1
- package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js +4 -4
- package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
- package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
- package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
- package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
- package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
- package/dist/cjs/components/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/TableFolders/TableFolders.js +6 -5
- package/dist/cjs/components/TableFolders/TableFolders.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/ToolbarCollection/ToolbarCollection.js +5 -3
- package/dist/cjs/components/ToolbarCollection/ToolbarCollection.js.map +1 -1
- package/dist/cjs/components/ToolbarCollection/useToolbarCollectionSyncProps.js +9 -0
- package/dist/cjs/components/ToolbarCollection/useToolbarCollectionSyncProps.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/index.js +12 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model/view.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/CollectionViewsStateBIReporter.js +20 -2
- package/dist/cjs/state/CollectionViewsStateBIReporter.js.map +1 -1
- package/dist/cjs/state/FormPage/FormPageHeader.st.css.js +2 -2
- package/dist/cjs/state/FormPage/FormPageHeader.st.css.js.map +1 -1
- package/dist/cjs/state/ToolbarCollectionState.js +4 -1
- package/dist/cjs/state/ToolbarCollectionState.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/Collapse/Collapse.st.css.js +2 -2
- package/dist/esm/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js +2 -2
- package/dist/esm/components/CollectionTable/CollectionTable.js +2 -1
- package/dist/esm/components/CollectionTable/CollectionTable.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/CollectionTable.uni.driver.js +8 -0
- package/dist/esm/components/CollectionTable/CollectionTable.uni.driver.js.map +1 -1
- package/dist/esm/components/CollectionTable/CollectionTableWSRTable.js +2 -2
- package/dist/esm/components/CollectionTable/CollectionTableWSRTable.js.map +1 -1
- package/dist/esm/components/CollectionToolbar/CollectionToolbar.js +2 -2
- package/dist/esm/components/CollectionToolbar/CollectionToolbar.js.map +1 -1
- package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js +2 -2
- package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js.map +1 -1
- package/dist/esm/components/CollectionToolbar/CollectionToolbarActionsGroupResponsiveLayout.js +5 -1
- package/dist/esm/components/CollectionToolbar/CollectionToolbarActionsGroupResponsiveLayout.js.map +1 -1
- package/dist/esm/components/CollectionToolbar/CollectionToolbarActionsToolbarItemsGroup.js +4 -1
- package/dist/esm/components/CollectionToolbar/CollectionToolbarActionsToolbarItemsGroup.js.map +1 -1
- package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +2 -2
- package/dist/esm/components/CollectionToolbar/useIsCollectionToolbarExists.js +2 -1
- package/dist/esm/components/CollectionToolbar/useIsCollectionToolbarExists.js.map +1 -1
- package/dist/esm/components/CollectionToolbars/CollectionToolbars.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
- package/dist/esm/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.js +79 -11
- package/dist/esm/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/ManageViewPopover.js +28 -43
- package/dist/esm/components/CollectionViewsDropdown/ManageViewPopover.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/ManageViewPopover.uni.driver.js +24 -9
- package/dist/esm/components/CollectionViewsDropdown/ManageViewPopover.uni.driver.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/SaveToNewViewFooter.js +17 -0
- package/dist/esm/components/CollectionViewsDropdown/SaveToNewViewFooter.js.map +1 -0
- package/dist/esm/components/CollectionViewsDropdown/SaveToNewViewFooter.uni.driver.js +15 -0
- package/dist/esm/components/CollectionViewsDropdown/SaveToNewViewFooter.uni.driver.js.map +1 -0
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.js +33 -10
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdownPrefix.js +7 -2
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdownPrefix.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.js +7 -4
- package/dist/esm/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.js.map +1 -1
- package/dist/esm/components/CustomDrawerLayout.js +5 -5
- package/dist/esm/components/CustomDrawerLayout.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/Grid/Grid.js +3 -2
- package/dist/esm/components/Grid/Grid.js.map +1 -1
- package/dist/esm/components/Heading/Heading.st.css.js +2 -2
- package/dist/esm/components/ImportButton/ImportButton.js +33 -0
- package/dist/esm/components/ImportButton/ImportButton.js.map +1 -0
- package/dist/esm/components/ImportButton/ImportButton.uni.driver.js +15 -0
- package/dist/esm/components/ImportButton/ImportButton.uni.driver.js.map +1 -0
- package/dist/esm/components/ImportButton/ImportButtonModalLayout.js +40 -0
- package/dist/esm/components/ImportButton/ImportButtonModalLayout.js.map +1 -0
- package/dist/esm/components/ImportButton/ImportModal.js +19 -0
- package/dist/esm/components/ImportButton/ImportModal.js.map +1 -0
- package/dist/esm/components/ImportButton/ImportModal.uni.driver.js +58 -0
- package/dist/esm/components/ImportButton/ImportModal.uni.driver.js.map +1 -0
- package/dist/esm/components/ImportButton/ImportProps.js +2 -0
- package/dist/esm/components/ImportButton/ImportProps.js.map +1 -0
- package/dist/esm/components/ImportButton/ImportStepConfiguration.js +56 -0
- package/dist/esm/components/ImportButton/ImportStepConfiguration.js.map +1 -0
- package/dist/esm/components/ImportButton/ImportStepError.js +13 -0
- package/dist/esm/components/ImportButton/ImportStepError.js.map +1 -0
- package/dist/esm/components/ImportButton/ImportStepProgress.js +28 -0
- package/dist/esm/components/ImportButton/ImportStepProgress.js.map +1 -0
- package/dist/esm/components/ImportButton/ImportStepUpload.js +18 -0
- package/dist/esm/components/ImportButton/ImportStepUpload.js.map +1 -0
- package/dist/esm/components/ImportButton/ImportStepUpload.st.css +3 -0
- package/dist/esm/components/ImportButton/ImportStepUpload.st.css.js +15 -0
- package/dist/esm/components/ImportButton/ImportStepUpload.st.css.js.map +1 -0
- package/dist/esm/components/ImportButton/ImportStepper.js +31 -0
- package/dist/esm/components/ImportButton/ImportStepper.js.map +1 -0
- package/dist/esm/components/ImportButton/getImportModalStepProps.js +53 -0
- package/dist/esm/components/ImportButton/getImportModalStepProps.js.map +1 -0
- package/dist/esm/components/ImportButton/index.js +3 -0
- package/dist/esm/components/ImportButton/index.js.map +1 -0
- package/dist/esm/components/InputOverflow/InputOverflow.st.css.js +2 -2
- package/dist/esm/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
- package/dist/esm/components/LoadingRow/LoadingRow.st.css.js +3 -3
- package/dist/esm/components/LoadingRow/LoadingRow.st.css.js.map +1 -1
- package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
- package/dist/esm/components/MaxLines/MaxLines.st.css.js +2 -2
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTableRow.st.css.js +2 -2
- package/dist/esm/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js.map +1 -1
- package/dist/esm/components/PickerContent/PickerContent.st.css.js +2 -2
- package/dist/esm/components/PickerContent/PickerContent.st.css.js.map +1 -1
- package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js +2 -2
- package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
- package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
- package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js +2 -2
- package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
- package/dist/esm/components/SlidingModal/SlidingModal.st.css.js +2 -2
- package/dist/esm/components/TableFolders/TableFolders.js +2 -1
- package/dist/esm/components/TableFolders/TableFolders.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/ToolbarCollection/ToolbarCollection.js +2 -2
- package/dist/esm/components/ToolbarCollection/ToolbarCollection.js.map +1 -1
- package/dist/esm/components/ToolbarCollection/useToolbarCollectionSyncProps.js +9 -1
- package/dist/esm/components/ToolbarCollection/useToolbarCollectionSyncProps.js.map +1 -1
- 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/common.st.css.js +2 -2
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model/view.js.map +1 -1
- package/dist/esm/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
- package/dist/esm/state/CollectionPage/CollectionPageHeader.st.css.js.map +1 -1
- package/dist/esm/state/CollectionViewsStateBIReporter.js +19 -1
- package/dist/esm/state/CollectionViewsStateBIReporter.js.map +1 -1
- package/dist/esm/state/FormPage/FormPageHeader.st.css.js +2 -2
- package/dist/esm/state/FormPage/FormPageHeader.st.css.js.map +1 -1
- package/dist/esm/state/ToolbarCollectionState.js +2 -0
- package/dist/esm/state/ToolbarCollectionState.js.map +1 -1
- package/dist/esm/styles.global.css +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/components/CollectionTable/CollectionTable.d.ts.map +1 -1
- package/dist/types/components/CollectionTable/CollectionTable.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionTable/CollectionTable.uni.driver.d.ts +384 -179
- package/dist/types/components/CollectionTable/CollectionTable.uni.driver.d.ts.map +1 -1
- package/dist/types/components/CollectionTable/CollectionTableWSRTable.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/CollectionToolbar.d.ts +1 -0
- package/dist/types/components/CollectionToolbar/CollectionToolbar.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/CollectionToolbar.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/CollectionToolbar.uni.driver.d.ts +2 -2
- package/dist/types/components/CollectionToolbar/CollectionToolbarActionsGroupProps.d.ts +1 -0
- package/dist/types/components/CollectionToolbar/CollectionToolbarActionsGroupProps.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/CollectionToolbarActionsGroupResponsiveLayout.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/CollectionToolbarActionsToolbarItemsGroup.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/useIsCollectionToolbarExists.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbars/CollectionToolbars.d.ts +1 -1
- package/dist/types/components/CollectionToolbars/CollectionToolbars.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.d.ts +9 -9
- package/dist/types/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/ManageViewPopover.d.ts +8 -5
- package/dist/types/components/CollectionViewsDropdown/ManageViewPopover.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/ManageViewPopover.uni.driver.d.ts +6 -6
- package/dist/types/components/CollectionViewsDropdown/ManageViewPopover.uni.driver.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/SaveToNewViewFooter.d.ts +12 -0
- package/dist/types/components/CollectionViewsDropdown/SaveToNewViewFooter.d.ts.map +1 -0
- package/dist/types/components/CollectionViewsDropdown/SaveToNewViewFooter.uni.driver.d.ts +18 -0
- package/dist/types/components/CollectionViewsDropdown/SaveToNewViewFooter.uni.driver.d.ts.map +1 -0
- package/dist/types/components/CollectionViewsDropdown/ViewsDropdown.d.ts +1 -0
- package/dist/types/components/CollectionViewsDropdown/ViewsDropdown.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/ViewsDropdownPrefix.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.d.ts +3 -2
- package/dist/types/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.d.ts.map +1 -1
- package/dist/types/components/CustomDrawerLayout.d.ts +1 -0
- package/dist/types/components/CustomDrawerLayout.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.uni.driver.d.ts +2 -2
- package/dist/types/components/Grid/GridFolders.uni.driver.d.ts +6 -6
- package/dist/types/components/Grid/GridFoldersSection.uni.driver.d.ts +2 -2
- package/dist/types/components/ImportButton/ImportButton.d.ts +9 -0
- package/dist/types/components/ImportButton/ImportButton.d.ts.map +1 -0
- package/dist/types/components/ImportButton/ImportButton.uni.driver.d.ts +91 -0
- package/dist/types/components/ImportButton/ImportButton.uni.driver.d.ts.map +1 -0
- package/dist/types/components/ImportButton/ImportButtonModalLayout.d.ts +8 -0
- package/dist/types/components/ImportButton/ImportButtonModalLayout.d.ts.map +1 -0
- package/dist/types/components/ImportButton/ImportModal.d.ts +9 -0
- package/dist/types/components/ImportButton/ImportModal.d.ts.map +1 -0
- package/dist/types/components/ImportButton/ImportModal.uni.driver.d.ts +92 -0
- package/dist/types/components/ImportButton/ImportModal.uni.driver.d.ts.map +1 -0
- package/dist/types/components/ImportButton/ImportProps.d.ts +17 -0
- package/dist/types/components/ImportButton/ImportProps.d.ts.map +1 -0
- package/dist/types/components/ImportButton/ImportStepConfiguration.d.ts +11 -0
- package/dist/types/components/ImportButton/ImportStepConfiguration.d.ts.map +1 -0
- package/dist/types/components/ImportButton/ImportStepError.d.ts +11 -0
- package/dist/types/components/ImportButton/ImportStepError.d.ts.map +1 -0
- package/dist/types/components/ImportButton/ImportStepProgress.d.ts +11 -0
- package/dist/types/components/ImportButton/ImportStepProgress.d.ts.map +1 -0
- package/dist/types/components/ImportButton/ImportStepUpload.d.ts +11 -0
- package/dist/types/components/ImportButton/ImportStepUpload.d.ts.map +1 -0
- package/dist/types/components/ImportButton/ImportStepUpload.st.css.d.ts +14 -0
- package/dist/types/components/ImportButton/ImportStepUpload.st.css.d.ts.map +1 -0
- package/dist/types/components/ImportButton/ImportStepper.d.ts +12 -0
- package/dist/types/components/ImportButton/ImportStepper.d.ts.map +1 -0
- package/dist/types/components/ImportButton/getImportModalStepProps.d.ts +11 -0
- package/dist/types/components/ImportButton/getImportModalStepProps.d.ts.map +1 -0
- package/dist/types/components/ImportButton/index.d.ts +4 -0
- package/dist/types/components/ImportButton/index.d.ts.map +1 -0
- package/dist/types/components/InputOverflow/InputOverflow.st.css.d.ts.map +1 -1
- package/dist/types/components/Kanban/Kanban.uni.driver.d.ts +2 -2
- package/dist/types/components/LoadingRow/LoadingRow.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTable.uni.driver.d.ts +179 -43
- package/dist/types/components/NestedTable/NestedTable.uni.driver.d.ts.map +1 -1
- package/dist/types/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.d.ts.map +1 -1
- package/dist/types/components/PickerContent/PickerContent.st.css.d.ts.map +1 -1
- package/dist/types/components/SkeletonCard/SkeletonCard.st.css.d.ts.map +1 -1
- package/dist/types/components/Table/Table.uni.driver.d.ts +191 -23
- package/dist/types/components/Table/Table.uni.driver.d.ts.map +1 -1
- package/dist/types/components/TableFolders/TableFolders.d.ts.map +1 -1
- package/dist/types/components/TableFolders/TableFolders.uni.driver.d.ts +182 -16
- package/dist/types/components/TableFolders/TableFolders.uni.driver.d.ts.map +1 -1
- package/dist/types/components/TableGridSwitch/TableGridSwitch.uni.driver.d.ts +179 -7
- package/dist/types/components/TableGridSwitch/TableGridSwitch.uni.driver.d.ts.map +1 -1
- package/dist/types/components/ToolbarCollection/ToolbarCollection.d.ts +8 -0
- package/dist/types/components/ToolbarCollection/ToolbarCollection.d.ts.map +1 -1
- package/dist/types/components/ToolbarCollection/useToolbarCollectionSyncProps.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/model/view.d.ts +1 -0
- package/dist/types/model/view.d.ts.map +1 -1
- package/dist/types/state/CollectionPage/CollectionPageHeader.st.css.d.ts.map +1 -1
- package/dist/types/state/CollectionViewsStateBIReporter.d.ts.map +1 -1
- package/dist/types/state/FormPage/FormPageHeader.st.css.d.ts.map +1 -1
- package/dist/types/state/ToolbarCollectionState.d.ts +3 -0
- package/dist/types/state/ToolbarCollectionState.d.ts.map +1 -1
- package/dist/types/testkit/enzyme.d.ts +724 -36
- package/dist/types/testkit/enzyme.d.ts.map +1 -1
- package/dist/types/testkit/jsdom.d.ts +726 -38
- package/dist/types/testkit/jsdom.d.ts.map +1 -1
- package/dist/types/testkit/playwright.d.ts +724 -36
- package/dist/types/testkit/playwright.d.ts.map +1 -1
- package/dist/types/testkit/puppeteer.d.ts +726 -38
- package/dist/types/testkit/puppeteer.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/CardContainer/CardContainer.st.css.ts +2 -2
- package/src/components/Collapse/Collapse.st.css.ts +2 -2
- package/src/components/CollectionPageNew/CollectionPage.st.css.ts +2 -2
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.st.css.ts +2 -2
- package/src/components/CollectionTable/CollectionTable.st.css.ts +2 -2
- package/src/components/CollectionTable/CollectionTable.tsx +2 -0
- package/src/components/CollectionTable/CollectionTable.uni.driver.ts +13 -0
- package/src/components/CollectionTable/CollectionTableWSRTable.tsx +2 -0
- package/src/components/CollectionToolbar/CollectionToolbar.st.css.ts +2 -2
- package/src/components/CollectionToolbar/CollectionToolbar.tsx +3 -0
- package/src/components/CollectionToolbar/CollectionToolbarActionsGroupProps.ts +1 -0
- package/src/components/CollectionToolbar/CollectionToolbarActionsGroupResponsiveLayout.tsx +5 -0
- package/src/components/CollectionToolbar/CollectionToolbarActionsToolbarItemsGroup.tsx +8 -0
- package/src/components/CollectionToolbar/SearchOrCustomFilter.st.css.ts +2 -2
- package/src/components/CollectionToolbar/useIsCollectionToolbarExists.tsx +2 -0
- package/src/components/CollectionToolbars/CollectionToolbars.tsx +1 -0
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.ts +2 -2
- package/src/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.ts +87 -11
- package/src/components/CollectionViewsDropdown/ManageViewPopover.tsx +80 -49
- package/src/components/CollectionViewsDropdown/ManageViewPopover.uni.driver.ts +25 -9
- package/src/components/CollectionViewsDropdown/SaveToNewViewFooter.tsx +38 -0
- package/src/components/CollectionViewsDropdown/SaveToNewViewFooter.uni.driver.ts +21 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdown.st.css.ts +2 -2
- package/src/components/CollectionViewsDropdown/ViewsDropdown.tsx +55 -13
- package/src/components/CollectionViewsDropdown/ViewsDropdownPrefix.tsx +13 -2
- package/src/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.tsx +17 -8
- package/src/components/CustomDrawerLayout.tsx +10 -5
- package/src/components/DragHandle/DragHandle.st.css.ts +2 -2
- package/src/components/EntityPage/EntityPagePlain.st.css.ts +2 -2
- package/src/components/Fade/Fade.st.css.ts +2 -2
- package/src/components/Grid/Grid.tsx +2 -0
- package/src/components/Heading/Heading.st.css.ts +2 -2
- package/src/components/ImportButton/ImportButton.tsx +103 -0
- package/src/components/ImportButton/ImportButton.uni.driver.ts +18 -0
- package/src/components/ImportButton/ImportButtonModalLayout.tsx +94 -0
- package/src/components/ImportButton/ImportModal.tsx +46 -0
- package/src/components/ImportButton/ImportModal.uni.driver.ts +108 -0
- package/src/components/ImportButton/ImportProps.tsx +21 -0
- package/src/components/ImportButton/ImportStepConfiguration.tsx +139 -0
- package/src/components/ImportButton/ImportStepError.tsx +26 -0
- package/src/components/ImportButton/ImportStepProgress.tsx +67 -0
- package/src/components/ImportButton/ImportStepUpload.st.css +3 -0
- package/src/components/ImportButton/ImportStepUpload.st.css.ts +25 -0
- package/src/components/ImportButton/ImportStepUpload.tsx +44 -0
- package/src/components/ImportButton/ImportStepper.tsx +48 -0
- package/src/components/ImportButton/getImportModalStepProps.tsx +75 -0
- package/src/components/ImportButton/index.ts +3 -0
- package/src/components/InputOverflow/InputOverflow.st.css.ts +2 -2
- package/src/components/LoadingRow/LoadingRow.st.css.ts +3 -3
- package/src/components/MaxHeightText/MaxHeightText.st.css.ts +2 -2
- package/src/components/MaxLines/MaxLines.st.css.ts +2 -2
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.ts +2 -2
- package/src/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.ts +2 -2
- package/src/components/NestedTable/NestedTableRow.st.css.ts +2 -2
- package/src/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.ts +2 -2
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.ts +2 -2
- package/src/components/PickerContent/PickerContent.st.css.ts +2 -2
- package/src/components/PickerContent/PickerContentAdditionalStep.st.css.ts +2 -2
- package/src/components/PickerTableListItem/PickerTableListItem.st.css.ts +2 -2
- package/src/components/ScrollableContent/ScrollableContent.st.css.ts +2 -2
- package/src/components/SkeletonCard/SkeletonCard.st.css.ts +2 -2
- package/src/components/SlidingModal/SlidingModal.st.css.ts +2 -2
- package/src/components/TableFolders/TableFolders.tsx +2 -0
- package/src/components/TabsFilter/TabsFilter.st.css.ts +2 -2
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.ts +2 -2
- package/src/components/ToolbarCollection/ToolbarCollection.tsx +10 -0
- package/src/components/ToolbarCollection/useToolbarCollectionSyncProps.ts +11 -0
- package/src/components/ToolbarItem/ToolbarItem.st.css.ts +2 -2
- package/src/components/ToolbarItemBox/ToolbarItemBox.st.css.ts +2 -2
- package/src/components/common.st.css.ts +2 -2
- package/src/index.ts +6 -0
- package/src/model/view.ts +1 -0
- package/src/state/CollectionPage/CollectionPageHeader.st.css.ts +2 -2
- package/src/state/CollectionViewsStateBIReporter.ts +28 -0
- package/src/state/FormPage/FormPageHeader.st.css.ts +2 -2
- package/src/state/ToolbarCollectionState.ts +3 -0
- package/src/styles.global.css +1 -1
- package/src/version.ts +1 -1
|
@@ -5,15 +5,15 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "SkeletonCard3914436236";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"headerLoading": "
|
|
15
|
+
"root": "SkeletonCard3914436236__root",
|
|
16
|
+
"headerLoading": "SkeletonCard3914436236__headerLoading"
|
|
17
17
|
};
|
|
18
18
|
var keyframes = exports.keyframes = {};
|
|
19
19
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/SkeletonCard/SkeletonCard.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/SkeletonCard/SkeletonCard.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"SkeletonCard3914436236\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"SkeletonCard3914436236__root\",\"headerLoading\":\"SkeletonCard3914436236__headerLoading\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,wBAAwB;AAC1C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,8BAA8B;EAAC,eAAe,EAAC;AAAuC,CAAC;AAC7G,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "SlidingModal2539920394";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
15
|
+
"root": "SlidingModal2539920394__root"
|
|
16
16
|
};
|
|
17
17
|
var keyframes = exports.keyframes = {};
|
|
18
18
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/SlidingModal/SlidingModal.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/SlidingModal/SlidingModal.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"SlidingModal2539920394\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"SlidingModal2539920394__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,wBAAwB;AAC1C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAA8B,CAAC;AACrD,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -23,6 +23,7 @@ function _TableFolders(props) {
|
|
|
23
23
|
rowHeight,
|
|
24
24
|
estimatedRowHeight,
|
|
25
25
|
exportModal,
|
|
26
|
+
importModal,
|
|
26
27
|
bulkActionModal
|
|
27
28
|
} = props;
|
|
28
29
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -55,7 +56,7 @@ function _TableFolders(props) {
|
|
|
55
56
|
__self: this,
|
|
56
57
|
__source: {
|
|
57
58
|
fileName: _jsxFileName,
|
|
58
|
-
lineNumber:
|
|
59
|
+
lineNumber: 75,
|
|
59
60
|
columnNumber: 5
|
|
60
61
|
}
|
|
61
62
|
}), /*#__PURE__*/_react.default.createElement(_providers.TableProvider, {
|
|
@@ -63,23 +64,23 @@ function _TableFolders(props) {
|
|
|
63
64
|
__self: this,
|
|
64
65
|
__source: {
|
|
65
66
|
fileName: _jsxFileName,
|
|
66
|
-
lineNumber:
|
|
67
|
+
lineNumber: 76,
|
|
67
68
|
columnNumber: 7
|
|
68
69
|
}
|
|
69
70
|
}, /*#__PURE__*/_react.default.createElement(_TableFoldersContent.TableFoldersContent, (0, _extends2.default)({}, props, {
|
|
70
71
|
__self: this,
|
|
71
72
|
__source: {
|
|
72
73
|
fileName: _jsxFileName,
|
|
73
|
-
lineNumber:
|
|
74
|
+
lineNumber: 77,
|
|
74
75
|
columnNumber: 9
|
|
75
76
|
}
|
|
76
|
-
}))), exportModal ?? state.toolbar.featuredComponents.exportModal.value, bulkActionModal && /*#__PURE__*/_react.default.createElement(_BulkAction.MultiCollectionBulkActionModal, {
|
|
77
|
+
}))), exportModal ?? state.toolbar.featuredComponents.exportModal.value, importModal ?? state.toolbar.featuredComponents.importModal.value, bulkActionModal && /*#__PURE__*/_react.default.createElement(_BulkAction.MultiCollectionBulkActionModal, {
|
|
77
78
|
state: state.toolbar,
|
|
78
79
|
bulkActionModal: bulkActionModal,
|
|
79
80
|
__self: this,
|
|
80
81
|
__source: {
|
|
81
82
|
fileName: _jsxFileName,
|
|
82
|
-
lineNumber:
|
|
83
|
+
lineNumber: 82,
|
|
83
84
|
columnNumber: 9
|
|
84
85
|
}
|
|
85
86
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_getToolbarCollectionFeaturesInitializers","_TableFoldersLayout","_providers","_TableFoldersContent","_useTableFoldersSyncProps","_BulkAction","_mobx","_minimalRequiredWdsRuntimeCheck","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_TableFolders","props","state","multiLevelSorting","rowHeight","estimatedRowHeight","exportModal","bulkActionModal","process","env","NODE_ENV","minimalRequiredWdsRuntimeCheck","required","requiredBy","useEffect","runInAction","virtual","useTableFoldersSyncProps","init","featuresInitializers","getToolbarCollectionFeaturesInitializers","hasMultiLevelSorting","undefined","createElement","TableFoldersLayout","_extends2","__self","__source","fileName","lineNumber","columnNumber","TableProvider","value","table","TableFoldersContent","toolbar","featuredComponents","MultiCollectionBulkActionModal","TableFolders","exports","observer"],"sources":["../../../../src/components/TableFolders/TableFolders.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport { observer } from 'mobx-react-lite';\nimport { getToolbarCollectionFeaturesInitializers } from '../../state/getToolbarCollectionFeaturesInitializers';\nimport { TableFoldersLayout } from './TableFoldersLayout';\nimport { TableProvider } from '../../providers';\nimport {\n TableFoldersContent,\n TableFoldersContentProps,\n} from './TableFoldersContent';\nimport { useTableFoldersSyncProps } from './useTableFoldersSyncProps';\nimport { MultiCollectionBulkActionModal } from '../BulkAction';\nimport { runInAction } from 'mobx';\nimport { minimalRequiredWdsRuntimeCheck } from '../../minimalRequiredWdsRuntimeCheck';\n\nexport interface TableFoldersProps<\n T1,\n F1 extends FiltersMap,\n T2,\n F2 extends FiltersMap,\n> extends TableFoldersContentProps<T1, F1, T2, F2> {\n dataHook?: string;\n rowHeight?: number;\n estimatedRowHeight?: number;\n}\n\nfunction _TableFolders<T1, F1 extends FiltersMap, T2, F2 extends FiltersMap>(\n props: TableFoldersProps<T1, F1, T2, F2>,\n) {\n const {\n state,\n multiLevelSorting,\n rowHeight,\n estimatedRowHeight,\n exportModal,\n bulkActionModal,\n } = props;\n\n if (process.env.NODE_ENV !== 'production') {\n // need this version because of style fixes on the WSR side\n minimalRequiredWdsRuntimeCheck({\n required: '^1.64.1',\n requiredBy: 'WixPatterns/TableFolders',\n });\n }\n\n useEffect(() => {\n runInAction(() => {\n state.virtual.rowHeight = rowHeight;\n });\n }, [rowHeight]);\n\n useEffect(() => {\n if (estimatedRowHeight == null) {\n return;\n }\n runInAction(() => {\n state.virtual.estimatedRowHeight = estimatedRowHeight;\n });\n }, [estimatedRowHeight]);\n\n useTableFoldersSyncProps(props);\n\n useEffect(\n () =>\n state.init({\n featuresInitializers: getToolbarCollectionFeaturesInitializers(props),\n hasMultiLevelSorting: multiLevelSorting !== undefined,\n }),\n [],\n );\n\n return (\n <TableFoldersLayout {...props} state={state}>\n <TableProvider value={state.table}>\n <TableFoldersContent {...props} />\n </TableProvider>\n {exportModal ?? state.toolbar.featuredComponents.exportModal.value}\n {bulkActionModal && (\n <MultiCollectionBulkActionModal\n state={state.toolbar}\n bulkActionModal={bulkActionModal}\n />\n )}\n </TableFoldersLayout>\n );\n}\n\nexport const TableFolders = observer(_TableFolders);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,yCAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,oBAAA,GAAAL,OAAA;AAIA,IAAAM,yBAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AACA,IAAAS,+BAAA,GAAAT,OAAA;AAAsF,IAAAU,YAAA;AAAA,SAAAX,wBAAAY,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAd,uBAAA,YAAAA,CAAAY,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAatF,SAASkB,aAAaA,CACpBC,KAAwC,EACxC;EACA,MAAM;IACJC,KAAK;IACLC,iBAAiB;IACjBC,SAAS;IACTC,kBAAkB;IAClBC,WAAW;IACXC;EACF,CAAC,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_getToolbarCollectionFeaturesInitializers","_TableFoldersLayout","_providers","_TableFoldersContent","_useTableFoldersSyncProps","_BulkAction","_mobx","_minimalRequiredWdsRuntimeCheck","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_TableFolders","props","state","multiLevelSorting","rowHeight","estimatedRowHeight","exportModal","importModal","bulkActionModal","process","env","NODE_ENV","minimalRequiredWdsRuntimeCheck","required","requiredBy","useEffect","runInAction","virtual","useTableFoldersSyncProps","init","featuresInitializers","getToolbarCollectionFeaturesInitializers","hasMultiLevelSorting","undefined","createElement","TableFoldersLayout","_extends2","__self","__source","fileName","lineNumber","columnNumber","TableProvider","value","table","TableFoldersContent","toolbar","featuredComponents","MultiCollectionBulkActionModal","TableFolders","exports","observer"],"sources":["../../../../src/components/TableFolders/TableFolders.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport { observer } from 'mobx-react-lite';\nimport { getToolbarCollectionFeaturesInitializers } from '../../state/getToolbarCollectionFeaturesInitializers';\nimport { TableFoldersLayout } from './TableFoldersLayout';\nimport { TableProvider } from '../../providers';\nimport {\n TableFoldersContent,\n TableFoldersContentProps,\n} from './TableFoldersContent';\nimport { useTableFoldersSyncProps } from './useTableFoldersSyncProps';\nimport { MultiCollectionBulkActionModal } from '../BulkAction';\nimport { runInAction } from 'mobx';\nimport { minimalRequiredWdsRuntimeCheck } from '../../minimalRequiredWdsRuntimeCheck';\n\nexport interface TableFoldersProps<\n T1,\n F1 extends FiltersMap,\n T2,\n F2 extends FiltersMap,\n> extends TableFoldersContentProps<T1, F1, T2, F2> {\n dataHook?: string;\n rowHeight?: number;\n estimatedRowHeight?: number;\n}\n\nfunction _TableFolders<T1, F1 extends FiltersMap, T2, F2 extends FiltersMap>(\n props: TableFoldersProps<T1, F1, T2, F2>,\n) {\n const {\n state,\n multiLevelSorting,\n rowHeight,\n estimatedRowHeight,\n exportModal,\n importModal,\n bulkActionModal,\n } = props;\n\n if (process.env.NODE_ENV !== 'production') {\n // need this version because of style fixes on the WSR side\n minimalRequiredWdsRuntimeCheck({\n required: '^1.64.1',\n requiredBy: 'WixPatterns/TableFolders',\n });\n }\n\n useEffect(() => {\n runInAction(() => {\n state.virtual.rowHeight = rowHeight;\n });\n }, [rowHeight]);\n\n useEffect(() => {\n if (estimatedRowHeight == null) {\n return;\n }\n runInAction(() => {\n state.virtual.estimatedRowHeight = estimatedRowHeight;\n });\n }, [estimatedRowHeight]);\n\n useTableFoldersSyncProps(props);\n\n useEffect(\n () =>\n state.init({\n featuresInitializers: getToolbarCollectionFeaturesInitializers(props),\n hasMultiLevelSorting: multiLevelSorting !== undefined,\n }),\n [],\n );\n\n return (\n <TableFoldersLayout {...props} state={state}>\n <TableProvider value={state.table}>\n <TableFoldersContent {...props} />\n </TableProvider>\n {exportModal ?? state.toolbar.featuredComponents.exportModal.value}\n {importModal ?? state.toolbar.featuredComponents.importModal.value}\n {bulkActionModal && (\n <MultiCollectionBulkActionModal\n state={state.toolbar}\n bulkActionModal={bulkActionModal}\n />\n )}\n </TableFoldersLayout>\n );\n}\n\nexport const TableFolders = observer(_TableFolders);\n"],"mappings":";;;;;;AAA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jD,YAAA;MAAAkD,UAAA;MAAAC,YAAA;IAAA;EAAA,iBAC1C/D,MAAA,CAAAuB,OAAA,CAAAiC,aAAA,CAAClD,UAAA,CAAA0D,aAAa;IAACC,KAAK,EAAE/B,KAAK,CAACgC,KAAM;IAAAP,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAjD,YAAA;MAAAkD,UAAA;MAAAC,YAAA;IAAA;EAAA,gBAChC/D,MAAA,CAAAuB,OAAA,CAAAiC,aAAA,CAACjD,oBAAA,CAAA4D,mBAAmB,MAAAT,SAAA,CAAAnC,OAAA,MAAKU,KAAK;IAAA0B,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAjD,YAAA;MAAAkD,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAG,CACpB,CAAC,EACfzB,WAAW,IAAIJ,KAAK,CAACkC,OAAO,CAACC,kBAAkB,CAAC/B,WAAW,CAAC2B,KAAK,EACjE1B,WAAW,IAAIL,KAAK,CAACkC,OAAO,CAACC,kBAAkB,CAAC9B,WAAW,CAAC0B,KAAK,EACjEzB,eAAe,iBACdxC,MAAA,CAAAuB,OAAA,CAAAiC,aAAA,CAAC/C,WAAA,CAAA6D,8BAA8B;IAC7BpC,KAAK,EAAEA,KAAK,CAACkC,OAAQ;IACrB5B,eAAe,EAAEA,eAAgB;IAAAmB,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAjD,YAAA;MAAAkD,UAAA;MAAAC,YAAA;IAAA;EAAA,CAClC,CAEe,CAAC;AAEzB;AAEO,MAAMQ,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,uBAAQ,EAACzC,aAAa,CAAC","ignoreList":[]}
|
|
@@ -5,15 +5,15 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "TabsFilter884793764";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"title": "
|
|
15
|
+
"root": "TabsFilter884793764__root",
|
|
16
|
+
"title": "TabsFilter884793764__title"
|
|
17
17
|
};
|
|
18
18
|
var keyframes = exports.keyframes = {};
|
|
19
19
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/TabsFilter/TabsFilter.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/TabsFilter/TabsFilter.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"TabsFilter884793764\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"TabsFilter884793764__root\",\"title\":\"TabsFilter884793764__title\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"wds-color-text-standard-primary\":\"--wds-color-text-standard-primary\",\"wds-tabs-label-fill\":\"--wds-tabs-label-fill\",\"wds-tabs-label-fill-active\":\"--wds-tabs-label-fill-active\",\"wsr-color-B10\":\"--wsr-color-B10\",\"wsr-color-D10\":\"--wsr-color-D10\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,qBAAqB;AACvC,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,2BAA2B;EAAC,OAAO,EAAC;AAA4B,CAAC;AACvF,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,iCAAiC,EAAC,mCAAmC;EAAC,qBAAqB,EAAC,uBAAuB;EAAC,4BAA4B,EAAC,8BAA8B;EAAC,eAAe,EAAC,iBAAiB;EAAC,eAAe,EAAC;AAAiB,CAAC","ignoreList":[]}
|
|
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "ManageTagsModal2051441849";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
15
|
+
"root": "ManageTagsModal2051441849__root"
|
|
16
16
|
};
|
|
17
17
|
var keyframes = exports.keyframes = {};
|
|
18
18
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"ManageTagsModal2051441849\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"ManageTagsModal2051441849__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,2BAA2B;AAC7C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAiC,CAAC;AACxD,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -24,6 +24,7 @@ function ToolbarCollection(props) {
|
|
|
24
24
|
children,
|
|
25
25
|
tableGridSwitchButton,
|
|
26
26
|
exportButton,
|
|
27
|
+
importButton,
|
|
27
28
|
primaryActionButton,
|
|
28
29
|
secondaryActions,
|
|
29
30
|
moreActions,
|
|
@@ -52,6 +53,7 @@ function ToolbarCollection(props) {
|
|
|
52
53
|
extraToolbar: extraToolbar,
|
|
53
54
|
tableGridSwitchButton: tableGridSwitchButton,
|
|
54
55
|
exportButton: exportButton,
|
|
56
|
+
importButton: importButton,
|
|
55
57
|
primaryActionButton: primaryActionButton,
|
|
56
58
|
secondaryActions: secondaryActions,
|
|
57
59
|
moreActions: moreActions,
|
|
@@ -68,14 +70,14 @@ function ToolbarCollection(props) {
|
|
|
68
70
|
__self: this,
|
|
69
71
|
__source: {
|
|
70
72
|
fileName: _jsxFileName,
|
|
71
|
-
lineNumber:
|
|
73
|
+
lineNumber: 379,
|
|
72
74
|
columnNumber: 11
|
|
73
75
|
}
|
|
74
76
|
}),
|
|
75
77
|
__self: this,
|
|
76
78
|
__source: {
|
|
77
79
|
fileName: _jsxFileName,
|
|
78
|
-
lineNumber:
|
|
80
|
+
lineNumber: 354,
|
|
79
81
|
columnNumber: 7
|
|
80
82
|
}
|
|
81
83
|
}), /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
|
|
@@ -88,7 +90,7 @@ function ToolbarCollection(props) {
|
|
|
88
90
|
__self: this,
|
|
89
91
|
__source: {
|
|
90
92
|
fileName: _jsxFileName,
|
|
91
|
-
lineNumber:
|
|
93
|
+
lineNumber: 388,
|
|
92
94
|
columnNumber: 7
|
|
93
95
|
}
|
|
94
96
|
}, children));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_designSystem","require","_react","_interopRequireWildcard","_assertComponentType","_CollectionToolbars","_checkConflictingToolbarProps","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ToolbarCollection","props","state","filters","title","tabs","views","extraToolbar","selectionToolbar","dragAndDropReorderModeToolbar","sticky","stickyProp","search","children","tableGridSwitchButton","exportButton","primaryActionButton","secondaryActions","moreActions","summaryBar","topNotification","assertComponentType","checkConflictingToolbarProps","scrollableContentRef","scrollablePageRef","usePageScrollContext","setSticky","useState","current","useEffect","createElement","Fragment","CollectionToolbars","query","collection","result","originQuery","titleBar","Box","width","borderTopColor","borderTopWidth","borderTopStyle","boxSizing","__self","__source","fileName","lineNumber","columnNumber","dataHook","direction","minHeight","flex","verticalAlign"],"sources":["../../../../src/components/ToolbarCollection/ToolbarCollection.tsx"],"sourcesContent":["import { Box, CardProps, usePageScrollContext } from '@wix/design-system';\nimport React, {\n CSSProperties,\n ReactElement,\n ReactNode,\n useEffect,\n useState,\n} from 'react';\nimport { CollectionToolbarProps, FilterElement, TabsFilterProps } from '../..';\nimport { ComputedQuery, FiltersMap } from '@wix/bex-core';\nimport { ToolbarCollectionState } from '../../state';\nimport {\n assertComponentType,\n CollectionSearchElement,\n CollectionToolbarFiltersElement,\n CollectionViewsDropdownElement,\n CustomColumnsElement,\n PrimaryActionButtonElement,\n ReorderModeToolbarElement,\n TabsFilterElement,\n ToolbarTitleElement,\n TopNotificationElement,\n ToolbarSecondaryActionsElement,\n} from '../assertComponentType';\nimport { CollectionToolbars } from '../CollectionToolbars';\nimport {\n DragAndDropBulkSubmit,\n DragAndDropCancel,\n DragAndDropSubmit,\n} from '../DragAndDrop';\nimport { TableGridSwitchButtonProps } from '../TableGridSwitchButton';\nimport { checkConflictingToolbarProps } from './checkConflictingToolbarProps';\nimport type { AddApplyFiltersButtonType } from '../FiltersPanel/AddApplyFiltersButton';\nimport type { TagsElement } from '../Tags';\nimport type { ExtensionMenuItemsType } from '../ExtensionMenuItems';\nimport { TablePlaceholderStatesProps } from '../TablePlaceholderStates/TablePlaceholderStates';\nimport { DragAndDropCategoriesProps } from '../DragAndDrop/DragAndDropCategoriesProps';\nimport { MoreActionsElement } from '../MoreActions';\n\nexport interface ToolbarBaseProps {\n /**\n * Displays a title at the left of a toolbar. Accepts a [ToolbarTitle](./?path=/story/features-display-toolbar--toolbartitle) component.\n * @overrideType [ToolbarTitle](./?path=/story/features-display-toolbar--toolbartitle)\n * @external\n */\n title?: ToolbarTitleElement;\n /**\n * Displays a search input on the right side of the table toolbar.<br> <br>\n * Accepts a boolean or a custom React element as a parameter. When passing `false`, no search input is displayed.\n * @default true\n * @external\n */\n search?: boolean | FilterElement | CollectionSearchElement;\n\n /**\n * Indicates whether to show Table Title Bar or not.\n * Note: if you pass `showTitleBar = false` title bar is not removed from the DOM. For better accessibility column titles should be defined as well.\n * @default true\n * @external\n */\n showTitleBar?: boolean;\n /**\n * A [`<ExportButton />`](./?path=/story/features-export--exportto) react element to be added to the toolbar\n */\n exportButton?: ReactElement;\n\n /**\n * A [`<ExportModal />`](./?path=/story/features-export--exportto#CTA_is_out_of_the_table) react element to be rendered in table's context.\n */\n exportModal?: ReactElement;\n}\n\nexport interface ToolbarCollectionBaseProps<T, F extends FiltersMap>\n extends ToolbarBaseProps,\n DragAndDropCategoriesProps<F> {\n children?: ReactNode | ReactNode[];\n\n /**\n * Adds view options to the table headers.\n * Accepts a [Views](./?path=/story/features-display-views--views) component.\n * @overrideType [Views](./?path=/story/features-display-views--views)\n * @external\n */\n views?: CollectionViewsDropdownElement<F>;\n /**\n * Adds filters to the toolbar and/or a sliding panel.\n * Accepts a `ToolbarFilters` component, which must have the `panelTitle` prop defined.\n * @overrideType [ToolbarFilters](./?path=%2Fstory%2Ffeatures-filter-components--toolbarfilters)\n * @external\n */\n filters?: CollectionToolbarFiltersElement;\n /**\n * Displays tabs at the left of a toolbar.\n * Accepts a [TabsFilter](./?path=/story/features-filter-components--tabsfilter) component.\n * @overrideType [TabsFilter](./?path=/story/features-filter-components--tabsfilter)\n * @external\n */\n tabs?: TabsFilterElement<TabsFilterProps<T>>;\n\n selectionToolbar?: ReactElement;\n\n sticky?: boolean;\n /**\n * Minimum height for a card's container when showing:<br>\n * - A loader<br>\n * - Empty state<br>\n * - Error state\n * <br><br>\n * If no unit is specified, `px` is used.\n * @default 300px\n * @external\n */\n minCardHeight?: CSSProperties['minHeight'];\n\n /**\n * A render function to be rendered when there's an error fetching data from the server.<br>\n * The function accepts the following parameters <br>\n * * `err`: The error thrown by the [fetchData](./?path=/story/common-hooks--usecollection) function <br>\n * * `isOnline`: Indicates whether internet connection is available <br>\n * * `retry`: Retry collection fetch on failed response, similar to `collection.retryFetch` <br>\n * Returns [`EmptyState`](https://www.docs.wixdesignsystem.com/?path=/story/components-layout--emptystate) component.\n * @external\n * @deprecated Use `errorState` instead.\n */\n renderError?: TablePlaceholderStatesProps['renderError'];\n\n /**\n * A render function to be rendered when there's an error fetching data from the server.<br>\n * The function accepts the following parameters <br>\n * * `err`: The error thrown by the [fetchData](./?path=/story/common-hooks--usecollection) function <br>\n * * `isOnline`: Indicates whether internet connection is available <br>\n * * `retry`: Retry collection fetch on failed response, similar to `collection.retryFetch` <br>\n * Returns [`EmptyState`](https://www.docs.wixdesignsystem.com/?path=/story/components-layout--emptystate) component.\n * @external\n */\n errorState?: TablePlaceholderStatesProps['errorState'];\n\n /**\n * Renders when there are no items to display. Accepts a [`CollectionEmptyState`](./?path=/story/features-display-empty-states--collectionemptystate) component.\n * @external\n * @overrideType [CollectionEmptyState](./?path=/story/features-display-empty-states--collectionemptystate)\n */\n emptyState?: ReactNode;\n\n /**\n * Shown when a search or filter has no results.\n * Accepts a [`CollectionNoResultsState`](./?path=/story/features-display-empty-states--collectionnoresultsstate) component,\n * or a function that accepts the following parameters:\n * - `hasAvailableItems`: Indicates whether other items may be shown using other filter or search parameters.\n * - `query`: An instance of [`ComputedQuery`](./?path=/story/common-models--computedquery) representing the query that resulted in the empty state.\n * The function should return [`CollectionNoResultsState`](./?path=/story/features-display-empty-states--collectionnoresultsstate).\n * @external\n * @overrideType [CollectionNoResultsState](./?path=/story/features-display-empty-states--collectionnoresultsstate)\n */\n noResultsState?:\n | ReactNode\n | ((params: {\n hasAvailableItems: boolean;\n query: ComputedQuery<F>;\n }) => ReactNode);\n\n cardProps?: Partial<CardProps>;\n onSelectedItems?: (allSelected: boolean, items: T[]) => unknown;\n /**\n * Renders a notification below the header. Accepts a [`TableTopNotification`](./?path=/story/features-display-tabletopnotification--tabletopnotification) component.\n * @overrideType [TableTopNotification](./?path=/story/features-display-tabletopnotification--tabletopnotification)\n * @external\n */\n topNotification?:\n | TopNotificationElement\n | ((params: {\n query: ComputedQuery<F>;\n }) => TopNotificationElement | boolean | null | undefined)\n | boolean\n | null\n | undefined;\n\n extraToolbar?: ReactNode;\n\n /**\n * Display a summary bar below the toolbar.\n * Accepts a [`SummaryBar`](./?path=/story/features-display-toolbar--summarybar) component.\n * @overrideType [SummaryBar](./?path=/story/features-display-toolbar--summarybar)\n * @external\n */\n summaryBar?: ReactNode;\n tableGridSwitchButton?: ReactElement<TableGridSwitchButtonProps>;\n\n /**\n * Function that submits a drop event to the server. <br> <br>\n * The parameter is an event object containing the following details: <br>\n * -`from: {item: T; index: number}`: The dragged item. <br>\n * -`after: null | [item: T; iindex: number}`: The previous dropped item. If this is the first item to be dropped, this argument is `null`. <br>\n * -`filters`: Applied [Drag and Drop](./?path=/story/features-sort-drag-and-drop--overview) filters.\n *\n * @returns Promise\n * @external\n */\n dragAndDropSubmit?: DragAndDropSubmit<T, F>;\n\n /**\n * Function that submits an array of drop events to the server. <br> <br>\n * The parameter is an array of event objects containing the following details: <br>\n * -`from: {item: T; index: number}`: The dragged item. <br>\n * -`after: null | [item: T; index: number}`: The previous dropped item. If this is the first item to be dropped, this argument is `null`. <br>\n * -`filters`: Applied [Drag and Drop](./?path=/story/features-sort-drag-and-drop--overview) filters. <br>\n *\n * @returns Promise\n * @external\n */\n dragAndDropBulkSubmit?: DragAndDropBulkSubmit<T, F>;\n\n /**\n * A function that cancels a drop event. <br>\n * Supported arguments: <br>\n * - `from: {item: T; index: number}`: The dragged item.\n * - `after: null | {item: T; index: number}`: The item that the dragged item was dropped after. If dropped at the head of the collection, this argument will be `null`.\n * - `filters`: Currently applied filters. Used in cases where your server holds a unique ordering per filtering. See the `dragAndDropCategories` prop.\n *\n * If the move is cancelled, the function returns a toast config object with a message. Otherwise, the function will return a null value.\n * @external\n */\n dragAndDropCancel?: DragAndDropCancel<T, F>;\n\n /**\n * @deprecated It doesn't need to be passed implicitly anymore.\n */\n extensionMenuItems?: ExtensionMenuItemsType;\n\n /**\n * Drag and drop reorder mode toolbar. This prop accepts a `ReorderModeToolbar` component.<br>\n * The `ReorderModeToolbar` component accepts the following props:<br>\n * + `learnMoreUrl`: [string] A URL in the toolbar.<br>\n * + `reorderModeTitle`: [string] A title in the toolbar.\n * @external\n */\n dragAndDropReorderModeToolbar?: ReorderModeToolbarElement | null;\n\n /**\n * Adds functionality to allow visitors to create choose which columns to display and in what order. Accepts a [CustomColumns](./?path=/story/features-display--customcolumns) component.\n * @overrideType [CustomColumns](./?path=/story/features-display--customcolumns)\n * @external\n */\n customColumns?: CustomColumnsElement | null;\n\n /**\n * Adds functionality to allow visitors to sort multiple columns simultaneously.\n * Accepts a [MultiLevelSorting](./?path=/story/features-sort-sortable-columns-multilevelsorting--multilevelsorting) component.\n * @overrideType [MultiLevelSorting](./?path=/story/features-sort-sortable-columns-multilevelsorting--multilevelsorting)\n * @external\n */\n multiLevelSorting?: CollectionToolbarProps<T, F>['multiLevelSorting'];\n\n /**\n * Adds functionality for a primary action button in the toolbar.\n * Accepts a [PrimaryActionButton](./?path=/story/features-actions-primary-actions--primary-action-button) component.\n * @external\n * @overrideType [PrimaryActionButton](./?path=/story/features-actions-primary-actions--primary-action-button)\n */\n primaryActionButton?: PrimaryActionButtonElement;\n\n /**\n * Secondary buttons w/o PopoverMenu component to be rendered on the toolbar.\n * @overrideType [ToolbarSecondaryActions](./?path=/story/features-actions-secondary-actions--toolbar-secondary-actions)\n * @external\n */\n secondaryActions?: ToolbarSecondaryActionsElement;\n\n /**\n * A [`MoreActions`](./?path=/story/features-actions-more-actions--more-actions) component to be rendered on the header.\n * @overrideType [MoreActions](./?path=/story/features-actions-more-actions--more-actions)\n * @external\n */\n moreActions?: MoreActionsElement;\n\n /**\n * Apply filter button implementation: `import { AddApplyFiltersButton } from '@wix/patterns';`\n * <br>\n * Add `Apply` button to the filters panel footer. Panel filters will be applied only after the button is clicked.\n */\n AddApplyFiltersButton?: AddApplyFiltersButtonType;\n\n /**\n * Limits the amount of rows a visitor can select.\n * @external\n */\n maxSelection?: number;\n\n /**\n * Indicates whether the table should have an [internal scroll](./?path=/story/features-display-internal-scroll--internal-scroll) instead of the default page scroll.\n * @external\n */\n internalScroll?: boolean;\n\n /**\n * Enables tags feature. In this element you can pass the configuration\n * @overrideType [TagsElement](./?path=/story/features-enrich-tags--tags)\n */\n tags?: TagsElement<T, F>;\n}\n\nexport interface ToolbarCollectionProps<T, F extends FiltersMap>\n extends ToolbarCollectionBaseProps<T, F> {\n state: ToolbarCollectionState<T, F>;\n}\n\nexport function ToolbarCollection<T, F extends FiltersMap>(\n props: ToolbarCollectionProps<T, F>,\n) {\n const {\n state,\n filters,\n title,\n tabs,\n views,\n extraToolbar,\n selectionToolbar,\n dragAndDropReorderModeToolbar,\n sticky: stickyProp,\n search,\n children,\n tableGridSwitchButton,\n exportButton,\n primaryActionButton,\n secondaryActions,\n moreActions,\n summaryBar,\n topNotification,\n } = props;\n assertComponentType(views, 'CollectionViewsDropdown', 'views');\n checkConflictingToolbarProps(props);\n\n const { scrollableContentRef: scrollablePageRef } = usePageScrollContext();\n\n const [sticky, setSticky] = useState(\n stickyProp ?? scrollablePageRef?.current != null,\n );\n\n useEffect(() => {\n setSticky(stickyProp ?? scrollablePageRef?.current != null);\n }, [stickyProp]);\n\n return (\n <>\n <CollectionToolbars\n sticky={sticky}\n state={state}\n search={search}\n views={views}\n title={title}\n tabs={tabs}\n filters={filters}\n selectionToolbar={selectionToolbar}\n dragAndDropReorderModeToolbar={dragAndDropReorderModeToolbar}\n extraToolbar={extraToolbar}\n tableGridSwitchButton={tableGridSwitchButton}\n exportButton={exportButton}\n primaryActionButton={primaryActionButton}\n secondaryActions={secondaryActions}\n moreActions={moreActions}\n summaryBar={summaryBar}\n topNotification={\n typeof topNotification === 'function'\n ? () =>\n topNotification({ query: state.collection.result.originQuery })\n : topNotification\n }\n titleBar={\n <Box\n width=\"100%\"\n borderTopColor=\"D60\"\n borderTopWidth=\"1px\"\n borderTopStyle=\"solid\"\n boxSizing=\"border-box\"\n />\n }\n />\n <Box\n dataHook=\"toolbar-collection-content\"\n width=\"100%\"\n direction=\"vertical\"\n minHeight={0}\n flex={1}\n verticalAlign=\"middle\"\n >\n {children}\n </Box>\n </>\n );\n}\n"],"mappings":";;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAUA,IAAAG,oBAAA,GAAAH,OAAA;AAaA,IAAAI,mBAAA,GAAAJ,OAAA;AAOA,IAAAK,6BAAA,GAAAL,OAAA;AAA8E,IAAAM,YAAA;AAAA,SAAAJ,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,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AQ;IAAAT,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAlE,YAAA;MAAAmE,UAAA;MAAAC,YAAA;IAAA;EAAA,GAErBnC,QACE,CACL,CAAC;AAEP","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_designSystem","require","_react","_interopRequireWildcard","_assertComponentType","_CollectionToolbars","_checkConflictingToolbarProps","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ToolbarCollection","props","state","filters","title","tabs","views","extraToolbar","selectionToolbar","dragAndDropReorderModeToolbar","sticky","stickyProp","search","children","tableGridSwitchButton","exportButton","importButton","primaryActionButton","secondaryActions","moreActions","summaryBar","topNotification","assertComponentType","checkConflictingToolbarProps","scrollableContentRef","scrollablePageRef","usePageScrollContext","setSticky","useState","current","useEffect","createElement","Fragment","CollectionToolbars","query","collection","result","originQuery","titleBar","Box","width","borderTopColor","borderTopWidth","borderTopStyle","boxSizing","__self","__source","fileName","lineNumber","columnNumber","dataHook","direction","minHeight","flex","verticalAlign"],"sources":["../../../../src/components/ToolbarCollection/ToolbarCollection.tsx"],"sourcesContent":["import { Box, CardProps, usePageScrollContext } from '@wix/design-system';\nimport React, {\n CSSProperties,\n ReactElement,\n ReactNode,\n useEffect,\n useState,\n} from 'react';\nimport { CollectionToolbarProps, FilterElement, TabsFilterProps } from '../..';\nimport { ComputedQuery, FiltersMap } from '@wix/bex-core';\nimport { ToolbarCollectionState } from '../../state';\nimport {\n assertComponentType,\n CollectionSearchElement,\n CollectionToolbarFiltersElement,\n CollectionViewsDropdownElement,\n CustomColumnsElement,\n PrimaryActionButtonElement,\n ReorderModeToolbarElement,\n TabsFilterElement,\n ToolbarTitleElement,\n TopNotificationElement,\n ToolbarSecondaryActionsElement,\n} from '../assertComponentType';\nimport { CollectionToolbars } from '../CollectionToolbars';\nimport {\n DragAndDropBulkSubmit,\n DragAndDropCancel,\n DragAndDropSubmit,\n} from '../DragAndDrop';\nimport { TableGridSwitchButtonProps } from '../TableGridSwitchButton';\nimport { checkConflictingToolbarProps } from './checkConflictingToolbarProps';\nimport type { AddApplyFiltersButtonType } from '../FiltersPanel/AddApplyFiltersButton';\nimport type { TagsElement } from '../Tags';\nimport type { ExtensionMenuItemsType } from '../ExtensionMenuItems';\nimport { TablePlaceholderStatesProps } from '../TablePlaceholderStates/TablePlaceholderStates';\nimport { DragAndDropCategoriesProps } from '../DragAndDrop/DragAndDropCategoriesProps';\nimport { MoreActionsElement } from '../MoreActions';\n\nexport interface ToolbarBaseProps {\n /**\n * Displays a title at the left of a toolbar. Accepts a [ToolbarTitle](./?path=/story/features-display-toolbar--toolbartitle) component.\n * @overrideType [ToolbarTitle](./?path=/story/features-display-toolbar--toolbartitle)\n * @external\n */\n title?: ToolbarTitleElement;\n /**\n * Displays a search input on the right side of the table toolbar.<br> <br>\n * Accepts a boolean or a custom React element as a parameter. When passing `false`, no search input is displayed.\n * @default true\n * @external\n */\n search?: boolean | FilterElement | CollectionSearchElement;\n\n /**\n * Indicates whether to show Table Title Bar or not.\n * Note: if you pass `showTitleBar = false` title bar is not removed from the DOM. For better accessibility column titles should be defined as well.\n * @default true\n * @external\n */\n showTitleBar?: boolean;\n /**\n * A [`<ExportButton />`](./?path=/story/features-export--exportto) react element to be added to the toolbar\n */\n exportButton?: ReactElement;\n /**\n * A [`<ImportButton />`] react element to be added to the toolbar.\n */\n importButton?: ReactElement;\n\n /**\n * A [`<ExportModal />`](./?path=/story/features-export--exportto#CTA_is_out_of_the_table) react element to be rendered in table's context.\n */\n exportModal?: ReactElement;\n /**\n * A [`<ImportModal />`] react element to be rendered in table's context.\n */\n importModal?: ReactElement;\n}\n\nexport interface ToolbarCollectionBaseProps<T, F extends FiltersMap>\n extends ToolbarBaseProps,\n DragAndDropCategoriesProps<F> {\n children?: ReactNode | ReactNode[];\n\n /**\n * Adds view options to the table headers.\n * Accepts a [Views](./?path=/story/features-display-views--views) component.\n * @overrideType [Views](./?path=/story/features-display-views--views)\n * @external\n */\n views?: CollectionViewsDropdownElement<F>;\n /**\n * Adds filters to the toolbar and/or a sliding panel.\n * Accepts a `ToolbarFilters` component, which must have the `panelTitle` prop defined.\n * @overrideType [ToolbarFilters](./?path=%2Fstory%2Ffeatures-filter-components--toolbarfilters)\n * @external\n */\n filters?: CollectionToolbarFiltersElement;\n /**\n * Displays tabs at the left of a toolbar.\n * Accepts a [TabsFilter](./?path=/story/features-filter-components--tabsfilter) component.\n * @overrideType [TabsFilter](./?path=/story/features-filter-components--tabsfilter)\n * @external\n */\n tabs?: TabsFilterElement<TabsFilterProps<T>>;\n\n selectionToolbar?: ReactElement;\n\n sticky?: boolean;\n /**\n * Minimum height for a card's container when showing:<br>\n * - A loader<br>\n * - Empty state<br>\n * - Error state\n * <br><br>\n * If no unit is specified, `px` is used.\n * @default 300px\n * @external\n */\n minCardHeight?: CSSProperties['minHeight'];\n\n /**\n * A render function to be rendered when there's an error fetching data from the server.<br>\n * The function accepts the following parameters <br>\n * * `err`: The error thrown by the [fetchData](./?path=/story/common-hooks--usecollection) function <br>\n * * `isOnline`: Indicates whether internet connection is available <br>\n * * `retry`: Retry collection fetch on failed response, similar to `collection.retryFetch` <br>\n * Returns [`EmptyState`](https://www.docs.wixdesignsystem.com/?path=/story/components-layout--emptystate) component.\n * @external\n * @deprecated Use `errorState` instead.\n */\n renderError?: TablePlaceholderStatesProps['renderError'];\n\n /**\n * A render function to be rendered when there's an error fetching data from the server.<br>\n * The function accepts the following parameters <br>\n * * `err`: The error thrown by the [fetchData](./?path=/story/common-hooks--usecollection) function <br>\n * * `isOnline`: Indicates whether internet connection is available <br>\n * * `retry`: Retry collection fetch on failed response, similar to `collection.retryFetch` <br>\n * Returns [`EmptyState`](https://www.docs.wixdesignsystem.com/?path=/story/components-layout--emptystate) component.\n * @external\n */\n errorState?: TablePlaceholderStatesProps['errorState'];\n\n /**\n * Renders when there are no items to display. Accepts a [`CollectionEmptyState`](./?path=/story/features-display-empty-states--collectionemptystate) component.\n * @external\n * @overrideType [CollectionEmptyState](./?path=/story/features-display-empty-states--collectionemptystate)\n */\n emptyState?: ReactNode;\n\n /**\n * Shown when a search or filter has no results.\n * Accepts a [`CollectionNoResultsState`](./?path=/story/features-display-empty-states--collectionnoresultsstate) component,\n * or a function that accepts the following parameters:\n * - `hasAvailableItems`: Indicates whether other items may be shown using other filter or search parameters.\n * - `query`: An instance of [`ComputedQuery`](./?path=/story/common-models--computedquery) representing the query that resulted in the empty state.\n * The function should return [`CollectionNoResultsState`](./?path=/story/features-display-empty-states--collectionnoresultsstate).\n * @external\n * @overrideType [CollectionNoResultsState](./?path=/story/features-display-empty-states--collectionnoresultsstate)\n */\n noResultsState?:\n | ReactNode\n | ((params: {\n hasAvailableItems: boolean;\n query: ComputedQuery<F>;\n }) => ReactNode);\n\n cardProps?: Partial<CardProps>;\n onSelectedItems?: (allSelected: boolean, items: T[]) => unknown;\n /**\n * Renders a notification below the header. Accepts a [`TableTopNotification`](./?path=/story/features-display-tabletopnotification--tabletopnotification) component.\n * @overrideType [TableTopNotification](./?path=/story/features-display-tabletopnotification--tabletopnotification)\n * @external\n */\n topNotification?:\n | TopNotificationElement\n | ((params: {\n query: ComputedQuery<F>;\n }) => TopNotificationElement | boolean | null | undefined)\n | boolean\n | null\n | undefined;\n\n extraToolbar?: ReactNode;\n\n /**\n * Display a summary bar below the toolbar.\n * Accepts a [`SummaryBar`](./?path=/story/features-display-toolbar--summarybar) component.\n * @overrideType [SummaryBar](./?path=/story/features-display-toolbar--summarybar)\n * @external\n */\n summaryBar?: ReactNode;\n tableGridSwitchButton?: ReactElement<TableGridSwitchButtonProps>;\n\n /**\n * Function that submits a drop event to the server. <br> <br>\n * The parameter is an event object containing the following details: <br>\n * -`from: {item: T; index: number}`: The dragged item. <br>\n * -`after: null | [item: T; iindex: number}`: The previous dropped item. If this is the first item to be dropped, this argument is `null`. <br>\n * -`filters`: Applied [Drag and Drop](./?path=/story/features-sort-drag-and-drop--overview) filters.\n *\n * @returns Promise\n * @external\n */\n dragAndDropSubmit?: DragAndDropSubmit<T, F>;\n\n /**\n * Function that submits an array of drop events to the server. <br> <br>\n * The parameter is an array of event objects containing the following details: <br>\n * -`from: {item: T; index: number}`: The dragged item. <br>\n * -`after: null | [item: T; index: number}`: The previous dropped item. If this is the first item to be dropped, this argument is `null`. <br>\n * -`filters`: Applied [Drag and Drop](./?path=/story/features-sort-drag-and-drop--overview) filters. <br>\n *\n * @returns Promise\n * @external\n */\n dragAndDropBulkSubmit?: DragAndDropBulkSubmit<T, F>;\n\n /**\n * A function that cancels a drop event. <br>\n * Supported arguments: <br>\n * - `from: {item: T; index: number}`: The dragged item.\n * - `after: null | {item: T; index: number}`: The item that the dragged item was dropped after. If dropped at the head of the collection, this argument will be `null`.\n * - `filters`: Currently applied filters. Used in cases where your server holds a unique ordering per filtering. See the `dragAndDropCategories` prop.\n *\n * If the move is cancelled, the function returns a toast config object with a message. Otherwise, the function will return a null value.\n * @external\n */\n dragAndDropCancel?: DragAndDropCancel<T, F>;\n\n /**\n * @deprecated It doesn't need to be passed implicitly anymore.\n */\n extensionMenuItems?: ExtensionMenuItemsType;\n\n /**\n * Drag and drop reorder mode toolbar. This prop accepts a `ReorderModeToolbar` component.<br>\n * The `ReorderModeToolbar` component accepts the following props:<br>\n * + `learnMoreUrl`: [string] A URL in the toolbar.<br>\n * + `reorderModeTitle`: [string] A title in the toolbar.\n * @external\n */\n dragAndDropReorderModeToolbar?: ReorderModeToolbarElement | null;\n\n /**\n * Adds functionality to allow visitors to create choose which columns to display and in what order. Accepts a [CustomColumns](./?path=/story/features-display--customcolumns) component.\n * @overrideType [CustomColumns](./?path=/story/features-display--customcolumns)\n * @external\n */\n customColumns?: CustomColumnsElement | null;\n\n /**\n * Adds functionality to allow visitors to sort multiple columns simultaneously.\n * Accepts a [MultiLevelSorting](./?path=/story/features-sort-sortable-columns-multilevelsorting--multilevelsorting) component.\n * @overrideType [MultiLevelSorting](./?path=/story/features-sort-sortable-columns-multilevelsorting--multilevelsorting)\n * @external\n */\n multiLevelSorting?: CollectionToolbarProps<T, F>['multiLevelSorting'];\n\n /**\n * Adds functionality for a primary action button in the toolbar.\n * Accepts a [PrimaryActionButton](./?path=/story/features-actions-primary-actions--primary-action-button) component.\n * @external\n * @overrideType [PrimaryActionButton](./?path=/story/features-actions-primary-actions--primary-action-button)\n */\n primaryActionButton?: PrimaryActionButtonElement;\n\n /**\n * Secondary buttons w/o PopoverMenu component to be rendered on the toolbar.\n * @overrideType [ToolbarSecondaryActions](./?path=/story/features-actions-secondary-actions--toolbar-secondary-actions)\n * @external\n */\n secondaryActions?: ToolbarSecondaryActionsElement;\n\n /**\n * A [`MoreActions`](./?path=/story/features-actions-more-actions--more-actions) component to be rendered on the header.\n * @overrideType [MoreActions](./?path=/story/features-actions-more-actions--more-actions)\n * @external\n */\n moreActions?: MoreActionsElement;\n\n /**\n * Apply filter button implementation: `import { AddApplyFiltersButton } from '@wix/patterns';`\n * <br>\n * Add `Apply` button to the filters panel footer. Panel filters will be applied only after the button is clicked.\n */\n AddApplyFiltersButton?: AddApplyFiltersButtonType;\n\n /**\n * Limits the amount of rows a visitor can select.\n * @external\n */\n maxSelection?: number;\n\n /**\n * Indicates whether the table should have an [internal scroll](./?path=/story/features-display-internal-scroll--internal-scroll) instead of the default page scroll.\n * @external\n */\n internalScroll?: boolean;\n\n /**\n * Enables tags feature. In this element you can pass the configuration\n * @overrideType [TagsElement](./?path=/story/features-enrich-tags--tags)\n */\n tags?: TagsElement<T, F>;\n}\n\nexport interface ToolbarCollectionProps<T, F extends FiltersMap>\n extends ToolbarCollectionBaseProps<T, F> {\n state: ToolbarCollectionState<T, F>;\n}\n\nexport function ToolbarCollection<T, F extends FiltersMap>(\n props: ToolbarCollectionProps<T, F>,\n) {\n const {\n state,\n filters,\n title,\n tabs,\n views,\n extraToolbar,\n selectionToolbar,\n dragAndDropReorderModeToolbar,\n sticky: stickyProp,\n search,\n children,\n tableGridSwitchButton,\n exportButton,\n importButton,\n primaryActionButton,\n secondaryActions,\n moreActions,\n summaryBar,\n topNotification,\n } = props;\n assertComponentType(views, 'CollectionViewsDropdown', 'views');\n checkConflictingToolbarProps(props);\n\n const { scrollableContentRef: scrollablePageRef } = usePageScrollContext();\n\n const [sticky, setSticky] = useState(\n stickyProp ?? scrollablePageRef?.current != null,\n );\n\n useEffect(() => {\n setSticky(stickyProp ?? scrollablePageRef?.current != null);\n }, [stickyProp]);\n\n return (\n <>\n <CollectionToolbars\n sticky={sticky}\n state={state}\n search={search}\n views={views}\n title={title}\n tabs={tabs}\n filters={filters}\n selectionToolbar={selectionToolbar}\n dragAndDropReorderModeToolbar={dragAndDropReorderModeToolbar}\n extraToolbar={extraToolbar}\n tableGridSwitchButton={tableGridSwitchButton}\n exportButton={exportButton}\n importButton={importButton}\n primaryActionButton={primaryActionButton}\n secondaryActions={secondaryActions}\n moreActions={moreActions}\n summaryBar={summaryBar}\n topNotification={\n typeof topNotification === 'function'\n ? () =>\n topNotification({ query: state.collection.result.originQuery })\n : topNotification\n }\n titleBar={\n <Box\n width=\"100%\"\n borderTopColor=\"D60\"\n borderTopWidth=\"1px\"\n borderTopStyle=\"solid\"\n boxSizing=\"border-box\"\n />\n }\n />\n <Box\n dataHook=\"toolbar-collection-content\"\n width=\"100%\"\n direction=\"vertical\"\n minHeight={0}\n flex={1}\n verticalAlign=\"middle\"\n >\n {children}\n </Box>\n </>\n );\n}\n"],"mappings":";;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAUA,IAAAG,oBAAA,GAAAH,OAAA;AAaA,IAAAI,mBAAA,GAAAJ,OAAA;AAOA,IAAAK,6BAAA,GAAAL,OAAA;AAA8E,IAAAM,YAAA;AAAA,SAAAJ,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,Y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AAC,CAAC,GACjEhB,eACL;IACDiB,QAAQ,eACN/D,MAAA,CAAAgB,OAAA,CAAAwC,aAAA,CAAC1D,aAAA,CAAAkE,GAAG;MACFC,KAAK,EAAC,MAAM;MACZC,cAAc,EAAC,KAAK;MACpBC,cAAc,EAAC,KAAK;MACpBC,cAAc,EAAC,OAAO;MACtBC,SAAS,EAAC,YAAY;MAAAC,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAnE,YAAA;QAAAoE,UAAA;QAAAC,YAAA;MAAA;IAAA,CACvB,CACF;IAAAJ,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnE,YAAA;MAAAoE,UAAA;MAAAC,YAAA;IAAA;EAAA,CACF,CAAC,eACF1E,MAAA,CAAAgB,OAAA,CAAAwC,aAAA,CAAC1D,aAAA,CAAAkE,GAAG;IACFW,QAAQ,EAAC,4BAA4B;IACrCV,KAAK,EAAC,MAAM;IACZW,SAAS,EAAC,UAAU;IACpBC,SAAS,EAAE,CAAE;IACbC,IAAI,EAAE,CAAE;IACRC,aAAa,EAAC,QAAQ;IAAAT,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnE,YAAA;MAAAoE,UAAA;MAAAC,YAAA;IAAA;EAAA,GAErBpC,QACE,CACL,CAAC;AAEP","ignoreList":[]}
|
|
@@ -14,6 +14,7 @@ function useToolbarCollectionSyncProps(props) {
|
|
|
14
14
|
views,
|
|
15
15
|
tabs,
|
|
16
16
|
exportButton,
|
|
17
|
+
importButton,
|
|
17
18
|
dragAndDropCategories,
|
|
18
19
|
maxSelection,
|
|
19
20
|
search,
|
|
@@ -79,6 +80,14 @@ function useToolbarCollectionSyncProps(props) {
|
|
|
79
80
|
state.featuredComponents.exportButton.set(null);
|
|
80
81
|
};
|
|
81
82
|
}, [exportButton]);
|
|
83
|
+
(0, _react.useEffect)(() => {
|
|
84
|
+
if (importButton) {
|
|
85
|
+
state.featuredComponents.importButton.set(importButton);
|
|
86
|
+
}
|
|
87
|
+
return () => {
|
|
88
|
+
state.featuredComponents.importButton.set(null);
|
|
89
|
+
};
|
|
90
|
+
}, [importButton]);
|
|
82
91
|
const tabsFilterProps = (0, _react.useMemo)(() => {
|
|
83
92
|
return tabs != null && tabs.props ? {
|
|
84
93
|
filter: tabs.props.filter
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_mobx","_checkConflictingToolbarProps","_providers","_WixPatternsRouterProvider","_useSyncTotal","useToolbarCollectionSyncProps","props","state","views","tabs","exportButton","dragAndDropCategories","maxSelection","search","filters","isUsingDragAndDrop","isUsingBulkActionsToolbar","isUsingHorizontalScroll","isUsingFolders","isUsingTableVirtualization","summaryBar","secondaryActions","moreActions","internalScroll","checkConflictingToolbarProps","container","isPanelLayout","pageState","useCollectionPageContext","router","useWixPatternsRouter","useEffect","primaryToolbar","reaction","scrollTop","scrollTopBeforeUnmount","routerState","currentState","_createdEntity","fireImmediately","_pageState$pageState$","scrollableContentRef","current","undefined","getIsUsingAllItemsView","allItemsViewProps","hidden","featuredComponents","set","tabsFilterProps","useMemo","filter","hasHeader","minimizedHeaderHeight","useSyncTotal","collection","runInAction","useState","type","setViewsState","action","viewsProps","_props$AddApplyFilter","_props$title","_props$title2","AddApplyFiltersButton","setStateObject","featuresAvailability","isDisablingSearch","isUsingFilters","isUsingTags","tags","isUsingTabs","isUsingSummaryRow","isUsingSecondaryActions","isUsingMoreActions","additionalFeaturesAvailability","isUsingTableSubtitle","title","subtitle","isUsingCounterInHeader","showTotal","isUsingSelectAllLimitation","isUsingErrorMessage","errorState","renderError","isUsingAllItemsView","isUsingCustomEmptyState","emptyState","isUsingCustomNoResultsState","noResultsState","isUsingPrimaryActionCta","primaryActionButton","isUsingExpandCollapse","persistent","bulk"],"sources":["../../../../src/components/ToolbarCollection/useToolbarCollectionSyncProps.ts"],"sourcesContent":["import { FiltersMap } from '@wix/bex-core';\nimport { useEffect, useMemo, useState } from 'react';\nimport { action, reaction, runInAction } from 'mobx';\nimport { ToolbarCollectionProps } from './ToolbarCollection';\nimport { checkConflictingToolbarProps } from './checkConflictingToolbarProps';\nimport { useCollectionPageContext } from '../../providers';\nimport { useWixPatternsRouter } from '../../providers/WixPatternsRouterProvider';\nimport { useSyncTotal } from '../../hooks/useSyncTotal';\n\nexport function useToolbarCollectionSyncProps<T, F extends FiltersMap>(\n props: ToolbarCollectionProps<T, F> & {\n isUsingDragAndDrop: boolean;\n isUsingBulkActionsToolbar: boolean;\n isUsingHorizontalScroll: boolean;\n isUsingFolders: boolean;\n isUsingTableVirtualization: boolean;\n isUsingExpandCollapse?: boolean;\n },\n) {\n const {\n state,\n views,\n tabs,\n exportButton,\n dragAndDropCategories,\n maxSelection,\n search,\n filters,\n isUsingDragAndDrop,\n isUsingBulkActionsToolbar,\n isUsingHorizontalScroll,\n isUsingFolders,\n isUsingTableVirtualization,\n summaryBar,\n secondaryActions,\n moreActions,\n internalScroll,\n } = props;\n\n checkConflictingToolbarProps(props);\n\n state.internalScroll = state.container.isPanelLayout ? true : internalScroll;\n\n const pageState = useCollectionPageContext();\n const router = useWixPatternsRouter();\n\n useEffect(() => {\n pageState.primaryToolbar = state;\n\n return () => {\n if (pageState.primaryToolbar === state) {\n pageState.primaryToolbar = null;\n }\n };\n }, []);\n\n useEffect(() => {\n reaction(\n () => ({\n scrollTop: state.scrollTopBeforeUnmount,\n routerState: router?.currentState,\n }),\n ({ scrollTop, routerState }) => {\n pageState.scrollTopBeforeUnmount = routerState?._createdEntity\n ? 0\n : scrollTop;\n },\n { fireImmediately: true },\n );\n\n return () => {\n const scrollTop =\n pageState.pageState.scrollableContentRef.current?.scrollTop;\n if (scrollTop !== undefined) {\n state.scrollTopBeforeUnmount = scrollTop;\n }\n };\n }, []);\n\n const getIsUsingAllItemsView = () =>\n !!(\n // views=undefined, it means thw user didn't pass so allItemsViews=false\n (\n views &&\n // views.props=undefined, it means the user passed views without configuring allItems so allItemsViews=true\n (!views.props ||\n // views.props.allItemsViewProps=undefined, it means the user passed allItemsViewProps\n // without configuring the hidden so allItemsViews=true\n !views.props.allItemsViewProps ||\n // allItemsViews depends on hidden's value\n !views.props.allItemsViewProps.hidden)\n )\n );\n\n useEffect(() => {\n if (exportButton) {\n state.featuredComponents.exportButton.set(exportButton);\n }\n\n return () => {\n state.featuredComponents.exportButton.set(null);\n };\n }, [exportButton]);\n\n const tabsFilterProps = useMemo(() => {\n return tabs?.props\n ? {\n filter: tabs.props.filter,\n }\n : undefined;\n }, [tabs]);\n\n useEffect(\n () =>\n reaction(\n () => pageState.hasHeader,\n (hasHeader) => {\n if (hasHeader) {\n state.minimizedHeaderHeight = 66;\n }\n },\n {\n fireImmediately: true,\n },\n ),\n [],\n );\n\n useSyncTotal(state.collection);\n\n useEffect(() => {\n runInAction(() => {\n state.dragAndDropCategories = dragAndDropCategories;\n });\n // We accept this prop once on purpose because it's array it changes on every render. We expose a setter `set dragAndDropCategories` instead.\n }, []);\n\n useState(() => views?.type.setViewsState(state, views?.props));\n\n useEffect(\n action(() => {\n state.viewsProps = views?.props;\n }),\n [views],\n );\n\n useState(() => {\n props.AddApplyFiltersButton?.setStateObject(state);\n\n state.featuresAvailability = {\n isDisablingSearch: search === false,\n isUsingFilters: !!filters,\n isUsingDragAndDrop,\n isUsingBulkActionsToolbar,\n isUsingHorizontalScroll,\n isUsingFolders,\n isUsingTableVirtualization,\n isUsingTags: !!props.tags,\n isUsingTabs: !!tabs,\n isUsingSummaryRow: !!summaryBar,\n isUsingSecondaryActions: !!secondaryActions,\n isUsingMoreActions: !!moreActions,\n };\n\n state.additionalFeaturesAvailability = {\n isUsingTableSubtitle: !!props.title?.props.subtitle,\n isUsingCounterInHeader: !!props.title?.props.showTotal,\n isUsingSelectAllLimitation: !!props.maxSelection,\n isUsingErrorMessage: !!(props.errorState ?? props.renderError),\n isUsingAllItemsView: getIsUsingAllItemsView(),\n isUsingCustomEmptyState: !!props.emptyState,\n isUsingCustomNoResultsState: !!props.noResultsState,\n isUsingPrimaryActionCta: !!props.primaryActionButton,\n isUsingExpandCollapse: !!props.isUsingExpandCollapse,\n };\n });\n\n useEffect(\n action(() => {\n if (tabsFilterProps?.filter) {\n state.tabsFilterProps = tabsFilterProps;\n tabsFilterProps.filter.persistent = true;\n }\n }),\n [tabsFilterProps],\n );\n\n useEffect(() => {\n runInAction(() => {\n state.bulk.maxSelection = maxSelection;\n });\n }, [maxSelection]);\n\n return state;\n}\n"],"mappings":";;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,6BAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,0BAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AAEO,SAASM,6BAA6BA,CAC3CC,KAOC,EACD;EACA,MAAM;IACJC,KAAK;IACLC,KAAK;IACLC,IAAI;IACJC,YAAY;IACZC,qBAAqB;IACrBC,YAAY;IACZC,MAAM;IACNC,OAAO;IACPC,kBAAkB;IAClBC,yBAAyB;IACzBC,uBAAuB;IACvBC,cAAc;IACdC,0BAA0B;IAC1BC,UAAU;IACVC,gBAAgB;IAChBC,WAAW;IACXC;EACF,CAAC,GAAGjB,KAAK;EAET,IAAAkB,0DAA4B,EAAClB,KAAK,CAAC;EAEnCC,KAAK,CAACgB,cAAc,GAAGhB,KAAK,CAACkB,SAAS,CAACC,aAAa,GAAG,IAAI,GAAGH,cAAc;EAE5E,MAAMI,SAAS,GAAG,IAAAC,mCAAwB,EAAC,CAAC;EAC5C,MAAMC,MAAM,GAAG,IAAAC,+CAAoB,EAAC,CAAC;EAErC,IAAAC,gBAAS,EAAC,MAAM;IACdJ,SAAS,CAACK,cAAc,GAAGzB,KAAK;IAEhC,OAAO,MAAM;MACX,IAAIoB,SAAS,CAACK,cAAc,KAAKzB,KAAK,EAAE;QACtCoB,SAAS,CAACK,cAAc,GAAG,IAAI;MACjC;IACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,IAAAD,gBAA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AAAlB,gBAAS,EAAC,MAAM;IACd,IAAAyB,iBAAW,EAAC,MAAM;MAChBjD,KAAK,CAACwF,IAAI,CAACnF,YAAY,GAAGA,YAAY;IACxC,CAAC,CAAC;EACJ,CAAC,EAAE,CAACA,YAAY,CAAC,CAAC;EAElB,OAAOL,KAAK;AACd","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","require","_mobx","_checkConflictingToolbarProps","_providers","_WixPatternsRouterProvider","_useSyncTotal","useToolbarCollectionSyncProps","props","state","views","tabs","exportButton","importButton","dragAndDropCategories","maxSelection","search","filters","isUsingDragAndDrop","isUsingBulkActionsToolbar","isUsingHorizontalScroll","isUsingFolders","isUsingTableVirtualization","summaryBar","secondaryActions","moreActions","internalScroll","checkConflictingToolbarProps","container","isPanelLayout","pageState","useCollectionPageContext","router","useWixPatternsRouter","useEffect","primaryToolbar","reaction","scrollTop","scrollTopBeforeUnmount","routerState","currentState","_createdEntity","fireImmediately","_pageState$pageState$","scrollableContentRef","current","undefined","getIsUsingAllItemsView","allItemsViewProps","hidden","featuredComponents","set","tabsFilterProps","useMemo","filter","hasHeader","minimizedHeaderHeight","useSyncTotal","collection","runInAction","useState","type","setViewsState","action","viewsProps","_props$AddApplyFilter","_props$title","_props$title2","AddApplyFiltersButton","setStateObject","featuresAvailability","isDisablingSearch","isUsingFilters","isUsingTags","tags","isUsingTabs","isUsingSummaryRow","isUsingSecondaryActions","isUsingMoreActions","additionalFeaturesAvailability","isUsingTableSubtitle","title","subtitle","isUsingCounterInHeader","showTotal","isUsingSelectAllLimitation","isUsingErrorMessage","errorState","renderError","isUsingAllItemsView","isUsingCustomEmptyState","emptyState","isUsingCustomNoResultsState","noResultsState","isUsingPrimaryActionCta","primaryActionButton","isUsingExpandCollapse","persistent","bulk"],"sources":["../../../../src/components/ToolbarCollection/useToolbarCollectionSyncProps.ts"],"sourcesContent":["import { FiltersMap } from '@wix/bex-core';\nimport { useEffect, useMemo, useState } from 'react';\nimport { action, reaction, runInAction } from 'mobx';\nimport { ToolbarCollectionProps } from './ToolbarCollection';\nimport { checkConflictingToolbarProps } from './checkConflictingToolbarProps';\nimport { useCollectionPageContext } from '../../providers';\nimport { useWixPatternsRouter } from '../../providers/WixPatternsRouterProvider';\nimport { useSyncTotal } from '../../hooks/useSyncTotal';\n\nexport function useToolbarCollectionSyncProps<T, F extends FiltersMap>(\n props: ToolbarCollectionProps<T, F> & {\n isUsingDragAndDrop: boolean;\n isUsingBulkActionsToolbar: boolean;\n isUsingHorizontalScroll: boolean;\n isUsingFolders: boolean;\n isUsingTableVirtualization: boolean;\n isUsingExpandCollapse?: boolean;\n },\n) {\n const {\n state,\n views,\n tabs,\n exportButton,\n importButton,\n dragAndDropCategories,\n maxSelection,\n search,\n filters,\n isUsingDragAndDrop,\n isUsingBulkActionsToolbar,\n isUsingHorizontalScroll,\n isUsingFolders,\n isUsingTableVirtualization,\n summaryBar,\n secondaryActions,\n moreActions,\n internalScroll,\n } = props;\n\n checkConflictingToolbarProps(props);\n\n state.internalScroll = state.container.isPanelLayout ? true : internalScroll;\n\n const pageState = useCollectionPageContext();\n const router = useWixPatternsRouter();\n\n useEffect(() => {\n pageState.primaryToolbar = state;\n\n return () => {\n if (pageState.primaryToolbar === state) {\n pageState.primaryToolbar = null;\n }\n };\n }, []);\n\n useEffect(() => {\n reaction(\n () => ({\n scrollTop: state.scrollTopBeforeUnmount,\n routerState: router?.currentState,\n }),\n ({ scrollTop, routerState }) => {\n pageState.scrollTopBeforeUnmount = routerState?._createdEntity\n ? 0\n : scrollTop;\n },\n { fireImmediately: true },\n );\n\n return () => {\n const scrollTop =\n pageState.pageState.scrollableContentRef.current?.scrollTop;\n if (scrollTop !== undefined) {\n state.scrollTopBeforeUnmount = scrollTop;\n }\n };\n }, []);\n\n const getIsUsingAllItemsView = () =>\n !!(\n // views=undefined, it means thw user didn't pass so allItemsViews=false\n (\n views &&\n // views.props=undefined, it means the user passed views without configuring allItems so allItemsViews=true\n (!views.props ||\n // views.props.allItemsViewProps=undefined, it means the user passed allItemsViewProps\n // without configuring the hidden so allItemsViews=true\n !views.props.allItemsViewProps ||\n // allItemsViews depends on hidden's value\n !views.props.allItemsViewProps.hidden)\n )\n );\n\n useEffect(() => {\n if (exportButton) {\n state.featuredComponents.exportButton.set(exportButton);\n }\n\n return () => {\n state.featuredComponents.exportButton.set(null);\n };\n }, [exportButton]);\n\n useEffect(() => {\n if (importButton) {\n state.featuredComponents.importButton.set(importButton);\n }\n\n return () => {\n state.featuredComponents.importButton.set(null);\n };\n }, [importButton]);\n\n const tabsFilterProps = useMemo(() => {\n return tabs?.props\n ? {\n filter: tabs.props.filter,\n }\n : undefined;\n }, [tabs]);\n\n useEffect(\n () =>\n reaction(\n () => pageState.hasHeader,\n (hasHeader) => {\n if (hasHeader) {\n state.minimizedHeaderHeight = 66;\n }\n },\n {\n fireImmediately: true,\n },\n ),\n [],\n );\n\n useSyncTotal(state.collection);\n\n useEffect(() => {\n runInAction(() => {\n state.dragAndDropCategories = dragAndDropCategories;\n });\n // We accept this prop once on purpose because it's array it changes on every render. We expose a setter `set dragAndDropCategories` instead.\n }, []);\n\n useState(() => views?.type.setViewsState(state, views?.props));\n\n useEffect(\n action(() => {\n state.viewsProps = views?.props;\n }),\n [views],\n );\n\n useState(() => {\n props.AddApplyFiltersButton?.setStateObject(state);\n\n state.featuresAvailability = {\n isDisablingSearch: search === false,\n isUsingFilters: !!filters,\n isUsingDragAndDrop,\n isUsingBulkActionsToolbar,\n isUsingHorizontalScroll,\n isUsingFolders,\n isUsingTableVirtualization,\n isUsingTags: !!props.tags,\n isUsingTabs: !!tabs,\n isUsingSummaryRow: !!summaryBar,\n isUsingSecondaryActions: !!secondaryActions,\n isUsingMoreActions: !!moreActions,\n };\n\n state.additionalFeaturesAvailability = {\n isUsingTableSubtitle: !!props.title?.props.subtitle,\n isUsingCounterInHeader: !!props.title?.props.showTotal,\n isUsingSelectAllLimitation: !!props.maxSelection,\n isUsingErrorMessage: !!(props.errorState ?? props.renderError),\n isUsingAllItemsView: getIsUsingAllItemsView(),\n isUsingCustomEmptyState: !!props.emptyState,\n isUsingCustomNoResultsState: !!props.noResultsState,\n isUsingPrimaryActionCta: !!props.primaryActionButton,\n isUsingExpandCollapse: !!props.isUsingExpandCollapse,\n };\n });\n\n useEffect(\n action(() => {\n if (tabsFilterProps?.filter) {\n state.tabsFilterProps = tabsFilterProps;\n tabsFilterProps.filter.persistent = true;\n }\n }),\n [tabsFilterProps],\n );\n\n useEffect(() => {\n runInAction(() => {\n state.bulk.maxSelection = maxSelection;\n });\n }, [maxSelection]);\n\n return state;\n}\n"],"mappings":";;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,6BAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,0BAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AAEO,SAASM,6BAA6BA,CAC3CC,KAOC,EACD;EACA,MAAM;IACJC,KAAK;IACLC,KAAK;IACLC,IAAI;IACJC,YAAY;IACZC,YAAY;IACZC,qBAAqB;IACrBC,YAAY;IACZC,MAAM;IACNC,OAAO;IACPC,kBAAkB;IAClBC,yBAAyB;IACzBC,uBAAuB;IACvBC,cAAc;IACdC,0BAA0B;IAC1BC,UAAU;IACVC,gBAAgB;IAChBC,WAAW;IACXC;EACF,CAAC,GAAGlB,KAAK;EAET,IAAAmB,0DAA4B,EAACnB,KAAK,CAAC;EAEnCC,KAAK,CAACiB,cAAc,GAAGjB,KAAK,CAACmB,SAAS,CAACC,aAAa,GAAG,IAAI,GAAGH,cAAc;EAE5E,MAAMI,SAAS,GAAG,IAAAC,mCAAwB,EAAC,CAAC;EAC5C,MAAMC,MAAM,GAAG,IAAAC,+CAAoB,EAAC,CAAC;EAErC,IAAAC,gBAAS,EAAC,MAAM;IACdJ,SAAS,CAACK,cAAc,GAAG1B,KAAK;IAEhC,OAAO,MAAM;MACX,IAAIq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E,CAAC,CAACpF,KAAK,CAACqF,cAAc;MACnDC,uBAAuB,EAAE,CAAC,CAACtF,KAAK,CAACuF,mBAAmB;MACpDC,qBAAqB,EAAE,CAAC,CAACxF,KAAK,CAACwF;IACjC,CAAC;EACH,CAAC,CAAC;EAEF,IAAA9D,gBAAS,EACP,IAAA6B,YAAM,EAAC,MAAM;IACX,IAAIX,eAAe,YAAfA,eAAe,CAAEE,MAAM,EAAE;MAC3B7C,KAAK,CAAC2C,eAAe,GAAGA,eAAe;MACvCA,eAAe,CAACE,MAAM,CAAC2C,UAAU,GAAG,IAAI;IAC1C;EACF,CAAC,CAAC,EACF,CAAC7C,eAAe,CAClB,CAAC;EAED,IAAAlB,gBAAS,EAAC,MAAM;IACd,IAAAyB,iBAAW,EAAC,MAAM;MAChBlD,KAAK,CAACyF,IAAI,CAACnF,YAAY,GAAGA,YAAY;IACxC,CAAC,CAAC;EACJ,CAAC,EAAE,CAACA,YAAY,CAAC,CAAC;EAElB,OAAON,KAAK;AACd","ignoreList":[]}
|
|
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "ToolbarItem3509901774";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
15
|
+
"root": "ToolbarItem3509901774__root"
|
|
16
16
|
};
|
|
17
17
|
var keyframes = exports.keyframes = {};
|
|
18
18
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/ToolbarItem/ToolbarItem.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/ToolbarItem/ToolbarItem.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"ToolbarItem3509901774\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"ToolbarItem3509901774__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,uBAAuB;AACzC,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAA6B,CAAC;AACpD,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "ToolbarItemBox3910797071";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
15
|
+
"root": "ToolbarItemBox3910797071__root"
|
|
16
16
|
};
|
|
17
17
|
var keyframes = exports.keyframes = {};
|
|
18
18
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/ToolbarItemBox/ToolbarItemBox.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/ToolbarItemBox/ToolbarItemBox.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"ToolbarItemBox3910797071\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"ToolbarItemBox3910797071__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,0BAA0B;AAC5C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAgC,CAAC;AACvD,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,16 +5,16 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "common3071416596";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"column": "
|
|
17
|
-
"fullHeight": "
|
|
15
|
+
"root": "common3071416596__root",
|
|
16
|
+
"column": "common3071416596__column",
|
|
17
|
+
"fullHeight": "common3071416596__fullHeight"
|
|
18
18
|
};
|
|
19
19
|
var keyframes = exports.keyframes = {};
|
|
20
20
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../src/components/common.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../src/components/common.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"common3071416596\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"common3071416596__root\",\"column\":\"common3071416596__column\",\"fullHeight\":\"common3071416596__fullHeight\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,kBAAkB;AACpC,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,wBAAwB;EAAC,QAAQ,EAAC,0BAA0B;EAAC,YAAY,EAAC;AAA8B,CAAC;AAC/H,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
package/dist/cjs/index.js
CHANGED
|
@@ -82,6 +82,8 @@ var _exportNames = {
|
|
|
82
82
|
useExportConfig: true,
|
|
83
83
|
UseExportConfigParams: true,
|
|
84
84
|
withDashboard: true,
|
|
85
|
+
useCreateImport: true,
|
|
86
|
+
useImportConfig: true,
|
|
85
87
|
QueryCache: true,
|
|
86
88
|
CollectionState: true,
|
|
87
89
|
CollectionPageState: true,
|
|
@@ -126,7 +128,7 @@ var _exportNames = {
|
|
|
126
128
|
QueryV2: true
|
|
127
129
|
};
|
|
128
130
|
exports.useAmbassadorCollection = exports.transformSortToWQL = exports.transformOperatorFilterToWQL = exports.transformCustomFiltersToWQL = exports.stringsArrayFilter = exports.stringFilter = exports.selectionStatusPreset = exports.runInAction = exports.rangeFilter = exports.prefetchTranslationsWithoutBundling = exports.prefetchTranslations = exports.operatorFilter = exports.observer = exports.numberRangeFilter = exports.idNameArrayFilter = exports.getOperatorLabel = exports.dateRangeFilter = exports.customFilter = exports.arrayFilter = exports.WixPatternsRouterProvider = exports.WixPatternsEssentials = exports.WixPatternsContainerProvider = exports.WixPatternsContainerOverridesProvider = exports.WixPatternsContainerOverridesContext = exports.WixPatternsContainerOverridesConsumer = exports.WixPatternsContainerContext = exports.WixPatternsContainerConsumer = exports.WixPatternsContainer = exports.ViewsStandaloneProps = exports.ViewsStandalone = exports.ViewsProps = exports.ViewsDropdownProps = exports.ViewsDropdown = exports.Views = exports.UsePickerModalParams = exports.UseExportConfigParams = exports.TypedEmitter = exports.TranslationsKeys = exports.TableSections = exports.TableDragAndDrop = exports.TableCollectionProvider = exports.Sort = exports.SingleSelectFilterProps = exports.SingleSelectFilter = exports.ShowToast = exports.RawFilters = exports.RangeItem = exports.RangeFilterStateParams = exports.QueryV2 = exports.QueryState = exports.QueryCache = exports.PickerModalState = exports.PickerModalRawFiltersParams = exports.PickerModalEvents = exports.PickerConfig = exports.Order = exports.OptionalFiltersMap = exports.OperatorFilterValue = exports.OperatorFilterStateParams = exports.OperatorFilterState = exports.OnSelectOptions = exports.OnNavigation = exports.OffsetQueryResult = exports.OffsetQuery = exports.OffsetFetchDataFn = exports.OffsetCollectionConfig = exports.Observer = exports.NestedTableDragAndDrop = exports.MultiBulkActionSubItem = exports.IndexedItem = exports.GridState = exports.GridSections = exports.GridProps = exports.Grid = exports.FiltersMap = exports.FilterOperator = exports.Filter = exports.ExtensionMenuItems = exports.EntityPageProvider = exports.DragAndDropSubmit = exports.DateRangeFilterStateParams = exports.Dataset = exports.DataExtension = exports.CustomColumnsProps = exports.CustomColumnsLite = exports.CustomColumns = exports.CursorQueryResult = exports.CursorQuery = exports.CursorFetchDataFn = exports.CursorCollectionConfig = exports.ComputedQueryFull = exports.ComputedQuery = exports.CollectionState = exports.CollectionPageState = exports.CollectionOptimisticActionsParams = exports.CollectionOptimisticActions = exports.CollectionFactory = exports.CollectionConfig = exports.AmbassadorCollectionFactory = exports.ActionSubitem = void 0;
|
|
129
|
-
exports.withDashboard = exports.warmUpPickerStandalone = exports.useWixPatternsContainerOverrides = exports.useWixPatternsContainer = exports.useWidgetsFormContext = exports.useSyncPickerModalProps = exports.useSettingsPageContext = exports.usePickerModal = exports.usePicker = exports.useOptimisticActions = exports.useMigrateOrdersViews = exports.useFixMissingContactsViews = exports.useExportConfig = exports.useEntityPageContext = exports.useCreatePickerModal = exports.useCreatePicker = exports.useCreateOptimisticActions = exports.useCreateExport = exports.useCreateCollection = exports.useCreateAmbassadorCollection = exports.useCollectionDatasetSync = exports.useCollection = void 0;
|
|
131
|
+
exports.withDashboard = exports.warmUpPickerStandalone = exports.useWixPatternsContainerOverrides = exports.useWixPatternsContainer = exports.useWidgetsFormContext = exports.useSyncPickerModalProps = exports.useSettingsPageContext = exports.usePickerModal = exports.usePicker = exports.useOptimisticActions = exports.useMigrateOrdersViews = exports.useImportConfig = exports.useFixMissingContactsViews = exports.useExportConfig = exports.useEntityPageContext = exports.useCreatePickerModal = exports.useCreatePicker = exports.useCreateOptimisticActions = exports.useCreateImport = exports.useCreateExport = exports.useCreateCollection = exports.useCreateAmbassadorCollection = exports.useCollectionDatasetSync = exports.useCollection = void 0;
|
|
130
132
|
var _Table = require("./components/Table");
|
|
131
133
|
Object.keys(_Table).forEach(function (key) {
|
|
132
134
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -340,6 +342,13 @@ Object.keys(_ExportButton).forEach(function (key) {
|
|
|
340
342
|
if (key in exports && exports[key] === _ExportButton[key]) return;
|
|
341
343
|
exports[key] = _ExportButton[key];
|
|
342
344
|
});
|
|
345
|
+
var _ImportButton = require("./components/ImportButton");
|
|
346
|
+
Object.keys(_ImportButton).forEach(function (key) {
|
|
347
|
+
if (key === "default" || key === "__esModule") return;
|
|
348
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
349
|
+
if (key in exports && exports[key] === _ImportButton[key]) return;
|
|
350
|
+
exports[key] = _ImportButton[key];
|
|
351
|
+
});
|
|
343
352
|
var _BulkActionButton = require("./components/BulkActionButton");
|
|
344
353
|
Object.keys(_BulkActionButton).forEach(function (key) {
|
|
345
354
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -986,6 +995,8 @@ exports.useExportConfig = _react.useExportConfig;
|
|
|
986
995
|
exports.UseExportConfigParams = _react.UseExportConfigParams;
|
|
987
996
|
exports.withDashboard = _react.withDashboard;
|
|
988
997
|
var _bexCore = require("@wix/bex-core");
|
|
998
|
+
exports.useCreateImport = _bexCore.useCreateImport;
|
|
999
|
+
exports.useImportConfig = _bexCore.useImportConfig;
|
|
989
1000
|
exports.QueryCache = _bexCore.QueryCache;
|
|
990
1001
|
exports.CollectionState = _bexCore.CollectionState;
|
|
991
1002
|
exports.CollectionPageState = _bexCore.CollectionPageState;
|