@dialpad/dialtone-vue 3.201.0 → 3.203.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/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +349 -347
- package/dist/dialtone-vue.js.map +1 -1
- 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.cjs +1 -1
- package/dist/lib/datepicker/datepicker.cjs.map +1 -1
- package/dist/lib/datepicker/datepicker.js +306 -242
- package/dist/lib/datepicker/datepicker.js.map +1 -1
- package/dist/lib/datepicker/utils.cjs +1 -1
- package/dist/lib/datepicker/utils.cjs.map +1 -1
- package/dist/lib/datepicker/utils.js +40 -40
- package/dist/lib/datepicker/utils.js.map +1 -1
- 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/index.cjs +1 -1
- package/dist/lib/general-row/index.js +6 -4
- package/dist/lib/general-row/index.js.map +1 -1
- 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.cjs +1 -1
- package/dist/lib/message-input/message-input.cjs.map +1 -1
- package/dist/lib/message-input/message-input.js +17 -16
- package/dist/lib/message-input/message-input.js.map +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/dist/types/components/datepicker/composables/useMonthYearPicker.d.ts +4 -0
- package/dist/types/components/datepicker/composables/useMonthYearPicker.d.ts.map +1 -1
- package/dist/types/components/datepicker/datepicker.vue.d.ts +8 -0
- package/dist/types/components/datepicker/datepicker.vue.d.ts.map +1 -1
- package/dist/types/components/datepicker/modules/month-year-picker.vue.d.ts +4 -0
- package/dist/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
- package/dist/types/components/datepicker/utils.d.ts +1 -1
- package/dist/types/components/datepicker/utils.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/general_row/index.d.ts +1 -0
- package/package.json +11 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hasSlotContent as u } from "../../common/utils/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { openBlock as s, createBlock as r, resolveDynamicComponent as m, normalizeStyle as y, normalizeClass as a, withCtx as c, createElementBlock as o, renderSlot as n, createCommentVNode as d, createElementVNode as C } from "vue";
|
|
3
3
|
import { _ as f } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const h = {
|
|
5
5
|
compatConfig: { MODE: 3 },
|
|
@@ -94,8 +94,8 @@ function g(t, i, e, S, b, l) {
|
|
|
94
94
|
"data-qa": "dt-item-layout-left-wrapper",
|
|
95
95
|
class: a([e.leftClass, "d-item-layout__left"])
|
|
96
96
|
}, [
|
|
97
|
-
|
|
98
|
-
], 2)) :
|
|
97
|
+
n(t.$slots, "left")
|
|
98
|
+
], 2)) : d("", !0),
|
|
99
99
|
C("section", {
|
|
100
100
|
"data-qa": "dt-item-layout-content-wrapper",
|
|
101
101
|
class: a([e.contentClass, "d-item-layout__content"])
|
|
@@ -105,8 +105,8 @@ function g(t, i, e, S, b, l) {
|
|
|
105
105
|
"data-qa": "dt-item-layout-title-wrapper",
|
|
106
106
|
class: a([e.titleClass, "d-item-layout__title"])
|
|
107
107
|
}, [
|
|
108
|
-
|
|
109
|
-
], 2)) :
|
|
108
|
+
n(t.$slots, "default")
|
|
109
|
+
], 2)) : d("", !0),
|
|
110
110
|
l.hasSlotContent(t.$slots.subtitle) ? (s(), o("div", {
|
|
111
111
|
key: 1,
|
|
112
112
|
"data-qa": "dt-item-layout-subtitle-wrapper",
|
|
@@ -116,30 +116,30 @@ function g(t, i, e, S, b, l) {
|
|
|
116
116
|
{ "d-item-layout--subtitle--with-title": l.hasSlotContent(t.$slots.default) }
|
|
117
117
|
])
|
|
118
118
|
}, [
|
|
119
|
-
|
|
120
|
-
], 2)) :
|
|
119
|
+
n(t.$slots, "subtitle")
|
|
120
|
+
], 2)) : d("", !0),
|
|
121
121
|
l.hasSlotContent(t.$slots.bottom) ? (s(), o("div", {
|
|
122
122
|
key: 2,
|
|
123
123
|
"data-qa": "dt-item-layout-bottom-wrapper",
|
|
124
124
|
class: a([e.bottomClass, "d-item-layout__bottom"])
|
|
125
125
|
}, [
|
|
126
|
-
|
|
127
|
-
], 2)) :
|
|
126
|
+
n(t.$slots, "bottom")
|
|
127
|
+
], 2)) : d("", !0)
|
|
128
128
|
], 2),
|
|
129
129
|
l.hasSlotContent(t.$slots.right) ? (s(), o("section", {
|
|
130
130
|
key: 1,
|
|
131
131
|
"data-qa": "dt-item-layout-right-wrapper",
|
|
132
132
|
class: a([e.rightClass, "d-item-layout__right"])
|
|
133
133
|
}, [
|
|
134
|
-
|
|
135
|
-
], 2)) :
|
|
134
|
+
n(t.$slots, "right")
|
|
135
|
+
], 2)) : d("", !0),
|
|
136
136
|
l.hasSlotContent(t.$slots.selected) ? (s(), o("section", {
|
|
137
137
|
key: 2,
|
|
138
138
|
"data-qa": "dt-item-layout-selected-wrapper",
|
|
139
139
|
class: a([e.selectedClass, "d-item-layout__selected"])
|
|
140
140
|
}, [
|
|
141
|
-
|
|
142
|
-
], 2)) :
|
|
141
|
+
n(t.$slots, "selected")
|
|
142
|
+
], 2)) : d("", !0)
|
|
143
143
|
]),
|
|
144
144
|
_: 3
|
|
145
145
|
}, 8, ["class", "style"]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DtIconListBullet as N, DtIconMoreVertical as S, DtIconPhoneHangUp as f, DtIconTransfer as E, DtIconChevronsRight as O, DtIconCallMerge as v, DtIconBranch as R, DtIconExpertNode as A, DtIconVolume2 as L, DtIconDialer as h, DtIconKeypad as y } from "@dialpad/dialtone-icons/vue3";
|
|
2
2
|
import { IVR_NODE_GO_TO as T, IVR_NODE_CLASS_MAPPING as B, IVR_NODE_PROMPT_MENU as M, IVR_NODE_PROMPT_COLLECT as k, IVR_NODE_PROMPT_PLAY as P, IVR_NODE_EXPERT as g, IVR_NODE_BRANCH as w, IVR_NODE_ASSIGN as U, IVR_NODE_CUSTOMER_DATA as q, IVR_NODE_TRANSFER as G, IVR_NODE_HANGUP as K } from "./ivr-node-constants.js";
|
|
3
3
|
import { DialtoneLocalization as z } from "../../localization/index.js";
|
|
4
|
-
import { resolveComponent as i,
|
|
4
|
+
import { resolveComponent as i, openBlock as d, createElementBlock as l, mergeProps as H, toHandlers as F, normalizeClass as s, toDisplayString as I, createCommentVNode as _, renderSlot as m, createVNode as r, withCtx as n, createElementVNode as p, createBlock as X, resolveDynamicComponent as Y, withModifiers as j } from "vue";
|
|
5
5
|
import { _ as x } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import J from "../dropdown/dropdown.js";
|
|
7
7
|
import Q from "../button/button.js";
|
|
@@ -125,14 +125,14 @@ function ne(e, c, o, re, u, t) {
|
|
|
125
125
|
o.dtmfKey ? (d(), l("div", {
|
|
126
126
|
key: 0,
|
|
127
127
|
"data-qa": "dt-top-connector-dtmf",
|
|
128
|
-
class:
|
|
129
|
-
}, I(o.dtmfKey), 3)) :
|
|
130
|
-
e.$slots.connector ?
|
|
128
|
+
class: s(["d-recipe-ivr-node__connector d-recipe-ivr-node__connector-dtmf", { "d-recipe-ivr-node__connector-dtmf--selected": o.isSelected }])
|
|
129
|
+
}, I(o.dtmfKey), 3)) : _("", !0),
|
|
130
|
+
e.$slots.connector ? m(e.$slots, "connector", { key: 1 }) : _("", !0),
|
|
131
131
|
!o.dtmfKey && !e.$slots.connector ? (d(), l("div", {
|
|
132
132
|
key: 2,
|
|
133
133
|
"data-qa": "dt-top-connector",
|
|
134
|
-
class:
|
|
135
|
-
}, null, 2)) :
|
|
134
|
+
class: s(["d-recipe-ivr-node__connector", { "d-recipe-ivr-node__connector--selected": o.isSelected }])
|
|
135
|
+
}, null, 2)) : _("", !0),
|
|
136
136
|
r(b, null, {
|
|
137
137
|
header: n(() => [
|
|
138
138
|
p("div", ee, [
|
|
@@ -146,7 +146,7 @@ function ne(e, c, o, re, u, t) {
|
|
|
146
146
|
icon: n(() => [
|
|
147
147
|
(d(), X(Y(t.nodeIcon), {
|
|
148
148
|
size: "200",
|
|
149
|
-
class:
|
|
149
|
+
class: s(["", { "d-recipe-ivr-node__goto-icon": t.isGotoNode }])
|
|
150
150
|
}, null, 8, ["class"]))
|
|
151
151
|
]),
|
|
152
152
|
_: 1
|
|
@@ -174,14 +174,14 @@ function ne(e, c, o, re, u, t) {
|
|
|
174
174
|
]),
|
|
175
175
|
list: n(({ close: a }) => [
|
|
176
176
|
p("div", oe, [
|
|
177
|
-
|
|
177
|
+
m(e.$slots, "menuItems", { close: a })
|
|
178
178
|
])
|
|
179
179
|
]),
|
|
180
180
|
_: 3
|
|
181
181
|
}, 8, ["open"])
|
|
182
182
|
]),
|
|
183
183
|
content: n(() => [
|
|
184
|
-
|
|
184
|
+
m(e.$slots, "content")
|
|
185
185
|
]),
|
|
186
186
|
_: 3
|
|
187
187
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DtIconPlus as u, DtIconOption as h, DtIconCommand as w, DtIconArrowDown as _, DtIconArrowUp as f, DtIconArrowLeft as S, DtIconArrowRight as g, DtIconLayoutGrid as y } from "@dialpad/dialtone-icons/vue3";
|
|
2
|
-
import {
|
|
2
|
+
import { openBlock as n, createElementBlock as c, normalizeClass as s, createElementVNode as D, toDisplayString as I, Fragment as l, renderList as A, createBlock as k, resolveDynamicComponent as b, createCommentVNode as C } from "vue";
|
|
3
3
|
import { _ as T } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const i = {
|
|
5
5
|
"{win}": y,
|
|
@@ -111,7 +111,7 @@ function O(r, t, e, R, v, a) {
|
|
|
111
111
|
}, [
|
|
112
112
|
D("span", E, I(e.screenReaderText || a.generatedScreenReaderText), 1),
|
|
113
113
|
(n(!0), c(l, null, A(a.formattedShortcutSplit, (o, d) => (n(), c(l, null, [
|
|
114
|
-
a.icons[o] ? (n(), k(
|
|
114
|
+
a.icons[o] ? (n(), k(b(a.icons[o]), {
|
|
115
115
|
key: `icon-${d}-${o}`,
|
|
116
116
|
size: "100",
|
|
117
117
|
"aria-hidden": "true",
|
|
@@ -127,7 +127,7 @@ function O(r, t, e, R, v, a) {
|
|
|
127
127
|
{ "d-keyboard-shortcut__item--inverted": e.inverted }
|
|
128
128
|
]),
|
|
129
129
|
innerHTML: o
|
|
130
|
-
}, null, 10, L)) :
|
|
130
|
+
}, null, 10, L)) : C("", !0)
|
|
131
131
|
], 64))), 256))
|
|
132
132
|
], 2);
|
|
133
133
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as r, createBlock as n, Transition as o, mergeProps as s, withCtx as l, withDirectives as d, createElementVNode as p, normalizeProps as c, guardReactiveProps as f, renderSlot as u, createCommentVNode as h, vShow as m } from "vue";
|
|
2
2
|
import { _ as w } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
const S = {
|
|
4
4
|
compatConfig: { MODE: 3 },
|
|
@@ -61,7 +61,7 @@ const S = {
|
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
function _(e, z, t, y, a, i) {
|
|
64
|
-
return
|
|
64
|
+
return r(), n(o, s({
|
|
65
65
|
name: t.transition,
|
|
66
66
|
appear: t.appear
|
|
67
67
|
}, e.$attrs, { css: i.isCSSEnabled }), {
|
package/dist/lib/link/link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getLinkKindModifier as r, LINK_KIND_MODIFIERS as n, LINK_VARIANTS as a } from "./link-constants.js";
|
|
2
|
-
import {
|
|
2
|
+
import { openBlock as s, createElementBlock as i, normalizeClass as o, renderSlot as d } from "vue";
|
|
3
3
|
import { _ as l } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const f = {
|
|
5
5
|
compatConfig: { MODE: 3 },
|
|
@@ -41,7 +41,7 @@ const f = {
|
|
|
41
41
|
}
|
|
42
42
|
}, p = ["href"];
|
|
43
43
|
function c(e, m, k, u, _, t) {
|
|
44
|
-
return
|
|
44
|
+
return s(), i("a", {
|
|
45
45
|
class: o(t.getLinkClasses()),
|
|
46
46
|
"data-qa": "dt-link",
|
|
47
47
|
href: "href" in e.$attrs ? e.$attrs.href : "javascript:void(0)"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LIST_ITEM_NAVIGATION_TYPES as s, LIST_ITEM_TYPES as l } from "./list-item-constants.js";
|
|
2
2
|
import h from "../../common/utils/index.js";
|
|
3
3
|
import { DtIconCheck as g } from "@dialpad/dialtone-icons/vue3";
|
|
4
|
-
import { resolveComponent as r,
|
|
4
|
+
import { resolveComponent as r, openBlock as n, createBlock as d, resolveDynamicComponent as f, mergeProps as _, toHandlers as p, withCtx as a, normalizeClass as y, createSlots as v, renderList as T, renderSlot as m, createVNode as b } from "vue";
|
|
5
5
|
import { _ as I } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import k from "../item-layout/item-layout.js";
|
|
7
7
|
const L = ["listitem", "menuitem", "option"], S = {
|
|
@@ -158,7 +158,7 @@ const L = ["listitem", "menuitem", "option"], S = {
|
|
|
158
158
|
};
|
|
159
159
|
function H(e, C, i, D, E, t) {
|
|
160
160
|
const c = r("dt-icon-check"), u = r("dt-item-layout");
|
|
161
|
-
return
|
|
161
|
+
return n(), d(f(i.elementType), _({
|
|
162
162
|
id: i.id,
|
|
163
163
|
class: [
|
|
164
164
|
"d-list-item",
|
|
@@ -173,7 +173,7 @@ function H(e, C, i, D, E, t) {
|
|
|
173
173
|
"aria-selected": i.role === "listitem" ? void 0 : t.isHighlighted
|
|
174
174
|
}, p(t.listItemListeners)), {
|
|
175
175
|
default: a(() => [
|
|
176
|
-
t.isDefaultType ? (
|
|
176
|
+
t.isDefaultType ? (n(), d(u, {
|
|
177
177
|
key: 0,
|
|
178
178
|
unstyled: "",
|
|
179
179
|
class: y(["d-list-item__wrapper", i.wrapperClass]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getUniqueString as n } from "../../common/utils/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { openBlock as a, createElementBlock as i, normalizeClass as d, renderSlot as r, createTextVNode as l, toDisplayString as o, createCommentVNode as s } from "vue";
|
|
3
3
|
import { _ as g } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const c = {
|
|
5
5
|
compatConfig: { MODE: 3 },
|
|
@@ -38,14 +38,14 @@ const c = {
|
|
|
38
38
|
}
|
|
39
39
|
}, u = ["id", "aria-labelledby"], m = ["id"];
|
|
40
40
|
function f(t, p, e, h, _, y) {
|
|
41
|
-
return
|
|
41
|
+
return a(), i("ul", {
|
|
42
42
|
id: e.id,
|
|
43
43
|
class: d(["d-list-item-group", e.listClass]),
|
|
44
44
|
role: "group",
|
|
45
45
|
"data-qa": "dt-dropdown-list-wrapper",
|
|
46
46
|
"aria-labelledby": `${e.id}-heading`
|
|
47
47
|
}, [
|
|
48
|
-
e.heading ? (
|
|
48
|
+
e.heading ? (a(), i("li", {
|
|
49
49
|
key: 0,
|
|
50
50
|
id: `${e.id}-heading`,
|
|
51
51
|
role: "presentation",
|
|
@@ -53,9 +53,9 @@ function f(t, p, e, h, _, y) {
|
|
|
53
53
|
class: d(["dt-dropdown-list--header", e.headingClass])
|
|
54
54
|
}, [
|
|
55
55
|
r(t.$slots, "headingSlot", {}, () => [
|
|
56
|
-
o(
|
|
56
|
+
l(o(e.heading), 1)
|
|
57
57
|
])
|
|
58
|
-
], 10, m)) :
|
|
58
|
+
], 10, m)) : s("", !0),
|
|
59
59
|
r(t.$slots, "default")
|
|
60
60
|
], 10, u);
|
|
61
61
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DtIconLoading as t } from "@dialpad/dialtone-icons/vue3";
|
|
2
|
-
import { resolveComponent as n,
|
|
2
|
+
import { resolveComponent as n, openBlock as r, createElementBlock as d, createVNode as i } from "vue";
|
|
3
3
|
import { _ as l } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { ICON_SIZE_MODIFIERS as c } from "../icon/icon-constants.js";
|
|
5
5
|
const s = {
|
|
@@ -29,7 +29,7 @@ const s = {
|
|
|
29
29
|
}, _ = ["aria-label"];
|
|
30
30
|
function m(e, p, o, f, u, g) {
|
|
31
31
|
const a = n("dt-icon-loading");
|
|
32
|
-
return
|
|
32
|
+
return r(), d("div", {
|
|
33
33
|
class: "d-loader",
|
|
34
34
|
"aria-label": o.ariaLabel || "loading",
|
|
35
35
|
"data-qa": "dt-loader"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent as e,
|
|
1
|
+
import { resolveComponent as e, openBlock as n, createBlock as i, withCtx as o, createVNode as c, createElementVNode as p, toDisplayString as _, createCommentVNode as f, renderSlot as k } from "vue";
|
|
2
2
|
import { _ as y } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
import b from "../keyboard-shortcut/keyboard-shortcut.js";
|
|
4
4
|
import S from "../stack/stack.js";
|
|
@@ -39,7 +39,7 @@ const x = {
|
|
|
39
39
|
};
|
|
40
40
|
function D(r, a, t, v, B, T) {
|
|
41
41
|
const d = e("dt-button"), l = e("dt-keyboard-shortcut"), u = e("dt-stack"), s = e("dt-tooltip");
|
|
42
|
-
return
|
|
42
|
+
return n(), i(s, null, {
|
|
43
43
|
anchor: o(() => [
|
|
44
44
|
c(d, {
|
|
45
45
|
"data-qa": t.dataQa,
|
|
@@ -59,12 +59,12 @@ function D(r, a, t, v, B, T) {
|
|
|
59
59
|
default: o(() => [
|
|
60
60
|
c(u, { gap: "200" }, {
|
|
61
61
|
default: o(() => [
|
|
62
|
-
p("p", null,
|
|
63
|
-
t.keyboardShortcutText ? (
|
|
62
|
+
p("p", null, _(t.tooltipText), 1),
|
|
63
|
+
t.keyboardShortcutText ? (n(), i(l, {
|
|
64
64
|
key: 0,
|
|
65
65
|
inverted: "",
|
|
66
66
|
shortcut: t.keyboardShortcutText
|
|
67
|
-
}, null, 8, ["shortcut"])) :
|
|
67
|
+
}, null, 8, ["shortcut"])) : f("", !0)
|
|
68
68
|
]),
|
|
69
69
|
_: 1
|
|
70
70
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DtIconLink2 as E } from "@dialpad/dialtone-icons/vue3";
|
|
2
2
|
import f from "./message-input-button.js";
|
|
3
3
|
import { DialtoneLocalization as N } from "../../localization/index.js";
|
|
4
|
-
import { resolveComponent as r,
|
|
4
|
+
import { resolveComponent as r, openBlock as T, createBlock as B, withCtx as a, createVNode as l, createElementVNode as A, toDisplayString as u, withKeys as L, withModifiers as p, createTextVNode as d } from "vue";
|
|
5
5
|
import { _ as g } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import v from "../stack/stack.js";
|
|
7
7
|
import O from "../button/button.js";
|
|
@@ -81,7 +81,7 @@ const D = {
|
|
|
81
81
|
}, M = { class: "d-recipe-message-input__link-dialog-title" };
|
|
82
82
|
function C(o, t, k, K, e, n) {
|
|
83
83
|
const b = r("dt-icon-link2"), c = r("dt-recipe-message-input-button"), _ = r("dt-input"), s = r("dt-button"), m = r("dt-stack"), I = r("dt-popover");
|
|
84
|
-
return
|
|
84
|
+
return T(), B(I, {
|
|
85
85
|
open: e.isOpen,
|
|
86
86
|
placement: "bottom-start",
|
|
87
87
|
"content-class": "d-recipe-message-input__link-popover",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DtIconCodeBlock as O, DtIconCode as T, DtIconQuote as x, DtIconListOrdered as E, DtIconStrikethrough as S, DtIconItalic as v, DtIconBold as A, DtIconListBullet as y } from "@dialpad/dialtone-icons/vue3";
|
|
2
2
|
import I from "./message-input-button.js";
|
|
3
3
|
import { DialtoneLocalization as g } from "../../localization/index.js";
|
|
4
|
-
import { resolveComponent as a,
|
|
4
|
+
import { resolveComponent as a, openBlock as D, createBlock as N, withCtx as n, createVNode as i, createElementVNode as r, renderSlot as f } from "vue";
|
|
5
5
|
import { _ as U } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import h from "../stack/stack.js";
|
|
7
7
|
const C = {
|
|
@@ -93,7 +93,7 @@ const C = {
|
|
|
93
93
|
};
|
|
94
94
|
function q(c, t, e, M, z, o) {
|
|
95
95
|
const u = a("dt-icon-bold"), s = a("dt-recipe-message-input-button"), d = a("dt-icon-italic"), b = a("dt-icon-strikethrough"), _ = a("dt-icon-list-bullet"), k = a("dt-icon-list-ordered"), p = a("dt-icon-quote"), B = a("dt-icon-code"), L = a("dt-icon-code-block"), m = a("dt-stack");
|
|
96
|
-
return
|
|
96
|
+
return D(), N(m, {
|
|
97
97
|
direction: "row",
|
|
98
98
|
gap: "200",
|
|
99
99
|
class: "d-recipe-message-input__button-stack"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("./last-active-nodes.cjs"),k=require("../../common/utils/index.cjs"),f=require("@tiptap/core"),b=require("../../node_modules/@tiptap/vue-3.cjs"),d=require("@dialpad/dialtone-icons/vue3"),T=require("../../localization/index.cjs"),e=require("vue"),v=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),B=require("../button/button.cjs"),V=require("../item-layout/item-layout.cjs"),j=require("./message-input-topbar.cjs"),N=require("./message-input-link.cjs"),S=require("../editor/editor-constants.cjs"),A=require("../stack/stack.cjs"),M=require("../tooltip/tooltip.cjs"),q=require("../rich-text-editor/rich-text-editor.cjs"),F=require("../popover/popover.cjs"),R=require("../input/input.cjs"),z=require("../emoji-picker/emoji-picker.cjs"),C=require("../rich-text-editor/rich-text-editor-constants.cjs"),U={name:"MeetingPill",components:{NodeViewWrapper:b.NodeViewWrapper,DtItemLayout:V.default,DtIconClose:d.DtIconClose,DtButton:B.default,DtIconVideo:d.DtIconVideo},props:b.nodeViewProps,emits:["meeting-pill-close"],data(){return{i18n:new T.DialtoneLocalization}},computed:{closeButtonTitle(){return this.i18n.$t("DIALTONE_CLOSE_BUTTON")}},methods:{close(i){var o,r,l;const t=(l=(r=(o=this.editor)==null?void 0:o.storage)==null?void 0:r.meetingPill)==null?void 0:l.onClose;t&&typeof t=="function"&&t(i)}}},H={class:"d-recipe-message-input-meeting-pill__icon"},G={class:"d-recipe-message-input-meeting-pill__close"};function W(i,t,o,r,l,n){const m=e.resolveComponent("dt-icon-video"),p=e.resolveComponent("dt-icon-close"),h=e.resolveComponent("dt-button"),g=e.resolveComponent("dt-item-layout"),c=e.resolveComponent("node-view-wrapper");return e.openBlock(),e.createBlock(c,{class:"d-recipe-message-input-meeting-pill"},{default:e.withCtx(()=>[e.createVNode(g,{class:"d-recipe-message-input-meeting-pill__layout",unstyled:""},{left:e.withCtx(()=>[e.createElementVNode("div",H,[e.createVNode(m,{size:"400"})])]),right:e.withCtx(()=>[e.createElementVNode("div",G,[e.createVNode(h,{circle:"",importance:"clear",size:"xs","aria-label":n.closeButtonTitle,title:n.closeButtonTitle,onClick:n.close},{icon:e.withCtx(()=>[e.createVNode(p,{size:"300"})]),_:1},8,["aria-label","title","onClick"])])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(i.node.attrs.text)+" ",1)]),_:1})]),_:1})}const K=v._(U,[["render",W]]),X=f.Node.create({name:"meetingPill",atom:!0,group:"inline",inline:!0,addOptions(){return{onClose:()=>{}}},addStorage(){return{onClose:this.options.onClose}},addNodeView(){return b.VueNodeViewRenderer(K)},addAttributes(){return{text:{default:'Please pass in "text" attribute'}}},parseHTML(){return[{tag:"meeting-pill"}]},renderText(){return"/dpm"},renderHTML({HTMLAttributes:i}){return["meeting-pill",f.mergeAttributes(i)]}}),Q={compatConfig:{MODE:3},name:"DtRecipeMessageInput",components:{DtButton:B.default,DtEmojiPicker:z.default,DtInput:R.default,DtPopover:F.default,DtRecipeMessageInputTopbar:j.default,DtRecipeMessageInputLink:N.default,DtRichTextEditor:q.default,DtTooltip:M.default,DtStack:A.default,DtIconImage:d.DtIconImage,DtIconVerySatisfied:d.DtIconVerySatisfied,DtIconSatisfied:d.DtIconSatisfied,DtIconSend:d.DtIconSend},inheritAttrs:!1,props:{richText:{type:Boolean,default:!0},modelValue:{type:[Object,String],default:""},editable:{type:Boolean,default:!0},inputAriaLabel:{type:String,required:!0,default:""},preventTyping:{type:Boolean,default:!1},inputClass:{type:String,default:""},autoFocus:{type:[Boolean,String,Number],default:!1,validator(i){return typeof i=="string"?C.RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(i):!0}},outputFormat:{type:String,default:"json",validator(i){return C.RICH_TEXT_EDITOR_OUTPUT_FORMATS.includes(i)}},placeholder:{type:String,default:""},disableSend:{type:Boolean,default:!1},maxHeight:{type:String,default:"unset"},showEmojiPicker:{type:Boolean,default:!0},emojiPickerProps:{type:Object,default:()=>({})},showCharacterLimit:{type:[Boolean,Object],default:()=>({count:1500,warning:500,message:""})},showImagePicker:{type:[Boolean,Object],default:()=>({})},showSend:{type:[Boolean,Object],default:()=>({})},showCancel:{type:[Boolean,Object],default:()=>({})},mentionSuggestion:{type:Object,default:null},channelSuggestion:{type:Object,default:null},slashCommandSuggestion:{type:Object,default:null},boldButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + B"})},italicButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + I"})},strikeButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + Shift + S"})},linkButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + K",linkPlaceholder:"e.g. https://www.dialpad.com"})},bulletListButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + Shift + 8"})},orderedListButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + Shift + 7"})},blockQuoteButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + Shift + B"})},codeButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + E"})},codeBlockButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + Alt + C"})}},emits:["submit","select-media","add-media","paste-media","cancel","skin-tone","selected-emoji","selected-command","meeting-pill-close","update:modelValue","text-input","markdown-input","add-emoji","emoji-scroll-bottom-reached"],data(){return{lastActiveNodes:P.default,additionalExtensions:[X.configure({onClose:i=>{this.$emit("meeting-pill-close",i)}})],internalInputValue:this.modelValue,imagePickerFocus:!1,emojiPickerFocus:!1,emojiPickerOpened:!1,isFocused:!1,linkOptions:{class:"d-link d-c-text d-d-inline-block"},linkDialogOpen:!1,selectedText:"",text:"",hideLinkBubbleMenu:!1,i18n:new T.DialtoneLocalization}},computed:{showSendIcon(){return!this.showSend.text},inputLength(){return this.text.length},displayCharacterLimitWarning(){return!!this.showCharacterLimit&&this.showCharacterLimit.count-this.inputLength<=this.showCharacterLimit.warning},characterLimitTooltipEnabled(){return this.showCharacterLimit.message&&this.showCharacterLimit.count-this.inputLength<0},isSendDisabled(){return this.disableSend||this.showCharacterLimit&&this.inputLength>this.showCharacterLimit.count},emojiPickerHovered(){return this.emojiPickerFocus||this.emojiPickerOpened},sendIconSize(){return"300"},sendButtonLabel(){return this.i18n.$t("DIALTONE_MESSAGE_INPUT_SEND_BUTTON_ARIA_LABEL")},imagePickerButtonLabel(){return this.i18n.$t("DIALTONE_MESSAGE_INPUT_IMAGE_PICKER_BUTTON_ARIA_LABEL")},emojiPickerButtonLabel(){return this.i18n.$t("DIALTONE_MESSAGE_INPUT_EMOJI_PICKER_BUTTON_ARIA_LABEL")},cancelButtonLabel(){return this.i18n.$t("DIALTONE_MESSAGE_INPUT_CANCEL_BUTTON_ARIA_LABEL")}},watch:{modelValue(i){this.internalInputValue=i},emojiPickerOpened(i){var t;i||(t=this.$refs.richTextEditor)==null||t.focusEditor()}},created(){this.modelValue&&this.outputFormat==="text"?this.internalInputValue=this.modelValue.replace(/\n/g,"<br>"):this.internalInputValue=this.modelValue},methods:{removeClassStyleAttrs:k.removeClassStyleAttrs,addClassStyleAttrs:k.addClassStyleAttrs,linkDialogOpened(i){var t;this.linkDialogOpen=i,i===!0?this.initLinkDialog():(this.hideLinkBubbleMenu=!1,(t=this.$refs.richTextEditor)==null||t.focusEditor())},handleTopbarClick(i){var r;const t=(r=this.$refs.richTextEditor)==null?void 0:r.editor,o={bold:()=>t==null?void 0:t.chain().focus().toggleBold().run(),italic:()=>t==null?void 0:t.chain().focus().toggleItalic().run(),strike:()=>t==null?void 0:t.chain().focus().toggleStrike().run(),bulletList:()=>t==null?void 0:t.chain().focus().toggleBulletList().run(),orderedList:()=>t==null?void 0:t.chain().focus().toggleOrderedList().run(),blockquote:()=>t==null?void 0:t.chain().focus().toggleBlockquote().run(),code:()=>t==null?void 0:t.chain().focus().toggleCode().run(),codeBlock:()=>t==null?void 0:t.chain().focus().toggleCodeBlock().run()};t&&o[i]&&o[i]()},isSelectionActive(i){var t,o,r,l;return["bulletList","orderedList"].includes(i)?this.lastActiveNodes((o=(t=this.$refs.richTextEditor)==null?void 0:t.editor)==null?void 0:o.state,[{type:"bulletList"},{type:"orderedList"}]).includes(i)&&this.isFocused:((l=(r=this.$refs.richTextEditor)==null?void 0:r.editor)==null?void 0:l.isActive(i))&&this.isFocused},initLinkDialog(){var i,t,o;this.$refs.link.setInitialValues(this.selectedText,(o=(t=(i=this.$refs.richTextEditor)==null?void 0:i.editor)==null?void 0:t.getAttributes("link"))==null?void 0:o.href),this.hideLinkBubbleMenu=!0,this.linkDialogOpen=!0},removeLink(){var i;(i=this.$refs.richTextEditor)==null||i.removeLink(),this.linkDialogOpen=!1},setLink(i,t){this.$refs.richTextEditor.setLink(t,i,this.linkOptions,S.EDITOR_SUPPORTED_LINK_PROTOCOLS,S.EDITOR_DEFAULT_LINK_PREFIX),this.linkDialogOpen=!1},onMousedown(i){k.returnFirstEl(this.$refs.richTextEditor.$el).querySelector(".tiptap").contains(i.target)||(i.preventDefault(),this.$refs.richTextEditor.focusEditor())},onDrop(i){const t=i.dataTransfer,o=Array.from(t.files);this.$emit("add-media",o)},onPaste(i){if(i.clipboardData.files.length){i.stopPropagation(),i.preventDefault();const t=[...i.clipboardData.files];this.$emit("paste-media",t)}},onSkinTone(i){this.$emit("skin-tone",i)},onSelectEmoji(i,t){i&&(i.shift_key||t(),this.$refs.richTextEditor.editor.commands.insertContent({type:"emoji",attrs:{code:i.shortname,image:i.image,name:i.name}}),this.$emit("selected-emoji",i))},onSelectImage(){this.$refs.messageInputImageUpload.$refs.input.click()},onImageUpload(){this.$emit("select-media",this.$refs.messageInputImageUpload.$refs.input.files)},toggleEmojiPicker(){this.emojiPickerOpened=!this.emojiPickerOpened},onSend(){this.isSendDisabled||this.$emit("submit",this.internalInputValue)},onCancel(){this.$emit("cancel")},onInput(i){this.$emit("update:modelValue",i)},onTextInput(i){this.text=i,this.$emit("text-input",i)},onMarkdownInput(i){this.$emit("markdown-input",i)}}},J={class:"d-recipe-message-input__bottom-section"},Y={class:"d-recipe-message-input__bottom-section-left"},Z={class:"d-recipe-message-input__bottom-section-right"},$={class:"d-recipe-message-input__schedule-message"},ee={class:"d-recipe-message-input__sms-count"},te={key:0};function ie(i,t,o,r,l,n){const m=e.resolveComponent("dt-recipe-message-input-link"),p=e.resolveComponent("dt-recipe-message-input-topbar"),h=e.resolveComponent("dt-rich-text-editor"),g=e.resolveComponent("dt-icon-image"),c=e.resolveComponent("dt-button"),I=e.resolveComponent("dt-input"),w=e.resolveComponent("dt-icon-very-satisfied"),L=e.resolveComponent("dt-icon-satisfied"),y=e.resolveComponent("dt-emoji-picker"),E=e.resolveComponent("dt-popover"),_=e.resolveComponent("dt-stack"),O=e.resolveComponent("dt-tooltip"),x=e.resolveComponent("dt-icon-send"),D=e.resolveDirective("dt-scrollbar"),u=e.resolveDirective("dt-tooltip");return e.openBlock(),e.createElementBlock("div",e.mergeProps({"data-qa":"dt-recipe-message-input",role:"presentation",class:"d-recipe-message-input"},n.addClassStyleAttrs(i.$attrs),{onDragover:t[15]||(t[15]=e.withModifiers(()=>{},["prevent"])),onDrop:t[16]||(t[16]=e.withModifiers((...s)=>n.onDrop&&n.onDrop(...s),["prevent"])),onPaste:t[17]||(t[17]=(...s)=>n.onPaste&&n.onPaste(...s)),onMousedown:t[18]||(t[18]=(...s)=>n.onMousedown&&n.onMousedown(...s))}),[e.renderSlot(i.$slots,"top"),o.richText?(e.openBlock(),e.createBlock(p,{key:l.selectedText,"bold-button-options":o.boldButtonOptions,"italic-button-options":o.italicButtonOptions,"strike-button-options":o.strikeButtonOptions,"bullet-list-button-options":o.bulletListButtonOptions,"ordered-list-button-options":o.orderedListButtonOptions,"block-quote-button-options":o.blockQuoteButtonOptions,"code-button-options":o.codeButtonOptions,"code-block-button-options":o.codeBlockButtonOptions,"is-selection-active":n.isSelectionActive,onClick:n.handleTopbarClick},{link:e.withCtx(()=>[e.createVNode(m,{ref:"link",open:l.linkDialogOpen,"link-button-options":o.linkButtonOptions,"is-selection-active":n.isSelectionActive,onOpened:n.linkDialogOpened,onSetLink:n.setLink,onRemoveLink:n.removeLink},null,8,["open","link-button-options","is-selection-active","onOpened","onSetLink","onRemoveLink"])]),_:1},8,["bold-button-options","italic-button-options","strike-button-options","bullet-list-button-options","ordered-list-button-options","block-quote-button-options","code-button-options","code-block-button-options","is-selection-active","onClick"])):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"d-recipe-message-input__editor-wrapper",style:e.normalizeStyle({"max-height":o.maxHeight})},[e.createVNode(h,e.mergeProps({ref:"richTextEditor",modelValue:l.internalInputValue,"onUpdate:modelValue":t[0]||(t[0]=s=>l.internalInputValue=s),"allow-blockquote":o.richText,"allow-bold":o.richText,"allow-bullet-list":o.richText,"allow-code":o.richText,"allow-codeblock":o.richText,"allow-italic":o.richText,"allow-strike":o.richText,"allow-underline":o.richText,"paste-rich-text":o.richText,editable:o.editable,"input-aria-label":o.inputAriaLabel,"input-class":o.inputClass,"output-format":o.outputFormat,"auto-focus":o.autoFocus,link:o.richText,placeholder:o.placeholder,"prevent-typing":o.preventTyping,"mention-suggestion":o.mentionSuggestion,"channel-suggestion":o.channelSuggestion,"slash-command-suggestion":o.slashCommandSuggestion,"additional-extensions":l.additionalExtensions,"hide-link-bubble-menu":l.hideLinkBubbleMenu},n.removeClassStyleAttrs(i.$attrs),{onInput:n.onInput,onTextInput:n.onTextInput,onMarkdownInput:n.onMarkdownInput,onEnter:n.onSend,onSelected:t[1]||(t[1]=s=>l.selectedText=s),onSelectedCommand:t[2]||(t[2]=s=>i.$emit("selected-command",s)),onEditLink:n.initLinkDialog,onFocus:t[3]||(t[3]=s=>l.isFocused=!0),onBlur:t[4]||(t[4]=s=>l.isFocused=!1)}),null,16,["modelValue","allow-blockquote","allow-bold","allow-bullet-list","allow-code","allow-codeblock","allow-italic","allow-strike","allow-underline","paste-rich-text","editable","input-aria-label","input-class","output-format","auto-focus","link","placeholder","prevent-typing","mention-suggestion","channel-suggestion","slash-command-suggestion","additional-extensions","hide-link-bubble-menu","onInput","onTextInput","onMarkdownInput","onEnter","onEditLink"])],4)),[[D]]),e.renderSlot(i.$slots,"middle"),e.createElementVNode("section",J,[e.createElementVNode("div",Y,[e.createVNode(_,{gap:"200",direction:"row"},{default:e.withCtx(()=>[o.showImagePicker?e.withDirectives((e.openBlock(),e.createBlock(c,{key:0,"data-qa":"dt-recipe-message-input-image-btn",size:"sm",class:"d-recipe-message-input__button",kind:"muted",importance:"clear","aria-label":n.imagePickerButtonLabel,onClick:n.onSelectImage,onMouseenter:t[5]||(t[5]=s=>l.imagePickerFocus=!0),onMouseleave:t[6]||(t[6]=s=>l.imagePickerFocus=!1),onFocus:t[7]||(t[7]=s=>l.imagePickerFocus=!0),onBlur:t[8]||(t[8]=s=>l.imagePickerFocus=!1)},{icon:e.withCtx(()=>[e.createVNode(g,{size:"300"})]),_:1},8,["aria-label","onClick"])),[[u,n.imagePickerButtonLabel,"top-start"]]):e.createCommentVNode("",!0),e.createVNode(I,{ref:"messageInputImageUpload","data-qa":"dt-recipe-message-input-image-input",accept:"image/*, video/*",type:"file",class:"d-recipe-message-input__image-input",multiple:"",hidden:"",onInput:n.onImageUpload},null,8,["onInput"]),o.showEmojiPicker?(e.openBlock(),e.createBlock(E,{key:1,"open.sync":"emojiPickerOpened","data-qa":"dt-recipe-message-input-emoji-picker-popover","initial-focus-element":"#searchInput",padding:"none"},{anchor:e.withCtx(({attrs:s})=>[e.withDirectives((e.openBlock(),e.createBlock(c,e.mergeProps(s,{"data-qa":"dt-recipe-message-input-emoji-picker-btn",size:"sm",class:"d-recipe-message-input__button",kind:"muted",importance:"clear","aria-label":n.emojiPickerButtonLabel,onClick:n.toggleEmojiPicker,onMouseenter:t[9]||(t[9]=a=>l.emojiPickerFocus=!0),onMouseleave:t[10]||(t[10]=a=>l.emojiPickerFocus=!1),onFocus:t[11]||(t[11]=a=>l.emojiPickerFocus=!0),onBlur:t[12]||(t[12]=a=>l.emojiPickerFocus=!1)}),{icon:e.withCtx(()=>[n.emojiPickerHovered?(e.openBlock(),e.createBlock(w,{key:0,size:"300"})):(e.openBlock(),e.createBlock(L,{key:1,size:"300"}))]),_:1},16,["aria-label","onClick"])),[[u,n.emojiPickerButtonLabel]])]),content:e.withCtx(({close:s})=>[e.createVNode(y,e.mergeProps(o.emojiPickerProps,{onAddEmoji:t[13]||(t[13]=a=>i.$emit("add-emoji")),onSkinTone:n.onSkinTone,onSelectedEmoji:a=>n.onSelectEmoji(a,s),onScrollBottomReached:t[14]||(t[14]=a=>i.$emit("emoji-scroll-bottom-reached"))}),null,16,["onSkinTone","onSelectedEmoji"])]),_:1})):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"emojiGiphyPicker"),e.renderSlot(i.$slots,"customActionIcons")]),_:3})]),e.createElementVNode("div",Z,[e.createVNode(_,{direction:"row",gap:"300"},{default:e.withCtx(()=>[e.createElementVNode("div",$,[e.renderSlot(i.$slots,"scheduleMessage")]),e.createElementVNode("div",ee,[e.renderSlot(i.$slots,"smsCount")]),o.showCharacterLimit?(e.openBlock(),e.createBlock(O,{key:0,class:"d-recipe-message-input__remaining-char-tooltip",placement:"top-end",enabled:n.characterLimitTooltipEnabled,message:o.showCharacterLimit.message,offset:[10,8]},{anchor:e.withCtx(()=>[e.withDirectives(e.createElementVNode("p",{class:"d-recipe-message-input__remaining-char","data-qa":"dt-recipe-message-input-character-limit"},e.toDisplayString(o.showCharacterLimit.count-n.inputLength),513),[[e.vShow,n.displayCharacterLimitWarning]])]),_:1},8,["enabled","message"])):e.createCommentVNode("",!0),o.showCancel?e.withDirectives((e.openBlock(),e.createBlock(c,{key:1,"data-qa":"dt-recipe-message-input-cancel-button",class:"d-recipe-message-input__button d-recipe-message-input__cancel-button",size:"sm",kind:"muted",importance:"clear","aria-label":n.cancelButtonLabel,onClick:n.onCancel},{default:e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(n.cancelButtonLabel),1)]),_:1},8,["aria-label","onClick"])),[[u,n.cancelButtonLabel]]):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"sendButton",{},()=>[o.showSend?e.withDirectives((e.openBlock(),e.createBlock(c,{key:0,"data-qa":"dt-recipe-message-input-send-btn",size:"sm",kind:"default",importance:"primary",class:e.normalizeClass(["d-recipe-message-input__button d-recipe-message-input__send-button",{"d-recipe-message-input__send-button--disabled":n.isSendDisabled,"d-btn--icon-only":n.showSendIcon}]),"aria-label":n.sendButtonLabel,"aria-disabled":n.isSendDisabled,onClick:n.onSend},e.createSlots({default:e.withCtx(()=>[o.showSend.text?(e.openBlock(),e.createElementBlock("p",te,e.toDisplayString(o.showSend.text),1)):e.createCommentVNode("",!0)]),_:2},[n.showSendIcon?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(i.$slots,"sendIcon",{iconSize:n.sendIconSize},()=>[e.createVNode(x,{size:n.sendIconSize},null,8,["size"])])]),key:"0"}:void 0]),1032,["class","aria-label","aria-disabled","onClick"])),[[u,n.sendButtonLabel,"top-end"]]):e.createCommentVNode("",!0)])]),_:3})])])],16)}const oe=v._(Q,[["render",ie]]);exports.default=oe;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("./last-active-nodes.cjs"),k=require("../../common/utils/index.cjs"),f=require("@tiptap/core"),b=require("../../node_modules/@tiptap/vue-3.cjs"),d=require("@dialpad/dialtone-icons/vue3"),T=require("../../localization/index.cjs"),e=require("vue"),v=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),B=require("../button/button.cjs"),V=require("../item-layout/item-layout.cjs"),j=require("./message-input-topbar.cjs"),N=require("./message-input-link.cjs"),S=require("../editor/editor-constants.cjs"),A=require("../stack/stack.cjs"),M=require("../tooltip/tooltip.cjs"),q=require("../rich-text-editor/rich-text-editor.cjs"),F=require("../popover/popover.cjs"),R=require("../input/input.cjs"),z=require("../emoji-picker/emoji-picker.cjs"),C=require("../rich-text-editor/rich-text-editor-constants.cjs"),U={name:"MeetingPill",components:{NodeViewWrapper:b.NodeViewWrapper,DtItemLayout:V.default,DtIconClose:d.DtIconClose,DtButton:B.default,DtIconVideo:d.DtIconVideo},props:b.nodeViewProps,emits:["meeting-pill-close"],data(){return{i18n:new T.DialtoneLocalization}},computed:{closeButtonTitle(){return this.i18n.$t("DIALTONE_CLOSE_BUTTON")}},methods:{close(i){var o,r,l;const t=(l=(r=(o=this.editor)==null?void 0:o.storage)==null?void 0:r.meetingPill)==null?void 0:l.onClose;t&&typeof t=="function"&&t(i)}}},H={class:"d-recipe-message-input-meeting-pill__icon"},G={class:"d-recipe-message-input-meeting-pill__close"};function W(i,t,o,r,l,n){const m=e.resolveComponent("dt-icon-video"),p=e.resolveComponent("dt-icon-close"),h=e.resolveComponent("dt-button"),g=e.resolveComponent("dt-item-layout"),c=e.resolveComponent("node-view-wrapper");return e.openBlock(),e.createBlock(c,{class:"d-recipe-message-input-meeting-pill"},{default:e.withCtx(()=>[e.createVNode(g,{class:"d-recipe-message-input-meeting-pill__layout",unstyled:""},{left:e.withCtx(()=>[e.createElementVNode("div",H,[e.createVNode(m,{size:"400"})])]),right:e.withCtx(()=>[e.createElementVNode("div",G,[e.createVNode(h,{circle:"",importance:"clear",size:"xs","aria-label":n.closeButtonTitle,title:n.closeButtonTitle,onClick:n.close},{icon:e.withCtx(()=>[e.createVNode(p,{size:"300"})]),_:1},8,["aria-label","title","onClick"])])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(i.node.attrs.text)+" ",1)]),_:1})]),_:1})}const K=v._(U,[["render",W]]),X=f.Node.create({name:"meetingPill",atom:!0,group:"inline",inline:!0,addOptions(){return{onClose:()=>{}}},addStorage(){return{onClose:this.options.onClose}},addNodeView(){return b.VueNodeViewRenderer(K)},addAttributes(){return{text:{default:'Please pass in "text" attribute'}}},parseHTML(){return[{tag:"meeting-pill"}]},renderText(){return"/dpm"},renderHTML({HTMLAttributes:i}){return["meeting-pill",f.mergeAttributes(i)]}}),Q={compatConfig:{MODE:3},name:"DtRecipeMessageInput",components:{DtButton:B.default,DtEmojiPicker:z.default,DtInput:R.default,DtPopover:F.default,DtRecipeMessageInputTopbar:j.default,DtRecipeMessageInputLink:N.default,DtRichTextEditor:q.default,DtTooltip:M.default,DtStack:A.default,DtIconImage:d.DtIconImage,DtIconVerySatisfied:d.DtIconVerySatisfied,DtIconSatisfied:d.DtIconSatisfied,DtIconSend:d.DtIconSend},inheritAttrs:!1,props:{richText:{type:Boolean,default:!0},modelValue:{type:[Object,String],default:""},editable:{type:Boolean,default:!0},inputAriaLabel:{type:String,required:!0,default:""},preventTyping:{type:Boolean,default:!1},inputClass:{type:String,default:""},autoFocus:{type:[Boolean,String,Number],default:!1,validator(i){return typeof i=="string"?C.RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(i):!0}},outputFormat:{type:String,default:"json",validator(i){return C.RICH_TEXT_EDITOR_OUTPUT_FORMATS.includes(i)}},placeholder:{type:String,default:""},disableSend:{type:Boolean,default:!1},maxHeight:{type:String,default:"unset"},showEmojiPicker:{type:Boolean,default:!0},emojiPickerProps:{type:Object,default:()=>({})},showCharacterLimit:{type:[Boolean,Object],default:()=>({count:1500,warning:500,message:""})},showImagePicker:{type:[Boolean,Object],default:()=>({})},showSend:{type:[Boolean,Object],default:()=>({})},showCancel:{type:[Boolean,Object],default:()=>({})},mentionSuggestion:{type:Object,default:null},channelSuggestion:{type:Object,default:null},slashCommandSuggestion:{type:Object,default:null},boldButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + B"})},italicButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + I"})},strikeButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + Shift + S"})},linkButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + K",linkPlaceholder:"e.g. https://www.dialpad.com"})},bulletListButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + Shift + 8"})},orderedListButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + Shift + 7"})},blockQuoteButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + Shift + B"})},codeButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + E"})},codeBlockButtonOptions:{type:Object,default:()=>({keyboardShortcutText:"Mod + Alt + C"})}},emits:["submit","select-media","add-media","paste-media","cancel","skin-tone","selected-emoji","selected-command","meeting-pill-close","update:modelValue","text-input","markdown-input","add-emoji","emoji-scroll-bottom-reached"],data(){return{lastActiveNodes:P.default,additionalExtensions:[X.configure({onClose:i=>{this.$emit("meeting-pill-close",i)}})],internalInputValue:this.modelValue,imagePickerFocus:!1,emojiPickerFocus:!1,emojiPickerOpened:!1,isFocused:!1,linkOptions:{class:"d-link d-c-text d-d-inline-block"},linkDialogOpen:!1,selectedText:"",text:"",hideLinkBubbleMenu:!1,i18n:new T.DialtoneLocalization}},computed:{showSendIcon(){return!this.showSend.text},inputLength(){return this.text.length},displayCharacterLimitWarning(){return!!this.showCharacterLimit&&this.showCharacterLimit.count-this.inputLength<=this.showCharacterLimit.warning},characterLimitTooltipEnabled(){return this.showCharacterLimit.message&&this.showCharacterLimit.count-this.inputLength<0},isSendDisabled(){return this.disableSend||this.showCharacterLimit&&this.inputLength>this.showCharacterLimit.count},emojiPickerHovered(){return this.emojiPickerFocus||this.emojiPickerOpened},sendIconSize(){return"300"},sendButtonLabel(){return this.i18n.$t("DIALTONE_MESSAGE_INPUT_SEND_BUTTON_ARIA_LABEL")},imagePickerButtonLabel(){return this.i18n.$t("DIALTONE_MESSAGE_INPUT_IMAGE_PICKER_BUTTON_ARIA_LABEL")},emojiPickerButtonLabel(){return this.i18n.$t("DIALTONE_MESSAGE_INPUT_EMOJI_PICKER_BUTTON_ARIA_LABEL")},cancelButtonLabel(){return this.i18n.$t("DIALTONE_MESSAGE_INPUT_CANCEL_BUTTON_ARIA_LABEL")}},watch:{modelValue(i){this.internalInputValue=i},emojiPickerOpened(i){var t;i||(t=this.$refs.richTextEditor)==null||t.focusEditor()}},created(){this.modelValue&&this.outputFormat==="text"?this.internalInputValue=this.modelValue.replace(/\n/g,"<br>"):this.internalInputValue=this.modelValue},methods:{removeClassStyleAttrs:k.removeClassStyleAttrs,addClassStyleAttrs:k.addClassStyleAttrs,linkDialogOpened(i){var t;this.linkDialogOpen=i,i===!0?this.initLinkDialog():(this.hideLinkBubbleMenu=!1,(t=this.$refs.richTextEditor)==null||t.focusEditor())},handleTopbarClick(i){var r;const t=(r=this.$refs.richTextEditor)==null?void 0:r.editor,o={bold:()=>t==null?void 0:t.chain().focus().toggleBold().run(),italic:()=>t==null?void 0:t.chain().focus().toggleItalic().run(),strike:()=>t==null?void 0:t.chain().focus().toggleStrike().run(),bulletList:()=>t==null?void 0:t.chain().focus().toggleBulletList().run(),orderedList:()=>t==null?void 0:t.chain().focus().toggleOrderedList().run(),blockquote:()=>t==null?void 0:t.chain().focus().toggleBlockquote().run(),code:()=>t==null?void 0:t.chain().focus().toggleCode().run(),codeBlock:()=>t==null?void 0:t.chain().focus().toggleCodeBlock().run()};t&&o[i]&&o[i]()},isSelectionActive(i){var t,o,r,l;return["bulletList","orderedList"].includes(i)?this.richText?this.lastActiveNodes((o=(t=this.$refs.richTextEditor)==null?void 0:t.editor)==null?void 0:o.state,[{type:"bulletList"},{type:"orderedList"}]).includes(i)&&this.isFocused:!1:((l=(r=this.$refs.richTextEditor)==null?void 0:r.editor)==null?void 0:l.isActive(i))&&this.isFocused},initLinkDialog(){var i,t,o;this.$refs.link.setInitialValues(this.selectedText,(o=(t=(i=this.$refs.richTextEditor)==null?void 0:i.editor)==null?void 0:t.getAttributes("link"))==null?void 0:o.href),this.hideLinkBubbleMenu=!0,this.linkDialogOpen=!0},removeLink(){var i;(i=this.$refs.richTextEditor)==null||i.removeLink(),this.linkDialogOpen=!1},setLink(i,t){this.$refs.richTextEditor.setLink(t,i,this.linkOptions,S.EDITOR_SUPPORTED_LINK_PROTOCOLS,S.EDITOR_DEFAULT_LINK_PREFIX),this.linkDialogOpen=!1},onMousedown(i){k.returnFirstEl(this.$refs.richTextEditor.$el).querySelector(".tiptap").contains(i.target)||(i.preventDefault(),this.$refs.richTextEditor.focusEditor())},onDrop(i){const t=i.dataTransfer,o=Array.from(t.files);this.$emit("add-media",o)},onPaste(i){if(i.clipboardData.files.length){i.stopPropagation(),i.preventDefault();const t=[...i.clipboardData.files];this.$emit("paste-media",t)}},onSkinTone(i){this.$emit("skin-tone",i)},onSelectEmoji(i,t){i&&(i.shift_key||t(),this.$refs.richTextEditor.editor.commands.insertContent({type:"emoji",attrs:{code:i.shortname,image:i.image,name:i.name}}),this.$emit("selected-emoji",i))},onSelectImage(){this.$refs.messageInputImageUpload.$refs.input.click()},onImageUpload(){this.$emit("select-media",this.$refs.messageInputImageUpload.$refs.input.files)},toggleEmojiPicker(){this.emojiPickerOpened=!this.emojiPickerOpened},onSend(){this.isSendDisabled||this.$emit("submit",this.internalInputValue)},onCancel(){this.$emit("cancel")},onInput(i){this.$emit("update:modelValue",i)},onTextInput(i){this.text=i,this.$emit("text-input",i)},onMarkdownInput(i){this.$emit("markdown-input",i)}}},J={class:"d-recipe-message-input__bottom-section"},Y={class:"d-recipe-message-input__bottom-section-left"},Z={class:"d-recipe-message-input__bottom-section-right"},$={class:"d-recipe-message-input__schedule-message"},ee={class:"d-recipe-message-input__sms-count"},te={key:0};function ie(i,t,o,r,l,n){const m=e.resolveComponent("dt-recipe-message-input-link"),p=e.resolveComponent("dt-recipe-message-input-topbar"),h=e.resolveComponent("dt-rich-text-editor"),g=e.resolveComponent("dt-icon-image"),c=e.resolveComponent("dt-button"),I=e.resolveComponent("dt-input"),w=e.resolveComponent("dt-icon-very-satisfied"),L=e.resolveComponent("dt-icon-satisfied"),y=e.resolveComponent("dt-emoji-picker"),E=e.resolveComponent("dt-popover"),_=e.resolveComponent("dt-stack"),O=e.resolveComponent("dt-tooltip"),x=e.resolveComponent("dt-icon-send"),D=e.resolveDirective("dt-scrollbar"),u=e.resolveDirective("dt-tooltip");return e.openBlock(),e.createElementBlock("div",e.mergeProps({"data-qa":"dt-recipe-message-input",role:"presentation",class:"d-recipe-message-input"},n.addClassStyleAttrs(i.$attrs),{onDragover:t[15]||(t[15]=e.withModifiers(()=>{},["prevent"])),onDrop:t[16]||(t[16]=e.withModifiers((...s)=>n.onDrop&&n.onDrop(...s),["prevent"])),onPaste:t[17]||(t[17]=(...s)=>n.onPaste&&n.onPaste(...s)),onMousedown:t[18]||(t[18]=(...s)=>n.onMousedown&&n.onMousedown(...s))}),[e.renderSlot(i.$slots,"top"),o.richText?(e.openBlock(),e.createBlock(p,{key:l.selectedText,"bold-button-options":o.boldButtonOptions,"italic-button-options":o.italicButtonOptions,"strike-button-options":o.strikeButtonOptions,"bullet-list-button-options":o.bulletListButtonOptions,"ordered-list-button-options":o.orderedListButtonOptions,"block-quote-button-options":o.blockQuoteButtonOptions,"code-button-options":o.codeButtonOptions,"code-block-button-options":o.codeBlockButtonOptions,"is-selection-active":n.isSelectionActive,onClick:n.handleTopbarClick},{link:e.withCtx(()=>[e.createVNode(m,{ref:"link",open:l.linkDialogOpen,"link-button-options":o.linkButtonOptions,"is-selection-active":n.isSelectionActive,onOpened:n.linkDialogOpened,onSetLink:n.setLink,onRemoveLink:n.removeLink},null,8,["open","link-button-options","is-selection-active","onOpened","onSetLink","onRemoveLink"])]),_:1},8,["bold-button-options","italic-button-options","strike-button-options","bullet-list-button-options","ordered-list-button-options","block-quote-button-options","code-button-options","code-block-button-options","is-selection-active","onClick"])):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"d-recipe-message-input__editor-wrapper",style:e.normalizeStyle({"max-height":o.maxHeight})},[e.createVNode(h,e.mergeProps({ref:"richTextEditor",modelValue:l.internalInputValue,"onUpdate:modelValue":t[0]||(t[0]=s=>l.internalInputValue=s),"allow-blockquote":o.richText,"allow-bold":o.richText,"allow-bullet-list":o.richText,"allow-code":o.richText,"allow-codeblock":o.richText,"allow-italic":o.richText,"allow-strike":o.richText,"allow-underline":o.richText,"paste-rich-text":o.richText,editable:o.editable,"input-aria-label":o.inputAriaLabel,"input-class":o.inputClass,"output-format":o.outputFormat,"auto-focus":o.autoFocus,link:o.richText,placeholder:o.placeholder,"prevent-typing":o.preventTyping,"mention-suggestion":o.mentionSuggestion,"channel-suggestion":o.channelSuggestion,"slash-command-suggestion":o.slashCommandSuggestion,"additional-extensions":l.additionalExtensions,"hide-link-bubble-menu":l.hideLinkBubbleMenu},n.removeClassStyleAttrs(i.$attrs),{onInput:n.onInput,onTextInput:n.onTextInput,onMarkdownInput:n.onMarkdownInput,onEnter:n.onSend,onSelected:t[1]||(t[1]=s=>l.selectedText=s),onSelectedCommand:t[2]||(t[2]=s=>i.$emit("selected-command",s)),onEditLink:n.initLinkDialog,onFocus:t[3]||(t[3]=s=>l.isFocused=!0),onBlur:t[4]||(t[4]=s=>l.isFocused=!1)}),null,16,["modelValue","allow-blockquote","allow-bold","allow-bullet-list","allow-code","allow-codeblock","allow-italic","allow-strike","allow-underline","paste-rich-text","editable","input-aria-label","input-class","output-format","auto-focus","link","placeholder","prevent-typing","mention-suggestion","channel-suggestion","slash-command-suggestion","additional-extensions","hide-link-bubble-menu","onInput","onTextInput","onMarkdownInput","onEnter","onEditLink"])],4)),[[D]]),e.renderSlot(i.$slots,"middle"),e.createElementVNode("section",J,[e.createElementVNode("div",Y,[e.createVNode(_,{gap:"200",direction:"row"},{default:e.withCtx(()=>[o.showImagePicker?e.withDirectives((e.openBlock(),e.createBlock(c,{key:0,"data-qa":"dt-recipe-message-input-image-btn",size:"sm",class:"d-recipe-message-input__button",kind:"muted",importance:"clear","aria-label":n.imagePickerButtonLabel,onClick:n.onSelectImage,onMouseenter:t[5]||(t[5]=s=>l.imagePickerFocus=!0),onMouseleave:t[6]||(t[6]=s=>l.imagePickerFocus=!1),onFocus:t[7]||(t[7]=s=>l.imagePickerFocus=!0),onBlur:t[8]||(t[8]=s=>l.imagePickerFocus=!1)},{icon:e.withCtx(()=>[e.createVNode(g,{size:"300"})]),_:1},8,["aria-label","onClick"])),[[u,n.imagePickerButtonLabel,"top-start"]]):e.createCommentVNode("",!0),e.createVNode(I,{ref:"messageInputImageUpload","data-qa":"dt-recipe-message-input-image-input",accept:"image/*, video/*",type:"file",class:"d-recipe-message-input__image-input",multiple:"",hidden:"",onInput:n.onImageUpload},null,8,["onInput"]),o.showEmojiPicker?(e.openBlock(),e.createBlock(E,{key:1,"open.sync":"emojiPickerOpened","data-qa":"dt-recipe-message-input-emoji-picker-popover","initial-focus-element":"#searchInput",padding:"none"},{anchor:e.withCtx(({attrs:s})=>[e.withDirectives((e.openBlock(),e.createBlock(c,e.mergeProps(s,{"data-qa":"dt-recipe-message-input-emoji-picker-btn",size:"sm",class:"d-recipe-message-input__button",kind:"muted",importance:"clear","aria-label":n.emojiPickerButtonLabel,onClick:n.toggleEmojiPicker,onMouseenter:t[9]||(t[9]=a=>l.emojiPickerFocus=!0),onMouseleave:t[10]||(t[10]=a=>l.emojiPickerFocus=!1),onFocus:t[11]||(t[11]=a=>l.emojiPickerFocus=!0),onBlur:t[12]||(t[12]=a=>l.emojiPickerFocus=!1)}),{icon:e.withCtx(()=>[n.emojiPickerHovered?(e.openBlock(),e.createBlock(w,{key:0,size:"300"})):(e.openBlock(),e.createBlock(L,{key:1,size:"300"}))]),_:1},16,["aria-label","onClick"])),[[u,n.emojiPickerButtonLabel]])]),content:e.withCtx(({close:s})=>[e.createVNode(y,e.mergeProps(o.emojiPickerProps,{onAddEmoji:t[13]||(t[13]=a=>i.$emit("add-emoji")),onSkinTone:n.onSkinTone,onSelectedEmoji:a=>n.onSelectEmoji(a,s),onScrollBottomReached:t[14]||(t[14]=a=>i.$emit("emoji-scroll-bottom-reached"))}),null,16,["onSkinTone","onSelectedEmoji"])]),_:1})):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"emojiGiphyPicker"),e.renderSlot(i.$slots,"customActionIcons")]),_:3})]),e.createElementVNode("div",Z,[e.createVNode(_,{direction:"row",gap:"300"},{default:e.withCtx(()=>[e.createElementVNode("div",$,[e.renderSlot(i.$slots,"scheduleMessage")]),e.createElementVNode("div",ee,[e.renderSlot(i.$slots,"smsCount")]),o.showCharacterLimit?(e.openBlock(),e.createBlock(O,{key:0,class:"d-recipe-message-input__remaining-char-tooltip",placement:"top-end",enabled:n.characterLimitTooltipEnabled,message:o.showCharacterLimit.message,offset:[10,8]},{anchor:e.withCtx(()=>[e.withDirectives(e.createElementVNode("p",{class:"d-recipe-message-input__remaining-char","data-qa":"dt-recipe-message-input-character-limit"},e.toDisplayString(o.showCharacterLimit.count-n.inputLength),513),[[e.vShow,n.displayCharacterLimitWarning]])]),_:1},8,["enabled","message"])):e.createCommentVNode("",!0),o.showCancel?e.withDirectives((e.openBlock(),e.createBlock(c,{key:1,"data-qa":"dt-recipe-message-input-cancel-button",class:"d-recipe-message-input__button d-recipe-message-input__cancel-button",size:"sm",kind:"muted",importance:"clear","aria-label":n.cancelButtonLabel,onClick:n.onCancel},{default:e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(n.cancelButtonLabel),1)]),_:1},8,["aria-label","onClick"])),[[u,n.cancelButtonLabel]]):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"sendButton",{},()=>[o.showSend?e.withDirectives((e.openBlock(),e.createBlock(c,{key:0,"data-qa":"dt-recipe-message-input-send-btn",size:"sm",kind:"default",importance:"primary",class:e.normalizeClass(["d-recipe-message-input__button d-recipe-message-input__send-button",{"d-recipe-message-input__send-button--disabled":n.isSendDisabled,"d-btn--icon-only":n.showSendIcon}]),"aria-label":n.sendButtonLabel,"aria-disabled":n.isSendDisabled,onClick:n.onSend},e.createSlots({default:e.withCtx(()=>[o.showSend.text?(e.openBlock(),e.createElementBlock("p",te,e.toDisplayString(o.showSend.text),1)):e.createCommentVNode("",!0)]),_:2},[n.showSendIcon?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(i.$slots,"sendIcon",{iconSize:n.sendIconSize},()=>[e.createVNode(x,{size:n.sendIconSize},null,8,["size"])])]),key:"0"}:void 0]),1032,["class","aria-label","aria-disabled","onClick"])),[[u,n.sendButtonLabel,"top-end"]]):e.createCommentVNode("",!0)])]),_:3})])])],16)}const oe=v._(Q,[["render",ie]]);exports.default=oe;
|
|
2
2
|
//# sourceMappingURL=message-input.cjs.map
|