@dialpad/dialtone-vue 2.158.0 → 2.158.2
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/components/rich_text_editor/extensions/emoji/emoji.cjs +38 -40
- package/dist/components/rich_text_editor/extensions/emoji/emoji.cjs.map +1 -1
- package/dist/components/rich_text_editor/extensions/emoji/emoji.js +40 -42
- package/dist/components/rich_text_editor/extensions/emoji/emoji.js.map +1 -1
- package/dist/components/rich_text_editor/extensions/emoji/index.cjs +3 -1
- package/dist/components/rich_text_editor/extensions/emoji/index.cjs.map +1 -1
- package/dist/components/rich_text_editor/extensions/emoji/index.js +1 -0
- package/dist/components/rich_text_editor/extensions/emoji/suggestion.cjs +0 -4
- package/dist/components/rich_text_editor/extensions/emoji/suggestion.cjs.map +1 -1
- package/dist/components/rich_text_editor/extensions/emoji/suggestion.js +0 -4
- package/dist/components/rich_text_editor/extensions/emoji/suggestion.js.map +1 -1
- package/dist/directives/scrollbar/scrollbar.cjs.map +1 -1
- package/dist/directives/scrollbar/scrollbar.js.map +1 -1
- package/dist/types/common/sr_only_close_button.vue.d.ts +1 -1
- package/dist/types/components/avatar/avatar.vue.d.ts +1 -1
- package/dist/types/components/badge/badge.vue.d.ts +1 -1
- package/dist/types/components/banner/banner.vue.d.ts +1 -1
- package/dist/types/components/breadcrumbs/breadcrumb_item.vue.d.ts +1 -1
- package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts +1 -1
- package/dist/types/components/button/button.vue.d.ts +1 -1
- package/dist/types/components/button_group/button_group.vue.d.ts +1 -1
- package/dist/types/components/button_group/buttons_decorator.vue.d.ts +1 -1
- package/dist/types/components/card/card.vue.d.ts +1 -1
- package/dist/types/components/checkbox/checkbox.vue.d.ts +1 -1
- package/dist/types/components/checkbox_group/checkbox_group.vue.d.ts +3 -3
- package/dist/types/components/checkbox_group/checkboxes_decorator.vue.d.ts +1 -1
- package/dist/types/components/chip/chip.vue.d.ts +1 -1
- package/dist/types/components/codeblock/codeblock.vue.d.ts +1 -1
- package/dist/types/components/collapsible/collapsible.vue.d.ts +1 -1
- package/dist/types/components/collapsible/collapsible_lazy_show.vue.d.ts +1 -1
- package/dist/types/components/combobox/combobox.vue.d.ts +1 -1
- package/dist/types/components/combobox/combobox_empty-list.vue.d.ts +1 -1
- package/dist/types/components/combobox/combobox_loading-list.vue.d.ts +1 -1
- package/dist/types/components/datepicker/datepicker.vue.d.ts +1 -1
- package/dist/types/components/datepicker/modules/calendar.vue.d.ts +1 -1
- package/dist/types/components/datepicker/modules/month-year-picker.vue.d.ts +1 -1
- package/dist/types/components/description_list/description_list.vue.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown.vue.d.ts +2 -2
- package/dist/types/components/dropdown/dropdown_list.vue.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown_separator.vue.d.ts +1 -1
- package/dist/types/components/emoji/emoji.vue.d.ts +1 -1
- package/dist/types/components/emoji_picker/emoji_picker.vue.d.ts +1 -1
- package/dist/types/components/emoji_picker/modules/emoji_description.vue.d.ts +1 -1
- package/dist/types/components/emoji_picker/modules/emoji_search.vue.d.ts +1 -1
- package/dist/types/components/emoji_picker/modules/emoji_selector.vue.d.ts +1 -1
- package/dist/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts +1 -1
- package/dist/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts +1 -1
- package/dist/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts +1 -1
- package/dist/types/components/empty_state/empty_state.vue.d.ts +1 -1
- package/dist/types/components/hovercard/hovercard.vue.d.ts +1 -1
- package/dist/types/components/icon/icon.vue.d.ts +1 -1
- package/dist/types/components/illustration/illustration.vue.d.ts +1 -1
- package/dist/types/components/image_viewer/image_viewer.vue.d.ts +1 -1
- package/dist/types/components/input/input.vue.d.ts +1 -1
- package/dist/types/components/input_group/decorators/input.vue.d.ts +1 -1
- package/dist/types/components/input_group/decorators/inputs.vue.d.ts +1 -1
- package/dist/types/components/input_group/input_group.vue.d.ts +2 -2
- package/dist/types/components/item_layout/item_layout.vue.d.ts +1 -1
- package/dist/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts +1 -1
- package/dist/types/components/lazy_show/lazy_show.vue.d.ts +1 -1
- package/dist/types/components/link/link.vue.d.ts +1 -1
- package/dist/types/components/list_item/list_item.vue.d.ts +2 -2
- package/dist/types/components/list_item_group/list_item_group.vue.d.ts +1 -1
- package/dist/types/components/modal/modal.vue.d.ts +1 -1
- package/dist/types/components/notice/notice.vue.d.ts +1 -1
- package/dist/types/components/notice/notice_action.vue.d.ts +1 -1
- package/dist/types/components/notice/notice_content.vue.d.ts +1 -1
- package/dist/types/components/notice/notice_icon.vue.d.ts +1 -1
- package/dist/types/components/pagination/pagination.vue.d.ts +1 -1
- package/dist/types/components/popover/popover.vue.d.ts +1 -1
- package/dist/types/components/popover/popover_header_footer.vue.d.ts +1 -1
- package/dist/types/components/presence/presence.vue.d.ts +1 -1
- package/dist/types/components/radio/radio.vue.d.ts +1 -1
- package/dist/types/components/radio_group/radio_group.vue.d.ts +3 -3
- package/dist/types/components/radio_group/radios_decorator.vue.d.ts +1 -1
- package/dist/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +17 -17
- package/dist/types/components/rich_text_editor/extensions/channels/ChannelSuggestion.vue.d.ts +1 -1
- package/dist/types/components/rich_text_editor/extensions/channels/channel.d.ts +1 -1
- package/dist/types/components/rich_text_editor/extensions/channels/channel.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +17 -17
- package/dist/types/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.d.ts +1 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/emoji.d.ts +0 -2
- package/dist/types/components/rich_text_editor/extensions/emoji/emoji.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/index.d.ts +1 -0
- package/dist/types/components/rich_text_editor/extensions/emoji/index.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +17 -17
- package/dist/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +1 -1
- package/dist/types/components/rich_text_editor/extensions/mentions/mention.d.ts +1 -1
- package/dist/types/components/rich_text_editor/extensions/mentions/mention.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts +17 -17
- package/dist/types/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts +1 -1
- package/dist/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts +1 -1
- package/dist/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts +1 -1
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +1 -1
- package/dist/types/components/root_layout/root_layout.vue.d.ts +1 -1
- package/dist/types/components/select_menu/select_menu.vue.d.ts +1 -1
- package/dist/types/components/skeleton/skeleton-list-item.vue.d.ts +1 -1
- package/dist/types/components/skeleton/skeleton-paragraph.vue.d.ts +1 -1
- package/dist/types/components/skeleton/skeleton-shape.vue.d.ts +1 -1
- package/dist/types/components/skeleton/skeleton-text.vue.d.ts +1 -1
- package/dist/types/components/skeleton/skeleton.vue.d.ts +1 -1
- package/dist/types/components/split_button/split_button-alpha.vue.d.ts +1 -1
- package/dist/types/components/split_button/split_button-omega.vue.d.ts +1 -1
- package/dist/types/components/split_button/split_button.vue.d.ts +2 -2
- package/dist/types/components/stack/stack.vue.d.ts +1 -1
- package/dist/types/components/tabs/tab.vue.d.ts +1 -1
- package/dist/types/components/tabs/tab_group.vue.d.ts +1 -1
- package/dist/types/components/tabs/tab_panel.vue.d.ts +1 -1
- package/dist/types/components/toast/toast.vue.d.ts +1 -1
- package/dist/types/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.vue.d.ts +2 -2
- package/dist/types/components/validation_messages/validation_messages.vue.d.ts +1 -1
- package/dist/types/directives/scrollbar/scrollbar.d.ts.map +1 -1
- package/dist/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +1 -1
- package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +1 -1
- package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +1 -1
- package/dist/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts +1 -1
- package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -1
- package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/message_input/meeting_pill/MeetingPill.vue.d.ts +17 -17
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/time_pill/time_pill.vue.d.ts +1 -1
- package/dist/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts +1 -1
- package/dist/types/recipes/item_layout/contact_info/contact_info.vue.d.ts +1 -1
- package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts +1 -1
- package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +1 -1
- package/dist/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +1 -1
- package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +1 -1
- package/dist/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +1 -1
- package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts +1 -1
- package/dist/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +1 -1
- package/dist/types/recipes/notices/top_banner_info/top_banner_info.vue.d.ts +1 -1
- package/package.json +37 -37
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const core = require("@tiptap/core");
|
|
4
|
+
const state = require("@tiptap/pm/state");
|
|
4
5
|
const vue2 = require("@tiptap/vue-2");
|
|
6
|
+
const Suggestion = require("@tiptap/suggestion");
|
|
7
|
+
const regexCombinedEmojis = require("regex-combined-emojis");
|
|
5
8
|
const EmojiComponent = require("./EmojiComponent.vue.cjs");
|
|
6
9
|
const common_emoji = require("../../../../common/emoji.cjs");
|
|
7
|
-
const state = require("@tiptap/pm/state");
|
|
8
|
-
const Suggestion = require("@tiptap/suggestion");
|
|
9
10
|
const suggestion = require("./suggestion.cjs");
|
|
10
|
-
const
|
|
11
|
-
const EmojiPluginKey = new state.PluginKey("emoji");
|
|
12
|
-
const inputShortCodeRegex = new RegExp("(^| |(?<=:))(:\\w+:)$");
|
|
11
|
+
const inputShortCodeRegex = /(:\w+:)$/;
|
|
13
12
|
const inputUnicodeRegex = new RegExp(regexCombinedEmojis.emojiPattern + "$");
|
|
14
13
|
const inputRuleMatch = (match) => {
|
|
15
14
|
if (match && common_emoji.codeToEmojiData(match[0])) {
|
|
16
15
|
const text = match[2] || match[0];
|
|
17
|
-
return {
|
|
18
|
-
index: match.index,
|
|
19
|
-
text,
|
|
20
|
-
match
|
|
21
|
-
};
|
|
16
|
+
return { text };
|
|
22
17
|
}
|
|
23
18
|
};
|
|
24
19
|
const shortCodePasteMatch = (text) => {
|
|
@@ -30,19 +25,16 @@ const shortCodePasteMatch = (text) => {
|
|
|
30
25
|
}));
|
|
31
26
|
};
|
|
32
27
|
const Emoji = core.Node.create({
|
|
28
|
+
name: "emoji",
|
|
33
29
|
addOptions() {
|
|
34
30
|
return {
|
|
35
|
-
HTMLAttributes: {}
|
|
36
|
-
suggestion: {
|
|
37
|
-
char: ":",
|
|
38
|
-
pluginKey: EmojiPluginKey
|
|
39
|
-
}
|
|
31
|
+
HTMLAttributes: {}
|
|
40
32
|
};
|
|
41
33
|
},
|
|
42
|
-
name: "emoji",
|
|
43
34
|
group: "inline",
|
|
44
35
|
inline: true,
|
|
45
|
-
selectable:
|
|
36
|
+
selectable: false,
|
|
37
|
+
atom: true,
|
|
46
38
|
addNodeView() {
|
|
47
39
|
return vue2.VueNodeViewRenderer(EmojiComponent);
|
|
48
40
|
},
|
|
@@ -69,32 +61,17 @@ const Emoji = core.Node.create({
|
|
|
69
61
|
},
|
|
70
62
|
addInputRules() {
|
|
71
63
|
return [
|
|
72
|
-
|
|
73
|
-
core.nodeInputRule({
|
|
64
|
+
new core.InputRule({
|
|
74
65
|
find: (text) => {
|
|
75
|
-
const match = text.match(inputShortCodeRegex);
|
|
66
|
+
const match = text.match(inputShortCodeRegex) || text.match(inputUnicodeRegex);
|
|
76
67
|
if (!match) return;
|
|
77
68
|
return inputRuleMatch(match);
|
|
78
69
|
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
}),
|
|
86
|
-
core.nodeInputRule({
|
|
87
|
-
find: (text) => {
|
|
88
|
-
const match = text.match(inputUnicodeRegex);
|
|
89
|
-
if (!match) return;
|
|
90
|
-
return inputRuleMatch(match);
|
|
91
|
-
},
|
|
92
|
-
type: this.type,
|
|
93
|
-
getAttributes(attrs) {
|
|
94
|
-
const emoji = common_emoji.codeToEmojiData(attrs[0]).shortname;
|
|
95
|
-
return {
|
|
96
|
-
code: emoji
|
|
97
|
-
};
|
|
70
|
+
handler: ({ state: state2, range, match, commands, chain, can }) => {
|
|
71
|
+
const { tr } = state2;
|
|
72
|
+
const start = range.from;
|
|
73
|
+
const end = range.to;
|
|
74
|
+
tr.replaceWith(start, end, this.type.create({ code: match[0] }));
|
|
98
75
|
}
|
|
99
76
|
})
|
|
100
77
|
];
|
|
@@ -124,13 +101,34 @@ const Emoji = core.Node.create({
|
|
|
124
101
|
addProseMirrorPlugins() {
|
|
125
102
|
return [
|
|
126
103
|
Suggestion({
|
|
104
|
+
char: ":",
|
|
105
|
+
pluginKey: new state.PluginKey("emoji"),
|
|
127
106
|
editor: this.editor,
|
|
128
107
|
...this.options.suggestion,
|
|
129
108
|
...suggestion
|
|
130
109
|
})
|
|
131
110
|
];
|
|
111
|
+
},
|
|
112
|
+
addKeyboardShortcuts() {
|
|
113
|
+
return {
|
|
114
|
+
Backspace: () => this.editor.commands.command(({ tr, state: state2 }) => {
|
|
115
|
+
let isEmoji = false;
|
|
116
|
+
const { selection } = state2;
|
|
117
|
+
const { empty, anchor } = selection;
|
|
118
|
+
if (!empty) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
state2.doc.nodesBetween(anchor - 1, anchor, (node, pos) => {
|
|
122
|
+
if (node.type.name === this.name) {
|
|
123
|
+
isEmoji = true;
|
|
124
|
+
tr.insertText("", pos, pos + node.nodeSize);
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
return isEmoji;
|
|
129
|
+
})
|
|
130
|
+
};
|
|
132
131
|
}
|
|
133
132
|
});
|
|
134
133
|
exports.Emoji = Emoji;
|
|
135
|
-
exports.EmojiPluginKey = EmojiPluginKey;
|
|
136
134
|
//# sourceMappingURL=emoji.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emoji.cjs","sources":["../../../../../components/rich_text_editor/extensions/emoji/emoji.js"],"sourcesContent":["import { mergeAttributes, Node,
|
|
1
|
+
{"version":3,"file":"emoji.cjs","sources":["../../../../../components/rich_text_editor/extensions/emoji/emoji.js"],"sourcesContent":["import { InputRule, mergeAttributes, Node, nodePasteRule } from '@tiptap/core';\nimport { PluginKey } from '@tiptap/pm/state';\nimport { VueNodeViewRenderer } from '@tiptap/vue-2';\nimport Suggestion from '@tiptap/suggestion';\nimport { emojiPattern } from 'regex-combined-emojis';\n\nimport EmojiComponent from './EmojiComponent.vue';\nimport { codeToEmojiData, emojiShortCodeRegex, emojiRegex, stringToUnicode } from '@/common/emoji';\nimport suggestionOptions from './suggestion';\n\nconst inputShortCodeRegex = /(:\\w+:)$/;\nconst inputUnicodeRegex = new RegExp(emojiPattern + '$');\n\nconst inputRuleMatch = (match) => {\n if (match && codeToEmojiData(match[0])) {\n const text = match[2] || match[0];\n // needs to be a dict returned\n // ref type InputRuleMatch:\n // https://github.com/ueberdosis/tiptap/blob/main/packages/core/src/InputRule.ts#L16\n return { text };\n }\n};\n\nconst shortCodePasteMatch = (text) => {\n const matches = [...text.matchAll(emojiShortCodeRegex)];\n\n return matches\n .filter(match => codeToEmojiData(match[0]))\n .map(match => ({\n index: match.index,\n text: match[0],\n match,\n }));\n};\n\nexport const Emoji = Node.create({\n name: 'emoji',\n addOptions () {\n return {\n HTMLAttributes: {},\n };\n },\n group: 'inline',\n inline: true,\n selectable: false,\n atom: true,\n\n addNodeView () {\n return VueNodeViewRenderer(EmojiComponent);\n },\n\n addAttributes () {\n return {\n code: {\n default: null,\n },\n };\n },\n\n parseHTML () {\n return [\n {\n tag: 'emoji-component',\n },\n ];\n },\n\n renderText ({ node }) {\n // output emoji in text as unicode character rather than shortname for backwards compatibility with\n // our backend.\n const unicodeEmoji = stringToUnicode(codeToEmojiData(node.attrs.code).unicode_output);\n return unicodeEmoji;\n },\n\n renderHTML ({ HTMLAttributes }) {\n return ['emoji-component', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];\n },\n\n addInputRules () {\n return [\n new InputRule({\n find: (text) => {\n const match = text.match(inputShortCodeRegex) || text.match(inputUnicodeRegex);\n if (!match) return;\n\n return inputRuleMatch(match);\n },\n handler: ({ state, range, match, commands, chain, can }) => {\n const { tr } = state;\n const start = range.from;\n const end = range.to;\n tr.replaceWith(start, end, this.type.create({ code: match[0] }));\n },\n }),\n ];\n },\n\n addPasteRules () {\n return [\n nodePasteRule({\n find: shortCodePasteMatch,\n type: this.type,\n getAttributes (attrs) {\n return {\n code: attrs[0],\n };\n },\n }),\n nodePasteRule({\n find: emojiRegex,\n type: this.type,\n getAttributes (attrs) {\n return {\n code: attrs[0],\n };\n },\n }),\n ];\n },\n\n addProseMirrorPlugins () {\n return [\n Suggestion({\n char: ':',\n pluginKey: new PluginKey('emoji'),\n editor: this.editor,\n ...this.options.suggestion,\n ...suggestionOptions,\n }),\n ];\n },\n\n addKeyboardShortcuts () {\n return {\n Backspace: () => this.editor.commands.command(({ tr, state }) => {\n let isEmoji = false;\n const { selection } = state;\n const { empty, anchor } = selection;\n if (!empty) { return false; }\n state.doc.nodesBetween(anchor - 1, anchor, (node, pos) => {\n if (node.type.name === this.name) {\n isEmoji = true;\n tr.insertText('', pos, pos + node.nodeSize);\n return false;\n }\n });\n return isEmoji;\n }),\n };\n },\n});\n"],"names":["emojiPattern","codeToEmojiData","emojiShortCodeRegex","Node","VueNodeViewRenderer","stringToUnicode","mergeAttributes","InputRule","state","nodePasteRule","emojiRegex","PluginKey","suggestionOptions"],"mappings":";;;;;;;;;;AAUA,MAAM,sBAAsB;AAC5B,MAAM,oBAAoB,IAAI,OAAOA,oBAAY,eAAG,GAAG;AAEvD,MAAM,iBAAiB,CAAC,UAAU;AAChC,MAAI,SAASC,aAAe,gBAAC,MAAM,CAAC,CAAC,GAAG;AACtC,UAAM,OAAO,MAAM,CAAC,KAAK,MAAM,CAAC;AAIhC,WAAO,EAAE,KAAI;AAAA,EACd;AACH;AAEA,MAAM,sBAAsB,CAAC,SAAS;AACpC,QAAM,UAAU,CAAC,GAAG,KAAK,SAASC,aAAAA,mBAAmB,CAAC;AAEtD,SAAO,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f,CAAO;AAAA,IACP;AAAA,EACG;AACH,CAAC;;"}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { Node, mergeAttributes,
|
|
1
|
+
import { Node, mergeAttributes, InputRule, nodePasteRule } from "@tiptap/core";
|
|
2
|
+
import { PluginKey } from "@tiptap/pm/state";
|
|
2
3
|
import { VueNodeViewRenderer } from "@tiptap/vue-2";
|
|
4
|
+
import Suggestion from "@tiptap/suggestion";
|
|
5
|
+
import { emojiPattern } from "regex-combined-emojis";
|
|
3
6
|
import EmojiComponent from "./EmojiComponent.vue.js";
|
|
4
7
|
import { stringToUnicode, codeToEmojiData, emojiRegex, emojiShortCodeRegex } from "../../../../common/emoji.js";
|
|
5
|
-
import { PluginKey } from "@tiptap/pm/state";
|
|
6
|
-
import Suggestion from "@tiptap/suggestion";
|
|
7
8
|
import suggestionOptions from "./suggestion.js";
|
|
8
|
-
|
|
9
|
-
const EmojiPluginKey = new PluginKey("emoji");
|
|
10
|
-
const inputShortCodeRegex = new RegExp("(^| |(?<=:))(:\\w+:)$");
|
|
9
|
+
const inputShortCodeRegex = /(:\w+:)$/;
|
|
11
10
|
const inputUnicodeRegex = new RegExp(emojiPattern + "$");
|
|
12
11
|
const inputRuleMatch = (match) => {
|
|
13
12
|
if (match && codeToEmojiData(match[0])) {
|
|
14
13
|
const text = match[2] || match[0];
|
|
15
|
-
return {
|
|
16
|
-
index: match.index,
|
|
17
|
-
text,
|
|
18
|
-
match
|
|
19
|
-
};
|
|
14
|
+
return { text };
|
|
20
15
|
}
|
|
21
16
|
};
|
|
22
17
|
const shortCodePasteMatch = (text) => {
|
|
@@ -28,19 +23,16 @@ const shortCodePasteMatch = (text) => {
|
|
|
28
23
|
}));
|
|
29
24
|
};
|
|
30
25
|
const Emoji = Node.create({
|
|
26
|
+
name: "emoji",
|
|
31
27
|
addOptions() {
|
|
32
28
|
return {
|
|
33
|
-
HTMLAttributes: {}
|
|
34
|
-
suggestion: {
|
|
35
|
-
char: ":",
|
|
36
|
-
pluginKey: EmojiPluginKey
|
|
37
|
-
}
|
|
29
|
+
HTMLAttributes: {}
|
|
38
30
|
};
|
|
39
31
|
},
|
|
40
|
-
name: "emoji",
|
|
41
32
|
group: "inline",
|
|
42
33
|
inline: true,
|
|
43
|
-
selectable:
|
|
34
|
+
selectable: false,
|
|
35
|
+
atom: true,
|
|
44
36
|
addNodeView() {
|
|
45
37
|
return VueNodeViewRenderer(EmojiComponent);
|
|
46
38
|
},
|
|
@@ -67,32 +59,17 @@ const Emoji = Node.create({
|
|
|
67
59
|
},
|
|
68
60
|
addInputRules() {
|
|
69
61
|
return [
|
|
70
|
-
|
|
71
|
-
nodeInputRule({
|
|
62
|
+
new InputRule({
|
|
72
63
|
find: (text) => {
|
|
73
|
-
const match = text.match(inputShortCodeRegex);
|
|
64
|
+
const match = text.match(inputShortCodeRegex) || text.match(inputUnicodeRegex);
|
|
74
65
|
if (!match) return;
|
|
75
66
|
return inputRuleMatch(match);
|
|
76
67
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
}),
|
|
84
|
-
nodeInputRule({
|
|
85
|
-
find: (text) => {
|
|
86
|
-
const match = text.match(inputUnicodeRegex);
|
|
87
|
-
if (!match) return;
|
|
88
|
-
return inputRuleMatch(match);
|
|
89
|
-
},
|
|
90
|
-
type: this.type,
|
|
91
|
-
getAttributes(attrs) {
|
|
92
|
-
const emoji = codeToEmojiData(attrs[0]).shortname;
|
|
93
|
-
return {
|
|
94
|
-
code: emoji
|
|
95
|
-
};
|
|
68
|
+
handler: ({ state, range, match, commands, chain, can }) => {
|
|
69
|
+
const { tr } = state;
|
|
70
|
+
const start = range.from;
|
|
71
|
+
const end = range.to;
|
|
72
|
+
tr.replaceWith(start, end, this.type.create({ code: match[0] }));
|
|
96
73
|
}
|
|
97
74
|
})
|
|
98
75
|
];
|
|
@@ -122,15 +99,36 @@ const Emoji = Node.create({
|
|
|
122
99
|
addProseMirrorPlugins() {
|
|
123
100
|
return [
|
|
124
101
|
Suggestion({
|
|
102
|
+
char: ":",
|
|
103
|
+
pluginKey: new PluginKey("emoji"),
|
|
125
104
|
editor: this.editor,
|
|
126
105
|
...this.options.suggestion,
|
|
127
106
|
...suggestionOptions
|
|
128
107
|
})
|
|
129
108
|
];
|
|
109
|
+
},
|
|
110
|
+
addKeyboardShortcuts() {
|
|
111
|
+
return {
|
|
112
|
+
Backspace: () => this.editor.commands.command(({ tr, state }) => {
|
|
113
|
+
let isEmoji = false;
|
|
114
|
+
const { selection } = state;
|
|
115
|
+
const { empty, anchor } = selection;
|
|
116
|
+
if (!empty) {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
state.doc.nodesBetween(anchor - 1, anchor, (node, pos) => {
|
|
120
|
+
if (node.type.name === this.name) {
|
|
121
|
+
isEmoji = true;
|
|
122
|
+
tr.insertText("", pos, pos + node.nodeSize);
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
return isEmoji;
|
|
127
|
+
})
|
|
128
|
+
};
|
|
130
129
|
}
|
|
131
130
|
});
|
|
132
131
|
export {
|
|
133
|
-
Emoji
|
|
134
|
-
EmojiPluginKey
|
|
132
|
+
Emoji
|
|
135
133
|
};
|
|
136
134
|
//# sourceMappingURL=emoji.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emoji.js","sources":["../../../../../components/rich_text_editor/extensions/emoji/emoji.js"],"sourcesContent":["import { mergeAttributes, Node,
|
|
1
|
+
{"version":3,"file":"emoji.js","sources":["../../../../../components/rich_text_editor/extensions/emoji/emoji.js"],"sourcesContent":["import { InputRule, mergeAttributes, Node, nodePasteRule } from '@tiptap/core';\nimport { PluginKey } from '@tiptap/pm/state';\nimport { VueNodeViewRenderer } from '@tiptap/vue-2';\nimport Suggestion from '@tiptap/suggestion';\nimport { emojiPattern } from 'regex-combined-emojis';\n\nimport EmojiComponent from './EmojiComponent.vue';\nimport { codeToEmojiData, emojiShortCodeRegex, emojiRegex, stringToUnicode } from '@/common/emoji';\nimport suggestionOptions from './suggestion';\n\nconst inputShortCodeRegex = /(:\\w+:)$/;\nconst inputUnicodeRegex = new RegExp(emojiPattern + '$');\n\nconst inputRuleMatch = (match) => {\n if (match && codeToEmojiData(match[0])) {\n const text = match[2] || match[0];\n // needs to be a dict returned\n // ref type InputRuleMatch:\n // https://github.com/ueberdosis/tiptap/blob/main/packages/core/src/InputRule.ts#L16\n return { text };\n }\n};\n\nconst shortCodePasteMatch = (text) => {\n const matches = [...text.matchAll(emojiShortCodeRegex)];\n\n return matches\n .filter(match => codeToEmojiData(match[0]))\n .map(match => ({\n index: match.index,\n text: match[0],\n match,\n }));\n};\n\nexport const Emoji = Node.create({\n name: 'emoji',\n addOptions () {\n return {\n HTMLAttributes: {},\n };\n },\n group: 'inline',\n inline: true,\n selectable: false,\n atom: true,\n\n addNodeView () {\n return VueNodeViewRenderer(EmojiComponent);\n },\n\n addAttributes () {\n return {\n code: {\n default: null,\n },\n };\n },\n\n parseHTML () {\n return [\n {\n tag: 'emoji-component',\n },\n ];\n },\n\n renderText ({ node }) {\n // output emoji in text as unicode character rather than shortname for backwards compatibility with\n // our backend.\n const unicodeEmoji = stringToUnicode(codeToEmojiData(node.attrs.code).unicode_output);\n return unicodeEmoji;\n },\n\n renderHTML ({ HTMLAttributes }) {\n return ['emoji-component', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];\n },\n\n addInputRules () {\n return [\n new InputRule({\n find: (text) => {\n const match = text.match(inputShortCodeRegex) || text.match(inputUnicodeRegex);\n if (!match) return;\n\n return inputRuleMatch(match);\n },\n handler: ({ state, range, match, commands, chain, can }) => {\n const { tr } = state;\n const start = range.from;\n const end = range.to;\n tr.replaceWith(start, end, this.type.create({ code: match[0] }));\n },\n }),\n ];\n },\n\n addPasteRules () {\n return [\n nodePasteRule({\n find: shortCodePasteMatch,\n type: this.type,\n getAttributes (attrs) {\n return {\n code: attrs[0],\n };\n },\n }),\n nodePasteRule({\n find: emojiRegex,\n type: this.type,\n getAttributes (attrs) {\n return {\n code: attrs[0],\n };\n },\n }),\n ];\n },\n\n addProseMirrorPlugins () {\n return [\n Suggestion({\n char: ':',\n pluginKey: new PluginKey('emoji'),\n editor: this.editor,\n ...this.options.suggestion,\n ...suggestionOptions,\n }),\n ];\n },\n\n addKeyboardShortcuts () {\n return {\n Backspace: () => this.editor.commands.command(({ tr, state }) => {\n let isEmoji = false;\n const { selection } = state;\n const { empty, anchor } = selection;\n if (!empty) { return false; }\n state.doc.nodesBetween(anchor - 1, anchor, (node, pos) => {\n if (node.type.name === this.name) {\n isEmoji = true;\n tr.insertText('', pos, pos + node.nodeSize);\n return false;\n }\n });\n return isEmoji;\n }),\n };\n },\n});\n"],"names":[],"mappings":";;;;;;;;AAUA,MAAM,sBAAsB;AAC5B,MAAM,oBAAoB,IAAI,OAAO,eAAe,GAAG;AAEvD,MAAM,iBAAiB,CAAC,UAAU;AAChC,MAAI,SAAS,gBAAgB,MAAM,CAAC,CAAC,GAAG;AACtC,UAAM,OAAO,MAAM,CAAC,KAAK,MAAM,CAAC;AAIhC,WAAO,EAAE,KAAI;AAAA,EACd;AACH;AAEA,MAAM,sBAAsB,CAAC,SAAS;AACpC,QAAM,UAAU,CAAC,GAAG,KAAK,SAAS,mBAAmB,CAAC;AAEtD,SAAO,QACJ,OAAO,WAAS,gBAAgB,MAAM,CAAC,CAAC,CAAC,EACzC,IAAI,YAAU;AAAA,IACb,OAAO,MAAM;AAAA,IACb,MAAM,MAAM,CAAC;AAAA,IACb;AAAA,EACD,EAAC;AACN;AAEY,MAAC,QAAQ,KAAK,OAAO;AAAA,EAC/B,MAAM;AAAA,EACN,aAAc;AACZ,WAAO;AAAA,MACL,gBAAgB,CAAE;AAAA,IACxB;AAAA,EACG;AAAA,EACD,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,MAAM;AAAA,EAEN,cAAe;AACb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B,iBAAO;AAAA,YACL,MAAM,MAAM,CAAC;AAAA,UACzB;AAAA,QACS;AAAA,MACT,CAAO;AAAA,IACP;AAAA,EACG;AAAA,EAED,wBAAyB;AACvB,WAAO;AAAA,MACL,WAAW;AAAA,QACT,MAAM;AAAA,QACN,WAAW,IAAI,UAAU,OAAO;AAAA,QAChC,QAAQ,KAAK;AAAA,QACb,GAAG,KAAK,QAAQ;AAAA,QAChB,GAAG;AAAA,MACX,CAAO;AAAA,IACP;AAAA,EACG;AAAA,EAED,uBAAwB;AACtB,WAAO;AAAA,MACL,WAAW,MAAM,KAAK,OAAO,SAAS,QAAQ,CAAC,EAAE,IAAI,YAAY;AAC/D,YAAI,UAAU;AACd,cAAM,EAAE,UAAW,IAAG;AACtB,cAAM,EAAE,OAAO,OAAQ,IAAG;AAC1B,YAAI,CAAC,OAAO;AAAE,iBAAO;AAAA,QAAQ;AAC7B,cAAM,IAAI,aAAa,SAAS,GAAG,QAAQ,CAAC,MAAM,QAAQ;AACxD,cAAI,KAAK,KAAK,SAAS,KAAK,MAAM;AAChC,sBAAU;AACV,eAAG,WAAW,IAAI,KAAK,MAAM,KAAK,QAAQ;AAC1C,mBAAO;AAAA,UACR;AAAA,QACX,CAAS;AACD,eAAO;AAAA,MACf,CAAO;AAAA,IACP;AAAA,EACG;AACH,CAAC;"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
2
3
|
const emoji = require("./emoji.cjs");
|
|
3
|
-
|
|
4
|
+
exports.Emoji = emoji.Emoji;
|
|
5
|
+
exports.default = emoji.Emoji;
|
|
4
6
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion.cjs","sources":["../../../../../components/rich_text_editor/extensions/emoji/suggestion.js"],"sourcesContent":["import { VueRenderer } from '@tiptap/vue-2';\nimport { emojisIndexed } from '@dialpad/dialtone-emojis';\n\nimport SuggestionList from '../suggestion/SuggestionList.vue';\nimport EmojiSuggestion from './EmojiSuggestion.vue';\n\nimport tippy from 'tippy.js';\nimport hideOnEsc from '../tippy_plugins/hide_on_esc';\n\nexport default {\n items: ({ query }) => {\n if (query.length < 2) {\n return [];\n }\n const emojiList = Object.values(emojisIndexed);\n const filteredEmoji = emojiList.filter(function (item) {\n if (item.shortname.substring(1, item.shortname.length - 1).startsWith(query.toLowerCase())) {\n return true;\n }\n return false;\n });\n return filteredEmoji.map(item => { return { code: item.shortname }; });\n },\n\n command: ({ editor, range, props }) => {\n // increase range.to by one when the next node is of type \"text\"\n // and starts with a space character\n const nodeAfter = editor.view.state.selection.$to.nodeAfter;\n const overrideSpace = nodeAfter?.text?.startsWith(' ');\n\n if (overrideSpace) {\n range.to += 1;\n }\n\n editor\n .chain()\n .focus()\n .insertContentAt(range, [\n {\n type: 'emoji',\n attrs: props,\n },\n
|
|
1
|
+
{"version":3,"file":"suggestion.cjs","sources":["../../../../../components/rich_text_editor/extensions/emoji/suggestion.js"],"sourcesContent":["import { VueRenderer } from '@tiptap/vue-2';\nimport { emojisIndexed } from '@dialpad/dialtone-emojis';\n\nimport SuggestionList from '../suggestion/SuggestionList.vue';\nimport EmojiSuggestion from './EmojiSuggestion.vue';\n\nimport tippy from 'tippy.js';\nimport hideOnEsc from '../tippy_plugins/hide_on_esc';\n\nexport default {\n items: ({ query }) => {\n if (query.length < 2) {\n return [];\n }\n const emojiList = Object.values(emojisIndexed);\n const filteredEmoji = emojiList.filter(function (item) {\n if (item.shortname.substring(1, item.shortname.length - 1).startsWith(query.toLowerCase())) {\n return true;\n }\n return false;\n });\n return filteredEmoji.map(item => { return { code: item.shortname }; });\n },\n\n command: ({ editor, range, props }) => {\n // increase range.to by one when the next node is of type \"text\"\n // and starts with a space character\n const nodeAfter = editor.view.state.selection.$to.nodeAfter;\n const overrideSpace = nodeAfter?.text?.startsWith(' ');\n\n if (overrideSpace) {\n range.to += 1;\n }\n\n editor\n .chain()\n .focus()\n .insertContentAt(range, [\n {\n type: 'emoji',\n attrs: props,\n },\n ])\n .run();\n\n window.getSelection()?.collapseToEnd();\n },\n\n render: () => {\n let component;\n let popup;\n let popupIsOpen = false;\n\n return {\n onStart: props => {\n component = new VueRenderer(SuggestionList, {\n parent: this,\n propsData: {\n itemComponent: EmojiSuggestion,\n itemType: 'emoji',\n ...props,\n },\n editor: props.editor,\n });\n\n if (!props.clientRect) {\n return;\n }\n\n popup = tippy('body', {\n getReferenceClientRect: props.clientRect,\n appendTo: () => document.body,\n content: component.element,\n showOnCreate: false,\n onShow: () => { popupIsOpen = true; },\n onHidden: () => { popupIsOpen = false; },\n interactive: true,\n trigger: 'manual',\n placement: 'top-start',\n zIndex: 650,\n plugins: [hideOnEsc],\n });\n\n if (props.items.length > 0) {\n popup?.[0].show();\n }\n },\n\n onUpdate (props) {\n component?.updateProps(props);\n\n if (props.items.length > 0) {\n popup?.[0].show();\n } else {\n popup?.[0].hide();\n }\n popup?.[0].setProps({\n getReferenceClientRect: props.clientRect,\n });\n },\n\n onKeyDown (props) {\n if (popupIsOpen) {\n return component?.ref?.onKeyDown(props);\n }\n },\n\n onExit () {\n popup?.[0].destroy();\n popup = null;\n component?.destroy();\n component = null;\n },\n };\n },\n};\n"],"names":["emojisIndexed","VueRenderer","this","hideOnEsc"],"mappings":";;;;;;;AASA,MAAe,oBAAA;AAAA,EACb,OAAO,CAAC,EAAE,YAAY;AACpB,QAAI,MAAM,SAAS,GAAG;AACpB,aAAO;IACR;AACD,UAAM,YAAY,OAAO,OAAOA,eAAa,aAAA;AAC7C,UAAM,gBAAgB,UAAU,OAAO,SAAU,MAAM;AACrD,UAAI,KAAK,UAAU,UAA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AC7B,CAAS;AAED,YAAI,MAAM,MAAM,SAAS,GAAG;AAC1B,yCAAQ,GAAG;AAAA,QACZ;AAAA,MACF;AAAA,MAED,SAAU,OAAO;AACf,+CAAW,YAAY;AAEvB,YAAI,MAAM,MAAM,SAAS,GAAG;AAC1B,yCAAQ,GAAG;AAAA,QACrB,OAAe;AACL,yCAAQ,GAAG;AAAA,QACZ;AACD,uCAAQ,GAAG,SAAS;AAAA,UAClB,wBAAwB,MAAM;AAAA,QACxC;AAAA,MACO;AAAA,MAED,UAAW,OAAO;;AAChB,YAAI,aAAa;AACf,kBAAO,4CAAW,QAAX,mBAAgB,UAAU;AAAA,QAClC;AAAA,MACF;AAAA,MAED,SAAU;AACR,uCAAQ,GAAG;AACX,gBAAQ;AACR,+CAAW;AACX,oBAAY;AAAA,MACb;AAAA,IACP;AAAA,EACG;AACH;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion.js","sources":["../../../../../components/rich_text_editor/extensions/emoji/suggestion.js"],"sourcesContent":["import { VueRenderer } from '@tiptap/vue-2';\nimport { emojisIndexed } from '@dialpad/dialtone-emojis';\n\nimport SuggestionList from '../suggestion/SuggestionList.vue';\nimport EmojiSuggestion from './EmojiSuggestion.vue';\n\nimport tippy from 'tippy.js';\nimport hideOnEsc from '../tippy_plugins/hide_on_esc';\n\nexport default {\n items: ({ query }) => {\n if (query.length < 2) {\n return [];\n }\n const emojiList = Object.values(emojisIndexed);\n const filteredEmoji = emojiList.filter(function (item) {\n if (item.shortname.substring(1, item.shortname.length - 1).startsWith(query.toLowerCase())) {\n return true;\n }\n return false;\n });\n return filteredEmoji.map(item => { return { code: item.shortname }; });\n },\n\n command: ({ editor, range, props }) => {\n // increase range.to by one when the next node is of type \"text\"\n // and starts with a space character\n const nodeAfter = editor.view.state.selection.$to.nodeAfter;\n const overrideSpace = nodeAfter?.text?.startsWith(' ');\n\n if (overrideSpace) {\n range.to += 1;\n }\n\n editor\n .chain()\n .focus()\n .insertContentAt(range, [\n {\n type: 'emoji',\n attrs: props,\n },\n
|
|
1
|
+
{"version":3,"file":"suggestion.js","sources":["../../../../../components/rich_text_editor/extensions/emoji/suggestion.js"],"sourcesContent":["import { VueRenderer } from '@tiptap/vue-2';\nimport { emojisIndexed } from '@dialpad/dialtone-emojis';\n\nimport SuggestionList from '../suggestion/SuggestionList.vue';\nimport EmojiSuggestion from './EmojiSuggestion.vue';\n\nimport tippy from 'tippy.js';\nimport hideOnEsc from '../tippy_plugins/hide_on_esc';\n\nexport default {\n items: ({ query }) => {\n if (query.length < 2) {\n return [];\n }\n const emojiList = Object.values(emojisIndexed);\n const filteredEmoji = emojiList.filter(function (item) {\n if (item.shortname.substring(1, item.shortname.length - 1).startsWith(query.toLowerCase())) {\n return true;\n }\n return false;\n });\n return filteredEmoji.map(item => { return { code: item.shortname }; });\n },\n\n command: ({ editor, range, props }) => {\n // increase range.to by one when the next node is of type \"text\"\n // and starts with a space character\n const nodeAfter = editor.view.state.selection.$to.nodeAfter;\n const overrideSpace = nodeAfter?.text?.startsWith(' ');\n\n if (overrideSpace) {\n range.to += 1;\n }\n\n editor\n .chain()\n .focus()\n .insertContentAt(range, [\n {\n type: 'emoji',\n attrs: props,\n },\n ])\n .run();\n\n window.getSelection()?.collapseToEnd();\n },\n\n render: () => {\n let component;\n let popup;\n let popupIsOpen = false;\n\n return {\n onStart: props => {\n component = new VueRenderer(SuggestionList, {\n parent: this,\n propsData: {\n itemComponent: EmojiSuggestion,\n itemType: 'emoji',\n ...props,\n },\n editor: props.editor,\n });\n\n if (!props.clientRect) {\n return;\n }\n\n popup = tippy('body', {\n getReferenceClientRect: props.clientRect,\n appendTo: () => document.body,\n content: component.element,\n showOnCreate: false,\n onShow: () => { popupIsOpen = true; },\n onHidden: () => { popupIsOpen = false; },\n interactive: true,\n trigger: 'manual',\n placement: 'top-start',\n zIndex: 650,\n plugins: [hideOnEsc],\n });\n\n if (props.items.length > 0) {\n popup?.[0].show();\n }\n },\n\n onUpdate (props) {\n component?.updateProps(props);\n\n if (props.items.length > 0) {\n popup?.[0].show();\n } else {\n popup?.[0].hide();\n }\n popup?.[0].setProps({\n getReferenceClientRect: props.clientRect,\n });\n },\n\n onKeyDown (props) {\n if (popupIsOpen) {\n return component?.ref?.onKeyDown(props);\n }\n },\n\n onExit () {\n popup?.[0].destroy();\n popup = null;\n component?.destroy();\n component = null;\n },\n };\n },\n};\n"],"names":["this"],"mappings":";;;;;;AASA,MAAe,oBAAA;AAAA,EACb,OAAO,CAAC,EAAE,YAAY;AACpB,QAAI,MAAM,SAAS,GAAG;AACpB,aAAO;IACR;AACD,UAAM,YAAY,OAAO,OAAO,aAAa;AAC7C,UAAM,gBAAgB,UAAU,OAAO,SAAU,MAAM;AACrD,UAAI,KAAK,UAAU,UAAU,GAAG,KAAK,UAAU,SAAS,CAAC,EAAE,WAAW,MAAM,YAAa,CAAA,GAAG;AAC1F,eAAO;AAAA,MACR;AACD,aAAO;AAAA,IACb,CAAK;AACD,WAAO,cAAc,IAAI,UAAQ;AAAE,aAAO,EAAE,MAAM,KAAK;IAAY,CAAE;AAAA,EACtE;AAAA,EAED,SAAS,CAAC,EAAE,QAAQ,OAAO,MAAK,MAAO;;AAGrC,UAAM,YAAY,OAAO,KAAK,MAAM,UAAU,IAAI;AAClD,UAAM,iBAAgB,4CAAW,SAAX,mBAAiB,WAAW;AAElD,QAAI,eAAe;AACjB,YAAM,MAAM;AAAA,IACb;AAED,WACG,MAAO,EACP,MAAO,EACP,gBAAgB,OAAO;AAAA,MACtB;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,MACR;AAAA,IACT,CAAO,EACA;AAEH,iBAAO,mBAAP,mBAAuB;AAAA,EACxB;AAAA,EAED,QAAQ,MAAM;AACZ,QAAI;AACJ,QAAI;AACJ,QAAI,cAAc;AAElB,WAAO;AAAA,MACL,SAAS,WAAS;AAChB,oBAAY,IAAI,YAAY,gBAAgB;AAAA,UAC1C,QAAQA;AAAAA,UACR,WAAW;AAAA,YACT,eAAe;AAAA,YACf,UAAU;AAAA,YACV,GAAG;AAAA,UACJ;AAAA,UACD,QAAQ,MAAM;AAAA,QACxB,CAAS;AAED,YAAI,CAAC,MAAM,YAAY;AACrB;AAAA,QACD;AAED,gBAAQ,MAAM,QAAQ;AAAA,UACpB,wBAAwB,MAAM;AAAA,UAC9B,UAAU,MAAM,SAAS;AAAA,UACzB,SAAS,UAAU;AAAA,UACnB,cAAc;AAAA,UACd,QAAQ,MAAM;AAAE,0BAAc;AAAA,UAAO;AAAA,UACrC,UAAU,MAAM;AAAE,0BAAc;AAAA,UAAQ;AAAA,UACxC,aAAa;AAAA,UACb,SAAS;AAAA,UACT,WAAW;AAAA,UACX,QAAQ;AAAA,UACR,SAAS,CAAC,SAAS;AAAA,QAC7B,CAAS;AAED,YAAI,MAAM,MAAM,SAAS,GAAG;AAC1B,yCAAQ,GAAG;AAAA,QACZ;AAAA,MACF;AAAA,MAED,SAAU,OAAO;AACf,+CAAW,YAAY;AAEvB,YAAI,MAAM,MAAM,SAAS,GAAG;AAC1B,yCAAQ,GAAG;AAAA,QACrB,OAAe;AACL,yCAAQ,GAAG;AAAA,QACZ;AACD,uCAAQ,GAAG,SAAS;AAAA,UAClB,wBAAwB,MAAM;AAAA,QACxC;AAAA,MACO;AAAA,MAED,UAAW,OAAO;;AAChB,YAAI,aAAa;AACf,kBAAO,4CAAW,QAAX,mBAAgB,UAAU;AAAA,QAClC;AAAA,MACF;AAAA,MAED,SAAU;AACR,uCAAQ,GAAG;AACX,gBAAQ;AACR,+CAAW;AACX,oBAAY;AAAA,MACb;AAAA,IACP;AAAA,EACG;AACH;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollbar.cjs","sources":["../../../directives/scrollbar/scrollbar.js"],"sourcesContent":["import { OverlayScrollbars, ClickScrollPlugin } from 'overlayscrollbars';\
|
|
1
|
+
{"version":3,"file":"scrollbar.cjs","sources":["../../../directives/scrollbar/scrollbar.js"],"sourcesContent":["import { OverlayScrollbars, ClickScrollPlugin } from 'overlayscrollbars';\n\nexport const DtScrollbarDirective = {\n name: 'dt-scrollbar-directive',\n install (Vue) {\n OverlayScrollbars.plugin(ClickScrollPlugin);\n Vue.directive('dt-scrollbar', {\n inserted (el, binding) {\n OverlayScrollbars({\n target: el,\n elements: {\n viewport: el.children[0],\n },\n }, {\n scrollbars: {\n autoHide: `${binding.arg || 'leave'}`,\n clickScroll: true,\n autoHideDelay: `${!binding.arg || binding.arg === 'leave' ? 0 : 1300}`,\n },\n });\n el.setAttribute('data-overlayscrollbars-initialize', true);\n el.classList.add('d-scrollbar');\n },\n });\n },\n};\n\nexport default DtScrollbarDirective;\n"],"names":["OverlayScrollbars","ClickScrollPlugin"],"mappings":";;;AAEY,MAAC,uBAAuB;AAAA,EAClC,MAAM;AAAA,EACN,QAAS,KAAK;AACZA,wCAAkB,OAAOC,kBAAAA,iBAAiB;AAC1C,QAAI,UAAU,gBAAgB;AAAA,MAC5B,SAAU,IAAI,SAAS;AACrBD,4CAAkB;AAAA,UAChB,QAAQ;AAAA,UACR,UAAU;AAAA,YACR,UAAU,GAAG,SAAS,CAAC;AAAA,UACxB;AAAA,QACX,GAAW;AAAA,UACD,YAAY;AAAA,YACV,UAAU,GAAG,QAAQ,OAAO,OAAO;AAAA,YACnC,aAAa;AAAA,YACb,eAAe,GAAG,CAAC,QAAQ,OAAO,QAAQ,QAAQ,UAAU,IAAI,IAAI;AAAA,UACrE;AAAA,QACX,CAAS;AACD,WAAG,aAAa,qCAAqC,IAAI;AACzD,WAAG,UAAU,IAAI,aAAa;AAAA,MAC/B;AAAA,IACP,CAAK;AAAA,EACF;AACH;AAEA,MAAA,yBAAe;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollbar.js","sources":["../../../directives/scrollbar/scrollbar.js"],"sourcesContent":["import { OverlayScrollbars, ClickScrollPlugin } from 'overlayscrollbars';\
|
|
1
|
+
{"version":3,"file":"scrollbar.js","sources":["../../../directives/scrollbar/scrollbar.js"],"sourcesContent":["import { OverlayScrollbars, ClickScrollPlugin } from 'overlayscrollbars';\n\nexport const DtScrollbarDirective = {\n name: 'dt-scrollbar-directive',\n install (Vue) {\n OverlayScrollbars.plugin(ClickScrollPlugin);\n Vue.directive('dt-scrollbar', {\n inserted (el, binding) {\n OverlayScrollbars({\n target: el,\n elements: {\n viewport: el.children[0],\n },\n }, {\n scrollbars: {\n autoHide: `${binding.arg || 'leave'}`,\n clickScroll: true,\n autoHideDelay: `${!binding.arg || binding.arg === 'leave' ? 0 : 1300}`,\n },\n });\n el.setAttribute('data-overlayscrollbars-initialize', true);\n el.classList.add('d-scrollbar');\n },\n });\n },\n};\n\nexport default DtScrollbarDirective;\n"],"names":[],"mappings":";AAEY,MAAC,uBAAuB;AAAA,EAClC,MAAM;AAAA,EACN,QAAS,KAAK;AACZ,sBAAkB,OAAO,iBAAiB;AAC1C,QAAI,UAAU,gBAAgB;AAAA,MAC5B,SAAU,IAAI,SAAS;AACrB,0BAAkB;AAAA,UAChB,QAAQ;AAAA,UACR,UAAU;AAAA,YACR,UAAU,GAAG,SAAS,CAAC;AAAA,UACxB;AAAA,QACX,GAAW;AAAA,UACD,YAAY;AAAA,YACV,UAAU,GAAG,QAAQ,OAAO,OAAO;AAAA,YACnC,aAAa;AAAA,YACb,eAAe,GAAG,CAAC,QAAQ,OAAO,QAAQ,QAAQ,UAAU,IAAI,IAAI;AAAA,UACrE;AAAA,QACX,CAAS;AACD,WAAG,aAAa,qCAAqC,IAAI;AACzD,WAAG,UAAU,IAAI,aAAa;AAAA,MAC/B;AAAA,IACP,CAAK;AAAA,EACF;AACH;AAEA,MAAA,yBAAe;"}
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
};
|
|
10
10
|
}, {}, {}, {}, {
|
|
11
11
|
close(): void;
|
|
12
|
-
}, import("vue
|
|
12
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
13
13
|
/**
|
|
14
14
|
* Label for the visually hidden close button
|
|
15
15
|
* Required if visuallyHiddenClose is set to `true`
|
|
@@ -200,7 +200,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
200
200
|
_erroredImageEventHandler(el: any): void;
|
|
201
201
|
validateProps(): void;
|
|
202
202
|
handleClick(e: any): void;
|
|
203
|
-
}, import("vue
|
|
203
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
204
204
|
/**
|
|
205
205
|
* Id of the avatar content wrapper element
|
|
206
206
|
*/
|
|
@@ -124,7 +124,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
124
|
validateProps(): void;
|
|
125
125
|
validateTypePropCombination(): void;
|
|
126
126
|
validateDecorationPropCombination(): void;
|
|
127
|
-
}, import("vue
|
|
127
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
128
128
|
/**
|
|
129
129
|
* Icon on the left side of the badge. Supports any valid icon name from the icon catalog at
|
|
130
130
|
* https://dialtone.dialpad.com/components/icon.html#icon-catalog. If type:'ai' is set, the ai icon
|
|
@@ -146,7 +146,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
146
|
_getFocusableElements(el?: object, includeNegativeTabIndex?: bool): any[];
|
|
147
147
|
focusTrappedTabPress(e: object, el: object): void;
|
|
148
148
|
};
|
|
149
|
-
}, import("vue
|
|
149
|
+
}, import("vue").ComponentOptionsMixin, "close"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
150
150
|
/**
|
|
151
151
|
* Sets an ID on the title element of the component. Useful for aria-describedby
|
|
152
152
|
* or aria-labelledby or any other reason you may need an id to refer to the title.
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
linkKind(): "" | "muted";
|
|
27
27
|
linkInverted(): boolean;
|
|
28
28
|
ariaCurrent(): "location" | undefined;
|
|
29
|
-
}, {}, import("vue
|
|
29
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
30
30
|
/**
|
|
31
31
|
* Passed through to link. If true, applies inverted styles to the link.
|
|
32
32
|
*/
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
BREADCRUMBS_INVERTED_MODIFIER: string;
|
|
27
27
|
}, {}, {
|
|
28
28
|
getBreadcrumbItemKey(index: any): string;
|
|
29
|
-
}, import("vue
|
|
29
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
30
30
|
/**
|
|
31
31
|
* A provided list of breadcrumbs. Overridden by default slot
|
|
32
32
|
*/
|
|
@@ -159,7 +159,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
159
159
|
shouldRenderIcon(): boolean | undefined;
|
|
160
160
|
isIconOnly(): boolean | undefined;
|
|
161
161
|
isVerticalIconLayout(): boolean;
|
|
162
|
-
}, import("vue
|
|
162
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "focusin" | "focusout")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
163
163
|
/**
|
|
164
164
|
* Whether the button is a circle or not.
|
|
165
165
|
* @values true, false
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
end: string;
|
|
14
14
|
'space-between': string;
|
|
15
15
|
};
|
|
16
|
-
}, {}, {}, import("vue
|
|
16
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
/**
|
|
18
18
|
* Alignment of the buttons inside the container
|
|
19
19
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, any, {}, {}, {}, import("vue
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=buttons_decorator.vue.d.ts.map
|
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
|
|
36
36
|
default: string;
|
|
37
37
|
};
|
|
38
|
-
}, {}, {}, {}, {}, import("vue
|
|
38
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
39
39
|
/**
|
|
40
40
|
* The maximum height of the card content.
|
|
41
41
|
* If given, makes content area scrollable.
|
|
@@ -150,6 +150,6 @@ declare const _default: import("vue").DefineComponent<{}, any, {}, {
|
|
|
150
150
|
computed: {
|
|
151
151
|
formattedMessages(): any;
|
|
152
152
|
};
|
|
153
|
-
}, import("vue
|
|
153
|
+
}, import("vue").ComponentOptionsMixin, ("input" | "focusin" | "focusout")[], string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
154
154
|
export default _default;
|
|
155
155
|
//# sourceMappingURL=checkbox.vue.d.ts.map
|
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
}, {}, {
|
|
45
45
|
setGroupValue(value: any, checked: any): void;
|
|
46
46
|
getMessageKey(type: any, index: any): any;
|
|
47
|
-
}, import("vue
|
|
47
|
+
}, import("vue").ComponentOptionsMixin, import("vue").DefineComponent<{
|
|
48
48
|
dataQaGroup: {
|
|
49
49
|
type: StringConstructor;
|
|
50
50
|
default: string;
|
|
@@ -90,7 +90,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
90
|
}, {
|
|
91
91
|
getMessageKey(type: any, index: any): string;
|
|
92
92
|
messageTypeClass(type: any): any;
|
|
93
|
-
}, import("vue
|
|
93
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
94
94
|
id: {
|
|
95
95
|
type: StringConstructor;
|
|
96
96
|
default(): string;
|
|
@@ -183,7 +183,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
183
183
|
setGroupValue(newValue: any): void;
|
|
184
184
|
};
|
|
185
185
|
mounted(): void;
|
|
186
|
-
}, import("vue
|
|
186
|
+
}, import("vue").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
187
187
|
dataQaGroup: {
|
|
188
188
|
type: StringConstructor;
|
|
189
189
|
default: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, any, {}, {}, {}, import("vue
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=checkboxes_decorator.vue.d.ts.map
|
|
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
chipClasses(): any[];
|
|
77
77
|
chipCloseButtonClasses(): any[];
|
|
78
78
|
onClose(): void;
|
|
79
|
-
}, import("vue
|
|
79
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "click" | "keyup")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
80
80
|
/**
|
|
81
81
|
* A set of props to be passed into the modal's close button. Requires an 'ariaLabel' property.
|
|
82
82
|
*/
|
|
@@ -3,7 +3,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
|
-
}, {}, {}, {}, {}, import("vue
|
|
6
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
text: {
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
required: true;
|