@quoreadmin/ui 1.9.0 → 1.9.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 (280) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index104.js +36 -29
  3. package/dist/index110.js +1 -1
  4. package/dist/index114.js +2 -2
  5. package/dist/index118.js +3 -3
  6. package/dist/index132.js +1 -1
  7. package/dist/index134.js +2 -2
  8. package/dist/index143.js +3 -3
  9. package/dist/index145.js +1 -1
  10. package/dist/index147.js +6 -6
  11. package/dist/index153.js +156 -153
  12. package/dist/{index157.js → index158.js} +1 -1
  13. package/dist/{index160.js → index161.js} +1 -1
  14. package/dist/{index164.js → index165.js} +9 -9
  15. package/dist/index168.js +111 -492
  16. package/dist/index169.js +471 -5498
  17. package/dist/index170.js +5511 -80
  18. package/dist/index171.js +86 -856
  19. package/dist/index172.js +844 -21
  20. package/dist/index173.js +23 -265
  21. package/dist/index174.js +256 -126
  22. package/dist/index175.js +146 -1195
  23. package/dist/index176.js +1139 -712
  24. package/dist/index177.js +704 -1240
  25. package/dist/index178.js +1280 -248
  26. package/dist/index179.js +266 -96
  27. package/dist/index180.js +106 -2
  28. package/dist/index181.js +2 -1376
  29. package/dist/index182.js +1378 -0
  30. package/dist/index184.js +12 -12
  31. package/dist/index185.js +10 -10
  32. package/dist/index186.js +12 -12
  33. package/dist/index187.js +14 -21
  34. package/dist/index188.js +23 -757
  35. package/dist/index189.js +759 -1144
  36. package/dist/index190.js +1144 -1234
  37. package/dist/index191.js +1205 -11248
  38. package/dist/index192.js +11277 -36
  39. package/dist/index193.js +1226 -42
  40. package/dist/index195.js +38 -0
  41. package/dist/index196.js +44 -5938
  42. package/dist/index197.js +5830 -99
  43. package/dist/index198.js +188 -16
  44. package/dist/index199.js +25 -8
  45. package/dist/index200.js +16 -76
  46. package/dist/index201.js +74 -249
  47. package/dist/index202.js +229 -13660
  48. package/dist/index203.js +13684 -27
  49. package/dist/index204.js +26 -62
  50. package/dist/index205.js +40 -215
  51. package/dist/index206.js +206 -279
  52. package/dist/index207.js +281 -265
  53. package/dist/index208.js +287 -80
  54. package/dist/index209.js +29 -403
  55. package/dist/index210.js +116 -22
  56. package/dist/index211.js +32 -29
  57. package/dist/index212.js +26 -116
  58. package/dist/index213.js +31 -31
  59. package/dist/index214.js +51 -26
  60. package/dist/index215.js +41 -34
  61. package/dist/index216.js +3 -50
  62. package/dist/index217.js +9 -43
  63. package/dist/index218.js +18 -3
  64. package/dist/index219.js +9 -8
  65. package/dist/index220.js +10 -19
  66. package/dist/index221.js +39 -10
  67. package/dist/index222.js +21 -10
  68. package/dist/index223.js +84 -35
  69. package/dist/index224.js +407 -21
  70. package/dist/index225.js +19 -124
  71. package/dist/index226.js +122 -33
  72. package/dist/index227.js +38 -80
  73. package/dist/index228.js +80 -20
  74. package/dist/index229.js +12 -12
  75. package/dist/index230.js +3 -3
  76. package/dist/index231.js +3 -3
  77. package/dist/index232.js +11 -11
  78. package/dist/index233.js +19 -160
  79. package/dist/index234.js +157 -224
  80. package/dist/index235.js +222 -31
  81. package/dist/index236.js +37 -10
  82. package/dist/index237.js +9 -3635
  83. package/dist/index238.js +22 -55
  84. package/dist/index239.js +22 -77
  85. package/dist/index24.js +61 -58
  86. package/dist/index240.js +20 -52
  87. package/dist/index241.js +822 -201
  88. package/dist/index242.js +702 -10
  89. package/dist/index243.js +174 -55
  90. package/dist/index244.js +22 -61
  91. package/dist/index245.js +20 -54
  92. package/dist/index246.js +20 -75
  93. package/dist/index247.js +3 -726
  94. package/dist/index248.js +182 -37
  95. package/dist/index249.js +128 -59
  96. package/dist/index250.js +161 -11
  97. package/dist/index251.js +1189 -671
  98. package/dist/index252.js +20 -820
  99. package/dist/index253.js +21 -160
  100. package/dist/index254.js +1 -1
  101. package/dist/index255.js +10 -10
  102. package/dist/index256.js +28 -198
  103. package/dist/index257.js +19 -69
  104. package/dist/index258.js +20 -34
  105. package/dist/index259.js +2 -40
  106. package/dist/index260.js +2 -22
  107. package/dist/index261.js +12 -12
  108. package/dist/index262.js +198 -19
  109. package/dist/index263.js +48 -814
  110. package/dist/index264.js +34 -702
  111. package/dist/index265.js +39 -175
  112. package/dist/index266.js +3636 -22
  113. package/dist/index267.js +55 -20
  114. package/dist/index268.js +77 -20
  115. package/dist/index269.js +52 -3
  116. package/dist/index270.js +208 -180
  117. package/dist/index271.js +10 -133
  118. package/dist/index272.js +51 -1217
  119. package/dist/index273.js +61 -20
  120. package/dist/index274.js +54 -22
  121. package/dist/index275.js +75 -22
  122. package/dist/index276.js +725 -28
  123. package/dist/index277.js +42 -20
  124. package/dist/index278.js +64 -20
  125. package/dist/index279.js +11 -2
  126. package/dist/index280.js +705 -2
  127. package/dist/index281.js +801 -234
  128. package/dist/index282.js +253 -8
  129. package/dist/index283.js +8 -138
  130. package/dist/index284.js +123 -68
  131. package/dist/index285.js +83 -3
  132. package/dist/index286.js +3 -27
  133. package/dist/index287.js +27 -2
  134. package/dist/index288.js +2 -79
  135. package/dist/index289.js +73 -1528
  136. package/dist/index290.js +242 -366
  137. package/dist/index291.js +4 -2729
  138. package/dist/index292.js +137 -83
  139. package/dist/index293.js +69 -3788
  140. package/dist/index294.js +83 -56
  141. package/dist/index295.js +29 -15
  142. package/dist/index296.js +14 -82
  143. package/dist/index297.js +64 -191
  144. package/dist/index298.js +3 -245
  145. package/dist/index299.js +2 -54
  146. package/dist/index300.js +82 -25
  147. package/dist/index301.js +52 -21
  148. package/dist/index302.js +5 -21
  149. package/dist/index303.js +5 -16
  150. package/dist/index304.js +178 -16
  151. package/dist/index305.js +61 -21
  152. package/dist/index306.js +74 -78
  153. package/dist/index307.js +78 -21
  154. package/dist/index308.js +22 -935
  155. package/dist/index309.js +935 -22
  156. package/dist/index310.js +15 -13
  157. package/dist/index311.js +5 -5
  158. package/dist/index312.js +19 -68
  159. package/dist/index313.js +68 -18
  160. package/dist/index314.js +14 -14
  161. package/dist/index315.js +19 -22
  162. package/dist/index316.js +53 -21
  163. package/dist/index317.js +21 -62
  164. package/dist/index318.js +21 -261
  165. package/dist/index319.js +63 -6
  166. package/dist/index320.js +25 -139
  167. package/dist/index321.js +21 -72
  168. package/dist/index322.js +21 -86
  169. package/dist/index323.js +16 -29
  170. package/dist/index324.js +17 -16
  171. package/dist/index325.js +22 -74
  172. package/dist/index326.js +1533 -3
  173. package/dist/index327.js +386 -2
  174. package/dist/index328.js +2730 -82
  175. package/dist/index329.js +84 -51
  176. package/dist/index330.js +3790 -4
  177. package/dist/index331.js +59 -4
  178. package/dist/index332.js +15 -179
  179. package/dist/index333.js +78 -57
  180. package/dist/index334.js +201 -74
  181. package/dist/index335.js +245 -8
  182. package/dist/index336.js +8 -12
  183. package/dist/index337.js +12 -54
  184. package/dist/index338.js +52 -9
  185. package/dist/index339.js +11 -13
  186. package/dist/index340.js +9 -53
  187. package/dist/index341.js +55 -49
  188. package/dist/index342.js +49 -28
  189. package/dist/index343.js +31 -2
  190. package/dist/index344.js +2 -5
  191. package/dist/index345.js +5 -2
  192. package/dist/index346.js +2 -23
  193. package/dist/index347.js +21 -39
  194. package/dist/index348.js +41 -2
  195. package/dist/index349.js +2 -11
  196. package/dist/index350.js +11 -20
  197. package/dist/index351.js +20 -10
  198. package/dist/index352.js +9 -9
  199. package/dist/index353.js +9 -16
  200. package/dist/index354.js +17 -2
  201. package/dist/index355.js +2 -9
  202. package/dist/index356.js +9 -10
  203. package/dist/index357.js +10 -14
  204. package/dist/index358.js +14 -37
  205. package/dist/index359.js +36 -19
  206. package/dist/index360.js +18 -19
  207. package/dist/index361.js +54 -61
  208. package/dist/index362.js +29 -37
  209. package/dist/index363.js +5 -17
  210. package/dist/index364.js +49 -54
  211. package/dist/index365.js +7 -29
  212. package/dist/index366.js +11 -6
  213. package/dist/index367.js +4 -49
  214. package/dist/index368.js +27 -6
  215. package/dist/index369.js +2 -12
  216. package/dist/index370.js +69 -6
  217. package/dist/index371.js +166 -27
  218. package/dist/index372.js +20 -2
  219. package/dist/index373.js +20 -70
  220. package/dist/index374.js +60 -163
  221. package/dist/index375.js +36 -97
  222. package/dist/index376.js +28 -98
  223. package/dist/index377.js +10 -90
  224. package/dist/index378.js +4 -17
  225. package/dist/index379.js +3 -30
  226. package/dist/index380.js +13 -11
  227. package/dist/index381.js +7 -4
  228. package/dist/index382.js +11 -3
  229. package/dist/index383.js +5 -13
  230. package/dist/index384.js +33 -7
  231. package/dist/index385.js +30 -11
  232. package/dist/index386.js +28 -5
  233. package/dist/index387.js +61 -33
  234. package/dist/index388.js +16 -30
  235. package/dist/index389.js +99 -26
  236. package/dist/index390.js +91 -61
  237. package/dist/index391.js +98 -3
  238. package/dist/index392.js +3 -2
  239. package/dist/index393.js +2 -2
  240. package/dist/index394.js +2 -17
  241. package/dist/index395.js +15 -11
  242. package/dist/index396.js +13 -6
  243. package/dist/index397.js +6 -32
  244. package/dist/index398.js +34 -0
  245. package/dist/index49.js +3 -2
  246. package/dist/index50.js +2 -2
  247. package/dist/index51.js +1 -1
  248. package/dist/index52.js +1 -1
  249. package/dist/index53.js +1 -1
  250. package/dist/index54.js +1 -1
  251. package/dist/index56.js +2 -2
  252. package/dist/index58.js +1 -1
  253. package/dist/index60.js +5 -5
  254. package/dist/index61.js +1 -1
  255. package/dist/index73.js +2 -2
  256. package/dist/index77.js +1 -1
  257. package/dist/index82.js +1 -1
  258. package/dist/index87.js +1 -1
  259. package/dist/index89.js +3 -3
  260. package/dist/index91.js +2 -2
  261. package/dist/index97.js +2 -2
  262. package/dist/src/components/comment/comment.d.ts +10 -0
  263. package/dist/src/components/comment/comment.stories.d.ts +10 -0
  264. package/dist/src/components/comment-section/comment-section.d.ts +20 -0
  265. package/dist/src/components/comment-section/comment-section.stories.d.ts +30 -0
  266. package/dist/src/components/file-upload/file-upload.d.ts +10 -0
  267. package/dist/src/components/file-upload/file-upload.stories.d.ts +1315 -0
  268. package/dist/src/components/grid/grid.stories.d.ts +22 -16
  269. package/dist/src/components/list/list.stories.d.ts +11 -8
  270. package/dist/src/components/modal/modal.stories.d.ts +11 -8
  271. package/dist/src/components/select/select.d.ts +11 -9
  272. package/dist/src/components/select/select.stories.d.ts +33 -24
  273. package/dist/src/components/wysiwyg/wysiwyg.d.ts +10 -0
  274. package/dist/src/components/wysiwyg/wysiwyg.stories.d.ts +10 -0
  275. package/package.json +2 -2
  276. package/dist/index167.js +0 -116
  277. package/dist/index183.js +0 -20
  278. package/dist/index194.js +0 -1192
  279. /package/dist/{index155.js → index156.js} +0 -0
  280. /package/dist/{index162.js → index163.js} +0 -0
