@wix/patterns 1.348.0 → 1.349.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/CardContainer/CardContainer.st.css.js +2 -2
- package/dist/cjs/components/CardContainer/CardContainer.st.css.js.map +1 -1
- package/dist/cjs/components/Collapse/Collapse.st.css.js +3 -3
- package/dist/cjs/components/Collapse/Collapse.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
- package/dist/cjs/components/CollectionPageNew/CollectionPage.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.js +20 -14
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.js.map +1 -1
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js +3 -3
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.types.js.map +1 -1
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.uni.driver.js +2 -1
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.uni.driver.js.map +1 -1
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.js +50 -7
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.js.map +1 -1
- package/dist/cjs/components/CollectionTable/CollectionTable.js +10 -10
- package/dist/cjs/components/CollectionTable/CollectionTable.js.map +1 -1
- package/dist/cjs/components/CollectionTable/CollectionTable.st.css.js +2 -2
- package/dist/cjs/components/CollectionTable/CollectionTable.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionTable/useTableCollectionSyncProps.js +3 -1
- package/dist/cjs/components/CollectionTable/useTableCollectionSyncProps.js.map +1 -1
- package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js +5 -5
- package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +4 -4
- package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.js +12 -5
- package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.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/AutoCompleteReadonlyState.js +8 -0
- package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonlyState.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.js +39 -13
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.js.map +1 -1
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
- package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
- package/dist/cjs/components/DragHandle/DragHandle.st.css.js +2 -2
- package/dist/cjs/components/DragHandle/DragHandle.st.css.js.map +1 -1
- package/dist/cjs/components/EntityPage/EntityPagePlain.st.css.js +2 -2
- package/dist/cjs/components/EntityPage/EntityPagePlain.st.css.js.map +1 -1
- package/dist/cjs/components/Fade/Fade.st.css.js +2 -2
- package/dist/cjs/components/Fade/Fade.st.css.js.map +1 -1
- package/dist/cjs/components/GridSections/GridSectionHeader.js +2 -0
- package/dist/cjs/components/GridSections/GridSectionHeader.js.map +1 -1
- package/dist/cjs/components/GridSections/GridSectionsState.js +2 -1
- package/dist/cjs/components/GridSections/GridSectionsState.js.map +1 -1
- package/dist/cjs/components/Heading/Heading.st.css.js +2 -2
- package/dist/cjs/components/Heading/Heading.st.css.js.map +1 -1
- package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js +2 -2
- package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
- package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js +3 -3
- package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js.map +1 -1
- package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
- package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
- package/dist/cjs/components/MaxLines/MaxLines.st.css.js +2 -2
- package/dist/cjs/components/MaxLines/MaxLines.st.css.js.map +1 -1
- package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +5 -5
- package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
- package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js +5 -5
- package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
- package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js.map +1 -1
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
- package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js.map +1 -1
- package/dist/cjs/components/PickerContent/PickerContent.st.css.js +2 -2
- package/dist/cjs/components/PickerContent/PickerContent.st.css.js.map +1 -1
- package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js +4 -4
- package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
- package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
- package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
- package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
- package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
- package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js +3 -3
- package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
- package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js +2 -2
- package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
- package/dist/cjs/components/Table/TableBase.js +3 -1
- package/dist/cjs/components/Table/TableBase.js.map +1 -1
- package/dist/cjs/components/TableGridSwitch/TableGridSwitch.js +7 -5
- package/dist/cjs/components/TableGridSwitch/TableGridSwitch.js.map +1 -1
- package/dist/cjs/components/TableSections/TableSectionRow.js +7 -2
- package/dist/cjs/components/TableSections/TableSectionRow.js.map +1 -1
- package/dist/cjs/components/TableSections/TableSections.js +10 -2
- package/dist/cjs/components/TableSections/TableSections.js.map +1 -1
- package/dist/cjs/components/TableSections/TableSectionsState.js +46 -5
- package/dist/cjs/components/TableSections/TableSectionsState.js.map +1 -1
- package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js +3 -3
- package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js.map +1 -1
- package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
- package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js.map +1 -1
- package/dist/cjs/components/ToolbarCollection/useToolbarCollectionSyncProps.js +2 -1
- package/dist/cjs/components/ToolbarCollection/useToolbarCollectionSyncProps.js.map +1 -1
- package/dist/cjs/components/ToolbarItem/ToolbarItem.st.css.js +2 -2
- package/dist/cjs/components/ToolbarItem/ToolbarItem.st.css.js.map +1 -1
- package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
- package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js.map +1 -1
- package/dist/cjs/components/common.st.css.js +4 -4
- package/dist/cjs/components/common.st.css.js.map +1 -1
- package/dist/cjs/model/view.js.map +1 -1
- package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
- package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css.js.map +1 -1
- package/dist/cjs/state/CollectionViewsQueryCompareHelper.js +6 -1
- package/dist/cjs/state/CollectionViewsQueryCompareHelper.js.map +1 -1
- package/dist/cjs/state/CollectionViewsState.js +12 -0
- package/dist/cjs/state/CollectionViewsState.js.map +1 -1
- package/dist/cjs/state/FeaturesAvailabilityBIParams.js.map +1 -1
- package/dist/cjs/state/FormPage/FormPageHeader.st.css.js +2 -2
- package/dist/cjs/state/FormPage/FormPageHeader.st.css.js.map +1 -1
- package/dist/cjs/state/TableGridSwitchFoldersState.js +1 -0
- package/dist/cjs/state/TableGridSwitchFoldersState.js.map +1 -1
- package/dist/cjs/state/TableGridSwitchState.js +1 -0
- package/dist/cjs/state/TableGridSwitchState.js.map +1 -1
- package/dist/cjs/state/ToolbarCollectionState.js +3 -0
- package/dist/cjs/state/ToolbarCollectionState.js.map +1 -1
- package/dist/cjs/styles.global.css +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/components/CardContainer/CardContainer.st.css.js +2 -2
- package/dist/esm/components/CardContainer/CardContainer.st.css.js.map +1 -1
- package/dist/esm/components/Collapse/Collapse.st.css.js +2 -2
- package/dist/esm/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.js +3 -3
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.js.map +1 -1
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js +2 -2
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.uni.driver.js +2 -1
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.uni.driver.js.map +1 -1
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.js +19 -6
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.js.map +1 -1
- package/dist/esm/components/CollectionTable/CollectionTable.js.map +1 -1
- package/dist/esm/components/CollectionTable/CollectionTable.st.css.js +2 -2
- package/dist/esm/components/CollectionTable/useTableCollectionSyncProps.js +2 -1
- package/dist/esm/components/CollectionTable/useTableCollectionSyncProps.js.map +1 -1
- package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js +2 -2
- package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js.map +1 -1
- package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +2 -2
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.js +10 -5
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonlyState.js +6 -0
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonlyState.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.js +7 -5
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
- package/dist/esm/components/DragHandle/DragHandle.st.css.js +2 -2
- package/dist/esm/components/EntityPage/EntityPagePlain.st.css.js +2 -2
- package/dist/esm/components/Fade/Fade.st.css.js +2 -2
- package/dist/esm/components/Fade/Fade.st.css.js.map +1 -1
- package/dist/esm/components/GridSections/GridSectionHeader.js +2 -2
- package/dist/esm/components/GridSections/GridSectionHeader.js.map +1 -1
- package/dist/esm/components/GridSections/GridSectionsState.js +2 -2
- package/dist/esm/components/GridSections/GridSectionsState.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/InputOverflow/InputOverflow.st.css.js.map +1 -1
- package/dist/esm/components/LoadingRow/LoadingRow.st.css.js +3 -3
- package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
- package/dist/esm/components/MaxLines/MaxLines.st.css.js +2 -2
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js.map +1 -1
- package/dist/esm/components/NestedTable/NestedTableRow.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
- package/dist/esm/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js.map +1 -1
- package/dist/esm/components/PickerContent/PickerContent.st.css.js +2 -2
- package/dist/esm/components/PickerContent/PickerContent.st.css.js.map +1 -1
- package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js +2 -2
- package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
- package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
- package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js +2 -2
- package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
- package/dist/esm/components/SlidingModal/SlidingModal.st.css.js +2 -2
- package/dist/esm/components/Table/TableBase.js +1 -1
- package/dist/esm/components/Table/TableBase.js.map +1 -1
- package/dist/esm/components/TableGridSwitch/TableGridSwitch.js +2 -0
- package/dist/esm/components/TableGridSwitch/TableGridSwitch.js.map +1 -1
- package/dist/esm/components/TableSections/TableSectionRow.js +2 -2
- package/dist/esm/components/TableSections/TableSectionRow.js.map +1 -1
- package/dist/esm/components/TableSections/TableSections.js +8 -3
- package/dist/esm/components/TableSections/TableSections.js.map +1 -1
- package/dist/esm/components/TableSections/TableSectionsState.js +42 -6
- package/dist/esm/components/TableSections/TableSectionsState.js.map +1 -1
- package/dist/esm/components/TabsFilter/TabsFilter.st.css.js +2 -2
- package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
- package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js.map +1 -1
- package/dist/esm/components/ToolbarCollection/useToolbarCollectionSyncProps.js +1 -0
- package/dist/esm/components/ToolbarCollection/useToolbarCollectionSyncProps.js.map +1 -1
- package/dist/esm/components/ToolbarItem/ToolbarItem.st.css.js +2 -2
- package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
- package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js.map +1 -1
- package/dist/esm/components/common.st.css.js +2 -2
- package/dist/esm/components/common.st.css.js.map +1 -1
- package/dist/esm/model/view.js.map +1 -1
- package/dist/esm/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
- package/dist/esm/state/CollectionViewsQueryCompareHelper.js +6 -1
- package/dist/esm/state/CollectionViewsQueryCompareHelper.js.map +1 -1
- package/dist/esm/state/CollectionViewsState.js +8 -1
- package/dist/esm/state/CollectionViewsState.js.map +1 -1
- package/dist/esm/state/FormPage/FormPageHeader.st.css.js +2 -2
- package/dist/esm/state/TableGridSwitchFoldersState.js +1 -0
- package/dist/esm/state/TableGridSwitchFoldersState.js.map +1 -1
- package/dist/esm/state/TableGridSwitchState.js +1 -0
- package/dist/esm/state/TableGridSwitchState.js.map +1 -1
- package/dist/esm/state/ToolbarCollectionState.js.map +1 -1
- package/dist/esm/styles.global.css +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/components/CardContainer/CardContainer.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.d.ts +5 -1
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.d.ts.map +1 -1
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.types.d.ts +19 -0
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.types.d.ts.map +1 -1
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.uni.driver.d.ts +1 -0
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.uni.driver.d.ts.map +1 -1
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.d.ts +7 -2
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.d.ts.map +1 -1
- package/dist/types/components/CollectionTable/CollectionTable.d.ts +1 -0
- package/dist/types/components/CollectionTable/CollectionTable.d.ts.map +1 -1
- package/dist/types/components/CollectionTable/useTableCollectionSyncProps.d.ts +1 -0
- package/dist/types/components/CollectionTable/useTableCollectionSyncProps.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/CollectionToolbar.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/AutoCompleteReadonly.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/AutoCompleteReadonlyState.d.ts +4 -0
- package/dist/types/components/CollectionViewsDropdown/AutoCompleteReadonlyState.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/ViewsDropdown.d.ts.map +1 -1
- package/dist/types/components/Fade/Fade.st.css.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.uni.driver.d.ts +1 -0
- package/dist/types/components/Grid/Grid.uni.driver.d.ts.map +1 -1
- package/dist/types/components/Grid/GridFolders.uni.driver.d.ts +2 -0
- package/dist/types/components/Grid/GridFolders.uni.driver.d.ts.map +1 -1
- package/dist/types/components/Grid/GridFoldersSection.uni.driver.d.ts +1 -0
- package/dist/types/components/Grid/GridFoldersSection.uni.driver.d.ts.map +1 -1
- package/dist/types/components/GridSections/GridSectionHeader.d.ts.map +1 -1
- package/dist/types/components/GridSections/GridSectionsState.d.ts +1 -0
- package/dist/types/components/GridSections/GridSectionsState.d.ts.map +1 -1
- package/dist/types/components/InputOverflow/InputOverflow.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTable.uni.driver.d.ts +1 -0
- package/dist/types/components/NestedTable/NestedTable.uni.driver.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTable/NestedTableRow.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.d.ts.map +1 -1
- package/dist/types/components/PickerContent/PickerContent.st.css.d.ts.map +1 -1
- package/dist/types/components/SkeletonCard/SkeletonCard.st.css.d.ts.map +1 -1
- package/dist/types/components/Table/Table.uni.driver.d.ts +1 -0
- package/dist/types/components/Table/Table.uni.driver.d.ts.map +1 -1
- package/dist/types/components/Table/TableBase.d.ts.map +1 -1
- package/dist/types/components/TableFolders/TableFolders.uni.driver.d.ts +1 -0
- package/dist/types/components/TableFolders/TableFolders.uni.driver.d.ts.map +1 -1
- package/dist/types/components/TableGridSwitch/TableGridSwitch.d.ts +3 -1
- package/dist/types/components/TableGridSwitch/TableGridSwitch.d.ts.map +1 -1
- package/dist/types/components/TableGridSwitch/TableGridSwitch.uni.driver.d.ts +2 -0
- package/dist/types/components/TableGridSwitch/TableGridSwitch.uni.driver.d.ts.map +1 -1
- package/dist/types/components/TableSections/TableSectionRow.d.ts.map +1 -1
- package/dist/types/components/TableSections/TableSections.d.ts +6 -2
- package/dist/types/components/TableSections/TableSections.d.ts.map +1 -1
- package/dist/types/components/TableSections/TableSectionsState.d.ts +10 -1
- package/dist/types/components/TableSections/TableSectionsState.d.ts.map +1 -1
- package/dist/types/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.d.ts.map +1 -1
- package/dist/types/components/ToolbarCollection/useToolbarCollectionSyncProps.d.ts +1 -0
- package/dist/types/components/ToolbarCollection/useToolbarCollectionSyncProps.d.ts.map +1 -1
- package/dist/types/components/ToolbarItemBox/ToolbarItemBox.st.css.d.ts.map +1 -1
- package/dist/types/components/common.st.css.d.ts.map +1 -1
- package/dist/types/model/view.d.ts +6 -0
- package/dist/types/model/view.d.ts.map +1 -1
- package/dist/types/state/CollectionViewsQueryCompareHelper.d.ts.map +1 -1
- package/dist/types/state/CollectionViewsState.d.ts +2 -1
- package/dist/types/state/CollectionViewsState.d.ts.map +1 -1
- package/dist/types/state/FeaturesAvailabilityBIParams.d.ts +1 -0
- package/dist/types/state/FeaturesAvailabilityBIParams.d.ts.map +1 -1
- package/dist/types/state/TableGridSwitchFoldersState.d.ts.map +1 -1
- package/dist/types/state/TableGridSwitchState.d.ts.map +1 -1
- package/dist/types/state/ToolbarCollectionState.d.ts +6 -1
- package/dist/types/state/ToolbarCollectionState.d.ts.map +1 -1
- package/dist/types/testkit/enzyme.d.ts +8 -0
- package/dist/types/testkit/enzyme.d.ts.map +1 -1
- package/dist/types/testkit/jsdom.d.ts +8 -0
- package/dist/types/testkit/jsdom.d.ts.map +1 -1
- package/dist/types/testkit/playwright.d.ts +8 -0
- package/dist/types/testkit/playwright.d.ts.map +1 -1
- package/dist/types/testkit/puppeteer.d.ts +8 -0
- package/dist/types/testkit/puppeteer.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/CardContainer/CardContainer.st.css.ts +2 -2
- package/src/components/Collapse/Collapse.st.css.ts +2 -2
- package/src/components/CollectionPageNew/CollectionPage.st.css.ts +2 -2
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.st.css.ts +2 -2
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.tsx +18 -4
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.types.ts +20 -0
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.uni.driver.ts +6 -0
- package/src/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.tsx +41 -8
- package/src/components/CollectionTable/CollectionTable.st.css.ts +2 -2
- package/src/components/CollectionTable/CollectionTable.tsx +1 -0
- package/src/components/CollectionTable/useTableCollectionSyncProps.ts +3 -0
- package/src/components/CollectionToolbar/CollectionToolbar.st.css.ts +2 -2
- package/src/components/CollectionToolbar/SearchOrCustomFilter.st.css.ts +2 -2
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.ts +2 -2
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.tsx +14 -4
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonlyState.ts +10 -0
- package/src/components/CollectionViewsDropdown/ViewsDropdown.st.css.ts +2 -2
- package/src/components/CollectionViewsDropdown/ViewsDropdown.tsx +22 -6
- package/src/components/DragHandle/DragHandle.st.css.ts +2 -2
- package/src/components/EntityPage/EntityPagePlain.st.css.ts +2 -2
- package/src/components/Fade/Fade.st.css.ts +2 -2
- package/src/components/GridSections/GridSectionHeader.tsx +2 -1
- package/src/components/GridSections/GridSectionsState.ts +3 -2
- package/src/components/Heading/Heading.st.css.ts +2 -2
- package/src/components/InputOverflow/InputOverflow.st.css.ts +2 -2
- package/src/components/LoadingRow/LoadingRow.st.css.ts +3 -3
- package/src/components/MaxHeightText/MaxHeightText.st.css.ts +2 -2
- package/src/components/MaxLines/MaxLines.st.css.ts +2 -2
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.ts +2 -2
- package/src/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.ts +2 -2
- package/src/components/NestedTable/NestedTableRow.st.css.ts +2 -2
- package/src/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.ts +2 -2
- package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.ts +2 -2
- package/src/components/PickerContent/PickerContent.st.css.ts +2 -2
- package/src/components/PickerContent/PickerContentAdditionalStep.st.css.ts +2 -2
- package/src/components/PickerTableListItem/PickerTableListItem.st.css.ts +2 -2
- package/src/components/ScrollableContent/ScrollableContent.st.css.ts +2 -2
- package/src/components/SkeletonCard/SkeletonCard.st.css.ts +2 -2
- package/src/components/SlidingModal/SlidingModal.st.css.ts +2 -2
- package/src/components/Table/TableBase.tsx +2 -0
- package/src/components/TableGridSwitch/TableGridSwitch.tsx +9 -1
- package/src/components/TableSections/TableSectionRow.tsx +4 -1
- package/src/components/TableSections/TableSections.tsx +19 -2
- package/src/components/TableSections/TableSectionsState.ts +61 -6
- package/src/components/TabsFilter/TabsFilter.st.css.ts +2 -2
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.ts +2 -2
- package/src/components/ToolbarCollection/useToolbarCollectionSyncProps.ts +2 -0
- package/src/components/ToolbarItem/ToolbarItem.st.css.ts +2 -2
- package/src/components/ToolbarItemBox/ToolbarItemBox.st.css.ts +2 -2
- package/src/components/common.st.css.ts +2 -2
- package/src/model/view.ts +7 -0
- package/src/state/CollectionPage/CollectionPageHeader.st.css.ts +2 -2
- package/src/state/CollectionViewsQueryCompareHelper.ts +6 -1
- package/src/state/CollectionViewsState.ts +16 -1
- package/src/state/FeaturesAvailabilityBIParams.ts +1 -0
- package/src/state/FormPage/FormPageHeader.st.css.ts +2 -2
- package/src/state/TableGridSwitchFoldersState.ts +2 -0
- package/src/state/TableGridSwitchState.ts +2 -0
- package/src/state/ToolbarCollectionState.ts +14 -1
- package/src/styles.global.css +1 -1
- package/src/version.ts +1 -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/NestedTableDragAndDrop/NestedTableDragAndDropRow.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/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"NestedTableDragAndDropRow559033372\";\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\":\"NestedTableDragAndDropRow559033372__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,oCAAoC;AACtD,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;AAA0C,CAAC;AACjE,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_ = "PickerContent900717721";
|
|
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": "PickerContent900717721__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/PickerContent/PickerContent.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/PickerContent/PickerContent.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"PickerContent900717721\";\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\":\"PickerContent900717721__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,wBAAwB;AAC1C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAA8B,CAAC;AACrD,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,16 +5,16 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "PickerContentAdditionalStep3507325941";
|
|
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
|
-
"titles": "
|
|
17
|
-
"suffix": "
|
|
15
|
+
"root": "PickerContentAdditionalStep3507325941__root",
|
|
16
|
+
"titles": "PickerContentAdditionalStep3507325941__titles",
|
|
17
|
+
"suffix": "PickerContentAdditionalStep3507325941__suffix"
|
|
18
18
|
};
|
|
19
19
|
var keyframes = exports.keyframes = {};
|
|
20
20
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/PickerContent/PickerContentAdditionalStep.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/PickerContent/PickerContentAdditionalStep.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"PickerContentAdditionalStep3507325941\";\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\":\"PickerContentAdditionalStep3507325941__root\",\"titles\":\"PickerContentAdditionalStep3507325941__titles\",\"suffix\":\"PickerContentAdditionalStep3507325941__suffix\"};\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,uCAAuC;AACzD,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,6CAA6C;EAAC,QAAQ,EAAC,+CAA+C;EAAC,QAAQ,EAAC;AAA+C,CAAC;AACtL,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_ = "PickerTableListItem2816858989";
|
|
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": "PickerTableListItem2816858989__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/PickerTableListItem/PickerTableListItem.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/PickerTableListItem/PickerTableListItem.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"PickerTableListItem2816858989\";\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\":\"PickerTableListItem2816858989__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,+BAA+B;AACjD,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;AAAqC,CAAC;AAC5D,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_ = "ScrollableContent2272651284";
|
|
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": "ScrollableContent2272651284__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/ScrollableContent/ScrollableContent.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/ScrollableContent/ScrollableContent.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"ScrollableContent2272651284\";\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\":\"ScrollableContent2272651284__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,6BAA6B;AAC/C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAmC,CAAC;AAC1D,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,15 +5,15 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "SkeletonCard2008983369";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"headerLoading": "
|
|
15
|
+
"root": "SkeletonCard2008983369__root",
|
|
16
|
+
"headerLoading": "SkeletonCard2008983369__headerLoading"
|
|
17
17
|
};
|
|
18
18
|
var keyframes = exports.keyframes = {};
|
|
19
19
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/SkeletonCard/SkeletonCard.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/SkeletonCard/SkeletonCard.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"SkeletonCard2008983369\";\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\":\"SkeletonCard2008983369__root\",\"headerLoading\":\"SkeletonCard2008983369__headerLoading\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,wBAAwB;AAC1C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,8BAA8B;EAAC,eAAe,EAAC;AAAuC,CAAC;AAC7G,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "SlidingModal4217273137";
|
|
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": "SlidingModal4217273137__root"
|
|
16
16
|
};
|
|
17
17
|
var keyframes = exports.keyframes = {};
|
|
18
18
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/SlidingModal/SlidingModal.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/SlidingModal/SlidingModal.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"SlidingModal4217273137\";\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\":\"SlidingModal4217273137__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,wBAAwB;AAC1C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAA8B,CAAC;AACrD,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -89,6 +89,8 @@ function _TableBase(props) {
|
|
|
89
89
|
table: state,
|
|
90
90
|
groupBy: sections.groupBy,
|
|
91
91
|
renderSection: sections.renderSection,
|
|
92
|
+
collapsible: sections.collapsible,
|
|
93
|
+
events: sections.events,
|
|
92
94
|
__self: this,
|
|
93
95
|
__source: {
|
|
94
96
|
fileName: _jsxFileName,
|
|
@@ -100,7 +102,7 @@ function _TableBase(props) {
|
|
|
100
102
|
__self: this,
|
|
101
103
|
__source: {
|
|
102
104
|
fileName: _jsxFileName,
|
|
103
|
-
lineNumber:
|
|
105
|
+
lineNumber: 85,
|
|
104
106
|
columnNumber: 9
|
|
105
107
|
}
|
|
106
108
|
})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_designSystem","_mobxReactLite","_CollectionTable","_useTableSyncProps","_providers","_getToolbarCollectionFeaturesInitializers","_useTableBaseRow","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_TableBase","props","state","sections","useNewInfiniteScrollLoader","multiLevelSorting","internalScroll","toolbar","container","isPanelLayout","table","collection","fetchedLastPage","query","limit","scrollElement","useTableSyncProps","TableBaseRow","useTableBaseRow","useEffect","init","featuresInitializers","getToolbarCollectionFeaturesInitializers","hasMultiLevelSorting","undefined","infiniteScrollProps","infiniteScroll","loadMore","fetchNextPageIfNeeded","hasMore","itemsPerPage","loader","createElement","Box","backgroundColor","align","padding","__self","__source","fileName","lineNumber","columnNumber","Loader","dataHook","commonTableProps","initialLoad","TableProvider","value","TableSections","_extends2","groupBy","renderSection","CollectionTable","TrElementType","TableBase","exports","observer"],"sources":["../../../../src/components/Table/TableBase.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { Box, Loader } from '@wix/design-system';\nimport { observer } from 'mobx-react-lite';\nimport { FiltersMap } from '@wix/bex-core';\nimport { CollectionTable, CollectionTableProps } from '../CollectionTable';\nimport { useTableSyncProps } from './useTableSyncProps';\nimport { TableProvider } from '../../providers';\nimport { getToolbarCollectionFeaturesInitializers } from '../../state/getToolbarCollectionFeaturesInitializers';\nimport { useTableBaseRow } from './useTableBaseRow';\nimport type { TableSectionsProp } from '../TableSections';\n\nexport interface TableBaseProps<T, F extends FiltersMap>\n extends CollectionTableProps<T, F> {\n rowHeight?: number | ((item: T, index: number) => number);\n estimatedRowHeight?: number;\n sections?: TableSectionsProp<T>;\n}\n\nfunction _TableBase<T, F extends FiltersMap = FiltersMap>(\n props: TableBaseProps<T, F>,\n) {\n const { state, sections, useNewInfiniteScrollLoader, multiLevelSorting } =\n props;\n\n const internalScroll = state.toolbar.container.isPanelLayout\n ? true\n : props.internalScroll;\n\n const { table } = state;\n const { collection } = table;\n const {\n fetchedLastPage,\n query: { limit },\n } = collection;\n\n const { scrollElement } = useTableSyncProps(props);\n\n const TableBaseRow = useTableBaseRow(state);\n\n useEffect(() => {\n return state.init({\n featuresInitializers: [\n ...getToolbarCollectionFeaturesInitializers(props),\n ],\n hasMultiLevelSorting: multiLevelSorting !== undefined,\n });\n }, []);\n\n const infiniteScrollProps =\n useNewInfiniteScrollLoader || internalScroll\n ? {}\n : {\n infiniteScroll: true,\n loadMore: collection.fetchNextPageIfNeeded,\n hasMore: !fetchedLastPage,\n itemsPerPage: limit,\n loader: (\n <Box backgroundColor=\"D80\" align=\"center\" padding=\"large\">\n <Loader dataHook=\"infinite-scroll-loader\" />\n </Box>\n ),\n };\n\n const commonTableProps = {\n ...props,\n ...infiniteScrollProps,\n scrollElement,\n useNewInfiniteScrollLoader,\n initialLoad: false,\n state,\n };\n\n return (\n <TableProvider value={state}>\n {sections ? (\n <sections.TableSections\n {...commonTableProps}\n table={state}\n groupBy={sections.groupBy}\n renderSection={sections.renderSection}\n />\n ) : (\n <CollectionTable {...commonTableProps} TrElementType={TableBaseRow} />\n )}\n </TableProvider>\n );\n}\n\nexport const TableBase = observer(_TableBase);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,gBAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,yCAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AAAoD,IAAAQ,YAAA;AAAA,SAAAT,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CA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QAAQ,CAACgD,aAAc;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_designSystem","_mobxReactLite","_CollectionTable","_useTableSyncProps","_providers","_getToolbarCollectionFeaturesInitializers","_useTableBaseRow","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_TableBase","props","state","sections","useNewInfiniteScrollLoader","multiLevelSorting","internalScroll","toolbar","container","isPanelLayout","table","collection","fetchedLastPage","query","limit","scrollElement","useTableSyncProps","TableBaseRow","useTableBaseRow","useEffect","init","featuresInitializers","getToolbarCollectionFeaturesInitializers","hasMultiLevelSorting","undefined","infiniteScrollProps","infiniteScroll","loadMore","fetchNextPageIfNeeded","hasMore","itemsPerPage","loader","createElement","Box","backgroundColor","align","padding","__self","__source","fileName","lineNumber","columnNumber","Loader","dataHook","commonTableProps","initialLoad","TableProvider","value","TableSections","_extends2","groupBy","renderSection","collapsible","events","CollectionTable","TrElementType","TableBase","exports","observer"],"sources":["../../../../src/components/Table/TableBase.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { Box, Loader } from '@wix/design-system';\nimport { observer } from 'mobx-react-lite';\nimport { FiltersMap } from '@wix/bex-core';\nimport { CollectionTable, CollectionTableProps } from '../CollectionTable';\nimport { useTableSyncProps } from './useTableSyncProps';\nimport { TableProvider } from '../../providers';\nimport { getToolbarCollectionFeaturesInitializers } from '../../state/getToolbarCollectionFeaturesInitializers';\nimport { useTableBaseRow } from './useTableBaseRow';\nimport type { TableSectionsProp } from '../TableSections';\n\nexport interface TableBaseProps<T, F extends FiltersMap>\n extends CollectionTableProps<T, F> {\n rowHeight?: number | ((item: T, index: number) => number);\n estimatedRowHeight?: number;\n sections?: TableSectionsProp<T>;\n}\n\nfunction _TableBase<T, F extends FiltersMap = FiltersMap>(\n props: TableBaseProps<T, F>,\n) {\n const { state, sections, useNewInfiniteScrollLoader, multiLevelSorting } =\n props;\n\n const internalScroll = state.toolbar.container.isPanelLayout\n ? true\n : props.internalScroll;\n\n const { table } = state;\n const { collection } = table;\n const {\n fetchedLastPage,\n query: { limit },\n } = collection;\n\n const { scrollElement } = useTableSyncProps(props);\n\n const TableBaseRow = useTableBaseRow(state);\n\n useEffect(() => {\n return state.init({\n featuresInitializers: [\n ...getToolbarCollectionFeaturesInitializers(props),\n ],\n hasMultiLevelSorting: multiLevelSorting !== undefined,\n });\n }, []);\n\n const infiniteScrollProps =\n useNewInfiniteScrollLoader || internalScroll\n ? {}\n : {\n infiniteScroll: true,\n loadMore: collection.fetchNextPageIfNeeded,\n hasMore: !fetchedLastPage,\n itemsPerPage: limit,\n loader: (\n <Box backgroundColor=\"D80\" align=\"center\" padding=\"large\">\n <Loader dataHook=\"infinite-scroll-loader\" />\n </Box>\n ),\n };\n\n const commonTableProps = {\n ...props,\n ...infiniteScrollProps,\n scrollElement,\n useNewInfiniteScrollLoader,\n initialLoad: false,\n state,\n };\n\n return (\n <TableProvider value={state}>\n {sections ? (\n <sections.TableSections\n {...commonTableProps}\n table={state}\n groupBy={sections.groupBy}\n renderSection={sections.renderSection}\n collapsible={sections.collapsible}\n events={sections.events}\n />\n ) : (\n <CollectionTable {...commonTableProps} TrElementType={TableBaseRow} />\n )}\n </TableProvider>\n );\n}\n\nexport const TableBase = observer(_TableBase);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,gBAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,yCAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AAAoD,IAAAQ,YAAA;AAAA,SAAAT,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,C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oBACEhC,MAAA,CAAAqB,OAAA,CAAAyC,aAAA,CAACvD,UAAA,CAAAqE,aAAa;IAACC,KAAK,EAAE7C,KAAM;IAAAmC,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA3D,YAAA;MAAA4D,UAAA;MAAAC,YAAA;IAAA;EAAA,GACzBtC,QAAQ,gBACPjC,MAAA,CAAAqB,OAAA,CAAAyC,aAAA,CAAC7B,QAAQ,CAAC6C,aAAa,MAAAC,SAAA,CAAA1D,OAAA,MACjBqD,gBAAgB;IACpBlC,KAAK,EAAER,KAAM;IACbgD,OAAO,EAAE/C,QAAQ,CAAC+C,OAAQ;IAC1BC,aAAa,EAAEhD,QAAQ,CAACgD,aAAc;IACtCC,WAAW,EAAEjD,QAAQ,CAACiD,WAAY;IAClCC,MAAM,EAAElD,QAAQ,CAACkD,MAAO;IAAAhB,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA3D,YAAA;MAAA4D,UAAA;MAAAC,YAAA;IAAA;EAAA,EACzB,CAAC,gBAEFvE,MAAA,CAAAqB,OAAA,CAAAyC,aAAA,CAACzD,gBAAA,CAAA+E,eAAe,MAAAL,SAAA,CAAA1D,OAAA,MAAKqD,gBAAgB;IAAEW,aAAa,EAAEtC,YAAa;IAAAoB,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA3D,YAAA;MAAA4D,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAE,CAE1D,CAAC;AAEpB;AAEO,MAAMe,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG,IAAAE,uBAAQ,EAAC1D,UAAU,CAAC","ignoreList":[]}
|
|
@@ -30,7 +30,7 @@ function _TableGridSwitch(props) {
|
|
|
30
30
|
__self: this,
|
|
31
31
|
__source: {
|
|
32
32
|
fileName: _jsxFileName,
|
|
33
|
-
lineNumber:
|
|
33
|
+
lineNumber: 66,
|
|
34
34
|
columnNumber: 5
|
|
35
35
|
}
|
|
36
36
|
});
|
|
@@ -49,7 +49,9 @@ function _TableGridSwitch(props) {
|
|
|
49
49
|
const tableSections = sections ? {
|
|
50
50
|
TableSections: sections.TableSections,
|
|
51
51
|
groupBy: sections.groupBy,
|
|
52
|
-
renderSection: sections.renderSection
|
|
52
|
+
renderSection: sections.renderSection,
|
|
53
|
+
collapsible: sections.collapsible,
|
|
54
|
+
events: sections.events
|
|
53
55
|
} : undefined;
|
|
54
56
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isLoading ? /*#__PURE__*/_react.default.createElement(_InitialLoader.InitialLoader, {
|
|
55
57
|
dataHook: "initial-loader",
|
|
@@ -57,7 +59,7 @@ function _TableGridSwitch(props) {
|
|
|
57
59
|
__self: this,
|
|
58
60
|
__source: {
|
|
59
61
|
fileName: _jsxFileName,
|
|
60
|
-
lineNumber:
|
|
62
|
+
lineNumber: 98,
|
|
61
63
|
columnNumber: 9
|
|
62
64
|
}
|
|
63
65
|
}) : state.viewType === 'grid' ? /*#__PURE__*/_react.default.createElement(_Grid.Grid, (0, _extends2.default)({}, restProps, {
|
|
@@ -68,7 +70,7 @@ function _TableGridSwitch(props) {
|
|
|
68
70
|
__self: this,
|
|
69
71
|
__source: {
|
|
70
72
|
fileName: _jsxFileName,
|
|
71
|
-
lineNumber:
|
|
73
|
+
lineNumber: 100,
|
|
72
74
|
columnNumber: 9
|
|
73
75
|
}
|
|
74
76
|
})) : /*#__PURE__*/_react.default.createElement(_.Table, (0, _extends2.default)({}, restProps, {
|
|
@@ -80,7 +82,7 @@ function _TableGridSwitch(props) {
|
|
|
80
82
|
__self: this,
|
|
81
83
|
__source: {
|
|
82
84
|
fileName: _jsxFileName,
|
|
83
|
-
lineNumber:
|
|
85
|
+
lineNumber: 108,
|
|
84
86
|
columnNumber: 9
|
|
85
87
|
}
|
|
86
88
|
})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_Grid","_","_mobxReactLite","_TableGridSwitchButton","_InitialLoader","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_TableGridSwitch","props","state","dragAndDrop","sections","restProps","gridState","tableState","toolbar","tableGridSwitchButton","createElement","TableGridSwitchButton","viewTypeState","__self","__source","fileName","lineNumber","columnNumber","useEffect","init","initTask","status","isLoading","isIdle","gridSections","GridSections","groupBy","renderSection","undefined","tableSections","TableSections","Fragment","InitialLoader","dataHook","viewType","Grid","_extends2","grid","Table","sticky","table","TableGridSwitch","exports","observer"],"sources":["../../../../src/components/TableGridSwitch/TableGridSwitch.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport { Grid, GridBasePropsWithoutPreset } from '../Grid';\nimport { Table, TableProps } from '..';\nimport { observer } from 'mobx-react-lite';\nimport type { TableGridSwitchState } from '../../state/TableGridSwitchState';\nimport { TableGridSwitchButton } from '../TableGridSwitchButton';\nimport { GridPresetProps } from '../Grid/Grid.types';\nimport type { TableGridSwitchDragAndDrop } from './TableGridSwitchDragAndDrop';\nimport { InitialLoader } from '../InitialLoader';\nimport { GridSectionsContent } from '../GridSections/GridSectionsContent';\nimport type {
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_Grid","_","_mobxReactLite","_TableGridSwitchButton","_InitialLoader","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_TableGridSwitch","props","state","dragAndDrop","sections","restProps","gridState","tableState","toolbar","tableGridSwitchButton","createElement","TableGridSwitchButton","viewTypeState","__self","__source","fileName","lineNumber","columnNumber","useEffect","init","initTask","status","isLoading","isIdle","gridSections","GridSections","groupBy","renderSection","undefined","tableSections","TableSections","collapsible","events","Fragment","InitialLoader","dataHook","viewType","Grid","_extends2","grid","Table","sticky","table","TableGridSwitch","exports","observer"],"sources":["../../../../src/components/TableGridSwitch/TableGridSwitch.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport { Grid, GridBasePropsWithoutPreset } from '../Grid';\nimport { Table, TableProps } from '..';\nimport { observer } from 'mobx-react-lite';\nimport type { TableGridSwitchState } from '../../state/TableGridSwitchState';\nimport { TableGridSwitchButton } from '../TableGridSwitchButton';\nimport { GridPresetProps } from '../Grid/Grid.types';\nimport type { TableGridSwitchDragAndDrop } from './TableGridSwitchDragAndDrop';\nimport { InitialLoader } from '../InitialLoader';\nimport { GridSectionsContent } from '../GridSections/GridSectionsContent';\nimport type {\n GroupBy,\n RenderSection,\n SectionEvents,\n} from '../CollectionSectionHeader';\nimport { TableSections } from '../TableSections';\n\nexport interface TableGridSwitchBaseProps<T, F extends FiltersMap>\n extends Omit<\n GridBasePropsWithoutPreset<T, F>,\n 'state' | 'dragAndDrop' | 'tableGridSwitchButton' | 'sticky' | 'sections'\n >,\n Omit<\n TableProps<T, F>,\n 'state' | 'dragAndDrop' | 'tableGridSwitchButton' | 'sticky' | 'sections'\n > {\n /**\n * A `TableGridSwitchState` instance created using [useTableGridSwitch](./?path=/story/base-components-collections-tablegridswitch-usetablegridswitchcollection--usetablegridswitchcollection).\n */\n state: TableGridSwitchState<T, F>;\n /**\n * Adds functionality to allow visitors to reorder items manually.\n * For more information, see the [Drag and Drop Overview](./?path=/story/features-sort-drag-and-drop--overview).\n * @overrideType [TableGridSwitchDragAndDrop](./?path=/story/features-sort-drag-and-drop--tablegridswitchdraganddrop)\n * @external\n */\n dragAndDrop?: typeof TableGridSwitchDragAndDrop;\n /**\n * Configuration for rendering sections. When provided, the component will render with section headers\n * that group related rows together for both Grid and Table views.\n * @external\n */\n sections?: {\n GridSections: typeof GridSectionsContent;\n TableSections: typeof TableSections;\n groupBy: GroupBy<T>;\n renderSection: RenderSection<T>;\n collapsible?: boolean;\n events?: SectionEvents;\n };\n}\n\nexport type TableGridSwitchProps<T, F extends FiltersMap> = GridPresetProps<\n T,\n TableGridSwitchBaseProps<T, F>\n>;\n\nexport function _TableGridSwitch<T, F extends FiltersMap = FiltersMap>(\n props: TableGridSwitchProps<T, F>,\n) {\n const { state, dragAndDrop, sections, ...restProps } = props;\n const { gridState, tableState, toolbar } = state;\n\n const tableGridSwitchButton = (\n <TableGridSwitchButton state={state.viewTypeState} />\n );\n\n useEffect(() => state.init(), []);\n\n const {\n initTask: { status },\n } = state;\n\n const isLoading = status.isIdle || status.isLoading;\n\n const gridSections = sections\n ? {\n GridSections: sections.GridSections,\n groupBy: sections.groupBy,\n renderSection: sections.renderSection,\n }\n : undefined;\n\n const tableSections = sections\n ? {\n TableSections: sections.TableSections,\n groupBy: sections.groupBy,\n renderSection: sections.renderSection,\n collapsible: sections.collapsible,\n events: sections.events,\n }\n : undefined;\n\n return (\n <>\n {isLoading ? (\n <InitialLoader dataHook=\"initial-loader\" state={toolbar} />\n ) : state.viewType === 'grid' ? (\n <Grid\n {...restProps}\n tableGridSwitchButton={tableGridSwitchButton}\n state={gridState}\n dragAndDrop={dragAndDrop?.grid}\n sections={gridSections}\n />\n ) : (\n <Table\n {...restProps}\n sticky\n tableGridSwitchButton={tableGridSwitchButton}\n state={tableState}\n dragAndDrop={dragAndDrop?.table}\n sections={tableSections}\n />\n )}\n </>\n );\n}\n\nexport const TableGridSwitch = observer(_TableGridSwitch);\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,CAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,sBAAA,GAAAJ,OAAA;AAGA,IAAAK,cAAA,GAAAL,OAAA;AAAiD,IAAAM,YAAA;AAAA,SAAAP,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,CAAAQ,CAAA,EAAAC,CAAA,SAAAA,CAAA,IA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;IACjBH,WAAW,EAAEA,WAAW,oBAAXA,WAAW,CAAEoC,IAAK;IAC/BnC,QAAQ,EAAEoB,YAAa;IAAAX,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnC,YAAA;MAAAoC,UAAA;MAAAC,YAAA;IAAA;EAAA,EACxB,CAAC,gBAEF7C,MAAA,CAAAmB,OAAA,CAAAmB,aAAA,CAAClC,CAAA,CAAAgE,KAAK,MAAAF,SAAA,CAAA/C,OAAA,MACAc,SAAS;IACboC,MAAM;IACNhC,qBAAqB,EAAEA,qBAAsB;IAC7CP,KAAK,EAAEK,UAAW;IAClBJ,WAAW,EAAEA,WAAW,oBAAXA,WAAW,CAAEuC,KAAM;IAChCtC,QAAQ,EAAEyB,aAAc;IAAAhB,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnC,YAAA;MAAAoC,UAAA;MAAAC,YAAA;IAAA;EAAA,EACzB,CAEH,CAAC;AAEP;AAEO,MAAM0B,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,IAAAE,uBAAQ,EAAC7C,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -59,7 +59,9 @@ const _TableSectionRow = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
59
59
|
}
|
|
60
60
|
const {
|
|
61
61
|
sectionId,
|
|
62
|
-
|
|
62
|
+
sectionIndex,
|
|
63
|
+
section,
|
|
64
|
+
collapsible
|
|
63
65
|
} = result;
|
|
64
66
|
return /*#__PURE__*/_react.default.createElement("tr", (0, _extends2.default)({}, props, {
|
|
65
67
|
ref: ref,
|
|
@@ -102,10 +104,13 @@ const _TableSectionRow = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
102
104
|
}
|
|
103
105
|
}, /*#__PURE__*/_react.default.createElement(_CollectionSectionHeader.CollectionSectionHeader, {
|
|
104
106
|
sectionId: sectionId,
|
|
107
|
+
sectionIndex: sectionIndex,
|
|
105
108
|
section: section,
|
|
106
109
|
biComponentType: "TableSections",
|
|
107
110
|
skin: "neutral",
|
|
108
111
|
dataHook: "table-section-header",
|
|
112
|
+
collapsible: collapsible,
|
|
113
|
+
onToggleCollapse: state.toggleSection,
|
|
109
114
|
__self: void 0,
|
|
110
115
|
__source: {
|
|
111
116
|
fileName: _jsxFileName,
|
|
@@ -118,7 +123,7 @@ const _TableSectionRow = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
118
123
|
__self: void 0,
|
|
119
124
|
__source: {
|
|
120
125
|
fileName: _jsxFileName,
|
|
121
|
-
lineNumber:
|
|
126
|
+
lineNumber: 101,
|
|
122
127
|
columnNumber: 10
|
|
123
128
|
}
|
|
124
129
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_CollectionSectionHeader","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_TableSectionRow","forwardRef","state","RegularTrElement","rowData","props","ref","children","className","style","isSectionRow","contentWidth","table","toolbar","itemsContentRect","rect","width","sectionContentWidth","regularTrElementProps","isInvisibleRow","createElement","_extends2","visibility","__self","__source","fileName","lineNumber","columnNumber","Array","isArray","length","result","getSectionWithCount","sectionId","section","position","cursor","colSpan","scope","padding","left","CollectionSectionHeader","biComponentType","skin","dataHook","TableSectionRow","exports","observer"],"sources":["../../../../src/components/TableSections/TableSectionRow.tsx"],"sourcesContent":["import React, {\n ForwardRefExoticComponent,\n HTMLAttributes,\n ReactElement,\n forwardRef,\n} from 'react';\nimport { observer } from 'mobx-react-lite';\nimport { FiltersMap, KeyedItem } from '@wix/bex-core';\nimport { TableSectionsState } from './TableSectionsState';\nimport { CollectionSectionHeader } from '../CollectionSectionHeader';\n\nexport interface TableSectionRowProps<T, F extends FiltersMap>\n extends HTMLAttributes<HTMLTableRowElement> {\n rowData: KeyedItem<T>;\n state: TableSectionsState<T, F>;\n RegularTrElement: ForwardRefExoticComponent<{\n children: ReactElement[];\n rowData: { id: string };\n className: string;\n }>;\n}\n\nconst _TableSectionRow = forwardRef<\n HTMLTableRowElement,\n TableSectionRowProps<any, any>\n>(({ state, RegularTrElement, rowData, ...props }, ref) => {\n const { children, className, style } = props;\n const isSectionRow = state.isSectionRow(rowData);\n const contentWidth = state.table.toolbar.itemsContentRect.rect.width;\n const sectionContentWidth = contentWidth ? `${contentWidth}px` : '100%';\n const regularTrElementProps = {\n ...props,\n rowData,\n className: className || '',\n children: (children as ReactElement[]) || [],\n };\n\n if (state.isInvisibleRow(rowData)) {\n return (\n <tr\n {...props}\n ref={ref}\n className={className}\n style={{\n ...style,\n visibility: 'collapse',\n }}\n />\n );\n }\n\n if (isSectionRow && Array.isArray(children) && children.length > 0) {\n const result = state.getSectionWithCount(rowData);\n\n if (!result) {\n return <RegularTrElement {...regularTrElementProps} />;\n }\n\n const { sectionId, section } = result;\n\n return (\n <tr\n {...props}\n ref={ref}\n className={className}\n style={{\n ...style,\n position: 'relative',\n cursor: 'default',\n }}\n data-hook=\"table-section-header-row\"\n >\n <th\n colSpan={children.length}\n scope=\"rowgroup\"\n style={{ padding: '0px' }}\n >\n <div\n style={{\n position: 'sticky',\n left: 0,\n width: sectionContentWidth,\n }}\n >\n <CollectionSectionHeader\n sectionId={sectionId}\n section={section}\n biComponentType=\"TableSections\"\n skin=\"neutral\"\n dataHook=\"table-section-header\"\n />\n </div>\n </th>\n </tr>\n );\n }\n\n return <RegularTrElement {...regularTrElementProps} />;\n});\n\nexport const TableSectionRow = observer(_TableSectionRow);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAMA,IAAAC,cAAA,GAAAD,OAAA;AAGA,IAAAE,wBAAA,GAAAF,OAAA;AAAqE,IAAAG,YAAA;AAAA,SAAAJ,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAA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Y,GAAG,GAAGA,YAAY,IAAI,GAAG,MAAM;EACvE,MAAMO,qBAAqB,GAAG;IAC5B,GAAGb,KAAK;IACRD,OAAO;IACPI,SAAS,EAAEA,SAAS,IAAI,EAAE;IAC1BD,QAAQ,EAAGA,QAAQ,IAAuB;EAC5C,CAAC;EAED,IAAIL,KAAK,CAACiB,cAAc,CAACf,OAAO,CAAC,EAAE;IACjC,oBACE7B,MAAA,CAAAgB,OAAA,CAAA6B,aAAA,WAAAC,SAAA,CAAA9B,OAAA,MACMc,KAAK;MACTC,GAAG,EAAEA,GAAI;MACTE,SAAS,EAAEA,SAAU;MACrBC,KAAK,EAAE;QACL,GAAGA,KAAK;QACRa,UAAU,EAAE;MACd,CAAE;MAAAC,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAA7C,YAAA;QAAA8C,UAAA;QAAAC,YAAA;MAAA;IAAA,EACH,CAAC;EAEN;EAEA,IAAIjB,YAAY,IAAIkB,KAAK,CAACC,OAAO,CAACtB,QAAQ,CAAC,IAAIA,QAAQ,CAACuB,MAAM,GAAG,CAAC,EAAE;IAClE,MAAMC,MAAM,GAAG7B,KAAK,CAAC8B,mBAAmB,CAAC5B,OAAO,CAAC;IAEjD,IAAI,CAAC2B,MAAM,EAAE;MACX,oBAAOxD,MAAA,CAAAgB,OAAA,CAAA6B,aAAA,CAACjB,gBAAgB,MAAAkB,SAAA,CAAA9B,OAAA,MAAK2B,qBAAqB;QAAAK,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAA7C,YAAA;UAAA8C,UAAA;UAAAC,YAAA;QAAA;MAAA,EAAG,CAAC;IACxD;IAEA,MAAM;MAAEM,SAAS;MAAEC;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_CollectionSectionHeader","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_TableSectionRow","forwardRef","state","RegularTrElement","rowData","props","ref","children","className","style","isSectionRow","contentWidth","table","toolbar","itemsContentRect","rect","width","sectionContentWidth","regularTrElementProps","isInvisibleRow","createElement","_extends2","visibility","__self","__source","fileName","lineNumber","columnNumber","Array","isArray","length","result","getSectionWithCount","sectionId","sectionIndex","section","collapsible","position","cursor","colSpan","scope","padding","left","CollectionSectionHeader","biComponentType","skin","dataHook","onToggleCollapse","toggleSection","TableSectionRow","exports","observer"],"sources":["../../../../src/components/TableSections/TableSectionRow.tsx"],"sourcesContent":["import React, {\n ForwardRefExoticComponent,\n HTMLAttributes,\n ReactElement,\n forwardRef,\n} from 'react';\nimport { observer } from 'mobx-react-lite';\nimport { FiltersMap, KeyedItem } from '@wix/bex-core';\nimport { TableSectionsState } from './TableSectionsState';\nimport { CollectionSectionHeader } from '../CollectionSectionHeader';\n\nexport interface TableSectionRowProps<T, F extends FiltersMap>\n extends HTMLAttributes<HTMLTableRowElement> {\n rowData: KeyedItem<T>;\n state: TableSectionsState<T, F>;\n RegularTrElement: ForwardRefExoticComponent<{\n children: ReactElement[];\n rowData: { id: string };\n className: string;\n }>;\n}\n\nconst _TableSectionRow = forwardRef<\n HTMLTableRowElement,\n TableSectionRowProps<any, any>\n>(({ state, RegularTrElement, rowData, ...props }, ref) => {\n const { children, className, style } = props;\n const isSectionRow = state.isSectionRow(rowData);\n const contentWidth = state.table.toolbar.itemsContentRect.rect.width;\n const sectionContentWidth = contentWidth ? `${contentWidth}px` : '100%';\n const regularTrElementProps = {\n ...props,\n rowData,\n className: className || '',\n children: (children as ReactElement[]) || [],\n };\n\n if (state.isInvisibleRow(rowData)) {\n return (\n <tr\n {...props}\n ref={ref}\n className={className}\n style={{\n ...style,\n visibility: 'collapse',\n }}\n />\n );\n }\n\n if (isSectionRow && Array.isArray(children) && children.length > 0) {\n const result = state.getSectionWithCount(rowData);\n\n if (!result) {\n return <RegularTrElement {...regularTrElementProps} />;\n }\n\n const { sectionId, sectionIndex, section, collapsible } = result;\n\n return (\n <tr\n {...props}\n ref={ref}\n className={className}\n style={{\n ...style,\n position: 'relative',\n cursor: 'default',\n }}\n data-hook=\"table-section-header-row\"\n >\n <th\n colSpan={children.length}\n scope=\"rowgroup\"\n style={{ padding: '0px' }}\n >\n <div\n style={{\n position: 'sticky',\n left: 0,\n width: sectionContentWidth,\n }}\n >\n <CollectionSectionHeader\n sectionId={sectionId}\n sectionIndex={sectionIndex}\n section={section}\n biComponentType=\"TableSections\"\n skin=\"neutral\"\n dataHook=\"table-section-header\"\n collapsible={collapsible}\n onToggleCollapse={state.toggleSection}\n />\n </div>\n </th>\n </tr>\n );\n }\n\n return <RegularTrElement {...regularTrElementProps} />;\n});\n\nexport const TableSectionRow = observer(_TableSectionRow);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAMA,IAAAC,cAAA,GAAAD,OAAA;AAGA,IAAAE,wBAAA,GAAAF,OAAA;AAAqE,IAAAG,YAAA;AAAA,SAAAJ,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,O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,EAAE;QACL4B,QAAQ,EAAE,QAAQ;QAClBK,IAAI,EAAE,CAAC;QACP1B,KAAK,EAAEC;MACT,CAAE;MAAAM,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAA7C,YAAA;QAAA8C,UAAA;QAAAC,YAAA;MAAA;IAAA,gBAEFpD,MAAA,CAAAgB,OAAA,CAAA6B,aAAA,CAACzC,wBAAA,CAAAgE,uBAAuB;MACtBV,SAAS,EAAEA,SAAU;MACrBC,YAAY,EAAEA,YAAa;MAC3BC,OAAO,EAAEA,OAAQ;MACjBS,eAAe,EAAC,eAAe;MAC/BC,IAAI,EAAC,SAAS;MACdC,QAAQ,EAAC,sBAAsB;MAC/BV,WAAW,EAAEA,WAAY;MACzBW,gBAAgB,EAAE7C,KAAK,CAAC8C,aAAc;MAAAzB,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAA7C,YAAA;QAAA8C,UAAA;QAAAC,YAAA;MAAA;IAAA,CACvC,CACE,CACH,CACF,CAAC;EAET;EAEA,oBAAOpD,MAAA,CAAAgB,OAAA,CAAA6B,aAAA,CAACjB,gBAAgB,MAAAkB,SAAA,CAAA9B,OAAA,MAAK2B,qBAAqB;IAAAK,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA7C,YAAA;MAAA8C,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAG,CAAC;AACxD,CAAC,CAAC;AAEK,MAAMsB,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,IAAAE,uBAAQ,EAACnD,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -5,6 +5,7 @@ exports.__esModule = true;
|
|
|
5
5
|
exports.TableSections = void 0;
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _mobx = require("mobx");
|
|
8
9
|
var _mobxReactLite = require("mobx-react-lite");
|
|
9
10
|
var _CollectionTable = require("../CollectionTable");
|
|
10
11
|
var _useTableSectionRow = require("./useTableSectionRow");
|
|
@@ -17,9 +18,15 @@ const _TableSections = ({
|
|
|
17
18
|
table,
|
|
18
19
|
columns,
|
|
19
20
|
rowDetails,
|
|
21
|
+
collapsible,
|
|
22
|
+
events,
|
|
20
23
|
...collectionTableProps
|
|
21
24
|
}) => {
|
|
22
|
-
const [state] = (0, _react.useState)(() => new _TableSectionsState.TableSectionsState(table, groupBy, renderSection));
|
|
25
|
+
const [state] = (0, _react.useState)(() => new _TableSectionsState.TableSectionsState(table, groupBy, renderSection, collapsible));
|
|
26
|
+
(0, _mobx.runInAction)(() => {
|
|
27
|
+
state.renderSection = renderSection;
|
|
28
|
+
});
|
|
29
|
+
state.onToggleCallback = events == null ? void 0 : events.onToggle;
|
|
23
30
|
const columnsWithSections = (0, _react.useMemo)(() => columns.map(column => ({
|
|
24
31
|
...column,
|
|
25
32
|
render: (item, rowNum) => {
|
|
@@ -51,10 +58,11 @@ const _TableSections = ({
|
|
|
51
58
|
isRowDisabled: keyedItem => {
|
|
52
59
|
return state.isSectionRow(keyedItem);
|
|
53
60
|
},
|
|
61
|
+
isUsingExpandCollapse: collapsible,
|
|
54
62
|
__self: void 0,
|
|
55
63
|
__source: {
|
|
56
64
|
fileName: _jsxFileName,
|
|
57
|
-
lineNumber:
|
|
65
|
+
lineNumber: 74,
|
|
58
66
|
columnNumber: 5
|
|
59
67
|
}
|
|
60
68
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_CollectionTable","_useTableSectionRow","_TableSectionsState","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_TableSections","groupBy","renderSection","table","columns","rowDetails","collectionTableProps","state","useState","TableSectionsState","columnsWithSections","useMemo","map","column","render","item","rowNum","keyedItem","sectionsKeyedItems","isSectionRow","wrappedRowDetails","undefined","rowData","TableSectionsTrElement","useTableSectionRow","createElement","CollectionTable","_extends2","keyedItems","TrElementType","isRowDisabled","__self","__source","fileName","lineNumber","columnNumber","TableSections","exports","observer"],"sources":["../../../../src/components/TableSections/TableSections.tsx"],"sourcesContent":["import React, { useMemo, useState } from 'react';\nimport { FiltersMap, KeyedItem } from '@wix/bex-core';\nimport { observer } from 'mobx-react-lite';\nimport { CollectionTable, CollectionTableBaseProps } from '../CollectionTable';\nimport { useTableSectionRow } from './useTableSectionRow';\nimport { TableState } from '../../state';\nimport {
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobx","_mobxReactLite","_CollectionTable","_useTableSectionRow","_TableSectionsState","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_TableSections","groupBy","renderSection","table","columns","rowDetails","collapsible","events","collectionTableProps","state","useState","TableSectionsState","runInAction","onToggleCallback","onToggle","columnsWithSections","useMemo","map","column","render","item","rowNum","keyedItem","sectionsKeyedItems","isSectionRow","wrappedRowDetails","undefined","rowData","TableSectionsTrElement","useTableSectionRow","createElement","CollectionTable","_extends2","keyedItems","TrElementType","isRowDisabled","isUsingExpandCollapse","__self","__source","fileName","lineNumber","columnNumber","TableSections","exports","observer"],"sources":["../../../../src/components/TableSections/TableSections.tsx"],"sourcesContent":["import React, { useMemo, useState } from 'react';\nimport { runInAction } from 'mobx';\nimport { FiltersMap, KeyedItem } from '@wix/bex-core';\nimport { observer } from 'mobx-react-lite';\nimport { CollectionTable, CollectionTableBaseProps } from '../CollectionTable';\nimport { useTableSectionRow } from './useTableSectionRow';\nimport { TableState } from '../../state';\nimport {\n GroupBy,\n RenderSection,\n SectionEvents,\n} from '../CollectionSectionHeader';\nimport { TableSectionsState } from './TableSectionsState';\n\nexport interface TableSectionsProps<T, F extends FiltersMap>\n extends CollectionTableBaseProps<T, F> {\n groupBy: GroupBy<T>;\n renderSection: RenderSection<T>;\n table: TableState<T, F>;\n collapsible?: boolean;\n events?: SectionEvents;\n}\n\nconst _TableSections = <T, F extends FiltersMap>({\n groupBy,\n renderSection,\n table,\n columns,\n rowDetails,\n collapsible,\n events,\n ...collectionTableProps\n}: TableSectionsProps<T, F>) => {\n const [state] = useState(\n () => new TableSectionsState(table, groupBy, renderSection, collapsible),\n );\n\n runInAction(() => {\n state.renderSection = renderSection;\n });\n state.onToggleCallback = events?.onToggle;\n\n const columnsWithSections = useMemo(\n () =>\n columns.map((column) => ({\n ...column,\n render: (item: T, rowNum: number) => {\n const keyedItem = state.sectionsKeyedItems[rowNum];\n if (keyedItem && state.isSectionRow(keyedItem)) {\n return null;\n }\n\n return column.render(item, rowNum);\n },\n })),\n [columns],\n );\n\n const wrappedRowDetails = useMemo(() => {\n if (!rowDetails) {\n return undefined;\n }\n return (rowData: KeyedItem<T>, rowNum: number) => {\n if (state.isSectionRow(rowData)) {\n return null;\n }\n return rowDetails(rowData, rowNum);\n };\n }, [rowDetails, state]);\n\n const TableSectionsTrElement = useTableSectionRow(state);\n\n return (\n <CollectionTable\n {...collectionTableProps}\n rowDetails={wrappedRowDetails}\n state={state.table}\n columns={columnsWithSections}\n keyedItems={state.sectionsKeyedItems}\n TrElementType={TableSectionsTrElement}\n isRowDisabled={(keyedItem) => {\n return state.isSectionRow(keyedItem);\n }}\n isUsingExpandCollapse={collapsible}\n />\n );\n};\n\nexport const TableSections = observer(_TableSections);\n\nexport type TableSectionsProp<T> = {\n TableSections: typeof TableSections;\n groupBy: GroupBy<T>;\n renderSection: RenderSection<T>;\n collapsible?: boolean;\n events?: SectionEvents;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAOA,IAAAK,mBAAA,GAAAL,OAAA;AAA0D,IAAAM,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