@dialpad/dialtone-vue 4.8.0 → 4.10.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/{Combobox-WsLvegw6.js → Combobox-DP8tbe6x.js} +1 -1
- package/dist/{Combobox-WsLvegw6.js.map → Combobox-DP8tbe6x.js.map} +1 -1
- package/dist/{Combobox-96zAPv6d.cjs → Combobox-DdBIRmeH.cjs} +1 -1
- package/dist/{Combobox-96zAPv6d.cjs.map → Combobox-DdBIRmeH.cjs.map} +1 -1
- package/dist/{Datepicker-D-Lgvthq.js → Datepicker-CNFVUyyK.js} +1 -1
- package/dist/{Datepicker-D-Lgvthq.js.map → Datepicker-CNFVUyyK.js.map} +1 -1
- package/dist/{Datepicker-DmKOuf5y.cjs → Datepicker-Df6uR0r_.cjs} +1 -1
- package/dist/{Datepicker-DmKOuf5y.cjs.map → Datepicker-Df6uR0r_.cjs.map} +1 -1
- package/dist/{EmojiPicker-D46lLRMp.js → EmojiPicker-B7AKJlAM.js} +1 -1
- package/dist/{EmojiPicker-D46lLRMp.js.map → EmojiPicker-B7AKJlAM.js.map} +1 -1
- package/dist/{EmojiPicker-CXFd-iVj.cjs → EmojiPicker-KbIfc-GH.cjs} +1 -1
- package/dist/{EmojiPicker-CXFd-iVj.cjs.map → EmojiPicker-KbIfc-GH.cjs.map} +1 -1
- package/dist/FilterPill-BR7FAmMG.js +757 -0
- package/dist/FilterPill-BR7FAmMG.js.map +1 -0
- package/dist/FilterPill-DwapR9JK.cjs +2 -0
- package/dist/FilterPill-DwapR9JK.cjs.map +1 -0
- package/dist/{ForceLinkify-kQ_kWKVm.cjs → ForceLinkify-D4FBhBxD.cjs} +1 -1
- package/dist/{ForceLinkify-kQ_kWKVm.cjs.map → ForceLinkify-D4FBhBxD.cjs.map} +1 -1
- package/dist/{ForceLinkify-DuAo3TMB.js → ForceLinkify-wTXS_wJS.js} +1 -1
- package/dist/{ForceLinkify-DuAo3TMB.js.map → ForceLinkify-wTXS_wJS.js.map} +1 -1
- package/dist/{MarkdownRenderer-eMwmPygx.js → MarkdownRenderer-3CVbodrq.js} +1 -1
- package/dist/{MarkdownRenderer-eMwmPygx.js.map → MarkdownRenderer-3CVbodrq.js.map} +1 -1
- package/dist/{MarkdownRenderer-C5wdjC5_.cjs → MarkdownRenderer-CaBjENW6.cjs} +1 -1
- package/dist/{MarkdownRenderer-C5wdjC5_.cjs.map → MarkdownRenderer-CaBjENW6.cjs.map} +1 -1
- package/dist/{Resizable-DBRsEUf3.cjs → Resizable-BQsHIvDC.cjs} +2 -2
- package/dist/{Resizable-DBRsEUf3.cjs.map → Resizable-BQsHIvDC.cjs.map} +1 -1
- package/dist/{Resizable-EY7mWluI.js → Resizable-F6PU5oKB.js} +3 -3
- package/dist/{Resizable-EY7mWluI.js.map → Resizable-F6PU5oKB.js.map} +1 -1
- package/dist/{ResizableHandle-v-oU-sj-.js → ResizableHandle-CqIIQvza.js} +3 -3
- package/dist/{ResizableHandle-v-oU-sj-.js.map → ResizableHandle-CqIIQvza.js.map} +1 -1
- package/dist/{ResizableHandle-DQG7a5D9.cjs → ResizableHandle-VBoudEYy.cjs} +2 -2
- package/dist/{ResizableHandle-DQG7a5D9.cjs.map → ResizableHandle-VBoudEYy.cjs.map} +1 -1
- package/dist/{ResizableUtils-DMfertP2.cjs → ResizableUtils-CZdVSd6q.cjs} +1 -1
- package/dist/{ResizableUtils-DMfertP2.cjs.map → ResizableUtils-CZdVSd6q.cjs.map} +1 -1
- package/dist/{ResizableUtils-C9qEZRN5.js → ResizableUtils-CrBOa8js.js} +1 -1
- package/dist/{ResizableUtils-C9qEZRN5.js.map → ResizableUtils-CrBOa8js.js.map} +1 -1
- package/dist/{RichTextEditor-D8DfONFm.js → RichTextEditor-DLiJCPI6.js} +5 -5
- package/dist/{RichTextEditor-D8DfONFm.js.map → RichTextEditor-DLiJCPI6.js.map} +1 -1
- package/dist/{RichTextEditor-DMUDJKVn.cjs → RichTextEditor-ECmStZDK.cjs} +2 -2
- package/dist/{RichTextEditor-DMUDJKVn.cjs.map → RichTextEditor-ECmStZDK.cjs.map} +1 -1
- package/dist/{Scroller-B1xwv6TG.js → Scroller-D6f0HvIT.js} +1 -1
- package/dist/{Scroller-B1xwv6TG.js.map → Scroller-D6f0HvIT.js.map} +1 -1
- package/dist/{Scroller-pAU8UWIH.cjs → Scroller-EIHN3a26.cjs} +1 -1
- package/dist/{Scroller-pAU8UWIH.cjs.map → Scroller-EIHN3a26.cjs.map} +1 -1
- package/dist/{Slider-D2cDYZcJ.cjs → Slider-BDgY7gNR.cjs} +2 -2
- package/dist/{Slider-D2cDYZcJ.cjs.map → Slider-BDgY7gNR.cjs.map} +1 -1
- package/dist/{Slider-Du45PVLU.js → Slider-Bg9KspmL.js} +3 -3
- package/dist/{Slider-Du45PVLU.js.map → Slider-Bg9KspmL.js.map} +1 -1
- package/dist/Text-5MobHF6z.js +404 -0
- package/dist/Text-5MobHF6z.js.map +1 -0
- package/dist/Text-DNVNZree.cjs +2 -0
- package/dist/Text-DNVNZree.cjs.map +1 -0
- package/dist/{TextList-CLUdOdlp.cjs → TextList-1_ZM5zE3.cjs} +1 -1
- package/dist/{TextList-CLUdOdlp.cjs.map → TextList-1_ZM5zE3.cjs.map} +1 -1
- package/dist/{TextList-7RwngSie.js → TextList-DIj84CPZ.js} +1 -1
- package/dist/{TextList-7RwngSie.js.map → TextList-DIj84CPZ.js.map} +1 -1
- package/dist/{TextListItem-D0UmIR_q.js → TextListItem-BhmijfFO.js} +1 -1
- package/dist/{TextListItem-D0UmIR_q.js.map → TextListItem-BhmijfFO.js.map} +1 -1
- package/dist/{TextListItem-B-bhrqik.cjs → TextListItem-CVjrHr2_.cjs} +1 -1
- package/dist/{TextListItem-B-bhrqik.cjs.map → TextListItem-CVjrHr2_.cjs.map} +1 -1
- package/dist/{Toast-57Ts-hX9.cjs → Toast--W8p7jzA.cjs} +1 -1
- package/dist/{Toast-57Ts-hX9.cjs.map → Toast--W8p7jzA.cjs.map} +1 -1
- package/dist/{Toast-BNhGD6l8.js → Toast-4nsu1oxP.js} +1 -1
- package/dist/{Toast-BNhGD6l8.js.map → Toast-4nsu1oxP.js.map} +1 -1
- package/dist/{UseResizableCalculations-BTQ4jiff.js → UseResizableCalculations-B-yTU9ZI.js} +2 -2
- package/dist/{UseResizableCalculations-BTQ4jiff.js.map → UseResizableCalculations-B-yTU9ZI.js.map} +1 -1
- package/dist/{UseResizableCalculations-C6lmroJg.cjs → UseResizableCalculations-CahDXDOn.cjs} +2 -2
- package/dist/{UseResizableCalculations-C6lmroJg.cjs.map → UseResizableCalculations-CahDXDOn.cjs.map} +1 -1
- package/dist/component-documentation.json +1 -1
- package/dist/components/Banner/Banner.vue.d.ts +53 -1
- package/dist/components/Banner/Banner.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts +53 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +53 -1
- package/dist/components/Combobox/Combobox.vue.d.ts +18 -0
- package/dist/components/Combobox/Combobox.vue.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxEmptyList.vue.d.ts +9 -0
- package/dist/components/Combobox/ComboboxEmptyList.vue.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxLoadingList.vue.d.ts +9 -0
- package/dist/components/Combobox/ComboboxLoadingList.vue.d.ts.map +1 -1
- package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts +36 -0
- package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +3 -4
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts +53 -1
- package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts +53 -1
- package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts.map +1 -1
- package/dist/components/FilterPill/FilterPill.vue.d.ts +221 -9
- package/dist/components/FilterPill/FilterPill.vue.d.ts.map +1 -1
- package/dist/components/FilterPill/FilterPillControlled.d.ts +7 -1
- package/dist/components/FilterPill/FilterPillControlled.d.ts.map +1 -1
- package/dist/components/FilterPill/FilterPillSelection.d.ts +5 -0
- package/dist/components/FilterPill/FilterPillSelection.d.ts.map +1 -1
- package/dist/components/FilterPill/modules/FilterPillOptionGroup.vue.d.ts +31 -0
- package/dist/components/FilterPill/modules/FilterPillOptionGroup.vue.d.ts.map +1 -0
- package/dist/components/Input/Input.vue.d.ts +53 -1
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.vue.d.ts +53 -1
- package/dist/components/InputGroup/InputGroup.vue.d.ts.map +1 -1
- package/dist/components/KeyboardShortcut/KeyboardShortcut.vue.d.ts +53 -1
- package/dist/components/ListItem/ListItem.vue.d.ts +9 -0
- package/dist/components/ListItem/ListItem.vue.d.ts.map +1 -1
- package/dist/components/Modal/Modal.vue.d.ts +53 -1
- package/dist/components/Modal/Modal.vue.d.ts.map +1 -1
- package/dist/components/Notice/Notice.vue.d.ts +53 -1
- package/dist/components/Notice/Notice.vue.d.ts.map +1 -1
- package/dist/components/Notice/NoticeContent.vue.d.ts +53 -1
- package/dist/components/Notice/NoticeContent.vue.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Radio/Radio.vue.d.ts +53 -1
- package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.vue.d.ts +53 -1
- package/dist/components/RichTextEditor/Extensions/Mentions/MentionSuggestion.vue.d.ts +53 -1
- package/dist/components/RichTextEditor/Extensions/SlashCommand/SlashCommandSuggestion.vue.d.ts +53 -1
- package/dist/components/RichTextEditor/Extensions/Suggestion/SuggestionList.vue.d.ts +9 -0
- package/dist/components/RichTextEditor/Extensions/Suggestion/SuggestionList.vue.d.ts.map +1 -1
- package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts +53 -1
- package/dist/components/SelectMenu/SelectMenu.vue.d.ts +53 -1
- package/dist/components/SelectMenu/SelectMenu.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts +3 -4
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/Text/Text.vue.d.ts +53 -1
- package/dist/components/Text/Text.vue.d.ts.map +1 -1
- package/dist/components/Text/TextConstants.d.ts +2 -0
- package/dist/components/Text/TextConstants.d.ts.map +1 -1
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Text/modules/SlideViewport.vue.d.ts +38 -0
- package/dist/components/Text/modules/SlideViewport.vue.d.ts.map +1 -0
- package/dist/components/Text/modules/slide.d.ts +19 -0
- package/dist/components/Text/modules/slide.d.ts.map +1 -0
- package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts +53 -1
- package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts.map +1 -1
- package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts +53 -1
- package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts +212 -4
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +34 -36
- package/dist/{floating-ui.dom-j5GI2lJG.js → floating-ui.dom-Cqf6X2Wc.js} +1 -1
- package/dist/{floating-ui.dom-j5GI2lJG.js.map → floating-ui.dom-Cqf6X2Wc.js.map} +1 -1
- package/dist/{floating-ui.dom-D2zQ_96p.cjs → floating-ui.dom-n1CheoWj.cjs} +1 -1
- package/dist/{floating-ui.dom-D2zQ_96p.cjs.map → floating-ui.dom-n1CheoWj.cjs.map} +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/lib/checkbox/checkbox.cjs +1 -1
- package/dist/lib/checkbox/checkbox.cjs.map +1 -1
- package/dist/lib/checkbox/checkbox.js +1 -1
- package/dist/lib/combobox/combobox.cjs +1 -1
- package/dist/lib/combobox/combobox.js +1 -1
- package/dist/lib/combobox/index.cjs +1 -1
- package/dist/lib/combobox/index.js +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.js +1 -1
- package/dist/lib/datepicker/datepicker.cjs +1 -1
- package/dist/lib/datepicker/datepicker.js +1 -1
- package/dist/lib/datepicker/index.cjs +1 -1
- package/dist/lib/datepicker/index.js +1 -1
- package/dist/lib/dropdown/dropdown-list.cjs +1 -1
- package/dist/lib/dropdown/dropdown-list.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown-list.js +1 -1
- package/dist/lib/dropdown/dropdown.cjs +1 -1
- package/dist/lib/dropdown/dropdown.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown.js +22 -25
- package/dist/lib/dropdown/dropdown.js.map +1 -1
- package/dist/lib/emoji-picker/emoji-picker.cjs +1 -1
- package/dist/lib/emoji-picker/emoji-picker.js +1 -1
- package/dist/lib/emoji-picker/index.cjs +1 -1
- package/dist/lib/emoji-picker/index.js +1 -1
- package/dist/lib/empty-state/empty-state.cjs +1 -1
- package/dist/lib/empty-state/empty-state.cjs.map +1 -1
- package/dist/lib/empty-state/empty-state.js +1 -1
- package/dist/lib/filter-pill/filter-pill-controlled.cjs +1 -1
- package/dist/lib/filter-pill/filter-pill-controlled.cjs.map +1 -1
- package/dist/lib/filter-pill/filter-pill-controlled.js +4 -1
- package/dist/lib/filter-pill/filter-pill-controlled.js.map +1 -1
- package/dist/lib/filter-pill/filter-pill-selection.cjs +1 -1
- package/dist/lib/filter-pill/filter-pill-selection.cjs.map +1 -1
- package/dist/lib/filter-pill/filter-pill-selection.js +53 -19
- package/dist/lib/filter-pill/filter-pill-selection.js.map +1 -1
- package/dist/lib/filter-pill/filter-pill.cjs +1 -2
- package/dist/lib/filter-pill/filter-pill.js +2 -709
- package/dist/lib/filter-pill/index.cjs +1 -1
- package/dist/lib/filter-pill/index.js +1 -1
- package/dist/lib/input/input.cjs +1 -1
- package/dist/lib/input/input.cjs.map +1 -1
- package/dist/lib/input/input.js +1 -1
- package/dist/lib/input-group/input-group.cjs +1 -1
- package/dist/lib/input-group/input-group.cjs.map +1 -1
- package/dist/lib/input-group/input-group.js +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs.map +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +1 -1
- package/dist/lib/kitchen-sink/kitchen-sink-view.cjs +1 -1
- package/dist/lib/kitchen-sink/kitchen-sink-view.cjs.map +1 -1
- package/dist/lib/kitchen-sink/kitchen-sink-view.js +1 -1
- package/dist/lib/list-item/list-item.cjs +1 -1
- package/dist/lib/list-item/list-item.cjs.map +1 -1
- package/dist/lib/list-item/list-item.js +14 -3
- package/dist/lib/list-item/list-item.js.map +1 -1
- package/dist/lib/modal/modal.cjs +1 -1
- package/dist/lib/modal/modal.cjs.map +1 -1
- package/dist/lib/modal/modal.js +1 -1
- package/dist/lib/notice/notice-content.cjs +1 -1
- package/dist/lib/notice/notice-content.cjs.map +1 -1
- package/dist/lib/notice/notice-content.js +1 -1
- package/dist/lib/popover/popover.cjs +1 -1
- package/dist/lib/popover/popover.cjs.map +1 -1
- package/dist/lib/popover/popover.js +6 -1
- package/dist/lib/popover/popover.js.map +1 -1
- package/dist/lib/radio/radio.cjs +1 -1
- package/dist/lib/radio/radio.cjs.map +1 -1
- package/dist/lib/radio/radio.js +1 -1
- package/dist/lib/resizable/index.cjs +1 -1
- package/dist/lib/resizable/index.js +3 -3
- package/dist/lib/resizable/resizable-handle.cjs +1 -1
- package/dist/lib/resizable/resizable-handle.js +1 -1
- package/dist/lib/resizable/resizable-panel.cjs +1 -1
- package/dist/lib/resizable/resizable-panel.js +1 -1
- package/dist/lib/resizable/resizable.cjs +1 -1
- package/dist/lib/resizable/resizable.js +1 -1
- package/dist/lib/rich-text-editor/force-linkify.cjs +1 -1
- package/dist/lib/rich-text-editor/force-linkify.js +1 -1
- package/dist/lib/rich-text-editor/index.cjs +1 -1
- package/dist/lib/rich-text-editor/index.js +1 -1
- package/dist/lib/rich-text-editor/markdown-renderer.cjs +1 -1
- package/dist/lib/rich-text-editor/markdown-renderer.js +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.cjs +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.js +1 -1
- package/dist/lib/scroller/index.cjs +1 -1
- package/dist/lib/scroller/index.js +1 -1
- package/dist/lib/scroller/scroller.cjs +1 -1
- package/dist/lib/scroller/scroller.js +1 -1
- package/dist/lib/select-menu/select-menu.cjs +1 -1
- package/dist/lib/select-menu/select-menu.cjs.map +1 -1
- package/dist/lib/select-menu/select-menu.js +1 -1
- package/dist/lib/slider/index.cjs +1 -1
- package/dist/lib/slider/index.js +1 -1
- package/dist/lib/slider/slider.cjs +1 -1
- package/dist/lib/slider/slider.js +1 -1
- package/dist/lib/text/index.cjs +1 -1
- package/dist/lib/text/index.js +3 -3
- package/dist/lib/text/text-constants.cjs +1 -1
- package/dist/lib/text/text-constants.cjs.map +1 -1
- package/dist/lib/text/text-constants.js +5 -4
- package/dist/lib/text/text-constants.js.map +1 -1
- package/dist/lib/text/text.cjs +1 -2
- package/dist/lib/text/text.js +2 -184
- package/dist/lib/text-list/index.cjs +1 -1
- package/dist/lib/text-list/index.js +2 -2
- package/dist/lib/text-list/text-list-item.cjs +1 -1
- package/dist/lib/text-list/text-list-item.js +1 -1
- package/dist/lib/text-list/text-list.cjs +1 -1
- package/dist/lib/text-list/text-list.js +1 -1
- package/dist/lib/toast/index.cjs +1 -1
- package/dist/lib/toast/index.js +1 -1
- package/dist/lib/toast/toast.cjs +1 -1
- package/dist/lib/toast/toast.js +1 -1
- package/package.json +10 -5
- package/dist/lib/filter-pill/filter-pill.cjs.map +0 -1
- package/dist/lib/filter-pill/filter-pill.js.map +0 -1
- package/dist/lib/text/text.cjs.map +0 -1
- package/dist/lib/text/text.js.map +0 -1
|
@@ -0,0 +1,757 @@
|
|
|
1
|
+
import { HTML_ELEMENT_TYPE as e } from "./common/constants/index.js";
|
|
2
|
+
import { ordinalSizeValidator as t } from "./common/validators/index.js";
|
|
3
|
+
import { hasSlotContent as n } from "./common/utils/index.js";
|
|
4
|
+
import { t as r } from "./_plugin-vue_export-helper-BTgDAbhb.js";
|
|
5
|
+
import { t as i } from "./mode_constants-tb7TL85q.js";
|
|
6
|
+
import { t as a } from "./Text-5MobHF6z.js";
|
|
7
|
+
import { DialtoneLocalization as o } from "./localization/index.js";
|
|
8
|
+
import { BUTTON_ICON_SIZES as s, BUTTON_SIZE_MODIFIERS as c } from "./lib/button/button-constants.js";
|
|
9
|
+
import l from "./lib/button/button.js";
|
|
10
|
+
import u from "./lib/checkbox/checkbox.js";
|
|
11
|
+
import d from "./lib/checkbox-group/checkbox-group.js";
|
|
12
|
+
import f from "./lib/list-item/list-item.js";
|
|
13
|
+
import p from "./lib/stack/stack.js";
|
|
14
|
+
import { POPOVER_APPEND_TO_VALUES as m, POPOVER_HEADER_FOOTER_PADDING_CLASSES as h, POPOVER_PADDING_CLASSES as g } from "./lib/popover/popover-constants.js";
|
|
15
|
+
import _ from "./lib/popover/popover.js";
|
|
16
|
+
import v from "./lib/dropdown/dropdown.js";
|
|
17
|
+
import { FILTER_PILL_OVERLAY_MIN_INLINE_SIZE_VALUES as y } from "./lib/filter-pill/filter-pill-constants.js";
|
|
18
|
+
import b from "./lib/filter-pill/filter-pill-controlled.js";
|
|
19
|
+
import x from "./lib/list-item-group/list-item-group.js";
|
|
20
|
+
import { Fragment as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as D, createTextVNode as O, createVNode as k, defineComponent as A, guardReactiveProps as j, mergeProps as M, normalizeClass as N, normalizeProps as P, openBlock as F, renderList as I, renderSlot as L, resolveComponent as R, resolveDirective as z, resolveDynamicComponent as B, toDisplayString as V, unref as H, withCtx as U, withDirectives as W, withKeys as G, withModifiers as K } from "vue";
|
|
21
|
+
import { DtIconCheck as q, DtIconChevronDown as J, DtIconClose as Y } from "@dialpad/dialtone-icons/vue";
|
|
22
|
+
//#region components/FilterPill/modules/FilterPillOptionGroup.vue?vue&type=script&setup=true&lang.ts
|
|
23
|
+
var X = {
|
|
24
|
+
key: 0,
|
|
25
|
+
role: "none",
|
|
26
|
+
class: "d-filter-pill__menu-group"
|
|
27
|
+
}, Z = {
|
|
28
|
+
name: "DtFilterPill",
|
|
29
|
+
components: {
|
|
30
|
+
DtCheckboxGroup: d,
|
|
31
|
+
DtCheckbox: u,
|
|
32
|
+
DtPopover: _,
|
|
33
|
+
DtButton: l,
|
|
34
|
+
DtIconClose: Y,
|
|
35
|
+
DtIconCheck: q,
|
|
36
|
+
DtIconChevronDown: J,
|
|
37
|
+
DtDropdown: v,
|
|
38
|
+
DtFilterPillOptionGroup: /* @__PURE__ */ A({
|
|
39
|
+
name: "DtFilterPillOptionGroup",
|
|
40
|
+
__name: "FilterPillOptionGroup",
|
|
41
|
+
props: { heading: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: null
|
|
44
|
+
} },
|
|
45
|
+
setup(e) {
|
|
46
|
+
return (t, n) => e.heading ? (F(), T("li", X, [k(H(x), {
|
|
47
|
+
heading: e.heading,
|
|
48
|
+
"heading-class": "d-filter-pill__menu-heading"
|
|
49
|
+
}, {
|
|
50
|
+
heading: U(() => [k(H(a), {
|
|
51
|
+
variant: "label-xs",
|
|
52
|
+
size: 100,
|
|
53
|
+
strength: "medium",
|
|
54
|
+
tone: "tertiary",
|
|
55
|
+
density: 500
|
|
56
|
+
}, {
|
|
57
|
+
default: U(() => [O(V(e.heading), 1)]),
|
|
58
|
+
_: 1
|
|
59
|
+
})]),
|
|
60
|
+
default: U(() => [L(t.$slots, "default")]),
|
|
61
|
+
_: 3
|
|
62
|
+
}, 8, ["heading"])])) : L(t.$slots, "default", { key: 1 });
|
|
63
|
+
}
|
|
64
|
+
}),
|
|
65
|
+
DtListItem: f,
|
|
66
|
+
DtStack: p,
|
|
67
|
+
DtText: a
|
|
68
|
+
},
|
|
69
|
+
mixins: [b],
|
|
70
|
+
props: {
|
|
71
|
+
options: {
|
|
72
|
+
type: Array,
|
|
73
|
+
default: void 0
|
|
74
|
+
},
|
|
75
|
+
selected: {
|
|
76
|
+
type: [String, Array],
|
|
77
|
+
default: void 0
|
|
78
|
+
},
|
|
79
|
+
neutralValue: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: void 0
|
|
82
|
+
},
|
|
83
|
+
open: {
|
|
84
|
+
type: [Boolean, null],
|
|
85
|
+
default: null
|
|
86
|
+
},
|
|
87
|
+
anchorEndClass: {
|
|
88
|
+
type: [
|
|
89
|
+
String,
|
|
90
|
+
Array,
|
|
91
|
+
Object
|
|
92
|
+
],
|
|
93
|
+
default: ""
|
|
94
|
+
},
|
|
95
|
+
optionEndClass: {
|
|
96
|
+
type: [
|
|
97
|
+
String,
|
|
98
|
+
Array,
|
|
99
|
+
Object
|
|
100
|
+
],
|
|
101
|
+
default: ""
|
|
102
|
+
},
|
|
103
|
+
headerContentClass: {
|
|
104
|
+
type: [
|
|
105
|
+
String,
|
|
106
|
+
Array,
|
|
107
|
+
Object
|
|
108
|
+
],
|
|
109
|
+
default: ""
|
|
110
|
+
},
|
|
111
|
+
useDropdown: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: !1
|
|
114
|
+
},
|
|
115
|
+
deferSelection: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: !1
|
|
118
|
+
},
|
|
119
|
+
modelValue: {
|
|
120
|
+
type: Array,
|
|
121
|
+
default: () => []
|
|
122
|
+
},
|
|
123
|
+
startTooltipText: {
|
|
124
|
+
type: String,
|
|
125
|
+
default: ""
|
|
126
|
+
},
|
|
127
|
+
disabled: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: !1
|
|
130
|
+
},
|
|
131
|
+
readOnly: {
|
|
132
|
+
type: Boolean,
|
|
133
|
+
default: !1
|
|
134
|
+
},
|
|
135
|
+
showClear: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: !0
|
|
138
|
+
},
|
|
139
|
+
label: {
|
|
140
|
+
type: String,
|
|
141
|
+
default: void 0
|
|
142
|
+
},
|
|
143
|
+
endTooltipText: {
|
|
144
|
+
type: String,
|
|
145
|
+
default: ""
|
|
146
|
+
},
|
|
147
|
+
popoverAppendTo: {
|
|
148
|
+
type: [e, String],
|
|
149
|
+
default: "body",
|
|
150
|
+
validator: (e) => m.includes(e) || e instanceof HTMLElement
|
|
151
|
+
},
|
|
152
|
+
popoverFallbackPlacements: {
|
|
153
|
+
type: Array,
|
|
154
|
+
default: () => ["auto"]
|
|
155
|
+
},
|
|
156
|
+
popoverMaxHeight: {
|
|
157
|
+
type: String,
|
|
158
|
+
default: ""
|
|
159
|
+
},
|
|
160
|
+
overlayMinInlineSize: {
|
|
161
|
+
type: String,
|
|
162
|
+
default: "anchor",
|
|
163
|
+
validator: t(y)
|
|
164
|
+
},
|
|
165
|
+
popoverMaxWidth: {
|
|
166
|
+
type: String,
|
|
167
|
+
default: ""
|
|
168
|
+
},
|
|
169
|
+
popoverPadding: {
|
|
170
|
+
type: String,
|
|
171
|
+
default: void 0,
|
|
172
|
+
validator: (e) => Object.keys(g).some((t) => t === e)
|
|
173
|
+
},
|
|
174
|
+
popoverPlacement: {
|
|
175
|
+
type: String,
|
|
176
|
+
default: "bottom-start"
|
|
177
|
+
},
|
|
178
|
+
labelClass: {
|
|
179
|
+
type: [
|
|
180
|
+
String,
|
|
181
|
+
Array,
|
|
182
|
+
Object
|
|
183
|
+
],
|
|
184
|
+
default: ""
|
|
185
|
+
},
|
|
186
|
+
popoverContentClass: {
|
|
187
|
+
type: [
|
|
188
|
+
String,
|
|
189
|
+
Array,
|
|
190
|
+
Object
|
|
191
|
+
],
|
|
192
|
+
default: ""
|
|
193
|
+
},
|
|
194
|
+
popoverHeaderClass: {
|
|
195
|
+
type: [
|
|
196
|
+
String,
|
|
197
|
+
Array,
|
|
198
|
+
Object
|
|
199
|
+
],
|
|
200
|
+
default: ""
|
|
201
|
+
},
|
|
202
|
+
popoverFooterClass: {
|
|
203
|
+
type: [
|
|
204
|
+
String,
|
|
205
|
+
Array,
|
|
206
|
+
Object
|
|
207
|
+
],
|
|
208
|
+
default: ""
|
|
209
|
+
},
|
|
210
|
+
popoverDialogClass: {
|
|
211
|
+
type: [
|
|
212
|
+
String,
|
|
213
|
+
Array,
|
|
214
|
+
Object
|
|
215
|
+
],
|
|
216
|
+
default: ""
|
|
217
|
+
},
|
|
218
|
+
dropdownListClass: {
|
|
219
|
+
type: [
|
|
220
|
+
String,
|
|
221
|
+
Array,
|
|
222
|
+
Object
|
|
223
|
+
],
|
|
224
|
+
default: ""
|
|
225
|
+
},
|
|
226
|
+
contentMode: i,
|
|
227
|
+
size: {
|
|
228
|
+
type: [String, Number],
|
|
229
|
+
default: 200,
|
|
230
|
+
validator: t(c)
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
emits: [
|
|
234
|
+
"update:selected",
|
|
235
|
+
"selection-change",
|
|
236
|
+
"update:open",
|
|
237
|
+
"opened",
|
|
238
|
+
"clear",
|
|
239
|
+
"open",
|
|
240
|
+
"update:modelValue",
|
|
241
|
+
"apply"
|
|
242
|
+
],
|
|
243
|
+
data() {
|
|
244
|
+
return {
|
|
245
|
+
isOpen: !1,
|
|
246
|
+
i18n: new o(),
|
|
247
|
+
filters: Array.isArray(this.options) ? [] : this.modelValue,
|
|
248
|
+
pendingFilters: null,
|
|
249
|
+
overlayResizeObserver: null
|
|
250
|
+
};
|
|
251
|
+
},
|
|
252
|
+
computed: {
|
|
253
|
+
overlayUseDropdown() {
|
|
254
|
+
return this.controlledAtBirth ? this.controlledDropdown : this.useDropdown;
|
|
255
|
+
},
|
|
256
|
+
overlayComponent() {
|
|
257
|
+
return this.overlayUseDropdown ? "dt-dropdown" : "dt-popover";
|
|
258
|
+
},
|
|
259
|
+
overlayProps() {
|
|
260
|
+
let e = {
|
|
261
|
+
"append-to": this.popoverAppendTo,
|
|
262
|
+
"fallback-placements": this.popoverFallbackPlacements,
|
|
263
|
+
"max-height": this.popoverMaxHeight,
|
|
264
|
+
"max-width": this.popoverMaxWidth,
|
|
265
|
+
modal: !0,
|
|
266
|
+
placement: this.popoverPlacement
|
|
267
|
+
};
|
|
268
|
+
if (this.controlledAtBirth && (e.visibilityChangeCallback = this.onControlledVisibility, e.forwardAnchorArrowKeys = !0), this.overlayUseDropdown) e["list-class"] = this.dropdownListClass;
|
|
269
|
+
else {
|
|
270
|
+
let t = this.popoverPadding === void 0;
|
|
271
|
+
e.padding = t ? "none" : this.popoverPadding, e["content-class"] = t ? ["d-filter-pill__popover-content", this.popoverContentClass] : this.popoverContentClass, e["header-wrapper-class"] = t ? [h.large, this.popoverHeaderClass] : this.popoverHeaderClass, e["header-class"] = this.headerContentClass, e["footer-wrapper-class"] = t ? [h.large, this.popoverFooterClass] : this.popoverFooterClass, e["dialog-class"] = this.popoverDialogClass;
|
|
272
|
+
}
|
|
273
|
+
return e;
|
|
274
|
+
},
|
|
275
|
+
buttonKind() {
|
|
276
|
+
return this.isActive && !this.disabled ? "default" : "muted";
|
|
277
|
+
},
|
|
278
|
+
resolvedStartTooltipText() {
|
|
279
|
+
return this.readOnly ? this.startTooltipText || this.i18n.$t("DIALTONE_FILTER_PILL_READ_ONLY_TOOLTIP") : this.startTooltipText;
|
|
280
|
+
},
|
|
281
|
+
clearButtonAriaLabel() {
|
|
282
|
+
return this.endTooltipText || this.i18n.$t("DIALTONE_FILTER_PILL_CLEAR_BUTTON_LABEL");
|
|
283
|
+
},
|
|
284
|
+
clearButtonTitle() {
|
|
285
|
+
if (!this.endTooltipText) return this.clearButtonAriaLabel;
|
|
286
|
+
},
|
|
287
|
+
activeFilters() {
|
|
288
|
+
return this.filters.filter((e) => e.active).map((e) => e.name);
|
|
289
|
+
},
|
|
290
|
+
allFiltersActive() {
|
|
291
|
+
return this.filters.length > 1 && this.activeFilters.length === this.filters.length;
|
|
292
|
+
},
|
|
293
|
+
activeFilterList() {
|
|
294
|
+
return this.allFiltersActive ? "All" : this.activeFilters[0] ?? "";
|
|
295
|
+
},
|
|
296
|
+
activeFilterLabel() {
|
|
297
|
+
return this.allFiltersActive ? this.i18n.$t("DIALTONE_FILTER_PILL_ALL_LABEL") : this.activeFilterList;
|
|
298
|
+
},
|
|
299
|
+
activeFilterOverflowTitle() {
|
|
300
|
+
let e = this.controlledAtBirth ? this.controlledState.values.length - 1 : this.activeFilters.length - 1;
|
|
301
|
+
return this.i18n.$t("DIALTONE_FILTER_PILL_OVERFLOW_TITLE", { count: e });
|
|
302
|
+
},
|
|
303
|
+
activeFilterOverflow() {
|
|
304
|
+
return this.activeFilters.length <= 1 || this.allFiltersActive ? "" : "+" + (this.activeFilters.length - 1);
|
|
305
|
+
},
|
|
306
|
+
isActive() {
|
|
307
|
+
return this.controlledAtBirth ? this.controlledState.valid && this.controlledState.isActive : this.activeFilterList.length > 0;
|
|
308
|
+
},
|
|
309
|
+
hasClear() {
|
|
310
|
+
return this.controlledAtBirth ? !this.readOnly && this.showClear && this.controlledContractValid && this.controlledState.valid && this.isActive : !this.readOnly && this.showClear && this.activeFilterList.length > 0;
|
|
311
|
+
},
|
|
312
|
+
displayFilters() {
|
|
313
|
+
return this.deferSelection && this.pendingFilters ? this.pendingFilters : this.filters;
|
|
314
|
+
},
|
|
315
|
+
pendingActiveFilters() {
|
|
316
|
+
return this.pendingFilters ? this.pendingFilters.filter((e) => e.active).map((e) => e.name) : [];
|
|
317
|
+
},
|
|
318
|
+
cancelButtonLabel() {
|
|
319
|
+
return this.i18n.$t("DIALTONE_FILTER_PILL_CANCEL_BUTTON_LABEL");
|
|
320
|
+
},
|
|
321
|
+
applyButtonLabel() {
|
|
322
|
+
return this.i18n.$t("DIALTONE_FILTER_PILL_APPLY_BUTTON_LABEL");
|
|
323
|
+
},
|
|
324
|
+
clearIconSize() {
|
|
325
|
+
return String(this.size) === "100" ? "100" : s[String(this.size)];
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
watch: {
|
|
329
|
+
overlayMinInlineSize: {
|
|
330
|
+
handler: "observeOverlayAnchor",
|
|
331
|
+
flush: "post"
|
|
332
|
+
},
|
|
333
|
+
overlayUseDropdown: {
|
|
334
|
+
handler: "observeOverlayAnchor",
|
|
335
|
+
flush: "post"
|
|
336
|
+
},
|
|
337
|
+
hasClear: {
|
|
338
|
+
handler: "observeOverlayAnchor",
|
|
339
|
+
flush: "post"
|
|
340
|
+
},
|
|
341
|
+
popoverMaxWidth: {
|
|
342
|
+
handler: "syncOverlayMinInlineSize",
|
|
343
|
+
flush: "post"
|
|
344
|
+
},
|
|
345
|
+
isOpen: [{
|
|
346
|
+
handler: "syncOverlayMinInlineSize",
|
|
347
|
+
flush: "post"
|
|
348
|
+
}, function(e) {
|
|
349
|
+
this.controlledAtBirth || (this.$emit("open", e), this.deferSelection && (e ? this.pendingFilters = JSON.parse(JSON.stringify(this.filters)) : this.pendingFilters = null));
|
|
350
|
+
}],
|
|
351
|
+
filters: {
|
|
352
|
+
deep: !0,
|
|
353
|
+
handler(e) {
|
|
354
|
+
this.controlledAtBirth || this.$emit("update:modelValue", e);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
mounted() {
|
|
359
|
+
this.observeOverlayAnchor(), !this.controlledAtBirth && !(this.modelValue?.length || this.$slots.content) && console.warn("Please provide content through the v-model or the \"content\" slot."), this.deferSelection && this.useDropdown && console.warn("deferSelection has no effect when useDropdown is true.");
|
|
360
|
+
},
|
|
361
|
+
beforeUnmount() {
|
|
362
|
+
this.overlayResizeObserver?.disconnect();
|
|
363
|
+
},
|
|
364
|
+
methods: {
|
|
365
|
+
hasSlotContent: n,
|
|
366
|
+
observeOverlayAnchor() {
|
|
367
|
+
this.overlayResizeObserver?.disconnect(), this.overlayResizeObserver = null, this.overlayMinInlineSize === "anchor" && typeof ResizeObserver < "u" && (this.overlayResizeObserver = new ResizeObserver(() => this.syncOverlayMinInlineSize()), [this.$el, ...this.getAnchorControls()].forEach((e) => this.overlayResizeObserver.observe(e))), this.syncOverlayMinInlineSize();
|
|
368
|
+
},
|
|
369
|
+
getAnchorControls() {
|
|
370
|
+
return [this.$el.querySelector("[data-qa=\"dt-filter-pill__button\"]"), this.$refs.clearButton?.$el].filter(Boolean);
|
|
371
|
+
},
|
|
372
|
+
measureAnchorInlineSize() {
|
|
373
|
+
let e = this.getAnchorControls();
|
|
374
|
+
if (!e.length) return 0;
|
|
375
|
+
let [t, n] = /^(vertical|sideways)/.test(getComputedStyle(this.$el).writingMode) ? ["top", "bottom"] : ["left", "right"], r = e.map((e) => e.getBoundingClientRect());
|
|
376
|
+
return Math.max(...r.map((e) => e[n])) - Math.min(...r.map((e) => e[t]));
|
|
377
|
+
},
|
|
378
|
+
resolveOverlayMinInlineSize() {
|
|
379
|
+
let e = String(this.overlayMinInlineSize ?? "0");
|
|
380
|
+
return e = e === "anchor" ? `${this.measureAnchorInlineSize()}px` : e === "0" ? "0px" : `var(--dt-layout-${e})`, e && this.popoverMaxWidth && this.popoverMaxWidth !== "none" ? `min(${e}, ${this.popoverMaxWidth})` : e;
|
|
381
|
+
},
|
|
382
|
+
syncOverlayMinInlineSize() {
|
|
383
|
+
let e = this.$refs.overlay;
|
|
384
|
+
if (!e) return;
|
|
385
|
+
let t = this.overlayUseDropdown ? e.$refs.popover : e, n = t?.popoverContentEl;
|
|
386
|
+
if (!n) return;
|
|
387
|
+
let r = this.resolveOverlayMinInlineSize();
|
|
388
|
+
n.style.minInlineSize !== r && (n.style.minInlineSize = r, t.tip?.popperInstance?.update());
|
|
389
|
+
},
|
|
390
|
+
clearFilter(e) {
|
|
391
|
+
if (this.controlledAtBirth) {
|
|
392
|
+
let t = this.controlledDropdown ? this.neutralValue ?? null : [];
|
|
393
|
+
this.controlledDraft = null, this.commitControlled(t, "clear", !0, e), this.reconcileCheckboxes();
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
this.filters.forEach((e) => delete e.active), this.$emit("clear", e);
|
|
397
|
+
},
|
|
398
|
+
openPopover() {
|
|
399
|
+
if (this.controlledAtBirth) {
|
|
400
|
+
this.requestControlledOpen(!0);
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
this.readOnly || (this.isOpen = !0);
|
|
404
|
+
},
|
|
405
|
+
selectFilter(e, t) {
|
|
406
|
+
this.filters.forEach((t) => {
|
|
407
|
+
t.active = t === e;
|
|
408
|
+
}), t();
|
|
409
|
+
},
|
|
410
|
+
applySelection() {
|
|
411
|
+
if (this.controlledAtBirth) return this.applyControlledSelection();
|
|
412
|
+
this.pendingFilters && (this.filters.forEach((e, t) => {
|
|
413
|
+
this.pendingFilters[t] ? e.active = this.pendingFilters[t].active : delete e.active;
|
|
414
|
+
}), this.$emit("apply"), this.isOpen = !1);
|
|
415
|
+
},
|
|
416
|
+
cancelSelection() {
|
|
417
|
+
if (this.controlledAtBirth) {
|
|
418
|
+
this.closeControlled();
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
this.isOpen = !1;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}, Q = {
|
|
425
|
+
class: "sr-only",
|
|
426
|
+
"data-qa": "dt-filter-pill__accessible-label"
|
|
427
|
+
}, $ = {
|
|
428
|
+
key: 0,
|
|
429
|
+
class: "d-filter-pill__label-start",
|
|
430
|
+
"data-qa": "dt-filter-pill__label-start",
|
|
431
|
+
"aria-hidden": "true"
|
|
432
|
+
}, ee = ["title"], te = ["title", "textContent"], ne = ["title", "textContent"], re = ["title", "textContent"], ie = ["id"];
|
|
433
|
+
function ae(e, t, n, r, i, a) {
|
|
434
|
+
let o = R("dt-icon-chevron-down"), s = R("dt-button"), c = R("dt-checkbox"), l = R("dt-checkbox-group"), u = R("dt-stack"), d = R("dt-text"), f = R("dt-icon-check"), p = R("dt-list-item"), m = R("dt-filter-pill-option-group"), h = R("dt-icon-close"), g = z("dt-tooltip");
|
|
435
|
+
return F(), T("div", M({ class: ["d-filter-pill", { "d-filter-pill--read-only": n.readOnly }] }, e.legacyRootAttrs(), { "data-qa": "dt-filter-pill" }), [(F(), C(B(a.overlayComponent), M({
|
|
436
|
+
ref: "overlay",
|
|
437
|
+
open: i.isOpen
|
|
438
|
+
}, a.overlayProps, {
|
|
439
|
+
"aria-label": e.controlledAtBirth && !e.$slots.content ? n.label : void 0,
|
|
440
|
+
"content-mode": n.contentMode,
|
|
441
|
+
"onUpdate:open": e.onOverlayTerminalOpen,
|
|
442
|
+
onOpened: e.onOverlayOpened,
|
|
443
|
+
onKeydown: e.onOverlayKeydown
|
|
444
|
+
}), D({
|
|
445
|
+
anchor: U((t) => [W((F(), C(s, M({ ref: "primaryButton" }, e.anchorAttributes(t), {
|
|
446
|
+
active: a.isActive,
|
|
447
|
+
"aria-disabled": n.readOnly || void 0,
|
|
448
|
+
class: ["d-filter-pill__primary", { "d-filter-pill--selected": a.isActive }],
|
|
449
|
+
disabled: n.disabled,
|
|
450
|
+
kind: a.buttonKind,
|
|
451
|
+
size: n.size,
|
|
452
|
+
"data-qa": "dt-filter-pill__button",
|
|
453
|
+
importance: "outlined",
|
|
454
|
+
onClick: a.openPopover,
|
|
455
|
+
onKeydown: G(K(e.onAnchorArrow, ["prevent"]), ["up", "down"])
|
|
456
|
+
}), D({
|
|
457
|
+
default: U(() => [E("span", {
|
|
458
|
+
class: N(["d-filter-pill__label", n.labelClass]),
|
|
459
|
+
"data-qa": "dt-filter-pill__label"
|
|
460
|
+
}, [e.controlledAtBirth ? L(e.$slots, "default", P(M({ key: 0 }, e.controlledAnchorBindings)), () => [
|
|
461
|
+
E("span", Q, V(e.controlledAccessibleLabel), 1),
|
|
462
|
+
e.controlledDropdown || !a.isActive || n.label ? (F(), T("span", $, V(e.controlledDropdown || !a.isActive ? e.controlledDisplayLabel : n.label), 1)) : w("", !0),
|
|
463
|
+
!e.controlledDropdown && a.isActive ? (F(), T("span", {
|
|
464
|
+
key: 1,
|
|
465
|
+
class: N(["d-filter-pill__label-end", { "d-filter-pill__label-end--standalone": !n.label }]),
|
|
466
|
+
"data-qa": "dt-filter-pill__label-end",
|
|
467
|
+
"aria-hidden": "true"
|
|
468
|
+
}, V(e.controlledDisplayLabel), 3)) : w("", !0),
|
|
469
|
+
e.controlledOverflow ? (F(), T("span", {
|
|
470
|
+
key: 2,
|
|
471
|
+
class: "d-filter-pill__label-end-overflow",
|
|
472
|
+
"data-qa": "dt-filter-pill__overflow",
|
|
473
|
+
title: a.activeFilterOverflowTitle
|
|
474
|
+
}, V(e.controlledOverflow), 9, ee)) : w("", !0),
|
|
475
|
+
a.hasSlotContent(e.$slots.anchorEnd, e.controlledAnchorBindings) ? (F(), T("span", {
|
|
476
|
+
key: 3,
|
|
477
|
+
class: N(["d-filter-pill__anchor-end", n.anchorEndClass]),
|
|
478
|
+
"data-qa": "dt-filter-pill__anchor-end"
|
|
479
|
+
}, [L(e.$slots, "anchorEnd", P(j(e.controlledAnchorBindings)))], 2)) : w("", !0)
|
|
480
|
+
]) : L(e.$slots, "default", {
|
|
481
|
+
key: 1,
|
|
482
|
+
label: n.label,
|
|
483
|
+
filters: i.filters,
|
|
484
|
+
activeFilters: a.activeFilters,
|
|
485
|
+
activeFilterList: a.activeFilterList,
|
|
486
|
+
activeFilterOverflow: a.activeFilterOverflow
|
|
487
|
+
}, () => [
|
|
488
|
+
E("span", {
|
|
489
|
+
class: "d-filter-pill__label-start",
|
|
490
|
+
title: n.label,
|
|
491
|
+
textContent: V(n.label)
|
|
492
|
+
}, null, 8, te),
|
|
493
|
+
a.activeFilterList ? (F(), T("span", {
|
|
494
|
+
key: 0,
|
|
495
|
+
class: "d-filter-pill__label-end",
|
|
496
|
+
title: a.activeFilterLabel,
|
|
497
|
+
textContent: V(a.activeFilterLabel)
|
|
498
|
+
}, null, 8, ne)) : w("", !0),
|
|
499
|
+
a.activeFilterOverflow ? (F(), T("span", {
|
|
500
|
+
key: 1,
|
|
501
|
+
class: "d-filter-pill__label-end-overflow",
|
|
502
|
+
title: a.activeFilterOverflowTitle,
|
|
503
|
+
textContent: V(a.activeFilterOverflow)
|
|
504
|
+
}, null, 8, re)) : w("", !0)
|
|
505
|
+
])], 2)]),
|
|
506
|
+
_: 2
|
|
507
|
+
}, [e.$slots.startIcon ? {
|
|
508
|
+
name: "startIcon",
|
|
509
|
+
fn: U(({ iconSize: t }) => [L(e.$slots, "startIcon", { iconSize: t })]),
|
|
510
|
+
key: "0"
|
|
511
|
+
} : void 0, n.readOnly ? void 0 : {
|
|
512
|
+
name: "endIcon",
|
|
513
|
+
fn: U(({ iconSize: e }) => [k(o, {
|
|
514
|
+
size: e,
|
|
515
|
+
class: "d-filter-pill__icon",
|
|
516
|
+
"data-qa": "dt-filter-pill__icon"
|
|
517
|
+
}, null, 8, ["size"])]),
|
|
518
|
+
key: "1"
|
|
519
|
+
}]), 1040, [
|
|
520
|
+
"active",
|
|
521
|
+
"aria-disabled",
|
|
522
|
+
"class",
|
|
523
|
+
"disabled",
|
|
524
|
+
"kind",
|
|
525
|
+
"size",
|
|
526
|
+
"onClick",
|
|
527
|
+
"onKeydown"
|
|
528
|
+
])), [[g, a.resolvedStartTooltipText]])]),
|
|
529
|
+
_: 2
|
|
530
|
+
}, [
|
|
531
|
+
a.overlayUseDropdown ? void 0 : {
|
|
532
|
+
name: "content",
|
|
533
|
+
fn: U(({ close: t }) => [e.controlledAtBirth ? L(e.$slots, "content", P(M({ key: 0 }, e.controlledContentBindings)), () => [k(l, {
|
|
534
|
+
"model-value": e.checkboxRenderValues,
|
|
535
|
+
"aria-label": n.label,
|
|
536
|
+
name: n.label || "filter-pill",
|
|
537
|
+
disabled: !e.controlledCanSelect
|
|
538
|
+
}, {
|
|
539
|
+
default: U(() => [(F(!0), T(S, null, I(e.controlledState.options, (t) => (F(), C(c, {
|
|
540
|
+
id: e.controlledOptionId(t.value),
|
|
541
|
+
key: t.value,
|
|
542
|
+
label: t.label,
|
|
543
|
+
value: t.value,
|
|
544
|
+
"data-qa": "dt-filter-pill__checkbox",
|
|
545
|
+
"onUpdate:modelValue": (n) => e.toggleControlledOption(t.value, n)
|
|
546
|
+
}, {
|
|
547
|
+
default: U(() => [O(V(t.label) + " ", 1), e.$slots.optionEnd ? (F(), T("span", {
|
|
548
|
+
key: 0,
|
|
549
|
+
class: N(["d-filter-pill__option-end", n.optionEndClass])
|
|
550
|
+
}, [L(e.$slots, "optionEnd", {
|
|
551
|
+
option: t,
|
|
552
|
+
selected: e.controlledRowSelected(t.value)
|
|
553
|
+
})], 2)) : w("", !0)]),
|
|
554
|
+
_: 2
|
|
555
|
+
}, 1032, [
|
|
556
|
+
"id",
|
|
557
|
+
"label",
|
|
558
|
+
"value",
|
|
559
|
+
"onUpdate:modelValue"
|
|
560
|
+
]))), 128))]),
|
|
561
|
+
_: 3
|
|
562
|
+
}, 8, [
|
|
563
|
+
"model-value",
|
|
564
|
+
"aria-label",
|
|
565
|
+
"name",
|
|
566
|
+
"disabled"
|
|
567
|
+
])]) : L(e.$slots, "content", {
|
|
568
|
+
key: 1,
|
|
569
|
+
close: t,
|
|
570
|
+
apply: a.applySelection,
|
|
571
|
+
cancel: a.cancelSelection,
|
|
572
|
+
pendingFilters: i.pendingFilters
|
|
573
|
+
}, () => [n.modelValue?.length ? (F(), C(l, {
|
|
574
|
+
key: 0,
|
|
575
|
+
"model-value": n.deferSelection ? a.pendingActiveFilters : a.activeFilters,
|
|
576
|
+
"aria-label": n.label,
|
|
577
|
+
name: n.label || "filter-pill"
|
|
578
|
+
}, {
|
|
579
|
+
default: U(() => [(F(!0), T(S, null, I(a.displayFilters, (e) => (F(), C(c, {
|
|
580
|
+
key: e.name,
|
|
581
|
+
label: e.name,
|
|
582
|
+
value: e.name,
|
|
583
|
+
"onUpdate:modelValue": (t) => e.active = t
|
|
584
|
+
}, null, 8, [
|
|
585
|
+
"label",
|
|
586
|
+
"value",
|
|
587
|
+
"onUpdate:modelValue"
|
|
588
|
+
]))), 128))]),
|
|
589
|
+
_: 1
|
|
590
|
+
}, 8, [
|
|
591
|
+
"model-value",
|
|
592
|
+
"aria-label",
|
|
593
|
+
"name"
|
|
594
|
+
])) : w("", !0)])]),
|
|
595
|
+
key: "0"
|
|
596
|
+
},
|
|
597
|
+
!a.overlayUseDropdown && e.$slots.headerContent ? {
|
|
598
|
+
name: "headerContent",
|
|
599
|
+
fn: U(({ close: t }) => [L(e.$slots, "headerContent", { close: e.controlledAtBirth ? e.closeControlled : t })]),
|
|
600
|
+
key: "1"
|
|
601
|
+
} : void 0,
|
|
602
|
+
!a.overlayUseDropdown && (n.deferSelection || e.$slots.footerContent) ? {
|
|
603
|
+
name: "footerContent",
|
|
604
|
+
fn: U(({ close: t }) => [L(e.$slots, "footerContent", {
|
|
605
|
+
close: e.controlledAtBirth ? e.closeControlled : t,
|
|
606
|
+
apply: a.applySelection,
|
|
607
|
+
cancel: a.cancelSelection
|
|
608
|
+
}, () => [n.deferSelection ? (F(), C(u, {
|
|
609
|
+
key: 0,
|
|
610
|
+
direction: "row",
|
|
611
|
+
gap: "400",
|
|
612
|
+
justify: "end",
|
|
613
|
+
"data-qa": "dt-filter-pill__deferred-footer"
|
|
614
|
+
}, {
|
|
615
|
+
default: U(() => [k(s, {
|
|
616
|
+
importance: "clear",
|
|
617
|
+
kind: "muted",
|
|
618
|
+
size: 200,
|
|
619
|
+
"data-qa": "dt-filter-pill__cancel-button",
|
|
620
|
+
onClick: a.cancelSelection
|
|
621
|
+
}, {
|
|
622
|
+
default: U(() => [O(V(a.cancelButtonLabel), 1)]),
|
|
623
|
+
_: 1
|
|
624
|
+
}, 8, ["onClick"]), k(s, {
|
|
625
|
+
importance: "primary",
|
|
626
|
+
size: 200,
|
|
627
|
+
"data-qa": "dt-filter-pill__apply-button",
|
|
628
|
+
onClick: a.applySelection
|
|
629
|
+
}, {
|
|
630
|
+
default: U(() => [O(V(a.applyButtonLabel), 1)]),
|
|
631
|
+
_: 1
|
|
632
|
+
}, 8, ["onClick"])]),
|
|
633
|
+
_: 1
|
|
634
|
+
})) : w("", !0)])]),
|
|
635
|
+
key: "2"
|
|
636
|
+
} : void 0,
|
|
637
|
+
a.overlayUseDropdown ? {
|
|
638
|
+
name: "list",
|
|
639
|
+
fn: U(({ close: t }) => [e.controlledAtBirth ? L(e.$slots, "content", P(M({ key: 0 }, e.controlledContentBindings)), () => [e.$slots.headerContent ? (F(), T("li", {
|
|
640
|
+
key: 0,
|
|
641
|
+
role: "presentation",
|
|
642
|
+
class: N(["d-filter-pill__menu-heading", n.headerContentClass])
|
|
643
|
+
}, [k(d, {
|
|
644
|
+
variant: "label-xs",
|
|
645
|
+
size: 100,
|
|
646
|
+
strength: "medium",
|
|
647
|
+
tone: "tertiary",
|
|
648
|
+
density: 500
|
|
649
|
+
}, {
|
|
650
|
+
default: U(() => [L(e.$slots, "headerContent")]),
|
|
651
|
+
_: 3
|
|
652
|
+
})], 2)) : w("", !0), (F(!0), T(S, null, I(e.controlledState.sections, (t, r) => (F(), C(m, {
|
|
653
|
+
key: r,
|
|
654
|
+
heading: t.group
|
|
655
|
+
}, {
|
|
656
|
+
default: U(() => [(F(!0), T(S, null, I(t.rows, (t) => (F(), C(p, {
|
|
657
|
+
id: e.controlledOptionId(t.option.value),
|
|
658
|
+
key: t.option.value,
|
|
659
|
+
role: "menuitemradio",
|
|
660
|
+
"data-qa": "dt-filter-pill__option",
|
|
661
|
+
"navigation-type": "arrow-keys",
|
|
662
|
+
selected: e.controlledRowSelected(t.option.value),
|
|
663
|
+
disabled: !e.controlledCanSelect || t.disabled,
|
|
664
|
+
"aria-describedby": t.description ? e.controlledDescriptionId(t.option.value) : void 0,
|
|
665
|
+
onClick: (n) => e.selectControlledOption(t.option.value)
|
|
666
|
+
}, D({
|
|
667
|
+
selected: U(() => [k(f, {
|
|
668
|
+
size: "200",
|
|
669
|
+
class: N({ "d-filter-pill__selection-indicator--hidden": !e.controlledRowSelected(t.option.value) }),
|
|
670
|
+
"aria-hidden": "true",
|
|
671
|
+
"data-qa": "dt-filter-pill__selection-indicator"
|
|
672
|
+
}, null, 8, ["class"])]),
|
|
673
|
+
default: U(() => [O(V(t.option.label) + " ", 1)]),
|
|
674
|
+
_: 2
|
|
675
|
+
}, [t.description ? {
|
|
676
|
+
name: "subtitle",
|
|
677
|
+
fn: U(() => [E("span", {
|
|
678
|
+
id: e.controlledDescriptionId(t.option.value),
|
|
679
|
+
"aria-hidden": "true",
|
|
680
|
+
"data-qa": "dt-filter-pill__option-description"
|
|
681
|
+
}, V(t.description), 9, ie)]),
|
|
682
|
+
key: "0"
|
|
683
|
+
} : void 0, e.$slots.optionEnd ? {
|
|
684
|
+
name: "end",
|
|
685
|
+
fn: U(() => [E("span", { class: N(["d-filter-pill__option-end", n.optionEndClass]) }, [L(e.$slots, "optionEnd", {
|
|
686
|
+
option: t.option,
|
|
687
|
+
selected: e.controlledRowSelected(t.option.value)
|
|
688
|
+
})], 2)]),
|
|
689
|
+
key: "1"
|
|
690
|
+
} : void 0]), 1032, [
|
|
691
|
+
"id",
|
|
692
|
+
"selected",
|
|
693
|
+
"disabled",
|
|
694
|
+
"aria-describedby",
|
|
695
|
+
"onClick"
|
|
696
|
+
]))), 128))]),
|
|
697
|
+
_: 2
|
|
698
|
+
}, 1032, ["heading"]))), 128))]) : L(e.$slots, "content", {
|
|
699
|
+
key: 1,
|
|
700
|
+
close: t
|
|
701
|
+
}, () => [(F(!0), T(S, null, I(i.filters, (e) => (F(), C(p, {
|
|
702
|
+
key: e.name,
|
|
703
|
+
role: "menuitem",
|
|
704
|
+
"navigation-type": "arrow-keys",
|
|
705
|
+
selected: e.active,
|
|
706
|
+
onClick: (n) => a.selectFilter(e, t)
|
|
707
|
+
}, {
|
|
708
|
+
selected: U(() => [k(f, {
|
|
709
|
+
size: "200",
|
|
710
|
+
class: N({ "d-filter-pill__selection-indicator--hidden": !e.active }),
|
|
711
|
+
"aria-hidden": "true",
|
|
712
|
+
"data-qa": "dt-filter-pill__selection-indicator"
|
|
713
|
+
}, null, 8, ["class"])]),
|
|
714
|
+
default: U(() => [O(V(e.name) + " ", 1)]),
|
|
715
|
+
_: 2
|
|
716
|
+
}, 1032, ["selected", "onClick"]))), 128))])]),
|
|
717
|
+
key: "3"
|
|
718
|
+
} : void 0
|
|
719
|
+
]), 1040, [
|
|
720
|
+
"open",
|
|
721
|
+
"aria-label",
|
|
722
|
+
"content-mode",
|
|
723
|
+
"onUpdate:open",
|
|
724
|
+
"onOpened",
|
|
725
|
+
"onKeydown"
|
|
726
|
+
])), a.hasClear ? W((F(), C(s, {
|
|
727
|
+
key: 0,
|
|
728
|
+
ref: "clearButton",
|
|
729
|
+
active: a.isActive,
|
|
730
|
+
"aria-label": a.clearButtonAriaLabel,
|
|
731
|
+
class: N(["d-filter-pill__clear", { "d-filter-pill__clear--selected": a.isActive }]),
|
|
732
|
+
disabled: n.disabled,
|
|
733
|
+
kind: a.buttonKind,
|
|
734
|
+
size: n.size,
|
|
735
|
+
title: a.clearButtonTitle,
|
|
736
|
+
"data-qa": "dt-filter-pill__clear-button",
|
|
737
|
+
importance: "outlined",
|
|
738
|
+
onClick: a.clearFilter
|
|
739
|
+
}, {
|
|
740
|
+
icon: U(() => [k(h, { size: a.clearIconSize }, null, 8, ["size"])]),
|
|
741
|
+
_: 1
|
|
742
|
+
}, 8, [
|
|
743
|
+
"active",
|
|
744
|
+
"aria-label",
|
|
745
|
+
"class",
|
|
746
|
+
"disabled",
|
|
747
|
+
"kind",
|
|
748
|
+
"size",
|
|
749
|
+
"title",
|
|
750
|
+
"onClick"
|
|
751
|
+
])), [[g, n.endTooltipText]]) : w("", !0)], 16);
|
|
752
|
+
}
|
|
753
|
+
var oe = /* @__PURE__ */ r(Z, [["render", ae]]);
|
|
754
|
+
//#endregion
|
|
755
|
+
export { oe as t };
|
|
756
|
+
|
|
757
|
+
//# sourceMappingURL=FilterPill-BR7FAmMG.js.map
|