@wix/patterns 1.18.0 → 1.21.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/bm/buildBMCairoEssentials.js +2 -0
- package/dist/cjs/bm/buildBMCairoEssentials.js.map +1 -1
- package/dist/cjs/components/AutoCompleteFilter/AutoCompleteFilter.js.map +1 -1
- package/dist/cjs/components/BulkAction/BulkActionModalRenderProp.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/CollectionItemActions/CollectionItemActions.js +13 -4
- package/dist/cjs/components/CollectionItemActions/CollectionItemActions.js.map +1 -1
- package/dist/cjs/components/CollectionPageNew/CollectionPage.js.map +1 -1
- package/dist/cjs/components/CollectionTable/CollectionTable.js +29 -10
- package/dist/cjs/components/CollectionTable/CollectionTable.js.map +1 -1
- package/dist/cjs/components/CollectionTable/CollectionTableBaseCommonProps.js.map +1 -1
- package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.js.map +1 -1
- package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js +5 -5
- package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +3 -3
- package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionToolbarFilters/CollectionToolbarFilters.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
- package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
- package/dist/cjs/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.st.css.js +3 -3
- package/dist/cjs/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.st.css.js.map +1 -1
- package/dist/cjs/components/DragAndDrop/CollectionDragAndDropState.js +6 -3
- package/dist/cjs/components/DragAndDrop/CollectionDragAndDropState.js.map +1 -1
- package/dist/cjs/components/DragAndDrop/DragAndDrop.uni.driver.js +7 -2
- package/dist/cjs/components/DragAndDrop/DragAndDrop.uni.driver.js.map +1 -1
- package/dist/cjs/components/DragAndDrop/DragAndDropAnnouncements.js +44 -11
- package/dist/cjs/components/DragAndDrop/DragAndDropAnnouncements.js.map +1 -1
- package/dist/cjs/components/DragAndDrop/DragAndDropState.js +20 -12
- package/dist/cjs/components/DragAndDrop/DragAndDropState.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/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.map +1 -1
- package/dist/cjs/components/Grid/GridFolders.js +5 -5
- package/dist/cjs/components/Grid/GridFolders.js.map +1 -1
- package/dist/cjs/components/Grid/GridFolders.uni.driver.js +2 -2
- package/dist/cjs/components/Grid/GridFolders.uni.driver.js.map +1 -1
- package/dist/cjs/components/Grid/GridPlaceholderStates.js +12 -1
- package/dist/cjs/components/Grid/GridPlaceholderStates.js.map +1 -1
- package/dist/cjs/components/GridDragAndDropDndKit/dndTestEventHandlers.js +21 -3
- package/dist/cjs/components/GridDragAndDropDndKit/dndTestEventHandlers.js.map +1 -1
- package/dist/cjs/components/Heading/Heading.st.css.js +2 -2
- package/dist/cjs/components/Heading/Heading.st.css.js.map +1 -1
- package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js +2 -2
- package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
- package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
- package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
- package/dist/cjs/components/MaxLines/MaxLines.st.css.js +2 -2
- package/dist/cjs/components/MaxLines/MaxLines.st.css.js.map +1 -1
- package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
- package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
- package/dist/cjs/components/MultiSelectCheckboxFilter/MultiSelectCheckboxFilter.js.map +1 -1
- package/dist/cjs/components/MultiSelectCollectionFilter/MultiSelectCollectionFilter.js.map +1 -1
- package/dist/cjs/components/NestedTable/MainCellLayout.js +9 -8
- package/dist/cjs/components/NestedTable/MainCellLayout.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTable.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTable.uni.driver.js +5 -1
- package/dist/cjs/components/NestedTable/NestedTable.uni.driver.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTableParentCell.js +17 -7
- package/dist/cjs/components/NestedTable/NestedTableParentCell.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTableParentCell.uni.driver.js +1 -0
- package/dist/cjs/components/NestedTable/NestedTableParentCell.uni.driver.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTableRow.js +21 -6
- package/dist/cjs/components/NestedTable/NestedTableRow.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css +4 -8
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js +5 -5
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTableWSRTable.js +8 -7
- package/dist/cjs/components/NestedTable/NestedTableWSRTable.js.map +1 -1
- package/dist/cjs/components/NestedTable/useModeTableProps.js +19 -5
- package/dist/cjs/components/NestedTable/useModeTableProps.js.map +1 -1
- package/dist/cjs/components/NestedTable/useNestedModeColumns.js +4 -2
- package/dist/cjs/components/NestedTable/useNestedModeColumns.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDrop.js +7 -1
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDrop.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropContext.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropState.js +180 -33
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropState.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragHandle.js +38 -0
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragHandle.js.map +1 -0
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableGhostIndentationCell.js +59 -0
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableGhostIndentationCell.js.map +1 -0
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableGhostRow.uni.driver.js +26 -0
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableGhostRow.uni.driver.js.map +1 -0
- package/dist/cjs/components/PickerContent/PickerContent.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/PickerContent/PickerContentItemsSelection.js.map +1 -1
- package/dist/cjs/components/PickerModal/PickerModal.js.map +1 -1
- package/dist/cjs/components/PickerStandalone/PickerStandalone.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/PlaceholderStates/PlaceholderStatesBase.js +6 -5
- package/dist/cjs/components/PlaceholderStates/PlaceholderStatesBase.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/SingleSelectFilter/SingleSelectFilter.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/TabTotal/useFilterValueTotalState.js.map +1 -1
- package/dist/cjs/components/Table/Table.js +2 -2
- package/dist/cjs/components/Table/Table.js.map +1 -1
- package/dist/cjs/components/Table/TableVirtual.js +1 -0
- package/dist/cjs/components/Table/TableVirtual.js.map +1 -1
- package/dist/cjs/components/Table/TableVirtual.st.css.js +3 -3
- package/dist/cjs/components/Table/TableVirtual.st.css.js.map +1 -1
- package/dist/cjs/components/TableDragAndDropContext/TableDragAndDropContext.js.map +1 -1
- package/dist/cjs/components/TableFolders/TableFoldersContent.js +9 -9
- package/dist/cjs/components/TableFolders/TableFoldersContent.js.map +1 -1
- package/dist/cjs/components/TableGridSwitch/TableGridSwitch.js.map +1 -1
- package/dist/cjs/components/TableGridSwitchFolders/TableGridSwitchFolders.js.map +1 -1
- package/dist/cjs/components/TableGridSwitchFolders/TableGridSwitchFolders.uni.driver.js +2 -2
- package/dist/cjs/components/TableGridSwitchFolders/TableGridSwitchFolders.uni.driver.js.map +1 -1
- package/dist/cjs/components/TabsFilter/TabsFilter.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 +3 -3
- package/dist/cjs/components/ToolbarCollection/ToolbarCollection.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/components/deleteSecondaryAction/deleteSecondaryAction.js +1 -1
- package/dist/cjs/components/deleteSecondaryAction/deleteSecondaryAction.js.map +1 -1
- package/dist/cjs/dashboard/WixPatternsDashboardBaseProvider.js +4 -2
- package/dist/cjs/dashboard/WixPatternsDashboardBaseProvider.js.map +1 -1
- package/dist/cjs/dashboard/WixPatternsDashboardProviderInternal.js +5 -1
- package/dist/cjs/dashboard/WixPatternsDashboardProviderInternal.js.map +1 -1
- package/dist/cjs/giza/buildWixPatternsEssentials.js +2 -0
- package/dist/cjs/giza/buildWixPatternsEssentials.js.map +1 -1
- package/dist/cjs/hooks/useExtensionMenuItems.js +12 -3
- package/dist/cjs/hooks/useExtensionMenuItems.js.map +1 -1
- package/dist/cjs/hooks/usePickerModal/UsePickerModalParamsBase.js.map +1 -1
- package/dist/cjs/model/filterProps.js.map +1 -1
- package/dist/cjs/state/NestedTableState/NestedTableNestedModeState.js +2 -0
- package/dist/cjs/state/NestedTableState/NestedTableNestedModeState.js.map +1 -1
- package/dist/cjs/state/NestedTableState/NestedTableNodeState.js +2 -1
- package/dist/cjs/state/NestedTableState/NestedTableNodeState.js.map +1 -1
- package/dist/cjs/state/NestedTableState/NestedTableState.js.map +1 -1
- package/dist/cjs/state/ToolbarCollectionState.js +1 -0
- 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/cjs/wix-design-system-version.js +1 -1
- package/dist/cjs/wix-design-system-version.js.map +1 -1
- package/dist/esm/bm/buildBMCairoEssentials.js +2 -1
- package/dist/esm/bm/buildBMCairoEssentials.js.map +1 -1
- package/dist/esm/components/Collapse/Collapse.st.css.js +2 -2
- package/dist/esm/components/Collapse/Collapse.st.css.js.map +1 -1
- package/dist/esm/components/CollectionItemActions/CollectionItemActions.js +10 -1
- package/dist/esm/components/CollectionItemActions/CollectionItemActions.js.map +1 -1
- package/dist/esm/components/CollectionTable/CollectionTable.js +14 -2
- package/dist/esm/components/CollectionTable/CollectionTable.js.map +1 -1
- package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js +2 -2
- package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +2 -2
- package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
- package/dist/esm/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.st.css.js +2 -2
- package/dist/esm/components/DragAndDrop/CollectionDragAndDropState.js +8 -5
- package/dist/esm/components/DragAndDrop/CollectionDragAndDropState.js.map +1 -1
- package/dist/esm/components/DragAndDrop/DragAndDrop.uni.driver.js +9 -4
- package/dist/esm/components/DragAndDrop/DragAndDrop.uni.driver.js.map +1 -1
- package/dist/esm/components/DragAndDrop/DragAndDropAnnouncements.js +35 -7
- package/dist/esm/components/DragAndDrop/DragAndDropAnnouncements.js.map +1 -1
- package/dist/esm/components/DragAndDrop/DragAndDropState.js +18 -14
- package/dist/esm/components/DragAndDrop/DragAndDropState.js.map +1 -1
- package/dist/esm/components/DragHandle/DragHandle.st.css.js +2 -2
- package/dist/esm/components/Fade/Fade.st.css.js +2 -2
- package/dist/esm/components/Grid/GridFolders.js.map +1 -1
- package/dist/esm/components/Grid/GridFolders.uni.driver.js +2 -2
- package/dist/esm/components/Grid/GridFolders.uni.driver.js.map +1 -1
- package/dist/esm/components/Grid/GridPlaceholderStates.js +9 -1
- package/dist/esm/components/Grid/GridPlaceholderStates.js.map +1 -1
- package/dist/esm/components/GridDragAndDropDndKit/dndTestEventHandlers.js +21 -4
- package/dist/esm/components/GridDragAndDropDndKit/dndTestEventHandlers.js.map +1 -1
- package/dist/esm/components/Heading/Heading.st.css.js +2 -2
- package/dist/esm/components/InputOverflow/InputOverflow.st.css.js +2 -2
- package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
- package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
- package/dist/esm/components/MaxLines/MaxLines.st.css.js +2 -2
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
- package/dist/esm/components/NestedTable/MainCellLayout.js +2 -1
- package/dist/esm/components/NestedTable/MainCellLayout.js.map +1 -1
- package/dist/esm/components/NestedTable/NestedTable.uni.driver.js +4 -2
- package/dist/esm/components/NestedTable/NestedTable.uni.driver.js.map +1 -1
- package/dist/esm/components/NestedTable/NestedTableParentCell.js +2 -2
- package/dist/esm/components/NestedTable/NestedTableParentCell.js.map +1 -1
- package/dist/esm/components/NestedTable/NestedTableParentCell.uni.driver.js +1 -1
- package/dist/esm/components/NestedTable/NestedTableParentCell.uni.driver.js.map +1 -1
- package/dist/esm/components/NestedTable/NestedTableRow.js +9 -4
- package/dist/esm/components/NestedTable/NestedTableRow.js.map +1 -1
- package/dist/esm/components/NestedTable/NestedTableRow.st.css +4 -8
- package/dist/esm/components/NestedTable/NestedTableRow.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
- package/dist/esm/components/NestedTable/NestedTableWSRTable.js +1 -0
- package/dist/esm/components/NestedTable/NestedTableWSRTable.js.map +1 -1
- package/dist/esm/components/NestedTable/useModeTableProps.js +6 -3
- package/dist/esm/components/NestedTable/useModeTableProps.js.map +1 -1
- package/dist/esm/components/NestedTable/useNestedModeColumns.js +2 -2
- package/dist/esm/components/NestedTable/useNestedModeColumns.js.map +1 -1
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDrop.js +5 -1
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDrop.js.map +1 -1
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropContext.js.map +1 -1
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropState.js +122 -19
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropState.js.map +1 -1
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragHandle.js +10 -0
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragHandle.js.map +1 -0
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableGhostIndentationCell.js +30 -0
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableGhostIndentationCell.js.map +1 -0
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableGhostRow.uni.driver.js +19 -0
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableGhostRow.uni.driver.js.map +1 -0
- package/dist/esm/components/PickerContent/PickerContent.st.css.js +2 -2
- package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js +2 -2
- package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
- package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
- package/dist/esm/components/PlaceholderStates/PlaceholderStatesBase.js +4 -1
- package/dist/esm/components/PlaceholderStates/PlaceholderStatesBase.js.map +1 -1
- 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/SlidingModal/SlidingModal.st.css.js +2 -2
- package/dist/esm/components/Table/Table.js.map +1 -1
- package/dist/esm/components/Table/TableVirtual.js +1 -1
- package/dist/esm/components/Table/TableVirtual.js.map +1 -1
- package/dist/esm/components/Table/TableVirtual.st.css.js +2 -2
- package/dist/esm/components/TableDragAndDropContext/TableDragAndDropContext.js.map +1 -1
- package/dist/esm/components/TableFolders/TableFoldersContent.js.map +1 -1
- package/dist/esm/components/TableGridSwitchFolders/TableGridSwitchFolders.uni.driver.js +2 -2
- package/dist/esm/components/TableGridSwitchFolders/TableGridSwitchFolders.uni.driver.js.map +1 -1
- package/dist/esm/components/TabsFilter/TabsFilter.st.css.js +2 -2
- package/dist/esm/components/TabsFilter/TabsFilter.st.css.js.map +1 -1
- package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
- package/dist/esm/components/ToolbarCollection/ToolbarCollection.js.map +1 -1
- package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
- package/dist/esm/components/common.st.css.js +2 -2
- package/dist/esm/components/deleteSecondaryAction/deleteSecondaryAction.js.map +1 -1
- package/dist/esm/dashboard/WixPatternsDashboardBaseProvider.js +7 -22
- package/dist/esm/dashboard/WixPatternsDashboardBaseProvider.js.map +1 -1
- package/dist/esm/dashboard/WixPatternsDashboardProviderInternal.js +2 -1
- package/dist/esm/dashboard/WixPatternsDashboardProviderInternal.js.map +1 -1
- package/dist/esm/giza/buildWixPatternsEssentials.js +3 -1
- package/dist/esm/giza/buildWixPatternsEssentials.js.map +1 -1
- package/dist/esm/hooks/useExtensionMenuItems.js +9 -2
- package/dist/esm/hooks/useExtensionMenuItems.js.map +1 -1
- package/dist/esm/state/NestedTableState/NestedTableNestedModeState.js +2 -0
- package/dist/esm/state/NestedTableState/NestedTableNestedModeState.js.map +1 -1
- package/dist/esm/state/NestedTableState/NestedTableNodeState.js +1 -0
- package/dist/esm/state/NestedTableState/NestedTableNodeState.js.map +1 -1
- package/dist/esm/state/ToolbarCollectionState.js +1 -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/esm/wix-design-system-version.js +1 -1
- package/dist/types/bm/buildBMCairoEssentials.d.ts.map +1 -1
- package/dist/types/components/AutoCompleteFilter/AutoCompleteFilter.d.ts +2 -2
- package/dist/types/components/BulkAction/BulkActionModalRenderProp.d.ts +2 -2
- package/dist/types/components/Collapse/Collapse.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionItemActions/CollectionItemActions.d.ts.map +1 -1
- package/dist/types/components/CollectionList/CollectionList.uni.driver.d.ts +5 -0
- package/dist/types/components/CollectionList/CollectionList.uni.driver.d.ts.map +1 -1
- package/dist/types/components/CollectionPageNew/CollectionPage.d.ts +1 -1
- package/dist/types/components/CollectionTable/CollectionTable.d.ts +7 -7
- package/dist/types/components/CollectionTable/CollectionTable.d.ts.map +1 -1
- package/dist/types/components/CollectionTable/CollectionTable.uni.driver.d.ts +14 -4
- package/dist/types/components/CollectionTable/CollectionTable.uni.driver.d.ts.map +1 -1
- package/dist/types/components/CollectionTable/CollectionTableBaseCommonProps.d.ts +2 -2
- package/dist/types/components/CollectionTable/CollectionTableWSRTable.d.ts +1 -1
- package/dist/types/components/CollectionToolbar/CollectionToolbar.uni.driver.d.ts +5 -0
- package/dist/types/components/CollectionToolbar/CollectionToolbar.uni.driver.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/SearchOrCustomFilter.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbarFilters/CollectionToolbarFilters.d.ts +3 -3
- package/dist/types/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.d.ts.map +1 -1
- package/dist/types/components/CustomColumnsPanel/CustomColumnsPanel.uni.driver.d.ts +5 -0
- package/dist/types/components/CustomColumnsPanel/CustomColumnsPanel.uni.driver.d.ts.map +1 -1
- package/dist/types/components/DragAndDrop/CollectionDragAndDropState.d.ts +2 -4
- package/dist/types/components/DragAndDrop/CollectionDragAndDropState.d.ts.map +1 -1
- package/dist/types/components/DragAndDrop/DragAndDrop.uni.driver.d.ts +5 -0
- package/dist/types/components/DragAndDrop/DragAndDrop.uni.driver.d.ts.map +1 -1
- package/dist/types/components/DragAndDrop/DragAndDropAnnouncements.d.ts.map +1 -1
- package/dist/types/components/DragAndDrop/DragAndDropState.d.ts +9 -8
- package/dist/types/components/DragAndDrop/DragAndDropState.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.d.ts +1 -1
- package/dist/types/components/Grid/Grid.uni.driver.d.ts +10 -0
- package/dist/types/components/Grid/Grid.uni.driver.d.ts.map +1 -1
- package/dist/types/components/Grid/GridFolders.d.ts +3 -14
- package/dist/types/components/Grid/GridFolders.d.ts.map +1 -1
- package/dist/types/components/Grid/GridFolders.uni.driver.d.ts +45 -23
- package/dist/types/components/Grid/GridFolders.uni.driver.d.ts.map +1 -1
- package/dist/types/components/Grid/GridFoldersSection.uni.driver.d.ts +10 -0
- package/dist/types/components/Grid/GridFoldersSection.uni.driver.d.ts.map +1 -1
- package/dist/types/components/Grid/GridPlaceholderStates.d.ts.map +1 -1
- package/dist/types/components/GridDragAndDropDndKit/dndTestEventHandlers.d.ts.map +1 -1
- package/dist/types/components/InfiniteScrollCollectionList/InfiniteScrollCollectionList.uni.driver.d.ts +5 -0
- package/dist/types/components/InfiniteScrollCollectionList/InfiniteScrollCollectionList.uni.driver.d.ts.map +1 -1
- package/dist/types/components/MaxHeightText/MaxHeightText.st.css.d.ts.map +1 -1
- package/dist/types/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.d.ts.map +1 -1
- package/dist/types/components/MultiSelectCheckboxFilter/MultiSelectCheckboxFilter.d.ts +1 -1
- package/dist/types/components/MultiSelectCollectionFilter/MultiSelectCollectionFilter.d.ts +1 -1
- package/dist/types/components/NestedTable/MainCellLayout.d.ts +1 -0
- package/dist/types/components/NestedTable/MainCellLayout.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTable.d.ts +5 -5
- package/dist/types/components/NestedTable/NestedTable.uni.driver.d.ts +71 -47
- package/dist/types/components/NestedTable/NestedTable.uni.driver.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTableParentCell.d.ts +2 -0
- package/dist/types/components/NestedTable/NestedTableParentCell.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTableParentCell.uni.driver.d.ts +1 -0
- package/dist/types/components/NestedTable/NestedTableParentCell.uni.driver.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTableRow.d.ts +2 -0
- package/dist/types/components/NestedTable/NestedTableRow.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTableRow.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTableWSRTable.d.ts +3 -5
- package/dist/types/components/NestedTable/NestedTableWSRTable.d.ts.map +1 -1
- package/dist/types/components/NestedTable/useModeTableProps.d.ts +8 -2
- package/dist/types/components/NestedTable/useModeTableProps.d.ts.map +1 -1
- package/dist/types/components/NestedTable/useNestedModeColumns.d.ts +2 -0
- package/dist/types/components/NestedTable/useNestedModeColumns.d.ts.map +1 -1
- package/dist/types/components/NestedTableDragAndDrop/NestedTableDragAndDrop.d.ts +6 -1
- package/dist/types/components/NestedTableDragAndDrop/NestedTableDragAndDrop.d.ts.map +1 -1
- package/dist/types/components/NestedTableDragAndDrop/NestedTableDragAndDropState.d.ts +28 -5
- package/dist/types/components/NestedTableDragAndDrop/NestedTableDragAndDropState.d.ts.map +1 -1
- package/dist/types/components/NestedTableDragAndDrop/NestedTableDragHandle.d.ts +8 -0
- package/dist/types/components/NestedTableDragAndDrop/NestedTableDragHandle.d.ts.map +1 -0
- package/dist/types/components/NestedTableDragAndDrop/NestedTableGhostIndentationCell.d.ts +12 -0
- package/dist/types/components/NestedTableDragAndDrop/NestedTableGhostIndentationCell.d.ts.map +1 -0
- package/dist/types/components/NestedTableDragAndDrop/NestedTableGhostRow.uni.driver.d.ts +8 -0
- package/dist/types/components/NestedTableDragAndDrop/NestedTableGhostRow.uni.driver.d.ts.map +1 -0
- package/dist/types/components/PickerContent/PickerContent.d.ts +1 -1
- package/dist/types/components/PickerContent/PickerContentItemsSelection.d.ts +2 -2
- package/dist/types/components/PickerModal/PickerModal.d.ts +1 -1
- package/dist/types/components/PickerModal/PickerModal.d.ts.map +1 -1
- package/dist/types/components/PickerStandalone/PickerStandalone.d.ts +3 -3
- package/dist/types/components/PickerTableListItem/PickerTableListItem.st.css.d.ts.map +1 -1
- package/dist/types/components/PlaceholderStates/PlaceholderStatesBase.d.ts.map +1 -1
- package/dist/types/components/SingleSelectFilter/SingleSelectFilter.d.ts +1 -1
- package/dist/types/components/TabTotal/useFilterValueTotalState.d.ts +1 -1
- package/dist/types/components/Table/Table.d.ts.map +1 -1
- package/dist/types/components/Table/Table.uni.driver.d.ts +15 -0
- package/dist/types/components/Table/Table.uni.driver.d.ts.map +1 -1
- package/dist/types/components/Table/TableVirtual.d.ts.map +1 -1
- package/dist/types/components/TableFolders/TableFolders.uni.driver.d.ts +20 -0
- package/dist/types/components/TableFolders/TableFolders.uni.driver.d.ts.map +1 -1
- package/dist/types/components/TableFolders/TableFoldersContent.d.ts +6 -17
- package/dist/types/components/TableFolders/TableFoldersContent.d.ts.map +1 -1
- package/dist/types/components/TableGridSwitch/TableGridSwitch.d.ts +2 -2
- package/dist/types/components/TableGridSwitch/TableGridSwitch.uni.driver.d.ts +25 -0
- package/dist/types/components/TableGridSwitch/TableGridSwitch.uni.driver.d.ts.map +1 -1
- package/dist/types/components/TableGridSwitchFolders/TableGridSwitchFolders.d.ts +1 -1
- package/dist/types/components/TableGridSwitchFolders/TableGridSwitchFolders.d.ts.map +1 -1
- package/dist/types/components/TableGridSwitchFolders/TableGridSwitchFolders.uni.driver.d.ts +92 -55
- package/dist/types/components/TableGridSwitchFolders/TableGridSwitchFolders.uni.driver.d.ts.map +1 -1
- package/dist/types/components/TabsFilter/TabsFilter.d.ts +1 -1
- package/dist/types/components/TabsFilter/TabsFilter.st.css.d.ts.map +1 -1
- package/dist/types/components/ToolbarCollection/ToolbarCollection.d.ts +24 -20
- package/dist/types/components/ToolbarCollection/ToolbarCollection.d.ts.map +1 -1
- package/dist/types/components/deleteSecondaryAction/deleteSecondaryAction.d.ts +11 -0
- package/dist/types/components/deleteSecondaryAction/deleteSecondaryAction.d.ts.map +1 -1
- package/dist/types/dashboard/WixPatternsDashboardBaseProvider.d.ts +3 -1
- package/dist/types/dashboard/WixPatternsDashboardBaseProvider.d.ts.map +1 -1
- package/dist/types/dashboard/WixPatternsDashboardProviderInternal.d.ts.map +1 -1
- package/dist/types/giza/buildWixPatternsEssentials.d.ts.map +1 -1
- package/dist/types/hooks/useExtensionMenuItems.d.ts +3 -1
- package/dist/types/hooks/useExtensionMenuItems.d.ts.map +1 -1
- package/dist/types/hooks/usePickerModal/UsePickerModalParamsBase.d.ts +2 -2
- package/dist/types/model/filterProps.d.ts +1 -1
- package/dist/types/state/NestedTableState/NestedTableNestedModeState.d.ts +2 -0
- package/dist/types/state/NestedTableState/NestedTableNestedModeState.d.ts.map +1 -1
- package/dist/types/state/NestedTableState/NestedTableNodeState.d.ts.map +1 -1
- package/dist/types/state/NestedTableState/NestedTableState.d.ts +1 -1
- package/dist/types/state/ToolbarCollectionState.d.ts +2 -0
- package/dist/types/state/ToolbarCollectionState.d.ts.map +1 -1
- package/dist/types/testkit/enzyme.d.ts +214 -41
- package/dist/types/testkit/enzyme.d.ts.map +1 -1
- package/dist/types/testkit/jsdom.d.ts +214 -41
- package/dist/types/testkit/jsdom.d.ts.map +1 -1
- package/dist/types/testkit/puppeteer.d.ts +214 -41
- package/dist/types/testkit/puppeteer.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/wix-design-system-version.d.ts +1 -1
- package/package.json +12 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_ToolbarCollectionContentAutoSizer","_mobxReactLite","_useGridBaseSyncProps","_getToolbarCollectionFeaturesInitializers","_GridFoldersSectionsGroup","_CollectionCard","_ToolbarCollection","_GridFoldersPlaceholderStates","_minimalRequiredWdsRuntimeCheck","_useToolbarCollectionSyncProps","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_GridFolders","props","state","exportModal","dataHook","cardProps","emptyState","noResultsState","renderError","topNotification","toolbar","process","env","NODE_ENV","minimalRequiredWdsRuntimeCheck","required","requiredBy","useToolbarCollectionSyncProps","isUsingDragAndDrop","isUsingBulkActionsToolbar","isUsingHorizontalScroll","isUsingFolders","isUsingTableVirtualization","useGridBaseSyncProps","items","renderAddItem","renderFolderAddItem","folders","useEffect","init","featuresInitializers","getToolbarCollectionFeaturesInitializers","createElement","CollectionCard","_extends2","__self","__source","fileName","lineNumber","columnNumber","ToolbarCollection","GridFoldersPlaceholderStates","ToolbarCollectionContentAutoSizer","GridFoldersSectionsGroup","featuredComponents","value","GridFolders","exports","observer"],"sources":["../../../../src/components/Grid/GridFolders.tsx"],"sourcesContent":["import { AddItemProps } from '@wix/design-system';\nimport React, { ReactElement, ReactNode, useEffect } from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport { ToolbarCollectionContentAutoSizer } from '../ToolbarCollectionContentAutoSizer';\nimport { observer } from 'mobx-react-lite';\nimport { GridFoldersState } from '../../state';\nimport { ActionCell } from '../ActionCell';\nimport { SupportedCardGalleryItemProps } from './SupportedCardGalleryItemProps';\nimport { useGridBaseSyncProps } from './useGridBaseSyncProps';\nimport { getToolbarCollectionFeaturesInitializers } from '../../state/getToolbarCollectionFeaturesInitializers';\nimport { GridFoldersSectionsGroup } from './GridFoldersSectionsGroup';\nimport { GridFoldersPresetProps } from './GridFolders.types';\nimport { GridItemBaseProps } from './GridItemBaseProps';\nimport { CollectionCard } from '../CollectionCard';\nimport {\n ToolbarCollection,\n ToolbarCollectionBaseProps,\n} from '../ToolbarCollection';\nimport { GridFoldersPlaceholderStates } from './GridFoldersPlaceholderStates';\nimport { PartialAllFilters } from '../../state/FoldersAndItemsCollectionsState';\nimport { minimalRequiredWdsRuntimeCheck } from '../../minimalRequiredWdsRuntimeCheck';\nimport { useToolbarCollectionSyncProps } from '../ToolbarCollection/useToolbarCollectionSyncProps';\n\nexport interface GridFoldersBaseProps<\n T1,\n F1 extends FiltersMap,\n T2,\n F2 extends FiltersMap,\n> extends Omit<\n ToolbarCollectionBaseProps<T1, PartialAllFilters<F1, F2>>,\n 'emptyState' | 'noResultsState' | 'topNotification'\n >,\n GridItemBaseProps<T1, F1> {\n dataHook?: string;\n /** A GridFoldersState instance created using [useGridFolders](./?path=/story/common-hooks--usegridfolders). */\n state: GridFoldersState<T1, F1, T2, F2>;\n /** Optional custom title for the items section */\n itemsSectionTitle?: string;\n foldersSectionTitle?: string;\n /** Same as `renderItem`, but for a folder item. */\n renderFolderItem?: (\n item: T2,\n index: number,\n ) => Partial<SupportedCardGalleryItemProps>;\n /** Same as `preset` but for a folder item */\n folderPreset?: 'full' | 'title';\n /** Same as `actionCell`, but for a folder item. */\n folderActionCell?: ActionCell<T2, F2>;\n /** Same as `renderAddItem`, but for a folder item. */\n renderFolderAddItem?: () => ReactElement<AddItemProps>;\n /**\n * Shown when the collection is empty.\n * Pass [`<CollectionEmptyState />`](./?path=/story/components-collection-features--empty-state) component.\n */\n emptyState?: ReactNode;\n\n /**\n * Enable to configure Wix Patterns default NoResultsState behaviour.\n * Will be shown in when the the results after search or filter is empty.\n * Pass [`<NoResultsState />`](./?path=/story/components-collection-features--no-results-state) component.\n */\n noResultsState?: ReactNode;\n topNotification?: ReactElement;\n}\n\nexport type GridFoldersBasePropsWithoutPreset<\n T1,\n F1 extends FiltersMap,\n T2,\n F2 extends FiltersMap,\n> = Omit<\n GridFoldersBaseProps<T1, F1, T2, F2>,\n 'preset' | 'folderPreset' | 'renderItem' | 'renderFolderItem'\n>;\n\nexport type GridFoldersProps<\n T1,\n F1 extends FiltersMap,\n T2,\n F2 extends FiltersMap,\n> = GridFoldersPresetProps<\n T1,\n T2,\n GridFoldersBasePropsWithoutPreset<T1, F1, T2, F2>\n>;\n\nfunction _GridFolders<T1, F1 extends FiltersMap, T2, F2 extends FiltersMap>(\n props: GridFoldersProps<T1, F1, T2, F2>,\n) {\n const {\n state,\n exportModal,\n dataHook,\n cardProps,\n emptyState,\n noResultsState,\n renderError,\n topNotification,\n } = props;\n\n const { toolbar } = state;\n\n if (process.env.NODE_ENV !== 'production') {\n // https://github.com/wix-private/wix-design-systems/pull/13091/files#diff-0befb17e7fa12b244a3efce19b067187b39d3a96d4f7e62a59f4f0fd876dc37cR102\n minimalRequiredWdsRuntimeCheck({\n required: '^1.89.0',\n requiredBy: 'Cairo/GridFolders',\n });\n }\n\n useToolbarCollectionSyncProps({\n ...props,\n state: state.toolbar,\n isUsingDragAndDrop: false,\n isUsingBulkActionsToolbar: false,\n isUsingHorizontalScroll: false,\n isUsingFolders: true,\n isUsingTableVirtualization: false,\n });\n\n useGridBaseSyncProps({ ...props, state: state.items });\n useGridBaseSyncProps({\n ...props,\n renderAddItem: props.renderFolderAddItem,\n state: state.folders,\n });\n\n useEffect(\n () =>\n state.init({\n featuresInitializers: getToolbarCollectionFeaturesInitializers(props),\n }),\n [],\n );\n\n return (\n <CollectionCard\n renderError={false}\n state={toolbar}\n dataHook={dataHook}\n {...cardProps}\n >\n <ToolbarCollection {...props} state={toolbar}>\n <GridFoldersPlaceholderStates\n state={state}\n emptyState={emptyState}\n noResultsState={noResultsState}\n renderError={renderError}\n topNotification={topNotification}\n >\n <ToolbarCollectionContentAutoSizer>\n <GridFoldersSectionsGroup {...props} />\n </ToolbarCollectionContentAutoSizer>\n </GridFoldersPlaceholderStates>\n </ToolbarCollection>\n {exportModal ?? toolbar.featuredComponents.exportModal.value}\n </CollectionCard>\n );\n}\n\nexport const GridFolders = observer(_GridFolders);\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,kCAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAIA,IAAAG,qBAAA,GAAAH,OAAA;AACA,IAAAI,yCAAA,GAAAJ,OAAA;AACA,IA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ChD,YAAY,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_ToolbarCollectionContentAutoSizer","_mobxReactLite","_useGridBaseSyncProps","_getToolbarCollectionFeaturesInitializers","_GridFoldersSectionsGroup","_CollectionCard","_ToolbarCollection","_GridFoldersPlaceholderStates","_minimalRequiredWdsRuntimeCheck","_useToolbarCollectionSyncProps","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_GridFolders","props","state","exportModal","dataHook","cardProps","emptyState","noResultsState","renderError","topNotification","toolbar","process","env","NODE_ENV","minimalRequiredWdsRuntimeCheck","required","requiredBy","useToolbarCollectionSyncProps","isUsingDragAndDrop","isUsingBulkActionsToolbar","isUsingHorizontalScroll","isUsingFolders","isUsingTableVirtualization","useGridBaseSyncProps","items","renderAddItem","renderFolderAddItem","folders","useEffect","init","featuresInitializers","getToolbarCollectionFeaturesInitializers","createElement","CollectionCard","_extends2","__self","__source","fileName","lineNumber","columnNumber","ToolbarCollection","GridFoldersPlaceholderStates","ToolbarCollectionContentAutoSizer","GridFoldersSectionsGroup","featuredComponents","value","GridFolders","exports","observer"],"sources":["../../../../src/components/Grid/GridFolders.tsx"],"sourcesContent":["import { AddItemProps } from '@wix/design-system';\nimport React, { ReactElement, useEffect } from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport { ToolbarCollectionContentAutoSizer } from '../ToolbarCollectionContentAutoSizer';\nimport { observer } from 'mobx-react-lite';\nimport { GridFoldersState } from '../../state';\nimport { ActionCell } from '../ActionCell';\nimport { SupportedCardGalleryItemProps } from './SupportedCardGalleryItemProps';\nimport { useGridBaseSyncProps } from './useGridBaseSyncProps';\nimport { getToolbarCollectionFeaturesInitializers } from '../../state/getToolbarCollectionFeaturesInitializers';\nimport { GridFoldersSectionsGroup } from './GridFoldersSectionsGroup';\nimport { GridFoldersPresetProps } from './GridFolders.types';\nimport { GridItemBaseProps } from './GridItemBaseProps';\nimport { CollectionCard } from '../CollectionCard';\nimport {\n ToolbarCollection,\n ToolbarCollectionBaseProps,\n} from '../ToolbarCollection';\nimport { GridFoldersPlaceholderStates } from './GridFoldersPlaceholderStates';\nimport { PartialAllFilters } from '../../state/FoldersAndItemsCollectionsState';\nimport { minimalRequiredWdsRuntimeCheck } from '../../minimalRequiredWdsRuntimeCheck';\nimport { useToolbarCollectionSyncProps } from '../ToolbarCollection/useToolbarCollectionSyncProps';\n\nexport interface GridFoldersBaseProps<\n T1,\n F1 extends FiltersMap,\n T2,\n F2 extends FiltersMap,\n> extends Omit<\n ToolbarCollectionBaseProps<T1, PartialAllFilters<F1, F2>>,\n 'topNotification'\n >,\n GridItemBaseProps<T1, F1> {\n dataHook?: string;\n /** A GridFoldersState instance created using [useGridFolders](./?path=/story/base-components-collections-gridfolders-usegridfolders--usegridfolders). */\n state: GridFoldersState<T1, F1, T2, F2>;\n /** Optional custom title for the items section */\n itemsSectionTitle?: string;\n foldersSectionTitle?: string;\n /** Same as `renderItem`, but for a folder item. */\n renderFolderItem?: (\n item: T2,\n index: number,\n ) => Partial<SupportedCardGalleryItemProps>;\n /** Same as `preset` but for a folder item */\n folderPreset?: 'full' | 'title';\n /** Same as `actionCell`, but for a folder item. */\n folderActionCell?: ActionCell<T2, F2>;\n /** Same as `renderAddItem`, but for a folder item. */\n renderFolderAddItem?: () => ReactElement<AddItemProps>;\n topNotification?: ReactElement;\n}\n\nexport type GridFoldersBasePropsWithoutPreset<\n T1,\n F1 extends FiltersMap,\n T2,\n F2 extends FiltersMap,\n> = Omit<\n GridFoldersBaseProps<T1, F1, T2, F2>,\n 'preset' | 'folderPreset' | 'renderItem' | 'renderFolderItem'\n>;\n\nexport type GridFoldersProps<\n T1,\n F1 extends FiltersMap,\n T2,\n F2 extends FiltersMap,\n> = GridFoldersPresetProps<\n T1,\n T2,\n GridFoldersBasePropsWithoutPreset<T1, F1, T2, F2>\n>;\n\nfunction _GridFolders<T1, F1 extends FiltersMap, T2, F2 extends FiltersMap>(\n props: GridFoldersProps<T1, F1, T2, F2>,\n) {\n const {\n state,\n exportModal,\n dataHook,\n cardProps,\n emptyState,\n noResultsState,\n renderError,\n topNotification,\n } = props;\n\n const { toolbar } = state;\n\n if (process.env.NODE_ENV !== 'production') {\n // https://github.com/wix-private/wix-design-systems/pull/13091/files#diff-0befb17e7fa12b244a3efce19b067187b39d3a96d4f7e62a59f4f0fd876dc37cR102\n minimalRequiredWdsRuntimeCheck({\n required: '^1.89.0',\n requiredBy: 'Cairo/GridFolders',\n });\n }\n\n useToolbarCollectionSyncProps({\n ...props,\n state: state.toolbar,\n isUsingDragAndDrop: false,\n isUsingBulkActionsToolbar: false,\n isUsingHorizontalScroll: false,\n isUsingFolders: true,\n isUsingTableVirtualization: false,\n });\n\n useGridBaseSyncProps({ ...props, state: state.items });\n useGridBaseSyncProps({\n ...props,\n renderAddItem: props.renderFolderAddItem,\n state: state.folders,\n });\n\n useEffect(\n () =>\n state.init({\n featuresInitializers: getToolbarCollectionFeaturesInitializers(props),\n }),\n [],\n );\n\n return (\n <CollectionCard\n renderError={false}\n state={toolbar}\n dataHook={dataHook}\n {...cardProps}\n >\n <ToolbarCollection {...props} state={toolbar}>\n <GridFoldersPlaceholderStates\n state={state}\n emptyState={emptyState}\n noResultsState={noResultsState}\n renderError={renderError}\n topNotification={topNotification}\n >\n <ToolbarCollectionContentAutoSizer>\n <GridFoldersSectionsGroup {...props} />\n </ToolbarCollectionContentAutoSizer>\n </GridFoldersPlaceholderStates>\n </ToolbarCollection>\n {exportModal ?? toolbar.featuredComponents.exportModal.value}\n </CollectionCard>\n );\n}\n\nexport const GridFolders = observer(_GridFolders);\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,kCAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAIA,IAAAG,qBAAA,GAAAH,OAAA;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A,CAAAD,WAAA,GAAG,IAAAE,uBAAQ,EAAChD,YAAY,CAAC","ignoreList":[]}
|
|
@@ -30,9 +30,9 @@ function GridFoldersUniDriver(base, body) {
|
|
|
30
30
|
clickToggleShowAllFoldersButton: () => toggleShowAllFoldersButtonBase().click(),
|
|
31
31
|
/** Indicates the "Show All"/"Show Less" exists */
|
|
32
32
|
toggleShowAllFoldersButtonExists: () => toggleShowAllFoldersButtonBase().exists(),
|
|
33
|
-
/** Gets a [GridFoldersSectionUniDriver](./?path=/story/
|
|
33
|
+
/** Gets a [GridFoldersSectionUniDriver](./?path=/story/base-components-collections-gridfolders-gridfolderssection--gridfolderssection) for the folders section */
|
|
34
34
|
foldersSection: () => (0, _GridFoldersSectionUni.GridFoldersSectionUniDriver)(foldersSectionBase(), body),
|
|
35
|
-
/** Gets a [GridFoldersSectionUniDriver](./?path=/story/
|
|
35
|
+
/** Gets a [GridFoldersSectionUniDriver](./?path=/story/base-components-collections-gridfolders-gridfolderssection--gridfolderssection) for the items section */
|
|
36
36
|
itemsSection: () => (0, _GridFoldersSectionUni.GridFoldersSectionUniDriver)(itemsSectionBase(), body),
|
|
37
37
|
/** Indicates the initial skeleton loader exists */
|
|
38
38
|
initialLoaderExists: () => base.$('[data-hook="initial-loader"]').exists(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_unidriver","require","_ToolbarCollectionErrorStateUni","_CollectionEmptyStateUni","_CollectionToolbarUni","_unidriver2","_GridFoldersSectionUni","_AppliedFiltersTagListUni","_SummaryBarUni","GridFoldersUniDriver","base","body","toolbarBase","$","foldersSectionBase","itemsSectionBase","toggleShowAllFoldersButtonBase","toolbar","CollectionToolbarUniDriver","getSummaryBar","SummaryBarUniDriver","baseUniDriverFactory","getErrorStateByDataHook","dataHook","ToolbarCollectionErrorStateUniDriver","getEmptyStateByDataHook","CollectionEmptyStateUniDriver","getCardErrorStateByDataHook","_toggleShowAllFoldersButton","TextButtonUniDriver","clickToggleShowAllFoldersButton","click","toggleShowAllFoldersButtonExists","exists","foldersSection","GridFoldersSectionUniDriver","itemsSection","initialLoaderExists","subToolbar","AppliedFiltersTagListUniDriver","_default","exports","default"],"sources":["../../../../src/components/Grid/GridFolders.uni.driver.ts"],"sourcesContent":["import { UniDriver } from '@wix/wix-ui-test-utils/unidriver';\nimport { baseUniDriverFactory } from '../../unidriver';\nimport { ToolbarCollectionErrorStateUniDriver } from '../ErrorState/ToolbarCollectionErrorState.uni.driver';\nimport { CollectionEmptyStateUniDriver } from '../EmptyState/CollectionEmptyState.uni.driver';\nimport { CollectionToolbarUniDriver } from '../CollectionToolbar/CollectionToolbar.uni.driver';\nimport { TextButtonUniDriver } from '@wix/design-system/dist/testkit/unidriver';\nimport { GridFoldersSectionUniDriver } from './GridFoldersSection.uni.driver';\nimport { AppliedFiltersTagListUniDriver } from '../AppliedFiltersTagList/AppliedFiltersTagList.uni.driver';\nimport { SummaryBarUniDriver } from '../SummaryBar/SummaryBar.uni.driver';\n\nexport function GridFoldersUniDriver(base: UniDriver, body: UniDriver) {\n const toolbarBase = () => base.$('[data-hook=\"collection-toolbar\"]');\n\n const foldersSectionBase = () => base.$('[data-hook=\"folders-section\"]');\n const itemsSectionBase = () => base.$('[data-hook=\"items-section\"]');\n\n const toggleShowAllFoldersButtonBase = () =>\n foldersSectionBase().$('[data-hook=\"toggle-show-all-folders-button\"]');\n\n const toolbar = () => CollectionToolbarUniDriver(toolbarBase(), body);\n const getSummaryBar = () => SummaryBarUniDriver(base, body);\n\n return {\n ...baseUniDriverFactory(base),\n /** Gets a [CollectionToolbarUniDriver](./?path=/story/common-components--collectiontoolbar) */\n toolbar: () => toolbar(),\n\n getErrorStateByDataHook: (dataHook = 'grid-folders-error-state') =>\n ToolbarCollectionErrorStateUniDriver(\n base.$(`[data-hook=\"${dataHook}\"]`),\n body,\n ),\n getEmptyStateByDataHook: (dataHook = 'grid-folders-empty-state') =>\n CollectionEmptyStateUniDriver(base.$(`[data-hook=\"${dataHook}\"]`), body),\n getCardErrorStateByDataHook: (dataHook = 'collection-card-error-state') =>\n ToolbarCollectionErrorStateUniDriver(\n base.$(`[data-hook=\"${dataHook}\"]`),\n body,\n ),\n\n _toggleShowAllFoldersButton: () =>\n TextButtonUniDriver(toggleShowAllFoldersButtonBase(), body),\n\n /** Clicks the \"Show All\"/\"Show Less\" toggle button */\n clickToggleShowAllFoldersButton: () =>\n toggleShowAllFoldersButtonBase().click(),\n /** Indicates the \"Show All\"/\"Show Less\" exists */\n toggleShowAllFoldersButtonExists: () =>\n toggleShowAllFoldersButtonBase().exists(),\n\n /** Gets a [GridFoldersSectionUniDriver](./?path=/story/
|
|
1
|
+
{"version":3,"names":["_unidriver","require","_ToolbarCollectionErrorStateUni","_CollectionEmptyStateUni","_CollectionToolbarUni","_unidriver2","_GridFoldersSectionUni","_AppliedFiltersTagListUni","_SummaryBarUni","GridFoldersUniDriver","base","body","toolbarBase","$","foldersSectionBase","itemsSectionBase","toggleShowAllFoldersButtonBase","toolbar","CollectionToolbarUniDriver","getSummaryBar","SummaryBarUniDriver","baseUniDriverFactory","getErrorStateByDataHook","dataHook","ToolbarCollectionErrorStateUniDriver","getEmptyStateByDataHook","CollectionEmptyStateUniDriver","getCardErrorStateByDataHook","_toggleShowAllFoldersButton","TextButtonUniDriver","clickToggleShowAllFoldersButton","click","toggleShowAllFoldersButtonExists","exists","foldersSection","GridFoldersSectionUniDriver","itemsSection","initialLoaderExists","subToolbar","AppliedFiltersTagListUniDriver","_default","exports","default"],"sources":["../../../../src/components/Grid/GridFolders.uni.driver.ts"],"sourcesContent":["import { UniDriver } from '@wix/wix-ui-test-utils/unidriver';\nimport { baseUniDriverFactory } from '../../unidriver';\nimport { ToolbarCollectionErrorStateUniDriver } from '../ErrorState/ToolbarCollectionErrorState.uni.driver';\nimport { CollectionEmptyStateUniDriver } from '../EmptyState/CollectionEmptyState.uni.driver';\nimport { CollectionToolbarUniDriver } from '../CollectionToolbar/CollectionToolbar.uni.driver';\nimport { TextButtonUniDriver } from '@wix/design-system/dist/testkit/unidriver';\nimport { GridFoldersSectionUniDriver } from './GridFoldersSection.uni.driver';\nimport { AppliedFiltersTagListUniDriver } from '../AppliedFiltersTagList/AppliedFiltersTagList.uni.driver';\nimport { SummaryBarUniDriver } from '../SummaryBar/SummaryBar.uni.driver';\n\nexport function GridFoldersUniDriver(base: UniDriver, body: UniDriver) {\n const toolbarBase = () => base.$('[data-hook=\"collection-toolbar\"]');\n\n const foldersSectionBase = () => base.$('[data-hook=\"folders-section\"]');\n const itemsSectionBase = () => base.$('[data-hook=\"items-section\"]');\n\n const toggleShowAllFoldersButtonBase = () =>\n foldersSectionBase().$('[data-hook=\"toggle-show-all-folders-button\"]');\n\n const toolbar = () => CollectionToolbarUniDriver(toolbarBase(), body);\n const getSummaryBar = () => SummaryBarUniDriver(base, body);\n\n return {\n ...baseUniDriverFactory(base),\n /** Gets a [CollectionToolbarUniDriver](./?path=/story/common-components--collectiontoolbar) */\n toolbar: () => toolbar(),\n\n getErrorStateByDataHook: (dataHook = 'grid-folders-error-state') =>\n ToolbarCollectionErrorStateUniDriver(\n base.$(`[data-hook=\"${dataHook}\"]`),\n body,\n ),\n getEmptyStateByDataHook: (dataHook = 'grid-folders-empty-state') =>\n CollectionEmptyStateUniDriver(base.$(`[data-hook=\"${dataHook}\"]`), body),\n getCardErrorStateByDataHook: (dataHook = 'collection-card-error-state') =>\n ToolbarCollectionErrorStateUniDriver(\n base.$(`[data-hook=\"${dataHook}\"]`),\n body,\n ),\n\n _toggleShowAllFoldersButton: () =>\n TextButtonUniDriver(toggleShowAllFoldersButtonBase(), body),\n\n /** Clicks the \"Show All\"/\"Show Less\" toggle button */\n clickToggleShowAllFoldersButton: () =>\n toggleShowAllFoldersButtonBase().click(),\n /** Indicates the \"Show All\"/\"Show Less\" exists */\n toggleShowAllFoldersButtonExists: () =>\n toggleShowAllFoldersButtonBase().exists(),\n\n /** Gets a [GridFoldersSectionUniDriver](./?path=/story/base-components-collections-gridfolders-gridfolderssection--gridfolderssection) for the folders section */\n foldersSection: () =>\n GridFoldersSectionUniDriver(foldersSectionBase(), body),\n /** Gets a [GridFoldersSectionUniDriver](./?path=/story/base-components-collections-gridfolders-gridfolderssection--gridfolderssection) for the items section */\n itemsSection: () => GridFoldersSectionUniDriver(itemsSectionBase(), body),\n /** Indicates the initial skeleton loader exists */\n initialLoaderExists: () => base.$('[data-hook=\"initial-loader\"]').exists(),\n /** Gets [CollectionSubToolbarUniDriver](./?path=/story/common-components--collectionsubtoolbar) */\n subToolbar: () =>\n AppliedFiltersTagListUniDriver(\n base.$('[data-hook=\"collection-table-sub-toolbar\"]'),\n body,\n ),\n getSummaryBar,\n };\n}\n\nexport default GridFoldersUniDriver;\n"],"mappings":";;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,+BAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,sBAAA,GAAAL,OAAA;AACA,IAAAM,yBAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AAEO,SAASQ,oBAAoBA,CAACC,IAAe,EAAEC,IAAe,EAAE;EACrE,MAAMC,WAAW,GAAGA,CAAA,KAAMF,IAAI,CAACG,CAAC,CAAC,kCAAkC,CAAC;EAEpE,MAAMC,kBAAkB,GAAGA,CAAA,KAAMJ,IAAI,CAACG,CAAC,CAAC,+BAA+B,CAAC;EACxE,MAAME,gBAAgB,GAAGA,CAAA,KAAML,IAAI,CAACG,CAAC,CAAC,6BAA6B,CAAC;EAEpE,MAAMG,8BAA8B,GAAGA,CAAA,KACrCF,kBAAkB,CAAC,CAAC,CAACD,CAAC,CAAC,8CAA8C,CAAC;EAExE,MAAMI,OAAO,GAAGA,CAAA,KAAM,IAAAC,gDAA0B,EAACN,WAAW,CAAC,CAAC,EAAED,IAAI,CAAC;EACrE,MAAMQ,aAAa,GAAGA,C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EA,CAAA,KACV,IAAAC,wDAA8B,EAC5B7B,IAAI,CAACG,CAAC,CAAC,4CAA4C,CAAC,EACpDF,IACF,CAAC;IACHQ;EACF,CAAC;AACH;AAAC,IAAAqB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcjC,oBAAoB","ignoreList":[]}
|
|
@@ -25,7 +25,18 @@ function _GridPlaceholderStates(props) {
|
|
|
25
25
|
query: collection.result.originQuery
|
|
26
26
|
}) : topNotification,
|
|
27
27
|
emptyState: emptyState,
|
|
28
|
-
noResultsState: noResultsState
|
|
28
|
+
noResultsState: typeof noResultsState === 'function' ? () => {
|
|
29
|
+
const {
|
|
30
|
+
result: {
|
|
31
|
+
originQuery,
|
|
32
|
+
hasAvailableItems
|
|
33
|
+
}
|
|
34
|
+
} = collection;
|
|
35
|
+
return noResultsState({
|
|
36
|
+
hasAvailableItems,
|
|
37
|
+
query: originQuery
|
|
38
|
+
});
|
|
39
|
+
} : noResultsState,
|
|
29
40
|
renderError: renderError,
|
|
30
41
|
loadingState: null,
|
|
31
42
|
__self: this,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_mobxReactLite","_PlaceholderStatesBase","_jsxFileName","_GridPlaceholderStates","props","state","emptyState","noResultsState","renderError","topNotification","children","collection","default","createElement","PlaceholderStatesBase","multi","query","result","originQuery","loadingState","__self","__source","fileName","lineNumber","columnNumber","GridPlaceholderStates","exports","observer"],"sources":["../../../../src/components/Grid/GridPlaceholderStates.tsx"],"sourcesContent":["import React from 'react';\nimport { observer } from 'mobx-react-lite';\nimport { PlaceholderStatesBase } from '../PlaceholderStates/PlaceholderStatesBase';\nimport { ToolbarCollectionState } from '../../state';\nimport { ToolbarCollectionBaseProps } from '../ToolbarCollection';\nimport { FiltersMap } from '@wix/bex-core';\n\nexport interface GridPlaceholderStatesProps<T, F extends FiltersMap>\n extends ToolbarCollectionBaseProps<T, F> {\n state: ToolbarCollectionState<T, F>;\n}\n\nfunction _GridPlaceholderStates<T, F extends FiltersMap>(\n props: GridPlaceholderStatesProps<T, F>,\n) {\n const {\n state,\n emptyState,\n noResultsState,\n renderError,\n topNotification,\n children,\n } = props;\n const { collection } = state;\n return (\n <PlaceholderStatesBase\n state={state.multi}\n topNotification={\n typeof topNotification === 'function'\n ? () => topNotification({ query: collection.result.originQuery })\n : topNotification\n }\n emptyState={emptyState}\n noResultsState={noResultsState}\n renderError={renderError}\n loadingState={null}\n >\n {children}\n </PlaceholderStatesBase>\n );\n}\n\nexport const GridPlaceholderStates = observer(_GridPlaceholderStates);\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAAmF,IAAAG,YAAA;AAUnF,SAASC,sBAAsBA,CAC7BC,KAAuC,EACvC;EACA,MAAM;IACJC,KAAK;IACLC,UAAU;IACVC,cAAc;IACdC,WAAW;IACXC,eAAe;IACfC;EACF,CAAC,GAAGN,KAAK;EACT,MAAM;IAAEO;EAAW,CAAC,GAAGN,KAAK;EAC5B,oBACER,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACZ,sBAAA,CAAAa,qBAAqB;IACpBT,KAAK,EAAEA,KAAK,CAACU,KAAM;IACnBN,eAAe,EACb,OAAOA,eAAe,KAAK,UAAU,GACjC,MAAMA,eAAe,CAAC;MAAEO,KAAK,EAAEL,UAAU,CAACM,MAAM,CAACC;IAAY,CAAC,CAAC,GAC/DT,eACL;IACDH,UAAU,EAAEA,UAAW;IACvBC,cAAc,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_mobxReactLite","_PlaceholderStatesBase","_jsxFileName","_GridPlaceholderStates","props","state","emptyState","noResultsState","renderError","topNotification","children","collection","default","createElement","PlaceholderStatesBase","multi","query","result","originQuery","hasAvailableItems","loadingState","__self","__source","fileName","lineNumber","columnNumber","GridPlaceholderStates","exports","observer"],"sources":["../../../../src/components/Grid/GridPlaceholderStates.tsx"],"sourcesContent":["import React from 'react';\nimport { observer } from 'mobx-react-lite';\nimport { PlaceholderStatesBase } from '../PlaceholderStates/PlaceholderStatesBase';\nimport { ToolbarCollectionState } from '../../state';\nimport { ToolbarCollectionBaseProps } from '../ToolbarCollection';\nimport { FiltersMap } from '@wix/bex-core';\n\nexport interface GridPlaceholderStatesProps<T, F extends FiltersMap>\n extends ToolbarCollectionBaseProps<T, F> {\n state: ToolbarCollectionState<T, F>;\n}\n\nfunction _GridPlaceholderStates<T, F extends FiltersMap>(\n props: GridPlaceholderStatesProps<T, F>,\n) {\n const {\n state,\n emptyState,\n noResultsState,\n renderError,\n topNotification,\n children,\n } = props;\n const { collection } = state;\n return (\n <PlaceholderStatesBase\n state={state.multi}\n topNotification={\n typeof topNotification === 'function'\n ? () => topNotification({ query: collection.result.originQuery })\n : topNotification\n }\n emptyState={emptyState}\n noResultsState={\n typeof noResultsState === 'function'\n ? () => {\n const {\n result: { originQuery, hasAvailableItems },\n } = collection;\n return noResultsState({\n hasAvailableItems,\n query: originQuery,\n });\n }\n : noResultsState\n }\n renderError={renderError}\n loadingState={null}\n >\n {children}\n </PlaceholderStatesBase>\n );\n}\n\nexport const GridPlaceholderStates = observer(_GridPlaceholderStates);\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAAmF,IAAAG,YAAA;AAUnF,SAASC,sBAAsBA,CAC7BC,KAAuC,EACvC;EACA,MAAM;IACJC,KAAK;IACLC,UAAU;IACVC,cAAc;IACdC,WAAW;IACXC,eAAe;IACfC;EACF,CAAC,GAAGN,KAAK;EACT,MAAM;IAAEO;EAAW,CAAC,GAAGN,KAAK;EAC5B,oBACER,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACZ,sBAAA,CAAAa,qBAAqB;IACpBT,KAAK,EAAEA,KAAK,CAACU,KAAM;IACnBN,eAAe,EACb,OAAOA,eAAe,KAAK,UAAU,GACjC,MAAMA,eAAe,CAAC;MAAEO,KAAK,EAAEL,UAAU,CAACM,MAAM,CAACC;IAAY,CAAC,CAAC,GAC/DT,eACL;IACDH,UAAU,EAAEA,UAAW;IACvBC,cAAc,EACZ,OAAOA,cAAc,KAAK,UAAU,GAChC,MAAM;MACJ,MAAM;QACJU,MAAM,EAAE;UAAEC,WAAW;UAAEC;QAAkB;MAC3C,CAAC,GAAGR,UAAU;MACd,OAAOJ,cAAc,CAAC;QACpBY,iBAAiB;QACjBH,KAAK,EAAEE;MACT,CAAC,CAAC;IACJ,CAAC,GACDX,cACL;IACDC,WAAW,EAAEA,WAAY;IACzBY,YAAY,EAAE,IAAK;IAAAC,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAArB,YAAA;MAAAsB,UAAA;MAAAC,YAAA;IAAA;EAAA,GAElBf,QACoB,CAAC;AAE5B;AAEO,MAAMgB,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG,IAAAE,uBAAQ,EAACzB,sBAAsB,CAAC","ignoreList":[]}
|
|
@@ -40,9 +40,27 @@ const sortableItemTestEvents = ({
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
},
|
|
43
|
+
onMouseMove: event => {
|
|
44
|
+
if (disabled != null && disabled.droppable || state.activeId == null) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
state.onDragMove({
|
|
48
|
+
active: {
|
|
49
|
+
id: state.activeId
|
|
50
|
+
},
|
|
51
|
+
delta: {
|
|
52
|
+
x: event.nativeEvent.clientX
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
state.onDragOver({
|
|
56
|
+
over: {
|
|
57
|
+
id
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
},
|
|
43
61
|
onKeyDown: e => {
|
|
44
62
|
const keyboardCodes = state.keyboardCodes;
|
|
45
|
-
if (state.status === 'start' && keyboardCodes.move.includes(e.nativeEvent.code)) {
|
|
63
|
+
if (state.status === 'start' || state.status === 'over' && keyboardCodes.move.includes(e.nativeEvent.code)) {
|
|
46
64
|
state.onDragOver({
|
|
47
65
|
over: {
|
|
48
66
|
id
|
|
@@ -73,12 +91,12 @@ const dragHandleTestEvents = ({
|
|
|
73
91
|
id: state.activeId
|
|
74
92
|
},
|
|
75
93
|
over: {
|
|
76
|
-
id
|
|
94
|
+
id: state.overId
|
|
77
95
|
}
|
|
78
96
|
});
|
|
79
97
|
state.onDragEnd({
|
|
80
98
|
over: {
|
|
81
|
-
id
|
|
99
|
+
id: state.overId
|
|
82
100
|
}
|
|
83
101
|
});
|
|
84
102
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_mobx","require","sortableItemTestEvents","id","disabled","state","onPointerDown","draggable","onDragStart","active","onPointerUp","droppable","activeId","isCancelled","beforeDrop","over","onDragEnd","onKeyDown","e","keyboardCodes","status","move","includes","
|
|
1
|
+
{"version":3,"names":["_mobx","require","sortableItemTestEvents","id","disabled","state","onPointerDown","draggable","onDragStart","active","onPointerUp","droppable","activeId","isCancelled","beforeDrop","over","onDragEnd","onMouseMove","event","onDragMove","delta","x","nativeEvent","clientX","onDragOver","onKeyDown","e","keyboardCodes","status","move","includes","code","exports","dragHandleTestEvents","action","_state$handleEvents","handleEvents","end","overId","cancel","onDragCancel","start"],"sources":["../../../../src/components/GridDragAndDropDndKit/dndTestEventHandlers.ts"],"sourcesContent":["import { HTMLAttributes } from 'react';\nimport { DragAndDropState } from '../DragAndDrop';\nimport { FiltersMap } from '@wix/bex-core';\nimport { action } from 'mobx';\n\nexport interface DndTestEventHandlersParams<T, F extends FiltersMap> {\n id: string | number;\n disabled?: {\n draggable?: boolean;\n droppable?: boolean;\n };\n state: DragAndDropState<T, F>;\n}\n\nexport const sortableItemTestEvents = <T, F extends FiltersMap>({\n id,\n disabled,\n state,\n}: DndTestEventHandlersParams<T, F>): Partial<HTMLAttributes<HTMLElement>> => {\n return {\n onPointerDown: () => {\n if (disabled?.draggable) {\n return;\n }\n state.onDragStart({ active: { id } });\n },\n onPointerUp: () => {\n if (disabled?.droppable || state.activeId == null) {\n return;\n }\n const isCancelled = state.beforeDrop({\n active: {\n id: state.activeId,\n },\n over: {\n id,\n },\n });\n if (isCancelled) {\n return;\n }\n state.onDragEnd({\n over: {\n id,\n },\n });\n },\n onMouseMove: (event) => {\n if (disabled?.droppable || state.activeId == null) {\n return;\n }\n\n state.onDragMove({\n active: { id: state.activeId },\n delta: {\n x: event.nativeEvent.clientX,\n },\n });\n\n state.onDragOver({\n over: {\n id,\n },\n });\n },\n onKeyDown: (e) => {\n const keyboardCodes = state.keyboardCodes;\n\n if (\n state.status === 'start' ||\n (state.status === 'over' &&\n keyboardCodes.move.includes(e.nativeEvent.code))\n ) {\n state.onDragOver({\n over: {\n id,\n },\n });\n return;\n }\n },\n };\n};\n\nexport const dragHandleTestEvents = <T, F extends FiltersMap>({\n id,\n state,\n}: DndTestEventHandlersParams<T, F>): Partial<HTMLAttributes<HTMLElement>> => {\n return {\n onKeyDown: action((e) => {\n state.handleEvents?.onKeyDown?.(e);\n\n const keyboardCodes = state.keyboardCodes;\n\n if (state.status === 'start' || state.status === 'over') {\n if (keyboardCodes.end.includes(e.nativeEvent.code)) {\n if (state.activeId == null) {\n return;\n }\n state.beforeDrop({\n active: { id: state.activeId },\n over: { id: state.overId as string },\n });\n state.onDragEnd({ over: { id: state.overId as string } });\n return;\n }\n\n if (keyboardCodes.cancel.includes(e.nativeEvent.code)) {\n state.onDragCancel();\n return;\n }\n }\n\n if (keyboardCodes.start.includes(e.nativeEvent.code)) {\n state.onDragStart({ active: { id } });\n return;\n }\n }),\n };\n};\n"],"mappings":";;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AAWO,MAAMC,sBAAsB,GAAGA,CAA0B;EAC9DC,EAAE;EACFC,QAAQ;EACRC;AACgC,CAAC,KAA2C;EAC5E,OAAO;IACLC,aAAa,EAAEA,CAAA,K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,QAAQ,CAACJ,CAAC,CAACJ,WAAW,CAACS,IAAI,CAAC,EAAE;QACpD1B,KAAK,CAACG,WAAW,CAAC;UAAEC,MAAM,EAAE;YAAEN;UAAG;QAAE,CAAC,CAAC;QACrC;MACF;IACF,CAAC;EACH,CAAC;AACH,CAAC;AAAC6B,OAAA,CAAAC,oBAAA,GAAAA,oBAAA","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_ = "Heading3162647008";
|
|
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": "Heading3162647008__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/Heading/Heading.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/Heading/Heading.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"Heading3162647008\";\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\":\"Heading3162647008__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,mBAAmB;AACrC,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;AAAyB,CAAC;AAChD,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_ = "InputOverflow1620435090";
|
|
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": "InputOverflow1620435090__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/InputOverflow/InputOverflow.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/InputOverflow/InputOverflow.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"InputOverflow1620435090\";\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\":\"InputOverflow1620435090__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,yBAAyB;AAC3C,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;AAA+B,CAAC;AACtD,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_ = "MaxHeightText901261314";
|
|
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": "MaxHeightText901261314__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/MaxHeightText/MaxHeightText.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/MaxHeightText/MaxHeightText.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"MaxHeightText901261314\";\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\":\"MaxHeightText901261314__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":[]}
|
|
@@ -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_ = "MaxLines4251040669";
|
|
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": "MaxLines4251040669__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/MaxLines/MaxLines.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/MaxLines/MaxLines.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"MaxLines4251040669\";\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\":\"MaxLines4251040669__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,oBAAoB;AACtC,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;AAA0B,CAAC;AACjD,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_ = "MultiBulkActionToolbar458747536";
|
|
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": "MultiBulkActionToolbar458747536__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/MultiBulkActionToolbar/MultiBulkActionToolbar.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/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"MultiBulkActionToolbar458747536\";\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\":\"MultiBulkActionToolbar458747536__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,iCAAiC;AACnD,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;AAAuC,CAAC;AAC9D,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":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_designSystem","require","_react","_interopRequireWildcard","_state","_bexCore","_react2","_mobxReactLite","_MultiSelectCheckboxFilterBase","_hooks","_InputOverflow","_providers","_usePlaceholderStateOptions","_useCollectionFilterInitialFetchTiming","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_MultiSelectCheckboxFilter","props","filter","collection","renderItem","onSelect","onClose","onDeselect","placeholder","placeholderProp","rest","container","useWixPatternsContainer","toolbar","useFilterToolbarState","buildOption","useBuildOption","checkbox","collectionFilter","useState","CollectionFilterState","dropdownCollectionFilterState","DropdownCollectionFilterState","resetOnClose","dropdownSelect","init","inputState","shouldShowPlaceholder","disableEditing","select","selectedKeys","selectedValues","finalFilterKeyedItems","finalFilterKeyedItemsMap","translate","textOverflowState","TextOverflowState","observable","isOverflow","result","keyedItems","fetchedLastPage","query","search","isEmpty","isEmptySearch","promotedOptions","length","map","listItemSectionBuilder","id","type","otherOptions","key","options","fixedFooter","showInitialLoader","usePlaceholderStateOptions","selectedValuesText","useMemo","item","itemName","join","skipInitialFetch","onFocus","useCollectionFilterInitialFetchTiming","useEffect","process","env","NODE_ENV","total","createElement","MultiSelectCheckboxFilterBase","_extends2","infiniteScroll","selectedOptions","hasMore","loadMore","fetchNextPageIfNeeded","hasPendingFilter","closeAndChangeSelectedItems","onBlur","option","keyedItem","refreshIfChanged","actionType","clickedValueKey","delete","value","onChange","target","clearResult","onOptionsShow","onKeyDown","nativeEvent","code","onTabKeyDown","onClickOutside","onClear","clearSearch","clearButton","clearButtonTooltipContent","focusOnClearClick","inputElement","InputOverflow","selected","focused","isFocused","text","state","__self","__source","fileName","lineNumber","columnNumber","MultiSelectCheckboxFilter","exports","observer"],"sources":["../../../../src/components/MultiSelectCheckboxFilter/MultiSelectCheckboxFilter.tsx"],"sourcesContent":["import { listItemSectionBuilder } from '@wix/design-system';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport {\n CollectionFilterState,\n DropdownCollectionFilterState,\n} from '../../state';\nimport { CollectionState, FiltersMap, TextOverflowState } from '@wix/bex-core';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { observer } from 'mobx-react-lite';\nimport {\n KeyedItemOption,\n MultiSelectCheckboxFilterBase,\n MultiSelectCheckboxFilterBaseOption,\n MultiSelectCheckboxFilterBaseProps,\n} from '../MultiSelectCheckboxFilterBase';\nimport { ListItem, useBuildOption } from '../../hooks';\nimport { InputOverflow } from '../InputOverflow';\nimport { useFilterToolbarState } from '../../providers';\nimport { usePlaceholderStateOptions } from '../../hooks/usePlaceholderStateOptions';\nimport {\n useCollectionFilterInitialFetchTiming,\n CollectionFilterInitialFetchTimingProps,\n} from '../../hooks/useCollectionFilterInitialFetchTiming';\n\nexport interface MultiSelectCheckboxFilterProps<\n V,\n F extends FiltersMap = FiltersMap,\n> extends Omit<\n MultiSelectCheckboxFilterBaseProps<V>,\n 'options' | 'dropdownSelect'\n >,\n CollectionFilterInitialFetchTimingProps {\n /**\n * A collection state object to fetch the dropdown items.<br>\n * A collection created using [useFilterCollection](./?path=/story/common-hooks--usefiltercollection) or [useStaticListFilterCollection](./?path=/story/common-hooks--usestaticlistfiltercollection)\n * @external\n */\n collection: CollectionState<V, F>;\n /**\n * A function that returns a [ListItemSelectProps](https://www.docs.wixdesignsystem.com/?path=/story/components-form-dropdownlistitems--listitemselect) (Optional)\n */\n renderItem?: (item: V, index: number) => ListItem;\n}\n\nfunction _MultiSelectCheckboxFilter<V, F extends FiltersMap = FiltersMap>(\n props: MultiSelectCheckboxFilterProps<V, F>,\n) {\n const {\n filter,\n collection,\n renderItem,\n onSelect,\n onClose,\n onDeselect,\n placeholder: placeholderProp,\n ...rest\n } = props;\n\n const container = useWixPatternsContainer();\n const toolbar = useFilterToolbarState();\n\n const buildOption = useBuildOption<V>({\n filter,\n renderItem,\n checkbox: true,\n });\n\n const [collectionFilter] = useState(\n () =>\n new CollectionFilterState({\n collection,\n filter,\n }),\n );\n\n const [dropdownCollectionFilterState] = useState(\n () =>\n new DropdownCollectionFilterState<V, F>({\n resetOnClose: false,\n collectionFilter,\n container,\n toolbar,\n }),\n );\n\n const { dropdownSelect, init, inputState, shouldShowPlaceholder } =\n dropdownCollectionFilterState;\n const { disableEditing } = inputState;\n\n const {\n select: { selectedKeys, selectedValues },\n finalFilterKeyedItems,\n finalFilterKeyedItemsMap,\n container: { translate: t },\n } = dropdownSelect;\n\n const [textOverflowState] = useState(\n () =>\n new TextOverflowState({\n observable: () => dropdownSelect.select.selectedValues,\n }),\n );\n const { isOverflow } = textOverflowState;\n\n const {\n result: { keyedItems },\n fetchedLastPage,\n query: {\n search: { isEmpty: isEmptySearch },\n },\n } = collection;\n\n const promotedOptions: MultiSelectCheckboxFilterBaseOption<V>[] =\n finalFilterKeyedItems.length\n ? [\n ...finalFilterKeyedItems.map(buildOption),\n listItemSectionBuilder({\n id: 'promoted-section-divider',\n type: 'divider',\n }),\n ]\n : [];\n\n const otherOptions: KeyedItemOption<V>[] = (\n isEmptySearch\n ? keyedItems.filter(\n ({ key }) => !finalFilterKeyedItemsMap.has(key) ?? true,\n )\n : keyedItems\n ).map(buildOption);\n\n const { options, fixedFooter, showInitialLoader } =\n usePlaceholderStateOptions(\n [...(isEmptySearch ? promotedOptions : []), ...otherOptions],\n {\n collection,\n },\n );\n\n const selectedValuesText = useMemo(() => {\n return selectedValues.map(({ item }) => filter.itemName(item)).join(', ');\n }, [selectedValues]);\n\n const { skipInitialFetch, onFocus } =\n useCollectionFilterInitialFetchTiming(props);\n\n useEffect(() => init({ skipInitialFetch }), []);\n\n const placeholder = useMemo(() => {\n if (!shouldShowPlaceholder) {\n return '';\n }\n\n if (selectedValues.length !== 0) {\n if (\n (process.env.NODE_ENV === 'test' && selectedValuesText.length > 40) ||\n isOverflow\n ) {\n return t('cairo.dropdownSearch.filters.selected', {\n total: selectedValues.length,\n });\n }\n\n return selectedValuesText;\n }\n\n return (\n placeholderProp ?? t('cairo.dropdownSearch.select.filers.placeholder')\n );\n }, [\n selectedValues,\n selectedValuesText,\n shouldShowPlaceholder,\n isOverflow,\n placeholderProp,\n ]);\n\n return (\n <MultiSelectCheckboxFilterBase\n {...rest}\n fixedFooter={fixedFooter}\n infiniteScroll\n filter={filter}\n dropdownSelect={dropdownSelect}\n options={options}\n selectedOptions={selectedKeys}\n hasMore={!showInitialLoader && !fetchedLastPage}\n loadMore={collection.fetchNextPageIfNeeded}\n onClose={() => {\n if (!dropdownSelect.hasPendingFilter) {\n dropdownSelect.closeAndChangeSelectedItems();\n }\n inputState.onBlur();\n onClose?.();\n }}\n onSelect={(id, option) => {\n const { keyedItem } = option as KeyedItemOption<V>;\n dropdownSelect.select.set(keyedItem);\n if (dropdownSelect.hasPendingFilter) {\n dropdownSelect.refreshIfChanged({\n actionType: 'add',\n clickedValueKey: keyedItem.key,\n });\n }\n onSelect?.(id, option);\n }}\n onDeselect={(id, option) => {\n const { keyedItem } = option as KeyedItemOption<V>;\n dropdownSelect.select.delete(keyedItem);\n if (dropdownSelect.hasPendingFilter) {\n dropdownSelect.refreshIfChanged({\n actionType: 'remove',\n clickedValueKey: keyedItem.key,\n });\n }\n onDeselect?.(id, option);\n }}\n value={collection.query.search.value}\n onFocus={() => {\n inputState.onFocus();\n onFocus();\n }}\n onBlur={() => {\n inputState.onBlur();\n }}\n onChange={(e) => {\n collection.search(e.target.value, { clearResult: true });\n }}\n onOptionsShow={inputState.onOptionsShow}\n onKeyDown={(e) => {\n if (e.nativeEvent.code === 'Tab') {\n inputState.onTabKeyDown();\n }\n }}\n onClickOutside={(e) => {\n props.onClickOutside?.(e);\n inputState.onClickOutside();\n }}\n onClear={() => {\n inputState.onBlur();\n collection.clearSearch();\n }}\n disableEditing={disableEditing}\n placeholder={placeholder}\n clearButton={!disableEditing}\n clearButtonTooltipContent={t('cairo.dropdownSearch.select.filers.clear')}\n focusOnClearClick\n inputElement={\n <InputOverflow\n selected={selectedValues.length > 0}\n focused={inputState.isFocused}\n text={selectedValuesText}\n state={textOverflowState}\n />\n }\n />\n );\n}\n\nexport const MultiSelectCheckboxFilter = observer(_MultiSelectCheckboxFilter);\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,8BAAA,GAAAP,OAAA;AAMA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,cAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,IAAAW,2BAAA,GAAAX,OAAA;AACA,IAAAY,sCAAA,GAAAZ,OAAA;AAG2D,IAAAa,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAb,wBAAAa,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAA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AW,EAAEA,WAAY;IACzB4F,WAAW,EAAE,CAACxE,cAAe;IAC7ByE,yBAAyB,EAAErH,CAAC,CAAC,0CAA0C,CAAE;IACzEsH,iBAAiB;IACjBC,YAAY,eACVxI,MAAA,CAAAmB,OAAA,CAAAqF,aAAA,CAAChG,cAAA,CAAAiI,aAAa;MACZC,QAAQ,EAAE1E,cAAc,CAACgB,MAAM,GAAG,CAAE;MACpC2D,OAAO,EAAEhF,UAAU,CAACiF,SAAU;MAC9BC,IAAI,EAAElD,kBAAmB;MACzBmD,KAAK,EAAE1E,iBAAkB;MAAA2E,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAArI,YAAA;QAAAsI,UAAA;QAAAC,YAAA;MAAA;IAAA,CAC1B,CACF;IAAAJ,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAArI,YAAA;MAAAsI,UAAA;MAAAC,YAAA;IAAA;EAAA,EACF,CAAC;AAEN;AAEO,MAAMC,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,IAAAE,uBAAQ,EAACrH,0BAA0B,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_designSystem","require","_react","_interopRequireWildcard","_state","_bexCore","_react2","_mobxReactLite","_MultiSelectCheckboxFilterBase","_hooks","_InputOverflow","_providers","_usePlaceholderStateOptions","_useCollectionFilterInitialFetchTiming","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_MultiSelectCheckboxFilter","props","filter","collection","renderItem","onSelect","onClose","onDeselect","placeholder","placeholderProp","rest","container","useWixPatternsContainer","toolbar","useFilterToolbarState","buildOption","useBuildOption","checkbox","collectionFilter","useState","CollectionFilterState","dropdownCollectionFilterState","DropdownCollectionFilterState","resetOnClose","dropdownSelect","init","inputState","shouldShowPlaceholder","disableEditing","select","selectedKeys","selectedValues","finalFilterKeyedItems","finalFilterKeyedItemsMap","translate","textOverflowState","TextOverflowState","observable","isOverflow","result","keyedItems","fetchedLastPage","query","search","isEmpty","isEmptySearch","promotedOptions","length","map","listItemSectionBuilder","id","type","otherOptions","key","options","fixedFooter","showInitialLoader","usePlaceholderStateOptions","selectedValuesText","useMemo","item","itemName","join","skipInitialFetch","onFocus","useCollectionFilterInitialFetchTiming","useEffect","process","env","NODE_ENV","total","createElement","MultiSelectCheckboxFilterBase","_extends2","infiniteScroll","selectedOptions","hasMore","loadMore","fetchNextPageIfNeeded","hasPendingFilter","closeAndChangeSelectedItems","onBlur","option","keyedItem","refreshIfChanged","actionType","clickedValueKey","delete","value","onChange","target","clearResult","onOptionsShow","onKeyDown","nativeEvent","code","onTabKeyDown","onClickOutside","onClear","clearSearch","clearButton","clearButtonTooltipContent","focusOnClearClick","inputElement","InputOverflow","selected","focused","isFocused","text","state","__self","__source","fileName","lineNumber","columnNumber","MultiSelectCheckboxFilter","exports","observer"],"sources":["../../../../src/components/MultiSelectCheckboxFilter/MultiSelectCheckboxFilter.tsx"],"sourcesContent":["import { listItemSectionBuilder } from '@wix/design-system';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport {\n CollectionFilterState,\n DropdownCollectionFilterState,\n} from '../../state';\nimport { CollectionState, FiltersMap, TextOverflowState } from '@wix/bex-core';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { observer } from 'mobx-react-lite';\nimport {\n KeyedItemOption,\n MultiSelectCheckboxFilterBase,\n MultiSelectCheckboxFilterBaseOption,\n MultiSelectCheckboxFilterBaseProps,\n} from '../MultiSelectCheckboxFilterBase';\nimport { ListItem, useBuildOption } from '../../hooks';\nimport { InputOverflow } from '../InputOverflow';\nimport { useFilterToolbarState } from '../../providers';\nimport { usePlaceholderStateOptions } from '../../hooks/usePlaceholderStateOptions';\nimport {\n useCollectionFilterInitialFetchTiming,\n CollectionFilterInitialFetchTimingProps,\n} from '../../hooks/useCollectionFilterInitialFetchTiming';\n\nexport interface MultiSelectCheckboxFilterProps<\n V,\n F extends FiltersMap = FiltersMap,\n> extends Omit<\n MultiSelectCheckboxFilterBaseProps<V>,\n 'options' | 'dropdownSelect'\n >,\n CollectionFilterInitialFetchTimingProps {\n /**\n * A collection state object to fetch the dropdown items.<br>\n * A collection created using [useFilterCollection](./?path=/story/features-filter-hooks--usefiltercollection) or [useStaticListFilterCollection](./?path=/story/features-filter-hooks--usestaticlistfiltercollection)\n * @external\n */\n collection: CollectionState<V, F>;\n /**\n * A function that returns a [ListItemSelectProps](https://www.docs.wixdesignsystem.com/?path=/story/components-form-dropdownlistitems--listitemselect) (Optional)\n */\n renderItem?: (item: V, index: number) => ListItem;\n}\n\nfunction _MultiSelectCheckboxFilter<V, F extends FiltersMap = FiltersMap>(\n props: MultiSelectCheckboxFilterProps<V, F>,\n) {\n const {\n filter,\n collection,\n renderItem,\n onSelect,\n onClose,\n onDeselect,\n placeholder: placeholderProp,\n ...rest\n } = props;\n\n const container = useWixPatternsContainer();\n const toolbar = useFilterToolbarState();\n\n const buildOption = useBuildOption<V>({\n filter,\n renderItem,\n checkbox: true,\n });\n\n const [collectionFilter] = useState(\n () =>\n new CollectionFilterState({\n collection,\n filter,\n }),\n );\n\n const [dropdownCollectionFilterState] = useState(\n () =>\n new DropdownCollectionFilterState<V, F>({\n resetOnClose: false,\n collectionFilter,\n container,\n toolbar,\n }),\n );\n\n const { dropdownSelect, init, inputState, shouldShowPlaceholder } =\n dropdownCollectionFilterState;\n const { disableEditing } = inputState;\n\n const {\n select: { selectedKeys, selectedValues },\n finalFilterKeyedItems,\n finalFilterKeyedItemsMap,\n container: { translate: t },\n } = dropdownSelect;\n\n const [textOverflowState] = useState(\n () =>\n new TextOverflowState({\n observable: () => dropdownSelect.select.selectedValues,\n }),\n );\n const { isOverflow } = textOverflowState;\n\n const {\n result: { keyedItems },\n fetchedLastPage,\n query: {\n search: { isEmpty: isEmptySearch },\n },\n } = collection;\n\n const promotedOptions: MultiSelectCheckboxFilterBaseOption<V>[] =\n finalFilterKeyedItems.length\n ? [\n ...finalFilterKeyedItems.map(buildOption),\n listItemSectionBuilder({\n id: 'promoted-section-divider',\n type: 'divider',\n }),\n ]\n : [];\n\n const otherOptions: KeyedItemOption<V>[] = (\n isEmptySearch\n ? keyedItems.filter(\n ({ key }) => !finalFilterKeyedItemsMap.has(key) ?? true,\n )\n : keyedItems\n ).map(buildOption);\n\n const { options, fixedFooter, showInitialLoader } =\n usePlaceholderStateOptions(\n [...(isEmptySearch ? promotedOptions : []), ...otherOptions],\n {\n collection,\n },\n );\n\n const selectedValuesText = useMemo(() => {\n return selectedValues.map(({ item }) => filter.itemName(item)).join(', ');\n }, [selectedValues]);\n\n const { skipInitialFetch, onFocus } =\n useCollectionFilterInitialFetchTiming(props);\n\n useEffect(() => init({ skipInitialFetch }), []);\n\n const placeholder = useMemo(() => {\n if (!shouldShowPlaceholder) {\n return '';\n }\n\n if (selectedValues.length !== 0) {\n if (\n (process.env.NODE_ENV === 'test' && selectedValuesText.length > 40) ||\n isOverflow\n ) {\n return t('cairo.dropdownSearch.filters.selected', {\n total: selectedValues.length,\n });\n }\n\n return selectedValuesText;\n }\n\n return (\n placeholderProp ?? t('cairo.dropdownSearch.select.filers.placeholder')\n );\n }, [\n selectedValues,\n selectedValuesText,\n shouldShowPlaceholder,\n isOverflow,\n placeholderProp,\n ]);\n\n return (\n <MultiSelectCheckboxFilterBase\n {...rest}\n fixedFooter={fixedFooter}\n infiniteScroll\n filter={filter}\n dropdownSelect={dropdownSelect}\n options={options}\n selectedOptions={selectedKeys}\n hasMore={!showInitialLoader && !fetchedLastPage}\n loadMore={collection.fetchNextPageIfNeeded}\n onClose={() => {\n if (!dropdownSelect.hasPendingFilter) {\n dropdownSelect.closeAndChangeSelectedItems();\n }\n inputState.onBlur();\n onClose?.();\n }}\n onSelect={(id, option) => {\n const { keyedItem } = option as KeyedItemOption<V>;\n dropdownSelect.select.set(keyedItem);\n if (dropdownSelect.hasPendingFilter) {\n dropdownSelect.refreshIfChanged({\n actionType: 'add',\n clickedValueKey: keyedItem.key,\n });\n }\n onSelect?.(id, option);\n }}\n onDeselect={(id, option) => {\n const { keyedItem } = option as KeyedItemOption<V>;\n dropdownSelect.select.delete(keyedItem);\n if (dropdownSelect.hasPendingFilter) {\n dropdownSelect.refreshIfChanged({\n actionType: 'remove',\n clickedValueKey: keyedItem.key,\n });\n }\n onDeselect?.(id, option);\n }}\n value={collection.query.search.value}\n onFocus={() => {\n inputState.onFocus();\n onFocus();\n }}\n onBlur={() => {\n inputState.onBlur();\n }}\n onChange={(e) => {\n collection.search(e.target.value, { clearResult: true });\n }}\n onOptionsShow={inputState.onOptionsShow}\n onKeyDown={(e) => {\n if (e.nativeEvent.code === 'Tab') {\n inputState.onTabKeyDown();\n }\n }}\n onClickOutside={(e) => {\n props.onClickOutside?.(e);\n inputState.onClickOutside();\n }}\n onClear={() => {\n inputState.onBlur();\n collection.clearSearch();\n }}\n disableEditing={disableEditing}\n placeholder={placeholder}\n clearButton={!disableEditing}\n clearButtonTooltipContent={t('cairo.dropdownSearch.select.filers.clear')}\n focusOnClearClick\n inputElement={\n <InputOverflow\n selected={selectedValues.length > 0}\n focused={inputState.isFocused}\n text={selectedValuesText}\n state={textOverflowState}\n />\n }\n />\n );\n}\n\nexport const MultiSelectCheckboxFilter = observer(_MultiSelectCheckboxFilter);\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,8BAAA,GAAAP,OAAA;AAMA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,cAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,IAAAW,2BAAA,GAAAX,OAAA;AACA,IAAAY,sCAAA,GAAAZ,OAAA;AAG2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G,cAAc,YAApBhG,KAAK,CAACgG,cAAc,CAAGpH,CAAC,CAAC;MACzB6C,UAAU,CAACuE,cAAc,CAAC,CAAC;IAC7B,CAAE;IACFC,OAAO,EAAEA,CAAA,KAAM;MACbxE,UAAU,CAACuD,MAAM,CAAC,CAAC;MACnB9E,UAAU,CAACgG,WAAW,CAAC,CAAC;IAC1B,CAAE;IACFvE,cAAc,EAAEA,cAAe;IAC/BpB,WAAW,EAAEA,WAAY;IACzB4F,WAAW,EAAE,CAACxE,cAAe;IAC7ByE,yBAAyB,EAAErH,CAAC,CAAC,0CAA0C,CAAE;IACzEsH,iBAAiB;IACjBC,YAAY,eACVxI,MAAA,CAAAmB,OAAA,CAAAqF,aAAA,CAAChG,cAAA,CAAAiI,aAAa;MACZC,QAAQ,EAAE1E,cAAc,CAACgB,MAAM,GAAG,CAAE;MACpC2D,OAAO,EAAEhF,UAAU,CAACiF,SAAU;MAC9BC,IAAI,EAAElD,kBAAmB;MACzBmD,KAAK,EAAE1E,iBAAkB;MAAA2E,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAArI,YAAA;QAAAsI,UAAA;QAAAC,YAAA;MAAA;IAAA,CAC1B,CACF;IAAAJ,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAArI,YAAA;MAAAsI,UAAA;MAAAC,YAAA;IAAA;EAAA,EACF,CAAC;AAEN;AAEO,MAAMC,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,IAAAE,uBAAQ,EAACrH,0BAA0B,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_state","_mobxReactLite","_MultiSelectFilterBase","_hooks","_react2","_providers","_usePlaceholderStateOptions","_useCollectionFilterInitialFetchTiming","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_MultiSelectCollectionFilter","props","filter","collection","renderItem","initialFetchTiming","rest","container","useWixPatternsContainer","toolbar","useFilterToolbarState","buildOption","useBuildOption","collectionFilter","useState","CollectionFilterState","dropdownSelect","init","DropdownCollectionFilterState","resetOnClose","query","search","skipInitialFetch","onFocus","useCollectionFilterInitialFetchTiming","useEffect","result","keyedItems","fetchedLastPage","options","fixedFooter","showInitialLoader","usePlaceholderStateOptions","map","createElement","MultiSelectFilterBase","_extends2","infiniteScroll","value","onChange","target","hasMore","loadMore","fetchNextPageIfNeeded","__self","__source","fileName","lineNumber","columnNumber","MultiSelectCollectionFilter","exports","observer","displayName"],"sources":["../../../../src/components/MultiSelectCollectionFilter/MultiSelectCollectionFilter.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport {\n CollectionFilterState,\n DropdownCollectionFilterState,\n} from '../../state';\nimport { observer } from 'mobx-react-lite';\nimport { CollectionState, FiltersMap } from '@wix/bex-core';\nimport {\n MultiSelectFilterBase,\n MultiSelectFilterBaseProps,\n} from '../MultiSelectFilterBase';\nimport { ListItem, useBuildOption } from '../../hooks';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { useFilterToolbarState } from '../../providers';\nimport { usePlaceholderStateOptions } from '../../hooks/usePlaceholderStateOptions';\nimport {\n CollectionFilterInitialFetchTimingProps,\n useCollectionFilterInitialFetchTiming,\n} from '../../hooks/useCollectionFilterInitialFetchTiming';\n\nexport interface MultiSelectCollectionFilterProps<V, F extends FiltersMap>\n extends Omit<MultiSelectFilterBaseProps<V>, 'options' | 'dropdownSelect'>,\n CollectionFilterInitialFetchTimingProps {\n /**\n * A collection state object to fetch the dropdown items.<br>\n * A collection created using [useFilterCollection](./?path=/story/
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_state","_mobxReactLite","_MultiSelectFilterBase","_hooks","_react2","_providers","_usePlaceholderStateOptions","_useCollectionFilterInitialFetchTiming","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_MultiSelectCollectionFilter","props","filter","collection","renderItem","initialFetchTiming","rest","container","useWixPatternsContainer","toolbar","useFilterToolbarState","buildOption","useBuildOption","collectionFilter","useState","CollectionFilterState","dropdownSelect","init","DropdownCollectionFilterState","resetOnClose","query","search","skipInitialFetch","onFocus","useCollectionFilterInitialFetchTiming","useEffect","result","keyedItems","fetchedLastPage","options","fixedFooter","showInitialLoader","usePlaceholderStateOptions","map","createElement","MultiSelectFilterBase","_extends2","infiniteScroll","value","onChange","target","hasMore","loadMore","fetchNextPageIfNeeded","__self","__source","fileName","lineNumber","columnNumber","MultiSelectCollectionFilter","exports","observer","displayName"],"sources":["../../../../src/components/MultiSelectCollectionFilter/MultiSelectCollectionFilter.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport {\n CollectionFilterState,\n DropdownCollectionFilterState,\n} from '../../state';\nimport { observer } from 'mobx-react-lite';\nimport { CollectionState, FiltersMap } from '@wix/bex-core';\nimport {\n MultiSelectFilterBase,\n MultiSelectFilterBaseProps,\n} from '../MultiSelectFilterBase';\nimport { ListItem, useBuildOption } from '../../hooks';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { useFilterToolbarState } from '../../providers';\nimport { usePlaceholderStateOptions } from '../../hooks/usePlaceholderStateOptions';\nimport {\n CollectionFilterInitialFetchTimingProps,\n useCollectionFilterInitialFetchTiming,\n} from '../../hooks/useCollectionFilterInitialFetchTiming';\n\nexport interface MultiSelectCollectionFilterProps<V, F extends FiltersMap>\n extends Omit<MultiSelectFilterBaseProps<V>, 'options' | 'dropdownSelect'>,\n CollectionFilterInitialFetchTimingProps {\n /**\n * A collection state object to fetch the dropdown items.<br>\n * A collection created using [useFilterCollection](./?path=/story/features-filter-hooks--usefiltercollection) or [useStaticListFilterCollection](./?path=/story/features-filter-hooks--usestaticlistfiltercollection)\n * @external\n */\n collection: CollectionState<V, F>;\n /**\n * A function that returns a [ListItemSelectProps](https://www.docs.wixdesignsystem.com/?path=/story/components-form-dropdownlistitems--listitemselect) (Optional)\n * @external\n */\n renderItem?: (item: V, index: number) => ListItem;\n}\n\nfunction _MultiSelectCollectionFilter<V, F extends FiltersMap>(\n props: MultiSelectCollectionFilterProps<V, F>,\n) {\n const { filter, collection, renderItem, initialFetchTiming, ...rest } = props;\n\n const container = useWixPatternsContainer();\n const toolbar = useFilterToolbarState();\n\n const buildOption = useBuildOption<V>({\n filter,\n renderItem,\n });\n\n const [collectionFilter] = useState(\n () =>\n new CollectionFilterState({\n collection,\n filter,\n }),\n );\n\n const [{ dropdownSelect, init }] = useState(\n () =>\n new DropdownCollectionFilterState({\n collectionFilter,\n resetOnClose: true,\n container,\n toolbar,\n }),\n );\n\n const {\n query: { search },\n } = collection;\n\n const { skipInitialFetch, onFocus } =\n useCollectionFilterInitialFetchTiming(props);\n\n useEffect(() => init({ skipInitialFetch }), []);\n\n const {\n result: { keyedItems },\n fetchedLastPage,\n } = collection;\n\n const { options, fixedFooter, showInitialLoader } =\n usePlaceholderStateOptions(keyedItems.map(buildOption), {\n collection,\n fixedFooter: rest.fixedFooter,\n });\n\n return (\n <MultiSelectFilterBase\n {...rest}\n fixedFooter={fixedFooter}\n infiniteScroll\n value={search.value}\n onChange={(e) => {\n collection.search(e.target.value);\n }}\n onFocus={onFocus}\n filter={filter}\n dropdownSelect={dropdownSelect}\n options={options}\n hasMore={!showInitialLoader && !fetchedLastPage}\n loadMore={collection.fetchNextPageIfNeeded}\n />\n );\n}\n\nexport const MultiSelectCollectionFilter = observer(\n _MultiSelectCollectionFilter,\n);\n\nMultiSelectCollectionFilter.displayName = 'MultiSelectCollectionFilter';\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAIA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,sBAAA,GAAAH,OAAA;AAIA,IAAAI,MAAA,GAAAJ,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D,aAAA,CAAC7D,sBAAA,CAAA8D,qBAAqB,MAAAC,SAAA,CAAAlD,OAAA,MAChBoB,IAAI;IACRwB,WAAW,EAAEA,WAAY;IACzBO,cAAc;IACdC,KAAK,EAAEjB,MAAM,CAACiB,KAAM;IACpBC,QAAQ,EAAG1D,CAAC,IAAK;MACfsB,UAAU,CAACkB,MAAM,CAACxC,CAAC,CAAC2D,MAAM,CAACF,KAAK,CAAC;IACnC,CAAE;IACFf,OAAO,EAAEA,OAAQ;IACjBrB,MAAM,EAAEA,MAAO;IACfc,cAAc,EAAEA,cAAe;IAC/Ba,OAAO,EAAEA,OAAQ;IACjBY,OAAO,EAAE,CAACV,iBAAiB,IAAI,CAACH,eAAgB;IAChDc,QAAQ,EAAEvC,UAAU,CAACwC,qBAAsB;IAAAC,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnE,YAAA;MAAAoE,UAAA;MAAAC,YAAA;IAAA;EAAA,EAC5C,CAAC;AAEN;AAEO,MAAMC,2BAA2B,GAAAC,OAAA,CAAAD,2BAAA,GAAG,IAAAE,uBAAQ,EACjDnD,4BACF,CAAC;AAEDiD,2BAA2B,CAACG,WAAW,GAAG,6BAA6B","ignoreList":[]}
|
|
@@ -11,6 +11,7 @@ function MainCellLayout(props) {
|
|
|
11
11
|
dataHook,
|
|
12
12
|
image,
|
|
13
13
|
breadcrumbs,
|
|
14
|
+
dragHandle,
|
|
14
15
|
expandCollapseButton,
|
|
15
16
|
title,
|
|
16
17
|
subtitle,
|
|
@@ -24,17 +25,17 @@ function MainCellLayout(props) {
|
|
|
24
25
|
__self: this,
|
|
25
26
|
__source: {
|
|
26
27
|
fileName: _jsxFileName,
|
|
27
|
-
lineNumber:
|
|
28
|
+
lineNumber: 27,
|
|
28
29
|
columnNumber: 5
|
|
29
30
|
}
|
|
30
|
-
}, expandCollapseButton, image && /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
|
|
31
|
+
}, dragHandle, expandCollapseButton, image && /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
|
|
31
32
|
height: "40px",
|
|
32
33
|
paddingInlineEnd: "12px",
|
|
33
34
|
dataHook: "image",
|
|
34
35
|
__self: this,
|
|
35
36
|
__source: {
|
|
36
37
|
fileName: _jsxFileName,
|
|
37
|
-
lineNumber:
|
|
38
|
+
lineNumber: 36,
|
|
38
39
|
columnNumber: 9
|
|
39
40
|
}
|
|
40
41
|
}, image), /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
|
|
@@ -44,7 +45,7 @@ function MainCellLayout(props) {
|
|
|
44
45
|
__self: this,
|
|
45
46
|
__source: {
|
|
46
47
|
fileName: _jsxFileName,
|
|
47
|
-
lineNumber:
|
|
48
|
+
lineNumber: 40,
|
|
48
49
|
columnNumber: 7
|
|
49
50
|
}
|
|
50
51
|
}, /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
|
|
@@ -53,7 +54,7 @@ function MainCellLayout(props) {
|
|
|
53
54
|
__self: this,
|
|
54
55
|
__source: {
|
|
55
56
|
fileName: _jsxFileName,
|
|
56
|
-
lineNumber:
|
|
57
|
+
lineNumber: 41,
|
|
57
58
|
columnNumber: 9
|
|
58
59
|
}
|
|
59
60
|
}, breadcrumbs, /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
|
|
@@ -63,7 +64,7 @@ function MainCellLayout(props) {
|
|
|
63
64
|
__self: this,
|
|
64
65
|
__source: {
|
|
65
66
|
fileName: _jsxFileName,
|
|
66
|
-
lineNumber:
|
|
67
|
+
lineNumber: 43,
|
|
67
68
|
columnNumber: 11
|
|
68
69
|
}
|
|
69
70
|
}, /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
|
|
@@ -74,7 +75,7 @@ function MainCellLayout(props) {
|
|
|
74
75
|
__self: this,
|
|
75
76
|
__source: {
|
|
76
77
|
fileName: _jsxFileName,
|
|
77
|
-
lineNumber:
|
|
78
|
+
lineNumber: 48,
|
|
78
79
|
columnNumber: 13
|
|
79
80
|
}
|
|
80
81
|
}, title))), subtitle && /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
|
|
@@ -86,7 +87,7 @@ function MainCellLayout(props) {
|
|
|
86
87
|
__self: this,
|
|
87
88
|
__source: {
|
|
88
89
|
fileName: _jsxFileName,
|
|
89
|
-
lineNumber:
|
|
90
|
+
lineNumber: 55,
|
|
90
91
|
columnNumber: 11
|
|
91
92
|
}
|
|
92
93
|
}, subtitle)));
|