@dialpad/dialtone 9.117.2 → 9.118.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/css/dialtone-default-theme.css +44 -3
- package/dist/css/dialtone-default-theme.min.css +1 -1
- package/dist/css/dialtone-docs.json +1 -1
- package/dist/css/dialtone.css +44 -3
- package/dist/css/dialtone.min.css +1 -1
- package/dist/tokens/doc.json +19874 -19874
- package/dist/vue2/lib/editor/editor.cjs +1 -1
- package/dist/vue2/lib/editor/editor.cjs.map +1 -1
- package/dist/vue2/lib/editor/editor.js +75 -81
- package/dist/vue2/lib/editor/editor.js.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +0 -1
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/vue3/lib/editor/editor.cjs +1 -1
- package/dist/vue3/lib/editor/editor.cjs.map +1 -1
- package/dist/vue3/lib/editor/editor.js +95 -100
- package/dist/vue3/lib/editor/editor.js.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts +0 -1
- package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { EDITOR_SUPPORTED_LINK_PROTOCOLS as
|
|
2
|
-
import { removeClassStyleAttrs as
|
|
3
|
-
import { DtIconQuickReply as
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as
|
|
13
|
-
const
|
|
1
|
+
import { EDITOR_SUPPORTED_LINK_PROTOCOLS as J, EDITOR_DEFAULT_LINK_PREFIX as H } from "./editor-constants.js";
|
|
2
|
+
import { removeClassStyleAttrs as X, addClassStyleAttrs as Y } from "../../common/utils/index.js";
|
|
3
|
+
import { DtIconQuickReply as T, DtIconBold as b, DtIconItalic as x, DtIconUnderline as C, DtIconStrikethrough as _, DtIconListBullet as R, DtIconListOrdered as E, DtIconAlignLeft as v, DtIconAlignCenter as F, DtIconAlignRight as S, DtIconAlignJustify as O, DtIconQuote as D, DtIconCodeBlock as Q, DtIconLink2 as M, DtIconImage as q } from "@dialpad/dialtone-icons/vue3";
|
|
4
|
+
import { resolveComponent as h, openBlock as a, createElementBlock as I, mergeProps as V, createVNode as c, withCtx as u, Fragment as U, renderList as P, createBlock as p, withKeys as k, withModifiers as f, resolveDynamicComponent as K, createTextVNode as w, toDisplayString as g, createElementVNode as L, createCommentVNode as j, normalizeStyle as W } from "vue";
|
|
5
|
+
import { _ as Z } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
import $ from "../rich-text-editor/rich-text-editor.js";
|
|
7
|
+
import tt from "../button/button.js";
|
|
8
|
+
import et from "../popover/popover.js";
|
|
9
|
+
import it from "../stack/stack.js";
|
|
10
|
+
import ot from "../input/input.js";
|
|
11
|
+
import nt from "../tooltip/tooltip.js";
|
|
12
|
+
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as rt, RICH_TEXT_EDITOR_OUTPUT_FORMATS as lt } from "../rich-text-editor/rich-text-editor-constants.js";
|
|
13
|
+
const st = {
|
|
14
14
|
compatConfig: { MODE: 3 },
|
|
15
15
|
name: "DtRecipeEditor",
|
|
16
16
|
components: {
|
|
17
|
-
DtRichTextEditor:
|
|
18
|
-
DtButton:
|
|
19
|
-
DtPopover:
|
|
20
|
-
DtStack:
|
|
21
|
-
DtInput:
|
|
22
|
-
DtTooltip:
|
|
23
|
-
DtIconQuickReply:
|
|
24
|
-
DtIconBold:
|
|
25
|
-
DtIconItalic:
|
|
26
|
-
DtIconUnderline:
|
|
27
|
-
DtIconStrikethrough:
|
|
28
|
-
DtIconListBullet:
|
|
29
|
-
DtIconListOrdered:
|
|
30
|
-
DtIconAlignLeft:
|
|
31
|
-
DtIconAlignCenter:
|
|
32
|
-
DtIconAlignRight:
|
|
33
|
-
DtIconAlignJustify:
|
|
34
|
-
DtIconQuote:
|
|
17
|
+
DtRichTextEditor: $,
|
|
18
|
+
DtButton: tt,
|
|
19
|
+
DtPopover: et,
|
|
20
|
+
DtStack: it,
|
|
21
|
+
DtInput: ot,
|
|
22
|
+
DtTooltip: nt,
|
|
23
|
+
DtIconQuickReply: T,
|
|
24
|
+
DtIconBold: b,
|
|
25
|
+
DtIconItalic: x,
|
|
26
|
+
DtIconUnderline: C,
|
|
27
|
+
DtIconStrikethrough: _,
|
|
28
|
+
DtIconListBullet: R,
|
|
29
|
+
DtIconListOrdered: E,
|
|
30
|
+
DtIconAlignLeft: v,
|
|
31
|
+
DtIconAlignCenter: F,
|
|
32
|
+
DtIconAlignRight: S,
|
|
33
|
+
DtIconAlignJustify: O,
|
|
34
|
+
DtIconQuote: D,
|
|
35
35
|
DtIconCodeBlock: Q,
|
|
36
|
-
DtIconLink2:
|
|
37
|
-
DtIconImage:
|
|
36
|
+
DtIconLink2: M,
|
|
37
|
+
DtIconImage: q
|
|
38
38
|
},
|
|
39
39
|
mixins: [],
|
|
40
40
|
inheritAttrs: !1,
|
|
@@ -86,7 +86,7 @@ const at = {
|
|
|
86
86
|
type: [Boolean, String, Number],
|
|
87
87
|
default: !1,
|
|
88
88
|
validator(t) {
|
|
89
|
-
return typeof t == "string" ?
|
|
89
|
+
return typeof t == "string" ? rt.includes(t) : !0;
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
/**
|
|
@@ -302,8 +302,7 @@ const at = {
|
|
|
302
302
|
},
|
|
303
303
|
showLinkInput: !1,
|
|
304
304
|
linkInput: "",
|
|
305
|
-
currentButtonRefIndex: 0
|
|
306
|
-
buttonRefMap: Z({})
|
|
305
|
+
currentButtonRefIndex: 0
|
|
307
306
|
};
|
|
308
307
|
},
|
|
309
308
|
computed: {
|
|
@@ -311,7 +310,7 @@ const at = {
|
|
|
311
310
|
return this.internalInputValue.length;
|
|
312
311
|
},
|
|
313
312
|
htmlOutputFormat() {
|
|
314
|
-
return
|
|
313
|
+
return lt[2];
|
|
315
314
|
},
|
|
316
315
|
showingTextFormatButtons() {
|
|
317
316
|
return this.showBoldButton || this.showItalicsButton || this.showStrikeButton || this.showUnderlineButton;
|
|
@@ -349,7 +348,7 @@ const at = {
|
|
|
349
348
|
showBtn: this.showQuickRepliesButton,
|
|
350
349
|
label: "Quick reply",
|
|
351
350
|
selector: "quickReplies",
|
|
352
|
-
icon:
|
|
351
|
+
icon: T,
|
|
353
352
|
dataQA: "dt-recipe-editor-quick-replies-btn",
|
|
354
353
|
tooltipMessage: "Quick Reply",
|
|
355
354
|
onClick: this.onQuickRepliesClick
|
|
@@ -361,7 +360,7 @@ const at = {
|
|
|
361
360
|
{
|
|
362
361
|
showBtn: this.showBoldButton,
|
|
363
362
|
selector: "bold",
|
|
364
|
-
icon:
|
|
363
|
+
icon: b,
|
|
365
364
|
dataQA: "dt-recipe-editor-bold-btn",
|
|
366
365
|
tooltipMessage: "Bold",
|
|
367
366
|
onClick: this.onBoldTextToggle
|
|
@@ -369,7 +368,7 @@ const at = {
|
|
|
369
368
|
{
|
|
370
369
|
showBtn: this.showItalicsButton,
|
|
371
370
|
selector: "italic",
|
|
372
|
-
icon:
|
|
371
|
+
icon: x,
|
|
373
372
|
dataQA: "dt-recipe-editor-italics-btn",
|
|
374
373
|
tooltipMessage: "Italics",
|
|
375
374
|
onClick: this.onItalicTextToggle
|
|
@@ -377,7 +376,7 @@ const at = {
|
|
|
377
376
|
{
|
|
378
377
|
showBtn: this.showUnderlineButton,
|
|
379
378
|
selector: "underline",
|
|
380
|
-
icon:
|
|
379
|
+
icon: C,
|
|
381
380
|
dataQA: "dt-recipe-editor-underline-btn",
|
|
382
381
|
tooltipMessage: "Underline",
|
|
383
382
|
onClick: this.onUnderlineTextToggle
|
|
@@ -385,7 +384,7 @@ const at = {
|
|
|
385
384
|
{
|
|
386
385
|
showBtn: this.showStrikeButton,
|
|
387
386
|
selector: "strike",
|
|
388
|
-
icon:
|
|
387
|
+
icon: _,
|
|
389
388
|
dataQA: "dt-recipe-editor-strike-btn",
|
|
390
389
|
tooltipMessage: "Strike",
|
|
391
390
|
onClick: this.onStrikethroughTextToggle
|
|
@@ -397,7 +396,7 @@ const at = {
|
|
|
397
396
|
{
|
|
398
397
|
showBtn: this.showAlignLeftButton,
|
|
399
398
|
selector: { textAlign: "left" },
|
|
400
|
-
icon:
|
|
399
|
+
icon: v,
|
|
401
400
|
dataQA: "dt-recipe-editor-align-left-btn",
|
|
402
401
|
tooltipMessage: "Align Left",
|
|
403
402
|
onClick: () => this.onTextAlign("left")
|
|
@@ -405,7 +404,7 @@ const at = {
|
|
|
405
404
|
{
|
|
406
405
|
showBtn: this.showAlignCenterButton,
|
|
407
406
|
selector: { textAlign: "center" },
|
|
408
|
-
icon:
|
|
407
|
+
icon: F,
|
|
409
408
|
dataQA: "dt-recipe-editor-align-center-btn",
|
|
410
409
|
tooltipMessage: "Align Center",
|
|
411
410
|
onClick: () => this.onTextAlign("center")
|
|
@@ -413,7 +412,7 @@ const at = {
|
|
|
413
412
|
{
|
|
414
413
|
showBtn: this.showAlignRightButton,
|
|
415
414
|
selector: { textAlign: "right" },
|
|
416
|
-
icon:
|
|
415
|
+
icon: S,
|
|
417
416
|
dataQA: "dt-recipe-editor-align-right-btn",
|
|
418
417
|
tooltipMessage: "Align Right",
|
|
419
418
|
onClick: () => this.onTextAlign("right")
|
|
@@ -421,7 +420,7 @@ const at = {
|
|
|
421
420
|
{
|
|
422
421
|
showBtn: this.showAlignJustifyButton,
|
|
423
422
|
selector: { textAlign: "justify" },
|
|
424
|
-
icon:
|
|
423
|
+
icon: O,
|
|
425
424
|
dataQA: "dt-recipe-editor-align-justify-btn",
|
|
426
425
|
tooltipMessage: "Align Justify",
|
|
427
426
|
onClick: () => this.onTextAlign("justify")
|
|
@@ -433,7 +432,7 @@ const at = {
|
|
|
433
432
|
{
|
|
434
433
|
showBtn: this.showListItemsButton,
|
|
435
434
|
selector: "bulletList",
|
|
436
|
-
icon:
|
|
435
|
+
icon: R,
|
|
437
436
|
dataQA: "dt-recipe-editor-list-items-btn",
|
|
438
437
|
tooltipMessage: "Bullet List",
|
|
439
438
|
onClick: this.onBulletListToggle
|
|
@@ -441,7 +440,7 @@ const at = {
|
|
|
441
440
|
{
|
|
442
441
|
showBtn: this.showOrderedListButton,
|
|
443
442
|
selector: "orderedList",
|
|
444
|
-
icon:
|
|
443
|
+
icon: E,
|
|
445
444
|
dataQA: "dt-recipe-editor-ordered-list-items-btn",
|
|
446
445
|
tooltipMessage: "Ordered List",
|
|
447
446
|
onClick: this.onOrderedListToggle
|
|
@@ -453,7 +452,7 @@ const at = {
|
|
|
453
452
|
{
|
|
454
453
|
showBtn: this.showQuoteButton,
|
|
455
454
|
selector: "blockquote",
|
|
456
|
-
icon:
|
|
455
|
+
icon: D,
|
|
457
456
|
dataQA: "dt-recipe-editor-blockquote-btn",
|
|
458
457
|
tooltipMessage: "Quote",
|
|
459
458
|
onClick: this.onBlockquoteToggle
|
|
@@ -469,7 +468,7 @@ const at = {
|
|
|
469
468
|
{
|
|
470
469
|
showBtn: this.showInlineImageButton,
|
|
471
470
|
selector: "image",
|
|
472
|
-
icon:
|
|
471
|
+
icon: q,
|
|
473
472
|
dataQA: "dt-recipe-editor-inline-image-btn",
|
|
474
473
|
tooltipMessage: "Image",
|
|
475
474
|
// Handle getting image
|
|
@@ -481,7 +480,7 @@ const at = {
|
|
|
481
480
|
return {
|
|
482
481
|
showBtn: this.showAddLink.showAddLinkButton,
|
|
483
482
|
selector: "link",
|
|
484
|
-
icon:
|
|
483
|
+
icon: M,
|
|
485
484
|
dataQA: "dt-recipe-editor-add-link-btn",
|
|
486
485
|
tooltipMessage: "Link",
|
|
487
486
|
onClick: this.openLinkInput
|
|
@@ -494,8 +493,8 @@ const at = {
|
|
|
494
493
|
}
|
|
495
494
|
},
|
|
496
495
|
methods: {
|
|
497
|
-
removeClassStyleAttrs:
|
|
498
|
-
addClassStyleAttrs:
|
|
496
|
+
removeClassStyleAttrs: X,
|
|
497
|
+
addClassStyleAttrs: Y,
|
|
499
498
|
onInputFocus(t) {
|
|
500
499
|
t == null || t.stopPropagation();
|
|
501
500
|
},
|
|
@@ -510,7 +509,7 @@ const at = {
|
|
|
510
509
|
this.removeLink();
|
|
511
510
|
return;
|
|
512
511
|
}
|
|
513
|
-
|
|
512
|
+
J.find((B) => B.test(this.linkInput)) || (this.linkInput = `${H}${this.linkInput}`);
|
|
514
513
|
const n = (d = (i = e == null ? void 0 : e.view) == null ? void 0 : i.state) == null ? void 0 : d.selection;
|
|
515
514
|
n.anchor === n.head ? e.chain().focus().insertContentAt(
|
|
516
515
|
n.anchor,
|
|
@@ -619,63 +618,61 @@ const at = {
|
|
|
619
618
|
this.shiftButtonRefIndex(-1);
|
|
620
619
|
},
|
|
621
620
|
shiftButtonRefIndex(t) {
|
|
622
|
-
const e = this
|
|
623
|
-
this.currentButtonRefIndex =
|
|
624
|
-
const
|
|
625
|
-
|
|
621
|
+
const e = this.$refs[this.orderedRefs[this.currentButtonRefIndex]], o = Array.isArray(e) ? e[0] : e, n = (this.currentButtonRefIndex + t) % this.orderedRefs.length;
|
|
622
|
+
this.currentButtonRefIndex = n >= 0 ? n : this.orderedRefs.length + n;
|
|
623
|
+
const r = this.$refs[this.orderedRefs[this.currentButtonRefIndex]], i = Array.isArray(r) ? r[0] : r;
|
|
624
|
+
o.$el.blur(), i.$el.focus();
|
|
626
625
|
}
|
|
627
626
|
}
|
|
628
|
-
},
|
|
629
|
-
function
|
|
630
|
-
const d = h("dt-button"),
|
|
631
|
-
return a(),
|
|
627
|
+
}, ut = /* @__PURE__ */ L("div", { class: "d-recipe-editor__button-group-divider" }, null, -1), at = { class: "d-recipe-editor__popover-content" }, ct = { key: 0 };
|
|
628
|
+
function dt(t, e, o, n, r, i) {
|
|
629
|
+
const d = h("dt-button"), B = h("dt-tooltip"), m = h("dt-stack"), z = h("dt-input"), N = h("dt-popover"), G = h("dt-rich-text-editor");
|
|
630
|
+
return a(), I("div", V({ class: "d-recipe-editor" }, i.addClassStyleAttrs(t.$attrs), {
|
|
632
631
|
"data-qa": "dt-recipe-editor",
|
|
633
632
|
role: "presentation",
|
|
634
633
|
onClick: e[4] || (e[4] = (l) => t.$refs.richTextEditor.focusEditor())
|
|
635
634
|
}), [
|
|
636
|
-
c(
|
|
635
|
+
c(m, {
|
|
637
636
|
class: "d-recipe-editor__top-bar",
|
|
638
637
|
direction: "row",
|
|
639
638
|
gap: "450"
|
|
640
639
|
}, {
|
|
641
640
|
default: u(() => [
|
|
642
|
-
(a(!0),
|
|
641
|
+
(a(!0), I(U, null, P(i.buttonGroups, (l) => (a(), p(m, {
|
|
643
642
|
key: l.key,
|
|
644
643
|
direction: "row",
|
|
645
644
|
gap: "300"
|
|
646
645
|
}, {
|
|
647
646
|
default: u(() => [
|
|
648
|
-
(a(!0),
|
|
647
|
+
(a(!0), I(U, null, P(l.buttonGroup, (s) => (a(), p(B, {
|
|
649
648
|
key: i.getButtonKey(l.key, s.selector),
|
|
650
649
|
message: s.tooltipMessage,
|
|
651
650
|
placement: "top"
|
|
652
651
|
}, {
|
|
653
652
|
anchor: u(() => {
|
|
654
|
-
var
|
|
653
|
+
var A, y;
|
|
655
654
|
return [
|
|
656
655
|
c(d, {
|
|
657
656
|
ref_for: !0,
|
|
658
|
-
ref: (
|
|
659
|
-
|
|
660
|
-
},
|
|
661
|
-
active: (T = (k = t.$refs.richTextEditor) == null ? void 0 : k.editor) == null ? void 0 : T.isActive(s.selector),
|
|
657
|
+
ref: i.getButtonRef(l.key, s.selector),
|
|
658
|
+
active: (y = (A = t.$refs.richTextEditor) == null ? void 0 : A.editor) == null ? void 0 : y.isActive(s.selector),
|
|
662
659
|
"aria-label": s.tooltipMessage,
|
|
663
660
|
"data-qa": s.dataQA,
|
|
664
661
|
tabindex: i.canFocus(i.getButtonRef(l.key, s.selector)) ? 0 : -1,
|
|
665
662
|
importance: "clear",
|
|
666
663
|
kind: "muted",
|
|
667
664
|
size: "xs",
|
|
668
|
-
onClick: (
|
|
665
|
+
onClick: (ht) => s.onClick(),
|
|
669
666
|
onKeydown: [
|
|
670
|
-
|
|
671
|
-
|
|
667
|
+
k(f(i.shiftActionBarFocusRight, ["stop"]), ["right"]),
|
|
668
|
+
k(f(i.shiftActionBarFocusLeft, ["stop"]), ["left"])
|
|
672
669
|
]
|
|
673
670
|
}, {
|
|
674
671
|
icon: u(() => [
|
|
675
|
-
(a(), p(
|
|
672
|
+
(a(), p(K(s.icon), { size: "200" }))
|
|
676
673
|
]),
|
|
677
674
|
default: u(() => [
|
|
678
|
-
|
|
675
|
+
w(" " + g(s == null ? void 0 : s.label), 1)
|
|
679
676
|
]),
|
|
680
677
|
_: 2
|
|
681
678
|
}, 1032, ["active", "aria-label", "data-qa", "tabindex", "onClick", "onKeydown"])
|
|
@@ -683,17 +680,17 @@ function pt(t, e, o, n, r, i) {
|
|
|
683
680
|
}),
|
|
684
681
|
_: 2
|
|
685
682
|
}, 1032, ["message"]))), 128)),
|
|
686
|
-
|
|
683
|
+
ut
|
|
687
684
|
]),
|
|
688
685
|
_: 2
|
|
689
686
|
}, 1024))), 128)),
|
|
690
|
-
i.linkButton.showBtn ? (a(), p(
|
|
687
|
+
i.linkButton.showBtn ? (a(), p(m, {
|
|
691
688
|
key: 0,
|
|
692
689
|
direction: "row",
|
|
693
690
|
gap: "300"
|
|
694
691
|
}, {
|
|
695
692
|
default: u(() => [
|
|
696
|
-
c(
|
|
693
|
+
c(N, {
|
|
697
694
|
open: r.showLinkInput,
|
|
698
695
|
"show-close-button": !1,
|
|
699
696
|
"visually-hidden-close": !0,
|
|
@@ -708,7 +705,7 @@ function pt(t, e, o, n, r, i) {
|
|
|
708
705
|
onOpened: i.updateInput
|
|
709
706
|
}, {
|
|
710
707
|
anchor: u(() => [
|
|
711
|
-
(a(), p(
|
|
708
|
+
(a(), p(B, {
|
|
712
709
|
key: i.linkButton.key,
|
|
713
710
|
message: i.linkButton.tooltipMessage,
|
|
714
711
|
placement: "top"
|
|
@@ -717,9 +714,7 @@ function pt(t, e, o, n, r, i) {
|
|
|
717
714
|
var l, s;
|
|
718
715
|
return [
|
|
719
716
|
c(d, {
|
|
720
|
-
ref: (
|
|
721
|
-
r.buttonRefMap[i.getButtonRef("custom", "link")] = k;
|
|
722
|
-
},
|
|
717
|
+
ref: i.getButtonRef("custom", "link"),
|
|
723
718
|
active: (s = (l = t.$refs.richTextEditor) == null ? void 0 : l.editor) == null ? void 0 : s.isActive(i.linkButton.selector),
|
|
724
719
|
"aria-label": i.linkButton.tooltipMessage,
|
|
725
720
|
"data-qa": i.linkButton.dataQA,
|
|
@@ -727,14 +722,14 @@ function pt(t, e, o, n, r, i) {
|
|
|
727
722
|
importance: "clear",
|
|
728
723
|
kind: "muted",
|
|
729
724
|
size: "xs",
|
|
730
|
-
onClick: e[0] || (e[0] = (
|
|
725
|
+
onClick: e[0] || (e[0] = (A) => i.linkButton.onClick()),
|
|
731
726
|
onKeydown: [
|
|
732
|
-
|
|
733
|
-
|
|
727
|
+
k(f(i.shiftActionBarFocusRight, ["stop"]), ["right"]),
|
|
728
|
+
k(f(i.shiftActionBarFocusLeft, ["stop"]), ["left"])
|
|
734
729
|
]
|
|
735
730
|
}, {
|
|
736
731
|
icon: u(() => [
|
|
737
|
-
(a(), p(
|
|
732
|
+
(a(), p(K(i.linkButton.icon), { size: "200" }))
|
|
738
733
|
]),
|
|
739
734
|
_: 1
|
|
740
735
|
}, 8, ["active", "aria-label", "data-qa", "tabindex", "onKeydown"])
|
|
@@ -744,9 +739,9 @@ function pt(t, e, o, n, r, i) {
|
|
|
744
739
|
}, 8, ["message"]))
|
|
745
740
|
]),
|
|
746
741
|
content: u(() => [
|
|
747
|
-
|
|
748
|
-
o.showAddLink.setLinkTitle.length > 0 ? (a(),
|
|
749
|
-
c(
|
|
742
|
+
L("div", at, [
|
|
743
|
+
o.showAddLink.setLinkTitle.length > 0 ? (a(), I("span", ct, g(o.showAddLink.setLinkTitle), 1)) : j("", !0),
|
|
744
|
+
c(z, {
|
|
750
745
|
modelValue: r.linkInput,
|
|
751
746
|
"onUpdate:modelValue": e[1] || (e[1] = (l) => r.linkInput = l),
|
|
752
747
|
"input-aria-label": o.showAddLink.setLinkInputAriaLabel,
|
|
@@ -758,12 +753,12 @@ function pt(t, e, o, n, r, i) {
|
|
|
758
753
|
f(i.onInputFocus, ["stop"])
|
|
759
754
|
],
|
|
760
755
|
onFocus: i.onInputFocus,
|
|
761
|
-
onKeydown:
|
|
756
|
+
onKeydown: k(i.setLink, ["enter"])
|
|
762
757
|
}, null, 8, ["modelValue", "input-aria-label", "placeholder", "onClick", "onFocus", "onKeydown"])
|
|
763
758
|
])
|
|
764
759
|
]),
|
|
765
760
|
footerContent: u(() => [
|
|
766
|
-
c(
|
|
761
|
+
c(m, {
|
|
767
762
|
direction: "row",
|
|
768
763
|
gap: "300",
|
|
769
764
|
class: "d-recipe-editor__popover-footer"
|
|
@@ -778,7 +773,7 @@ function pt(t, e, o, n, r, i) {
|
|
|
778
773
|
onClick: i.removeLink
|
|
779
774
|
}, {
|
|
780
775
|
default: u(() => [
|
|
781
|
-
|
|
776
|
+
w(g(o.removeLinkButton.label), 1)
|
|
782
777
|
]),
|
|
783
778
|
_: 1
|
|
784
779
|
}, 8, ["aria-label", "onClick"]),
|
|
@@ -791,7 +786,7 @@ function pt(t, e, o, n, r, i) {
|
|
|
791
786
|
onClick: i.closeLinkInput
|
|
792
787
|
}, {
|
|
793
788
|
default: u(() => [
|
|
794
|
-
|
|
789
|
+
w(g(o.cancelSetLinkButton.label), 1)
|
|
795
790
|
]),
|
|
796
791
|
_: 1
|
|
797
792
|
}, 8, ["aria-label", "onClick"]),
|
|
@@ -802,7 +797,7 @@ function pt(t, e, o, n, r, i) {
|
|
|
802
797
|
onClick: i.setLink
|
|
803
798
|
}, {
|
|
804
799
|
default: u(() => [
|
|
805
|
-
|
|
800
|
+
w(g(o.confirmSetLinkButton.label), 1)
|
|
806
801
|
]),
|
|
807
802
|
_: 1
|
|
808
803
|
}, 8, ["aria-label", "onClick"])
|
|
@@ -814,15 +809,15 @@ function pt(t, e, o, n, r, i) {
|
|
|
814
809
|
}, 8, ["open", "onClick", "onOpened"])
|
|
815
810
|
]),
|
|
816
811
|
_: 1
|
|
817
|
-
})) :
|
|
812
|
+
})) : j("", !0)
|
|
818
813
|
]),
|
|
819
814
|
_: 1
|
|
820
815
|
}),
|
|
821
|
-
|
|
822
|
-
style:
|
|
816
|
+
L("div", {
|
|
817
|
+
style: W({ "max-height": o.maxHeight }),
|
|
823
818
|
class: "d-recipe-editor__content"
|
|
824
819
|
}, [
|
|
825
|
-
c(
|
|
820
|
+
c(G, V({
|
|
826
821
|
ref: "richTextEditor",
|
|
827
822
|
modelValue: r.internalInputValue,
|
|
828
823
|
"onUpdate:modelValue": e[2] || (e[2] = (l) => r.internalInputValue = l),
|
|
@@ -849,8 +844,8 @@ function pt(t, e, o, n, r, i) {
|
|
|
849
844
|
], 4)
|
|
850
845
|
], 16);
|
|
851
846
|
}
|
|
852
|
-
const
|
|
847
|
+
const bt = /* @__PURE__ */ Z(st, [["render", dt]]);
|
|
853
848
|
export {
|
|
854
|
-
|
|
849
|
+
bt as default
|
|
855
850
|
};
|
|
856
851
|
//# sourceMappingURL=editor.js.map
|