@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/MaxLines/MaxLines.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/MaxLines/MaxLines.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"MaxLines1427098083\";\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\":\"MaxLines1427098083__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,oBAAoB;AACtC,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAA0B,CAAC;AACjD,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "MultiBulkActionToolbar2674202735";
|
|
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": "MultiBulkActionToolbar2674202735__root"
|
|
16
16
|
};
|
|
17
17
|
var keyframes = exports.keyframes = {};
|
|
18
18
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"MultiBulkActionToolbar2674202735\";\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\":\"MultiBulkActionToolbar2674202735__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,kCAAkC;AACpD,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;AAAwC,CAAC;AAC/D,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":[]}
|
|
@@ -11,6 +11,7 @@ var _wixUiIconsCommon = require("@wix/wix-ui-icons-common");
|
|
|
11
11
|
var _state = require("../../state");
|
|
12
12
|
var _MultiLevelSortingPanel = require("../MultiLevelSortingPanel");
|
|
13
13
|
var _CounterBadgeButton = require("../CounterBadgeButton");
|
|
14
|
+
var _react2 = require("@wix/bex-core/react");
|
|
14
15
|
var _jsxFileName = "/home/builduser/work/db7ea24852bc3350/packages/cairo/dist/cjs/components/MultiLevelSorting/MultiLevelSortingCTAButton.tsx";
|
|
15
16
|
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); }
|
|
16
17
|
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; }
|
|
@@ -24,9 +25,13 @@ function _MultiLevelSortingCTAButton(props) {
|
|
|
24
25
|
translate: t
|
|
25
26
|
}
|
|
26
27
|
} = state;
|
|
28
|
+
const {
|
|
29
|
+
modalsContainerRef
|
|
30
|
+
} = (0, _react2.usePageContext)();
|
|
27
31
|
const [multiLevelSortingState] = (0, _react.useState)(() => (0, _mobx.runInAction)(() => state.multiLevelSorting ?? (state.multiLevelSorting = new _state.MultiLevelSortingState({
|
|
28
32
|
table: state,
|
|
29
|
-
container: state.container
|
|
33
|
+
container: state.container,
|
|
34
|
+
modalsContainerRef
|
|
30
35
|
}))));
|
|
31
36
|
(0, _react.useEffect)(() => multiLevelSortingState.init(), []);
|
|
32
37
|
(0, _react.useEffect)(() => {
|
|
@@ -38,7 +43,7 @@ function _MultiLevelSortingCTAButton(props) {
|
|
|
38
43
|
__self: this,
|
|
39
44
|
__source: {
|
|
40
45
|
fileName: _jsxFileName,
|
|
41
|
-
lineNumber:
|
|
46
|
+
lineNumber: 45,
|
|
42
47
|
columnNumber: 5
|
|
43
48
|
}
|
|
44
49
|
}, /*#__PURE__*/_react.default.createElement(_designSystem.Tooltip, {
|
|
@@ -46,7 +51,7 @@ function _MultiLevelSortingCTAButton(props) {
|
|
|
46
51
|
__self: this,
|
|
47
52
|
__source: {
|
|
48
53
|
fileName: _jsxFileName,
|
|
49
|
-
lineNumber:
|
|
54
|
+
lineNumber: 49,
|
|
50
55
|
columnNumber: 7
|
|
51
56
|
}
|
|
52
57
|
}, /*#__PURE__*/_react.default.createElement(_designSystem.IconButton, {
|
|
@@ -66,14 +71,14 @@ function _MultiLevelSortingCTAButton(props) {
|
|
|
66
71
|
__self: this,
|
|
67
72
|
__source: {
|
|
68
73
|
fileName: _jsxFileName,
|
|
69
|
-
lineNumber:
|
|
74
|
+
lineNumber: 50,
|
|
70
75
|
columnNumber: 9
|
|
71
76
|
}
|
|
72
77
|
}, /*#__PURE__*/_react.default.createElement(_wixUiIconsCommon.ChangeOrderSmall, {
|
|
73
78
|
__self: this,
|
|
74
79
|
__source: {
|
|
75
80
|
fileName: _jsxFileName,
|
|
76
|
-
lineNumber:
|
|
81
|
+
lineNumber: 66,
|
|
77
82
|
columnNumber: 11
|
|
78
83
|
}
|
|
79
84
|
}))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobx","_mobxReactLite","_designSystem","_wixUiIconsCommon","_state","_MultiLevelSortingPanel","_CounterBadgeButton","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_MultiLevelSortingCTAButton","props","state","panels","container","translate","multiLevelSortingState","useState","runInAction","multiLevelSorting","MultiLevelSortingState","table","useEffect","init","registerSidePanel","MultiLevelSortingPanelEntry","createElement","CounterBadgeButton","dataHook","count","sortListSize","__self","__source","fileName","lineNumber","columnNumber","Tooltip","content","IconButton","size","priority","onClick","isOpen","toggleSidePanel","reportSidePanelOpen","reportSidePanelClose","origin","ChangeOrderSmall","MultiLevelSortingCTAButton","exports","observer"],"sources":["../../../../src/components/MultiLevelSorting/MultiLevelSortingCTAButton.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { runInAction } from 'mobx';\nimport { observer } from 'mobx-react-lite';\nimport { FiltersMap } from '@wix/bex-core';\nimport {
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobx","_mobxReactLite","_designSystem","_wixUiIconsCommon","_state","_MultiLevelSortingPanel","_CounterBadgeButton","_react2","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_MultiLevelSortingCTAButton","props","state","panels","container","translate","modalsContainerRef","usePageContext","multiLevelSortingState","useState","runInAction","multiLevelSorting","MultiLevelSortingState","table","useEffect","init","registerSidePanel","MultiLevelSortingPanelEntry","createElement","CounterBadgeButton","dataHook","count","sortListSize","__self","__source","fileName","lineNumber","columnNumber","Tooltip","content","IconButton","size","priority","onClick","isOpen","toggleSidePanel","reportSidePanelOpen","reportSidePanelClose","origin","ChangeOrderSmall","MultiLevelSortingCTAButton","exports","observer"],"sources":["../../../../src/components/MultiLevelSorting/MultiLevelSortingCTAButton.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { runInAction } from 'mobx';\nimport { observer } from 'mobx-react-lite';\nimport { FiltersMap } from '@wix/bex-core';\nimport { IconButton, Tooltip } from '@wix/design-system';\nimport { ChangeOrderSmall } from '@wix/wix-ui-icons-common';\nimport { MultiLevelSortingState, ToolbarCollectionState } from '../../state';\nimport { MultiLevelSortingPanelEntry } from '../MultiLevelSortingPanel';\nimport { CounterBadgeButton } from '../CounterBadgeButton';\nimport { usePageContext } from '@wix/bex-core/react';\n\nexport interface MultiLevelSortingCTAButtonProps<T, F extends FiltersMap> {\n state: ToolbarCollectionState<T, F>;\n}\n\nexport function _MultiLevelSortingCTAButton<T, F extends FiltersMap>(\n props: MultiLevelSortingCTAButtonProps<T, F>,\n) {\n const { state } = props;\n const {\n panels,\n container: { translate: t },\n } = state;\n\n const { modalsContainerRef } = usePageContext();\n\n const [multiLevelSortingState] = useState(() =>\n runInAction(\n () =>\n (state.multiLevelSorting ??= new MultiLevelSortingState<T, F>({\n table: state,\n container: state.container,\n modalsContainerRef,\n })),\n ),\n );\n\n useEffect(() => multiLevelSortingState.init(), []);\n\n useEffect(() => {\n panels.registerSidePanel('multiLevelSorting', MultiLevelSortingPanelEntry);\n }, []);\n\n return (\n <CounterBadgeButton\n dataHook=\"multi-level-sorting-button-counter\"\n count={multiLevelSortingState.sortListSize}\n >\n <Tooltip content={t('cairo.table.advanced-sorting.button.tooltip')}>\n <IconButton\n size=\"small\"\n priority=\"secondary\"\n dataHook=\"multi-level-sorting-button\"\n onClick={() => {\n const isOpen = panels.toggleSidePanel('multiLevelSorting');\n\n if (isOpen) {\n multiLevelSortingState.reportSidePanelOpen();\n } else {\n multiLevelSortingState.reportSidePanelClose({\n origin: 'Sort CTA',\n });\n }\n }}\n >\n <ChangeOrderSmall />\n </IconButton>\n </Tooltip>\n </CounterBadgeButton>\n );\n}\n\nexport const MultiLevelSortingCTAButton = observer(_MultiLevelSortingCTAButton);\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,uBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,O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rCa,OAAO,EAAEA,CAAA,KAAM;MACb,MAAMC,MAAM,GAAG/B,MAAM,CAACgC,eAAe,CAAC,mBAAmB,CAAC;MAE1D,IAAID,MAAM,EAAE;QACV1B,sBAAsB,CAAC4B,mBAAmB,CAAC,CAAC;MAC9C,CAAC,MAAM;QACL5B,sBAAsB,CAAC6B,oBAAoB,CAAC;UAC1CC,MAAM,EAAE;QACV,CAAC,CAAC;MACJ;IACF,CAAE;IAAAf,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA9C,YAAA;MAAA+C,UAAA;MAAAC,YAAA;IAAA;EAAA,gBAEF3D,MAAA,CAAAkB,OAAA,CAAAgC,aAAA,CAAC5C,iBAAA,CAAAiE,gBAAgB;IAAAhB,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA9C,YAAA;MAAA+C,UAAA;MAAAC,YAAA;IAAA;EAAA,CAAE,CACT,CACL,CACS,CAAC;AAEzB;AAEO,MAAMa,0BAA0B,GAAAC,OAAA,CAAAD,0BAAA,GAAG,IAAAE,uBAAQ,EAAC1C,2BAA2B,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_providers","_CollectionCard","_NestedTableWSRTable","_mobxReactLite","_minimalRequiredWdsRuntimeCheck","_jsxFileName","_NestedTable","props","state","dataHook","toolbar","process","env","NODE_ENV","minimalRequiredWdsRuntimeCheck","required","requiredBy","default","createElement","CollectionCard","renderError","__self","__source","fileName","lineNumber","columnNumber","TableProvider","value","tableState","NestedTableWSRTable","_extends2","NestedTable","exports","observer"],"sources":["../../../../src/components/NestedTable/NestedTable.tsx"],"sourcesContent":["import React, { ReactElement, ReactNode } from 'react';\nimport { TableProvider } from '../../providers';\nimport { CollectionCard } from '../CollectionCard';\nimport { NestedTableState } from '../../state';\nimport { ToolbarBaseProps } from '../ToolbarCollection';\nimport { NestedTableWSRTable } from './NestedTableWSRTable';\nimport { observer } from 'mobx-react-lite';\nimport { minimalRequiredWdsRuntimeCheck } from '../../minimalRequiredWdsRuntimeCheck';\nimport {\n DragAndDropBulkSubmit,\n DragAndDropCancel,\n DragAndDropSubmit,\n} from '../DragAndDrop';\nimport { NestedTableDragAndDrop } from '../NestedTableDragAndDrop';\n\nexport interface NestedTableProps<C extends string>\n extends ToolbarBaseProps<C> {\n /**\n * A state object created with [`useNestedTable`](./?path=/story/common-hooks--usenestedtable)\n */\n state: NestedTableState<C>;\n /**\n * A function that renders when there's an error fetching data from the server.<br> <br>\n * Supported parameters: <br>\n * - `err`: [object] The error thrown by the [`fetchData()`](./?path=/story/common-hooks--usecollection) function. <br>\n * - `isOnline`: [bool] Whether internet connection is available. <br>\n * - `retry`: [func] Retry collection fetch on failed response. Similar to `collection.retryFetch`.\n */\n renderError?: (params: {\n err: unknown;\n isOnline: boolean;\n retry: () => void;\n }) => ReactElement;\n /**\n * Shown when the collection is empty.\n * Pass either a [`<CollectionEmptyState />`](./?path=/story/components-collection-features--empty-state)\n * or [`<CollectionPremiuimEmptyState />`](./?path=/story/components-collection-features--premium-empty-state) component.\n */\n emptyState?: ReactNode;\n\n /**\n * Shown when a search or filter has no results.\n * Pass a [`<CollectionNoResultsState />`](./?path=/story/components-collection-features--no-results-state) component.\n */\n noResultsState?: ReactNode;\n horizontalScroll?: boolean;\n dataHook?: string;\n rowHeight?: number;\n estimatedRowHeight?: number;\n /**\n * Width of the column containing the `actionCell` component.\n */\n actionCellWidth?: string | number;\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 */\n dragAndDrop?: typeof NestedTableDragAndDrop;\n\n /**\n * A function that submits a drop event to the server. The function accepts the following arguments: <br>\n * - `from: {item: T; index: number}` - Item that was dragged\n * - `after: null | {item: T; index: number}` - Item that the dragged item was dropped after. If dropped at the head of the collection, this argument will be `null`\n * - `filters` - Currently applied filters, for cases your server holds a unique ordering per filtering (see `dragAndDropCategories` prop)\n *\n * @returns Promise\n */\n dragAndDropSubmit?: DragAndDropSubmit<any, any>;\n\n /**\n * A function that submits a drop event to the server. The function accepts the array of following objects: <br>\n * - `from: {item: T; index: number}` - Item that was dragged\n * - `after: null | {item: T; index: number}` - Item that the dragged item was dropped after. If dropped at the head of the collection, this argument will be `null`\n * - `filters` - Currently applied filters, for cases your server holds a unique ordering per filtering (see `dragAndDropCategories` prop)\n *\n * @returns Promise\n */\n dragAndDropBulkSubmit?: DragAndDropBulkSubmit<any, any>;\n\n /**\n * A function that cancels a drop event. The function accepts the following arguments: <br>\n * - `from: {item: T; index: number}` - Item that was dragged\n * - `after: null | {item: T; index: number}` - Item that the dragged item was dropped after. If dropped at the head of the collection, this argument will be `null`\n * - `filters` - Currently applied filters, for cases your server holds a unique ordering per filtering (see `dragAndDropCategories` prop)\n *\n * If the move should be cancelled, the function should return a toast config object with a message explaining why the move was cancelled. Otherwise, the function should return nullish value.\n */\n dragAndDropCancel?: DragAndDropCancel<any, any>;\n\n /**\n * List of filters on which to enable drag and drop functionality. For example, you can enable the drag and drop functionality on the 'Age' filter, but not on the 'Phone Number' filter.\n * If no props are passed, the drag and drop feature is disabled, and unavailable for the table. To enable the drag and drop feature without the use of filters, pass an empty array. For example, `dragAndDropCategories={ [ [], ['status'] ] }`.\n */\n dragAndDropCategories?: (keyof any)[][] | null;\n\n /**\n * Indicates whether the table should have an internal scroll (instead of the default page scroll)\n */\n internalScroll?: boolean;\n}\n\nfunction _NestedTable<C extends string>(props: NestedTableProps<C>) {\n const { state, dataHook } = props;\n\n const { toolbar } = state;\n\n if (process.env.NODE_ENV !== 'production') {\n minimalRequiredWdsRuntimeCheck({\n required: '^1.64.1',\n requiredBy: 'Cairo/NestedTable',\n });\n }\n\n return (\n <CollectionCard renderError={false} state={toolbar} dataHook={dataHook}>\n <TableProvider value={state.tableState}>\n <NestedTableWSRTable {...props} />\n </TableProvider>\n </CollectionCard>\n );\n}\n\nexport const NestedTable = observer(_NestedTable);\n"],"m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AAErB;AAEO,MAAMM,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,IAAAE,uBAAQ,EAAC3B,YAAY,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_providers","_CollectionCard","_NestedTableWSRTable","_mobxReactLite","_minimalRequiredWdsRuntimeCheck","_jsxFileName","_NestedTable","props","state","dataHook","toolbar","process","env","NODE_ENV","minimalRequiredWdsRuntimeCheck","required","requiredBy","default","createElement","CollectionCard","renderError","__self","__source","fileName","lineNumber","columnNumber","TableProvider","value","tableState","NestedTableWSRTable","_extends2","NestedTable","exports","observer"],"sources":["../../../../src/components/NestedTable/NestedTable.tsx"],"sourcesContent":["import React, { ReactElement, ReactNode } from 'react';\nimport { TableProvider } from '../../providers';\nimport { CollectionCard } from '../CollectionCard';\nimport { NestedTableState } from '../../state';\nimport { ToolbarBaseProps } from '../ToolbarCollection';\nimport { NestedTableWSRTable } from './NestedTableWSRTable';\nimport { observer } from 'mobx-react-lite';\nimport { minimalRequiredWdsRuntimeCheck } from '../../minimalRequiredWdsRuntimeCheck';\nimport {\n DragAndDropBulkSubmit,\n DragAndDropCancel,\n DragAndDropSubmit,\n} from '../DragAndDrop';\nimport { NestedTableDragAndDrop } from '../NestedTableDragAndDrop/NestedTableDragAndDrop';\n\nexport interface NestedTableProps<C extends string>\n extends ToolbarBaseProps<C> {\n /**\n * A state object created with [`useNestedTable`](./?path=/story/common-hooks--usenestedtable)\n */\n state: NestedTableState<C>;\n /**\n * A function that renders when there's an error fetching data from the server.<br> <br>\n * Supported parameters: <br>\n * - `err`: [object] The error thrown by the [`fetchData()`](./?path=/story/common-hooks--usecollection) function. <br>\n * - `isOnline`: [bool] Whether internet connection is available. <br>\n * - `retry`: [func] Retry collection fetch on failed response. Similar to `collection.retryFetch`.\n */\n renderError?: (params: {\n err: unknown;\n isOnline: boolean;\n retry: () => void;\n }) => ReactElement;\n /**\n * Shown when the collection is empty.\n * Pass either a [`<CollectionEmptyState />`](./?path=/story/components-collection-features--empty-state)\n * or [`<CollectionPremiuimEmptyState />`](./?path=/story/components-collection-features--premium-empty-state) component.\n */\n emptyState?: ReactNode;\n\n /**\n * Shown when a search or filter has no results.\n * Pass a [`<CollectionNoResultsState />`](./?path=/story/components-collection-features--no-results-state) component.\n */\n noResultsState?: ReactNode;\n horizontalScroll?: boolean;\n dataHook?: string;\n rowHeight?: number;\n estimatedRowHeight?: number;\n /**\n * Width of the column containing the `actionCell` component.\n */\n actionCellWidth?: string | number;\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 */\n dragAndDrop?: typeof NestedTableDragAndDrop;\n\n /**\n * A function that submits a drop event to the server. The function accepts the following arguments: <br>\n * - `from: {item: T; index: number}` - Item that was dragged\n * - `after: null | {item: T; index: number}` - Item that the dragged item was dropped after. If dropped at the head of the collection, this argument will be `null`\n * - `filters` - Currently applied filters, for cases your server holds a unique ordering per filtering (see `dragAndDropCategories` prop)\n *\n * @returns Promise\n */\n dragAndDropSubmit?: DragAndDropSubmit<any, any>;\n\n /**\n * A function that submits a drop event to the server. The function accepts the array of following objects: <br>\n * - `from: {item: T; index: number}` - Item that was dragged\n * - `after: null | {item: T; index: number}` - Item that the dragged item was dropped after. If dropped at the head of the collection, this argument will be `null`\n * - `filters` - Currently applied filters, for cases your server holds a unique ordering per filtering (see `dragAndDropCategories` prop)\n *\n * @returns Promise\n */\n dragAndDropBulkSubmit?: DragAndDropBulkSubmit<any, any>;\n\n /**\n * A function that cancels a drop event. The function accepts the following arguments: <br>\n * - `from: {item: T; index: number}` - Item that was dragged\n * - `after: null | {item: T; index: number}` - Item that the dragged item was dropped after. If dropped at the head of the collection, this argument will be `null`\n * - `filters` - Currently applied filters, for cases your server holds a unique ordering per filtering (see `dragAndDropCategories` prop)\n *\n * If the move should be cancelled, the function should return a toast config object with a message explaining why the move was cancelled. Otherwise, the function should return nullish value.\n */\n dragAndDropCancel?: DragAndDropCancel<any, any>;\n\n /**\n * List of filters on which to enable drag and drop functionality. For example, you can enable the drag and drop functionality on the 'Age' filter, but not on the 'Phone Number' filter.\n * If no props are passed, the drag and drop feature is disabled, and unavailable for the table. To enable the drag and drop feature without the use of filters, pass an empty array. For example, `dragAndDropCategories={ [ [], ['status'] ] }`.\n */\n dragAndDropCategories?: (keyof any)[][] | null;\n\n /**\n * Indicates whether the table should have an internal scroll (instead of the default page scroll)\n */\n internalScroll?: boolean;\n}\n\nfunction _NestedTable<C extends string>(props: NestedTableProps<C>) {\n const { state, dataHook } = props;\n\n const { toolbar } = state;\n\n if (process.env.NODE_ENV !== 'production') {\n minimalRequiredWdsRuntimeCheck({\n required: '^1.64.1',\n requiredBy: 'Cairo/NestedTable',\n });\n }\n\n return (\n <CollectionCard renderError={false} state={toolbar} dataHook={dataHook}>\n <TableProvider value={state.tableState}>\n <NestedTableWSRTable {...props} />\n </TableProvider>\n </CollectionCard>\n );\n}\n\nexport const NestedTable = observer(_NestedTable);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AAGA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,+BAAA,GAAAL,OAAA;AAAsF,IAAAM,YAAA;AA+FtF,SAASC,YAAYA,CAAmBC,KAA0B,EAAE;EAClE,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAC,GAAGF,KAAK;EAEjC,MAAM;IAAEG;EAAQ,CAAC,GAAGF,KAAK;EAEzB,IAAIG,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzC,IAAAC,8DAA8B,EAAC;MAC7BC,QAAQ,EAAE,SAAS;MACnBC,UAAU,EAAE;IACd,CAAC,CAAC;EACJ;EAEA,oBACEnB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAACjB,eAAA,CAAAkB,cAAc;IAACC,WAAW,EAAE,KAAM;IAACZ,KAAK,EAAEE,OAAQ;IAACD,QAAQ,EAAEA,QAAS;IAAAY,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAlB,YAAA;MAAAmB,UAAA;MAAAC,YAAA;IAAA;EAAA,gBACrE5B,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAAClB,UAAA,CAAA0B,aAAa;IAACC,KAAK,EAAEnB,KAAK,CAACoB,UAAW;IAAAP,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAlB,YAAA;MAAAmB,UAAA;MAAAC,YAAA;IAAA;EAAA,gBACrC5B,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAAChB,oBAAA,CAAA2B,mBAAmB,MAAAC,SAAA,CAAAb,OAAA,MAAKV,KAAK;IAAAc,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAlB,YAAA;MAAAmB,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAG,CACpB,CACD,CAAC;AAErB;AAEO,MAAMM,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,IAAAE,uBAAQ,EAAC3B,YAAY,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_ = "NestedTableRow2394039526";
|
|
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
|
-
"firstLevel": "
|
|
17
|
-
"placeholder": "
|
|
18
|
-
"parentHovered": "
|
|
15
|
+
"root": "NestedTableRow2394039526__root",
|
|
16
|
+
"firstLevel": "NestedTableRow2394039526__firstLevel",
|
|
17
|
+
"placeholder": "NestedTableRow2394039526__placeholder",
|
|
18
|
+
"parentHovered": "NestedTableRow2394039526__parentHovered"
|
|
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/NestedTable/NestedTableRow.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/NestedTable/NestedTableRow.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"NestedTableRow2394039526\";\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\":\"NestedTableRow2394039526__root\",\"firstLevel\":\"NestedTableRow2394039526__firstLevel\",\"placeholder\":\"NestedTableRow2394039526__placeholder\",\"parentHovered\":\"NestedTableRow2394039526__parentHovered\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,0BAA0B;AAC5C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,gCAAgC;EAAC,YAAY,EAAC,sCAAsC;EAAC,aAAa,EAAC,uCAAuC;EAAC,eAAe,EAAC;AAAyC,CAAC;AAC3N,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":[]}
|
|
@@ -15,6 +15,7 @@ var _QuerySearch = require("../QuerySearch");
|
|
|
15
15
|
var _MultiCollectionSupportProvider = require("../MultiCollectionSupportProvider");
|
|
16
16
|
var _designSystem = require("@wix/design-system");
|
|
17
17
|
var _TablePlaceholderStates = require("../TablePlaceholderStates/TablePlaceholderStates");
|
|
18
|
+
var _react2 = require("@wix/bex-core/react");
|
|
18
19
|
var _jsxFileName = "/home/builduser/work/db7ea24852bc3350/packages/cairo/dist/cjs/components/NestedTable/NestedTableWSRTable.tsx";
|
|
19
20
|
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); }
|
|
20
21
|
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; }
|
|
@@ -45,10 +46,19 @@ function _NestedTableWSRTable(props) {
|
|
|
45
46
|
dragAndDropCategories,
|
|
46
47
|
...rest
|
|
47
48
|
} = props;
|
|
49
|
+
const {
|
|
50
|
+
modalsContainerRef
|
|
51
|
+
} = (0, _react2.usePageContext)();
|
|
48
52
|
const {
|
|
49
53
|
toolbar,
|
|
50
54
|
query
|
|
51
55
|
} = wrapperState;
|
|
56
|
+
(0, _react.useState)(() => {
|
|
57
|
+
dragAndDrop == null || dragAndDrop.setStateObject({
|
|
58
|
+
state: wrapperState,
|
|
59
|
+
modalsContainerRef
|
|
60
|
+
});
|
|
61
|
+
});
|
|
52
62
|
(0, _useToolbarCollectionSyncProps.useToolbarCollectionSyncProps)({
|
|
53
63
|
...props,
|
|
54
64
|
state: toolbar,
|
|
@@ -95,7 +105,7 @@ function _NestedTableWSRTable(props) {
|
|
|
95
105
|
__self: this,
|
|
96
106
|
__source: {
|
|
97
107
|
fileName: _jsxFileName,
|
|
98
|
-
lineNumber:
|
|
108
|
+
lineNumber: 141,
|
|
99
109
|
columnNumber: 15
|
|
100
110
|
}
|
|
101
111
|
})
|
|
@@ -127,7 +137,7 @@ function _NestedTableWSRTable(props) {
|
|
|
127
137
|
__self: this,
|
|
128
138
|
__source: {
|
|
129
139
|
fileName: _jsxFileName,
|
|
130
|
-
lineNumber:
|
|
140
|
+
lineNumber: 139,
|
|
131
141
|
columnNumber: 5
|
|
132
142
|
}
|
|
133
143
|
}), /*#__PURE__*/_react.default.createElement(_MultiCollectionSupportProvider.MultiCollectionSupportProvider, {
|
|
@@ -136,7 +146,7 @@ function _NestedTableWSRTable(props) {
|
|
|
136
146
|
__self: this,
|
|
137
147
|
__source: {
|
|
138
148
|
fileName: _jsxFileName,
|
|
139
|
-
lineNumber:
|
|
149
|
+
lineNumber: 168,
|
|
140
150
|
columnNumber: 7
|
|
141
151
|
}
|
|
142
152
|
}, /*#__PURE__*/_react.default.createElement(_TablePlaceholderStates.TablePlaceholderStates, {
|
|
@@ -150,7 +160,7 @@ function _NestedTableWSRTable(props) {
|
|
|
150
160
|
__self: this,
|
|
151
161
|
__source: {
|
|
152
162
|
fileName: _jsxFileName,
|
|
153
|
-
lineNumber:
|
|
163
|
+
lineNumber: 172,
|
|
154
164
|
columnNumber: 9
|
|
155
165
|
}
|
|
156
166
|
}), /*#__PURE__*/_react.default.createElement(_NestedTableContent.NestedTableContent, {
|
|
@@ -159,7 +169,7 @@ function _NestedTableWSRTable(props) {
|
|
|
159
169
|
__self: this,
|
|
160
170
|
__source: {
|
|
161
171
|
fileName: _jsxFileName,
|
|
162
|
-
lineNumber:
|
|
172
|
+
lineNumber: 181,
|
|
163
173
|
columnNumber: 9
|
|
164
174
|
}
|
|
165
175
|
})));
|
|
@@ -175,7 +185,7 @@ function _NestedTableWSRTable(props) {
|
|
|
175
185
|
__self: this,
|
|
176
186
|
__source: {
|
|
177
187
|
fileName: _jsxFileName,
|
|
178
|
-
lineNumber:
|
|
188
|
+
lineNumber: 189,
|
|
179
189
|
columnNumber: 7
|
|
180
190
|
}
|
|
181
191
|
}, table);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_CollectionTableWSRTable","_NestedTableContent","_useToolbarCollectionSyncProps","_useModeTableProps","_mobx","_QuerySearch","_MultiCollectionSupportProvider","_designSystem","_TablePlaceholderStates","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_NestedTableWSRTable","props","state","wrapperState","renderError","multiLevelSorting","actionCell","actionCellWidth","actionCellProps","filters","customColumns","views","emptyState","noResultsState","topNotification","showTitleBar","horizontalScroll","rowHeight","estimatedRowHeight","rowVerticalPadding","dragAndDrop","dragAndDropBulkSubmit","dragAndDropSubmit","dragAndDropCancel","dragAndDropReorderModeToolbar","dragAndDropCategories","rest","toolbar","query","useToolbarCollectionSyncProps","isUsingDragAndDrop","isUsingBulkActionsToolbar","isUsingHorizontalScroll","isUsingFolders","isUsingTableVirtualization","Table","CollectionTableWSRTable","key","BodyElementType","TrElementType","columns","useModeTableProps","useEffect","runInAction","virtual","st","classes","WSRTable","dataTableRowVirtualStyle","table","createElement","_extends2","search","QuerySearch","__self","__source","fileName","lineNumber","columnNumber","showHeaderWhenEmpty","sticky","isApplyColumnWidthStyle","useNewInfiniteScrollLoader","rowClass","root","headerClass","thead","headerRowClass","MultiCollectionSupportProvider","value","multi","TablePlaceholderStates","NestedTableContent","CollectionNestedTableDragAndDropContext","nested","onSubmit","onCancel","onBulkSubmit","NestedTableWSRTable","exports","observer"],"sources":["../../../../src/components/NestedTable/NestedTableWSRTable.tsx"],"sourcesContent":["import React, { ComponentType, ReactNode, useEffect } from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport { observer } from 'mobx-react-lite';\nimport {\n CollectionTableWSRTable,\n CollectionTableWSRTableBaseProps,\n CollectionTableWSRTableProps,\n} from '../CollectionTable/CollectionTableWSRTable';\nimport { CollectionTableBaseCommonProps } from '../CollectionTable/CollectionTableBaseCommonProps';\nimport { NestedTableItem, NestedTableState } from '../../state';\nimport { NestedTableFlatDataItem } from '../../state/NestedTableState/NestedTableFlatModeSectionState';\nimport { NestedTableContent } from './NestedTableContent';\nimport { TopNotificationBasicRenderProp } from '../TableTopNotification';\nimport { useToolbarCollectionSyncProps } from '../ToolbarCollection/useToolbarCollectionSyncProps';\nimport { useModeTableProps } from './useModeTableProps';\nimport { runInAction } from 'mobx';\nimport { QuerySearch } from '../QuerySearch';\nimport { MultiCollectionSupportProvider } from '../MultiCollectionSupportProvider';\nimport { Table as WSRTable } from '@wix/design-system';\nimport { TablePlaceholderStates } from '../TablePlaceholderStates/TablePlaceholderStates';\nimport { NestedTableDragAndDrop } from '../NestedTableDragAndDrop';\n\nexport interface NestedTableWSRTableBaseProps<\n C extends string,\n T,\n F extends FiltersMap,\n> extends Omit<\n CollectionTableWSRTableBaseProps<\n NestedTableItem<C, any, any> | NestedTableFlatDataItem<C, any, any>,\n T,\n F\n >,\n | 'actionCell'\n | 'sticky'\n | 'selectionDisabled'\n | 'emptyState'\n | 'noResultsState'\n | 'topNotification'\n >,\n CollectionTableBaseCommonProps<T, F> {}\n\nexport interface NestedTableWSRTableProps<\n C extends string,\n T,\n F extends FiltersMap,\n> extends NestedTableWSRTableBaseProps<C, T, F> {\n dataHook?: string;\n emptyState?: ReactNode;\n noResultsState?: ReactNode;\n state: NestedTableState<C>;\n topNotification?: TopNotificationBasicRenderProp;\n rowHeight?: number;\n estimatedRowHeight?: number;\n dragAndDrop?: typeof NestedTableDragAndDrop;\n}\n\nfunction _NestedTableWSRTable<C extends string, T, F extends FiltersMap>(\n props: NestedTableWSRTableProps<C, T, F>,\n) {\n const {\n state: wrapperState,\n renderError,\n multiLevelSorting,\n actionCell,\n actionCellWidth,\n actionCellProps,\n filters,\n customColumns,\n views,\n emptyState,\n noResultsState,\n topNotification,\n showTitleBar = true,\n horizontalScroll = true,\n rowHeight,\n estimatedRowHeight,\n rowVerticalPadding = 'tiny',\n dragAndDrop,\n dragAndDropBulkSubmit,\n dragAndDropSubmit,\n dragAndDropCancel,\n dragAndDropReorderModeToolbar,\n dragAndDropCategories,\n ...rest\n } = props;\n\n const { toolbar, query } = wrapperState;\n\n useToolbarCollectionSyncProps({\n ...props,\n state: toolbar,\n isUsingDragAndDrop: false,\n isUsingBulkActionsToolbar: false,\n isUsingHorizontalScroll: true,\n isUsingFolders: false,\n isUsingTableVirtualization: true,\n });\n\n const Table = CollectionTableWSRTable as ComponentType<\n CollectionTableWSRTableProps<any, T, F>\n >;\n\n const { state, key, BodyElementType, TrElementType, columns } =\n useModeTableProps({\n state: wrapperState,\n horizontalScroll,\n actionCellWidth,\n actionCellProps,\n });\n\n useEffect(() => {\n runInAction(() => {\n state.virtual.rowHeight = rowHeight;\n });\n }, [rowHeight, state]);\n\n useEffect(() => {\n if (estimatedRowHeight == null) {\n return;\n }\n runInAction(() => {\n state.virtual.estimatedRowHeight = estimatedRowHeight;\n });\n }, [estimatedRowHeight, state]);\n\n const { st, classes } =\n WSRTable.dataTableRowVirtualStyle as import('@stylable/runtime').RuntimeStylesheet;\n\n let table = (\n <Table\n rowVerticalPadding={rowVerticalPadding}\n search={<QuerySearch state={query.search} />}\n {...rest}\n showHeaderWhenEmpty\n sticky\n filters={filters}\n customColumns={customColumns}\n views={views}\n horizontalScroll={horizontalScroll}\n emptyState={emptyState}\n noResultsState={noResultsState}\n isApplyColumnWidthStyle\n useNewInfiniteScrollLoader\n showTitleBar={showTitleBar}\n rowClass={st(classes.root)}\n headerClass={st(classes.thead)}\n headerRowClass={st(classes.root)}\n TrElementType={TrElementType}\n state={state}\n BodyElementType={BodyElementType}\n columns={columns}\n dragAndDropReorderModeToolbar={dragAndDropReorderModeToolbar}\n dragAndDrop={dragAndDrop}\n dragAndDropCancel={dragAndDropCancel}\n dragAndDropSubmit={dragAndDropSubmit}\n dragAndDropBulkSubmit={dragAndDropBulkSubmit}\n dragAndDropCategories={dragAndDropCategories}\n >\n <MultiCollectionSupportProvider\n key={`MultiCollectionSupportProvider_${key}`}\n value={state.multi}\n >\n <TablePlaceholderStates\n key={`PlaceholderStates_${key}`}\n state={state}\n emptyState={emptyState}\n noResultsState={noResultsState}\n renderError={renderError}\n topNotification={topNotification}\n rowVerticalPadding={rowVerticalPadding}\n />\n <NestedTableContent key={`NestedTableContent_${key}`} state={state} />\n </MultiCollectionSupportProvider>\n </Table>\n );\n\n if (dragAndDrop) {\n const { CollectionNestedTableDragAndDropContext } = dragAndDrop;\n table = (\n <CollectionNestedTableDragAndDropContext\n state={wrapperState.nested}\n onSubmit={dragAndDropSubmit}\n onCancel={dragAndDropCancel}\n onBulkSubmit={dragAndDropBulkSubmit}\n >\n {table}\n </CollectionNestedTableDragAndDropContext>\n );\n }\n\n return table;\n}\n\nexport const NestedTableWSRTable = observer(_NestedTableWSRTable);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAQA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAAI,8BAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,+BAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,uBAAA,GAAAV,OAAA;AAA0F,IAAAW,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAd,wBAAAc,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,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estedTableContent","_useToolbarCollectionSyncProps","_useModeTableProps","_mobx","_QuerySearch","_MultiCollectionSupportProvider","_designSystem","_TablePlaceholderStates","_react2","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_NestedTableWSRTable","props","state","wrapperState","renderError","multiLevelSorting","actionCell","actionCellWidth","actionCellProps","filters","customColumns","views","emptyState","noResultsState","topNotification","showTitleBar","horizontalScroll","rowHeight","estimatedRowHeight","rowVerticalPadding","dragAndDrop","dragAndDropBulkSubmit","dragAndDropSubmit","dragAndDropCancel","dragAndDropReorderModeToolbar","dragAndDropCategories","rest","modalsContainerRef","usePageContext","toolbar","query","useState","setStateObject","useToolbarCollectionSyncProps","isUsingDragAndDrop","isUsingBulkActionsToolbar","isUsingHorizontalScroll","isUsingFolders","isUsingTableVirtualization","Table","CollectionTableWSRTable","key","BodyElementType","TrElementType","columns","useModeTableProps","useEffect","runInAction","virtual","st","classes","WSRTable","dataTableRowVirtualStyle","table","createElement","_extends2","search","QuerySearch","__self","__source","fileName","lineNumber","columnNumber","showHeaderWhenEmpty","sticky","isApplyColumnWidthStyle","useNewInfiniteScrollLoader","rowClass","root","headerClass","thead","headerRowClass","MultiCollectionSupportProvider","value","multi","TablePlaceholderStates","NestedTableContent","CollectionNestedTableDragAndDropContext","nested","onSubmit","onCancel","onBulkSubmit","NestedTableWSRTable","exports","observer"],"sources":["../../../../src/components/NestedTable/NestedTableWSRTable.tsx"],"sourcesContent":["import React, { ComponentType, ReactNode, useEffect, useState } from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport { observer } from 'mobx-react-lite';\nimport {\n CollectionTableWSRTable,\n CollectionTableWSRTableBaseProps,\n CollectionTableWSRTableProps,\n} from '../CollectionTable/CollectionTableWSRTable';\nimport { CollectionTableBaseCommonProps } from '../CollectionTable/CollectionTableBaseCommonProps';\nimport { NestedTableItem, NestedTableState } from '../../state';\nimport { NestedTableFlatDataItem } from '../../state/NestedTableState/NestedTableFlatModeSectionState';\nimport { NestedTableContent } from './NestedTableContent';\nimport { TopNotificationBasicRenderProp } from '../TableTopNotification';\nimport { useToolbarCollectionSyncProps } from '../ToolbarCollection/useToolbarCollectionSyncProps';\nimport { useModeTableProps } from './useModeTableProps';\nimport { runInAction } from 'mobx';\nimport { QuerySearch } from '../QuerySearch';\nimport { MultiCollectionSupportProvider } from '../MultiCollectionSupportProvider';\nimport { Table as WSRTable } from '@wix/design-system';\nimport { TablePlaceholderStates } from '../TablePlaceholderStates/TablePlaceholderStates';\nimport { NestedTableDragAndDrop } from '../NestedTableDragAndDrop/NestedTableDragAndDrop';\nimport { usePageContext } from '@wix/bex-core/react';\n\nexport interface NestedTableWSRTableBaseProps<\n C extends string,\n T,\n F extends FiltersMap,\n> extends Omit<\n CollectionTableWSRTableBaseProps<\n NestedTableItem<C, any, any> | NestedTableFlatDataItem<C, any, any>,\n T,\n F\n >,\n | 'actionCell'\n | 'sticky'\n | 'selectionDisabled'\n | 'emptyState'\n | 'noResultsState'\n | 'topNotification'\n >,\n CollectionTableBaseCommonProps<T, F> {}\n\nexport interface NestedTableWSRTableProps<\n C extends string,\n T,\n F extends FiltersMap,\n> extends NestedTableWSRTableBaseProps<C, T, F> {\n dataHook?: string;\n emptyState?: ReactNode;\n noResultsState?: ReactNode;\n state: NestedTableState<C>;\n topNotification?: TopNotificationBasicRenderProp;\n rowHeight?: number;\n estimatedRowHeight?: number;\n dragAndDrop?: typeof NestedTableDragAndDrop;\n}\n\nfunction _NestedTableWSRTable<C extends string, T, F extends FiltersMap>(\n props: NestedTableWSRTableProps<C, T, F>,\n) {\n const {\n state: wrapperState,\n renderError,\n multiLevelSorting,\n actionCell,\n actionCellWidth,\n actionCellProps,\n filters,\n customColumns,\n views,\n emptyState,\n noResultsState,\n topNotification,\n showTitleBar = true,\n horizontalScroll = true,\n rowHeight,\n estimatedRowHeight,\n rowVerticalPadding = 'tiny',\n dragAndDrop,\n dragAndDropBulkSubmit,\n dragAndDropSubmit,\n dragAndDropCancel,\n dragAndDropReorderModeToolbar,\n dragAndDropCategories,\n ...rest\n } = props;\n const { modalsContainerRef } = usePageContext();\n\n const { toolbar, query } = wrapperState;\n\n useState(() => {\n dragAndDrop?.setStateObject({\n state: wrapperState,\n modalsContainerRef,\n });\n });\n\n useToolbarCollectionSyncProps({\n ...props,\n state: toolbar,\n isUsingDragAndDrop: false,\n isUsingBulkActionsToolbar: false,\n isUsingHorizontalScroll: true,\n isUsingFolders: false,\n isUsingTableVirtualization: true,\n });\n\n const Table = CollectionTableWSRTable as ComponentType<\n CollectionTableWSRTableProps<any, T, F>\n >;\n\n const { state, key, BodyElementType, TrElementType, columns } =\n useModeTableProps({\n state: wrapperState,\n horizontalScroll,\n actionCellWidth,\n actionCellProps,\n });\n\n useEffect(() => {\n runInAction(() => {\n state.virtual.rowHeight = rowHeight;\n });\n }, [rowHeight, state]);\n\n useEffect(() => {\n if (estimatedRowHeight == null) {\n return;\n }\n runInAction(() => {\n state.virtual.estimatedRowHeight = estimatedRowHeight;\n });\n }, [estimatedRowHeight, state]);\n\n const { st, classes } =\n WSRTable.dataTableRowVirtualStyle as import('@stylable/runtime').RuntimeStylesheet;\n\n let table = (\n <Table\n rowVerticalPadding={rowVerticalPadding}\n search={<QuerySearch state={query.search} />}\n {...rest}\n showHeaderWhenEmpty\n sticky\n filters={filters}\n customColumns={customColumns}\n views={views}\n horizontalScroll={horizontalScroll}\n emptyState={emptyState}\n noResultsState={noResultsState}\n isApplyColumnWidthStyle\n useNewInfiniteScrollLoader\n showTitleBar={showTitleBar}\n rowClass={st(classes.root)}\n headerClass={st(classes.thead)}\n headerRowClass={st(classes.root)}\n TrElementType={TrElementType}\n state={state}\n BodyElementType={BodyElementType}\n columns={columns}\n dragAndDropReorderModeToolbar={dragAndDropReorderModeToolbar}\n dragAndDrop={dragAndDrop}\n dragAndDropCancel={dragAndDropCancel}\n dragAndDropSubmit={dragAndDropSubmit}\n dragAndDropBulkSubmit={dragAndDropBulkSubmit}\n dragAndDropCategories={dragAndDropCategories}\n >\n <MultiCollectionSupportProvider\n key={`MultiCollectionSupportProvider_${key}`}\n value={state.multi}\n >\n <TablePlaceholderStates\n key={`PlaceholderStates_${key}`}\n state={state}\n emptyState={emptyState}\n noResultsState={noResultsState}\n renderError={renderError}\n topNotification={topNotification}\n rowVerticalPadding={rowVerticalPadding}\n />\n <NestedTableContent key={`NestedTableContent_${key}`} state={state} />\n </MultiCollectionSupportProvider>\n </Table>\n );\n\n if (dragAndDrop) {\n const { CollectionNestedTableDragAndDropContext } = dragAndDrop;\n table = (\n <CollectionNestedTableDragAndDropContext\n state={wrapperState.nested}\n onSubmit={dragAndDropSubmit}\n onCancel={dragAndDropCancel}\n onBulkSubmit={dragAndDropBulkSubmit}\n >\n {table}\n </CollectionNestedTableDragAndDropContext>\n );\n }\n\n return table;\n}\n\nexport const NestedTableWSRTable = observer(_NestedTableWSRTable);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAQA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAAI,8BAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,+BAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,uBAAA,GAAAV,OAAA;AAEA,IAAAW,OAAA,GAAAX,OAAA;AAAqD,IAAAY,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAA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O;MAC3BC,QAAQ,EAAEzD,iBAAkB;MAC5B0D,QAAQ,EAAEzD,iBAAkB;MAC5B0D,YAAY,EAAE5D,qBAAsB;MAAAqC,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAjF,YAAA;QAAAkF,UAAA;QAAAC,YAAA;MAAA;IAAA,GAEnCT,KACsC,CAC1C;EACH;EAEA,OAAOA,KAAK;AACd;AAEO,MAAM6B,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAG,IAAAE,uBAAQ,EAACpF,oBAAoB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.NestedTableDragAndDrop = void 0;
|
|
5
|
+
var _dragAndDrop = require("@wix/wix-style-react-incubator/drag-and-drop");
|
|
6
|
+
var _NestedTableDragAndDropContext = require("./NestedTableDragAndDropContext");
|
|
7
|
+
var _NestedTableDragAndDropState = require("./NestedTableDragAndDropState");
|
|
8
|
+
var _minimalRequiredWdsRuntimeCheck = require("../../minimalRequiredWdsRuntimeCheck");
|
|
9
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10
|
+
(0, _minimalRequiredWdsRuntimeCheck.minimalRequiredWdsRuntimeCheck)({
|
|
11
|
+
required: '^1.64.1',
|
|
12
|
+
requiredBy: 'Cairo/NestedTableDragAndDrop'
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function setStateObject(params) {
|
|
16
|
+
var _state$nested;
|
|
17
|
+
const {
|
|
18
|
+
state,
|
|
19
|
+
modalsContainerRef
|
|
20
|
+
} = params;
|
|
21
|
+
(_state$nested = state.nested).nestedTableDragAndDrop ?? (_state$nested.nestedTableDragAndDrop = new _NestedTableDragAndDropState.NestedTableDragAndDropState({
|
|
22
|
+
nestedState: state.nested,
|
|
23
|
+
modalsContainerRef
|
|
24
|
+
}));
|
|
25
|
+
state.tableState.tableDragAndDropState = state.nested.nestedTableDragAndDrop;
|
|
26
|
+
state.toolbar._dnd = state.nested.nestedTableDragAndDrop.dnd;
|
|
27
|
+
}
|
|
28
|
+
const NestedTableDragAndDrop = exports.NestedTableDragAndDrop = {
|
|
29
|
+
..._dragAndDrop.TableDragAndDrop,
|
|
30
|
+
CollectionNestedTableDragAndDropContext: _NestedTableDragAndDropContext.NestedTableDragAndDropContext,
|
|
31
|
+
setStateObject
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=NestedTableDragAndDrop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_dragAndDrop","require","_NestedTableDragAndDropContext","_NestedTableDragAndDropState","_minimalRequiredWdsRuntimeCheck","process","env","NODE_ENV","minimalRequiredWdsRuntimeCheck","required","requiredBy","setStateObject","params","_state$nested","state","modalsContainerRef","nested","nestedTableDragAndDrop","NestedTableDragAndDropState","nestedState","tableState","tableDragAndDropState","toolbar","_dnd","dnd","NestedTableDragAndDrop","exports","WSRTableDragAndDrop","CollectionNestedTableDragAndDropContext","NestedTableDragAndDropContext"],"sources":["../../../../src/components/NestedTableDragAndDrop/NestedTableDragAndDrop.ts"],"sourcesContent":["import { TableDragAndDrop as WSRTableDragAndDrop } from '@wix/wix-style-react-incubator/drag-and-drop';\nimport { NestedTableDragAndDropContext } from './NestedTableDragAndDropContext';\nimport { NestedTableDragAndDropState } from './NestedTableDragAndDropState';\nimport { minimalRequiredWdsRuntimeCheck } from '../../minimalRequiredWdsRuntimeCheck';\nimport { NestedTableState } from '../../state/NestedTableState';\n\nif (process.env.NODE_ENV !== 'production') {\n minimalRequiredWdsRuntimeCheck({\n required: '^1.64.1',\n requiredBy: 'Cairo/NestedTableDragAndDrop',\n });\n}\n\nfunction setStateObject<C extends string>(params: {\n state: NestedTableState<C>;\n modalsContainerRef: {\n current: HTMLElement | null | undefined;\n };\n}) {\n const { state, modalsContainerRef } = params;\n state.nested.nestedTableDragAndDrop ??= new NestedTableDragAndDropState({\n nestedState: state.nested,\n modalsContainerRef,\n });\n state.tableState.tableDragAndDropState = state.nested.nestedTableDragAndDrop;\n state.toolbar._dnd = state.nested.nestedTableDragAndDrop.dnd;\n}\n\nexport const NestedTableDragAndDrop = {\n ...WSRTableDragAndDrop,\n CollectionNestedTableDragAndDropContext: NestedTableDragAndDropContext,\n setStateObject,\n};\n"],"mappings":";;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,8BAAA,GAAAD,OAAA;AACA,IAAAE,4BAAA,GAAAF,OAAA;AACA,IAAAG,+BAAA,GAAAH,OAAA;AAGA,IAAII,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;EACzC,IAAAC,8DAA8B,EAAC;IAC7BC,QAAQ,EAAE,SAAS;IACnBC,UAAU,EAAE;EACd,CAAC,CAAC;AACJ;AAEA,SAASC,cAAcA,CAAmBC,MAKzC,EAAE;EAAA,IAAAC,aAAA;EACD,MAAM;IAAEC,KAAK;IAAEC;EAAmB,CAAC,GAAGH,MAAM;EAC5C,CAAAC,aAAA,GAAAC,KAAK,CAACE,MAAM,EAACC,sBAAsB,KAAnCJ,aAAA,CAAaI,sBAAsB,GAAK,IAAIC,wDAA2B,CAAC;IACtEC,WAAW,EAAEL,KAAK,CAACE,MAAM;IACzBD;EACF,CAAC,CAAC;EACFD,KAAK,CAACM,UAAU,CAACC,qBAAqB,GAAGP,KAAK,CAACE,MAAM,CAACC,sBAAsB;EAC5EH,KAAK,CAACQ,OAAO,CAACC,IAAI,GAAGT,KAAK,CAACE,MAAM,CAACC,sBAAsB,CAACO,GAAG;AAC9D;AAEO,MAAMC,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG;EACpC,GAAGE,6BAAmB;EACtBC,uCAAuC,EAAEC,4DAA6B;EACtElB;AACF,CAAC","ignoreList":[]}
|
|
@@ -2,20 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.
|
|
5
|
+
exports.NestedTableDragAndDropContext = void 0;
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _react2 = require("@wix/bex-core/react");
|
|
9
8
|
var _mobxReactLite = require("mobx-react-lite");
|
|
10
9
|
var _dragAndDrop = require("@wix/wix-style-react-incubator/drag-and-drop");
|
|
11
10
|
var _DragAndDropAnnouncements = require("../DragAndDrop/DragAndDropAnnouncements");
|
|
12
11
|
var _dndTestEventHandlers = require("../GridDragAndDropDndKit/dndTestEventHandlers");
|
|
13
12
|
var _util = require("@wix/bex-core/util");
|
|
14
|
-
var
|
|
15
|
-
var _jsxFileName = "/home/builduser/work/db7ea24852bc3350/packages/cairo/dist/cjs/components/CollectionTableDragAndDropContext/CollectionNestedTableDragAndDropContext.tsx";
|
|
13
|
+
var _jsxFileName = "/home/builduser/work/db7ea24852bc3350/packages/cairo/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropContext.tsx";
|
|
16
14
|
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); }
|
|
17
15
|
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; }
|
|
18
|
-
function
|
|
16
|
+
function _NestedTableDragAndDropContext(props) {
|
|
19
17
|
const {
|
|
20
18
|
state: nestedState,
|
|
21
19
|
onSubmit,
|
|
@@ -27,24 +25,9 @@ function _CollectionNestedTableDragAndDropContext(props) {
|
|
|
27
25
|
type: Table,
|
|
28
26
|
props: tableProps
|
|
29
27
|
} = children;
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const {
|
|
34
|
-
modalsContainerRef
|
|
35
|
-
} = (0, _react2.usePageContext)();
|
|
36
|
-
const [state] = (0, _react.useState)(() => {
|
|
37
|
-
const nestedDnDState = new _NestedTableDragAndDropState.NestedTableDragAndDropState({
|
|
38
|
-
nestedState,
|
|
39
|
-
modalsContainerRef
|
|
40
|
-
});
|
|
41
|
-
tableState.tableDragAndDropState = nestedDnDState;
|
|
42
|
-
return nestedDnDState;
|
|
43
|
-
});
|
|
44
|
-
const dragAndDropState = state.dragAndDrop.dnd;
|
|
45
|
-
(0, _react.useEffect)(() => state.init({
|
|
46
|
-
a11yContainer: modalsContainerRef == null ? void 0 : modalsContainerRef.current
|
|
47
|
-
}), []);
|
|
28
|
+
const state = nestedState.nestedTableDragAndDrop;
|
|
29
|
+
const dragAndDropState = state.dnd;
|
|
30
|
+
(0, _react.useEffect)(() => state.init(), []);
|
|
48
31
|
dragAndDropState.onSubmit = onSubmit;
|
|
49
32
|
dragAndDropState.onCancel = onCancel;
|
|
50
33
|
dragAndDropState.onBulkSubmit = onBulkSubmit;
|
|
@@ -58,7 +41,7 @@ function _CollectionNestedTableDragAndDropContext(props) {
|
|
|
58
41
|
easing: dragAndDropState.dropAnimation.easing
|
|
59
42
|
},
|
|
60
43
|
announcements: dragAndDropState.nullAnnouncements,
|
|
61
|
-
a11yContainer: dragAndDropState.
|
|
44
|
+
a11yContainer: dragAndDropState.a11yContainerRef.current,
|
|
62
45
|
onDragOver: ({
|
|
63
46
|
over
|
|
64
47
|
}) => dragAndDropState.onDragOver({
|
|
@@ -104,7 +87,7 @@ function _CollectionNestedTableDragAndDropContext(props) {
|
|
|
104
87
|
keyboardCodes: dragAndDropState.keyboardCodes
|
|
105
88
|
}
|
|
106
89
|
}));
|
|
107
|
-
dragAndDropContext.a11yContainer = dragAndDropState.
|
|
90
|
+
dragAndDropContext.a11yContainer = dragAndDropState.a11yContainerRef.current;
|
|
108
91
|
const sortableReactiveContext = (0, _react.useMemo)(() => ({
|
|
109
92
|
dropDisabled: dragAndDropState.isActiveRectOutsideContainer
|
|
110
93
|
}), [dragAndDropState.isActiveRectOutsideContainer]);
|
|
@@ -113,7 +96,7 @@ function _CollectionNestedTableDragAndDropContext(props) {
|
|
|
113
96
|
__self: this,
|
|
114
97
|
__source: {
|
|
115
98
|
fileName: _jsxFileName,
|
|
116
|
-
lineNumber:
|
|
99
|
+
lineNumber: 133,
|
|
117
100
|
columnNumber: 5
|
|
118
101
|
}
|
|
119
102
|
}, /*#__PURE__*/_react.default.createElement(_dragAndDrop.SortableReactiveContext.Provider, {
|
|
@@ -121,7 +104,7 @@ function _CollectionNestedTableDragAndDropContext(props) {
|
|
|
121
104
|
__self: this,
|
|
122
105
|
__source: {
|
|
123
106
|
fileName: _jsxFileName,
|
|
124
|
-
lineNumber:
|
|
107
|
+
lineNumber: 134,
|
|
125
108
|
columnNumber: 7
|
|
126
109
|
}
|
|
127
110
|
}, /*#__PURE__*/_react.default.createElement(Table, (0, _extends2.default)({}, tableProps, {
|
|
@@ -132,7 +115,7 @@ function _CollectionNestedTableDragAndDropContext(props) {
|
|
|
132
115
|
__self: this,
|
|
133
116
|
__source: {
|
|
134
117
|
fileName: _jsxFileName,
|
|
135
|
-
lineNumber:
|
|
118
|
+
lineNumber: 135,
|
|
136
119
|
columnNumber: 9
|
|
137
120
|
}
|
|
138
121
|
})), /*#__PURE__*/_react.default.createElement(_DragAndDropAnnouncements.DragAndDropAnnouncements, {
|
|
@@ -141,10 +124,10 @@ function _CollectionNestedTableDragAndDropContext(props) {
|
|
|
141
124
|
__self: this,
|
|
142
125
|
__source: {
|
|
143
126
|
fileName: _jsxFileName,
|
|
144
|
-
lineNumber:
|
|
127
|
+
lineNumber: 143,
|
|
145
128
|
columnNumber: 9
|
|
146
129
|
}
|
|
147
130
|
})));
|
|
148
131
|
}
|
|
149
|
-
const
|
|
150
|
-
//# sourceMappingURL=
|
|
132
|
+
const NestedTableDragAndDropContext = exports.NestedTableDragAndDropContext = (0, _mobxReactLite.observer)(_NestedTableDragAndDropContext);
|
|
133
|
+
//# sourceMappingURL=NestedTableDragAndDropContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_dragAndDrop","_DragAndDropAnnouncements","_dndTestEventHandlers","_util","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_NestedTableDragAndDropContext","props","state","nestedState","onSubmit","onCancel","onBulkSubmit","children","type","Table","tableProps","nestedTableDragAndDrop","dragAndDropState","dnd","useEffect","init","dragAndDropContext","useState","onDragAndDropDisabledRowPointerDown","id","attachDisabledDragAttempt","cancelDrop","ev","beforeDrop","dropAnimation","duration","easing","announcements","nullAnnouncements","a11yContainer","a11yContainerRef","current","onDragOver","over","onDragMove","event","restoreFocus","onDropAnimationEnd","dragHandleRef","addEventListener","events","focusDragHandleIfDropped","eventHandlers","row","testEvents","process","env","NODE_ENV","sortableItemTestEvents","undefined","onPointerDown","containerEvents","handle","handleEvents","onKeyDown","dragHandleTestEvents","keyboardCodes","sortableReactiveContext","useMemo","dropDisabled","isActiveRectOutsideContainer","createElement","DragAndDropContext","Provider","value","__self","__source","fileName","lineNumber","columnNumber","SortableReactiveContext","_extends2","isDragAndDropDisabled","isDisabled","onDragStart","onDragEnd","onDragCancel","DragAndDropAnnouncements","dataHook","NestedTableDragAndDropContext","exports","observer"],"sources":["../../../../src/components/NestedTableDragAndDrop/NestedTableDragAndDropContext.tsx"],"sourcesContent":["import React, { useEffect, useMemo, useState } from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport {\n DragAndDropBulkSubmit,\n DragAndDropCancel,\n DragAndDropSubmit,\n} from '../DragAndDrop';\nimport { NestedTableNestedModeState } from '../../state';\nimport { observer } from 'mobx-react-lite';\nimport type { TableProps } from '@wix/design-system';\nimport {\n DragAndDropContext,\n IDragAndDropContext,\n ISortableReactiveContext,\n SortableReactiveContext,\n} from '@wix/wix-style-react-incubator/drag-and-drop';\nimport { DragAndDropAnnouncements } from '../DragAndDrop/DragAndDropAnnouncements';\nimport {\n dragHandleTestEvents,\n sortableItemTestEvents,\n} from '../GridDragAndDropDndKit/dndTestEventHandlers';\nimport { addEventListener } from '@wix/bex-core/util';\nimport { NestedTableDragAndDropState } from './NestedTableDragAndDropState';\n\nexport interface NestedTableDragAndDropContextProps<\n C extends string,\n T,\n F extends FiltersMap,\n> {\n state: NestedTableNestedModeState<C>;\n onSubmit?: DragAndDropSubmit<T, F>;\n onCancel?: DragAndDropCancel<T, F>;\n onBulkSubmit?: DragAndDropBulkSubmit<T, F>;\n children: React.ReactElement<\n TableProps<T>,\n React.ComponentType<TableProps<T>>\n >;\n}\n\nfunction _NestedTableDragAndDropContext<\n C extends string,\n T,\n F extends FiltersMap,\n>(props: NestedTableDragAndDropContextProps<C, T, F>) {\n const {\n state: nestedState,\n onSubmit,\n onCancel,\n onBulkSubmit,\n children,\n } = props;\n const { type: Table, props: tableProps } = children;\n\n const state =\n nestedState.nestedTableDragAndDrop as NestedTableDragAndDropState<C>;\n\n const dragAndDropState = state.dnd;\n\n useEffect(() => state.init(), []);\n\n dragAndDropState.onSubmit = onSubmit;\n dragAndDropState.onCancel = onCancel;\n dragAndDropState.onBulkSubmit = onBulkSubmit;\n\n const [dragAndDropContext] = useState<IDragAndDropContext>(() => ({\n onDragAndDropDisabledRowPointerDown: (id, e) => {\n dragAndDropState.attachDisabledDragAttempt(id as string, e, 'y');\n },\n cancelDrop: (ev) => dragAndDropState.beforeDrop(ev),\n dropAnimation: {\n duration: dragAndDropState.dropAnimation.duration,\n easing: dragAndDropState.dropAnimation.easing,\n },\n announcements: dragAndDropState.nullAnnouncements,\n a11yContainer: dragAndDropState.a11yContainerRef.current,\n onDragOver: ({ over }) => dragAndDropState.onDragOver({ over }),\n onDragMove: (event) => dragAndDropState.onDragMove(event),\n restoreFocus: false,\n onDropAnimationEnd: (id, dragHandleRef) => {\n return addEventListener(\n dragAndDropState.events,\n 'dropAnimationEnd',\n () => {\n dragAndDropState.focusDragHandleIfDropped(id, dragHandleRef.current);\n },\n );\n },\n eventHandlers: {\n row: ({ id }) => {\n const testEvents =\n process.env.NODE_ENV === 'test'\n ? sortableItemTestEvents({\n state: dragAndDropState,\n id,\n })\n : undefined;\n\n return {\n ...testEvents,\n onPointerDown: (e) => {\n dragAndDropState.containerEvents.onPointerDown?.(e);\n testEvents?.onPointerDown?.(e);\n },\n };\n },\n handle: ({ id }) => ({\n onPointerDown: (e) => {\n dragAndDropState.handleEvents.onPointerDown?.(e);\n },\n onKeyDown: (e) => {\n dragAndDropState.handleEvents.onKeyDown?.(e);\n },\n ...(process.env.NODE_ENV === 'test' &&\n dragHandleTestEvents({\n state: dragAndDropState,\n id,\n })),\n }),\n keyboardCodes: dragAndDropState.keyboardCodes,\n },\n }));\n\n dragAndDropContext.a11yContainer = dragAndDropState.a11yContainerRef.current;\n\n const sortableReactiveContext = useMemo<ISortableReactiveContext>(\n () => ({\n dropDisabled: dragAndDropState.isActiveRectOutsideContainer,\n }),\n [dragAndDropState.isActiveRectOutsideContainer],\n );\n\n return (\n <DragAndDropContext.Provider value={dragAndDropContext}>\n <SortableReactiveContext.Provider value={sortableReactiveContext}>\n <Table\n {...tableProps}\n isDragAndDropDisabled={dragAndDropState.isDisabled}\n onDragStart={(event: any) => dragAndDropState.onDragStart(event)}\n onDragEnd={(event: any) => dragAndDropState.onDragEnd(event)}\n onDragCancel={() => dragAndDropState.onDragCancel()}\n />\n\n <DragAndDropAnnouncements\n state={dragAndDropState}\n dataHook=\"collection-table-dnd-live-region\"\n />\n </SortableReactiveContext.Provider>\n </DragAndDropContext.Prov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