@quoreadmin/ui 1.9.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/dist/index104.js +35 -28
  2. package/dist/index181.js +4 -4
  3. package/dist/index188.js +7 -7
  4. package/dist/index193.js +17 -17
  5. package/dist/index196.js +21 -21
  6. package/dist/index197.js +1 -1
  7. package/dist/index198.js +1 -1
  8. package/dist/index201.js +2 -2
  9. package/dist/index203.js +14 -14
  10. package/dist/index204.js +1 -1
  11. package/dist/index205.js +1 -1
  12. package/dist/index206.js +3 -3
  13. package/dist/index207.js +6 -6
  14. package/dist/index225.js +1 -1
  15. package/dist/index228.js +1 -1
  16. package/dist/index229.js +1 -1
  17. package/dist/index230.js +1 -1
  18. package/dist/index231.js +1 -1
  19. package/dist/index232.js +1 -1
  20. package/dist/index233.js +159 -159
  21. package/dist/index234.js +20 -228
  22. package/dist/index235.js +21 -36
  23. package/dist/index236.js +198 -9
  24. package/dist/index237.js +63 -3629
  25. package/dist/index238.js +31 -52
  26. package/dist/index239.js +36 -73
  27. package/dist/index24.js +61 -58
  28. package/dist/index240.js +22 -52
  29. package/dist/index241.js +22 -215
  30. package/dist/index242.js +20 -10
  31. package/dist/index243.js +827 -48
  32. package/dist/index244.js +691 -50
  33. package/dist/index245.js +174 -52
  34. package/dist/index246.js +22 -75
  35. package/dist/index247.js +19 -725
  36. package/dist/index248.js +20 -42
  37. package/dist/index249.js +3 -64
  38. package/dist/index250.js +187 -11
  39. package/dist/index251.js +124 -696
  40. package/dist/index252.js +1189 -786
  41. package/dist/index253.js +18 -159
  42. package/dist/index254.js +14 -12
  43. package/dist/index255.js +10 -10
  44. package/dist/index256.js +28 -198
  45. package/dist/index257.js +19 -69
  46. package/dist/index258.js +20 -34
  47. package/dist/index259.js +2 -40
  48. package/dist/index260.js +2 -22
  49. package/dist/index261.js +160 -21
  50. package/dist/index262.js +228 -20
  51. package/dist/index263.js +34 -833
  52. package/dist/index264.js +9 -701
  53. package/dist/index265.js +3630 -170
  54. package/dist/index266.js +55 -22
  55. package/dist/index267.js +77 -20
  56. package/dist/index268.js +52 -20
  57. package/dist/index269.js +215 -3
  58. package/dist/index270.js +10 -187
  59. package/dist/index271.js +52 -128
  60. package/dist/index272.js +52 -1214
  61. package/dist/index273.js +54 -20
  62. package/dist/index274.js +75 -22
  63. package/dist/index275.js +725 -21
  64. package/dist/index276.js +42 -29
  65. package/dist/index277.js +64 -20
  66. package/dist/index278.js +11 -20
  67. package/dist/index279.js +705 -2
  68. package/dist/index280.js +820 -2
  69. package/dist/index287.js +262 -2
  70. package/dist/index288.js +5 -78
  71. package/dist/index289.js +130 -1524
  72. package/dist/index290.js +65 -378
  73. package/dist/index291.js +81 -2725
  74. package/dist/index292.js +26 -83
  75. package/dist/index293.js +13 -3789
  76. package/dist/index294.js +72 -57
  77. package/dist/index295.js +4 -15
  78. package/dist/index296.js +2 -84
  79. package/dist/index297.js +74 -193
  80. package/dist/index298.js +53 -246
  81. package/dist/index299.js +5 -53
  82. package/dist/index300.js +4 -25
  83. package/dist/index301.js +178 -21
  84. package/dist/index302.js +62 -21
  85. package/dist/index303.js +74 -15
  86. package/dist/index304.js +2 -17
  87. package/dist/index305.js +78 -22
  88. package/dist/index306.js +38 -63
  89. package/dist/index307.js +17 -13
  90. package/dist/index308.js +22 -935
  91. package/dist/index309.js +8 -8
  92. package/dist/index310.js +16 -20
  93. package/dist/index311.js +17 -20
  94. package/dist/index312.js +22 -68
  95. package/dist/index313.js +76 -16
  96. package/dist/index314.js +22 -19
  97. package/dist/index315.js +935 -22
  98. package/dist/index316.js +11 -11
  99. package/dist/index317.js +19 -62
  100. package/dist/index318.js +19 -261
  101. package/dist/index319.js +68 -5
  102. package/dist/index320.js +18 -139
  103. package/dist/index321.js +19 -73
  104. package/dist/index322.js +20 -85
  105. package/dist/index323.js +21 -28
  106. package/dist/index324.js +63 -16
  107. package/dist/index325.js +1523 -64
  108. package/dist/index326.js +385 -3
  109. package/dist/index327.js +2731 -2
  110. package/dist/index328.js +80 -77
  111. package/dist/index329.js +3792 -53
  112. package/dist/index330.js +58 -4
  113. package/dist/index331.js +15 -5
  114. package/dist/index332.js +71 -166
  115. package/dist/index333.js +196 -57
  116. package/dist/index334.js +246 -75
  117. package/dist/index358.js +17 -35
  118. package/dist/index359.js +56 -19
  119. package/dist/index360.js +28 -19
  120. package/dist/index361.js +6 -63
  121. package/dist/index362.js +51 -36
  122. package/dist/index363.js +7 -19
  123. package/dist/index364.js +11 -56
  124. package/dist/index365.js +7 -29
  125. package/dist/index366.js +27 -6
  126. package/dist/index367.js +2 -52
  127. package/dist/index368.js +69 -6
  128. package/dist/index369.js +166 -11
  129. package/dist/index370.js +37 -7
  130. package/dist/index371.js +20 -28
  131. package/dist/index372.js +20 -2
  132. package/dist/index373.js +61 -67
  133. package/dist/index374.js +36 -166
  134. package/dist/index375.js +30 -97
  135. package/dist/index376.js +10 -100
  136. package/dist/index377.js +3 -90
  137. package/dist/index378.js +4 -17
  138. package/dist/index379.js +12 -30
  139. package/dist/index380.js +7 -11
  140. package/dist/index381.js +11 -3
  141. package/dist/index382.js +4 -3
  142. package/dist/index383.js +33 -13
  143. package/dist/index384.js +31 -7
  144. package/dist/index385.js +28 -12
  145. package/dist/index386.js +61 -5
  146. package/dist/index387.js +17 -33
  147. package/dist/index388.js +99 -29
  148. package/dist/index389.js +91 -28
  149. package/dist/index390.js +96 -59
  150. package/dist/index391.js +1 -1
  151. package/dist/index396.js +1 -1
  152. package/dist/index397.js +2 -2
  153. package/dist/src/components/comment/comment.d.ts +10 -0
  154. package/dist/src/components/comment/comment.stories.d.ts +10 -0
  155. package/dist/src/components/comment-section/comment-section.d.ts +20 -0
  156. package/dist/src/components/comment-section/comment-section.stories.d.ts +30 -0
  157. package/dist/src/components/file-upload/file-upload.d.ts +10 -0
  158. package/dist/src/components/file-upload/file-upload.stories.d.ts +1315 -0
  159. package/dist/src/components/wysiwyg/wysiwyg.d.ts +10 -0
  160. package/dist/src/components/wysiwyg/wysiwyg.stories.d.ts +10 -0
  161. package/package.json +1 -1
