@dialpad/dialtone-vue 3.201.0 → 3.202.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/dates/index.js +4 -4
- package/dist/common/utils/index.js +3 -3
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +349 -349
- package/dist/lib/attachment-carousel/attachment-carousel.js +1 -1
- package/dist/lib/avatar/avatar.js +10 -10
- package/dist/lib/badge/badge.js +5 -5
- package/dist/lib/banner/banner.js +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item.js +2 -2
- package/dist/lib/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/lib/button/button.js +14 -14
- package/dist/lib/button-group/button-group.js +2 -2
- package/dist/lib/button-group/buttons-decorator.js +2 -2
- package/dist/lib/callbar-button/callbar-button.js +2 -2
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +9 -9
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js +9 -9
- package/dist/lib/callbox/callbox.js +1 -1
- package/dist/lib/card/card.js +4 -4
- package/dist/lib/checkbox/checkbox.js +5 -5
- package/dist/lib/checkbox-group/checkboxes-decorator.js +1 -1
- package/dist/lib/chip/chip.js +7 -7
- package/dist/lib/codeblock/codeblock.js +2 -2
- package/dist/lib/collapsible/collapsible-lazy-show.js +3 -3
- package/dist/lib/collapsible/collapsible.js +8 -8
- package/dist/lib/combobox/combobox-empty-list.js +2 -2
- package/dist/lib/combobox/combobox-loading-list.js +3 -3
- package/dist/lib/combobox/combobox.cjs +1 -1
- package/dist/lib/combobox/combobox.js +8 -8
- package/dist/lib/combobox-multi-select/combobox-multi-select.js +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.js +10 -10
- package/dist/lib/contact-centers-row/contact-centers-row.js +7 -7
- package/dist/lib/contact-info/contact-info.js +1 -1
- package/dist/lib/contact-row/contact-row.js +1 -1
- package/dist/lib/datepicker/datepicker.js +1 -1
- package/dist/lib/datepicker/utils.js +4 -4
- package/dist/lib/description-list/description-list.js +3 -3
- package/dist/lib/dropdown/dropdown-list.js +4 -4
- package/dist/lib/dropdown/dropdown-separator.js +2 -2
- package/dist/lib/dropdown/dropdown.js +2 -2
- package/dist/lib/editor/editor.js +9 -9
- package/dist/lib/emoji/emoji.js +2 -2
- package/dist/lib/emoji-picker/emoji-picker.js +1 -1
- package/dist/lib/emoji-row/emoji-row.js +6 -6
- package/dist/lib/empty-state/empty-state.js +7 -7
- package/dist/lib/feed-item-pill/feed-item-pill.js +1 -1
- package/dist/lib/feed-item-row/feed-item-row.js +15 -15
- package/dist/lib/general-row/general-row.js +13 -13
- package/dist/lib/general-row/leftbar-general-row-icon.js +5 -5
- package/dist/lib/group-row/group-row.js +2 -2
- package/dist/lib/grouped-chip/grouped-chip.js +14 -14
- package/dist/lib/hovercard/hovercard.js +2 -2
- package/dist/lib/icon/icon.js +3 -3
- package/dist/lib/illustration/illustration.js +3 -3
- package/dist/lib/image-viewer/image-viewer.js +12 -12
- package/dist/lib/input/input.js +10 -10
- package/dist/lib/input-group/input-group.js +8 -8
- package/dist/lib/item-layout/item-layout.js +13 -13
- package/dist/lib/ivr-node/ivr-node.js +9 -9
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +3 -3
- package/dist/lib/lazy-show/lazy-show.js +2 -2
- package/dist/lib/link/link.js +2 -2
- package/dist/lib/list-item/list-item.js +3 -3
- package/dist/lib/list-item-group/list-item-group.js +5 -5
- package/dist/lib/loader/loader.js +2 -2
- package/dist/lib/message-input/message-input-button.js +5 -5
- package/dist/lib/message-input/message-input-link.js +2 -2
- package/dist/lib/message-input/message-input-topbar.js +2 -2
- package/dist/lib/message-input/message-input.js +1 -1
- package/dist/lib/modal/modal.js +1 -1
- package/dist/lib/motion-text/motion-text.js +5 -5
- package/dist/lib/notice/notice-action.js +1 -1
- package/dist/lib/notice/notice-content.js +6 -6
- package/dist/lib/notice/notice-icon.js +4 -4
- package/dist/lib/notice/notice.js +1 -1
- package/dist/lib/pagination/pagination.js +1 -1
- package/dist/lib/popover/popover-constants.js +3 -3
- package/dist/lib/popover/popover-header-footer.js +6 -6
- package/dist/lib/popover/popover.js +7 -7
- package/dist/lib/presence/presence.js +4 -4
- package/dist/lib/radio/radio.js +10 -10
- package/dist/lib/radio-group/radios-decorator.js +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.js +4 -4
- package/dist/lib/root-layout/root-layout.js +3 -3
- package/dist/lib/scroller/scroller.js +1 -1
- package/dist/lib/select-menu/select-menu.js +12 -12
- package/dist/lib/settings-menu-button/settings-menu-button.js +3 -3
- package/dist/lib/skeleton/skeleton-list-item.js +2 -2
- package/dist/lib/skeleton/skeleton-paragraph.js +1 -1
- package/dist/lib/skeleton/skeleton-shape.js +2 -2
- package/dist/lib/skeleton/skeleton-text.js +4 -4
- package/dist/lib/skeleton/skeleton.js +1 -1
- package/dist/lib/split-button/split-button-alpha.js +2 -2
- package/dist/lib/split-button/split-button-omega.js +2 -2
- package/dist/lib/split-button/split-button.js +13 -13
- package/dist/lib/stack/stack.js +2 -2
- package/dist/lib/stack/utils.js +5 -5
- package/dist/lib/stack/validators.js +7 -7
- package/dist/lib/tab/tab-group.js +2 -2
- package/dist/lib/tab/tab-panel.js +2 -2
- package/dist/lib/tab/tab.js +2 -2
- package/dist/lib/time-pill/time-pill.js +2 -2
- package/dist/lib/toast/toast.js +1 -1
- package/dist/lib/toggle/toggle.js +7 -7
- package/dist/lib/tooltip/tooltip.js +5 -5
- package/dist/lib/top-banner-info/top-banner-info.js +2 -2
- package/dist/lib/unread-pill/unread-pill.js +1 -1
- package/dist/lib/validation-messages/validation-messages.js +6 -6
- package/dist/node_modules/@tiptap/vue-3.cjs.map +1 -1
- package/dist/node_modules/@tiptap/vue-3.js.map +1 -1
- package/dist/shared/sr_only_close_button.js +2 -2
- package/package.json +9 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { hasSlotContent as b, extractVueListeners as g, getUniqueString as s } from "../../common/utils/index.js";
|
|
2
2
|
import C from "./collapsible-lazy-show.js";
|
|
3
3
|
import { DtIconChevronRight as x, DtIconChevronDown as S } from "@dialpad/dialtone-icons/vue3";
|
|
4
|
-
import { resolveComponent as a,
|
|
4
|
+
import { resolveComponent as a, openBlock as o, createBlock as i, resolveDynamicComponent as v, mergeProps as c, toHandlers as d, withCtx as r, createElementVNode as h, normalizeClass as L, renderSlot as p, createVNode as m, normalizeStyle as O, toDisplayString as T } from "vue";
|
|
5
5
|
import { _ as w } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import D from "../lazy-show/lazy-show.js";
|
|
7
7
|
import B from "../button/button.js";
|
|
@@ -162,21 +162,21 @@ const z = {
|
|
|
162
162
|
}, A = ["id"], E = ["title"];
|
|
163
163
|
function k(n, W, e, H, l, t) {
|
|
164
164
|
const u = a("dt-icon-chevron-down"), f = a("dt-icon-chevron-right"), y = a("dt-button"), _ = a("dt-collapsible-lazy-show");
|
|
165
|
-
return
|
|
165
|
+
return o(), i(v(e.elementType), c({ ref: "collapsible" }, d(t.collapsibleListeners)), {
|
|
166
166
|
default: r(() => [
|
|
167
167
|
h("div", {
|
|
168
168
|
id: !e.ariaLabelledBy && t.labelledBy,
|
|
169
169
|
ref: "anchor",
|
|
170
170
|
class: L(e.anchorClass)
|
|
171
171
|
}, [
|
|
172
|
-
|
|
172
|
+
p(n.$slots, "anchor", {
|
|
173
173
|
attrs: {
|
|
174
174
|
"aria-controls": e.id,
|
|
175
175
|
"aria-expanded": l.isOpen.toString(),
|
|
176
176
|
role: "button"
|
|
177
177
|
}
|
|
178
178
|
}, () => [
|
|
179
|
-
|
|
179
|
+
m(y, {
|
|
180
180
|
importance: "clear",
|
|
181
181
|
kind: "muted",
|
|
182
182
|
"aria-controls": e.id,
|
|
@@ -187,11 +187,11 @@ function k(n, W, e, H, l, t) {
|
|
|
187
187
|
onClick: t.defaultToggleOpen
|
|
188
188
|
}, {
|
|
189
189
|
default: r(() => [
|
|
190
|
-
l.isOpen ? (
|
|
190
|
+
l.isOpen ? (o(), i(u, {
|
|
191
191
|
key: 0,
|
|
192
192
|
class: "d-collapsible__icon",
|
|
193
193
|
size: "300"
|
|
194
|
-
})) : (
|
|
194
|
+
})) : (o(), i(f, {
|
|
195
195
|
key: 1,
|
|
196
196
|
class: "d-collapsible__icon",
|
|
197
197
|
size: "300"
|
|
@@ -205,7 +205,7 @@ function k(n, W, e, H, l, t) {
|
|
|
205
205
|
}, 8, ["aria-controls", "aria-expanded", "style", "onClick"])
|
|
206
206
|
])
|
|
207
207
|
], 10, A),
|
|
208
|
-
|
|
208
|
+
m(_, c({
|
|
209
209
|
id: e.id,
|
|
210
210
|
ref: "contentWrapper",
|
|
211
211
|
"aria-hidden": `${!l.isOpen}`,
|
|
@@ -226,7 +226,7 @@ function k(n, W, e, H, l, t) {
|
|
|
226
226
|
onAfterEnter: t.onEnterTransitionComplete
|
|
227
227
|
}), {
|
|
228
228
|
default: r(() => [
|
|
229
|
-
|
|
229
|
+
p(n.$slots, "content")
|
|
230
230
|
]),
|
|
231
231
|
_: 3
|
|
232
232
|
}, 16, ["id", "aria-hidden", "aria-labelledby", "aria-label", "show", "element-type", "class", "style", "onAfterLeave", "onAfterEnter"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent as s,
|
|
1
|
+
import { resolveComponent as s, openBlock as m, createElementBlock as n, renderSlot as a, createVNode as i, normalizeClass as r, withCtx as l, createElementVNode as c, toDisplayString as p } from "vue";
|
|
2
2
|
import { _ } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
import d from "../list-item/list-item.js";
|
|
4
4
|
const b = {
|
|
@@ -28,7 +28,7 @@ const b = {
|
|
|
28
28
|
};
|
|
29
29
|
function u(e, y, t, x, C, g) {
|
|
30
30
|
const o = s("dt-list-item");
|
|
31
|
-
return
|
|
31
|
+
return m(), n("ol", f, [
|
|
32
32
|
a(e.$slots, "default", {}, () => [
|
|
33
33
|
i(o, {
|
|
34
34
|
role: "option",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent as t,
|
|
1
|
+
import { resolveComponent as t, openBlock as o, createElementBlock as e, Fragment as m, renderList as c, createVNode as n, withCtx as _ } from "vue";
|
|
2
2
|
import { _ as a } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
import p from "../skeleton/skeleton.js";
|
|
4
4
|
import l from "../list-item/list-item.js";
|
|
@@ -11,8 +11,8 @@ const d = {
|
|
|
11
11
|
};
|
|
12
12
|
function u(b, x, k, L, g, y) {
|
|
13
13
|
const s = t("dt-skeleton"), r = t("dt-list-item");
|
|
14
|
-
return
|
|
15
|
-
(
|
|
14
|
+
return o(), e("ol", f, [
|
|
15
|
+
(o(), e(m, null, c(7, (i) => n(r, {
|
|
16
16
|
key: i,
|
|
17
17
|
role: "option",
|
|
18
18
|
"navigation-type": "none"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./combobox-loading-list.cjs"),g=require("./combobox-empty-list.cjs"),l=require("../../common/utils/index.cjs"),e=require("vue"),u=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),m=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./combobox-loading-list.cjs"),g=require("./combobox-empty-list.cjs"),l=require("../../common/utils/index.cjs"),e=require("vue"),u=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),m=require("./combobox-constants.cjs"),p=require("../../common/mixins/keyboard-list-navigation.cjs"),y={compatConfig:{MODE:3},name:"DtCombobox",components:{ComboboxLoadingList:a.default,ComboboxEmptyList:g.default},mixins:[p.default({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl"})],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:i=>Object.values(m.COMBOBOX_LABEL_SIZES).includes(i)},description:{type:String,default:""},listId:{type:String,default(){return l.getUniqueString()}},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},showList:{type:Boolean,default:!1},listRenderedOutside:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:""},emptyStateClass:{type:[String,Object,Array],default:""},clickOnSelect:{type:Boolean,default:!1}},emits:["select","escape","highlight","opened"],data(){return{outsideRenderedListRef:null,hasSlotContent:l.hasSlotContent}},computed:{inputProps(){return{label:this.label,labelVisible:this.labelVisible,size:this.size,description:this.description,role:"combobox","aria-label":this.label,"aria-expanded":this.showList.toString(),"aria-owns":this.listId,"aria-haspopup":"listbox","aria-activedescendant":this.activeItemId,"aria-controls":this.listId}},listProps(){return{role:"listbox",id:this.listId,class:"d-ps-relative","aria-label":this.label}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemId(){if(!(!this.showList||this.highlightIndex<0||this.loading))return this.highlightId},activeItemEl(){return this.highlightId?this.getListElement().querySelector("#"+this.highlightId):""}},watch:{showList(i){this.listRenderedOutside||(this.setInitialHighlightIndex(),this.$emit("opened",i)),!i&&this.outsideRenderedListRef&&(this.outsideRenderedListRef.removeEventListener("mousemove",this.onMouseHighlight),this.outsideRenderedListRef=null)},loading(){this.$nextTick(()=>{this.setInitialHighlightIndex()})},$props:{deep:!0,immediate:!0,handler(){this.validateEmptyListProps()}}},created(){this.validateEmptyListProps()},methods:{onMouseHighlight(i){if(this.loading)return;const t=i.target.closest("li");t&&this.highlightId!==t.id&&this.setHighlightId(t.id)},getListElement(){var i;return this.outsideRenderedListRef??((i=this.$refs.listWrapper)==null?void 0:i.querySelector(`#${this.listId}`))},clearHighlightIndex(){this.showList&&this.setHighlightIndex(-1)},afterHighlight(){this.loading||this.$emit("highlight",this.highlightIndex)},onEnterKey(){var i;this.loading||this.emptyList||this.highlightIndex>=0&&(this.$emit("select",this.highlightIndex),this.clickOnSelect&&((i=this.activeItemEl)==null||i.click()))},onEscapeKey(){this.$emit("escape")},onOpen(i,t){var n;this.outsideRenderedListRef=t,(n=this.outsideRenderedListRef)==null||n.addEventListener("mousemove",this.onMouseHighlight),this.$emit("opened",i),i&&this.setInitialHighlightIndex()},onKeyValidation(i,t){!this.showList||!this.getListElement()||this[t](i)},setInitialHighlightIndex(){this.showList&&this.$nextTick(()=>{this.setHighlightIndex(this.loading?-1:0)})},validateEmptyListProps(){this.$slots.emptyListItem||this.emptyList&&!this.emptyStateMessage&&console.error(`Invalid props: you must pass both props emptyList and emptyStateMessage to show the
|
|
2
2
|
empty message.`)}}},f={"data-qa":"dt-combobox-input-wrapper"};function c(i,t,n,L,r,s){const d=e.resolveComponent("combobox-loading-list"),h=e.resolveComponent("combobox-empty-list");return e.openBlock(),e.createElementBlock("div",{onKeydown:[t[3]||(t[3]=e.withKeys(e.withModifiers(o=>s.onKeyValidation(o,"onEscapeKey"),["stop"]),["esc"])),t[4]||(t[4]=e.withKeys(e.withModifiers(o=>s.onKeyValidation(o,"onEnterKey"),["exact"]),["enter"])),t[5]||(t[5]=e.withKeys(e.withModifiers(o=>s.onKeyValidation(o,"onUpKey"),["stop","prevent"]),["up"])),t[6]||(t[6]=e.withKeys(e.withModifiers(o=>s.onKeyValidation(o,"onDownKey"),["stop","prevent"]),["down"])),t[7]||(t[7]=e.withKeys(e.withModifiers(o=>s.onKeyValidation(o,"onHomeKey"),["stop","prevent"]),["home"])),t[8]||(t[8]=e.withKeys(e.withModifiers(o=>s.onKeyValidation(o,"onEndKey"),["stop","prevent"]),["end"]))]},[e.createElementVNode("div",f,[e.renderSlot(i.$slots,"input",{inputProps:s.inputProps})]),n.showList?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"listWrapper","data-qa":"dt-combobox-list-wrapper",onMouseleave:t[0]||(t[0]=(...o)=>s.clearHighlightIndex&&s.clearHighlightIndex(...o)),onFocusout:t[1]||(t[1]=(...o)=>s.clearHighlightIndex&&s.clearHighlightIndex(...o)),onMousemoveCapture:t[2]||(t[2]=(...o)=>s.onMouseHighlight&&s.onMouseHighlight(...o))},[n.loading&&!n.listRenderedOutside?(e.openBlock(),e.createBlock(d,e.normalizeProps(e.mergeProps({key:0},s.listProps)),null,16)):n.emptyList&&(n.emptyStateMessage||r.hasSlotContent(i.$slots.emptyListItem))&&!n.listRenderedOutside?(e.openBlock(),e.createBlock(h,e.mergeProps({key:1},s.listProps,{message:n.emptyStateMessage,"item-class":n.emptyStateClass}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"emptyListItem")]),_:3},16,["message","item-class"])):e.renderSlot(i.$slots,"list",{key:2,listProps:s.listProps,opened:s.onOpen,clearHighlightIndex:s.clearHighlightIndex})],544)):e.createCommentVNode("",!0)],32)}const b=u._(y,[["render",c]]);exports.default=b;
|
|
3
3
|
//# sourceMappingURL=combobox.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import y from "./combobox-loading-list.js";
|
|
2
2
|
import I from "./combobox-empty-list.js";
|
|
3
3
|
import { hasSlotContent as L, getUniqueString as b } from "../../common/utils/index.js";
|
|
4
|
-
import { resolveComponent as h,
|
|
4
|
+
import { resolveComponent as h, openBlock as d, createElementBlock as a, withKeys as l, withModifiers as o, createElementVNode as c, renderSlot as r, createBlock as g, normalizeProps as x, mergeProps as m, withCtx as v, createCommentVNode as E } from "vue";
|
|
5
5
|
import { _ as O } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import S from "
|
|
7
|
-
import
|
|
6
|
+
import { COMBOBOX_LABEL_SIZES as S } from "./combobox-constants.js";
|
|
7
|
+
import H from "../../common/mixins/keyboard-list-navigation.js";
|
|
8
8
|
const K = {
|
|
9
9
|
compatConfig: { MODE: 3 },
|
|
10
10
|
name: "DtCombobox",
|
|
@@ -13,7 +13,7 @@ const K = {
|
|
|
13
13
|
ComboboxEmptyList: I
|
|
14
14
|
},
|
|
15
15
|
mixins: [
|
|
16
|
-
|
|
16
|
+
H({
|
|
17
17
|
indexKey: "highlightIndex",
|
|
18
18
|
idKey: "highlightId",
|
|
19
19
|
listElementKey: "getListElement",
|
|
@@ -46,7 +46,7 @@ const K = {
|
|
|
46
46
|
size: {
|
|
47
47
|
type: String,
|
|
48
48
|
default: null,
|
|
49
|
-
validator: (e) => Object.values(
|
|
49
|
+
validator: (e) => Object.values(S).includes(e)
|
|
50
50
|
},
|
|
51
51
|
/**
|
|
52
52
|
* Description for the input
|
|
@@ -299,11 +299,11 @@ function w(e, t, n, R, p, i) {
|
|
|
299
299
|
onFocusout: t[1] || (t[1] = (...s) => i.clearHighlightIndex && i.clearHighlightIndex(...s)),
|
|
300
300
|
onMousemoveCapture: t[2] || (t[2] = (...s) => i.onMouseHighlight && i.onMouseHighlight(...s))
|
|
301
301
|
}, [
|
|
302
|
-
n.loading && !n.listRenderedOutside ? (d(), g(u,
|
|
302
|
+
n.loading && !n.listRenderedOutside ? (d(), g(u, x(m({ key: 0 }, i.listProps)), null, 16)) : n.emptyList && (n.emptyStateMessage || p.hasSlotContent(e.$slots.emptyListItem)) && !n.listRenderedOutside ? (d(), g(f, m({ key: 1 }, i.listProps, {
|
|
303
303
|
message: n.emptyStateMessage,
|
|
304
304
|
"item-class": n.emptyStateClass
|
|
305
305
|
}), {
|
|
306
|
-
default:
|
|
306
|
+
default: v(() => [
|
|
307
307
|
r(e.$slots, "emptyListItem")
|
|
308
308
|
]),
|
|
309
309
|
_: 3
|
|
@@ -313,7 +313,7 @@ function w(e, t, n, R, p, i) {
|
|
|
313
313
|
opened: i.onOpen,
|
|
314
314
|
clearHighlightIndex: i.clearHighlightIndex
|
|
315
315
|
})
|
|
316
|
-
], 544)) :
|
|
316
|
+
], 544)) : E("", !0)
|
|
317
317
|
], 32);
|
|
318
318
|
}
|
|
319
319
|
const z = /* @__PURE__ */ O(K, [["render", w]]);
|
|
@@ -6,7 +6,7 @@ import { validationMessageValidator as M } from "../../common/validators/index.j
|
|
|
6
6
|
import { extractNonListeners as B, returnFirstEl as d, extractVueListeners as O, hasSlotContent as T } from "../../common/utils/index.js";
|
|
7
7
|
import { POPOVER_APPEND_TO_VALUES as P } from "../popover/popover-constants.js";
|
|
8
8
|
import { CHIP_TOP_POSITION as F, CHIP_SIZES as k, MULTI_SELECT_SIZES as H } from "./combobox-multi-select-constants.js";
|
|
9
|
-
import { resolveComponent as p,
|
|
9
|
+
import { resolveComponent as p, openBlock as u, createBlock as f, mergeProps as g, createSlots as R, withCtx as r, createElementVNode as h, withModifiers as V, renderSlot as m, createElementBlock as b, toDisplayString as C, normalizeClass as z, Fragment as E, renderList as D, toHandlers as K, withKeys as N, createTextVNode as A, createVNode as y } from "vue";
|
|
10
10
|
import { _ as U } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const j = {
|
|
12
12
|
compatConfig: { MODE: 3 },
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const S=require("../combobox/combobox-loading-list.cjs"),y=require("../combobox/combobox-empty-list.cjs"),u=require("../../common/utils/index.cjs"),t=require("vue"),L=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const S=require("../combobox/combobox-loading-list.cjs"),y=require("../combobox/combobox-empty-list.cjs"),u=require("../../common/utils/index.cjs"),t=require("vue"),L=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),_=require("../popover/popover.cjs"),x=require("../combobox/combobox.cjs"),h=require("../dropdown/dropdown-constants.cjs"),m=require("../popover/popover-constants.cjs"),w=require("../combobox/combobox-constants.cjs"),C={compatConfig:{MODE:3},name:"DtRecipeComboboxWithPopover",components:{DtCombobox:x.default,DtPopover:_.default,ComboboxLoadingList:S.default,ComboboxEmptyList:y.default},props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:e=>Object.values(w.COMBOBOX_LABEL_SIZES).includes(e)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return u.getUniqueString()}},listClass:{type:[String,Array,Object],default:""},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},padding:{type:String,default:"small",validator:e=>Object.keys(h.DROPDOWN_PADDING_CLASSES).some(n=>n===e)},contentWidth:{type:String,default:null,validator:e=>m.POPOVER_CONTENT_WIDTHS.includes(e)},openWithArrowKeys:{type:Boolean,default:!1},popoverOffset:{type:Array,default:()=>[0,4]},popoverSticky:{type:[Boolean,String],default:!1},hasSuggestionList:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:e=>m.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:h.DROPDOWN_PADDING_CLASSES,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:u.getUniqueString(),hasSlotContent:u.hasSlotContent}},computed:{comboboxListeners(){return{...this.$attrs,onSelect:this.onSelect,onEscape:this.onEscape,onHighlight:this.onHighlight}}},watch:{showList:{handler:function(e){e!==null&&(this.isListShown=e)},immediate:!0},isListShown(e){e?window.addEventListener("mousedown",this.onFocusOut):window.removeEventListener("mousedown",this.onFocusOut),this.onOpened(e)}},methods:{handleDisplayList(e){!this.hasSuggestionList&&e&&this.showComboboxList(),!this.hasSuggestionList&&!e&&this.closeComboboxList()},showComboboxList(){this.showList==null&&(this.isListShown=!0)},closeComboboxList(){this.showList==null&&(this.isListShown=!1)},onSelect(e){this.loading||(this.$emit("select",e),this.hasSuggestionList||this.closeComboboxList())},onEscape(){this.$emit("escape"),this.closeComboboxList()},onHighlight(e){this.loading||this.$emit("highlight",e)},onOpened(e){this.$emit("opened",e)},onFocusIn(e){var n;this.hasSuggestionList&&e&&((n=this.$refs.input)==null?void 0:n.querySelector("input"))===e.target&&this.showComboboxList()},onFocusOut(e){var r,i,s;const n=(i=(r=this.$refs.popover)==null?void 0:r.tip)==null?void 0:i.popper,o=this.$refs.input;(s=e.composedPath())!=null&&s.some(a=>[n,o].includes(a))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}},v=["id"],O={ref:"header"},E=["onMouseleave","onFocusout"],P={ref:"footer"};function D(e,n,o,r,i,s){const a=t.resolveComponent("combobox-loading-list"),p=t.resolveComponent("combobox-empty-list"),b=t.resolveComponent("dt-popover"),f=t.resolveComponent("dt-combobox");return t.openBlock(),t.createBlock(f,t.mergeProps({ref:"combobox",loading:o.loading,label:o.label,"label-visible":o.labelVisible,size:o.size,description:o.description,"empty-list":o.emptyList,"empty-state-message":o.emptyStateMessage,"show-list":i.isListShown,"on-beginning-of-list":o.onBeginningOfList,"on-end-of-list":o.onEndOfList,"list-rendered-outside":!0,"list-id":o.listId,"data-qa":"dt-combobox"},s.comboboxListeners),{input:t.withCtx(({inputProps:d})=>[t.createElementVNode("div",{id:i.externalAnchor,ref:"input",onFocusin:n[0]||(n[0]=(...l)=>s.onFocusIn&&s.onFocusIn(...l)),onKeydown:[n[1]||(n[1]=t.withKeys(l=>s.openOnArrowKeyPress(l),["up"])),n[2]||(n[2]=t.withKeys(l=>s.openOnArrowKeyPress(l),["down"]))]},[t.renderSlot(e.$slots,"input",{inputProps:d,onInput:s.handleDisplayList})],40,v)]),list:t.withCtx(({opened:d,listProps:l,clearHighlightIndex:c})=>[t.createVNode(b,{ref:"popover",open:i.isListShown,"onUpdate:open":n[3]||(n[3]=g=>i.isListShown=g),"hide-on-click":!1,"max-height":o.maxHeight,"max-width":o.maxWidth,offset:o.popoverOffset,sticky:o.popoverSticky,placement:"bottom-start","initial-focus-element":"none",padding:"none",role:"listbox","external-anchor":i.externalAnchor,"content-width":o.contentWidth,"content-appear":!0,"content-tabindex":null,modal:!1,"auto-focus":!1,"append-to":o.appendTo,transition:o.transition,onOpened:d},t.createSlots({content:t.withCtx(()=>[t.createElementVNode("div",{ref:"listWrapper",class:t.normalizeClass(["d-recipe-combobox-with-popover__list",i.DROPDOWN_PADDING_CLASSES[o.padding],o.listClass]),onMouseleave:c,onFocusout:c},[o.loading?(t.openBlock(),t.createBlock(a,t.normalizeProps(t.mergeProps({key:0},l)),null,16)):o.emptyList&&o.emptyStateMessage?(t.openBlock(),t.createBlock(p,t.mergeProps({key:1},l,{message:o.emptyStateMessage}),null,16,["message"])):t.renderSlot(e.$slots,"list",{key:2,listProps:l})],42,E)]),_:2},[i.hasSlotContent(e.$slots.header)?{name:"headerContent",fn:t.withCtx(()=>[t.createElementVNode("div",O,[t.renderSlot(e.$slots,"header")],512)]),key:"0"}:void 0,i.hasSlotContent(e.$slots.footer)?{name:"footerContent",fn:t.withCtx(()=>[t.createElementVNode("div",P,[t.renderSlot(e.$slots,"footer")],512)]),key:"1"}:void 0]),1032,["open","max-height","max-width","offset","sticky","external-anchor","content-width","append-to","transition","onOpened"])]),_:3},16,["loading","label","label-visible","size","description","empty-list","empty-state-message","show-list","on-beginning-of-list","on-end-of-list","list-id"])}const A=L._(C,[["render",D]]);exports.default=A;
|
|
2
2
|
//# sourceMappingURL=combobox-with-popover.cjs.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import _ from "../combobox/combobox-loading-list.js";
|
|
2
2
|
import C from "../combobox/combobox-empty-list.js";
|
|
3
3
|
import { hasSlotContent as v, getUniqueString as g } from "../../common/utils/index.js";
|
|
4
|
-
import { resolveComponent as r,
|
|
4
|
+
import { resolveComponent as r, openBlock as f, createBlock as p, mergeProps as c, withCtx as l, createVNode as E, createSlots as P, createElementVNode as a, normalizeClass as A, normalizeProps as D, renderSlot as d, withKeys as y } from "vue";
|
|
5
5
|
import { _ as B } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import I from "../combobox/combobox.js";
|
|
6
|
+
import k from "../popover/popover.js";
|
|
7
|
+
import F from "../combobox/combobox.js";
|
|
9
8
|
import { DROPDOWN_PADDING_CLASSES as S } from "../dropdown/dropdown-constants.js";
|
|
9
|
+
import { POPOVER_APPEND_TO_VALUES as W, POPOVER_CONTENT_WIDTHS as I } from "../popover/popover-constants.js";
|
|
10
10
|
import { COMBOBOX_LABEL_SIZES as M } from "../combobox/combobox-constants.js";
|
|
11
11
|
const N = {
|
|
12
12
|
compatConfig: { MODE: 3 },
|
|
13
13
|
name: "DtRecipeComboboxWithPopover",
|
|
14
14
|
components: {
|
|
15
|
-
DtCombobox:
|
|
16
|
-
DtPopover:
|
|
15
|
+
DtCombobox: F,
|
|
16
|
+
DtPopover: k,
|
|
17
17
|
ComboboxLoadingList: _,
|
|
18
18
|
ComboboxEmptyList: C
|
|
19
19
|
},
|
|
@@ -121,7 +121,7 @@ const N = {
|
|
|
121
121
|
contentWidth: {
|
|
122
122
|
type: String,
|
|
123
123
|
default: null,
|
|
124
|
-
validator: (t) =>
|
|
124
|
+
validator: (t) => I.includes(t)
|
|
125
125
|
},
|
|
126
126
|
/**
|
|
127
127
|
* If the list should be shown by pressing up or down arrow key on the input element.
|
|
@@ -183,7 +183,7 @@ const N = {
|
|
|
183
183
|
appendTo: {
|
|
184
184
|
type: [HTMLElement, String],
|
|
185
185
|
default: "body",
|
|
186
|
-
validator: (t) =>
|
|
186
|
+
validator: (t) => W.includes(t) || t instanceof HTMLElement
|
|
187
187
|
},
|
|
188
188
|
/**
|
|
189
189
|
* Named transition when the content display is toggled.
|
|
@@ -292,7 +292,7 @@ const N = {
|
|
|
292
292
|
}, H = ["id"], K = { ref: "header" }, T = ["onMouseleave", "onFocusout"], V = { ref: "footer" };
|
|
293
293
|
function z(t, o, e, m, i, n) {
|
|
294
294
|
const u = r("combobox-loading-list"), L = r("combobox-empty-list"), w = r("dt-popover"), x = r("dt-combobox");
|
|
295
|
-
return
|
|
295
|
+
return f(), p(x, c({
|
|
296
296
|
ref: "combobox",
|
|
297
297
|
loading: e.loading,
|
|
298
298
|
label: e.label,
|
|
@@ -359,7 +359,7 @@ function z(t, o, e, m, i, n) {
|
|
|
359
359
|
onMouseleave: b,
|
|
360
360
|
onFocusout: b
|
|
361
361
|
}, [
|
|
362
|
-
e.loading ? (
|
|
362
|
+
e.loading ? (f(), p(u, D(c({ key: 0 }, s)), null, 16)) : e.emptyList && e.emptyStateMessage ? (f(), p(L, c({ key: 1 }, s, { message: e.emptyStateMessage }), null, 16, ["message"])) : d(t.$slots, "list", {
|
|
363
363
|
key: 2,
|
|
364
364
|
listProps: s
|
|
365
365
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { addClassStyleAttrs as S, removeClassStyleAttrs as A, returnFirstEl as u, extractVueListeners as E, safeConcatStrings as N } from "../../common/utils/index.js";
|
|
2
2
|
import { DtIconChevronDown as W, DtIconHeadphones as k } from "@dialpad/dialtone-icons/vue3";
|
|
3
3
|
import { DialtoneLocalization as D } from "../../localization/index.js";
|
|
4
|
-
import { resolveComponent as i,
|
|
4
|
+
import { resolveComponent as i, openBlock as h, createElementBlock as f, mergeProps as w, createElementVNode as o, normalizeClass as T, toHandlers as q, createVNode as _, normalizeStyle as B, withCtx as b, createTextVNode as C, toDisplayString as y, renderSlot as v, createBlock as $, createCommentVNode as L, withModifiers as z } from "vue";
|
|
5
5
|
import { _ as O } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import R from "../emoji-text-wrapper/emoji-text-wrapper.js";
|
|
7
7
|
import j from "../badge/badge.js";
|
|
@@ -171,14 +171,14 @@ function G(e, r, a, m, n, t) {
|
|
|
171
171
|
size: "200"
|
|
172
172
|
}, {
|
|
173
173
|
default: b(() => [
|
|
174
|
-
y(
|
|
174
|
+
C(y(a.description), 1)
|
|
175
175
|
]),
|
|
176
176
|
_: 1
|
|
177
177
|
})
|
|
178
178
|
], 4)
|
|
179
179
|
], 16, x),
|
|
180
|
-
a.hideActions ?
|
|
181
|
-
|
|
180
|
+
a.hideActions ? L("", !0) : (h(), f("div", M, [
|
|
181
|
+
v(e.$slots, "right"),
|
|
182
182
|
o("div", H, [
|
|
183
183
|
t.showUnreadCount ? (h(), $(d, {
|
|
184
184
|
key: 0,
|
|
@@ -188,10 +188,10 @@ function G(e, r, a, m, n, t) {
|
|
|
188
188
|
type: "bulletin"
|
|
189
189
|
}, {
|
|
190
190
|
default: b(() => [
|
|
191
|
-
y(
|
|
191
|
+
C(y(a.unreadCount), 1)
|
|
192
192
|
]),
|
|
193
193
|
_: 1
|
|
194
|
-
})) :
|
|
194
|
+
})) : L("", !0),
|
|
195
195
|
_(g, {
|
|
196
196
|
class: "d-recipe-leftbar-row__action",
|
|
197
197
|
"data-qa": "dt-recipe-leftbar-row-action-button",
|
|
@@ -211,7 +211,7 @@ function G(e, r, a, m, n, t) {
|
|
|
211
211
|
]))
|
|
212
212
|
], 2),
|
|
213
213
|
o("div", F, [
|
|
214
|
-
|
|
214
|
+
v(e.$slots, "timer")
|
|
215
215
|
])
|
|
216
216
|
], 16);
|
|
217
217
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import g from "../item-layout/item-layout.js";
|
|
2
2
|
import h from "../avatar/avatar.js";
|
|
3
|
-
import { resolveComponent as m,
|
|
3
|
+
import { resolveComponent as m, openBlock as n, createBlock as i, createSlots as u, withCtx as o, createElementVNode as l, renderSlot as c, createElementBlock as _, Fragment as p, renderList as S, resolveDynamicComponent as k } from "vue";
|
|
4
4
|
import { _ as b } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const C = {
|
|
6
6
|
compatConfig: { MODE: 3 },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { safeConcatStrings as w, extractVueListeners as g } from "../../common/utils/index.js";
|
|
2
2
|
import { DtIconUser as C } from "@dialpad/dialtone-icons/vue3";
|
|
3
|
-
import { resolveComponent as a,
|
|
3
|
+
import { resolveComponent as a, openBlock as o, createBlock as d, mergeProps as S, toHandlers as v, withCtx as t, createVNode as s, createTextVNode as u, toDisplayString as c, createElementVNode as h, createElementBlock as x, normalizeClass as b, createCommentVNode as m, createSlots as B } from "vue";
|
|
4
4
|
import { _ as D } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import T from "../emoji-text-wrapper/emoji-text-wrapper.js";
|
|
6
6
|
import k from "../general-row/general-row.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as E, computed as B, watch as F, onMounted as V,
|
|
1
|
+
import { ref as E, computed as B, watch as F, onMounted as V, openBlock as $, createBlock as G, unref as e, withCtx as m, createVNode as i, createElementVNode as M, toDisplayString as P, nextTick as N, createElementBlock as g, Fragment as x, renderList as Y, normalizeClass as q, createTextVNode as W, getCurrentInstance as j } from "vue";
|
|
2
2
|
import { DtIconChevronsLeft as J, DtIconChevronLeft as Q, DtIconChevronRight as Z, DtIconChevronsRight as ee } from "@dialpad/dialtone-icons/vue3";
|
|
3
3
|
import { getMonth as K, getYear as S, getDate as te, set as ae, addMonths as ne, subMonths as re } from "date-fns";
|
|
4
4
|
import { getCalendarDays as le, formatMonth as oe, getWeekDayNames as se, calculateNextFocusDate as ce, calculatePrevFocusDate as ue, formatDate as ie } from "./utils.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDay as D, addMonths as y, startOfMonth as w, addDays as f, getDate as h, endOfMonth as M, subMonths as g, startOfWeek as k, getMonth as O, isEqual as W } from "date-fns";
|
|
2
2
|
import { WEEK_START as x } from "./datepicker-constants.js";
|
|
3
3
|
const u = (t) => t ? new Date(t) : /* @__PURE__ */ new Date(), S = (t, e, n) => {
|
|
4
4
|
const s = u(JSON.parse(JSON.stringify(t))), a = [];
|
|
@@ -15,7 +15,7 @@ const u = (t) => t ? new Date(t) : /* @__PURE__ */ new Date(), S = (t, e, n) =>
|
|
|
15
15
|
}
|
|
16
16
|
return a;
|
|
17
17
|
}, p = (t, e) => !t || !e ? !1 : W(t, e), N = (t, e, n) => {
|
|
18
|
-
const s = [], a = u(new Date(e, t)), o = u(new Date(e, t + 1, 0)), c =
|
|
18
|
+
const s = [], a = u(new Date(e, t)), o = u(new Date(e, t + 1, 0)), c = k(a, { weekStartsOn: x }), i = (d) => {
|
|
19
19
|
const m = S(d, t, n);
|
|
20
20
|
if (s.push({ days: m }), !s[s.length - 1].days.some(
|
|
21
21
|
(l) => p(l.value, o)
|
|
@@ -29,11 +29,11 @@ const u = (t) => t ? new Date(t) : /* @__PURE__ */ new Date(), S = (t, e, n) =>
|
|
|
29
29
|
const n = [1, 2, 3, 4, 5, 6, 7].map((o) => new Intl.DateTimeFormat(t, { weekday: "short", timeZone: "UTC" }).format(/* @__PURE__ */ new Date(`2017-01-0${o}T00:00:00+00:00`)).slice(0, 2)), s = n.slice(0, e), a = n.slice(e + 1, n.length);
|
|
30
30
|
return [n[e]].concat(...a).concat(...s);
|
|
31
31
|
}, E = (t, e, n) => new Intl.DateTimeFormat(n, { month: e }).format(new Date(2e3, t, 1)), I = (t, e, n) => new Intl.DateTimeFormat(n, { dateStyle: e }).format(new Date(t)), P = (t) => {
|
|
32
|
-
const e = new Date(t), n = D(e), s =
|
|
32
|
+
const e = new Date(t), n = D(e), s = y(e, 1), a = w(s), o = D(a), r = (n - o + 7) % 7, c = f(a, r);
|
|
33
33
|
return h(c);
|
|
34
34
|
}, b = (t) => {
|
|
35
35
|
const e = new Date(t), n = D(e);
|
|
36
|
-
let a = g(
|
|
36
|
+
let a = M(g(e, 1));
|
|
37
37
|
for (; D(a) !== n; )
|
|
38
38
|
a = f(a, -1);
|
|
39
39
|
return h(a);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DT_DESCRIPTION_LIST_DIRECTION as c } from "./description-list-constants.js";
|
|
2
2
|
import { itemsValidator as p } from "./description-list-validators.js";
|
|
3
|
-
import {
|
|
3
|
+
import { openBlock as s, createElementBlock as i, normalizeClass as a, Fragment as d, renderList as m, createElementVNode as l, toDisplayString as n } from "vue";
|
|
4
4
|
import { _ as u } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { DT_STACK_GAP as _ } from "../stack/stack-constants.js";
|
|
6
6
|
const C = {
|
|
@@ -65,10 +65,10 @@ const C = {
|
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
function f(t, g, o, y, D, e) {
|
|
68
|
-
return
|
|
68
|
+
return s(), i("dl", {
|
|
69
69
|
class: a(["d-description-list", e.getDirectionClass, e.getGapClass])
|
|
70
70
|
}, [
|
|
71
|
-
(
|
|
71
|
+
(s(!0), i(d, null, m(o.items, (r) => (s(), i(d, {
|
|
72
72
|
key: r.term
|
|
73
73
|
}, [
|
|
74
74
|
l("dt", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent as d,
|
|
1
|
+
import { resolveComponent as d, openBlock as e, createElementBlock as r, createBlock as l, withCtx as s, createElementVNode as o, toDisplayString as c, createCommentVNode as i, normalizeClass as p, renderSlot as m } from "vue";
|
|
2
2
|
import { _ as f } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
import _ from "../stack/stack.js";
|
|
4
4
|
const u = {
|
|
@@ -31,11 +31,11 @@ function k(a, g, t, w, h, C) {
|
|
|
31
31
|
align: "center",
|
|
32
32
|
class: "dt-dropdown-list--header d-fs12 d-fc-black-400 d-fw-bold d-lh4 d-py4 d-px12"
|
|
33
33
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
o("span", null,
|
|
34
|
+
default: s(() => [
|
|
35
|
+
o("span", null, c(t.heading), 1)
|
|
36
36
|
]),
|
|
37
37
|
_: 1
|
|
38
|
-
})) :
|
|
38
|
+
})) : i("", !0),
|
|
39
39
|
o("ul", {
|
|
40
40
|
class: p(["d-ps-relative", "d-stack2", "d-px0", t.listClass]),
|
|
41
41
|
"data-qa": "dt-dropdown-list-wrapper"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as o, createElementBlock as t } from "vue";
|
|
2
2
|
import { _ as r } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
const e = {
|
|
4
4
|
compatConfig: { MODE: 3 },
|
|
@@ -8,7 +8,7 @@ const e = {
|
|
|
8
8
|
class: "d-list-item-separator"
|
|
9
9
|
};
|
|
10
10
|
function n(s, c, p, i, _, d) {
|
|
11
|
-
return
|
|
11
|
+
return o(), t("li", a);
|
|
12
12
|
}
|
|
13
13
|
const l = /* @__PURE__ */ r(e, [["render", n]]);
|
|
14
14
|
export {
|
|
@@ -2,7 +2,7 @@ import f from "../../common/mixins/keyboard-list-navigation.js";
|
|
|
2
2
|
import { DROPDOWN_PADDING_CLASSES as a } from "./dropdown-constants.js";
|
|
3
3
|
import { getUniqueString as m } from "../../common/utils/index.js";
|
|
4
4
|
import { EVENT_KEYNAMES as n } from "../../common/constants/index.js";
|
|
5
|
-
import { resolveComponent as y,
|
|
5
|
+
import { resolveComponent as y, openBlock as c, createBlock as K, mergeProps as p, toHandlers as w, withCtx as h, renderSlot as l, createElementVNode as O, normalizeClass as E } from "vue";
|
|
6
6
|
import { _ as I } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import { LIST_ITEM_NAVIGATION_TYPES as d } from "../list-item/list-item-constants.js";
|
|
8
8
|
import b from "../popover/popover.js";
|
|
@@ -342,7 +342,7 @@ const P = {
|
|
|
342
342
|
}, S = ["id"];
|
|
343
343
|
function A(e, t, i, H, u, o) {
|
|
344
344
|
const g = y("dt-popover");
|
|
345
|
-
return
|
|
345
|
+
return c(), K(g, p({
|
|
346
346
|
ref: "popover",
|
|
347
347
|
"content-width": i.contentWidth,
|
|
348
348
|
open: i.open,
|
|
@@ -2,7 +2,7 @@ import { EDITOR_SUPPORTED_LINK_PROTOCOLS as z, EDITOR_DEFAULT_LINK_PREFIX as J }
|
|
|
2
2
|
import { addClassStyleAttrs as j, removeClassStyleAttrs as H } from "../../common/utils/index.js";
|
|
3
3
|
import { DtIconImage as w, DtIconLink2 as O, DtIconCodeBlock as D, DtIconQuote as R, DtIconAlignJustify as x, DtIconAlignRight as y, DtIconAlignCenter as C, DtIconAlignLeft as b, DtIconListOrdered as N, DtIconListBullet as S, DtIconStrikethrough as U, DtIconUnderline as F, DtIconItalic as v, DtIconBold as Q, DtIconQuickReply as M } from "@dialpad/dialtone-icons/vue3";
|
|
4
4
|
import { DialtoneLocalization as Y } from "../../localization/index.js";
|
|
5
|
-
import { resolveComponent as h,
|
|
5
|
+
import { resolveComponent as h, openBlock as c, createElementBlock as A, mergeProps as f, createVNode as a, withCtx as u, Fragment as q, renderList as V, createBlock as B, withKeys as g, withModifiers as p, createTextVNode as L, toDisplayString as k, resolveDynamicComponent as K, createElementVNode as _, createCommentVNode as X, normalizeStyle as W } from "vue";
|
|
6
6
|
import { _ as Z } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import tt from "../tooltip/tooltip.js";
|
|
8
8
|
import et from "../input/input.js";
|
|
@@ -670,7 +670,7 @@ function ct(t, e, o, n, r, i) {
|
|
|
670
670
|
(c(), B(K(l.icon), { size: "200" }))
|
|
671
671
|
]),
|
|
672
672
|
default: u(() => [
|
|
673
|
-
|
|
673
|
+
L(" " + k(l == null ? void 0 : l.label), 1)
|
|
674
674
|
]),
|
|
675
675
|
_: 2
|
|
676
676
|
}, 1032, ["active", "aria-label", "data-qa", "tabindex", "onClick", "onKeydown"])
|
|
@@ -678,7 +678,7 @@ function ct(t, e, o, n, r, i) {
|
|
|
678
678
|
}),
|
|
679
679
|
_: 2
|
|
680
680
|
}, 1032, ["message"]))), 128)),
|
|
681
|
-
e[5] || (e[5] =
|
|
681
|
+
e[5] || (e[5] = _("div", { class: "d-recipe-editor__button-group-divider" }, null, -1))
|
|
682
682
|
]),
|
|
683
683
|
_: 2
|
|
684
684
|
}, 1024))), 128)),
|
|
@@ -735,8 +735,8 @@ function ct(t, e, o, n, r, i) {
|
|
|
735
735
|
}, 8, ["message"]))
|
|
736
736
|
]),
|
|
737
737
|
content: u(() => [
|
|
738
|
-
|
|
739
|
-
|
|
738
|
+
_("div", at, [
|
|
739
|
+
_("span", null, k(i.showAddLinkButtonLabels.title), 1),
|
|
740
740
|
a(P, {
|
|
741
741
|
modelValue: r.linkInput,
|
|
742
742
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => r.linkInput = s),
|
|
@@ -767,7 +767,7 @@ function ct(t, e, o, n, r, i) {
|
|
|
767
767
|
size: "sm"
|
|
768
768
|
}, i.removeLinkButtonLabels, { onClick: i.removeLink }), {
|
|
769
769
|
default: u(() => [
|
|
770
|
-
|
|
770
|
+
L(k(i.removeLinkButtonLabels.title), 1)
|
|
771
771
|
]),
|
|
772
772
|
_: 1
|
|
773
773
|
}, 16, ["onClick"]),
|
|
@@ -778,7 +778,7 @@ function ct(t, e, o, n, r, i) {
|
|
|
778
778
|
size: "sm"
|
|
779
779
|
}, i.cancelSetLinkButtonLabels, { onClick: i.closeLinkInput }), {
|
|
780
780
|
default: u(() => [
|
|
781
|
-
|
|
781
|
+
L(k(i.cancelSetLinkButtonLabels.title), 1)
|
|
782
782
|
]),
|
|
783
783
|
_: 1
|
|
784
784
|
}, 16, ["onClick"]),
|
|
@@ -787,7 +787,7 @@ function ct(t, e, o, n, r, i) {
|
|
|
787
787
|
size: "sm"
|
|
788
788
|
}, i.confirmSetLinkButtonLabels, { onClick: i.setLink }), {
|
|
789
789
|
default: u(() => [
|
|
790
|
-
|
|
790
|
+
L(k(i.confirmSetLinkButtonLabels.title), 1)
|
|
791
791
|
]),
|
|
792
792
|
_: 1
|
|
793
793
|
}, 16, ["onClick"])
|
|
@@ -803,7 +803,7 @@ function ct(t, e, o, n, r, i) {
|
|
|
803
803
|
]),
|
|
804
804
|
_: 1
|
|
805
805
|
}),
|
|
806
|
-
|
|
806
|
+
_("div", {
|
|
807
807
|
style: W({ "max-height": o.maxHeight }),
|
|
808
808
|
class: "d-recipe-editor__content"
|
|
809
809
|
}, [
|
package/dist/lib/emoji/emoji.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { codeToEmojiData as c, stringToUnicode as u, emojiImageUrlSmall as j, emojiFileExtensionSmall as g, emojiImageUrlLarge as h, emojiFileExtensionLarge as f } from "../../common/emoji/index.js";
|
|
2
|
-
import { resolveComponent as D,
|
|
2
|
+
import { resolveComponent as D, openBlock as S, createElementBlock as L, normalizeClass as o, withDirectives as n, createVNode as E, vShow as l, createElementVNode as p } from "vue";
|
|
3
3
|
import { _ } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import b from "../skeleton/skeleton.js";
|
|
5
5
|
import { ICON_SIZE_MODIFIERS as s } from "../icon/icon-constants.js";
|
|
@@ -110,7 +110,7 @@ const k = {
|
|
|
110
110
|
}, y = ["aria-label", "alt", "title", "src"];
|
|
111
111
|
function z(i, t, r, I, m, e) {
|
|
112
112
|
const d = D("dt-skeleton");
|
|
113
|
-
return
|
|
113
|
+
return S(), L("span", {
|
|
114
114
|
class: o(["d-emoji d-icon", e.emojiSize])
|
|
115
115
|
}, [
|
|
116
116
|
n(E(d, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as S, onMounted as re,
|
|
1
|
+
import { ref as S, onMounted as re, openBlock as E, createElementBlock as I, createVNode as F, unref as k, withKeys as J, withModifiers as ue, createSlots as ye, withCtx as N, computed as M, watch as K, Fragment as W, renderList as G, createBlock as Z, resolveDynamicComponent as Le, nextTick as x, onBeforeUnmount as Te, createElementVNode as A, toDisplayString as z, withDirectives as te, createCommentVNode as Y, vShow as oe, normalizeClass as ce, watchEffect as ae, createTextVNode as fe } from "vue";
|
|
2
2
|
import { DtIconSearch as je, DtIconClose as Ie, DtIconClock as Re, DtIconSatisfied as Ae, DtIconLivingThing as $e, DtIconFood as we, DtIconObject as Oe, DtIconTransportation as De, DtIconLightbulb as Ce, DtIconHeart as Be, DtIconFlag as Fe, DtIconDialpadStar as Ke } from "@dialpad/dialtone-icons/vue3";
|
|
3
3
|
import Ne from "../input/input.js";
|
|
4
4
|
import de from "../button/button.js";
|