package/dist/index238.js CHANGED
@@ -1,57 +1,24 @@
1
- import { Node as a, wrappingInputRule as c, mergeAttributes as d } from "./index237.js";
2
- import { createElement as i } from "./index295.js";
3
- var l = /^\s*>\s$/, g = a.create({
4
- name: "blockquote",
5
- addOptions() {
6
- return {
7
- HTMLAttributes: {}
8
- };
9
- },
10
- content: "block+",
11
- group: "block",
12
- defining: !0,
13
- parseHTML() {
14
- return [{ tag: "blockquote" }];
15
- },
16
- renderHTML({ HTMLAttributes: t }) {
17
- return /* @__PURE__ */ i("blockquote", { ...d(this.options.HTMLAttributes, t), children: /* @__PURE__ */ i("slot", {}) });
18
- },
19
- parseMarkdown: (t, e) => e.createNode("blockquote", void 0, e.parseChildren(t.tokens || [])),
20
- renderMarkdown: (t, e) => {
21
- if (!t.content)
22
- return "";
23
- const r = ">", n = [];
24
- return t.content.forEach((u) => {
25
- const s = e.renderChildren([u]).split(`
26
- `).map((o) => o.trim() === "" ? r : `${r} ${o}`);
27
- n.push(s.join(`
28
- `));
29
- }), n.join(`
30
- ${r}
31
- `);
32
- },
33
- addCommands() {
34
- return {
35
- setBlockquote: () => ({ commands: t }) => t.wrapIn(this.name),
36
- toggleBlockquote: () => ({ commands: t }) => t.toggleWrap(this.name),
37
- unsetBlockquote: () => ({ commands: t }) => t.lift(this.name)
38
- };
39
- },
40
- addKeyboardShortcuts() {
41
- return {
42
- "Mod-Shift-b": () => this.editor.commands.toggleBlockquote()
43
- };
44
- },
45
- addInputRules() {
46
- return [
47
- c({
48
- find: l,
49
- type: this.type
50
- })
51
- ];
52
- }
53
- });
1
+ import r from "./index289.js";
2
+ import { openBlock as o, createElementBlock as t, mergeProps as n, createElementVNode as C } from "vue";
3
+ var l = {
4
+ name: "ArrowDownIcon",
5
+ extends: r
6
+ }, i = /* @__PURE__ */ C("path", {
7
+ "fill-rule": "evenodd",
8
+ "clip-rule": "evenodd",
9
+ d: "M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z",
10
+ fill: "currentColor"
11
+ }, null, -1), p = [i];
12
+ function d(e, s, a, c, m, h) {
13
+ return o(), t("svg", n({
14
+ width: "14",
15
+ height: "14",
16
+ viewBox: "0 0 14 14",
17
+ fill: "none",
18
+ xmlns: "http://www.w3.org/2000/svg"
19
+ }, e.pti()), p, 16);
20
+ }
21
+ l.render = d;
54
22
  export {
55
- g as Blockquote,
56
- l as inputRegex
23
+ l as default
57
24
  };