package/dist/index238.js CHANGED
@@ -1,57 +1,36 @@
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
- };
1
+ import t from "./index283.js";
2
+ var a = {
3
+ root: function(e) {
4
+ var o = e.props;
5
+ return ["p-fileupload p-fileupload-".concat(o.mode, " p-component")];
9
6
  },
10
- content: "block+",
11
- group: "block",
12
- defining: !0,
13
- parseHTML() {
14
- return [{ tag: "blockquote" }];
7
+ buttonbar: "p-fileupload-buttonbar",
8
+ chooseButton: function(e) {
9
+ var o = e.instance, l = e.props;
10
+ return ["p-button p-component p-fileupload-choose", {
11
+ "p-fileupload-choose-selected": l.mode === "basic" && o.hasFiles,
12
+ "p-disabled": l.disabled,
13
+ "p-focus": o.focused
14
+ }];
15
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
- }
16
+ chooseIcon: "p-button-icon p-button-icon-left",
17
+ chooseButtonLabel: "p-button-label",
18
+ content: "p-fileupload-content",
19
+ empty: "p-fileupload-empty",
20
+ uploadIcon: "p-button-icon p-button-icon-left",
21
+ label: "p-button-label",
22
+ file: "p-fileupload-file",
23
+ thumbnail: "p-fileupload-file-thumbnail",
24
+ details: "p-fileupload-file-details",
25
+ fileName: "p-fileupload-file-name",
26
+ fileSize: "p-fileupload-file-size",
27
+ badge: "p-fileupload-file-badge",
28
+ actions: "p-fileupload-file-actions",
29
+ removeButton: "p-fileupload-file-remove"
30
+ }, n = t.extend({
31
+ name: "fileupload",
32
+ classes: a
53
33
  });
54
34
  export {
55
- g as Blockquote,
56
- l as inputRegex
35
+ n as default
57
36
  };
package/dist/index239.js CHANGED
@@ -1,79 +1,42 @@
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
- };
1
+ import t from "./index312.js";
2
+ import r from "./index209.js";
3
+ import { openBlock as n, createElementBlock as o, mergeProps as a, renderSlot as s, createTextVNode as p, toDisplayString as i } from "vue";
4
+ var l = {
5
+ name: "BaseBadge",
6
+ extends: r,
7
+ props: {
8
+ value: {
9
+ type: [String, Number],
10
+ default: null
11
+ },
12
+ severity: {
13
+ type: String,
14
+ default: null
15
+ },
16
+ size: {
17
+ type: String,
18
+ default: null
19
+ }
41
20
  },
42
- addKeyboardShortcuts() {
21
+ style: t,
22
+ provide: function() {
43
23
  return {
44
- "Mod-b": () => this.editor.commands.toggleBold(),
45
- "Mod-B": () => this.editor.commands.toggleBold()
24
+ $parentInstance: this
46
25
  };
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
26
  }
72
- });
27
+ }, u = {
28
+ name: "Badge",
29
+ extends: l,
30
+ inheritAttrs: !1
31
+ };
32
+ function d(e, c, f, m, g, $) {
33
+ return n(), o("span", a({
34
+ class: e.cx("root")
35
+ }, e.ptmi("root")), [s(e.$slots, "default", {}, function() {
36
+ return [p(i(e.value), 1)];
37
+ })], 16);
38
+ }
39
+ u.render = d;
73
40
  export {
74
- p as Bold,
75
- d as starInputRegex,
76
- l as starPasteRegex,
77
- i as underscoreInputRegex,
78
- u as underscorePasteRegex
41
+ u as default
79
42
  };
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,24 @@
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 r from "./index305.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;
50
22
  export {
51
- i as Code,
52
- o as inputRegex,
53
- u as pasteRegex
23
+ l as default
54
24
  };