@pantograph/vue 0.28.1 → 0.28.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/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-C0xZ6m49.js → ActionButton.vue_vue_type_script_setup_true_lang-B58mCIDb.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-CyCrRVTK.js → ActionButton.vue_vue_type_script_setup_true_lang-Dd2-pYUT.js} +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-Dh2G44fS.js → Alert.vue_vue_type_style_index_0_lang-CAX3NQfW.js} +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-_hTeoKJU.js → Alert.vue_vue_type_style_index_0_lang-CDmiw-No.js} +1 -1
- package/dist/Avatar/Avatar.d.ts +2 -0
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-D_SXlwkT.js → Avatar.vue_vue_type_style_index_0_lang-BKqLMGIV.js} +56 -55
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BY1eF6-d.js +1 -0
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-D2WO6pVz.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-D2cKm_bz.js → BaseButton.vue_vue_type_style_index_0_lang-QDColA3Q.js} +23 -20
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-CrVAgpiG.js → Button.vue_vue_type_script_setup_true_lang-DQ2-TroH.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-De3yMf4x.js → Button.vue_vue_type_script_setup_true_lang-DVzErXxg.js} +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +6 -13
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup/index.umd.cjs +1 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-9R8RwIc-.js +1 -0
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-CJQAJRHk.js +57 -0
- package/dist/Checkbox/Checkbox.d.ts +1 -0
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-9avqxpeP.js +1 -0
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-DoCCVxxa.js → Checkbox.vue_vue_type_style_index_0_lang-BOJNThUz.js} +71 -70
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/Chip.d.ts +2 -0
- package/dist/Chip/index.js +1 -1
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-By6XfEP4.js +1 -0
- package/dist/Chip.vue_vue_type_style_index_0_lang-ChpNdGGi.js +212 -0
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-C1ED1wUI.js → ColorPicker.vue_vue_type_style_index_0_lang-B7dGfThP.js} +2 -2
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-CeigXw6s.js → ColorPicker.vue_vue_type_style_index_0_lang-DIRCDxKf.js} +1 -1
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch-B_ppanPj.js → ColorSwatch--yfIrKW6.js} +1 -1
- package/dist/{ColorSwatch-CHLKl-fv.js → ColorSwatch-Bm4Di1MW.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-UDZgDNhI.js → ColorSwatch.vue_vue_type_style_index_0_lang-BdcJgZOU.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-C-nnAfDb.js → ColorSwatch.vue_vue_type_style_index_0_lang-Bx4uQ2xB.js} +1 -1
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-GxsDdWAE.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CCsHoBii.js} +2 -2
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-D2HxdxgJ.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-DMJ78NIH.js} +1 -1
- package/dist/Combobox/Combobox.d.ts +2 -2
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +1 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-Df2a52vJ.js +1 -0
- package/dist/Combobox.vue_vue_type_style_index_0_lang-Dz3b5KT0.js +1130 -0
- package/dist/Comment/Comment.d.ts +6 -1
- package/dist/Comment/CommentEditor.d.ts +16 -296
- package/dist/Comment/CommentFileList.d.ts +2 -0
- package/dist/Comment/CommentMention.d.ts +10 -10
- package/dist/Comment/index.js +334 -312
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-D3bUDHDD.js → DataTable.vue_vue_type_style_index_0_lang-C0rFGm6z.js} +8 -7
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DgqSk7Yr.js +1 -0
- package/dist/DropZone/index.js +1 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-DY2CfU4s.js → DropZone.vue_vue_type_style_index_0_lang-CTIzH7sl.js} +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-ClY42FKh.js → DropZone.vue_vue_type_style_index_0_lang-lzDvfWK_.js} +1 -1
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-93Z6n8ML.js → FloatButton.vue_vue_type_script_setup_true_lang-CxxpozWM.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-D6sOckSj.js → FloatButton.vue_vue_type_script_setup_true_lang-D14UFHEA.js} +1 -1
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-ymr7zTCT.js → GOPicker.vue_vue_type_style_index_0_lang-GG3UoK9I.js} +1 -1
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-BYuk9Ta8.js → GOPicker.vue_vue_type_style_index_0_lang-nrryxeQq.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-Duk4aN8-.js → IconButton.vue_vue_type_script_setup_true_lang-BHP9OGT0.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BUIJKHGa.js → IconButton.vue_vue_type_script_setup_true_lang-BmqsHwgy.js} +1 -1
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItem.d.ts +4 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-BE56NdMb.js +1 -0
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-DD8kfks-.js → MenuItem.vue_vue_type_style_index_0_lang-CW-70qfj.js} +192 -189
- package/dist/Pagination/index.js +1 -1
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-BCtSnM0p.js → Pagination.vue_vue_type_style_index_0_lang-CQ_E2g4L.js} +1 -1
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-BPqz0l4L.js → Pagination.vue_vue_type_style_index_0_lang-zo_9zmac.js} +1 -1
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-CanbeDed.js +1 -0
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-uN8OhXm4.js → ScrollContainer.vue_vue_type_style_index_0_lang-CzUFQ8vU.js} +29 -29
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-FNin5p3N.js → Select.vue_vue_type_style_index_0_lang-DnqLUNf5.js} +24 -24
- package/dist/Select.vue_vue_type_style_index_0_lang-nm65VAKf.js +1 -0
- package/dist/SubMenu/SubMenu.d.ts +2 -0
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/{TabContent.vue_vue_type_script_setup_true_lang-oU5diNub.js → TabContent.vue_vue_type_script_setup_true_lang-BDgE6XJO.js} +1 -1
- package/dist/{TabContent.vue_vue_type_script_setup_true_lang-BTJvJkMW.js → TabContent.vue_vue_type_script_setup_true_lang-C8Ms0E-d.js} +2 -2
- package/dist/Tabs/index.js +1 -1
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +2 -582
- package/dist/Textarea/index.d.ts +1 -1
- package/dist/Textarea/index.js +1 -1
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-BTRLsidO.js +118 -0
- package/dist/Textarea.vue_vue_type_style_index_0_lang-Ox5GgXqZ.js +1 -0
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-CzL-skk8.js +1 -0
- package/dist/{Tree.vue_vue_type_style_index_0_lang-BFHerbO8.js → Tree.vue_vue_type_style_index_0_lang-EGhpYqca.js} +95 -94
- package/dist/Upload/Upload.d.ts +2 -2
- package/dist/Upload/UploadList.d.ts +2 -2
- package/dist/Upload/index.d.ts +1 -0
- package/dist/Upload/index.js +15 -14
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/{Upload.vue_vue_type_style_index_0_lang-CNL2WWLb.js → Upload.vue_vue_type_style_index_0_lang-DIBLYxag.js} +1 -1
- package/dist/{Upload.vue_vue_type_style_index_0_lang-zNnaGyQW.js → Upload.vue_vue_type_style_index_0_lang-DQiIPST1.js} +11 -10
- package/dist/index.js +46 -45
- package/dist/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/package.json +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DFFrnopY.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-BghRlm-s.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-DGuzTQhm.js +0 -58
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-aMsUnJ9c.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-B9bgtU46.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-B0bD8fOk.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-kxWOoU3I.js +0 -210
- package/dist/Combobox.vue_vue_type_style_index_0_lang-CFQPY_5A.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-R4jyjKx0.js +0 -1124
- package/dist/DataTable.vue_vue_type_style_index_0_lang-Ix_14tDu.js +0 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-BnzgoZlS.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-oFYBYAHr.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-DxySmS5O.js +0 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-DC_ToGgE.js +0 -173
- package/dist/Textarea.vue_vue_type_style_index_0_lang-r1xqn8vX.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-DabHAmO4.js +0 -1
package/dist/Comment/index.js
CHANGED
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getComponentOptions as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { cva as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { normCls as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { _ as
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
...z("CommentActions"),
|
|
1
|
+
import { defineComponent as E, ref as v, createElementBlock as j, createCommentVNode as z, unref as n, openBlock as B, normalizeClass as $, createBlock as x, withModifiers as L, createVNode as g, Fragment as ue, renderList as J, withCtx as O, createTextVNode as se, toDisplayString as Q, h as _, useSlots as N, createElementVNode as G, mergeProps as V, isRef as le, createSlots as ie, renderSlot as K, normalizeProps as X, guardReactiveProps as Y, computed as U, normalizeStyle as me, onMounted as fe, onBeforeUnmount as Ce } from "vue";
|
|
2
|
+
import { getComponentOptions as M, useVModel as Z, isEmptyElement as T, useFormInput as he, useInputDataStates as ye } from "@pantograph/utils-vue";
|
|
3
|
+
import { _ as ae } from "../Avatar.vue_vue_type_style_index_0_lang-BKqLMGIV.js";
|
|
4
|
+
import { _ as ge } from "../Badge.vue_vue_type_script_setup_true_lang-C1_SBsMO.js";
|
|
5
|
+
import { cva as ve } from "class-variance-authority";
|
|
6
|
+
import { _ as _e } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-CeT1O_S8.js";
|
|
7
|
+
import { _ as q } from "../Icon.vue_vue_type_style_index_0_lang-DPe3mUfh.js";
|
|
8
|
+
import { normCls as y, getBemElement as h, getBemBlock as Be, generateVariantClassList as be, getPxSize as Re } from "@pantograph/utils";
|
|
9
|
+
import { _ as A } from "../IconButton.vue_vue_type_script_setup_true_lang-BmqsHwgy.js";
|
|
10
|
+
import { _ as Pe } from "../ActionButton.vue_vue_type_script_setup_true_lang-B58mCIDb.js";
|
|
11
|
+
import { a as Se, b as ke } from "../Upload.vue_vue_type_style_index_0_lang-DQiIPST1.js";
|
|
12
|
+
import { createContext as xe } from "reka-ui";
|
|
13
|
+
import { _ as Te } from "../Popover.vue_vue_type_style_index_0_lang-CpPisJIC.js";
|
|
14
|
+
import { _ as Oe, a as ne } from "../MenuItem.vue_vue_type_style_index_0_lang-CW-70qfj.js";
|
|
15
|
+
import { _ as $e } from "../GOPicker.vue_vue_type_style_index_0_lang-nrryxeQq.js";
|
|
16
|
+
import { _ as Ee } from "../Combobox.vue_vue_type_style_index_0_lang-Dz3b5KT0.js";
|
|
17
|
+
import { _ as Me } from "../Divider.vue_vue_type_style_index_0_lang-Clrzj4R0.js";
|
|
18
|
+
import { _ as we } from "../ScrollContainer.vue_vue_type_style_index_0_lang-CzUFQ8vU.js";
|
|
19
|
+
import { _ as De } from "../Shortcut.vue_vue_type_style_index_0_lang-zXjU0WmT.js";
|
|
20
|
+
const ze = /* @__PURE__ */ E({
|
|
21
|
+
...M("CommentActions"),
|
|
23
22
|
__name: "CommentActions",
|
|
24
|
-
setup(
|
|
25
|
-
const s =
|
|
23
|
+
setup(u) {
|
|
24
|
+
const s = ee(), t = v(), e = v(), p = () => {
|
|
26
25
|
s.emit("openActions", e.value);
|
|
27
|
-
}, i = () => {
|
|
28
|
-
s.emit("openReaction", t.value);
|
|
29
26
|
}, l = () => {
|
|
27
|
+
s.emit("openReaction", t.value);
|
|
28
|
+
}, i = () => {
|
|
30
29
|
s.emit("reply");
|
|
31
30
|
};
|
|
32
|
-
return (
|
|
31
|
+
return (c, o) => n(s).props.hasReaction || n(s).props.hasEdit || n(s).props.hasDelete ? (B(), j("div", {
|
|
33
32
|
key: 0,
|
|
34
|
-
class:
|
|
33
|
+
class: $(n(y)(n(h)(n(P), "actions"), n(s).props.actionsCls))
|
|
35
34
|
}, [
|
|
36
|
-
n(s).props.hasReply ? (
|
|
35
|
+
n(s).props.hasReply ? (B(), x(A, {
|
|
37
36
|
key: 0,
|
|
38
37
|
icon: "tabler:corner-up-left",
|
|
39
38
|
color: "neutral",
|
|
@@ -41,72 +40,97 @@ const we = /* @__PURE__ */ D({
|
|
|
41
40
|
ref_key: "reactionRef",
|
|
42
41
|
ref: t,
|
|
43
42
|
flipOnDir: "rtl",
|
|
44
|
-
onClick:
|
|
45
|
-
}, null, 512)) :
|
|
46
|
-
n(s).props.hasReaction ? (
|
|
43
|
+
onClick: i
|
|
44
|
+
}, null, 512)) : z("", !0),
|
|
45
|
+
n(s).props.hasReaction ? (B(), x(A, {
|
|
47
46
|
key: 1,
|
|
48
47
|
icon: "tabler:mood-plus",
|
|
49
48
|
color: "neutral",
|
|
50
49
|
type: "ghost",
|
|
51
50
|
ref_key: "reactionRef",
|
|
52
51
|
ref: t,
|
|
53
|
-
onPointerdown: o[0] || (o[0] =
|
|
52
|
+
onPointerdown: o[0] || (o[0] = L(() => {
|
|
54
53
|
}, ["stop"])),
|
|
55
|
-
onClick:
|
|
56
|
-
}, null, 512)) :
|
|
57
|
-
n(s).props.hasEdit || n(s).props.hasDelete ? (
|
|
54
|
+
onClick: l
|
|
55
|
+
}, null, 512)) : z("", !0),
|
|
56
|
+
n(s).props.hasEdit || n(s).props.hasDelete ? (B(), x(A, {
|
|
58
57
|
key: 2,
|
|
59
58
|
icon: "tabler:dots-vertical",
|
|
60
59
|
color: "neutral",
|
|
61
60
|
type: "ghost",
|
|
62
61
|
ref_key: "actionRef",
|
|
63
62
|
ref: e,
|
|
64
|
-
onPointerdown: o[1] || (o[1] =
|
|
63
|
+
onPointerdown: o[1] || (o[1] = L(() => {
|
|
65
64
|
}, ["stop"])),
|
|
66
|
-
onClick:
|
|
67
|
-
}, null, 512)) :
|
|
68
|
-
], 2)) :
|
|
65
|
+
onClick: p
|
|
66
|
+
}, null, 512)) : z("", !0)
|
|
67
|
+
], 2)) : z("", !0);
|
|
69
68
|
}
|
|
70
|
-
}),
|
|
71
|
-
...
|
|
69
|
+
}), Ae = /* @__PURE__ */ E({
|
|
70
|
+
...M("CommentReactions"),
|
|
72
71
|
__name: "CommentReactions",
|
|
73
|
-
setup(
|
|
74
|
-
const s =
|
|
72
|
+
setup(u) {
|
|
73
|
+
const s = ee(), t = v(), e = () => {
|
|
75
74
|
s.emit("openReaction", t.value);
|
|
76
|
-
},
|
|
77
|
-
|
|
75
|
+
}, p = (l) => {
|
|
76
|
+
l && s.emit("reaction", l);
|
|
78
77
|
};
|
|
79
|
-
return (
|
|
80
|
-
var
|
|
81
|
-
return n(s).props.hasReaction && ((
|
|
78
|
+
return (l, i) => {
|
|
79
|
+
var c;
|
|
80
|
+
return n(s).props.hasReaction && ((c = n(s).props.reactions) != null && c.some((o) => o.count && o.emoji)) ? (B(), j("div", {
|
|
82
81
|
key: 0,
|
|
83
|
-
class:
|
|
82
|
+
class: $(n(y)(n(h)(n(P), "reactions"), n(s).props.reactionsCls))
|
|
84
83
|
}, [
|
|
85
|
-
(
|
|
84
|
+
(B(!0), j(ue, null, J(n(s).props.reactions, (o) => (B(), x(Pe, {
|
|
86
85
|
key: o == null ? void 0 : o.emoji,
|
|
87
86
|
active: o == null ? void 0 : o.active,
|
|
88
|
-
onClick: (
|
|
87
|
+
onClick: (b) => p(o)
|
|
89
88
|
}, {
|
|
90
89
|
default: O(() => [
|
|
91
|
-
|
|
90
|
+
se(Q(o == null ? void 0 : o.emoji) + " " + Q(o == null ? void 0 : o.count), 1)
|
|
92
91
|
]),
|
|
93
92
|
_: 2
|
|
94
93
|
}, 1032, ["active", "onClick"]))), 128)),
|
|
95
|
-
|
|
94
|
+
g(A, {
|
|
96
95
|
icon: "tabler:mood-plus",
|
|
97
96
|
color: "neutral",
|
|
98
97
|
type: "outline",
|
|
99
98
|
ref_key: "reactionRef",
|
|
100
99
|
ref: t,
|
|
101
|
-
onPointerdown:
|
|
100
|
+
onPointerdown: i[0] || (i[0] = L(() => {
|
|
102
101
|
}, ["stop"])),
|
|
103
102
|
onClick: e
|
|
104
103
|
}, null, 512)
|
|
105
|
-
], 2)) :
|
|
104
|
+
], 2)) : z("", !0);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}), re = /* @__PURE__ */ E({
|
|
108
|
+
...M("CommentFileList"),
|
|
109
|
+
__name: "CommentFileList",
|
|
110
|
+
setup(u) {
|
|
111
|
+
const s = ee(), t = () => {
|
|
112
|
+
var e;
|
|
113
|
+
return _(
|
|
114
|
+
Se,
|
|
115
|
+
{
|
|
116
|
+
...s.props.uploadProps ?? {},
|
|
117
|
+
ref: s.fileListRef,
|
|
118
|
+
listType: "card",
|
|
119
|
+
fileListCls: y(
|
|
120
|
+
h(P, "file_list"),
|
|
121
|
+
(e = s.props.uploadProps) == null ? void 0 : e.fileListCls
|
|
122
|
+
)
|
|
123
|
+
},
|
|
124
|
+
s.slots
|
|
125
|
+
);
|
|
126
|
+
};
|
|
127
|
+
return (e, p) => {
|
|
128
|
+
var l, i;
|
|
129
|
+
return (i = (l = n(s).props.uploadProps) == null ? void 0 : l.fileList) != null && i.length ? (B(), x(t, { key: 0 })) : z("", !0);
|
|
106
130
|
};
|
|
107
131
|
}
|
|
108
|
-
}),
|
|
109
|
-
...
|
|
132
|
+
}), P = Be("comment"), [ee, pe] = xe("Comment"), no = /* @__PURE__ */ E({
|
|
133
|
+
...M("Comment"),
|
|
110
134
|
__name: "Comment",
|
|
111
135
|
props: {
|
|
112
136
|
class: {},
|
|
@@ -114,6 +138,7 @@ const we = /* @__PURE__ */ D({
|
|
|
114
138
|
actionsCls: {},
|
|
115
139
|
bodyCls: {},
|
|
116
140
|
datetimeCls: {},
|
|
141
|
+
uploadProps: {},
|
|
117
142
|
contentCls: {},
|
|
118
143
|
authorCls: {},
|
|
119
144
|
repliesCls: {},
|
|
@@ -137,178 +162,180 @@ const we = /* @__PURE__ */ D({
|
|
|
137
162
|
reactions: {}
|
|
138
163
|
},
|
|
139
164
|
emits: ["update:open", "openActions", "reaction", "reply", "openReaction"],
|
|
140
|
-
setup(
|
|
141
|
-
const t =
|
|
165
|
+
setup(u, { emit: s }) {
|
|
166
|
+
const t = u, e = N(), p = s, l = Z(t, "open", p, {
|
|
142
167
|
passive: t.open === void 0
|
|
143
|
-
}),
|
|
144
|
-
var
|
|
168
|
+
}), i = () => {
|
|
169
|
+
var C;
|
|
145
170
|
let r;
|
|
146
|
-
const
|
|
147
|
-
return
|
|
171
|
+
const m = (C = e.author) == null ? void 0 : C.call(e, {});
|
|
172
|
+
return !T(m) ? r = m : r = t.author, r ? _(
|
|
148
173
|
"div",
|
|
149
174
|
{
|
|
150
|
-
class: h(
|
|
175
|
+
class: y(h(P, "author"), t.authorCls)
|
|
151
176
|
},
|
|
152
177
|
r
|
|
153
178
|
) : null;
|
|
154
|
-
},
|
|
155
|
-
var
|
|
179
|
+
}, c = () => {
|
|
180
|
+
var C;
|
|
156
181
|
let r;
|
|
157
|
-
const
|
|
158
|
-
return
|
|
182
|
+
const m = (C = e.datetime) == null ? void 0 : C.call(e, {});
|
|
183
|
+
return !T(m) ? r = m : r = t.datetime, r ? _(
|
|
159
184
|
"div",
|
|
160
185
|
{
|
|
161
|
-
class: h(
|
|
186
|
+
class: y(h(P, "datetime"), t.datetimeCls)
|
|
162
187
|
},
|
|
163
188
|
r
|
|
164
189
|
) : null;
|
|
165
190
|
}, o = () => {
|
|
166
|
-
var
|
|
167
|
-
const r = (
|
|
168
|
-
let
|
|
169
|
-
if (
|
|
191
|
+
var C, R;
|
|
192
|
+
const r = (C = e.header) == null ? void 0 : C.call(e, {}), m = !T(r);
|
|
193
|
+
let f;
|
|
194
|
+
if (m) f = r;
|
|
170
195
|
else {
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
const
|
|
175
|
-
(
|
|
176
|
-
|
|
196
|
+
f = [];
|
|
197
|
+
const I = (R = e.avatar) == null ? void 0 : R.call(e, {});
|
|
198
|
+
!T(I) ? f.push(I) : t.avatar && f.push(_(ae, { ...t.avatarProps ?? {}, src: t.avatar }));
|
|
199
|
+
const k = i(), D = c();
|
|
200
|
+
(k || D) && f.push(
|
|
201
|
+
_(
|
|
177
202
|
"div",
|
|
178
203
|
{
|
|
179
|
-
class: h(
|
|
204
|
+
class: y(h(P, "header__content"), t.headerContentCls)
|
|
180
205
|
},
|
|
181
|
-
[
|
|
206
|
+
[k, D]
|
|
182
207
|
)
|
|
183
|
-
),
|
|
208
|
+
), f.length || (f = void 0);
|
|
184
209
|
}
|
|
185
|
-
return
|
|
210
|
+
return f ? (f.push(_(ze)), _(
|
|
186
211
|
"div",
|
|
187
|
-
{ class: h(
|
|
188
|
-
|
|
212
|
+
{ class: y(h(P, "header"), t.headerCls) },
|
|
213
|
+
f
|
|
189
214
|
)) : null;
|
|
190
|
-
},
|
|
191
|
-
var
|
|
192
|
-
const r = (
|
|
193
|
-
if (
|
|
194
|
-
return
|
|
215
|
+
}, b = () => {
|
|
216
|
+
var f;
|
|
217
|
+
const r = (f = e.content) == null ? void 0 : f.call(e, {}), m = !T(r);
|
|
218
|
+
if (m || t.content)
|
|
219
|
+
return _(
|
|
195
220
|
"div",
|
|
196
221
|
{
|
|
197
|
-
class: h(
|
|
198
|
-
innerHTML:
|
|
222
|
+
class: y(h(P, "content"), t.contentCls, "paragraph"),
|
|
223
|
+
innerHTML: m ? void 0 : t.content
|
|
199
224
|
},
|
|
200
|
-
|
|
225
|
+
m ? r : void 0
|
|
201
226
|
);
|
|
202
|
-
},
|
|
227
|
+
}, d = h(P, "replies"), S = ve(d, {
|
|
203
228
|
variants: {
|
|
204
|
-
open:
|
|
229
|
+
open: be("open", d)
|
|
205
230
|
}
|
|
206
|
-
}),
|
|
207
|
-
var
|
|
208
|
-
const r = (
|
|
209
|
-
var
|
|
210
|
-
const
|
|
211
|
-
if (
|
|
212
|
-
|
|
231
|
+
}), F = () => {
|
|
232
|
+
var R;
|
|
233
|
+
const r = (R = e.replies) == null ? void 0 : R.call(e, {}), m = !T(r), f = () => {
|
|
234
|
+
var k, D, H;
|
|
235
|
+
const I = (k = e.repliesHeader) == null ? void 0 : k.call(e, { open: !!l.value }), a = [];
|
|
236
|
+
if (!T(I))
|
|
237
|
+
a.push(I);
|
|
213
238
|
else {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
239
|
+
a.push(
|
|
240
|
+
_(
|
|
241
|
+
_e,
|
|
217
242
|
{
|
|
218
243
|
size: "xsm",
|
|
219
244
|
bg: "transparent",
|
|
220
245
|
br: "transparent"
|
|
221
246
|
},
|
|
222
247
|
{
|
|
223
|
-
default: () =>
|
|
248
|
+
default: () => _(q, {
|
|
224
249
|
icon: "tabler:chevron-down",
|
|
225
|
-
class:
|
|
250
|
+
class: h(d, "icon"),
|
|
226
251
|
size: "2xsm"
|
|
227
252
|
})
|
|
228
253
|
}
|
|
229
254
|
)
|
|
230
255
|
);
|
|
231
|
-
const
|
|
232
|
-
let
|
|
233
|
-
|
|
234
|
-
|
|
256
|
+
const oe = (D = e.repliesCount) == null ? void 0 : D.call(e, {}), ce = !T(oe), te = (H = e.repliesTitle) == null ? void 0 : H.call(e, {}), de = !T(te);
|
|
257
|
+
let W;
|
|
258
|
+
de ? W = te : W = t.repliesTitle, a.push(
|
|
259
|
+
_(
|
|
235
260
|
"div",
|
|
236
261
|
{
|
|
237
|
-
class: h(
|
|
262
|
+
class: y(h(d, "title"), t.repliesTitleCls)
|
|
238
263
|
},
|
|
239
|
-
|
|
264
|
+
W
|
|
240
265
|
)
|
|
241
|
-
), (
|
|
242
|
-
|
|
243
|
-
|
|
266
|
+
), (ce || t.repliesCount) && a.push(
|
|
267
|
+
_(
|
|
268
|
+
ge,
|
|
244
269
|
{
|
|
245
270
|
color: "primary-subtle",
|
|
246
271
|
text: t.repliesCount,
|
|
247
272
|
size: "xsm"
|
|
248
273
|
},
|
|
249
274
|
{
|
|
250
|
-
text: () =>
|
|
275
|
+
text: () => oe
|
|
251
276
|
}
|
|
252
277
|
)
|
|
253
278
|
);
|
|
254
279
|
}
|
|
255
|
-
return
|
|
280
|
+
return _(
|
|
256
281
|
"div",
|
|
257
282
|
{
|
|
258
|
-
class: h(
|
|
283
|
+
class: y(h(d, "header"), t.repliesHeaderCls),
|
|
259
284
|
onClick: () => {
|
|
260
|
-
|
|
285
|
+
l.value = !l.value;
|
|
261
286
|
}
|
|
262
287
|
},
|
|
263
|
-
|
|
288
|
+
a
|
|
264
289
|
);
|
|
265
|
-
},
|
|
266
|
-
if (
|
|
290
|
+
}, C = () => {
|
|
291
|
+
if (l.value)
|
|
267
292
|
return [
|
|
268
|
-
|
|
293
|
+
_(
|
|
269
294
|
"div",
|
|
270
295
|
{
|
|
271
|
-
class: h(
|
|
296
|
+
class: y(h(d, "content"), t.repliesContentCls)
|
|
272
297
|
},
|
|
273
298
|
r
|
|
274
299
|
),
|
|
275
|
-
|
|
276
|
-
class:
|
|
300
|
+
_("div", {
|
|
301
|
+
class: h(d, "line")
|
|
277
302
|
})
|
|
278
303
|
];
|
|
279
304
|
};
|
|
280
|
-
return
|
|
305
|
+
return m ? _(
|
|
281
306
|
"div",
|
|
282
307
|
{
|
|
283
|
-
class:
|
|
308
|
+
class: y(
|
|
284
309
|
S({
|
|
285
|
-
open: !!
|
|
310
|
+
open: !!l.value
|
|
286
311
|
}),
|
|
287
312
|
t.repliesCls
|
|
288
313
|
)
|
|
289
314
|
},
|
|
290
|
-
[
|
|
315
|
+
[f(), C()]
|
|
291
316
|
) : null;
|
|
292
|
-
};
|
|
293
|
-
return
|
|
294
|
-
emit:
|
|
317
|
+
}, w = v();
|
|
318
|
+
return pe({
|
|
319
|
+
emit: p,
|
|
295
320
|
props: t,
|
|
296
|
-
slots: e
|
|
297
|
-
|
|
298
|
-
|
|
321
|
+
slots: e,
|
|
322
|
+
fileListRef: w
|
|
323
|
+
}), (r, m) => (B(), j("div", {
|
|
324
|
+
class: $(n(y)(n(P), t.class))
|
|
299
325
|
}, [
|
|
300
|
-
|
|
326
|
+
g(o),
|
|
301
327
|
G("div", {
|
|
302
|
-
class:
|
|
328
|
+
class: $(n(y)(n(h)(n(P), "body"), t.bodyCls))
|
|
303
329
|
}, [
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
330
|
+
g(b),
|
|
331
|
+
g(re),
|
|
332
|
+
g(Ae),
|
|
333
|
+
g(F)
|
|
307
334
|
], 2)
|
|
308
335
|
], 2));
|
|
309
336
|
}
|
|
310
|
-
}), so = /* @__PURE__ */
|
|
311
|
-
...
|
|
337
|
+
}), so = /* @__PURE__ */ E({
|
|
338
|
+
...M("CommentAction"),
|
|
312
339
|
__name: "CommentAction",
|
|
313
340
|
props: {
|
|
314
341
|
hasEdit: { type: Boolean, default: !0 },
|
|
@@ -353,51 +380,51 @@ const we = /* @__PURE__ */ D({
|
|
|
353
380
|
noTrigger: { type: Boolean }
|
|
354
381
|
},
|
|
355
382
|
emits: ["edit", "delete", "update:open"],
|
|
356
|
-
setup(
|
|
357
|
-
const t =
|
|
358
|
-
e("edit"),
|
|
359
|
-
},
|
|
360
|
-
e("delete"),
|
|
361
|
-
},
|
|
383
|
+
setup(u, { emit: s }) {
|
|
384
|
+
const t = u, e = s, p = () => {
|
|
385
|
+
e("edit"), i.value = !1;
|
|
386
|
+
}, l = () => {
|
|
387
|
+
e("delete"), i.value = !1;
|
|
388
|
+
}, i = Z(t, "open", e, {
|
|
362
389
|
passive: t.open === void 0
|
|
363
390
|
});
|
|
364
|
-
return (
|
|
365
|
-
open: n(
|
|
366
|
-
"onUpdate:open": o[0] || (o[0] = (
|
|
391
|
+
return (c, o) => (B(), x(n(Te), V(t, {
|
|
392
|
+
open: n(i),
|
|
393
|
+
"onUpdate:open": o[0] || (o[0] = (b) => le(i) ? i.value = b : null),
|
|
367
394
|
placement: "bottom-end",
|
|
368
395
|
sideOffset: 3,
|
|
369
396
|
openDelay: 0
|
|
370
397
|
}), {
|
|
371
398
|
content: O(() => [
|
|
372
|
-
|
|
399
|
+
g(Oe, { style: { width: "114px" } }, {
|
|
373
400
|
default: O(() => [
|
|
374
|
-
|
|
401
|
+
c.hasEdit ? (B(), x(ne, {
|
|
375
402
|
key: "edit",
|
|
376
|
-
title:
|
|
377
|
-
onClick:
|
|
403
|
+
title: c.editText,
|
|
404
|
+
onClick: p
|
|
378
405
|
}, {
|
|
379
|
-
leading: O(({ iconSize:
|
|
380
|
-
|
|
406
|
+
leading: O(({ iconSize: b }) => [
|
|
407
|
+
g(q, {
|
|
381
408
|
icon: "tabler:edit",
|
|
382
|
-
size:
|
|
409
|
+
size: b
|
|
383
410
|
}, null, 8, ["size"])
|
|
384
411
|
]),
|
|
385
412
|
_: 1
|
|
386
|
-
}, 8, ["title"])) :
|
|
387
|
-
|
|
413
|
+
}, 8, ["title"])) : z("", !0),
|
|
414
|
+
c.hasDelete ? (B(), x(ne, {
|
|
388
415
|
key: "delete",
|
|
389
|
-
title:
|
|
416
|
+
title: c.deleteText,
|
|
390
417
|
danger: "",
|
|
391
|
-
onClick:
|
|
418
|
+
onClick: l
|
|
392
419
|
}, {
|
|
393
|
-
leading: O(({ iconSize:
|
|
394
|
-
|
|
420
|
+
leading: O(({ iconSize: b }) => [
|
|
421
|
+
g(q, {
|
|
395
422
|
icon: "tabler:trash",
|
|
396
|
-
size:
|
|
423
|
+
size: b
|
|
397
424
|
}, null, 8, ["size"])
|
|
398
425
|
]),
|
|
399
426
|
_: 1
|
|
400
|
-
}, 8, ["title"])) :
|
|
427
|
+
}, 8, ["title"])) : z("", !0)
|
|
401
428
|
]),
|
|
402
429
|
_: 1
|
|
403
430
|
})
|
|
@@ -405,8 +432,8 @@ const we = /* @__PURE__ */ D({
|
|
|
405
432
|
_: 1
|
|
406
433
|
}, 16, ["open"]));
|
|
407
434
|
}
|
|
408
|
-
}),
|
|
409
|
-
...
|
|
435
|
+
}), lo = /* @__PURE__ */ E({
|
|
436
|
+
...M("CommentReaction"),
|
|
410
437
|
__name: "CommentReaction",
|
|
411
438
|
props: {
|
|
412
439
|
reference: {},
|
|
@@ -447,13 +474,13 @@ const we = /* @__PURE__ */ D({
|
|
|
447
474
|
resetColorsOnChangeType: {}
|
|
448
475
|
},
|
|
449
476
|
emits: ["reaction", "update:open"],
|
|
450
|
-
setup(
|
|
451
|
-
const t =
|
|
452
|
-
e("reaction",
|
|
453
|
-
},
|
|
477
|
+
setup(u, { emit: s }) {
|
|
478
|
+
const t = u, e = s, p = (i) => {
|
|
479
|
+
e("reaction", i.value), l.value = !1;
|
|
480
|
+
}, l = Z(t, "open", e, {
|
|
454
481
|
passive: t.open === void 0
|
|
455
482
|
});
|
|
456
|
-
return (
|
|
483
|
+
return (i, c) => (B(), x(n($e), V(t, {
|
|
457
484
|
noTrigger: "",
|
|
458
485
|
hideClear: "",
|
|
459
486
|
hideGroup: "",
|
|
@@ -461,19 +488,19 @@ const we = /* @__PURE__ */ D({
|
|
|
461
488
|
hideRandom: "",
|
|
462
489
|
group: "emoji",
|
|
463
490
|
popoverProps: {
|
|
464
|
-
...
|
|
465
|
-
reference:
|
|
491
|
+
...i.popoverProps ?? {},
|
|
492
|
+
reference: i.reference
|
|
466
493
|
},
|
|
467
494
|
placement: "bottom-end",
|
|
468
495
|
visibleColorPickers: [],
|
|
469
496
|
noModel: "",
|
|
470
|
-
onSelect:
|
|
471
|
-
open: n(
|
|
472
|
-
"onUpdate:open":
|
|
497
|
+
onSelect: p,
|
|
498
|
+
open: n(l),
|
|
499
|
+
"onUpdate:open": c[0] || (c[0] = (o) => le(l) ? l.value = o : null)
|
|
473
500
|
}), null, 16, ["popoverProps", "open"]));
|
|
474
501
|
}
|
|
475
|
-
}),
|
|
476
|
-
...
|
|
502
|
+
}), io = /* @__PURE__ */ E({
|
|
503
|
+
...M("CommentMention"),
|
|
477
504
|
__name: "CommentMention",
|
|
478
505
|
props: {
|
|
479
506
|
modelValue: {},
|
|
@@ -564,31 +591,31 @@ const we = /* @__PURE__ */ D({
|
|
|
564
591
|
noTrigger: { type: Boolean }
|
|
565
592
|
},
|
|
566
593
|
emits: ["mention"],
|
|
567
|
-
setup(
|
|
568
|
-
const e =
|
|
569
|
-
|
|
570
|
-
},
|
|
594
|
+
setup(u, { expose: s, emit: t }) {
|
|
595
|
+
const e = u, p = t, l = N(), i = (o, b, d) => {
|
|
596
|
+
p("mention", o, d);
|
|
597
|
+
}, c = v();
|
|
571
598
|
return s({
|
|
572
|
-
comboboxRef:
|
|
573
|
-
}), (o,
|
|
599
|
+
comboboxRef: c
|
|
600
|
+
}), (o, b) => (B(), x(n(Ee), V({
|
|
574
601
|
ref_key: "comboboxRef",
|
|
575
|
-
ref:
|
|
602
|
+
ref: c
|
|
576
603
|
}, e, {
|
|
577
604
|
modelValue: "",
|
|
578
|
-
onSelect:
|
|
605
|
+
onSelect: i,
|
|
579
606
|
noTrigger: "",
|
|
580
607
|
popupWidth: 200
|
|
581
|
-
}),
|
|
582
|
-
|
|
583
|
-
name:
|
|
608
|
+
}), ie({ _: 2 }, [
|
|
609
|
+
J(Object.keys(l), (d) => ({
|
|
610
|
+
name: d,
|
|
584
611
|
fn: O((S) => [
|
|
585
|
-
K(o.$slots,
|
|
612
|
+
K(o.$slots, d, X(Y(S)))
|
|
586
613
|
])
|
|
587
614
|
}))
|
|
588
615
|
]), 1040));
|
|
589
616
|
}
|
|
590
|
-
}),
|
|
591
|
-
...
|
|
617
|
+
}), ao = /* @__PURE__ */ E({
|
|
618
|
+
...M("CommentEditor"),
|
|
592
619
|
__name: "CommentEditor",
|
|
593
620
|
props: {
|
|
594
621
|
class: {},
|
|
@@ -602,95 +629,90 @@ const we = /* @__PURE__ */ D({
|
|
|
602
629
|
maxHeight: { default: 100 }
|
|
603
630
|
},
|
|
604
631
|
emits: ["openReaction", "openMention", "blur", "focus", "mention", "submit"],
|
|
605
|
-
setup(
|
|
606
|
-
const t =
|
|
607
|
-
|
|
608
|
-
}, o = v(),
|
|
609
|
-
|
|
610
|
-
}, { getDisabled:
|
|
611
|
-
getDisabled: () =>
|
|
612
|
-
emit:
|
|
613
|
-
}),
|
|
614
|
-
var
|
|
615
|
-
(
|
|
632
|
+
setup(u, { emit: s }) {
|
|
633
|
+
const t = N(), e = u, p = s, l = h(P, "editor"), i = v(), c = () => {
|
|
634
|
+
p("openReaction", i.value);
|
|
635
|
+
}, o = v(), b = () => {
|
|
636
|
+
p("openMention", o.value);
|
|
637
|
+
}, { getDisabled: d } = he(), { rootBindings: S, inputBindings: F } = ye({
|
|
638
|
+
getDisabled: () => d.value,
|
|
639
|
+
emit: p
|
|
640
|
+
}), w = () => p("submit"), r = U(() => Re(e.maxHeight, !0)), m = v(), f = (C) => {
|
|
641
|
+
var R;
|
|
642
|
+
console.log("uploadRef.value ===>", m.value), (R = m.value) != null && R.addFiles && C.length && m.value.addFiles(C);
|
|
616
643
|
};
|
|
617
|
-
return (
|
|
618
|
-
|
|
644
|
+
return pe({
|
|
645
|
+
emit: p,
|
|
646
|
+
props: e,
|
|
647
|
+
slots: t,
|
|
648
|
+
fileListRef: m
|
|
649
|
+
}), (C, R) => (B(), j("div", V({
|
|
650
|
+
class: n(y)(n(l), e.class)
|
|
619
651
|
}, n(S)), [
|
|
620
|
-
|
|
652
|
+
g(we, {
|
|
621
653
|
overlay: !1,
|
|
622
654
|
hasMask: !1,
|
|
623
|
-
class:
|
|
624
|
-
style:
|
|
655
|
+
class: $(n(y)(n(h)(n(l), "editor"), "paragraph", e.editorCls)),
|
|
656
|
+
style: me({ maxHeight: r.value })
|
|
625
657
|
}, {
|
|
626
658
|
default: O(() => [
|
|
627
|
-
K(
|
|
659
|
+
K(C.$slots, "default", X(Y(n(F))))
|
|
628
660
|
]),
|
|
629
661
|
_: 3
|
|
630
662
|
}, 8, ["class", "style"]),
|
|
631
|
-
|
|
632
|
-
ref_key: "uploadRef",
|
|
633
|
-
ref: d
|
|
634
|
-
}), Z({ _: 2 }, [
|
|
635
|
-
Q(Object.keys(n(Ee)(t, ["default"])), (x) => ({
|
|
636
|
-
name: x,
|
|
637
|
-
fn: O((a) => [
|
|
638
|
-
K(g.$slots, x, N(W(a)))
|
|
639
|
-
])
|
|
640
|
-
}))
|
|
641
|
-
]), 1040),
|
|
663
|
+
g(re, V(C.uploadProps, { ref: "uploadRef" }), null, 16),
|
|
642
664
|
G("div", {
|
|
643
|
-
class:
|
|
665
|
+
class: $(n(y)(n(h)(n(l), "footer"), e.footerCls))
|
|
644
666
|
}, [
|
|
645
|
-
|
|
667
|
+
g(Me),
|
|
646
668
|
G("div", {
|
|
647
|
-
class:
|
|
669
|
+
class: $(n(y)(n(h)(n(l), "actions"), e.actionsCls))
|
|
648
670
|
}, [
|
|
649
|
-
|
|
671
|
+
g(A, {
|
|
650
672
|
icon: "tabler:at",
|
|
651
673
|
color: "neutral",
|
|
652
674
|
type: "ghost",
|
|
653
675
|
ref_key: "mentionRef",
|
|
654
676
|
ref: o,
|
|
655
|
-
onPointerdown:
|
|
677
|
+
onPointerdown: R[0] || (R[0] = L(() => {
|
|
656
678
|
}, ["stop"])),
|
|
657
|
-
onClick:
|
|
679
|
+
onClick: b
|
|
658
680
|
}, null, 512),
|
|
659
|
-
|
|
681
|
+
g(ke, {
|
|
660
682
|
accept: "image/*",
|
|
661
683
|
multiple: "",
|
|
662
|
-
onAddFiles:
|
|
684
|
+
onAddFiles: f
|
|
663
685
|
}, {
|
|
664
686
|
default: O(() => [
|
|
665
|
-
|
|
666
|
-
icon: "tabler:
|
|
687
|
+
g(A, {
|
|
688
|
+
icon: "tabler:paperclip",
|
|
667
689
|
color: "neutral",
|
|
668
690
|
type: "ghost"
|
|
669
691
|
})
|
|
670
692
|
]),
|
|
671
693
|
_: 1
|
|
672
694
|
}),
|
|
673
|
-
|
|
695
|
+
g(A, {
|
|
674
696
|
icon: "tabler:mood-plus",
|
|
675
697
|
color: "neutral",
|
|
676
698
|
type: "ghost",
|
|
677
699
|
ref_key: "reactionRef",
|
|
678
|
-
ref:
|
|
679
|
-
onPointerdown:
|
|
700
|
+
ref: i,
|
|
701
|
+
onPointerdown: R[1] || (R[1] = L(() => {
|
|
680
702
|
}, ["stop"])),
|
|
681
|
-
onClick:
|
|
703
|
+
onClick: c
|
|
682
704
|
}, null, 512)
|
|
683
705
|
], 2),
|
|
684
|
-
|
|
685
|
-
disabled:
|
|
706
|
+
g(A, {
|
|
707
|
+
disabled: C.isEmpty,
|
|
686
708
|
icon: "tabler:arrow-up",
|
|
687
|
-
onClick:
|
|
709
|
+
onClick: w
|
|
688
710
|
}, null, 8, ["disabled"])
|
|
689
711
|
], 2)
|
|
690
712
|
], 16));
|
|
691
713
|
}
|
|
692
|
-
}),
|
|
693
|
-
...
|
|
714
|
+
}), Ie = ["tabindex", "disabled"], ro = /* @__PURE__ */ E({
|
|
715
|
+
...M("CommentTrigger"),
|
|
694
716
|
__name: "CommentTrigger",
|
|
695
717
|
props: {
|
|
696
718
|
class: {},
|
|
@@ -703,42 +725,42 @@ const we = /* @__PURE__ */ D({
|
|
|
703
725
|
shortcutProps: {}
|
|
704
726
|
},
|
|
705
727
|
emits: ["add"],
|
|
706
|
-
setup(
|
|
707
|
-
const t =
|
|
708
|
-
!e.ignoeShortcut && o.code === "KeyC" && o.altKey &&
|
|
728
|
+
setup(u, { emit: s }) {
|
|
729
|
+
const t = N(), e = u, p = s, l = h(P, "trigger"), i = (o) => {
|
|
730
|
+
!e.ignoeShortcut && o.code === "KeyC" && o.altKey && c(o);
|
|
709
731
|
};
|
|
710
|
-
|
|
711
|
-
e.withShortcut && addEventListener("keyup",
|
|
712
|
-
}),
|
|
713
|
-
e.withShortcut && removeEventListener("keyup",
|
|
732
|
+
fe(() => {
|
|
733
|
+
e.withShortcut && addEventListener("keyup", i);
|
|
734
|
+
}), Ce(() => {
|
|
735
|
+
e.withShortcut && removeEventListener("keyup", i);
|
|
714
736
|
}), e.withShortcut;
|
|
715
|
-
const
|
|
716
|
-
return (o,
|
|
717
|
-
class:
|
|
737
|
+
const c = (o) => p("add", o);
|
|
738
|
+
return (o, b) => (B(), j("div", {
|
|
739
|
+
class: $(n(y)(n(l), e.class)),
|
|
718
740
|
tabindex: o.disabled ? -1 : 0,
|
|
719
741
|
disabled: o.disabled ? "" : void 0,
|
|
720
|
-
onPointerdown:
|
|
721
|
-
onKeyup:
|
|
742
|
+
onPointerdown: L(c, ["stop"]),
|
|
743
|
+
onKeyup: L(c, ["stop"])
|
|
722
744
|
}, [
|
|
723
|
-
|
|
745
|
+
g(ae, V(o.avatarProps ?? {}, {
|
|
724
746
|
size: "sm",
|
|
725
747
|
src: o.src
|
|
726
|
-
}),
|
|
727
|
-
|
|
728
|
-
name:
|
|
748
|
+
}), ie({ _: 2 }, [
|
|
749
|
+
J(Object.keys(t), (d) => ({
|
|
750
|
+
name: d,
|
|
729
751
|
fn: O((S) => [
|
|
730
|
-
K(o.$slots,
|
|
752
|
+
K(o.$slots, d, X(Y(S)))
|
|
731
753
|
])
|
|
732
754
|
}))
|
|
733
755
|
]), 1040, ["src"]),
|
|
734
756
|
G("div", {
|
|
735
|
-
class:
|
|
757
|
+
class: $(n(h)(n(l), "text"))
|
|
736
758
|
}, [
|
|
737
759
|
K(o.$slots, "text", {}, () => [
|
|
738
|
-
|
|
760
|
+
se(Q(o.text), 1)
|
|
739
761
|
])
|
|
740
762
|
], 2),
|
|
741
|
-
|
|
763
|
+
g(De, V(o.shortcutProps ?? {}, { items: [
|
|
742
764
|
{
|
|
743
765
|
text: "Alt"
|
|
744
766
|
},
|
|
@@ -746,81 +768,81 @@ const we = /* @__PURE__ */ D({
|
|
|
746
768
|
text: "C"
|
|
747
769
|
}
|
|
748
770
|
] }), null, 16)
|
|
749
|
-
], 42,
|
|
771
|
+
], 42, Ie));
|
|
750
772
|
}
|
|
751
|
-
}), po = (
|
|
752
|
-
const s = v(!1), t = v(), e = v(!1),
|
|
753
|
-
s.value = !0, e.value =
|
|
754
|
-
},
|
|
755
|
-
|
|
773
|
+
}), po = (u) => {
|
|
774
|
+
const s = v(!1), t = v(), e = v(!1), p = (a, k = !1) => {
|
|
775
|
+
s.value = !0, e.value = k, t.value = a;
|
|
776
|
+
}, l = v(!1), i = v(), c = (a) => {
|
|
777
|
+
l.value = !0, i.value = a;
|
|
756
778
|
}, o = U(() => ({
|
|
757
779
|
open: s.value,
|
|
758
780
|
reference: t.value,
|
|
759
781
|
"onUpdate:open": (a) => s.value = a,
|
|
760
782
|
onReaction: (a) => {
|
|
761
|
-
var
|
|
783
|
+
var k, D;
|
|
762
784
|
if (e.value)
|
|
763
785
|
try {
|
|
764
|
-
(
|
|
765
|
-
} catch (
|
|
766
|
-
console.log("error on reaction ===>",
|
|
786
|
+
(k = u.addEmoji) == null || k.call(u, a);
|
|
787
|
+
} catch (H) {
|
|
788
|
+
console.log("error on reaction ===>", H);
|
|
767
789
|
}
|
|
768
790
|
try {
|
|
769
|
-
(
|
|
770
|
-
} catch (
|
|
771
|
-
console.log("error on reaction ===>",
|
|
791
|
+
(D = u.onReaction) == null || D.call(u, a);
|
|
792
|
+
} catch (H) {
|
|
793
|
+
console.log("error on reaction ===>", H);
|
|
772
794
|
}
|
|
773
795
|
}
|
|
774
|
-
})),
|
|
775
|
-
open:
|
|
776
|
-
reference:
|
|
777
|
-
"onUpdate:open": (a) =>
|
|
778
|
-
})),
|
|
779
|
-
ref:
|
|
780
|
-
open:
|
|
781
|
-
"onUpdate:open": (a) =>
|
|
796
|
+
})), b = U(() => ({
|
|
797
|
+
open: l.value,
|
|
798
|
+
reference: i.value,
|
|
799
|
+
"onUpdate:open": (a) => l.value = a
|
|
800
|
+
})), d = v(!1), S = v(), F = v(), w = v(), r = v(!1), m = U(() => ({
|
|
801
|
+
ref: F,
|
|
802
|
+
open: d.value,
|
|
803
|
+
"onUpdate:open": (a) => d.value = a,
|
|
782
804
|
search: S.value,
|
|
783
805
|
"onUpdate:search": (a) => S.value = a,
|
|
784
|
-
reference:
|
|
806
|
+
reference: w.value,
|
|
785
807
|
disableOutsidePointerEvents: !1,
|
|
786
808
|
resetSearchTermOnBlur: !0,
|
|
787
|
-
headerSearch:
|
|
788
|
-
onPointerDownOutside:
|
|
789
|
-
onEscapeKeyDown:
|
|
790
|
-
})),
|
|
791
|
-
a && (
|
|
792
|
-
},
|
|
793
|
-
|
|
794
|
-
},
|
|
809
|
+
headerSearch: r.value,
|
|
810
|
+
onPointerDownOutside: C,
|
|
811
|
+
onEscapeKeyDown: C
|
|
812
|
+
})), f = (a) => {
|
|
813
|
+
a && (w.value = { getBoundingClientRect: a }, d.value = !0, r.value = !1);
|
|
814
|
+
}, C = () => {
|
|
815
|
+
w.value = void 0, d.value = !1, S.value = void 0;
|
|
816
|
+
}, R = (a) => {
|
|
795
817
|
S.value = a;
|
|
796
|
-
},
|
|
797
|
-
onOpenReaction: (a) =>
|
|
818
|
+
}, I = U(() => ({
|
|
819
|
+
onOpenReaction: (a) => p(a, !0),
|
|
798
820
|
onOpenMention: (a) => {
|
|
799
|
-
a && (
|
|
821
|
+
a && (w.value = a, d.value = !0, r.value = !0);
|
|
800
822
|
}
|
|
801
823
|
}));
|
|
802
824
|
return {
|
|
803
|
-
forwardRefMention:
|
|
825
|
+
forwardRefMention: F,
|
|
804
826
|
reactionBinding: o,
|
|
805
|
-
actionBinding:
|
|
806
|
-
editorBinding:
|
|
807
|
-
mentionBinding:
|
|
808
|
-
openActions:
|
|
809
|
-
openReaction:
|
|
810
|
-
openMentionInEditor:
|
|
811
|
-
closeMentionInEditor:
|
|
812
|
-
updateMentionQuery:
|
|
827
|
+
actionBinding: b,
|
|
828
|
+
editorBinding: I,
|
|
829
|
+
mentionBinding: m,
|
|
830
|
+
openActions: c,
|
|
831
|
+
openReaction: p,
|
|
832
|
+
openMentionInEditor: f,
|
|
833
|
+
closeMentionInEditor: C,
|
|
834
|
+
updateMentionQuery: R
|
|
813
835
|
};
|
|
814
836
|
};
|
|
815
837
|
export {
|
|
816
838
|
no as Comment,
|
|
817
839
|
so as CommentAction,
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
840
|
+
ao as CommentEditor,
|
|
841
|
+
io as CommentMention,
|
|
842
|
+
lo as CommentReaction,
|
|
821
843
|
ro as CommentTrigger,
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
844
|
+
P as commentPrefix,
|
|
845
|
+
ee as injectCommentContext,
|
|
846
|
+
pe as provideCommentContext,
|
|
825
847
|
po as useComment
|
|
826
848
|
};
|