@wix/patterns 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Collapse/Collapse.st.css.js +3 -3
- package/dist/cjs/components/Collapse/Collapse.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionTable/CollectionTable.js +2 -2
- package/dist/cjs/components/CollectionTable/CollectionTable.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/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/CustomColumnsPanel/CustomColumnsPanelEntry.js +7 -2
- package/dist/cjs/components/CustomColumnsPanel/CustomColumnsPanelEntry.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 +3 -3
- package/dist/cjs/components/DragAndDrop/CollectionDragAndDropState.js.map +1 -1
- package/dist/cjs/components/DragAndDrop/DragAndDropAnnouncements.js +5 -5
- package/dist/cjs/components/DragAndDrop/DragAndDropAnnouncements.js.map +1 -1
- package/dist/cjs/components/DragAndDrop/DragAndDropState.js +3 -10
- package/dist/cjs/components/DragAndDrop/DragAndDropState.js.map +1 -1
- package/dist/cjs/components/DragAndDrop/TableDragAndDropState.js +7 -11
- package/dist/cjs/components/DragAndDrop/TableDragAndDropState.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/GridContent.js +7 -7
- package/dist/cjs/components/Grid/GridContent.js.map +1 -1
- package/dist/cjs/components/Grid/GridFoldersSectionsGroup.js.map +1 -1
- package/dist/cjs/components/Grid/GridItem.js.map +1 -1
- package/dist/cjs/components/Grid/GridSingleGridContent.js +5 -3
- package/dist/cjs/components/Grid/GridSingleGridContent.js.map +1 -1
- package/dist/cjs/components/Grid/renderFolderItem.js.map +1 -1
- package/dist/cjs/components/Grid/useGridBaseSyncProps.js +11 -0
- package/dist/cjs/components/Grid/useGridBaseSyncProps.js.map +1 -1
- package/dist/cjs/components/Grid/useRenderItem.js.map +1 -1
- package/dist/cjs/components/GridDragAndDropDndKit/GridDragAndDrop.js +14 -1
- package/dist/cjs/components/GridDragAndDropDndKit/GridDragAndDrop.js.map +1 -1
- package/dist/cjs/components/GridDragAndDropDndKit/GridSortableContext.js +6 -18
- package/dist/cjs/components/GridDragAndDropDndKit/GridSortableContext.js.map +1 -1
- package/dist/cjs/components/GridSections/GridSectionAndRepeater.js +7 -5
- package/dist/cjs/components/GridSections/GridSectionAndRepeater.js.map +1 -1
- package/dist/cjs/components/GridSections/GridSectionsSectionState.js +5 -2
- package/dist/cjs/components/GridSections/GridSectionsSectionState.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/ListDragAndDrop/ListDragAndDropContext.js +6 -19
- package/dist/cjs/components/ListDragAndDrop/ListDragAndDropContext.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/MultiLevelSorting/MultiLevelSortingCTAButton.js +10 -5
- package/dist/cjs/components/MultiLevelSorting/MultiLevelSortingCTAButton.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTable.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js +5 -5
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTableWSRTable.js +16 -6
- package/dist/cjs/components/NestedTable/NestedTableWSRTable.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDrop.js +33 -0
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDrop.js.map +1 -0
- package/dist/cjs/components/{CollectionTableDragAndDropContext/CollectionNestedTableDragAndDropContext.js → NestedTableDragAndDrop/NestedTableDragAndDropContext.js} +14 -31
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropContext.js.map +1 -0
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropState.js +85 -0
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropState.js.map +1 -0
- package/dist/cjs/components/PageWrapper/PageWrapperBase.js +8 -5
- package/dist/cjs/components/PageWrapper/PageWrapperBase.js.map +1 -1
- package/dist/cjs/components/PickerContent/PickerContent.st.css.js +2 -2
- package/dist/cjs/components/PickerContent/PickerContent.st.css.js.map +1 -1
- package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js +4 -4
- package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
- package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
- package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
- package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
- package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
- package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js +3 -3
- package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
- package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js +2 -2
- package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
- package/dist/cjs/components/Table/TableVirtual.st.css.js +3 -3
- package/dist/cjs/components/Table/TableVirtual.st.css.js.map +1 -1
- package/dist/cjs/components/Table/useTableSyncProps.js +11 -0
- package/dist/cjs/components/Table/useTableSyncProps.js.map +1 -1
- package/dist/cjs/components/TableDragAndDrop.js +15 -2
- package/dist/cjs/components/TableDragAndDrop.js.map +1 -1
- package/dist/cjs/components/{CollectionTableDragAndDropContext/CollectionTableDragAndDropContext.js → TableDragAndDropContext/TableDragAndDropContext.js} +13 -23
- package/dist/cjs/components/TableDragAndDropContext/TableDragAndDropContext.js.map +1 -0
- package/dist/cjs/components/TableDragAndDropContext/index.js +8 -0
- package/dist/cjs/components/TableDragAndDropContext/index.js.map +1 -0
- 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/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/hooks/useColumnsSyncProps.js +10 -2
- package/dist/cjs/hooks/useColumnsSyncProps.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/state/CustomColumnsDragAndDropState.js +16 -6
- package/dist/cjs/state/CustomColumnsDragAndDropState.js.map +1 -1
- package/dist/cjs/state/CustomColumnsState.js +2 -1
- package/dist/cjs/state/CustomColumnsState.js.map +1 -1
- package/dist/cjs/state/GridBaseState.js +6 -2
- package/dist/cjs/state/GridBaseState.js.map +1 -1
- package/dist/cjs/state/MultiLevelSortingDragAndDrop.js +15 -3
- package/dist/cjs/state/MultiLevelSortingDragAndDrop.js.map +1 -1
- package/dist/cjs/state/MultiLevelSortingState.js +2 -1
- package/dist/cjs/state/MultiLevelSortingState.js.map +1 -1
- package/dist/cjs/state/NestedTableState/NestedTableNestedModeState.js +1 -0
- package/dist/cjs/state/NestedTableState/NestedTableNestedModeState.js.map +1 -1
- package/dist/cjs/state/TableState.js +2 -9
- package/dist/cjs/state/TableState.js.map +1 -1
- package/dist/cjs/state/ToolbarCollectionState.js +0 -1
- package/dist/cjs/state/ToolbarCollectionState.js.map +1 -1
- package/dist/cjs/state/initCustomColumns.js +8 -2
- package/dist/cjs/state/initCustomColumns.js.map +1 -1
- package/dist/cjs/styles.global.css +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/components/Collapse/Collapse.st.css.js +2 -2
- package/dist/esm/components/Collapse/Collapse.st.css.js.map +1 -1
- package/dist/esm/components/CollectionTable/CollectionTable.js +2 -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/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/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
- package/dist/esm/components/CustomColumnsPanel/CustomColumnsPanelEntry.js +3 -0
- package/dist/esm/components/CustomColumnsPanel/CustomColumnsPanelEntry.js.map +1 -1
- package/dist/esm/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.st.css.js +2 -2
- package/dist/esm/components/DragAndDrop/CollectionDragAndDropState.js +3 -3
- package/dist/esm/components/DragAndDrop/CollectionDragAndDropState.js.map +1 -1
- package/dist/esm/components/DragAndDrop/DragAndDropAnnouncements.js +4 -4
- package/dist/esm/components/DragAndDrop/DragAndDropAnnouncements.js.map +1 -1
- package/dist/esm/components/DragAndDrop/DragAndDropState.js +2 -7
- package/dist/esm/components/DragAndDrop/DragAndDropState.js.map +1 -1
- package/dist/esm/components/DragAndDrop/TableDragAndDropState.js +7 -8
- package/dist/esm/components/DragAndDrop/TableDragAndDropState.js.map +1 -1
- package/dist/esm/components/DragHandle/DragHandle.st.css.js +2 -2
- package/dist/esm/components/DragHandle/DragHandle.st.css.js.map +1 -1
- package/dist/esm/components/Fade/Fade.st.css.js +2 -2
- package/dist/esm/components/Grid/Grid.js.map +1 -1
- package/dist/esm/components/Grid/GridContent.js.map +1 -1
- package/dist/esm/components/Grid/GridFoldersSectionsGroup.js.map +1 -1
- package/dist/esm/components/Grid/GridSingleGridContent.js +2 -1
- package/dist/esm/components/Grid/GridSingleGridContent.js.map +1 -1
- package/dist/esm/components/Grid/renderFolderItem.js.map +1 -1
- package/dist/esm/components/Grid/useGridBaseSyncProps.js +10 -1
- package/dist/esm/components/Grid/useGridBaseSyncProps.js.map +1 -1
- package/dist/esm/components/Grid/useRenderItem.js.map +1 -1
- package/dist/esm/components/GridDragAndDropDndKit/GridDragAndDrop.js +11 -0
- package/dist/esm/components/GridDragAndDropDndKit/GridDragAndDrop.js.map +1 -1
- package/dist/esm/components/GridDragAndDropDndKit/GridSortableContext.js +3 -13
- package/dist/esm/components/GridDragAndDropDndKit/GridSortableContext.js.map +1 -1
- package/dist/esm/components/GridSections/GridSectionAndRepeater.js +2 -1
- package/dist/esm/components/GridSections/GridSectionAndRepeater.js.map +1 -1
- package/dist/esm/components/GridSections/GridSectionsSectionState.js +3 -2
- package/dist/esm/components/GridSections/GridSectionsSectionState.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/ListDragAndDrop/ListDragAndDropContext.js +4 -15
- package/dist/esm/components/ListDragAndDrop/ListDragAndDropContext.js.map +1 -1
- package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
- package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
- package/dist/esm/components/MaxLines/MaxLines.st.css.js +2 -2
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
- package/dist/esm/components/MultiLevelSorting/MultiLevelSortingCTAButton.js +4 -1
- package/dist/esm/components/MultiLevelSorting/MultiLevelSortingCTAButton.js.map +1 -1
- package/dist/esm/components/NestedTable/NestedTableRow.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTableWSRTable.js +9 -1
- package/dist/esm/components/NestedTable/NestedTableWSRTable.js.map +1 -1
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDrop.js +23 -0
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDrop.js.map +1 -0
- package/dist/esm/components/{CollectionTableDragAndDropContext/CollectionNestedTableDragAndDropContext.js → NestedTableDragAndDrop/NestedTableDragAndDropContext.js} +8 -21
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropContext.js.map +1 -0
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropState.js +61 -0
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropState.js.map +1 -0
- package/dist/esm/components/PageWrapper/PageWrapperBase.js +4 -1
- package/dist/esm/components/PageWrapper/PageWrapperBase.js.map +1 -1
- 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/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/TableVirtual.st.css.js +2 -2
- package/dist/esm/components/Table/useTableSyncProps.js +9 -0
- package/dist/esm/components/Table/useTableSyncProps.js.map +1 -1
- package/dist/esm/components/TableDragAndDrop.js +12 -2
- package/dist/esm/components/TableDragAndDrop.js.map +1 -1
- package/dist/esm/components/{CollectionTableDragAndDropContext/CollectionTableDragAndDropContext.js → TableDragAndDropContext/TableDragAndDropContext.js} +7 -18
- package/dist/esm/components/TableDragAndDropContext/TableDragAndDropContext.js.map +1 -0
- package/dist/esm/components/TableDragAndDropContext/index.js +2 -0
- package/dist/esm/components/TableDragAndDropContext/index.js.map +1 -0
- package/dist/esm/components/TabsFilter/TabsFilter.st.css.js +2 -2
- package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
- package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
- package/dist/esm/components/common.st.css.js +2 -2
- package/dist/esm/components/common.st.css.js.map +1 -1
- package/dist/esm/hooks/useColumnsSyncProps.js +8 -2
- package/dist/esm/hooks/useColumnsSyncProps.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/state/CustomColumnsDragAndDropState.js +14 -4
- package/dist/esm/state/CustomColumnsDragAndDropState.js.map +1 -1
- package/dist/esm/state/CustomColumnsState.js +1 -0
- package/dist/esm/state/CustomColumnsState.js.map +1 -1
- package/dist/esm/state/GridBaseState.js +9 -5
- package/dist/esm/state/GridBaseState.js.map +1 -1
- package/dist/esm/state/MultiLevelSortingDragAndDrop.js +13 -1
- package/dist/esm/state/MultiLevelSortingDragAndDrop.js.map +1 -1
- package/dist/esm/state/MultiLevelSortingState.js +1 -0
- package/dist/esm/state/MultiLevelSortingState.js.map +1 -1
- package/dist/esm/state/NestedTableState/NestedTableNestedModeState.js +1 -0
- package/dist/esm/state/NestedTableState/NestedTableNestedModeState.js.map +1 -1
- package/dist/esm/state/TableState.js +3 -9
- package/dist/esm/state/TableState.js.map +1 -1
- package/dist/esm/state/ToolbarCollectionState.js +0 -1
- package/dist/esm/state/ToolbarCollectionState.js.map +1 -1
- package/dist/esm/state/initCustomColumns.js +3 -1
- package/dist/esm/state/initCustomColumns.js.map +1 -1
- package/dist/esm/styles.global.css +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/components/Collapse/Collapse.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/ViewsDropdown.st.css.d.ts.map +1 -1
- package/dist/types/components/CustomColumnsPanel/CustomColumnsPanelEntry.d.ts.map +1 -1
- package/dist/types/components/DragAndDrop/CollectionDragAndDropState.d.ts +4 -4
- package/dist/types/components/DragAndDrop/CollectionDragAndDropState.d.ts.map +1 -1
- package/dist/types/components/DragAndDrop/DragAndDropState.d.ts +8 -6
- package/dist/types/components/DragAndDrop/DragAndDropState.d.ts.map +1 -1
- package/dist/types/components/DragAndDrop/TableDragAndDropState.d.ts +2 -3
- package/dist/types/components/DragAndDrop/TableDragAndDropState.d.ts.map +1 -1
- package/dist/types/components/DragHandle/DragHandle.st.css.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.d.ts +2 -2
- package/dist/types/components/Grid/Grid.d.ts.map +1 -1
- package/dist/types/components/Grid/GridContent.d.ts +3 -2
- package/dist/types/components/Grid/GridContent.d.ts.map +1 -1
- package/dist/types/components/Grid/GridFoldersSectionsGroup.d.ts +2 -2
- package/dist/types/components/Grid/GridFoldersSectionsGroup.d.ts.map +1 -1
- package/dist/types/components/Grid/GridItem.d.ts +2 -2
- package/dist/types/components/Grid/GridItem.d.ts.map +1 -1
- package/dist/types/components/Grid/GridSingleGridContent.d.ts.map +1 -1
- package/dist/types/components/Grid/renderFolderItem.d.ts +2 -2
- package/dist/types/components/Grid/renderFolderItem.d.ts.map +1 -1
- package/dist/types/components/Grid/useGridBaseSyncProps.d.ts +2 -2
- package/dist/types/components/Grid/useGridBaseSyncProps.d.ts.map +1 -1
- package/dist/types/components/Grid/useRenderItem.d.ts +2 -2
- package/dist/types/components/Grid/useRenderItem.d.ts.map +1 -1
- package/dist/types/components/GridDragAndDropDndKit/GridDragAndDrop.d.ts +22 -2
- package/dist/types/components/GridDragAndDropDndKit/GridDragAndDrop.d.ts.map +1 -1
- package/dist/types/components/GridDragAndDropDndKit/GridSortableContext.d.ts +10 -3
- package/dist/types/components/GridDragAndDropDndKit/GridSortableContext.d.ts.map +1 -1
- package/dist/types/components/GridSections/GridSectionAndRepeater.d.ts.map +1 -1
- package/dist/types/components/GridSections/GridSectionsSectionState.d.ts +1 -0
- package/dist/types/components/GridSections/GridSectionsSectionState.d.ts.map +1 -1
- package/dist/types/components/ListDragAndDrop/ListDragAndDropContext.d.ts +4 -2
- package/dist/types/components/ListDragAndDrop/ListDragAndDropContext.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/MultiLevelSorting/MultiLevelSortingCTAButton.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTable.d.ts +1 -1
- package/dist/types/components/NestedTable/NestedTable.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTableWSRTable.d.ts +1 -1
- package/dist/types/components/NestedTable/NestedTableWSRTable.d.ts.map +1 -1
- package/dist/types/components/{NestedTableDragAndDrop.d.ts → NestedTableDragAndDrop/NestedTableDragAndDrop.d.ts} +10 -1
- package/dist/types/components/NestedTableDragAndDrop/NestedTableDragAndDrop.d.ts.map +1 -0
- package/dist/types/components/{CollectionTableDragAndDropContext/CollectionNestedTableDragAndDropContext.d.ts → NestedTableDragAndDrop/NestedTableDragAndDropContext.d.ts} +4 -4
- package/dist/types/components/NestedTableDragAndDrop/NestedTableDragAndDropContext.d.ts.map +1 -0
- package/dist/types/components/{DragAndDrop → NestedTableDragAndDrop}/NestedTableDragAndDropState.d.ts +7 -5
- package/dist/types/components/NestedTableDragAndDrop/NestedTableDragAndDropState.d.ts.map +1 -0
- package/dist/types/components/PageWrapper/PageWrapperBase.d.ts.map +1 -1
- package/dist/types/components/Table/useTableSyncProps.d.ts.map +1 -1
- package/dist/types/components/TableDragAndDrop.d.ts +11 -2
- package/dist/types/components/TableDragAndDrop.d.ts.map +1 -1
- package/dist/types/components/{CollectionTableDragAndDropContext/CollectionTableDragAndDropContext.d.ts → TableDragAndDropContext/TableDragAndDropContext.d.ts} +4 -4
- package/dist/types/components/TableDragAndDropContext/TableDragAndDropContext.d.ts.map +1 -0
- package/dist/types/components/TableDragAndDropContext/index.d.ts +2 -0
- package/dist/types/components/TableDragAndDropContext/index.d.ts.map +1 -0
- package/dist/types/components/TableGridSwitch/TableGridSwitchDragAndDrop.d.ts +18 -1
- package/dist/types/components/TableGridSwitch/TableGridSwitchDragAndDrop.d.ts.map +1 -1
- package/dist/types/components/common.st.css.d.ts.map +1 -1
- package/dist/types/hooks/useColumnsSyncProps.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/state/CustomColumnsDragAndDropState.d.ts +7 -3
- package/dist/types/state/CustomColumnsDragAndDropState.d.ts.map +1 -1
- package/dist/types/state/CustomColumnsState.d.ts +4 -1
- package/dist/types/state/CustomColumnsState.d.ts.map +1 -1
- package/dist/types/state/GridBaseState.d.ts +4 -2
- package/dist/types/state/GridBaseState.d.ts.map +1 -1
- package/dist/types/state/MultiLevelSortingDragAndDrop.d.ts +7 -1
- package/dist/types/state/MultiLevelSortingDragAndDrop.d.ts.map +1 -1
- package/dist/types/state/MultiLevelSortingState.d.ts +4 -1
- package/dist/types/state/MultiLevelSortingState.d.ts.map +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/TableState.d.ts +3 -8
- package/dist/types/state/TableState.d.ts.map +1 -1
- package/dist/types/state/ToolbarCollectionState.d.ts +1 -1
- package/dist/types/state/ToolbarCollectionState.d.ts.map +1 -1
- package/dist/types/state/initCustomColumns.d.ts +8 -2
- package/dist/types/state/initCustomColumns.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cjs/components/CollectionTableDragAndDropContext/CollectionNestedTableDragAndDropContext.js.map +0 -1
- package/dist/cjs/components/CollectionTableDragAndDropContext/CollectionTableDragAndDropContext.js.map +0 -1
- package/dist/cjs/components/CollectionTableDragAndDropContext/index.js +0 -11
- package/dist/cjs/components/CollectionTableDragAndDropContext/index.js.map +0 -1
- package/dist/cjs/components/DragAndDrop/NestedDragAndDropState.js +0 -83
- package/dist/cjs/components/DragAndDrop/NestedDragAndDropState.js.map +0 -1
- package/dist/cjs/components/DragAndDrop/NestedTableDragAndDropState.js +0 -51
- package/dist/cjs/components/DragAndDrop/NestedTableDragAndDropState.js.map +0 -1
- package/dist/cjs/components/NestedTableDragAndDrop.js +0 -18
- package/dist/cjs/components/NestedTableDragAndDrop.js.map +0 -1
- package/dist/esm/components/CollectionTableDragAndDropContext/CollectionNestedTableDragAndDropContext.js.map +0 -1
- package/dist/esm/components/CollectionTableDragAndDropContext/CollectionTableDragAndDropContext.js.map +0 -1
- package/dist/esm/components/CollectionTableDragAndDropContext/index.js +0 -3
- package/dist/esm/components/CollectionTableDragAndDropContext/index.js.map +0 -1
- package/dist/esm/components/DragAndDrop/NestedDragAndDropState.js +0 -60
- package/dist/esm/components/DragAndDrop/NestedDragAndDropState.js.map +0 -1
- package/dist/esm/components/DragAndDrop/NestedTableDragAndDropState.js +0 -31
- package/dist/esm/components/DragAndDrop/NestedTableDragAndDropState.js.map +0 -1
- package/dist/esm/components/NestedTableDragAndDrop.js +0 -11
- package/dist/esm/components/NestedTableDragAndDrop.js.map +0 -1
- package/dist/types/components/CollectionTableDragAndDropContext/CollectionNestedTableDragAndDropContext.d.ts.map +0 -1
- package/dist/types/components/CollectionTableDragAndDropContext/CollectionTableDragAndDropContext.d.ts.map +0 -1
- package/dist/types/components/CollectionTableDragAndDropContext/index.d.ts +0 -3
- package/dist/types/components/CollectionTableDragAndDropContext/index.d.ts.map +0 -1
- package/dist/types/components/DragAndDrop/NestedDragAndDropState.d.ts +0 -17
- package/dist/types/components/DragAndDrop/NestedDragAndDropState.d.ts.map +0 -1
- package/dist/types/components/DragAndDrop/NestedTableDragAndDropState.d.ts.map +0 -1
- package/dist/types/components/NestedTableDragAndDrop.d.ts.map +0 -1
|
@@ -5,15 +5,15 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "Collapse72518467";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"exit": "
|
|
15
|
+
"root": "Collapse72518467__root",
|
|
16
|
+
"exit": "Collapse72518467__exit"
|
|
17
17
|
};
|
|
18
18
|
var keyframes = exports.keyframes = {};
|
|
19
19
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/Collapse/Collapse.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/Collapse/Collapse.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"Collapse72518467\";\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\":\"Collapse72518467__root\",\"exit\":\"Collapse72518467__exit\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,kBAAkB;AACpC,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,wBAAwB;EAAC,MAAM,EAAC;AAAwB,CAAC;AAC/E,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":[]}
|
|
@@ -233,9 +233,9 @@ function _CollectionTable(props) {
|
|
|
233
233
|
}) : undefined, children));
|
|
234
234
|
if (dragAndDrop) {
|
|
235
235
|
const {
|
|
236
|
-
|
|
236
|
+
TableDragAndDropContext
|
|
237
237
|
} = dragAndDrop;
|
|
238
|
-
table = /*#__PURE__*/_react.default.createElement(
|
|
238
|
+
table = /*#__PURE__*/_react.default.createElement(TableDragAndDropContext, {
|
|
239
239
|
state: state,
|
|
240
240
|
onSubmit: dragAndDropSubmit,
|
|
241
241
|
onCancel: dragAndDropCancel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_mobxReactLite","_CollectionCard","_InitialLoader","_useTableCollectionSyncProps","_CollectionTableWSRTable","_CollectionTableContent","_PageInfiniteScrollLoader","_ActionCell","_BulkAction","_useCreateWSRColumnBase","_TablePlaceholderStates","_providers","_isValidElement","_jsxFileName","_CollectionTable","props","_state$container$inte","_state$container$inte2","state","tableState","filters","title","tabs","customColumns","customColumnsProp","multiLevelSorting","multiLevelSortingProp","dataExtension","tags","views","extraToolbar","bulkActionToolbar","exportButton","exportModal","bulkActionModal","sticky","stickyProp","actionCell","actionCellWidth","actionCellProps","columns","columnsProp","onRowClick","onSortClick","showSelection","showSelectionProp","search","renderError","emptyState","noResultsState","children","onSelectedItems","cardProps","minCardHeight","dataHook","topNotification","tableGridSwitchButton","useShowLoaderWhenEmpty","useNewInfiniteScrollLoader","dragAndDrop","dragAndDropBulkSubmit","dragAndDropSubmit","dragAndDropCancel","dragAndDropReorderModeToolbar","horizontalScroll","horizontalScrollProp","stickyColumns","stickySelectionColumn","hideBulkSelectionCheckbox","maxSelection","showTitleBar","BodyElementType","isApplyColumnWidthStyle","rowVerticalPadding","rest","dataExtensionType","isValidElement","type","toolbar","container","internalExperiments","enabled","scrollableContentRef","useScrollableContentContext","current","collection","internalScroll","default","createElement","CustomColumns","__self","__source","fileName","lineNumber","columnNumber","useTableCollectionSyncProps","isUsingTableVirtualization","selectedOrderedColumnsOrAll","bulkSelect","query","createWSRColumnBase","useCreateWSRColumnBase","transformedColumns","map","column","index","length","render","id","sortable","infoTooltipProps","width","style","restColumn","columnBase","undefined","sortDescending","sort","getIsSortDescending","keyedItem","rowNum","item","actionCellColumn","useActionCellColumn","stickyActionCell","columnsWithActions","internalOnSortClick","col","sortMode","clearResult","multiple","table","CollectionTableWSRTable","_extends2","selectionToolbar","SingleCollectionBulkActionToolbar","onSelectionChanged","_selectedIds","_change","allSelected","selectedValues","selectionDisabled","row","bulk","isRowCheckboxDisabled","TablePlaceholderStates","result","originQuery","CollectionTableContent","PageInfiniteScrollLoader","scrollMoreAlways","CollectionTableDragAndDropContext","onSubmit","onCancel","onBulkSubmit","tableSkeletonEnabled","CollectionCard","initialLoader","InitialLoader","minHeight","featuredComponents","value","SingleCollectionBulkActionModal","CollectionTable","exports","observer"],"sources":["../../../../src/components/CollectionTable/CollectionTable.tsx"],"sourcesContent":["import { TableColumn as WSRTableColumn } from '@wix/design-system';\nimport React, { ReactElement } from 'react';\nimport { observer } from 'mobx-react-lite';\nimport { FiltersMap, KeyedItem } from '@wix/bex-core';\nimport { CollectionCard } from '../CollectionCard';\nimport { InitialLoader } from '../InitialLoader';\nimport { TableColumn } from '../../model';\nimport { TableState } from '../../state';\nimport { useTableCollectionSyncProps } from './useTableCollectionSyncProps';\nimport type { TableDragAndDropType } from '../TableDragAndDrop';\nimport {\n CollectionTableWSRTable,\n CollectionTableWSRTableBaseProps,\n} from './CollectionTableWSRTable';\nimport { CollectionTableContent } from './CollectionTableContent';\nimport { PageInfiniteScrollLoader } from '../PageInfiniteScrollLoader';\nimport { useActionCellColumn } from '../ActionCell';\nimport {\n BulkActionModalRenderProp,\n BulkActionToolbarRenderProp,\n SingleCollectionBulkActionModal,\n SingleCollectionBulkActionToolbar,\n} from '../BulkAction';\nimport { CollectionTableBaseCommonProps } from './CollectionTableBaseCommonProps';\nimport {\n DataExtensionProps,\n type DataExtensionElement,\n type DataExtensionType,\n} from '../DataExtension';\nimport { useCreateWSRColumnBase } from '../../hooks/useCreateWSRColumnBase';\nimport type { TagsElement } from '../Tags';\nimport { TablePlaceholderStates } from '../TablePlaceholderStates/TablePlaceholderStates';\nimport { useScrollableContentContext } from '../../providers';\nimport { isValidElement } from '../isValidElement';\n\nexport interface CollectionTableBaseProps<T, F extends FiltersMap>\n extends CollectionTableWSRTableBaseProps<T, T, F>,\n CollectionTableBaseCommonProps<T, F> {\n /**\n * Table columns. Supported properties:\n * + `id`: The column's unique identifier. Required for making the column selectable.\n * + `title`: A string or an element to display in the table header for a column.\n * + `render`: A callback that is called for each row in the data to display the value of this row for the specified column.\n * + `sortableColumns`: [bool] Whether the table items are sortable. <br> This prop accepts a [Sortable Columns](./?path=%2Fstory%2Fcomponents-collection-features--sortable-columns) component. If `sortableColumns` is set to `true`, visitors can click a column header to sort the table items accordingly.\n * @external\n */\n columns: TableColumn<T>[];\n\n /**\n * Whether to show a checkbox column for selecting items.\n * @default false\n * @external\n */\n showSelection?: boolean;\n /**\n * A callback method to be called on row click. Signature: `onRowClick(rowData, rowNum)`. To enable hover effect you should set this prop.\n * @external\n */\n onRowClick?: (item: T, index: number) => void;\n /**\n * A [`<ExportButton />`](./?path=/story/components-collection-features--exportto) react element to be added to the toolbar\n */\n exportButton?: ReactElement;\n\n /**\n * Adds functionality to allow visitors to reorder items manually.\n * This prop accepts a [Drag and Drop](./?path=%2Fstory%2Fcomponents-collection-features--drag-and-drop) component.\n * @external\n */\n dragAndDrop?: TableDragAndDropType;\n\n /**\n * Data extension implementation: `import { DataExtension } from '@wix/patterns';`\n */\n dataExtension?: DataExtensionType | DataExtensionElement;\n\n tags?: TagsElement<T>;\n\n /**\n * Render a custom toolbar when more than 1 item is selected.<br>\n * The function accepts the following parameters\n * * `selectedValues`: The items that were checked via the selection column\n * * `uncheckedValues`: The items that were unchecked via the selection column\n * * `allSelected`: Indicates whether the \"Select All\" checkbox is checked\n * * `openModal`: Opens the modal that contains the component from `bulkActionModal` render prop\n * * `clearSelection`: Clears all existing selection, call this after the action on the selected items was done\n * * `total`: Total items in the server (taken from [`fetchData`](./?path=/story/common-hooks--usecollection) return value).\n * * `openConfirmModal`: Opens a `<MessageModalLayout/>` to confirm an action about to be applied on the selected items.\n * * `query`: ComputedQuery<F> - Representation of the current paging, sorting & filtering applied. Usually for using together with bulk action such as `updateAll` and `deleteAll`\n *\n * > When passed, enables `showSelection` by default.\n * @external\n */\n bulkActionToolbar?: BulkActionToolbarRenderProp<T, F>;\n /**\n * Opens a modal from the [MultiBulkActionToolbar](./?path=%2Fstory%2Fcomponents-collection-features--multibulkactiontoolbar).\n * Supported parameters:\n * + `selectedValues`: Selected item values.\n * + `uncheckedValues`: Unselected item values.\n * + `isSelectAll`: [bool] Whether the **Select All** option is selected.\n * + `closeModal`: Closes the modal.\n * + `query`: [object] Instance of [ComputedQuery](./?path=%2Fstory%2Fcommon-models--computedquery) that represents the query that resulted in an empty state. Representation of the current paging, sorting and filtering applied. Usually for using together with bulk action such as `updateAll` and `deleteAll`.\n * @external\n */\n bulkActionModal?: BulkActionModalRenderProp<T, F>;\n}\n\nexport interface CollectionTableProps<T, F extends FiltersMap>\n extends CollectionTableBaseProps<T, F> {\n state: TableState<T, F>;\n}\n\nfunction _CollectionTable<T, F extends FiltersMap = FiltersMap>(\n props: CollectionTableProps<T, F>,\n) {\n const {\n state: tableState,\n filters,\n title,\n tabs,\n customColumns: customColumnsProp,\n multiLevelSorting: multiLevelSortingProp,\n dataExtension,\n tags,\n views,\n extraToolbar,\n bulkActionToolbar,\n exportButton,\n exportModal,\n bulkActionModal,\n sticky: stickyProp,\n actionCell,\n actionCellWidth,\n actionCellProps,\n columns: columnsProp,\n onRowClick,\n onSortClick,\n showSelection: showSelectionProp,\n search,\n renderError,\n emptyState,\n noResultsState,\n children,\n onSelectedItems,\n cardProps,\n minCardHeight,\n dataHook,\n topNotification,\n tableGridSwitchButton,\n useShowLoaderWhenEmpty,\n useNewInfiniteScrollLoader,\n dragAndDrop,\n dragAndDropBulkSubmit,\n dragAndDropSubmit,\n dragAndDropCancel,\n dragAndDropReorderModeToolbar,\n horizontalScroll: horizontalScrollProp,\n stickyColumns,\n stickySelectionColumn,\n hideBulkSelectionCheckbox,\n maxSelection,\n showTitleBar = true,\n BodyElementType,\n isApplyColumnWidthStyle,\n rowVerticalPadding,\n ...rest\n } = props;\n\n const dataExtensionType = isValidElement<\n DataExtensionProps,\n DataExtensionType\n >(dataExtension)\n ? dataExtension.type\n : dataExtension;\n\n const state = tableState.toolbar;\n\n const showSelection = showSelectionProp ?? bulkActionToolbar != null;\n\n const horizontalScroll =\n horizontalScrollProp ??\n state.container.internalExperiments?.enabled(\n 'specs.cairo.HorizontalScrollAsDefault',\n );\n\n const { scrollableContentRef } = useScrollableContentContext();\n\n const sticky = stickyProp ?? scrollableContentRef?.current != null;\n\n const { collection, internalScroll } = state;\n\n const customColumns =\n props.customColumns ||\n (dataExtensionType && <dataExtensionType.CustomColumns />);\n\n useTableCollectionSyncProps({\n ...props,\n dataExtension,\n showSelection,\n customColumns,\n tags,\n isUsingTableVirtualization: !!BodyElementType,\n });\n\n const { selectedOrderedColumnsOrAll } = state;\n\n const { bulkSelect, query } = collection;\n\n const createWSRColumnBase = useCreateWSRColumnBase({ horizontalScroll });\n\n const transformedColumns: WSRTableColumn<KeyedItem<T>>[] =\n selectedOrderedColumnsOrAll.map((column, index, { length }) => {\n const {\n render,\n id,\n sortable,\n infoTooltipProps,\n title,\n width,\n style,\n ...restColumn\n } = column;\n\n const columnBase = createWSRColumnBase(column, index, length);\n\n return {\n ...restColumn,\n ...columnBase,\n ...(isApplyColumnWidthStyle ? undefined : { style, width }),\n sortDescending:\n sortable && id ? query.sort.getIsSortDescending(id) : undefined,\n render: (keyedItem: KeyedItem<T>, rowNum: number) =>\n render(keyedItem.item, rowNum),\n };\n });\n\n const actionCellColumn = useActionCellColumn({\n actionCellProps: {\n ...(actionCellProps ?? {}),\n stickyActionCell: horizontalScroll || actionCellProps?.stickyActionCell,\n },\n actionCellWidth,\n collection,\n sticky,\n actionCell,\n });\n\n const columnsWithActions: WSRTableColumn<KeyedItem<T>>[] = actionCellColumn\n ? [...transformedColumns, actionCellColumn]\n : transformedColumns;\n\n const internalOnSortClick = (col: TableColumn<F>, index: number) => {\n onSortClick?.(col, index);\n\n if (col.id != null) {\n state.collection.sort(\n { id: col.id, sortMode: col.sortMode },\n {\n clearResult: true,\n multiple: multiLevelSortingProp !== undefined,\n },\n );\n }\n };\n\n let table = (\n <CollectionTableWSRTable\n {...props}\n customColumns={customColumns}\n rowVerticalPadding={rowVerticalPadding}\n dragAndDropReorderModeToolbar={dragAndDropReorderModeToolbar}\n selectionToolbar={\n bulkActionToolbar && (\n <SingleCollectionBulkActionToolbar\n state={state}\n bulkActionToolbar={bulkActionToolbar}\n />\n )\n }\n horizontalScroll={horizontalScroll}\n minCardHeight={minCardHeight}\n sticky={sticky}\n showTitleBar={showTitleBar}\n state={tableState}\n columns={columnsWithActions}\n onSortClick={internalOnSortClick}\n showSelection={showSelection}\n onSelectionChanged={(_selectedIds, _change) => {\n state.onSelectionChanged(_selectedIds, _change);\n onSelectedItems?.(bulkSelect.allSelected, bulkSelect.selectedValues);\n rest.onSelectionChanged?.(_selectedIds, _change);\n }}\n selectionDisabled={(row) => state.bulk.isRowCheckboxDisabled(row)}\n onRowClick={onRowClick && (({ item }, index) => onRowClick(item, index))}\n isApplyColumnWidthStyle={isApplyColumnWidthStyle}\n >\n <TablePlaceholderStates\n state={tableState}\n renderError={renderError}\n rowVerticalPadding={rowVerticalPadding}\n emptyState={emptyState}\n noResultsState={noResultsState}\n topNotification={\n typeof topNotification === 'function'\n ? () => topNotification({ query: collection.result.originQuery })\n : topNotification\n }\n />\n\n <CollectionTableContent state={tableState}>\n {useNewInfiniteScrollLoader || internalScroll ? (\n <PageInfiniteScrollLoader\n dataHook=\"infinite-scroll-loader\"\n state={collection}\n scrollMoreAlways\n />\n ) : undefined}\n {children}\n </CollectionTableContent>\n </CollectionTableWSRTable>\n );\n\n if (dragAndDrop) {\n const { CollectionTableDragAndDropContext } = dragAndDrop;\n table = (\n <CollectionTableDragAndDropContext\n state={state}\n onSubmit={dragAndDropSubmit}\n onCancel={dragAndDropCancel}\n onBulkSubmit={dragAndDropBulkSubmit}\n >\n {table}\n </CollectionTableDragAndDropContext>\n );\n }\n\n const tableSkeletonEnabled = state.container.internalExperiments?.enabled(\n 'specs.cairo.TableSkeletonLoader',\n );\n\n return (\n <CollectionCard\n renderError={renderError}\n state={state}\n initialLoader={\n !tableSkeletonEnabled && (\n <InitialLoader\n dataHook=\"placeholder-states-loading-state\"\n state={state}\n minHeight={minCardHeight}\n />\n )\n }\n dataHook={dataHook}\n dataExtension={dataExtensionType}\n tags={tags}\n {...cardProps}\n >\n {exportModal ?? state.featuredComponents.exportModal.value}\n {bulkActionModal && (\n <SingleCollectionBulkActionModal\n state={state}\n bulkActionModal={bulkActionModal}\n />\n )}\n {table}\n </CollectionCard>\n );\n}\n\nexport const CollectionTable = observer(_CollectionTable);\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAGA,IAAAI,4BAAA,GAAAJ,OAAA;AAEA,IAAAK,wBAAA,GAAAL,OAAA;AAIA,IAAAM,uBAAA,GAAAN,OAAA;AACA,IAAAO,yBAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AAYA,IAAAU,uBAAA,GAAAV,OAAA;AAEA,IAAAW,uBAAA,GAAAX,OAAA;AACA,IAAAY,UAAA,GAAAZ,OAAA;AACA,IAAAa,eAAA,GAAAb,OAAA;AAAmD,IAAAc,YAAA;AA+EnD,SAASC,gBAAgBA,CACvBC,KAAiC,EACjC;EAAA,IAAAC,qBAAA,EAAAC,sBAAA;EACA,MAAM;IACJC,KAAK,EAAEC,UAAU;IACjBC,OAAO;IACPC,KAAK;IACLC,IAAI;IACJC,aAAa,EAAEC,iBAAiB;IAChCC,iBAAiB,EAAEC,qBAAqB;IACxCC,aAAa;IACbC,IAAI;IACJC,KAAK;IACLC,YAAY;IACZC,iBAAiB;IACjBC,YAAY;IACZC,WAAW;IACXC,eAAe;IACfC,MAAM,EAAEC,UAAU;IAClBC,UAAU;IACVC,eAAe;IACfC,eAAe;IACfC,OAAO,EAAEC,WAAW;IACpBC,UAAU;IACVC,WAAW;IACXC,aAAa,EAAEC,iBAAiB;IAChCC,MAAM;IACNC,WAAW;IACXC,UAAU;IACVC,cAAc;IACdC,QAAQ;IACRC,eAAe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AAC,aAAA,CAACtF,cAAA,CAAA4J,aAAa;MACZxG,QAAQ,EAAC,kCAAkC;MAC3CpC,KAAK,EAAEA,KAAM;MACb6I,SAAS,EAAE1G,aAAc;MAAAqC,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAA/E,YAAA;QAAAgF,UAAA;QAAAC,YAAA;MAAA;IAAA,CAC1B,CAEJ;IACDxC,QAAQ,EAAEA,QAAS;IACnB3B,aAAa,EAAEgD,iBAAkB;IACjC/C,IAAI,EAAEA;EAAK,GACPwB,SAAS;IAAAsC,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA/E,YAAA;MAAAgF,UAAA;MAAAC,YAAA;IAAA;EAAA,IAEZ7D,WAAW,IAAIf,KAAK,CAAC8I,kBAAkB,CAAC/H,WAAW,CAACgI,KAAK,EACzD/H,eAAe,iBACdrC,MAAA,CAAA0F,OAAA,CAAAC,aAAA,CAAChF,WAAA,CAAA0J,+BAA+B;IAC9BhJ,KAAK,EAAEA,KAAM;IACbgB,eAAe,EAAEA,eAAgB;IAAAwD,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA/E,YAAA;MAAAgF,UAAA;MAAAC,YAAA;IAAA;EAAA,CAClC,CACF,EACAqC,KACa,CAAC;AAErB;AAEO,MAAMgC,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,IAAAE,uBAAQ,EAACvJ,gBAAgB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_mobxReactLite","_CollectionCard","_InitialLoader","_useTableCollectionSyncProps","_CollectionTableWSRTable","_CollectionTableContent","_PageInfiniteScrollLoader","_ActionCell","_BulkAction","_useCreateWSRColumnBase","_TablePlaceholderStates","_providers","_isValidElement","_jsxFileName","_CollectionTable","props","_state$container$inte","_state$container$inte2","state","tableState","filters","title","tabs","customColumns","customColumnsProp","multiLevelSorting","multiLevelSortingProp","dataExtension","tags","views","extraToolbar","bulkActionToolbar","exportButton","exportModal","bulkActionModal","sticky","stickyProp","actionCell","actionCellWidth","actionCellProps","columns","columnsProp","onRowClick","onSortClick","showSelection","showSelectionProp","search","renderError","emptyState","noResultsState","children","onSelectedItems","cardProps","minCardHeight","dataHook","topNotification","tableGridSwitchButton","useShowLoaderWhenEmpty","useNewInfiniteScrollLoader","dragAndDrop","dragAndDropBulkSubmit","dragAndDropSubmit","dragAndDropCancel","dragAndDropReorderModeToolbar","horizontalScroll","horizontalScrollProp","stickyColumns","stickySelectionColumn","hideBulkSelectionCheckbox","maxSelection","showTitleBar","BodyElementType","isApplyColumnWidthStyle","rowVerticalPadding","rest","dataExtensionType","isValidElement","type","toolbar","container","internalExperiments","enabled","scrollableContentRef","useScrollableContentContext","current","collection","internalScroll","default","createElement","CustomColumns","__self","__source","fileName","lineNumber","columnNumber","useTableCollectionSyncProps","isUsingTableVirtualization","selectedOrderedColumnsOrAll","bulkSelect","query","createWSRColumnBase","useCreateWSRColumnBase","transformedColumns","map","column","index","length","render","id","sortable","infoTooltipProps","width","style","restColumn","columnBase","undefined","sortDescending","sort","getIsSortDescending","keyedItem","rowNum","item","actionCellColumn","useActionCellColumn","stickyActionCell","columnsWithActions","internalOnSortClick","col","sortMode","clearResult","multiple","table","CollectionTableWSRTable","_extends2","selectionToolbar","SingleCollectionBulkActionToolbar","onSelectionChanged","_selectedIds","_change","allSelected","selectedValues","selectionDisabled","row","bulk","isRowCheckboxDisabled","TablePlaceholderStates","result","originQuery","CollectionTableContent","PageInfiniteScrollLoader","scrollMoreAlways","TableDragAndDropContext","onSubmit","onCancel","onBulkSubmit","tableSkeletonEnabled","CollectionCard","initialLoader","InitialLoader","minHeight","featuredComponents","value","SingleCollectionBulkActionModal","CollectionTable","exports","observer"],"sources":["../../../../src/components/CollectionTable/CollectionTable.tsx"],"sourcesContent":["import { TableColumn as WSRTableColumn } from '@wix/design-system';\nimport React, { ReactElement } from 'react';\nimport { observer } from 'mobx-react-lite';\nimport { FiltersMap, KeyedItem } from '@wix/bex-core';\nimport { CollectionCard } from '../CollectionCard';\nimport { InitialLoader } from '../InitialLoader';\nimport { TableColumn } from '../../model';\nimport { TableState } from '../../state';\nimport { useTableCollectionSyncProps } from './useTableCollectionSyncProps';\nimport type { TableDragAndDropType } from '../TableDragAndDrop';\nimport {\n CollectionTableWSRTable,\n CollectionTableWSRTableBaseProps,\n} from './CollectionTableWSRTable';\nimport { CollectionTableContent } from './CollectionTableContent';\nimport { PageInfiniteScrollLoader } from '../PageInfiniteScrollLoader';\nimport { useActionCellColumn } from '../ActionCell';\nimport {\n BulkActionModalRenderProp,\n BulkActionToolbarRenderProp,\n SingleCollectionBulkActionModal,\n SingleCollectionBulkActionToolbar,\n} from '../BulkAction';\nimport { CollectionTableBaseCommonProps } from './CollectionTableBaseCommonProps';\nimport {\n DataExtensionProps,\n type DataExtensionElement,\n type DataExtensionType,\n} from '../DataExtension';\nimport { useCreateWSRColumnBase } from '../../hooks/useCreateWSRColumnBase';\nimport type { TagsElement } from '../Tags';\nimport { TablePlaceholderStates } from '../TablePlaceholderStates/TablePlaceholderStates';\nimport { useScrollableContentContext } from '../../providers';\nimport { isValidElement } from '../isValidElement';\n\nexport interface CollectionTableBaseProps<T, F extends FiltersMap>\n extends CollectionTableWSRTableBaseProps<T, T, F>,\n CollectionTableBaseCommonProps<T, F> {\n /**\n * Table columns. Supported properties:\n * + `id`: The column's unique identifier. Required for making the column selectable.\n * + `title`: A string or an element to display in the table header for a column.\n * + `render`: A callback that is called for each row in the data to display the value of this row for the specified column.\n * + `sortableColumns`: [bool] Whether the table items are sortable. <br> This prop accepts a [Sortable Columns](./?path=%2Fstory%2Fcomponents-collection-features--sortable-columns) component. If `sortableColumns` is set to `true`, visitors can click a column header to sort the table items accordingly.\n * @external\n */\n columns: TableColumn<T>[];\n\n /**\n * Whether to show a checkbox column for selecting items.\n * @default false\n * @external\n */\n showSelection?: boolean;\n /**\n * A callback method to be called on row click. Signature: `onRowClick(rowData, rowNum)`. To enable hover effect you should set this prop.\n * @external\n */\n onRowClick?: (item: T, index: number) => void;\n /**\n * A [`<ExportButton />`](./?path=/story/components-collection-features--exportto) react element to be added to the toolbar\n */\n exportButton?: ReactElement;\n\n /**\n * Adds functionality to allow visitors to reorder items manually.\n * This prop accepts a [Drag and Drop](./?path=%2Fstory%2Fcomponents-collection-features--drag-and-drop) component.\n * @external\n */\n dragAndDrop?: TableDragAndDropType;\n\n /**\n * Data extension implementation: `import { DataExtension } from '@wix/patterns';`\n */\n dataExtension?: DataExtensionType | DataExtensionElement;\n\n tags?: TagsElement<T>;\n\n /**\n * Render a custom toolbar when more than 1 item is selected.<br>\n * The function accepts the following parameters\n * * `selectedValues`: The items that were checked via the selection column\n * * `uncheckedValues`: The items that were unchecked via the selection column\n * * `allSelected`: Indicates whether the \"Select All\" checkbox is checked\n * * `openModal`: Opens the modal that contains the component from `bulkActionModal` render prop\n * * `clearSelection`: Clears all existing selection, call this after the action on the selected items was done\n * * `total`: Total items in the server (taken from [`fetchData`](./?path=/story/common-hooks--usecollection) return value).\n * * `openConfirmModal`: Opens a `<MessageModalLayout/>` to confirm an action about to be applied on the selected items.\n * * `query`: ComputedQuery<F> - Representation of the current paging, sorting & filtering applied. Usually for using together with bulk action such as `updateAll` and `deleteAll`\n *\n * > When passed, enables `showSelection` by default.\n * @external\n */\n bulkActionToolbar?: BulkActionToolbarRenderProp<T, F>;\n /**\n * Opens a modal from the [MultiBulkActionToolbar](./?path=%2Fstory%2Fcomponents-collection-features--multibulkactiontoolbar).\n * Supported parameters:\n * + `selectedValues`: Selected item values.\n * + `uncheckedValues`: Unselected item values.\n * + `isSelectAll`: [bool] Whether the **Select All** option is selected.\n * + `closeModal`: Closes the modal.\n * + `query`: [object] Instance of [ComputedQuery](./?path=%2Fstory%2Fcommon-models--computedquery) that represents the query that resulted in an empty state. Representation of the current paging, sorting and filtering applied. Usually for using together with bulk action such as `updateAll` and `deleteAll`.\n * @external\n */\n bulkActionModal?: BulkActionModalRenderProp<T, F>;\n}\n\nexport interface CollectionTableProps<T, F extends FiltersMap>\n extends CollectionTableBaseProps<T, F> {\n state: TableState<T, F>;\n}\n\nfunction _CollectionTable<T, F extends FiltersMap = FiltersMap>(\n props: CollectionTableProps<T, F>,\n) {\n const {\n state: tableState,\n filters,\n title,\n tabs,\n customColumns: customColumnsProp,\n multiLevelSorting: multiLevelSortingProp,\n dataExtension,\n tags,\n views,\n extraToolbar,\n bulkActionToolbar,\n exportButton,\n exportModal,\n bulkActionModal,\n sticky: stickyProp,\n actionCell,\n actionCellWidth,\n actionCellProps,\n columns: columnsProp,\n onRowClick,\n onSortClick,\n showSelection: showSelectionProp,\n search,\n renderError,\n emptyState,\n noResultsState,\n children,\n onSelectedItems,\n cardProps,\n minCardHeight,\n dataHook,\n topNotification,\n tableGridSwitchButton,\n useShowLoaderWhenEmpty,\n useNewInfiniteScrollLoader,\n dragAndDrop,\n dragAndDropBulkSubmit,\n dragAndDropSubmit,\n dragAndDropCancel,\n dragAndDropReorderModeToolbar,\n horizontalScroll: horizontalScrollProp,\n stickyColumns,\n stickySelectionColumn,\n hideBulkSelectionCheckbox,\n maxSelection,\n showTitleBar = true,\n BodyElementType,\n isApplyColumnWidthStyle,\n rowVerticalPadding,\n ...rest\n } = props;\n\n const dataExtensionType = isValidElement<\n DataExtensionProps,\n DataExtensionType\n >(dataExtension)\n ? dataExtension.type\n : dataExtension;\n\n const state = tableState.toolbar;\n\n const showSelection = showSelectionProp ?? bulkActionToolbar != null;\n\n const horizontalScroll =\n horizontalScrollProp ??\n state.container.internalExperiments?.enabled(\n 'specs.cairo.HorizontalScrollAsDefault',\n );\n\n const { scrollableContentRef } = useScrollableContentContext();\n\n const sticky = stickyProp ?? scrollableContentRef?.current != null;\n\n const { collection, internalScroll } = state;\n\n const customColumns =\n props.customColumns ||\n (dataExtensionType && <dataExtensionType.CustomColumns />);\n\n useTableCollectionSyncProps({\n ...props,\n dataExtension,\n showSelection,\n customColumns,\n tags,\n isUsingTableVirtualization: !!BodyElementType,\n });\n\n const { selectedOrderedColumnsOrAll } = state;\n\n const { bulkSelect, query } = collection;\n\n const createWSRColumnBase = useCreateWSRColumnBase({ horizontalScroll });\n\n const transformedColumns: WSRTableColumn<KeyedItem<T>>[] =\n selectedOrderedColumnsOrAll.map((column, index, { length }) => {\n const {\n render,\n id,\n sortable,\n infoTooltipProps,\n title,\n width,\n style,\n ...restColumn\n } = column;\n\n const columnBase = createWSRColumnBase(column, index, length);\n\n return {\n ...restColumn,\n ...columnBase,\n ...(isApplyColumnWidthStyle ? undefined : { style, width }),\n sortDescending:\n sortable && id ? query.sort.getIsSortDescending(id) : undefined,\n render: (keyedItem: KeyedItem<T>, rowNum: number) =>\n render(keyedItem.item, rowNum),\n };\n });\n\n const actionCellColumn = useActionCellColumn({\n actionCellProps: {\n ...(actionCellProps ?? {}),\n stickyActionCell: horizontalScroll || actionCellProps?.stickyActionCell,\n },\n actionCellWidth,\n collection,\n sticky,\n actionCell,\n });\n\n const columnsWithActions: WSRTableColumn<KeyedItem<T>>[] = actionCellColumn\n ? [...transformedColumns, actionCellColumn]\n : transformedColumns;\n\n const internalOnSortClick = (col: TableColumn<F>, index: number) => {\n onSortClick?.(col, index);\n\n if (col.id != null) {\n state.collection.sort(\n { id: col.id, sortMode: col.sortMode },\n {\n clearResult: true,\n multiple: multiLevelSortingProp !== undefined,\n },\n );\n }\n };\n\n let table = (\n <CollectionTableWSRTable\n {...props}\n customColumns={customColumns}\n rowVerticalPadding={rowVerticalPadding}\n dragAndDropReorderModeToolbar={dragAndDropReorderModeToolbar}\n selectionToolbar={\n bulkActionToolbar && (\n <SingleCollectionBulkActionToolbar\n state={state}\n bulkActionToolbar={bulkActionToolbar}\n />\n )\n }\n horizontalScroll={horizontalScroll}\n minCardHeight={minCardHeight}\n sticky={sticky}\n showTitleBar={showTitleBar}\n state={tableState}\n columns={columnsWithActions}\n onSortClick={internalOnSortClick}\n showSelection={showSelection}\n onSelectionChanged={(_selectedIds, _change) => {\n state.onSelectionChanged(_selectedIds, _change);\n onSelectedItems?.(bulkSelect.allSelected, bulkSelect.selectedValues);\n rest.onSelectionChanged?.(_selectedIds, _change);\n }}\n selectionDisabled={(row) => state.bulk.isRowCheckboxDisabled(row)}\n onRowClick={onRowClick && (({ item }, index) => onRowClick(item, index))}\n isApplyColumnWidthStyle={isApplyColumnWidthStyle}\n >\n <TablePlaceholderStates\n state={tableState}\n renderError={renderError}\n rowVerticalPadding={rowVerticalPadding}\n emptyState={emptyState}\n noResultsState={noResultsState}\n topNotification={\n typeof topNotification === 'function'\n ? () => topNotification({ query: collection.result.originQuery })\n : topNotification\n }\n />\n\n <CollectionTableContent state={tableState}>\n {useNewInfiniteScrollLoader || internalScroll ? (\n <PageInfiniteScrollLoader\n dataHook=\"infinite-scroll-loader\"\n state={collection}\n scrollMoreAlways\n />\n ) : undefined}\n {children}\n </CollectionTableContent>\n </CollectionTableWSRTable>\n );\n\n if (dragAndDrop) {\n const { TableDragAndDropContext } = dragAndDrop;\n table = (\n <TableDragAndDropContext\n state={state}\n onSubmit={dragAndDropSubmit}\n onCancel={dragAndDropCancel}\n onBulkSubmit={dragAndDropBulkSubmit}\n >\n {table}\n </TableDragAndDropContext>\n );\n }\n\n const tableSkeletonEnabled = state.container.internalExperiments?.enabled(\n 'specs.cairo.TableSkeletonLoader',\n );\n\n return (\n <CollectionCard\n renderError={renderError}\n state={state}\n initialLoader={\n !tableSkeletonEnabled && (\n <InitialLoader\n dataHook=\"placeholder-states-loading-state\"\n state={state}\n minHeight={minCardHeight}\n />\n )\n }\n dataHook={dataHook}\n dataExtension={dataExtensionType}\n tags={tags}\n {...cardProps}\n >\n {exportModal ?? state.featuredComponents.exportModal.value}\n {bulkActionModal && (\n <SingleCollectionBulkActionModal\n state={state}\n bulkActionModal={bulkActionModal}\n />\n )}\n {table}\n </CollectionCard>\n );\n}\n\nexport const CollectionTable = observer(_CollectionTable);\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OA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BAAkB;IACjC/C,IAAI,EAAEA;EAAK,GACPwB,SAAS;IAAAsC,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA/E,YAAA;MAAAgF,UAAA;MAAAC,YAAA;IAAA;EAAA,IAEZ7D,WAAW,IAAIf,KAAK,CAAC8I,kBAAkB,CAAC/H,WAAW,CAACgI,KAAK,EACzD/H,eAAe,iBACdrC,MAAA,CAAA0F,OAAA,CAAAC,aAAA,CAAChF,WAAA,CAAA0J,+BAA+B;IAC9BhJ,KAAK,EAAEA,KAAM;IACbgB,eAAe,EAAEA,eAAgB;IAAAwD,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA/E,YAAA;MAAAgF,UAAA;MAAAC,YAAA;IAAA;EAAA,CAClC,CACF,EACAqC,KACa,CAAC;AAErB;AAEO,MAAMgC,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,IAAAE,uBAAQ,EAACvJ,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -5,17 +5,17 @@ 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_ = "CollectionToolbar2090649273";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"left": "
|
|
17
|
-
"right": "
|
|
18
|
-
"fullWidth": "
|
|
15
|
+
"root": "CollectionToolbar2090649273__root",
|
|
16
|
+
"left": "CollectionToolbar2090649273__left",
|
|
17
|
+
"right": "CollectionToolbar2090649273__right",
|
|
18
|
+
"fullWidth": "CollectionToolbar2090649273__fullWidth"
|
|
19
19
|
};
|
|
20
20
|
var keyframes = exports.keyframes = {};
|
|
21
21
|
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/CollectionToolbar/CollectionToolbar.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/CollectionToolbar/CollectionToolbar.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"CollectionToolbar2090649273\";\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\":\"CollectionToolbar2090649273__root\",\"left\":\"CollectionToolbar2090649273__left\",\"right\":\"CollectionToolbar2090649273__right\",\"fullWidth\":\"CollectionToolbar2090649273__fullWidth\"};\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,6BAA6B;AAC/C,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,mCAAmC;EAAC,MAAM,EAAC,mCAAmC;EAAC,OAAO,EAAC,oCAAoC;EAAC,WAAW,EAAC;AAAwC,CAAC;AACvM,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,15 +5,15 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "SearchOrCustomFilter1028414448";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"search": "
|
|
15
|
+
"root": "SearchOrCustomFilter1028414448__root",
|
|
16
|
+
"search": "SearchOrCustomFilter1028414448__search"
|
|
17
17
|
};
|
|
18
18
|
var keyframes = exports.keyframes = {};
|
|
19
19
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/CollectionToolbar/SearchOrCustomFilter.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/CollectionToolbar/SearchOrCustomFilter.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"SearchOrCustomFilter1028414448\";\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\":\"SearchOrCustomFilter1028414448__root\",\"search\":\"SearchOrCustomFilter1028414448__search\"};\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,gCAAgC;AAClD,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,sCAAsC;EAAC,QAAQ,EAAC;AAAwC,CAAC;AAC/G,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_ = "AutoCompleteReadonly3397917518";
|
|
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": "AutoCompleteReadonly3397917518__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/CollectionViewsDropdown/AutoCompleteReadonly.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/CollectionViewsDropdown/AutoCompleteReadonly.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"AutoCompleteReadonly3397917518\";\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\":\"AutoCompleteReadonly3397917518__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,gCAAgC;AAClD,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;AAAsC,CAAC;AAC7D,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_ = "ViewsDropdown858340643";
|
|
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": "ViewsDropdown858340643__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/CollectionViewsDropdown/ViewsDropdown.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/CollectionViewsDropdown/ViewsDropdown.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"ViewsDropdown858340643\";\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\":\"ViewsDropdown858340643__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":[]}
|
|
@@ -7,11 +7,15 @@ var _ToolbarCollectionContext = require("../ToolbarCollectionContext");
|
|
|
7
7
|
var _CustomColumnsPanel = require("./CustomColumnsPanel");
|
|
8
8
|
var _state = require("../../state");
|
|
9
9
|
var _minimalRequiredWdsRuntimeCheck = require("../../minimalRequiredWdsRuntimeCheck");
|
|
10
|
+
var _react2 = require("@wix/bex-core/react");
|
|
10
11
|
var _jsxFileName = "/home/builduser/work/db7ea24852bc3350/packages/cairo/dist/cjs/components/CustomColumnsPanel/CustomColumnsPanelEntry.tsx";
|
|
11
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
14
|
function _CustomColumnsPanelEntry() {
|
|
14
15
|
const toolbar = (0, _ToolbarCollectionContext.useToolbarCollectionContext)();
|
|
16
|
+
const {
|
|
17
|
+
modalsContainerRef
|
|
18
|
+
} = (0, _react2.usePageContext)();
|
|
15
19
|
if (process.env.NODE_ENV !== 'production') {
|
|
16
20
|
(0, _minimalRequiredWdsRuntimeCheck.minimalRequiredWdsRuntimeCheck)({
|
|
17
21
|
required: '^1.68.0',
|
|
@@ -21,14 +25,15 @@ function _CustomColumnsPanelEntry() {
|
|
|
21
25
|
const [state] = (0, _react.useState)(() => toolbar.customColumnsState ?? (toolbar.customColumnsState = new _state.CustomColumnsState({
|
|
22
26
|
table: toolbar,
|
|
23
27
|
container: toolbar.container,
|
|
24
|
-
dragAndDrop: CustomColumnsPanelEntry.CustomColumnsDragAndDrop
|
|
28
|
+
dragAndDrop: CustomColumnsPanelEntry.CustomColumnsDragAndDrop,
|
|
29
|
+
modalsContainerRef
|
|
25
30
|
})));
|
|
26
31
|
return /*#__PURE__*/_react.default.createElement(_CustomColumnsPanel.CustomColumnsPanel, {
|
|
27
32
|
state: state,
|
|
28
33
|
__self: this,
|
|
29
34
|
__source: {
|
|
30
35
|
fileName: _jsxFileName,
|
|
31
|
-
lineNumber:
|
|
36
|
+
lineNumber: 30,
|
|
32
37
|
columnNumber: 10
|
|
33
38
|
}
|
|
34
39
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_ToolbarCollectionContext","_CustomColumnsPanel","_state","_minimalRequiredWdsRuntimeCheck","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_CustomColumnsPanelEntry","toolbar","useToolbarCollectionContext","process","env","NODE_ENV","minimalRequiredWdsRuntimeCheck","required","requiredBy","state","useState","customColumnsState","CustomColumnsState","table","container","dragAndDrop","CustomColumnsPanelEntry","CustomColumnsDragAndDrop","createElement","CustomColumnsPanel","__self","__source","fileName","lineNumber","columnNumber","exports"],"sources":["../../../../src/components/CustomColumnsPanel/CustomColumnsPanelEntry.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { useToolbarCollectionContext } from '../ToolbarCollectionContext';\nimport { CustomColumnsPanel } from './CustomColumnsPanel';\nimport { CustomColumnsState } from '../../state';\nimport type { CustomColumnsDragAndDrop } from '../CustomColumns/CustomColumnsDragAndDrop';\nimport { minimalRequiredWdsRuntimeCheck } from '../../minimalRequiredWdsRuntimeCheck';\n\nfunction _CustomColumnsPanelEntry() {\n const toolbar = useToolbarCollectionContext();\n\n if (process.env.NODE_ENV !== 'production') {\n minimalRequiredWdsRuntimeCheck({\n required: '^1.68.0',\n requiredBy: 'Cairo/CustomColumns',\n });\n }\n\n const [state] = useState(\n () =>\n (toolbar.customColumnsState ??= new CustomColumnsState({\n table: toolbar,\n container: toolbar.container,\n dragAndDrop: CustomColumnsPanelEntry.CustomColumnsDragAndDrop,\n })),\n );\n\n return <CustomColumnsPanel state={state} />;\n}\n\nexport const CustomColumnsPanelEntry =\n _CustomColumnsPanelEntry as typeof _CustomColumnsPanelEntry & {\n CustomColumnsDragAndDrop?: typeof CustomColumnsDragAndDrop;\n };\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,yBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAEA,IAAAI,+BAAA,GAAAJ,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_ToolbarCollectionContext","_CustomColumnsPanel","_state","_minimalRequiredWdsRuntimeCheck","_react2","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_CustomColumnsPanelEntry","toolbar","useToolbarCollectionContext","modalsContainerRef","usePageContext","process","env","NODE_ENV","minimalRequiredWdsRuntimeCheck","required","requiredBy","state","useState","customColumnsState","CustomColumnsState","table","container","dragAndDrop","CustomColumnsPanelEntry","CustomColumnsDragAndDrop","createElement","CustomColumnsPanel","__self","__source","fileName","lineNumber","columnNumber","exports"],"sources":["../../../../src/components/CustomColumnsPanel/CustomColumnsPanelEntry.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { useToolbarCollectionContext } from '../ToolbarCollectionContext';\nimport { CustomColumnsPanel } from './CustomColumnsPanel';\nimport { CustomColumnsState } from '../../state';\nimport type { CustomColumnsDragAndDrop } from '../CustomColumns/CustomColumnsDragAndDrop';\nimport { minimalRequiredWdsRuntimeCheck } from '../../minimalRequiredWdsRuntimeCheck';\nimport { usePageContext } from '@wix/bex-core/react';\n\nfunction _CustomColumnsPanelEntry() {\n const toolbar = useToolbarCollectionContext();\n const { modalsContainerRef } = usePageContext();\n\n if (process.env.NODE_ENV !== 'production') {\n minimalRequiredWdsRuntimeCheck({\n required: '^1.68.0',\n requiredBy: 'Cairo/CustomColumns',\n });\n }\n\n const [state] = useState(\n () =>\n (toolbar.customColumnsState ??= new CustomColumnsState({\n table: toolbar,\n container: toolbar.container,\n dragAndDrop: CustomColumnsPanelEntry.CustomColumnsDragAndDrop,\n modalsContainerRef,\n })),\n );\n\n return <CustomColumnsPanel state={state} />;\n}\n\nexport const CustomColumnsPanelEntry =\n _CustomColumnsPanelEntry as typeof _CustomColumnsPanelEntry & {\n CustomColumnsDragAndDrop?: typeof CustomColumnsDragAndDrop;\n };\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,yBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAEA,IAAAI,+BAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAAqD,IAAAM,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,W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;IACd,CAAC,CAAC;EACJ;EAEA,MAAM,CAACC,KAAK,CAAC,GAAG,IAAAC,eAAQ,EACtB,MACGX,OAAO,CAACY,kBAAkB,KAA1BZ,OAAO,CAACY,kBAAkB,GAAK,IAAIC,yBAAkB,CAAC;IACrDC,KAAK,EAAEd,OAAO;IACde,SAAS,EAAEf,OAAO,CAACe,SAAS;IAC5BC,WAAW,EAAEC,uBAAuB,CAACC,wBAAwB;IAC7DhB;EACF,CAAC,CAAC,CACN,CAAC;EAED,oBAAOhC,MAAA,CAAAe,OAAA,CAAAkC,aAAA,CAAC7C,mBAAA,CAAA8C,kBAAkB;IAACV,KAAK,EAAEA,KAAM;IAAAW,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA7C,YAAA;MAAA8C,UAAA;MAAAC,YAAA;IAAA;EAAA,CAAE,CAAC;AAC7C;AAEO,MAAMR,uBAAuB,GAAAS,OAAA,CAAAT,uBAAA,GAClClB,wBAEC","ignoreList":[]}
|
|
@@ -5,15 +5,15 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "CustomFieldsViewWidgetSection2916356568";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"breakWord": "
|
|
15
|
+
"root": "CustomFieldsViewWidgetSection2916356568__root",
|
|
16
|
+
"breakWord": "CustomFieldsViewWidgetSection2916356568__breakWord"
|
|
17
17
|
};
|
|
18
18
|
var keyframes = exports.keyframes = {};
|
|
19
19
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.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/CustomFieldsWidget/CustomFieldsViewWidgetSection.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"CustomFieldsViewWidgetSection2916356568\";\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\":\"CustomFieldsViewWidgetSection2916356568__root\",\"breakWord\":\"CustomFieldsViewWidgetSection2916356568__breakWord\"};\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,yCAAyC;AAC3D,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,+CAA+C;EAAC,WAAW,EAAC;AAAoD,CAAC;AACvI,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":[]}
|
|
@@ -22,7 +22,7 @@ class CollectionDragAndDropState {
|
|
|
22
22
|
bi: this.bi,
|
|
23
23
|
collection: params.state.collection,
|
|
24
24
|
container: params.container,
|
|
25
|
-
|
|
25
|
+
a11yContainerRef: params.a11yContainer,
|
|
26
26
|
move: this._collectionMove.bind(this),
|
|
27
27
|
announcements: {
|
|
28
28
|
dragHandleLabel: id => {
|
|
@@ -55,7 +55,7 @@ class CollectionDragAndDropState {
|
|
|
55
55
|
get optimisticActions() {
|
|
56
56
|
return this.collection._optimisticActions;
|
|
57
57
|
}
|
|
58
|
-
init(
|
|
58
|
+
init() {
|
|
59
59
|
const {
|
|
60
60
|
optimisticActions,
|
|
61
61
|
dnd: {
|
|
@@ -66,7 +66,7 @@ class CollectionDragAndDropState {
|
|
|
66
66
|
const {
|
|
67
67
|
translate: t
|
|
68
68
|
} = container;
|
|
69
|
-
const disposers = [this.dnd.init(
|
|
69
|
+
const disposers = [this.dnd.init(), (0, _mobx.reaction)(() => this.dnd.isDisabled, isDisabled => {
|
|
70
70
|
if (!optimisticActions) {
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bexCore","require","_mobx","_DragAndDropState","_CollectionDragAndDropBI","CollectionDragAndDropState","constructor","params","_defineProperty2","default","state","bi","CollectionDragAndDropBI","dnd","DragAndDropState","collection","container","a11yContainer","move","_collectionMove","bind","announcements","dragHandleLabel","id","_this$collection$getK","translate","t","itemName","item","getKeyedItem","itemDescription","_this$collection$getK2","optimisticActions","_optimisticActions","init","disposers","reaction","isDisabled","_orderByMode","fireImmediately","addEventListener","events","hasRunningSequence","title","content","onResume","action","onMoveFailure","reason","patches","pendingMovePatches","onMoveRetry","onWindowClosedDuringSequence","window","forEach","d","removeEventListener","ev","_this$state$getCollec","_this$state","onSubmit","reorderModeState","dragEndEvent","_createDragEndEvent","onTryAgain","onBulkSubmit","submit","event","_createSimpleDragEndEvent","undefined","collectionSnapshot","getCollectionSnapshot","call","exports"],"sources":["../../../../src/components/DragAndDrop/CollectionDragAndDropState.ts"],"sourcesContent":["import {\n addEventListener,\n WixPatternsContainer,\n CollectionState,\n FiltersMap,\n} from '@wix/bex-core';\nimport { action, reaction } from 'mobx';\nimport {\n DragAndDropParentState,\n DragAndDropState,\n DragItemOver,\n} from './DragAndDropState';\nimport { CollectionDragAndDropBI } from './CollectionDragAndDropBI';\n\nexport type CollectionDragAndDropParentState<T, F extends FiltersMap> = Omit<\n DragAndDropParentState<T, F>,\n 'collection'\n> & {\n collection: CollectionState<T, F>;\n getCollectionSnapshot?: () => {\n [key: string]: string | number | undefined;\n };\n};\n\ninterface CollectionDragAndDropStateParams<T, F extends FiltersMap> {\n container: WixPatternsContainer;\n state: CollectionDragAndDropParentState<T, F>;\n a11yContainer: HTMLElement | undefined | null;\n}\nexport class CollectionDragAndDropState<T, F extends FiltersMap> {\n dnd: DragAndDropState<T, F>;\n state;\n bi;\n\n constructor(params: CollectionDragAndDropStateParams<T, F>) {\n this.state = params.state;\n this.bi = new CollectionDragAndDropBI({ state: params.state });\n\n this.dnd = new DragAndDropState<T, F>({\n state: this.state,\n bi: this.bi,\n collection: params.state.collection,\n container: params.container,\n a11yContainer: params.a11yContainer,\n move: this._collectionMove.bind(this),\n announcements: {\n dragHandleLabel: (id) => {\n const { translate: t } = params.container;\n const { itemName } = this.collection;\n\n const item = this.collection.getKeyedItem(id as string)?.item;\n\n return t('cairo.dragAndDrop.button-role-label.sr', {\n itemName: item ? itemName(item) : '',\n });\n },\n itemDescription: (id) => {\n const { itemName } = this.collection;\n\n const item = this.collection.getKeyedItem(id as string)?.item;\n\n return item ? itemName(item) : '';\n },\n },\n });\n }\n\n get collection() {\n return this.state.collection;\n }\n get optimisticActions() {\n return this.collection._optimisticActions;\n }\n\n init(params: { a11yContainer?: HTMLElement | null | undefined }) {\n const {\n optimisticActions,\n dnd: { container },\n bi,\n } = this;\n const { translate: t } = container;\n\n const disposers = [\n this.dnd.init(params),\n reaction(\n () => this.dnd.isDisabled,\n (isDisabled) => {\n if (!optimisticActions) {\n return;\n }\n\n optimisticActions._orderByMode = isDisabled ? 'orders' : 'moves';\n },\n {\n fireImmediately: true,\n },\n ),\n addEventListener(container.events, 'navigation', () => {\n if (optimisticActions?.hasRunningSequence) {\n return {\n title: t('cairo.dragAndDrop.leaveSite.modal.title'),\n content: t('cairo.dragAndDrop.leaveSite.modal.description'),\n onResume: action(() => {\n bi.onMoveFailure({\n reason: 'Left page',\n patches: optimisticActions.pendingMovePatches,\n });\n }),\n };\n }\n return null;\n }),\n ...(optimisticActions\n ? [\n addEventListener(\n optimisticActions.events,\n 'dragAndDropSequenceError',\n ({ patches }) => {\n bi.onMoveFailure({\n reason: 'Update failed',\n patches,\n });\n },\n ),\n addEventListener(\n optimisticActions.events,\n 'dragAndDropSequenceRetry',\n ({ patches }) => {\n bi.onMoveRetry({ patches });\n },\n ),\n ]\n : []),\n ];\n\n const onWindowClosedDuringSequence = () => {\n if (optimisticActions?.hasRunningSequence) {\n bi.onMoveFailure({\n reason: 'Window closed',\n patches: optimisticActions.pendingMovePatches,\n });\n }\n };\n\n window.addEventListener('unload', onWindowClosedDuringSequence);\n\n return action(() => {\n disposers.forEach((d) => d());\n window.removeEventListener('unload', onWindowClosedDuringSequence);\n });\n }\n\n _collectionMove(ev: { over: DragItemOver | null }) {\n const { onSubmit, reorderModeState } = this.dnd;\n const { optimisticActions } = this;\n if (optimisticActions == null) {\n return;\n }\n\n const dragEndEvent = this.dnd._createDragEndEvent(ev);\n\n if (dragEndEvent == null) {\n return;\n }\n\n optimisticActions.move(dragEndEvent, {\n onTryAgain: async () => {\n await reorderModeState?.onBulkSubmit();\n },\n submit: reorderModeState\n ? () => reorderModeState?.onSubmit\n : onSubmit\n ? (event) => onSubmit(this.dnd._createSimpleDragEndEvent(event))\n : undefined,\n collectionSnapshot: this.state.getCollectionSnapshot?.() ?? {},\n });\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAMA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAKA,IAAAG,wBAAA,GAAAH,OAAA;AAiBO,MAAMI,0BAA0B,CAA0B;EAK/DC,WAAWA,CAACC,MAA8C,EAAE;IAAA,IAAAC,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAC1D,IAAI,CAACC,KAAK,GAAGH,MAAM,CAACG,KAAK;IACzB,IAAI,CAACC,EAAE,GAAG,IAAIC,gDAAuB,CAAC;MAAEF,KAAK,EAAEH,MAAM,CAACG;IAAM,CAAC,CAAC;IAE9D,IAAI,CAACG,GAAG,GAAG,IAAIC,kCAAgB,CAAO;MACpCJ,KAAK,EAAE,IAAI,CAACA,KAAK;MACjBC,EAAE,EAAE,IAAI,CAACA,EAAE;MACXI,UAAU,EAAER,MAAM,CAACG,KAAK,CAACK,UAAU;MACnCC,SAAS,EAAET,MAAM,CA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C,CAAC,GAC9DE,SAAS;MACbC,kBAAkB,EAAE,EAAAZ,qBAAA,IAAAC,WAAA,OAAI,CAACjD,KAAK,EAAC6D,qBAAqB,qBAAhCb,qBAAA,CAAAc,IAAA,CAAAb,WAAmC,CAAC,KAAI,CAAC;IAC/D,CAAC,CAAC;EACJ;AACF;AAACc,OAAA,CAAApE,0BAAA,GAAAA,0BAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_bexCore","require","_mobx","_DragAndDropState","_CollectionDragAndDropBI","CollectionDragAndDropState","constructor","params","_defineProperty2","default","state","bi","CollectionDragAndDropBI","dnd","DragAndDropState","collection","container","a11yContainerRef","a11yContainer","move","_collectionMove","bind","announcements","dragHandleLabel","id","_this$collection$getK","translate","t","itemName","item","getKeyedItem","itemDescription","_this$collection$getK2","optimisticActions","_optimisticActions","init","disposers","reaction","isDisabled","_orderByMode","fireImmediately","addEventListener","events","hasRunningSequence","title","content","onResume","action","onMoveFailure","reason","patches","pendingMovePatches","onMoveRetry","onWindowClosedDuringSequence","window","forEach","d","removeEventListener","ev","_this$state$getCollec","_this$state","onSubmit","reorderModeState","dragEndEvent","_createDragEndEvent","onTryAgain","onBulkSubmit","submit","event","_createSimpleDragEndEvent","undefined","collectionSnapshot","getCollectionSnapshot","call","exports"],"sources":["../../../../src/components/DragAndDrop/CollectionDragAndDropState.ts"],"sourcesContent":["import {\n addEventListener,\n WixPatternsContainer,\n CollectionState,\n FiltersMap,\n} from '@wix/bex-core';\nimport { action, reaction } from 'mobx';\nimport {\n DragAndDropParentState,\n DragAndDropState,\n DragItemOver,\n} from './DragAndDropState';\nimport { CollectionDragAndDropBI } from './CollectionDragAndDropBI';\n\nexport type CollectionDragAndDropParentState<T, F extends FiltersMap> = Omit<\n DragAndDropParentState<T, F>,\n 'collection'\n> & {\n collection: CollectionState<T, F>;\n getCollectionSnapshot?: () => {\n [key: string]: string | number | undefined;\n };\n};\n\ninterface CollectionDragAndDropStateParams<T, F extends FiltersMap> {\n container: WixPatternsContainer;\n state: CollectionDragAndDropParentState<T, F>;\n a11yContainer: {\n current: HTMLElement | null | undefined;\n };\n}\nexport class CollectionDragAndDropState<T, F extends FiltersMap> {\n dnd: DragAndDropState<T, F>;\n state;\n bi;\n\n constructor(params: CollectionDragAndDropStateParams<T, F>) {\n this.state = params.state;\n this.bi = new CollectionDragAndDropBI({ state: params.state });\n\n this.dnd = new DragAndDropState<T, F>({\n state: this.state,\n bi: this.bi,\n collection: params.state.collection,\n container: params.container,\n a11yContainerRef: params.a11yContainer,\n move: this._collectionMove.bind(this),\n announcements: {\n dragHandleLabel: (id) => {\n const { translate: t } = params.container;\n const { itemName } = this.collection;\n\n const item = this.collection.getKeyedItem(id as string)?.item;\n\n return t('cairo.dragAndDrop.button-role-label.sr', {\n itemName: item ? itemName(item) : '',\n });\n },\n itemDescription: (id) => {\n const { itemName } = this.collection;\n\n const item = this.collection.getKeyedItem(id as string)?.item;\n\n return item ? itemName(item) : '';\n },\n },\n });\n }\n\n get collection() {\n return this.state.collection;\n }\n get optimisticActions() {\n return this.collection._optimisticActions;\n }\n\n init() {\n const {\n optimisticActions,\n dnd: { container },\n bi,\n } = this;\n const { translate: t } = container;\n\n const disposers = [\n this.dnd.init(),\n reaction(\n () => this.dnd.isDisabled,\n (isDisabled) => {\n if (!optimisticActions) {\n return;\n }\n\n optimisticActions._orderByMode = isDisabled ? 'orders' : 'moves';\n },\n {\n fireImmediately: true,\n },\n ),\n addEventListener(container.events, 'navigation', () => {\n if (optimisticActions?.hasRunningSequence) {\n return {\n title: t('cairo.dragAndDrop.leaveSite.modal.title'),\n content: t('cairo.dragAndDrop.leaveSite.modal.description'),\n onResume: action(() => {\n bi.onMoveFailure({\n reason: 'Left page',\n patches: optimisticActions.pendingMovePatches,\n });\n }),\n };\n }\n return null;\n }),\n ...(optimisticActions\n ? [\n addEventListener(\n optimisticActions.events,\n 'dragAndDropSequenceError',\n ({ patches }) => {\n bi.onMoveFailure({\n reason: 'Update failed',\n patches,\n });\n },\n ),\n addEventListener(\n optimisticActions.events,\n 'dragAndDropSequenceRetry',\n ({ patches }) => {\n bi.onMoveRetry({ patches });\n },\n ),\n ]\n : []),\n ];\n\n const onWindowClosedDuringSequence = () => {\n if (optimisticActions?.hasRunningSequence) {\n bi.onMoveFailure({\n reason: 'Window closed',\n patches: optimisticActions.pendingMovePatches,\n });\n }\n };\n\n window.addEventListener('unload', onWindowClosedDuringSequence);\n\n return action(() => {\n disposers.forEach((d) => d());\n window.removeEventListener('unload', onWindowClosedDuringSequence);\n });\n }\n\n _collectionMove(ev: { over: DragItemOver | null }) {\n const { onSubmit, reorderModeState } = this.dnd;\n const { optimisticActions } = this;\n if (optimisticActions == null) {\n return;\n }\n\n const dragEndEvent = this.dnd._createDragEndEvent(ev);\n\n if (dragEndEvent == null) {\n return;\n }\n\n optimisticActions.move(dragEndEvent, {\n onTryAgain: async () => {\n await reorderModeState?.onBulkSubmit();\n },\n submit: reorderModeState\n ? () => reorderModeState?.onSubmit\n : onSubmit\n ? (event) => onSubmit(this.dnd._createSimpleDragEndEvent(event))\n : undefined,\n collectionSnapshot: this.state.getCollectionSnapshot?.() ?? {},\n });\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAMA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAKA,IAAAG,wBAAA,GAAAH,OAAA;AAmBO,MAAMI,0BAA0B,CAA0B;EAK/DC,WAAWA,CAACC,MAA8C,EAAE;IAAA,IAAAC,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAC1D,IAAI,CAACC,KAAK,GAAGH,MAAM,CAACG,KAAK;IACzB,IAAI,CAACC,EAAE,GAAG,IAAIC,gDAAuB,CAAC;MAAEF,KAAK,EAAEH,MAAM,CAACG;IAAM,CAAC,CAAC;IAE9D,IAAI,CAACG,GAAG,GAAG,IAAIC,kCA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,gBAAgB,oBAAhBA,gBAAgB,CAAED,QAAQ,GAChCA,QAAQ,GACPO,KAAK,IAAKP,QAAQ,CAAC,IAAI,CAAChD,GAAG,CAACwD,yBAAyB,CAACD,KAAK,CAAC,CAAC,GAC9DE,SAAS;MACbC,kBAAkB,EAAE,EAAAZ,qBAAA,IAAAC,WAAA,OAAI,CAAClD,KAAK,EAAC8D,qBAAqB,qBAAhCb,qBAAA,CAAAc,IAAA,CAAAb,WAAmC,CAAC,KAAI,CAAC;IAC/D,CAAC,CAAC;EACJ;AACF;AAACc,OAAA,CAAArE,0BAAA,GAAAA,0BAAA","ignoreList":[]}
|
|
@@ -27,9 +27,6 @@ function _DragAndDropAnnouncements(props) {
|
|
|
27
27
|
total
|
|
28
28
|
}
|
|
29
29
|
} = state;
|
|
30
|
-
if (state.a11yContainer == null) {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
30
|
const announcement = (() => {
|
|
34
31
|
switch (state.status) {
|
|
35
32
|
case 'start':
|
|
@@ -73,11 +70,14 @@ function _DragAndDropAnnouncements(props) {
|
|
|
73
70
|
__self: this,
|
|
74
71
|
__source: {
|
|
75
72
|
fileName: _jsxFileName,
|
|
76
|
-
lineNumber:
|
|
73
|
+
lineNumber: 71,
|
|
77
74
|
columnNumber: 5
|
|
78
75
|
}
|
|
79
76
|
}, announcement);
|
|
80
|
-
|
|
77
|
+
if (!state.a11yContainerRef.current) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
child = /*#__PURE__*/(0, _reactDom.createPortal)(child, state.a11yContainerRef.current);
|
|
81
81
|
return child;
|
|
82
82
|
}
|
|
83
83
|
const DragAndDropAnnouncements = exports.DragAndDropAnnouncements = (0, _mobxReactLite.observer)(_DragAndDropAnnouncements);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactDom","require","_react","_interopRequireDefault","_mobxReactLite","_VisuallyHidden","_react2","_jsxFileName","_DragAndDropAnnouncements","props","state","dataHook","environment","language","translate","t","useWixPatternsContainer","active","over","collection","total","
|
|
1
|
+
{"version":3,"names":["_reactDom","require","_react","_interopRequireDefault","_mobxReactLite","_VisuallyHidden","_react2","_jsxFileName","_DragAndDropAnnouncements","props","state","dataHook","environment","language","translate","t","useWixPatternsContainer","active","over","collection","total","announcement","status","id","currentNumber","index","totalNumber","child","default","createElement","style","visuallyHidden","role","lang","__self","__source","fileName","lineNumber","columnNumber","a11yContainerRef","current","createPortal","DragAndDropAnnouncements","exports","observer"],"sources":["../../../../src/components/DragAndDrop/DragAndDropAnnouncements.tsx"],"sourcesContent":["import { DragAndDropState } from './DragAndDropState';\nimport { FiltersMap } from '@wix/bex-core';\nimport { createPortal } from 'react-dom';\nimport React from 'react';\nimport { observer } from 'mobx-react-lite';\nimport { visuallyHidden } from '../VisuallyHidden';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\n\nexport interface DragAndDropAnnouncementsProps<T, F extends FiltersMap> {\n state: DragAndDropState<T, F>;\n dataHook?: string;\n}\n\nfunction _DragAndDropAnnouncements<T, F extends FiltersMap>(\n props: DragAndDropAnnouncementsProps<T, F>,\n) {\n const { state, dataHook } = props;\n\n const {\n environment: { language },\n translate: t,\n } = useWixPatternsContainer();\n\n const {\n active,\n over,\n collection: { total },\n } = state;\n\n const announcement = (() => {\n switch (state.status) {\n case 'start':\n if (active) {\n return t('cairo.dragAndDrop.live-region.itemGrabbed.sr');\n }\n\n return;\n\n case 'over':\n if (over && over.id !== active?.id) {\n return t('cairo.dragAndDrop.live-region.itemDragged.sr', {\n currentNumber: over.index + 1,\n totalNumber: total,\n });\n }\n\n if (active) {\n return t('cairo.dragAndDrop.live-region.itemGrabbed.sr');\n }\n\n return;\n case 'end':\n if (over) {\n if (over.id === active?.id) {\n return t('cairo.dragAndDrop.reorder-cancelled.sr');\n }\n\n return t('cairo.dragAndDrop.live-region.itemDropped.sr', {\n currentNumber: over.index + 1,\n });\n }\n return;\n case 'cancel':\n return t('cairo.dragAndDrop.reorder-cancelled.sr');\n }\n\n return;\n })();\n\n let child = (\n <div\n data-hook={dataHook}\n style={visuallyHidden}\n role=\"status\"\n aria-live=\"assertive\"\n aria-atomic\n lang={language}\n >\n {announcement}\n </div>\n );\n\n if (!state.a11yContainerRef.current) {\n return null;\n }\n\n child = createPortal(child, state.a11yContainerRef.current);\n\n return child;\n}\n\nexport const DragAndDropAnnouncements = observer(_DragAndDropAnnouncements);\n"],"mappings":";;;;;AAEA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAA8D,IAAAM,YAAA;AAO9D,SAASC,yBAAyBA,CAChCC,KAA0C,EAC1C;EACA,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAC,GAAGF,KAAK;EAEjC,MAAM;IACJG,WAAW,EAAE;MAAEC;IAAS,CAAC;IACzBC,SAAS,EAAEC;EACb,CAAC,GAAG,IAAAC,+BAAuB,EAAC,CAAC;EAE7B,MAAM;IACJC,MAAM;IACNC,IAAI;IACJC,UAAU,EAAE;MAAEC;IAAM;EACtB,CAAC,GAAGV,KAAK;EAET,MAAMW,YAAY,GAAG,CAAC,MAAM;IAC1B,QAAQX,KAAK,CAACY,MAAM;MAClB,KAAK,OAAO;QACV,IAAIL,MAAM,EAAE;UACV,OAAOF,CAAC,CAAC,8CAA8C,CAAC;QAC1D;QAEA;MAEF,KAAK,MAAM;QACT,IAAIG,IAAI,IAAIA,IAAI,CAACK,EAAE,MAAKN,MAAM,oBAANA,MAAM,CAAEM,EAAE,GAAE;UAClC,OAAOR,CAAC,CAAC,8CAA8C,EAAE;YACvDS,aAAa,EAAEN,IAAI,CAACO,KAAK,GAAG,CAAC;YAC7BC,WAAW,EAAEN;UACf,CAAC,CAAC;QACJ;QAEA,IAAIH,MAAM,EAAE;UACV,OAAOF,CAAC,CAAC,8CAA8C,CAAC;QAC1D;QAEA;MACF,KAAK,KAAK;QACR,IAAIG,IAAI,EAAE;UACR,IAAIA,IAAI,CAACK,EAAE,MAAKN,MAAM,oBAANA,MAAM,CAAEM,EAAE,GAAE;YAC1B,OAAOR,CAAC,CAAC,wCAAwC,CAAC;UACpD;UAEA,OAAOA,CAAC,CAAC,8CAA8C,EAAE;YACvDS,aAAa,EAAEN,IAAI,CAACO,KAAK,GAAG;UAC9B,CAAC,CAAC;QACJ;QACA;MACF,KAAK,QAAQ;QACX,OAAOV,CAAC,CAAC,wCAAwC,CAAC;IACtD;IAEA;EACF,CAAC,EAAE,CAAC;EAEJ,IAAIY,KAAK,gBACPzB,MAAA,CAAA0B,OAAA,CAAAC,aAAA;IACE,aAAWlB,QAAS;IACpBmB,KAAK,EAAEC,8BAAe;IACtBC,IAAI,EAAC,QAAQ;IACb,aAAU,WAAW;IACrB,mBAAW;IACXC,IAAI,EAAEpB,QAAS;IAAAqB,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA7B,YAAA;MAAA8B,UAAA;MAAAC,YAAA;IAAA;EAAA,GAEdjB,YACE,CACN;EAED,IAAI,CAACX,KAAK,CAAC6B,gBAAgB,CAACC,OAAO,EAAE;IACnC,OAAO,IAAI;EACb;EAEAb,KAAK,gBAAG,IAAAc,sBAAY,EAACd,KAAK,EAAEjB,KAAK,CAAC6B,gBAAgB,CAACC,OAAO,CAAC;EAE3D,OAAOb,KAAK;AACd;AAEO,MAAMe,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GAAG,IAAAE,uBAAQ,EAACpC,yBAAyB,CAAC","ignoreList":[]}
|
|
@@ -35,7 +35,7 @@ class DragAndDropState {
|
|
|
35
35
|
(0, _defineProperty2.default)(this, "_isHandleActive", false);
|
|
36
36
|
(0, _defineProperty2.default)(this, "_isKeyboardDragging", false);
|
|
37
37
|
(0, _defineProperty2.default)(this, "_moveId", '');
|
|
38
|
-
(0, _defineProperty2.default)(this, "
|
|
38
|
+
(0, _defineProperty2.default)(this, "a11yContainerRef", void 0);
|
|
39
39
|
(0, _defineProperty2.default)(this, "_baseAnimation", {
|
|
40
40
|
duration: 250,
|
|
41
41
|
easing: 'cubic-bezier(0.33, 1, 0.68, 1)'
|
|
@@ -152,7 +152,7 @@ class DragAndDropState {
|
|
|
152
152
|
this.container = params.container;
|
|
153
153
|
this.state = params.state;
|
|
154
154
|
this.collection = params.collection;
|
|
155
|
-
this.
|
|
155
|
+
this.a11yContainerRef = params.a11yContainerRef;
|
|
156
156
|
this.overlayRect = new _RectState.RectState({
|
|
157
157
|
container: this.container
|
|
158
158
|
});
|
|
@@ -196,7 +196,6 @@ class DragAndDropState {
|
|
|
196
196
|
overlayRect: _mobx.observable.ref,
|
|
197
197
|
overId: _mobx.observable.ref,
|
|
198
198
|
status: _mobx.observable.ref,
|
|
199
|
-
a11yContainer: _mobx.observable.ref,
|
|
200
199
|
onDragStart: _mobx.action,
|
|
201
200
|
init: _mobx.action,
|
|
202
201
|
beforeDrop: _mobx.action,
|
|
@@ -405,15 +404,9 @@ class DragAndDropState {
|
|
|
405
404
|
}
|
|
406
405
|
return false;
|
|
407
406
|
}
|
|
408
|
-
init({
|
|
409
|
-
a11yContainer
|
|
410
|
-
}) {
|
|
411
|
-
this.a11yContainer = a11yContainer;
|
|
412
|
-
this.state._dnd = this;
|
|
407
|
+
init() {
|
|
413
408
|
document.addEventListener('keydown', this._onGlobalKeydown);
|
|
414
409
|
return (0, _mobx.action)(() => {
|
|
415
|
-
this.state._dnd = null;
|
|
416
|
-
this.a11yContainer = null;
|
|
417
410
|
document.removeEventListener('keydown', this._onGlobalKeydown);
|
|
418
411
|
});
|
|
419
412
|
}
|