@dialpad/dialtone 9.125.0 → 9.126.1
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/css/dialtone-default-theme.css +4 -0
- package/dist/css/dialtone-default-theme.min.css +1 -1
- package/dist/css/dialtone.css +4 -0
- package/dist/css/dialtone.min.css +1 -1
- package/dist/tokens/doc.json +23474 -23474
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/dialtone-vue.cjs +1 -1
- package/dist/vue2/dialtone-vue.js +227 -225
- package/dist/vue2/dialtone-vue.js.map +1 -1
- package/dist/vue2/lib/button/button.cjs +1 -1
- package/dist/vue2/lib/button/button.cjs.map +1 -1
- package/dist/vue2/lib/button/button.js +7 -7
- package/dist/vue2/lib/button/button.js.map +1 -1
- package/dist/vue2/lib/list-item/list-item.cjs +1 -1
- package/dist/vue2/lib/list-item/list-item.cjs.map +1 -1
- package/dist/vue2/lib/list-item/list-item.js +21 -11
- package/dist/vue2/lib/list-item/list-item.js.map +1 -1
- package/dist/vue2/lib/loader/index.cjs +2 -0
- package/dist/vue2/lib/loader/index.cjs.map +1 -0
- package/dist/vue2/lib/loader/index.js +5 -0
- package/dist/vue2/lib/loader/index.js.map +1 -0
- package/dist/vue2/lib/loader/loader.cjs +2 -0
- package/dist/vue2/lib/loader/loader.cjs.map +1 -0
- package/dist/vue2/lib/loader/loader.js +48 -0
- package/dist/vue2/lib/loader/loader.js.map +1 -0
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +8 -4
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +414 -356
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue2/localization/de-DE.cjs +169 -0
- package/dist/vue2/localization/de-DE.cjs.map +1 -0
- package/dist/vue2/localization/de-DE.js +172 -0
- package/dist/vue2/localization/de-DE.js.map +1 -0
- package/dist/vue2/localization/en-US.cjs +1 -1
- package/dist/vue2/localization/en-US.cjs.map +1 -1
- package/dist/vue2/localization/en-US.js +1 -1
- package/dist/vue2/localization/en-US.js.map +1 -1
- package/dist/vue2/localization/es-LA.cjs +2 -2
- package/dist/vue2/localization/es-LA.cjs.map +1 -1
- package/dist/vue2/localization/es-LA.js +2 -2
- package/dist/vue2/localization/es-LA.js.map +1 -1
- package/dist/vue2/localization/fr-FR.cjs +169 -0
- package/dist/vue2/localization/fr-FR.cjs.map +1 -0
- package/dist/vue2/localization/fr-FR.js +172 -0
- package/dist/vue2/localization/fr-FR.js.map +1 -0
- package/dist/vue2/localization/index.cjs +1 -1175
- package/dist/vue2/localization/index.cjs.map +1 -1
- package/dist/vue2/localization/index.js +46 -1211
- package/dist/vue2/localization/index.js.map +1 -1
- package/dist/vue2/localization/it-IT.cjs +169 -0
- package/dist/vue2/localization/it-IT.cjs.map +1 -0
- package/dist/vue2/localization/it-IT.js +172 -0
- package/dist/vue2/localization/it-IT.js.map +1 -0
- package/dist/vue2/localization/ja-JP.cjs +148 -0
- package/dist/vue2/localization/ja-JP.cjs.map +1 -0
- package/dist/vue2/localization/ja-JP.js +151 -0
- package/dist/vue2/localization/ja-JP.js.map +1 -0
- package/dist/vue2/localization/nl-NL.cjs +169 -0
- package/dist/vue2/localization/nl-NL.cjs.map +1 -0
- package/dist/vue2/localization/nl-NL.js +172 -0
- package/dist/vue2/localization/nl-NL.js.map +1 -0
- package/dist/vue2/localization/pt-BR.cjs +169 -0
- package/dist/vue2/localization/pt-BR.cjs.map +1 -0
- package/dist/vue2/localization/pt-BR.js +172 -0
- package/dist/vue2/localization/pt-BR.js.map +1 -0
- package/dist/vue2/localization/ru-RU.cjs +179 -0
- package/dist/vue2/localization/ru-RU.cjs.map +1 -0
- package/dist/vue2/localization/ru-RU.js +182 -0
- package/dist/vue2/localization/ru-RU.js.map +1 -0
- package/dist/vue2/localization/zh-CN.cjs +164 -0
- package/dist/vue2/localization/zh-CN.cjs.map +1 -0
- package/dist/vue2/localization/zh-CN.js +167 -0
- package/dist/vue2/localization/zh-CN.js.map +1 -0
- package/dist/vue2/types/components/list_item/list_item.vue.d.ts +9 -0
- package/dist/vue2/types/components/list_item/list_item.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/loader/index.d.ts +2 -0
- package/dist/vue2/types/components/loader/index.d.ts.map +1 -0
- package/dist/vue2/types/components/loader/loader.vue.d.ts +32 -0
- package/dist/vue2/types/components/loader/loader.vue.d.ts.map +1 -0
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +10 -0
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/index.d.ts +1 -0
- package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +1 -1
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/dialtone-vue.cjs +1 -1
- package/dist/vue3/dialtone-vue.js +208 -206
- package/dist/vue3/dialtone-vue.js.map +1 -1
- package/dist/vue3/lib/list-item/list-item.cjs +1 -1
- package/dist/vue3/lib/list-item/list-item.cjs.map +1 -1
- package/dist/vue3/lib/list-item/list-item.js +35 -30
- package/dist/vue3/lib/list-item/list-item.js.map +1 -1
- package/dist/vue3/lib/loader/index.cjs +2 -0
- package/dist/vue3/lib/loader/index.cjs.map +1 -0
- package/dist/vue3/lib/loader/index.js +5 -0
- package/dist/vue3/lib/loader/index.js.map +1 -0
- package/dist/vue3/lib/loader/loader.cjs +2 -0
- package/dist/vue3/lib/loader/loader.cjs.map +1 -0
- package/dist/vue3/lib/loader/loader.js +48 -0
- package/dist/vue3/lib/loader/loader.js.map +1 -0
- package/dist/vue3/lib/message-input/message-input.cjs +1 -1
- package/dist/vue3/lib/message-input/message-input.cjs.map +1 -1
- package/dist/vue3/lib/message-input/message-input.js +2 -1
- package/dist/vue3/lib/message-input/message-input.js.map +1 -1
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +8 -4
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +301 -235
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue3/types/components/list_item/list_item.vue.d.ts +10 -2
- package/dist/vue3/types/components/loader/index.d.ts +2 -0
- package/dist/vue3/types/components/loader/index.d.ts.map +1 -0
- package/dist/vue3/types/components/loader/loader.vue.d.ts +26 -0
- package/dist/vue3/types/components/loader/loader.vue.d.ts.map +1 -0
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +19 -0
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/vue3/types/index.d.ts +1 -0
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DEFAULT_VALIDATION_MESSAGE_TYPE as e, DESCRIPTION_SIZE_TYPES as r, VALIDATION_MESSAGE_TYPES as a } from "./common/constants/index.js";
|
|
2
2
|
import { validationMessageValidator as _ } from "./common/validators/index.js";
|
|
3
|
-
import { disableRootScrolling as f, enableRootScrolling as D, filterFormattedMessages as S, formatMessages as T, getUniqueString as
|
|
3
|
+
import { disableRootScrolling as f, enableRootScrolling as D, filterFormattedMessages as S, formatMessages as T, getUniqueString as p, getValidationState as O } from "./common/utils/index.js";
|
|
4
4
|
import { durationInHHMM as R, getDateMedium as l, relativeDate as x, setDateLocale as i } from "./common/dates/index.js";
|
|
5
|
-
import { codeToEmojiData as
|
|
5
|
+
import { codeToEmojiData as A, customEmojiAssetUrl as N, defaultEmojiAssetUrl as u, emojiFileExtensionLarge as d, emojiFileExtensionSmall as L, emojiImageUrlLarge as C, emojiImageUrlSmall as P, emojiJson as n, emojiRegex as M, emojiShortCodeRegex as c, emojiVersion as B, filterValidShortCodes as U, findEmojis as V, findShortCodes as F, getEmojiData as G, setCustomEmojiJson as K, setCustomEmojiUrl as g, setEmojiAssetUrlLarge as b, setEmojiAssetUrlSmall as j, shortcodeToEmojiData as H, stringToUnicode as Z, unicodeToString as h, validateCustomEmojiJson as Y } from "./common/emoji/index.js";
|
|
6
6
|
import { DialtoneLocalization as W } from "./localization/index.js";
|
|
7
7
|
import { DtTooltipDirective as w } from "./lib/tooltip-directive/tooltip.js";
|
|
8
8
|
import { DtScrollbarDirective as y } from "./lib/scrollbar-directive/scrollbar.js";
|
|
@@ -13,10 +13,10 @@ import { default as at } from "./common/mixins/keyboard-list-navigation.js";
|
|
|
13
13
|
import { default as _t } from "./common/mixins/modal.js";
|
|
14
14
|
import { default as ft } from "./common/mixins/skeleton.js";
|
|
15
15
|
import { default as St } from "./common/mixins/localization.js";
|
|
16
|
-
import { default as
|
|
17
|
-
import { AVATAR_COLORS as mt, AVATAR_GROUP_VALIDATOR as Rt, AVATAR_ICON_SIZES as lt, AVATAR_KIND_MODIFIERS as xt, AVATAR_PRESENCE_SIZE_MODIFIERS as it, AVATAR_PRESENCE_STATES as
|
|
16
|
+
import { default as pt } from "./lib/avatar/avatar.js";
|
|
17
|
+
import { AVATAR_COLORS as mt, AVATAR_GROUP_VALIDATOR as Rt, AVATAR_ICON_SIZES as lt, AVATAR_KIND_MODIFIERS as xt, AVATAR_PRESENCE_SIZE_MODIFIERS as it, AVATAR_PRESENCE_STATES as st, AVATAR_RANDOM_COLORS as At, AVATAR_SIZE_MODIFIERS as Nt } from "./lib/avatar/avatar-constants.js";
|
|
18
18
|
import { default as dt } from "./lib/badge/badge.js";
|
|
19
|
-
import { BADGE_DECORATION_MODIFIERS as
|
|
19
|
+
import { BADGE_DECORATION_MODIFIERS as Ct, BADGE_KIND_MODIFIERS as Pt, BADGE_TYPE_MODIFIERS as nt } from "./lib/badge/badge-constants.js";
|
|
20
20
|
import { default as ct } from "./lib/banner/banner.js";
|
|
21
21
|
import { default as Ut } from "./lib/breadcrumbs/breadcrumbs.js";
|
|
22
22
|
import { default as Ft } from "./lib/breadcrumbs/breadcrumb-item.js";
|
|
@@ -31,11 +31,11 @@ import { default as eo } from "./lib/checkbox-group/checkbox-group.js";
|
|
|
31
31
|
import { default as ao } from "./lib/chip/chip.js";
|
|
32
32
|
import { CHIP_CLOSE_BUTTON_SIZE_MODIFIERS as _o, CHIP_ICON_SIZES as Io, CHIP_SIZE_MODIFIERS as fo } from "./lib/chip/chip-constants.js";
|
|
33
33
|
import { default as So } from "./lib/codeblock/codeblock.js";
|
|
34
|
-
import { default as
|
|
34
|
+
import { default as po } from "./lib/collapsible/collapsible.js";
|
|
35
35
|
import { default as mo } from "./lib/combobox/combobox.js";
|
|
36
36
|
import { COMBOBOX_LABEL_SIZES as lo } from "./lib/combobox/combobox-constants.js";
|
|
37
37
|
import { default as io } from "./lib/datepicker/datepicker.js";
|
|
38
|
-
import { formatLong as
|
|
38
|
+
import { formatLong as Ao, formatMedium as No, formatNoYear as uo, formatNumerical as Lo, formatShort as Co } from "./lib/datepicker/formatUtils.js";
|
|
39
39
|
import { default as no } from "./lib/description-list/description-list.js";
|
|
40
40
|
import { DT_DESCRIPTION_LIST_DIRECTION as co } from "./lib/description-list/description-list-constants.js";
|
|
41
41
|
import { default as Uo } from "./lib/dropdown/dropdown.js";
|
|
@@ -54,102 +54,103 @@ import { default as ae } from "./lib/illustration/illustration.js";
|
|
|
54
54
|
import { ILLUSTRATION_NAMES as _e } from "./lib/illustration/illustration-constants.js";
|
|
55
55
|
import { default as fe } from "./lib/image-viewer/image-viewer.js";
|
|
56
56
|
import { default as Se } from "./lib/input/input.js";
|
|
57
|
-
import { INPUT_SIZES as
|
|
57
|
+
import { INPUT_SIZES as pe, INPUT_TYPES as Oe } from "./lib/input/input-constants.js";
|
|
58
58
|
import { default as Re } from "./lib/input-group/input-group.js";
|
|
59
59
|
import { default as xe } from "./lib/item-layout/item-layout.js";
|
|
60
|
-
import { default as
|
|
60
|
+
import { default as se } from "./lib/keyboard-shortcut/keyboard-shortcut.js";
|
|
61
61
|
import { SHORTCUTS_ALIASES_LIST as Ne } from "./lib/keyboard-shortcut/keyboard-shortcut-constants.js";
|
|
62
62
|
import { default as de } from "./lib/lazy-show/lazy-show.js";
|
|
63
|
-
import { default as
|
|
63
|
+
import { default as Ce } from "./lib/link/link.js";
|
|
64
64
|
import { DANGER as ne, LINK_KIND_MODIFIERS as Me, LINK_VARIANTS as ce, MENTION as Be, MUTED as Ue, SUCCESS as Ve, WARNING as Fe, getLinkKindModifier as Ge } from "./lib/link/link-constants.js";
|
|
65
65
|
import { default as ge } from "./lib/list-item/list-item.js";
|
|
66
66
|
import { LIST_ITEM_NAVIGATION_TYPES as je, LIST_ITEM_TYPES as He } from "./lib/list-item/list-item-constants.js";
|
|
67
67
|
import { default as he } from "./lib/list-item-group/list-item-group.js";
|
|
68
|
-
import { default as ke } from "./lib/
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import { default as qe } from "./lib/notice/notice
|
|
72
|
-
import { default as $e } from "./lib/notice/notice-
|
|
73
|
-
import { default as or } from "./lib/notice/notice-
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import { default as fr } from "./lib/
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import { default as Br } from "./lib/
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import { default as Xr } from "./lib/skeleton/skeleton
|
|
91
|
-
import { default as Jr } from "./lib/skeleton/skeleton-
|
|
92
|
-
import { default as qr } from "./lib/skeleton/skeleton-
|
|
93
|
-
import { default as $r } from "./lib/skeleton/skeleton-
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as Na } from "./lib/tab/tab
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import { default as ya } from "./lib/
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import { default as tE } from "./lib/callbar-button-with-
|
|
114
|
-
import { default as eE } from "./lib/
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import { default as
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import { default as nE } from "./lib/
|
|
121
|
-
import { default as cE } from "./lib/
|
|
122
|
-
import { default as UE } from "./lib/
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import { default as wE } from "./lib/
|
|
130
|
-
import { default as yE } from "./lib/
|
|
131
|
-
import { default as zE } from "./lib/
|
|
132
|
-
import { default as QE } from "./lib/
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import { default as E_ } from "./lib/contact-row/contact-row.js";
|
|
136
|
-
import { default as I_ } from "./lib/
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import { default as l_ } from "./lib/
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
68
|
+
import { default as ke } from "./lib/loader/loader.js";
|
|
69
|
+
import { default as ve } from "./lib/modal/modal.js";
|
|
70
|
+
import { MODAL_BANNER_KINDS as Xe, MODAL_KIND_MODIFIERS as ye, MODAL_SIZE_MODIFIERS as Je } from "./lib/modal/modal-constants.js";
|
|
71
|
+
import { default as qe } from "./lib/notice/notice.js";
|
|
72
|
+
import { default as $e } from "./lib/notice/notice-action.js";
|
|
73
|
+
import { default as or } from "./lib/notice/notice-icon.js";
|
|
74
|
+
import { default as rr } from "./lib/notice/notice-content.js";
|
|
75
|
+
import { NOTICE_KINDS as Er, NOTICE_ROLES as _r } from "./lib/notice/notice-constants.js";
|
|
76
|
+
import { default as fr } from "./lib/pagination/pagination.js";
|
|
77
|
+
import { default as Sr } from "./lib/popover/popover.js";
|
|
78
|
+
import { POPOVER_APPEND_TO_VALUES as pr, POPOVER_CONTENT_WIDTHS as Or, POPOVER_DIRECTIONS as mr, POPOVER_HEADER_FOOTER_PADDING_CLASSES as Rr, POPOVER_INITIAL_FOCUS_STRINGS as lr, POPOVER_PADDING_CLASSES as xr, POPOVER_ROLES as ir, POPOVER_STICKY_VALUES as sr } from "./lib/popover/popover-constants.js";
|
|
79
|
+
import { default as Nr } from "./lib/presence/presence.js";
|
|
80
|
+
import { PRESENCE_STATES as dr, PRESENCE_STATES_LIST as Lr } from "./lib/presence/presence-constants.js";
|
|
81
|
+
import { default as Pr } from "./lib/radio/radio.js";
|
|
82
|
+
import { RADIO_INPUT_VALIDATION_CLASSES as Mr } from "./lib/radio/radio-constants.js";
|
|
83
|
+
import { default as Br } from "./lib/radio-group/radio-group.js";
|
|
84
|
+
import { default as Vr } from "./lib/rich-text-editor/rich-text-editor.js";
|
|
85
|
+
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Gr, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Kr } from "./lib/rich-text-editor/rich-text-editor-constants.js";
|
|
86
|
+
import { default as br } from "./lib/root-layout/root-layout.js";
|
|
87
|
+
import { ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS as Hr, ROOT_LAYOUT_SIDEBAR_POSITIONS as Zr } from "./lib/root-layout/root-layout-constants.js";
|
|
88
|
+
import { default as Yr } from "./lib/select-menu/select-menu.js";
|
|
89
|
+
import { SELECT_SIZE_MODIFIERS as Wr, SELECT_STATE_MODIFIERS as vr } from "./lib/select-menu/select-menu-constants.js";
|
|
90
|
+
import { default as Xr } from "./lib/skeleton/skeleton.js";
|
|
91
|
+
import { default as Jr } from "./lib/skeleton/skeleton-list-item.js";
|
|
92
|
+
import { default as qr } from "./lib/skeleton/skeleton-text.js";
|
|
93
|
+
import { default as $r } from "./lib/skeleton/skeleton-shape.js";
|
|
94
|
+
import { default as oa } from "./lib/skeleton/skeleton-paragraph.js";
|
|
95
|
+
import { SKELETON_HEADING_HEIGHTS as ra, SKELETON_RIPPLE_DURATION as aa, SKELETON_SHAPES as Ea, SKELETON_SHAPE_SIZES as _a, SKELETON_TEXT_TYPES as Ia } from "./lib/skeleton/skeleton-constants.js";
|
|
96
|
+
import { default as Da } from "./lib/split-button/split-button.js";
|
|
97
|
+
import { SPLIT_BUTTON_ICON_SIZES as Ta } from "./lib/split-button/split-button-constants.js";
|
|
98
|
+
import { default as Oa } from "./lib/stack/stack.js";
|
|
99
|
+
import { DT_STACK_DIRECTION as Ra, DT_STACK_GAP as la, DT_STACK_RESPONSIVE_BREAKPOINTS as xa } from "./lib/stack/stack-constants.js";
|
|
100
|
+
import { default as sa } from "./lib/tab/tab-group.js";
|
|
101
|
+
import { default as Na } from "./lib/tab/tab.js";
|
|
102
|
+
import { default as da } from "./lib/tab/tab-panel.js";
|
|
103
|
+
import { TAB_IMPORTANCE_MODIFIERS as Ca, TAB_LIST_IMPORTANCE_MODIFIERS as Pa, TAB_LIST_KIND_MODIFIERS as na, TAB_LIST_SIZES as Ma } from "./lib/tab/tabs-constants.js";
|
|
104
|
+
import { default as Ba } from "./lib/toast/toast.js";
|
|
105
|
+
import { TOAST_MIN_DURATION as Va, TOAST_ROLES as Fa } from "./lib/toast/toast-constants.js";
|
|
106
|
+
import { default as Ka } from "./lib/toggle/toggle.js";
|
|
107
|
+
import { TOGGLE_CHECKED_VALUES as ba, TOGGLE_SIZE_MODIFIERS as ja } from "./lib/toggle/toggle-constants.js";
|
|
108
|
+
import { default as Za } from "./lib/tooltip/tooltip.js";
|
|
109
|
+
import { TOOLTIP_DELAY_MS as Ya, TOOLTIP_DIRECTIONS as ka, TOOLTIP_HIDE_ON_CLICK_VARIANTS as Wa, TOOLTIP_KIND_MODIFIERS as va, TOOLTIP_STICKY_VALUES as wa } from "./lib/tooltip/tooltip-constants.js";
|
|
110
|
+
import { default as ya } from "./lib/validation-messages/validation-messages.js";
|
|
111
|
+
import { default as za } from "./lib/callbar-button/callbar-button.js";
|
|
112
|
+
import { CALLBAR_BUTTON_VALID_WIDTH_SIZE as Qa } from "./lib/callbar-button/callbar-button-constants.js";
|
|
113
|
+
import { default as tE } from "./lib/callbar-button-with-popover/callbar-button-with-popover.js";
|
|
114
|
+
import { default as eE } from "./lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js";
|
|
115
|
+
import { default as aE } from "./lib/ivr-node/ivr-node.js";
|
|
116
|
+
import { IVR_NODE_ASSIGN as _E, IVR_NODE_BRANCH as IE, IVR_NODE_CUSTOMER_DATA as fE, IVR_NODE_EXPERT as DE, IVR_NODE_GO_TO as SE, IVR_NODE_HANGUP as TE, IVR_NODE_ICON_TYPES as pE, IVR_NODE_LABELS as OE, IVR_NODE_PROMPT_COLLECT as mE, IVR_NODE_PROMPT_MENU as RE, IVR_NODE_PROMPT_PLAY as lE, IVR_NODE_TRANSFER as xE } from "./lib/ivr-node/ivr-node-constants.js";
|
|
117
|
+
import { default as sE } from "./lib/grouped-chip/grouped-chip.js";
|
|
118
|
+
import { default as NE } from "./lib/combobox-multi-select/combobox-multi-select.js";
|
|
119
|
+
import { CHIP_SIZES as dE, CHIP_TOP_POSITION as LE, MULTI_SELECT_SIZES as CE } from "./lib/combobox-multi-select/combobox-multi-select-constants.js";
|
|
120
|
+
import { default as nE } from "./lib/combobox-with-popover/combobox-with-popover.js";
|
|
121
|
+
import { default as cE } from "./lib/attachment-carousel/attachment-carousel.js";
|
|
122
|
+
import { default as UE } from "./lib/editor/editor.js";
|
|
123
|
+
import { default as FE } from "./lib/emoji-row/emoji-row.js";
|
|
124
|
+
import { REACTIONS_ATTRIBUTES as KE } from "./lib/emoji-row/emoji-row-constants.js";
|
|
125
|
+
import { default as bE } from "./lib/feed-item-pill/feed-item-pill.js";
|
|
126
|
+
import { FEED_ITEM_PILL_BORDER_COLORS as HE } from "./lib/feed-item-pill/feed-item-pill-constants.js";
|
|
127
|
+
import { default as hE } from "./lib/feed-item-row/feed-item-row.js";
|
|
128
|
+
import { DEFAULT_FEED_ROW_STATE as kE, FEED_ROW_STATE_BACKGROUND_COLOR as WE } from "./lib/feed-item-row/feed-item-row-constants.js";
|
|
129
|
+
import { default as wE } from "./lib/message-input/message-input.js";
|
|
130
|
+
import { default as yE } from "./lib/time-pill/time-pill.js";
|
|
131
|
+
import { default as zE } from "./lib/settings-menu-button/settings-menu-button.js";
|
|
132
|
+
import { default as QE } from "./lib/contact-info/contact-info.js";
|
|
133
|
+
import { default as t_ } from "./lib/callbox/callbox.js";
|
|
134
|
+
import { CALLBOX_BADGE_COLORS as e_, CALLBOX_BORDER_COLORS as r_ } from "./lib/callbox/callbox-constants.js";
|
|
135
|
+
import { default as E_ } from "./lib/contact-centers-row/contact-centers-row.js";
|
|
136
|
+
import { default as I_ } from "./lib/contact-row/contact-row.js";
|
|
137
|
+
import { default as D_ } from "./lib/general-row/general-row.js";
|
|
138
|
+
import { LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS as T_, LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR as p_, LEFTBAR_GENERAL_ROW_ICON_SIZES as O_, LEFTBAR_GENERAL_ROW_TYPES as m_ } from "./lib/general-row/general-row-constants.js";
|
|
139
|
+
import { default as l_ } from "./lib/group-row/group-row.js";
|
|
140
|
+
import { default as i_ } from "./lib/unread-pill/unread-pill.js";
|
|
141
|
+
import { UNREAD_PILL_DIRECTIONS as A_, UNREAD_PILL_KINDS as N_ } from "./lib/unread-pill/unread-pill-constants.js";
|
|
142
|
+
import { default as d_ } from "./lib/top-banner-info/top-banner-info.js";
|
|
143
|
+
import { COLOR_CODES as C_ } from "./lib/top-banner-info/top-banner-info-constants.js";
|
|
143
144
|
export {
|
|
144
145
|
mt as AVATAR_COLORS,
|
|
145
146
|
Rt as AVATAR_GROUP_VALIDATOR,
|
|
146
147
|
lt as AVATAR_ICON_SIZES,
|
|
147
148
|
xt as AVATAR_KIND_MODIFIERS,
|
|
148
149
|
it as AVATAR_PRESENCE_SIZE_MODIFIERS,
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
st as AVATAR_PRESENCE_STATES,
|
|
151
|
+
At as AVATAR_RANDOM_COLORS,
|
|
151
152
|
Nt as AVATAR_SIZE_MODIFIERS,
|
|
152
|
-
|
|
153
|
+
Ct as BADGE_DECORATION_MODIFIERS,
|
|
153
154
|
Pt as BADGE_KIND_MODIFIERS,
|
|
154
155
|
nt as BADGE_TYPE_MODIFIERS,
|
|
155
156
|
Kt as BREADCRUMBS_INVERTED_MODIFIER,
|
|
@@ -160,28 +161,28 @@ export {
|
|
|
160
161
|
Yt as BUTTON_KIND_MODIFIERS,
|
|
161
162
|
kt as BUTTON_SIZE_MODIFIERS,
|
|
162
163
|
Wt as BUTTON_TYPES,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
Qa as CALLBAR_BUTTON_VALID_WIDTH_SIZE,
|
|
165
|
+
e_ as CALLBOX_BADGE_COLORS,
|
|
166
|
+
r_ as CALLBOX_BORDER_COLORS,
|
|
166
167
|
ho as CDN_URL,
|
|
167
168
|
_o as CHIP_CLOSE_BUTTON_SIZE_MODIFIERS,
|
|
168
169
|
Io as CHIP_ICON_SIZES,
|
|
169
|
-
|
|
170
|
+
dE as CHIP_SIZES,
|
|
170
171
|
fo as CHIP_SIZE_MODIFIERS,
|
|
171
|
-
|
|
172
|
-
|
|
172
|
+
LE as CHIP_TOP_POSITION,
|
|
173
|
+
C_ as COLOR_CODES,
|
|
173
174
|
lo as COMBOBOX_LABEL_SIZES,
|
|
174
175
|
ne as DANGER,
|
|
175
|
-
|
|
176
|
+
kE as DEFAULT_FEED_ROW_STATE,
|
|
176
177
|
e as DEFAULT_VALIDATION_MESSAGE_TYPE,
|
|
177
178
|
r as DESCRIPTION_SIZE_TYPES,
|
|
178
179
|
Ko as DROPDOWN_PADDING_CLASSES,
|
|
179
180
|
co as DT_DESCRIPTION_LIST_DIRECTION,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
Ra as DT_STACK_DIRECTION,
|
|
182
|
+
la as DT_STACK_GAP,
|
|
183
|
+
xa as DT_STACK_RESPONSIVE_BREAKPOINTS,
|
|
183
184
|
W as DialtoneLocalization,
|
|
184
|
-
|
|
185
|
+
pt as DtAvatar,
|
|
185
186
|
dt as DtBadge,
|
|
186
187
|
ct as DtBanner,
|
|
187
188
|
Ft as DtBreadcrumbItem,
|
|
@@ -194,7 +195,7 @@ export {
|
|
|
194
195
|
eo as DtCheckboxGroup,
|
|
195
196
|
ao as DtChip,
|
|
196
197
|
So as DtCodeblock,
|
|
197
|
-
|
|
198
|
+
po as DtCollapsible,
|
|
198
199
|
mo as DtCombobox,
|
|
199
200
|
z as DtDOMMixin,
|
|
200
201
|
io as DtDatepicker,
|
|
@@ -216,157 +217,158 @@ export {
|
|
|
216
217
|
tt as DtInputMixin,
|
|
217
218
|
xe as DtItemLayout,
|
|
218
219
|
at as DtKeyboardListNavigationMixin,
|
|
219
|
-
|
|
220
|
+
se as DtKeyboardShortcut,
|
|
220
221
|
de as DtLazyShow,
|
|
221
|
-
|
|
222
|
+
Ce as DtLink,
|
|
222
223
|
ge as DtListItem,
|
|
223
224
|
he as DtListItemGroup,
|
|
225
|
+
ke as DtLoader,
|
|
224
226
|
St as DtLocalizationMixin,
|
|
225
|
-
|
|
227
|
+
ve as DtModal,
|
|
226
228
|
_t as DtModalMixin,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
229
|
+
qe as DtNotice,
|
|
230
|
+
$e as DtNoticeAction,
|
|
231
|
+
rr as DtNoticeContent,
|
|
232
|
+
or as DtNoticeIcon,
|
|
233
|
+
fr as DtPagination,
|
|
234
|
+
Sr as DtPopover,
|
|
235
|
+
Nr as DtPresence,
|
|
236
|
+
Pr as DtRadio,
|
|
237
|
+
Br as DtRadioGroup,
|
|
238
|
+
cE as DtRecipeAttachmentCarousel,
|
|
239
|
+
za as DtRecipeCallbarButton,
|
|
240
|
+
eE as DtRecipeCallbarButtonWithDropdown,
|
|
241
|
+
tE as DtRecipeCallbarButtonWithPopover,
|
|
242
|
+
t_ as DtRecipeCallbox,
|
|
243
|
+
NE as DtRecipeComboboxMultiSelect,
|
|
244
|
+
nE as DtRecipeComboboxWithPopover,
|
|
245
|
+
E_ as DtRecipeContactCentersRow,
|
|
246
|
+
QE as DtRecipeContactInfo,
|
|
247
|
+
I_ as DtRecipeContactRow,
|
|
248
|
+
UE as DtRecipeEditor,
|
|
249
|
+
FE as DtRecipeEmojiRow,
|
|
250
|
+
bE as DtRecipeFeedItemPill,
|
|
251
|
+
hE as DtRecipeFeedItemRow,
|
|
252
|
+
D_ as DtRecipeGeneralRow,
|
|
253
|
+
l_ as DtRecipeGroupRow,
|
|
254
|
+
sE as DtRecipeGroupedChip,
|
|
255
|
+
aE as DtRecipeIvrNode,
|
|
256
|
+
wE as DtRecipeMessageInput,
|
|
257
|
+
zE as DtRecipeSettingsMenuButton,
|
|
258
|
+
yE as DtRecipeTimePill,
|
|
259
|
+
d_ as DtRecipeTopBannerInfo,
|
|
260
|
+
i_ as DtRecipeUnreadPill,
|
|
261
|
+
Vr as DtRichTextEditor,
|
|
262
|
+
br as DtRootLayout,
|
|
261
263
|
y as DtScrollbarDirective,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
264
|
+
Yr as DtSelectMenu,
|
|
265
|
+
Xr as DtSkeleton,
|
|
266
|
+
Jr as DtSkeletonListItem,
|
|
265
267
|
ft as DtSkeletonMixin,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
268
|
+
oa as DtSkeletonParagraph,
|
|
269
|
+
$r as DtSkeletonShape,
|
|
270
|
+
qr as DtSkeletonText,
|
|
271
|
+
Da as DtSplitButton,
|
|
272
|
+
Oa as DtStack,
|
|
273
|
+
Na as DtTab,
|
|
274
|
+
sa as DtTabGroup,
|
|
275
|
+
da as DtTabPanel,
|
|
276
|
+
Ba as DtToast,
|
|
277
|
+
Ka as DtToggle,
|
|
278
|
+
Za as DtTooltip,
|
|
277
279
|
w as DtTooltipDirective,
|
|
278
|
-
|
|
280
|
+
ya as DtValidationMessages,
|
|
279
281
|
Yo as EMOJIS_PER_ROW,
|
|
280
282
|
ko as EMOJI_PICKER_SKIN_TONE_MODIFIERS,
|
|
281
283
|
Jo as EMPTY_STATE_SIZE_MODIFIERS,
|
|
282
|
-
|
|
283
|
-
|
|
284
|
+
HE as FEED_ITEM_PILL_BORDER_COLORS,
|
|
285
|
+
WE as FEED_ROW_STATE_BACKGROUND_COLOR,
|
|
284
286
|
oe as ICON_NAMES,
|
|
285
287
|
vt as ICON_POSITION_MODIFIERS,
|
|
286
288
|
ee as ICON_SIZE_MODIFIERS,
|
|
287
289
|
_e as ILLUSTRATION_NAMES,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
+
pe as INPUT_SIZES,
|
|
291
|
+
Oe as INPUT_TYPES,
|
|
290
292
|
wt as INVALID_COMBINATION,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
293
|
+
_E as IVR_NODE_ASSIGN,
|
|
294
|
+
IE as IVR_NODE_BRANCH,
|
|
295
|
+
fE as IVR_NODE_CUSTOMER_DATA,
|
|
296
|
+
DE as IVR_NODE_EXPERT,
|
|
297
|
+
SE as IVR_NODE_GO_TO,
|
|
298
|
+
TE as IVR_NODE_HANGUP,
|
|
299
|
+
pE as IVR_NODE_ICON_TYPES,
|
|
300
|
+
OE as IVR_NODE_LABELS,
|
|
301
|
+
mE as IVR_NODE_PROMPT_COLLECT,
|
|
302
|
+
RE as IVR_NODE_PROMPT_MENU,
|
|
303
|
+
lE as IVR_NODE_PROMPT_PLAY,
|
|
304
|
+
xE as IVR_NODE_TRANSFER,
|
|
305
|
+
T_ as LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS,
|
|
306
|
+
p_ as LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR,
|
|
307
|
+
O_ as LEFTBAR_GENERAL_ROW_ICON_SIZES,
|
|
308
|
+
m_ as LEFTBAR_GENERAL_ROW_TYPES,
|
|
307
309
|
Me as LINK_KIND_MODIFIERS,
|
|
308
310
|
ce as LINK_VARIANTS,
|
|
309
311
|
je as LIST_ITEM_NAVIGATION_TYPES,
|
|
310
312
|
He as LIST_ITEM_TYPES,
|
|
311
313
|
Be as MENTION,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
Xe as MODAL_BANNER_KINDS,
|
|
315
|
+
ye as MODAL_KIND_MODIFIERS,
|
|
316
|
+
Je as MODAL_SIZE_MODIFIERS,
|
|
317
|
+
CE as MULTI_SELECT_SIZES,
|
|
316
318
|
Ue as MUTED,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
319
|
+
Er as NOTICE_KINDS,
|
|
320
|
+
_r as NOTICE_ROLES,
|
|
321
|
+
pr as POPOVER_APPEND_TO_VALUES,
|
|
322
|
+
Or as POPOVER_CONTENT_WIDTHS,
|
|
323
|
+
mr as POPOVER_DIRECTIONS,
|
|
324
|
+
Rr as POPOVER_HEADER_FOOTER_PADDING_CLASSES,
|
|
325
|
+
lr as POPOVER_INITIAL_FOCUS_STRINGS,
|
|
326
|
+
xr as POPOVER_PADDING_CLASSES,
|
|
327
|
+
ir as POPOVER_ROLES,
|
|
328
|
+
sr as POPOVER_STICKY_VALUES,
|
|
329
|
+
dr as PRESENCE_STATES,
|
|
330
|
+
Lr as PRESENCE_STATES_LIST,
|
|
331
|
+
Mr as RADIO_INPUT_VALIDATION_CLASSES,
|
|
332
|
+
KE as REACTIONS_ATTRIBUTES,
|
|
333
|
+
Gr as RICH_TEXT_EDITOR_AUTOFOCUS_TYPES,
|
|
334
|
+
Kr as RICH_TEXT_EDITOR_OUTPUT_FORMATS,
|
|
335
|
+
Hr as ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS,
|
|
336
|
+
Zr as ROOT_LAYOUT_SIDEBAR_POSITIONS,
|
|
337
|
+
Wr as SELECT_SIZE_MODIFIERS,
|
|
338
|
+
vr as SELECT_STATE_MODIFIERS,
|
|
337
339
|
Ne as SHORTCUTS_ALIASES_LIST,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
340
|
+
ra as SKELETON_HEADING_HEIGHTS,
|
|
341
|
+
aa as SKELETON_RIPPLE_DURATION,
|
|
342
|
+
Ea as SKELETON_SHAPES,
|
|
343
|
+
_a as SKELETON_SHAPE_SIZES,
|
|
344
|
+
Ia as SKELETON_TEXT_TYPES,
|
|
345
|
+
Ta as SPLIT_BUTTON_ICON_SIZES,
|
|
344
346
|
Ve as SUCCESS,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
347
|
+
Ca as TAB_IMPORTANCE_MODIFIERS,
|
|
348
|
+
Pa as TAB_LIST_IMPORTANCE_MODIFIERS,
|
|
349
|
+
na as TAB_LIST_KIND_MODIFIERS,
|
|
350
|
+
Ma as TAB_LIST_SIZES,
|
|
351
|
+
Va as TOAST_MIN_DURATION,
|
|
352
|
+
Fa as TOAST_ROLES,
|
|
353
|
+
ba as TOGGLE_CHECKED_VALUES,
|
|
354
|
+
ja as TOGGLE_SIZE_MODIFIERS,
|
|
355
|
+
Ya as TOOLTIP_DELAY_MS,
|
|
356
|
+
ka as TOOLTIP_DIRECTIONS,
|
|
357
|
+
Wa as TOOLTIP_HIDE_ON_CLICK_VARIANTS,
|
|
358
|
+
va as TOOLTIP_KIND_MODIFIERS,
|
|
359
|
+
wa as TOOLTIP_STICKY_VALUES,
|
|
360
|
+
A_ as UNREAD_PILL_DIRECTIONS,
|
|
361
|
+
N_ as UNREAD_PILL_KINDS,
|
|
360
362
|
a as VALIDATION_MESSAGE_TYPES,
|
|
361
363
|
Fe as WARNING,
|
|
362
|
-
|
|
364
|
+
A as codeToEmojiData,
|
|
363
365
|
N as customEmojiAssetUrl,
|
|
364
366
|
u as defaultEmojiAssetUrl,
|
|
365
367
|
f as disableRootScrolling,
|
|
366
368
|
R as durationInHHMM,
|
|
367
369
|
d as emojiFileExtensionLarge,
|
|
368
|
-
|
|
369
|
-
|
|
370
|
+
L as emojiFileExtensionSmall,
|
|
371
|
+
C as emojiImageUrlLarge,
|
|
370
372
|
P as emojiImageUrlSmall,
|
|
371
373
|
n as emojiJson,
|
|
372
374
|
M as emojiRegex,
|
|
@@ -377,17 +379,17 @@ export {
|
|
|
377
379
|
U as filterValidShortCodes,
|
|
378
380
|
V as findEmojis,
|
|
379
381
|
F as findShortCodes,
|
|
380
|
-
|
|
382
|
+
Ao as formatLong,
|
|
381
383
|
No as formatMedium,
|
|
382
384
|
T as formatMessages,
|
|
383
385
|
uo as formatNoYear,
|
|
384
|
-
|
|
385
|
-
|
|
386
|
+
Lo as formatNumerical,
|
|
387
|
+
Co as formatShort,
|
|
386
388
|
l as getDateMedium,
|
|
387
389
|
G as getEmojiData,
|
|
388
390
|
Ge as getLinkKindModifier,
|
|
389
|
-
|
|
390
|
-
|
|
391
|
+
p as getUniqueString,
|
|
392
|
+
O as getValidationState,
|
|
391
393
|
x as relativeDate,
|
|
392
394
|
K as setCustomEmojiJson,
|
|
393
395
|
g as setCustomEmojiUrl,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialtone-vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dialtone-vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),i=require("./button-constants.cjs"),o=require("../../_plugin-vue2_normalizer-e_CkxkSV.cjs"),r=require("../../common/mixins/localization.cjs"),a=require("../link/link-constants.cjs"),u={name:"DtButton",mixins:[r.default],props:{circle:{type:Boolean,default:!1},iconPosition:{type:String,default:"left",validator:e=>Object.keys(i.ICON_POSITION_MODIFIERS).includes(e)},importance:{type:String,default:"primary",validator:e=>Object.keys(i.BUTTON_IMPORTANCE_MODIFIERS).includes(e)},link:{type:Boolean,default:!1},linkKind:{type:String,default:"default",validator:e=>Object.keys(a.LINK_KIND_MODIFIERS).includes(e)},linkInverted:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"button",validator:e=>i.BUTTON_TYPES.includes(e)},width:{type:String,default:null},size:{type:String,default:"md",validator:e=>Object.keys(i.BUTTON_SIZE_MODIFIERS).includes(e)},labelClass:{type:[String,Array,Object],default:""},loading:{type:Boolean,default:!1},kind:{type:String,default:"default",validator:e=>Object.keys(i.BUTTON_KIND_MODIFIERS).includes(e)},assertiveOnFocus:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},emits:["click","focusin","focusout"],data(){return{ICON_POSITION_MODIFIERS:i.ICON_POSITION_MODIFIERS,isInFocus:!1}},computed:{buttonListeners(){return this.assertiveOnFocus?{...this.$listeners,focusin:e=>{this.isInFocus=!0},focusout:e=>{this.isInFocus=!1}}:this.$listeners},computedAriaLive(){return this.assertiveOnFocus&&this.isInFocus?"assertive":this.$attrs.ariaLive},iconSize(){return i.BUTTON_ICON_SIZES[this.size]}},watch:{$props:{deep:!0,immediate:!0,handler(){process.env.NODE_ENV!=="production"&&(this.circle&&this.link&&l.util.warn("You cannot enable circle and link at the same time",this),this.isInvalidPropCombination(this.circle,this.kind,this.importance))}}},methods:{buttonClasses(){return this.link?["d-link",a.getLinkKindModifier(this.linkKind,this.linkInverted),i.BUTTON_SIZE_MODIFIERS[this.size]]:this.kind==="unstyled"?["d-btn--unstyled"]:["d-btn",i.BUTTON_IMPORTANCE_MODIFIERS[this.importance],i.BUTTON_KIND_MODIFIERS[this.kind],i.BUTTON_SIZE_MODIFIERS[this.size],{"d-btn--circle":this.circle,"d-btn--loading":this.loading,"d-btn--icon-only":this.isIconOnly(),"d-btn--vertical":this.isVerticalIconLayout(),"d-btn--active":this.active}]},isInvalidPropCombination(e,t,n){if(this.kind==="unstyled")return!0;for(const s of i.INVALID_COMBINATION)if(e===s.circle&&t===s.kind&&n===s.importance)return console.warn(s.message),!1;return!0},shouldRenderIcon(){return this.$scopedSlots.icon&&this.$scopedSlots.icon()&&!this.link},isIconOnly(){return this.shouldRenderIcon()&&!this.$slots.default},isVerticalIconLayout(){return!this.isIconOnly()&&["top","bottom"].includes(this.iconPosition)}}};var d=function(){var t=this,n=t._self._c;return n("button",t._g({class:["base-button__button",t.buttonClasses()],style:{width:t.width},attrs:{"data-qa":"dt-button",type:t.type,disabled:t.disabled,"aria-live":t.computedAriaLive,"aria-label":t.loading?t.i18n.$t("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),i=require("./button-constants.cjs"),o=require("../../_plugin-vue2_normalizer-e_CkxkSV.cjs"),r=require("../../common/mixins/localization.cjs"),a=require("../link/link-constants.cjs"),u={name:"DtButton",mixins:[r.default],props:{circle:{type:Boolean,default:!1},iconPosition:{type:String,default:"left",validator:e=>Object.keys(i.ICON_POSITION_MODIFIERS).includes(e)},importance:{type:String,default:"primary",validator:e=>Object.keys(i.BUTTON_IMPORTANCE_MODIFIERS).includes(e)},link:{type:Boolean,default:!1},linkKind:{type:String,default:"default",validator:e=>Object.keys(a.LINK_KIND_MODIFIERS).includes(e)},linkInverted:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"button",validator:e=>i.BUTTON_TYPES.includes(e)},width:{type:String,default:null},size:{type:String,default:"md",validator:e=>Object.keys(i.BUTTON_SIZE_MODIFIERS).includes(e)},labelClass:{type:[String,Array,Object],default:""},loading:{type:Boolean,default:!1},kind:{type:String,default:"default",validator:e=>Object.keys(i.BUTTON_KIND_MODIFIERS).includes(e)},assertiveOnFocus:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},emits:["click","focusin","focusout"],data(){return{ICON_POSITION_MODIFIERS:i.ICON_POSITION_MODIFIERS,isInFocus:!1}},computed:{buttonListeners(){return this.assertiveOnFocus?{...this.$listeners,focusin:e=>{this.isInFocus=!0},focusout:e=>{this.isInFocus=!1}}:this.$listeners},computedAriaLive(){return this.assertiveOnFocus&&this.isInFocus?"assertive":this.$attrs.ariaLive},iconSize(){return i.BUTTON_ICON_SIZES[this.size]}},watch:{$props:{deep:!0,immediate:!0,handler(){process.env.NODE_ENV!=="production"&&(this.circle&&this.link&&l.util.warn("You cannot enable circle and link at the same time",this),this.isInvalidPropCombination(this.circle,this.kind,this.importance))}}},methods:{buttonClasses(){return this.link?["d-link",a.getLinkKindModifier(this.linkKind,this.linkInverted),i.BUTTON_SIZE_MODIFIERS[this.size]]:this.kind==="unstyled"?["d-btn--unstyled"]:["d-btn",i.BUTTON_IMPORTANCE_MODIFIERS[this.importance],i.BUTTON_KIND_MODIFIERS[this.kind],i.BUTTON_SIZE_MODIFIERS[this.size],{"d-btn--circle":this.circle,"d-btn--loading":this.loading,"d-btn--icon-only":this.isIconOnly(),"d-btn--vertical":this.isVerticalIconLayout(),"d-btn--active":this.active}]},isInvalidPropCombination(e,t,n){if(this.kind==="unstyled")return!0;for(const s of i.INVALID_COMBINATION)if(e===s.circle&&t===s.kind&&n===s.importance)return console.warn(s.message),!1;return!0},shouldRenderIcon(){return this.$scopedSlots.icon&&this.$scopedSlots.icon()&&!this.link},isIconOnly(){return this.shouldRenderIcon()&&!this.$slots.default},isVerticalIconLayout(){return!this.isIconOnly()&&["top","bottom"].includes(this.iconPosition)}}};var d=function(){var t=this,n=t._self._c;return n("button",t._g({class:["base-button__button",t.buttonClasses()],style:{width:t.width},attrs:{"data-qa":"dt-button",type:t.type,disabled:t.disabled,"aria-live":t.computedAriaLive,"aria-label":t.loading?t.i18n.$t("DIALTONE_LOADING"):t.$attrs["aria-label"]}},t.buttonListeners),[t.shouldRenderIcon()?n("span",{class:["base-button__icon",{"d-btn__icon":t.kind!=="unstyled",[t.ICON_POSITION_MODIFIERS[t.iconPosition]]:t.kind!=="unstyled"}],attrs:{"data-qa":"dt-button-icon"}},[t._t("icon",null,{iconSize:t.iconSize})],2):t._e(),t.$slots.default?n("span",{class:["base-button__label",{"d-btn__label":t.kind!=="unstyled"},t.labelClass],attrs:{"data-qa":"dt-button-label"}},[t._t("default")],2):t._e()])},c=[],I=o.n(u,d,c);const _=I.exports;exports.default=_;
|
|
2
2
|
//# sourceMappingURL=button.cjs.map
|