package/dist/index239.js CHANGED
@@ -1,79 +1,24 @@
1
- import { Mark as a, markPasteRule as r, markInputRule as s, mergeAttributes as o } from "./index237.js";
2
- import { createElement as n } from "./index295.js";
3
- var d = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, l = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, i = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, u = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, p = a.create({
4
- name: "bold",
5
- addOptions() {
6
- return {
7
- HTMLAttributes: {}
8
- };
9
- },
10
- parseHTML() {
11
- return [
12
- {
13
- tag: "strong"
14
- },
15
- {
16
- tag: "b",
17
- getAttrs: (t) => t.style.fontWeight !== "normal" && null
18
- },
19
- {
20
- style: "font-weight=400",
21
- clearMark: (t) => t.type.name === this.name
22
- },
23
- {
24
- style: "font-weight",
25
- getAttrs: (t) => /^(bold(er)?|[5-9]\d{2,})$/.test(t) && null
26
- }
27
- ];
28
- },
29
- renderHTML({ HTMLAttributes: t }) {
30
- return /* @__PURE__ */ n("strong", { ...o(this.options.HTMLAttributes, t), children: /* @__PURE__ */ n("slot", {}) });
31
- },
32
- markdownTokenName: "strong",
33
- parseMarkdown: (t, e) => e.applyMark("bold", e.parseInline(t.tokens || [])),
34
- renderMarkdown: (t, e) => `**${e.renderChildren(t)}**`,
35
- addCommands() {
36
- return {
37
- setBold: () => ({ commands: t }) => t.setMark(this.name),
38
- toggleBold: () => ({ commands: t }) => t.toggleMark(this.name),
39
- unsetBold: () => ({ commands: t }) => t.unsetMark(this.name)
40
- };
41
- },
42
- addKeyboardShortcuts() {
43
- return {
44
- "Mod-b": () => this.editor.commands.toggleBold(),
45
- "Mod-B": () => this.editor.commands.toggleBold()
46
- };
47
- },
48
- addInputRules() {
49
- return [
50
- s({
51
- find: d,
52
- type: this.type
53
- }),
54
- s({
55
- find: i,
56
- type: this.type
57
- })
58
- ];
59
- },
60
- addPasteRules() {
61
- return [
62
- r({
63
- find: l,
64
- type: this.type
65
- }),
66
- r({
67
- find: u,
68
- type: this.type
69
- })
70
- ];
71
- }
72
- });
1
+ import r from "./index289.js";
2
+ import { openBlock as o, createElementBlock as t, mergeProps as n, createElementVNode as C } from "vue";
3
+ var l = {
4
+ name: "ArrowUpIcon",
5
+ extends: r
6
+ }, i = /* @__PURE__ */ C("path", {
7
+ "fill-rule": "evenodd",
8
+ "clip-rule": "evenodd",
9
+ d: "M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z",
10
+ fill: "currentColor"
11
+ }, null, -1), p = [i];
12
+ function d(e, s, a, c, m, h) {
13
+ return o(), t("svg", n({
14
+ width: "14",
15
+ height: "14",
16
+ viewBox: "0 0 14 14",
17
+ fill: "none",
18
+ xmlns: "http://www.w3.org/2000/svg"
19
+ }, e.pti()), p, 16);
20
+ }
21
+ l.render = d;
73
22
  export {
74
- p as Bold,
75
- d as starInputRegex,
76
- l as starPasteRegex,
77
- i as underscoreInputRegex,
78
- u as underscorePasteRegex
23
+ l as default
79
24
  };
