@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.
Files changed (355) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +42 -40
  3. package/dist/index10.js +2 -2
  4. package/dist/{index100.js → index101.js} +1 -1
  5. package/dist/index103.js +138 -6
  6. package/dist/index104.js +4 -0
  7. package/dist/index107.js +2 -2
  8. package/dist/index109.js +1 -1
  9. package/dist/index11.js +2 -2
  10. package/dist/index111.js +3 -3
  11. package/dist/index113.js +6 -6
  12. package/dist/index115.js +1 -1
  13. package/dist/index117.js +5 -5
  14. package/dist/index12.js +2 -2
  15. package/dist/index127.js +69 -10
  16. package/dist/index129.js +9 -75
  17. package/dist/index13.js +2 -2
  18. package/dist/index131.js +68 -243
  19. package/dist/index133.js +257 -0
  20. package/dist/index136.js +35 -16
  21. package/dist/index138.js +22 -50
  22. package/dist/index14.js +2 -2
  23. package/dist/index140.js +38 -1110
  24. package/dist/index142.js +1059 -216
  25. package/dist/index144.js +238 -294
  26. package/dist/index146.js +335 -16
  27. package/dist/index148.js +15 -87
  28. package/dist/index15.js +2 -2
  29. package/dist/index150.js +71 -61
  30. package/dist/index152.js +66 -93
  31. package/dist/index154.js +120 -0
  32. package/dist/index157.js +373 -28
  33. package/dist/index159.js +28 -194
  34. package/dist/index16.js +2 -2
  35. package/dist/index161.js +210 -0
  36. package/dist/index164.js +110 -5518
  37. package/dist/index165.js +484 -80
  38. package/dist/index166.js +5505 -844
  39. package/dist/index167.js +90 -37
  40. package/dist/index168.js +816 -235
  41. package/dist/index169.js +28 -140
  42. package/dist/index17.js +2 -2
  43. package/dist/index170.js +271 -1190
  44. package/dist/index171.js +134 -756
  45. package/dist/index172.js +1133 -1242
  46. package/dist/index173.js +753 -257
  47. package/dist/index174.js +1290 -88
  48. package/dist/index175.js +276 -2
  49. package/dist/index176.js +86 -1356
  50. package/dist/index177.js +4 -0
  51. package/dist/index178.js +1372 -14
  52. package/dist/index18.js +2 -2
  53. package/dist/index180.js +11 -11
  54. package/dist/index181.js +11 -11
  55. package/dist/index182.js +12 -19
  56. package/dist/index183.js +18 -759
  57. package/dist/index184.js +25 -1122
  58. package/dist/index185.js +625 -1100
  59. package/dist/index186.js +1122 -11277
  60. package/dist/index187.js +1234 -36
  61. package/dist/index188.js +11276 -43
  62. package/dist/index19.js +2 -2
  63. package/dist/index191.js +36 -5938
  64. package/dist/index192.js +42 -205
  65. package/dist/index193.js +5922 -19
  66. package/dist/index194.js +199 -10
  67. package/dist/index195.js +33 -76
  68. package/dist/index196.js +14 -249
  69. package/dist/index197.js +72 -13678
  70. package/dist/index198.js +253 -27
  71. package/dist/index199.js +13669 -48
  72. package/dist/index2.js +2 -2
  73. package/dist/index20.js +2 -2
  74. package/dist/index200.js +25 -236
  75. package/dist/index201.js +45 -290
  76. package/dist/index202.js +179 -229
  77. package/dist/index203.js +304 -29
  78. package/dist/index204.js +286 -114
  79. package/dist/index205.js +29 -32
  80. package/dist/index206.js +116 -26
  81. package/dist/index207.js +31 -31
  82. package/dist/index208.js +26 -9
  83. package/dist/index209.js +35 -18
  84. package/dist/index21.js +2 -2
  85. package/dist/index210.js +8 -9
  86. package/dist/index211.js +19 -10
  87. package/dist/index212.js +10 -51
  88. package/dist/index213.js +9 -42
  89. package/dist/index214.js +50 -3
  90. package/dist/index215.js +40 -36
  91. package/dist/index216.js +4 -21
  92. package/dist/index217.js +35 -84
  93. package/dist/index218.js +21 -407
  94. package/dist/index219.js +159 -20
  95. package/dist/index22.js +3 -3
  96. package/dist/index220.js +19 -160
  97. package/dist/index221.js +10 -10
  98. package/dist/index222.js +15 -13
  99. package/dist/index223.js +198 -21
  100. package/dist/index224.js +51 -180
  101. package/dist/index225.js +82 -64
  102. package/dist/index226.js +406 -33
  103. package/dist/index227.js +33 -39
  104. package/dist/index228.js +36 -123
  105. package/dist/index229.js +158 -35
  106. package/dist/index23.js +2 -2
  107. package/dist/index230.js +227 -79
  108. package/dist/index231.js +36 -19
  109. package/dist/index232.js +10 -20
  110. package/dist/index233.js +22 -20
  111. package/dist/index234.js +126 -19
  112. package/dist/index235.js +35 -158
  113. package/dist/index236.js +79 -227
  114. package/dist/index237.js +19 -36
  115. package/dist/index238.js +20 -10
  116. package/dist/index239.js +20 -3632
  117. package/dist/index24.js +2 -2
  118. package/dist/index240.js +20 -55
  119. package/dist/index241.js +22 -77
  120. package/dist/index242.js +22 -52
  121. package/dist/index243.js +20 -215
  122. package/dist/index244.js +836 -10
  123. package/dist/index245.js +695 -50
  124. package/dist/index246.js +174 -59
  125. package/dist/index247.js +22 -54
  126. package/dist/index248.js +20 -75
  127. package/dist/index249.js +19 -722
  128. package/dist/index25.js +60 -11
  129. package/dist/index250.js +3 -39
  130. package/dist/index251.js +181 -58
  131. package/dist/index252.js +133 -11
  132. package/dist/index253.js +1189 -671
  133. package/dist/index254.js +20 -820
  134. package/dist/index255.js +11 -11
  135. package/dist/index256.js +9 -9
  136. package/dist/index257.js +22 -13
  137. package/dist/index258.js +20 -836
  138. package/dist/index259.js +19 -701
  139. package/dist/index26.js +1 -1
  140. package/dist/index260.js +2 -176
  141. package/dist/index261.js +2 -22
  142. package/dist/index262.js +3632 -20
  143. package/dist/index263.js +55 -20
  144. package/dist/index264.js +77 -3
  145. package/dist/index265.js +46 -181
  146. package/dist/index266.js +209 -127
  147. package/dist/index267.js +10 -1223
  148. package/dist/index268.js +57 -20
  149. package/dist/index269.js +61 -22
  150. package/dist/index27.js +1 -1
  151. package/dist/index270.js +54 -22
  152. package/dist/index271.js +75 -29
  153. package/dist/index272.js +722 -19
  154. package/dist/index273.js +39 -20
  155. package/dist/index274.js +64 -2
  156. package/dist/index275.js +11 -2
  157. package/dist/index276.js +689 -237
  158. package/dist/index277.js +820 -8
  159. package/dist/index278.js +42 -126
  160. package/dist/index279.js +59 -63
  161. package/dist/index28.js +1 -1
  162. package/dist/index280.js +26 -3
  163. package/dist/index281.js +21 -26
  164. package/dist/index282.js +21 -53
  165. package/dist/index283.js +15 -78
  166. package/dist/index284.js +17 -26
  167. package/dist/index285.js +253 -22
  168. package/dist/index286.js +8 -22
  169. package/dist/index287.js +137 -15
  170. package/dist/index288.js +83 -17
  171. package/dist/index289.js +2 -2
  172. package/dist/index29.js +1 -1
  173. package/dist/index290.js +3 -2
  174. package/dist/index291.js +24 -1515
  175. package/dist/index292.js +2 -386
  176. package/dist/index293.js +245 -2714
  177. package/dist/index294.js +4 -84
  178. package/dist/index295.js +135 -3765
  179. package/dist/index296.js +70 -57
  180. package/dist/index297.js +86 -14
  181. package/dist/index298.js +27 -82
  182. package/dist/index299.js +13 -199
  183. package/dist/index3.js +2 -2
  184. package/dist/index30.js +1 -1
  185. package/dist/index300.js +66 -237
  186. package/dist/index301.js +3 -78
  187. package/dist/index302.js +2 -22
  188. package/dist/index303.js +74 -926
  189. package/dist/index304.js +52 -21
  190. package/dist/index305.js +5 -19
  191. package/dist/index306.js +4 -19
  192. package/dist/index307.js +171 -61
  193. package/dist/index308.js +62 -18
  194. package/dist/index309.js +74 -18
  195. package/dist/index31.js +1 -1
  196. package/dist/index310.js +78 -21
  197. package/dist/index311.js +11 -11
  198. package/dist/index312.js +930 -58
  199. package/dist/index313.js +21 -261
  200. package/dist/index314.js +19 -5
  201. package/dist/index315.js +19 -139
  202. package/dist/index316.js +67 -71
  203. package/dist/index317.js +17 -85
  204. package/dist/index318.js +19 -29
  205. package/dist/index319.js +21 -15
  206. package/dist/index32.js +1 -1
  207. package/dist/index320.js +21 -74
  208. package/dist/index321.js +63 -4
  209. package/dist/index322.js +1518 -2
  210. package/dist/index323.js +376 -73
  211. package/dist/index324.js +2726 -48
  212. package/dist/index325.js +84 -4
  213. package/dist/index326.js +3769 -4
  214. package/dist/index327.js +51 -170
  215. package/dist/index328.js +14 -62
  216. package/dist/index329.js +84 -75
  217. package/dist/index33.js +1 -1
  218. package/dist/index330.js +201 -8
  219. package/dist/index331.js +245 -12
  220. package/dist/index332.js +32 -50
  221. package/dist/index333.js +8 -11
  222. package/dist/index334.js +12 -13
  223. package/dist/index335.js +49 -52
  224. package/dist/index336.js +9 -49
  225. package/dist/index337.js +10 -27
  226. package/dist/index338.js +58 -2
  227. package/dist/index339.js +52 -5
  228. package/dist/index34.js +1 -1
  229. package/dist/index340.js +31 -2
  230. package/dist/index341.js +2 -23
  231. package/dist/index342.js +4 -40
  232. package/dist/index343.js +2 -2
  233. package/dist/index344.js +22 -10
  234. package/dist/index345.js +38 -17
  235. package/dist/index346.js +2 -17
  236. package/dist/index347.js +10 -9
  237. package/dist/index348.js +20 -10
  238. package/dist/index349.js +17 -2
  239. package/dist/index35.js +1 -1
  240. package/dist/index350.js +9 -8
  241. package/dist/index351.js +10 -10
  242. package/dist/index352.js +2 -14
  243. package/dist/index353.js +9 -37
  244. package/dist/index354.js +9 -19
  245. package/dist/index355.js +14 -20
  246. package/dist/index356.js +17 -62
  247. package/dist/index357.js +56 -36
  248. package/dist/index358.js +26 -16
  249. package/dist/index359.js +6 -56
  250. package/dist/index36.js +1 -1
  251. package/dist/index360.js +51 -28
  252. package/dist/index361.js +7 -7
  253. package/dist/index362.js +11 -51
  254. package/dist/index363.js +6 -6
  255. package/dist/index364.js +28 -12
  256. package/dist/index365.js +2 -7
  257. package/dist/index366.js +69 -27
  258. package/dist/index367.js +167 -2
  259. package/dist/index368.js +20 -70
  260. package/dist/index369.js +20 -167
  261. package/dist/index37.js +4 -16
  262. package/dist/index370.js +61 -98
  263. package/dist/index371.js +37 -91
  264. package/dist/index372.js +30 -97
  265. package/dist/index373.js +11 -17
  266. package/dist/index374.js +3 -30
  267. package/dist/index375.js +3 -10
  268. package/dist/index376.js +13 -4
  269. package/dist/index377.js +7 -4
  270. package/dist/index378.js +12 -13
  271. package/dist/index379.js +5 -7
  272. package/dist/index38.js +15 -43
  273. package/dist/index380.js +33 -12
  274. package/dist/index381.js +31 -5
  275. package/dist/index382.js +27 -32
  276. package/dist/index383.js +58 -28
  277. package/dist/index384.js +16 -27
  278. package/dist/index385.js +99 -59
  279. package/dist/index386.js +91 -3
  280. package/dist/index387.js +98 -2
  281. package/dist/index388.js +3 -2
  282. package/dist/index389.js +2 -17
  283. package/dist/index39.js +42 -67
  284. package/dist/index390.js +2 -13
  285. package/dist/index391.js +17 -6
  286. package/dist/index392.js +13 -32
  287. package/dist/index393.js +8 -0
  288. package/dist/index394.js +34 -0
  289. package/dist/index4.js +2 -2
  290. package/dist/index40.js +66 -26
  291. package/dist/index41.js +25 -32
  292. package/dist/index42.js +32 -37
  293. package/dist/index43.js +37 -1300
  294. package/dist/index44.js +1273 -337
  295. package/dist/index45.js +357 -145
  296. package/dist/index46.js +155 -18
  297. package/dist/index47.js +16 -42
  298. package/dist/index48.js +44 -68
  299. package/dist/index49.js +67 -61
  300. package/dist/index5.js +2 -2
  301. package/dist/index50.js +57 -175
  302. package/dist/index51.js +173 -77
  303. package/dist/index52.js +78 -199
  304. package/dist/index53.js +206 -68
  305. package/dist/index54.js +69 -20
  306. package/dist/index55.js +20 -11
  307. package/dist/index56.js +10 -6
  308. package/dist/index57.js +5 -209
  309. package/dist/index58.js +210 -12
  310. package/dist/index59.js +12 -184
  311. package/dist/index6.js +2 -2
  312. package/dist/index60.js +176 -68
  313. package/dist/index61.js +79 -0
  314. package/dist/index63.js +7 -63
  315. package/dist/index64.js +65 -0
  316. package/dist/index7.js +2 -2
  317. package/dist/{index71.js → index72.js} +2 -2
  318. package/dist/index76.js +40 -308
  319. package/dist/index77.js +330 -0
  320. package/dist/index8.js +3 -3
  321. package/dist/{index80.js → index81.js} +5 -5
  322. package/dist/{index82.js → index83.js} +1 -1
  323. package/dist/index85.js +23 -131
  324. package/dist/index86.js +144 -0
  325. package/dist/{index87.js → index88.js} +5 -5
  326. package/dist/index9.js +2 -2
  327. package/dist/{index89.js → index90.js} +5 -5
  328. package/dist/{index95.js → index96.js} +3 -3
  329. package/dist/index98.js +20 -25
  330. package/dist/index99.js +34 -0
  331. package/dist/src/components/footer-actions/footer-actions.stories.d.ts +33 -1
  332. package/dist/src/components/footer-actions/footer-actions.vue.d.ts +29 -2
  333. package/dist/src/components/page-header/page-header.stories.d.ts +394 -0
  334. package/dist/src/components/page-header/page-header.vue.d.ts +43 -0
  335. package/dist/src/index.d.ts +1 -0
  336. package/package.json +1 -1
  337. package/src/assets/illustrations/app-icon-news.svg +1 -0
  338. package/dist/index102.js +0 -142
  339. package/dist/index134.js +0 -56
  340. package/dist/index155.js +0 -389
  341. package/dist/index162.js +0 -116
  342. package/dist/index163.js +0 -497
  343. package/dist/index179.js +0 -20
  344. package/dist/index62.js +0 -9
  345. package/dist/index75.js +0 -62
  346. package/dist/index84.js +0 -36
  347. package/dist/index97.js +0 -29
  348. package/dist/src/components/footer-actions/footer-actions.d.ts +0 -3
  349. /package/dist/{index65.js → index66.js} +0 -0
  350. /package/dist/{index67.js → index68.js} +0 -0
  351. /package/dist/{index69.js → index70.js} +0 -0
  352. /package/dist/{index73.js → index74.js} +0 -0
  353. /package/dist/{index78.js → index79.js} +0 -0
  354. /package/dist/{index91.js → index92.js} +0 -0
  355. /package/dist/{index93.js → index94.js} +0 -0
