@dialpad/dialtone-vue 3.193.0-next.2 → 3.193.0-next.3
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/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +209 -205
- package/dist/dialtone-vue.js.map +1 -1
- package/dist/lib/list-item/list-item.cjs +1 -1
- package/dist/lib/list-item/list-item.cjs.map +1 -1
- package/dist/lib/list-item/list-item.js +24 -14
- package/dist/lib/list-item/list-item.js.map +1 -1
- package/dist/lib/mode-island/index.cjs +2 -0
- package/dist/lib/mode-island/index.cjs.map +1 -0
- package/dist/lib/mode-island/index.js +7 -0
- package/dist/lib/mode-island/index.js.map +1 -0
- package/dist/lib/mode-island/mode-island-constants.cjs +2 -0
- package/dist/lib/mode-island/mode-island-constants.cjs.map +1 -0
- package/dist/lib/mode-island/mode-island-constants.js +12 -0
- package/dist/lib/mode-island/mode-island-constants.js.map +1 -0
- package/dist/lib/mode-island/mode-island.cjs +2 -0
- package/dist/lib/mode-island/mode-island.cjs.map +1 -0
- package/dist/lib/mode-island/mode-island.js +130 -0
- package/dist/lib/mode-island/mode-island.js.map +1 -0
- package/dist/lib/mode-island/utils.cjs +2 -0
- package/dist/lib/mode-island/utils.cjs.map +1 -0
- package/dist/lib/mode-island/utils.js +32 -0
- package/dist/lib/mode-island/utils.js.map +1 -0
- package/dist/lib/mode-island/validators.cjs +2 -0
- package/dist/lib/mode-island/validators.cjs.map +1 -0
- package/dist/lib/mode-island/validators.js +12 -0
- package/dist/lib/mode-island/validators.js.map +1 -0
- package/dist/lib/split-button/split-button-alpha.cjs +1 -1
- package/dist/lib/split-button/split-button-alpha.cjs.map +1 -1
- package/dist/lib/split-button/split-button-alpha.js +23 -15
- package/dist/lib/split-button/split-button-alpha.js.map +1 -1
- package/dist/lib/split-button/split-button-omega.cjs +1 -1
- package/dist/lib/split-button/split-button-omega.cjs.map +1 -1
- package/dist/lib/split-button/split-button-omega.js +13 -13
- package/dist/lib/split-button/split-button-omega.js.map +1 -1
- package/dist/lib/tooltip-directive/tooltip.cjs +1 -1
- package/dist/lib/tooltip-directive/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip-directive/tooltip.js +12 -11
- package/dist/lib/tooltip-directive/tooltip.js.map +1 -1
- package/dist/types/components/list_item/list_item.vue.d.ts +3 -1
- package/dist/types/components/mode_island/index.d.ts +3 -0
- package/dist/types/components/mode_island/index.d.ts.map +1 -0
- package/dist/types/components/mode_island/mode_island.vue.d.ts +3 -0
- package/dist/types/components/mode_island/mode_island.vue.d.ts.map +1 -0
- package/dist/types/components/mode_island/mode_island_constants.d.ts +10 -0
- package/dist/types/components/mode_island/mode_island_constants.d.ts.map +1 -0
- package/dist/types/components/mode_island/utils.d.ts +12 -0
- package/dist/types/components/mode_island/utils.d.ts.map +1 -0
- package/dist/types/components/mode_island/validators.d.ts +6 -0
- package/dist/types/components/mode_island/validators.d.ts.map +1 -0
- package/dist/types/components/split_button/split_button-alpha.vue.d.ts +6 -1
- package/dist/types/directives/tooltip_directive/tooltip.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +5 -5
package/dist/dialtone-vue.js
CHANGED
|
@@ -2,7 +2,7 @@ import { DEFAULT_VALIDATION_MESSAGE_TYPE as e, DESCRIPTION_SIZE_TYPES as r, VALI
|
|
|
2
2
|
import { validationMessageValidator as _ } from "./common/validators/index.js";
|
|
3
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 A, customEmojiAssetUrl as N, defaultEmojiAssetUrl as
|
|
5
|
+
import { codeToEmojiData as A, customEmojiAssetUrl as N, defaultEmojiAssetUrl as d, emojiFileExtensionLarge as u, emojiFileExtensionSmall as C, emojiImageUrlLarge as L, 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, getEmojiShortCode as K, setCustomEmojiJson as g, setCustomEmojiUrl as b, setEmojiAssetUrlLarge as j, setEmojiAssetUrlSmall as H, shortcodeToEmojiData as Z, stringToUnicode as Y, unicodeToString as h, validateCustomEmojiJson as k } from "./common/emoji/index.js";
|
|
6
6
|
import { DialtoneLocalization as v } from "./localization/index.js";
|
|
7
7
|
import { default as X } from "./lib/checkbox-group/checkbox-group.js";
|
|
8
8
|
import { default as J } from "./lib/datepicker/datepicker.js";
|
|
@@ -18,13 +18,13 @@ import { DtScrollbarDirective as Ot } from "./lib/scrollbar-directive/scrollbar.
|
|
|
18
18
|
import { default as Rt } from "./common/mixins/dom.js";
|
|
19
19
|
import { CheckableMixin as xt, GroupableMixin as it, InputMixin as st } from "./common/mixins/input.js";
|
|
20
20
|
import { InputGroupMixin as Nt } from "./common/mixins/input-group.js";
|
|
21
|
-
import { default as
|
|
21
|
+
import { default as ut } from "./common/mixins/keyboard-list-navigation.js";
|
|
22
22
|
import { default as Lt } from "./common/mixins/modal.js";
|
|
23
23
|
import { default as nt } from "./common/mixins/skeleton.js";
|
|
24
24
|
import { default as ct } from "./lib/avatar/avatar.js";
|
|
25
25
|
import { AVATAR_COLORS as Ut, AVATAR_GROUP_VALIDATOR as Vt, AVATAR_ICON_SIZES as Ft, AVATAR_KIND_MODIFIERS as Gt, AVATAR_PRESENCE_SIZE_MODIFIERS as Kt, AVATAR_PRESENCE_STATES as gt, AVATAR_RANDOM_COLORS as bt, AVATAR_SIZE_MODIFIERS as jt } from "./lib/avatar/avatar-constants.js";
|
|
26
26
|
import { default as Zt } from "./lib/badge/badge.js";
|
|
27
|
-
import { BADGE_DECORATION_MODIFIERS as
|
|
27
|
+
import { BADGE_DECORATION_MODIFIERS as ht, BADGE_KIND_MODIFIERS as kt, BADGE_TYPE_MODIFIERS as Wt } from "./lib/badge/badge-constants.js";
|
|
28
28
|
import { default as wt } from "./lib/banner/banner.js";
|
|
29
29
|
import { default as yt } from "./lib/breadcrumbs/breadcrumbs.js";
|
|
30
30
|
import { default as zt } from "./lib/breadcrumbs/breadcrumb-item.js";
|
|
@@ -43,7 +43,7 @@ import { default as Bo } from "./lib/combobox/combobox.js";
|
|
|
43
43
|
import { COMBOBOX_LABEL_SIZES as Vo } from "./lib/combobox/combobox-constants.js";
|
|
44
44
|
import { formatLong as Go, formatMedium as Ko, formatNoYear as go, formatNumerical as bo, formatShort as jo } from "./lib/datepicker/formatUtils.js";
|
|
45
45
|
import { default as Zo } from "./lib/description-list/description-list.js";
|
|
46
|
-
import { DT_DESCRIPTION_LIST_DIRECTION as
|
|
46
|
+
import { DT_DESCRIPTION_LIST_DIRECTION as ho } from "./lib/description-list/description-list-constants.js";
|
|
47
47
|
import { default as Wo } from "./lib/dropdown/dropdown.js";
|
|
48
48
|
import { default as wo } from "./lib/dropdown/dropdown-separator.js";
|
|
49
49
|
import { DROPDOWN_PADDING_CLASSES as yo } from "./lib/dropdown/dropdown-constants.js";
|
|
@@ -58,90 +58,92 @@ import { default as me } from "./lib/image-viewer/image-viewer.js";
|
|
|
58
58
|
import { default as le } from "./lib/input/input.js";
|
|
59
59
|
import { INPUT_SIZES as ie, INPUT_TYPES as se } from "./lib/input/input-constants.js";
|
|
60
60
|
import { default as Ne } from "./lib/input-group/input-group.js";
|
|
61
|
-
import { default as
|
|
61
|
+
import { default as ue } from "./lib/item-layout/item-layout.js";
|
|
62
62
|
import { default as Le } from "./lib/keyboard-shortcut/keyboard-shortcut.js";
|
|
63
63
|
import { SHORTCUTS_ALIASES_LIST as ne } from "./lib/keyboard-shortcut/keyboard-shortcut-constants.js";
|
|
64
64
|
import { default as ce } from "./lib/lazy-show/lazy-show.js";
|
|
65
65
|
import { default as Ue } from "./lib/link/link.js";
|
|
66
66
|
import { DANGER as Fe, LINK_KIND_MODIFIERS as Ge, LINK_VARIANTS as Ke, MENTION as ge, MUTED as be, SUCCESS as je, WARNING as He, getLinkKindModifier as Ze } from "./lib/link/link-constants.js";
|
|
67
|
-
import { default as
|
|
67
|
+
import { default as he } from "./lib/list-item/list-item.js";
|
|
68
68
|
import { LIST_ITEM_NAVIGATION_TYPES as We, LIST_ITEM_TYPES as ve } from "./lib/list-item/list-item-constants.js";
|
|
69
69
|
import { default as Xe } from "./lib/list-item-group/list-item-group.js";
|
|
70
70
|
import { default as Je } from "./lib/loader/loader.js";
|
|
71
71
|
import { default as qe } from "./lib/modal/modal.js";
|
|
72
72
|
import { MODAL_BANNER_KINDS as $e, MODAL_KIND_MODIFIERS as tr, MODAL_SIZE_MODIFIERS as or } from "./lib/modal/modal-constants.js";
|
|
73
|
-
import { default as rr } from "./lib/
|
|
74
|
-
import {
|
|
75
|
-
import { default as Ir } from "./lib/notice/notice
|
|
76
|
-
import { default as Dr } from "./lib/notice/notice-
|
|
77
|
-
import {
|
|
78
|
-
import { default as
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import { default as
|
|
82
|
-
import {
|
|
83
|
-
import { default as
|
|
84
|
-
import {
|
|
85
|
-
import { default as gr } from "./lib/
|
|
86
|
-
import {
|
|
87
|
-
import { default as
|
|
88
|
-
import {
|
|
89
|
-
import { default as
|
|
90
|
-
import {
|
|
91
|
-
import { default as
|
|
92
|
-
import {
|
|
93
|
-
import { default as oa } from "./lib/skeleton/skeleton
|
|
94
|
-
import { default as ra } from "./lib/skeleton/skeleton-
|
|
95
|
-
import { default as Ea } from "./lib/skeleton/skeleton-
|
|
96
|
-
import {
|
|
97
|
-
import { default as
|
|
98
|
-
import {
|
|
99
|
-
import { default as xa } from "./lib/
|
|
100
|
-
import {
|
|
101
|
-
import { default as
|
|
102
|
-
import {
|
|
103
|
-
import { default as na } from "./lib/tab/tab-
|
|
104
|
-
import {
|
|
105
|
-
import { default as
|
|
106
|
-
import {
|
|
107
|
-
import { default as
|
|
108
|
-
import {
|
|
109
|
-
import { default as
|
|
110
|
-
import {
|
|
111
|
-
import { default as
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import { default as aE } from "./lib/callbar-button
|
|
115
|
-
import {
|
|
116
|
-
import { default as fE } from "./lib/
|
|
117
|
-
import {
|
|
118
|
-
import { default as
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import { default as
|
|
122
|
-
import {
|
|
123
|
-
import { default as KE } from "./lib/
|
|
124
|
-
import { default as bE } from "./lib/
|
|
125
|
-
import {
|
|
126
|
-
import { default as
|
|
127
|
-
import {
|
|
128
|
-
import { default as vE } from "./lib/feed-item-
|
|
129
|
-
import {
|
|
130
|
-
import { default as
|
|
131
|
-
import {
|
|
132
|
-
import { default as t_ } from "./lib/
|
|
133
|
-
import { default as e_ } from "./lib/
|
|
134
|
-
import { default as a_ } from "./lib/
|
|
135
|
-
import {
|
|
136
|
-
import { default as
|
|
137
|
-
import {
|
|
138
|
-
import { default as O_ } from "./lib/
|
|
139
|
-
import {
|
|
140
|
-
import { default as
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import { default as
|
|
144
|
-
import {
|
|
73
|
+
import { default as rr } from "./lib/mode-island/mode-island.js";
|
|
74
|
+
import { DT_MODE_ISLAND_TYPES as Er } from "./lib/mode-island/mode-island-constants.js";
|
|
75
|
+
import { default as Ir } from "./lib/notice/notice.js";
|
|
76
|
+
import { default as Dr } from "./lib/notice/notice-action.js";
|
|
77
|
+
import { default as Tr } from "./lib/notice/notice-icon.js";
|
|
78
|
+
import { default as Or } from "./lib/notice/notice-content.js";
|
|
79
|
+
import { NOTICE_KINDS as Rr, NOTICE_ROLES as lr } from "./lib/notice/notice-constants.js";
|
|
80
|
+
import { default as ir } from "./lib/pagination/pagination.js";
|
|
81
|
+
import { default as Ar } from "./lib/popover/popover.js";
|
|
82
|
+
import { POPOVER_APPEND_TO_VALUES as dr, POPOVER_CONTENT_WIDTHS as ur, POPOVER_DIRECTIONS as Cr, POPOVER_HEADER_FOOTER_PADDING_CLASSES as Lr, POPOVER_INITIAL_FOCUS_STRINGS as Pr, POPOVER_PADDING_CLASSES as nr, POPOVER_ROLES as Mr, POPOVER_STICKY_VALUES as cr } from "./lib/popover/popover-constants.js";
|
|
83
|
+
import { default as Ur } from "./lib/presence/presence.js";
|
|
84
|
+
import { PRESENCE_STATES as Fr, PRESENCE_STATES_LIST as Gr } from "./lib/presence/presence-constants.js";
|
|
85
|
+
import { default as gr } from "./lib/radio/radio.js";
|
|
86
|
+
import { RADIO_INPUT_VALIDATION_CLASSES as jr } from "./lib/radio/radio-constants.js";
|
|
87
|
+
import { default as Zr } from "./lib/rich-text-editor/rich-text-editor.js";
|
|
88
|
+
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as hr, RICH_TEXT_EDITOR_OUTPUT_FORMATS as kr } from "./lib/rich-text-editor/rich-text-editor-constants.js";
|
|
89
|
+
import { default as vr } from "./lib/root-layout/root-layout.js";
|
|
90
|
+
import { ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS as Xr, ROOT_LAYOUT_SIDEBAR_POSITIONS as yr } from "./lib/root-layout/root-layout-constants.js";
|
|
91
|
+
import { default as zr } from "./lib/select-menu/select-menu.js";
|
|
92
|
+
import { SELECT_SIZE_MODIFIERS as Qr, SELECT_STATE_MODIFIERS as $r } from "./lib/select-menu/select-menu-constants.js";
|
|
93
|
+
import { default as oa } from "./lib/skeleton/skeleton.js";
|
|
94
|
+
import { default as ra } from "./lib/skeleton/skeleton-list-item.js";
|
|
95
|
+
import { default as Ea } from "./lib/skeleton/skeleton-text.js";
|
|
96
|
+
import { default as Ia } from "./lib/skeleton/skeleton-shape.js";
|
|
97
|
+
import { default as Da } from "./lib/skeleton/skeleton-paragraph.js";
|
|
98
|
+
import { SKELETON_HEADING_HEIGHTS as Ta, SKELETON_RIPPLE_DURATION as pa, SKELETON_SHAPES as Oa, SKELETON_SHAPE_SIZES as ma, SKELETON_TEXT_TYPES as Ra } from "./lib/skeleton/skeleton-constants.js";
|
|
99
|
+
import { default as xa } from "./lib/split-button/split-button.js";
|
|
100
|
+
import { SPLIT_BUTTON_ICON_SIZES as sa } from "./lib/split-button/split-button-constants.js";
|
|
101
|
+
import { default as Na } from "./lib/stack/stack.js";
|
|
102
|
+
import { DT_STACK_DIRECTION as ua, DT_STACK_GAP as Ca, DT_STACK_RESPONSIVE_BREAKPOINTS as La } from "./lib/stack/stack-constants.js";
|
|
103
|
+
import { default as na } from "./lib/tab/tab-group.js";
|
|
104
|
+
import { default as ca } from "./lib/tab/tab.js";
|
|
105
|
+
import { default as Ua } from "./lib/tab/tab-panel.js";
|
|
106
|
+
import { TAB_IMPORTANCE_MODIFIERS as Fa, TAB_LIST_IMPORTANCE_MODIFIERS as Ga, TAB_LIST_KIND_MODIFIERS as Ka, TAB_LIST_SIZES as ga } from "./lib/tab/tabs-constants.js";
|
|
107
|
+
import { default as ja } from "./lib/toast/toast.js";
|
|
108
|
+
import { TOAST_MIN_DURATION as Za, TOAST_ROLES as Ya } from "./lib/toast/toast-constants.js";
|
|
109
|
+
import { default as ka } from "./lib/toggle/toggle.js";
|
|
110
|
+
import { TOGGLE_CHECKED_VALUES as va, TOGGLE_SIZE_MODIFIERS as wa } from "./lib/toggle/toggle-constants.js";
|
|
111
|
+
import { default as ya } from "./lib/tooltip/tooltip.js";
|
|
112
|
+
import { TOOLTIP_DELAY_MS as za, TOOLTIP_DIRECTIONS as qa, TOOLTIP_HIDE_ON_CLICK_VARIANTS as Qa, TOOLTIP_KIND_MODIFIERS as $a, TOOLTIP_STICKY_VALUES as tE } from "./lib/tooltip/tooltip-constants.js";
|
|
113
|
+
import { default as eE } from "./lib/validation-messages/validation-messages.js";
|
|
114
|
+
import { default as aE } from "./lib/callbar-button/callbar-button.js";
|
|
115
|
+
import { CALLBAR_BUTTON_VALID_WIDTH_SIZE as _E } from "./lib/callbar-button/callbar-button-constants.js";
|
|
116
|
+
import { default as fE } from "./lib/callbar-button-with-popover/callbar-button-with-popover.js";
|
|
117
|
+
import { default as SE } from "./lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js";
|
|
118
|
+
import { default as pE } from "./lib/ivr-node/ivr-node.js";
|
|
119
|
+
import { IVR_NODE_ASSIGN as mE, IVR_NODE_BRANCH as RE, IVR_NODE_CUSTOMER_DATA as lE, IVR_NODE_EXPERT as xE, IVR_NODE_GO_TO as iE, IVR_NODE_HANGUP as sE, IVR_NODE_ICON_TYPES as AE, IVR_NODE_LABELS as NE, IVR_NODE_PROMPT_COLLECT as dE, IVR_NODE_PROMPT_MENU as uE, IVR_NODE_PROMPT_PLAY as CE, IVR_NODE_TRANSFER as LE } from "./lib/ivr-node/ivr-node-constants.js";
|
|
120
|
+
import { default as nE } from "./lib/grouped-chip/grouped-chip.js";
|
|
121
|
+
import { default as cE } from "./lib/combobox-multi-select/combobox-multi-select.js";
|
|
122
|
+
import { CHIP_SIZES as UE, CHIP_TOP_POSITION as VE, MULTI_SELECT_SIZES as FE } from "./lib/combobox-multi-select/combobox-multi-select-constants.js";
|
|
123
|
+
import { default as KE } from "./lib/combobox-with-popover/combobox-with-popover.js";
|
|
124
|
+
import { default as bE } from "./lib/attachment-carousel/attachment-carousel.js";
|
|
125
|
+
import { default as HE } from "./lib/editor/editor.js";
|
|
126
|
+
import { default as YE } from "./lib/emoji-row/emoji-row.js";
|
|
127
|
+
import { REACTIONS_ATTRIBUTES as kE } from "./lib/emoji-row/emoji-row-constants.js";
|
|
128
|
+
import { default as vE } from "./lib/feed-item-pill/feed-item-pill.js";
|
|
129
|
+
import { FEED_ITEM_PILL_BORDER_COLORS as XE } from "./lib/feed-item-pill/feed-item-pill-constants.js";
|
|
130
|
+
import { default as JE } from "./lib/feed-item-row/feed-item-row.js";
|
|
131
|
+
import { DEFAULT_FEED_ROW_STATE as qE, FEED_ROW_STATE_BACKGROUND_COLOR as QE } from "./lib/feed-item-row/feed-item-row-constants.js";
|
|
132
|
+
import { default as t_ } from "./lib/message-input/message-input.js";
|
|
133
|
+
import { default as e_ } from "./lib/time-pill/time-pill.js";
|
|
134
|
+
import { default as a_ } from "./lib/settings-menu-button/settings-menu-button.js";
|
|
135
|
+
import { default as __ } from "./lib/contact-info/contact-info.js";
|
|
136
|
+
import { default as f_ } from "./lib/callbox/callbox.js";
|
|
137
|
+
import { CALLBOX_BADGE_COLORS as S_, CALLBOX_BORDER_COLORS as T_ } from "./lib/callbox/callbox-constants.js";
|
|
138
|
+
import { default as O_ } from "./lib/contact-centers-row/contact-centers-row.js";
|
|
139
|
+
import { default as R_ } from "./lib/contact-row/contact-row.js";
|
|
140
|
+
import { default as x_ } from "./lib/general-row/general-row.js";
|
|
141
|
+
import { LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS as s_, LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR as A_, LEFTBAR_GENERAL_ROW_ICON_SIZES as N_, LEFTBAR_GENERAL_ROW_TYPES as d_ } from "./lib/general-row/general-row-constants.js";
|
|
142
|
+
import { default as C_ } from "./lib/group-row/group-row.js";
|
|
143
|
+
import { default as P_ } from "./lib/unread-pill/unread-pill.js";
|
|
144
|
+
import { UNREAD_PILL_DIRECTIONS as M_, UNREAD_PILL_KINDS as c_ } from "./lib/unread-pill/unread-pill-constants.js";
|
|
145
|
+
import { default as U_ } from "./lib/top-banner-info/top-banner-info.js";
|
|
146
|
+
import { COLOR_CODES as F_ } from "./lib/top-banner-info/top-banner-info-constants.js";
|
|
145
147
|
export {
|
|
146
148
|
Qo as ARROW_KEYS,
|
|
147
149
|
Ut as AVATAR_COLORS,
|
|
@@ -152,7 +154,7 @@ export {
|
|
|
152
154
|
gt as AVATAR_PRESENCE_STATES,
|
|
153
155
|
bt as AVATAR_RANDOM_COLORS,
|
|
154
156
|
jt as AVATAR_SIZE_MODIFIERS,
|
|
155
|
-
|
|
157
|
+
ht as BADGE_DECORATION_MODIFIERS,
|
|
156
158
|
kt as BADGE_KIND_MODIFIERS,
|
|
157
159
|
Wt as BADGE_TYPE_MODIFIERS,
|
|
158
160
|
Qt as BREADCRUMBS_INVERTED_MODIFIER,
|
|
@@ -163,26 +165,27 @@ export {
|
|
|
163
165
|
Eo as BUTTON_KIND_MODIFIERS,
|
|
164
166
|
_o as BUTTON_SIZE_MODIFIERS,
|
|
165
167
|
Io as BUTTON_TYPES,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
_E as CALLBAR_BUTTON_VALID_WIDTH_SIZE,
|
|
169
|
+
S_ as CALLBOX_BADGE_COLORS,
|
|
170
|
+
T_ as CALLBOX_BORDER_COLORS,
|
|
169
171
|
$o as CDN_URL,
|
|
170
172
|
No as CHIP_CLOSE_BUTTON_SIZE_MODIFIERS,
|
|
171
173
|
uo as CHIP_ICON_SIZES,
|
|
172
|
-
|
|
174
|
+
UE as CHIP_SIZES,
|
|
173
175
|
Co as CHIP_SIZE_MODIFIERS,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
VE as CHIP_TOP_POSITION,
|
|
177
|
+
F_ as COLOR_CODES,
|
|
176
178
|
Vo as COMBOBOX_LABEL_SIZES,
|
|
177
179
|
Fe as DANGER,
|
|
178
|
-
|
|
180
|
+
qE as DEFAULT_FEED_ROW_STATE,
|
|
179
181
|
e as DEFAULT_VALIDATION_MESSAGE_TYPE,
|
|
180
182
|
r as DESCRIPTION_SIZE_TYPES,
|
|
181
183
|
yo as DROPDOWN_PADDING_CLASSES,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
ho as DT_DESCRIPTION_LIST_DIRECTION,
|
|
185
|
+
Er as DT_MODE_ISLAND_TYPES,
|
|
186
|
+
ua as DT_STACK_DIRECTION,
|
|
187
|
+
Ca as DT_STACK_GAP,
|
|
188
|
+
La as DT_STACK_RESPONSIVE_BREAKPOINTS,
|
|
186
189
|
v as DialtoneLocalization,
|
|
187
190
|
ct as DtAvatar,
|
|
188
191
|
Zt as DtBadge,
|
|
@@ -218,74 +221,75 @@ export {
|
|
|
218
221
|
Ne as DtInputGroup,
|
|
219
222
|
Nt as DtInputGroupMixin,
|
|
220
223
|
st as DtInputMixin,
|
|
221
|
-
|
|
222
|
-
|
|
224
|
+
ue as DtItemLayout,
|
|
225
|
+
ut as DtKeyboardListNavigationMixin,
|
|
223
226
|
Le as DtKeyboardShortcut,
|
|
224
227
|
ce as DtLazyShow,
|
|
225
228
|
Ue as DtLink,
|
|
226
|
-
|
|
229
|
+
he as DtListItem,
|
|
227
230
|
Xe as DtListItemGroup,
|
|
228
231
|
Je as DtLoader,
|
|
229
232
|
qe as DtModal,
|
|
230
233
|
Lt as DtModalMixin,
|
|
231
|
-
rr as
|
|
232
|
-
|
|
233
|
-
Dr as
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
234
|
+
rr as DtModeIsland,
|
|
235
|
+
Ir as DtNotice,
|
|
236
|
+
Dr as DtNoticeAction,
|
|
237
|
+
Or as DtNoticeContent,
|
|
238
|
+
Tr as DtNoticeIcon,
|
|
239
|
+
ir as DtPagination,
|
|
240
|
+
Ar as DtPopover,
|
|
241
|
+
Ur as DtPresence,
|
|
242
|
+
gr as DtRadio,
|
|
239
243
|
It as DtRadioGroup,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
244
|
+
bE as DtRecipeAttachmentCarousel,
|
|
245
|
+
aE as DtRecipeCallbarButton,
|
|
246
|
+
SE as DtRecipeCallbarButtonWithDropdown,
|
|
247
|
+
fE as DtRecipeCallbarButtonWithPopover,
|
|
248
|
+
f_ as DtRecipeCallbox,
|
|
249
|
+
cE as DtRecipeComboboxMultiSelect,
|
|
250
|
+
KE as DtRecipeComboboxWithPopover,
|
|
251
|
+
O_ as DtRecipeContactCentersRow,
|
|
252
|
+
__ as DtRecipeContactInfo,
|
|
253
|
+
R_ as DtRecipeContactRow,
|
|
254
|
+
HE as DtRecipeEditor,
|
|
255
|
+
YE as DtRecipeEmojiRow,
|
|
256
|
+
vE as DtRecipeFeedItemPill,
|
|
257
|
+
JE as DtRecipeFeedItemRow,
|
|
258
|
+
x_ as DtRecipeGeneralRow,
|
|
259
|
+
C_ as DtRecipeGroupRow,
|
|
260
|
+
nE as DtRecipeGroupedChip,
|
|
261
|
+
pE as DtRecipeIvrNode,
|
|
262
|
+
t_ as DtRecipeMessageInput,
|
|
263
|
+
a_ as DtRecipeSettingsMenuButton,
|
|
264
|
+
e_ as DtRecipeTimePill,
|
|
265
|
+
U_ as DtRecipeTopBannerInfo,
|
|
266
|
+
P_ as DtRecipeUnreadPill,
|
|
267
|
+
Zr as DtRichTextEditor,
|
|
268
|
+
vr as DtRootLayout,
|
|
265
269
|
Ot as DtScrollbarDirective,
|
|
266
270
|
Dt as DtScroller,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
271
|
+
zr as DtSelectMenu,
|
|
272
|
+
oa as DtSkeleton,
|
|
273
|
+
ra as DtSkeletonListItem,
|
|
270
274
|
nt as DtSkeletonMixin,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
275
|
+
Da as DtSkeletonParagraph,
|
|
276
|
+
Ia as DtSkeletonShape,
|
|
277
|
+
Ea as DtSkeletonText,
|
|
278
|
+
xa as DtSplitButton,
|
|
279
|
+
Na as DtStack,
|
|
280
|
+
ca as DtTab,
|
|
281
|
+
na as DtTabGroup,
|
|
282
|
+
Ua as DtTabPanel,
|
|
283
|
+
ja as DtToast,
|
|
284
|
+
ka as DtToggle,
|
|
285
|
+
ya as DtTooltip,
|
|
282
286
|
Tt as DtTooltipDirective,
|
|
283
|
-
|
|
287
|
+
eE as DtValidationMessages,
|
|
284
288
|
te as EMOJIS_PER_ROW,
|
|
285
289
|
oe as EMOJI_PICKER_SKIN_TONE_MODIFIERS,
|
|
286
290
|
re as EMPTY_STATE_SIZE_MODIFIERS,
|
|
287
|
-
|
|
288
|
-
|
|
291
|
+
XE as FEED_ITEM_PILL_BORDER_COLORS,
|
|
292
|
+
QE as FEED_ROW_STATE_BACKGROUND_COLOR,
|
|
289
293
|
De as ICON_NAMES,
|
|
290
294
|
fo as ICON_POSITION_MODIFIERS,
|
|
291
295
|
Se as ICON_SIZE_MODIFIERS,
|
|
@@ -293,22 +297,22 @@ export {
|
|
|
293
297
|
ie as INPUT_SIZES,
|
|
294
298
|
se as INPUT_TYPES,
|
|
295
299
|
Do as INVALID_COMBINATION,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
300
|
+
mE as IVR_NODE_ASSIGN,
|
|
301
|
+
RE as IVR_NODE_BRANCH,
|
|
302
|
+
lE as IVR_NODE_CUSTOMER_DATA,
|
|
303
|
+
xE as IVR_NODE_EXPERT,
|
|
304
|
+
iE as IVR_NODE_GO_TO,
|
|
305
|
+
sE as IVR_NODE_HANGUP,
|
|
306
|
+
AE as IVR_NODE_ICON_TYPES,
|
|
307
|
+
NE as IVR_NODE_LABELS,
|
|
308
|
+
dE as IVR_NODE_PROMPT_COLLECT,
|
|
309
|
+
uE as IVR_NODE_PROMPT_MENU,
|
|
310
|
+
CE as IVR_NODE_PROMPT_PLAY,
|
|
311
|
+
LE as IVR_NODE_TRANSFER,
|
|
312
|
+
s_ as LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS,
|
|
313
|
+
A_ as LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR,
|
|
314
|
+
N_ as LEFTBAR_GENERAL_ROW_ICON_SIZES,
|
|
315
|
+
d_ as LEFTBAR_GENERAL_ROW_TYPES,
|
|
312
316
|
Ge as LINK_KIND_MODIFIERS,
|
|
313
317
|
Ke as LINK_VARIANTS,
|
|
314
318
|
We as LIST_ITEM_NAVIGATION_TYPES,
|
|
@@ -317,59 +321,59 @@ export {
|
|
|
317
321
|
$e as MODAL_BANNER_KINDS,
|
|
318
322
|
tr as MODAL_KIND_MODIFIERS,
|
|
319
323
|
or as MODAL_SIZE_MODIFIERS,
|
|
320
|
-
|
|
324
|
+
FE as MULTI_SELECT_SIZES,
|
|
321
325
|
be as MUTED,
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
326
|
+
Rr as NOTICE_KINDS,
|
|
327
|
+
lr as NOTICE_ROLES,
|
|
328
|
+
dr as POPOVER_APPEND_TO_VALUES,
|
|
329
|
+
ur as POPOVER_CONTENT_WIDTHS,
|
|
330
|
+
Cr as POPOVER_DIRECTIONS,
|
|
331
|
+
Lr as POPOVER_HEADER_FOOTER_PADDING_CLASSES,
|
|
332
|
+
Pr as POPOVER_INITIAL_FOCUS_STRINGS,
|
|
333
|
+
nr as POPOVER_PADDING_CLASSES,
|
|
334
|
+
Mr as POPOVER_ROLES,
|
|
335
|
+
cr as POPOVER_STICKY_VALUES,
|
|
336
|
+
Fr as PRESENCE_STATES,
|
|
337
|
+
Gr as PRESENCE_STATES_LIST,
|
|
338
|
+
jr as RADIO_INPUT_VALIDATION_CLASSES,
|
|
339
|
+
kE as REACTIONS_ATTRIBUTES,
|
|
340
|
+
hr as RICH_TEXT_EDITOR_AUTOFOCUS_TYPES,
|
|
341
|
+
kr as RICH_TEXT_EDITOR_OUTPUT_FORMATS,
|
|
342
|
+
Xr as ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS,
|
|
343
|
+
yr as ROOT_LAYOUT_SIDEBAR_POSITIONS,
|
|
344
|
+
Qr as SELECT_SIZE_MODIFIERS,
|
|
345
|
+
$r as SELECT_STATE_MODIFIERS,
|
|
342
346
|
ne as SHORTCUTS_ALIASES_LIST,
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
Ta as SKELETON_HEADING_HEIGHTS,
|
|
348
|
+
pa as SKELETON_RIPPLE_DURATION,
|
|
349
|
+
Oa as SKELETON_SHAPES,
|
|
350
|
+
ma as SKELETON_SHAPE_SIZES,
|
|
351
|
+
Ra as SKELETON_TEXT_TYPES,
|
|
352
|
+
sa as SPLIT_BUTTON_ICON_SIZES,
|
|
349
353
|
je as SUCCESS,
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
354
|
+
Fa as TAB_IMPORTANCE_MODIFIERS,
|
|
355
|
+
Ga as TAB_LIST_IMPORTANCE_MODIFIERS,
|
|
356
|
+
Ka as TAB_LIST_KIND_MODIFIERS,
|
|
357
|
+
ga as TAB_LIST_SIZES,
|
|
358
|
+
Za as TOAST_MIN_DURATION,
|
|
359
|
+
Ya as TOAST_ROLES,
|
|
360
|
+
va as TOGGLE_CHECKED_VALUES,
|
|
361
|
+
wa as TOGGLE_SIZE_MODIFIERS,
|
|
362
|
+
za as TOOLTIP_DELAY_MS,
|
|
363
|
+
qa as TOOLTIP_DIRECTIONS,
|
|
364
|
+
Qa as TOOLTIP_HIDE_ON_CLICK_VARIANTS,
|
|
365
|
+
$a as TOOLTIP_KIND_MODIFIERS,
|
|
366
|
+
tE as TOOLTIP_STICKY_VALUES,
|
|
367
|
+
M_ as UNREAD_PILL_DIRECTIONS,
|
|
368
|
+
c_ as UNREAD_PILL_KINDS,
|
|
365
369
|
a as VALIDATION_MESSAGE_TYPES,
|
|
366
370
|
He as WARNING,
|
|
367
371
|
A as codeToEmojiData,
|
|
368
372
|
N as customEmojiAssetUrl,
|
|
369
|
-
|
|
373
|
+
d as defaultEmojiAssetUrl,
|
|
370
374
|
f as disableRootScrolling,
|
|
371
375
|
R as durationInHHMM,
|
|
372
|
-
|
|
376
|
+
u as emojiFileExtensionLarge,
|
|
373
377
|
C as emojiFileExtensionSmall,
|
|
374
378
|
L as emojiImageUrlLarge,
|
|
375
379
|
P as emojiImageUrlSmall,
|
|
@@ -401,8 +405,8 @@ export {
|
|
|
401
405
|
j as setEmojiAssetUrlLarge,
|
|
402
406
|
H as setEmojiAssetUrlSmall,
|
|
403
407
|
Z as shortcodeToEmojiData,
|
|
404
|
-
|
|
405
|
-
|
|
408
|
+
Y as stringToUnicode,
|
|
409
|
+
h as unicodeToString,
|
|
406
410
|
k as validateCustomEmojiJson,
|
|
407
411
|
_ as validationMessageValidator
|
|
408
412
|
};
|
package/dist/dialtone-vue.js.map
CHANGED
|
@@ -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 s=require("./list-item-constants.cjs"),r=require("../../common/utils/index.cjs"),d=require("@dialpad/dialtone-icons/vue3"),t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./list-item-constants.cjs"),r=require("../../common/utils/index.cjs"),d=require("@dialpad/dialtone-icons/vue3"),t=require("vue"),c=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),u=require("../item-layout/item-layout.cjs"),m=["listitem","menuitem","option"],h={compatConfig:{MODE:3},name:"DtListItem",components:{DtItemLayout:u.default,DtIconCheck:d.DtIconCheck},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return r.default.getUniqueString()}},role:{type:String,default:"listitem",validator:e=>m.includes(e)},elementType:{type:String,default:"li"},type:{type:String,default:s.LIST_ITEM_TYPES.DEFAULT,validator:e=>Object.values(s.LIST_ITEM_TYPES).includes(e)},navigationType:{type:String,default:s.LIST_ITEM_NAVIGATION_TYPES.NONE,validator:e=>Object.values(s.LIST_ITEM_NAVIGATION_TYPES).includes(e)},selected:{type:Boolean,default:!1},wrapperClass:{type:[String,Object,Array],default:""}},emits:["click","keydown","mousemove","mouseleave"],data(){return{injected:!1,mouseHighlighted:!1}},computed:{isDefaultType(){return this.type===s.LIST_ITEM_TYPES.DEFAULT},listItemListeners(){return{click:e=>{this.onClick(e)},keydown:e=>{["enter","space"].includes(e.code.toLowerCase())&&this.onClick(e),this.$emit("keydown",e)},mousemove:e=>{this.onMouseHover(e),this.$emit("mousemove",e)},mouseleave:e=>{this.onMouseLeave(e),this.$emit("mouseleave",e)}}},isHighlighted(){return this.isHoverable?this.highlightId&&this.highlightId()?this.id===this.highlightId():this.mouseHighlighted:!1},isFocusable(){return this.navigationType===s.LIST_ITEM_NAVIGATION_TYPES.TAB},isHoverable(){return this.navigationType!==s.LIST_ITEM_NAVIGATION_TYPES.NONE}},methods:{onClick(e){this.$emit("click",e)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};function _(e,T,l,I,f,i){const a=t.resolveComponent("dt-icon-check"),n=t.resolveComponent("dt-item-layout");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.elementType),t.mergeProps({id:l.id,class:["d-list-item",{"d-list-item--focusable":i.isFocusable,"d-list-item--highlighted":i.isHighlighted,"d-list-item--static":!i.isHoverable}],tabindex:i.isFocusable?0:-1,role:l.role,"aria-selected":l.role==="listitem"?void 0:i.isHighlighted},t.toHandlers(i.listItemListeners)),{default:t.withCtx(()=>[i.isDefaultType?(t.openBlock(),t.createBlock(n,{key:0,unstyled:"",class:t.normalizeClass(["d-list-item__wrapper",l.wrapperClass]),"left-class":"d-list-item__left","content-class":"d-list-item__content","title-class":"d-list-item__title","subtitle-class":"d-list-item__subtitle","bottom-class":"d-list-item__bottom","right-class":"d-list-item__right","selected-class":"d-list-item__selected","data-qa":"dt-list-item-wrapper"},t.createSlots({_:2},[t.renderList(e.$slots,(y,o)=>({name:o,fn:t.withCtx(()=>[t.renderSlot(e.$slots,o)])})),l.selected?{name:"selected",fn:t.withCtx(()=>[t.createVNode(a,{size:"400"})]),key:"0"}:void 0]),1032,["class"])):t.renderSlot(e.$slots,"default",{key:1})]),_:3},16,["id","class","tabindex","role","aria-selected"])}const g=c._(h,[["render",_]]);exports.default=g;
|
|
2
2
|
//# sourceMappingURL=list-item.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.cjs","sources":["../../../components/list_item/list_item.vue"],"sourcesContent":["<template>\n <component\n :is=\"elementType\"\n :id=\"id\"\n :class=\"[\n 'd-list-item',\n {\n 'd-list-item--focusable': isFocusable,\n 'd-list-item--highlighted': isHighlighted,\n 'd-list-item--static': !isHoverable,\n }]\"\n :tabindex=\"isFocusable ? 0 : -1\"\n :role=\"role\"\n :aria-selected=\"role === 'listitem' ? undefined : isHighlighted\"\n v-on=\"listItemListeners\"\n >\n <dt-item-layout\n v-if=\"isDefaultType\"\n unstyled\n :class=\"['d-list-item__wrapper', wrapperClass]\"\n left-class=\"d-list-item__left\"\n content-class=\"d-list-item__content\"\n title-class=\"d-list-item__title\"\n subtitle-class=\"d-list-item__subtitle\"\n bottom-class=\"d-list-item__bottom\"\n right-class=\"d-list-item__right\"\n selected-class=\"d-list-item__selected\"\n data-qa=\"dt-list-item-wrapper\"\n >\n <template\n v-for=\"(_, slotName) in $slots\"\n #[slotName]\n >\n <!-- @slot named slots for custom list items -->\n <slot :name=\"slotName\" />\n </template>\n <template\n v-if=\"selected\"\n #selected\n >\n <dt-icon-check size=\"400\" />\n </template>\n </dt-item-layout>\n <!-- @slot slot for the main content -->\n <slot v-else />\n </component>\n</template>\n\n<script>\nimport {\n LIST_ITEM_TYPES,\n LIST_ITEM_NAVIGATION_TYPES,\n} from './list_item_constants';\nimport utils from '@/common/utils';\nimport { DtIconCheck } from '@dialpad/dialtone-icons/vue3';\nimport { DtItemLayout } from '@/components/item_layout';\n\nconst ROLES = ['listitem', 'menuitem', 'option'];\n\n/**\n * A list item is an element that can be used to represent individual items in a list.\n * @see https://dialtone.dialpad.com/components/list_item.html\n */\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtListItem',\n\n components: {\n DtItemLayout,\n DtIconCheck,\n },\n\n /**\n * Value provided from keyboard_list_navigation.js using id prop.\n */\n inject: {\n highlightId: { default: null },\n },\n\n props: {\n /**\n * Id for the item.\n */\n id: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * String to use for the item's role.\n */\n role: {\n type: String,\n default: 'listitem',\n validator: (role) => (ROLES).includes(role),\n },\n\n /**\n * HTML element type (tag name) of the content wrapper element.\n */\n elementType: {\n type: String,\n default: 'li',\n },\n\n /**\n * The type of child list item to use.\n * @values default, custom\n */\n type: {\n type: String,\n default: LIST_ITEM_TYPES.DEFAULT,\n validator: (t) => Object.values(LIST_ITEM_TYPES).includes(t),\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.NONE,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * Applies selected styles to the list item\n */\n selected: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional Classes to apply to the wrapper element,\n * note: it only applies on \"default\" type\n * Can accept all of: String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n wrapperClass: {\n type: [String, Object, Array],\n default: '',\n },\n },\n\n emits: [\n /**\n * Key down event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Native mouse move event\n *\n * @event mousemove\n * @type {MouseEvent}\n */\n 'mousemove',\n\n /**\n * Native mouse leave event\n *\n * @event mouseleave\n * @type {MouseEvent}\n */\n 'mouseleave',\n ],\n\n data () {\n return {\n injected: false,\n mouseHighlighted: false,\n };\n },\n\n computed: {\n isDefaultType () {\n return this.type === LIST_ITEM_TYPES.DEFAULT;\n },\n\n listItemListeners () {\n return {\n keydown: event => {\n if (['enter', 'space'].includes(event.code.toLowerCase())) {\n this.onClick(event);\n }\n this.$emit('keydown', event);\n },\n\n mousemove: event => {\n this.onMouseHover(event);\n this.$emit('mousemove', event);\n },\n\n mouseleave: event => {\n this.onMouseLeave(event);\n this.$emit('mouseleave', event);\n },\n };\n },\n\n /**\n * For keyboard navigation, whether this item is currently highlighted.\n * An injected highlightId will override the default mouseover highlight.\n */\n isHighlighted () {\n if (this.isHoverable) {\n return this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted;\n }\n return false;\n },\n\n isFocusable () {\n // Navigation type has to be set to \"tab\".\n return this.navigationType === LIST_ITEM_NAVIGATION_TYPES.TAB;\n },\n\n /**\n * Whether to apply hover styles.\n */\n isHoverable () {\n return this.navigationType !== LIST_ITEM_NAVIGATION_TYPES.NONE;\n },\n },\n\n methods: {\n onClick (e) {\n // disabled as we do not want to override native click\n
|
|
1
|
+
{"version":3,"file":"list-item.cjs","sources":["../../../components/list_item/list_item.vue"],"sourcesContent":["<template>\n <component\n :is=\"elementType\"\n :id=\"id\"\n :class=\"[\n 'd-list-item',\n {\n 'd-list-item--focusable': isFocusable,\n 'd-list-item--highlighted': isHighlighted,\n 'd-list-item--static': !isHoverable,\n }]\"\n :tabindex=\"isFocusable ? 0 : -1\"\n :role=\"role\"\n :aria-selected=\"role === 'listitem' ? undefined : isHighlighted\"\n v-on=\"listItemListeners\"\n >\n <dt-item-layout\n v-if=\"isDefaultType\"\n unstyled\n :class=\"['d-list-item__wrapper', wrapperClass]\"\n left-class=\"d-list-item__left\"\n content-class=\"d-list-item__content\"\n title-class=\"d-list-item__title\"\n subtitle-class=\"d-list-item__subtitle\"\n bottom-class=\"d-list-item__bottom\"\n right-class=\"d-list-item__right\"\n selected-class=\"d-list-item__selected\"\n data-qa=\"dt-list-item-wrapper\"\n >\n <template\n v-for=\"(_, slotName) in $slots\"\n #[slotName]\n >\n <!-- @slot named slots for custom list items -->\n <slot :name=\"slotName\" />\n </template>\n <template\n v-if=\"selected\"\n #selected\n >\n <dt-icon-check size=\"400\" />\n </template>\n </dt-item-layout>\n <!-- @slot slot for the main content -->\n <slot v-else />\n </component>\n</template>\n\n<script>\nimport {\n LIST_ITEM_TYPES,\n LIST_ITEM_NAVIGATION_TYPES,\n} from './list_item_constants';\nimport utils from '@/common/utils';\nimport { DtIconCheck } from '@dialpad/dialtone-icons/vue3';\nimport { DtItemLayout } from '@/components/item_layout';\n\nconst ROLES = ['listitem', 'menuitem', 'option'];\n\n/**\n * A list item is an element that can be used to represent individual items in a list.\n * @see https://dialtone.dialpad.com/components/list_item.html\n */\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtListItem',\n\n components: {\n DtItemLayout,\n DtIconCheck,\n },\n\n /**\n * Value provided from keyboard_list_navigation.js using id prop.\n */\n inject: {\n highlightId: { default: null },\n },\n\n props: {\n /**\n * Id for the item.\n */\n id: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * String to use for the item's role.\n */\n role: {\n type: String,\n default: 'listitem',\n validator: (role) => (ROLES).includes(role),\n },\n\n /**\n * HTML element type (tag name) of the content wrapper element.\n */\n elementType: {\n type: String,\n default: 'li',\n },\n\n /**\n * The type of child list item to use.\n * @values default, custom\n */\n type: {\n type: String,\n default: LIST_ITEM_TYPES.DEFAULT,\n validator: (t) => Object.values(LIST_ITEM_TYPES).includes(t),\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.NONE,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * Applies selected styles to the list item\n */\n selected: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional Classes to apply to the wrapper element,\n * note: it only applies on \"default\" type\n * Can accept all of: String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n wrapperClass: {\n type: [String, Object, Array],\n default: '',\n },\n },\n\n emits: [\n /**\n * Native click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n\n /**\n * Key down event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Native mouse move event\n *\n * @event mousemove\n * @type {MouseEvent}\n */\n 'mousemove',\n\n /**\n * Native mouse leave event\n *\n * @event mouseleave\n * @type {MouseEvent}\n */\n 'mouseleave',\n ],\n\n data () {\n return {\n injected: false,\n mouseHighlighted: false,\n };\n },\n\n computed: {\n isDefaultType () {\n return this.type === LIST_ITEM_TYPES.DEFAULT;\n },\n\n listItemListeners () {\n return {\n click: event => {\n this.onClick(event);\n },\n\n keydown: event => {\n if (['enter', 'space'].includes(event.code.toLowerCase())) {\n this.onClick(event);\n }\n this.$emit('keydown', event);\n },\n\n mousemove: event => {\n this.onMouseHover(event);\n this.$emit('mousemove', event);\n },\n\n mouseleave: event => {\n this.onMouseLeave(event);\n this.$emit('mouseleave', event);\n },\n };\n },\n\n /**\n * For keyboard navigation, whether this item is currently highlighted.\n * An injected highlightId will override the default mouseover highlight.\n */\n isHighlighted () {\n if (this.isHoverable) {\n return this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted;\n }\n return false;\n },\n\n isFocusable () {\n // Navigation type has to be set to \"tab\".\n return this.navigationType === LIST_ITEM_NAVIGATION_TYPES.TAB;\n },\n\n /**\n * Whether to apply hover styles.\n */\n isHoverable () {\n return this.navigationType !== LIST_ITEM_NAVIGATION_TYPES.NONE;\n },\n },\n\n methods: {\n onClick (e) {\n // disabled as we do not want to override native click\n this.$emit('click', e);\n },\n\n onMouseHover () {\n this.mouseHighlighted = true;\n },\n\n onMouseLeave () {\n this.mouseHighlighted = false;\n },\n },\n};\n</script>\n"],"names":["ROLES","_sfc_main","DtItemLayout","DtIconCheck","utils","role","LIST_ITEM_TYPES","t","LIST_ITEM_NAVIGATION_TYPES","event","_openBlock","_createBlock","_resolveDynamicComponent","$props","_mergeProps","$options","_toHandlers","_withCtx","_component_dt_item_layout","_normalizeClass","_createSlots","_renderList","_ctx","_","slotName","_renderSlot","_createVNode","_component_dt_icon_check"],"mappings":"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"}
|