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