@dialpad/dialtone 9.95.0 → 9.97.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 +45 -1
- package/dist/css/dialtone-default-theme.min.css +1 -1
- package/dist/css/dialtone.css +45 -1
- package/dist/css/dialtone.min.css +1 -1
- package/dist/tokens/doc.json +15432 -15432
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/components/hovercard/hovercard.vue.cjs +41 -2
- package/dist/vue2/components/hovercard/hovercard.vue.cjs.map +1 -1
- package/dist/vue2/components/hovercard/hovercard.vue.js +41 -2
- package/dist/vue2/components/hovercard/hovercard.vue.js.map +1 -1
- package/dist/vue2/components/keyboard_shortcut/keyboard_shortcut.vue.cjs +2 -2
- package/dist/vue2/components/keyboard_shortcut/keyboard_shortcut.vue.js +2 -2
- package/dist/vue2/components/popover/popover.vue.cjs +36 -60
- package/dist/vue2/components/popover/popover.vue.cjs.map +1 -1
- package/dist/vue2/components/popover/popover.vue.js +36 -60
- package/dist/vue2/components/popover/popover.vue.js.map +1 -1
- package/dist/vue2/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.cjs.map +1 -1
- package/dist/vue2/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.js.map +1 -1
- package/dist/vue2/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.cjs.map +1 -1
- package/dist/vue2/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.js.map +1 -1
- package/dist/vue2/components/rich_text_editor/rich_text_editor.vue.cjs +160 -17
- package/dist/vue2/components/rich_text_editor/rich_text_editor.vue.cjs.map +1 -1
- package/dist/vue2/components/rich_text_editor/rich_text_editor.vue.js +161 -18
- package/dist/vue2/components/rich_text_editor/rich_text_editor.vue.js.map +1 -1
- package/dist/vue2/recipes/conversation_view/editor/editor.vue.cjs +1 -1
- package/dist/vue2/recipes/conversation_view/editor/editor.vue.cjs.map +1 -1
- package/dist/vue2/recipes/conversation_view/editor/editor.vue.js +1 -1
- package/dist/vue2/recipes/conversation_view/editor/editor.vue.js.map +1 -1
- package/dist/vue2/recipes/conversation_view/message_input/last_active_nodes.cjs +87 -0
- package/dist/vue2/recipes/conversation_view/message_input/last_active_nodes.cjs.map +1 -0
- package/dist/vue2/recipes/conversation_view/message_input/last_active_nodes.js +87 -0
- package/dist/vue2/recipes/conversation_view/message_input/last_active_nodes.js.map +1 -0
- package/dist/vue2/recipes/conversation_view/message_input/message_input.vue.cjs +229 -46
- package/dist/vue2/recipes/conversation_view/message_input/message_input.vue.cjs.map +1 -1
- package/dist/vue2/recipes/conversation_view/message_input/message_input.vue.js +229 -46
- package/dist/vue2/recipes/conversation_view/message_input/message_input.vue.js.map +1 -1
- package/dist/vue2/recipes/conversation_view/message_input/message_input_button.vue.cjs +58 -0
- package/dist/vue2/recipes/conversation_view/message_input/message_input_button.vue.cjs.map +1 -0
- package/dist/vue2/recipes/conversation_view/message_input/message_input_button.vue.js +58 -0
- package/dist/vue2/recipes/conversation_view/message_input/message_input_button.vue.js.map +1 -0
- package/dist/vue2/recipes/conversation_view/message_input/message_input_link.vue.cjs +108 -0
- package/dist/vue2/recipes/conversation_view/message_input/message_input_link.vue.cjs.map +1 -0
- package/dist/vue2/recipes/conversation_view/message_input/message_input_link.vue.js +108 -0
- package/dist/vue2/recipes/conversation_view/message_input/message_input_link.vue.js.map +1 -0
- package/dist/vue2/recipes/conversation_view/message_input/message_input_topbar.vue.cjs +106 -0
- package/dist/vue2/recipes/conversation_view/message_input/message_input_topbar.vue.cjs.map +1 -0
- package/dist/vue2/recipes/conversation_view/message_input/message_input_topbar.vue.js +106 -0
- package/dist/vue2/recipes/conversation_view/message_input/message_input_topbar.vue.js.map +1 -0
- package/dist/vue2/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/popover/popover.vue.d.ts +380 -2
- package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +37 -1
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/last_active_nodes.d.ts +3 -0
- package/dist/vue2/types/recipes/conversation_view/message_input/last_active_nodes.d.ts.map +1 -0
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +183 -60
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts +48 -0
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts.map +1 -0
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +38 -0
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -0
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +87 -0
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -0
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/components/hovercard/hovercard.vue.cjs +55 -22
- package/dist/vue3/components/hovercard/hovercard.vue.cjs.map +1 -1
- package/dist/vue3/components/hovercard/hovercard.vue.js +56 -23
- package/dist/vue3/components/hovercard/hovercard.vue.js.map +1 -1
- package/dist/vue3/components/keyboard_shortcut/keyboard_shortcut.vue.cjs +2 -2
- package/dist/vue3/components/keyboard_shortcut/keyboard_shortcut.vue.js +2 -2
- package/dist/vue3/components/popover/popover.vue.cjs +40 -64
- package/dist/vue3/components/popover/popover.vue.cjs.map +1 -1
- package/dist/vue3/components/popover/popover.vue.js +40 -64
- package/dist/vue3/components/popover/popover.vue.js.map +1 -1
- package/dist/vue3/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.cjs.map +1 -1
- package/dist/vue3/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.js.map +1 -1
- package/dist/vue3/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.cjs.map +1 -1
- package/dist/vue3/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.js.map +1 -1
- package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.cjs +223 -21
- package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.cjs.map +1 -1
- package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.js +225 -23
- package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.js.map +1 -1
- package/dist/vue3/recipes/conversation_view/editor/editor.vue.cjs +1 -0
- package/dist/vue3/recipes/conversation_view/editor/editor.vue.cjs.map +1 -1
- package/dist/vue3/recipes/conversation_view/editor/editor.vue.js +1 -0
- package/dist/vue3/recipes/conversation_view/editor/editor.vue.js.map +1 -1
- package/dist/vue3/recipes/conversation_view/message_input/last_active_nodes.cjs +87 -0
- package/dist/vue3/recipes/conversation_view/message_input/last_active_nodes.cjs.map +1 -0
- package/dist/vue3/recipes/conversation_view/message_input/last_active_nodes.js +87 -0
- package/dist/vue3/recipes/conversation_view/message_input/last_active_nodes.js.map +1 -0
- package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.cjs +279 -65
- package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.cjs.map +1 -1
- package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.js +280 -66
- package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.js.map +1 -1
- package/dist/vue3/recipes/conversation_view/message_input/message_input_button.vue.cjs +81 -0
- package/dist/vue3/recipes/conversation_view/message_input/message_input_button.vue.cjs.map +1 -0
- package/dist/vue3/recipes/conversation_view/message_input/message_input_button.vue.js +81 -0
- package/dist/vue3/recipes/conversation_view/message_input/message_input_button.vue.js.map +1 -0
- package/dist/vue3/recipes/conversation_view/message_input/message_input_link.vue.cjs +193 -0
- package/dist/vue3/recipes/conversation_view/message_input/message_input_link.vue.cjs.map +1 -0
- package/dist/vue3/recipes/conversation_view/message_input/message_input_link.vue.js +193 -0
- package/dist/vue3/recipes/conversation_view/message_input/message_input_link.vue.js.map +1 -0
- package/dist/vue3/recipes/conversation_view/message_input/message_input_topbar.vue.cjs +223 -0
- package/dist/vue3/recipes/conversation_view/message_input/message_input_topbar.vue.cjs.map +1 -0
- package/dist/vue3/recipes/conversation_view/message_input/message_input_topbar.vue.js +223 -0
- package/dist/vue3/recipes/conversation_view/message_input/message_input_topbar.vue.js.map +1 -0
- package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/popover/popover.vue.d.ts +432 -1
- package/dist/vue3/types/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +42 -1
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/last_active_nodes.d.ts +3 -0
- package/dist/vue3/types/recipes/conversation_view/message_input/last_active_nodes.d.ts.map +1 -0
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +185 -61
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts +50 -0
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts.map +1 -0
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +42 -0
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -0
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +89 -0
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -0
- package/package.json +7 -4
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { DtIconListBullet, DtIconBold, DtIconItalic, DtIconStrikethrough, DtIconListOrdered, DtIconQuote, DtIconCode, DtIconCodeBlock } from "@dialpad/dialtone-icons/vue3";
|
|
2
|
+
import DtRecipeMessageInputButton from "./message_input_button.vue.js";
|
|
3
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, renderSlot, createElementVNode } from "vue";
|
|
4
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
import DtStack from "../../../components/stack/stack.vue.js";
|
|
6
|
+
const _sfc_main = {
|
|
7
|
+
name: "DtRecipeMesageInputTopbar",
|
|
8
|
+
components: {
|
|
9
|
+
DtStack,
|
|
10
|
+
DtIconListBullet,
|
|
11
|
+
DtIconBold,
|
|
12
|
+
DtIconItalic,
|
|
13
|
+
DtIconStrikethrough,
|
|
14
|
+
DtIconListOrdered,
|
|
15
|
+
DtIconQuote,
|
|
16
|
+
DtIconCode,
|
|
17
|
+
DtIconCodeBlock,
|
|
18
|
+
DtRecipeMessageInputButton
|
|
19
|
+
},
|
|
20
|
+
props: {
|
|
21
|
+
boldButtonOptions: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => ({})
|
|
24
|
+
},
|
|
25
|
+
italicButtonOptions: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: () => ({})
|
|
28
|
+
},
|
|
29
|
+
strikeButtonOptions: {
|
|
30
|
+
type: Object,
|
|
31
|
+
default: () => ({})
|
|
32
|
+
},
|
|
33
|
+
bulletListButtonOptions: {
|
|
34
|
+
type: Object,
|
|
35
|
+
default: () => ({})
|
|
36
|
+
},
|
|
37
|
+
orderedListButtonOptions: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default: () => ({})
|
|
40
|
+
},
|
|
41
|
+
blockQuoteButtonOptions: {
|
|
42
|
+
type: Object,
|
|
43
|
+
default: () => ({})
|
|
44
|
+
},
|
|
45
|
+
codeButtonOptions: {
|
|
46
|
+
type: Object,
|
|
47
|
+
default: () => ({})
|
|
48
|
+
},
|
|
49
|
+
codeBlockButtonOptions: {
|
|
50
|
+
type: Object,
|
|
51
|
+
default: () => ({})
|
|
52
|
+
},
|
|
53
|
+
isSelectionActive: {
|
|
54
|
+
type: Function,
|
|
55
|
+
default: () => {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
emits: ["click"]
|
|
60
|
+
};
|
|
61
|
+
const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", { class: "d-recipe-message-input--button-group-divider" }, null, -1);
|
|
62
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "d-recipe-message-input--button-group-divider" }, null, -1);
|
|
63
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", { class: "d-recipe-message-input--button-group-divider" }, null, -1);
|
|
64
|
+
const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { class: "d-recipe-message-input--button-group-divider" }, null, -1);
|
|
65
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66
|
+
const _component_dt_icon_bold = resolveComponent("dt-icon-bold");
|
|
67
|
+
const _component_dt_recipe_message_input_button = resolveComponent("dt-recipe-message-input-button");
|
|
68
|
+
const _component_dt_icon_italic = resolveComponent("dt-icon-italic");
|
|
69
|
+
const _component_dt_icon_strikethrough = resolveComponent("dt-icon-strikethrough");
|
|
70
|
+
const _component_dt_icon_list_bullet = resolveComponent("dt-icon-list-bullet");
|
|
71
|
+
const _component_dt_icon_list_ordered = resolveComponent("dt-icon-list-ordered");
|
|
72
|
+
const _component_dt_icon_quote = resolveComponent("dt-icon-quote");
|
|
73
|
+
const _component_dt_icon_code = resolveComponent("dt-icon-code");
|
|
74
|
+
const _component_dt_icon_code_block = resolveComponent("dt-icon-code-block");
|
|
75
|
+
const _component_dt_stack = resolveComponent("dt-stack");
|
|
76
|
+
return openBlock(), createBlock(_component_dt_stack, {
|
|
77
|
+
direction: "row",
|
|
78
|
+
gap: "200",
|
|
79
|
+
class: "d-recipe-message-input__button-stack"
|
|
80
|
+
}, {
|
|
81
|
+
default: withCtx(() => [
|
|
82
|
+
createVNode(_component_dt_recipe_message_input_button, {
|
|
83
|
+
"aria-label": $props.boldButtonOptions.ariaLabel,
|
|
84
|
+
"tooltip-text": $props.boldButtonOptions.tooltipText,
|
|
85
|
+
"keyboard-shortcut-text": $props.boldButtonOptions.keyboardShortcutText,
|
|
86
|
+
"data-qa": "bold",
|
|
87
|
+
"is-active": $props.isSelectionActive("bold"),
|
|
88
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", "bold", $event))
|
|
89
|
+
}, {
|
|
90
|
+
icon: withCtx(() => [
|
|
91
|
+
createVNode(_component_dt_icon_bold, {
|
|
92
|
+
class: "d-recipe-message-input__button-stack-icon",
|
|
93
|
+
size: "200"
|
|
94
|
+
})
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
|
|
98
|
+
createVNode(_component_dt_recipe_message_input_button, {
|
|
99
|
+
"aria-label": $props.italicButtonOptions.ariaLabel,
|
|
100
|
+
"tooltip-text": $props.italicButtonOptions.tooltipText,
|
|
101
|
+
"keyboard-shortcut-text": $props.italicButtonOptions.keyboardShortcutText,
|
|
102
|
+
"data-qa": "italic",
|
|
103
|
+
"is-active": $props.isSelectionActive("italic"),
|
|
104
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click", "italic", $event))
|
|
105
|
+
}, {
|
|
106
|
+
icon: withCtx(() => [
|
|
107
|
+
createVNode(_component_dt_icon_italic, {
|
|
108
|
+
class: "d-recipe-message-input__button-stack-icon",
|
|
109
|
+
size: "200"
|
|
110
|
+
})
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
|
|
114
|
+
createVNode(_component_dt_recipe_message_input_button, {
|
|
115
|
+
"aria-label": $props.strikeButtonOptions.ariaLabel,
|
|
116
|
+
"tooltip-text": $props.strikeButtonOptions.tooltipText,
|
|
117
|
+
"keyboard-shortcut-text": $props.strikeButtonOptions.keyboardShortcutText,
|
|
118
|
+
"data-qa": "strikethrough",
|
|
119
|
+
"is-active": $props.isSelectionActive("strike"),
|
|
120
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("click", "strike", $event))
|
|
121
|
+
}, {
|
|
122
|
+
icon: withCtx(() => [
|
|
123
|
+
createVNode(_component_dt_icon_strikethrough, {
|
|
124
|
+
class: "d-recipe-message-input__button-stack-icon",
|
|
125
|
+
size: "200"
|
|
126
|
+
})
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
|
|
130
|
+
_hoisted_1,
|
|
131
|
+
renderSlot(_ctx.$slots, "link"),
|
|
132
|
+
_hoisted_2,
|
|
133
|
+
createVNode(_component_dt_recipe_message_input_button, {
|
|
134
|
+
"aria-label": $props.bulletListButtonOptions.ariaLabel,
|
|
135
|
+
"tooltip-text": $props.bulletListButtonOptions.tooltipText,
|
|
136
|
+
"keyboard-shortcut-text": $props.bulletListButtonOptions.keyboardShortcutText,
|
|
137
|
+
"data-qa": "bullet-list",
|
|
138
|
+
"is-active": $props.isSelectionActive("bulletList"),
|
|
139
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("click", "bulletList", $event))
|
|
140
|
+
}, {
|
|
141
|
+
icon: withCtx(() => [
|
|
142
|
+
createVNode(_component_dt_icon_list_bullet, {
|
|
143
|
+
class: "d-recipe-message-input__button-stack-icon",
|
|
144
|
+
size: "200"
|
|
145
|
+
})
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
|
|
149
|
+
createVNode(_component_dt_recipe_message_input_button, {
|
|
150
|
+
"aria-label": $props.orderedListButtonOptions.ariaLabel,
|
|
151
|
+
"tooltip-text": $props.orderedListButtonOptions.tooltipText,
|
|
152
|
+
"keyboard-shortcut-text": $props.orderedListButtonOptions.keyboardShortcutText,
|
|
153
|
+
"data-qa": "ordered-list",
|
|
154
|
+
"is-active": $props.isSelectionActive("orderedList"),
|
|
155
|
+
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("click", "orderedList", $event))
|
|
156
|
+
}, {
|
|
157
|
+
icon: withCtx(() => [
|
|
158
|
+
createVNode(_component_dt_icon_list_ordered, {
|
|
159
|
+
class: "d-recipe-message-input__button-stack-icon",
|
|
160
|
+
size: "200"
|
|
161
|
+
})
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
|
|
165
|
+
_hoisted_3,
|
|
166
|
+
createVNode(_component_dt_recipe_message_input_button, {
|
|
167
|
+
"aria-label": $props.blockQuoteButtonOptions.ariaLabel,
|
|
168
|
+
"tooltip-text": $props.blockQuoteButtonOptions.tooltipText,
|
|
169
|
+
"keyboard-shortcut-text": $props.blockQuoteButtonOptions.keyboardShortcutText,
|
|
170
|
+
"data-qa": "blockquote",
|
|
171
|
+
"is-active": $props.isSelectionActive("blockquote"),
|
|
172
|
+
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("click", "blockquote", $event))
|
|
173
|
+
}, {
|
|
174
|
+
icon: withCtx(() => [
|
|
175
|
+
createVNode(_component_dt_icon_quote, {
|
|
176
|
+
class: "d-recipe-message-input__button-stack-icon",
|
|
177
|
+
size: "200"
|
|
178
|
+
})
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
}, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
|
|
182
|
+
_hoisted_4,
|
|
183
|
+
createVNode(_component_dt_recipe_message_input_button, {
|
|
184
|
+
"aria-label": $props.codeButtonOptions.ariaLabel,
|
|
185
|
+
"tooltip-text": $props.codeButtonOptions.tooltipText,
|
|
186
|
+
"keyboard-shortcut-text": $props.codeButtonOptions.keyboardShortcutText,
|
|
187
|
+
"data-qa": "code",
|
|
188
|
+
"is-active": $props.isSelectionActive("code"),
|
|
189
|
+
onClick: _cache[6] || (_cache[6] = ($event) => _ctx.$emit("click", "code", $event))
|
|
190
|
+
}, {
|
|
191
|
+
icon: withCtx(() => [
|
|
192
|
+
createVNode(_component_dt_icon_code, {
|
|
193
|
+
class: "d-recipe-message-input__button-stack-icon",
|
|
194
|
+
size: "200"
|
|
195
|
+
})
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
|
|
199
|
+
createVNode(_component_dt_recipe_message_input_button, {
|
|
200
|
+
"aria-label": $props.codeBlockButtonOptions.ariaLabel,
|
|
201
|
+
"tooltip-text": $props.codeBlockButtonOptions.tooltipText,
|
|
202
|
+
"keyboard-shortcut-text": $props.codeBlockButtonOptions.keyboardShortcutText,
|
|
203
|
+
"data-qa": "code-block",
|
|
204
|
+
"is-active": $props.isSelectionActive("codeBlock"),
|
|
205
|
+
onClick: _cache[7] || (_cache[7] = ($event) => _ctx.$emit("click", "codeBlock", $event))
|
|
206
|
+
}, {
|
|
207
|
+
icon: withCtx(() => [
|
|
208
|
+
createVNode(_component_dt_icon_code_block, {
|
|
209
|
+
class: "d-recipe-message-input__button-stack-icon",
|
|
210
|
+
size: "200"
|
|
211
|
+
})
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"])
|
|
215
|
+
]),
|
|
216
|
+
_: 3
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
const DtRecipeMessageInputTopbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
220
|
+
export {
|
|
221
|
+
DtRecipeMessageInputTopbar as default
|
|
222
|
+
};
|
|
223
|
+
//# sourceMappingURL=message_input_topbar.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message_input_topbar.vue.js","sources":["../../../../recipes/conversation_view/message_input/message_input_topbar.vue"],"sourcesContent":["<template>\n <dt-stack\n direction=\"row\"\n gap=\"200\"\n class=\"d-recipe-message-input__button-stack\"\n >\n <dt-recipe-message-input-button\n :aria-label=\"boldButtonOptions.ariaLabel\"\n :tooltip-text=\"boldButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"boldButtonOptions.keyboardShortcutText\"\n data-qa=\"bold\"\n :is-active=\"isSelectionActive('bold')\"\n @click=\"$emit('click', 'bold', $event)\"\n >\n <template #icon>\n <dt-icon-bold\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n\n <dt-recipe-message-input-button\n :aria-label=\"italicButtonOptions.ariaLabel\"\n :tooltip-text=\"italicButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"italicButtonOptions.keyboardShortcutText\"\n data-qa=\"italic\"\n :is-active=\"isSelectionActive('italic')\"\n @click=\"$emit('click', 'italic', $event)\"\n >\n <template #icon>\n <dt-icon-italic\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n\n <dt-recipe-message-input-button\n :aria-label=\"strikeButtonOptions.ariaLabel\"\n :tooltip-text=\"strikeButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"strikeButtonOptions.keyboardShortcutText\"\n data-qa=\"strikethrough\"\n :is-active=\"isSelectionActive('strike')\"\n @click=\"$emit('click', 'strike', $event)\"\n >\n <template #icon>\n <dt-icon-strikethrough\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n <div class=\"d-recipe-message-input--button-group-divider\" />\n\n <!-- @slot special slot for link button, since links require a custom dialog -->\n <slot name=\"link\" />\n\n <div class=\"d-recipe-message-input--button-group-divider\" />\n\n <dt-recipe-message-input-button\n :aria-label=\"bulletListButtonOptions.ariaLabel\"\n :tooltip-text=\"bulletListButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"bulletListButtonOptions.keyboardShortcutText\"\n data-qa=\"bullet-list\"\n :is-active=\"isSelectionActive('bulletList')\"\n @click=\"$emit('click', 'bulletList', $event)\"\n >\n <template #icon>\n <dt-icon-list-bullet\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n\n <dt-recipe-message-input-button\n :aria-label=\"orderedListButtonOptions.ariaLabel\"\n :tooltip-text=\"orderedListButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"orderedListButtonOptions.keyboardShortcutText\"\n data-qa=\"ordered-list\"\n :is-active=\"isSelectionActive('orderedList')\"\n @click=\"$emit('click', 'orderedList', $event)\"\n >\n <template #icon>\n <dt-icon-list-ordered\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n <div class=\"d-recipe-message-input--button-group-divider\" />\n <dt-recipe-message-input-button\n :aria-label=\"blockQuoteButtonOptions.ariaLabel\"\n :tooltip-text=\"blockQuoteButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"blockQuoteButtonOptions.keyboardShortcutText\"\n data-qa=\"blockquote\"\n :is-active=\"isSelectionActive('blockquote')\"\n @click=\"$emit('click', 'blockquote', $event)\"\n >\n <template #icon>\n <dt-icon-quote\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n\n <div class=\"d-recipe-message-input--button-group-divider\" />\n\n <dt-recipe-message-input-button\n :aria-label=\"codeButtonOptions.ariaLabel\"\n :tooltip-text=\"codeButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"codeButtonOptions.keyboardShortcutText\"\n data-qa=\"code\"\n :is-active=\"isSelectionActive('code')\"\n @click=\"$emit('click', 'code', $event)\"\n >\n <template #icon>\n <dt-icon-code\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n <dt-recipe-message-input-button\n :aria-label=\"codeBlockButtonOptions.ariaLabel\"\n :tooltip-text=\"codeBlockButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"codeBlockButtonOptions.keyboardShortcutText\"\n data-qa=\"code-block\"\n :is-active=\"isSelectionActive('codeBlock')\"\n @click=\"$emit('click', 'codeBlock', $event)\"\n >\n <template #icon>\n <dt-icon-code-block\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n </dt-stack>\n</template>\n\n<script>\nimport { DtStack } from '@/components/stack';\n\nimport {\n DtIconListBullet, DtIconBold, DtIconItalic, DtIconStrikethrough,\n DtIconListOrdered, DtIconQuote, DtIconCode, DtIconCodeBlock,\n} from '@dialpad/dialtone-icons/vue3';\n\nimport DtRecipeMessageInputButton from './message_input_button.vue';\nexport default {\n name: 'DtRecipeMesageInputTopbar',\n components: {\n DtStack,\n DtIconListBullet,\n DtIconBold,\n DtIconItalic,\n DtIconStrikethrough,\n DtIconListOrdered,\n DtIconQuote,\n DtIconCode,\n DtIconCodeBlock,\n DtRecipeMessageInputButton,\n },\n\n props: {\n boldButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n italicButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n strikeButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n bulletListButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n orderedListButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n blockQuoteButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n codeButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n codeBlockButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n isSelectionActive: {\n type: Function,\n default: () => {},\n },\n },\n\n emits: ['click'],\n};\n</script>\n"],"names":["_createElementVNode","_createBlock","_withCtx","_createVNode","_renderSlot"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hovercard.vue.d.ts","sourceRoot":"","sources":["../../../../components/hovercard/hovercard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hovercard.vue.d.ts","sourceRoot":"","sources":["../../../../components/hovercard/hovercard.vue"],"names":[],"mappings":"AAgDA;;;;;;;qBAutB6B,GAAG;qBACF,GAAG;2BACG,GAAG;2BACH,GAAG"}
|
|
@@ -1,3 +1,434 @@
|
|
|
1
|
-
|
|
1
|
+
import { hasSlotContent } from '../../common/utils';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
open: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: null;
|
|
6
|
+
};
|
|
7
|
+
openOnContext: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
elementType: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
transition: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
role: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
validator: (role: unknown) => boolean;
|
|
23
|
+
};
|
|
24
|
+
ariaLabelledby: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
ariaLabel: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: null;
|
|
31
|
+
};
|
|
32
|
+
closeButtonProps: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
default: () => {};
|
|
35
|
+
};
|
|
36
|
+
padding: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
validator: (padding: unknown) => boolean;
|
|
40
|
+
};
|
|
41
|
+
contentClass: {
|
|
42
|
+
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
contentWidth: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
validator: (contentWidth: unknown) => boolean;
|
|
49
|
+
};
|
|
50
|
+
contentAppear: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: null;
|
|
53
|
+
};
|
|
54
|
+
contentTabindex: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
externalAnchor: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
id: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default(): string;
|
|
65
|
+
};
|
|
66
|
+
offset: {
|
|
67
|
+
type: ArrayConstructor;
|
|
68
|
+
default: () => number[];
|
|
69
|
+
};
|
|
70
|
+
hideOnClick: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
modal: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
fallbackPlacements: {
|
|
79
|
+
type: ArrayConstructor;
|
|
80
|
+
default: () => string[];
|
|
81
|
+
};
|
|
82
|
+
placement: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
tether: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
sticky: {
|
|
91
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
92
|
+
default: boolean;
|
|
93
|
+
validator: (sticky: unknown) => boolean;
|
|
94
|
+
};
|
|
95
|
+
maxHeight: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
maxWidth: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
showCloseButton: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
headerClass: {
|
|
108
|
+
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
footerClass: {
|
|
112
|
+
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
dialogClass: {
|
|
116
|
+
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
initialFocusElement: {
|
|
120
|
+
type: ({
|
|
121
|
+
new (): HTMLElement;
|
|
122
|
+
prototype: HTMLElement;
|
|
123
|
+
} | StringConstructor)[];
|
|
124
|
+
default: string;
|
|
125
|
+
validator: (initialFocusElement: unknown) => any;
|
|
126
|
+
};
|
|
127
|
+
openWithArrowKeys: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
appendTo: {
|
|
132
|
+
type: ({
|
|
133
|
+
new (): HTMLElement;
|
|
134
|
+
prototype: HTMLElement;
|
|
135
|
+
} | StringConstructor)[];
|
|
136
|
+
default: string;
|
|
137
|
+
validator: (appendTo: unknown) => boolean;
|
|
138
|
+
};
|
|
139
|
+
}, any, {
|
|
140
|
+
POPOVER_PADDING_CLASSES: {
|
|
141
|
+
none: undefined;
|
|
142
|
+
small: string;
|
|
143
|
+
medium: string;
|
|
144
|
+
large: string;
|
|
145
|
+
};
|
|
146
|
+
POPOVER_HEADER_FOOTER_PADDING_CLASSES: {
|
|
147
|
+
none: undefined;
|
|
148
|
+
small: string;
|
|
149
|
+
medium: string;
|
|
150
|
+
large: string;
|
|
151
|
+
};
|
|
152
|
+
intersectionObserver: null;
|
|
153
|
+
isOutsideViewport: boolean;
|
|
154
|
+
isOpen: boolean;
|
|
155
|
+
toAppear: boolean;
|
|
156
|
+
anchorEl: null;
|
|
157
|
+
popoverContentEl: null;
|
|
158
|
+
hasSlotContent: typeof hasSlotContent;
|
|
159
|
+
}, {
|
|
160
|
+
popoverListeners(): {
|
|
161
|
+
keydown: (event: any) => void;
|
|
162
|
+
'after-leave': (event: any) => void;
|
|
163
|
+
'after-enter': (event: any) => void;
|
|
164
|
+
};
|
|
165
|
+
calculatedMaxHeight(): "calc(100vh - var(--dt-space-300))";
|
|
166
|
+
labelledBy(): never;
|
|
167
|
+
}, {
|
|
168
|
+
hasIntersectedViewport(entries: any): void;
|
|
169
|
+
popperOptions(): {
|
|
170
|
+
modifiers: ({
|
|
171
|
+
name: string;
|
|
172
|
+
options: {
|
|
173
|
+
fallbackPlacements: any[];
|
|
174
|
+
boundary: string;
|
|
175
|
+
altAxis?: undefined;
|
|
176
|
+
tether?: undefined;
|
|
177
|
+
};
|
|
178
|
+
enabled?: undefined;
|
|
179
|
+
} | {
|
|
180
|
+
name: string;
|
|
181
|
+
enabled: boolean;
|
|
182
|
+
options?: undefined;
|
|
183
|
+
} | {
|
|
184
|
+
name: string;
|
|
185
|
+
options: {
|
|
186
|
+
altAxis: boolean;
|
|
187
|
+
tether: boolean;
|
|
188
|
+
fallbackPlacements?: undefined;
|
|
189
|
+
boundary?: undefined;
|
|
190
|
+
};
|
|
191
|
+
enabled?: undefined;
|
|
192
|
+
})[];
|
|
193
|
+
};
|
|
194
|
+
validateProps(): void;
|
|
195
|
+
calculateAnchorZindex(): 300 | 650;
|
|
196
|
+
defaultToggleOpen(e: any): void;
|
|
197
|
+
onContext(event: any): Promise<void>;
|
|
198
|
+
toggleOpen(): void;
|
|
199
|
+
onArrowKeyPress(e: any): void;
|
|
200
|
+
addEventListeners(): void;
|
|
201
|
+
removeEventListeners(): void;
|
|
202
|
+
closePopover(): void;
|
|
203
|
+
preventScrolling(): void;
|
|
204
|
+
enableScrolling(): void;
|
|
205
|
+
removeReferences(): void;
|
|
206
|
+
onShow(): Promise<void>;
|
|
207
|
+
onLeaveTransitionComplete(): Promise<void>;
|
|
208
|
+
onEnterTransitionComplete(): Promise<void>;
|
|
209
|
+
focusInitialElement(): void;
|
|
210
|
+
focusInitialElementById(): void;
|
|
211
|
+
onResize(): void;
|
|
212
|
+
onClickOutside(): void;
|
|
213
|
+
onKeydown(e: any): void;
|
|
214
|
+
setPopoverContentAnchorWidth(): Promise<void>;
|
|
215
|
+
focusFirstElementIfNeeded(domEl: any): void;
|
|
216
|
+
getReferenceClientRect(error: any): any;
|
|
217
|
+
initTippyInstance(): void;
|
|
218
|
+
onMouseEnter(): void;
|
|
219
|
+
onMouseLeave(): void;
|
|
220
|
+
onMouseEnterAnchor(): void;
|
|
221
|
+
onMouseLeaveAnchor(): void;
|
|
222
|
+
}, {
|
|
223
|
+
props: {
|
|
224
|
+
visuallyHiddenClose: {
|
|
225
|
+
type: BooleanConstructor;
|
|
226
|
+
default: boolean;
|
|
227
|
+
};
|
|
228
|
+
visuallyHiddenCloseLabel: {
|
|
229
|
+
type: StringConstructor;
|
|
230
|
+
default: null;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
watch: {
|
|
234
|
+
$props: {
|
|
235
|
+
immediate: boolean;
|
|
236
|
+
deep: boolean;
|
|
237
|
+
handler(): void;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
computed: {
|
|
241
|
+
showVisuallyHiddenClose(): any;
|
|
242
|
+
};
|
|
243
|
+
methods: {
|
|
244
|
+
validateVisuallyHiddenCloseProps(): void;
|
|
245
|
+
};
|
|
246
|
+
} | {
|
|
247
|
+
methods: {
|
|
248
|
+
getFirstFocusableElement(el: object): Promise<any>;
|
|
249
|
+
focusFirstElement(el?: object): Promise<void>;
|
|
250
|
+
focusElementById(elementId: any): Promise<void>;
|
|
251
|
+
_getFirstFocusElement(focusableElements: any): any;
|
|
252
|
+
_getFocusableElements(el?: object, includeNegativeTabIndex?: bool): any[];
|
|
253
|
+
focusTrappedTabPress(e: object, el: object): void;
|
|
254
|
+
};
|
|
255
|
+
}, import('vue').ComponentOptionsMixin, ("keydown" | "update:open" | "opened" | "mouseenter-popover" | "mouseleave-popover" | "mouseenter-popover-anchor" | "mouseleave-popover-anchor")[], "keydown" | "update:open" | "opened" | "mouseenter-popover" | "mouseleave-popover" | "mouseenter-popover-anchor" | "mouseleave-popover-anchor", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
256
|
+
open: {
|
|
257
|
+
type: BooleanConstructor;
|
|
258
|
+
default: null;
|
|
259
|
+
};
|
|
260
|
+
openOnContext: {
|
|
261
|
+
type: BooleanConstructor;
|
|
262
|
+
default: boolean;
|
|
263
|
+
};
|
|
264
|
+
elementType: {
|
|
265
|
+
type: StringConstructor;
|
|
266
|
+
default: string;
|
|
267
|
+
};
|
|
268
|
+
transition: {
|
|
269
|
+
type: StringConstructor;
|
|
270
|
+
default: string;
|
|
271
|
+
};
|
|
272
|
+
role: {
|
|
273
|
+
type: StringConstructor;
|
|
274
|
+
default: string;
|
|
275
|
+
validator: (role: unknown) => boolean;
|
|
276
|
+
};
|
|
277
|
+
ariaLabelledby: {
|
|
278
|
+
type: StringConstructor;
|
|
279
|
+
default: null;
|
|
280
|
+
};
|
|
281
|
+
ariaLabel: {
|
|
282
|
+
type: StringConstructor;
|
|
283
|
+
default: null;
|
|
284
|
+
};
|
|
285
|
+
closeButtonProps: {
|
|
286
|
+
type: ObjectConstructor;
|
|
287
|
+
default: () => {};
|
|
288
|
+
};
|
|
289
|
+
padding: {
|
|
290
|
+
type: StringConstructor;
|
|
291
|
+
default: string;
|
|
292
|
+
validator: (padding: unknown) => boolean;
|
|
293
|
+
};
|
|
294
|
+
contentClass: {
|
|
295
|
+
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
296
|
+
default: string;
|
|
297
|
+
};
|
|
298
|
+
contentWidth: {
|
|
299
|
+
type: StringConstructor;
|
|
300
|
+
default: string;
|
|
301
|
+
validator: (contentWidth: unknown) => boolean;
|
|
302
|
+
};
|
|
303
|
+
contentAppear: {
|
|
304
|
+
type: BooleanConstructor;
|
|
305
|
+
default: null;
|
|
306
|
+
};
|
|
307
|
+
contentTabindex: {
|
|
308
|
+
type: NumberConstructor;
|
|
309
|
+
default: number;
|
|
310
|
+
};
|
|
311
|
+
externalAnchor: {
|
|
312
|
+
type: StringConstructor;
|
|
313
|
+
default: string;
|
|
314
|
+
};
|
|
315
|
+
id: {
|
|
316
|
+
type: StringConstructor;
|
|
317
|
+
default(): string;
|
|
318
|
+
};
|
|
319
|
+
offset: {
|
|
320
|
+
type: ArrayConstructor;
|
|
321
|
+
default: () => number[];
|
|
322
|
+
};
|
|
323
|
+
hideOnClick: {
|
|
324
|
+
type: BooleanConstructor;
|
|
325
|
+
default: boolean;
|
|
326
|
+
};
|
|
327
|
+
modal: {
|
|
328
|
+
type: BooleanConstructor;
|
|
329
|
+
default: boolean;
|
|
330
|
+
};
|
|
331
|
+
fallbackPlacements: {
|
|
332
|
+
type: ArrayConstructor;
|
|
333
|
+
default: () => string[];
|
|
334
|
+
};
|
|
335
|
+
placement: {
|
|
336
|
+
type: StringConstructor;
|
|
337
|
+
default: string;
|
|
338
|
+
};
|
|
339
|
+
tether: {
|
|
340
|
+
type: BooleanConstructor;
|
|
341
|
+
default: boolean;
|
|
342
|
+
};
|
|
343
|
+
sticky: {
|
|
344
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
345
|
+
default: boolean;
|
|
346
|
+
validator: (sticky: unknown) => boolean;
|
|
347
|
+
};
|
|
348
|
+
maxHeight: {
|
|
349
|
+
type: StringConstructor;
|
|
350
|
+
default: string;
|
|
351
|
+
};
|
|
352
|
+
maxWidth: {
|
|
353
|
+
type: StringConstructor;
|
|
354
|
+
default: string;
|
|
355
|
+
};
|
|
356
|
+
showCloseButton: {
|
|
357
|
+
type: BooleanConstructor;
|
|
358
|
+
default: boolean;
|
|
359
|
+
};
|
|
360
|
+
headerClass: {
|
|
361
|
+
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
362
|
+
default: string;
|
|
363
|
+
};
|
|
364
|
+
footerClass: {
|
|
365
|
+
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
366
|
+
default: string;
|
|
367
|
+
};
|
|
368
|
+
dialogClass: {
|
|
369
|
+
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
370
|
+
default: string;
|
|
371
|
+
};
|
|
372
|
+
initialFocusElement: {
|
|
373
|
+
type: ({
|
|
374
|
+
new (): HTMLElement;
|
|
375
|
+
prototype: HTMLElement;
|
|
376
|
+
} | StringConstructor)[];
|
|
377
|
+
default: string;
|
|
378
|
+
validator: (initialFocusElement: unknown) => any;
|
|
379
|
+
};
|
|
380
|
+
openWithArrowKeys: {
|
|
381
|
+
type: BooleanConstructor;
|
|
382
|
+
default: boolean;
|
|
383
|
+
};
|
|
384
|
+
appendTo: {
|
|
385
|
+
type: ({
|
|
386
|
+
new (): HTMLElement;
|
|
387
|
+
prototype: HTMLElement;
|
|
388
|
+
} | StringConstructor)[];
|
|
389
|
+
default: string;
|
|
390
|
+
validator: (appendTo: unknown) => boolean;
|
|
391
|
+
};
|
|
392
|
+
}>> & {
|
|
393
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
394
|
+
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
395
|
+
onOpened?: ((...args: any[]) => any) | undefined;
|
|
396
|
+
"onMouseenter-popover"?: ((...args: any[]) => any) | undefined;
|
|
397
|
+
"onMouseleave-popover"?: ((...args: any[]) => any) | undefined;
|
|
398
|
+
"onMouseenter-popover-anchor"?: ((...args: any[]) => any) | undefined;
|
|
399
|
+
"onMouseleave-popover-anchor"?: ((...args: any[]) => any) | undefined;
|
|
400
|
+
}, {
|
|
401
|
+
id: string;
|
|
402
|
+
role: string;
|
|
403
|
+
open: boolean;
|
|
404
|
+
ariaLabel: string;
|
|
405
|
+
transition: string;
|
|
406
|
+
closeButtonProps: Record<string, any>;
|
|
407
|
+
dialogClass: string | Record<string, any> | unknown[];
|
|
408
|
+
maxHeight: string;
|
|
409
|
+
contentClass: string | Record<string, any> | unknown[];
|
|
410
|
+
headerClass: string | Record<string, any> | unknown[];
|
|
411
|
+
footerClass: string | Record<string, any> | unknown[];
|
|
412
|
+
elementType: string;
|
|
413
|
+
maxWidth: string;
|
|
414
|
+
offset: unknown[];
|
|
415
|
+
fallbackPlacements: unknown[];
|
|
416
|
+
tether: boolean;
|
|
417
|
+
appendTo: string | HTMLElement;
|
|
418
|
+
hideOnClick: boolean;
|
|
419
|
+
placement: string;
|
|
420
|
+
sticky: string | boolean;
|
|
421
|
+
externalAnchor: string;
|
|
422
|
+
showCloseButton: boolean;
|
|
423
|
+
contentAppear: boolean;
|
|
424
|
+
modal: boolean;
|
|
425
|
+
openOnContext: boolean;
|
|
426
|
+
ariaLabelledby: string;
|
|
427
|
+
padding: string;
|
|
428
|
+
contentWidth: string;
|
|
429
|
+
contentTabindex: number;
|
|
430
|
+
initialFocusElement: string | HTMLElement;
|
|
431
|
+
openWithArrowKeys: boolean;
|
|
432
|
+
}, {}>;
|
|
2
433
|
export default _default;
|
|
3
434
|
//# sourceMappingURL=popover.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.vue.d.ts","sourceRoot":"","sources":["../../../../components/popover/popover.vue"],"names":[],"mappings":"AA6HA
|
|
1
|
+
{"version":3,"file":"popover.vue.d.ts","sourceRoot":"","sources":["../../../../components/popover/popover.vue"],"names":[],"mappings":"AA6HA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAqjC6H,gBAAgB"}
|