@wix/patterns 1.352.0 → 1.354.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/CollectionMultiSelectCheckbox/CollectionMultiSelectCheckbox.js +5 -4
- package/dist/cjs/components/CollectionMultiSelectCheckbox/CollectionMultiSelectCheckbox.js.map +1 -1
- package/dist/cjs/components/CollectionPageNew/CollectionPage.js +8 -5
- package/dist/cjs/components/CollectionPageNew/CollectionPage.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.st.css.js +3 -3
- package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css.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/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.js +20 -15
- 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/CollectionViewsDropdown/viewsDropdownRenderHelpers.js +1 -4
- package/dist/cjs/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.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/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/PageSubTitle/PageSubTitle.js +33 -22
- package/dist/cjs/components/PageSubTitle/PageSubTitle.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/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/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/CollectionPageActionsBar.js +159 -0
- package/dist/cjs/state/CollectionPage/CollectionPageActionsBar.js.map +1 -0
- package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css +4 -0
- 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/CollectionPage/transformSecondaryActionsToMoreActions.js +56 -0
- package/dist/cjs/state/CollectionPage/transformSecondaryActionsToMoreActions.js.map +1 -0
- package/dist/cjs/state/CollectionPage/useCollectionPageHeader.js +40 -87
- package/dist/cjs/state/CollectionPage/useCollectionPageHeader.js.map +1 -1
- package/dist/cjs/state/DropdownCollectionFilterState.js +9 -0
- package/dist/cjs/state/DropdownCollectionFilterState.js.map +1 -1
- package/dist/cjs/state/DropdownSelectState.js +9 -0
- package/dist/cjs/state/DropdownSelectState.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/ViewsState.js +44 -61
- package/dist/cjs/state/ViewsState.js.map +1 -1
- package/dist/cjs/styles.global.css +1 -1
- package/dist/cjs/test-utils/WixPatternsEssentialsTestProvider.js +7 -4
- package/dist/cjs/test-utils/WixPatternsEssentialsTestProvider.js.map +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/CollectionMultiSelectCheckbox/CollectionMultiSelectCheckbox.js +2 -2
- package/dist/esm/components/CollectionMultiSelectCheckbox/CollectionMultiSelectCheckbox.js.map +1 -1
- package/dist/esm/components/CollectionPageNew/CollectionPage.js +3 -1
- package/dist/esm/components/CollectionPageNew/CollectionPage.js.map +1 -1
- package/dist/esm/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
- package/dist/esm/components/CollectionPageNew/CollectionPage.st.css.js.map +1 -1
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js +2 -2
- package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js.map +1 -1
- package/dist/esm/components/CollectionTable/CollectionTable.st.css.js +2 -2
- 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/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
- package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.js +5 -2
- 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/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
- package/dist/esm/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.js +1 -4
- package/dist/esm/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.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/Fade/Fade.st.css.js +2 -2
- 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/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
- package/dist/esm/components/MaxLines/MaxLines.st.css.js +2 -2
- package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
- package/dist/esm/components/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/MultipleDragOverlayEffect.st.css.js.map +1 -1
- package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
- package/dist/esm/components/PageSubTitle/PageSubTitle.js +12 -12
- package/dist/esm/components/PageSubTitle/PageSubTitle.js.map +1 -1
- package/dist/esm/components/PickerContent/PickerContent.st.css.js +2 -2
- package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js +2 -2
- package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
- package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
- package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
- package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js +2 -2
- package/dist/esm/components/SlidingModal/SlidingModal.st.css.js +2 -2
- package/dist/esm/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
- package/dist/esm/components/TabsFilter/TabsFilter.st.css.js +2 -2
- package/dist/esm/components/TabsFilter/TabsFilter.st.css.js.map +1 -1
- package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
- package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.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/common.st.css.js +2 -2
- package/dist/esm/state/CollectionPage/CollectionPageActionsBar.js +66 -0
- package/dist/esm/state/CollectionPage/CollectionPageActionsBar.js.map +1 -0
- package/dist/esm/state/CollectionPage/CollectionPageHeader.st.css +4 -0
- package/dist/esm/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
- package/dist/esm/state/CollectionPage/transformSecondaryActionsToMoreActions.js +48 -0
- package/dist/esm/state/CollectionPage/transformSecondaryActionsToMoreActions.js.map +1 -0
- package/dist/esm/state/CollectionPage/useCollectionPageHeader.js +7 -33
- package/dist/esm/state/CollectionPage/useCollectionPageHeader.js.map +1 -1
- package/dist/esm/state/DropdownCollectionFilterState.js +11 -0
- package/dist/esm/state/DropdownCollectionFilterState.js.map +1 -1
- package/dist/esm/state/DropdownSelectState.js +6 -0
- package/dist/esm/state/DropdownSelectState.js.map +1 -1
- package/dist/esm/state/FormPage/FormPageHeader.st.css.js +2 -2
- package/dist/esm/state/ViewsState.js +42 -49
- package/dist/esm/state/ViewsState.js.map +1 -1
- package/dist/esm/styles.global.css +1 -1
- package/dist/esm/test-utils/WixPatternsEssentialsTestProvider.js +5 -0
- package/dist/esm/test-utils/WixPatternsEssentialsTestProvider.js.map +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/CollectionMultiSelectCheckbox/CollectionMultiSelectCheckbox.d.ts.map +1 -1
- package/dist/types/components/CollectionPageNew/CollectionPage.d.ts.map +1 -1
- package/dist/types/components/CollectionPageNew/CollectionPage.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionSectionHeader/CollectionSectionHeader.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/CollectionToolbar.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionToolbar/SearchOrCustomFilter.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/ViewsDropdown.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/ViewsDropdown.st.css.d.ts.map +1 -1
- package/dist/types/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.d.ts.map +1 -1
- package/dist/types/components/InputOverflow/InputOverflow.st.css.d.ts.map +1 -1
- package/dist/types/components/MaxHeightText/MaxHeightText.st.css.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/MultipleDragOverlayEffect.st.css.d.ts.map +1 -1
- package/dist/types/components/PageSubTitle/PageSubTitle.d.ts.map +1 -1
- package/dist/types/components/PickerContent/PickerContentAdditionalStep.st.css.d.ts.map +1 -1
- package/dist/types/components/SlidingModal/SlidingModal.st.css.d.ts.map +1 -1
- package/dist/types/components/TabsFilter/TabsFilter.st.css.d.ts.map +1 -1
- package/dist/types/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.d.ts.map +1 -1
- package/dist/types/state/CollectionPage/CollectionPageActionsBar.d.ts +8 -0
- package/dist/types/state/CollectionPage/CollectionPageActionsBar.d.ts.map +1 -0
- package/dist/types/state/CollectionPage/transformSecondaryActionsToMoreActions.d.ts +4 -0
- package/dist/types/state/CollectionPage/transformSecondaryActionsToMoreActions.d.ts.map +1 -0
- package/dist/types/state/CollectionPage/useCollectionPageHeader.d.ts.map +1 -1
- package/dist/types/state/DropdownCollectionFilterState.d.ts +2 -0
- package/dist/types/state/DropdownCollectionFilterState.d.ts.map +1 -1
- package/dist/types/state/DropdownSelectState.d.ts +1 -0
- package/dist/types/state/DropdownSelectState.d.ts.map +1 -1
- package/dist/types/state/ViewsState.d.ts +0 -2
- package/dist/types/state/ViewsState.d.ts.map +1 -1
- package/dist/types/test-utils/WixPatternsEssentialsTestProvider.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/CardContainer/CardContainer.st.css.ts +2 -2
- package/src/components/Collapse/Collapse.st.css.ts +2 -2
- package/src/components/CollectionMultiSelectCheckbox/CollectionMultiSelectCheckbox.tsx +8 -3
- package/src/components/CollectionPageNew/CollectionPage.st.css.ts +2 -2
- package/src/components/CollectionPageNew/CollectionPage.tsx +7 -1
- package/src/components/CollectionSectionHeader/CollectionSectionHeader.st.css.ts +2 -2
- package/src/components/CollectionTable/CollectionTable.st.css.ts +2 -2
- 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/ViewsDropdown.st.css.ts +2 -2
- package/src/components/CollectionViewsDropdown/ViewsDropdown.tsx +5 -1
- package/src/components/CollectionViewsDropdown/viewsDropdownRenderHelpers.tsx +1 -4
- 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/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/PageSubTitle/PageSubTitle.tsx +41 -27
- 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/TabsFilter/TabsFilter.st.css.ts +2 -2
- 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/CollectionPageActionsBar.tsx +118 -0
- package/src/state/CollectionPage/CollectionPageHeader.st.css +4 -0
- package/src/state/CollectionPage/CollectionPageHeader.st.css.ts +2 -2
- package/src/state/CollectionPage/transformSecondaryActionsToMoreActions.ts +74 -0
- package/src/state/CollectionPage/useCollectionPageHeader.tsx +26 -60
- package/src/state/DropdownCollectionFilterState.ts +13 -0
- package/src/state/DropdownSelectState.ts +7 -0
- package/src/state/FormPage/FormPageHeader.st.css.ts +2 -2
- package/src/state/ViewsState.ts +49 -63
- package/src/styles.global.css +1 -1
- package/src/test-utils/WixPatternsEssentialsTestProvider.tsx +5 -0
- package/src/version.ts +1 -1
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "PickerTableListItem1163908078";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"PickerTableListItem1163908078__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "ScrollableContent2363746614";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"ScrollableContent2363746614__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "SkeletonCard3893727976";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"SkeletonCard3893727976__root","headerLoading":"SkeletonCard3893727976__headerLoading"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "SlidingModal708885698";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"SlidingModal708885698__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "TabsFilter393841454";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"TabsFilter393841454__root","title":"TabsFilter393841454__title"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "ManageTagsModal442421669";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"ManageTagsModal442421669__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "ToolbarItem4290146710";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"ToolbarItem4290146710__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "ToolbarItemBox2965834027";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"ToolbarItemBox2965834027__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "common485820671";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"common485820671__root","column":"common485820671__column","fullHeight":"common485820671__fullHeight"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box } from '@wix/design-system';
|
|
3
|
+
import { CollectionPageHeaderElement } from '../../components/CollectionPageHeaderNew';
|
|
4
|
+
import { useCollectionPageContext } from '../../providers';
|
|
5
|
+
import { observer } from 'mobx-react-lite';
|
|
6
|
+
import { MoreActionsText } from '../../components/MoreActions/MoreActionsText';
|
|
7
|
+
import { useIsMobile } from '../../hooks/useIsMobile';
|
|
8
|
+
import { pushFactoryIfNotExistsOrAddToTopOfGroup } from './pushFactoryIfNotExistsOrAddToTopOfGroup';
|
|
9
|
+
import { mergeActionsForNarrowMode } from './transformSecondaryActionsToMoreActions';
|
|
10
|
+
import { MoreActions } from '../../components/MoreActions';
|
|
11
|
+
import {
|
|
12
|
+
MoreActionItemFactory,
|
|
13
|
+
MoreActionsPropItem,
|
|
14
|
+
} from '../../components/MoreActions/MoreActionsBase';
|
|
15
|
+
import { useWixPatternsContainer } from '@wix/bex-core/react';
|
|
16
|
+
|
|
17
|
+
function withFeaturedActions(
|
|
18
|
+
items: MoreActionsPropItem[] | MoreActionsPropItem[][] | undefined,
|
|
19
|
+
featuredActions: MoreActionItemFactory[] | undefined,
|
|
20
|
+
) {
|
|
21
|
+
if (!featuredActions) {
|
|
22
|
+
return items;
|
|
23
|
+
}
|
|
24
|
+
let result = items;
|
|
25
|
+
for (const factory of featuredActions) {
|
|
26
|
+
result = pushFactoryIfNotExistsOrAddToTopOfGroup(result, factory);
|
|
27
|
+
}
|
|
28
|
+
return result;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const WideModeMoreActions = observer(
|
|
32
|
+
({ child }: { child: CollectionPageHeaderElement }) => {
|
|
33
|
+
const { primaryToolbar } = useCollectionPageContext();
|
|
34
|
+
const featuredActions = primaryToolbar?.getPageFeaturedActions();
|
|
35
|
+
|
|
36
|
+
const forceMoreActions = featuredActions?.length ? (
|
|
37
|
+
<MoreActions />
|
|
38
|
+
) : undefined;
|
|
39
|
+
|
|
40
|
+
const moreActions = child.props.moreActions ?? forceMoreActions;
|
|
41
|
+
if (!moreActions) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const { type: MoreActionsType, props: moreActionsProps } = moreActions;
|
|
46
|
+
const items = withFeaturedActions(moreActionsProps.items, featuredActions);
|
|
47
|
+
|
|
48
|
+
if (child.props.secondaryActions) {
|
|
49
|
+
return <MoreActionsType {...moreActionsProps} items={items} />;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return <MoreActionsText {...moreActionsProps} items={items} />;
|
|
53
|
+
},
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
const NarrowModeMoreActions = observer(
|
|
57
|
+
({ child }: { child: CollectionPageHeaderElement }) => {
|
|
58
|
+
const { primaryToolbar } = useCollectionPageContext();
|
|
59
|
+
const featuredActions = primaryToolbar?.getPageFeaturedActions();
|
|
60
|
+
const moreActionsProps = child.props.moreActions?.props;
|
|
61
|
+
|
|
62
|
+
const moreActionsItems = withFeaturedActions(
|
|
63
|
+
moreActionsProps?.items,
|
|
64
|
+
featuredActions,
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
const items = mergeActionsForNarrowMode(
|
|
68
|
+
child.props.secondaryActions,
|
|
69
|
+
moreActionsItems,
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
if (items.length === 0) {
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<MoreActions
|
|
78
|
+
items={items}
|
|
79
|
+
containerId={moreActionsProps?.containerId}
|
|
80
|
+
exploreAppsModalProps={moreActionsProps?.exploreAppsModalProps}
|
|
81
|
+
biAdditionalInfo={moreActionsProps?.biAdditionalInfo}
|
|
82
|
+
/>
|
|
83
|
+
);
|
|
84
|
+
},
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
export const CollectionPageActionsBar = observer(
|
|
88
|
+
({ child }: { child: CollectionPageHeaderElement }) => {
|
|
89
|
+
const isMobile = useIsMobile();
|
|
90
|
+
const { isNarrow } = useCollectionPageContext();
|
|
91
|
+
const { internalExperiments } = useWixPatternsContainer();
|
|
92
|
+
|
|
93
|
+
const isNarrowMode =
|
|
94
|
+
isNarrow &&
|
|
95
|
+
internalExperiments?.enabled('specs.cairo.CollectionPageMinWidth');
|
|
96
|
+
|
|
97
|
+
if (isMobile) {
|
|
98
|
+
return <Box gap="SP2">{child.props.primaryAction}</Box>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (isNarrowMode) {
|
|
102
|
+
return (
|
|
103
|
+
<Box gap="SP2">
|
|
104
|
+
<NarrowModeMoreActions child={child} />
|
|
105
|
+
{child.props.primaryAction}
|
|
106
|
+
</Box>
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return (
|
|
111
|
+
<Box gap="SP2">
|
|
112
|
+
<WideModeMoreActions child={child} />
|
|
113
|
+
{child.props.secondaryActions}
|
|
114
|
+
{child.props.primaryAction}
|
|
115
|
+
</Box>
|
|
116
|
+
);
|
|
117
|
+
},
|
|
118
|
+
);
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "CollectionPageHeader2717860892";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"CollectionPageHeader2717860892__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ActionSubitem } from '../../components/ActionControl/ActionSubItemProps';
|
|
2
|
+
import { MoreActionsItem } from '../../components/MoreActions/MoreActionsItem';
|
|
3
|
+
import { SecondaryActionsElement } from '../../components/SecondaryActions/SecondaryActions';
|
|
4
|
+
import { MoreActionsPropItem } from '../../components/MoreActions/MoreActionsBase';
|
|
5
|
+
|
|
6
|
+
function normalizeToGroups<T>(items: T[] | T[][] | undefined): T[][] {
|
|
7
|
+
if (!items || items.length === 0) {
|
|
8
|
+
return [];
|
|
9
|
+
}
|
|
10
|
+
return Array.isArray(items[0]) ? (items as T[][]) : [items as T[]];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function toMoreActionsItem(subitem: ActionSubitem): MoreActionsItem {
|
|
14
|
+
return {
|
|
15
|
+
text: subitem.label ?? '',
|
|
16
|
+
onClick: subitem.onClick ?? (() => {}),
|
|
17
|
+
prefixIcon: subitem.prefixIcon,
|
|
18
|
+
disabled: subitem.disabled,
|
|
19
|
+
subtitle: subitem.subtitle,
|
|
20
|
+
dataHook: subitem.dataHook,
|
|
21
|
+
biName: subitem.biName,
|
|
22
|
+
biAdditionalInfo: subitem.biAdditionalInfo,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function secondaryActionsToGroups(
|
|
27
|
+
secondaryActions: SecondaryActionsElement | undefined,
|
|
28
|
+
): MoreActionsPropItem[][] {
|
|
29
|
+
if (!secondaryActions) {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const {
|
|
34
|
+
label,
|
|
35
|
+
onClick,
|
|
36
|
+
prefixIcon,
|
|
37
|
+
disabled,
|
|
38
|
+
biName,
|
|
39
|
+
biAdditionalInfo,
|
|
40
|
+
subItems,
|
|
41
|
+
} = secondaryActions.props;
|
|
42
|
+
|
|
43
|
+
if (subItems && subItems.length > 0) {
|
|
44
|
+
return normalizeToGroups(subItems).map((group) =>
|
|
45
|
+
group.map(toMoreActionsItem),
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (label) {
|
|
50
|
+
return [
|
|
51
|
+
[
|
|
52
|
+
{
|
|
53
|
+
text: label,
|
|
54
|
+
onClick: onClick ?? (() => {}),
|
|
55
|
+
prefixIcon,
|
|
56
|
+
disabled,
|
|
57
|
+
biName,
|
|
58
|
+
biAdditionalInfo,
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return [];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function mergeActionsForNarrowMode(
|
|
68
|
+
secondaryActions: SecondaryActionsElement | undefined,
|
|
69
|
+
moreActionsItems: MoreActionsPropItem[] | MoreActionsPropItem[][] | undefined,
|
|
70
|
+
): MoreActionsPropItem[][] {
|
|
71
|
+
const secondaryGroups = secondaryActionsToGroups(secondaryActions);
|
|
72
|
+
const moreActionsGroups = normalizeToGroups(moreActionsItems);
|
|
73
|
+
return [...secondaryGroups, ...moreActionsGroups];
|
|
74
|
+
}
|
|
@@ -4,49 +4,11 @@ import { CollectionPageHeaderElement } from '../../components/CollectionPageHead
|
|
|
4
4
|
import { useCollectionPageContext } from '../../providers';
|
|
5
5
|
import { observer } from 'mobx-react-lite';
|
|
6
6
|
import { PageSubTitle } from '../../components/PageSubTitle';
|
|
7
|
-
import { MoreActionsText } from '../../components/MoreActions/MoreActionsText';
|
|
8
7
|
import { useIsMobile } from '../../hooks/useIsMobile';
|
|
9
8
|
import { classes, st } from './CollectionPageHeader.st.css.js';
|
|
10
|
-
import { pushFactoryIfNotExistsOrAddToTopOfGroup } from './pushFactoryIfNotExistsOrAddToTopOfGroup';
|
|
11
|
-
import { MoreActions } from '../../components/MoreActions';
|
|
12
9
|
import { useWixPatternsContainer } from '@wix/bex-core/react';
|
|
13
10
|
import { PanelHeader } from './PanelHeader';
|
|
14
|
-
|
|
15
|
-
const MoreActionsBySecondaryAction = observer(
|
|
16
|
-
({ child }: { child: CollectionPageHeaderElement }) => {
|
|
17
|
-
const pageState = useCollectionPageContext();
|
|
18
|
-
const { primaryToolbar } = pageState;
|
|
19
|
-
|
|
20
|
-
const featuredActions = primaryToolbar?.getPageFeaturedActions();
|
|
21
|
-
|
|
22
|
-
const forceMoreActions = featuredActions?.length ? (
|
|
23
|
-
<MoreActions />
|
|
24
|
-
) : undefined;
|
|
25
|
-
|
|
26
|
-
const moreActions = child.props.moreActions ?? forceMoreActions;
|
|
27
|
-
|
|
28
|
-
if (!moreActions) {
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const { type: MoreActionsElementType, props: moreActionsProps } =
|
|
33
|
-
moreActions;
|
|
34
|
-
|
|
35
|
-
let items = moreActionsProps.items;
|
|
36
|
-
|
|
37
|
-
if (featuredActions) {
|
|
38
|
-
for (const factory of featuredActions) {
|
|
39
|
-
items = pushFactoryIfNotExistsOrAddToTopOfGroup(items, factory);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (child.props.secondaryActions) {
|
|
44
|
-
return <MoreActionsElementType {...moreActionsProps} items={items} />;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return <MoreActionsText {...moreActionsProps} items={items} />;
|
|
48
|
-
},
|
|
49
|
-
);
|
|
11
|
+
import { CollectionPageActionsBar } from './CollectionPageActionsBar';
|
|
50
12
|
|
|
51
13
|
export function useCollectionPageHeader(child: CollectionPageHeaderElement) {
|
|
52
14
|
const isMobile = useIsMobile();
|
|
@@ -60,6 +22,7 @@ export function useCollectionPageHeader(child: CollectionPageHeaderElement) {
|
|
|
60
22
|
/>
|
|
61
23
|
);
|
|
62
24
|
}
|
|
25
|
+
|
|
63
26
|
return (
|
|
64
27
|
<Page.Header
|
|
65
28
|
key={child.key}
|
|
@@ -71,13 +34,7 @@ export function useCollectionPageHeader(child: CollectionPageHeaderElement) {
|
|
|
71
34
|
<PageSubTitle {...child.props.subtitle} />
|
|
72
35
|
) : undefined
|
|
73
36
|
}
|
|
74
|
-
actionsBar={
|
|
75
|
-
<Box gap="SP2">
|
|
76
|
-
{!isMobile && <MoreActionsBySecondaryAction child={child} />}
|
|
77
|
-
{!isMobile && child.props.secondaryActions}
|
|
78
|
-
{child.props.primaryAction}
|
|
79
|
-
</Box>
|
|
80
|
-
}
|
|
37
|
+
actionsBar={<CollectionPageActionsBar child={child} />}
|
|
81
38
|
breadcrumbs={
|
|
82
39
|
isMobile
|
|
83
40
|
? () => {
|
|
@@ -93,25 +50,34 @@ const CollectionPageHeaderTitle = observer(
|
|
|
93
50
|
({ minimized }: { minimized: boolean }) => {
|
|
94
51
|
const state = useCollectionPageContext();
|
|
95
52
|
const isMobile = useIsMobile();
|
|
96
|
-
const titleContent = (
|
|
97
|
-
<>
|
|
98
|
-
<Box inline paddingRight="9px">
|
|
99
|
-
{state.pageTitle}
|
|
100
|
-
</Box>
|
|
101
|
-
{state.total !== false && !state.hideHeaderTotal && (
|
|
102
|
-
<Box inline color="D40" dataHook="page-header-total-count">
|
|
103
|
-
{state.total}
|
|
104
|
-
</Box>
|
|
105
|
-
)}
|
|
106
|
-
</>
|
|
107
|
-
);
|
|
108
53
|
|
|
109
54
|
if (minimized) {
|
|
110
|
-
return
|
|
55
|
+
return <>{state.pageTitle}</>;
|
|
111
56
|
}
|
|
112
57
|
|
|
113
58
|
return (
|
|
114
|
-
<Heading size={isMobile ? 'large' : 'extraLarge'}>
|
|
59
|
+
<Heading size={isMobile ? 'large' : 'extraLarge'}>
|
|
60
|
+
<Box inline maxLines={1} paddingRight="9px" minWidth={0} width="100%">
|
|
61
|
+
<Heading
|
|
62
|
+
size={isMobile ? 'large' : 'extraLarge'}
|
|
63
|
+
ellipsis
|
|
64
|
+
showTooltip={!isMobile}
|
|
65
|
+
placement="bottom"
|
|
66
|
+
>
|
|
67
|
+
{state.pageTitle}
|
|
68
|
+
</Heading>
|
|
69
|
+
{state.total !== false && !state.hideHeaderTotal && (
|
|
70
|
+
<Box
|
|
71
|
+
inline
|
|
72
|
+
color="D40"
|
|
73
|
+
paddingLeft="9px"
|
|
74
|
+
dataHook="page-header-total-count"
|
|
75
|
+
>
|
|
76
|
+
{state.total}
|
|
77
|
+
</Box>
|
|
78
|
+
)}
|
|
79
|
+
</Box>
|
|
80
|
+
</Heading>
|
|
115
81
|
);
|
|
116
82
|
},
|
|
117
83
|
);
|
|
@@ -42,10 +42,21 @@ export class DropdownCollectionFilterState<
|
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
get inputValue() {
|
|
46
|
+
return this.shouldShowInputValue
|
|
47
|
+
? this.collectionFilter.collection.query.search.value
|
|
48
|
+
: '';
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
get shouldShowInputValue() {
|
|
52
|
+
return this.dropdownSelect.dropdown.isOn || !this.inputState.disableEditing;
|
|
53
|
+
}
|
|
54
|
+
|
|
45
55
|
onOptionsShow() {
|
|
46
56
|
this.promotedItems = this.collectionFilter.select.selectedValues.map(
|
|
47
57
|
(item) => item.key,
|
|
48
58
|
);
|
|
59
|
+
this.dropdownSelect.open();
|
|
49
60
|
}
|
|
50
61
|
|
|
51
62
|
constructor(params: DropdownCollectionFilterStateParams<V, F>) {
|
|
@@ -69,6 +80,8 @@ export class DropdownCollectionFilterState<
|
|
|
69
80
|
makeObservable(this, {
|
|
70
81
|
init: action.bound,
|
|
71
82
|
shouldShowPlaceholder: computed,
|
|
83
|
+
inputValue: computed,
|
|
84
|
+
shouldShowInputValue: computed,
|
|
72
85
|
promotedItems: observable.ref,
|
|
73
86
|
onOptionsShow: action.bound,
|
|
74
87
|
});
|
|
@@ -48,6 +48,7 @@ export class DropdownSelectState<V> {
|
|
|
48
48
|
delete: action,
|
|
49
49
|
deleteKey: action,
|
|
50
50
|
init: action.bound,
|
|
51
|
+
open: action.bound,
|
|
51
52
|
clear: action.bound,
|
|
52
53
|
syncSelectedItems: action.bound,
|
|
53
54
|
syncSelectedItemsIfChanged: action.bound,
|
|
@@ -174,6 +175,12 @@ export class DropdownSelectState<V> {
|
|
|
174
175
|
events.emit('close');
|
|
175
176
|
}
|
|
176
177
|
|
|
178
|
+
open() {
|
|
179
|
+
const { dropdown, events } = this;
|
|
180
|
+
dropdown.setOn();
|
|
181
|
+
events.emit('open');
|
|
182
|
+
}
|
|
183
|
+
|
|
177
184
|
closeAndChangeSelectedItems() {
|
|
178
185
|
this.close();
|
|
179
186
|
const { selectedItems, filter } = this;
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "FormPageHeader1386305735";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"FormPageHeader1386305735__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|