@dialpad/dialtone-vue 3.184.2 → 3.185.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +208 -206
- package/dist/dialtone-vue.js.map +1 -1
- package/dist/lib/list-item/list-item.cjs +1 -1
- package/dist/lib/list-item/list-item.cjs.map +1 -1
- package/dist/lib/list-item/list-item.js +35 -30
- package/dist/lib/list-item/list-item.js.map +1 -1
- package/dist/lib/loader/index.cjs +2 -0
- package/dist/lib/loader/index.cjs.map +1 -0
- package/dist/lib/loader/index.js +5 -0
- package/dist/lib/loader/index.js.map +1 -0
- package/dist/lib/loader/loader.cjs +2 -0
- package/dist/lib/loader/loader.cjs.map +1 -0
- package/dist/lib/loader/loader.js +48 -0
- package/dist/lib/loader/loader.js.map +1 -0
- 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 +90 -68
- package/dist/lib/message-input/message-input.js.map +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.cjs +8 -4
- package/dist/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.js +339 -244
- package/dist/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/types/components/list_item/list_item.vue.d.ts +10 -2
- package/dist/types/components/loader/index.d.ts +2 -0
- package/dist/types/components/loader/index.d.ts.map +1 -0
- package/dist/types/components/loader/loader.vue.d.ts +26 -0
- package/dist/types/components/loader/loader.vue.d.ts.map +1 -0
- package/dist/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +21 -1
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/types/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -3,10 +3,10 @@ import { removeClassStyleAttrs as z, addClassStyleAttrs as N, returnFirstEl as U
|
|
|
3
3
|
import { Node as H, mergeAttributes as W } from "@tiptap/core";
|
|
4
4
|
import { NodeViewWrapper as K, nodeViewProps as X, VueNodeViewRenderer as Q } from "../../node_modules/@tiptap/vue-3.js";
|
|
5
5
|
import { DtIconClose as G, DtIconVideo as Y, DtIconImage as J, DtIconVerySatisfied as Z, DtIconSatisfied as $, DtIconSend as ee } from "@dialpad/dialtone-icons/vue3";
|
|
6
|
-
import { resolveComponent as
|
|
6
|
+
import { resolveComponent as s, openBlock as r, createBlock as u, withCtx as a, createVNode as c, createElementVNode as m, createTextVNode as te, toDisplayString as T, resolveDirective as O, createElementBlock as w, mergeProps as _, withModifiers as I, renderSlot as g, createCommentVNode as h, withDirectives as f, normalizeStyle as ie, vShow as oe, normalizeClass as ne, createSlots as le } from "vue";
|
|
7
7
|
import { _ as B } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
import se from "../item-layout/item-layout.js";
|
|
9
|
-
import
|
|
9
|
+
import P from "../button/button.js";
|
|
10
10
|
import ae from "./message-input-topbar.js";
|
|
11
11
|
import re from "./message-input-link.js";
|
|
12
12
|
import { EDITOR_SUPPORTED_LINK_PROTOCOLS as ce, EDITOR_DEFAULT_LINK_PREFIX as de } from "../editor/editor-constants.js";
|
|
@@ -23,32 +23,34 @@ const _e = {
|
|
|
23
23
|
NodeViewWrapper: K,
|
|
24
24
|
DtItemLayout: se,
|
|
25
25
|
DtIconClose: G,
|
|
26
|
-
DtButton:
|
|
26
|
+
DtButton: P,
|
|
27
27
|
DtIconVideo: Y
|
|
28
28
|
},
|
|
29
29
|
props: X,
|
|
30
30
|
emits: ["meeting-pill-close"],
|
|
31
31
|
methods: {
|
|
32
32
|
close(t) {
|
|
33
|
-
|
|
33
|
+
var i, d, n;
|
|
34
|
+
const e = (n = (d = (i = this.editor) == null ? void 0 : i.storage) == null ? void 0 : d.meetingPill) == null ? void 0 : n.onClose;
|
|
35
|
+
e && typeof e == "function" && e(t);
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
|
-
}, Te = { class: "d-recipe-message-input-meeting-pill__icon" },
|
|
37
|
-
function
|
|
38
|
-
const
|
|
39
|
-
return r(),
|
|
38
|
+
}, Te = { class: "d-recipe-message-input-meeting-pill__icon" }, Se = { class: "d-recipe-message-input-meeting-pill__close" };
|
|
39
|
+
function Le(t, e, i, d, n, o) {
|
|
40
|
+
const S = s("dt-icon-video"), L = s("dt-icon-close"), x = s("dt-button"), y = s("dt-item-layout"), b = s("node-view-wrapper");
|
|
41
|
+
return r(), u(b, { class: "d-recipe-message-input-meeting-pill" }, {
|
|
40
42
|
default: a(() => [
|
|
41
43
|
c(y, {
|
|
42
44
|
class: "d-recipe-message-input-meeting-pill__layout",
|
|
43
45
|
unstyled: ""
|
|
44
46
|
}, {
|
|
45
47
|
left: a(() => [
|
|
46
|
-
|
|
47
|
-
c(
|
|
48
|
+
m("div", Te, [
|
|
49
|
+
c(S, { size: "400" })
|
|
48
50
|
])
|
|
49
51
|
]),
|
|
50
52
|
right: a(() => [
|
|
51
|
-
|
|
53
|
+
m("div", Se, [
|
|
52
54
|
c(x, {
|
|
53
55
|
circle: "",
|
|
54
56
|
"aria-label": t.node.attrs["close-button-aria-label"],
|
|
@@ -57,7 +59,7 @@ function Se(t, e, i, m, n, o) {
|
|
|
57
59
|
onClick: o.close
|
|
58
60
|
}, {
|
|
59
61
|
icon: a(() => [
|
|
60
|
-
c(
|
|
62
|
+
c(L, { size: "300" })
|
|
61
63
|
]),
|
|
62
64
|
_: 1
|
|
63
65
|
}, 8, ["aria-label", "onClick"])
|
|
@@ -72,10 +74,22 @@ function Se(t, e, i, m, n, o) {
|
|
|
72
74
|
_: 1
|
|
73
75
|
});
|
|
74
76
|
}
|
|
75
|
-
const xe = /* @__PURE__ */ B(_e, [["render",
|
|
77
|
+
const xe = /* @__PURE__ */ B(_e, [["render", Le]]), ye = H.create({
|
|
78
|
+
name: "meetingPill",
|
|
76
79
|
atom: !0,
|
|
77
80
|
group: "inline",
|
|
78
81
|
inline: !0,
|
|
82
|
+
addOptions() {
|
|
83
|
+
return {
|
|
84
|
+
onClose: () => {
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
addStorage() {
|
|
89
|
+
return {
|
|
90
|
+
onClose: this.options.onClose
|
|
91
|
+
};
|
|
92
|
+
},
|
|
79
93
|
addNodeView() {
|
|
80
94
|
return Q(xe);
|
|
81
95
|
},
|
|
@@ -100,11 +114,11 @@ const xe = /* @__PURE__ */ B(_e, [["render", Se]]), ye = H.create({
|
|
|
100
114
|
renderHTML({ HTMLAttributes: t }) {
|
|
101
115
|
return ["meeting-pill", W(t)];
|
|
102
116
|
}
|
|
103
|
-
}),
|
|
117
|
+
}), Ce = {
|
|
104
118
|
compatConfig: { MODE: 3 },
|
|
105
119
|
name: "DtRecipeMessageInput",
|
|
106
120
|
components: {
|
|
107
|
-
DtButton:
|
|
121
|
+
DtButton: P,
|
|
108
122
|
DtEmojiPicker: ue,
|
|
109
123
|
DtInput: me,
|
|
110
124
|
DtPopover: pe,
|
|
@@ -554,7 +568,13 @@ const xe = /* @__PURE__ */ B(_e, [["render", Se]]), ye = H.create({
|
|
|
554
568
|
// If an ordered list is nested within an unordered list, we only want to show the currently selected list as
|
|
555
569
|
// active. This function performs the logic to determine the farthest active node from the root.
|
|
556
570
|
lastActiveNodes: q,
|
|
557
|
-
additionalExtensions: [
|
|
571
|
+
additionalExtensions: [
|
|
572
|
+
ye.configure({
|
|
573
|
+
onClose: (t) => {
|
|
574
|
+
this.$emit("meeting-pill-close", t);
|
|
575
|
+
}
|
|
576
|
+
})
|
|
577
|
+
],
|
|
558
578
|
internalInputValue: this.modelValue,
|
|
559
579
|
// internal input content
|
|
560
580
|
imagePickerFocus: !1,
|
|
@@ -619,8 +639,8 @@ const xe = /* @__PURE__ */ B(_e, [["render", Se]]), ye = H.create({
|
|
|
619
639
|
},
|
|
620
640
|
// eslint-disable-next-line complexity
|
|
621
641
|
handleTopbarClick(t) {
|
|
622
|
-
var
|
|
623
|
-
const e = (
|
|
642
|
+
var d;
|
|
643
|
+
const e = (d = this.$refs.richTextEditor) == null ? void 0 : d.editor, i = {
|
|
624
644
|
bold: () => e == null ? void 0 : e.chain().focus().toggleBold().run(),
|
|
625
645
|
italic: () => e == null ? void 0 : e.chain().focus().toggleItalic().run(),
|
|
626
646
|
strike: () => e == null ? void 0 : e.chain().focus().toggleStrike().run(),
|
|
@@ -634,8 +654,8 @@ const xe = /* @__PURE__ */ B(_e, [["render", Se]]), ye = H.create({
|
|
|
634
654
|
},
|
|
635
655
|
// Checks if the node currently selected is active ex/ the bold button is active if the selected text is bold
|
|
636
656
|
isSelectionActive(t) {
|
|
637
|
-
var e, i,
|
|
638
|
-
return ["bulletList", "orderedList"].includes(t) ? this.lastActiveNodes((i = (e = this.$refs.richTextEditor) == null ? void 0 : e.editor) == null ? void 0 : i.state, [{ type: "bulletList" }, { type: "orderedList" }]).includes(t) && this.isFocused : ((n = (
|
|
657
|
+
var e, i, d, n;
|
|
658
|
+
return ["bulletList", "orderedList"].includes(t) ? this.lastActiveNodes((i = (e = this.$refs.richTextEditor) == null ? void 0 : e.editor) == null ? void 0 : i.state, [{ type: "bulletList" }, { type: "orderedList" }]).includes(t) && this.isFocused : ((n = (d = this.$refs.richTextEditor) == null ? void 0 : d.editor) == null ? void 0 : n.isActive(t)) && this.isFocused;
|
|
639
659
|
},
|
|
640
660
|
initLinkDialog() {
|
|
641
661
|
var t, e, i;
|
|
@@ -705,22 +725,22 @@ const xe = /* @__PURE__ */ B(_e, [["render", Se]]), ye = H.create({
|
|
|
705
725
|
this.text = t, this.$emit("text-input", t);
|
|
706
726
|
}
|
|
707
727
|
}
|
|
708
|
-
},
|
|
709
|
-
function
|
|
710
|
-
const
|
|
711
|
-
return r(),
|
|
728
|
+
}, we = { class: "d-recipe-message-input__bottom-section" }, ve = { class: "d-recipe-message-input__bottom-section-left" }, Oe = { class: "d-recipe-message-input__bottom-section-right" }, Ie = { class: "d-recipe-message-input__sms-count" }, Be = { key: 0 };
|
|
729
|
+
function Pe(t, e, i, d, n, o) {
|
|
730
|
+
const S = s("dt-recipe-message-input-link"), L = s("dt-recipe-message-input-topbar"), x = s("dt-rich-text-editor"), y = s("dt-icon-image"), b = s("dt-button"), j = s("dt-input"), D = s("dt-icon-very-satisfied"), E = s("dt-icon-satisfied"), M = s("dt-emoji-picker"), V = s("dt-popover"), v = s("dt-stack"), F = s("dt-tooltip"), A = s("dt-icon-send"), R = O("dt-scrollbar"), C = O("dt-tooltip");
|
|
731
|
+
return r(), w("div", _({
|
|
712
732
|
"data-qa": "dt-recipe-message-input",
|
|
713
733
|
role: "presentation",
|
|
714
734
|
class: "d-recipe-message-input"
|
|
715
735
|
}, o.addClassStyleAttrs(t.$attrs), {
|
|
716
|
-
onDragover: e[
|
|
736
|
+
onDragover: e[13] || (e[13] = I(() => {
|
|
717
737
|
}, ["prevent"])),
|
|
718
|
-
onDrop: e[
|
|
719
|
-
onPaste: e[
|
|
720
|
-
onMousedown: e[
|
|
738
|
+
onDrop: e[14] || (e[14] = I((...l) => o.onDrop && o.onDrop(...l), ["prevent"])),
|
|
739
|
+
onPaste: e[15] || (e[15] = (...l) => o.onPaste && o.onPaste(...l)),
|
|
740
|
+
onMousedown: e[16] || (e[16] = (...l) => o.onMousedown && o.onMousedown(...l))
|
|
721
741
|
}), [
|
|
722
742
|
g(t.$slots, "top"),
|
|
723
|
-
i.richText ? (r(),
|
|
743
|
+
i.richText ? (r(), u(L, {
|
|
724
744
|
key: n.selectedText,
|
|
725
745
|
"bold-button-options": i.boldButtonOptions,
|
|
726
746
|
"italic-button-options": i.italicButtonOptions,
|
|
@@ -734,7 +754,7 @@ function je(t, e, i, m, n, o) {
|
|
|
734
754
|
onClick: o.handleTopbarClick
|
|
735
755
|
}, {
|
|
736
756
|
link: a(() => [
|
|
737
|
-
c(
|
|
757
|
+
c(S, {
|
|
738
758
|
ref: "link",
|
|
739
759
|
open: n.linkDialogOpen,
|
|
740
760
|
"link-button-options": i.linkButtonOptions,
|
|
@@ -746,14 +766,14 @@ function je(t, e, i, m, n, o) {
|
|
|
746
766
|
]),
|
|
747
767
|
_: 1
|
|
748
768
|
}, 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"])) : h("", !0),
|
|
749
|
-
f((r(),
|
|
769
|
+
f((r(), w("div", {
|
|
750
770
|
class: "d-recipe-message-input__editor-wrapper",
|
|
751
771
|
style: ie({ "max-height": i.maxHeight })
|
|
752
772
|
}, [
|
|
753
773
|
c(x, _({
|
|
754
774
|
ref: "richTextEditor",
|
|
755
775
|
modelValue: n.internalInputValue,
|
|
756
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
776
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => n.internalInputValue = l),
|
|
757
777
|
"allow-blockquote": i.richText,
|
|
758
778
|
"allow-bold": i.richText,
|
|
759
779
|
"allow-bullet-list": i.richText,
|
|
@@ -762,6 +782,7 @@ function je(t, e, i, m, n, o) {
|
|
|
762
782
|
"allow-italic": i.richText,
|
|
763
783
|
"allow-strike": i.richText,
|
|
764
784
|
"allow-underline": i.richText,
|
|
785
|
+
"paste-rich-text": i.richText,
|
|
765
786
|
editable: i.editable,
|
|
766
787
|
"input-aria-label": i.inputAriaLabel,
|
|
767
788
|
"input-class": i.inputClass,
|
|
@@ -779,25 +800,26 @@ function je(t, e, i, m, n, o) {
|
|
|
779
800
|
onInput: o.onInput,
|
|
780
801
|
onTextInput: o.onTextInput,
|
|
781
802
|
onEnter: o.onSend,
|
|
782
|
-
onSelected: e[1] || (e[1] = (
|
|
803
|
+
onSelected: e[1] || (e[1] = (l) => n.selectedText = l),
|
|
804
|
+
onSelectedCommand: e[2] || (e[2] = (l) => t.$emit("selected-command", l)),
|
|
783
805
|
onEditLink: o.initLinkDialog,
|
|
784
|
-
onFocus: e[
|
|
785
|
-
onBlur: e[
|
|
786
|
-
}), null, 16, ["modelValue", "allow-blockquote", "allow-bold", "allow-bullet-list", "allow-code", "allow-codeblock", "allow-italic", "allow-strike", "allow-underline", "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", "onEnter", "onEditLink"])
|
|
806
|
+
onFocus: e[3] || (e[3] = (l) => n.isFocused = !0),
|
|
807
|
+
onBlur: e[4] || (e[4] = (l) => n.isFocused = !1)
|
|
808
|
+
}), 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", "onEnter", "onEditLink"])
|
|
787
809
|
], 4)), [
|
|
788
810
|
[R]
|
|
789
811
|
]),
|
|
790
812
|
g(t.$slots, "middle"),
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
c(
|
|
813
|
+
m("section", we, [
|
|
814
|
+
m("div", ve, [
|
|
815
|
+
c(v, {
|
|
794
816
|
gap: "200",
|
|
795
817
|
direction: "row"
|
|
796
818
|
}, {
|
|
797
819
|
default: a(() => {
|
|
798
|
-
var
|
|
820
|
+
var l;
|
|
799
821
|
return [
|
|
800
|
-
i.showImagePicker ? f((r(),
|
|
822
|
+
i.showImagePicker ? f((r(), u(b, {
|
|
801
823
|
key: 0,
|
|
802
824
|
"data-qa": "dt-recipe-message-input-image-btn",
|
|
803
825
|
size: "sm",
|
|
@@ -806,19 +828,19 @@ function je(t, e, i, m, n, o) {
|
|
|
806
828
|
importance: "clear",
|
|
807
829
|
"aria-label": i.showImagePicker.ariaLabel,
|
|
808
830
|
onClick: o.onSelectImage,
|
|
809
|
-
onMouseenter: e[
|
|
810
|
-
onMouseleave: e[
|
|
811
|
-
onFocus: e[
|
|
812
|
-
onBlur: e[
|
|
831
|
+
onMouseenter: e[5] || (e[5] = (p) => n.imagePickerFocus = !0),
|
|
832
|
+
onMouseleave: e[6] || (e[6] = (p) => n.imagePickerFocus = !1),
|
|
833
|
+
onFocus: e[7] || (e[7] = (p) => n.imagePickerFocus = !0),
|
|
834
|
+
onBlur: e[8] || (e[8] = (p) => n.imagePickerFocus = !1)
|
|
813
835
|
}, {
|
|
814
836
|
icon: a(() => [
|
|
815
837
|
c(y, { size: "300" })
|
|
816
838
|
]),
|
|
817
839
|
_: 1
|
|
818
840
|
}, 8, ["aria-label", "onClick"])), [
|
|
819
|
-
[
|
|
841
|
+
[C, (l = i.showImagePicker) == null ? void 0 : l.tooltipLabel, "top-start"]
|
|
820
842
|
]) : h("", !0),
|
|
821
|
-
c(
|
|
843
|
+
c(j, {
|
|
822
844
|
ref: "messageInputImageUpload",
|
|
823
845
|
"data-qa": "dt-recipe-message-input-image-input",
|
|
824
846
|
accept: "image/*, video/*",
|
|
@@ -828,7 +850,7 @@ function je(t, e, i, m, n, o) {
|
|
|
828
850
|
hidden: "",
|
|
829
851
|
onInput: o.onImageUpload
|
|
830
852
|
}, null, 8, ["onInput"]),
|
|
831
|
-
i.showEmojiPicker ? (r(),
|
|
853
|
+
i.showEmojiPicker ? (r(), u(V, {
|
|
832
854
|
key: 1,
|
|
833
855
|
"open.sync": "emojiPickerOpened",
|
|
834
856
|
"data-qa": "dt-recipe-message-input-emoji-picker-popover",
|
|
@@ -836,7 +858,7 @@ function je(t, e, i, m, n, o) {
|
|
|
836
858
|
padding: "none"
|
|
837
859
|
}, {
|
|
838
860
|
anchor: a(({ attrs: p }) => [
|
|
839
|
-
f((r(),
|
|
861
|
+
f((r(), u(b, _(p, {
|
|
840
862
|
"data-qa": "dt-recipe-message-input-emoji-picker-btn",
|
|
841
863
|
size: "sm",
|
|
842
864
|
class: "d-recipe-message-input__button",
|
|
@@ -844,23 +866,23 @@ function je(t, e, i, m, n, o) {
|
|
|
844
866
|
importance: "clear",
|
|
845
867
|
"aria-label": i.emojiButtonAriaLabel,
|
|
846
868
|
onClick: o.toggleEmojiPicker,
|
|
847
|
-
onMouseenter: e[
|
|
848
|
-
onMouseleave: e[
|
|
849
|
-
onFocus: e[
|
|
850
|
-
onBlur: e[
|
|
869
|
+
onMouseenter: e[9] || (e[9] = (k) => n.emojiPickerFocus = !0),
|
|
870
|
+
onMouseleave: e[10] || (e[10] = (k) => n.emojiPickerFocus = !1),
|
|
871
|
+
onFocus: e[11] || (e[11] = (k) => n.emojiPickerFocus = !0),
|
|
872
|
+
onBlur: e[12] || (e[12] = (k) => n.emojiPickerFocus = !1)
|
|
851
873
|
}), {
|
|
852
874
|
icon: a(() => [
|
|
853
|
-
o.emojiPickerHovered ? (r(),
|
|
875
|
+
o.emojiPickerHovered ? (r(), u(D, {
|
|
854
876
|
key: 0,
|
|
855
877
|
size: "300"
|
|
856
|
-
})) : (r(),
|
|
878
|
+
})) : (r(), u(E, {
|
|
857
879
|
key: 1,
|
|
858
880
|
size: "300"
|
|
859
881
|
}))
|
|
860
882
|
]),
|
|
861
883
|
_: 2
|
|
862
884
|
}, 1040, ["aria-label", "onClick"])), [
|
|
863
|
-
[
|
|
885
|
+
[C, i.emojiTooltipMessage]
|
|
864
886
|
])
|
|
865
887
|
]),
|
|
866
888
|
content: a(({ close: p }) => [
|
|
@@ -878,16 +900,16 @@ function je(t, e, i, m, n, o) {
|
|
|
878
900
|
_: 3
|
|
879
901
|
})
|
|
880
902
|
]),
|
|
881
|
-
|
|
882
|
-
c(
|
|
903
|
+
m("div", Oe, [
|
|
904
|
+
c(v, {
|
|
883
905
|
direction: "row",
|
|
884
906
|
gap: "300"
|
|
885
907
|
}, {
|
|
886
908
|
default: a(() => [
|
|
887
|
-
|
|
909
|
+
m("div", Ie, [
|
|
888
910
|
g(t.$slots, "smsCount")
|
|
889
911
|
]),
|
|
890
|
-
i.showCharacterLimit ? (r(),
|
|
912
|
+
i.showCharacterLimit ? (r(), u(F, {
|
|
891
913
|
key: 0,
|
|
892
914
|
class: "d-recipe-message-input__remaining-char-tooltip",
|
|
893
915
|
placement: "top-end",
|
|
@@ -896,7 +918,7 @@ function je(t, e, i, m, n, o) {
|
|
|
896
918
|
offset: [10, 8]
|
|
897
919
|
}, {
|
|
898
920
|
anchor: a(() => [
|
|
899
|
-
f(
|
|
921
|
+
f(m("p", {
|
|
900
922
|
class: "d-recipe-message-input__remaining-char",
|
|
901
923
|
"data-qa": "dt-recipe-message-input-character-limit"
|
|
902
924
|
}, T(i.showCharacterLimit.count - o.inputLength), 513), [
|
|
@@ -905,7 +927,7 @@ function je(t, e, i, m, n, o) {
|
|
|
905
927
|
]),
|
|
906
928
|
_: 1
|
|
907
929
|
}, 8, ["enabled", "message"])) : h("", !0),
|
|
908
|
-
i.showCancel ? (r(),
|
|
930
|
+
i.showCancel ? (r(), u(b, {
|
|
909
931
|
key: 1,
|
|
910
932
|
"data-qa": "dt-recipe-message-input-cancel-button",
|
|
911
933
|
class: "d-recipe-message-input__button d-recipe-message-input__cancel-button",
|
|
@@ -916,14 +938,14 @@ function je(t, e, i, m, n, o) {
|
|
|
916
938
|
onClick: o.onCancel
|
|
917
939
|
}, {
|
|
918
940
|
default: a(() => [
|
|
919
|
-
|
|
941
|
+
m("p", null, T(i.showCancel.text), 1)
|
|
920
942
|
]),
|
|
921
943
|
_: 1
|
|
922
944
|
}, 8, ["aria-label", "onClick"])) : h("", !0),
|
|
923
945
|
g(t.$slots, "sendButton", {}, () => {
|
|
924
|
-
var
|
|
946
|
+
var l;
|
|
925
947
|
return [
|
|
926
|
-
i.showSend ? f((r(),
|
|
948
|
+
i.showSend ? f((r(), u(b, {
|
|
927
949
|
key: 0,
|
|
928
950
|
"data-qa": "dt-recipe-message-input-send-btn",
|
|
929
951
|
size: "sm",
|
|
@@ -941,7 +963,7 @@ function je(t, e, i, m, n, o) {
|
|
|
941
963
|
onClick: o.onSend
|
|
942
964
|
}, le({
|
|
943
965
|
default: a(() => [
|
|
944
|
-
i.showSend.text ? (r(),
|
|
966
|
+
i.showSend.text ? (r(), w("p", Be, T(i.showSend.text), 1)) : h("", !0)
|
|
945
967
|
]),
|
|
946
968
|
_: 2
|
|
947
969
|
}, [
|
|
@@ -955,7 +977,7 @@ function je(t, e, i, m, n, o) {
|
|
|
955
977
|
key: "0"
|
|
956
978
|
} : void 0
|
|
957
979
|
]), 1032, ["class", "aria-label", "aria-disabled", "onClick"])), [
|
|
958
|
-
[
|
|
980
|
+
[C, (l = i.showSend) == null ? void 0 : l.tooltipLabel, "top-end"]
|
|
959
981
|
]) : h("", !0)
|
|
960
982
|
];
|
|
961
983
|
})
|
|
@@ -966,7 +988,7 @@ function je(t, e, i, m, n, o) {
|
|
|
966
988
|
])
|
|
967
989
|
], 16);
|
|
968
990
|
}
|
|
969
|
-
const Je = /* @__PURE__ */ B(
|
|
991
|
+
const Je = /* @__PURE__ */ B(Ce, [["render", Pe]]);
|
|
970
992
|
export {
|
|
971
993
|
Je as default
|
|
972
994
|
};
|