@quoreadmin/ui 1.7.20 → 1.8.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/index.css +1 -1
- package/dist/index.js +42 -40
- package/dist/index10.js +2 -2
- package/dist/{index100.js → index101.js} +1 -1
- package/dist/index103.js +138 -6
- package/dist/index104.js +4 -0
- package/dist/index107.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +3 -3
- package/dist/index113.js +6 -6
- package/dist/index115.js +1 -1
- package/dist/index117.js +5 -5
- package/dist/index12.js +2 -2
- package/dist/index127.js +69 -10
- package/dist/index129.js +9 -75
- package/dist/index13.js +2 -2
- package/dist/index131.js +68 -243
- package/dist/index133.js +257 -0
- package/dist/index136.js +35 -16
- package/dist/index138.js +22 -50
- package/dist/index14.js +2 -2
- package/dist/index140.js +38 -1110
- package/dist/index142.js +1059 -216
- package/dist/index144.js +238 -294
- package/dist/index146.js +335 -16
- package/dist/index148.js +15 -87
- package/dist/index15.js +2 -2
- package/dist/index150.js +71 -61
- package/dist/index152.js +66 -93
- package/dist/index154.js +120 -0
- package/dist/index157.js +373 -28
- package/dist/index159.js +28 -194
- package/dist/index16.js +2 -2
- package/dist/index161.js +210 -0
- package/dist/index164.js +110 -5518
- package/dist/index165.js +484 -80
- package/dist/index166.js +5505 -844
- package/dist/index167.js +90 -37
- package/dist/index168.js +816 -235
- package/dist/index169.js +28 -140
- package/dist/index17.js +2 -2
- package/dist/index170.js +271 -1190
- package/dist/index171.js +134 -756
- package/dist/index172.js +1133 -1242
- package/dist/index173.js +753 -257
- package/dist/index174.js +1290 -88
- package/dist/index175.js +276 -2
- package/dist/index176.js +86 -1356
- package/dist/index177.js +4 -0
- package/dist/index178.js +1372 -14
- package/dist/index18.js +2 -2
- package/dist/index180.js +11 -11
- package/dist/index181.js +11 -11
- package/dist/index182.js +12 -19
- package/dist/index183.js +18 -759
- package/dist/index184.js +25 -1122
- package/dist/index185.js +625 -1100
- package/dist/index186.js +1122 -11277
- package/dist/index187.js +1234 -36
- package/dist/index188.js +11276 -43
- package/dist/index19.js +2 -2
- package/dist/index191.js +36 -5938
- package/dist/index192.js +42 -205
- package/dist/index193.js +5922 -19
- package/dist/index194.js +199 -10
- package/dist/index195.js +33 -76
- package/dist/index196.js +14 -249
- package/dist/index197.js +72 -13678
- package/dist/index198.js +253 -27
- package/dist/index199.js +13669 -48
- package/dist/index2.js +2 -2
- package/dist/index20.js +2 -2
- package/dist/index200.js +25 -236
- package/dist/index201.js +45 -290
- package/dist/index202.js +179 -229
- package/dist/index203.js +304 -29
- package/dist/index204.js +286 -114
- package/dist/index205.js +29 -32
- package/dist/index206.js +116 -26
- package/dist/index207.js +31 -31
- package/dist/index208.js +26 -9
- package/dist/index209.js +35 -18
- package/dist/index21.js +2 -2
- package/dist/index210.js +8 -9
- package/dist/index211.js +19 -10
- package/dist/index212.js +10 -51
- package/dist/index213.js +9 -42
- package/dist/index214.js +50 -3
- package/dist/index215.js +40 -36
- package/dist/index216.js +4 -21
- package/dist/index217.js +35 -84
- package/dist/index218.js +21 -407
- package/dist/index219.js +159 -20
- package/dist/index22.js +3 -3
- package/dist/index220.js +19 -160
- package/dist/index221.js +10 -10
- package/dist/index222.js +15 -13
- package/dist/index223.js +198 -21
- package/dist/index224.js +51 -180
- package/dist/index225.js +82 -64
- package/dist/index226.js +406 -33
- package/dist/index227.js +33 -39
- package/dist/index228.js +36 -123
- package/dist/index229.js +158 -35
- package/dist/index23.js +2 -2
- package/dist/index230.js +227 -79
- package/dist/index231.js +36 -19
- package/dist/index232.js +10 -20
- package/dist/index233.js +22 -20
- package/dist/index234.js +126 -19
- package/dist/index235.js +35 -158
- package/dist/index236.js +79 -227
- package/dist/index237.js +19 -36
- package/dist/index238.js +20 -10
- package/dist/index239.js +20 -3632
- package/dist/index24.js +2 -2
- package/dist/index240.js +20 -55
- package/dist/index241.js +22 -77
- package/dist/index242.js +22 -52
- package/dist/index243.js +20 -215
- package/dist/index244.js +836 -10
- package/dist/index245.js +695 -50
- package/dist/index246.js +174 -59
- package/dist/index247.js +22 -54
- package/dist/index248.js +20 -75
- package/dist/index249.js +19 -722
- package/dist/index25.js +60 -11
- package/dist/index250.js +3 -39
- package/dist/index251.js +181 -58
- package/dist/index252.js +133 -11
- package/dist/index253.js +1189 -671
- package/dist/index254.js +20 -820
- package/dist/index255.js +11 -11
- package/dist/index256.js +9 -9
- package/dist/index257.js +22 -13
- package/dist/index258.js +20 -836
- package/dist/index259.js +19 -701
- package/dist/index26.js +1 -1
- package/dist/index260.js +2 -176
- package/dist/index261.js +2 -22
- package/dist/index262.js +3632 -20
- package/dist/index263.js +55 -20
- package/dist/index264.js +77 -3
- package/dist/index265.js +46 -181
- package/dist/index266.js +209 -127
- package/dist/index267.js +10 -1223
- package/dist/index268.js +57 -20
- package/dist/index269.js +61 -22
- package/dist/index27.js +1 -1
- package/dist/index270.js +54 -22
- package/dist/index271.js +75 -29
- package/dist/index272.js +722 -19
- package/dist/index273.js +39 -20
- package/dist/index274.js +64 -2
- package/dist/index275.js +11 -2
- package/dist/index276.js +689 -237
- package/dist/index277.js +820 -8
- package/dist/index278.js +42 -126
- package/dist/index279.js +59 -63
- package/dist/index28.js +1 -1
- package/dist/index280.js +26 -3
- package/dist/index281.js +21 -26
- package/dist/index282.js +21 -53
- package/dist/index283.js +15 -78
- package/dist/index284.js +17 -26
- package/dist/index285.js +253 -22
- package/dist/index286.js +8 -22
- package/dist/index287.js +137 -15
- package/dist/index288.js +83 -17
- package/dist/index289.js +2 -2
- package/dist/index29.js +1 -1
- package/dist/index290.js +3 -2
- package/dist/index291.js +24 -1515
- package/dist/index292.js +2 -386
- package/dist/index293.js +245 -2714
- package/dist/index294.js +4 -84
- package/dist/index295.js +135 -3765
- package/dist/index296.js +70 -57
- package/dist/index297.js +86 -14
- package/dist/index298.js +27 -82
- package/dist/index299.js +13 -199
- package/dist/index3.js +2 -2
- package/dist/index30.js +1 -1
- package/dist/index300.js +66 -237
- package/dist/index301.js +3 -78
- package/dist/index302.js +2 -22
- package/dist/index303.js +74 -926
- package/dist/index304.js +52 -21
- package/dist/index305.js +5 -19
- package/dist/index306.js +4 -19
- package/dist/index307.js +171 -61
- package/dist/index308.js +62 -18
- package/dist/index309.js +74 -18
- package/dist/index31.js +1 -1
- package/dist/index310.js +78 -21
- package/dist/index311.js +11 -11
- package/dist/index312.js +930 -58
- package/dist/index313.js +21 -261
- package/dist/index314.js +19 -5
- package/dist/index315.js +19 -139
- package/dist/index316.js +67 -71
- package/dist/index317.js +17 -85
- package/dist/index318.js +19 -29
- package/dist/index319.js +21 -15
- package/dist/index32.js +1 -1
- package/dist/index320.js +21 -74
- package/dist/index321.js +63 -4
- package/dist/index322.js +1518 -2
- package/dist/index323.js +376 -73
- package/dist/index324.js +2726 -48
- package/dist/index325.js +84 -4
- package/dist/index326.js +3769 -4
- package/dist/index327.js +51 -170
- package/dist/index328.js +14 -62
- package/dist/index329.js +84 -75
- package/dist/index33.js +1 -1
- package/dist/index330.js +201 -8
- package/dist/index331.js +245 -12
- package/dist/index332.js +32 -50
- package/dist/index333.js +8 -11
- package/dist/index334.js +12 -13
- package/dist/index335.js +49 -52
- package/dist/index336.js +9 -49
- package/dist/index337.js +10 -27
- package/dist/index338.js +58 -2
- package/dist/index339.js +52 -5
- package/dist/index34.js +1 -1
- package/dist/index340.js +31 -2
- package/dist/index341.js +2 -23
- package/dist/index342.js +4 -40
- package/dist/index343.js +2 -2
- package/dist/index344.js +22 -10
- package/dist/index345.js +38 -17
- package/dist/index346.js +2 -17
- package/dist/index347.js +10 -9
- package/dist/index348.js +20 -10
- package/dist/index349.js +17 -2
- package/dist/index35.js +1 -1
- package/dist/index350.js +9 -8
- package/dist/index351.js +10 -10
- package/dist/index352.js +2 -14
- package/dist/index353.js +9 -37
- package/dist/index354.js +9 -19
- package/dist/index355.js +14 -20
- package/dist/index356.js +17 -62
- package/dist/index357.js +56 -36
- package/dist/index358.js +26 -16
- package/dist/index359.js +6 -56
- package/dist/index36.js +1 -1
- package/dist/index360.js +51 -28
- package/dist/index361.js +7 -7
- package/dist/index362.js +11 -51
- package/dist/index363.js +6 -6
- package/dist/index364.js +28 -12
- package/dist/index365.js +2 -7
- package/dist/index366.js +69 -27
- package/dist/index367.js +167 -2
- package/dist/index368.js +20 -70
- package/dist/index369.js +20 -167
- package/dist/index37.js +4 -16
- package/dist/index370.js +61 -98
- package/dist/index371.js +37 -91
- package/dist/index372.js +30 -97
- package/dist/index373.js +11 -17
- package/dist/index374.js +3 -30
- package/dist/index375.js +3 -10
- package/dist/index376.js +13 -4
- package/dist/index377.js +7 -4
- package/dist/index378.js +12 -13
- package/dist/index379.js +5 -7
- package/dist/index38.js +15 -43
- package/dist/index380.js +33 -12
- package/dist/index381.js +31 -5
- package/dist/index382.js +27 -32
- package/dist/index383.js +58 -28
- package/dist/index384.js +16 -27
- package/dist/index385.js +99 -59
- package/dist/index386.js +91 -3
- package/dist/index387.js +98 -2
- package/dist/index388.js +3 -2
- package/dist/index389.js +2 -17
- package/dist/index39.js +42 -67
- package/dist/index390.js +2 -13
- package/dist/index391.js +17 -6
- package/dist/index392.js +13 -32
- package/dist/index393.js +8 -0
- package/dist/index394.js +34 -0
- package/dist/index4.js +2 -2
- package/dist/index40.js +66 -26
- package/dist/index41.js +25 -32
- package/dist/index42.js +32 -37
- package/dist/index43.js +37 -1300
- package/dist/index44.js +1273 -337
- package/dist/index45.js +357 -145
- package/dist/index46.js +155 -18
- package/dist/index47.js +16 -42
- package/dist/index48.js +44 -68
- package/dist/index49.js +67 -61
- package/dist/index5.js +2 -2
- package/dist/index50.js +57 -175
- package/dist/index51.js +173 -77
- package/dist/index52.js +78 -199
- package/dist/index53.js +206 -68
- package/dist/index54.js +69 -20
- package/dist/index55.js +20 -11
- package/dist/index56.js +10 -6
- package/dist/index57.js +5 -209
- package/dist/index58.js +210 -12
- package/dist/index59.js +12 -184
- package/dist/index6.js +2 -2
- package/dist/index60.js +176 -68
- package/dist/index61.js +79 -0
- package/dist/index63.js +7 -63
- package/dist/index64.js +65 -0
- package/dist/index7.js +2 -2
- package/dist/{index71.js → index72.js} +2 -2
- package/dist/index76.js +40 -308
- package/dist/index77.js +330 -0
- package/dist/index8.js +3 -3
- package/dist/{index80.js → index81.js} +5 -5
- package/dist/{index82.js → index83.js} +1 -1
- package/dist/index85.js +23 -131
- package/dist/index86.js +144 -0
- package/dist/{index87.js → index88.js} +5 -5
- package/dist/index9.js +2 -2
- package/dist/{index89.js → index90.js} +5 -5
- package/dist/{index95.js → index96.js} +3 -3
- package/dist/index98.js +20 -25
- package/dist/index99.js +34 -0
- package/dist/src/components/footer-actions/footer-actions.stories.d.ts +33 -1
- package/dist/src/components/footer-actions/footer-actions.vue.d.ts +29 -2
- package/dist/src/components/page-header/page-header.stories.d.ts +394 -0
- package/dist/src/components/page-header/page-header.vue.d.ts +43 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/assets/illustrations/app-icon-news.svg +1 -0
- package/dist/index102.js +0 -142
- package/dist/index134.js +0 -56
- package/dist/index155.js +0 -389
- package/dist/index162.js +0 -116
- package/dist/index163.js +0 -497
- package/dist/index179.js +0 -20
- package/dist/index62.js +0 -9
- package/dist/index75.js +0 -62
- package/dist/index84.js +0 -36
- package/dist/index97.js +0 -29
- package/dist/src/components/footer-actions/footer-actions.d.ts +0 -3
- /package/dist/{index65.js → index66.js} +0 -0
- /package/dist/{index67.js → index68.js} +0 -0
- /package/dist/{index69.js → index70.js} +0 -0
- /package/dist/{index73.js → index74.js} +0 -0
- /package/dist/{index78.js → index79.js} +0 -0
- /package/dist/{index91.js → index92.js} +0 -0
- /package/dist/{index93.js → index94.js} +0 -0
package/dist/index185.js
CHANGED
|
@@ -1,1236 +1,761 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
var
|
|
14
|
-
name: "
|
|
15
|
-
extends:
|
|
1
|
+
import A from "./index219.js";
|
|
2
|
+
import O from "./index220.js";
|
|
3
|
+
import V from "./index221.js";
|
|
4
|
+
import R from "./index222.js";
|
|
5
|
+
import j from "./index223.js";
|
|
6
|
+
import K from "./index224.js";
|
|
7
|
+
import H from "./index225.js";
|
|
8
|
+
import { DomHandler as w } from "./index172.js";
|
|
9
|
+
import W from "./index226.js";
|
|
10
|
+
import G from "./index227.js";
|
|
11
|
+
import Y from "./index228.js";
|
|
12
|
+
import { resolveComponent as y, createElementBlock as f, openBlock as o, Fragment as U, renderList as E, mergeProps as r, createElementVNode as h, createVNode as L, toDisplayString as F, normalizeClass as B, withCtx as C, createBlock as m, resolveDynamicComponent as b, resolveDirective as Z, createCommentVNode as v, renderSlot as g, withDirectives as M, withKeys as T, createTextVNode as z } from "vue";
|
|
13
|
+
var q = {
|
|
14
|
+
name: "BaseFileUpload",
|
|
15
|
+
extends: W,
|
|
16
16
|
props: {
|
|
17
|
-
|
|
17
|
+
name: {
|
|
18
18
|
type: String,
|
|
19
19
|
default: null
|
|
20
20
|
},
|
|
21
|
-
|
|
22
|
-
type:
|
|
21
|
+
url: {
|
|
22
|
+
type: String,
|
|
23
23
|
default: null
|
|
24
24
|
},
|
|
25
|
-
|
|
26
|
-
type:
|
|
27
|
-
default:
|
|
28
|
-
},
|
|
29
|
-
fullScreen: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: !1
|
|
25
|
+
mode: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "advanced"
|
|
32
28
|
},
|
|
33
|
-
|
|
29
|
+
multiple: {
|
|
34
30
|
type: Boolean,
|
|
35
31
|
default: !1
|
|
36
32
|
},
|
|
37
|
-
|
|
38
|
-
type:
|
|
39
|
-
default: 3
|
|
40
|
-
},
|
|
41
|
-
responsiveOptions: {
|
|
42
|
-
type: Array,
|
|
33
|
+
accept: {
|
|
34
|
+
type: String,
|
|
43
35
|
default: null
|
|
44
36
|
},
|
|
45
|
-
|
|
37
|
+
disabled: {
|
|
46
38
|
type: Boolean,
|
|
47
39
|
default: !1
|
|
48
40
|
},
|
|
49
|
-
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: !0
|
|
52
|
-
},
|
|
53
|
-
showItemNavigatorsOnHover: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: !1
|
|
56
|
-
},
|
|
57
|
-
changeItemOnIndicatorHover: {
|
|
41
|
+
auto: {
|
|
58
42
|
type: Boolean,
|
|
59
43
|
default: !1
|
|
60
44
|
},
|
|
61
|
-
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: !1
|
|
64
|
-
},
|
|
65
|
-
autoPlay: {
|
|
66
|
-
type: Boolean,
|
|
67
|
-
default: !1
|
|
68
|
-
},
|
|
69
|
-
transitionInterval: {
|
|
45
|
+
maxFileSize: {
|
|
70
46
|
type: Number,
|
|
71
|
-
default:
|
|
72
|
-
},
|
|
73
|
-
showThumbnails: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
default: !0
|
|
47
|
+
default: null
|
|
76
48
|
},
|
|
77
|
-
|
|
49
|
+
invalidFileSizeMessage: {
|
|
78
50
|
type: String,
|
|
79
|
-
default: "
|
|
51
|
+
default: "{0}: Invalid file size, file size should be smaller than {1}."
|
|
80
52
|
},
|
|
81
|
-
|
|
53
|
+
invalidFileTypeMessage: {
|
|
82
54
|
type: String,
|
|
83
|
-
default: "
|
|
55
|
+
default: "{0}: Invalid file type, allowed file types: {1}."
|
|
84
56
|
},
|
|
85
|
-
|
|
86
|
-
type:
|
|
87
|
-
default:
|
|
57
|
+
fileLimit: {
|
|
58
|
+
type: Number,
|
|
59
|
+
default: null
|
|
60
|
+
},
|
|
61
|
+
invalidFileLimitMessage: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: "Maximum number of files exceeded, limit is {0} at most."
|
|
88
64
|
},
|
|
89
|
-
|
|
65
|
+
withCredentials: {
|
|
90
66
|
type: Boolean,
|
|
91
67
|
default: !1
|
|
92
68
|
},
|
|
93
|
-
|
|
94
|
-
type: String,
|
|
95
|
-
default: "bottom"
|
|
96
|
-
},
|
|
97
|
-
baseZIndex: {
|
|
69
|
+
previewWidth: {
|
|
98
70
|
type: Number,
|
|
99
|
-
default:
|
|
71
|
+
default: 50
|
|
100
72
|
},
|
|
101
|
-
|
|
73
|
+
chooseLabel: {
|
|
102
74
|
type: String,
|
|
103
75
|
default: null
|
|
104
76
|
},
|
|
105
|
-
|
|
106
|
-
type:
|
|
77
|
+
uploadLabel: {
|
|
78
|
+
type: String,
|
|
107
79
|
default: null
|
|
108
80
|
},
|
|
109
|
-
|
|
110
|
-
type:
|
|
81
|
+
cancelLabel: {
|
|
82
|
+
type: String,
|
|
111
83
|
default: null
|
|
112
84
|
},
|
|
113
|
-
|
|
114
|
-
type:
|
|
115
|
-
default:
|
|
85
|
+
customUpload: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
default: !1
|
|
116
88
|
},
|
|
117
|
-
|
|
118
|
-
type:
|
|
119
|
-
default:
|
|
89
|
+
showUploadButton: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: !0
|
|
120
92
|
},
|
|
121
|
-
|
|
122
|
-
type:
|
|
123
|
-
default:
|
|
93
|
+
showCancelButton: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: !0
|
|
124
96
|
},
|
|
125
|
-
|
|
97
|
+
chooseIcon: {
|
|
126
98
|
type: String,
|
|
127
|
-
default:
|
|
99
|
+
default: void 0
|
|
128
100
|
},
|
|
129
|
-
|
|
101
|
+
uploadIcon: {
|
|
130
102
|
type: String,
|
|
131
|
-
default:
|
|
132
|
-
}
|
|
103
|
+
default: void 0
|
|
104
|
+
},
|
|
105
|
+
cancelIcon: {
|
|
106
|
+
type: String,
|
|
107
|
+
default: void 0
|
|
108
|
+
},
|
|
109
|
+
style: null,
|
|
110
|
+
class: null
|
|
133
111
|
},
|
|
134
|
-
style:
|
|
112
|
+
style: G,
|
|
135
113
|
provide: function() {
|
|
136
114
|
return {
|
|
137
115
|
$parentInstance: this
|
|
138
116
|
};
|
|
139
117
|
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
146
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
147
|
-
}
|
|
148
|
-
function ae(e, t) {
|
|
149
|
-
if (e) {
|
|
150
|
-
if (typeof e == "string") return V(e, t);
|
|
151
|
-
var i = Object.prototype.toString.call(e).slice(8, -1);
|
|
152
|
-
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set") return Array.from(e);
|
|
153
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return V(e, t);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
function re(e) {
|
|
157
|
-
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
158
|
-
}
|
|
159
|
-
function oe(e) {
|
|
160
|
-
if (Array.isArray(e)) return V(e);
|
|
161
|
-
}
|
|
162
|
-
function V(e, t) {
|
|
163
|
-
(t == null || t > e.length) && (t = e.length);
|
|
164
|
-
for (var i = 0, n = new Array(t); i < t; i++) n[i] = e[i];
|
|
165
|
-
return n;
|
|
166
|
-
}
|
|
167
|
-
var _ = {
|
|
168
|
-
name: "GalleriaItem",
|
|
169
|
-
hostName: "Galleria",
|
|
170
|
-
extends: O,
|
|
171
|
-
emits: ["start-slideshow", "stop-slideshow", "update:activeIndex"],
|
|
118
|
+
}, P = {
|
|
119
|
+
name: "FileContent",
|
|
120
|
+
hostName: "FileUpload",
|
|
121
|
+
extends: W,
|
|
122
|
+
emits: ["remove"],
|
|
172
123
|
props: {
|
|
173
|
-
|
|
174
|
-
type: Boolean,
|
|
175
|
-
default: !1
|
|
176
|
-
},
|
|
177
|
-
activeIndex: {
|
|
178
|
-
type: Number,
|
|
179
|
-
default: 0
|
|
180
|
-
},
|
|
181
|
-
value: {
|
|
124
|
+
files: {
|
|
182
125
|
type: Array,
|
|
183
|
-
default:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
type: Boolean,
|
|
187
|
-
default: !0
|
|
188
|
-
},
|
|
189
|
-
showIndicators: {
|
|
190
|
-
type: Boolean,
|
|
191
|
-
default: !0
|
|
126
|
+
default: function() {
|
|
127
|
+
return [];
|
|
128
|
+
}
|
|
192
129
|
},
|
|
193
|
-
|
|
194
|
-
type:
|
|
195
|
-
default:
|
|
130
|
+
badgeSeverity: {
|
|
131
|
+
type: String,
|
|
132
|
+
default: "warning"
|
|
196
133
|
},
|
|
197
|
-
|
|
198
|
-
type:
|
|
199
|
-
default:
|
|
134
|
+
badgeValue: {
|
|
135
|
+
type: String,
|
|
136
|
+
default: null
|
|
200
137
|
},
|
|
201
|
-
|
|
202
|
-
type:
|
|
203
|
-
default:
|
|
138
|
+
previewWidth: {
|
|
139
|
+
type: Number,
|
|
140
|
+
default: 50
|
|
204
141
|
},
|
|
205
142
|
templates: {
|
|
206
143
|
type: null,
|
|
207
144
|
default: null
|
|
208
|
-
},
|
|
209
|
-
id: {
|
|
210
|
-
type: String,
|
|
211
|
-
default: null
|
|
212
145
|
}
|
|
213
146
|
},
|
|
214
|
-
mounted: function() {
|
|
215
|
-
this.autoPlay && this.$emit("start-slideshow");
|
|
216
|
-
},
|
|
217
147
|
methods: {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
},
|
|
225
|
-
next: function() {
|
|
226
|
-
var t = this.activeIndex + 1, i = this.circular && this.value.length - 1 === this.activeIndex ? 0 : t;
|
|
227
|
-
this.$emit("update:activeIndex", i);
|
|
228
|
-
},
|
|
229
|
-
prev: function() {
|
|
230
|
-
var t = this.activeIndex !== 0 ? this.activeIndex - 1 : 0, i = this.circular && this.activeIndex === 0 ? this.value.length - 1 : t;
|
|
231
|
-
this.$emit("update:activeIndex", i);
|
|
232
|
-
},
|
|
233
|
-
stopSlideShow: function() {
|
|
234
|
-
this.slideShowActive && this.stopSlideShow && this.$emit("stop-slideshow");
|
|
235
|
-
},
|
|
236
|
-
navBackward: function(t) {
|
|
237
|
-
this.stopSlideShow(), this.prev(), t && t.cancelable && t.preventDefault();
|
|
238
|
-
},
|
|
239
|
-
navForward: function(t) {
|
|
240
|
-
this.stopSlideShow(), this.next(), t && t.cancelable && t.preventDefault();
|
|
241
|
-
},
|
|
242
|
-
onIndicatorClick: function(t) {
|
|
243
|
-
this.stopSlideShow(), this.$emit("update:activeIndex", t);
|
|
244
|
-
},
|
|
245
|
-
onIndicatorMouseEnter: function(t) {
|
|
246
|
-
this.changeItemOnIndicatorHover && (this.stopSlideShow(), this.$emit("update:activeIndex", t));
|
|
247
|
-
},
|
|
248
|
-
onIndicatorKeyDown: function(t, i) {
|
|
249
|
-
switch (t.code) {
|
|
250
|
-
case "Enter":
|
|
251
|
-
case "NumpadEnter":
|
|
252
|
-
case "Space":
|
|
253
|
-
this.stopSlideShow(), this.$emit("update:activeIndex", i), t.preventDefault();
|
|
254
|
-
break;
|
|
255
|
-
case "ArrowRight":
|
|
256
|
-
this.onRightKey();
|
|
257
|
-
break;
|
|
258
|
-
case "ArrowLeft":
|
|
259
|
-
this.onLeftKey();
|
|
260
|
-
break;
|
|
261
|
-
case "Home":
|
|
262
|
-
this.onHomeKey(), t.preventDefault();
|
|
263
|
-
break;
|
|
264
|
-
case "End":
|
|
265
|
-
this.onEndKey(), t.preventDefault();
|
|
266
|
-
break;
|
|
267
|
-
case "Tab":
|
|
268
|
-
this.onTabKey();
|
|
269
|
-
break;
|
|
270
|
-
case "ArrowDown":
|
|
271
|
-
case "ArrowUp":
|
|
272
|
-
case "PageUp":
|
|
273
|
-
case "PageDown":
|
|
274
|
-
t.preventDefault();
|
|
275
|
-
break;
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
onRightKey: function() {
|
|
279
|
-
var t = g(c.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]')), i = this.findFocusedIndicatorIndex();
|
|
280
|
-
this.changedFocusedIndicator(i, i + 1 === t.length ? t.length - 1 : i + 1);
|
|
281
|
-
},
|
|
282
|
-
onLeftKey: function() {
|
|
283
|
-
var t = this.findFocusedIndicatorIndex();
|
|
284
|
-
this.changedFocusedIndicator(t, t - 1 <= 0 ? 0 : t - 1);
|
|
285
|
-
},
|
|
286
|
-
onHomeKey: function() {
|
|
287
|
-
var t = this.findFocusedIndicatorIndex();
|
|
288
|
-
this.changedFocusedIndicator(t, 0);
|
|
289
|
-
},
|
|
290
|
-
onEndKey: function() {
|
|
291
|
-
var t = g(c.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]')), i = this.findFocusedIndicatorIndex();
|
|
292
|
-
this.changedFocusedIndicator(i, t.length - 1);
|
|
293
|
-
},
|
|
294
|
-
onTabKey: function() {
|
|
295
|
-
var t = g(c.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]')), i = t.findIndex(function(a) {
|
|
296
|
-
return c.getAttribute(a, "data-p-highlight") === !0;
|
|
297
|
-
}), n = c.findSingle(this.$refs.indicatorContent, '[data-pc-section="indicator"] > button[tabindex="0"]'), r = t.findIndex(function(a) {
|
|
298
|
-
return a === n.parentElement;
|
|
299
|
-
});
|
|
300
|
-
t[r].children[0].tabIndex = "-1", t[i].children[0].tabIndex = "0";
|
|
301
|
-
},
|
|
302
|
-
findFocusedIndicatorIndex: function() {
|
|
303
|
-
var t = g(c.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]')), i = c.findSingle(this.$refs.indicatorContent, '[data-pc-section="indicator"] > button[tabindex="0"]');
|
|
304
|
-
return t.findIndex(function(n) {
|
|
305
|
-
return n === i.parentElement;
|
|
306
|
-
});
|
|
307
|
-
},
|
|
308
|
-
changedFocusedIndicator: function(t, i) {
|
|
309
|
-
var n = g(c.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]'));
|
|
310
|
-
n[t].children[0].tabIndex = "-1", n[i].children[0].tabIndex = "0", n[i].children[0].focus();
|
|
311
|
-
},
|
|
312
|
-
isIndicatorItemActive: function(t) {
|
|
313
|
-
return this.activeIndex === t;
|
|
314
|
-
},
|
|
315
|
-
isNavBackwardDisabled: function() {
|
|
316
|
-
return !this.circular && this.activeIndex === 0;
|
|
317
|
-
},
|
|
318
|
-
isNavForwardDisabled: function() {
|
|
319
|
-
return !this.circular && this.activeIndex === this.value.length - 1;
|
|
320
|
-
},
|
|
321
|
-
ariaSlideNumber: function(t) {
|
|
322
|
-
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slideNumber.replace(/{slideNumber}/g, t) : void 0;
|
|
323
|
-
},
|
|
324
|
-
ariaPageLabel: function(t) {
|
|
325
|
-
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, t) : void 0;
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
computed: {
|
|
329
|
-
activeItem: function() {
|
|
330
|
-
return this.value[this.activeIndex];
|
|
331
|
-
},
|
|
332
|
-
ariaSlideLabel: function() {
|
|
333
|
-
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slide : void 0;
|
|
148
|
+
formatSize: function(t) {
|
|
149
|
+
var i, s = 1024, n = 3, l = ((i = this.$primevue.config.locale) === null || i === void 0 ? void 0 : i.fileSizeTypes) || ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
|
150
|
+
if (t === 0)
|
|
151
|
+
return "0 ".concat(l[0]);
|
|
152
|
+
var u = Math.floor(Math.log(t) / Math.log(s)), a = parseFloat((t / Math.pow(s, u)).toFixed(n));
|
|
153
|
+
return "".concat(a, " ").concat(l[u]);
|
|
334
154
|
}
|
|
335
155
|
},
|
|
336
156
|
components: {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
directives: {
|
|
341
|
-
ripple: L
|
|
157
|
+
FileUploadButton: A,
|
|
158
|
+
FileUploadBadge: Y,
|
|
159
|
+
TimesIcon: V
|
|
342
160
|
}
|
|
343
|
-
},
|
|
344
|
-
function
|
|
345
|
-
var
|
|
346
|
-
return
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}),
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
type: "button",
|
|
374
|
-
class: e.cx("nextItemButton"),
|
|
375
|
-
onClick: t[1] || (t[1] = function(u) {
|
|
376
|
-
return a.navForward(u);
|
|
377
|
-
}),
|
|
378
|
-
disabled: a.isNavForwardDisabled()
|
|
379
|
-
}, e.ptm("nextItemButton"), {
|
|
380
|
-
"data-pc-group-section": "itemnavigator"
|
|
381
|
-
}), [(s(), f(p(i.templates.nextitemicon || "ChevronRightIcon"), l({
|
|
382
|
-
class: e.cx("nextItemIcon")
|
|
383
|
-
}, e.ptm("nextItemIcon")), null, 16, ["class"]))], 16, ue)), [[v]]) : h("", !0), i.templates.caption ? (s(), d("div", l({
|
|
384
|
-
key: 2,
|
|
385
|
-
class: e.cx("caption")
|
|
386
|
-
}, e.ptm("caption")), [i.templates.caption ? (s(), f(p(i.templates.caption), {
|
|
387
|
-
key: 0,
|
|
388
|
-
item: a.activeItem
|
|
389
|
-
}, null, 8, ["item"])) : h("", !0)], 16)) : h("", !0)], 16), i.showIndicators ? (s(), d("ul", l({
|
|
390
|
-
key: 0,
|
|
391
|
-
ref: "indicatorContent",
|
|
392
|
-
class: e.cx("indicators")
|
|
393
|
-
}, e.ptm("indicators")), [(s(!0), d(U, null, G(i.value, function(u, o) {
|
|
394
|
-
return s(), d("li", l({
|
|
395
|
-
key: "p-galleria-indicator-".concat(o),
|
|
396
|
-
class: e.cx("indicator", {
|
|
397
|
-
index: o
|
|
398
|
-
}),
|
|
399
|
-
"aria-label": a.ariaPageLabel(o + 1),
|
|
400
|
-
"aria-selected": i.activeIndex === o,
|
|
401
|
-
"aria-controls": i.id + "_item_" + o,
|
|
402
|
-
onClick: function(I) {
|
|
403
|
-
return a.onIndicatorClick(o);
|
|
404
|
-
},
|
|
405
|
-
onMouseenter: function(I) {
|
|
406
|
-
return a.onIndicatorMouseEnter(o);
|
|
161
|
+
}, X = ["alt", "src", "width"];
|
|
162
|
+
function J(e, t, i, s, n, l) {
|
|
163
|
+
var u = y("FileUploadBadge"), a = y("TimesIcon"), p = y("FileUploadButton");
|
|
164
|
+
return o(!0), f(U, null, E(i.files, function(d, I) {
|
|
165
|
+
return o(), f("div", r({
|
|
166
|
+
key: d.name + d.type + d.size,
|
|
167
|
+
class: e.cx("file")
|
|
168
|
+
}, e.ptm("file")), [h("img", r({
|
|
169
|
+
role: "presentation",
|
|
170
|
+
class: e.cx("thumbnail"),
|
|
171
|
+
alt: d.name,
|
|
172
|
+
src: d.objectURL,
|
|
173
|
+
width: i.previewWidth
|
|
174
|
+
}, e.ptm("thumbnail")), null, 16, X), h("div", r({
|
|
175
|
+
class: e.cx("details")
|
|
176
|
+
}, e.ptm("details")), [h("div", r({
|
|
177
|
+
class: e.cx("fileName")
|
|
178
|
+
}, e.ptm("fileName")), F(d.name), 17), h("span", r({
|
|
179
|
+
class: e.cx("fileSize")
|
|
180
|
+
}, e.ptm("fileSize")), F(l.formatSize(d.size)), 17), L(u, {
|
|
181
|
+
value: i.badgeValue,
|
|
182
|
+
class: B(e.cx("badge")),
|
|
183
|
+
severity: i.badgeSeverity,
|
|
184
|
+
unstyled: e.unstyled,
|
|
185
|
+
pt: e.ptm("badge")
|
|
186
|
+
}, null, 8, ["value", "class", "severity", "unstyled", "pt"])], 16), h("div", r({
|
|
187
|
+
class: e.cx("actions")
|
|
188
|
+
}, e.ptm("actions")), [L(p, {
|
|
189
|
+
onClick: function(ie) {
|
|
190
|
+
return e.$emit("remove", I);
|
|
407
191
|
},
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
192
|
+
text: "",
|
|
193
|
+
rounded: "",
|
|
194
|
+
severity: "danger",
|
|
195
|
+
class: B(e.cx("removeButton")),
|
|
196
|
+
unstyled: e.unstyled,
|
|
197
|
+
pt: e.ptm("removeButton")
|
|
198
|
+
}, {
|
|
199
|
+
icon: C(function(c) {
|
|
200
|
+
return [i.templates.fileremoveicon ? (o(), m(b(i.templates.fileremoveicon), {
|
|
201
|
+
key: 0,
|
|
202
|
+
class: B(c.class),
|
|
203
|
+
file: d,
|
|
204
|
+
index: I
|
|
205
|
+
}, null, 8, ["class", "file", "index"])) : (o(), m(a, r({
|
|
206
|
+
key: 1,
|
|
207
|
+
class: c.class,
|
|
208
|
+
"aria-hidden": "true"
|
|
209
|
+
}, e.ptm("removeButton").icon), null, 16, ["class"]))];
|
|
210
|
+
}),
|
|
211
|
+
_: 2
|
|
212
|
+
}, 1032, ["onClick", "class", "unstyled", "pt"])], 16)], 16);
|
|
213
|
+
}), 128);
|
|
423
214
|
}
|
|
424
|
-
|
|
425
|
-
function
|
|
426
|
-
return
|
|
215
|
+
P.render = J;
|
|
216
|
+
function k(e) {
|
|
217
|
+
return x(e) || $(e) || N(e) || Q();
|
|
427
218
|
}
|
|
428
|
-
function
|
|
219
|
+
function Q() {
|
|
429
220
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
430
221
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
431
222
|
}
|
|
432
|
-
function
|
|
223
|
+
function $(e) {
|
|
224
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
225
|
+
}
|
|
226
|
+
function x(e) {
|
|
227
|
+
if (Array.isArray(e)) return D(e);
|
|
228
|
+
}
|
|
229
|
+
function S(e, t) {
|
|
230
|
+
var i = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
231
|
+
if (!i) {
|
|
232
|
+
if (Array.isArray(e) || (i = N(e)) || t) {
|
|
233
|
+
i && (e = i);
|
|
234
|
+
var s = 0, n = function() {
|
|
235
|
+
};
|
|
236
|
+
return { s: n, n: function() {
|
|
237
|
+
return s >= e.length ? { done: !0 } : { done: !1, value: e[s++] };
|
|
238
|
+
}, e: function(d) {
|
|
239
|
+
throw d;
|
|
240
|
+
}, f: n };
|
|
241
|
+
}
|
|
242
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
243
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
244
|
+
}
|
|
245
|
+
var l = !0, u = !1, a;
|
|
246
|
+
return { s: function() {
|
|
247
|
+
i = i.call(e);
|
|
248
|
+
}, n: function() {
|
|
249
|
+
var d = i.next();
|
|
250
|
+
return l = d.done, d;
|
|
251
|
+
}, e: function(d) {
|
|
252
|
+
u = !0, a = d;
|
|
253
|
+
}, f: function() {
|
|
254
|
+
try {
|
|
255
|
+
!l && i.return != null && i.return();
|
|
256
|
+
} finally {
|
|
257
|
+
if (u) throw a;
|
|
258
|
+
}
|
|
259
|
+
} };
|
|
260
|
+
}
|
|
261
|
+
function N(e, t) {
|
|
433
262
|
if (e) {
|
|
434
|
-
if (typeof e == "string") return
|
|
263
|
+
if (typeof e == "string") return D(e, t);
|
|
435
264
|
var i = Object.prototype.toString.call(e).slice(8, -1);
|
|
436
265
|
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set") return Array.from(e);
|
|
437
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return
|
|
266
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return D(e, t);
|
|
438
267
|
}
|
|
439
268
|
}
|
|
440
|
-
function
|
|
441
|
-
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
442
|
-
}
|
|
443
|
-
function pe(e) {
|
|
444
|
-
if (Array.isArray(e)) return N(e);
|
|
445
|
-
}
|
|
446
|
-
function N(e, t) {
|
|
269
|
+
function D(e, t) {
|
|
447
270
|
(t == null || t > e.length) && (t = e.length);
|
|
448
|
-
for (var i = 0,
|
|
449
|
-
return
|
|
271
|
+
for (var i = 0, s = new Array(t); i < t; i++) s[i] = e[i];
|
|
272
|
+
return s;
|
|
450
273
|
}
|
|
451
|
-
var
|
|
452
|
-
name: "
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
emits: ["
|
|
456
|
-
|
|
457
|
-
containerId: {
|
|
458
|
-
type: String,
|
|
459
|
-
default: null
|
|
460
|
-
},
|
|
461
|
-
value: {
|
|
462
|
-
type: Array,
|
|
463
|
-
default: null
|
|
464
|
-
},
|
|
465
|
-
numVisible: {
|
|
466
|
-
type: Number,
|
|
467
|
-
default: 3
|
|
468
|
-
},
|
|
469
|
-
activeIndex: {
|
|
470
|
-
type: Number,
|
|
471
|
-
default: 0
|
|
472
|
-
},
|
|
473
|
-
isVertical: {
|
|
474
|
-
type: Boolean,
|
|
475
|
-
default: !1
|
|
476
|
-
},
|
|
477
|
-
slideShowActive: {
|
|
478
|
-
type: Boolean,
|
|
479
|
-
default: !1
|
|
480
|
-
},
|
|
481
|
-
circular: {
|
|
482
|
-
type: Boolean,
|
|
483
|
-
default: !1
|
|
484
|
-
},
|
|
485
|
-
responsiveOptions: {
|
|
486
|
-
type: Array,
|
|
487
|
-
default: null
|
|
488
|
-
},
|
|
489
|
-
contentHeight: {
|
|
490
|
-
type: String,
|
|
491
|
-
default: "300px"
|
|
492
|
-
},
|
|
493
|
-
showThumbnailNavigators: {
|
|
494
|
-
type: Boolean,
|
|
495
|
-
default: !0
|
|
496
|
-
},
|
|
497
|
-
templates: {
|
|
498
|
-
type: null,
|
|
499
|
-
default: null
|
|
500
|
-
},
|
|
501
|
-
prevButtonProps: {
|
|
502
|
-
type: null,
|
|
503
|
-
default: null
|
|
504
|
-
},
|
|
505
|
-
nextButtonProps: {
|
|
506
|
-
type: null,
|
|
507
|
-
default: null
|
|
508
|
-
}
|
|
509
|
-
},
|
|
510
|
-
startPos: null,
|
|
511
|
-
thumbnailsStyle: null,
|
|
512
|
-
sortedResponsiveOptions: null,
|
|
274
|
+
var _ = {
|
|
275
|
+
name: "FileUpload",
|
|
276
|
+
extends: q,
|
|
277
|
+
inheritAttrs: !1,
|
|
278
|
+
emits: ["select", "uploader", "before-upload", "progress", "upload", "error", "before-send", "clear", "remove", "remove-uploaded-file"],
|
|
279
|
+
duplicateIEEvent: !1,
|
|
513
280
|
data: function() {
|
|
514
281
|
return {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
282
|
+
uploadedFileCount: 0,
|
|
283
|
+
files: [],
|
|
284
|
+
messages: [],
|
|
285
|
+
focused: !1,
|
|
286
|
+
progress: null,
|
|
287
|
+
uploadedFiles: []
|
|
521
288
|
};
|
|
522
289
|
},
|
|
523
|
-
watch: {
|
|
524
|
-
numVisible: function(t, i) {
|
|
525
|
-
this.d_numVisible = t, this.d_oldNumVisible = i;
|
|
526
|
-
},
|
|
527
|
-
activeIndex: function(t, i) {
|
|
528
|
-
this.d_activeIndex = t, this.d_oldActiveItemIndex = i;
|
|
529
|
-
}
|
|
530
|
-
},
|
|
531
|
-
mounted: function() {
|
|
532
|
-
this.createStyle(), this.calculatePosition(), this.responsiveOptions && this.bindDocumentListeners();
|
|
533
|
-
},
|
|
534
|
-
updated: function() {
|
|
535
|
-
var t = this.totalShiftedItems;
|
|
536
|
-
(this.d_oldNumVisible !== this.d_numVisible || this.d_oldActiveItemIndex !== this.d_activeIndex) && (this.d_activeIndex <= this.getMedianItemIndex() ? t = 0 : this.value.length - this.d_numVisible + this.getMedianItemIndex() < this.d_activeIndex ? t = this.d_numVisible - this.value.length : this.value.length - this.d_numVisible < this.d_activeIndex && this.d_numVisible % 2 === 0 ? t = this.d_activeIndex * -1 + this.getMedianItemIndex() + 1 : t = this.d_activeIndex * -1 + this.getMedianItemIndex(), t !== this.totalShiftedItems && (this.totalShiftedItems = t), this.$refs.itemsContainer.style.transform = this.isVertical ? "translate3d(0, ".concat(t * (100 / this.d_numVisible), "%, 0)") : "translate3d(".concat(t * (100 / this.d_numVisible), "%, 0, 0)"), this.d_oldActiveItemIndex !== this.d_activeIndex && (document.body.setAttribute("data-p-items-hidden", "false"), !this.isUnstyled && c.removeClass(this.$refs.itemsContainer, "p-items-hidden"), this.$refs.itemsContainer.style.transition = "transform 500ms ease 0s"), this.d_oldActiveItemIndex = this.d_activeIndex, this.d_oldNumVisible = this.d_numVisible);
|
|
537
|
-
},
|
|
538
|
-
beforeUnmount: function() {
|
|
539
|
-
this.responsiveOptions && this.unbindDocumentListeners(), this.thumbnailsStyle && this.thumbnailsStyle.parentNode.removeChild(this.thumbnailsStyle);
|
|
540
|
-
},
|
|
541
290
|
methods: {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
stopSlideShow: function() {
|
|
547
|
-
this.slideShowActive && this.stopSlideShow && this.$emit("stop-slideshow");
|
|
548
|
-
},
|
|
549
|
-
getMedianItemIndex: function() {
|
|
550
|
-
var t = Math.floor(this.d_numVisible / 2);
|
|
551
|
-
return this.d_numVisible % 2 ? t : t - 1;
|
|
552
|
-
},
|
|
553
|
-
navBackward: function(t) {
|
|
554
|
-
this.stopSlideShow();
|
|
555
|
-
var i = this.d_activeIndex !== 0 ? this.d_activeIndex - 1 : 0, n = i + this.totalShiftedItems;
|
|
556
|
-
this.d_numVisible - n - 1 > this.getMedianItemIndex() && (-1 * this.totalShiftedItems !== 0 || this.circular) && this.step(1);
|
|
557
|
-
var r = this.circular && this.d_activeIndex === 0 ? this.value.length - 1 : i;
|
|
558
|
-
this.$emit("update:activeIndex", r), t.cancelable && t.preventDefault();
|
|
559
|
-
},
|
|
560
|
-
navForward: function(t) {
|
|
561
|
-
this.stopSlideShow();
|
|
562
|
-
var i = this.d_activeIndex === this.value.length - 1 ? this.value.length - 1 : this.d_activeIndex + 1;
|
|
563
|
-
i + this.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.totalShiftedItems < this.getTotalPageNumber() - 1 || this.circular) && this.step(-1);
|
|
564
|
-
var n = this.circular && this.value.length - 1 === this.d_activeIndex ? 0 : i;
|
|
565
|
-
this.$emit("update:activeIndex", n), t.cancelable && t.preventDefault();
|
|
566
|
-
},
|
|
567
|
-
onItemClick: function(t) {
|
|
568
|
-
this.stopSlideShow();
|
|
569
|
-
var i = t;
|
|
570
|
-
if (i !== this.d_activeIndex) {
|
|
571
|
-
var n = i + this.totalShiftedItems, r = 0;
|
|
572
|
-
i < this.d_activeIndex ? (r = this.d_numVisible - n - 1 - this.getMedianItemIndex(), r > 0 && -1 * this.totalShiftedItems !== 0 && this.step(r)) : (r = this.getMedianItemIndex() - n, r < 0 && -1 * this.totalShiftedItems < this.getTotalPageNumber() - 1 && this.step(r)), this.$emit("update:activeIndex", i);
|
|
291
|
+
onFileSelect: function(t) {
|
|
292
|
+
if (t.type !== "drop" && this.isIE11() && this.duplicateIEEvent) {
|
|
293
|
+
this.duplicateIEEvent = !1;
|
|
294
|
+
return;
|
|
573
295
|
}
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
break;
|
|
586
|
-
case "End":
|
|
587
|
-
this.onEndKey(), t.preventDefault();
|
|
588
|
-
break;
|
|
589
|
-
case "ArrowUp":
|
|
590
|
-
case "ArrowDown":
|
|
591
|
-
t.preventDefault();
|
|
592
|
-
break;
|
|
593
|
-
case "Tab":
|
|
594
|
-
this.onTabKey();
|
|
595
|
-
break;
|
|
296
|
+
this.messages = [], this.files = this.files || [];
|
|
297
|
+
var i = t.dataTransfer ? t.dataTransfer.files : t.target.files, s = S(i), n;
|
|
298
|
+
try {
|
|
299
|
+
for (s.s(); !(n = s.n()).done; ) {
|
|
300
|
+
var l = n.value;
|
|
301
|
+
this.isFileSelected(l) || this.validate(l) && (this.isImage(l) && (l.objectURL = window.URL.createObjectURL(l)), this.files.push(l));
|
|
302
|
+
}
|
|
303
|
+
} catch (u) {
|
|
304
|
+
s.e(u);
|
|
305
|
+
} finally {
|
|
306
|
+
s.f();
|
|
596
307
|
}
|
|
308
|
+
this.$emit("select", {
|
|
309
|
+
originalEvent: t,
|
|
310
|
+
files: this.files
|
|
311
|
+
}), this.fileLimit && this.checkFileLimit(), this.auto && this.hasFiles && !this.isFileLimitExceeded() && this.upload(), t.type !== "drop" && this.isIE11() ? this.clearIEInput() : this.clearInputElement();
|
|
597
312
|
},
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
this.changedFocusedIndicator(i, i + 1 === t.length ? t.length - 1 : i + 1);
|
|
601
|
-
},
|
|
602
|
-
onLeftKey: function() {
|
|
603
|
-
var t = this.findFocusedIndicatorIndex();
|
|
604
|
-
this.changedFocusedIndicator(t, t - 1 <= 0 ? 0 : t - 1);
|
|
605
|
-
},
|
|
606
|
-
onHomeKey: function() {
|
|
607
|
-
var t = this.findFocusedIndicatorIndex();
|
|
608
|
-
this.changedFocusedIndicator(t, 0);
|
|
313
|
+
choose: function() {
|
|
314
|
+
this.$refs.fileInput.click();
|
|
609
315
|
},
|
|
610
|
-
|
|
611
|
-
var t =
|
|
612
|
-
this.
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
316
|
+
upload: function() {
|
|
317
|
+
var t = this;
|
|
318
|
+
if (this.customUpload)
|
|
319
|
+
this.fileLimit && (this.uploadedFileCount += this.files.length), this.$emit("uploader", {
|
|
320
|
+
files: this.files
|
|
321
|
+
}), this.clear();
|
|
322
|
+
else {
|
|
323
|
+
var i = new XMLHttpRequest(), s = new FormData();
|
|
324
|
+
this.$emit("before-upload", {
|
|
325
|
+
xhr: i,
|
|
326
|
+
formData: s
|
|
327
|
+
});
|
|
328
|
+
var n = S(this.files), l;
|
|
329
|
+
try {
|
|
330
|
+
for (n.s(); !(l = n.n()).done; ) {
|
|
331
|
+
var u = l.value;
|
|
332
|
+
s.append(this.name, u, u.name);
|
|
333
|
+
}
|
|
334
|
+
} catch (a) {
|
|
335
|
+
n.e(a);
|
|
336
|
+
} finally {
|
|
337
|
+
n.f();
|
|
338
|
+
}
|
|
339
|
+
i.upload.addEventListener("progress", function(a) {
|
|
340
|
+
a.lengthComputable && (t.progress = Math.round(a.loaded * 100 / a.total)), t.$emit("progress", {
|
|
341
|
+
originalEvent: a,
|
|
342
|
+
progress: t.progress
|
|
343
|
+
});
|
|
344
|
+
}), i.onreadystatechange = function() {
|
|
345
|
+
if (i.readyState === 4) {
|
|
346
|
+
var a;
|
|
347
|
+
t.progress = 0, i.status >= 200 && i.status < 300 ? (t.fileLimit && (t.uploadedFileCount += t.files.length), t.$emit("upload", {
|
|
348
|
+
xhr: i,
|
|
349
|
+
files: t.files
|
|
350
|
+
})) : t.$emit("error", {
|
|
351
|
+
xhr: i,
|
|
352
|
+
files: t.files
|
|
353
|
+
}), (a = t.uploadedFiles).push.apply(a, k(t.files)), t.clear();
|
|
354
|
+
}
|
|
355
|
+
}, i.open("POST", this.url, !0), this.$emit("before-send", {
|
|
356
|
+
xhr: i,
|
|
357
|
+
formData: s
|
|
358
|
+
}), i.withCredentials = this.withCredentials, i.send(s);
|
|
359
|
+
}
|
|
621
360
|
},
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
361
|
+
clear: function() {
|
|
362
|
+
this.files = [], this.messages = null, this.$emit("clear"), this.isAdvanced && this.clearInputElement();
|
|
363
|
+
},
|
|
364
|
+
onFocus: function() {
|
|
365
|
+
this.focused = !0;
|
|
366
|
+
},
|
|
367
|
+
onBlur: function() {
|
|
368
|
+
this.focused = !1;
|
|
369
|
+
},
|
|
370
|
+
isFileSelected: function(t) {
|
|
371
|
+
if (this.files && this.files.length) {
|
|
372
|
+
var i = S(this.files), s;
|
|
373
|
+
try {
|
|
374
|
+
for (i.s(); !(s = i.n()).done; ) {
|
|
375
|
+
var n = s.value;
|
|
376
|
+
if (n.name + n.type + n.size === t.name + t.type + t.size) return !0;
|
|
377
|
+
}
|
|
378
|
+
} catch (l) {
|
|
379
|
+
i.e(l);
|
|
380
|
+
} finally {
|
|
381
|
+
i.f();
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
return !1;
|
|
385
|
+
},
|
|
386
|
+
isIE11: function() {
|
|
387
|
+
return !!window.MSInputMethodContext && !!document.documentMode;
|
|
388
|
+
},
|
|
389
|
+
validate: function(t) {
|
|
390
|
+
return this.accept && !this.isFileTypeValid(t) ? (this.messages.push(this.invalidFileTypeMessage.replace("{0}", t.name).replace("{1}", this.accept)), !1) : this.maxFileSize && t.size > this.maxFileSize ? (this.messages.push(this.invalidFileSizeMessage.replace("{0}", t.name).replace("{1}", this.formatSize(this.maxFileSize))), !1) : !0;
|
|
391
|
+
},
|
|
392
|
+
isFileTypeValid: function(t) {
|
|
393
|
+
var i = this.accept.split(",").map(function(a) {
|
|
394
|
+
return a.trim();
|
|
395
|
+
}), s = S(i), n;
|
|
396
|
+
try {
|
|
397
|
+
for (s.s(); !(n = s.n()).done; ) {
|
|
398
|
+
var l = n.value, u = this.isWildcard(l) ? this.getTypeClass(t.type) === this.getTypeClass(l) : t.type == l || this.getFileExtension(t).toLowerCase() === l.toLowerCase();
|
|
399
|
+
if (u)
|
|
400
|
+
return !0;
|
|
401
|
+
}
|
|
402
|
+
} catch (a) {
|
|
403
|
+
s.e(a);
|
|
404
|
+
} finally {
|
|
405
|
+
s.f();
|
|
406
|
+
}
|
|
407
|
+
return !1;
|
|
627
408
|
},
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
n[t].children[0].tabIndex = "-1", n[i].children[0].tabIndex = "0", n[i].children[0].focus();
|
|
409
|
+
getTypeClass: function(t) {
|
|
410
|
+
return t.substring(0, t.indexOf("/"));
|
|
631
411
|
},
|
|
632
|
-
|
|
633
|
-
|
|
412
|
+
isWildcard: function(t) {
|
|
413
|
+
return t.indexOf("*") !== -1;
|
|
634
414
|
},
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
this.startPos = {
|
|
638
|
-
x: i.pageX,
|
|
639
|
-
y: i.pageY
|
|
640
|
-
};
|
|
415
|
+
getFileExtension: function(t) {
|
|
416
|
+
return "." + t.name.split(".").pop();
|
|
641
417
|
},
|
|
642
|
-
|
|
643
|
-
|
|
418
|
+
isImage: function(t) {
|
|
419
|
+
return /^image\//.test(t.type);
|
|
644
420
|
},
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
this.isVertical ? this.changePageOnTouch(t, i.pageY - this.startPos.y) : this.changePageOnTouch(t, i.pageX - this.startPos.x);
|
|
421
|
+
onDragEnter: function(t) {
|
|
422
|
+
this.disabled || (t.stopPropagation(), t.preventDefault());
|
|
648
423
|
},
|
|
649
|
-
|
|
650
|
-
|
|
424
|
+
onDragOver: function(t) {
|
|
425
|
+
this.disabled || (!this.isUnstyled && w.addClass(this.$refs.content, "p-fileupload-highlight"), this.$refs.content.setAttribute("data-p-highlight", !0), t.stopPropagation(), t.preventDefault());
|
|
651
426
|
},
|
|
652
|
-
|
|
653
|
-
|
|
427
|
+
onDragLeave: function() {
|
|
428
|
+
this.disabled || (!this.isUnstyled && w.removeClass(this.$refs.content, "p-fileupload-highlight"), this.$refs.content.setAttribute("data-p-highlight", !1));
|
|
654
429
|
},
|
|
655
|
-
|
|
656
|
-
if (!this.
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
var i = `
|
|
661
|
-
#`.concat(this.containerId, ` [data-pc-section="thumbnailitem"] {
|
|
662
|
-
flex: 1 0 `).concat(100 / this.d_numVisible, `%
|
|
663
|
-
}
|
|
664
|
-
`);
|
|
665
|
-
if (this.responsiveOptions && !this.isUnstyled) {
|
|
666
|
-
this.sortedResponsiveOptions = B(this.responsiveOptions);
|
|
667
|
-
var n = $.localeComparator();
|
|
668
|
-
this.sortedResponsiveOptions.sort(function(v, u) {
|
|
669
|
-
var o = v.breakpoint, m = u.breakpoint;
|
|
670
|
-
return $.sort(o, m, -1, n);
|
|
671
|
-
});
|
|
672
|
-
for (var r = 0; r < this.sortedResponsiveOptions.length; r++) {
|
|
673
|
-
var a = this.sortedResponsiveOptions[r];
|
|
674
|
-
i += `
|
|
675
|
-
@media screen and (max-width: `.concat(a.breakpoint, `) {
|
|
676
|
-
#`).concat(this.containerId, ` .p-galleria-thumbnail-item {
|
|
677
|
-
flex: 1 0 `).concat(100 / a.numVisible, `%
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
`);
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
this.thumbnailsStyle.innerHTML = i;
|
|
684
|
-
},
|
|
685
|
-
calculatePosition: function() {
|
|
686
|
-
if (this.$refs.itemsContainer && this.sortedResponsiveOptions) {
|
|
687
|
-
for (var t = window.innerWidth, i = {
|
|
688
|
-
numVisible: this.numVisible
|
|
689
|
-
}, n = 0; n < this.sortedResponsiveOptions.length; n++) {
|
|
690
|
-
var r = this.sortedResponsiveOptions[n];
|
|
691
|
-
parseInt(r.breakpoint, 10) >= t && (i = r);
|
|
692
|
-
}
|
|
693
|
-
this.d_numVisible !== i.numVisible && (this.d_numVisible = i.numVisible);
|
|
430
|
+
onDrop: function(t) {
|
|
431
|
+
if (!this.disabled) {
|
|
432
|
+
!this.isUnstyled && w.removeClass(this.$refs.content, "p-fileupload-highlight"), this.$refs.content.setAttribute("data-p-highlight", !1), t.stopPropagation(), t.preventDefault();
|
|
433
|
+
var i = t.dataTransfer ? t.dataTransfer.files : t.target.files, s = this.multiple || i && i.length === 1;
|
|
434
|
+
s && this.onFileSelect(t);
|
|
694
435
|
}
|
|
695
436
|
},
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
this.documentResizeListener || (this.documentResizeListener = function() {
|
|
699
|
-
t.calculatePosition();
|
|
700
|
-
}, window.addEventListener("resize", this.documentResizeListener));
|
|
437
|
+
onBasicUploaderClick: function(t) {
|
|
438
|
+
this.hasFiles ? this.upload() : t.button === 0 && this.$refs.fileInput.click();
|
|
701
439
|
},
|
|
702
|
-
|
|
703
|
-
this.
|
|
440
|
+
remove: function(t) {
|
|
441
|
+
this.clearInputElement();
|
|
442
|
+
var i = this.files.splice(t, 1)[0];
|
|
443
|
+
this.files = k(this.files), this.$emit("remove", {
|
|
444
|
+
file: i,
|
|
445
|
+
files: this.files
|
|
446
|
+
});
|
|
447
|
+
},
|
|
448
|
+
removeUploadedFile: function(t) {
|
|
449
|
+
var i = this.uploadedFiles.splice(t, 1)[0];
|
|
450
|
+
this.uploadedFiles = k(this.uploadedFiles), this.$emit("remove-uploaded-file", {
|
|
451
|
+
file: i,
|
|
452
|
+
files: this.uploadedFiles
|
|
453
|
+
});
|
|
704
454
|
},
|
|
705
|
-
|
|
706
|
-
|
|
455
|
+
clearInputElement: function() {
|
|
456
|
+
this.$refs.fileInput.value = "";
|
|
707
457
|
},
|
|
708
|
-
|
|
709
|
-
|
|
458
|
+
clearIEInput: function() {
|
|
459
|
+
this.$refs.fileInput && (this.duplicateIEEvent = !0, this.$refs.fileInput.value = "");
|
|
710
460
|
},
|
|
711
|
-
|
|
712
|
-
|
|
461
|
+
formatSize: function(t) {
|
|
462
|
+
var i, s = 1024, n = 3, l = ((i = this.$primevue.config.locale) === null || i === void 0 ? void 0 : i.fileSizeTypes) || ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
|
463
|
+
if (t === 0)
|
|
464
|
+
return "0 ".concat(l[0]);
|
|
465
|
+
var u = Math.floor(Math.log(t) / Math.log(s)), a = parseFloat((t / Math.pow(s, u)).toFixed(n));
|
|
466
|
+
return "".concat(a, " ").concat(l[u]);
|
|
713
467
|
},
|
|
714
|
-
|
|
715
|
-
return this.
|
|
468
|
+
isFileLimitExceeded: function() {
|
|
469
|
+
return this.fileLimit && this.fileLimit <= this.files.length + this.uploadedFileCount && this.focused && (this.focused = !1), this.fileLimit && this.fileLimit < this.files.length + this.uploadedFileCount;
|
|
716
470
|
},
|
|
717
|
-
|
|
718
|
-
|
|
471
|
+
checkFileLimit: function() {
|
|
472
|
+
this.isFileLimitExceeded() && this.messages.push(this.invalidFileLimitMessage.replace("{0}", this.fileLimit.toString()));
|
|
719
473
|
},
|
|
720
|
-
|
|
721
|
-
|
|
474
|
+
onMessageClose: function() {
|
|
475
|
+
this.messages = null;
|
|
722
476
|
}
|
|
723
477
|
},
|
|
724
478
|
computed: {
|
|
725
|
-
|
|
726
|
-
return this
|
|
479
|
+
isAdvanced: function() {
|
|
480
|
+
return this.mode === "advanced";
|
|
727
481
|
},
|
|
728
|
-
|
|
729
|
-
return this
|
|
730
|
-
}
|
|
731
|
-
},
|
|
732
|
-
components: {
|
|
733
|
-
ChevronLeftIcon: H,
|
|
734
|
-
ChevronRightIcon: M,
|
|
735
|
-
ChevronUpIcon: te,
|
|
736
|
-
ChevronDownIcon: ee
|
|
737
|
-
},
|
|
738
|
-
directives: {
|
|
739
|
-
ripple: L
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
|
-
function S(e) {
|
|
743
|
-
"@babel/helpers - typeof";
|
|
744
|
-
return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
745
|
-
return typeof t;
|
|
746
|
-
} : function(t) {
|
|
747
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
748
|
-
}, S(e);
|
|
749
|
-
}
|
|
750
|
-
function E(e, t) {
|
|
751
|
-
var i = Object.keys(e);
|
|
752
|
-
if (Object.getOwnPropertySymbols) {
|
|
753
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
754
|
-
t && (n = n.filter(function(r) {
|
|
755
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
756
|
-
})), i.push.apply(i, n);
|
|
757
|
-
}
|
|
758
|
-
return i;
|
|
759
|
-
}
|
|
760
|
-
function x(e) {
|
|
761
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
762
|
-
var i = arguments[t] != null ? arguments[t] : {};
|
|
763
|
-
t % 2 ? E(Object(i), !0).forEach(function(n) {
|
|
764
|
-
be(e, n, i[n]);
|
|
765
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : E(Object(i)).forEach(function(n) {
|
|
766
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
return e;
|
|
770
|
-
}
|
|
771
|
-
function be(e, t, i) {
|
|
772
|
-
return t = Ie(t), t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
|
|
773
|
-
}
|
|
774
|
-
function Ie(e) {
|
|
775
|
-
var t = ye(e, "string");
|
|
776
|
-
return S(t) == "symbol" ? t : String(t);
|
|
777
|
-
}
|
|
778
|
-
function ye(e, t) {
|
|
779
|
-
if (S(e) != "object" || !e) return e;
|
|
780
|
-
var i = e[Symbol.toPrimitive];
|
|
781
|
-
if (i !== void 0) {
|
|
782
|
-
var n = i.call(e, t);
|
|
783
|
-
if (S(n) != "object") return n;
|
|
784
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
785
|
-
}
|
|
786
|
-
return (t === "string" ? String : Number)(e);
|
|
787
|
-
}
|
|
788
|
-
var ge = ["disabled", "aria-label"], Se = ["data-p-active", "aria-selected", "aria-controls", "onKeydown", "data-p-galleria-thumbnail-item-current", "data-p-galleria-thumbnail-item-active", "data-p-galleria-thumbnail-item-start", "data-p-galleria-thumbnail-item-end"], we = ["tabindex", "aria-label", "aria-current", "onClick"], Pe = ["disabled", "aria-label"];
|
|
789
|
-
function xe(e, t, i, n, r, a) {
|
|
790
|
-
var v = C("ripple");
|
|
791
|
-
return s(), d("div", l({
|
|
792
|
-
class: e.cx("thumbnailWrapper")
|
|
793
|
-
}, e.ptm("thumbnailWrapper")), [b("div", l({
|
|
794
|
-
class: e.cx("thumbnailContainer")
|
|
795
|
-
}, e.ptm("thumbnailContainer")), [i.showThumbnailNavigators ? y((s(), d("button", l({
|
|
796
|
-
key: 0,
|
|
797
|
-
class: e.cx("previousThumbnailButton"),
|
|
798
|
-
disabled: a.isNavBackwardDisabled(),
|
|
799
|
-
type: "button",
|
|
800
|
-
"aria-label": a.ariaPrevButtonLabel,
|
|
801
|
-
onClick: t[0] || (t[0] = function(u) {
|
|
802
|
-
return a.navBackward(u);
|
|
803
|
-
})
|
|
804
|
-
}, x(x({}, i.prevButtonProps), e.ptm("previousThumbnailButton")), {
|
|
805
|
-
"data-pc-group-section": "thumbnailnavigator"
|
|
806
|
-
}), [(s(), f(p(i.templates.previousthumbnailicon || (i.isVertical ? "ChevronUpIcon" : "ChevronLeftIcon")), l({
|
|
807
|
-
class: e.cx("previousThumbnailIcon")
|
|
808
|
-
}, e.ptm("previousThumbnailIcon")), null, 16, ["class"]))], 16, ge)), [[v]]) : h("", !0), b("div", l({
|
|
809
|
-
class: e.cx("thumbnailItemsContainer"),
|
|
810
|
-
style: {
|
|
811
|
-
height: i.isVertical ? i.contentHeight : ""
|
|
812
|
-
}
|
|
813
|
-
}, e.ptm("thumbnailItemsContainer")), [b("div", l({
|
|
814
|
-
ref: "itemsContainer",
|
|
815
|
-
class: e.cx("thumbnailItems"),
|
|
816
|
-
role: "tablist",
|
|
817
|
-
onTransitionend: t[1] || (t[1] = function(u) {
|
|
818
|
-
return a.onTransitionEnd(u);
|
|
819
|
-
}),
|
|
820
|
-
onTouchstart: t[2] || (t[2] = function(u) {
|
|
821
|
-
return a.onTouchStart(u);
|
|
822
|
-
}),
|
|
823
|
-
onTouchmove: t[3] || (t[3] = function(u) {
|
|
824
|
-
return a.onTouchMove(u);
|
|
825
|
-
}),
|
|
826
|
-
onTouchend: t[4] || (t[4] = function(u) {
|
|
827
|
-
return a.onTouchEnd(u);
|
|
828
|
-
})
|
|
829
|
-
}, e.ptm("thumbnailItems")), [(s(!0), d(U, null, G(i.value, function(u, o) {
|
|
830
|
-
return s(), d("div", l({
|
|
831
|
-
key: "p-galleria-thumbnail-item-".concat(o),
|
|
832
|
-
class: e.cx("thumbnailItem", {
|
|
833
|
-
index: o,
|
|
834
|
-
activeIndex: i.activeIndex
|
|
835
|
-
}),
|
|
836
|
-
role: "tab",
|
|
837
|
-
"data-p-active": i.activeIndex === o,
|
|
838
|
-
"aria-selected": i.activeIndex === o,
|
|
839
|
-
"aria-controls": i.containerId + "_item_" + o,
|
|
840
|
-
onKeydown: function(I) {
|
|
841
|
-
return a.onThumbnailKeydown(I, o);
|
|
842
|
-
}
|
|
843
|
-
}, e.ptm("thumbnailItem"), {
|
|
844
|
-
"data-p-galleria-thumbnail-item-current": i.activeIndex === o,
|
|
845
|
-
"data-p-galleria-thumbnail-item-active": a.isItemActive(o),
|
|
846
|
-
"data-p-galleria-thumbnail-item-start": a.firstItemAciveIndex() === o,
|
|
847
|
-
"data-p-galleria-thumbnail-item-end": a.lastItemActiveIndex() === o
|
|
848
|
-
}), [b("div", l({
|
|
849
|
-
class: e.cx("thumbnailItemContent"),
|
|
850
|
-
tabindex: i.activeIndex === o ? "0" : "-1",
|
|
851
|
-
"aria-label": a.ariaPageLabel(o + 1),
|
|
852
|
-
"aria-current": i.activeIndex === o ? "page" : void 0,
|
|
853
|
-
onClick: function(I) {
|
|
854
|
-
return a.onItemClick(o);
|
|
855
|
-
}
|
|
856
|
-
}, e.ptm("thumbnailItemContent")), [i.templates.thumbnail ? (s(), f(p(i.templates.thumbnail), {
|
|
857
|
-
key: 0,
|
|
858
|
-
item: u
|
|
859
|
-
}, null, 8, ["item"])) : h("", !0)], 16, we)], 16, Se);
|
|
860
|
-
}), 128))], 16)], 16), i.showThumbnailNavigators ? y((s(), d("button", l({
|
|
861
|
-
key: 1,
|
|
862
|
-
class: e.cx("nextThumbnailButton"),
|
|
863
|
-
disabled: a.isNavForwardDisabled(),
|
|
864
|
-
type: "button",
|
|
865
|
-
"aria-label": a.ariaNextButtonLabel,
|
|
866
|
-
onClick: t[5] || (t[5] = function(u) {
|
|
867
|
-
return a.navForward(u);
|
|
868
|
-
})
|
|
869
|
-
}, x(x({}, i.nextButtonProps), e.ptm("nextThumbnailButton")), {
|
|
870
|
-
"data-pc-group-section": "thumbnailnavigator"
|
|
871
|
-
}), [(s(), f(p(i.templates.nextthumbnailicon || (i.isVertical ? "ChevronDownIcon" : "ChevronRightIcon")), l({
|
|
872
|
-
class: e.cx("nextThumbnailIcon")
|
|
873
|
-
}, e.ptm("nextThumbnailIcon")), null, 16, ["class"]))], 16, Pe)), [[v]]) : h("", !0)], 16)], 16);
|
|
874
|
-
}
|
|
875
|
-
W.render = xe;
|
|
876
|
-
function w(e) {
|
|
877
|
-
"@babel/helpers - typeof";
|
|
878
|
-
return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
879
|
-
return typeof t;
|
|
880
|
-
} : function(t) {
|
|
881
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
882
|
-
}, w(e);
|
|
883
|
-
}
|
|
884
|
-
function K(e, t) {
|
|
885
|
-
var i = Object.keys(e);
|
|
886
|
-
if (Object.getOwnPropertySymbols) {
|
|
887
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
888
|
-
t && (n = n.filter(function(r) {
|
|
889
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
890
|
-
})), i.push.apply(i, n);
|
|
891
|
-
}
|
|
892
|
-
return i;
|
|
893
|
-
}
|
|
894
|
-
function j(e) {
|
|
895
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
896
|
-
var i = arguments[t] != null ? arguments[t] : {};
|
|
897
|
-
t % 2 ? K(Object(i), !0).forEach(function(n) {
|
|
898
|
-
Ae(e, n, i[n]);
|
|
899
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : K(Object(i)).forEach(function(n) {
|
|
900
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
901
|
-
});
|
|
902
|
-
}
|
|
903
|
-
return e;
|
|
904
|
-
}
|
|
905
|
-
function Ae(e, t, i) {
|
|
906
|
-
return t = Oe(t), t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
|
|
907
|
-
}
|
|
908
|
-
function Oe(e) {
|
|
909
|
-
var t = Ce(e, "string");
|
|
910
|
-
return w(t) == "symbol" ? t : String(t);
|
|
911
|
-
}
|
|
912
|
-
function Ce(e, t) {
|
|
913
|
-
if (w(e) != "object" || !e) return e;
|
|
914
|
-
var i = e[Symbol.toPrimitive];
|
|
915
|
-
if (i !== void 0) {
|
|
916
|
-
var n = i.call(e, t);
|
|
917
|
-
if (w(n) != "object") return n;
|
|
918
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
919
|
-
}
|
|
920
|
-
return (t === "string" ? String : Number)(e);
|
|
921
|
-
}
|
|
922
|
-
var Z = {
|
|
923
|
-
name: "GalleriaContent",
|
|
924
|
-
hostName: "Galleria",
|
|
925
|
-
extends: O,
|
|
926
|
-
inheritAttrs: !1,
|
|
927
|
-
interval: null,
|
|
928
|
-
emits: ["activeitem-change", "mask-hide"],
|
|
929
|
-
data: function() {
|
|
930
|
-
return {
|
|
931
|
-
id: this.$attrs.id || k(),
|
|
932
|
-
activeIndex: this.$attrs.activeIndex,
|
|
933
|
-
numVisible: this.$attrs.numVisible,
|
|
934
|
-
slideShowActive: !1
|
|
935
|
-
};
|
|
936
|
-
},
|
|
937
|
-
watch: {
|
|
938
|
-
"$attrs.id": function(t) {
|
|
939
|
-
this.id = t || k();
|
|
482
|
+
isBasic: function() {
|
|
483
|
+
return this.mode === "basic";
|
|
940
484
|
},
|
|
941
|
-
|
|
942
|
-
|
|
485
|
+
chooseButtonClass: function() {
|
|
486
|
+
return [this.cx("chooseButton"), this.class];
|
|
943
487
|
},
|
|
944
|
-
|
|
945
|
-
this.
|
|
488
|
+
basicChooseButtonLabel: function() {
|
|
489
|
+
return this.auto ? this.chooseButtonLabel : this.hasFiles ? this.files.map(function(t) {
|
|
490
|
+
return t.name;
|
|
491
|
+
}).join(", ") : this.chooseButtonLabel;
|
|
946
492
|
},
|
|
947
|
-
|
|
948
|
-
this.
|
|
493
|
+
hasFiles: function() {
|
|
494
|
+
return this.files && this.files.length > 0;
|
|
949
495
|
},
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
}
|
|
953
|
-
},
|
|
954
|
-
mounted: function() {
|
|
955
|
-
this.id = this.id || k();
|
|
956
|
-
},
|
|
957
|
-
updated: function() {
|
|
958
|
-
this.$emit("activeitem-change", this.activeIndex);
|
|
959
|
-
},
|
|
960
|
-
beforeUnmount: function() {
|
|
961
|
-
this.slideShowActive && this.stopSlideShow();
|
|
962
|
-
},
|
|
963
|
-
methods: {
|
|
964
|
-
getPTOptions: function(t) {
|
|
965
|
-
return this.ptm(t, {
|
|
966
|
-
props: j(j({}, this.$attrs), {}, {
|
|
967
|
-
pt: this.pt,
|
|
968
|
-
unstyled: this.unstyled
|
|
969
|
-
})
|
|
970
|
-
});
|
|
496
|
+
hasUploadedFiles: function() {
|
|
497
|
+
return this.uploadedFiles && this.uploadedFiles.length > 0;
|
|
971
498
|
},
|
|
972
|
-
|
|
973
|
-
return this.
|
|
499
|
+
chooseDisabled: function() {
|
|
500
|
+
return this.disabled || this.fileLimit && this.fileLimit <= this.files.length + this.uploadedFileCount;
|
|
974
501
|
},
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
this.interval = setInterval(function() {
|
|
978
|
-
var i = t.$attrs.circular && t.$attrs.value.length - 1 === t.activeIndex ? 0 : t.activeIndex + 1;
|
|
979
|
-
t.activeIndex = i;
|
|
980
|
-
}, this.$attrs.transitionInterval), this.slideShowActive = !0;
|
|
502
|
+
uploadDisabled: function() {
|
|
503
|
+
return this.disabled || !this.hasFiles || this.fileLimit && this.fileLimit < this.files.length;
|
|
981
504
|
},
|
|
982
|
-
|
|
983
|
-
this.
|
|
505
|
+
cancelDisabled: function() {
|
|
506
|
+
return this.disabled || !this.hasFiles;
|
|
984
507
|
},
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
return a === i;
|
|
988
|
-
});
|
|
989
|
-
return r ? "".concat(t, "-").concat(r) : "";
|
|
508
|
+
chooseButtonLabel: function() {
|
|
509
|
+
return this.chooseLabel || this.$primevue.config.locale.choose;
|
|
990
510
|
},
|
|
991
|
-
|
|
992
|
-
return this
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
511
|
+
uploadButtonLabel: function() {
|
|
512
|
+
return this.uploadLabel || this.$primevue.config.locale.upload;
|
|
513
|
+
},
|
|
514
|
+
cancelButtonLabel: function() {
|
|
515
|
+
return this.cancelLabel || this.$primevue.config.locale.cancel;
|
|
516
|
+
},
|
|
517
|
+
completedLabel: function() {
|
|
518
|
+
return this.$primevue.config.locale.completed;
|
|
519
|
+
},
|
|
520
|
+
pendingLabel: function() {
|
|
521
|
+
return this.$primevue.config.locale.pending;
|
|
998
522
|
}
|
|
999
523
|
},
|
|
1000
524
|
components: {
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
525
|
+
FileUploadButton: A,
|
|
526
|
+
FileUploadProgressBar: K,
|
|
527
|
+
FileUploadMessage: j,
|
|
528
|
+
FileContent: P,
|
|
529
|
+
PlusIcon: O,
|
|
530
|
+
UploadIcon: R,
|
|
531
|
+
TimesIcon: V
|
|
1004
532
|
},
|
|
1005
533
|
directives: {
|
|
1006
|
-
ripple:
|
|
534
|
+
ripple: H
|
|
1007
535
|
}
|
|
1008
|
-
};
|
|
1009
|
-
function
|
|
1010
|
-
"
|
|
1011
|
-
return
|
|
1012
|
-
return typeof t;
|
|
1013
|
-
} : function(t) {
|
|
1014
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1015
|
-
}, P(e);
|
|
1016
|
-
}
|
|
1017
|
-
function F(e, t) {
|
|
1018
|
-
var i = Object.keys(e);
|
|
1019
|
-
if (Object.getOwnPropertySymbols) {
|
|
1020
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
1021
|
-
t && (n = n.filter(function(r) {
|
|
1022
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
1023
|
-
})), i.push.apply(i, n);
|
|
1024
|
-
}
|
|
1025
|
-
return i;
|
|
1026
|
-
}
|
|
1027
|
-
function R(e) {
|
|
1028
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1029
|
-
var i = arguments[t] != null ? arguments[t] : {};
|
|
1030
|
-
t % 2 ? F(Object(i), !0).forEach(function(n) {
|
|
1031
|
-
Te(e, n, i[n]);
|
|
1032
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : F(Object(i)).forEach(function(n) {
|
|
1033
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
return e;
|
|
1037
|
-
}
|
|
1038
|
-
function Te(e, t, i) {
|
|
1039
|
-
return t = ke(t), t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
|
|
1040
|
-
}
|
|
1041
|
-
function ke(e) {
|
|
1042
|
-
var t = Be(e, "string");
|
|
1043
|
-
return P(t) == "symbol" ? t : String(t);
|
|
1044
|
-
}
|
|
1045
|
-
function Be(e, t) {
|
|
1046
|
-
if (P(e) != "object" || !e) return e;
|
|
1047
|
-
var i = e[Symbol.toPrimitive];
|
|
1048
|
-
if (i !== void 0) {
|
|
1049
|
-
var n = i.call(e, t);
|
|
1050
|
-
if (P(n) != "object") return n;
|
|
1051
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1052
|
-
}
|
|
1053
|
-
return (t === "string" ? String : Number)(e);
|
|
1054
|
-
}
|
|
1055
|
-
var Ve = ["id", "aria-label", "aria-roledescription"], Ne = ["aria-label"], Le = ["aria-live"];
|
|
1056
|
-
function $e(e, t, i, n, r, a) {
|
|
1057
|
-
var v = A("GalleriaItem"), u = A("GalleriaThumbnails"), o = C("ripple");
|
|
1058
|
-
return e.$attrs.value && e.$attrs.value.length > 0 ? (s(), d("div", l({
|
|
1059
|
-
key: 0,
|
|
1060
|
-
id: r.id,
|
|
1061
|
-
role: "region",
|
|
1062
|
-
class: [e.cx("root"), e.$attrs.containerClass],
|
|
1063
|
-
style: e.$attrs.containerStyle,
|
|
1064
|
-
"aria-label": e.$attrs.ariaLabel,
|
|
1065
|
-
"aria-roledescription": e.$attrs.ariaRoledescription
|
|
1066
|
-
}, R(R({}, e.$attrs.containerProps), a.getPTOptions("root"))), [e.$attrs.fullScreen ? y((s(), d("button", l({
|
|
536
|
+
}, ee = ["multiple", "accept", "disabled"], te = ["accept", "disabled", "multiple"];
|
|
537
|
+
function le(e, t, i, s, n, l) {
|
|
538
|
+
var u = y("FileUploadButton"), a = y("FileUploadProgressBar"), p = y("FileContent"), d = y("FileUploadMessage"), I = Z("ripple");
|
|
539
|
+
return l.isAdvanced ? (o(), f("div", r({
|
|
1067
540
|
key: 0,
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
"
|
|
1072
|
-
|
|
1073
|
-
return
|
|
1074
|
-
})
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
class: e.cx("
|
|
1080
|
-
},
|
|
541
|
+
class: e.cx("root")
|
|
542
|
+
}, e.ptmi("root")), [h("input", r({
|
|
543
|
+
ref: "fileInput",
|
|
544
|
+
type: "file",
|
|
545
|
+
onChange: t[0] || (t[0] = function() {
|
|
546
|
+
return l.onFileSelect && l.onFileSelect.apply(l, arguments);
|
|
547
|
+
}),
|
|
548
|
+
multiple: e.multiple,
|
|
549
|
+
accept: e.accept,
|
|
550
|
+
disabled: l.chooseDisabled
|
|
551
|
+
}, e.ptm("input")), null, 16, ee), h("div", r({
|
|
552
|
+
class: e.cx("buttonbar")
|
|
553
|
+
}, e.ptm("buttonbar")), [g(e.$slots, "header", {
|
|
554
|
+
files: n.files,
|
|
555
|
+
uploadedFiles: n.uploadedFiles,
|
|
556
|
+
chooseCallback: l.choose,
|
|
557
|
+
uploadCallback: l.upload,
|
|
558
|
+
clearCallback: l.clear
|
|
559
|
+
}, function() {
|
|
560
|
+
return [M((o(), f("span", r({
|
|
561
|
+
class: l.chooseButtonClass,
|
|
562
|
+
style: e.style,
|
|
563
|
+
onClick: t[1] || (t[1] = function() {
|
|
564
|
+
return l.choose && l.choose.apply(l, arguments);
|
|
565
|
+
}),
|
|
566
|
+
onKeydown: t[2] || (t[2] = T(function() {
|
|
567
|
+
return l.choose && l.choose.apply(l, arguments);
|
|
568
|
+
}, ["enter"])),
|
|
569
|
+
onFocus: t[3] || (t[3] = function() {
|
|
570
|
+
return l.onFocus && l.onFocus.apply(l, arguments);
|
|
571
|
+
}),
|
|
572
|
+
onBlur: t[4] || (t[4] = function() {
|
|
573
|
+
return l.onBlur && l.onBlur.apply(l, arguments);
|
|
574
|
+
}),
|
|
575
|
+
tabindex: "0"
|
|
576
|
+
}, e.ptm("chooseButton")), [g(e.$slots, "chooseicon", {
|
|
577
|
+
class: B(e.cx("chooseIcon"))
|
|
578
|
+
}, function() {
|
|
579
|
+
return [(o(), m(b(e.chooseIcon ? "span" : "PlusIcon"), r({
|
|
580
|
+
class: [e.cx("chooseIcon"), e.chooseIcon],
|
|
581
|
+
"aria-hidden": "true"
|
|
582
|
+
}, e.ptm("chooseIcon")), null, 16, ["class"]))];
|
|
583
|
+
}), h("span", r({
|
|
584
|
+
class: e.cx("chooseButtonLabel")
|
|
585
|
+
}, e.ptm("chooseButtonLabel")), F(l.chooseButtonLabel), 17)], 16)), [[I]]), e.showUploadButton ? (o(), m(u, {
|
|
586
|
+
key: 0,
|
|
587
|
+
label: l.uploadButtonLabel,
|
|
588
|
+
onClick: l.upload,
|
|
589
|
+
disabled: l.uploadDisabled,
|
|
590
|
+
unstyled: e.unstyled,
|
|
591
|
+
pt: e.ptm("uploadButton")
|
|
592
|
+
}, {
|
|
593
|
+
icon: C(function(c) {
|
|
594
|
+
return [g(e.$slots, "uploadicon", {}, function() {
|
|
595
|
+
return [(o(), m(b(e.uploadIcon ? "span" : "UploadIcon"), r({
|
|
596
|
+
class: [c.class, e.uploadIcon],
|
|
597
|
+
"aria-hidden": "true"
|
|
598
|
+
}, e.ptm("uploadButton").icon, {
|
|
599
|
+
"data-pc-section": "uploadbuttonicon"
|
|
600
|
+
}), null, 16, ["class"]))];
|
|
601
|
+
})];
|
|
602
|
+
}),
|
|
603
|
+
_: 3
|
|
604
|
+
}, 8, ["label", "onClick", "disabled", "unstyled", "pt"])) : v("", !0), e.showCancelButton ? (o(), m(u, {
|
|
605
|
+
key: 1,
|
|
606
|
+
label: l.cancelButtonLabel,
|
|
607
|
+
onClick: l.clear,
|
|
608
|
+
disabled: l.cancelDisabled,
|
|
609
|
+
unstyled: e.unstyled,
|
|
610
|
+
pt: e.ptm("cancelButton")
|
|
611
|
+
}, {
|
|
612
|
+
icon: C(function(c) {
|
|
613
|
+
return [g(e.$slots, "cancelicon", {}, function() {
|
|
614
|
+
return [(o(), m(b(e.cancelIcon ? "span" : "TimesIcon"), r({
|
|
615
|
+
class: [c.class, e.cancelIcon],
|
|
616
|
+
"aria-hidden": "true"
|
|
617
|
+
}, e.ptm("cancelButton").icon, {
|
|
618
|
+
"data-pc-section": "cancelbuttonicon"
|
|
619
|
+
}), null, 16, ["class"]))];
|
|
620
|
+
})];
|
|
621
|
+
}),
|
|
622
|
+
_: 3
|
|
623
|
+
}, 8, ["label", "onClick", "disabled", "unstyled", "pt"])) : v("", !0)];
|
|
624
|
+
})], 16), h("div", r({
|
|
625
|
+
ref: "content",
|
|
1081
626
|
class: e.cx("content"),
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
return r.activeIndex = m;
|
|
627
|
+
onDragenter: t[5] || (t[5] = function() {
|
|
628
|
+
return l.onDragEnter && l.onDragEnter.apply(l, arguments);
|
|
629
|
+
}),
|
|
630
|
+
onDragover: t[6] || (t[6] = function() {
|
|
631
|
+
return l.onDragOver && l.onDragOver.apply(l, arguments);
|
|
1088
632
|
}),
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
return r.slideShowActive = m;
|
|
633
|
+
onDragleave: t[7] || (t[7] = function() {
|
|
634
|
+
return l.onDragLeave && l.onDragLeave.apply(l, arguments);
|
|
1092
635
|
}),
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
636
|
+
onDrop: t[8] || (t[8] = function() {
|
|
637
|
+
return l.onDrop && l.onDrop.apply(l, arguments);
|
|
638
|
+
})
|
|
639
|
+
}, e.ptm("content"), {
|
|
640
|
+
"data-p-highlight": !1
|
|
641
|
+
}), [g(e.$slots, "content", {
|
|
642
|
+
files: n.files,
|
|
643
|
+
uploadedFiles: n.uploadedFiles,
|
|
644
|
+
removeUploadedFileCallback: l.removeUploadedFile,
|
|
645
|
+
removeFileCallback: l.remove,
|
|
646
|
+
progress: n.progress,
|
|
647
|
+
messages: n.messages
|
|
648
|
+
}, function() {
|
|
649
|
+
return [l.hasFiles ? (o(), f(U, {
|
|
650
|
+
key: 0
|
|
651
|
+
}, [L(a, {
|
|
652
|
+
value: n.progress,
|
|
653
|
+
showValue: !1,
|
|
654
|
+
unstyled: e.unstyled,
|
|
655
|
+
pt: e.ptm("progressbar")
|
|
656
|
+
}, null, 8, ["value", "unstyled", "pt"]), L(p, {
|
|
657
|
+
files: n.files,
|
|
658
|
+
onRemove: l.remove,
|
|
659
|
+
badgeValue: l.pendingLabel,
|
|
660
|
+
previewWidth: e.previewWidth,
|
|
661
|
+
templates: e.$slots,
|
|
662
|
+
unstyled: e.unstyled,
|
|
663
|
+
pt: e.pt
|
|
664
|
+
}, null, 8, ["files", "onRemove", "badgeValue", "previewWidth", "templates", "unstyled", "pt"])], 64)) : v("", !0), (o(!0), f(U, null, E(n.messages, function(c) {
|
|
665
|
+
return o(), m(d, {
|
|
666
|
+
key: c,
|
|
667
|
+
severity: "error",
|
|
668
|
+
onClose: l.onMessageClose,
|
|
669
|
+
unstyled: e.unstyled,
|
|
670
|
+
pt: e.ptm("message")
|
|
671
|
+
}, {
|
|
672
|
+
default: C(function() {
|
|
673
|
+
return [z(F(c), 1)];
|
|
674
|
+
}),
|
|
675
|
+
_: 2
|
|
676
|
+
}, 1032, ["onClose", "unstyled", "pt"]);
|
|
677
|
+
}), 128)), L(p, {
|
|
678
|
+
files: n.uploadedFiles,
|
|
679
|
+
onRemove: l.removeUploadedFile,
|
|
680
|
+
badgeValue: l.completedLabel,
|
|
681
|
+
badgeSeverity: "success",
|
|
682
|
+
previewWidth: e.previewWidth,
|
|
683
|
+
templates: e.$slots,
|
|
684
|
+
unstyled: e.unstyled,
|
|
685
|
+
pt: e.pt
|
|
686
|
+
}, null, 8, ["files", "onRemove", "badgeValue", "previewWidth", "templates", "unstyled", "pt"])];
|
|
687
|
+
}), e.$slots.empty && !l.hasFiles && !l.hasUploadedFiles ? (o(), f("div", r({
|
|
1105
688
|
key: 0,
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
689
|
+
class: e.cx("empty")
|
|
690
|
+
}, e.ptm("empty")), [g(e.$slots, "empty")], 16)) : v("", !0)], 16)], 16)) : l.isBasic ? (o(), f("div", r({
|
|
691
|
+
key: 1,
|
|
692
|
+
class: e.cx("root")
|
|
693
|
+
}, e.ptmi("root")), [(o(!0), f(U, null, E(n.messages, function(c) {
|
|
694
|
+
return o(), m(d, {
|
|
695
|
+
key: c,
|
|
696
|
+
severity: "error",
|
|
697
|
+
onClose: l.onMessageClose,
|
|
698
|
+
unstyled: e.unstyled,
|
|
699
|
+
pt: e.ptm("messages")
|
|
700
|
+
}, {
|
|
701
|
+
default: C(function() {
|
|
702
|
+
return [z(F(c), 1)];
|
|
703
|
+
}),
|
|
704
|
+
_: 2
|
|
705
|
+
}, 1032, ["onClose", "unstyled", "pt"]);
|
|
706
|
+
}), 128)), M((o(), f("span", r({
|
|
707
|
+
class: l.chooseButtonClass,
|
|
708
|
+
style: e.style,
|
|
709
|
+
onMouseup: t[12] || (t[12] = function() {
|
|
710
|
+
return l.onBasicUploaderClick && l.onBasicUploaderClick.apply(l, arguments);
|
|
1109
711
|
}),
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
712
|
+
onKeydown: t[13] || (t[13] = T(function() {
|
|
713
|
+
return l.choose && l.choose.apply(l, arguments);
|
|
714
|
+
}, ["enter"])),
|
|
715
|
+
onFocus: t[14] || (t[14] = function() {
|
|
716
|
+
return l.onFocus && l.onFocus.apply(l, arguments);
|
|
1113
717
|
}),
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
templates: e.$attrs.templates,
|
|
1117
|
-
numVisible: r.numVisible,
|
|
1118
|
-
responsiveOptions: e.$attrs.responsiveOptions,
|
|
1119
|
-
circular: e.$attrs.circular,
|
|
1120
|
-
isVertical: a.isVertical(),
|
|
1121
|
-
contentHeight: e.$attrs.verticalThumbnailViewPortHeight,
|
|
1122
|
-
showThumbnailNavigators: e.$attrs.showThumbnailNavigators,
|
|
1123
|
-
prevButtonProps: e.$attrs.prevButtonProps,
|
|
1124
|
-
nextButtonProps: e.$attrs.nextButtonProps,
|
|
1125
|
-
onStopSlideshow: a.stopSlideShow,
|
|
1126
|
-
pt: e.pt,
|
|
1127
|
-
unstyled: e.unstyled
|
|
1128
|
-
}, null, 8, ["activeIndex", "slideShowActive", "containerId", "value", "templates", "numVisible", "responsiveOptions", "circular", "isVertical", "contentHeight", "showThumbnailNavigators", "prevButtonProps", "nextButtonProps", "onStopSlideshow", "pt", "unstyled"])) : h("", !0)], 16, Le), e.$attrs.templates && e.$attrs.templates.footer ? (s(), d("div", l({
|
|
1129
|
-
key: 2,
|
|
1130
|
-
class: e.cx("footer")
|
|
1131
|
-
}, a.getPTOptions("footer")), [(s(), f(p(e.$attrs.templates.footer)))], 16)) : h("", !0)], 16, Ve)) : h("", !0);
|
|
1132
|
-
}
|
|
1133
|
-
Z.render = $e;
|
|
1134
|
-
var De = {
|
|
1135
|
-
name: "Galleria",
|
|
1136
|
-
extends: ie,
|
|
1137
|
-
inheritAttrs: !1,
|
|
1138
|
-
emits: ["update:activeIndex", "update:visible"],
|
|
1139
|
-
container: null,
|
|
1140
|
-
mask: null,
|
|
1141
|
-
data: function() {
|
|
1142
|
-
return {
|
|
1143
|
-
containerVisible: this.visible
|
|
1144
|
-
};
|
|
1145
|
-
},
|
|
1146
|
-
updated: function() {
|
|
1147
|
-
this.fullScreen && this.visible && (this.containerVisible = this.visible);
|
|
1148
|
-
},
|
|
1149
|
-
beforeUnmount: function() {
|
|
1150
|
-
this.fullScreen && c.unblockBodyScroll(), this.mask = null, this.container && (T.clear(this.container), this.container = null);
|
|
1151
|
-
},
|
|
1152
|
-
methods: {
|
|
1153
|
-
onBeforeEnter: function(t) {
|
|
1154
|
-
T.set("modal", t, this.baseZIndex || this.$primevue.config.zIndex.modal);
|
|
1155
|
-
},
|
|
1156
|
-
onEnter: function(t) {
|
|
1157
|
-
this.mask.style.zIndex = String(parseInt(t.style.zIndex, 10) - 1), c.blockBodyScroll(), this.focus();
|
|
1158
|
-
},
|
|
1159
|
-
onBeforeLeave: function() {
|
|
1160
|
-
!this.isUnstyled && c.addClass(this.mask, "p-component-overlay-leave");
|
|
1161
|
-
},
|
|
1162
|
-
onAfterLeave: function(t) {
|
|
1163
|
-
T.clear(t), this.containerVisible = !1, c.unblockBodyScroll();
|
|
1164
|
-
},
|
|
1165
|
-
onActiveItemChange: function(t) {
|
|
1166
|
-
this.activeIndex !== t && this.$emit("update:activeIndex", t);
|
|
1167
|
-
},
|
|
1168
|
-
maskHide: function() {
|
|
1169
|
-
this.$emit("update:visible", !1);
|
|
1170
|
-
},
|
|
1171
|
-
containerRef: function(t) {
|
|
1172
|
-
this.container = t;
|
|
1173
|
-
},
|
|
1174
|
-
maskRef: function(t) {
|
|
1175
|
-
this.mask = t;
|
|
1176
|
-
},
|
|
1177
|
-
focus: function() {
|
|
1178
|
-
var t = this.container.$el.querySelector("[autofocus]");
|
|
1179
|
-
t && t.focus();
|
|
1180
|
-
}
|
|
1181
|
-
},
|
|
1182
|
-
components: {
|
|
1183
|
-
GalleriaContent: Z,
|
|
1184
|
-
Portal: X
|
|
1185
|
-
},
|
|
1186
|
-
directives: {
|
|
1187
|
-
focustrap: q
|
|
1188
|
-
}
|
|
1189
|
-
}, Ee = ["aria-modal"];
|
|
1190
|
-
function Ke(e, t, i, n, r, a) {
|
|
1191
|
-
var v = A("GalleriaContent"), u = A("Portal"), o = C("focustrap");
|
|
1192
|
-
return e.fullScreen ? (s(), f(u, {
|
|
1193
|
-
key: 0
|
|
1194
|
-
}, {
|
|
1195
|
-
default: D(function() {
|
|
1196
|
-
return [r.containerVisible ? (s(), d("div", l({
|
|
1197
|
-
key: 0,
|
|
1198
|
-
ref: a.maskRef,
|
|
1199
|
-
class: [e.cx("mask"), e.maskClass],
|
|
1200
|
-
role: "dialog",
|
|
1201
|
-
"aria-modal": e.fullScreen ? "true" : void 0
|
|
1202
|
-
}, e.ptm("mask")), [z(Q, l({
|
|
1203
|
-
name: "p-galleria",
|
|
1204
|
-
onBeforeEnter: a.onBeforeEnter,
|
|
1205
|
-
onEnter: a.onEnter,
|
|
1206
|
-
onBeforeLeave: a.onBeforeLeave,
|
|
1207
|
-
onAfterLeave: a.onAfterLeave,
|
|
1208
|
-
appear: ""
|
|
1209
|
-
}, e.ptm("transition")), {
|
|
1210
|
-
default: D(function() {
|
|
1211
|
-
return [e.visible ? y((s(), f(v, l({
|
|
1212
|
-
key: 0,
|
|
1213
|
-
ref: a.containerRef,
|
|
1214
|
-
onMaskHide: a.maskHide,
|
|
1215
|
-
templates: e.$slots,
|
|
1216
|
-
onActiveitemChange: a.onActiveItemChange,
|
|
1217
|
-
pt: e.pt,
|
|
1218
|
-
unstyled: e.unstyled
|
|
1219
|
-
}, e.$props), null, 16, ["onMaskHide", "templates", "onActiveitemChange", "pt", "unstyled"])), [[o]]) : h("", !0)];
|
|
1220
|
-
}),
|
|
1221
|
-
_: 1
|
|
1222
|
-
}, 16, ["onBeforeEnter", "onEnter", "onBeforeLeave", "onAfterLeave"])], 16, Ee)) : h("", !0)];
|
|
718
|
+
onBlur: t[15] || (t[15] = function() {
|
|
719
|
+
return l.onBlur && l.onBlur.apply(l, arguments);
|
|
1223
720
|
}),
|
|
1224
|
-
|
|
1225
|
-
}))
|
|
721
|
+
tabindex: "0"
|
|
722
|
+
}, e.ptm("chooseButton")), [!l.hasFiles || e.auto ? g(e.$slots, "uploadicon", {
|
|
723
|
+
key: 0,
|
|
724
|
+
class: B(e.cx("uploadIcon"))
|
|
725
|
+
}, function() {
|
|
726
|
+
return [(o(), m(b(e.uploadIcon ? "span" : "UploadIcon"), r({
|
|
727
|
+
class: [e.cx("uploadIcon"), e.uploadIcon],
|
|
728
|
+
"aria-hidden": "true"
|
|
729
|
+
}, e.ptm("uploadIcon")), null, 16, ["class"]))];
|
|
730
|
+
}) : g(e.$slots, "chooseicon", {
|
|
1226
731
|
key: 1,
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
732
|
+
class: B(e.cx("chooseIcon"))
|
|
733
|
+
}, function() {
|
|
734
|
+
return [(o(), m(b(e.chooseIcon ? "span" : "PlusIcon"), r({
|
|
735
|
+
class: [e.cx("chooseIcon"), e.chooseIcon],
|
|
736
|
+
"aria-hidden": "true"
|
|
737
|
+
}, e.ptm("chooseIcon")), null, 16, ["class"]))];
|
|
738
|
+
}), h("span", r({
|
|
739
|
+
class: e.cx("label")
|
|
740
|
+
}, e.ptm("label")), F(l.basicChooseButtonLabel), 17), l.hasFiles ? v("", !0) : (o(), f("input", r({
|
|
741
|
+
key: 2,
|
|
742
|
+
ref: "fileInput",
|
|
743
|
+
type: "file",
|
|
744
|
+
accept: e.accept,
|
|
745
|
+
disabled: e.disabled,
|
|
746
|
+
multiple: e.multiple,
|
|
747
|
+
onChange: t[9] || (t[9] = function() {
|
|
748
|
+
return l.onFileSelect && l.onFileSelect.apply(l, arguments);
|
|
749
|
+
}),
|
|
750
|
+
onFocus: t[10] || (t[10] = function() {
|
|
751
|
+
return l.onFocus && l.onFocus.apply(l, arguments);
|
|
752
|
+
}),
|
|
753
|
+
onBlur: t[11] || (t[11] = function() {
|
|
754
|
+
return l.onBlur && l.onBlur.apply(l, arguments);
|
|
755
|
+
})
|
|
756
|
+
}, e.ptm("input")), null, 16, te))], 16)), [[I]])], 16)) : v("", !0);
|
|
1232
757
|
}
|
|
1233
|
-
|
|
758
|
+
_.render = le;
|
|
1234
759
|
export {
|
|
1235
|
-
|
|
760
|
+
_ as default
|
|
1236
761
|
};
|