package/dist/index24.js CHANGED
@@ -1,37 +1,37 @@
1
- import $ from "./index104.js";
2
- import { resolveComponent as a, openBlock as l, createElementBlock as r, createVNode as n, withCtx as i, createElementVNode as p, normalizeStyle as U, normalizeClass as g, toDisplayString as s, createCommentVNode as d, renderSlot as z, mergeProps as F, toHandlerKey as m, Transition as q, createBlock as c, Teleport as C, createTextVNode as S, Fragment as y, renderList as b } from "vue";
3
- import I from "./index64.js";
4
- const L = { class: "file-upload-container w-full" }, H = {
1
+ import C from "./index104.js";
2
+ import { resolveComponent as a, openBlock as o, createElementBlock as r, createVNode as n, withCtx as i, createElementVNode as m, normalizeStyle as v, normalizeClass as u, toDisplayString as s, createCommentVNode as d, renderSlot as z, withKeys as c, withModifiers as $, Transition as U, createBlock as g, Teleport as q, createTextVNode as A, Fragment as y, renderList as b } from "vue";
3
+ import S from "./index64.js";
4
+ const L = { class: "file-upload-container w-full" }, I = {
5
5
  ref: "dropZoneRef",
6
6
  class: "flex flex-col relative"
7
- }, R = { class: "mt-2 mb-0 text-inkwell-0 text-sm" }, A = {
7
+ }, R = { class: "mt-2 mb-0 text-inkwell-0 text-sm" }, H = {
8
8
  key: 1,
9
9
  class: "image-gallery-container"
10
- }, D = {
10
+ }, D = ["tabindex"], V = {
11
11
  id: "add-file-label",
12
12
  class: "text-inkwell-20 leading-[1.25rem] text-xs"
13
- }, V = {
13
+ }, O = {
14
14
  id: "file-upload-error-message",
15
15
  class: "flex flex-col gap-2 text-center"
16
- }, O = { class: "font-bold md:leading-6 text-center text-[1.25rem] md:text-lg text-inkwell-30" }, _ = {
16
+ }, N = { class: "font-bold md:leading-6 text-center text-[1.25rem] md:text-lg text-inkwell-30" }, T = {
17
17
  key: 0,
18
18
  class: "sm-down:text-sm text-center text-inkwell-0"
19
- }, N = {
19
+ }, _ = {
20
20
  key: 1,
21
21
  id: "file-size-errors",
22
22
  class: "mb-2 md:mb-6 sm-down:text-sm text-center text-inkwell-0 text-left"
23
- }, T = {
23
+ }, Z = {
24
24
  key: 2,
25
25
  class: "sm-down:text-sm text-center text-inkwell-0"
26
- }, Z = {
26
+ }, K = {
27
27
  key: 3,
28
28
  id: "file-type-errors",
29
29
  class: "mb-2 md:mb-6 sm-down:text-sm text-center text-inkwell-0 text-left"
30
30
  };
31
- function B(e, t, G, K, P, x) {
32
- const u = a("q-icon"), h = a("q-image-gallery"), k = a("FileUpload", !0), E = a("q-button"), w = a("q-modal-content"), v = a("q-modal");
33
- return l(), r("div", L, [
34
- n(k, {
31
+ function B(e, t, G, P, Q, j) {
32
+ const f = a("q-icon"), k = a("q-image-gallery"), h = a("FileUpload", !0), w = a("q-button"), E = a("q-modal-content"), F = a("q-modal");
33
+ return o(), r("div", L, [
34
+ n(h, {
35
35
  ref: "fileUpload",
36
36
  name: e.name,
37
37
  url: e.url,
@@ -41,9 +41,10 @@ function B(e, t, G, K, P, x) {
41
41
  auto: e.autoUpload,
42
42
  "custom-upload": e.customUpload,
43
43
  disabled: e.disabled,
44
- onError: t[3] || (t[3] = (o) => e.onUploadError(o)),
44
+ "file-limit": e.fileLimit,
45
+ onError: t[3] || (t[3] = (l) => e.onUploadError(l)),
45
46
  onUpload: e.onUpload,
46
- onUploader: t[4] || (t[4] = (o) => e.onUploading(o)),
47
+ onUploader: t[4] || (t[4] = (l) => e.onUploading(l)),
47
48
  onSelect: e.onSelectedFiles,
48
49
  pt: {
49
50
  root: { class: "flex flex-col" },
@@ -52,36 +53,36 @@ function B(e, t, G, K, P, x) {
52
53
  },
53
54
  ptOptions: { mergeProps: !0 }
54
55
  }, {
55
- content: i((o) => [
56
- p("div", H, [
57
- e.isOverDropZone && e.mq.md ? (l(), r("div", {
56
+ content: i((l) => [
57
+ m("div", I, [
58
+ e.isOverDropZone && e.mq.md ? (o(), r("div", {
58
59
  key: 0,
59
- class: g([
60
+ class: u([
60
61
  "flex flex-col items-center justify-center",
61
62
  "bg-gray-0 border border-blue-20 border-dashed",
62
63
  "rounded-lg h-[calc(100%+2px)] w-[calc(100%+2px)] -m-px",
63
64
  "absolute top-0 left-0 z-30",
64
65
  {
65
66
  "cursor-pointer": !e.disabled,
66
- "border-red-30": o.messages && o.messages.length > 0
67
+ "border-red-30": l.messages && l.messages.length > 0
67
68
  }
68
69
  ]),
69
- style: U(`
70
+ style: v(`
70
71
  height: ${(e.dropZoneRef?.closest(".editor-container")?.clientHeight || 0) + 2}px;
71
72
  top: ${e.dropZoneRef?.closest(".show-formatting-menu") ? -36 : 0}px;
72
73
  `)
73
74
  }, [
74
- n(u, {
75
+ n(f, {
75
76
  icon: "paperclip",
76
77
  size: "lg",
77
78
  type: "line",
78
79
  color: "gray-40"
79
80
  }),
80
- p("div", R, s(e.$t("HC_CLICK_DRAG_FILES_HERE")), 1)
81
+ m("div", R, s(e.$t("HC_CLICK_DRAG_FILES_HERE")), 1)
81
82
  ], 6)) : d("", !0),
82
83
  z(e.$slots, "default"),
83
- e.allFiles.length || e.showGallery ? (l(), r("div", A, [
84
- n(h, {
84
+ e.allFiles.length || e.showGallery ? (o(), r("div", H, [
85
+ n(k, {
85
86
  files: e.allFiles,
86
87
  "show-remove": !0,
87
88
  processing: e.processing,
@@ -89,27 +90,29 @@ function B(e, t, G, K, P, x) {
89
90
  "onUpdate:modelValue": e.onRemoveFile
90
91
  }, {
91
92
  actions: i(() => [
92
- p("div", F({
93
+ m("div", {
93
94
  id: "add-file-container",
94
95
  "aria-labelledby": "add-file-label",
95
- class: "p-0 relative rounded-lg shrink-0 my-2 bg-gray-7 hover:bg-gray-20 focus:bg-gray-20 outline-none cursor-pointer py-2 size-16 md:py-[1.125rem] md:size-20 rounded-lg flex align-center items-center flex-col",
96
+ class: u([
97
+ "p-0 relative rounded-lg shrink-0 my-2 py-2 size-16 md:py-[1.125rem] md:size-20 rounded-lg flex align-center items-center flex-col bg-gray-7",
98
+ e.disabled ? "cursor-not-allowed pointer-events-none" : "hover:bg-gray-20 focus:bg-gray-20 cursor-pointer"
99
+ ]),
96
100
  role: "button",
97
- tabindex: "0"
98
- }, {
99
- [m(!e.processing && "click")]: t[0] || (t[0] = (f) => e.fileUpload.choose())
100
- }, {
101
- [m(!e.processing && "keydown.enter")]: t[1] || (t[1] = (f) => e.fileUpload.choose())
102
- }, {
103
- [m(!e.processing && "keydown.space.prevent")]: t[2] || (t[2] = (f) => e.fileUpload.choose())
104
- }), [
105
- n(u, {
101
+ tabindex: e.disabled ? -1 : 0,
102
+ onClick: t[0] || (t[0] = (...p) => e.onAddFileClick && e.onAddFileClick(...p)),
103
+ onKeydown: [
104
+ t[1] || (t[1] = c((...p) => e.onAddFileClick && e.onAddFileClick(...p), ["enter"])),
105
+ t[2] || (t[2] = c($((...p) => e.onAddFileClick && e.onAddFileClick(...p), ["prevent"]), ["space"]))
106
+ ]
107
+ }, [
108
+ n(f, {
106
109
  icon: "circle-plus",
107
110
  color: "inkwell-0",
108
111
  class: "shrink-0",
109
112
  size: "md"
110
113
  }),
111
- p("div", D, s(e.$t("HC_ADD")), 1)
112
- ], 16)
114
+ m("div", V, s(e.$t("HC_ADD")), 1)
115
+ ], 42, D)
113
116
  ]),
114
117
  _: 1
115
118
  }, 8, ["files", "processing", "onUpdate:modelValue"])
@@ -117,11 +120,11 @@ function B(e, t, G, K, P, x) {
117
120
  ], 512)
118
121
  ]),
119
122
  _: 3
120
- }, 8, ["name", "url", "multiple", "accept", "maxFileSize", "auto", "custom-upload", "disabled", "onUpload", "onSelect", "pt"]),
121
- n(q, { name: "fade" }, {
123
+ }, 8, ["name", "url", "multiple", "accept", "maxFileSize", "auto", "custom-upload", "disabled", "file-limit", "onUpload", "onSelect", "pt"]),
124
+ n(U, { name: "fade" }, {
122
125
  default: i(() => [
123
- (l(), c(C, { to: "body" }, [
124
- e.sizeErrors.length || e.typeErrors.length ? (l(), c(v, {
126
+ (o(), g(q, { to: "body" }, [
127
+ e.sizeErrors.length || e.typeErrors.length ? (o(), g(F, {
125
128
  key: 0,
126
129
  id: "file-upload-error-modal",
127
130
  dismissible: !1,
@@ -129,33 +132,33 @@ function B(e, t, G, K, P, x) {
129
132
  "container-class": "h-fit min-h-fit"
130
133
  }, {
131
134
  default: i(() => [
132
- n(w, null, {
135
+ n(E, null, {
133
136
  body: i(() => [
134
- p("div", V, [
135
- p("h2", O, s(e.typeErrors.length ? e.$t("HC_INVALID_FILES") : e.$t("HC_FILE_TOO_LARGE")), 1),
136
- e.sizeErrors.length ? (l(), r("p", _, s(e.$t("HC_UPLOAD_FILE_SIZE_ERROR", {
137
+ m("div", O, [
138
+ m("h2", N, s(e.typeErrors.length ? e.$t("HC_INVALID_FILES") : e.$t("HC_FILE_TOO_LARGE")), 1),
139
+ e.sizeErrors.length ? (o(), r("p", T, s(e.$t("HC_UPLOAD_FILE_SIZE_ERROR", {
137
140
  size: e.maxFileSize / 1024 / 1024
138
141
  })), 1)) : d("", !0),
139
- e.sizeErrors.length ? (l(), r("ul", N, [
140
- (l(!0), r(y, null, b(e.sizeErrors, (o) => (l(), r("li", { key: o }, s(o), 1))), 128))
142
+ e.sizeErrors.length ? (o(), r("ul", _, [
143
+ (o(!0), r(y, null, b(e.sizeErrors, (l) => (o(), r("li", { key: l }, s(l), 1))), 128))
141
144
  ])) : d("", !0),
142
- e.typeErrors.length ? (l(), r("p", T, s(e.$t("HC_INVALID_FILE_TYPES", {
145
+ e.typeErrors.length ? (o(), r("p", Z, s(e.$t("HC_INVALID_FILE_TYPES", {
143
146
  types: e.displayAllowedTypes
144
147
  }) + ":"), 1)) : d("", !0),
145
- e.typeErrors.length ? (l(), r("ul", Z, [
146
- (l(!0), r(y, null, b(e.typeErrors, (o) => (l(), r("li", { key: o }, s(o), 1))), 128))
148
+ e.typeErrors.length ? (o(), r("ul", K, [
149
+ (o(!0), r(y, null, b(e.typeErrors, (l) => (o(), r("li", { key: l }, s(l), 1))), 128))
147
150
  ])) : d("", !0)
148
151
  ])
149
152
  ]),
150
153
  footer: i(() => [
151
- n(E, {
152
- class: g([e.mq.md ? "mx-3" : "w-full"]),
154
+ n(w, {
155
+ class: u([e.mq.md ? "mx-3" : "w-full"]),
153
156
  status: e.mq.md ? "primary" : "primary-blue",
154
157
  size: "lg",
155
- onClick: t[5] || (t[5] = (o) => e.clearErrors())
158
+ onClick: t[5] || (t[5] = (l) => e.clearErrors())
156
159
  }, {
157
160
  default: i(() => [
158
- S(s(e.$t("HC_OK")), 1)
161
+ A(s(e.$t("HC_OK")), 1)
159
162
  ]),
160
163
  _: 1
161
164
  }, 8, ["class", "status"])
@@ -171,7 +174,7 @@ function B(e, t, G, K, P, x) {
171
174
  })
172
175
  ]);
173
176
  }
174
- const J = /* @__PURE__ */ I($, [["render", B]]);
177
+ const J = /* @__PURE__ */ S(C, [["render", B]]);
175
178
  export {
176
179
  J as default
177
180
  };
package/dist/index240.js CHANGED
@@ -1,54 +1,22 @@
1
- import { Mark as r, markPasteRule as n, markInputRule as a, mergeAttributes as d } from "./index237.js";
2
- var o = /(^|[^`])`([^`]+)`(?!`)$/, u = /(^|[^`])`([^`]+)`(?!`)/g, i = r.create({
3
- name: "code",
4
- addOptions() {
5
- return {
6
- HTMLAttributes: {}
7
- };
8
- },
9
- excludes: "_",
10
- code: !0,
11
- exitable: !0,
12
- parseHTML() {
13
- return [{ tag: "code" }];
14
- },
15
- renderHTML({ HTMLAttributes: e }) {
16
- return ["code", d(this.options.HTMLAttributes, e), 0];
17
- },
18
- markdownTokenName: "codespan",
19
- parseMarkdown: (e, t) => t.applyMark("code", [{ type: "text", text: e.text || "" }]),
20
- renderMarkdown: (e, t) => e.content ? `\`${t.renderChildren(e.content)}\`` : "",
21
- addCommands() {
22
- return {
23
- setCode: () => ({ commands: e }) => e.setMark(this.name),
24
- toggleCode: () => ({ commands: e }) => e.toggleMark(this.name),
25
- unsetCode: () => ({ commands: e }) => e.unsetMark(this.name)
26
- };
27
- },
28
- addKeyboardShortcuts() {
29
- return {
30
- "Mod-e": () => this.editor.commands.toggleCode()
31
- };
32
- },
33
- addInputRules() {
34
- return [
35
- a({
36
- find: o,
37
- type: this.type
38
- })
39
- ];
40
- },
41
- addPasteRules() {
42
- return [
43
- n({
44
- find: u,
45
- type: this.type
46
- })
47
- ];
48
- }
49
- });
1
+ import C from "./index289.js";
2
+ import { openBlock as r, createElementBlock as t, mergeProps as o, createElementVNode as n } from "vue";
3
+ var i = {
4
+ name: "SpinnerIcon",
5
+ extends: C
6
+ }, p = /* @__PURE__ */ n("path", {
7
+ d: "M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",
8
+ fill: "currentColor"
9
+ }, null, -1), l = [p];
10
+ function s(e, a, c, d, m, h) {
11
+ return r(), t("svg", o({
12
+ width: "14",
13
+ height: "14",
14
+ viewBox: "0 0 14 14",
15
+ fill: "none",
16
+ xmlns: "http://www.w3.org/2000/svg"
17
+ }, e.pti()), l, 16);
18
+ }
19
+ i.render = s;
50
20
  export {
51
- i as Code,
52
- o as inputRegex,
53
- u as pasteRegex
21
+ i as default
54
22
  };