@dialpad/dialtone-vue 3.222.0 → 3.222.2
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/constants/index.cjs +1 -1
- package/dist/common/constants/index.cjs.map +1 -1
- package/dist/common/constants/index.d.ts +4 -0
- package/dist/common/constants/index.d.ts.map +1 -1
- package/dist/common/constants/index.js +10 -10
- package/dist/common/constants/index.js.map +1 -1
- package/dist/component-documentation.json +1 -1
- package/dist/components/combobox_with_popover/combobox_with_popover.vue.d.ts +18 -18
- package/dist/components/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
- package/dist/components/dropdown/dropdown.vue.d.ts +18 -18
- package/dist/components/dropdown/dropdown.vue.d.ts.map +1 -1
- package/dist/components/emoji_picker/emoji_picker.vue.d.ts +22 -0
- package/dist/components/emoji_picker/modules/emoji_search.vue.d.ts +22 -0
- package/dist/components/emoji_picker/modules/emoji_search.vue.d.ts.map +1 -1
- package/dist/components/hovercard/hovercard.vue.d.ts +32 -32
- package/dist/components/hovercard/hovercard.vue.d.ts.map +1 -1
- package/dist/components/input/input.vue.d.ts +11 -0
- package/dist/components/input/input.vue.d.ts.map +1 -1
- package/dist/components/modal/modal.vue.d.ts +6 -5
- package/dist/components/modal/modal.vue.d.ts.map +1 -1
- package/dist/components/popover/popover.vue.d.ts +13 -13
- package/dist/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/components/resizable/composables/useResizableGroup.d.ts.map +1 -1
- package/dist/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts +24 -13
- package/dist/components/split_button/split_button.vue.d.ts +18 -18
- package/dist/components/tooltip/tooltip.vue.d.ts +8 -8
- package/dist/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +149 -149
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.js +49 -48
- package/dist/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.js +43 -42
- package/dist/lib/combobox-with-popover/combobox-with-popover.js.map +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 +33 -33
- package/dist/lib/dropdown/dropdown.js.map +1 -1
- package/dist/lib/editor/editor.cjs +1 -1
- package/dist/lib/editor/editor.js +1 -1
- package/dist/lib/hovercard/hovercard.cjs +1 -1
- package/dist/lib/hovercard/hovercard.cjs.map +1 -1
- package/dist/lib/hovercard/hovercard.js +28 -27
- package/dist/lib/hovercard/hovercard.js.map +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 +6 -6
- package/dist/lib/input/input.js.map +1 -1
- package/dist/lib/message-input/index.cjs +1 -1
- package/dist/lib/message-input/index.js +1 -1
- package/dist/lib/message-input/message-input.cjs +1 -1
- package/dist/lib/message-input/message-input.js +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 +61 -58
- package/dist/lib/modal/modal.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 +76 -75
- package/dist/lib/popover/popover.js.map +1 -1
- package/dist/lib/resizable/index.cjs +1 -1
- package/dist/lib/resizable/index.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/index.cjs +1 -1
- package/dist/lib/rich-text-editor/index.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/tooltip/tooltip.cjs +2 -2
- package/dist/lib/tooltip/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip/tooltip.js +30 -29
- package/dist/lib/tooltip/tooltip.js.map +1 -1
- package/dist/{message_input-B47LB7C8.js → message_input-B2fppje7.js} +2 -2
- package/dist/{message_input-B47LB7C8.js.map → message_input-B2fppje7.js.map} +1 -1
- package/dist/{message_input-BCIq_1AD.cjs → message_input-DmLi63dh.cjs} +2 -2
- package/dist/{message_input-BCIq_1AD.cjs.map → message_input-DmLi63dh.cjs.map} +1 -1
- package/dist/recipes/buttons/callbar_button/callbar_button.vue.d.ts +8 -8
- package/dist/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +26 -26
- package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +21 -21
- package/dist/recipes/cards/ivr_node/ivr_node.vue.d.ts +18 -18
- package/dist/recipes/conversation_view/editor/EditorToolbarDropdownButton.vue.d.ts +18 -18
- package/dist/recipes/conversation_view/editor/EditorToolbarPopoverButton.vue.d.ts +13 -13
- package/dist/recipes/conversation_view/editor/editor.vue.d.ts +63 -52
- package/dist/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +8 -8
- package/dist/recipes/conversation_view/message_input/message_input.vue.d.ts +94 -50
- package/dist/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/message_input/message_input_button.vue.d.ts +8 -8
- package/dist/recipes/conversation_view/message_input/message_input_link.vue.d.ts +32 -21
- package/dist/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +8 -8
- package/dist/recipes/leftbar/contact_row/contact_row.vue.d.ts +8 -8
- package/dist/recipes/leftbar/general_row/general_row.vue.d.ts +8 -8
- package/dist/recipes/leftbar/group_row/group_row.vue.d.ts +8 -8
- package/dist/{resizable-aOVGO_Os.cjs → resizable-BOCf9EIc.cjs} +2 -2
- package/dist/{resizable-aOVGO_Os.cjs.map → resizable-BOCf9EIc.cjs.map} +1 -1
- package/dist/{resizable-D4-peBOl.js → resizable-CPaF9dgG.js} +7 -3
- package/dist/{resizable-D4-peBOl.js.map → resizable-CPaF9dgG.js.map} +1 -1
- package/dist/{rich_text_editor-CNFb6tIx.js → rich_text_editor-BhUKyR0E.js} +2 -2
- package/dist/{rich_text_editor-CNFb6tIx.js.map → rich_text_editor-BhUKyR0E.js.map} +1 -1
- package/dist/{rich_text_editor-DRytK1_9.cjs → rich_text_editor-wvONcbYd.cjs} +2 -2
- package/dist/{rich_text_editor-DRytK1_9.cjs.map → rich_text_editor-wvONcbYd.cjs.map} +1 -1
- package/package.json +3 -3
package/dist/dialtone-vue.js
CHANGED
|
@@ -1,200 +1,200 @@
|
|
|
1
1
|
import ee from "./common/mixins/dom.js";
|
|
2
|
-
import { DEFAULT_PREFIX as te, DEFAULT_VALIDATION_MESSAGE_TYPE as ne, DESCRIPTION_SIZE_MODIFIERS as re, DESCRIPTION_SIZE_TYPES as ie, EVENT_KEYNAMES as e,
|
|
3
|
-
import { validationMessageValidator as
|
|
4
|
-
import { addClassStyleAttrs as
|
|
5
|
-
import { CheckableMixin as
|
|
6
|
-
import
|
|
7
|
-
import { InputGroupMixin as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { SKELETON_HEADING_HEIGHTS as
|
|
11
|
-
import
|
|
12
|
-
import { durationInHHMM as
|
|
13
|
-
import { codeToEmojiData as
|
|
14
|
-
import { PRESENCE_STATES as
|
|
15
|
-
import
|
|
16
|
-
import { AVATAR_COLORS as
|
|
17
|
-
import { ICON_NAMES as
|
|
18
|
-
import
|
|
19
|
-
import { BADGE_DECORATION_MODIFIERS as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { NOTICE_KINDS as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { BUTTON_ICON_SIZES as
|
|
27
|
-
import { DANGER as
|
|
28
|
-
import
|
|
29
|
-
import { DialtoneLocalization as
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
2
|
+
import { DEFAULT_PREFIX as te, DEFAULT_VALIDATION_MESSAGE_TYPE as ne, DESCRIPTION_SIZE_MODIFIERS as re, DESCRIPTION_SIZE_TYPES as ie, EVENT_KEYNAMES as e, HTML_ELEMENT_TYPE as t, LABEL_SIZE_MODIFIERS as n, VALIDATION_MESSAGE_TYPES as r } from "./common/constants/index.js";
|
|
3
|
+
import { validationMessageValidator as i } from "./common/validators/index.js";
|
|
4
|
+
import { addClassStyleAttrs as a, capitalizeFirstLetter as o, debounce as s, disableRootScrolling as c, enableRootScrolling as l, extractNonListeners as u, extractVueListeners as d, filterFormattedMessages as f, findFirstFocusableNode as p, flushPromises as m, formatMessages as h, getPhoneNumberRegex as g, getRandomElement as _, getRandomInt as v, getUniqueString as y, getValidationState as b, hasFormattedMessageOfType as x, hasSlotContent as S, htmlFragment as C, isEmailAddress as w, isOutOfViewPort as T, isPhoneNumber as E, isURL as D, javaHashCode as O, kebabCaseToPascalCase as k, linkRegex as A, pascalCaseToKebabCase as j, removeClassStyleAttrs as M, returnFirstEl as N, safeConcatStrings as P, toFluentKeyString as F, warnIfUnmounted as I } from "./common/utils/index.js";
|
|
5
|
+
import { CheckableMixin as L, GroupableMixin as R, InputMixin as z } from "./common/mixins/input.js";
|
|
6
|
+
import B from "./lib/validation-messages/validation-messages.js";
|
|
7
|
+
import { InputGroupMixin as V } from "./common/mixins/input-group.js";
|
|
8
|
+
import H from "./common/mixins/keyboard-list-navigation.js";
|
|
9
|
+
import U from "./common/mixins/modal.js";
|
|
10
|
+
import { SKELETON_HEADING_HEIGHTS as W, SKELETON_RIPPLE_DURATION as G, SKELETON_SHAPES as K, SKELETON_SHAPE_SIZES as q, SKELETON_TEXT_TYPES as J } from "./lib/skeleton/skeleton-constants.js";
|
|
11
|
+
import Y from "./common/mixins/skeleton.js";
|
|
12
|
+
import { durationInHHMM as ae, getDateMedium as oe, relativeDate as se, setDateLocale as ce } from "./common/dates/index.js";
|
|
13
|
+
import { codeToEmojiData as le, customEmojiAssetUrl as ue, defaultEmojiAssetUrl as de, emojiFileExtensionLarge as fe, emojiFileExtensionSmall as pe, emojiImageUrlLarge as me, emojiImageUrlSmall as he, emojiJson as ge, emojiRegex as _e, emojiShortCodeRegex as ve, emojiVersion as ye, filterValidShortCodes as be, findEmojis as xe, findShortCodes as Se, getEmojiData as Ce, getEmojiShortCode as we, setCustomEmojiJson as Te, setCustomEmojiUrl as Ee, setEmojiAssetUrlLarge as De, setEmojiAssetUrlSmall as Oe, shortcodeToEmojiData as ke, stringToUnicode as Ae, unicodeToString as je, validateCustomEmojiJson as Me } from "./common/emoji/index.js";
|
|
14
|
+
import { PRESENCE_STATES as Ne, PRESENCE_STATES_LIST as Pe } from "./lib/presence/presence-constants.js";
|
|
15
|
+
import Fe from "./lib/presence/presence.js";
|
|
16
|
+
import { AVATAR_COLORS as Ie, AVATAR_GROUP_VALIDATOR as Le, AVATAR_ICON_SIZES as Re, AVATAR_KIND_MODIFIERS as ze, AVATAR_PRESENCE_SIZE_MODIFIERS as Be, AVATAR_PRESENCE_STATES as Ve, AVATAR_RANDOM_COLORS as He, AVATAR_SIZE_MODIFIERS as Ue } from "./lib/avatar/avatar-constants.js";
|
|
17
|
+
import { ICON_NAMES as We, ICON_SIZE_MODIFIERS as Ge } from "./lib/icon/icon-constants.js";
|
|
18
|
+
import Ke from "./lib/avatar/avatar.js";
|
|
19
|
+
import { BADGE_DECORATION_MODIFIERS as qe, BADGE_KIND_MODIFIERS as Je, BADGE_TYPE_MODIFIERS as Ye } from "./lib/badge/badge-constants.js";
|
|
20
|
+
import Xe from "./lib/icon/icon.js";
|
|
21
|
+
import Ze from "./lib/badge/badge.js";
|
|
22
|
+
import { NOTICE_KINDS as Qe, NOTICE_ROLES as $e } from "./lib/notice/notice-constants.js";
|
|
23
|
+
import et from "./lib/notice/notice-icon.js";
|
|
24
|
+
import tt from "./lib/notice/notice-content.js";
|
|
25
|
+
import nt from "./lib/loader/loader.js";
|
|
26
|
+
import { BUTTON_ICON_SIZES as rt, BUTTON_IMPORTANCE_MODIFIERS as it, BUTTON_KIND_MODIFIERS as at, BUTTON_SIZE_MODIFIERS as ot, BUTTON_TYPES as st, ICON_POSITION_MODIFIERS as ct, INVALID_COMBINATION as lt } from "./lib/button/button-constants.js";
|
|
27
|
+
import { DANGER as ut, LINK_KIND_MODIFIERS as dt, LINK_VARIANTS as ft, MENTION as pt, MUTED as mt, SUCCESS as ht, WARNING as gt, getLinkKindModifier as _t } from "./lib/link/link-constants.js";
|
|
28
|
+
import vt from "./lib/link/link.js";
|
|
29
|
+
import { DialtoneLocalization as yt } from "./localization/index.js";
|
|
30
|
+
import bt from "./lib/button/button.js";
|
|
31
|
+
import xt from "./lib/notice/notice-action.js";
|
|
32
|
+
import St from "./lib/notice/notice.js";
|
|
33
|
+
import Ct from "./lib/banner/banner.js";
|
|
34
34
|
import "./lib/banner/index.js";
|
|
35
|
-
import { BREADCRUMBS_INVERTED_MODIFIER as
|
|
36
|
-
import
|
|
37
|
-
import
|
|
35
|
+
import { BREADCRUMBS_INVERTED_MODIFIER as wt, BREADCRUMB_ITEM_SELECTED_MODIFIER as Tt } from "./lib/breadcrumbs/breadcrumbs-constants.js";
|
|
36
|
+
import Et from "./lib/breadcrumbs/breadcrumb-item.js";
|
|
37
|
+
import Dt from "./lib/breadcrumbs/breadcrumbs.js";
|
|
38
38
|
import "./lib/breadcrumbs/index.js";
|
|
39
|
-
import { BUTTON_GROUP_ALIGNMENT as
|
|
40
|
-
import
|
|
39
|
+
import { BUTTON_GROUP_ALIGNMENT as Ot } from "./lib/button-group/button-group-constants.js";
|
|
40
|
+
import kt from "./lib/button-group/button-group.js";
|
|
41
41
|
import "./lib/button-group/index.js";
|
|
42
|
-
import
|
|
43
|
-
import
|
|
42
|
+
import At from "./lib/card/card.js";
|
|
43
|
+
import jt from "./lib/checkbox/checkbox.js";
|
|
44
44
|
import "./lib/checkbox/index.js";
|
|
45
|
-
import
|
|
46
|
-
import
|
|
45
|
+
import Mt from "./lib/input-group/input-group.js";
|
|
46
|
+
import Nt from "./lib/checkbox-group/checkbox-group.js";
|
|
47
47
|
import "./lib/checkbox-group/index.js";
|
|
48
|
-
import { CHIP_CLOSE_BUTTON_SIZE_MODIFIERS as
|
|
49
|
-
import
|
|
50
|
-
import
|
|
48
|
+
import { CHIP_CLOSE_BUTTON_SIZE_MODIFIERS as Pt, CHIP_ICON_SIZES as Ft, CHIP_SIZE_MODIFIERS as It } from "./lib/chip/chip-constants.js";
|
|
49
|
+
import Lt from "./lib/chip/chip.js";
|
|
50
|
+
import Rt from "./lib/codeblock/codeblock.js";
|
|
51
51
|
import "./lib/codeblock/index.js";
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import { LIST_ITEM_NAVIGATION_TYPES as
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import { t as
|
|
63
|
-
import { COMBOBOX_LABEL_SIZES as
|
|
64
|
-
import { DT_STACK_DIRECTION as
|
|
65
|
-
import
|
|
66
|
-
import { TOOLTIP_DELAY_MS as
|
|
67
|
-
import { POPOVER_APPEND_TO_VALUES as
|
|
68
|
-
import
|
|
69
|
-
import { t as
|
|
70
|
-
import { formatLong as
|
|
52
|
+
import zt from "./lib/lazy-show/lazy-show.js";
|
|
53
|
+
import Bt from "./lib/collapsible/collapsible.js";
|
|
54
|
+
import { LIST_ITEM_NAVIGATION_TYPES as Vt, LIST_ITEM_TYPES as Ht } from "./lib/list-item/list-item-constants.js";
|
|
55
|
+
import Ut from "./lib/item-layout/item-layout.js";
|
|
56
|
+
import Wt from "./lib/list-item/list-item.js";
|
|
57
|
+
import Gt from "./lib/skeleton/skeleton-shape.js";
|
|
58
|
+
import Kt from "./lib/skeleton/skeleton-text.js";
|
|
59
|
+
import qt from "./lib/skeleton/skeleton-paragraph.js";
|
|
60
|
+
import Jt from "./lib/skeleton/skeleton-list-item.js";
|
|
61
|
+
import Yt from "./lib/skeleton/skeleton.js";
|
|
62
|
+
import { t as Xt } from "./combobox-DgClbLOg.js";
|
|
63
|
+
import { COMBOBOX_LABEL_SIZES as Zt } from "./lib/combobox/combobox-constants.js";
|
|
64
|
+
import { DT_STACK_DIRECTION as Qt, DT_STACK_GAP as $t, DT_STACK_RESPONSIVE_BREAKPOINTS as en } from "./lib/stack/stack-constants.js";
|
|
65
|
+
import tn from "./lib/stack/stack.js";
|
|
66
|
+
import { TOOLTIP_DELAY_MS as nn, TOOLTIP_DIRECTIONS as rn, TOOLTIP_HIDE_ON_CLICK_VARIANTS as an, TOOLTIP_KIND_MODIFIERS as on, TOOLTIP_STICKY_VALUES as sn } from "./lib/tooltip/tooltip-constants.js";
|
|
67
|
+
import { POPOVER_APPEND_TO_VALUES as cn, POPOVER_CONTENT_WIDTHS as ln, POPOVER_DIRECTIONS as un, POPOVER_HEADER_FOOTER_PADDING_CLASSES as dn, POPOVER_INITIAL_FOCUS_STRINGS as fn, POPOVER_PADDING_CLASSES as pn, POPOVER_ROLES as mn, POPOVER_STICKY_VALUES as X } from "./lib/popover/popover-constants.js";
|
|
68
|
+
import hn from "./lib/tooltip/tooltip.js";
|
|
69
|
+
import { t as gn } from "./datepicker-LVDRC6Lf.js";
|
|
70
|
+
import { formatLong as _n, formatMedium as vn, formatNoYear as yn, formatNumerical as bn, formatShort as xn } from "./lib/datepicker/formatUtils.js";
|
|
71
71
|
import "./lib/datepicker/index.js";
|
|
72
|
-
import { DT_DESCRIPTION_LIST_DIRECTION as
|
|
73
|
-
import
|
|
72
|
+
import { DT_DESCRIPTION_LIST_DIRECTION as Sn } from "./lib/description-list/description-list-constants.js";
|
|
73
|
+
import Cn from "./lib/description-list/description-list.js";
|
|
74
74
|
import "./lib/description-list/index.js";
|
|
75
|
-
import
|
|
76
|
-
import { DROPDOWN_PADDING_CLASSES as
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import { INPUT_SIZES as
|
|
81
|
-
import
|
|
82
|
-
import { t as
|
|
83
|
-
import { TAB_IMPORTANCE_MODIFIERS as
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import { ARROW_KEYS as
|
|
88
|
-
import
|
|
89
|
-
import { EMPTY_STATE_SIZE_MODIFIERS as
|
|
90
|
-
import
|
|
75
|
+
import wn from "./lib/popover/popover.js";
|
|
76
|
+
import { DROPDOWN_PADDING_CLASSES as Tn } from "./lib/dropdown/dropdown-constants.js";
|
|
77
|
+
import En from "./lib/dropdown/dropdown.js";
|
|
78
|
+
import Dn from "./lib/dropdown/dropdown-separator.js";
|
|
79
|
+
import On from "./lib/emoji/emoji.js";
|
|
80
|
+
import { INPUT_SIZES as kn, INPUT_TYPES as An } from "./lib/input/input-constants.js";
|
|
81
|
+
import jn from "./lib/input/input.js";
|
|
82
|
+
import { t as Mn } from "./emoji_picker-tVHfpHDk.js";
|
|
83
|
+
import { TAB_IMPORTANCE_MODIFIERS as Nn, TAB_LIST_IMPORTANCE_MODIFIERS as Pn, TAB_LIST_KIND_MODIFIERS as Fn, TAB_LIST_SIZES as In } from "./lib/tab/tabs-constants.js";
|
|
84
|
+
import Ln from "./lib/tab/tab-group.js";
|
|
85
|
+
import Rn from "./lib/tab/tab.js";
|
|
86
|
+
import zn from "./lib/tab/tab-panel.js";
|
|
87
|
+
import { ARROW_KEYS as Bn, CDN_URL as Vn, EMOJIS_PER_ROW as Hn, EMOJI_PICKER_SKIN_TONE_MODIFIERS as Un } from "./lib/emoji-picker/emoji-picker-constants.js";
|
|
88
|
+
import Wn from "./lib/emoji-text-wrapper/emoji-text-wrapper.js";
|
|
89
|
+
import { EMPTY_STATE_SIZE_MODIFIERS as Gn } from "./lib/empty-state/empty-state-constants.js";
|
|
90
|
+
import Kn from "./lib/empty-state/empty-state.js";
|
|
91
91
|
import "./lib/empty-state/index.js";
|
|
92
|
-
import
|
|
92
|
+
import qn from "./lib/hovercard/hovercard.js";
|
|
93
93
|
import "./lib/hovercard/index.js";
|
|
94
|
-
import { ILLUSTRATION_NAMES as
|
|
95
|
-
import
|
|
94
|
+
import { ILLUSTRATION_NAMES as Jn } from "./lib/illustration/illustration-constants.js";
|
|
95
|
+
import Yn from "./lib/illustration/illustration.js";
|
|
96
96
|
import "./lib/illustration/index.js";
|
|
97
|
-
import
|
|
98
|
-
import
|
|
99
|
-
import { SHORTCUTS_ALIASES_LIST as
|
|
100
|
-
import
|
|
97
|
+
import Xn from "./lib/image-viewer/image-viewer.js";
|
|
98
|
+
import Zn from "./lib/keyboard-shortcut/keyboard-shortcut.js";
|
|
99
|
+
import { SHORTCUTS_ALIASES_LIST as Qn } from "./lib/keyboard-shortcut/keyboard-shortcut-constants.js";
|
|
100
|
+
import $n from "./lib/list-item-group/list-item-group.js";
|
|
101
101
|
import "./lib/loader/index.js";
|
|
102
|
-
import { MODAL_BANNER_KINDS as
|
|
103
|
-
import
|
|
102
|
+
import { MODAL_BANNER_KINDS as er, MODAL_KIND_MODIFIERS as tr, MODAL_SIZE_MODIFIERS as nr } from "./lib/modal/modal-constants.js";
|
|
103
|
+
import rr from "./lib/modal/modal.js";
|
|
104
104
|
import "./lib/modal/index.js";
|
|
105
|
-
import
|
|
105
|
+
import ir from "./lib/pagination/pagination.js";
|
|
106
106
|
import "./lib/pagination/index.js";
|
|
107
|
-
import { PROGRESS_CIRCLE_KINDS as
|
|
108
|
-
import
|
|
109
|
-
import { RADIO_INPUT_VALIDATION_CLASSES as
|
|
110
|
-
import
|
|
107
|
+
import { PROGRESS_CIRCLE_KINDS as ar, PROGRESS_CIRCLE_KIND_DEFAULT as or, PROGRESS_CIRCLE_SIZES as sr, PROGRESS_CIRCLE_SIZE_DEFAULT as cr } from "./lib/progress-circle/progress-circle-constants.js";
|
|
108
|
+
import lr from "./lib/progress-circle/progress-circle.js";
|
|
109
|
+
import { RADIO_INPUT_VALIDATION_CLASSES as ur } from "./lib/radio/radio-constants.js";
|
|
110
|
+
import dr from "./lib/radio/radio.js";
|
|
111
111
|
import "./lib/radio/index.js";
|
|
112
|
-
import
|
|
112
|
+
import fr from "./lib/radio-group/radio-group.js";
|
|
113
113
|
import "./lib/radio-group/index.js";
|
|
114
|
-
import { a as
|
|
115
|
-
import { t as
|
|
116
|
-
import { t as
|
|
117
|
-
import
|
|
114
|
+
import { a as pr, c as mr, d as hr, f as gr, i as _r, l as vr, n as yr, o as br, r as xr, s as Sr, t as Cr, u as wr } from "./resizable_utils-BComtrMV.js";
|
|
115
|
+
import { t as Tr } from "./resizable-CPaF9dgG.js";
|
|
116
|
+
import { t as Er } from "./resizable_handle-BlKBiWnx.js";
|
|
117
|
+
import Dr from "./lib/resizable/resizable-panel.js";
|
|
118
118
|
import "./lib/resizable/index.js";
|
|
119
|
-
import { t as
|
|
120
|
-
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as
|
|
121
|
-
import { ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS as
|
|
122
|
-
import
|
|
119
|
+
import { t as Or } from "./rich_text_editor-BhUKyR0E.js";
|
|
120
|
+
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as kr, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Ar } from "./lib/rich-text-editor/rich-text-editor-constants.js";
|
|
121
|
+
import { ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS as jr, ROOT_LAYOUT_SIDEBAR_POSITIONS as Mr } from "./lib/root-layout/root-layout-constants.js";
|
|
122
|
+
import Nr from "./lib/root-layout/root-layout.js";
|
|
123
123
|
import "./lib/root-layout/index.js";
|
|
124
|
-
import { t as
|
|
124
|
+
import { t as Pr } from "./scroller-BGVDh3sq.js";
|
|
125
125
|
import "./lib/scroller/index.js";
|
|
126
|
-
import { SELECT_SIZE_MODIFIERS as
|
|
127
|
-
import
|
|
126
|
+
import { SELECT_SIZE_MODIFIERS as Fr, SELECT_STATE_MODIFIERS as Ir } from "./lib/select-menu/select-menu-constants.js";
|
|
127
|
+
import Lr from "./lib/select-menu/select-menu.js";
|
|
128
128
|
import "./lib/select-menu/index.js";
|
|
129
|
-
import { SPLIT_BUTTON_ICON_SIZES as
|
|
130
|
-
import
|
|
129
|
+
import { SPLIT_BUTTON_ICON_SIZES as Rr } from "./lib/split-button/split-button-constants.js";
|
|
130
|
+
import zr from "./lib/split-button/split-button.js";
|
|
131
131
|
import "./lib/split-button/index.js";
|
|
132
|
-
import { TOAST_MIN_DURATION as
|
|
133
|
-
import { t as
|
|
132
|
+
import { TOAST_MIN_DURATION as Br, TOAST_ROLES as Vr } from "./lib/toast/toast-constants.js";
|
|
133
|
+
import { t as Hr } from "./toast-DvPN-bCi.js";
|
|
134
134
|
import "./lib/toast/index.js";
|
|
135
|
-
import { TOGGLE_CHECKED_VALUES as
|
|
136
|
-
import
|
|
135
|
+
import { TOGGLE_CHECKED_VALUES as Ur, TOGGLE_SIZE_MODIFIERS as Wr } from "./lib/toggle/toggle-constants.js";
|
|
136
|
+
import Gr from "./lib/toggle/toggle.js";
|
|
137
137
|
import "./lib/toggle/index.js";
|
|
138
138
|
import Z from "./lib/combobox-with-popover/combobox-with-popover.js";
|
|
139
|
-
import { CHIP_SIZES as
|
|
139
|
+
import { CHIP_SIZES as Kr, CHIP_TOP_POSITION as qr, MULTI_SELECT_SIZES as Jr } from "./lib/combobox-multi-select/combobox-multi-select-constants.js";
|
|
140
140
|
import Q from "./lib/combobox-multi-select/combobox-multi-select.js";
|
|
141
141
|
import "./lib/combobox-multi-select/index.js";
|
|
142
142
|
import "./lib/combobox-with-popover/index.js";
|
|
143
|
-
import { DtTooltipDirective as
|
|
143
|
+
import { DtTooltipDirective as Yr } from "./lib/tooltip-directive/tooltip.js";
|
|
144
144
|
import "./lib/tooltip-directive/index.js";
|
|
145
|
-
import { DtScrollbarDirective as
|
|
145
|
+
import { DtScrollbarDirective as Xr } from "./lib/scrollbar-directive/scrollbar.js";
|
|
146
146
|
import "./lib/scrollbar-directive/index.js";
|
|
147
|
-
import { CALLBAR_BUTTON_VALID_WIDTH_SIZE as
|
|
148
|
-
import
|
|
149
|
-
import
|
|
147
|
+
import { CALLBAR_BUTTON_VALID_WIDTH_SIZE as Zr } from "./lib/callbar-button/callbar-button-constants.js";
|
|
148
|
+
import Qr from "./lib/callbar-button/callbar-button.js";
|
|
149
|
+
import $r from "./lib/callbar-button-with-popover/callbar-button-with-popover.js";
|
|
150
150
|
import "./lib/callbar-button-with-popover/index.js";
|
|
151
|
-
import
|
|
151
|
+
import ei from "./lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js";
|
|
152
152
|
import "./lib/callbar-button-with-dropdown/index.js";
|
|
153
|
-
import { IVR_NODE_ASSIGN as
|
|
154
|
-
import
|
|
153
|
+
import { IVR_NODE_ASSIGN as ti, IVR_NODE_BRANCH as ni, IVR_NODE_CUSTOMER_DATA as ri, IVR_NODE_EXPERT as ii, IVR_NODE_GO_TO as ai, IVR_NODE_HANGUP as oi, IVR_NODE_ICON_TYPES as si, IVR_NODE_LABELS as ci, IVR_NODE_PROMPT_COLLECT as li, IVR_NODE_PROMPT_MENU as ui, IVR_NODE_PROMPT_PLAY as di, IVR_NODE_TRANSFER as fi } from "./lib/ivr-node/ivr-node-constants.js";
|
|
154
|
+
import pi from "./lib/ivr-node/ivr-node.js";
|
|
155
155
|
import "./lib/ivr-node/index.js";
|
|
156
|
-
import
|
|
156
|
+
import mi from "./lib/grouped-chip/grouped-chip.js";
|
|
157
157
|
import "./lib/grouped-chip/index.js";
|
|
158
|
-
import { t as
|
|
158
|
+
import { t as hi } from "./attachment_carousel-CouFqFMw.js";
|
|
159
159
|
import "./lib/attachment-carousel/index.js";
|
|
160
|
-
import
|
|
160
|
+
import gi from "./lib/editor/editor.js";
|
|
161
161
|
import "./lib/editor/index.js";
|
|
162
|
-
import { REACTIONS_ATTRIBUTES as
|
|
163
|
-
import
|
|
162
|
+
import { REACTIONS_ATTRIBUTES as _i } from "./lib/emoji-row/emoji-row-constants.js";
|
|
163
|
+
import vi from "./lib/emoji-row/emoji-row.js";
|
|
164
164
|
import "./lib/emoji-row/index.js";
|
|
165
|
-
import { FEED_ITEM_PILL_BORDER_COLORS as
|
|
166
|
-
import
|
|
165
|
+
import { FEED_ITEM_PILL_BORDER_COLORS as yi } from "./lib/feed-item-pill/feed-item-pill-constants.js";
|
|
166
|
+
import bi from "./lib/feed-item-pill/feed-item-pill.js";
|
|
167
167
|
import "./lib/feed-item-pill/index.js";
|
|
168
|
-
import { DEFAULT_FEED_ROW_STATE as
|
|
169
|
-
import
|
|
168
|
+
import { DEFAULT_FEED_ROW_STATE as xi, FEED_ROW_STATE_BACKGROUND_COLOR as Si } from "./lib/feed-item-row/feed-item-row-constants.js";
|
|
169
|
+
import Ci from "./lib/feed-item-row/feed-item-row.js";
|
|
170
170
|
import "./lib/feed-item-row/index.js";
|
|
171
|
-
import { t as
|
|
171
|
+
import { t as wi } from "./message_input-B2fppje7.js";
|
|
172
172
|
import "./lib/message-input/index.js";
|
|
173
|
-
import
|
|
173
|
+
import Ti from "./lib/time-pill/time-pill.js";
|
|
174
174
|
import "./lib/time-pill/index.js";
|
|
175
|
-
import
|
|
175
|
+
import Ei from "./lib/settings-menu-button/settings-menu-button.js";
|
|
176
176
|
import "./lib/settings-menu-button/index.js";
|
|
177
|
-
import
|
|
177
|
+
import Di from "./lib/contact-info/contact-info.js";
|
|
178
178
|
import "./lib/contact-info/index.js";
|
|
179
|
-
import { CALLBOX_BADGE_COLORS as
|
|
180
|
-
import
|
|
179
|
+
import { CALLBOX_BADGE_COLORS as Oi, CALLBOX_BORDER_COLORS as ki } from "./lib/callbox/callbox-constants.js";
|
|
180
|
+
import Ai from "./lib/callbox/callbox.js";
|
|
181
181
|
import "./lib/callbox/index.js";
|
|
182
|
-
import
|
|
182
|
+
import ji from "./lib/contact-centers-row/contact-centers-row.js";
|
|
183
183
|
import "./lib/contact-centers-row/index.js";
|
|
184
|
-
import { LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS as
|
|
185
|
-
import
|
|
186
|
-
import
|
|
187
|
-
import
|
|
184
|
+
import { LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS as Mi, LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR as Ni, LEFTBAR_GENERAL_ROW_ICON_SIZES as Pi, LEFTBAR_GENERAL_ROW_TYPES as Fi } from "./lib/general-row/general-row-constants.js";
|
|
185
|
+
import Ii from "./lib/general-row/leftbar-general-row-icon.js";
|
|
186
|
+
import Li from "./lib/general-row/general-row.js";
|
|
187
|
+
import Ri from "./lib/contact-row/contact-row.js";
|
|
188
188
|
import "./lib/contact-row/index.js";
|
|
189
|
-
import
|
|
189
|
+
import zi from "./lib/group-row/group-row.js";
|
|
190
190
|
import "./lib/group-row/index.js";
|
|
191
|
-
import { UNREAD_PILL_DIRECTIONS as
|
|
192
|
-
import
|
|
191
|
+
import { UNREAD_PILL_DIRECTIONS as Bi, UNREAD_PILL_KINDS as Vi } from "./lib/unread-pill/unread-pill-constants.js";
|
|
192
|
+
import Hi from "./lib/unread-pill/unread-pill.js";
|
|
193
193
|
import "./lib/unread-pill/index.js";
|
|
194
|
-
import { MOTION_TEXT_ANIMATION_MODES as
|
|
194
|
+
import { MOTION_TEXT_ANIMATION_MODES as Ui, MOTION_TEXT_SPEEDS as Wi, MOTION_TEXT_TIMING_PRESETS as Gi } from "./lib/motion-text/motion-text-constants.js";
|
|
195
195
|
import $ from "./lib/motion-text/motion-text.js";
|
|
196
196
|
import "./lib/motion-text/index.js";
|
|
197
|
-
import { COLOR_CODES as
|
|
198
|
-
import
|
|
197
|
+
import { COLOR_CODES as Ki } from "./lib/top-banner-info/top-banner-info-constants.js";
|
|
198
|
+
import qi from "./lib/top-banner-info/top-banner-info.js";
|
|
199
199
|
import "./lib/top-banner-info/index.js";
|
|
200
|
-
export {
|
|
200
|
+
export { Bn as ARROW_KEYS, Ie as AVATAR_COLORS, Le as AVATAR_GROUP_VALIDATOR, Re as AVATAR_ICON_SIZES, ze as AVATAR_KIND_MODIFIERS, Be as AVATAR_PRESENCE_SIZE_MODIFIERS, Ve as AVATAR_PRESENCE_STATES, He as AVATAR_RANDOM_COLORS, Ue as AVATAR_SIZE_MODIFIERS, qe as BADGE_DECORATION_MODIFIERS, Je as BADGE_KIND_MODIFIERS, Ye as BADGE_TYPE_MODIFIERS, wt as BREADCRUMBS_INVERTED_MODIFIER, Tt as BREADCRUMB_ITEM_SELECTED_MODIFIER, Ot as BUTTON_GROUP_ALIGNMENT, rt as BUTTON_ICON_SIZES, it as BUTTON_IMPORTANCE_MODIFIERS, at as BUTTON_KIND_MODIFIERS, ot as BUTTON_SIZE_MODIFIERS, st as BUTTON_TYPES, Zr as CALLBAR_BUTTON_VALID_WIDTH_SIZE, Oi as CALLBOX_BADGE_COLORS, ki as CALLBOX_BORDER_COLORS, Vn as CDN_URL, Pt as CHIP_CLOSE_BUTTON_SIZE_MODIFIERS, Ft as CHIP_ICON_SIZES, Kr as CHIP_SIZES, It as CHIP_SIZE_MODIFIERS, qr as CHIP_TOP_POSITION, Ki as COLOR_CODES, Zt as COMBOBOX_LABEL_SIZES, ut as DANGER, xi as DEFAULT_FEED_ROW_STATE, vr as DEFAULT_PANEL_SIZE, te as DEFAULT_PREFIX, ne as DEFAULT_VALIDATION_MESSAGE_TYPE, re as DESCRIPTION_SIZE_MODIFIERS, ie as DESCRIPTION_SIZE_TYPES, Tn as DROPDOWN_PADDING_CLASSES, Sn as DT_DESCRIPTION_LIST_DIRECTION, Qt as DT_STACK_DIRECTION, $t as DT_STACK_GAP, en as DT_STACK_RESPONSIVE_BREAKPOINTS, yt as DialtoneLocalization, Ke as DtAvatar, Ze as DtBadge, Ct as DtBanner, Et as DtBreadcrumbItem, Dt as DtBreadcrumbs, bt as DtButton, kt as DtButtonGroup, At as DtCard, L as DtCheckableInputMixin, jt as DtCheckbox, Nt as DtCheckboxGroup, Lt as DtChip, Rt as DtCodeblock, Bt as DtCollapsible, Xt as DtCombobox, Q as DtComboboxMultiSelect, Q as DtRecipeComboboxMultiSelect, Z as DtComboboxWithPopover, Z as DtRecipeComboboxWithPopover, ee as DtDOMMixin, gn as DtDatepicker, Cn as DtDescriptionList, En as DtDropdown, Dn as DtDropdownSeparator, On as DtEmoji, Mn as DtEmojiPicker, Wn as DtEmojiTextWrapper, Kn as DtEmptyState, R as DtGroupableInputMixin, qn as DtHovercard, Xe as DtIcon, Yn as DtIllustration, Xn as DtImageViewer, jn as DtInput, Mt as DtInputGroup, V as DtInputGroupMixin, z as DtInputMixin, Ut as DtItemLayout, H as DtKeyboardListNavigationMixin, Zn as DtKeyboardShortcut, zt as DtLazyShow, vt as DtLink, Wt as DtListItem, $n as DtListItemGroup, nt as DtLoader, rr as DtModal, U as DtModalMixin, $ as DtMotionText, $ as DtRecipeMotionText, St as DtNotice, xt as DtNoticeAction, tt as DtNoticeContent, et as DtNoticeIcon, ir as DtPagination, wn as DtPopover, Fe as DtPresence, lr as DtProgressCircle, dr as DtRadio, fr as DtRadioGroup, hi as DtRecipeAttachmentCarousel, Qr as DtRecipeCallbarButton, ei as DtRecipeCallbarButtonWithDropdown, $r as DtRecipeCallbarButtonWithPopover, Ai as DtRecipeCallbox, ji as DtRecipeContactCentersRow, Di as DtRecipeContactInfo, Ri as DtRecipeContactRow, gi as DtRecipeEditor, vi as DtRecipeEmojiRow, bi as DtRecipeFeedItemPill, Ci as DtRecipeFeedItemRow, Li as DtRecipeGeneralRow, zi as DtRecipeGroupRow, mi as DtRecipeGroupedChip, pi as DtRecipeIvrNode, Ii as DtRecipeLeftbarGeneralRowIcon, wi as DtRecipeMessageInput, Ei as DtRecipeSettingsMenuButton, Ti as DtRecipeTimePill, qi as DtRecipeTopBannerInfo, Hi as DtRecipeUnreadPill, Tr as DtResizable, Er as DtResizableHandle, Dr as DtResizablePanel, Or as DtRichTextEditor, Nr as DtRootLayout, Xr as DtScrollbarDirective, Pr as DtScroller, Lr as DtSelectMenu, Yt as DtSkeleton, Jt as DtSkeletonListItem, Y as DtSkeletonMixin, qt as DtSkeletonParagraph, Gt as DtSkeletonShape, Kt as DtSkeletonText, zr as DtSplitButton, tn as DtStack, Rn as DtTab, Ln as DtTabGroup, zn as DtTabPanel, Hr as DtToast, Gr as DtToggle, hn as DtTooltip, Yr as DtTooltipDirective, B as DtValidationMessages, Hn as EMOJIS_PER_ROW, Un as EMOJI_PICKER_SKIN_TONE_MODIFIERS, Gn as EMPTY_STATE_SIZE_MODIFIERS, e as EVENT_KEYNAMES, yi as FEED_ITEM_PILL_BORDER_COLORS, Si as FEED_ROW_STATE_BACKGROUND_COLOR, t as HTML_ELEMENT_TYPE, We as ICON_NAMES, ct as ICON_POSITION_MODIFIERS, Ge as ICON_SIZE_MODIFIERS, Jn as ILLUSTRATION_NAMES, kn as INPUT_SIZES, An as INPUT_TYPES, lt as INVALID_COMBINATION, ti as IVR_NODE_ASSIGN, ni as IVR_NODE_BRANCH, ri as IVR_NODE_CUSTOMER_DATA, ii as IVR_NODE_EXPERT, ai as IVR_NODE_GO_TO, oi as IVR_NODE_HANGUP, si as IVR_NODE_ICON_TYPES, ci as IVR_NODE_LABELS, li as IVR_NODE_PROMPT_COLLECT, ui as IVR_NODE_PROMPT_MENU, di as IVR_NODE_PROMPT_PLAY, fi as IVR_NODE_TRANSFER, n as LABEL_SIZE_MODIFIERS, Mi as LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS, Ni as LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR, Pi as LEFTBAR_GENERAL_ROW_ICON_SIZES, Fi as LEFTBAR_GENERAL_ROW_TYPES, dt as LINK_KIND_MODIFIERS, ft as LINK_VARIANTS, Vt as LIST_ITEM_NAVIGATION_TYPES, Ht as LIST_ITEM_TYPES, pt as MENTION, wr as MIN_PANEL_SIZE_PX, er as MODAL_BANNER_KINDS, tr as MODAL_KIND_MODIFIERS, nr as MODAL_SIZE_MODIFIERS, Ui as MOTION_TEXT_ANIMATION_MODES, Wi as MOTION_TEXT_SPEEDS, Gi as MOTION_TEXT_TIMING_PRESETS, Jr as MULTI_SELECT_SIZES, mt as MUTED, Qe as NOTICE_KINDS, $e as NOTICE_ROLES, cn as POPOVER_APPEND_TO_VALUES, ln as POPOVER_CONTENT_WIDTHS, un as POPOVER_DIRECTIONS, dn as POPOVER_HEADER_FOOTER_PADDING_CLASSES, fn as POPOVER_INITIAL_FOCUS_STRINGS, pn as POPOVER_PADDING_CLASSES, mn as POPOVER_ROLES, X as POPOVER_STICKY_VALUES, Ne as PRESENCE_STATES, Pe as PRESENCE_STATES_LIST, ar as PROGRESS_CIRCLE_KINDS, or as PROGRESS_CIRCLE_KIND_DEFAULT, sr as PROGRESS_CIRCLE_SIZES, cr as PROGRESS_CIRCLE_SIZE_DEFAULT, ur as RADIO_INPUT_VALIDATION_CLASSES, _i as REACTIONS_ATTRIBUTES, hr as RESIZABLE_CONTEXT_KEY, kr as RICH_TEXT_EDITOR_AUTOFOCUS_TYPES, Ar as RICH_TEXT_EDITOR_OUTPUT_FORMATS, jr as ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS, Mr as ROOT_LAYOUT_SIDEBAR_POSITIONS, Fr as SELECT_SIZE_MODIFIERS, Ir as SELECT_STATE_MODIFIERS, Qn as SHORTCUTS_ALIASES_LIST, W as SKELETON_HEADING_HEIGHTS, G as SKELETON_RIPPLE_DURATION, K as SKELETON_SHAPES, q as SKELETON_SHAPE_SIZES, J as SKELETON_TEXT_TYPES, Rr as SPLIT_BUTTON_ICON_SIZES, ht as SUCCESS, Nn as TAB_IMPORTANCE_MODIFIERS, Pn as TAB_LIST_IMPORTANCE_MODIFIERS, Fn as TAB_LIST_KIND_MODIFIERS, In as TAB_LIST_SIZES, Br as TOAST_MIN_DURATION, Vr as TOAST_ROLES, Ur as TOGGLE_CHECKED_VALUES, Wr as TOGGLE_SIZE_MODIFIERS, nn as TOOLTIP_DELAY_MS, rn as TOOLTIP_DIRECTIONS, an as TOOLTIP_HIDE_ON_CLICK_VARIANTS, on as TOOLTIP_KIND_MODIFIERS, sn as TOOLTIP_STICKY_VALUES, Bi as UNREAD_PILL_DIRECTIONS, Vi as UNREAD_PILL_KINDS, r as VALIDATION_MESSAGE_TYPES, gt as WARNING, a as addClassStyleAttrs, gr as buildHandleId, o as capitalizeFirstLetter, le as codeToEmojiData, ue as customEmojiAssetUrl, s as debounce, de as defaultEmojiAssetUrl, c as disableRootScrolling, ae as durationInHHMM, fe as emojiFileExtensionLarge, pe as emojiFileExtensionSmall, me as emojiImageUrlLarge, he as emojiImageUrlSmall, ge as emojiJson, _e as emojiRegex, ve as emojiShortCodeRegex, ye as emojiVersion, l as enableRootScrolling, u as extractNonListeners, d as extractVueListeners, f as filterFormattedMessages, be as filterValidShortCodes, xe as findEmojis, p as findFirstFocusableNode, Se as findShortCodes, m as flushPromises, _n as formatLong, vn as formatMedium, h as formatMessages, yn as formatNoYear, bn as formatNumerical, xn as formatShort, oe as getDateMedium, Ce as getEmojiData, we as getEmojiShortCode, _t as getLinkKindModifier, g as getPhoneNumberRegex, _ as getRandomElement, v as getRandomInt, y as getUniqueString, b as getValidationState, x as hasFormattedMessageOfType, Cr as hasPercentageMinSize, S as hasSlotContent, C as htmlFragment, yr as invalidateTokenCache, xr as isCSSValue, w as isEmailAddress, T as isOutOfViewPort, _r as isPercentageValue, E as isPhoneNumber, D as isURL, pr as isValidSizing, O as javaHashCode, k as kebabCaseToPascalCase, A as linkRegex, br as parseSizeToPixels, j as pascalCaseToKebabCase, Sr as pixelsToPercentage, se as relativeDate, M as removeClassStyleAttrs, N as returnFirstEl, P as safeConcatStrings, Te as setCustomEmojiJson, Ee as setCustomEmojiUrl, ce as setDateLocale, De as setEmojiAssetUrlLarge, Oe as setEmojiAssetUrlSmall, ke as shortcodeToEmojiData, Ae as stringToUnicode, F as toFluentKeyString, je as unicodeToString, mr as validateContainerSize, Me as validateCustomEmojiJson, i as validationMessageValidator, I as warnIfUnmounted };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/validators/index.cjs`),t=require(`../../common/utils/index.cjs`),n=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),r=require(`../validation-messages/validation-messages.cjs`),i=require(`../chip/chip.cjs`),a=require(`../popover/popover-constants.cjs`),o=require(`../input/input.cjs`),s=require(`../combobox-with-popover/combobox-with-popover.cjs`),c=require(`./combobox-multi-select-constants.cjs`);let l=require(`vue`);var u={compatConfig:{MODE:3},name:`DtComboboxMultiSelect`,components:{DtComboboxWithPopover:s.default,DtInput:o.default,DtChip:i.default,DtValidationMessages:r.default},inheritAttrs:!1,props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},description:{type:String,default:``},placeholder:{type:String,default:`Select one or start typing`},inputMessages:{type:Array,default:()=>[],validator:t=>e.validationMessageValidator(t)},showInputMessages:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingMessage:{type:String,default:`loading...`},showList:{type:Boolean,default:null},listMaxHeight:{type:String,default:`300px`},selectedItems:{type:Array,default:function(){return[]}},maxSelected:{type:Number,default:0},maxSelectedMessage:{type:Array,default:function(){return[]}},hasSuggestionList:{type:Boolean,default:!0},size:{type:String,default:`md`,validator:e=>Object.values(c.MULTI_SELECT_SIZES).includes(e)},appendTo:{type:[HTMLElement,String],default:`body`,validator:e=>a.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},transition:{type:String,default:`fade`},collapseOnFocusOut:{type:Boolean,default:!1},listMaxWidth:{type:String,default:``},reservedRightSpace:{type:Number,default:64},chipMaxWidth:{type:String,default:``},inputClass:{type:[String,Object,Array],default:``},inputWrapperClass:{type:[String,Object,Array],default:``},disabled:{type:Boolean,default:!1},dialogClass:{type:[String,Object,Array],default:``}},emits:[`input`,`select`,`remove`,`max-selected`,`keydown`,`chip-keydown`,`escape`,`enter`,`combobox-highlight`],data(){return{value:``,popoverOffset:[0,4],showValidationMessages:!1,resizeWindowObserver:null,initialInputHeight:null,CHIP_SIZES:c.CHIP_SIZES,hasSlotContent:t.hasSlotContent,inputFocused:!1,hideInputText:!1}},computed:{inputPlaceHolder(){return this.selectedItems?.length>0?``:this.placeholder},chipListeners(){return{keydown:e=>{this.disabled||(this.onChipKeyDown(e),this.$emit(`chip-keydown`,e))}}},inputListeners(){return{...t.extractVueListeners(this.$attrs),onInput:e=>{this.$emit(`input`,e),this.hasSuggestionList&&this.showComboboxList()},onKeydown:e=>{if(this.disabled)return;this.onInputKeyDown(e),this.$emit(`keydown`,e);let t=e.key?.toLowerCase();t===`escape`?this.$emit(`escape`,e):t===`enter`&&this.$emit(`enter`,e)},onClick:()=>{this.hasSuggestionList&&this.showComboboxList()}}},chipWrapperClass(){return{[`d-recipe-combobox-multi-select__chip-wrapper-${this.size}--collapsed`]:!this.inputFocused&&this.collapseOnFocusOut}}},watch:{selectedItems:{deep:!0,handler:async function(){await this.initSelectedItems()}},chipMaxWidth:{async handler(){await this.initSelectedItems()}},async label(){await this.$nextTick(),this.setChipsTopPosition()},async description(){await this.$nextTick(),this.setChipsTopPosition()},size:{async handler(){await this.$nextTick();let e=this.getInput();this.revertInputPadding(e),this.setInitialInputHeight(),this.setInputPadding(),this.setChipsTopPosition()}}},async mounted(){this.setInitialInputHeight(),this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body),await this.initSelectedItems()},beforeUnmount(){this.resizeWindowObserver?.unobserve(document.body)},methods:{extractNonListeners:t.extractNonListeners,comboboxHighlight(e){this.$emit(`combobox-highlight`,e)},async initSelectedItems(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()},onChipRemove(e){this.$emit(`remove`,e),this.$refs.input?.focus()},onComboboxSelect(e){this.loading||(this.value=``,this.$emit(`select`,e))},showComboboxList(){this.showList??this.$refs.comboboxWithPopover?.showComboboxList()},closeComboboxList(){this.showList??this.$refs.comboboxWithPopover?.closeComboboxList()},getChips(){if(!this.selectedItems.length||!this.$refs.chips)return null;let e=new Set;return this.selectedItems.map(n=>this.$refs.chips.find((r,i)=>e.has(i)?!1:t.returnFirstEl(r.$el)?.querySelector(`.d-chip__label`)?.textContent?.trim()===n?(e.add(i),!0):!1)).filter(Boolean).map(e=>t.returnFirstEl(e.$el))},getChipButtons(){let e=this.getChips();return e&&e.map(e=>t.returnFirstEl(e).querySelector(`button`))},getLastChipButton(){let e=this.getChipButtons();return e&&e[e.length-1]},getLastChip(){let e=this.getChips();return e&&e[e.length-1]},getFirstChip(){let e=this.getChips();return e&&e[0]},getInput(){return this.$refs.input?.$refs.input},onChipKeyDown(e){let t=e.code?.toLowerCase();t===`arrowleft`?this.navigateBetweenChips(e.target,!0):t===`arrowright`&&(e.target.id===this.getLastChipButton().id?this.moveFromChipToInput():this.navigateBetweenChips(e.target,!1))},onInputKeyDown(e){let t=e.key?.toLowerCase();if(this.selectedItems.length>0&&e.target.selectionStart===0){if(e.target.selectionEnd!==e.target.selectionStart)return;(t===`backspace`||t===`arrowleft`)&&this.moveFromInputToChip()}},moveFromInputToChip(){this.getLastChipButton().focus(),this.$refs.input?.blur(),this.closeComboboxList()},moveFromChipToInput(){this.getLastChipButton().blur(),this.$refs.input?.focus(),this.showComboboxList()},navigateBetweenChips(e,t){let n=this.getChipButtons().indexOf(e),r=t?n-1:n+1;r<0||r>=this.$refs.chips?.length||(this.getChipButtons()[n].blur(),this.getChipButtons()[r].focus(),this.closeComboboxList())},setChipsTopPosition(){let e=this.getInput();if(!e)return;let t=this.$refs.inputSlotWrapper,n=e.getBoundingClientRect().top-t.getBoundingClientRect().top,r=this.$refs.chipsWrapper;r.style.top=n-c.CHIP_TOP_POSITION[this.size]+`px`},setInputPadding(){let e=this.getLastChip(),t=this.getInput();if(!t||(this.revertInputPadding(t),this.popoverOffset=[0,4],!e)||this.collapseOnFocusOut&&!this.inputFocused)return;let n=e.offsetLeft+this.getFullWidth(e),r=t.getBoundingClientRect().width-n,i=this.getFirstChip(),a=i&&e.offsetTop>i.offsetTop;r>this.reservedRightSpace?t.style.paddingLeft=n+`px`:t.style.paddingLeft=`4px`;let o=this.getInputPaddingTop(e,r>this.reservedRightSpace,a);o!=null&&(t.style.paddingTop=`${o}px`)},getInputPaddingTop(e,t,n){if(t&&!n)return null;if(t)return e.offsetTop+2;let r=parseFloat(getComputedStyle(e).marginTop)||0,i=e.getBoundingClientRect().height;return e.offsetTop+i+r+2},revertInputPadding(e){e.style.paddingLeft=``,e.style.paddingTop=``,e.style.paddingBottom=``},getFullWidth(e){let t=window.getComputedStyle(e);return e.offsetWidth+parseInt(t.marginLeft)+parseInt(t.marginRight)},setInputMinWidth(){let e=this.getFirstChip(),t=this.getInput();t&&(e?t.style.minWidth=this.getFullWidth(e)+4+`px`:t.style.minWidth=``)},checkMaxSelected(){this.maxSelected!==0&&(this.selectedItems.length>this.maxSelected?(this.showValidationMessages=!0,this.$emit(`max-selected`)):this.showValidationMessages=!1)},setInitialInputHeight(){let e=this.getInput();e&&(e.style.minHeight=``,e.style.height=``,this.initialInputHeight=e.getBoundingClientRect().height,this.size!==`xs`&&(e.style.minHeight=`${this.initialInputHeight}px`,e.style.height=`auto`))},async handleInputFocusIn(){this.inputFocused=!0,this.collapseOnFocusOut&&(this.hideInputText=!1,await this.$nextTick(),this.setInputPadding())},async handleInputFocusOut(){if(this.inputFocused=!1,this.collapseOnFocusOut){this.hideInputText=!0;let e=this.getInput();if(!e||!e.style.paddingTop)return;this.revertInputPadding(e)}}}},d={ref:`header`},f={key:1,class:`d-recipe-combobox-multi-select__list--loading`},p={ref:`footer`};function m(e,t,n,r,i,a){let o=(0,l.resolveComponent)(`dt-chip`),s=(0,l.resolveComponent)(`dt-input`),c=(0,l.resolveComponent)(`dt-validation-messages`),u=(0,l.resolveComponent)(`dt-combobox-with-popover`);return(0,l.openBlock)(),(0,l.createBlock)(u,(0,l.mergeProps)({ref:`comboboxWithPopover`,label:n.label,"show-list":n.showList,"max-height":n.listMaxHeight,"max-width":n.listMaxWidth,"popover-offset":i.popoverOffset,"has-suggestion-list":n.hasSuggestionList,"content-width":`anchor`,"append-to":n.appendTo,"dialog-class":n.dialogClass,transition:n.transition},a.extractNonListeners(e.$attrs),{onSelect:a.onComboboxSelect,onHighlight:a.comboboxHighlight}),(0,l.createSlots)({input:(0,l.withCtx)(({onInput:e})=>[(0,l.createElementVNode)(`span`,{ref:`inputSlotWrapper`,class:`d-recipe-combobox-multi-select__input-wrapper`,onFocusin:t[1]||(t[1]=(...e)=>a.handleInputFocusIn&&a.handleInputFocusIn(...e)),onFocusout:t[2]||(t[2]=(...e)=>a.handleInputFocusOut&&a.handleInputFocusOut(...e))},[(0,l.createElementVNode)(`span`,{ref:`chipsWrapper`,class:(0,l.normalizeClass)([`d-recipe-combobox-multi-select__chip-wrapper`,a.chipWrapperClass])},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(n.selectedItems,(e,t)=>((0,l.openBlock)(),(0,l.createBlock)(o,(0,l.mergeProps)({ref_for:!0,ref:`chips`,key:`${t}-${e}`,"label-class":[`d-chip__label`],class:[`d-recipe-combobox-multi-select__chip`,{"d-recipe-combobox-multi-select__chip--truncate":!!n.chipMaxWidth}],style:{maxWidth:n.chipMaxWidth},size:i.CHIP_SIZES[n.size],disabled:n.disabled},(0,l.toHandlers)(a.chipListeners),{onKeydown:(0,l.withKeys)(t=>a.onChipRemove(e),[`backspace`]),onClose:t=>a.onChipRemove(e)}),{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e),1)]),_:2},1040,[`class`,`style`,`size`,`disabled`,`onKeydown`,`onClose`]))),128))],2),(0,l.createVNode)(s,(0,l.mergeProps)({ref:`input`,modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),class:`d-recipe-combobox-multi-select__input`,"input-class":[n.inputClass,{"d-recipe-combobox-multi-select__input--hidden":i.hideInputText}],"input-wrapper-class":n.inputWrapperClass,disabled:n.disabled,"aria-label":n.label,label:n.labelVisible?n.label:``,description:n.description,placeholder:a.inputPlaceHolder,"show-messages":n.showInputMessages,messages:n.inputMessages,size:n.size},a.inputListeners,{onInput:e}),null,16,[`modelValue`,`input-class`,`input-wrapper-class`,`disabled`,`aria-label`,`label`,`description`,`placeholder`,`show-messages`,`messages`,`size`,`onInput`]),(0,l.createVNode)(c,{"validation-messages":n.maxSelectedMessage,"show-messages":i.showValidationMessages},null,8,[`validation-messages`,`show-messages`])],544)]),list:(0,l.withCtx)(()=>[(0,l.createElementVNode)(`div`,{ref:`list`,class:`d-recipe-combobox-multi-select__list`,onMousedown:t[3]||(t[3]=(0,l.withModifiers)(()=>{},[`prevent`]))},[n.loading?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,f,(0,l.toDisplayString)(n.loadingMessage),1)):(0,l.renderSlot)(e.$slots,`list`,{key:0})],544)]),_:2},[i.hasSlotContent(e.$slots.header)?{name:`header`,fn:(0,l.withCtx)(()=>[(0,l.createElementVNode)(`div`,d,[(0,l.renderSlot)(e.$slots,`header`)],512)]),key:`0`}:void 0,i.hasSlotContent(e.$slots.footer)?{name:`footer`,fn:(0,l.withCtx)(()=>[(0,l.createElementVNode)(`div`,p,[(0,l.renderSlot)(e.$slots,`footer`)],512)]),key:`1`}:void 0]),1040,[`label`,`show-list`,`max-height`,`max-width`,`popover-offset`,`has-suggestion-list`,`append-to`,`dialog-class`,`transition`,`onSelect`,`onHighlight`])}var h=n.t(u,[[`render`,m]]);exports.default=h;
|
|
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/validators/index.cjs`),n=require(`../../common/utils/index.cjs`),r=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),i=require(`../validation-messages/validation-messages.cjs`),a=require(`../chip/chip.cjs`),o=require(`../popover/popover-constants.cjs`),s=require(`../input/input.cjs`),c=require(`../combobox-with-popover/combobox-with-popover.cjs`),l=require(`./combobox-multi-select-constants.cjs`);let u=require(`vue`);var d={compatConfig:{MODE:3},name:`DtComboboxMultiSelect`,components:{DtComboboxWithPopover:c.default,DtInput:s.default,DtChip:a.default,DtValidationMessages:i.default},inheritAttrs:!1,props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},description:{type:String,default:``},placeholder:{type:String,default:`Select one or start typing`},inputMessages:{type:Array,default:()=>[],validator:e=>t.validationMessageValidator(e)},showInputMessages:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingMessage:{type:String,default:`loading...`},showList:{type:Boolean,default:null},listMaxHeight:{type:String,default:`300px`},selectedItems:{type:Array,default:function(){return[]}},maxSelected:{type:Number,default:0},maxSelectedMessage:{type:Array,default:function(){return[]}},hasSuggestionList:{type:Boolean,default:!0},size:{type:String,default:`md`,validator:e=>Object.values(l.MULTI_SELECT_SIZES).includes(e)},appendTo:{type:[e.HTML_ELEMENT_TYPE,String],default:`body`,validator:e=>o.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},transition:{type:String,default:`fade`},collapseOnFocusOut:{type:Boolean,default:!1},listMaxWidth:{type:String,default:``},reservedRightSpace:{type:Number,default:64},chipMaxWidth:{type:String,default:``},inputClass:{type:[String,Object,Array],default:``},inputWrapperClass:{type:[String,Object,Array],default:``},disabled:{type:Boolean,default:!1},dialogClass:{type:[String,Object,Array],default:``}},emits:[`input`,`select`,`remove`,`max-selected`,`keydown`,`chip-keydown`,`escape`,`enter`,`combobox-highlight`],data(){return{value:``,popoverOffset:[0,4],showValidationMessages:!1,resizeWindowObserver:null,initialInputHeight:null,CHIP_SIZES:l.CHIP_SIZES,hasSlotContent:n.hasSlotContent,inputFocused:!1,hideInputText:!1}},computed:{inputPlaceHolder(){return this.selectedItems?.length>0?``:this.placeholder},chipListeners(){return{keydown:e=>{this.disabled||(this.onChipKeyDown(e),this.$emit(`chip-keydown`,e))}}},inputListeners(){return{...n.extractVueListeners(this.$attrs),onInput:e=>{this.$emit(`input`,e),this.hasSuggestionList&&this.showComboboxList()},onKeydown:e=>{if(this.disabled)return;this.onInputKeyDown(e),this.$emit(`keydown`,e);let t=e.key?.toLowerCase();t===`escape`?this.$emit(`escape`,e):t===`enter`&&this.$emit(`enter`,e)},onClick:()=>{this.hasSuggestionList&&this.showComboboxList()}}},chipWrapperClass(){return{[`d-recipe-combobox-multi-select__chip-wrapper-${this.size}--collapsed`]:!this.inputFocused&&this.collapseOnFocusOut}}},watch:{selectedItems:{deep:!0,handler:async function(){await this.initSelectedItems()}},chipMaxWidth:{async handler(){await this.initSelectedItems()}},async label(){await this.$nextTick(),this.setChipsTopPosition()},async description(){await this.$nextTick(),this.setChipsTopPosition()},size:{async handler(){await this.$nextTick();let e=this.getInput();this.revertInputPadding(e),this.setInitialInputHeight(),this.setInputPadding(),this.setChipsTopPosition()}}},async mounted(){this.setInitialInputHeight(),this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body),await this.initSelectedItems()},beforeUnmount(){this.resizeWindowObserver?.unobserve(document.body)},methods:{extractNonListeners:n.extractNonListeners,comboboxHighlight(e){this.$emit(`combobox-highlight`,e)},async initSelectedItems(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()},onChipRemove(e){this.$emit(`remove`,e),this.$refs.input?.focus()},onComboboxSelect(e){this.loading||(this.value=``,this.$emit(`select`,e))},showComboboxList(){this.showList??this.$refs.comboboxWithPopover?.showComboboxList()},closeComboboxList(){this.showList??this.$refs.comboboxWithPopover?.closeComboboxList()},getChips(){if(!this.selectedItems.length||!this.$refs.chips)return null;let e=new Set;return this.selectedItems.map(t=>this.$refs.chips.find((r,i)=>e.has(i)?!1:n.returnFirstEl(r.$el)?.querySelector(`.d-chip__label`)?.textContent?.trim()===t?(e.add(i),!0):!1)).filter(Boolean).map(e=>n.returnFirstEl(e.$el))},getChipButtons(){let e=this.getChips();return e&&e.map(e=>n.returnFirstEl(e).querySelector(`button`))},getLastChipButton(){let e=this.getChipButtons();return e&&e[e.length-1]},getLastChip(){let e=this.getChips();return e&&e[e.length-1]},getFirstChip(){let e=this.getChips();return e&&e[0]},getInput(){return this.$refs.input?.$refs.input},onChipKeyDown(e){let t=e.code?.toLowerCase();t===`arrowleft`?this.navigateBetweenChips(e.target,!0):t===`arrowright`&&(e.target.id===this.getLastChipButton().id?this.moveFromChipToInput():this.navigateBetweenChips(e.target,!1))},onInputKeyDown(e){let t=e.key?.toLowerCase();if(this.selectedItems.length>0&&e.target.selectionStart===0){if(e.target.selectionEnd!==e.target.selectionStart)return;(t===`backspace`||t===`arrowleft`)&&this.moveFromInputToChip()}},moveFromInputToChip(){this.getLastChipButton().focus(),this.$refs.input?.blur(),this.closeComboboxList()},moveFromChipToInput(){this.getLastChipButton().blur(),this.$refs.input?.focus(),this.showComboboxList()},navigateBetweenChips(e,t){let n=this.getChipButtons().indexOf(e),r=t?n-1:n+1;r<0||r>=this.$refs.chips?.length||(this.getChipButtons()[n].blur(),this.getChipButtons()[r].focus(),this.closeComboboxList())},setChipsTopPosition(){let e=this.getInput();if(!e)return;let t=this.$refs.inputSlotWrapper,n=e.getBoundingClientRect().top-t.getBoundingClientRect().top,r=this.$refs.chipsWrapper;r.style.top=n-l.CHIP_TOP_POSITION[this.size]+`px`},setInputPadding(){let e=this.getLastChip(),t=this.getInput();if(!t||(this.revertInputPadding(t),this.popoverOffset=[0,4],!e)||this.collapseOnFocusOut&&!this.inputFocused)return;let n=e.offsetLeft+this.getFullWidth(e),r=t.getBoundingClientRect().width-n,i=this.getFirstChip(),a=i&&e.offsetTop>i.offsetTop;r>this.reservedRightSpace?t.style.paddingLeft=n+`px`:t.style.paddingLeft=`4px`;let o=this.getInputPaddingTop(e,r>this.reservedRightSpace,a);o!=null&&(t.style.paddingTop=`${o}px`)},getInputPaddingTop(e,t,n){if(t&&!n)return null;if(t)return e.offsetTop+2;let r=parseFloat(getComputedStyle(e).marginTop)||0,i=e.getBoundingClientRect().height;return e.offsetTop+i+r+2},revertInputPadding(e){e.style.paddingLeft=``,e.style.paddingTop=``,e.style.paddingBottom=``},getFullWidth(e){let t=window.getComputedStyle(e);return e.offsetWidth+parseInt(t.marginLeft)+parseInt(t.marginRight)},setInputMinWidth(){let e=this.getFirstChip(),t=this.getInput();t&&(e?t.style.minWidth=this.getFullWidth(e)+4+`px`:t.style.minWidth=``)},checkMaxSelected(){this.maxSelected!==0&&(this.selectedItems.length>this.maxSelected?(this.showValidationMessages=!0,this.$emit(`max-selected`)):this.showValidationMessages=!1)},setInitialInputHeight(){let e=this.getInput();e&&(e.style.minHeight=``,e.style.height=``,this.initialInputHeight=e.getBoundingClientRect().height,this.size!==`xs`&&(e.style.minHeight=`${this.initialInputHeight}px`,e.style.height=`auto`))},async handleInputFocusIn(){this.inputFocused=!0,this.collapseOnFocusOut&&(this.hideInputText=!1,await this.$nextTick(),this.setInputPadding())},async handleInputFocusOut(){if(this.inputFocused=!1,this.collapseOnFocusOut){this.hideInputText=!0;let e=this.getInput();if(!e||!e.style.paddingTop)return;this.revertInputPadding(e)}}}},f={ref:`header`},p={key:1,class:`d-recipe-combobox-multi-select__list--loading`},m={ref:`footer`};function h(e,t,n,r,i,a){let o=(0,u.resolveComponent)(`dt-chip`),s=(0,u.resolveComponent)(`dt-input`),c=(0,u.resolveComponent)(`dt-validation-messages`),l=(0,u.resolveComponent)(`dt-combobox-with-popover`);return(0,u.openBlock)(),(0,u.createBlock)(l,(0,u.mergeProps)({ref:`comboboxWithPopover`,label:n.label,"show-list":n.showList,"max-height":n.listMaxHeight,"max-width":n.listMaxWidth,"popover-offset":i.popoverOffset,"has-suggestion-list":n.hasSuggestionList,"content-width":`anchor`,"append-to":n.appendTo,"dialog-class":n.dialogClass,transition:n.transition},a.extractNonListeners(e.$attrs),{onSelect:a.onComboboxSelect,onHighlight:a.comboboxHighlight}),(0,u.createSlots)({input:(0,u.withCtx)(({onInput:e})=>[(0,u.createElementVNode)(`span`,{ref:`inputSlotWrapper`,class:`d-recipe-combobox-multi-select__input-wrapper`,onFocusin:t[1]||(t[1]=(...e)=>a.handleInputFocusIn&&a.handleInputFocusIn(...e)),onFocusout:t[2]||(t[2]=(...e)=>a.handleInputFocusOut&&a.handleInputFocusOut(...e))},[(0,u.createElementVNode)(`span`,{ref:`chipsWrapper`,class:(0,u.normalizeClass)([`d-recipe-combobox-multi-select__chip-wrapper`,a.chipWrapperClass])},[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(n.selectedItems,(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(o,(0,u.mergeProps)({ref_for:!0,ref:`chips`,key:`${t}-${e}`,"label-class":[`d-chip__label`],class:[`d-recipe-combobox-multi-select__chip`,{"d-recipe-combobox-multi-select__chip--truncate":!!n.chipMaxWidth}],style:{maxWidth:n.chipMaxWidth},size:i.CHIP_SIZES[n.size],disabled:n.disabled},(0,u.toHandlers)(a.chipListeners),{onKeydown:(0,u.withKeys)(t=>a.onChipRemove(e),[`backspace`]),onClose:t=>a.onChipRemove(e)}),{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e),1)]),_:2},1040,[`class`,`style`,`size`,`disabled`,`onKeydown`,`onClose`]))),128))],2),(0,u.createVNode)(s,(0,u.mergeProps)({ref:`input`,modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),class:`d-recipe-combobox-multi-select__input`,"input-class":[n.inputClass,{"d-recipe-combobox-multi-select__input--hidden":i.hideInputText}],"input-wrapper-class":n.inputWrapperClass,disabled:n.disabled,"aria-label":n.label,label:n.labelVisible?n.label:``,description:n.description,placeholder:a.inputPlaceHolder,"show-messages":n.showInputMessages,messages:n.inputMessages,size:n.size},a.inputListeners,{onInput:e}),null,16,[`modelValue`,`input-class`,`input-wrapper-class`,`disabled`,`aria-label`,`label`,`description`,`placeholder`,`show-messages`,`messages`,`size`,`onInput`]),(0,u.createVNode)(c,{"validation-messages":n.maxSelectedMessage,"show-messages":i.showValidationMessages},null,8,[`validation-messages`,`show-messages`])],544)]),list:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,{ref:`list`,class:`d-recipe-combobox-multi-select__list`,onMousedown:t[3]||(t[3]=(0,u.withModifiers)(()=>{},[`prevent`]))},[n.loading?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,p,(0,u.toDisplayString)(n.loadingMessage),1)):(0,u.renderSlot)(e.$slots,`list`,{key:0})],544)]),_:2},[i.hasSlotContent(e.$slots.header)?{name:`header`,fn:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,f,[(0,u.renderSlot)(e.$slots,`header`)],512)]),key:`0`}:void 0,i.hasSlotContent(e.$slots.footer)?{name:`footer`,fn:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,m,[(0,u.renderSlot)(e.$slots,`footer`)],512)]),key:`1`}:void 0]),1040,[`label`,`show-list`,`max-height`,`max-width`,`popover-offset`,`has-suggestion-list`,`append-to`,`dialog-class`,`transition`,`onSelect`,`onHighlight`])}var g=r.t(d,[[`render`,h]]);exports.default=g;
|
|
2
2
|
//# sourceMappingURL=combobox-multi-select.cjs.map
|