@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.
- package/dist/index104.js +35 -28
- package/dist/index181.js +4 -4
- package/dist/index188.js +7 -7
- package/dist/index193.js +17 -17
- package/dist/index196.js +21 -21
- package/dist/index197.js +1 -1
- package/dist/index198.js +1 -1
- package/dist/index201.js +2 -2
- package/dist/index203.js +14 -14
- package/dist/index204.js +1 -1
- package/dist/index205.js +1 -1
- package/dist/index206.js +3 -3
- package/dist/index207.js +6 -6
- package/dist/index225.js +1 -1
- package/dist/index228.js +1 -1
- package/dist/index229.js +1 -1
- package/dist/index230.js +1 -1
- package/dist/index231.js +1 -1
- package/dist/index232.js +1 -1
- package/dist/index233.js +159 -159
- package/dist/index234.js +20 -228
- package/dist/index235.js +21 -36
- package/dist/index236.js +198 -9
- package/dist/index237.js +63 -3629
- package/dist/index238.js +31 -52
- package/dist/index239.js +36 -73
- package/dist/index24.js +61 -58
- package/dist/index240.js +22 -52
- package/dist/index241.js +22 -215
- package/dist/index242.js +20 -10
- package/dist/index243.js +827 -48
- package/dist/index244.js +691 -50
- package/dist/index245.js +174 -52
- package/dist/index246.js +22 -75
- package/dist/index247.js +19 -725
- package/dist/index248.js +20 -42
- package/dist/index249.js +3 -64
- package/dist/index250.js +187 -11
- package/dist/index251.js +124 -696
- package/dist/index252.js +1189 -786
- package/dist/index253.js +18 -159
- package/dist/index254.js +14 -12
- package/dist/index255.js +10 -10
- package/dist/index256.js +28 -198
- package/dist/index257.js +19 -69
- package/dist/index258.js +20 -34
- package/dist/index259.js +2 -40
- package/dist/index260.js +2 -22
- package/dist/index261.js +160 -21
- package/dist/index262.js +228 -20
- package/dist/index263.js +34 -833
- package/dist/index264.js +9 -701
- package/dist/index265.js +3630 -170
- package/dist/index266.js +55 -22
- package/dist/index267.js +77 -20
- package/dist/index268.js +52 -20
- package/dist/index269.js +215 -3
- package/dist/index270.js +10 -187
- package/dist/index271.js +52 -128
- package/dist/index272.js +52 -1214
- package/dist/index273.js +54 -20
- package/dist/index274.js +75 -22
- package/dist/index275.js +725 -21
- package/dist/index276.js +42 -29
- package/dist/index277.js +64 -20
- package/dist/index278.js +11 -20
- package/dist/index279.js +705 -2
- package/dist/index280.js +820 -2
- package/dist/index287.js +262 -2
- package/dist/index288.js +5 -78
- package/dist/index289.js +130 -1524
- package/dist/index290.js +65 -378
- package/dist/index291.js +81 -2725
- package/dist/index292.js +26 -83
- package/dist/index293.js +13 -3789
- package/dist/index294.js +72 -57
- package/dist/index295.js +4 -15
- package/dist/index296.js +2 -84
- package/dist/index297.js +74 -193
- package/dist/index298.js +53 -246
- package/dist/index299.js +5 -53
- package/dist/index300.js +4 -25
- package/dist/index301.js +178 -21
- package/dist/index302.js +62 -21
- package/dist/index303.js +74 -15
- package/dist/index304.js +2 -17
- package/dist/index305.js +78 -22
- package/dist/index306.js +38 -63
- package/dist/index307.js +17 -13
- package/dist/index308.js +22 -935
- package/dist/index309.js +8 -8
- package/dist/index310.js +16 -20
- package/dist/index311.js +17 -20
- package/dist/index312.js +22 -68
- package/dist/index313.js +76 -16
- package/dist/index314.js +22 -19
- package/dist/index315.js +935 -22
- package/dist/index316.js +11 -11
- package/dist/index317.js +19 -62
- package/dist/index318.js +19 -261
- package/dist/index319.js +68 -5
- package/dist/index320.js +18 -139
- package/dist/index321.js +19 -73
- package/dist/index322.js +20 -85
- package/dist/index323.js +21 -28
- package/dist/index324.js +63 -16
- package/dist/index325.js +1523 -64
- package/dist/index326.js +385 -3
- package/dist/index327.js +2731 -2
- package/dist/index328.js +80 -77
- package/dist/index329.js +3792 -53
- package/dist/index330.js +58 -4
- package/dist/index331.js +15 -5
- package/dist/index332.js +71 -166
- package/dist/index333.js +196 -57
- package/dist/index334.js +246 -75
- package/dist/index358.js +17 -35
- package/dist/index359.js +56 -19
- package/dist/index360.js +28 -19
- package/dist/index361.js +6 -63
- package/dist/index362.js +51 -36
- package/dist/index363.js +7 -19
- package/dist/index364.js +11 -56
- package/dist/index365.js +7 -29
- package/dist/index366.js +27 -6
- package/dist/index367.js +2 -52
- package/dist/index368.js +69 -6
- package/dist/index369.js +166 -11
- package/dist/index370.js +37 -7
- package/dist/index371.js +20 -28
- package/dist/index372.js +20 -2
- package/dist/index373.js +61 -67
- package/dist/index374.js +36 -166
- package/dist/index375.js +30 -97
- package/dist/index376.js +10 -100
- package/dist/index377.js +3 -90
- package/dist/index378.js +4 -17
- package/dist/index379.js +12 -30
- package/dist/index380.js +7 -11
- package/dist/index381.js +11 -3
- package/dist/index382.js +4 -3
- package/dist/index383.js +33 -13
- package/dist/index384.js +31 -7
- package/dist/index385.js +28 -12
- package/dist/index386.js +61 -5
- package/dist/index387.js +17 -33
- package/dist/index388.js +99 -29
- package/dist/index389.js +91 -28
- package/dist/index390.js +96 -59
- package/dist/index391.js +1 -1
- package/dist/index396.js +1 -1
- package/dist/index397.js +2 -2
- package/dist/src/components/comment/comment.d.ts +10 -0
- package/dist/src/components/comment/comment.stories.d.ts +10 -0
- package/dist/src/components/comment-section/comment-section.d.ts +20 -0
- package/dist/src/components/comment-section/comment-section.stories.d.ts +30 -0
- package/dist/src/components/file-upload/file-upload.d.ts +10 -0
- package/dist/src/components/file-upload/file-upload.stories.d.ts +1315 -0
- package/dist/src/components/wysiwyg/wysiwyg.d.ts +10 -0
- package/dist/src/components/wysiwyg/wysiwyg.stories.d.ts +10 -0
- package/package.json +1 -1
package/dist/index238.js
CHANGED
|
@@ -1,57 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
56
|
-
l as inputRegex
|
|
35
|
+
n as default
|
|
57
36
|
};
|
package/dist/index239.js
CHANGED
|
@@ -1,79 +1,42 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
21
|
+
style: t,
|
|
22
|
+
provide: function() {
|
|
43
23
|
return {
|
|
44
|
-
|
|
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
|
-
|
|
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
|
|
2
|
-
import { resolveComponent as a, openBlock as
|
|
3
|
-
import
|
|
4
|
-
const L = { class: "file-upload-container w-full" },
|
|
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" },
|
|
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
|
-
},
|
|
13
|
+
}, O = {
|
|
14
14
|
id: "file-upload-error-message",
|
|
15
15
|
class: "flex flex-col gap-2 text-center"
|
|
16
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
23
|
+
}, Z = {
|
|
24
24
|
key: 2,
|
|
25
25
|
class: "sm-down:text-sm text-center text-inkwell-0"
|
|
26
|
-
},
|
|
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,
|
|
32
|
-
const
|
|
33
|
-
return
|
|
34
|
-
n(
|
|
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
|
-
|
|
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] = (
|
|
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((
|
|
56
|
-
|
|
57
|
-
e.isOverDropZone && e.mq.md ? (
|
|
56
|
+
content: i((l) => [
|
|
57
|
+
m("div", I, [
|
|
58
|
+
e.isOverDropZone && e.mq.md ? (o(), r("div", {
|
|
58
59
|
key: 0,
|
|
59
|
-
class:
|
|
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":
|
|
67
|
+
"border-red-30": l.messages && l.messages.length > 0
|
|
67
68
|
}
|
|
68
69
|
]),
|
|
69
|
-
style:
|
|
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(
|
|
75
|
+
n(f, {
|
|
75
76
|
icon: "paperclip",
|
|
76
77
|
size: "lg",
|
|
77
78
|
type: "line",
|
|
78
79
|
color: "gray-40"
|
|
79
80
|
}),
|
|
80
|
-
|
|
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 ? (
|
|
84
|
-
n(
|
|
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
|
-
|
|
93
|
+
m("div", {
|
|
93
94
|
id: "add-file-container",
|
|
94
95
|
"aria-labelledby": "add-file-label",
|
|
95
|
-
class:
|
|
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:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
112
|
-
],
|
|
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(
|
|
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
|
-
(
|
|
124
|
-
e.sizeErrors.length || e.typeErrors.length ? (
|
|
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(
|
|
135
|
+
n(E, null, {
|
|
133
136
|
body: i(() => [
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
e.sizeErrors.length ? (
|
|
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 ? (
|
|
140
|
-
(
|
|
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 ? (
|
|
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 ? (
|
|
146
|
-
(
|
|
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(
|
|
152
|
-
class:
|
|
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] = (
|
|
158
|
+
onClick: t[5] || (t[5] = (l) => e.clearErrors())
|
|
156
159
|
}, {
|
|
157
160
|
default: i(() => [
|
|
158
|
-
|
|
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__ */
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
52
|
-
o as inputRegex,
|
|
53
|
-
u as pasteRegex
|
|
23
|
+
l as default
|
|
54
24
|
};
|