@dialpad/dialtone 9.167.0 → 9.169.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 +6 -0
- package/dist/css/dialtone-default-theme.min.css +1 -1
- package/dist/css/dialtone.css +6 -0
- package/dist/css/dialtone.min.css +1 -1
- package/dist/tokens/doc.json +85072 -85072
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/lib/button/button.cjs +1 -1
- package/dist/vue3/lib/button/button.cjs.map +1 -1
- package/dist/vue3/lib/button/button.js +56 -44
- package/dist/vue3/lib/button/button.js.map +1 -1
- package/dist/vue3/lib/editor/EditorToolbarButton.cjs +1 -1
- package/dist/vue3/lib/editor/EditorToolbarButton.cjs.map +1 -1
- package/dist/vue3/lib/editor/EditorToolbarButton.js +18 -17
- package/dist/vue3/lib/editor/EditorToolbarButton.js.map +1 -1
- package/dist/vue3/lib/editor/EditorToolbarDropdownButton.cjs +1 -1
- package/dist/vue3/lib/editor/EditorToolbarDropdownButton.cjs.map +1 -1
- package/dist/vue3/lib/editor/EditorToolbarDropdownButton.js +38 -35
- package/dist/vue3/lib/editor/EditorToolbarDropdownButton.js.map +1 -1
- package/dist/vue3/lib/editor/EditorToolbarPopoverButton.cjs +1 -1
- package/dist/vue3/lib/editor/EditorToolbarPopoverButton.cjs.map +1 -1
- package/dist/vue3/lib/editor/EditorToolbarPopoverButton.js +38 -35
- package/dist/vue3/lib/editor/EditorToolbarPopoverButton.js.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 +114 -106
- package/dist/vue3/lib/editor/editor.js.map +1 -1
- package/dist/vue3/lib/hovercard/hovercard.cjs +1 -1
- package/dist/vue3/lib/hovercard/hovercard.cjs.map +1 -1
- package/dist/vue3/lib/hovercard/hovercard.js +37 -28
- package/dist/vue3/lib/hovercard/hovercard.js.map +1 -1
- package/dist/vue3/lib/popover/popover.cjs +1 -1
- package/dist/vue3/lib/popover/popover.cjs.map +1 -1
- package/dist/vue3/lib/popover/popover.js +16 -4
- package/dist/vue3/lib/popover/popover.js.map +1 -1
- package/dist/vue3/types/common/sr_only_close_button.vue.d.ts +27 -1
- package/dist/vue3/types/components/banner/banner.vue.d.ts +54 -2
- package/dist/vue3/types/components/banner/banner.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/button/button.vue.d.ts +27 -1
- package/dist/vue3/types/components/button/button.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/chip/chip.vue.d.ts +27 -1
- package/dist/vue3/types/components/chip/chip.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/collapsible/collapsible.vue.d.ts +27 -1
- package/dist/vue3/types/components/collapsible/collapsible.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/dropdown/dropdown.vue.d.ts +69 -2
- package/dist/vue3/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts +140 -4
- package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts +54 -2
- package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/modal/modal.vue.d.ts +54 -2
- package/dist/vue3/types/components/modal/modal.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/notice/notice.vue.d.ts +54 -2
- package/dist/vue3/types/components/notice/notice.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/notice/notice_action.vue.d.ts +54 -2
- package/dist/vue3/types/components/notice/notice_action.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/pagination/pagination.vue.d.ts +27 -1
- package/dist/vue3/types/components/pagination/pagination.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/popover/popover.vue.d.ts +69 -2
- package/dist/vue3/types/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts +27 -1
- package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts +96 -3
- package/dist/vue3/types/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/split_button/split_button-alpha.vue.d.ts +27 -1
- package/dist/vue3/types/components/split_button/split_button-omega.vue.d.ts +27 -1
- package/dist/vue3/types/components/split_button/split_button-omega.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/split_button/split_button.vue.d.ts +123 -4
- package/dist/vue3/types/components/split_button/split_button.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/tab/tab.vue.d.ts +27 -1
- package/dist/vue3/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +54 -2
- package/dist/vue3/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/toast/layouts/toast_layout_default.vue.d.ts +54 -2
- package/dist/vue3/types/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/toast/toast.vue.d.ts +216 -8
- package/dist/vue3/types/components/toast/toast.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +123 -4
- package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +123 -4
- package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +96 -3
- package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +69 -2
- package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +108 -4
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +81 -3
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/editor/EditorToolbarButton.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/conversation_view/editor/EditorToolbarDropdownButton.vue.d.ts +96 -3
- package/dist/vue3/types/recipes/conversation_view/editor/EditorToolbarDropdownButton.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/editor/EditorToolbarPopoverButton.vue.d.ts +96 -3
- package/dist/vue3/types/recipes/conversation_view/editor/EditorToolbarPopoverButton.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +123 -4
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts +27 -1
- package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { EDITOR_DEFAULT_FONT_COLOR as
|
|
2
|
-
import { addClassStyleAttrs as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { DtIconStopFilled as
|
|
7
|
-
import { DialtoneLocalization as
|
|
8
|
-
import { resolveComponent as p, resolveDirective as
|
|
9
|
-
import { _ as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { RICH_TEXT_EDITOR_OUTPUT_FORMATS as
|
|
21
|
-
const
|
|
1
|
+
import { EDITOR_DEFAULT_FONT_COLOR as H, EDITOR_SUPPORTED_LINK_PROTOCOLS as _t, EDITOR_DEFAULT_LINK_PREFIX as It } from "./editor-constants.js";
|
|
2
|
+
import { addClassStyleAttrs as Lt, removeClassStyleAttrs as At } from "../../common/utils/index.js";
|
|
3
|
+
import yt from "./EditorToolbarButton.js";
|
|
4
|
+
import Et from "./EditorToolbarDropdownButton.js";
|
|
5
|
+
import wt from "./EditorToolbarPopoverButton.js";
|
|
6
|
+
import { DtIconStopFilled as J, DtIconFontSize as Y, DtIconChevronDown as bt, DtIconBraces as j, DtIconType as G, DtIconSearch as Ct, DtIconImage as X, DtIconLink2 as Z, DtIconCodeBlock as W, DtIconQuote as $, DtIconAlignJustify as tt, DtIconAlignRight as et, DtIconAlignCenter as ot, DtIconAlignLeft as it, DtIconListOrdered as nt, DtIconListBullet as rt, DtIconStrikethrough as lt, DtIconUnderline as st, DtIconItalic as at, DtIconBold as ut, DtIconQuickReply as ct } from "@dialpad/dialtone-icons/vue3";
|
|
7
|
+
import { DialtoneLocalization as Ot } from "../../localization/index.js";
|
|
8
|
+
import { resolveComponent as p, resolveDirective as Rt, openBlock as u, createElementBlock as T, mergeProps as B, createVNode as d, withCtx as a, Fragment as k, renderList as y, createBlock as f, createElementVNode as _, normalizeStyle as O, createTextVNode as w, toDisplayString as I, withDirectives as xt, withKeys as b, withModifiers as L, resolveDynamicComponent as dt, createCommentVNode as D, normalizeClass as Ft } from "vue";
|
|
9
|
+
import { _ as Dt } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
import St from "../combobox/combobox.js";
|
|
11
|
+
import vt from "../tooltip/tooltip.js";
|
|
12
|
+
import Nt from "../input/input.js";
|
|
13
|
+
import Ut from "../stack/stack.js";
|
|
14
|
+
import Vt from "../popover/popover.js";
|
|
15
|
+
import zt from "../button/button.js";
|
|
16
|
+
import Qt from "../rich-text-editor/rich-text-editor.js";
|
|
17
|
+
import Mt from "../list-item/list-item.js";
|
|
18
|
+
import qt from "../dropdown/dropdown-separator.js";
|
|
19
|
+
import Pt from "../list-item-group/list-item-group.js";
|
|
20
|
+
import { RICH_TEXT_EDITOR_OUTPUT_FORMATS as Kt, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Ht } from "../rich-text-editor/rich-text-editor-constants.js";
|
|
21
|
+
const Jt = {
|
|
22
22
|
compatConfig: { MODE: 3 },
|
|
23
23
|
name: "DtRecipeEditor",
|
|
24
24
|
components: {
|
|
25
|
-
DtListItemGroup:
|
|
26
|
-
DtDropdownSeparator:
|
|
27
|
-
DtListItem:
|
|
28
|
-
DtRichTextEditor:
|
|
29
|
-
DtButton:
|
|
30
|
-
DtPopover:
|
|
31
|
-
DtStack:
|
|
32
|
-
DtInput:
|
|
33
|
-
DtTooltip:
|
|
34
|
-
DtCombobox:
|
|
35
|
-
EditorToolbarButton:
|
|
36
|
-
EditorToolbarDropdownButton:
|
|
37
|
-
EditorToolbarPopoverButton:
|
|
38
|
-
DtIconQuickReply:
|
|
39
|
-
DtIconBold:
|
|
40
|
-
DtIconItalic:
|
|
41
|
-
DtIconUnderline:
|
|
42
|
-
DtIconStrikethrough:
|
|
43
|
-
DtIconListBullet:
|
|
44
|
-
DtIconListOrdered:
|
|
45
|
-
DtIconAlignLeft:
|
|
46
|
-
DtIconAlignCenter:
|
|
47
|
-
DtIconAlignRight:
|
|
48
|
-
DtIconAlignJustify:
|
|
49
|
-
DtIconQuote:
|
|
50
|
-
DtIconCodeBlock:
|
|
51
|
-
DtIconLink2:
|
|
52
|
-
DtIconImage:
|
|
53
|
-
DtIconSearch:
|
|
54
|
-
DtIconType:
|
|
55
|
-
DtIconBraces:
|
|
56
|
-
DtIconChevronDown:
|
|
57
|
-
DtIconFontSize:
|
|
58
|
-
DtIconStopFilled:
|
|
25
|
+
DtListItemGroup: Pt,
|
|
26
|
+
DtDropdownSeparator: qt,
|
|
27
|
+
DtListItem: Mt,
|
|
28
|
+
DtRichTextEditor: Qt,
|
|
29
|
+
DtButton: zt,
|
|
30
|
+
DtPopover: Vt,
|
|
31
|
+
DtStack: Ut,
|
|
32
|
+
DtInput: Nt,
|
|
33
|
+
DtTooltip: vt,
|
|
34
|
+
DtCombobox: St,
|
|
35
|
+
EditorToolbarButton: yt,
|
|
36
|
+
EditorToolbarDropdownButton: Et,
|
|
37
|
+
EditorToolbarPopoverButton: wt,
|
|
38
|
+
DtIconQuickReply: ct,
|
|
39
|
+
DtIconBold: ut,
|
|
40
|
+
DtIconItalic: at,
|
|
41
|
+
DtIconUnderline: st,
|
|
42
|
+
DtIconStrikethrough: lt,
|
|
43
|
+
DtIconListBullet: rt,
|
|
44
|
+
DtIconListOrdered: nt,
|
|
45
|
+
DtIconAlignLeft: it,
|
|
46
|
+
DtIconAlignCenter: ot,
|
|
47
|
+
DtIconAlignRight: et,
|
|
48
|
+
DtIconAlignJustify: tt,
|
|
49
|
+
DtIconQuote: $,
|
|
50
|
+
DtIconCodeBlock: W,
|
|
51
|
+
DtIconLink2: Z,
|
|
52
|
+
DtIconImage: X,
|
|
53
|
+
DtIconSearch: Ct,
|
|
54
|
+
DtIconType: G,
|
|
55
|
+
DtIconBraces: j,
|
|
56
|
+
DtIconChevronDown: bt,
|
|
57
|
+
DtIconFontSize: Y,
|
|
58
|
+
DtIconStopFilled: J
|
|
59
59
|
},
|
|
60
60
|
mixins: [],
|
|
61
61
|
inheritAttrs: !1,
|
|
@@ -107,7 +107,7 @@ const Ht = {
|
|
|
107
107
|
type: [Boolean, String, Number],
|
|
108
108
|
default: !1,
|
|
109
109
|
validator(t) {
|
|
110
|
-
return typeof t == "string" ?
|
|
110
|
+
return typeof t == "string" ? Ht.includes(t) : !0;
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
/**
|
|
@@ -390,7 +390,7 @@ const Ht = {
|
|
|
390
390
|
linkInput: "",
|
|
391
391
|
currentButtonRefIndex: 0,
|
|
392
392
|
variableSearchValue: "",
|
|
393
|
-
i18n: new
|
|
393
|
+
i18n: new Ot()
|
|
394
394
|
};
|
|
395
395
|
},
|
|
396
396
|
computed: {
|
|
@@ -398,7 +398,7 @@ const Ht = {
|
|
|
398
398
|
return this.internalInputValue.length;
|
|
399
399
|
},
|
|
400
400
|
htmlOutputFormat() {
|
|
401
|
-
return
|
|
401
|
+
return Kt[2];
|
|
402
402
|
},
|
|
403
403
|
flattenedVariableItems() {
|
|
404
404
|
return this.variableCategories ? this.variableCategories.reduce((t, o) => t.concat(o.items || []), []) : [];
|
|
@@ -440,7 +440,7 @@ const Ht = {
|
|
|
440
440
|
buttonType: "button",
|
|
441
441
|
label: this.i18n.$t("DIALTONE_EDITOR_QUICK_REPLY_BUTTON_LABEL"),
|
|
442
442
|
selector: "quickReplies",
|
|
443
|
-
icon:
|
|
443
|
+
icon: ct,
|
|
444
444
|
dataQA: "dt-recipe-editor-quick-replies-btn",
|
|
445
445
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_QUICK_REPLY_BUTTON_LABEL"),
|
|
446
446
|
onClick: this.onQuickRepliesClick
|
|
@@ -453,7 +453,7 @@ const Ht = {
|
|
|
453
453
|
showBtn: this.showFontStyleButton,
|
|
454
454
|
buttonType: "popover",
|
|
455
455
|
selector: "fontStyle",
|
|
456
|
-
icon:
|
|
456
|
+
icon: G,
|
|
457
457
|
dataQA: "dt-recipe-editor-font-style-btn",
|
|
458
458
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_FONT_STYLE_BUTTON_LABEL")
|
|
459
459
|
},
|
|
@@ -461,7 +461,7 @@ const Ht = {
|
|
|
461
461
|
showBtn: this.showFontSizeButton,
|
|
462
462
|
buttonType: "popover",
|
|
463
463
|
selector: "fontSize",
|
|
464
|
-
icon:
|
|
464
|
+
icon: Y,
|
|
465
465
|
dataQA: "dt-recipe-editor-font-size-btn",
|
|
466
466
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_FONT_SIZE_BUTTON_LABEL")
|
|
467
467
|
},
|
|
@@ -469,7 +469,7 @@ const Ht = {
|
|
|
469
469
|
showBtn: this.showFontColorButton,
|
|
470
470
|
buttonType: "custom",
|
|
471
471
|
selector: "fontColor",
|
|
472
|
-
icon:
|
|
472
|
+
icon: J,
|
|
473
473
|
dataQA: "dt-recipe-editor-font-color-btn",
|
|
474
474
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_FONT_COLOR_BUTTON_LABEL"),
|
|
475
475
|
onClick: this.onColorPickerButtonClick
|
|
@@ -478,7 +478,7 @@ const Ht = {
|
|
|
478
478
|
showBtn: this.showBoldButton,
|
|
479
479
|
buttonType: "button",
|
|
480
480
|
selector: "bold",
|
|
481
|
-
icon:
|
|
481
|
+
icon: ut,
|
|
482
482
|
dataQA: "dt-recipe-editor-bold-btn",
|
|
483
483
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_BOLD_BUTTON_LABEL"),
|
|
484
484
|
onClick: this.onBoldTextToggle
|
|
@@ -487,7 +487,7 @@ const Ht = {
|
|
|
487
487
|
showBtn: this.showItalicsButton,
|
|
488
488
|
buttonType: "button",
|
|
489
489
|
selector: "italic",
|
|
490
|
-
icon:
|
|
490
|
+
icon: at,
|
|
491
491
|
dataQA: "dt-recipe-editor-italics-btn",
|
|
492
492
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_ITALICS_BUTTON_LABEL"),
|
|
493
493
|
onClick: this.onItalicTextToggle
|
|
@@ -496,7 +496,7 @@ const Ht = {
|
|
|
496
496
|
showBtn: this.showUnderlineButton,
|
|
497
497
|
buttonType: "button",
|
|
498
498
|
selector: "underline",
|
|
499
|
-
icon:
|
|
499
|
+
icon: st,
|
|
500
500
|
dataQA: "dt-recipe-editor-underline-btn",
|
|
501
501
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_UNDERLINE_BUTTON_LABEL"),
|
|
502
502
|
onClick: this.onUnderlineTextToggle
|
|
@@ -505,7 +505,7 @@ const Ht = {
|
|
|
505
505
|
showBtn: this.showStrikeButton,
|
|
506
506
|
buttonType: "button",
|
|
507
507
|
selector: "strike",
|
|
508
|
-
icon:
|
|
508
|
+
icon: lt,
|
|
509
509
|
dataQA: "dt-recipe-editor-strike-btn",
|
|
510
510
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_STRIKE_BUTTON_LABEL"),
|
|
511
511
|
onClick: this.onStrikethroughTextToggle
|
|
@@ -518,7 +518,7 @@ const Ht = {
|
|
|
518
518
|
showBtn: this.showAlignLeftButton,
|
|
519
519
|
buttonType: "button",
|
|
520
520
|
selector: { textAlign: "left" },
|
|
521
|
-
icon:
|
|
521
|
+
icon: it,
|
|
522
522
|
dataQA: "dt-recipe-editor-align-left-btn",
|
|
523
523
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_ALIGN_LEFT_BUTTON_LABEL"),
|
|
524
524
|
onClick: () => this.onTextAlign("left")
|
|
@@ -527,7 +527,7 @@ const Ht = {
|
|
|
527
527
|
showBtn: this.showAlignCenterButton,
|
|
528
528
|
buttonType: "button",
|
|
529
529
|
selector: { textAlign: "center" },
|
|
530
|
-
icon:
|
|
530
|
+
icon: ot,
|
|
531
531
|
dataQA: "dt-recipe-editor-align-center-btn",
|
|
532
532
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_ALIGN_CENTER_BUTTON_LABEL"),
|
|
533
533
|
onClick: () => this.onTextAlign("center")
|
|
@@ -536,7 +536,7 @@ const Ht = {
|
|
|
536
536
|
showBtn: this.showAlignRightButton,
|
|
537
537
|
buttonType: "button",
|
|
538
538
|
selector: { textAlign: "right" },
|
|
539
|
-
icon:
|
|
539
|
+
icon: et,
|
|
540
540
|
dataQA: "dt-recipe-editor-align-right-btn",
|
|
541
541
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_ALIGN_RIGHT_BUTTON_LABEL"),
|
|
542
542
|
onClick: () => this.onTextAlign("right")
|
|
@@ -545,7 +545,7 @@ const Ht = {
|
|
|
545
545
|
showBtn: this.showAlignJustifyButton,
|
|
546
546
|
buttonType: "button",
|
|
547
547
|
selector: { textAlign: "justify" },
|
|
548
|
-
icon:
|
|
548
|
+
icon: tt,
|
|
549
549
|
dataQA: "dt-recipe-editor-align-justify-btn",
|
|
550
550
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_ALIGN_JUSTIFY_BUTTON_LABEL"),
|
|
551
551
|
onClick: () => this.onTextAlign("justify")
|
|
@@ -558,7 +558,7 @@ const Ht = {
|
|
|
558
558
|
showBtn: this.showListItemsButton,
|
|
559
559
|
buttonType: "button",
|
|
560
560
|
selector: "bulletList",
|
|
561
|
-
icon:
|
|
561
|
+
icon: rt,
|
|
562
562
|
dataQA: "dt-recipe-editor-list-items-btn",
|
|
563
563
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_BULLET_LIST_BUTTON_LABEL"),
|
|
564
564
|
onClick: this.onBulletListToggle
|
|
@@ -567,7 +567,7 @@ const Ht = {
|
|
|
567
567
|
showBtn: this.showOrderedListButton,
|
|
568
568
|
buttonType: "button",
|
|
569
569
|
selector: "orderedList",
|
|
570
|
-
icon:
|
|
570
|
+
icon: nt,
|
|
571
571
|
dataQA: "dt-recipe-editor-ordered-list-items-btn",
|
|
572
572
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_ORDERED_LIST_BUTTON_LABEL"),
|
|
573
573
|
onClick: this.onOrderedListToggle
|
|
@@ -580,7 +580,7 @@ const Ht = {
|
|
|
580
580
|
showBtn: this.showQuoteButton,
|
|
581
581
|
buttonType: "button",
|
|
582
582
|
selector: "blockquote",
|
|
583
|
-
icon:
|
|
583
|
+
icon: $,
|
|
584
584
|
dataQA: "dt-recipe-editor-blockquote-btn",
|
|
585
585
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_QUOTE_BUTTON_LABEL"),
|
|
586
586
|
onClick: this.onBlockquoteToggle
|
|
@@ -589,7 +589,7 @@ const Ht = {
|
|
|
589
589
|
showBtn: this.showCodeBlockButton,
|
|
590
590
|
buttonType: "button",
|
|
591
591
|
selector: "codeBlock",
|
|
592
|
-
icon:
|
|
592
|
+
icon: W,
|
|
593
593
|
dataQA: "dt-recipe-editor-code-block-btn",
|
|
594
594
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_CODE_BUTTON_LABEL"),
|
|
595
595
|
onClick: this.onCodeBlockToggle
|
|
@@ -598,7 +598,7 @@ const Ht = {
|
|
|
598
598
|
showBtn: this.showInlineImageButton,
|
|
599
599
|
buttonType: "button",
|
|
600
600
|
selector: "image",
|
|
601
|
-
icon:
|
|
601
|
+
icon: X,
|
|
602
602
|
dataQA: "dt-recipe-editor-inline-image-btn",
|
|
603
603
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_IMAGE_BUTTON_LABEL"),
|
|
604
604
|
// Handle getting image
|
|
@@ -608,7 +608,7 @@ const Ht = {
|
|
|
608
608
|
showBtn: this.showVariableButton,
|
|
609
609
|
buttonType: "popover",
|
|
610
610
|
selector: "variable",
|
|
611
|
-
icon:
|
|
611
|
+
icon: j,
|
|
612
612
|
dataQA: "dt-recipe-editor-variable-btn",
|
|
613
613
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_VARIABLE_BUTTON_LABEL")
|
|
614
614
|
}
|
|
@@ -619,7 +619,7 @@ const Ht = {
|
|
|
619
619
|
showBtn: this.showAddLink.showAddLinkButton,
|
|
620
620
|
buttonType: "custom",
|
|
621
621
|
selector: "link",
|
|
622
|
-
icon:
|
|
622
|
+
icon: Z,
|
|
623
623
|
dataQA: "dt-recipe-editor-add-link-btn",
|
|
624
624
|
tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_LINK_BUTTON_LABEL"),
|
|
625
625
|
onClick: this.openLinkInput
|
|
@@ -649,10 +649,11 @@ const Ht = {
|
|
|
649
649
|
);
|
|
650
650
|
},
|
|
651
651
|
colorPickerInput() {
|
|
652
|
-
|
|
652
|
+
var t;
|
|
653
|
+
return (t = this.$refs.editorRoot) == null ? void 0 : t.querySelector(".colorPickerInput");
|
|
653
654
|
},
|
|
654
655
|
isDefaultFontColor() {
|
|
655
|
-
return this.currentFontColor ===
|
|
656
|
+
return this.currentFontColor === H;
|
|
656
657
|
},
|
|
657
658
|
actionBarBtn() {
|
|
658
659
|
var o, i;
|
|
@@ -666,8 +667,8 @@ const Ht = {
|
|
|
666
667
|
}
|
|
667
668
|
},
|
|
668
669
|
methods: {
|
|
669
|
-
removeClassStyleAttrs:
|
|
670
|
-
addClassStyleAttrs:
|
|
670
|
+
removeClassStyleAttrs: At,
|
|
671
|
+
addClassStyleAttrs: Lt,
|
|
671
672
|
onInputFocus(t) {
|
|
672
673
|
t == null || t.stopPropagation();
|
|
673
674
|
},
|
|
@@ -682,7 +683,7 @@ const Ht = {
|
|
|
682
683
|
this.removeLink();
|
|
683
684
|
return;
|
|
684
685
|
}
|
|
685
|
-
|
|
686
|
+
_t.find((A) => A.test(this.linkInput)) || (this.linkInput = `${It}${this.linkInput}`);
|
|
686
687
|
const l = (g = (e = o == null ? void 0 : o.view) == null ? void 0 : e.state) == null ? void 0 : g.selection;
|
|
687
688
|
l.anchor === l.head ? o.chain().focus().insertContentAt(
|
|
688
689
|
l.anchor,
|
|
@@ -832,7 +833,7 @@ const Ht = {
|
|
|
832
833
|
},
|
|
833
834
|
updateFontColorInput() {
|
|
834
835
|
var t, o, i;
|
|
835
|
-
this.currentFontColor = ((i = (o = (t = this.$refs.richTextEditor) == null ? void 0 : t.editor) == null ? void 0 : o.getAttributes("textStyle")) == null ? void 0 : i.color) ||
|
|
836
|
+
this.currentFontColor = ((i = (o = (t = this.$refs.richTextEditor) == null ? void 0 : t.editor) == null ? void 0 : o.getAttributes("textStyle")) == null ? void 0 : i.color) || H;
|
|
836
837
|
},
|
|
837
838
|
onColorPickerButtonClick() {
|
|
838
839
|
var t;
|
|
@@ -843,10 +844,13 @@ const Ht = {
|
|
|
843
844
|
(i = (o = this.$refs.richTextEditor) == null ? void 0 : o.editor) == null || i.chain().focus().setColor(t).run(), (r = (l = this.$refs.richTextEditor) == null ? void 0 : l.editor) == null || r.commands.focus(), this.updateFontColorInput();
|
|
844
845
|
}
|
|
845
846
|
}
|
|
846
|
-
},
|
|
847
|
-
function
|
|
848
|
-
const g = p("dt-icon-search"), A = p("dt-input"), R = p("dt-list-item"), S = p("dt-combobox"), v = p("editor-toolbar-popover-button"),
|
|
849
|
-
return u(), T("div", B({
|
|
847
|
+
}, Yt = { class: "d-recipe-editor__popover-content" };
|
|
848
|
+
function jt(t, o, i, l, r, e) {
|
|
849
|
+
const g = p("dt-icon-search"), A = p("dt-input"), R = p("dt-list-item"), S = p("dt-combobox"), v = p("editor-toolbar-popover-button"), ht = p("editor-toolbar-dropdown-button"), E = p("dt-button"), ft = p("dt-dropdown-separator"), pt = p("dt-list-item-group"), Bt = p("editor-toolbar-button"), C = p("dt-stack"), gt = p("dt-tooltip"), mt = p("dt-popover"), Tt = p("dt-rich-text-editor"), kt = Rt("dt-tooltip");
|
|
850
|
+
return u(), T("div", B({
|
|
851
|
+
ref: "editorRoot",
|
|
852
|
+
class: "d-recipe-editor"
|
|
853
|
+
}, e.addClassStyleAttrs(t.$attrs), {
|
|
850
854
|
"data-qa": "dt-recipe-editor",
|
|
851
855
|
role: "presentation",
|
|
852
856
|
onClick: o[7] || (o[7] = (s) => t.$refs.richTextEditor.focusEditor())
|
|
@@ -864,7 +868,7 @@ function Yt(t, o, i, l, r, e) {
|
|
|
864
868
|
}, {
|
|
865
869
|
default: a(() => [
|
|
866
870
|
(u(!0), T(k, null, y(s.buttonGroup, (n) => {
|
|
867
|
-
var x, N, U, V, z, Q, M, q;
|
|
871
|
+
var x, N, U, V, z, Q, M, q, P;
|
|
868
872
|
return u(), T(k, null, [
|
|
869
873
|
n.buttonType === "popover" && n.selector === "fontStyle" ? (u(), f(v, {
|
|
870
874
|
key: e.getButtonKey(s.key, n.selector),
|
|
@@ -911,7 +915,7 @@ function Yt(t, o, i, l, r, e) {
|
|
|
911
915
|
style: O({ fontFamily: c.value || "inherit" }),
|
|
912
916
|
role: "option",
|
|
913
917
|
"navigation-type": "arrow-keys",
|
|
914
|
-
onClick: (
|
|
918
|
+
onClick: (K) => {
|
|
915
919
|
m(), e.onFontStyleSelect(c.value);
|
|
916
920
|
}
|
|
917
921
|
}, {
|
|
@@ -926,7 +930,7 @@ function Yt(t, o, i, l, r, e) {
|
|
|
926
930
|
}, 1032, ["onEscape"])
|
|
927
931
|
]),
|
|
928
932
|
_: 1
|
|
929
|
-
}, 8, ["is-active", "tooltip-message", "data-qa", "tabindex", "icon", "onShiftFocusRight", "onShiftFocusLeft"])) : n.buttonType === "popover" && n.selector === "fontSize" ? (u(), f(
|
|
933
|
+
}, 8, ["is-active", "tooltip-message", "data-qa", "tabindex", "icon", "onShiftFocusRight", "onShiftFocusLeft"])) : n.buttonType === "popover" && n.selector === "fontSize" ? (u(), f(ht, {
|
|
930
934
|
key: e.getButtonKey(s.key, n.selector),
|
|
931
935
|
ref_for: !0,
|
|
932
936
|
ref: e.getButtonRef(s.key, n.selector),
|
|
@@ -958,7 +962,7 @@ function Yt(t, o, i, l, r, e) {
|
|
|
958
962
|
}, 1032, ["selected", "onClick"]))), 128))
|
|
959
963
|
]),
|
|
960
964
|
_: 1
|
|
961
|
-
}, 8, ["is-active", "tooltip-message", "data-qa", "tabindex", "icon", "onShiftFocusRight", "onShiftFocusLeft"])) : n.buttonType === "custom" && n.selector === "fontColor" ?
|
|
965
|
+
}, 8, ["is-active", "tooltip-message", "data-qa", "tabindex", "icon", "onShiftFocusRight", "onShiftFocusLeft"])) : n.buttonType === "custom" && n.selector === "fontColor" ? xt((u(), f(E, {
|
|
962
966
|
key: e.getButtonKey(s.key, n.selector),
|
|
963
967
|
ref_for: !0,
|
|
964
968
|
ref: e.getButtonRef(s.key, n.selector),
|
|
@@ -976,7 +980,7 @@ function Yt(t, o, i, l, r, e) {
|
|
|
976
980
|
onClick: (m) => n.onClick()
|
|
977
981
|
}, {
|
|
978
982
|
icon: a(() => [
|
|
979
|
-
(u(), f(
|
|
983
|
+
(u(), f(dt(n.icon), {
|
|
980
984
|
size: "200",
|
|
981
985
|
style: O(e.isDefaultFontColor ? {} : { color: r.currentFontColor })
|
|
982
986
|
}, null, 8, ["style"])),
|
|
@@ -994,7 +998,11 @@ function Yt(t, o, i, l, r, e) {
|
|
|
994
998
|
]),
|
|
995
999
|
_: 2
|
|
996
1000
|
}, 1032, ["active", "tabindex", "aria-label", "data-qa", "onKeydown", "onClick"])), [
|
|
997
|
-
[
|
|
1001
|
+
[kt, {
|
|
1002
|
+
message: n.tooltipMessage,
|
|
1003
|
+
placement: "top",
|
|
1004
|
+
externalAnchorElement: (M = t.$refs[e.getButtonRef(s.key, n.selector)]) == null ? void 0 : M.$el
|
|
1005
|
+
}]
|
|
998
1006
|
]) : n.buttonType === "popover" && n.selector === "variable" ? (u(), f(v, {
|
|
999
1007
|
key: e.getButtonKey(s.key, n.selector),
|
|
1000
1008
|
ref_for: !0,
|
|
@@ -1034,7 +1042,7 @@ function Yt(t, o, i, l, r, e) {
|
|
|
1034
1042
|
]),
|
|
1035
1043
|
list: a(({ listProps: h }) => [
|
|
1036
1044
|
_("div", B({ ref_for: !0 }, h), [
|
|
1037
|
-
(u(!0), T(k, null, y(e.filteredCategories, (c,
|
|
1045
|
+
(u(!0), T(k, null, y(e.filteredCategories, (c, K) => (u(), f(pt, {
|
|
1038
1046
|
key: c.name,
|
|
1039
1047
|
heading: c.name,
|
|
1040
1048
|
"heading-class": "d-headline--sm-compact d-p8"
|
|
@@ -1044,7 +1052,7 @@ function Yt(t, o, i, l, r, e) {
|
|
|
1044
1052
|
key: c.name + F.name,
|
|
1045
1053
|
role: "option",
|
|
1046
1054
|
"navigation-type": "arrow-keys",
|
|
1047
|
-
onClick: (
|
|
1055
|
+
onClick: (Gt) => {
|
|
1048
1056
|
e.insertVariable(c.name, F), m();
|
|
1049
1057
|
}
|
|
1050
1058
|
}, {
|
|
@@ -1053,7 +1061,7 @@ function Yt(t, o, i, l, r, e) {
|
|
|
1053
1061
|
]),
|
|
1054
1062
|
_: 2
|
|
1055
1063
|
}, 1032, ["onClick"]))), 128)),
|
|
1056
|
-
|
|
1064
|
+
K < e.filteredCategories.length - 1 ? (u(), f(ft, { key: 0 })) : D("", !0)
|
|
1057
1065
|
]),
|
|
1058
1066
|
_: 2
|
|
1059
1067
|
}, 1032, ["heading"]))), 128))
|
|
@@ -1063,11 +1071,11 @@ function Yt(t, o, i, l, r, e) {
|
|
|
1063
1071
|
}, 1032, ["onEscape"])
|
|
1064
1072
|
]),
|
|
1065
1073
|
_: 1
|
|
1066
|
-
}, 8, ["tooltip-message", "data-qa", "tabindex", "icon", "onShiftFocusRight", "onShiftFocusLeft"])) : n.buttonType === "button" ? (u(), f(
|
|
1074
|
+
}, 8, ["tooltip-message", "data-qa", "tabindex", "icon", "onShiftFocusRight", "onShiftFocusLeft"])) : n.buttonType === "button" ? (u(), f(Bt, {
|
|
1067
1075
|
key: e.getButtonKey(s.key, n.selector),
|
|
1068
1076
|
ref_for: !0,
|
|
1069
1077
|
ref: e.getButtonRef(s.key, n.selector),
|
|
1070
|
-
"is-active": (
|
|
1078
|
+
"is-active": (P = (q = t.$refs.richTextEditor) == null ? void 0 : q.editor) == null ? void 0 : P.isActive(n.selector),
|
|
1071
1079
|
"tooltip-message": n.tooltipMessage,
|
|
1072
1080
|
"data-qa": n.dataQA,
|
|
1073
1081
|
tabindex: e.canFocus(e.getButtonRef(s.key, n.selector)) ? 0 : -1,
|
|
@@ -1089,7 +1097,7 @@ function Yt(t, o, i, l, r, e) {
|
|
|
1089
1097
|
gap: "300"
|
|
1090
1098
|
}, {
|
|
1091
1099
|
default: a(() => [
|
|
1092
|
-
d(
|
|
1100
|
+
d(mt, {
|
|
1093
1101
|
open: r.showLinkInput,
|
|
1094
1102
|
"show-close-button": !1,
|
|
1095
1103
|
"data-qa": "dt-recipe-editor-link-input-popover",
|
|
@@ -1102,7 +1110,7 @@ function Yt(t, o, i, l, r, e) {
|
|
|
1102
1110
|
onOpened: e.updateInput
|
|
1103
1111
|
}, {
|
|
1104
1112
|
anchor: a(() => [
|
|
1105
|
-
(u(), f(
|
|
1113
|
+
(u(), f(gt, {
|
|
1106
1114
|
key: e.linkButton.key,
|
|
1107
1115
|
message: e.linkButton.tooltipMessage,
|
|
1108
1116
|
placement: "top"
|
|
@@ -1126,7 +1134,7 @@ function Yt(t, o, i, l, r, e) {
|
|
|
1126
1134
|
]
|
|
1127
1135
|
}, {
|
|
1128
1136
|
icon: a(() => [
|
|
1129
|
-
(u(), f(
|
|
1137
|
+
(u(), f(dt(e.linkButton.icon), { size: "200" }))
|
|
1130
1138
|
]),
|
|
1131
1139
|
_: 1
|
|
1132
1140
|
}, 8, ["active", "aria-label", "data-qa", "tabindex", "onKeydown"])
|
|
@@ -1136,7 +1144,7 @@ function Yt(t, o, i, l, r, e) {
|
|
|
1136
1144
|
}, 8, ["message"]))
|
|
1137
1145
|
]),
|
|
1138
1146
|
content: a(() => [
|
|
1139
|
-
_("div",
|
|
1147
|
+
_("div", Yt, [
|
|
1140
1148
|
_("span", null, I(e.showAddLinkButtonLabels.title), 1),
|
|
1141
1149
|
d(A, {
|
|
1142
1150
|
modelValue: r.linkInput,
|
|
@@ -1206,9 +1214,9 @@ function Yt(t, o, i, l, r, e) {
|
|
|
1206
1214
|
}),
|
|
1207
1215
|
_("div", {
|
|
1208
1216
|
style: O({ "max-height": i.maxHeight }),
|
|
1209
|
-
class:
|
|
1217
|
+
class: Ft(["d-recipe-editor__content", { "d-recipe-editor__content-image-resize": i.allowImageResize }])
|
|
1210
1218
|
}, [
|
|
1211
|
-
d(
|
|
1219
|
+
d(Tt, B({
|
|
1212
1220
|
ref: "richTextEditor",
|
|
1213
1221
|
modelValue: r.internalInputValue,
|
|
1214
1222
|
"onUpdate:modelValue": o[5] || (o[5] = (s) => r.internalInputValue = s),
|
|
@@ -1243,8 +1251,8 @@ function Yt(t, o, i, l, r, e) {
|
|
|
1243
1251
|
], 6)
|
|
1244
1252
|
], 16);
|
|
1245
1253
|
}
|
|
1246
|
-
const
|
|
1254
|
+
const ge = /* @__PURE__ */ Dt(Jt, [["render", jt]]);
|
|
1247
1255
|
export {
|
|
1248
|
-
|
|
1256
|
+
ge as default
|
|
1249
1257
|
};
|
|
1250
1258
|
//# sourceMappingURL=editor.js.map
|