package/dist/index185.js CHANGED
@@ -1,1236 +1,761 @@
1
- import q from "./index228.js";
2
- import X from "./index229.js";
3
- import { ZIndexUtils as T, DomHandler as c, UniqueComponentId as k, ObjectUtils as $ } from "./index170.js";
4
- import O from "./index218.js";
5
- import Y from "./index230.js";
6
- import J from "./index222.js";
7
- import L from "./index217.js";
8
- import H from "./index231.js";
9
- import M from "./index232.js";
10
- import { resolveDirective as C, createElementBlock as d, openBlock as s, mergeProps as l, createElementVNode as b, createCommentVNode as h, withDirectives as y, createBlock as f, resolveDynamicComponent as p, Fragment as U, renderList as G, resolveComponent as A, createVNode as z, withCtx as D, Transition as Q } from "vue";
11
- import ee from "./index233.js";
12
- import te from "./index234.js";
13
- var ie = {
14
- name: "BaseGalleria",
15
- extends: O,
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
- id: {
17
+ name: {
18
18
  type: String,
19
19
  default: null
20
20
  },
21
- value: {
22
- type: Array,
21
+ url: {
22
+ type: String,
23
23
  default: null
24
24
  },
25
- activeIndex: {
26
- type: Number,
27
- default: 0
28
- },
29
- fullScreen: {
30
- type: Boolean,
31
- default: !1
25
+ mode: {
26
+ type: String,
27
+ default: "advanced"
32
28
  },
33
- visible: {
29
+ multiple: {
34
30
  type: Boolean,
35
31
  default: !1
36
32
  },
37
- numVisible: {
38
- type: Number,
39
- default: 3
40
- },
41
- responsiveOptions: {
42
- type: Array,
33
+ accept: {
34
+ type: String,
43
35
  default: null
44
36
  },
45
- showItemNavigators: {
37
+ disabled: {
46
38
  type: Boolean,
47
39
  default: !1
48
40
  },
49
- showThumbnailNavigators: {
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
- circular: {
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: 4e3
72
- },
73
- showThumbnails: {
74
- type: Boolean,
75
- default: !0
47
+ default: null
76
48
  },
77
- thumbnailsPosition: {
49
+ invalidFileSizeMessage: {
78
50
  type: String,
79
- default: "bottom"
51
+ default: "{0}: Invalid file size, file size should be smaller than {1}."
80
52
  },
81
- verticalThumbnailViewPortHeight: {
53
+ invalidFileTypeMessage: {
82
54
  type: String,
83
- default: "300px"
55
+ default: "{0}: Invalid file type, allowed file types: {1}."
84
56
  },
85
- showIndicators: {
86
- type: Boolean,
87
- default: !1
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
- showIndicatorsOnItem: {
65
+ withCredentials: {
90
66
  type: Boolean,
91
67
  default: !1
92
68
  },
93
- indicatorsPosition: {
94
- type: String,
95
- default: "bottom"
96
- },
97
- baseZIndex: {
69
+ previewWidth: {
98
70
  type: Number,
99
- default: 0
71
+ default: 50
100
72
  },
101
- maskClass: {
73
+ chooseLabel: {
102
74
  type: String,
103
75
  default: null
104
76
  },
105
- containerStyle: {
106
- type: null,
77
+ uploadLabel: {
78
+ type: String,
107
79
  default: null
108
80
  },
109
- containerClass: {
110
- type: null,
81
+ cancelLabel: {
82
+ type: String,
111
83
  default: null
112
84
  },
113
- containerProps: {
114
- type: null,
115
- default: null
85
+ customUpload: {
86
+ type: Boolean,
87
+ default: !1
116
88
  },
117
- prevButtonProps: {
118
- type: null,
119
- default: null
89
+ showUploadButton: {
90
+ type: Boolean,
91
+ default: !0
120
92
  },
121
- nextButtonProps: {
122
- type: null,
123
- default: null
93
+ showCancelButton: {
94
+ type: Boolean,
95
+ default: !0
124
96
  },
125
- ariaLabel: {
97
+ chooseIcon: {
126
98
  type: String,
127
- default: null
99
+ default: void 0
128
100
  },
129
- ariaRoledescription: {
101
+ uploadIcon: {
130
102
  type: String,
131
- default: null
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: Y,
112
+ style: G,
135
113
  provide: function() {
136
114
  return {
137
115
  $parentInstance: this
138
116
  };
139
117
  }
140
- };
141
- function g(e) {
142
- return oe(e) || re(e) || ae(e) || ne();
143
- }
144
- function ne() {
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
- circular: {
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: null
184
- },
185
- showItemNavigators: {
186
- type: Boolean,
187
- default: !0
188
- },
189
- showIndicators: {
190
- type: Boolean,
191
- default: !0
126
+ default: function() {
127
+ return [];
128
+ }
192
129
  },
193
- slideShowActive: {
194
- type: Boolean,
195
- default: !0
130
+ badgeSeverity: {
131
+ type: String,
132
+ default: "warning"
196
133
  },
197
- changeItemOnIndicatorHover: {
198
- type: Boolean,
199
- default: !0
134
+ badgeValue: {
135
+ type: String,
136
+ default: null
200
137
  },
201
- autoPlay: {
202
- type: Boolean,
203
- default: !1
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
- getIndicatorPTOptions: function(t) {
219
- return {
220
- context: {
221
- highlighted: this.activeIndex === t
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
- ChevronLeftIcon: H,
338
- ChevronRightIcon: M
339
- },
340
- directives: {
341
- ripple: L
157
+ FileUploadButton: A,
158
+ FileUploadBadge: Y,
159
+ TimesIcon: V
342
160
  }
343
- }, se = ["disabled"], le = ["id", "aria-label", "aria-roledescription"], ue = ["disabled"], ce = ["aria-label", "aria-selected", "aria-controls", "onClick", "onMouseenter", "onKeydown", "data-p-highlight"], de = ["tabindex"];
344
- function he(e, t, i, n, r, a) {
345
- var v = C("ripple");
346
- return s(), d("div", l({
347
- class: e.cx("itemWrapper")
348
- }, e.ptm("itemWrapper")), [b("div", l({
349
- class: e.cx("itemContainer")
350
- }, e.ptm("itemContainer")), [i.showItemNavigators ? y((s(), d("button", l({
351
- key: 0,
352
- type: "button",
353
- class: e.cx("previousItemButton"),
354
- onClick: t[0] || (t[0] = function(u) {
355
- return a.navBackward(u);
356
- }),
357
- disabled: a.isNavBackwardDisabled()
358
- }, e.ptm("previousItemButton"), {
359
- "data-pc-group-section": "itemnavigator"
360
- }), [(s(), f(p(i.templates.previousitemicon || "ChevronLeftIcon"), l({
361
- class: e.cx("previousItemIcon")
362
- }, e.ptm("previousItemIcon")), null, 16, ["class"]))], 16, se)), [[v]]) : h("", !0), b("div", l({
363
- id: i.id + "_item_" + i.activeIndex,
364
- class: e.cx("item"),
365
- role: "group",
366
- "aria-label": a.ariaSlideNumber(i.activeIndex + 1),
367
- "aria-roledescription": a.ariaSlideLabel
368
- }, e.ptm("item")), [i.templates.item ? (s(), f(p(i.templates.item), {
369
- key: 0,
370
- item: a.activeItem
371
- }, null, 8, ["item"])) : h("", !0)], 16, le), i.showItemNavigators ? y((s(), d("button", l({
372
- key: 1,
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
- onKeydown: function(I) {
409
- return a.onIndicatorKeyDown(I, o);
410
- }
411
- }, e.ptm("indicator", a.getIndicatorPTOptions(o)), {
412
- "data-p-highlight": a.isIndicatorItemActive(o)
413
- }), [i.templates.indicator ? h("", !0) : (s(), d("button", l({
414
- key: 0,
415
- type: "button",
416
- tabindex: i.activeIndex === o ? "0" : "-1",
417
- class: e.cx("indicatorButton")
418
- }, e.ptm("indicatorButton", a.getIndicatorPTOptions(o))), null, 16, de)), i.templates.indicator ? (s(), f(p(i.templates.indicator), {
419
- key: 1,
420
- index: o
421
- }, null, 8, ["index"])) : h("", !0)], 16, ce);
422
- }), 128))], 16)) : h("", !0)], 16);
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
- _.render = he;
425
- function B(e) {
426
- return pe(e) || ve(e) || fe(e) || me();
215
+ P.render = J;
216
+ function k(e) {
217
+ return x(e) || $(e) || N(e) || Q();
427
218
  }
428
- function me() {
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 fe(e, t) {
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 N(e, t);
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 N(e, t);
266
+ if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return D(e, t);
438
267
  }
439
268
  }
440
- function ve(e) {
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, n = new Array(t); i < t; i++) n[i] = e[i];
449
- return n;
271
+ for (var i = 0, s = new Array(t); i < t; i++) s[i] = e[i];
272
+ return s;
450
273
  }
451
- var W = {
452
- name: "GalleriaThumbnails",
453
- hostName: "Galleria",
454
- extends: O,
455
- emits: ["stop-slideshow", "update:activeIndex"],
456
- props: {
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
- d_numVisible: this.numVisible,
516
- d_oldNumVisible: this.numVisible,
517
- d_activeIndex: this.activeIndex,
518
- d_oldActiveItemIndex: this.activeIndex,
519
- totalShiftedItems: 0,
520
- page: 0
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
- step: function(t) {
543
- var i = this.totalShiftedItems + t;
544
- t < 0 && -1 * i + this.d_numVisible > this.value.length - 1 ? i = this.d_numVisible - this.value.length : t > 0 && i > 0 && (i = 0), this.circular && (t < 0 && this.value.length - 1 === this.d_activeIndex ? i = 0 : t > 0 && this.d_activeIndex === 0 && (i = this.d_numVisible - this.value.length)), this.$refs.itemsContainer && (document.body.setAttribute("data-p-items-hidden", "false"), !this.isUnstyled && c.removeClass(this.$refs.itemsContainer, "p-items-hidden"), this.$refs.itemsContainer.style.transform = this.isVertical ? "translate3d(0, ".concat(i * (100 / this.d_numVisible), "%, 0)") : "translate3d(".concat(i * (100 / this.d_numVisible), "%, 0, 0)"), this.$refs.itemsContainer.style.transition = "transform 500ms ease 0s"), this.totalShiftedItems = i;
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
- onThumbnailKeydown: function(t, i) {
576
- switch ((t.code === "Enter" || t.code === "NumpadEnter" || t.code === "Space") && (this.onItemClick(i), t.preventDefault()), t.code) {
577
- case "ArrowRight":
578
- this.onRightKey();
579
- break;
580
- case "ArrowLeft":
581
- this.onLeftKey();
582
- break;
583
- case "Home":
584
- this.onHomeKey(), t.preventDefault();
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
- onRightKey: function() {
599
- var t = c.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]'), i = this.findFocusedIndicatorIndex();
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
- onEndKey: function() {
611
- var t = c.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]'), i = this.findFocusedIndicatorIndex();
612
- this.changedFocusedIndicator(i, t.length - 1);
613
- },
614
- onTabKey: function() {
615
- var t = B(c.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]')), i = t.findIndex(function(a) {
616
- return c.getAttribute(a, "data-p-active") === !0;
617
- }), n = c.findSingle(this.$refs.itemsContainer, '[tabindex="0"]'), r = t.findIndex(function(a) {
618
- return a === n.parentElement;
619
- });
620
- t[r].children[0].tabIndex = "-1", t[i].children[0].tabIndex = "0";
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
- findFocusedIndicatorIndex: function() {
623
- var t = B(c.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]')), i = c.findSingle(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"] > [tabindex="0"]');
624
- return t.findIndex(function(n) {
625
- return n === i.parentElement;
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
- changedFocusedIndicator: function(t, i) {
629
- var n = c.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]');
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
- onTransitionEnd: function(t) {
633
- this.$refs.itemsContainer && t.propertyName === "transform" && (document.body.setAttribute("data-p-items-hidden", "true"), !this.isUnstyled && c.addClass(this.$refs.itemsContainer, "p-items-hidden"), this.$refs.itemsContainer.style.transition = "");
412
+ isWildcard: function(t) {
413
+ return t.indexOf("*") !== -1;
634
414
  },
635
- onTouchStart: function(t) {
636
- var i = t.changedTouches[0];
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
- onTouchMove: function(t) {
643
- t.cancelable && t.preventDefault();
418
+ isImage: function(t) {
419
+ return /^image\//.test(t.type);
644
420
  },
645
- onTouchEnd: function(t) {
646
- var i = t.changedTouches[0];
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
- changePageOnTouch: function(t, i) {
650
- i < 0 ? this.navForward(t) : this.navBackward(t);
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
- getTotalPageNumber: function() {
653
- return this.value.length > this.d_numVisible ? this.value.length - this.d_numVisible + 1 : 0;
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
- createStyle: function() {
656
- if (!this.thumbnailsStyle) {
657
- var t;
658
- this.thumbnailsStyle = document.createElement("style"), this.thumbnailsStyle.type = "text/css", c.setAttribute(this.thumbnailsStyle, "nonce", (t = this.$primevue) === null || t === void 0 || (t = t.config) === null || t === void 0 || (t = t.csp) === null || t === void 0 ? void 0 : t.nonce), document.body.appendChild(this.thumbnailsStyle);
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
- bindDocumentListeners: function() {
697
- var t = this;
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
- unbindDocumentListeners: function() {
703
- this.documentResizeListener && (window.removeEventListener("resize", this.documentResizeListener), this.documentResizeListener = null);
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
- isNavBackwardDisabled: function() {
706
- return !this.circular && this.d_activeIndex === 0 || this.value.length <= this.d_numVisible;
455
+ clearInputElement: function() {
456
+ this.$refs.fileInput.value = "";
707
457
  },
708
- isNavForwardDisabled: function() {
709
- return !this.circular && this.d_activeIndex === this.value.length - 1 || this.value.length <= this.d_numVisible;
458
+ clearIEInput: function() {
459
+ this.$refs.fileInput && (this.duplicateIEEvent = !0, this.$refs.fileInput.value = "");
710
460
  },
711
- firstItemAciveIndex: function() {
712
- return this.totalShiftedItems * -1;
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
- lastItemActiveIndex: function() {
715
- return this.firstItemAciveIndex() + this.d_numVisible - 1;
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
- isItemActive: function(t) {
718
- return this.firstItemAciveIndex() <= t && this.lastItemActiveIndex() >= t;
471
+ checkFileLimit: function() {
472
+ this.isFileLimitExceeded() && this.messages.push(this.invalidFileLimitMessage.replace("{0}", this.fileLimit.toString()));
719
473
  },
720
- ariaPageLabel: function(t) {
721
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, t) : void 0;
474
+ onMessageClose: function() {
475
+ this.messages = null;
722
476
  }
723
477
  },
724
478
  computed: {
725
- ariaPrevButtonLabel: function() {
726
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.prevPageLabel : void 0;
479
+ isAdvanced: function() {
480
+ return this.mode === "advanced";
727
481
  },
728
- ariaNextButtonLabel: function() {
729
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.nextPageLabel : void 0;
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
- "$attrs.value": function(t) {
942
- t && t.length < this.numVisible && (this.numVisible = t.length);
485
+ chooseButtonClass: function() {
486
+ return [this.cx("chooseButton"), this.class];
943
487
  },
944
- "$attrs.activeIndex": function(t) {
945
- this.activeIndex = t;
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
- "$attrs.numVisible": function(t) {
948
- this.numVisible = t;
493
+ hasFiles: function() {
494
+ return this.files && this.files.length > 0;
949
495
  },
950
- "$attrs.autoPlay": function(t) {
951
- t ? this.startSlideShow() : this.stopSlideShow();
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
- isAutoPlayActive: function() {
973
- return this.slideShowActive;
499
+ chooseDisabled: function() {
500
+ return this.disabled || this.fileLimit && this.fileLimit <= this.files.length + this.uploadedFileCount;
974
501
  },
975
- startSlideShow: function() {
976
- var t = this;
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
- stopSlideShow: function() {
983
- this.interval && clearInterval(this.interval), this.slideShowActive = !1;
505
+ cancelDisabled: function() {
506
+ return this.disabled || !this.hasFiles;
984
507
  },
985
- getPositionClass: function(t, i) {
986
- var n = ["top", "left", "bottom", "right"], r = n.find(function(a) {
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
- isVertical: function() {
992
- return this.$attrs.thumbnailsPosition === "left" || this.$attrs.thumbnailsPosition === "right";
993
- }
994
- },
995
- computed: {
996
- closeAriaLabel: function() {
997
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : void 0;
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
- GalleriaItem: _,
1002
- GalleriaThumbnails: W,
1003
- TimesIcon: J
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: L
534
+ ripple: H
1007
535
  }
1008
- };
1009
- function P(e) {
1010
- "@babel/helpers - typeof";
1011
- return P = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
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
- autofocus: "",
1069
- type: "button",
1070
- class: e.cx("closeButton"),
1071
- "aria-label": a.closeAriaLabel,
1072
- onClick: t[0] || (t[0] = function(m) {
1073
- return e.$emit("mask-hide");
1074
- })
1075
- }, a.getPTOptions("closeButton")), [(s(), f(p(e.$attrs.templates.closeicon || "TimesIcon"), l({
1076
- class: e.cx("closeIcon")
1077
- }, a.getPTOptions("closeIcon")), null, 16, ["class"]))], 16, Ne)), [[o]]) : h("", !0), e.$attrs.templates && e.$attrs.templates.header ? (s(), d("div", l({
1078
- key: 1,
1079
- class: e.cx("header")
1080
- }, a.getPTOptions("header")), [(s(), f(p(e.$attrs.templates.header)))], 16)) : h("", !0), b("div", l({
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
- "aria-live": e.$attrs.autoPlay ? "polite" : "off"
1083
- }, a.getPTOptions("content")), [z(v, {
1084
- id: r.id,
1085
- activeIndex: r.activeIndex,
1086
- "onUpdate:activeIndex": t[1] || (t[1] = function(m) {
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
- slideShowActive: r.slideShowActive,
1090
- "onUpdate:slideShowActive": t[2] || (t[2] = function(m) {
1091
- return r.slideShowActive = m;
633
+ onDragleave: t[7] || (t[7] = function() {
634
+ return l.onDragLeave && l.onDragLeave.apply(l, arguments);
1092
635
  }),
1093
- value: e.$attrs.value,
1094
- circular: e.$attrs.circular,
1095
- templates: e.$attrs.templates,
1096
- showIndicators: e.$attrs.showIndicators,
1097
- changeItemOnIndicatorHover: e.$attrs.changeItemOnIndicatorHover,
1098
- showItemNavigators: e.$attrs.showItemNavigators,
1099
- autoPlay: e.$attrs.autoPlay,
1100
- onStartSlideshow: a.startSlideShow,
1101
- onStopSlideshow: a.stopSlideShow,
1102
- pt: e.pt,
1103
- unstyled: e.unstyled
1104
- }, null, 8, ["id", "activeIndex", "slideShowActive", "value", "circular", "templates", "showIndicators", "changeItemOnIndicatorHover", "showItemNavigators", "autoPlay", "onStartSlideshow", "onStopSlideshow", "pt", "unstyled"]), e.$attrs.showThumbnails ? (s(), f(u, {
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
- activeIndex: r.activeIndex,
1107
- "onUpdate:activeIndex": t[3] || (t[3] = function(m) {
1108
- return r.activeIndex = m;
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
- slideShowActive: r.slideShowActive,
1111
- "onUpdate:slideShowActive": t[4] || (t[4] = function(m) {
1112
- return r.slideShowActive = m;
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
- containerId: r.id,
1115
- value: e.$attrs.value,
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
- _: 1
1225
- })) : (s(), f(v, l({
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
- templates: e.$slots,
1228
- onActiveitemChange: a.onActiveItemChange,
1229
- pt: e.pt,
1230
- unstyled: e.unstyled
1231
- }, e.$props), null, 16, ["templates", "onActiveitemChange", "pt", "unstyled"]));
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
- De.render = Ke;
758
+ _.render = le;
1234
759
  export {
1235
- De as default
760
+ _ as default
1236
761
  };