@wix/patterns 1.343.0 → 1.345.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/ActionControl/ActionButton.js +1 -1
- package/dist/cjs/components/ActionControl/ActionButton.js.map +1 -1
- 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 +88 -17
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.js.map +1 -1
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css +6 -0
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js +25 -0
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js.map +1 -0
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.types.js.map +1 -1
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.js +4 -3
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.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/CollectionToolbar/CollectionToolbar.st.css.js +5 -5
- package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js.map +1 -1
- package/dist/cjs/components/CollectionToolbar/PrimaryActionButton.js +9 -8
- package/dist/cjs/components/CollectionToolbar/PrimaryActionButton.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.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/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/ExportButton/ExportButton.js +2 -2
- package/dist/cjs/components/ExportButton/ExportButton.js.map +1 -1
- package/dist/cjs/components/ExportButton/getExportModalStepProps.js +16 -4
- package/dist/cjs/components/ExportButton/getExportModalStepProps.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 +7 -6
- package/dist/cjs/components/Grid/Grid.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/GridSectionsContent.js +8 -5
- package/dist/cjs/components/GridSections/GridSectionsContent.js.map +1 -1
- package/dist/cjs/components/GridSections/GridSectionsSectionState.js +2 -2
- package/dist/cjs/components/GridSections/GridSectionsSectionState.js.map +1 -1
- package/dist/cjs/components/GridSections/GridSectionsState.js +31 -14
- 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/Kanban/Kanban.uni.driver.js +10 -0
- package/dist/cjs/components/Kanban/Kanban.uni.driver.js.map +1 -1
- package/dist/cjs/components/Kanban/KanbanProps.js.map +1 -1
- package/dist/cjs/components/Kanban/Stage.js +39 -25
- package/dist/cjs/components/Kanban/Stage.js.map +1 -1
- package/dist/cjs/components/Kanban/StageActions.js +121 -0
- package/dist/cjs/components/Kanban/StageActions.js.map +1 -0
- 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.js +1 -1
- package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.js.map +1 -1
- package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css +0 -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 +2 -1
- package/dist/cjs/components/Table/TableBase.js.map +1 -1
- package/dist/cjs/components/TableGridSwitch/TableGridSwitch.js +6 -4
- package/dist/cjs/components/TableGridSwitch/TableGridSwitch.js.map +1 -1
- package/dist/cjs/components/TableSections/TableSectionRow.js +13 -8
- package/dist/cjs/components/TableSections/TableSectionRow.js.map +1 -1
- package/dist/cjs/components/TableSections/TableSections.js +3 -2
- package/dist/cjs/components/TableSections/TableSections.js.map +1 -1
- package/dist/cjs/components/TableSections/TableSectionsState.js +26 -8
- 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/BulkAssignTagsPopover/BulkAssignTagsPopover.js +15 -11
- package/dist/cjs/components/Tags/BulkAssignTagsPopover/BulkAssignTagsPopover.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/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/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
- package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css.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/styles.global.css +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/components/ActionControl/ActionButton.js +1 -1
- package/dist/esm/components/ActionControl/ActionButton.js.map +1 -1
- package/dist/esm/components/CardContainer/CardContainer.st.css.js +2 -2
- package/dist/esm/components/Collapse/Collapse.st.css.js +2 -2
- package/dist/esm/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.js +31 -8
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.js.map +1 -1
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.st.css +6 -0
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js +15 -0
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js.map +1 -0
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.js +2 -2
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.js.map +1 -1
- package/dist/esm/components/CollectionTable/CollectionTable.st.css.js +2 -2
- package/dist/esm/components/CollectionTable/CollectionTable.st.css.js.map +1 -1
- package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js +2 -2
- package/dist/esm/components/CollectionToolbar/PrimaryActionButton.js +4 -4
- package/dist/esm/components/CollectionToolbar/PrimaryActionButton.js.map +1 -1
- 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/DragHandle/DragHandle.st.css.js +2 -2
- package/dist/esm/components/EntityPage/EntityPagePlain.st.css.js +2 -2
- package/dist/esm/components/ExportButton/ExportButton.js +2 -2
- package/dist/esm/components/ExportButton/ExportButton.js.map +1 -1
- package/dist/esm/components/ExportButton/getExportModalStepProps.js +4 -4
- package/dist/esm/components/ExportButton/getExportModalStepProps.js.map +1 -1
- package/dist/esm/components/Fade/Fade.st.css.js +2 -2
- package/dist/esm/components/Grid/Grid.js +1 -1
- package/dist/esm/components/Grid/Grid.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/GridSectionsContent.js +5 -3
- package/dist/esm/components/GridSections/GridSectionsContent.js.map +1 -1
- package/dist/esm/components/GridSections/GridSectionsSectionState.js +2 -2
- package/dist/esm/components/GridSections/GridSectionsSectionState.js.map +1 -1
- package/dist/esm/components/GridSections/GridSectionsState.js +26 -15
- 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/Kanban/Kanban.uni.driver.js +10 -0
- package/dist/esm/components/Kanban/Kanban.uni.driver.js.map +1 -1
- package/dist/esm/components/Kanban/Stage.js +7 -5
- package/dist/esm/components/Kanban/Stage.js.map +1 -1
- package/dist/esm/components/Kanban/StageActions.js +49 -0
- package/dist/esm/components/Kanban/StageActions.js.map +1 -0
- 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.js +1 -1
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.js.map +1 -1
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css +0 -1
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTableRow.st.css.js +2 -2
- package/dist/esm/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
- package/dist/esm/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
- package/dist/esm/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js.map +1 -1
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
- 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/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
- package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
- package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
- package/dist/esm/components/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/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 +4 -3
- package/dist/esm/components/TableSections/TableSectionRow.js.map +1 -1
- package/dist/esm/components/TableSections/TableSections.js +2 -2
- package/dist/esm/components/TableSections/TableSections.js.map +1 -1
- package/dist/esm/components/TableSections/TableSectionsState.js +27 -10
- 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/TabsFilter/TabsFilter.st.css.js.map +1 -1
- package/dist/esm/components/Tags/BulkAssignTagsPopover/BulkAssignTagsPopover.js +2 -2
- package/dist/esm/components/Tags/BulkAssignTagsPopover/BulkAssignTagsPopover.js.map +1 -1
- package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
- 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/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
- package/dist/esm/state/CollectionPage/CollectionPageHeader.st.css.js.map +1 -1
- package/dist/esm/state/FormPage/FormPageHeader.st.css.js +2 -2
- package/dist/esm/styles.global.css +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.d.ts +4 -2
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.d.ts.map +1 -1
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.st.css.d.ts +16 -0
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.st.css.d.ts.map +1 -0
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.types.d.ts +43 -9
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.types.d.ts.map +1 -1
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.d.ts +2 -1
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.d.ts.map +1 -1
- package/dist/types/components/CollectionTable/CollectionTable.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/PrimaryActionButton.d.ts +2 -5
- package/dist/types/components/CollectionToolbar/PrimaryActionButton.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/Grid/Grid.d.ts +3 -2
- package/dist/types/components/Grid/Grid.d.ts.map +1 -1
- package/dist/types/components/GridSections/GridSectionHeader.d.ts.map +1 -1
- package/dist/types/components/GridSections/GridSectionsContent.d.ts +2 -1
- package/dist/types/components/GridSections/GridSectionsContent.d.ts.map +1 -1
- package/dist/types/components/GridSections/GridSectionsState.d.ts +4 -1
- package/dist/types/components/GridSections/GridSectionsState.d.ts.map +1 -1
- package/dist/types/components/Kanban/Kanban.uni.driver.d.ts +84 -0
- package/dist/types/components/Kanban/Kanban.uni.driver.d.ts.map +1 -1
- package/dist/types/components/Kanban/KanbanProps.d.ts +1 -0
- package/dist/types/components/Kanban/KanbanProps.d.ts.map +1 -1
- package/dist/types/components/Kanban/Stage.d.ts +2 -1
- package/dist/types/components/Kanban/Stage.d.ts.map +1 -1
- package/dist/types/components/Kanban/StageActions.d.ts +15 -0
- package/dist/types/components/Kanban/StageActions.d.ts.map +1 -0
- package/dist/types/components/NestedTable/NestedTableRow.st.css.d.ts.map +1 -1
- package/dist/types/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.d.ts.map +1 -1
- package/dist/types/components/PickerContent/PickerContent.st.css.d.ts.map +1 -1
- package/dist/types/components/PickerContent/PickerContentAdditionalStep.st.css.d.ts.map +1 -1
- package/dist/types/components/PickerTableListItem/PickerTableListItem.st.css.d.ts.map +1 -1
- package/dist/types/components/Table/TableBase.d.ts.map +1 -1
- package/dist/types/components/TableGridSwitch/TableGridSwitch.d.ts +3 -2
- package/dist/types/components/TableGridSwitch/TableGridSwitch.d.ts.map +1 -1
- package/dist/types/components/TableSections/TableSectionRow.d.ts.map +1 -1
- package/dist/types/components/TableSections/TableSections.d.ts +4 -2
- package/dist/types/components/TableSections/TableSections.d.ts.map +1 -1
- package/dist/types/components/TableSections/TableSectionsState.d.ts +11 -5
- package/dist/types/components/TableSections/TableSectionsState.d.ts.map +1 -1
- package/dist/types/components/TabsFilter/TabsFilter.st.css.d.ts.map +1 -1
- package/dist/types/components/Tags/BulkAssignTagsPopover/BulkAssignTagsPopover.d.ts.map +1 -1
- package/dist/types/components/ToolbarItemBox/ToolbarItemBox.st.css.d.ts.map +1 -1
- package/dist/types/state/CollectionPage/CollectionPageHeader.st.css.d.ts.map +1 -1
- package/dist/types/testkit/jsdom.d.ts +84 -0
- package/dist/types/testkit/jsdom.d.ts.map +1 -1
- package/dist/types/testkit/puppeteer.d.ts +84 -0
- package/dist/types/testkit/puppeteer.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/ActionControl/ActionButton.tsx +1 -1
- 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 +6 -0
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.st.css.ts +25 -0
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.tsx +77 -19
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.types.ts +46 -9
- package/src/components/CollectionSectionHeader/CollectionSectionHeaderActionBar.tsx +3 -1
- package/src/components/CollectionTable/CollectionTable.st.css.ts +2 -2
- package/src/components/CollectionToolbar/CollectionToolbar.st.css.ts +2 -2
- package/src/components/CollectionToolbar/PrimaryActionButton.tsx +28 -25
- package/src/components/CollectionToolbar/SearchOrCustomFilter.st.css.ts +2 -2
- package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.ts +2 -2
- package/src/components/CollectionViewsDropdown/ViewsDropdown.st.css.ts +2 -2
- package/src/components/DragHandle/DragHandle.st.css.ts +2 -2
- package/src/components/EntityPage/EntityPagePlain.st.css.ts +2 -2
- package/src/components/ExportButton/ExportButton.tsx +3 -3
- package/src/components/ExportButton/getExportModalStepProps.tsx +4 -4
- package/src/components/Fade/Fade.st.css.ts +2 -2
- package/src/components/Grid/Grid.tsx +4 -2
- package/src/components/GridSections/GridSectionHeader.tsx +2 -1
- package/src/components/GridSections/GridSectionsContent.tsx +7 -4
- package/src/components/GridSections/GridSectionsSectionState.ts +2 -2
- package/src/components/GridSections/GridSectionsState.ts +43 -20
- package/src/components/Heading/Heading.st.css.ts +2 -2
- package/src/components/InputOverflow/InputOverflow.st.css.ts +2 -2
- package/src/components/Kanban/Kanban.uni.driver.ts +20 -0
- package/src/components/Kanban/KanbanProps.ts +1 -0
- package/src/components/Kanban/Stage.tsx +24 -12
- package/src/components/Kanban/StageActions.tsx +114 -0
- 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 +0 -1
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.ts +2 -2
- package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.tsx +1 -1
- 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 +1 -0
- package/src/components/TableGridSwitch/TableGridSwitch.tsx +5 -2
- package/src/components/TableSections/TableSectionRow.tsx +6 -3
- package/src/components/TableSections/TableSections.tsx +7 -2
- package/src/components/TableSections/TableSectionsState.ts +40 -14
- package/src/components/TabsFilter/TabsFilter.st.css.ts +2 -2
- package/src/components/Tags/BulkAssignTagsPopover/BulkAssignTagsPopover.tsx +4 -0
- package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.ts +2 -2
- 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/state/CollectionPage/CollectionPageHeader.st.css.ts +2 -2
- package/src/state/FormPage/FormPageHeader.st.css.ts +2 -2
- 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/CollectionToolbar/SearchOrCustomFilter.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/CollectionToolbar/SearchOrCustomFilter.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"SearchOrCustomFilter1497284617\";\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\":\"SearchOrCustomFilter1497284617__root\",\"search\":\"SearchOrCustomFilter1497284617__search\",\"searchMobile\":\"SearchOrCustomFilter1497284617__searchMobile\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,gCAAgC;AAClD,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,sCAAsC;EAAC,QAAQ,EAAC,wCAAwC;EAAC,cAAc,EAAC;AAA8C,CAAC;AAC7K,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_ = "AutoCompleteReadonly329712210";
|
|
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": "AutoCompleteReadonly329712210__root"
|
|
16
16
|
};
|
|
17
17
|
var keyframes = exports.keyframes = {};
|
|
18
18
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"AutoCompleteReadonly329712210\";\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\":\"AutoCompleteReadonly329712210__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_ = "ViewsDropdown433985166";
|
|
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": "ViewsDropdown433985166__root"
|
|
16
16
|
};
|
|
17
17
|
var keyframes = exports.keyframes = {};
|
|
18
18
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/CollectionViewsDropdown/ViewsDropdown.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/CollectionViewsDropdown/ViewsDropdown.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"ViewsDropdown433985166\";\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\":\"ViewsDropdown433985166__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,wBAAwB;AAC1C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAA8B,CAAC;AACrD,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "DragHandle3576246055";
|
|
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": "DragHandle3576246055__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/DragHandle/DragHandle.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/DragHandle/DragHandle.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"DragHandle3576246055\";\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\":\"DragHandle3576246055__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,sBAAsB;AACxC,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;AAA4B,CAAC;AACnD,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_ = "EntityPagePlain3702248845";
|
|
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": "EntityPagePlain3702248845__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/EntityPage/EntityPagePlain.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/EntityPage/EntityPagePlain.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"EntityPagePlain3702248845\";\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\":\"EntityPagePlain3702248845__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"wds-page-header-padding-horizontal\":\"--wds-page-header-padding-horizontal\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,2BAA2B;AAC7C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAiC,CAAC;AACxD,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,oCAAoC,EAAC;AAAsC,CAAC","ignoreList":[]}
|
|
@@ -102,8 +102,8 @@ function _ExportButton(props) {
|
|
|
102
102
|
table.featuredComponents.exportModal.set(null);
|
|
103
103
|
};
|
|
104
104
|
}, []);
|
|
105
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
106
|
-
|
|
105
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
106
|
+
"data-hook": "export-container",
|
|
107
107
|
__self: this,
|
|
108
108
|
__source: {
|
|
109
109
|
fileName: _jsxFileName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_bexCore","_designSystem","_wixUiIconsCommon","_mobxReactLite","_ExportButtonModalLayout","_react2","_ToolbarCollectionContext","_ResponsiveButton","_useIsMobile","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_ExportButton","props","toolbarType","renderError","transformPlatformizedQuery","differentQueryEndpointThanCollection","customTotal","methodMetadata","arrayFieldDelimiter","methodSpec","fields","saveAs","exportModalFooter","exportModalTitle","onProgressModalTitle","exportToCSVMessage","table","useToolbarCollectionContext","toolbar","responsive","translate","useWixPatternsContainer","state","useState","exportState","ModalState","isMobile","useIsMobile","useEffect","featuredComponents","exportModal","createElement","Observer","__self","__source","fileName","lineNumber","columnNumber","child","ExportButtonModalLayout","exportModalState","Drawer","dataHook","open","isOpen","onClose","requestClose","Modal","onRequestClose","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_bexCore","_designSystem","_wixUiIconsCommon","_mobxReactLite","_ExportButtonModalLayout","_react2","_ToolbarCollectionContext","_ResponsiveButton","_useIsMobile","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_ExportButton","props","toolbarType","renderError","transformPlatformizedQuery","differentQueryEndpointThanCollection","customTotal","methodMetadata","arrayFieldDelimiter","methodSpec","fields","saveAs","exportModalFooter","exportModalTitle","onProgressModalTitle","exportToCSVMessage","table","useToolbarCollectionContext","toolbar","responsive","translate","useWixPatternsContainer","state","useState","exportState","ModalState","isMobile","useIsMobile","useEffect","featuredComponents","exportModal","createElement","Observer","__self","__source","fileName","lineNumber","columnNumber","child","ExportButtonModalLayout","exportModalState","Drawer","dataHook","open","isOpen","onClose","requestClose","Modal","onRequestClose","ResponsiveButton","actions","onClick","icon","UploadExport","Button","skin","priority","size","ellipsis","prefixIcon","ExportButton","exports","observer"],"sources":["../../../../src/components/ExportButton/ExportButton.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { FiltersMap, ModalState } from '@wix/bex-core';\nimport { Button, Drawer, Modal } from '@wix/design-system';\nimport { UploadExport } from '@wix/wix-ui-icons-common';\nimport { observer, Observer } from 'mobx-react-lite';\nimport { ExportButtonModalLayout } from './ExportButtonModalLayout';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { useToolbarCollectionContext } from '../ToolbarCollectionContext';\nimport { ExportButtonProps } from './ExportProps';\nimport { ResponsiveButton } from '../ResponsiveButton/ResponsiveButton';\nimport { useIsMobile } from '../../hooks/useIsMobile';\n\nfunction _ExportButton<T, F extends FiltersMap>(\n props: ExportButtonProps<T, F>,\n) {\n const {\n toolbarType = 'default',\n renderError,\n transformPlatformizedQuery,\n differentQueryEndpointThanCollection,\n customTotal,\n methodMetadata,\n arrayFieldDelimiter,\n methodSpec,\n fields,\n saveAs,\n exportModalFooter,\n exportModalTitle,\n onProgressModalTitle,\n exportToCSVMessage,\n } = props;\n\n const table = useToolbarCollectionContext<T, F>();\n\n const {\n toolbar: { responsive },\n } = table;\n\n const { translate: t } = useWixPatternsContainer();\n\n const [state] = useState(() => (table.exportState ??= new ModalState()));\n\n const isMobile = useIsMobile();\n\n useEffect(() => {\n table.featuredComponents.exportModal.set(\n <Observer>\n {() => {\n const child = (\n <ExportButtonModalLayout\n exportModalState={state}\n renderError={renderError}\n transformPlatformizedQuery={transformPlatformizedQuery}\n customTotal={customTotal}\n arrayFieldDelimiter={arrayFieldDelimiter}\n differentQueryEndpointThanCollection={\n differentQueryEndpointThanCollection\n }\n methodMetadata={methodMetadata}\n methodSpec={methodSpec}\n fields={fields}\n saveAs={saveAs}\n exportModalFooter={exportModalFooter}\n exportModalTitle={exportModalTitle}\n onProgressModalTitle={onProgressModalTitle}\n exportToCSVMessage={exportToCSVMessage}\n />\n );\n\n if (isMobile) {\n return (\n <Drawer\n dataHook=\"export-modal\"\n open={state.isOpen}\n onClose={state.requestClose}\n >\n {child}\n </Drawer>\n );\n }\n\n return (\n <Modal\n onRequestClose={state.requestClose}\n isOpen={state.isOpen}\n dataHook=\"export-modal\"\n >\n {child}\n </Modal>\n );\n }}\n </Observer>,\n );\n\n return () => {\n table.featuredComponents.exportModal.set(null);\n };\n }, []);\n\n return (\n <div data-hook=\"export-container\">\n {toolbarType === 'default' ? (\n <ResponsiveButton\n state={responsive.actions}\n dataHook=\"export-button\"\n onClick={state.open}\n icon={<UploadExport />}\n >\n {t('cairo.export.export')}\n </ResponsiveButton>\n ) : (\n <Button\n skin=\"standard\"\n priority=\"secondary\"\n size=\"small\"\n ellipsis\n prefixIcon={<UploadExport />}\n dataHook=\"export-button\"\n onClick={state.open}\n >\n {t('cairo.export.export')}\n </Button>\n )}\n </div>\n );\n}\n\nexport const ExportButton = observer(_ExportButton);\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,wBAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,yBAAA,GAAAP,OAAA;AAEA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AAAsD,IAAAU,YAAA;AAAA,SAAAX,wBAAAY,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAd,uBAAA,YAAAA,CAAAY,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAA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AAC,OAAO;IACZC,QAAQ;IACRC,UAAU,eAAE3F,MAAA,CAAAuB,OAAA,CAAAwC,aAAA,CAAC1D,iBAAA,CAAAgF,YAAY;MAAApB,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAvD,YAAA;QAAAwD,UAAA;QAAAC,YAAA;MAAA;IAAA,CAAE,CAAE;IAC7BK,QAAQ,EAAC,eAAe;IACxBS,OAAO,EAAE7B,KAAK,CAACqB,IAAK;IAAAV,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAvD,YAAA;MAAAwD,UAAA;MAAAC,YAAA;IAAA;EAAA,GAEnBvD,CAAC,CAAC,qBAAqB,CAClB,CAEP,CAAC;AAEV;AAEO,MAAM8E,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,uBAAQ,EAAC9D,aAAa,CAAC","ignoreList":[]}
|
|
@@ -46,7 +46,10 @@ function getExportModalStepProps({
|
|
|
46
46
|
},
|
|
47
47
|
primaryButtonOnClick: () => state.onCancelExportVerifyButtonClick(),
|
|
48
48
|
secondaryButtonOnClick: state.onCancelExportGoBackButtonClick,
|
|
49
|
-
|
|
49
|
+
closeButtonProps: {
|
|
50
|
+
onClick: state.onCancelExportCloseButtonClick,
|
|
51
|
+
autoFocus: true
|
|
52
|
+
},
|
|
50
53
|
onRequestClose: state.onCancelExportCloseButtonClick
|
|
51
54
|
};
|
|
52
55
|
}
|
|
@@ -67,7 +70,10 @@ function getExportModalStepProps({
|
|
|
67
70
|
primaryButtonOnClick: state.onExportToClick,
|
|
68
71
|
secondaryButtonText: t('cairo.export.cancelButton'),
|
|
69
72
|
secondaryButtonOnClick: state.onCancelClick,
|
|
70
|
-
|
|
73
|
+
closeButtonProps: {
|
|
74
|
+
onClick: state.onCloseClick,
|
|
75
|
+
autoFocus: true
|
|
76
|
+
},
|
|
71
77
|
onRequestClose: state.onCloseClick,
|
|
72
78
|
footnote: exportModalFooter ? /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
|
|
73
79
|
dataHook: "export-modal-footer-text",
|
|
@@ -90,7 +96,10 @@ function getExportModalStepProps({
|
|
|
90
96
|
title: t('cairo.export.exportFailed'),
|
|
91
97
|
secondaryButtonText: t('cairo.export.cancelButton'),
|
|
92
98
|
secondaryButtonOnClick: state.onFailedCancel,
|
|
93
|
-
|
|
99
|
+
closeButtonProps: {
|
|
100
|
+
onClick: state.onFailedClose,
|
|
101
|
+
autoFocus: true
|
|
102
|
+
},
|
|
94
103
|
onRequestClose: state.onFailedClose,
|
|
95
104
|
primaryButtonText: t('Got It'),
|
|
96
105
|
primaryButtonOnClick: state.onFailedClose,
|
|
@@ -149,7 +158,10 @@ function getExportModalStepProps({
|
|
|
149
158
|
primaryButtonProps: {
|
|
150
159
|
disabled: true
|
|
151
160
|
},
|
|
152
|
-
|
|
161
|
+
closeButtonProps: {
|
|
162
|
+
onClick: state.onExportCloseAttemptClick,
|
|
163
|
+
autoFocus: true
|
|
164
|
+
},
|
|
153
165
|
onRequestClose: state.onExportCloseAttemptClick,
|
|
154
166
|
secondaryButtonText: t('cairo.export.cancelButton'),
|
|
155
167
|
secondaryButtonOnClick: state.onExportSecondaryActionAttempt
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_designSystem","require","_react","_interopRequireDefault","_ExportStepConfig","_ExportStepProgress","_ExportStepError","_ExportStepCancel","_getExportModalErrorProps","_jsxFileName","getExportModalStepProps","state","renderError","exportModalFooter","exportModalTitle","exportToCSVMessage","onProgressModalTitle","currentStep","translate","t","title","children","default","createElement","ExportStepCancel","__self","__source","fileName","lineNumber","columnNumber","primaryButtonText","secondaryButtonText","secondaryButtonProps","skin","primaryButtonProps","disabled","primaryButtonOnClick","onCancelExportVerifyButtonClick","secondaryButtonOnClick","onCancelExportGoBackButtonClick","
|
|
1
|
+
{"version":3,"names":["_designSystem","require","_react","_interopRequireDefault","_ExportStepConfig","_ExportStepProgress","_ExportStepError","_ExportStepCancel","_getExportModalErrorProps","_jsxFileName","getExportModalStepProps","state","renderError","exportModalFooter","exportModalTitle","exportToCSVMessage","onProgressModalTitle","currentStep","translate","t","title","children","default","createElement","ExportStepCancel","__self","__source","fileName","lineNumber","columnNumber","primaryButtonText","secondaryButtonText","secondaryButtonProps","skin","primaryButtonProps","disabled","primaryButtonOnClick","onCancelExportVerifyButtonClick","secondaryButtonOnClick","onCancelExportGoBackButtonClick","closeButtonProps","onClick","onCancelExportCloseButtonClick","autoFocus","onRequestClose","ExportStepConfig","onExportToClick","onCancelClick","onCloseClick","footnote","Text","dataHook","size","text","modalProps","getExportModalErrorProps","onFailedCancel","onFailedClose","ExportStepError","Box","direction","widows","TextButton","as","onRetryExportToClick","ExportStepProgress","onExportCloseAttemptClick","onExportSecondaryActionAttempt"],"sources":["../../../../src/components/ExportButton/getExportModalStepProps.tsx"],"sourcesContent":["import {\n Box,\n CustomModalLayoutProps,\n Text,\n TextButton,\n} from '@wix/design-system';\nimport { ExportState, FiltersMap } from '@wix/bex-core';\nimport React, { ReactNode } from 'react';\nimport { ExportStepConfig } from './ExportStepConfig';\nimport { ExportStepProgress } from './ExportStepProgress';\nimport { ExportStepError } from './ExportStepError';\nimport { ExportStepCancel } from './ExportStepCancel';\nimport {\n getExportModalErrorProps,\n RenderModalError,\n} from './getExportModalErrorProps';\n\nexport interface GetExportModalStepProps<T, F extends FiltersMap> {\n state: ExportState<T, F>;\n renderError?: RenderModalError;\n exportModalFooter?: { text: string };\n exportModalTitle?: string;\n onProgressModalTitle?: string;\n exportToCSVMessage?: string;\n}\n\nexport function getExportModalStepProps<T, F extends FiltersMap>({\n state,\n renderError,\n exportModalFooter,\n exportModalTitle,\n exportToCSVMessage,\n onProgressModalTitle,\n}: GetExportModalStepProps<T, F>): Partial<\n CustomModalLayoutProps & { children?: ReactNode; onRequestClose?: () => void }\n> {\n const { currentStep, translate: t } = state;\n\n if (currentStep === 'cancel') {\n return {\n title: t('cairo.export.cancelTheExport'),\n children: <ExportStepCancel state={state} />,\n primaryButtonText: t('cairo.export.cancelTheExportConfirm'),\n secondaryButtonText: t('cairo.export.cancelTheExportGoBack'),\n secondaryButtonProps: { skin: 'destructive' },\n primaryButtonProps: { skin: 'destructive', disabled: false },\n primaryButtonOnClick: () => state.onCancelExportVerifyButtonClick(),\n secondaryButtonOnClick: state.onCancelExportGoBackButtonClick,\n closeButtonProps: { onClick: state.onCancelExportCloseButtonClick, autoFocus: true },\n onRequestClose: state.onCancelExportCloseButtonClick,\n };\n }\n\n if (currentStep === 'config') {\n return {\n title: exportModalTitle || t('cairo.export.exportTypeQuestionTitle'),\n children: (\n <ExportStepConfig\n state={state}\n exportToCSVMessage={exportToCSVMessage}\n />\n ),\n primaryButtonText: t('cairo.export.export'),\n primaryButtonOnClick: state.onExportToClick,\n secondaryButtonText: t('cairo.export.cancelButton'),\n secondaryButtonOnClick: state.onCancelClick,\n closeButtonProps: { onClick: state.onCloseClick, autoFocus: true },\n onRequestClose: state.onCloseClick,\n footnote: exportModalFooter ? (\n <Text dataHook=\"export-modal-footer-text\" size=\"small\">\n {exportModalFooter?.text}\n </Text>\n ) : null,\n };\n }\n\n if (currentStep === 'error') {\n const modalProps = getExportModalErrorProps({ state, renderError });\n return {\n title: t('cairo.export.exportFailed'),\n secondaryButtonText: t('cairo.export.cancelButton'),\n secondaryButtonOnClick: state.onFailedCancel,\n closeButtonProps: { onClick: state.onFailedClose, autoFocus: true },\n onRequestClose: state.onFailedClose,\n primaryButtonText: t('Got It' as any),\n primaryButtonOnClick: state.onFailedClose,\n ...modalProps,\n children: (\n <ExportStepError state={state}>\n {modalProps.children ?? (\n <Box direction=\"vertical\">\n <Text widows>{t('cairo.export.serverErrorMessage')}</Text>\n <TextButton\n dataHook=\"export-error-message-action\"\n as=\"a\"\n onClick={state.onRetryExportToClick}\n >\n {t('cairo.export.tryAgain')}\n </TextButton>\n </Box>\n )}\n </ExportStepError>\n ),\n };\n }\n\n // exporting\n return {\n title: onProgressModalTitle || t('cairo.export.exportingTitle'),\n children: <ExportStepProgress state={state} />,\n primaryButtonText: t('cairo.export.exporting'),\n primaryButtonProps: {\n disabled: true,\n },\n closeButtonProps: { onClick: state.onExportCloseAttemptClick, autoFocus: true },\n onRequestClose: state.onExportCloseAttemptClick,\n secondaryButtonText: t('cairo.export.cancelButton'),\n secondaryButtonOnClick: state.onExportSecondaryActionAttempt,\n };\n}\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,yBAAA,GAAAP,OAAA;AAGoC,IAAAQ,YAAA;AAW7B,SAASC,uBAAuBA,CAA0B;EAC/DC,KAAK;EACLC,WAAW;EACXC,iBAAiB;EACjBC,gBAAgB;EAChBC,kBAAkB;EAClBC;AAC6B,CAAC,EAE9B;EACA,MAAM;IAAEC,WAAW;IAAEC,SAAS,EAAEC;EAAE,CAAC,GAAGR,KAAK;EAE3C,IAAIM,WAAW,KAAK,QAAQ,EAAE;IAC5B,OAAO;MACLG,KAAK,EAAED,CAAC,CAAC,8BAA8B,CAAC;MACxCE,QAAQ,eAAEnB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAAChB,iBAAA,CAAAiB,gBAAgB;QAACb,KAAK,EAAEA,KAAM;QAAAc,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAlB,YAAA;UAAAmB,UAAA;UAAAC,YAAA;QAAA;MAAA,CAAE,CAAC;MAC5CC,iBAAiB,EAAEX,CAAC,CAAC,qCAAqC,CAAC;MAC3DY,mBAAmB,EAAEZ,CAAC,CAAC,oCAAoC,CAAC;MAC5Da,oBAAoB,EAAE;QAAEC,IAAI,EAAE;MAAc,CAAC;MAC7CC,kBAAkB,EAAE;QAAED,IAAI,EAAE,aAAa;QAAEE,QAAQ,EAAE;MAAM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AAC,eAC1DjB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAACvB,aAAA,CAAA8D,UAAU;QACTX,QAAQ,EAAC,6BAA6B;QACtCY,EAAE,EAAC,GAAG;QACNtB,OAAO,EAAE9B,KAAK,CAACqD,oBAAqB;QAAAvC,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAlB,YAAA;UAAAmB,UAAA;UAAAC,YAAA;QAAA;MAAA,GAEnCV,CAAC,CAAC,uBAAuB,CAChB,CACT,CAEQ;IAErB,CAAC;EACH;;EAEA;EACA,OAAO;IACLC,KAAK,EAAEJ,oBAAoB,IAAIG,CAAC,CAAC,6BAA6B,CAAC;IAC/DE,QAAQ,eAAEnB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAAClB,mBAAA,CAAA4D,kBAAkB;MAACtD,KAAK,EAAEA,KAAM;MAAAc,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAlB,YAAA;QAAAmB,UAAA;QAAAC,YAAA;MAAA;IAAA,CAAE,CAAC;IAC9CC,iBAAiB,EAAEX,CAAC,CAAC,wBAAwB,CAAC;IAC9Ce,kBAAkB,EAAE;MAClBC,QAAQ,EAAE;IACZ,CAAC;IACDK,gBAAgB,EAAE;MAAEC,OAAO,EAAE9B,KAAK,CAACuD,yBAAyB;MAAEvB,SAAS,EAAE;IAAK,CAAC;IAC/EC,cAAc,EAAEjC,KAAK,CAACuD,yBAAyB;IAC/CnC,mBAAmB,EAAEZ,CAAC,CAAC,2BAA2B,CAAC;IACnDmB,sBAAsB,EAAE3B,KAAK,CAACwD;EAChC,CAAC;AACH","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_ = "Fade1561794639";
|
|
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": "Fade1561794639__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/Fade/Fade.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/Fade/Fade.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"Fade1561794639\";\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\":\"Fade1561794639__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,gBAAgB;AAClC,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;AAAsB,CAAC;AAC7C,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":[]}
|
|
@@ -58,7 +58,7 @@ function _Grid(props) {
|
|
|
58
58
|
__self: this,
|
|
59
59
|
__source: {
|
|
60
60
|
fileName: _jsxFileName,
|
|
61
|
-
lineNumber:
|
|
61
|
+
lineNumber: 120,
|
|
62
62
|
columnNumber: 5
|
|
63
63
|
}
|
|
64
64
|
}), /*#__PURE__*/_react.default.createElement(_ToolbarCollection.ToolbarCollection, (0, _extends2.default)({}, props, {
|
|
@@ -67,7 +67,7 @@ function _Grid(props) {
|
|
|
67
67
|
__self: this,
|
|
68
68
|
__source: {
|
|
69
69
|
fileName: _jsxFileName,
|
|
70
|
-
lineNumber:
|
|
70
|
+
lineNumber: 126,
|
|
71
71
|
columnNumber: 7
|
|
72
72
|
}
|
|
73
73
|
}), /*#__PURE__*/_react.default.createElement(_GridPlaceholderStates.GridPlaceholderStates, {
|
|
@@ -78,23 +78,24 @@ function _Grid(props) {
|
|
|
78
78
|
__self: this,
|
|
79
79
|
__source: {
|
|
80
80
|
fileName: _jsxFileName,
|
|
81
|
-
lineNumber:
|
|
81
|
+
lineNumber: 127,
|
|
82
82
|
columnNumber: 9
|
|
83
83
|
}
|
|
84
84
|
}, /*#__PURE__*/_react.default.createElement(_ToolbarCollectionContentAutoSizer.ToolbarCollectionContentAutoSizer, {
|
|
85
85
|
__self: this,
|
|
86
86
|
__source: {
|
|
87
87
|
fileName: _jsxFileName,
|
|
88
|
-
lineNumber:
|
|
88
|
+
lineNumber: 133,
|
|
89
89
|
columnNumber: 11
|
|
90
90
|
}
|
|
91
91
|
}, sections ? /*#__PURE__*/_react.default.createElement(sections.GridSections, (0, _extends2.default)({}, props, {
|
|
92
|
+
groupBy: sections.groupBy,
|
|
92
93
|
renderSection: sections.renderSection,
|
|
93
94
|
state: state,
|
|
94
95
|
__self: this,
|
|
95
96
|
__source: {
|
|
96
97
|
fileName: _jsxFileName,
|
|
97
|
-
lineNumber:
|
|
98
|
+
lineNumber: 135,
|
|
98
99
|
columnNumber: 15
|
|
99
100
|
}
|
|
100
101
|
})) : /*#__PURE__*/_react.default.createElement(_GridSingleGridContent.GridSingleGridContent, (0, _extends2.default)({}, props, {
|
|
@@ -102,7 +103,7 @@ function _Grid(props) {
|
|
|
102
103
|
__self: this,
|
|
103
104
|
__source: {
|
|
104
105
|
fileName: _jsxFileName,
|
|
105
|
-
lineNumber:
|
|
106
|
+
lineNumber: 142,
|
|
106
107
|
columnNumber: 15
|
|
107
108
|
}
|
|
108
109
|
}))))), exportModal ?? toolbar.featuredComponents.exportModal.value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_getToolbarCollectionFeaturesInitializers","_ToolbarCollectionContentAutoSizer","_GridPlaceholderStates","_CollectionCard","_ToolbarCollection","_mobxReactLite","_useToolbarCollectionSyncProps","_GridSingleGridContent","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_Grid","props","state","dragAndDrop","renderError","errorState","err","isOnline","retry","emptyState","noResultsState","cardProps","dataHook","exportModal","sections","toolbar","useToolbarCollectionSyncProps","isUsingDragAndDrop","isUsingBulkActionsToolbar","isUsingHorizontalScroll","isUsingFolders","isUsingTableVirtualization","useEffect","init","featuresInitializers","getToolbarCollectionFeaturesInitializers","createElement","CollectionCard","_extends2","__self","__source","fileName","lineNumber","columnNumber","ToolbarCollection","sticky","GridPlaceholderStates","ToolbarCollectionContentAutoSizer","GridSections","renderSection","GridSingleGridContent","featuredComponents","value","Grid","exports","observer"],"sources":["../../../../src/components/Grid/Grid.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport { GridPresetProps } from './Grid.types';\nimport { GridState, LayoutType } from '../../state';\nimport { getToolbarCollectionFeaturesInitializers } from '../../state/getToolbarCollectionFeaturesInitializers';\nimport { ToolbarCollectionContentAutoSizer } from '../ToolbarCollectionContentAutoSizer';\nimport { BulkActionToolbarRenderProp } from '../BulkAction';\nimport { GridItemBaseProps } from './GridItemBaseProps';\nimport { GridPlaceholderStates } from './GridPlaceholderStates';\nimport { CollectionCard } from '../CollectionCard';\nimport {\n ToolbarCollection,\n ToolbarCollectionBaseProps,\n} from '../ToolbarCollection';\nimport { observer } from 'mobx-react-lite';\nimport { useToolbarCollectionSyncProps } from '../ToolbarCollection/useToolbarCollectionSyncProps';\nimport type { GridSectionsContent } from '../GridSections/GridSectionsContent';\nimport type { Section } from '../CollectionSectionHeader';\nimport { GridSingleGridContent } from './GridSingleGridContent';\nimport { GridDragAndDrop } from '../GridDragAndDropDndKit/GridDragAndDrop';\n\ninterface GridBaseProps<T, F extends FiltersMap>\n extends Omit<ToolbarCollectionBaseProps<T, F>, 'sticky' | 'maxSelection'>,\n GridItemBaseProps<T, F> {\n dataHook?: string;\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 [GridDragAndDrop](./?path=/story/features-sort-drag-and-drop--griddraganddrop)\n * @external\n */\n dragAndDrop?: typeof GridDragAndDrop;\n\n /**\n * Grid state instance created using [`useGridCollection`](./?path=/story/base-components-collections-grid-usegridcollection--usegridcollection).\n * @overrideType [GridState](./?path=/story/base-components-collections-grid-gridstate--gridstate)\n * @external\n */\n state: GridState<T, F>;\n\n /**\n * A toolbar for performing bulk actions on multiple items.<br> <br>\n * Supported parameters: <br>\n * -`selectedValues`: [array] Items that are checked in the selection column. <br>\n * -`uncheckedValues`: [array] Items that are unchecked in the selection column. <br>\n * -`isSelectAll`: [bool] Whether **Select All** is checked. <br>\n * -`openModal`: [func] Opens a modal that contains the component from `bulkActionModal` render prop. <br>\n * -`clearSelection`: [func] Clears all selections. Call this after the action on the selected items finishes. <br>\n * -`total`: [number] Total number of items in the server. <br>\n * -`openConfirmModal`: [func] Opens a `<MessageModalLayout>` to confirm an action is about to be applied to the selected items. <br>\n * -`query`: [object] Current paging, sorting, and filtering. Often used together with bulk actions, such as `updateAll`. <br>\n * @external\n */\n bulkActionToolbar?: BulkActionToolbarRenderProp<T, F>;\n\n /**\n * Creates [grid sections](./?path=/story/features-display-grid-sections--grid-sections) that group data based on the values of a specific field.\n * @external\n * @overrideType [SectionsProp](./?path=/story/common-types--sectionsprop)\n */\n sections?: {\n GridSections: typeof GridSectionsContent;\n renderSection?: (item: T) => Section;\n };\n\n layoutType?: LayoutType;\n}\n\nexport type GridBasePropsWithoutPreset<T, F extends FiltersMap> = Omit<\n GridBaseProps<T, F>,\n 'preset' | 'renderItem'\n>;\n\nexport type GridProps<T, F extends FiltersMap> = GridPresetProps<\n T,\n GridBasePropsWithoutPreset<T, F>\n>;\n\nfunction _Grid<T, F extends FiltersMap = FiltersMap>(props: GridProps<T, F>) {\n const {\n state,\n dragAndDrop,\n renderError,\n errorState = renderError &&\n (((err, { isOnline, retry }) =>\n renderError?.({ err, isOnline, retry })) as GridProps<\n T,\n F\n >['errorState']),\n emptyState,\n noResultsState,\n cardProps,\n dataHook,\n exportModal,\n sections,\n } = props;\n\n const { toolbar } = state;\n\n useToolbarCollectionSyncProps({\n ...props,\n state: state.toolbar,\n isUsingDragAndDrop: !!dragAndDrop,\n isUsingBulkActionsToolbar: false,\n isUsingHorizontalScroll: false,\n isUsingFolders: false,\n isUsingTableVirtualization: false,\n });\n\n useEffect(\n () =>\n state.init({\n featuresInitializers: getToolbarCollectionFeaturesInitializers(props),\n }),\n [],\n );\n\n return (\n <CollectionCard\n errorState={false}\n state={toolbar}\n dataHook={dataHook}\n {...cardProps}\n >\n <ToolbarCollection {...props} sticky state={toolbar}>\n <GridPlaceholderStates\n state={state.toolbar}\n errorState={errorState}\n emptyState={emptyState}\n noResultsState={noResultsState}\n >\n <ToolbarCollectionContentAutoSizer>\n {sections ? (\n <sections.GridSections\n {...props}\n renderSection={sections.renderSection}\n state={state}\n />\n ) : (\n <GridSingleGridContent {...props} state={state} />\n )}\n </ToolbarCollectionContentAutoSizer>\n </GridPlaceholderStates>\n </ToolbarCollection>\n {exportModal ?? toolbar.featuredComponents.exportModal.value}\n </CollectionCard>\n );\n}\n\nexport const Grid = observer(_Grid);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAIA,IAAAC,yCAAA,GAAAD,OAAA;AACA,IAAAE,kCAAA,GAAAF,OAAA;AAGA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AAIA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,8BAAA,GAAAP,OAAA;AAGA,IAAAQ,sBAAA,GAAAR,OAAA;AAAgE,IAAAS,YAAA;AAAA,SAAAV,wBAAAW,CAAA,EAAA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A;IAAAC,QAAA;MAAAC,QAAA,EAAAnD,YAAA;MAAAoD,UAAA;MAAAC,YAAA;IAAA;EAAA,gBAE/BhE,MAAA,CAAAsB,OAAA,CAAAmC,aAAA,CAACrD,kCAAA,CAAAgE,iCAAiC;IAAAR,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnD,YAAA;MAAAoD,UAAA;MAAAC,YAAA;IAAA;EAAA,GAC/BnB,QAAQ,gBACP7C,MAAA,CAAAsB,OAAA,CAAAmC,aAAA,CAACZ,QAAQ,CAACwB,YAAY,MAAAV,SAAA,CAAArC,OAAA,MAChBU,KAAK;IACTsC,aAAa,EAAEzB,QAAQ,CAACyB,aAAc;IACtCrC,KAAK,EAAEA,KAAM;IAAA2B,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnD,YAAA;MAAAoD,UAAA;MAAAC,YAAA;IAAA;EAAA,EACd,CAAC,gBAEFhE,MAAA,CAAAsB,OAAA,CAAAmC,aAAA,CAAC/C,sBAAA,CAAA6D,qBAAqB,MAAAZ,SAAA,CAAArC,OAAA,MAAKU,KAAK;IAAEC,KAAK,EAAEA,KAAM;IAAA2B,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnD,YAAA;MAAAoD,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAE,CAElB,CACd,CACN,CAAC,EACnBpB,WAAW,IAAIE,OAAO,CAAC0B,kBAAkB,CAAC5B,WAAW,CAAC6B,KACzC,CAAC;AAErB;AAEO,MAAMC,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG,IAAAE,uBAAQ,EAAC7C,KAAK,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_getToolbarCollectionFeaturesInitializers","_ToolbarCollectionContentAutoSizer","_GridPlaceholderStates","_CollectionCard","_ToolbarCollection","_mobxReactLite","_useToolbarCollectionSyncProps","_GridSingleGridContent","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_Grid","props","state","dragAndDrop","renderError","errorState","err","isOnline","retry","emptyState","noResultsState","cardProps","dataHook","exportModal","sections","toolbar","useToolbarCollectionSyncProps","isUsingDragAndDrop","isUsingBulkActionsToolbar","isUsingHorizontalScroll","isUsingFolders","isUsingTableVirtualization","useEffect","init","featuresInitializers","getToolbarCollectionFeaturesInitializers","createElement","CollectionCard","_extends2","__self","__source","fileName","lineNumber","columnNumber","ToolbarCollection","sticky","GridPlaceholderStates","ToolbarCollectionContentAutoSizer","GridSections","groupBy","renderSection","GridSingleGridContent","featuredComponents","value","Grid","exports","observer"],"sources":["../../../../src/components/Grid/Grid.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport { GridPresetProps } from './Grid.types';\nimport { GridState, LayoutType } from '../../state';\nimport { getToolbarCollectionFeaturesInitializers } from '../../state/getToolbarCollectionFeaturesInitializers';\nimport { ToolbarCollectionContentAutoSizer } from '../ToolbarCollectionContentAutoSizer';\nimport { BulkActionToolbarRenderProp } from '../BulkAction';\nimport { GridItemBaseProps } from './GridItemBaseProps';\nimport { GridPlaceholderStates } from './GridPlaceholderStates';\nimport { CollectionCard } from '../CollectionCard';\nimport {\n ToolbarCollection,\n ToolbarCollectionBaseProps,\n} from '../ToolbarCollection';\nimport { observer } from 'mobx-react-lite';\nimport { useToolbarCollectionSyncProps } from '../ToolbarCollection/useToolbarCollectionSyncProps';\nimport type { GridSectionsContent } from '../GridSections/GridSectionsContent';\nimport type { GroupBy, RenderSection } from '../CollectionSectionHeader';\nimport { GridSingleGridContent } from './GridSingleGridContent';\nimport { GridDragAndDrop } from '../GridDragAndDropDndKit/GridDragAndDrop';\n\ninterface GridBaseProps<T, F extends FiltersMap>\n extends Omit<ToolbarCollectionBaseProps<T, F>, 'sticky' | 'maxSelection'>,\n GridItemBaseProps<T, F> {\n dataHook?: string;\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 [GridDragAndDrop](./?path=/story/features-sort-drag-and-drop--griddraganddrop)\n * @external\n */\n dragAndDrop?: typeof GridDragAndDrop;\n\n /**\n * Grid state instance created using [`useGridCollection`](./?path=/story/base-components-collections-grid-usegridcollection--usegridcollection).\n * @overrideType [GridState](./?path=/story/base-components-collections-grid-gridstate--gridstate)\n * @external\n */\n state: GridState<T, F>;\n\n /**\n * A toolbar for performing bulk actions on multiple items.<br> <br>\n * Supported parameters: <br>\n * -`selectedValues`: [array] Items that are checked in the selection column. <br>\n * -`uncheckedValues`: [array] Items that are unchecked in the selection column. <br>\n * -`isSelectAll`: [bool] Whether **Select All** is checked. <br>\n * -`openModal`: [func] Opens a modal that contains the component from `bulkActionModal` render prop. <br>\n * -`clearSelection`: [func] Clears all selections. Call this after the action on the selected items finishes. <br>\n * -`total`: [number] Total number of items in the server. <br>\n * -`openConfirmModal`: [func] Opens a `<MessageModalLayout>` to confirm an action is about to be applied to the selected items. <br>\n * -`query`: [object] Current paging, sorting, and filtering. Often used together with bulk actions, such as `updateAll`. <br>\n * @external\n */\n bulkActionToolbar?: BulkActionToolbarRenderProp<T, F>;\n\n /**\n * Creates [grid sections](./?path=/story/features-display-grid-sections--grid-sections) that group data based on the values of a specific field.\n * @external\n * @overrideType [SectionsProp](./?path=/story/common-types--sectionsprop)\n */\n sections?: {\n GridSections: typeof GridSectionsContent;\n groupBy: GroupBy<T>;\n renderSection?: RenderSection<T>;\n };\n\n layoutType?: LayoutType;\n}\n\nexport type GridBasePropsWithoutPreset<T, F extends FiltersMap> = Omit<\n GridBaseProps<T, F>,\n 'preset' | 'renderItem'\n>;\n\nexport type GridProps<T, F extends FiltersMap> = GridPresetProps<\n T,\n GridBasePropsWithoutPreset<T, F>\n>;\n\nfunction _Grid<T, F extends FiltersMap = FiltersMap>(props: GridProps<T, F>) {\n const {\n state,\n dragAndDrop,\n renderError,\n errorState = renderError &&\n (((err, { isOnline, retry }) =>\n renderError?.({ err, isOnline, retry })) as GridProps<\n T,\n F\n >['errorState']),\n emptyState,\n noResultsState,\n cardProps,\n dataHook,\n exportModal,\n sections,\n } = props;\n\n const { toolbar } = state;\n\n useToolbarCollectionSyncProps({\n ...props,\n state: state.toolbar,\n isUsingDragAndDrop: !!dragAndDrop,\n isUsingBulkActionsToolbar: false,\n isUsingHorizontalScroll: false,\n isUsingFolders: false,\n isUsingTableVirtualization: false,\n });\n\n useEffect(\n () =>\n state.init({\n featuresInitializers: getToolbarCollectionFeaturesInitializers(props),\n }),\n [],\n );\n\n return (\n <CollectionCard\n errorState={false}\n state={toolbar}\n dataHook={dataHook}\n {...cardProps}\n >\n <ToolbarCollection {...props} sticky state={toolbar}>\n <GridPlaceholderStates\n state={state.toolbar}\n errorState={errorState}\n emptyState={emptyState}\n noResultsState={noResultsState}\n >\n <ToolbarCollectionContentAutoSizer>\n {sections ? (\n <sections.GridSections\n {...props}\n groupBy={sections.groupBy}\n renderSection={sections.renderSection}\n state={state}\n />\n ) : (\n <GridSingleGridContent {...props} state={state} />\n )}\n </ToolbarCollectionContentAutoSizer>\n </GridPlaceholderStates>\n </ToolbarCollection>\n {exportModal ?? toolbar.featuredComponents.exportModal.value}\n </CollectionCard>\n );\n}\n\nexport const Grid = observer(_Grid);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAIA,IAAAC,yCAAA,GAAAD,OAAA;AACA,IAAAE,kCAAA,GAAAF,OAAA;AAGA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AAIA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,8BAAA,GAAAP,OAAA;AAGA,IAAAQ,sBAAA,GAAAR,OAAA;AAAgE,IAAAS,YAAA;AAAA,SAAAV,wBAAAW,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAA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,EAAAnD,YAAA;MAAAoD,UAAA;MAAAC,YAAA;IAAA;EAAA,gBAE/BhE,MAAA,CAAAsB,OAAA,CAAAmC,aAAA,CAACrD,kCAAA,CAAAgE,iCAAiC;IAAAR,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnD,YAAA;MAAAoD,UAAA;MAAAC,YAAA;IAAA;EAAA,GAC/BnB,QAAQ,gBACP7C,MAAA,CAAAsB,OAAA,CAAAmC,aAAA,CAACZ,QAAQ,CAACwB,YAAY,MAAAV,SAAA,CAAArC,OAAA,MAChBU,KAAK;IACTsC,OAAO,EAAEzB,QAAQ,CAACyB,OAAQ;IAC1BC,aAAa,EAAE1B,QAAQ,CAAC0B,aAAc;IACtCtC,KAAK,EAAEA,KAAM;IAAA2B,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnD,YAAA;MAAAoD,UAAA;MAAAC,YAAA;IAAA;EAAA,EACd,CAAC,gBAEFhE,MAAA,CAAAsB,OAAA,CAAAmC,aAAA,CAAC/C,sBAAA,CAAA8D,qBAAqB,MAAAb,SAAA,CAAArC,OAAA,MAAKU,KAAK;IAAEC,KAAK,EAAEA,KAAM;IAAA2B,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnD,YAAA;MAAAoD,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAE,CAElB,CACd,CACN,CAAC,EACnBpB,WAAW,IAAIE,OAAO,CAAC2B,kBAAkB,CAAC7B,WAAW,CAAC8B,KACzC,CAAC;AAErB;AAEO,MAAMC,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG,IAAAE,uBAAQ,EAAC9C,KAAK,CAAC","ignoreList":[]}
|
|
@@ -18,6 +18,7 @@ function _GridSectionHeader(props) {
|
|
|
18
18
|
}
|
|
19
19
|
} = state;
|
|
20
20
|
const {
|
|
21
|
+
sectionId,
|
|
21
22
|
section,
|
|
22
23
|
range
|
|
23
24
|
} = sectionDescriptor;
|
|
@@ -28,6 +29,7 @@ function _GridSectionHeader(props) {
|
|
|
28
29
|
};
|
|
29
30
|
return /*#__PURE__*/_react.default.createElement(_CollectionSectionHeader.CollectionSectionHeader, {
|
|
30
31
|
dataHook: "grid-section-header",
|
|
32
|
+
sectionId: sectionId,
|
|
31
33
|
section: sectionWithCount,
|
|
32
34
|
skin: layoutType === 'list' ? 'light' : 'neutral',
|
|
33
35
|
biComponentType: "GridSections",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_mobxReactLite","_CollectionSectionHeader","_jsxFileName","_GridSectionHeader","props","sectionDescriptor","state","gridBase","layoutType","section","range","sectionWithCount","count","length","hasMore","isLast","gridSections","collection","fetchedLastPage","default","createElement","CollectionSectionHeader","dataHook","skin","biComponentType","__self","__source","fileName","lineNumber","columnNumber","GridSectionHeader","exports","observer"],"sources":["../../../../src/components/GridSections/GridSectionHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport { SectionRange } from './GridSectionsState';\nimport { observer } from 'mobx-react-lite';\nimport { GridSectionsSectionState } from './GridSectionsSectionState';\nimport { CollectionSectionHeader } from '../CollectionSectionHeader';\n\nexport interface GridSectionHeaderProps<T, F extends FiltersMap> {\n sectionDescriptor: SectionRange;\n state: GridSectionsSectionState<T, F>;\n}\n\nfunction _GridSectionHeader<T, F extends FiltersMap>(\n props: GridSectionHeaderProps<T, F>,\n) {\n const { sectionDescriptor, state } = props;\n\n const {\n gridBase: { layoutType },\n } = state;\n\n const { section, range } = sectionDescriptor;\n\n const sectionWithCount = {\n ...section,\n count: range.length,\n hasMore: state.isLast && !state.gridSections.collection.fetchedLastPage,\n };\n\n return (\n <CollectionSectionHeader\n dataHook=\"grid-section-header\"\n section={sectionWithCount}\n skin={layoutType === 'list' ? 'light' : 'neutral'}\n biComponentType=\"GridSections\"\n />\n );\n}\n\nexport const GridSectionHeader = observer(_GridSectionHeader);\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAD,OAAA;AAEA,IAAAE,wBAAA,GAAAF,OAAA;AAAqE,IAAAG,YAAA;AAOrE,SAASC,kBAAkBA,CACzBC,KAAmC,EACnC;EACA,MAAM;IAAEC,iBAAiB;IAAEC;EAAM,CAAC,GAAGF,KAAK;EAE1C,MAAM;IACJG,QAAQ,EAAE;MAAEC;IAAW;EACzB,CAAC,GAAGF,KAAK;EAET,MAAM;IAAEG,OAAO;IAAEC;EAAM,CAAC,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_mobxReactLite","_CollectionSectionHeader","_jsxFileName","_GridSectionHeader","props","sectionDescriptor","state","gridBase","layoutType","sectionId","section","range","sectionWithCount","count","length","hasMore","isLast","gridSections","collection","fetchedLastPage","default","createElement","CollectionSectionHeader","dataHook","skin","biComponentType","__self","__source","fileName","lineNumber","columnNumber","GridSectionHeader","exports","observer"],"sources":["../../../../src/components/GridSections/GridSectionHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { FiltersMap } from '@wix/bex-core';\nimport { SectionRange } from './GridSectionsState';\nimport { observer } from 'mobx-react-lite';\nimport { GridSectionsSectionState } from './GridSectionsSectionState';\nimport { CollectionSectionHeader } from '../CollectionSectionHeader';\n\nexport interface GridSectionHeaderProps<T, F extends FiltersMap> {\n sectionDescriptor: SectionRange;\n state: GridSectionsSectionState<T, F>;\n}\n\nfunction _GridSectionHeader<T, F extends FiltersMap>(\n props: GridSectionHeaderProps<T, F>,\n) {\n const { sectionDescriptor, state } = props;\n\n const {\n gridBase: { layoutType },\n } = state;\n\n const { sectionId, section, range } = sectionDescriptor;\n\n const sectionWithCount = {\n ...section,\n count: range.length,\n hasMore: state.isLast && !state.gridSections.collection.fetchedLastPage,\n };\n\n return (\n <CollectionSectionHeader\n dataHook=\"grid-section-header\"\n sectionId={sectionId}\n section={sectionWithCount}\n skin={layoutType === 'list' ? 'light' : 'neutral'}\n biComponentType=\"GridSections\"\n />\n );\n}\n\nexport const GridSectionHeader = observer(_GridSectionHeader);\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAD,OAAA;AAEA,IAAAE,wBAAA,GAAAF,OAAA;AAAqE,IAAAG,YAAA;AAOrE,SAASC,kBAAkBA,CACzBC,KAAmC,EACnC;EACA,MAAM;IAAEC,iBAAiB;IAAEC;EAAM,CAAC,GAAGF,KAAK;EAE1C,MAAM;IACJG,QAAQ,EAAE;MAAEC;IAAW;EACzB,CAAC,GAAGF,KAAK;EAET,MAAM;IAAEG,SAAS;IAAEC,OAAO;IAAEC;EAAM,CAAC,GAAGN,iBAAiB;EAEvD,MAAMO,gBAAgB,GAAG;IACvB,GAAGF,OAAO;IACVG,KAAK,EAAEF,KAAK,CAACG,MAAM;IACnBC,OAAO,EAAET,KAAK,CAACU,MAAM,IAAI,CAACV,KAAK,CAACW,YAAY,CAACC,UAAU,CAACC;EAC1D,CAAC;EAED,oBACEtB,MAAA,CAAAuB,OAAA,CAAAC,aAAA,CAACpB,wBAAA,CAAAqB,uBAAuB;IACtBC,QAAQ,EAAC,qBAAqB;IAC9Bd,SAAS,EAAEA,SAAU;IACrBC,OAAO,EAAEE,gBAAiB;IAC1BY,IAAI,EAAEhB,UAAU,KAAK,MAAM,GAAG,OAAO,GAAG,SAAU;IAClDiB,eAAe,EAAC,cAAc;IAAAC,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA1B,YAAA;MAAA2B,UAAA;MAAAC,YAAA;IAAA;EAAA,CAC/B,CAAC;AAEN;AAEO,MAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,uBAAQ,EAAC9B,kBAAkB,CAAC","ignoreList":[]}
|
|
@@ -16,6 +16,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
16
16
|
function _GridSectionsContent(props) {
|
|
17
17
|
const {
|
|
18
18
|
state: grid,
|
|
19
|
+
groupBy,
|
|
19
20
|
renderSection,
|
|
20
21
|
layoutType
|
|
21
22
|
} = props;
|
|
@@ -31,6 +32,7 @@ function _GridSectionsContent(props) {
|
|
|
31
32
|
const [state] = (0, _react.useState)(() => grid._sections ?? (grid._sections = new _GridSectionsState.GridSectionsState({
|
|
32
33
|
toolbar: grid.toolbar,
|
|
33
34
|
collection: grid.collection,
|
|
35
|
+
groupBy,
|
|
34
36
|
renderSection,
|
|
35
37
|
parentState: grid
|
|
36
38
|
})));
|
|
@@ -39,11 +41,12 @@ function _GridSectionsContent(props) {
|
|
|
39
41
|
} = state;
|
|
40
42
|
(0, _react.useEffect)(() => {
|
|
41
43
|
(0, _mobx.runInAction)(() => {
|
|
44
|
+
state.groupBy = groupBy;
|
|
42
45
|
if (renderSection) {
|
|
43
46
|
state.renderSection = renderSection;
|
|
44
47
|
}
|
|
45
48
|
});
|
|
46
|
-
}, [renderSection]);
|
|
49
|
+
}, [groupBy, renderSection]);
|
|
47
50
|
let child;
|
|
48
51
|
if (!sections.length || showInitialLoader || showRefreshLoader) {
|
|
49
52
|
child = /*#__PURE__*/_react.default.createElement(_GridSectionsSingleSkeletonGrid.GridSectionsSingleSkeletonGrid, (0, _extends2.default)({}, props, {
|
|
@@ -51,19 +54,19 @@ function _GridSectionsContent(props) {
|
|
|
51
54
|
__self: this,
|
|
52
55
|
__source: {
|
|
53
56
|
fileName: _jsxFileName,
|
|
54
|
-
lineNumber:
|
|
57
|
+
lineNumber: 58,
|
|
55
58
|
columnNumber: 7
|
|
56
59
|
}
|
|
57
60
|
}));
|
|
58
61
|
} else {
|
|
59
62
|
child = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, sections.map(sectionDescriptor => /*#__PURE__*/_react.default.createElement(_GridSectionAndRepeater.GridSectionAndRepeater, (0, _extends2.default)({}, props, {
|
|
60
|
-
key: sectionDescriptor.
|
|
63
|
+
key: sectionDescriptor.sectionId,
|
|
61
64
|
sectionDescriptor: sectionDescriptor,
|
|
62
65
|
state: state,
|
|
63
66
|
__self: this,
|
|
64
67
|
__source: {
|
|
65
68
|
fileName: _jsxFileName,
|
|
66
|
-
lineNumber:
|
|
69
|
+
lineNumber: 64,
|
|
67
70
|
columnNumber: 11
|
|
68
71
|
}
|
|
69
72
|
}))));
|
|
@@ -76,7 +79,7 @@ function _GridSectionsContent(props) {
|
|
|
76
79
|
__self: this,
|
|
77
80
|
__source: {
|
|
78
81
|
fileName: _jsxFileName,
|
|
79
|
-
lineNumber:
|
|
82
|
+
lineNumber: 76,
|
|
80
83
|
columnNumber: 5
|
|
81
84
|
}
|
|
82
85
|
}, child);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_GridSectionsState","require","_mobxReactLite","_GridSectionAndRepeater","_react","_interopRequireWildcard","_mobx","_designSystem","_GridSectionsSingleSkeletonGrid","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_GridSectionsContent","props","state","grid","renderSection","layoutType","toolbar","showInitialLoader","multi","showRefreshLoader","useState","_sections","GridSectionsState","collection","parentState","sections","useEffect","runInAction","child","length","createElement","GridSectionsSingleSkeletonGrid","_extends2","__self","__source","fileName","lineNumber","columnNumber","Fragment","map","sectionDescriptor","GridSectionAndRepeater","key","
|
|
1
|
+
{"version":3,"names":["_GridSectionsState","require","_mobxReactLite","_GridSectionAndRepeater","_react","_interopRequireWildcard","_mobx","_designSystem","_GridSectionsSingleSkeletonGrid","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_GridSectionsContent","props","state","grid","groupBy","renderSection","layoutType","toolbar","showInitialLoader","multi","showRefreshLoader","useState","_sections","GridSectionsState","collection","parentState","sections","useEffect","runInAction","child","length","createElement","GridSectionsSingleSkeletonGrid","_extends2","__self","__source","fileName","lineNumber","columnNumber","Fragment","map","sectionDescriptor","GridSectionAndRepeater","key","sectionId","Box","direction","width","paddingTop","undefined","paddingBottom","GridSectionsContent","exports","observer"],"sources":["../../../../src/components/GridSections/GridSectionsContent.tsx"],"sourcesContent":["import { GridSectionsState } from './GridSectionsState';\nimport { FiltersMap } from '@wix/bex-core';\nimport { observer } from 'mobx-react-lite';\nimport { GridSectionAndRepeater } from './GridSectionAndRepeater';\nimport React, { useEffect, useState } from 'react';\nimport { GridContentBaseProps } from '../Grid/GridContent';\nimport { GridState } from '../../state';\nimport { runInAction } from 'mobx';\nimport { Box } from '@wix/design-system';\nimport { GridSectionsSingleSkeletonGrid } from './GridSectionsSingleSkeletonGrid';\nimport type { GroupBy, RenderSection } from '../CollectionSectionHeader';\n\nexport interface GridSectionsContentProps<T, F extends FiltersMap>\n extends GridContentBaseProps<T, F> {\n state: GridState<T, F>;\n groupBy: GroupBy<T>;\n renderSection?: RenderSection<T>;\n}\n\nfunction _GridSectionsContent<T, F extends FiltersMap>(\n props: GridSectionsContentProps<T, F>,\n) {\n const { state: grid, groupBy, renderSection, layoutType } = props;\n\n const { toolbar } = grid;\n\n const {\n showInitialLoader,\n multi: { showRefreshLoader },\n } = toolbar;\n\n const [state] = useState(\n () =>\n (grid._sections ??= new GridSectionsState({\n toolbar: grid.toolbar,\n collection: grid.collection,\n groupBy,\n renderSection,\n parentState: grid,\n })),\n );\n\n const { sections } = state;\n\n useEffect(() => {\n runInAction(() => {\n state.groupBy = groupBy;\n if (renderSection) {\n state.renderSection = renderSection;\n }\n });\n }, [groupBy, renderSection]);\n\n let child;\n\n if (!sections.length || showInitialLoader || showRefreshLoader) {\n child = (\n <GridSectionsSingleSkeletonGrid {...props} state={state.parentState} />\n );\n } else {\n child = (\n <>\n {sections.map((sectionDescriptor) => (\n <GridSectionAndRepeater\n {...props}\n key={sectionDescriptor.sectionId}\n sectionDescriptor={sectionDescriptor}\n state={state}\n />\n ))}\n </>\n );\n }\n\n return (\n <Box\n direction=\"vertical\"\n width=\"100%\"\n paddingTop={layoutType === 'list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44
44
|
gridSections: {
|
|
45
45
|
sections
|
|
46
46
|
}
|
|
47
47
|
} = this;
|
|
48
|
-
return ((_sections = sections[sections.length - 1]) == null ? void 0 : _sections.
|
|
48
|
+
return ((_sections = sections[sections.length - 1]) == null ? void 0 : _sections.sectionId) === sectionId;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
exports.GridSectionsSectionState = GridSectionsSectionState;
|