@dialpad/dialtone-vue 4.6.1 → 4.8.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/common/mixins/keyboard-list-navigation.cjs +1 -1
- package/dist/common/mixins/keyboard-list-navigation.cjs.map +1 -1
- package/dist/common/mixins/keyboard-list-navigation.js +10 -7
- package/dist/common/mixins/keyboard-list-navigation.js.map +1 -1
- package/dist/common/mixins/keyboard_list_navigation.d.ts +1 -1
- package/dist/common/mixins/keyboard_list_navigation.d.ts.map +1 -1
- package/dist/common/phone/index.cjs +2 -0
- package/dist/common/phone/index.cjs.map +1 -0
- package/dist/common/phone/index.d.ts +4 -0
- package/dist/common/phone/index.d.ts.map +1 -0
- package/dist/common/phone/index.js +25 -0
- package/dist/common/phone/index.js.map +1 -0
- package/dist/component-documentation.json +1 -1
- package/dist/components/Combobox/Combobox.vue.d.ts +5 -1
- package/dist/components/Combobox/Combobox.vue.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxEmptyList.vue.d.ts +2 -0
- package/dist/components/Combobox/ComboboxEmptyList.vue.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxLoadingList.vue.d.ts +2 -0
- package/dist/components/Combobox/ComboboxLoadingList.vue.d.ts.map +1 -1
- package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts +43 -5
- package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +66 -5
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/FilterPill/FilterPill.vue.d.ts +519 -26
- package/dist/components/FilterPill/FilterPill.vue.d.ts.map +1 -1
- package/dist/components/FilterPill/FilterPillConstants.d.ts +2 -0
- package/dist/components/FilterPill/FilterPillConstants.d.ts.map +1 -0
- package/dist/components/FilterPill/FilterPillControlled.d.ts +92 -0
- package/dist/components/FilterPill/FilterPillControlled.d.ts.map +1 -0
- package/dist/components/FilterPill/FilterPillSelection.d.ts +13 -0
- package/dist/components/FilterPill/FilterPillSelection.d.ts.map +1 -0
- package/dist/components/Hovercard/Hovercard.vue.d.ts +86 -16
- package/dist/components/Hovercard/Hovercard.vue.d.ts.map +1 -1
- package/dist/components/ListItem/ListItem.vue.d.ts +2 -0
- package/dist/components/ListItem/ListItem.vue.d.ts.map +1 -1
- package/dist/components/ListItem/ListItemConstants.d.ts +2 -0
- package/dist/components/ListItem/ListItemConstants.d.ts.map +1 -1
- package/dist/components/ListItem/index.d.ts +1 -1
- package/dist/components/Notice/Notice.vue.d.ts +1 -1
- package/dist/components/Popover/Popover.vue.d.ts +34 -4
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Popover/PopoverHeaderFooter.vue.d.ts +9 -0
- package/dist/components/Popover/PopoverHeaderFooter.vue.d.ts.map +1 -1
- package/dist/components/RichTextEditor/Extensions/Channels/ChannelComponent.vue.d.ts +9 -0
- package/dist/components/RichTextEditor/Extensions/Channels/ChannelSuggestion.vue.d.ts +9 -0
- package/dist/components/RichTextEditor/Extensions/Channels/ChannelSuggestion.vue.d.ts.map +1 -1
- package/dist/components/RichTextEditor/Extensions/Emoji/EmojiSuggestion.vue.d.ts +9 -0
- package/dist/components/RichTextEditor/Extensions/Mentions/MentionSuggestion.vue.d.ts +9 -0
- package/dist/components/RichTextEditor/Extensions/Suggestion/SuggestionList.vue.d.ts +2 -0
- package/dist/components/RichTextEditor/Extensions/Suggestion/SuggestionList.vue.d.ts.map +1 -1
- package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts +34 -4
- package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +20 -0
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts +66 -5
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/Stack/Stack.vue.d.ts +9 -0
- package/dist/components/Stack/Stack.vue.d.ts.map +1 -1
- package/dist/components/Stack/StackConstants.d.ts +2 -0
- package/dist/components/Stack/StackConstants.d.ts.map +1 -1
- package/dist/components/Stack/Utils.d.ts +2 -1
- package/dist/components/Stack/Utils.d.ts.map +1 -1
- package/dist/components/Stack/Validators.d.ts +1 -0
- package/dist/components/Stack/Validators.d.ts.map +1 -1
- package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts +1 -1
- package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts +1 -1
- package/dist/components/Toast/Toast.vue.d.ts +5 -5
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +131 -130
- package/dist/index.d.ts +1 -0
- package/dist/lib/dropdown/dropdown.cjs +1 -1
- package/dist/lib/dropdown/dropdown.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown.js +73 -13
- package/dist/lib/dropdown/dropdown.js.map +1 -1
- package/dist/lib/filter-pill/filter-pill-constants.cjs +2 -0
- package/dist/lib/filter-pill/filter-pill-constants.cjs.map +1 -0
- package/dist/lib/filter-pill/filter-pill-constants.js +7 -0
- package/dist/lib/filter-pill/filter-pill-constants.js.map +1 -0
- package/dist/lib/filter-pill/filter-pill-controlled.cjs +2 -0
- package/dist/lib/filter-pill/filter-pill-controlled.cjs.map +1 -0
- package/dist/lib/filter-pill/filter-pill-controlled.js +308 -0
- package/dist/lib/filter-pill/filter-pill-controlled.js.map +1 -0
- package/dist/lib/filter-pill/filter-pill-selection.cjs +2 -0
- package/dist/lib/filter-pill/filter-pill-selection.cjs.map +1 -0
- package/dist/lib/filter-pill/filter-pill-selection.js +32 -0
- package/dist/lib/filter-pill/filter-pill-selection.js.map +1 -0
- package/dist/lib/filter-pill/filter-pill.cjs +1 -1
- package/dist/lib/filter-pill/filter-pill.cjs.map +1 -1
- package/dist/lib/filter-pill/filter-pill.js +362 -96
- package/dist/lib/filter-pill/filter-pill.js.map +1 -1
- package/dist/lib/list-item/index.cjs +1 -1
- package/dist/lib/list-item/index.js +3 -3
- package/dist/lib/list-item/list-item-constants.cjs +1 -1
- package/dist/lib/list-item/list-item-constants.cjs.map +1 -1
- package/dist/lib/list-item/list-item-constants.js +12 -6
- package/dist/lib/list-item/list-item-constants.js.map +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 +36 -32
- package/dist/lib/list-item/list-item.js.map +1 -1
- package/dist/lib/popover/popover-header-footer.cjs +1 -1
- package/dist/lib/popover/popover-header-footer.cjs.map +1 -1
- package/dist/lib/popover/popover-header-footer.js +7 -1
- package/dist/lib/popover/popover-header-footer.js.map +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 +57 -21
- package/dist/lib/popover/popover.js.map +1 -1
- package/dist/lib/stack/stack-constants.cjs +1 -1
- package/dist/lib/stack/stack-constants.cjs.map +1 -1
- package/dist/lib/stack/stack-constants.js +5 -4
- package/dist/lib/stack/stack-constants.js.map +1 -1
- package/dist/lib/stack/stack.cjs +1 -1
- package/dist/lib/stack/stack.cjs.map +1 -1
- package/dist/lib/stack/stack.js +26 -18
- package/dist/lib/stack/stack.js.map +1 -1
- package/dist/lib/stack/utils.cjs +1 -1
- package/dist/lib/stack/utils.cjs.map +1 -1
- package/dist/lib/stack/utils.js +44 -36
- package/dist/lib/stack/utils.js.map +1 -1
- package/dist/lib/stack/validators.cjs +1 -1
- package/dist/lib/stack/validators.cjs.map +1 -1
- package/dist/lib/stack/validators.js +16 -13
- package/dist/lib/stack/validators.js.map +1 -1
- package/dist/localization/en-US.cjs +9 -0
- package/dist/localization/en-US.cjs.map +1 -1
- package/dist/localization/en-US.js +1 -1
- package/dist/localization/en-US.js.map +1 -1
- package/package.json +7 -6
package/dist/dialtone-vue.js
CHANGED
|
@@ -13,179 +13,180 @@ import { SKELETON_HEADING_HEIGHTS as $, SKELETON_RIPPLE_DURATION as ee, SKELETON
|
|
|
13
13
|
import ie from "./common/mixins/skeleton.js";
|
|
14
14
|
import ae from "./common/mixins/mode.js";
|
|
15
15
|
import { durationInHHMM as oe, getDateMedium as se, relativeDate as ce, setDateLocale as le } from "./common/dates/index.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import Ze from "./lib/avatar/avatar.js";
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import rt from "./lib/icon/icon.js";
|
|
24
|
-
import it from "./lib/
|
|
25
|
-
import
|
|
26
|
-
import st from "./lib/notice/notice-
|
|
27
|
-
import
|
|
28
|
-
import wt from "./lib/text/text.js";
|
|
29
|
-
import Tt from "./lib/
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import Ot from "./
|
|
33
|
-
import
|
|
34
|
-
import {
|
|
35
|
-
import Wt from "./lib/link/link.js";
|
|
36
|
-
import Gt from "./lib/
|
|
37
|
-
import Kt from "./lib/
|
|
38
|
-
import qt from "./lib/notice/notice.js";
|
|
39
|
-
import Jt from "./lib/
|
|
16
|
+
import { formatPhoneNumber as ue } from "./common/phone/index.js";
|
|
17
|
+
import { codeToEmojiData as de, customEmojiAssetUrl as fe, defaultEmojiAssetUrl as pe, emojiFileExtensionLarge as me, emojiFileExtensionSmall as he, emojiImageUrlLarge as ge, emojiImageUrlSmall as _e, emojiJson as ve, emojiRegex as ye, emojiShortCodeRegex as be, emojiVersion as xe, filterValidShortCodes as Se, findEmojis as Ce, findShortCodes as we, getEmojiData as Te, getEmojiShortCode as Ee, setCustomEmojiJson as De, setCustomEmojiUrl as Oe, setEmojiAssetUrlLarge as ke, setEmojiAssetUrlSmall as Ae, shortcodeToEmojiData as je, stringToUnicode as Me, unicodeToString as Ne, validateCustomEmojiJson as Pe } from "./common/emoji/index.js";
|
|
18
|
+
import { PRESENCE_STATES as Fe, PRESENCE_STATES_LIST as Ie } from "./lib/presence/presence-constants.js";
|
|
19
|
+
import { t as Le } from "./Presence-CGgyodnC.js";
|
|
20
|
+
import { AVATAR_CHROMA as Re, AVATAR_FAMILY_COUNT as ze, AVATAR_GROUP_VALIDATOR as Be, AVATAR_HUE_OFFSETS as Ve, AVATAR_ICON_SIZES as He, AVATAR_KIND_MODIFIERS as Ue, AVATAR_LIGHTNESS as We, AVATAR_PRESENCE_SIZE_MODIFIERS as Ge, AVATAR_PRESENCE_STATES as Ke, AVATAR_SIZE_MODIFIERS as qe, AVATAR_VARIANT_COUNT as Je, colorToFamilyVariant as Ye, computeAvatarHex as Xe, getRandomFamilyVariant as Ze } from "./lib/avatar/avatar-constants.js";
|
|
21
|
+
import Qe from "./lib/avatar/avatar.js";
|
|
22
|
+
import { BADGE_DECORATION_MODIFIERS as $e, BADGE_KIND_MODIFIERS as et, BADGE_TYPE_MODIFIERS as tt } from "./lib/badge/badge-constants.js";
|
|
23
|
+
import { ICON_NAMES as nt, ICON_SIZE_MODIFIERS as rt } from "./lib/icon/icon-constants.js";
|
|
24
|
+
import it from "./lib/icon/icon.js";
|
|
25
|
+
import at from "./lib/badge/badge.js";
|
|
26
|
+
import { NOTICE_KINDS as ot, NOTICE_ROLES as st } from "./lib/notice/notice-constants.js";
|
|
27
|
+
import ct from "./lib/notice/notice-icon.js";
|
|
28
|
+
import { TEXT_ALIGN_MODIFIERS as lt, TEXT_BOX_TRIM_MODIFIERS as ut, TEXT_DENSITY_MODIFIERS as dt, TEXT_FAMILY_MODIFIERS as ft, TEXT_FONT_SIZE_MODIFIERS as pt, TEXT_HEADLINE_ONLY_SIZES as mt, TEXT_ITALIC_CLASS as ht, TEXT_KIND_MODIFIERS as gt, TEXT_LINE_CLAMP_CLASS as _t, TEXT_NUMERIC_CLASS as vt, TEXT_SIZE_MODIFIERS as yt, TEXT_STRENGTH_MODIFIERS as bt, TEXT_TONE_MODIFIERS as xt, TEXT_TRUNCATE_CLASS as St, TEXT_VARIANT_MODIFIERS as Ct, TEXT_WRAP_MODIFIERS as wt } from "./lib/text/text-constants.js";
|
|
29
|
+
import Tt from "./lib/text/text.js";
|
|
30
|
+
import Et from "./lib/notice/notice-content.js";
|
|
31
|
+
import { LOADER_KIND_MODIFIERS as Dt } from "./lib/loader/loader-constants.js";
|
|
32
|
+
import { DialtoneLocalization as Ot } from "./localization/index.js";
|
|
33
|
+
import kt from "./lib/loader/loader.js";
|
|
34
|
+
import { BUTTON_ICON_SIZES as At, BUTTON_IMPORTANCE_MODIFIERS as jt, BUTTON_KIND_MODIFIERS as Mt, BUTTON_SIZE_MODIFIERS as Nt, BUTTON_TYPES as Pt, ICON_POSITION_MODIFIERS as Ft, INVALID_COMBINATION as It } from "./lib/button/button-constants.js";
|
|
35
|
+
import { CRITICAL as Lt, LINK_KIND_MODIFIERS as Rt, LINK_VARIANTS as zt, MENTION as Bt, MUTED as Vt, POSITIVE as Ht, WARNING as Ut, getLinkKindModifier as Wt } from "./lib/link/link-constants.js";
|
|
36
|
+
import Gt from "./lib/link/link.js";
|
|
37
|
+
import Kt from "./lib/button/button.js";
|
|
38
|
+
import qt from "./lib/notice/notice-action.js";
|
|
39
|
+
import Jt from "./lib/notice/notice.js";
|
|
40
|
+
import Yt from "./lib/banner/banner.js";
|
|
40
41
|
import "./lib/banner/index.js";
|
|
41
|
-
import { DT_BOX_AS_VALUES as
|
|
42
|
-
import
|
|
42
|
+
import { DT_BOX_AS_VALUES as Xt, DT_BOX_BORDER_COLOR_VALUES as Zt, DT_BOX_BORDER_RADIUS_VALUES as Qt, DT_BOX_BORDER_WIDTH_VALUES as $t, DT_BOX_INSET_SIDE_VALUES as en, DT_BOX_INSET_VALUES as tn, DT_BOX_LAYOUT_VALUES as nn, DT_BOX_OVERFLOW_VALUES as rn, DT_BOX_POSITION_VALUES as an, DT_BOX_SCROLLBAR_VALUES as on, DT_BOX_SHADOW_VALUES as sn, DT_BOX_SPACING_VALUES as cn, DT_BOX_SURFACE_VALUES as ln, DT_BOX_Z_INDEX_VALUES as un } from "./lib/box/box-constants.js";
|
|
43
|
+
import dn from "./lib/box/box.js";
|
|
43
44
|
import "./lib/box/index.js";
|
|
44
|
-
import { BREADCRUMBS_INVERTED_MODIFIER as
|
|
45
|
-
import
|
|
46
|
-
import
|
|
45
|
+
import { BREADCRUMBS_INVERTED_MODIFIER as fn, BREADCRUMB_ITEM_SELECTED_MODIFIER as pn } from "./lib/breadcrumbs/breadcrumbs-constants.js";
|
|
46
|
+
import mn from "./lib/breadcrumbs/breadcrumb-item.js";
|
|
47
|
+
import hn from "./lib/breadcrumbs/breadcrumbs.js";
|
|
47
48
|
import "./lib/breadcrumbs/index.js";
|
|
48
|
-
import { BUTTON_GROUP_ALIGNMENT as
|
|
49
|
-
import
|
|
49
|
+
import { BUTTON_GROUP_ALIGNMENT as gn } from "./lib/button-group/button-group-constants.js";
|
|
50
|
+
import _n from "./lib/button-group/button-group.js";
|
|
50
51
|
import "./lib/button-group/index.js";
|
|
51
|
-
import
|
|
52
|
+
import vn from "./lib/card/card.js";
|
|
52
53
|
import "./lib/card/index.js";
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import { CHIP_CLOSE_BUTTON_SIZE_MODIFIERS as
|
|
57
|
-
import
|
|
54
|
+
import yn from "./lib/checkbox/checkbox.js";
|
|
55
|
+
import bn from "./lib/input-group/input-group.js";
|
|
56
|
+
import xn from "./lib/checkbox-group/checkbox-group.js";
|
|
57
|
+
import { CHIP_CLOSE_BUTTON_SIZE_MODIFIERS as Sn, CHIP_ICON_SIZES as Cn, CHIP_SIZE_MODIFIERS as wn } from "./lib/chip/chip-constants.js";
|
|
58
|
+
import Tn from "./lib/chip/chip.js";
|
|
58
59
|
import "./lib/chip/index.js";
|
|
59
|
-
import
|
|
60
|
+
import En from "./lib/codeblock/codeblock.js";
|
|
60
61
|
import "./lib/codeblock/index.js";
|
|
61
|
-
import
|
|
62
|
+
import Dn from "./lib/collapsible/collapsible.js";
|
|
62
63
|
import "./lib/collapsible/index.js";
|
|
63
|
-
import { LIST_ITEM_NAVIGATION_TYPES as
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import { t as
|
|
72
|
-
import { COMBOBOX_LABEL_SIZES as
|
|
73
|
-
import { DT_STACK_DIRECTION as
|
|
74
|
-
import
|
|
75
|
-
import { TOOLTIP_DELAY_MS as
|
|
76
|
-
import { POPOVER_APPEND_TO_VALUES as
|
|
77
|
-
import
|
|
78
|
-
import { t as
|
|
79
|
-
import { formatLong as
|
|
64
|
+
import { LIST_ITEM_NAVIGATION_TYPES as On, LIST_ITEM_ROLES as kn, LIST_ITEM_TYPES as An } from "./lib/list-item/list-item-constants.js";
|
|
65
|
+
import jn from "./lib/item-layout/item-layout.js";
|
|
66
|
+
import Mn from "./lib/list-item/list-item.js";
|
|
67
|
+
import Nn from "./lib/skeleton/skeleton-shape.js";
|
|
68
|
+
import Pn from "./lib/skeleton/skeleton-text.js";
|
|
69
|
+
import Fn from "./lib/skeleton/skeleton-paragraph.js";
|
|
70
|
+
import In from "./lib/skeleton/skeleton-list-item.js";
|
|
71
|
+
import Ln from "./lib/skeleton/skeleton.js";
|
|
72
|
+
import { t as Rn } from "./Combobox-WsLvegw6.js";
|
|
73
|
+
import { COMBOBOX_LABEL_SIZES as zn } from "./lib/combobox/combobox-constants.js";
|
|
74
|
+
import { DT_STACK_DIRECTION as Bn, DT_STACK_GAP as Vn, DT_STACK_RESPONSIVE_BREAKPOINTS as Hn } from "./lib/stack/stack-constants.js";
|
|
75
|
+
import Un from "./lib/stack/stack.js";
|
|
76
|
+
import { TOOLTIP_DELAY_MS as Wn, TOOLTIP_DIRECTIONS as Gn, TOOLTIP_HIDE_ON_CLICK_VARIANTS as Kn, TOOLTIP_KIND_MODIFIERS as qn, TOOLTIP_STICKY_VALUES as Jn } from "./lib/tooltip/tooltip-constants.js";
|
|
77
|
+
import { POPOVER_APPEND_TO_VALUES as Yn, POPOVER_CONTENT_WIDTHS as Xn, POPOVER_DIRECTIONS as Zn, POPOVER_HEADER_FOOTER_PADDING_CLASSES as Qn, POPOVER_INITIAL_FOCUS_STRINGS as $n, POPOVER_PADDING_CLASSES as er, POPOVER_ROLES as tr, POPOVER_STICKY_VALUES as nr } from "./lib/popover/popover-constants.js";
|
|
78
|
+
import rr from "./lib/tooltip/tooltip.js";
|
|
79
|
+
import { t as ir } from "./Datepicker-D-Lgvthq.js";
|
|
80
|
+
import { formatLong as ar, formatMedium as or, formatNoYear as sr, formatNumerical as cr, formatShort as lr } from "./lib/datepicker/format-utils.js";
|
|
80
81
|
import "./lib/datepicker/index.js";
|
|
81
|
-
import { DT_DESCRIPTION_LIST_DIRECTION as
|
|
82
|
-
import
|
|
82
|
+
import { DT_DESCRIPTION_LIST_DIRECTION as ur } from "./lib/description-list/description-list-constants.js";
|
|
83
|
+
import dr from "./lib/description-list/description-list.js";
|
|
83
84
|
import "./lib/description-list/index.js";
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import { DROPDOWN_PADDING_CLASSES as
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
import { INPUT_SIZES as
|
|
91
|
-
import
|
|
92
|
-
import { t as
|
|
93
|
-
import { TAB_ACTIVATION_MODES as
|
|
94
|
-
import
|
|
95
|
-
import
|
|
96
|
-
import
|
|
97
|
-
import { ARROW_KEYS as
|
|
85
|
+
import fr from "./lib/lazy-show/lazy-show.js";
|
|
86
|
+
import pr from "./lib/popover/popover.js";
|
|
87
|
+
import { DROPDOWN_PADDING_CLASSES as mr } from "./lib/dropdown/dropdown-constants.js";
|
|
88
|
+
import hr from "./lib/dropdown/dropdown.js";
|
|
89
|
+
import gr from "./lib/dropdown/dropdown-separator.js";
|
|
90
|
+
import _r from "./lib/emoji/emoji.js";
|
|
91
|
+
import { INPUT_SIZES as vr, INPUT_TYPES as yr } from "./lib/input/input-constants.js";
|
|
92
|
+
import br from "./lib/input/input.js";
|
|
93
|
+
import { t as xr } from "./EmojiPicker-D46lLRMp.js";
|
|
94
|
+
import { TAB_ACTIVATION_MODES as Sr, TAB_GROUP_KINDS as Cr, TAB_LIST_IMPORTANCE_MODIFIERS as wr, TAB_LIST_KIND_MODIFIERS as Tr, TAB_LIST_SIZES as Er, TAB_LIST_SIZE_MODIFIERS as Dr, TAB_SPREADS as Or } from "./lib/tab/tabs-constants.js";
|
|
95
|
+
import kr from "./lib/tab/tab-group.js";
|
|
96
|
+
import Ar from "./lib/tab/tab.js";
|
|
97
|
+
import jr from "./lib/tab/tab-panel.js";
|
|
98
|
+
import { ARROW_KEYS as Mr, CDN_URL as Nr, EMOJIS_PER_ROW as Pr, EMOJI_PICKER_SKIN_TONE_MODIFIERS as Fr } from "./lib/emoji-picker/emoji-picker-constants.js";
|
|
98
99
|
import "./lib/emoji-picker/index.js";
|
|
99
|
-
import
|
|
100
|
+
import Ir from "./lib/emoji-text-wrapper/emoji-text-wrapper.js";
|
|
100
101
|
import "./lib/emoji-text-wrapper/index.js";
|
|
101
|
-
import { EMPTY_STATE_SIZE_MODIFIERS as
|
|
102
|
-
import
|
|
102
|
+
import { EMPTY_STATE_SIZE_MODIFIERS as Lr } from "./lib/empty-state/empty-state-constants.js";
|
|
103
|
+
import Rr from "./lib/empty-state/empty-state.js";
|
|
103
104
|
import "./lib/empty-state/index.js";
|
|
104
|
-
import
|
|
105
|
+
import zr from "./lib/filter-pill/filter-pill.js";
|
|
105
106
|
import "./lib/filter-pill/index.js";
|
|
106
|
-
import
|
|
107
|
+
import Br from "./lib/hovercard/hovercard.js";
|
|
107
108
|
import "./lib/hovercard/index.js";
|
|
108
|
-
import { ILLUSTRATION_NAMES as
|
|
109
|
-
import
|
|
109
|
+
import { ILLUSTRATION_NAMES as Vr } from "./lib/illustration/illustration-constants.js";
|
|
110
|
+
import Hr from "./lib/illustration/illustration.js";
|
|
110
111
|
import "./lib/illustration/index.js";
|
|
111
|
-
import
|
|
112
|
+
import Ur from "./lib/image-viewer/image-viewer.js";
|
|
112
113
|
import "./lib/image-viewer/index.js";
|
|
113
|
-
import
|
|
114
|
-
import { SHORTCUTS_ALIASES_LIST as
|
|
114
|
+
import Wr from "./lib/keyboard-shortcut/keyboard-shortcut.js";
|
|
115
|
+
import { SHORTCUTS_ALIASES_LIST as Gr } from "./lib/keyboard-shortcut/keyboard-shortcut-constants.js";
|
|
115
116
|
import "./lib/keyboard-shortcut/index.js";
|
|
116
|
-
import
|
|
117
|
+
import Kr from "./lib/list-item-group/list-item-group.js";
|
|
117
118
|
import "./lib/list-item-group/index.js";
|
|
118
119
|
import "./lib/loader/index.js";
|
|
119
|
-
import { MODAL_BANNER_KINDS as
|
|
120
|
-
import
|
|
120
|
+
import { MODAL_BANNER_KINDS as qr, MODAL_KIND_MODIFIERS as Jr } from "./lib/modal/modal-constants.js";
|
|
121
|
+
import Yr from "./lib/modal/modal.js";
|
|
121
122
|
import "./lib/modal/index.js";
|
|
122
|
-
import { DT_MODE_ISLAND_TYPES as
|
|
123
|
-
import
|
|
123
|
+
import { DT_MODE_ISLAND_TYPES as Xr } from "./lib/mode-island/mode-island-constants.js";
|
|
124
|
+
import Zr from "./lib/mode-island/mode-island.js";
|
|
124
125
|
import "./lib/mode-island/index.js";
|
|
125
|
-
import
|
|
126
|
+
import Qr from "./lib/pagination/pagination.js";
|
|
126
127
|
import "./lib/pagination/index.js";
|
|
127
|
-
import { PROGRESS_CIRCLE_KINDS as
|
|
128
|
-
import
|
|
128
|
+
import { PROGRESS_CIRCLE_KINDS as $r, PROGRESS_CIRCLE_KIND_DEFAULT as ei, PROGRESS_CIRCLE_SIZES as ti, PROGRESS_CIRCLE_SIZE_DEFAULT as ni } from "./lib/progress-circle/progress-circle-constants.js";
|
|
129
|
+
import ri from "./lib/progress-circle/progress-circle.js";
|
|
129
130
|
import "./lib/progress-circle/index.js";
|
|
130
|
-
import { PROSE_ALLOWED_ATTRIBUTES as
|
|
131
|
-
import
|
|
131
|
+
import { PROSE_ALLOWED_ATTRIBUTES as ii, PROSE_DENSITY_MODIFIERS as ai, PROSE_DISALLOWED_ELEMENTS as oi, PROSE_SIZE_MODIFIERS as si } from "./lib/prose/prose-constants.js";
|
|
132
|
+
import ci from "./lib/prose/prose.js";
|
|
132
133
|
import "./lib/prose/index.js";
|
|
133
|
-
import { RADIO_INPUT_VALIDATION_CLASSES as
|
|
134
|
-
import
|
|
134
|
+
import { RADIO_INPUT_VALIDATION_CLASSES as li } from "./lib/radio/radio-constants.js";
|
|
135
|
+
import ui from "./lib/radio/radio.js";
|
|
135
136
|
import "./lib/radio/index.js";
|
|
136
|
-
import
|
|
137
|
+
import di from "./lib/radio-group/radio-group.js";
|
|
137
138
|
import "./lib/radio-group/index.js";
|
|
138
|
-
import { a as
|
|
139
|
-
import { t as
|
|
140
|
-
import { t as
|
|
141
|
-
import
|
|
139
|
+
import { a as fi, c as pi, d as mi, f as hi, i as gi, l as _i, n as vi, o as yi, p as bi, r as xi, s as Si, t as Ci, u as wi } from "./ResizableUtils-C9qEZRN5.js";
|
|
140
|
+
import { t as Ti } from "./Resizable-EY7mWluI.js";
|
|
141
|
+
import { t as Ei } from "./ResizableHandle-v-oU-sj-.js";
|
|
142
|
+
import Di from "./lib/resizable/resizable-panel.js";
|
|
142
143
|
import "./lib/resizable/index.js";
|
|
143
|
-
import { t as
|
|
144
|
-
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as
|
|
144
|
+
import { t as Oi } from "./RichTextEditor-D8DfONFm.js";
|
|
145
|
+
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as ki, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Ai } from "./lib/rich-text-editor/rich-text-editor-constants.js";
|
|
145
146
|
import "./lib/rich-text-editor/index.js";
|
|
146
|
-
import { ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS as
|
|
147
|
-
import
|
|
147
|
+
import { ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS as ji, ROOT_LAYOUT_SIDEBAR_POSITIONS as Mi } from "./lib/root-layout/root-layout-constants.js";
|
|
148
|
+
import Ni from "./lib/root-layout/root-layout.js";
|
|
148
149
|
import "./lib/root-layout/index.js";
|
|
149
|
-
import { t as
|
|
150
|
+
import { t as Pi } from "./Scroller-B1xwv6TG.js";
|
|
150
151
|
import "./lib/scroller/index.js";
|
|
151
|
-
import { SEGMENTED_CONTROL_ACTIVATION_MODES as
|
|
152
|
-
import
|
|
153
|
-
import
|
|
152
|
+
import { SEGMENTED_CONTROL_ACTIVATION_MODES as Fi, SEGMENTED_CONTROL_ACTIVATION_MODE_DEFAULT as Ii, SEGMENTED_CONTROL_CONTEXT_KEY as Li, SEGMENTED_CONTROL_FOCUS_KEY as Ri, SEGMENTED_CONTROL_ORIENTATIONS as zi, SEGMENTED_CONTROL_ORIENTATION_DEFAULT as Bi, SEGMENTED_CONTROL_SELECT_KEY as Vi, SEGMENTED_CONTROL_SIZES as Hi, SEGMENTED_CONTROL_SIZE_DEFAULT as Ui, SEGMENTED_CONTROL_SIZE_MODIFIERS as Wi, SEGMENTED_CONTROL_SPREADS as Gi, SEGMENTED_CONTROL_SPREAD_DEFAULT as Ki } from "./lib/segmented-control/segmented-control-constants.js";
|
|
153
|
+
import qi from "./lib/segmented-control/segmented-control.js";
|
|
154
|
+
import Ji from "./lib/segmented-control/segmented-control-item.js";
|
|
154
155
|
import "./lib/segmented-control/index.js";
|
|
155
|
-
import { SELECT_SIZE_MODIFIERS as
|
|
156
|
-
import
|
|
156
|
+
import { SELECT_SIZE_MODIFIERS as Yi, SELECT_STATE_MODIFIERS as Xi } from "./lib/select-menu/select-menu-constants.js";
|
|
157
|
+
import Zi from "./lib/select-menu/select-menu.js";
|
|
157
158
|
import "./lib/select-menu/index.js";
|
|
158
|
-
import { a as
|
|
159
|
+
import { a as Qi, i as $i, n as ea, o as ta, r as na, s as ra, t as ia } from "./Slider-Du45PVLU.js";
|
|
159
160
|
import "./lib/slider/index.js";
|
|
160
|
-
import { SPLIT_BUTTON_ICON_SIZES as
|
|
161
|
-
import
|
|
161
|
+
import { SPLIT_BUTTON_ICON_SIZES as aa } from "./lib/split-button/split-button-constants.js";
|
|
162
|
+
import oa from "./lib/split-button/split-button.js";
|
|
162
163
|
import "./lib/split-button/index.js";
|
|
163
|
-
import { DT_TEXT_LIST_DEFAULT_TYPE as
|
|
164
|
-
import { t as
|
|
165
|
-
import { t as
|
|
164
|
+
import { DT_TEXT_LIST_DEFAULT_TYPE as sa, DT_TEXT_LIST_GAP as ca, DT_TEXT_LIST_MARKERS as la, DT_TEXT_LIST_MARKER_TONES as ua, DT_TEXT_LIST_ORDERED_MARKERS as da, DT_TEXT_LIST_TYPES as fa, DT_TEXT_LIST_UNORDERED_MARKERS as pa } from "./lib/text-list/text-list-constants.js";
|
|
165
|
+
import { t as ma } from "./TextList-7RwngSie.js";
|
|
166
|
+
import { t as ha } from "./TextListItem-D0UmIR_q.js";
|
|
166
167
|
import "./lib/text-list/index.js";
|
|
167
|
-
import { TOAST_MIN_DURATION as
|
|
168
|
-
import { t as
|
|
168
|
+
import { TOAST_MIN_DURATION as ga, TOAST_ROLES as _a } from "./lib/toast/toast-constants.js";
|
|
169
|
+
import { t as va } from "./Toast-BNhGD6l8.js";
|
|
169
170
|
import "./lib/toast/index.js";
|
|
170
|
-
import { TOGGLE_CHECKED_VALUES as
|
|
171
|
-
import
|
|
171
|
+
import { TOGGLE_CHECKED_VALUES as ya, TOGGLE_SIZE_MODIFIERS as ba } from "./lib/toggle/toggle-constants.js";
|
|
172
|
+
import xa from "./lib/toggle/toggle.js";
|
|
172
173
|
import "./lib/toggle/index.js";
|
|
173
|
-
import
|
|
174
|
-
import { CHIP_SIZES as
|
|
175
|
-
import
|
|
174
|
+
import Sa from "./lib/combobox-with-popover/combobox-with-popover.js";
|
|
175
|
+
import { CHIP_SIZES as Ca, CHIP_TOP_POSITION as wa, MULTI_SELECT_SIZES as Ta } from "./lib/combobox-multi-select/combobox-multi-select-constants.js";
|
|
176
|
+
import Ea from "./lib/combobox-multi-select/combobox-multi-select.js";
|
|
176
177
|
import "./lib/combobox-multi-select/index.js";
|
|
177
178
|
import "./lib/combobox-with-popover/index.js";
|
|
178
|
-
import { DtTooltipDirective as
|
|
179
|
+
import { DtTooltipDirective as Da } from "./lib/tooltip-directive/tooltip.js";
|
|
179
180
|
import "./lib/tooltip-directive/index.js";
|
|
180
|
-
import { DtScrollbarDirective as
|
|
181
|
+
import { DtScrollbarDirective as Oa } from "./lib/scrollbar-directive/scrollbar.js";
|
|
181
182
|
import "./lib/scrollbar-directive/index.js";
|
|
182
|
-
import { DtModeDirective as
|
|
183
|
+
import { DtModeDirective as ka } from "./lib/mode-directive/mode.js";
|
|
183
184
|
import "./lib/mode-directive/index.js";
|
|
184
|
-
import { DtFocusgroupDirective as
|
|
185
|
+
import { DtFocusgroupDirective as Aa } from "./lib/focusgroup-directive/focusgroup.js";
|
|
185
186
|
import "./lib/focusgroup-directive/index.js";
|
|
186
|
-
import { DtFocustrapDirective as
|
|
187
|
+
import { DtFocustrapDirective as ja } from "./lib/focustrap-directive/focustrap.js";
|
|
187
188
|
import "./lib/focustrap-directive/index.js";
|
|
188
|
-
import { MOTION_TEXT_ANIMATION_MODES as
|
|
189
|
-
import
|
|
189
|
+
import { MOTION_TEXT_ANIMATION_MODES as Ma, MOTION_TEXT_MODE_SETTINGS as Na, MOTION_TEXT_SPEEDS as Pa, MOTION_TEXT_TIMING_PRESETS as Fa, MOTION_TEXT_TRACKS as Ia } from "./lib/motion-text/motion-text-constants.js";
|
|
190
|
+
import La from "./lib/motion-text/motion-text.js";
|
|
190
191
|
import "./lib/motion-text/index.js";
|
|
191
|
-
export {
|
|
192
|
+
export { Mr as ARROW_KEYS, Re as AVATAR_CHROMA, ze as AVATAR_FAMILY_COUNT, Be as AVATAR_GROUP_VALIDATOR, Ve as AVATAR_HUE_OFFSETS, He as AVATAR_ICON_SIZES, Ue as AVATAR_KIND_MODIFIERS, We as AVATAR_LIGHTNESS, Ge as AVATAR_PRESENCE_SIZE_MODIFIERS, Ke as AVATAR_PRESENCE_STATES, qe as AVATAR_SIZE_MODIFIERS, Je as AVATAR_VARIANT_COUNT, $e as BADGE_DECORATION_MODIFIERS, et as BADGE_KIND_MODIFIERS, tt as BADGE_TYPE_MODIFIERS, fn as BREADCRUMBS_INVERTED_MODIFIER, pn as BREADCRUMB_ITEM_SELECTED_MODIFIER, gn as BUTTON_GROUP_ALIGNMENT, At as BUTTON_ICON_SIZES, jt as BUTTON_IMPORTANCE_MODIFIERS, Mt as BUTTON_KIND_MODIFIERS, Nt as BUTTON_SIZE_MODIFIERS, Pt as BUTTON_TYPES, Nr as CDN_URL, Sn as CHIP_CLOSE_BUTTON_SIZE_MODIFIERS, Cn as CHIP_ICON_SIZES, Ca as CHIP_SIZES, wn as CHIP_SIZE_MODIFIERS, wa as CHIP_TOP_POSITION, zn as COMBOBOX_LABEL_SIZES, t as COMPONENT_SIZES, Lt as CRITICAL, _i as DEFAULT_PANEL_SIZE, o as DEFAULT_PREFIX, s as DEFAULT_VALIDATION_MESSAGE_TYPE, c as DESCRIPTION_SIZE_MODIFIERS, l as DESCRIPTION_SIZE_TYPES, mr as DROPDOWN_PADDING_CLASSES, Xt as DT_BOX_AS_VALUES, Zt as DT_BOX_BORDER_COLOR_VALUES, Qt as DT_BOX_BORDER_RADIUS_VALUES, $t as DT_BOX_BORDER_WIDTH_VALUES, en as DT_BOX_INSET_SIDE_VALUES, tn as DT_BOX_INSET_VALUES, nn as DT_BOX_LAYOUT_VALUES, rn as DT_BOX_OVERFLOW_VALUES, an as DT_BOX_POSITION_VALUES, on as DT_BOX_SCROLLBAR_VALUES, sn as DT_BOX_SHADOW_VALUES, cn as DT_BOX_SPACING_VALUES, ln as DT_BOX_SURFACE_VALUES, un as DT_BOX_Z_INDEX_VALUES, ur as DT_DESCRIPTION_LIST_DIRECTION, Xr as DT_MODE_ISLAND_TYPES, Bn as DT_STACK_DIRECTION, Vn as DT_STACK_GAP, Hn as DT_STACK_RESPONSIVE_BREAKPOINTS, sa as DT_TEXT_LIST_DEFAULT_TYPE, ca as DT_TEXT_LIST_GAP, la as DT_TEXT_LIST_MARKERS, ua as DT_TEXT_LIST_MARKER_TONES, da as DT_TEXT_LIST_ORDERED_MARKERS, fa as DT_TEXT_LIST_TYPES, pa as DT_TEXT_LIST_UNORDERED_MARKERS, Ot as DialtoneLocalization, Qe as DtAvatar, at as DtBadge, Yt as DtBanner, dn as DtBox, mn as DtBreadcrumbItem, hn as DtBreadcrumbs, Kt as DtButton, _n as DtButtonGroup, vn as DtCard, K as DtCheckableInputMixin, yn as DtCheckbox, xn as DtCheckboxGroup, Tn as DtChip, En as DtCodeblock, Dn as DtCollapsible, Rn as DtCombobox, Ea as DtComboboxMultiSelect, Sa as DtComboboxWithPopover, e as DtDOMMixin, ir as DtDatepicker, dr as DtDescriptionList, hr as DtDropdown, gr as DtDropdownSeparator, _r as DtEmoji, xr as DtEmojiPicker, Ir as DtEmojiTextWrapper, Rr as DtEmptyState, zr as DtFilterPill, Aa as DtFocusgroupDirective, ja as DtFocustrapDirective, q as DtGroupableInputMixin, Br as DtHovercard, it as DtIcon, Hr as DtIllustration, Ur as DtImageViewer, br as DtInput, bn as DtInputGroup, X as DtInputGroupMixin, J as DtInputMixin, jn as DtItemLayout, Z as DtKeyboardListNavigationMixin, Wr as DtKeyboardShortcut, fr as DtLazyShow, Gt as DtLink, Mn as DtListItem, Kr as DtListItemGroup, kt as DtLoader, Yr as DtModal, Q as DtModalMixin, ka as DtModeDirective, Zr as DtModeIsland, ae as DtModeMixin, La as DtMotionText, Jt as DtNotice, qt as DtNoticeAction, Et as DtNoticeContent, ct as DtNoticeIcon, Qr as DtPagination, pr as DtPopover, Le as DtPresence, ri as DtProgressCircle, ci as DtProse, ui as DtRadio, di as DtRadioGroup, Ti as DtResizable, Ei as DtResizableHandle, Di as DtResizablePanel, Oi as DtRichTextEditor, Ni as DtRootLayout, Oa as DtScrollbarDirective, Pi as DtScroller, qi as DtSegmentedControl, Ji as DtSegmentedControlItem, Zi as DtSelectMenu, Ln as DtSkeleton, In as DtSkeletonListItem, ie as DtSkeletonMixin, Fn as DtSkeletonParagraph, Nn as DtSkeletonShape, Pn as DtSkeletonText, ia as DtSlider, oa as DtSplitButton, Un as DtStack, Ar as DtTab, kr as DtTabGroup, jr as DtTabPanel, Tt as DtText, ma as DtTextList, ha as DtTextListItem, va as DtToast, xa as DtToggle, rr as DtTooltip, Da as DtTooltipDirective, Y as DtValidationMessages, Pr as EMOJIS_PER_ROW, Fr as EMOJI_PICKER_SKIN_TONE_MODIFIERS, Lr as EMPTY_STATE_SIZE_MODIFIERS, u as EVENT_KEYNAMES, d as HTML_ELEMENT_TYPE, nt as ICON_NAMES, Ft as ICON_POSITION_MODIFIERS, rt as ICON_SIZE_MODIFIERS, Vr as ILLUSTRATION_NAMES, vr as INPUT_SIZES, yr as INPUT_TYPES, It as INVALID_COMBINATION, f as LABEL_SIZE_MODIFIERS, r as LAYOUT_PERCENT_VALUES, i as LAYOUT_SIZE_VALUES, a as LAYOUT_VALUES, Rt as LINK_KIND_MODIFIERS, zt as LINK_VARIANTS, On as LIST_ITEM_NAVIGATION_TYPES, kn as LIST_ITEM_ROLES, An as LIST_ITEM_TYPES, Dt as LOADER_KIND_MODIFIERS, Bt as MENTION, wi as MIN_PANEL_SIZE_PX, qr as MODAL_BANNER_KINDS, Jr as MODAL_KIND_MODIFIERS, Ma as MOTION_TEXT_ANIMATION_MODES, Na as MOTION_TEXT_MODE_SETTINGS, Pa as MOTION_TEXT_SPEEDS, Fa as MOTION_TEXT_TIMING_PRESETS, Ia as MOTION_TEXT_TRACKS, Ta as MULTI_SELECT_SIZES, Vt as MUTED, ot as NOTICE_KINDS, st as NOTICE_ROLES, Yn as POPOVER_APPEND_TO_VALUES, Xn as POPOVER_CONTENT_WIDTHS, Zn as POPOVER_DIRECTIONS, Qn as POPOVER_HEADER_FOOTER_PADDING_CLASSES, $n as POPOVER_INITIAL_FOCUS_STRINGS, er as POPOVER_PADDING_CLASSES, tr as POPOVER_ROLES, nr as POPOVER_STICKY_VALUES, Ht as POSITIVE, Fe as PRESENCE_STATES, Ie as PRESENCE_STATES_LIST, $r as PROGRESS_CIRCLE_KINDS, ei as PROGRESS_CIRCLE_KIND_DEFAULT, ti as PROGRESS_CIRCLE_SIZES, ni as PROGRESS_CIRCLE_SIZE_DEFAULT, ii as PROSE_ALLOWED_ATTRIBUTES, ai as PROSE_DENSITY_MODIFIERS, oi as PROSE_DISALLOWED_ELEMENTS, si as PROSE_SIZE_MODIFIERS, li as RADIO_INPUT_VALIDATION_CLASSES, mi as RESIZABLE_CONTEXT_KEY, hi as RESIZABLE_HANDLE_CENTER_OFFSET_PX, ki as RICH_TEXT_EDITOR_AUTOFOCUS_TYPES, Ai as RICH_TEXT_EDITOR_OUTPUT_FORMATS, ji as ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS, Mi as ROOT_LAYOUT_SIDEBAR_POSITIONS, Fi as SEGMENTED_CONTROL_ACTIVATION_MODES, Ii as SEGMENTED_CONTROL_ACTIVATION_MODE_DEFAULT, Li as SEGMENTED_CONTROL_CONTEXT_KEY, Ri as SEGMENTED_CONTROL_FOCUS_KEY, zi as SEGMENTED_CONTROL_ORIENTATIONS, Bi as SEGMENTED_CONTROL_ORIENTATION_DEFAULT, Vi as SEGMENTED_CONTROL_SELECT_KEY, Hi as SEGMENTED_CONTROL_SIZES, Ui as SEGMENTED_CONTROL_SIZE_DEFAULT, Wi as SEGMENTED_CONTROL_SIZE_MODIFIERS, Gi as SEGMENTED_CONTROL_SPREADS, Ki as SEGMENTED_CONTROL_SPREAD_DEFAULT, Yi as SELECT_SIZE_MODIFIERS, Xi as SELECT_STATE_MODIFIERS, Gr as SHORTCUTS_ALIASES_LIST, $ as SKELETON_HEADING_HEIGHTS, ee as SKELETON_RIPPLE_DURATION, te as SKELETON_SHAPES, ne as SKELETON_SHAPE_SIZES, re as SKELETON_TEXT_TYPES, ea as SLIDER_DEFAULT_LARGE_STEP, na as SLIDER_EDGE_CLAMP_TOLERANCE_PX, $i as SLIDER_FILL_ORIGINS, Qi as SLIDER_ORIENTATIONS, ta as SLIDER_READOUT_EDGE_CLAMP_TOLERANCE_PX, ra as SLIDER_READOUT_MODES, aa as SPLIT_BUTTON_ICON_SIZES, Sr as TAB_ACTIVATION_MODES, Cr as TAB_GROUP_KINDS, wr as TAB_LIST_IMPORTANCE_MODIFIERS, Tr as TAB_LIST_KIND_MODIFIERS, Er as TAB_LIST_SIZES, Dr as TAB_LIST_SIZE_MODIFIERS, Or as TAB_SPREADS, lt as TEXT_ALIGN_MODIFIERS, ut as TEXT_BOX_TRIM_MODIFIERS, dt as TEXT_DENSITY_MODIFIERS, ft as TEXT_FAMILY_MODIFIERS, pt as TEXT_FONT_SIZE_MODIFIERS, mt as TEXT_HEADLINE_ONLY_SIZES, n as TEXT_HEADLINE_SIZES, ht as TEXT_ITALIC_CLASS, gt as TEXT_KIND_MODIFIERS, _t as TEXT_LINE_CLAMP_CLASS, vt as TEXT_NUMERIC_CLASS, yt as TEXT_SIZE_MODIFIERS, bt as TEXT_STRENGTH_MODIFIERS, xt as TEXT_TONE_MODIFIERS, St as TEXT_TRUNCATE_CLASS, Ct as TEXT_VARIANT_MODIFIERS, wt as TEXT_WRAP_MODIFIERS, ga as TOAST_MIN_DURATION, _a as TOAST_ROLES, ya as TOGGLE_CHECKED_VALUES, ba as TOGGLE_SIZE_MODIFIERS, Wn as TOOLTIP_DELAY_MS, Gn as TOOLTIP_DIRECTIONS, Kn as TOOLTIP_HIDE_ON_CLICK_VARIANTS, qn as TOOLTIP_KIND_MODIFIERS, Jn as TOOLTIP_STICKY_VALUES, p as VALIDATION_MESSAGE_TYPES, Ut as WARNING, bi as buildHandleId, h as capitalizeFirstLetter, de as codeToEmojiData, Ye as colorToFamilyVariant, Xe as computeAvatarHex, fe as customEmojiAssetUrl, g as debounce, pe as defaultEmojiAssetUrl, _ as disableRootScrolling, oe as durationInHHMM, me as emojiFileExtensionLarge, he as emojiFileExtensionSmall, ge as emojiImageUrlLarge, _e as emojiImageUrlSmall, ve as emojiJson, ye as emojiRegex, be as emojiShortCodeRegex, xe as emojiVersion, v as enableRootScrolling, y as extractNonListeners, b as extractVueListeners, x as filterFormattedMessages, Se as filterValidShortCodes, Ce as findEmojis, S as findFirstFocusableNode, we as findShortCodes, C as flushPromises, ar as formatLong, or as formatMedium, w as formatMessages, sr as formatNoYear, cr as formatNumerical, ue as formatPhoneNumber, lr as formatShort, se as getDateMedium, Te as getEmojiData, Ee as getEmojiShortCode, Wt as getLinkKindModifier, T as getPhoneNumberRegex, E as getRandomElement, Ze as getRandomFamilyVariant, D as getRandomInt, O as getUniqueString, k as getValidationState, A as hasFormattedMessageOfType, Ci as hasPercentageMinSize, j as hasSlotContent, M as htmlFragment, vi as invalidateTokenCache, xi as isCSSValue, N as isEmailAddress, P as isOutOfViewPort, gi as isPercentageValue, F as isPhoneNumber, I as isURL, fi as isValidSizing, L as javaHashCode, R as kebabCaseToPascalCase, z as linkRegex, yi as parseSizeToPixels, B as pascalCaseToKebabCase, Si as pixelsToPercentage, ce as relativeDate, V as removeClassStyleAttrs, H as returnFirstEl, U as safeConcatStrings, De as setCustomEmojiJson, Oe as setCustomEmojiUrl, le as setDateLocale, ke as setEmojiAssetUrlLarge, Ae as setEmojiAssetUrlSmall, je as shortcodeToEmojiData, Me as stringToUnicode, W as toFluentKeyString, Ne as unicodeToString, pi as validateContainerSize, Pe as validateCustomEmojiJson, m as validationMessageValidator, G as warnIfUnmounted };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './common/mixins';
|
|
|
2
2
|
export * from './common/constants';
|
|
3
3
|
export * from './common/utils';
|
|
4
4
|
export * from './common/dates';
|
|
5
|
+
export * from './common/phone';
|
|
5
6
|
export * from './common/emoji';
|
|
6
7
|
export * from './components/Avatar';
|
|
7
8
|
export * from './components/Badge';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/constants/index.cjs`),t=require(`../../common/utils/index.cjs`),n=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),r=require(`../../common/mixins/keyboard-list-navigation.cjs`),i=require(`../../mode_constants-CzYJW9ua.cjs`),a=require(`../list-item/list-item-constants.cjs`),o=require(`../popover/popover-constants.cjs`),s=require(`../popover/popover.cjs`),c=require(`./dropdown-constants.cjs`);let l=require(`vue`);var u={name:`DtDropdown`,components:{DtPopover:s.default},mixins:[r.default({indexKey:`highlightIndex`,idKey:`highlightId`,listElementKey:`getListElement`,listItemRole
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/constants/index.cjs`),t=require(`../../common/utils/index.cjs`),n=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),r=require(`../../common/mixins/keyboard-list-navigation.cjs`),i=require(`../../mode_constants-CzYJW9ua.cjs`),a=require(`../list-item/list-item-constants.cjs`),o=require(`../popover/popover-constants.cjs`),s=require(`../popover/popover.cjs`),c=require(`./dropdown-constants.cjs`);let l=require(`vue`);var u={name:`DtDropdown`,components:{DtPopover:s.default},mixins:[r.default({indexKey:`highlightIndex`,idKey:`highlightId`,listElementKey:`getListElement`,listItemRole:[`menuitem`,`menuitemradio`],afterHighlightMethod:`afterHighlight`,beginningOfListMethod:`beginningOfListMethod`,endOfListMethod:`endOfListMethod`,activeItemKey:`activeItemEl`,focusOnKeyboardNavigation:!0})],inheritAttrs:!1,props:{contentMode:i.t,open:{type:[Boolean,null],default:null},visibilityChangeCallback:{type:Function,default:null},forwardAnchorArrowKeys:{type:Boolean,default:!1},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:`small`,validator:e=>Object.keys(c.DROPDOWN_PADDING_CLASSES).some(t=>t===e)},modal:{type:Boolean,default:!0},contentWidth:{type:String,default:null},maxHeight:{type:String,default:``},maxWidth:{type:String,default:``},listId:{type:String,default(){return t.getUniqueString()}},navigationType:{type:String,default:a.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,validator:e=>Object.values(a.LIST_ITEM_NAVIGATION_TYPES).includes(e)},fallbackPlacements:{type:Array,default:()=>[`auto`]},placement:{type:String,default:`bottom`},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},listClass:{type:[String,Array,Object],default:``},footerClass:{type:[String,Array,Object],default:``},appendTo:{type:[e.HTML_ELEMENT_TYPE,String],default:`body`,validator:e=>o.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},tether:{type:Boolean,default:!0},transition:{type:String,default:`fade`}},emits:[`keydown`,`highlight`,`update:open`,`opened`],data(){return{LIST_ITEM_NAVIGATION_TYPES:a.LIST_ITEM_NAVIGATION_TYPES,DROPDOWN_PADDING_CLASSES:c.DROPDOWN_PADDING_CLASSES,EVENT_KEYNAMES:e.EVENT_KEYNAMES,openedWithKeyboard:!1,pendingArrowOpening:null,isOpen:null,isLogicallyOpen:!1}},computed:{popoverAttrs(){let{dialogClass:e,"dialog-class":t,...n}=this.$attrs;return{...n,dialogClass:[e,t,{"d-dropdown__menu--arrow-keys":this.isArrowKeyNav&&(!(`role`in n)||n.role===`menu`)}]}},dropdownListeners(){return{"update:open":e=>{this.$emit(`update:open`,e)},opened:e=>{this.updateInitialHighlightIndex(e)},keydown:t=>{let n=t.code,r=[e.EVENT_KEYNAMES.up,e.EVENT_KEYNAMES.arrowup,e.EVENT_KEYNAMES.down,e.EVENT_KEYNAMES.arrowdown].includes(n);if(this.forwardAnchorArrowKeys&&this.open!==null&&!this.isLogicallyOpen&&r&&this.$refs.popover?.$refs.anchor?.contains(t.target)){let e=Symbol(`arrow-opening`);this.pendingArrowOpening=e,this.openedWithKeyboard=!0,this.$emit(`keydown`,t),this.$nextTick(()=>{this.pendingArrowOpening===e&&!this.isLogicallyOpen&&(this.openedWithKeyboard=!1)});return}switch(n){case e.EVENT_KEYNAMES.up:case e.EVENT_KEYNAMES.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case e.EVENT_KEYNAMES.down:case e.EVENT_KEYNAMES.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case e.EVENT_KEYNAMES.space:case e.EVENT_KEYNAMES.spacebar:this.onSpaceKey();break;case e.EVENT_KEYNAMES.enter:this.onEnterKey();break;case e.EVENT_KEYNAMES.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case e.EVENT_KEYNAMES.end:this.onEndKeyPress(t),t.stopPropagation(),t.preventDefault();break;default:this.onKeyPress(t);break}this.$emit(`keydown`,t)}}},beginningOfListMethod(){return this.onBeginningOfList||this.onBeginningOfMenu},endOfListMethod(){return this.onEndOfList||this.onEndOfMenu},activeItemEl(){return this.highlightId&&this._getListItemNodes()?.find(e=>e.id===this.highlightId)||null},isArrowKeyNav(){return this.navigationType===this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS},listClasses(){return[`d-dropdown-list`,c.DROPDOWN_PADDING_CLASSES[this.padding],this.listClass,{"d-context-menu-list":this.openOnContext}]},shouldOpenWithArrowKeys(){return!this.openOnContext}},methods:{onVisibilityChange(e){this.isLogicallyOpen=e,this.visibilityChangeCallback?.(e)},onMouseHighlight(e){let t=e.target.closest(`li`);t?.role&&t.id&&this.highlightId!==t.id&&(this.setHighlightId(t.id),this._getListItemNodes()?.includes(t)&&t.focus())},getListElement(){return this.$refs.listWrapper},getMenuCloseButton(){let e=this.$refs.popover;return e?.role===`menu`?e.getCloseButtonElement():null},isMenuCloseFocused(){let e=this.getMenuCloseButton();return e&&e.getRootNode().activeElement===e},focusMenuClose(){let e=this.getMenuCloseButton();return e?(this.highlightIndex=-1,this.highlightId=``,e.focus(),!0):!1},onBeginningOfMenu(){this.focusMenuClose()||this.jumpToEnd()},onEndOfMenu(){this.focusMenuClose()||this.jumpToBeginning()},clearHighlightIndex(){this.setHighlightIndex(-1)},afterHighlight(){this.highlightIndex!==this._itemsLength()-1&&this.$emit(`highlight`,this.highlightIndex)},updateInitialHighlightIndex(e){this.isOpen=e,e?(this.openedWithKeyboard&&this.isArrowKeyNav&&(this._itemsLength()||!this.focusMenuClose())&&this.setHighlightIndex(0),this.$emit(`opened`,!0)):(this.clearHighlightIndex(),this.openedWithKeyboard=!1,this.$emit(`opened`,!1))},onSpaceKey(){this.open||(this.openedWithKeyboard=!0)},onEnterKey(){this.open||(this.openedWithKeyboard=!0)},onUpKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.isMenuCloseFocused()?this.onEndKey():this.onUpKey()},onDownKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.isMenuCloseFocused()?this.onHomeKey():this.onDownKey()},onHomeKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav)&&!(!this._itemsLength()&&this.focusMenuClose()))return this.onHomeKey()},onEndKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav)&&!this.focusMenuClose())return this.onEndKey()},onKeyPress(e){if(!(!this.isOpen||!this.isArrowKeyNav||!this.isValidLetter(e.key)))return e.stopPropagation(),e.preventDefault(),this.onNavigationKey(e.key)}}},d=[`id`];function f(e,t,n,r,i,a){let o=(0,l.resolveComponent)(`dt-popover`);return(0,l.openBlock)(),(0,l.createBlock)(o,(0,l.mergeProps)({ref:`popover`,"content-width":n.contentWidth,"content-mode":n.contentMode,open:n.open,"forward-anchor-arrow-keys":n.forwardAnchorArrowKeys,"visibility-change-callback":a.onVisibilityChange,placement:n.placement,"initial-focus-element":i.openedWithKeyboard?`first`:`dialog`,"fallback-placements":n.fallbackPlacements,padding:`none`,role:`menu`,"append-to":n.appendTo,modal:n.modal,"max-height":n.maxHeight,"max-width":n.maxWidth,"open-with-arrow-keys":a.shouldOpenWithArrowKeys,"open-on-context":n.openOnContext},a.popoverAttrs,{tether:n.tether,transition:n.transition,"footer-class":n.footerClass},(0,l.toHandlers)(a.dropdownListeners)),{anchor:(0,l.withCtx)(({attrs:t})=>[(0,l.renderSlot)(e.$slots,`anchor`,(0,l.mergeProps)({ref:`anchor`},t))]),content:(0,l.withCtx)(({close:r})=>[(0,l.createElementVNode)(`ul`,{id:n.listId,ref:`listWrapper`,role:`none`,class:(0,l.normalizeClass)(a.listClasses),"data-qa":`dt-dropdown-list-wrapper`,onMouseleave:t[0]||(t[0]=(...e)=>a.clearHighlightIndex&&a.clearHighlightIndex(...e)),onMousemoveCapture:t[1]||(t[1]=(...e)=>a.onMouseHighlight&&a.onMouseHighlight(...e))},[(0,l.renderSlot)(e.$slots,`list`,{close:r})],42,d)]),footerContent:(0,l.withCtx)(({close:t})=>[(0,l.renderSlot)(e.$slots,`footer`,{close:t})]),_:3},16,[`content-width`,`content-mode`,`open`,`forward-anchor-arrow-keys`,`visibility-change-callback`,`placement`,`initial-focus-element`,`fallback-placements`,`append-to`,`modal`,`max-height`,`max-width`,`open-with-arrow-keys`,`open-on-context`,`tether`,`transition`,`footer-class`])}var p=n.t(u,[[`render`,f]]);exports.default=p;
|
|
2
2
|
//# sourceMappingURL=dropdown.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.cjs","names":[],"sources":["../../../components/Dropdown/Dropdown.vue"],"sourcesContent":["<!-- eslint-disable max-lines -->\n<template>\n <dt-popover\n ref=\"popover\"\n :content-width=\"contentWidth\"\n :content-mode=\"contentMode\"\n :open=\"open\"\n :placement=\"placement\"\n :initial-focus-element=\"openedWithKeyboard ? 'first' : 'dialog'\"\n :fallback-placements=\"fallbackPlacements\"\n padding=\"none\"\n role=\"menu\"\n :append-to=\"appendTo\"\n :modal=\"modal\"\n :max-height=\"maxHeight\"\n :max-width=\"maxWidth\"\n :open-with-arrow-keys=\"shouldOpenWithArrowKeys\"\n :open-on-context=\"openOnContext\"\n v-bind=\"$attrs\"\n :tether=\"tether\"\n :transition=\"transition\"\n :footer-class=\"footerClass\"\n v-on=\"dropdownListeners\"\n >\n <template #anchor=\"{ attrs }\">\n <!--\n @slot Dropdown trigger. Bind the three ARIA slot props individually to the trigger to preserve consumer refs.\n @binding {string} ref Internal ref key. Do not forward it to the trigger.\n @binding {string} aria-expanded Whether the dropdown is open, as \"true\" or \"false\".\n @binding {string} aria-controls ID of the popup element with role=\"menu\".\n @binding {string} aria-haspopup Popup role, \"menu\".\n -->\n <slot\n ref=\"anchor\"\n name=\"anchor\"\n v-bind=\"attrs\"\n />\n </template>\n <template #content=\"{ close }\">\n <!-- eslint-disable-next-line max-len -->\n <!-- eslint-disable-next-line vuejs-accessibility/mouse-events-have-key-events vuejs-accessibility/no-static-element-interactions -->\n <ul\n :id=\"listId\"\n ref=\"listWrapper\"\n :class=\"listClasses\"\n data-qa=\"dt-dropdown-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <!-- @slot Slot for the list component -->\n <slot\n name=\"list\"\n :close=\"close\"\n />\n </ul>\n </template>\n <template #footerContent=\"{ close }\">\n <!-- @slot Slot for the footer content -->\n <slot\n name=\"footer\"\n :close=\"close\"\n />\n </template>\n </dt-popover>\n</template>\n\n<script>\nimport KeyboardNavigation from '@/common/mixins/keyboard_list_navigation';\nimport { DtPopover, POPOVER_APPEND_TO_VALUES } from '@/components/Popover';\nimport { LIST_ITEM_NAVIGATION_TYPES } from '@/components/ListItem';\nimport { DROPDOWN_PADDING_CLASSES } from './DropdownConstants';\nimport { getUniqueString } from '@/common/utils';\nimport { EVENT_KEYNAMES, HTML_ELEMENT_TYPE } from '@/common/constants';\nimport { CONTENT_MODE_PROP } from '@/common/mode_constants';\n\nexport default {\n name: 'DtDropdown',\n\n components: {\n DtPopover,\n },\n\n mixins: [\n KeyboardNavigation({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n listItemRole: 'menuitem',\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n focusOnKeyboardNavigation: true,\n }),\n ],\n\n inheritAttrs: false,\n\n props: {\n /**\n * Applies a color mode to the positioned content element.\n * @values light, dark, invert\n */\n contentMode: CONTENT_MODE_PROP,\n\n /**\n * Controls whether the dropdown is shown. When null (default), the dropdown\n * toggles on click. When set to true or false, the default trigger is\n * disabled and the parent controls visibility via v-model:open.\n * @values null, true, false\n */\n open: {\n type: [Boolean, null],\n default: null,\n },\n\n /**\n * Opens the dropdown on right click (context menu). If you set this value to `true`,\n * the default trigger behavior will be disabled.\n */\n openOnContext: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Vertical padding size around the list element.\n * @values none, small, large\n */\n padding: {\n type: String,\n default: 'small',\n validator: (padding) => {\n return Object.keys(DROPDOWN_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Determines modal state, dropdown has a modal overlay preventing interaction with elements\n * below it, but it is invisible.\n */\n modal: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Width configuration for the popover content. When its value is 'anchor',\n * the popover content will have the same width as the anchor.\n * @values null, anchor\n */\n contentWidth: {\n type: String,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n maxHeight: {\n type: String,\n default: '',\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * If the dropdown does not fit in the direction described by \"placement\",\n * it will attempt to change it's direction to the \"fallbackPlacements\".\n *\n * @values top, top-start, top-end,\n * right, right-start, right-end,\n * left, left-start, left-end,\n * bottom, bottom-start, bottom-end,\n * auto, auto-start, auto-end\n * */\n fallbackPlacements: {\n type: Array,\n default: () => {\n return ['auto'];\n },\n },\n\n /**\n * The direction the dropdown displays relative to the anchor.\n * @values top, top-start, top-end, right, right-start, right-end, left, left-start, left-end, bottom, bottom-start, bottom-end, auto, auto-start, auto-end\n */\n placement: {\n type: String,\n default: 'bottom',\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Additional class for the wrapper list element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the footer wrapper element.\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Sets the element to which the popover is going to append to.\n * 'body' will append to the nearest body (supports shadow DOM).\n * @values 'body', 'parent', 'root', HTMLElement,\n */\n appendTo: {\n type: [HTML_ELEMENT_TYPE, String],\n default: 'body',\n validator: appendTo => {\n return POPOVER_APPEND_TO_VALUES.includes(appendTo) ||\n (appendTo instanceof HTMLElement);\n },\n },\n\n /**\n * If set to false the dialog will display over top of the anchor when there is insufficient space.\n * If set to true it will never move from its position relative to the anchor and will clip instead.\n * <a\n * class=\"d-link\"\n * href=\"https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether\"\n * target=\"_blank\"\n * >\n * Popper.js docs\n * </a>\n * @values true, false\n */\n tether: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Named transition when the content display is toggled.\n * @see DtLazyShow\n */\n transition: {\n type: String,\n default: 'fade',\n },\n },\n\n emits: [\n /**\n * Native keydown event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\n /**\n * Event fired to sync the open prop with the parent component\n * @event update:open\n */\n 'update:open',\n\n /**\n * Event fired when dropdown is shown or hidden\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n ],\n\n data () {\n return {\n LIST_ITEM_NAVIGATION_TYPES,\n DROPDOWN_PADDING_CLASSES,\n EVENT_KEYNAMES,\n openedWithKeyboard: false,\n isOpen: null,\n };\n },\n\n computed: {\n dropdownListeners () {\n return {\n\n 'update:open': value => {\n this.$emit('update:open', value);\n },\n\n opened: isPopoverOpen => {\n this.updateInitialHighlightIndex(isPopoverOpen);\n },\n\n keydown: event => {\n const eventCode = event.code;\n\n switch (eventCode) {\n case EVENT_KEYNAMES.up:\n case EVENT_KEYNAMES.arrowup:\n this.onUpKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.down:\n case EVENT_KEYNAMES.arrowdown:\n this.onDownKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.space:\n case EVENT_KEYNAMES.spacebar:\n this.onSpaceKey();\n break;\n case EVENT_KEYNAMES.enter:\n this.onEnterKey();\n break;\n case EVENT_KEYNAMES.home:\n this.onHomeKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.end:\n this.onEndKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n default:\n this.onKeyPress(event);\n break;\n }\n\n this.$emit('keydown', event);\n },\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemEl () {\n return this.getListElement().querySelector('#' + this.highlightId);\n },\n\n isArrowKeyNav () {\n return this.navigationType === this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS;\n },\n\n listClasses () {\n return [\n 'd-dropdown-list',\n DROPDOWN_PADDING_CLASSES[this.padding],\n this.listClass,\n { 'd-context-menu-list': this.openOnContext },\n ];\n },\n\n shouldOpenWithArrowKeys () {\n return !this.openOnContext;\n },\n },\n\n methods: {\n onMouseHighlight (e) {\n const liElement = e.target.closest('li');\n\n if (liElement && liElement.role && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n liElement.focus();\n }\n },\n\n getListElement () {\n return this.$refs.listWrapper;\n },\n\n clearHighlightIndex () {\n this.setHighlightIndex(-1);\n },\n\n afterHighlight () {\n if (this.highlightIndex === this._itemsLength() - 1) {\n return;\n }\n\n this.$emit('highlight', this.highlightIndex);\n },\n\n updateInitialHighlightIndex (isPopoverOpen) {\n this.isOpen = isPopoverOpen;\n\n if (isPopoverOpen) {\n if (this.openedWithKeyboard && this.isArrowKeyNav) {\n this.setHighlightIndex(0);\n }\n this.$emit('opened', true);\n } else {\n this.clearHighlightIndex();\n this.openedWithKeyboard = false;\n this.$emit('opened', false);\n }\n },\n\n onSpaceKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onEnterKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onUpKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n return this.onUpKey();\n }\n },\n\n onDownKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n return this.onDownKey();\n }\n },\n\n onHomeKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onHomeKey();\n },\n\n onEndKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n return this.onEndKey();\n },\n\n onKeyPress (e) {\n if (!this.isOpen || !this.isArrowKeyNav || !this.isValidLetter(e.key)) {\n return;\n }\n\n e.stopPropagation();\n e.preventDefault();\n\n return this.onNavigationKey(e.key);\n },\n },\n};\n</script>\n"],"mappings":"ukBA2EA,IAAK,EAAU,CACb,KAAM,aAEN,WAAY,CACV,UAAA,EAAA,QACD,CAED,OAAQ,CACN,EAAA,QAAmB,CACjB,SAAU,iBACV,MAAO,cACP,eAAgB,iBAChB,aAAc,WACd,qBAAsB,iBACtB,sBAAuB,wBACvB,gBAAiB,kBACjB,cAAe,eACf,0BAA2B,GAC5B,CAAC,CACH,CAED,aAAc,GAEd,MAAO,CAKL,YAAa,EAAA,EAQb,KAAM,CACJ,KAAM,CAAC,QAAS,KAAK,CACrB,QAAS,KACV,CAMD,cAAe,CACb,KAAM,QACN,QAAS,GACV,CAMD,QAAS,CACP,KAAM,OACN,QAAS,QACT,UAAY,GACH,OAAO,KAAK,EAAA,yBAAyB,CAAC,KAAM,GAAS,IAAS,EAAQ,CAEhF,CAMD,MAAO,CACL,KAAM,QACN,QAAS,GACV,CAOD,aAAc,CACZ,KAAM,OACN,QAAS,KACV,CAMD,UAAW,CACT,KAAM,OACN,QAAS,GACV,CAMD,SAAU,CACR,KAAM,OACN,QAAS,GACV,CAMD,OAAQ,CACN,KAAM,OACN,SAAW,CAAE,OAAO,EAAA,iBAAiB,EACtC,CASD,eAAgB,CACd,KAAM,OACN,QAAS,EAAA,2BAA2B,WACpC,UAAY,GAAM,OAAO,OAAO,EAAA,2BAA2B,CAAC,SAAS,EAAE,CACxE,CAYD,mBAAoB,CAClB,KAAM,MACN,YACS,CAAC,OAAO,CAElB,CAMD,UAAW,CACT,KAAM,OACN,QAAS,SACV,CAKD,kBAAmB,CACjB,KAAM,SACN,QAAS,KACV,CAKD,YAAa,CACX,KAAM,SACN,QAAS,KACV,CAKD,UAAW,CACT,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,YAAa,CACX,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAOD,SAAU,CACR,KAAM,CAA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YAK7B,EAAA,OAAA,SAAA,CADQ,QAAK,CAAA,CAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"dropdown.cjs","names":[],"sources":["../../../components/Dropdown/Dropdown.vue"],"sourcesContent":["<!-- eslint-disable max-lines -->\n<template>\n <dt-popover\n ref=\"popover\"\n :content-width=\"contentWidth\"\n :content-mode=\"contentMode\"\n :open=\"open\"\n :forward-anchor-arrow-keys=\"forwardAnchorArrowKeys\"\n :visibility-change-callback=\"onVisibilityChange\"\n :placement=\"placement\"\n :initial-focus-element=\"openedWithKeyboard ? 'first' : 'dialog'\"\n :fallback-placements=\"fallbackPlacements\"\n padding=\"none\"\n role=\"menu\"\n :append-to=\"appendTo\"\n :modal=\"modal\"\n :max-height=\"maxHeight\"\n :max-width=\"maxWidth\"\n :open-with-arrow-keys=\"shouldOpenWithArrowKeys\"\n :open-on-context=\"openOnContext\"\n v-bind=\"popoverAttrs\"\n :tether=\"tether\"\n :transition=\"transition\"\n :footer-class=\"footerClass\"\n v-on=\"dropdownListeners\"\n >\n <template #anchor=\"{ attrs }\">\n <!--\n @slot Dropdown trigger. Bind the three ARIA slot props individually to the trigger to preserve consumer refs.\n @binding {string} ref Internal ref key. Do not forward it to the trigger.\n @binding {string} aria-expanded Whether the dropdown is open, as \"true\" or \"false\".\n @binding {string} aria-controls ID of the popup element with role=\"menu\".\n @binding {string} aria-haspopup Popup role, \"menu\".\n -->\n <slot\n ref=\"anchor\"\n name=\"anchor\"\n v-bind=\"attrs\"\n />\n </template>\n <template #content=\"{ close }\">\n <!-- eslint-disable-next-line max-len -->\n <!-- eslint-disable-next-line vuejs-accessibility/mouse-events-have-key-events vuejs-accessibility/no-static-element-interactions -->\n <ul\n :id=\"listId\"\n ref=\"listWrapper\"\n role=\"none\"\n :class=\"listClasses\"\n data-qa=\"dt-dropdown-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <!-- @slot Slot for the list component -->\n <slot\n name=\"list\"\n :close=\"close\"\n />\n </ul>\n </template>\n <template #footerContent=\"{ close }\">\n <!-- @slot Slot for the footer content -->\n <slot\n name=\"footer\"\n :close=\"close\"\n />\n </template>\n </dt-popover>\n</template>\n\n<script>\nimport KeyboardNavigation from '@/common/mixins/keyboard_list_navigation';\nimport { DtPopover, POPOVER_APPEND_TO_VALUES } from '@/components/Popover';\nimport { LIST_ITEM_NAVIGATION_TYPES } from '@/components/ListItem';\nimport { DROPDOWN_PADDING_CLASSES } from './DropdownConstants';\nimport { getUniqueString } from '@/common/utils';\nimport { EVENT_KEYNAMES, HTML_ELEMENT_TYPE } from '@/common/constants';\nimport { CONTENT_MODE_PROP } from '@/common/mode_constants';\n\nexport default {\n name: 'DtDropdown',\n\n components: {\n DtPopover,\n },\n\n mixins: [\n KeyboardNavigation({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n listItemRole: ['menuitem', 'menuitemradio'],\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n focusOnKeyboardNavigation: true,\n }),\n ],\n\n inheritAttrs: false,\n\n props: {\n /**\n * Applies a color mode to the positioned content element.\n * @values light, dark, invert\n */\n contentMode: CONTENT_MODE_PROP,\n\n /**\n * Controls whether the dropdown is shown. When null (default), the dropdown\n * toggles on click. When set to true or false, the default trigger is\n * disabled and the parent controls visibility via v-model:open.\n * @values null, true, false\n */\n open: {\n type: [Boolean, null],\n default: null,\n },\n\n /**\n * Optional callback receiving the open boolean synchronously on logical visibility changes.\n * Includes initial true during creation, before mount, when open=true.\n * Does not declare or emit an open-change event.\n * For modal removal, keep modal=true, its anchor and scroll container unchanged until opened(false).\n * Changing modal or the anchor's scroll context after opening can retain the original lock.\n * opened(false) reports transition completion, not global scroll-lock ownership.\n * A closed modal with no pending transition or retained scroll lock can be removed immediately.\n * Defer direct app.unmount() until Vue's next tick.\n */\n visibilityChangeCallback: {\n type: Function,\n default: null,\n },\n\n /**\n * Forwards anchor ArrowUp/ArrowDown with a boolean open prop without toggling.\n * Closed anchor arrows retain their default action and propagation for consumer handling.\n * Accept opening synchronously in the emitted keydown callback for first-row focus.\n * @values true, false\n */\n forwardAnchorArrowKeys: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Opens the dropdown on right click (context menu). If you set this value to `true`,\n * the default trigger behavior will be disabled.\n */\n openOnContext: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Vertical padding size around the list element.\n * @values none, small, large\n */\n padding: {\n type: String,\n default: 'small',\n validator: (padding) => {\n return Object.keys(DROPDOWN_PADDING_CLASSES).some((item) => item === padding);\n },\n },\n\n /**\n * Determines modal state, dropdown has a modal overlay preventing interaction with elements\n * below it, but it is invisible.\n */\n modal: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Width configuration for the popover content. When its value is 'anchor',\n * the popover content will have the same width as the anchor.\n * @values null, anchor\n */\n contentWidth: {\n type: String,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n maxHeight: {\n type: String,\n default: '',\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|%|em\n */\n maxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * If the dropdown does not fit in the direction described by \"placement\",\n * it will attempt to change it's direction to the \"fallbackPlacements\".\n *\n * @values top, top-start, top-end,\n * right, right-start, right-end,\n * left, left-start, left-end,\n * bottom, bottom-start, bottom-end,\n * auto, auto-start, auto-end\n * */\n fallbackPlacements: {\n type: Array,\n default: () => {\n return ['auto'];\n },\n },\n\n /**\n * The direction the dropdown displays relative to the anchor.\n * @values top, top-start, top-end, right, right-start, right-end, left, left-start, left-end, bottom, bottom-start, bottom-end, auto, auto-start, auto-end\n */\n placement: {\n type: String,\n default: 'bottom',\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Additional class for the wrapper list element.\n */\n listClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class for the footer wrapper element.\n */\n footerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Sets the element to which the popover is going to append to.\n * 'body' will append to the nearest body (supports shadow DOM).\n * @values 'body', 'parent', 'root', HTMLElement,\n */\n appendTo: {\n type: [HTML_ELEMENT_TYPE, String],\n default: 'body',\n validator: appendTo => {\n return POPOVER_APPEND_TO_VALUES.includes(appendTo) ||\n (appendTo instanceof HTMLElement);\n },\n },\n\n /**\n * If set to false the dialog will display over top of the anchor when there is insufficient space.\n * If set to true it will never move from its position relative to the anchor and will clip instead.\n * <a\n * class=\"d-link\"\n * href=\"https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether\"\n * target=\"_blank\"\n * >\n * Popper.js docs\n * </a>\n * @values true, false\n */\n tether: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Named transition when the content display is toggled.\n * @see DtLazyShow\n */\n transition: {\n type: String,\n default: 'fade',\n },\n },\n\n emits: [\n /**\n * Native keydown event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\n /**\n * Event fired to sync the open prop with the parent component\n * @event update:open\n */\n 'update:open',\n\n /**\n * Event fired after the current transition and initial focus work complete\n *\n * @event opened\n * @type {Boolean | Array}\n */\n 'opened',\n\n ],\n\n data () {\n return {\n LIST_ITEM_NAVIGATION_TYPES,\n DROPDOWN_PADDING_CLASSES,\n EVENT_KEYNAMES,\n openedWithKeyboard: false,\n pendingArrowOpening: null,\n isOpen: null,\n isLogicallyOpen: false,\n };\n },\n\n computed: {\n popoverAttrs () {\n const { dialogClass, 'dialog-class': kebabDialogClass, ...attrs } = this.$attrs;\n return {\n ...attrs,\n dialogClass: [dialogClass, kebabDialogClass, {\n 'd-dropdown__menu--arrow-keys': this.isArrowKeyNav && (!('role' in attrs) || attrs.role === 'menu'),\n }],\n };\n },\n\n dropdownListeners () {\n return {\n\n 'update:open': value => {\n this.$emit('update:open', value);\n },\n\n opened: isPopoverOpen => {\n this.updateInitialHighlightIndex(isPopoverOpen);\n },\n\n keydown: event => {\n const eventCode = event.code;\n const isArrow = [EVENT_KEYNAMES.up, EVENT_KEYNAMES.arrowup,\n EVENT_KEYNAMES.down, EVENT_KEYNAMES.arrowdown].includes(eventCode);\n\n if (this.forwardAnchorArrowKeys && this.open !== null && !this.isLogicallyOpen && isArrow &&\n this.$refs.popover?.$refs.anchor?.contains(event.target)) {\n const pending = Symbol('arrow-opening');\n this.pendingArrowOpening = pending;\n this.openedWithKeyboard = true;\n this.$emit('keydown', event);\n // Let synchronous acceptance in the emitted handler flush before discarding ignored modality.\n this.$nextTick(() => {\n if (this.pendingArrowOpening === pending && !this.isLogicallyOpen) {\n this.openedWithKeyboard = false;\n }\n });\n return;\n }\n\n switch (eventCode) {\n case EVENT_KEYNAMES.up:\n case EVENT_KEYNAMES.arrowup:\n this.onUpKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.down:\n case EVENT_KEYNAMES.arrowdown:\n this.onDownKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.space:\n case EVENT_KEYNAMES.spacebar:\n this.onSpaceKey();\n break;\n case EVENT_KEYNAMES.enter:\n this.onEnterKey();\n break;\n case EVENT_KEYNAMES.home:\n this.onHomeKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n case EVENT_KEYNAMES.end:\n this.onEndKeyPress(event);\n event.stopPropagation();\n event.preventDefault();\n break;\n default:\n this.onKeyPress(event);\n break;\n }\n\n this.$emit('keydown', event);\n },\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.onBeginningOfMenu;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.onEndOfMenu;\n },\n\n activeItemEl () {\n if (!this.highlightId) return null;\n return this._getListItemNodes()?.find(item => item.id === this.highlightId) || null;\n },\n\n isArrowKeyNav () {\n return this.navigationType === this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS;\n },\n\n listClasses () {\n return [\n 'd-dropdown-list',\n DROPDOWN_PADDING_CLASSES[this.padding],\n this.listClass,\n { 'd-context-menu-list': this.openOnContext },\n ];\n },\n\n shouldOpenWithArrowKeys () {\n return !this.openOnContext;\n },\n },\n\n methods: {\n onVisibilityChange (isOpen) {\n this.isLogicallyOpen = isOpen;\n this.visibilityChangeCallback?.(isOpen);\n },\n\n onMouseHighlight (e) {\n const liElement = e.target.closest('li');\n\n if (liElement?.role && liElement.id && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n if (this._getListItemNodes()?.includes(liElement)) liElement.focus();\n }\n },\n\n getListElement () {\n return this.$refs.listWrapper;\n },\n\n getMenuCloseButton () {\n const popover = this.$refs.popover;\n return popover?.role === 'menu' ? popover.getCloseButtonElement() : null;\n },\n\n isMenuCloseFocused () {\n const closeButton = this.getMenuCloseButton();\n return closeButton && closeButton.getRootNode().activeElement === closeButton;\n },\n\n focusMenuClose () {\n const closeButton = this.getMenuCloseButton();\n if (!closeButton) return false;\n // Close has no application row index and must not emit a choice highlight.\n this.highlightIndex = -1;\n this.highlightId = '';\n closeButton.focus();\n return true;\n },\n\n onBeginningOfMenu () {\n if (!this.focusMenuClose()) this.jumpToEnd();\n },\n\n onEndOfMenu () {\n if (!this.focusMenuClose()) this.jumpToBeginning();\n },\n\n clearHighlightIndex () {\n this.setHighlightIndex(-1);\n },\n\n afterHighlight () {\n if (this.highlightIndex === this._itemsLength() - 1) {\n return;\n }\n\n this.$emit('highlight', this.highlightIndex);\n },\n\n updateInitialHighlightIndex (isPopoverOpen) {\n this.isOpen = isPopoverOpen;\n\n if (isPopoverOpen) {\n if (this.openedWithKeyboard && this.isArrowKeyNav) {\n if (this._itemsLength() || !this.focusMenuClose()) this.setHighlightIndex(0);\n }\n this.$emit('opened', true);\n } else {\n this.clearHighlightIndex();\n this.openedWithKeyboard = false;\n this.$emit('opened', false);\n }\n },\n\n onSpaceKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onEnterKey () {\n if (!this.open) {\n this.openedWithKeyboard = true;\n }\n },\n\n onUpKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n if (this.isMenuCloseFocused()) return this.onEndKey();\n return this.onUpKey();\n }\n },\n\n onDownKeyPress () {\n if (!this.isOpen) {\n this.openedWithKeyboard = true;\n return;\n }\n if (this.isArrowKeyNav) {\n if (this.isMenuCloseFocused()) return this.onHomeKey();\n return this.onDownKey();\n }\n },\n\n onHomeKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n if (!this._itemsLength() && this.focusMenuClose()) return;\n return this.onHomeKey();\n },\n\n onEndKeyPress () {\n if (!this.isOpen || !this.isArrowKeyNav) {\n return;\n }\n\n if (this.focusMenuClose()) return;\n return this.onEndKey();\n },\n\n onKeyPress (e) {\n if (!this.isOpen || !this.isArrowKeyNav || !this.isValidLetter(e.key)) {\n return;\n }\n\n e.stopPropagation();\n e.preventDefault();\n\n return this.onNavigationKey(e.key);\n },\n },\n};\n</script>\n"],"mappings":"ukBA8EA,IAAK,EAAU,CACb,KAAM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