@quoreadmin/ui 1.4.8 → 1.5.0
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/index.css +1 -1
- package/dist/index.js +59 -57
- package/dist/index10.js +234 -45
- package/dist/index100.js +10 -0
- package/dist/index102.js +39 -0
- package/dist/{index101.js → index104.js} +2 -2
- package/dist/{index103.js → index106.js} +1 -1
- package/dist/{index105.js → index108.js} +4 -4
- package/dist/index11.js +50 -178
- package/dist/{index107.js → index110.js} +7 -7
- package/dist/{index109.js → index112.js} +1 -1
- package/dist/{index111.js → index114.js} +5 -5
- package/dist/{index115.js → index118.js} +1 -1
- package/dist/index12.js +174 -65
- package/dist/{index123.js → index126.js} +2 -2
- package/dist/{index125.js → index128.js} +1 -1
- package/dist/index13.js +70 -28
- package/dist/{index129.js → index132.js} +1 -1
- package/dist/{index133.js → index136.js} +10 -10
- package/dist/{index135.js → index138.js} +9 -9
- package/dist/index14.js +29 -187
- package/dist/{index137.js → index140.js} +11 -11
- package/dist/{index145.js → index148.js} +1 -1
- package/dist/index15.js +180 -128
- package/dist/{index147.js → index150.js} +1 -1
- package/dist/{index149.js → index152.js} +2 -2
- package/dist/index154.js +205 -111
- package/dist/index157.js +110 -87
- package/dist/index158.js +478 -844
- package/dist/index159.js +5520 -36
- package/dist/index16.js +123 -303
- package/dist/index160.js +90 -279
- package/dist/index161.js +833 -122
- package/dist/index162.js +36 -1197
- package/dist/index163.js +268 -760
- package/dist/index164.js +146 -1304
- package/dist/index165.js +1151 -228
- package/dist/index166.js +754 -88
- package/dist/index167.js +1308 -2
- package/dist/index168.js +259 -1359
- package/dist/index169.js +108 -0
- package/dist/index17.js +314 -21
- package/dist/index170.js +2 -18
- package/dist/index171.js +1372 -14
- package/dist/index173.js +8 -8
- package/dist/index174.js +10 -17
- package/dist/index175.js +18 -759
- package/dist/index176.js +18 -1100
- package/dist/index177.js +22 -1231
- package/dist/index178.js +740 -11258
- package/dist/index179.js +1100 -36
- package/dist/index18.js +20 -43
- package/dist/index180.js +1200 -81
- package/dist/index181.js +11276 -43
- package/dist/index182.js +36 -1190
- package/dist/{index91.js → index183.js} +4 -4
- package/dist/index184.js +44 -5938
- package/dist/index185.js +1116 -133
- package/dist/index187.js +5933 -13
- package/dist/index188.js +205 -76
- package/dist/index189.js +28 -246
- package/dist/index19.js +44 -49
- package/dist/index190.js +14 -13680
- package/dist/index191.js +77 -26
- package/dist/index192.js +245 -55
- package/dist/index193.js +13655 -209
- package/dist/index194.js +26 -307
- package/dist/index195.js +43 -268
- package/dist/index196.js +231 -81
- package/dist/index197.js +288 -387
- package/dist/index198.js +287 -21
- package/dist/index2.js +2 -2
- package/dist/index20.js +49 -31
- package/dist/index202.js +2 -2
- package/dist/index203.js +1 -1
- package/dist/index204.js +1 -1
- package/dist/index205.js +1 -1
- package/dist/index206.js +1 -1
- package/dist/index207.js +4 -4
- package/dist/index209.js +4 -4
- package/dist/index21.js +32 -65
- package/dist/index212.js +1 -1
- package/dist/index213.js +83 -156
- package/dist/index214.js +407 -20
- package/dist/index215.js +22 -20
- package/dist/index216.js +3632 -22
- package/dist/index217.js +46 -190
- package/dist/index218.js +73 -66
- package/dist/index219.js +49 -31
- package/dist/index22.js +61 -170
- package/dist/index220.js +212 -37
- package/dist/index221.js +10 -22
- package/dist/index222.js +57 -22
- package/dist/index223.js +61 -20
- package/dist/index224.js +44 -826
- package/dist/index225.js +66 -693
- package/dist/index226.js +721 -174
- package/dist/index227.js +39 -20
- package/dist/index228.js +64 -20
- package/dist/index229.js +11 -22
- package/dist/index23.js +173 -10
- package/dist/index230.js +705 -20
- package/dist/index231.js +820 -20
- package/dist/index232.js +22 -3
- package/dist/index233.js +21 -186
- package/dist/index234.js +19 -132
- package/dist/index235.js +744 -1131
- package/dist/index236.js +679 -104
- package/dist/index237.js +176 -20
- package/dist/index238.js +13 -15
- package/dist/index239.js +13 -15
- package/dist/index24.js +9 -38
- package/dist/index240.js +21 -37
- package/dist/index241.js +13 -22
- package/dist/index242.js +10 -10
- package/dist/index243.js +13 -13
- package/dist/index244.js +2 -1
- package/dist/index245.js +187 -2
- package/dist/index246.js +120 -3619
- package/dist/index247.js +155 -49
- package/dist/index248.js +1214 -68
- package/dist/index249.js +122 -47
- package/dist/index25.js +36 -116
- package/dist/index250.js +20 -215
- package/dist/index251.js +22 -10
- package/dist/index252.js +20 -57
- package/dist/index253.js +22 -61
- package/dist/index254.js +33 -49
- package/dist/index255.js +29 -75
- package/dist/index256.js +19 -722
- package/dist/index257.js +20 -39
- package/dist/index258.js +2 -64
- package/dist/index259.js +2 -11
- package/dist/index26.js +116 -22
- package/dist/index260.js +156 -700
- package/dist/index261.js +208 -800
- package/dist/index262.js +33 -157
- package/dist/index263.js +9 -227
- package/dist/index264.js +21 -36
- package/dist/index265.js +198 -9
- package/dist/index266.js +69 -79
- package/dist/index267.js +34 -20
- package/dist/index268.js +39 -19
- package/dist/index269.js +72 -245
- package/dist/index27.js +24 -158
- package/dist/index270.js +20 -8
- package/dist/index271.js +20 -138
- package/dist/index272.js +232 -62
- package/dist/index273.js +7 -53
- package/dist/index274.js +118 -59
- package/dist/index275.js +83 -26
- package/dist/index276.js +3 -22
- package/dist/index277.js +26 -21
- package/dist/index278.js +235 -16
- package/dist/index279.js +6 -17
- package/dist/index28.js +141 -264
- package/dist/index280.js +132 -21
- package/dist/index281.js +68 -3
- package/dist/index282.js +85 -25
- package/dist/index283.js +26 -1515
- package/dist/index284.js +9 -386
- package/dist/index285.js +60 -2716
- package/dist/index286.js +3 -85
- package/dist/index287.js +2 -3770
- package/dist/index288.js +77 -54
- package/dist/index289.js +51 -76
- package/dist/index29.js +279 -62
- package/dist/index290.js +5 -21
- package/dist/index291.js +4 -934
- package/dist/index292.js +178 -21
- package/dist/index293.js +62 -19
- package/dist/index294.js +75 -20
- package/dist/index295.js +1518 -69
- package/dist/index296.js +386 -19
- package/dist/index297.js +2731 -19
- package/dist/index298.js +85 -21
- package/dist/index299.js +3770 -22
- package/dist/index3.js +2 -2
- package/dist/index30.js +64 -178
- package/dist/index300.js +60 -63
- package/dist/index301.js +15 -2
- package/dist/index302.js +84 -15
- package/dist/index303.js +188 -70
- package/dist/index304.js +220 -176
- package/dist/index305.js +66 -233
- package/dist/index306.js +74 -230
- package/dist/index307.js +21 -5
- package/dist/index308.js +925 -124
- package/dist/index309.js +21 -67
- package/dist/index31.js +177 -38
- package/dist/index310.js +18 -85
- package/dist/index311.js +19 -28
- package/dist/index312.js +67 -7
- package/dist/index313.js +19 -75
- package/dist/index314.js +19 -4
- package/dist/index315.js +54 -2
- package/dist/index316.js +21 -82
- package/dist/index317.js +21 -53
- package/dist/index318.js +63 -6
- package/dist/index319.js +2 -5
- package/dist/index32.js +38 -49
- package/dist/index320.js +25 -178
- package/dist/index321.js +21 -62
- package/dist/index322.js +22 -75
- package/dist/index323.js +15 -36
- package/dist/index324.js +17 -9
- package/dist/index325.js +23 -13
- package/dist/index326.js +8 -54
- package/dist/index327.js +12 -11
- package/dist/index328.js +52 -11
- package/dist/index329.js +9 -55
- package/dist/index33.js +47 -30
- package/dist/index330.js +13 -51
- package/dist/index331.js +51 -24
- package/dist/index332.js +52 -2
- package/dist/index333.js +31 -5
- package/dist/index334.js +2 -2
- package/dist/index335.js +4 -22
- package/dist/index336.js +2 -41
- package/dist/index337.js +23 -2
- package/dist/index338.js +40 -10
- package/dist/index339.js +2 -20
- package/dist/index34.js +31 -28
- package/dist/index340.js +10 -16
- package/dist/index341.js +20 -10
- package/dist/index342.js +16 -9
- package/dist/index343.js +10 -2
- package/dist/index344.js +9 -8
- package/dist/index345.js +2 -10
- package/dist/index346.js +8 -13
- package/dist/index347.js +9 -19
- package/dist/index348.js +14 -20
- package/dist/index349.js +19 -62
- package/dist/index35.js +29 -13
- package/dist/index350.js +55 -36
- package/dist/index351.js +26 -18
- package/dist/index352.js +6 -55
- package/dist/index353.js +51 -28
- package/dist/index354.js +6 -7
- package/dist/index355.js +11 -51
- package/dist/index356.js +6 -5
- package/dist/index357.js +28 -12
- package/dist/index358.js +2 -7
- package/dist/index359.js +69 -27
- package/dist/index36.js +15 -43
- package/dist/index360.js +167 -2
- package/dist/index361.js +34 -67
- package/dist/index362.js +20 -167
- package/dist/index363.js +20 -17
- package/dist/index364.js +61 -98
- package/dist/index365.js +37 -91
- package/dist/index366.js +12 -97
- package/dist/index367.js +7 -31
- package/dist/index368.js +30 -10
- package/dist/index369.js +10 -3
- package/dist/index37.js +42 -37
- package/dist/index370.js +3 -3
- package/dist/index371.js +4 -13
- package/dist/index372.js +12 -7
- package/dist/index373.js +4 -11
- package/dist/index374.js +33 -5
- package/dist/index375.js +31 -33
- package/dist/index376.js +26 -29
- package/dist/index377.js +59 -26
- package/dist/index378.js +96 -59
- package/dist/index379.js +100 -2
- package/dist/index38.js +36 -26
- package/dist/index380.js +91 -2
- package/dist/index381.js +17 -2
- package/dist/index382.js +3 -17
- package/dist/index383.js +2 -13
- package/dist/index384.js +2 -6
- package/dist/index385.js +17 -32
- package/dist/index386.js +15 -0
- package/dist/index387.js +8 -0
- package/dist/index388.js +34 -0
- package/dist/index39.js +25 -32
- package/dist/index4.js +2 -2
- package/dist/index40.js +32 -37
- package/dist/index41.js +37 -1068
- package/dist/index42.js +1045 -309
- package/dist/index43.js +326 -146
- package/dist/index44.js +155 -18
- package/dist/index45.js +16 -36
- package/dist/index46.js +38 -68
- package/dist/index47.js +67 -60
- package/dist/index48.js +56 -175
- package/dist/index49.js +173 -77
- package/dist/index5.js +2 -2
- package/dist/index50.js +79 -200
- package/dist/index51.js +206 -68
- package/dist/index52.js +69 -20
- package/dist/index53.js +20 -11
- package/dist/index54.js +10 -6
- package/dist/index55.js +5 -209
- package/dist/index56.js +210 -12
- package/dist/index57.js +12 -184
- package/dist/index58.js +176 -68
- package/dist/index59.js +79 -0
- package/dist/index6.js +2 -2
- package/dist/index61.js +7 -63
- package/dist/index62.js +65 -0
- package/dist/index7.js +2 -2
- package/dist/{index69.js → index70.js} +2 -2
- package/dist/index74.js +35 -78
- package/dist/index75.js +323 -0
- package/dist/index77.js +105 -0
- package/dist/{index76.js → index79.js} +7 -7
- package/dist/index8.js +3 -3
- package/dist/index81.js +77 -109
- package/dist/index83.js +22 -127
- package/dist/index84.js +140 -0
- package/dist/index86.js +141 -0
- package/dist/{index85.js → index88.js} +7 -7
- package/dist/index9.js +2 -2
- package/dist/{index89.js → index92.js} +1 -1
- package/dist/index94.js +105 -22
- package/dist/index96.js +16 -129
- package/dist/index97.js +30 -6
- package/dist/index99.js +128 -25
- package/dist/src/components/calendar/calendar.d.ts +262 -0
- package/dist/src/components/calendar/calendar.stories.d.ts +30 -0
- package/dist/src/components/calendar/calendar.vue.d.ts +2 -0
- package/dist/src/components/date-picker/date-picker.d.ts +2 -2
- package/dist/src/components/date-picker/date-picker.stories.d.ts +4 -4
- package/dist/src/components/grid/grid.stories.d.ts +10 -10
- package/dist/src/components/list/list.stories.d.ts +5 -5
- package/dist/src/components/modal/modal.stories.d.ts +5 -5
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +3 -3
- package/dist/src/components/select/select.d.ts +6 -5
- package/dist/src/components/select/select.stories.d.ts +15 -15
- package/dist/src/components/textarea/textarea.d.ts +1 -1
- package/dist/src/components/textarea/textarea.stories.d.ts +1 -1
- package/dist/src/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/index151.js +0 -210
- package/dist/index155.js +0 -497
- package/dist/index156.js +0 -5524
- package/dist/index172.js +0 -20
- package/dist/index186.js +0 -37
- package/dist/index60.js +0 -9
- package/dist/index73.js +0 -62
- package/dist/index78.js +0 -108
- package/dist/index80.js +0 -36
- package/dist/index93.js +0 -29
- /package/dist/{index113.js → index116.js} +0 -0
- /package/dist/{index117.js → index120.js} +0 -0
- /package/dist/{index119.js → index122.js} +0 -0
- /package/dist/{index121.js → index124.js} +0 -0
- /package/dist/{index127.js → index130.js} +0 -0
- /package/dist/{index131.js → index134.js} +0 -0
- /package/dist/{index139.js → index142.js} +0 -0
- /package/dist/{index141.js → index144.js} +0 -0
- /package/dist/{index143.js → index146.js} +0 -0
- /package/dist/{index63.js → index64.js} +0 -0
- /package/dist/{index65.js → index66.js} +0 -0
- /package/dist/{index67.js → index68.js} +0 -0
- /package/dist/{index71.js → index72.js} +0 -0
- /package/dist/{index87.js → index90.js} +0 -0
package/dist/index227.js
CHANGED
|
@@ -1,22 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { Node as a, mergeAttributes as n } from "./index216.js";
|
|
2
|
+
var i = a.create({
|
|
3
|
+
name: "paragraph",
|
|
4
|
+
priority: 1e3,
|
|
5
|
+
addOptions() {
|
|
6
|
+
return {
|
|
7
|
+
HTMLAttributes: {}
|
|
8
|
+
};
|
|
9
|
+
},
|
|
10
|
+
group: "block",
|
|
11
|
+
content: "inline*",
|
|
12
|
+
parseHTML() {
|
|
13
|
+
return [{ tag: "p" }];
|
|
14
|
+
},
|
|
15
|
+
renderHTML({ HTMLAttributes: r }) {
|
|
16
|
+
return ["p", n(this.options.HTMLAttributes, r), 0];
|
|
17
|
+
},
|
|
18
|
+
parseMarkdown: (r, e) => {
|
|
19
|
+
const t = r.tokens || [];
|
|
20
|
+
return t.length === 1 && t[0].type === "image" ? e.parseChildren([t[0]]) : e.createNode(
|
|
21
|
+
"paragraph",
|
|
22
|
+
void 0,
|
|
23
|
+
// no attributes for paragraph
|
|
24
|
+
e.parseInline(t)
|
|
25
|
+
);
|
|
26
|
+
},
|
|
27
|
+
renderMarkdown: (r, e) => !r || !Array.isArray(r.content) ? "" : e.renderChildren(r.content),
|
|
28
|
+
addCommands() {
|
|
29
|
+
return {
|
|
30
|
+
setParagraph: () => ({ commands: r }) => r.setNode(this.name)
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
addKeyboardShortcuts() {
|
|
34
|
+
return {
|
|
35
|
+
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
20
39
|
export {
|
|
21
|
-
|
|
40
|
+
i as Paragraph
|
|
22
41
|
};
|
package/dist/index228.js
CHANGED
|
@@ -1,22 +1,66 @@
|
|
|
1
|
-
import r from "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { Mark as r, markPasteRule as s, markInputRule as n, mergeAttributes as a } from "./index216.js";
|
|
2
|
+
var i = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, d = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, o = r.create({
|
|
3
|
+
name: "strike",
|
|
4
|
+
addOptions() {
|
|
5
|
+
return {
|
|
6
|
+
HTMLAttributes: {}
|
|
7
|
+
};
|
|
8
|
+
},
|
|
9
|
+
parseHTML() {
|
|
10
|
+
return [
|
|
11
|
+
{
|
|
12
|
+
tag: "s"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
tag: "del"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
tag: "strike"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
style: "text-decoration",
|
|
22
|
+
consuming: !1,
|
|
23
|
+
getAttrs: (e) => e.includes("line-through") ? {} : !1
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
},
|
|
27
|
+
renderHTML({ HTMLAttributes: e }) {
|
|
28
|
+
return ["s", a(this.options.HTMLAttributes, e), 0];
|
|
29
|
+
},
|
|
30
|
+
markdownTokenName: "del",
|
|
31
|
+
parseMarkdown: (e, t) => t.applyMark("strike", t.parseInline(e.tokens || [])),
|
|
32
|
+
renderMarkdown: (e, t) => `~~${t.renderChildren(e)}~~`,
|
|
33
|
+
addCommands() {
|
|
34
|
+
return {
|
|
35
|
+
setStrike: () => ({ commands: e }) => e.setMark(this.name),
|
|
36
|
+
toggleStrike: () => ({ commands: e }) => e.toggleMark(this.name),
|
|
37
|
+
unsetStrike: () => ({ commands: e }) => e.unsetMark(this.name)
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
addKeyboardShortcuts() {
|
|
41
|
+
return {
|
|
42
|
+
"Mod-Shift-s": () => this.editor.commands.toggleStrike()
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
addInputRules() {
|
|
46
|
+
return [
|
|
47
|
+
n({
|
|
48
|
+
find: i,
|
|
49
|
+
type: this.type
|
|
50
|
+
})
|
|
51
|
+
];
|
|
52
|
+
},
|
|
53
|
+
addPasteRules() {
|
|
54
|
+
return [
|
|
55
|
+
s({
|
|
56
|
+
find: d,
|
|
57
|
+
type: this.type
|
|
58
|
+
})
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
});
|
|
20
62
|
export {
|
|
21
|
-
|
|
63
|
+
o as Strike,
|
|
64
|
+
i as inputRegex,
|
|
65
|
+
d as pasteRegex
|
|
22
66
|
};
|
package/dist/index229.js
CHANGED
|
@@ -1,24 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, null, -1), p = [i];
|
|
12
|
-
function d(e, s, a, c, m, h) {
|
|
13
|
-
return C(), t("svg", o({
|
|
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;
|
|
1
|
+
import { Node as t } from "./index216.js";
|
|
2
|
+
var o = t.create({
|
|
3
|
+
name: "text",
|
|
4
|
+
group: "inline",
|
|
5
|
+
parseMarkdown: (e) => ({
|
|
6
|
+
type: "text",
|
|
7
|
+
text: e.text || ""
|
|
8
|
+
}),
|
|
9
|
+
renderMarkdown: (e) => e.text || ""
|
|
10
|
+
});
|
|
22
11
|
export {
|
|
23
|
-
|
|
12
|
+
o as Text
|
|
24
13
|
};
|
package/dist/index23.js
CHANGED
|
@@ -1,14 +1,177 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import $ from "./index99.js";
|
|
2
|
+
import { resolveComponent as a, createElementBlock as r, openBlock as l, createVNode as n, withCtx as i, createElementVNode as p, createCommentVNode as d, renderSlot as U, normalizeStyle as z, normalizeClass as g, toDisplayString as s, 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 "./index61.js";
|
|
4
|
+
const L = { class: "file-upload-container w-full" }, H = {
|
|
5
|
+
ref: "dropZoneRef",
|
|
6
|
+
class: "flex flex-col relative"
|
|
7
|
+
}, R = { class: "mt-2 mb-0 text-inkwell-0 text-sm" }, A = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "image-gallery-container"
|
|
10
|
+
}, D = {
|
|
11
|
+
id: "add-file-label",
|
|
12
|
+
class: "text-inkwell-20 leading-[1.25rem] text-xs"
|
|
13
|
+
}, V = {
|
|
14
|
+
id: "file-upload-error-message",
|
|
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" }, _ = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "sm-down:text-sm text-center text-inkwell-0"
|
|
19
|
+
}, N = {
|
|
20
|
+
key: 1,
|
|
21
|
+
id: "file-size-errors",
|
|
22
|
+
class: "mb-2 md:mb-6 sm-down:text-sm text-center text-inkwell-0 text-left"
|
|
23
|
+
}, T = {
|
|
24
|
+
key: 2,
|
|
25
|
+
class: "sm-down:text-sm text-center text-inkwell-0"
|
|
26
|
+
}, Z = {
|
|
27
|
+
key: 3,
|
|
28
|
+
id: "file-type-errors",
|
|
29
|
+
class: "mb-2 md:mb-6 sm-down:text-sm text-center text-inkwell-0 text-left"
|
|
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, {
|
|
35
|
+
ref: "fileUpload",
|
|
36
|
+
name: e.name,
|
|
37
|
+
url: e.url,
|
|
38
|
+
multiple: e.multiple,
|
|
39
|
+
accept: e.filesAllowed,
|
|
40
|
+
maxFileSize: e.maxFileSize,
|
|
41
|
+
auto: e.autoUpload,
|
|
42
|
+
"custom-upload": e.customUpload,
|
|
43
|
+
disabled: e.disabled,
|
|
44
|
+
onError: t[3] || (t[3] = (o) => e.onUploadError(o)),
|
|
45
|
+
onUpload: e.onUpload,
|
|
46
|
+
onUploader: t[4] || (t[4] = (o) => e.onUploading(o)),
|
|
47
|
+
onSelect: e.onSelectedFiles,
|
|
48
|
+
pt: {
|
|
49
|
+
root: { class: "flex flex-col" },
|
|
50
|
+
content: `!py-0 !px-0 !border-none ${e.expands ? "md:!rounded-lg !rounded-2xl" : "!rounded-lg"}`,
|
|
51
|
+
buttonbar: { class: "order-last hidden" }
|
|
52
|
+
},
|
|
53
|
+
ptOptions: { mergeProps: !0 }
|
|
54
|
+
}, {
|
|
55
|
+
content: i((o) => [
|
|
56
|
+
p("div", H, [
|
|
57
|
+
e.isOverDropZone && e.mq.md ? (l(), r("div", {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: g([
|
|
60
|
+
"flex flex-col items-center justify-center",
|
|
61
|
+
"bg-gray-0 border border-blue-20 border-dashed",
|
|
62
|
+
"rounded-lg h-[calc(100%+2px)] w-[calc(100%+2px)] -m-px",
|
|
63
|
+
"absolute top-0 left-0 z-30",
|
|
64
|
+
{
|
|
65
|
+
"cursor-pointer": !e.disabled,
|
|
66
|
+
"border-red-30": o.messages && o.messages.length > 0
|
|
67
|
+
}
|
|
68
|
+
]),
|
|
69
|
+
style: z(`
|
|
70
|
+
height: ${(e.dropZoneRef?.closest(".editor-container")?.clientHeight || 0) + 2}px;
|
|
71
|
+
top: ${e.dropZoneRef?.closest(".show-formatting-menu") ? -36 : 0}px;
|
|
72
|
+
`)
|
|
73
|
+
}, [
|
|
74
|
+
n(u, {
|
|
75
|
+
icon: "paperclip",
|
|
76
|
+
size: "lg",
|
|
77
|
+
type: "line",
|
|
78
|
+
color: "gray-40"
|
|
79
|
+
}),
|
|
80
|
+
p("div", R, s(e.$t("HC_CLICK_DRAG_FILES_HERE")), 1)
|
|
81
|
+
], 6)) : d("", !0),
|
|
82
|
+
U(e.$slots, "default"),
|
|
83
|
+
e.allFiles.length || e.showGallery ? (l(), r("div", A, [
|
|
84
|
+
n(h, {
|
|
85
|
+
files: e.allFiles,
|
|
86
|
+
"show-remove": !0,
|
|
87
|
+
processing: e.processing,
|
|
88
|
+
class: "px-4 mt-2 mb-2",
|
|
89
|
+
"onUpdate:modelValue": e.onRemoveFile
|
|
90
|
+
}, {
|
|
91
|
+
actions: i(() => [
|
|
92
|
+
p("div", F({
|
|
93
|
+
id: "add-file-container",
|
|
94
|
+
"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
|
+
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, {
|
|
106
|
+
icon: "circle-plus",
|
|
107
|
+
color: "inkwell-0",
|
|
108
|
+
class: "shrink-0",
|
|
109
|
+
size: "md"
|
|
110
|
+
}),
|
|
111
|
+
p("div", D, s(e.$t("HC_ADD")), 1)
|
|
112
|
+
], 16)
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["files", "processing", "onUpdate:modelValue"])
|
|
116
|
+
])) : d("", !0)
|
|
117
|
+
], 512)
|
|
118
|
+
]),
|
|
119
|
+
_: 3
|
|
120
|
+
}, 8, ["name", "url", "multiple", "accept", "maxFileSize", "auto", "custom-upload", "disabled", "onUpload", "onSelect", "pt"]),
|
|
121
|
+
n(q, { name: "fade" }, {
|
|
122
|
+
default: i(() => [
|
|
123
|
+
(l(), c(C, { to: "body" }, [
|
|
124
|
+
e.sizeErrors.length || e.typeErrors.length ? (l(), c(v, {
|
|
125
|
+
key: 0,
|
|
126
|
+
id: "file-upload-error-modal",
|
|
127
|
+
dismissible: !1,
|
|
128
|
+
overlay: e.mq.md ? "white-transparent" : "black-transparent",
|
|
129
|
+
"container-class": "h-fit min-h-fit"
|
|
130
|
+
}, {
|
|
131
|
+
default: i(() => [
|
|
132
|
+
n(w, null, {
|
|
133
|
+
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
|
+
size: e.maxFileSize / 1024 / 1024
|
|
138
|
+
})), 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))
|
|
141
|
+
])) : d("", !0),
|
|
142
|
+
e.typeErrors.length ? (l(), r("p", T, s(e.$t("HC_INVALID_FILE_TYPES", {
|
|
143
|
+
types: e.displayAllowedTypes
|
|
144
|
+
}) + ":"), 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))
|
|
147
|
+
])) : d("", !0)
|
|
148
|
+
])
|
|
149
|
+
]),
|
|
150
|
+
footer: i(() => [
|
|
151
|
+
n(E, {
|
|
152
|
+
class: g([e.mq.md ? "mx-3" : "w-full"]),
|
|
153
|
+
status: e.mq.md ? "primary" : "primary-blue",
|
|
154
|
+
size: "lg",
|
|
155
|
+
onClick: t[5] || (t[5] = (o) => e.clearErrors())
|
|
156
|
+
}, {
|
|
157
|
+
default: i(() => [
|
|
158
|
+
S(s(e.$t("HC_OK")), 1)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["class", "status"])
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
})
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["overlay"])) : d("", !0)
|
|
168
|
+
]))
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
})
|
|
9
172
|
]);
|
|
10
173
|
}
|
|
11
|
-
const
|
|
174
|
+
const J = /* @__PURE__ */ I($, [["render", B]]);
|
|
12
175
|
export {
|
|
13
|
-
|
|
176
|
+
J as default
|
|
14
177
|
};
|