tuikit-atomicx-vue3 4.5.0 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PopoverTrigger-L8abAry7.js → PopoverPortal-DghpKKm8.js} +91 -136
- package/dist/PopoverTrigger-BajjNkGO.js +54 -0
- package/dist/{PopperContent-XdhqL8Y2.js → PopperContent-SLoFuK7k.js} +6 -6
- package/dist/{Teleport-CSEuZbpM.js → Teleport-DFrneqLM.js} +4 -4
- package/dist/baseComp/Modal/Modal.js +3 -3
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +10 -9
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +16 -15
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +62 -40
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +29 -27
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +27 -23
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +1 -1
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +67 -65
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +32 -30
- package/dist/components/ConversationList/ConversationPreview/utils.d.ts +2 -2
- package/dist/components/ConversationList/ConversationPreview/utils.js +81 -35
- package/dist/components/ConversationList/i18n/en-US.d.ts +10 -1
- package/dist/components/ConversationList/i18n/en-US.js +11 -2
- package/dist/components/ConversationList/i18n/zh-CN.d.ts +10 -1
- package/dist/components/ConversationList/i18n/zh-CN.js +11 -2
- package/dist/components/LiveScenePanel/index.js +10 -9
- package/dist/components/MessageInput/AttachmentPicker/index.js +10 -9
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +17 -16
- package/dist/components/MessageInput/QuotedMessagePreview/index.js +35 -35
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +13 -12
- package/dist/components/MessageInput/TextEditor/EditorCore.js +54 -89
- package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +229 -0
- package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue.d.ts +15 -0
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +1 -1
- package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.d.ts +1 -0
- package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +22 -0
- package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.d.ts +3 -0
- package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +15 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +2 -2
- package/dist/components/MessageInput/TextEditor/extensions/index.d.ts +8 -0
- package/dist/components/MessageInput/TextEditor/extensions/index.js +12 -0
- package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.d.ts +5 -0
- package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +330 -0
- package/dist/components/MessageInput/TextEditor/index.js +62 -62
- package/dist/components/MessageInput/i18n/en-US.d.ts +3 -0
- package/dist/components/MessageInput/i18n/en-US.js +4 -1
- package/dist/components/MessageInput/i18n/index.d.ts +6 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +3 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +4 -1
- package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +119 -89
- package/dist/components/MessageList/Message/ImageMessage/ImagePreview.js +142 -0
- package/dist/components/MessageList/Message/ImageMessage/ImagePreview.vue.d.ts +20 -0
- package/dist/components/MessageList/Message/Message.vue.d.ts +8 -0
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +69 -58
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +8 -0
- package/dist/components/MessageList/Message/index.js +8 -4
- package/dist/components/MessageList/MessageList.js +98 -90
- package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
- package/dist/components/MessageList/index.d.ts +21 -3
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +6 -6
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.vue.d.ts +1 -1
- package/dist/index-BvFYOUyz.js +2936 -0
- package/dist/{index-Do-2CngU.js → index-C8Jw_xE4.js} +1621 -1731
- package/dist/{index-7vNB_Vx8.js → index-CiYL_XsE.js} +1 -1
- package/dist/index-CzCDLp99.js +2174 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +103 -103
- package/dist/states/MessageActionState/MessageActionState.js +83 -223
- package/dist/states/MessageInputState/MessageInputState.js +115 -83
- package/dist/states/MessageInputState/type.d.ts +36 -10
- package/dist/states/MessageInputState/utils.d.ts +1 -5
- package/dist/states/MessageListState/MessageListState.d.ts +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/{chat/index.d.ts → subEntry/chat/chat.d.ts} +2112 -2087
- package/dist/subEntry/chat/chat.js +89 -0
- package/dist/subEntry/chat/index.d.ts +11 -0
- package/dist/subEntry/chat/index.js +81 -0
- package/dist/{chat → subEntry/chat}/server.js +4 -4
- package/dist/{useId-CtirfF0W.js → useId-D5WE76CM.js} +1 -1
- package/dist/{utils-DaB7eSu5.js → utils-CttDpxqz.js} +1 -1
- package/package.json +8 -6
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +8 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +32 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +3 -2
- package/src/components/ConversationList/ConversationPreview/utils.ts +98 -28
- package/src/components/ConversationList/i18n/en-US.ts +10 -1
- package/src/components/ConversationList/i18n/zh-CN.ts +10 -1
- package/src/components/LiveScenePanel/index.vue +1 -0
- package/src/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.vue +19 -22
- package/src/components/MessageInput/TextEditor/Editor.scss +25 -0
- package/src/components/MessageInput/TextEditor/EditorCore.ts +79 -99
- package/src/components/MessageInput/TextEditor/TextEditor.vue +64 -68
- package/src/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue +449 -0
- package/src/components/MessageInput/TextEditor/extensions/emojiExtension.ts +22 -0
- package/src/components/MessageInput/TextEditor/extensions/enterKeyExtension.ts +22 -0
- package/src/components/MessageInput/TextEditor/extensions/index.ts +8 -0
- package/src/components/MessageInput/TextEditor/extensions/mentionExtension.ts +87 -0
- package/src/components/MessageInput/i18n/en-US.ts +3 -0
- package/src/components/MessageInput/i18n/zh-CN.ts +3 -0
- package/src/components/MessageList/Message/ImageMessage/ImageMessage.vue +49 -0
- package/src/components/MessageList/Message/ImageMessage/ImagePreview.vue +344 -0
- package/src/components/MessageList/Message/Message.vue +6 -0
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -1
- package/src/components/MessageList/MessageList.vue +36 -14
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +30 -31
- package/src/index.ts +1 -1
- package/src/{chat/index.ts → subEntry/chat/chat.ts} +25 -18
- package/src/subEntry/chat/index.ts +13 -0
- package/src/{chat → subEntry/chat}/server.ts +3 -3
- package/dist/chat/index.js +0 -59
- package/dist/index-ZILx4LYk.js +0 -4826
- package/dist/states/SearchState.d.ts +0 -314
- /package/dist/{chat → subEntry/chat}/server.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import { defineComponent as m, toRefs as
|
|
5
|
-
const [
|
|
6
|
-
var
|
|
1
|
+
import { a as D, c as k, r as N, u as B, F as E, D as A, b as R, d as I, e as M, T as $ } from "./Teleport-DFrneqLM.js";
|
|
2
|
+
import { a as K, u as L, b as j, c as z, d as w } from "./PopperContent-SLoFuK7k.js";
|
|
3
|
+
import { u as T } from "./useId-D5WE76CM.js";
|
|
4
|
+
import { defineComponent as m, toRefs as U, ref as P, createBlock as c, openBlock as v, unref as e, withCtx as f, renderSlot as q, createVNode as C, mergeProps as _, withModifiers as F, normalizeProps as x, guardReactiveProps as W } from "vue";
|
|
5
|
+
const [b, V] = k("PopoverRoot");
|
|
6
|
+
var G = /* @__PURE__ */ m({
|
|
7
7
|
__name: "PopoverRoot",
|
|
8
8
|
props: {
|
|
9
9
|
defaultOpen: {
|
|
@@ -23,33 +23,33 @@ var X = /* @__PURE__ */ m({
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
emits: ["update:open"],
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
defaultValue:
|
|
29
|
-
passive:
|
|
30
|
-
}),
|
|
31
|
-
return
|
|
26
|
+
setup(d, { emit: p }) {
|
|
27
|
+
const n = d, r = p, { modal: i } = U(n), a = D(n, "open", r, {
|
|
28
|
+
defaultValue: n.defaultOpen,
|
|
29
|
+
passive: n.open === void 0
|
|
30
|
+
}), l = P(), u = P(!1);
|
|
31
|
+
return V({
|
|
32
32
|
contentId: "",
|
|
33
33
|
triggerId: "",
|
|
34
|
-
modal:
|
|
35
|
-
open:
|
|
36
|
-
onOpenChange: (
|
|
37
|
-
|
|
34
|
+
modal: i,
|
|
35
|
+
open: a,
|
|
36
|
+
onOpenChange: (t) => {
|
|
37
|
+
a.value = t;
|
|
38
38
|
},
|
|
39
39
|
onOpenToggle: () => {
|
|
40
|
-
|
|
40
|
+
a.value = !a.value;
|
|
41
41
|
},
|
|
42
|
-
triggerElement:
|
|
43
|
-
hasCustomAnchor:
|
|
44
|
-
}), (
|
|
45
|
-
default: f(() => [
|
|
46
|
-
open: e(
|
|
47
|
-
close: () =>
|
|
42
|
+
triggerElement: l,
|
|
43
|
+
hasCustomAnchor: u
|
|
44
|
+
}), (t, o) => (v(), c(e(K), null, {
|
|
45
|
+
default: f(() => [q(t.$slots, "default", {
|
|
46
|
+
open: e(a),
|
|
47
|
+
close: () => a.value = !1
|
|
48
48
|
})]),
|
|
49
49
|
_: 3
|
|
50
50
|
}));
|
|
51
51
|
}
|
|
52
|
-
}),
|
|
52
|
+
}), se = G, H = /* @__PURE__ */ m({
|
|
53
53
|
__name: "PopoverContentImpl",
|
|
54
54
|
props: {
|
|
55
55
|
trapFocus: {
|
|
@@ -145,29 +145,29 @@ var X = /* @__PURE__ */ m({
|
|
|
145
145
|
"openAutoFocus",
|
|
146
146
|
"closeAutoFocus"
|
|
147
147
|
],
|
|
148
|
-
setup(
|
|
149
|
-
const
|
|
150
|
-
return
|
|
148
|
+
setup(d, { emit: p }) {
|
|
149
|
+
const n = d, r = p, i = L(N(n, "trapFocus", "disableOutsidePointerEvents")), { forwardRef: a } = B(), l = b();
|
|
150
|
+
return j(), (u, t) => (v(), c(e(E), {
|
|
151
151
|
"as-child": "",
|
|
152
152
|
loop: "",
|
|
153
|
-
trapped:
|
|
154
|
-
onMountAutoFocus:
|
|
155
|
-
onUnmountAutoFocus:
|
|
153
|
+
trapped: u.trapFocus,
|
|
154
|
+
onMountAutoFocus: t[5] || (t[5] = (o) => r("openAutoFocus", o)),
|
|
155
|
+
onUnmountAutoFocus: t[6] || (t[6] = (o) => r("closeAutoFocus", o))
|
|
156
156
|
}, {
|
|
157
|
-
default: f(() => [C(e(
|
|
157
|
+
default: f(() => [C(e(A), {
|
|
158
158
|
"as-child": "",
|
|
159
|
-
"disable-outside-pointer-events":
|
|
160
|
-
onPointerDownOutside:
|
|
161
|
-
onInteractOutside:
|
|
162
|
-
onEscapeKeyDown:
|
|
163
|
-
onFocusOutside:
|
|
164
|
-
onDismiss:
|
|
159
|
+
"disable-outside-pointer-events": u.disableOutsidePointerEvents,
|
|
160
|
+
onPointerDownOutside: t[0] || (t[0] = (o) => r("pointerDownOutside", o)),
|
|
161
|
+
onInteractOutside: t[1] || (t[1] = (o) => r("interactOutside", o)),
|
|
162
|
+
onEscapeKeyDown: t[2] || (t[2] = (o) => r("escapeKeyDown", o)),
|
|
163
|
+
onFocusOutside: t[3] || (t[3] = (o) => r("focusOutside", o)),
|
|
164
|
+
onDismiss: t[4] || (t[4] = (o) => e(l).onOpenChange(!1))
|
|
165
165
|
}, {
|
|
166
|
-
default: f(() => [C(e(
|
|
167
|
-
id: e(
|
|
168
|
-
ref: e(
|
|
169
|
-
"data-state": e(
|
|
170
|
-
"aria-labelledby": e(
|
|
166
|
+
default: f(() => [C(e(z), _(e(i), {
|
|
167
|
+
id: e(l).contentId,
|
|
168
|
+
ref: e(a),
|
|
169
|
+
"data-state": e(l).open.value ? "open" : "closed",
|
|
170
|
+
"aria-labelledby": e(l).triggerId,
|
|
171
171
|
style: {
|
|
172
172
|
"--reka-popover-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
173
173
|
"--reka-popover-content-available-width": "var(--reka-popper-available-width)",
|
|
@@ -177,7 +177,7 @@ var X = /* @__PURE__ */ m({
|
|
|
177
177
|
},
|
|
178
178
|
role: "dialog"
|
|
179
179
|
}), {
|
|
180
|
-
default: f(() => [
|
|
180
|
+
default: f(() => [q(u.$slots, "default")]),
|
|
181
181
|
_: 3
|
|
182
182
|
}, 16, [
|
|
183
183
|
"id",
|
|
@@ -189,7 +189,7 @@ var X = /* @__PURE__ */ m({
|
|
|
189
189
|
_: 3
|
|
190
190
|
}, 8, ["trapped"]));
|
|
191
191
|
}
|
|
192
|
-
}),
|
|
192
|
+
}), h = H, J = /* @__PURE__ */ m({
|
|
193
193
|
__name: "PopoverContentModal",
|
|
194
194
|
props: {
|
|
195
195
|
side: {
|
|
@@ -281,31 +281,31 @@ var X = /* @__PURE__ */ m({
|
|
|
281
281
|
"openAutoFocus",
|
|
282
282
|
"closeAutoFocus"
|
|
283
283
|
],
|
|
284
|
-
setup(
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
const
|
|
288
|
-
return
|
|
289
|
-
ref: e(
|
|
290
|
-
"trap-focus": e(
|
|
284
|
+
setup(d, { emit: p }) {
|
|
285
|
+
const n = d, r = p, i = b(), a = P(!1);
|
|
286
|
+
R(!0);
|
|
287
|
+
const l = w(n, r), { forwardRef: u, currentElement: t } = B();
|
|
288
|
+
return I(t), (o, s) => (v(), c(h, _(e(l), {
|
|
289
|
+
ref: e(u),
|
|
290
|
+
"trap-focus": e(i).open.value,
|
|
291
291
|
"disable-outside-pointer-events": "",
|
|
292
|
-
onCloseAutoFocus:
|
|
293
|
-
var
|
|
294
|
-
|
|
292
|
+
onCloseAutoFocus: s[0] || (s[0] = F((y) => {
|
|
293
|
+
var g;
|
|
294
|
+
r("closeAutoFocus", y), a.value || (g = e(i).triggerElement.value) == null || g.focus();
|
|
295
295
|
}, ["prevent"])),
|
|
296
|
-
onPointerDownOutside:
|
|
297
|
-
|
|
298
|
-
const
|
|
299
|
-
|
|
296
|
+
onPointerDownOutside: s[1] || (s[1] = (y) => {
|
|
297
|
+
r("pointerDownOutside", y);
|
|
298
|
+
const g = y.detail.originalEvent, O = g.button === 0 && g.ctrlKey === !0, S = g.button === 2 || O;
|
|
299
|
+
a.value = S;
|
|
300
300
|
}),
|
|
301
|
-
onFocusOutside:
|
|
301
|
+
onFocusOutside: s[2] || (s[2] = F(() => {
|
|
302
302
|
}, ["prevent"]))
|
|
303
303
|
}), {
|
|
304
|
-
default: f(() => [
|
|
304
|
+
default: f(() => [q(o.$slots, "default")]),
|
|
305
305
|
_: 3
|
|
306
306
|
}, 16, ["trap-focus"]));
|
|
307
307
|
}
|
|
308
|
-
}),
|
|
308
|
+
}), Q = J, X = /* @__PURE__ */ m({
|
|
309
309
|
__name: "PopoverContentNonModal",
|
|
310
310
|
props: {
|
|
311
311
|
side: {
|
|
@@ -397,27 +397,27 @@ var X = /* @__PURE__ */ m({
|
|
|
397
397
|
"openAutoFocus",
|
|
398
398
|
"closeAutoFocus"
|
|
399
399
|
],
|
|
400
|
-
setup(
|
|
401
|
-
const
|
|
402
|
-
return (
|
|
400
|
+
setup(d, { emit: p }) {
|
|
401
|
+
const n = d, r = p, i = b(), a = P(!1), l = P(!1), u = w(n, r);
|
|
402
|
+
return (t, o) => (v(), c(h, _(e(u), {
|
|
403
403
|
"trap-focus": !1,
|
|
404
404
|
"disable-outside-pointer-events": !1,
|
|
405
|
-
onCloseAutoFocus:
|
|
406
|
-
var
|
|
407
|
-
|
|
405
|
+
onCloseAutoFocus: o[0] || (o[0] = (s) => {
|
|
406
|
+
var y;
|
|
407
|
+
r("closeAutoFocus", s), s.defaultPrevented || (a.value || (y = e(i).triggerElement.value) == null || y.focus(), s.preventDefault()), a.value = !1, l.value = !1;
|
|
408
408
|
}),
|
|
409
|
-
onInteractOutside:
|
|
410
|
-
var
|
|
411
|
-
|
|
412
|
-
const
|
|
413
|
-
((
|
|
409
|
+
onInteractOutside: o[1] || (o[1] = async (s) => {
|
|
410
|
+
var O;
|
|
411
|
+
r("interactOutside", s), s.defaultPrevented || (a.value = !0, s.detail.originalEvent.type === "pointerdown" && (l.value = !0));
|
|
412
|
+
const y = s.target;
|
|
413
|
+
((O = e(i).triggerElement.value) == null ? void 0 : O.contains(y)) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && l.value && s.preventDefault();
|
|
414
414
|
})
|
|
415
415
|
}), {
|
|
416
|
-
default: f(() => [
|
|
416
|
+
default: f(() => [q(t.$slots, "default")]),
|
|
417
417
|
_: 3
|
|
418
418
|
}, 16));
|
|
419
419
|
}
|
|
420
|
-
}),
|
|
420
|
+
}), Y = X, Z = /* @__PURE__ */ m({
|
|
421
421
|
__name: "PopoverContent",
|
|
422
422
|
props: {
|
|
423
423
|
forceMount: {
|
|
@@ -513,20 +513,20 @@ var X = /* @__PURE__ */ m({
|
|
|
513
513
|
"openAutoFocus",
|
|
514
514
|
"closeAutoFocus"
|
|
515
515
|
],
|
|
516
|
-
setup(
|
|
517
|
-
const
|
|
518
|
-
return
|
|
519
|
-
default: f(() => [e(
|
|
520
|
-
default: f(() => [
|
|
516
|
+
setup(d, { emit: p }) {
|
|
517
|
+
const n = d, r = p, i = b(), a = w(n, r), { forwardRef: l } = B();
|
|
518
|
+
return i.contentId || (i.contentId = T(void 0, "reka-popover-content")), (u, t) => (v(), c(e(M), { present: u.forceMount || e(i).open.value }, {
|
|
519
|
+
default: f(() => [e(i).modal.value ? (v(), c(Q, _({ key: 0 }, e(a), { ref: e(l) }), {
|
|
520
|
+
default: f(() => [q(u.$slots, "default")]),
|
|
521
521
|
_: 3
|
|
522
|
-
}, 16)) : (v(),
|
|
523
|
-
default: f(() => [
|
|
522
|
+
}, 16)) : (v(), c(Y, _({ key: 1 }, e(a), { ref: e(l) }), {
|
|
523
|
+
default: f(() => [q(u.$slots, "default")]),
|
|
524
524
|
_: 3
|
|
525
525
|
}, 16))]),
|
|
526
526
|
_: 3
|
|
527
527
|
}, 8, ["present"]));
|
|
528
528
|
}
|
|
529
|
-
}),
|
|
529
|
+
}), ie = Z, ee = /* @__PURE__ */ m({
|
|
530
530
|
__name: "PopoverPortal",
|
|
531
531
|
props: {
|
|
532
532
|
to: {
|
|
@@ -546,62 +546,17 @@ var X = /* @__PURE__ */ m({
|
|
|
546
546
|
required: !1
|
|
547
547
|
}
|
|
548
548
|
},
|
|
549
|
-
setup(
|
|
550
|
-
const
|
|
551
|
-
return (
|
|
552
|
-
default: f(() => [
|
|
549
|
+
setup(d) {
|
|
550
|
+
const p = d;
|
|
551
|
+
return (n, r) => (v(), c(e($), x(W(p)), {
|
|
552
|
+
default: f(() => [q(n.$slots, "default")]),
|
|
553
553
|
_: 3
|
|
554
554
|
}, 16));
|
|
555
555
|
}
|
|
556
|
-
}),
|
|
557
|
-
__name: "PopoverTrigger",
|
|
558
|
-
props: {
|
|
559
|
-
asChild: {
|
|
560
|
-
type: Boolean,
|
|
561
|
-
required: !1
|
|
562
|
-
},
|
|
563
|
-
as: {
|
|
564
|
-
type: null,
|
|
565
|
-
required: !1,
|
|
566
|
-
default: "button"
|
|
567
|
-
}
|
|
568
|
-
},
|
|
569
|
-
setup(u) {
|
|
570
|
-
const d = u, t = O(), { forwardRef: a, currentElement: l } = B();
|
|
571
|
-
return t.triggerId || (t.triggerId = S(void 0, "reka-popover-trigger")), H(() => {
|
|
572
|
-
t.triggerElement.value = l.value;
|
|
573
|
-
}), (r, n) => (v(), y(J(e(t).hasCustomAnchor.value ? e(w) : e(W)), { "as-child": "" }, {
|
|
574
|
-
default: f(() => [C(e(w), {
|
|
575
|
-
id: e(t).triggerId,
|
|
576
|
-
ref: e(a),
|
|
577
|
-
type: r.as === "button" ? "button" : void 0,
|
|
578
|
-
"aria-haspopup": "dialog",
|
|
579
|
-
"aria-expanded": e(t).open.value,
|
|
580
|
-
"aria-controls": e(t).contentId,
|
|
581
|
-
"data-state": e(t).open.value ? "open" : "closed",
|
|
582
|
-
as: r.as,
|
|
583
|
-
"as-child": d.asChild,
|
|
584
|
-
onClick: e(t).onOpenToggle
|
|
585
|
-
}, {
|
|
586
|
-
default: f(() => [g(r.$slots, "default")]),
|
|
587
|
-
_: 3
|
|
588
|
-
}, 8, [
|
|
589
|
-
"id",
|
|
590
|
-
"type",
|
|
591
|
-
"aria-expanded",
|
|
592
|
-
"aria-controls",
|
|
593
|
-
"data-state",
|
|
594
|
-
"as",
|
|
595
|
-
"as-child",
|
|
596
|
-
"onClick"
|
|
597
|
-
])]),
|
|
598
|
-
_: 3
|
|
599
|
-
}));
|
|
600
|
-
}
|
|
601
|
-
}), ce = se;
|
|
556
|
+
}), le = ee;
|
|
602
557
|
export {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
558
|
+
se as P,
|
|
559
|
+
le as a,
|
|
560
|
+
ie as b,
|
|
561
|
+
b as i
|
|
607
562
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { u as l, P as a } from "./Teleport-DFrneqLM.js";
|
|
2
|
+
import { u as d } from "./useId-D5WE76CM.js";
|
|
3
|
+
import { P as u } from "./PopperContent-SLoFuK7k.js";
|
|
4
|
+
import { i as c } from "./PopoverPortal-DghpKKm8.js";
|
|
5
|
+
import { defineComponent as g, onMounted as f, createBlock as m, openBlock as v, resolveDynamicComponent as _, unref as r, withCtx as t, createVNode as h, renderSlot as P } from "vue";
|
|
6
|
+
var C = /* @__PURE__ */ g({
|
|
7
|
+
__name: "PopoverTrigger",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: !1
|
|
12
|
+
},
|
|
13
|
+
as: {
|
|
14
|
+
type: null,
|
|
15
|
+
required: !1,
|
|
16
|
+
default: "button"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(n) {
|
|
20
|
+
const i = n, e = c(), { forwardRef: s, currentElement: p } = l();
|
|
21
|
+
return e.triggerId || (e.triggerId = d(void 0, "reka-popover-trigger")), f(() => {
|
|
22
|
+
e.triggerElement.value = p.value;
|
|
23
|
+
}), (o, y) => (v(), m(_(r(e).hasCustomAnchor.value ? r(a) : r(u)), { "as-child": "" }, {
|
|
24
|
+
default: t(() => [h(r(a), {
|
|
25
|
+
id: r(e).triggerId,
|
|
26
|
+
ref: r(s),
|
|
27
|
+
type: o.as === "button" ? "button" : void 0,
|
|
28
|
+
"aria-haspopup": "dialog",
|
|
29
|
+
"aria-expanded": r(e).open.value,
|
|
30
|
+
"aria-controls": r(e).contentId,
|
|
31
|
+
"data-state": r(e).open.value ? "open" : "closed",
|
|
32
|
+
as: o.as,
|
|
33
|
+
"as-child": i.asChild,
|
|
34
|
+
onClick: r(e).onOpenToggle
|
|
35
|
+
}, {
|
|
36
|
+
default: t(() => [P(o.$slots, "default")]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 8, [
|
|
39
|
+
"id",
|
|
40
|
+
"type",
|
|
41
|
+
"aria-expanded",
|
|
42
|
+
"aria-controls",
|
|
43
|
+
"data-state",
|
|
44
|
+
"as",
|
|
45
|
+
"as-child",
|
|
46
|
+
"onClick"
|
|
47
|
+
])]),
|
|
48
|
+
_: 3
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
}), w = C;
|
|
52
|
+
export {
|
|
53
|
+
w as P
|
|
54
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { watchEffect as je, getCurrentInstance as ct, toRef as ft, computed as O, camelize as ut, ref as V, onMounted as dt, defineComponent as Ce, renderSlot as Oe, watchPostEffect as Ie, createBlock as pt, openBlock as Xe, unref as M, withCtx as Ye, shallowRef as mt, watch as he, getCurrentScope as ht, onScopeDispose as gt, shallowReadonly as Q, mergeDefaults as wt, createElementBlock as yt, normalizeStyle as vt, createVNode as xt, mergeProps as bt } from "vue";
|
|
2
|
-
import { h as At, f as Ct, j as Ot, c as Ue,
|
|
2
|
+
import { h as At, f as Ct, j as Ot, c as Ue, u as Ge, P as Ke, k as Pt } from "./Teleport-DFrneqLM.js";
|
|
3
3
|
let ge = 0;
|
|
4
4
|
function Vn() {
|
|
5
5
|
je((e) => {
|
|
@@ -1593,11 +1593,11 @@ var Wn = /* @__PURE__ */ Ce({
|
|
|
1593
1593
|
}
|
|
1594
1594
|
}), Xn = Wn;
|
|
1595
1595
|
export {
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1596
|
+
jn as P,
|
|
1597
|
+
qn as a,
|
|
1598
|
+
Vn as b,
|
|
1599
|
+
Xn as c,
|
|
1600
|
+
Nn as d,
|
|
1601
1601
|
$n as e,
|
|
1602
1602
|
St as u
|
|
1603
1603
|
};
|
|
@@ -891,14 +891,14 @@ var St = /* @__PURE__ */ B({
|
|
|
891
891
|
export {
|
|
892
892
|
xt as D,
|
|
893
893
|
Bt as F,
|
|
894
|
-
|
|
894
|
+
ye as P,
|
|
895
895
|
lt as S,
|
|
896
896
|
kt as T,
|
|
897
|
-
|
|
897
|
+
Lt as a,
|
|
898
898
|
Mt as b,
|
|
899
899
|
Be as c,
|
|
900
900
|
Nt as d,
|
|
901
|
-
|
|
901
|
+
It as e,
|
|
902
902
|
Ft as f,
|
|
903
903
|
I as g,
|
|
904
904
|
F as h,
|
|
@@ -909,5 +909,5 @@ export {
|
|
|
909
909
|
je as m,
|
|
910
910
|
de as n,
|
|
911
911
|
Dt as r,
|
|
912
|
-
|
|
912
|
+
pe as u
|
|
913
913
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as g, ref as E, toRefs as P, renderSlot as _, unref as t, onMounted as A, createBlock as v, openBlock as m, withCtx as f, createVNode as C, mergeProps as y, createCommentVNode as h, normalizeProps as $, guardReactiveProps as T, normalizeClass as R } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { u as w } from "../../useId-
|
|
4
|
-
import { g as z } from "../../utils-
|
|
2
|
+
import { a as k, c as N, u as D, g as I, F as S, D as L, f as q, d as K, e as F, b as V, P as U, T as W } from "../../Teleport-DFrneqLM.js";
|
|
3
|
+
import { u as w } from "../../useId-D5WE76CM.js";
|
|
4
|
+
import { g as z } from "../../utils-CttDpxqz.js";
|
|
5
5
|
import { _ as G } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const [O, H] = N("DialogRoot");
|
|
7
7
|
var j = /* @__PURE__ */ g({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent as j, onMounted as x, createElementBlock as a, openBlock as c, createVNode as o, unref as e, withCtx as r, normalizeClass as i, normalizeStyle as v, createElementVNode as _, Fragment as b, renderList as E } from "vue";
|
|
2
|
-
import { useUIKit as y, IconEmoji as
|
|
3
|
-
import { P, a as h, b as I
|
|
2
|
+
import { useUIKit as y, IconEmoji as P } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import { P as C, a as h, b as I } from "../../../PopoverPortal-DghpKKm8.js";
|
|
4
|
+
import { P as z } from "../../../PopoverTrigger-BajjNkGO.js";
|
|
4
5
|
import { emojiUrlMap as l, emojiBaseUrl as m } from "../../../constants/emoji.js";
|
|
5
6
|
import { transformTextWithEmojiKeyToName as M } from "../../../utils/emoji.js";
|
|
6
7
|
import { useMessageInputState as T } from "../MessageInputState.js";
|
|
@@ -44,24 +45,24 @@ const n = {
|
|
|
44
45
|
);
|
|
45
46
|
}
|
|
46
47
|
return (t, d) => (c(), a("div", null, [
|
|
47
|
-
o(e(
|
|
48
|
+
o(e(C), null, {
|
|
48
49
|
default: r(() => [
|
|
49
|
-
o(e(
|
|
50
|
+
o(e(z), {
|
|
50
51
|
as: "span",
|
|
51
52
|
style: v(p.triggerStyle),
|
|
52
53
|
class: i([u.disabled && "disabled"])
|
|
53
54
|
}, {
|
|
54
55
|
default: r(() => [
|
|
55
|
-
o(e(
|
|
56
|
+
o(e(P), {
|
|
56
57
|
class: i(e(n)["emoji-picker__icon"]),
|
|
57
58
|
size: "24"
|
|
58
59
|
}, null, 8, ["class"])
|
|
59
60
|
]),
|
|
60
61
|
_: 1
|
|
61
62
|
}, 8, ["style", "class"]),
|
|
62
|
-
o(e(
|
|
63
|
+
o(e(h), null, {
|
|
63
64
|
default: r(() => [
|
|
64
|
-
o(e(
|
|
65
|
+
o(e(I), {
|
|
65
66
|
side: "top",
|
|
66
67
|
align: "center",
|
|
67
68
|
"side-offset": 8,
|
|
@@ -96,7 +97,7 @@ const n = {
|
|
|
96
97
|
})
|
|
97
98
|
]));
|
|
98
99
|
}
|
|
99
|
-
}),
|
|
100
|
+
}), G = /* @__PURE__ */ S(w, [["__scopeId", "data-v-e11cd753"]]);
|
|
100
101
|
export {
|
|
101
|
-
|
|
102
|
+
G as default
|
|
102
103
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { I as
|
|
2
|
-
import { S as g, P as x
|
|
1
|
+
import { I as u } from "../../../index-CiYL_XsE.js";
|
|
2
|
+
import { S as g, P as x } from "../../../index-BvFYOUyz.js";
|
|
3
|
+
import { E as p } from "../../../index-CzCDLp99.js";
|
|
3
4
|
import { isMobile as y } from "../../../utils/environment.js";
|
|
4
5
|
import { CharacterCount as M } from "./CharacterCountExtension.js";
|
|
5
|
-
import { E as T } from "../../../index-
|
|
6
|
+
import { E as T } from "../../../index-C8Jw_xE4.js";
|
|
6
7
|
import { MessageContentType as a } from "../../../states/MessageInputState/type.js";
|
|
7
8
|
function b() {
|
|
8
|
-
return
|
|
9
|
+
return u.extend({
|
|
9
10
|
name: a.EMOJI,
|
|
10
11
|
inline: !0,
|
|
11
12
|
group: "inline",
|
|
@@ -22,7 +23,7 @@ function b() {
|
|
|
22
23
|
});
|
|
23
24
|
}
|
|
24
25
|
function C() {
|
|
25
|
-
return
|
|
26
|
+
return u.extend({
|
|
26
27
|
addOptions() {
|
|
27
28
|
var t;
|
|
28
29
|
return {
|
|
@@ -102,43 +103,43 @@ function c(t) {
|
|
|
102
103
|
}
|
|
103
104
|
}) : [];
|
|
104
105
|
}
|
|
105
|
-
function
|
|
106
|
+
function j({
|
|
106
107
|
element: t,
|
|
107
108
|
placeholder: e = "",
|
|
108
109
|
autoFocus: r = !1,
|
|
109
110
|
disabled: s = !1,
|
|
110
111
|
maxLength: i,
|
|
111
112
|
onUpdate: n,
|
|
112
|
-
onEnter:
|
|
113
|
-
onFocus:
|
|
113
|
+
onEnter: m,
|
|
114
|
+
onFocus: f,
|
|
114
115
|
onBlur: E
|
|
115
116
|
}) {
|
|
116
117
|
const l = {
|
|
117
118
|
element: t,
|
|
118
119
|
autofocus: r,
|
|
119
120
|
editable: !s,
|
|
120
|
-
extensions: ((
|
|
121
|
+
extensions: ((o) => [
|
|
121
122
|
g,
|
|
122
123
|
M.configure({
|
|
123
124
|
limit: i
|
|
124
125
|
}),
|
|
125
|
-
I(
|
|
126
|
+
I(o ? { onEnter: o } : void 0),
|
|
126
127
|
b(),
|
|
127
128
|
C(),
|
|
128
129
|
x.configure({
|
|
129
130
|
emptyEditorClass: "is-editor-empty",
|
|
130
131
|
placeholder: e
|
|
131
132
|
})
|
|
132
|
-
])(
|
|
133
|
-
onUpdate: ({ editor:
|
|
134
|
-
const d = c(
|
|
133
|
+
])(m),
|
|
134
|
+
onUpdate: ({ editor: o }) => {
|
|
135
|
+
const d = c(o.getJSON());
|
|
135
136
|
n == null || n(d);
|
|
136
137
|
},
|
|
137
|
-
onFocus:
|
|
138
|
+
onFocus: f,
|
|
138
139
|
onBlur: E
|
|
139
140
|
};
|
|
140
141
|
return new p(l);
|
|
141
142
|
}
|
|
142
143
|
export {
|
|
143
|
-
|
|
144
|
+
j as createEditor
|
|
144
145
|
};
|