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