@quoreadmin/ui 1.9.3 → 1.10.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 +46 -44
  3. package/dist/index10.js +2 -2
  4. package/dist/index100.js +20 -25
  5. package/dist/index101.js +34 -0
  6. package/dist/{index102.js → index103.js} +1 -1
  7. package/dist/index105.js +147 -2
  8. package/dist/index106.js +2 -37
  9. package/dist/index107.js +39 -0
  10. package/dist/{index108.js → index109.js} +2 -2
  11. package/dist/index11.js +2 -2
  12. package/dist/{index110.js → index111.js} +1 -1
  13. package/dist/{index112.js → index113.js} +3 -3
  14. package/dist/{index114.js → index115.js} +6 -6
  15. package/dist/{index116.js → index117.js} +1 -1
  16. package/dist/{index118.js → index119.js} +5 -5
  17. package/dist/index12.js +2 -2
  18. package/dist/index13.js +2 -2
  19. package/dist/index131.js +272 -0
  20. package/dist/index134.js +8 -249
  21. package/dist/{index132.js → index136.js} +1 -1
  22. package/dist/index138.js +257 -0
  23. package/dist/index14.js +2 -2
  24. package/dist/index141.js +36 -45
  25. package/dist/index143.js +17 -1169
  26. package/dist/index145.js +38 -267
  27. package/dist/index147.js +1125 -286
  28. package/dist/index149.js +278 -15
  29. package/dist/index15.js +2 -2
  30. package/dist/index151.js +316 -69
  31. package/dist/index153.js +24 -558
  32. package/dist/index155.js +103 -0
  33. package/dist/index157.js +565 -0
  34. package/dist/index16.js +2 -2
  35. package/dist/{index158.js → index162.js} +1 -1
  36. package/dist/index165.js +353 -174
  37. package/dist/{index163.js → index167.js} +1 -1
  38. package/dist/index169.js +195 -482
  39. package/dist/index17.js +2 -2
  40. package/dist/index172.js +105 -852
  41. package/dist/index173.js +493 -36
  42. package/dist/index174.js +5507 -265
  43. package/dist/index175.js +87 -146
  44. package/dist/index176.js +847 -1185
  45. package/dist/index177.js +35 -769
  46. package/dist/index178.js +270 -1298
  47. package/dist/index179.js +142 -268
  48. package/dist/index18.js +2 -2
  49. package/dist/index180.js +1185 -92
  50. package/dist/index181.js +772 -2
  51. package/dist/index182.js +1229 -1297
  52. package/dist/index183.js +278 -0
  53. package/dist/index184.js +105 -17
  54. package/dist/index185.js +2 -18
  55. package/dist/index186.js +1372 -14
  56. package/dist/index188.js +14 -21
  57. package/dist/index189.js +18 -759
  58. package/dist/index19.js +2 -2
  59. package/dist/index190.js +18 -1144
  60. package/dist/index191.js +16 -1232
  61. package/dist/index192.js +22 -11274
  62. package/dist/index193.js +759 -36
  63. package/dist/index194.js +1144 -44
  64. package/dist/index195.js +1117 -1111
  65. package/dist/index196.js +11279 -0
  66. package/dist/index197.js +36 -5938
  67. package/dist/index198.js +42 -205
  68. package/dist/index199.js +1218 -25
  69. package/dist/index2.js +2 -2
  70. package/dist/index20.js +2 -2
  71. package/dist/index201.js +5932 -72
  72. package/dist/index202.js +199 -245
  73. package/dist/index203.js +25 -13674
  74. package/dist/index204.js +17 -26
  75. package/dist/index205.js +76 -61
  76. package/dist/index206.js +239 -224
  77. package/dist/index207.js +13659 -286
  78. package/dist/index208.js +27 -295
  79. package/dist/index209.js +62 -32
  80. package/dist/index21.js +2 -2
  81. package/dist/index210.js +236 -114
  82. package/dist/index211.js +305 -30
  83. package/dist/index212.js +295 -26
  84. package/dist/index213.js +30 -33
  85. package/dist/index214.js +114 -49
  86. package/dist/index215.js +33 -40
  87. package/dist/index216.js +26 -4
  88. package/dist/index217.js +36 -9
  89. package/dist/index218.js +50 -18
  90. package/dist/index219.js +43 -10
  91. package/dist/index22.js +2 -2
  92. package/dist/index220.js +4 -10
  93. package/dist/index221.js +9 -39
  94. package/dist/index222.js +19 -21
  95. package/dist/index223.js +10 -88
  96. package/dist/index224.js +9 -406
  97. package/dist/index225.js +39 -22
  98. package/dist/index226.js +21 -161
  99. package/dist/index227.js +157 -224
  100. package/dist/index228.js +222 -31
  101. package/dist/index229.js +37 -10
  102. package/dist/index23.js +2 -2
  103. package/dist/index230.js +10 -127
  104. package/dist/index231.js +148 -25
  105. package/dist/index232.js +20 -80
  106. package/dist/index233.js +1 -1
  107. package/dist/index234.js +15 -13
  108. package/dist/index235.js +198 -19
  109. package/dist/index236.js +68 -18
  110. package/dist/index237.js +87 -19
  111. package/dist/index238.js +383 -137
  112. package/dist/index239.js +34 -20
  113. package/dist/index24.js +2 -2
  114. package/dist/index240.js +39 -21
  115. package/dist/index241.js +20 -197
  116. package/dist/index242.js +21 -69
  117. package/dist/index243.js +22 -34
  118. package/dist/index244.js +19 -39
  119. package/dist/index245.js +836 -22
  120. package/dist/index246.js +701 -21
  121. package/dist/index247.js +176 -20
  122. package/dist/index248.js +20 -836
  123. package/dist/index249.js +19 -701
  124. package/dist/index250.js +22 -176
  125. package/dist/index251.js +12 -14
  126. package/dist/index252.js +9 -9
  127. package/dist/index253.js +3 -20
  128. package/dist/index254.js +187 -3
  129. package/dist/index255.js +42 -96
  130. package/dist/index256.js +1160 -70
  131. package/dist/index257.js +101 -1197
  132. package/dist/index258.js +1 -1
  133. package/dist/index259.js +1 -1
  134. package/dist/index26.js +2 -2
  135. package/dist/index260.js +1 -1
  136. package/dist/index261.js +37 -28
  137. package/dist/index262.js +21 -12
  138. package/dist/index263.js +9 -9
  139. package/dist/index264.js +20 -2
  140. package/dist/index266.js +2 -3636
  141. package/dist/index267.js +3620 -39
  142. package/dist/index268.js +30 -52
  143. package/dist/index269.js +47 -22
  144. package/dist/index27.js +2 -2
  145. package/dist/index270.js +25 -188
  146. package/dist/index271.js +213 -8
  147. package/dist/index272.js +9 -56
  148. package/dist/index273.js +41 -45
  149. package/dist/index274.js +46 -39
  150. package/dist/index275.js +36 -57
  151. package/dist/index276.js +41 -692
  152. package/dist/index277.js +707 -23
  153. package/dist/index278.js +25 -47
  154. package/dist/index279.js +63 -10
  155. package/dist/index28.js +2 -2
  156. package/dist/index280.js +10 -704
  157. package/dist/index281.js +655 -770
  158. package/dist/index282.js +820 -3
  159. package/dist/index283.js +80 -27
  160. package/dist/index284.js +20 -253
  161. package/dist/index285.js +20 -8
  162. package/dist/index286.js +42 -126
  163. package/dist/index287.js +59 -63
  164. package/dist/index288.js +26 -2
  165. package/dist/index289.js +21 -78
  166. package/dist/index29.js +2 -2
  167. package/dist/index290.js +21 -53
  168. package/dist/index291.js +16 -26
  169. package/dist/index292.js +17 -22
  170. package/dist/index293.js +253 -22
  171. package/dist/index294.js +5 -13
  172. package/dist/index295.js +137 -16
  173. package/dist/index296.js +82 -22
  174. package/dist/index297.js +23 -1534
  175. package/dist/index298.js +3 -386
  176. package/dist/index299.js +23 -2727
  177. package/dist/index3.js +2 -2
  178. package/dist/index30.js +2 -2
  179. package/dist/index300.js +252 -76
  180. package/dist/index301.js +4 -3790
  181. package/dist/index302.js +135 -55
  182. package/dist/index303.js +71 -77
  183. package/dist/index304.js +86 -21
  184. package/dist/index305.js +26 -932
  185. package/dist/index306.js +14 -20
  186. package/dist/index307.js +74 -19
  187. package/dist/index308.js +3 -19
  188. package/dist/index309.js +2 -69
  189. package/dist/index31.js +3 -3
  190. package/dist/index310.js +82 -18
  191. package/dist/index311.js +53 -19
  192. package/dist/index312.js +5 -21
  193. package/dist/index313.js +4 -21
  194. package/dist/index314.js +178 -62
  195. package/dist/index315.js +62 -14
  196. package/dist/index316.js +75 -84
  197. package/dist/index317.js +1485 -153
  198. package/dist/index318.js +357 -217
  199. package/dist/index319.js +2714 -245
  200. package/dist/index32.js +2 -2
  201. package/dist/index320.js +84 -4
  202. package/dist/index321.js +3785 -133
  203. package/dist/index322.js +57 -70
  204. package/dist/index323.js +75 -83
  205. package/dist/index324.js +21 -28
  206. package/dist/index325.js +933 -14
  207. package/dist/index326.js +21 -74
  208. package/dist/index327.js +19 -3
  209. package/dist/index328.js +20 -2
  210. package/dist/index329.js +66 -80
  211. package/dist/index33.js +2 -2
  212. package/dist/index330.js +19 -53
  213. package/dist/index331.js +19 -6
  214. package/dist/index332.js +21 -4
  215. package/dist/index333.js +21 -178
  216. package/dist/index334.js +62 -62
  217. package/dist/index335.js +2 -75
  218. package/dist/index336.js +15 -9
  219. package/dist/index337.js +83 -12
  220. package/dist/index338.js +197 -50
  221. package/dist/index339.js +243 -9
  222. package/dist/index34.js +2 -2
  223. package/dist/index340.js +35 -12
  224. package/dist/index341.js +8 -57
  225. package/dist/index342.js +12 -51
  226. package/dist/index343.js +49 -25
  227. package/dist/index344.js +12 -2
  228. package/dist/index345.js +14 -5
  229. package/dist/index346.js +58 -2
  230. package/dist/index347.js +52 -23
  231. package/dist/index348.js +28 -38
  232. package/dist/index349.js +2 -2
  233. package/dist/index35.js +2 -2
  234. package/dist/index350.js +4 -10
  235. package/dist/index351.js +2 -20
  236. package/dist/index352.js +22 -9
  237. package/dist/index353.js +40 -9
  238. package/dist/index354.js +2 -17
  239. package/dist/index355.js +11 -2
  240. package/dist/index356.js +20 -9
  241. package/dist/index357.js +10 -10
  242. package/dist/index358.js +9 -13
  243. package/dist/index359.js +16 -36
  244. package/dist/index36.js +2 -2
  245. package/dist/index360.js +2 -20
  246. package/dist/index361.js +9 -20
  247. package/dist/index362.js +9 -63
  248. package/dist/index363.js +14 -37
  249. package/dist/index364.js +1 -1
  250. package/dist/index365.js +1 -1
  251. package/dist/index366.js +5 -5
  252. package/dist/index368.js +2 -2
  253. package/dist/index37.js +2 -2
  254. package/dist/index370.js +2 -2
  255. package/dist/index372.js +1 -1
  256. package/dist/index374.js +4 -4
  257. package/dist/index375.js +3 -3
  258. package/dist/index376.js +19 -100
  259. package/dist/index377.js +19 -90
  260. package/dist/index378.js +63 -16
  261. package/dist/index379.js +36 -97
  262. package/dist/index38.js +5 -16
  263. package/dist/index380.js +1 -1
  264. package/dist/index381.js +3 -3
  265. package/dist/index384.js +3 -3
  266. package/dist/index386.js +1 -1
  267. package/dist/index388.js +3 -3
  268. package/dist/index389.js +5 -5
  269. package/dist/index39.js +15 -43
  270. package/dist/index390.js +3 -3
  271. package/dist/index392.js +17 -3
  272. package/dist/index393.js +101 -2
  273. package/dist/index394.js +91 -2
  274. package/dist/index395.js +98 -17
  275. package/dist/index396.js +3 -13
  276. package/dist/index397.js +2 -6
  277. package/dist/index398.js +2 -32
  278. package/dist/index399.js +19 -0
  279. package/dist/index4.js +2 -2
  280. package/dist/index40.js +42 -67
  281. package/dist/index400.js +15 -0
  282. package/dist/index401.js +8 -0
  283. package/dist/index402.js +34 -0
  284. package/dist/index41.js +66 -26
  285. package/dist/index42.js +25 -32
  286. package/dist/index43.js +32 -37
  287. package/dist/index44.js +37 -1389
  288. package/dist/index45.js +1362 -344
  289. package/dist/index46.js +364 -145
  290. package/dist/index47.js +155 -18
  291. package/dist/index48.js +16 -42
  292. package/dist/index49.js +45 -5
  293. package/dist/index5.js +2 -2
  294. package/dist/index50.js +5 -69
  295. package/dist/index51.js +67 -61
  296. package/dist/index52.js +57 -175
  297. package/dist/index53.js +173 -77
  298. package/dist/index54.js +79 -200
  299. package/dist/index55.js +206 -68
  300. package/dist/index56.js +69 -20
  301. package/dist/index57.js +20 -11
  302. package/dist/index58.js +10 -6
  303. package/dist/index59.js +5 -209
  304. package/dist/index6.js +2 -2
  305. package/dist/index60.js +210 -12
  306. package/dist/index61.js +12 -184
  307. package/dist/index62.js +176 -68
  308. package/dist/index63.js +79 -0
  309. package/dist/index65.js +7 -91
  310. package/dist/index66.js +93 -0
  311. package/dist/index7.js +2 -2
  312. package/dist/{index73.js → index74.js} +2 -2
  313. package/dist/index78.js +40 -308
  314. package/dist/index79.js +330 -0
  315. package/dist/index8.js +3 -3
  316. package/dist/{index82.js → index83.js} +5 -5
  317. package/dist/{index84.js → index85.js} +1 -1
  318. package/dist/index87.js +23 -131
  319. package/dist/index88.js +144 -0
  320. package/dist/index9.js +2 -2
  321. package/dist/{index89.js → index90.js} +5 -5
  322. package/dist/{index91.js → index92.js} +5 -5
  323. package/dist/{index97.js → index98.js} +5 -5
  324. package/dist/src/components/page-layout/page-layout.vue.d.ts +89 -0
  325. package/dist/src/components/room-details-popover/room-details-popover.d.ts +2087 -0
  326. package/dist/src/components/time-picker/time-picker.vue.d.ts +23 -7
  327. package/dist/src/index.d.ts +1 -0
  328. package/package.json +1 -1
  329. package/dist/index104.js +0 -149
  330. package/dist/index130.js +0 -16
  331. package/dist/index137.js +0 -56
  332. package/dist/index139.js +0 -37
  333. package/dist/index161.js +0 -389
  334. package/dist/index168.js +0 -116
  335. package/dist/index170.js +0 -5524
  336. package/dist/index171.js +0 -93
  337. package/dist/index187.js +0 -20
  338. package/dist/index200.js +0 -20
  339. package/dist/index64.js +0 -9
  340. package/dist/index77.js +0 -62
  341. package/dist/index86.js +0 -36
  342. package/dist/index99.js +0 -29
  343. /package/dist/{index120.js → index121.js} +0 -0
  344. /package/dist/{index122.js → index123.js} +0 -0
  345. /package/dist/{index124.js → index125.js} +0 -0
  346. /package/dist/{index126.js → index127.js} +0 -0
  347. /package/dist/{index128.js → index129.js} +0 -0
  348. /package/dist/{index156.js → index160.js} +0 -0
  349. /package/dist/{index67.js → index68.js} +0 -0
  350. /package/dist/{index69.js → index70.js} +0 -0
  351. /package/dist/{index71.js → index72.js} +0 -0
  352. /package/dist/{index75.js → index76.js} +0 -0
  353. /package/dist/{index80.js → index81.js} +0 -0
  354. /package/dist/{index93.js → index94.js} +0 -0
  355. /package/dist/{index95.js → index96.js} +0 -0
package/dist/index195.js CHANGED
@@ -1,1230 +1,1236 @@
1
- import { openBlock as d, createElementBlock as p, withKeys as f, withModifiers as r, normalizeClass as y, renderSlot as o, createElementVNode as u, withDirectives as v, Fragment as L, renderList as $, toDisplayString as g, vShow as w, createCommentVNode as c, createVNode as B, Transition as k, withCtx as T, normalizeStyle as S, createTextVNode as b, createBlock as E, Teleport as A } from "vue";
2
- function V(e) {
3
- return e === 0 ? !1 : Array.isArray(e) && e.length === 0 ? !0 : !e;
4
- }
5
- function M(e) {
6
- return (...t) => !e(...t);
7
- }
8
- function P(e, t) {
9
- return e === void 0 && (e = "undefined"), e === null && (e = "null"), e === !1 && (e = "false"), e.toString().toLowerCase().indexOf(t.trim()) !== -1;
10
- }
11
- function C(e) {
12
- return e.filter((t) => !t.$isLabel);
13
- }
14
- function O(e, t) {
15
- return (i) => i.reduce((l, a) => a[e] && a[e].length ? (l.push({
16
- $groupLabel: a[t],
17
- $isLabel: !0
18
- }), l.concat(a[e])) : l, []);
19
- }
20
- const D = (...e) => (t) => e.reduce((i, l) => l(i), t);
21
- var F = {
22
- data() {
23
- return {
24
- search: "",
25
- isOpen: !1,
26
- preferredOpenDirection: "below",
27
- optimizedHeight: this.maxHeight
28
- };
29
- },
1
+ import q from "./index257.js";
2
+ import X from "./index261.js";
3
+ import { ZIndexUtils as T, DomHandler as c, UniqueComponentId as k, ObjectUtils as $ } from "./index180.js";
4
+ import O from "./index238.js";
5
+ import Y from "./index283.js";
6
+ import J from "./index233.js";
7
+ import L from "./index237.js";
8
+ import H from "./index284.js";
9
+ import M from "./index249.js";
10
+ import { resolveDirective as C, openBlock as s, createElementBlock as d, mergeProps as l, createElementVNode as b, withDirectives as y, createBlock as f, resolveDynamicComponent as p, createCommentVNode as h, Fragment as U, renderList as G, resolveComponent as A, createVNode as z, withCtx as D, Transition as Q } from "vue";
11
+ import ee from "./index248.js";
12
+ import te from "./index285.js";
13
+ var ie = {
14
+ name: "BaseGalleria",
15
+ extends: O,
30
16
  props: {
31
- /**
32
- * Decide whether to filter the results based on search query.
33
- * Useful for async filtering, where we search through more complex data.
34
- * @type {Boolean}
35
- */
36
- internalSearch: {
37
- type: Boolean,
38
- default: !0
17
+ id: {
18
+ type: String,
19
+ default: null
39
20
  },
40
- /**
41
- * Array of available options: Objects, Strings or Integers.
42
- * If array of objects, visible label will default to option.label.
43
- * If `labal` prop is passed, label will equal option['label']
44
- * @type {Array}
45
- */
46
- options: {
21
+ value: {
47
22
  type: Array,
48
- required: !0
49
- },
50
- /**
51
- * Equivalent to the `multiple` attribute on a `<select>` input.
52
- * @default false
53
- * @type {Boolean}
54
- */
55
- multiple: {
23
+ default: null
24
+ },
25
+ activeIndex: {
26
+ type: Number,
27
+ default: 0
28
+ },
29
+ fullScreen: {
56
30
  type: Boolean,
57
31
  default: !1
58
32
  },
59
- /**
60
- * Key to compare objects
61
- * @default 'id'
62
- * @type {String}
63
- */
64
- trackBy: {
65
- type: String
66
- },
67
- /**
68
- * Label to look for in option Object
69
- * @default 'label'
70
- * @type {String}
71
- */
72
- label: {
73
- type: String
74
- },
75
- /**
76
- * Enable/disable search in options
77
- * @default true
78
- * @type {Boolean}
79
- */
80
- searchable: {
33
+ visible: {
81
34
  type: Boolean,
82
- default: !0
35
+ default: !1
83
36
  },
84
- /**
85
- * Clear the search input after `)
86
- * @default true
87
- * @type {Boolean}
88
- */
89
- clearOnSelect: {
90
- type: Boolean,
91
- default: !0
37
+ numVisible: {
38
+ type: Number,
39
+ default: 3
40
+ },
41
+ responsiveOptions: {
42
+ type: Array,
43
+ default: null
92
44
  },
93
- /**
94
- * Hide already selected options
95
- * @default false
96
- * @type {Boolean}
97
- */
98
- hideSelected: {
45
+ showItemNavigators: {
99
46
  type: Boolean,
100
47
  default: !1
101
48
  },
102
- /**
103
- * Equivalent to the `placeholder` attribute on a `<select>` input.
104
- * @default 'Select option'
105
- * @type {String}
106
- */
107
- placeholder: {
108
- type: String,
109
- default: "Select option"
110
- },
111
- /**
112
- * Allow to remove all selected values
113
- * @default true
114
- * @type {Boolean}
115
- */
116
- allowEmpty: {
49
+ showThumbnailNavigators: {
117
50
  type: Boolean,
118
51
  default: !0
119
52
  },
120
- /**
121
- * Reset this.internalValue, this.search after this.internalValue changes.
122
- * Useful if want to create a stateless dropdown.
123
- * @default false
124
- * @type {Boolean}
125
- */
126
- resetAfter: {
53
+ showItemNavigatorsOnHover: {
127
54
  type: Boolean,
128
55
  default: !1
129
56
  },
130
- /**
131
- * Enable/disable closing after selecting an option
132
- * @default true
133
- * @type {Boolean}
134
- */
135
- closeOnSelect: {
57
+ changeItemOnIndicatorHover: {
136
58
  type: Boolean,
137
- default: !0
138
- },
139
- /**
140
- * Function to interpolate the custom label
141
- * @default false
142
- * @type {Function}
143
- */
144
- customLabel: {
145
- type: Function,
146
- default(e, t) {
147
- return V(e) ? "" : t ? e[t] : e;
148
- }
59
+ default: !1
149
60
  },
150
- /**
151
- * Disable / Enable tagging
152
- * @default false
153
- * @type {Boolean}
154
- */
155
- taggable: {
61
+ circular: {
156
62
  type: Boolean,
157
63
  default: !1
158
64
  },
159
- /**
160
- * String to show when highlighting a potential tag
161
- * @default 'Press enter to create a tag'
162
- * @type {String}
163
- */
164
- tagPlaceholder: {
165
- type: String,
166
- default: "Press enter to create a tag"
167
- },
168
- /**
169
- * By default new tags will appear above the search results.
170
- * Changing to 'bottom' will revert this behaviour
171
- * and will proritize the search results
172
- * @default 'top'
173
- * @type {String}
174
- */
175
- tagPosition: {
176
- type: String,
177
- default: "top"
178
- },
179
- /**
180
- * Number of allowed selected options. No limit if 0.
181
- * @default 0
182
- * @type {Number}
183
- */
184
- max: {
185
- type: [Number, Boolean],
65
+ autoPlay: {
66
+ type: Boolean,
186
67
  default: !1
187
68
  },
188
- /**
189
- * Will be passed with all events as second param.
190
- * Useful for identifying events origin.
191
- * @default null
192
- * @type {String|Integer}
193
- */
194
- id: {
195
- default: null
196
- },
197
- /**
198
- * Limits the options displayed in the dropdown
199
- * to the first X options.
200
- * @default 1000
201
- * @type {Integer}
202
- */
203
- optionsLimit: {
69
+ transitionInterval: {
204
70
  type: Number,
205
- default: 1e3
206
- },
207
- /**
208
- * Name of the property containing
209
- * the group values
210
- * @default 1000
211
- * @type {String}
212
- */
213
- groupValues: {
214
- type: String
215
- },
216
- /**
217
- * Name of the property containing
218
- * the group label
219
- * @default 1000
220
- * @type {String}
221
- */
222
- groupLabel: {
223
- type: String
224
- },
225
- /**
226
- * Allow to select all group values
227
- * by selecting the group label
228
- * @default false
229
- * @type {Boolean}
230
- */
231
- groupSelect: {
71
+ default: 4e3
72
+ },
73
+ showThumbnails: {
232
74
  type: Boolean,
233
- default: !1
75
+ default: !0
234
76
  },
235
- /**
236
- * Array of keyboard keys to block
237
- * when selecting
238
- * @default 1000
239
- * @type {String}
240
- */
241
- blockKeys: {
242
- type: Array,
243
- default() {
244
- return [];
245
- }
77
+ thumbnailsPosition: {
78
+ type: String,
79
+ default: "bottom"
246
80
  },
247
- /**
248
- * Prevent from wiping up the search value
249
- * @default false
250
- * @type {Boolean}
251
- */
252
- preserveSearch: {
253
- type: Boolean,
254
- default: !1
81
+ verticalThumbnailViewPortHeight: {
82
+ type: String,
83
+ default: "300px"
255
84
  },
256
- /**
257
- * Select 1st options if value is empty
258
- * @default false
259
- * @type {Boolean}
260
- */
261
- preselectFirst: {
85
+ showIndicators: {
262
86
  type: Boolean,
263
87
  default: !1
264
88
  },
265
- /**
266
- * Prevent autofocus
267
- * @default false
268
- * @type {Boolean}
269
- */
270
- preventAutofocus: {
89
+ showIndicatorsOnItem: {
271
90
  type: Boolean,
272
91
  default: !1
273
92
  },
274
- /**
275
- * Allows a custom function for sorting search/filtered results.
276
- * @default null
277
- * @type {Function}
278
- */
279
- filteringSortFunc: {
280
- type: Function,
93
+ indicatorsPosition: {
94
+ type: String,
95
+ default: "bottom"
96
+ },
97
+ baseZIndex: {
98
+ type: Number,
99
+ default: 0
100
+ },
101
+ maskClass: {
102
+ type: String,
281
103
  default: null
282
- }
283
- },
284
- mounted() {
285
- !this.multiple && this.max && console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."), this.preselectFirst && !this.internalValue.length && this.options.length && this.select(this.filteredOptions[0]);
286
- },
287
- computed: {
288
- internalValue() {
289
- return this.modelValue || this.modelValue === 0 ? Array.isArray(this.modelValue) ? this.modelValue : [this.modelValue] : [];
290
104
  },
291
- filteredOptions() {
292
- const e = this.search || "", t = e.toLowerCase().trim();
293
- let i = this.options.concat();
294
- return this.internalSearch ? i = this.groupValues ? this.filterAndFlat(i, t, this.label) : this.filterOptions(i, t, this.label, this.customLabel) : i = this.groupValues ? O(this.groupValues, this.groupLabel)(i) : i, i = this.hideSelected ? i.filter(M(this.isSelected)) : i, this.taggable && t.length && !this.isExistingOption(t) && (this.tagPosition === "bottom" ? i.push({ isTag: !0, label: e }) : i.unshift({ isTag: !0, label: e })), i.slice(0, this.optionsLimit);
105
+ containerStyle: {
106
+ type: null,
107
+ default: null
295
108
  },
296
- valueKeys() {
297
- return this.trackBy ? this.internalValue.map((e) => e[this.trackBy]) : this.internalValue;
109
+ containerClass: {
110
+ type: null,
111
+ default: null
298
112
  },
299
- optionKeys() {
300
- return (this.groupValues ? this.flatAndStrip(this.options) : this.options).map((t) => this.customLabel(t, this.label).toString().toLowerCase());
113
+ containerProps: {
114
+ type: null,
115
+ default: null
301
116
  },
302
- currentOptionLabel() {
303
- return this.multiple ? this.searchable ? "" : this.placeholder : this.internalValue.length ? this.getOptionLabel(this.internalValue[0]) : this.searchable ? "" : this.placeholder;
304
- }
305
- },
306
- watch: {
307
- internalValue: {
308
- handler() {
309
- this.resetAfter && this.internalValue.length && (this.search = "", this.$emit("update:modelValue", this.multiple ? [] : null));
310
- },
311
- deep: !0
117
+ prevButtonProps: {
118
+ type: null,
119
+ default: null
312
120
  },
313
- search() {
314
- this.$emit("search-change", this.search);
315
- }
316
- },
317
- emits: ["open", "search-change", "close", "select", "update:modelValue", "remove", "tag"],
318
- methods: {
319
- /**
320
- * Returns the internalValue in a way it can be emited to the parent
321
- * @returns {Object||Array||String||Integer}
322
- */
323
- getValue() {
324
- return this.multiple ? this.internalValue : this.internalValue.length === 0 ? null : this.internalValue[0];
325
- },
326
- /**
327
- * Filters and then flattens the options list
328
- * @param {Array}
329
- * @return {Array} returns a filtered and flat options list
330
- */
331
- filterAndFlat(e, t, i) {
332
- return D(
333
- this.filterGroups(t, i, this.groupValues, this.groupLabel, this.customLabel),
334
- O(this.groupValues, this.groupLabel)
335
- )(e);
336
- },
337
- /**
338
- * Flattens and then strips the group labels from the options list
339
- * @param {Array}
340
- * @return {Array} returns a flat options list without group labels
341
- */
342
- flatAndStrip(e) {
343
- return D(
344
- O(this.groupValues, this.groupLabel),
345
- C
346
- )(e);
347
- },
348
- /**
349
- * Updates the search value
350
- * @param {String}
351
- */
352
- updateSearch(e) {
353
- this.search = e;
354
- },
355
- /**
356
- * Finds out if the given query is already present
357
- * in the available options
358
- * @param {String}
359
- * @return {Boolean} returns true if element is available
360
- */
361
- isExistingOption(e) {
362
- return this.options ? this.optionKeys.indexOf(e) > -1 : !1;
363
- },
364
- /**
365
- * Finds out if the given element is already present
366
- * in the result value
367
- * @param {Object||String||Integer} option passed element to check
368
- * @returns {Boolean} returns true if element is selected
369
- */
370
- isSelected(e) {
371
- const t = this.trackBy ? e[this.trackBy] : e;
372
- return this.valueKeys.indexOf(t) > -1;
373
- },
374
- /**
375
- * Finds out if the given option is disabled
376
- * @param {Object||String||Integer} option passed element to check
377
- * @returns {Boolean} returns true if element is disabled
378
- */
379
- isOptionDisabled(e) {
380
- return !!e.$isDisabled;
381
- },
382
- /**
383
- * Returns empty string when options is null/undefined
384
- * Returns tag query if option is tag.
385
- * Returns the customLabel() results and casts it to string.
386
- *
387
- * @param {Object||String||Integer} Passed option
388
- * @returns {Object||String}
389
- */
390
- getOptionLabel(e) {
391
- if (V(e)) return "";
392
- if (e.isTag) return e.label;
393
- if (e.$isLabel) return e.$groupLabel;
394
- const t = this.customLabel(e, this.label);
395
- return V(t) ? "" : t;
396
- },
397
- /**
398
- * Add the given option to the list of selected options
399
- * or sets the option as the selected option.
400
- * If option is already selected -> remove it from the results.
401
- *
402
- * @param {Object||String||Integer} option to select/deselect
403
- * @param {Boolean} block removing
404
- */
405
- select(e, t) {
406
- if (e.$isLabel && this.groupSelect) {
407
- this.selectGroup(e);
408
- return;
409
- }
410
- if (!(this.blockKeys.indexOf(t) !== -1 || this.disabled || e.$isDisabled || e.$isLabel) && !(this.max && this.multiple && this.internalValue.length === this.max) && !(t === "Tab" && !this.pointerDirty)) {
411
- if (e.isTag)
412
- this.$emit("tag", e.label, this.id), this.search = "", this.closeOnSelect && !this.multiple && this.deactivate();
413
- else {
414
- if (this.isSelected(e)) {
415
- t !== "Tab" && this.removeElement(e);
416
- return;
417
- }
418
- this.multiple ? this.$emit("update:modelValue", this.internalValue.concat([e])) : this.$emit("update:modelValue", e), this.$emit("select", e, this.id), this.clearOnSelect && (this.search = "");
419
- }
420
- this.closeOnSelect && this.deactivate();
421
- }
121
+ nextButtonProps: {
122
+ type: null,
123
+ default: null
422
124
  },
423
- /**
424
- * Add the given group options to the list of selected options
425
- * If all group optiona are already selected -> remove it from the results.
426
- *
427
- * @param {Object||String||Integer} group to select/deselect
428
- */
429
- selectGroup(e) {
430
- const t = this.options.find((i) => i[this.groupLabel] === e.$groupLabel);
431
- if (t) {
432
- if (this.wholeGroupSelected(t)) {
433
- this.$emit("remove", t[this.groupValues], this.id);
434
- const i = this.trackBy ? t[this.groupValues].map((a) => a[this.trackBy]) : t[this.groupValues], l = this.internalValue.filter(
435
- (a) => i.indexOf(this.trackBy ? a[this.trackBy] : a) === -1
436
- );
437
- this.$emit("update:modelValue", l);
438
- } else {
439
- const i = t[this.groupValues].filter(
440
- (l) => !(this.isOptionDisabled(l) || this.isSelected(l))
441
- );
442
- this.max && i.splice(this.max - this.internalValue.length), this.$emit("select", i, this.id), this.$emit(
443
- "update:modelValue",
444
- this.internalValue.concat(i)
445
- );
446
- }
447
- this.closeOnSelect && this.deactivate();
448
- }
125
+ ariaLabel: {
126
+ type: String,
127
+ default: null
449
128
  },
450
- /**
451
- * Helper to identify if all values in a group are selected
452
- *
453
- * @param {Object} group to validated selected values against
454
- */
455
- wholeGroupSelected(e) {
456
- return e[this.groupValues].every(
457
- (t) => this.isSelected(t) || this.isOptionDisabled(t)
458
- );
459
- },
460
- /**
461
- * Helper to identify if all values in a group are disabled
462
- *
463
- * @param {Object} group to check for disabled values
464
- */
465
- wholeGroupDisabled(e) {
466
- return e[this.groupValues].every(this.isOptionDisabled);
467
- },
468
- /**
469
- * Removes the given option from the selected options.
470
- * Additionally checks this.allowEmpty prop if option can be removed when
471
- * it is the last selected option.
472
- *
473
- * @param {type} option description
474
- * @return {type} description
475
- */
476
- removeElement(e, t = !0) {
477
- if (this.disabled || e.$isDisabled) return;
478
- if (!this.allowEmpty && this.internalValue.length <= 1) {
479
- this.deactivate();
480
- return;
481
- }
482
- const i = typeof e == "object" ? this.valueKeys.indexOf(e[this.trackBy]) : this.valueKeys.indexOf(e);
483
- if (this.multiple) {
484
- const l = this.internalValue.slice(0, i).concat(this.internalValue.slice(i + 1));
485
- this.$emit("update:modelValue", l);
486
- } else
487
- this.$emit("update:modelValue", null);
488
- this.$emit("remove", e, this.id), this.closeOnSelect && t && this.deactivate();
489
- },
490
- /**
491
- * Calls this.removeElement() with the last element
492
- * from this.internalValue (selected element Array)
493
- *
494
- * @fires this#removeElement
495
- */
496
- removeLastElement() {
497
- this.blockKeys.indexOf("Delete") === -1 && this.search.length === 0 && Array.isArray(this.internalValue) && this.internalValue.length && this.removeElement(this.internalValue[this.internalValue.length - 1], !1);
498
- },
499
- /**
500
- * Opens the multiselect’s dropdown.
501
- * Sets this.isOpen to TRUE
502
- */
503
- activate() {
504
- this.isOpen || this.disabled || (this.adjustPosition(), this.groupValues && this.pointer === 0 && this.filteredOptions.length && (this.pointer = 1), this.isOpen = !0, this.searchable ? (this.preserveSearch || (this.search = ""), this.preventAutofocus || this.$nextTick(() => this.$refs.search && this.$refs.search.focus())) : this.preventAutofocus || typeof this.$el < "u" && this.$el.focus(), this.$emit("open", this.id));
505
- },
506
- /**
507
- * Closes the multiselect’s dropdown.
508
- * Sets this.isOpen to FALSE
509
- */
510
- deactivate() {
511
- this.isOpen && (this.isOpen = !1, this.searchable ? this.$refs.search !== null && typeof this.$refs.search < "u" && this.$refs.search.blur() : typeof this.$el < "u" && this.$el.blur(), this.preserveSearch || (this.search = ""), this.$emit("close", this.getValue(), this.id));
512
- },
513
- /**
514
- * Call this.activate() or this.deactivate()
515
- * depending on this.isOpen value.
516
- *
517
- * @fires this#activate || this#deactivate
518
- * @property {Boolean} isOpen indicates if dropdown is open
519
- */
520
- toggle() {
521
- this.isOpen ? this.deactivate() : this.activate();
522
- },
523
- /**
524
- * Updates the hasEnoughSpace variable used for
525
- * detecting where to expand the dropdown
526
- */
527
- adjustPosition() {
528
- if (typeof window > "u") return;
529
- const e = this.$el.getBoundingClientRect().top, t = window.innerHeight - this.$el.getBoundingClientRect().bottom;
530
- t > this.maxHeight || t > e || this.openDirection === "below" || this.openDirection === "bottom" ? (this.preferredOpenDirection = "below", this.optimizedHeight = Math.min(t - 40, this.maxHeight)) : (this.preferredOpenDirection = "above", this.optimizedHeight = Math.min(e - 40, this.maxHeight));
531
- },
532
- /**
533
- * Filters and sorts the options ready for selection
534
- * @param {Array} options
535
- * @param {String} search
536
- * @param {String} label
537
- * @param {Function} customLabel
538
- * @returns {Array}
539
- */
540
- filterOptions(e, t, i, l) {
541
- return t ? e.filter((a) => P(l(a, i), t)).sort((a, n) => typeof this.filteringSortFunc == "function" ? this.filteringSortFunc(a, n) : l(a, i).length - l(n, i).length) : e;
542
- },
543
- /**
544
- *
545
- * @param {String} search
546
- * @param {String} label
547
- * @param {String} values
548
- * @param {String} groupLabel
549
- * @param {function} customLabel
550
- * @returns {function(*): *}
551
- */
552
- filterGroups(e, t, i, l, a) {
553
- return (n) => n.map((s) => {
554
- if (!s[i])
555
- return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."), [];
556
- const h = this.filterOptions(s[i], e, t, a);
557
- return h.length ? {
558
- [l]: s[l],
559
- [i]: h
560
- } : [];
561
- });
129
+ ariaRoledescription: {
130
+ type: String,
131
+ default: null
562
132
  }
563
- }
564
- }, G = {
565
- data() {
133
+ },
134
+ style: Y,
135
+ provide: function() {
566
136
  return {
567
- pointer: 0,
568
- pointerDirty: !1
137
+ $parentInstance: this
569
138
  };
570
- },
139
+ }
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"],
571
172
  props: {
572
- /**
573
- * Enable/disable highlighting of the pointed value.
574
- * @type {Boolean}
575
- * @default true
576
- */
577
- showPointer: {
173
+ circular: {
578
174
  type: Boolean,
579
- default: !0
175
+ default: !1
580
176
  },
581
- optionHeight: {
177
+ activeIndex: {
582
178
  type: Number,
583
- default: 40
584
- }
585
- },
586
- computed: {
587
- pointerPosition() {
588
- return this.pointer * this.optionHeight;
179
+ default: 0
589
180
  },
590
- visibleElements() {
591
- return this.optimizedHeight / this.optionHeight;
592
- }
593
- },
594
- watch: {
595
- filteredOptions() {
596
- this.pointerAdjust();
181
+ value: {
182
+ type: Array,
183
+ default: null
597
184
  },
598
- isOpen() {
599
- this.pointerDirty = !1;
185
+ showItemNavigators: {
186
+ type: Boolean,
187
+ default: !0
600
188
  },
601
- pointer() {
602
- this.$refs.search && this.$refs.search.setAttribute("aria-activedescendant", this.id + "-" + this.pointer.toString());
189
+ showIndicators: {
190
+ type: Boolean,
191
+ default: !0
192
+ },
193
+ slideShowActive: {
194
+ type: Boolean,
195
+ default: !0
196
+ },
197
+ changeItemOnIndicatorHover: {
198
+ type: Boolean,
199
+ default: !0
200
+ },
201
+ autoPlay: {
202
+ type: Boolean,
203
+ default: !1
204
+ },
205
+ templates: {
206
+ type: null,
207
+ default: null
208
+ },
209
+ id: {
210
+ type: String,
211
+ default: null
603
212
  }
604
213
  },
214
+ mounted: function() {
215
+ this.autoPlay && this.$emit("start-slideshow");
216
+ },
605
217
  methods: {
606
- optionHighlight(e, t) {
218
+ getIndicatorPTOptions: function(t) {
607
219
  return {
608
- "multiselect__option--highlight": e === this.pointer && this.showPointer,
609
- "multiselect__option--selected": this.isSelected(t)
220
+ context: {
221
+ highlighted: this.activeIndex === t
222
+ }
610
223
  };
611
224
  },
612
- groupHighlight(e, t) {
613
- if (!this.groupSelect)
614
- return [
615
- "multiselect__option--disabled",
616
- { "multiselect__option--group": t.$isLabel }
617
- ];
618
- const i = this.options.find((l) => l[this.groupLabel] === t.$groupLabel);
619
- return i && !this.wholeGroupDisabled(i) ? [
620
- "multiselect__option--group",
621
- { "multiselect__option--highlight": e === this.pointer && this.showPointer },
622
- { "multiselect__option--group-selected": this.wholeGroupSelected(i) }
623
- ] : "multiselect__option--disabled";
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
+ }
624
277
  },
625
- addPointerElement({ key: e } = "Enter") {
626
- this.filteredOptions.length > 0 && this.select(this.filteredOptions[this.pointer], e), this.pointerReset();
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);
627
281
  },
628
- pointerForward() {
629
- this.pointer < this.filteredOptions.length - 1 && (this.pointer++, this.$refs.list?.scrollTop <= this.pointerPosition - (this.visibleElements - 1) * this.optionHeight && (this.$refs.list.scrollTop = this.pointerPosition - (this.visibleElements - 1) * this.optionHeight), this.filteredOptions[this.pointer] && this.filteredOptions[this.pointer].$isLabel && !this.groupSelect && this.pointerForward()), this.pointerDirty = !0;
282
+ onLeftKey: function() {
283
+ var t = this.findFocusedIndicatorIndex();
284
+ this.changedFocusedIndicator(t, t - 1 <= 0 ? 0 : t - 1);
630
285
  },
631
- pointerBackward() {
632
- this.pointer > 0 ? (this.pointer--, this.$refs.list?.scrollTop >= this.pointerPosition && (this.$refs.list.scrollTop = this.pointerPosition), this.filteredOptions[this.pointer] && this.filteredOptions[this.pointer].$isLabel && !this.groupSelect && this.pointerBackward()) : this.filteredOptions[this.pointer] && this.filteredOptions[0].$isLabel && !this.groupSelect && this.pointerForward(), this.pointerDirty = !0;
286
+ onHomeKey: function() {
287
+ var t = this.findFocusedIndicatorIndex();
288
+ this.changedFocusedIndicator(t, 0);
633
289
  },
634
- pointerReset() {
635
- this.closeOnSelect && (this.pointer = 0, this.$refs.list && (this.$refs.list.scrollTop = 0));
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);
636
293
  },
637
- pointerAdjust() {
638
- this.pointer >= this.filteredOptions.length - 1 && (this.pointer = this.filteredOptions.length ? this.filteredOptions.length - 1 : 0), this.filteredOptions.length > 0 && this.filteredOptions[this.pointer].$isLabel && !this.groupSelect && this.pointerForward();
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";
639
301
  },
640
- pointerSet(e) {
641
- this.pointer = e, this.pointerDirty = !0;
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;
642
326
  }
643
- }
644
- }, H = {
645
- name: "vue-multiselect",
646
- mixins: [F, G],
647
- compatConfig: {
648
- MODE: 3,
649
- ATTR_ENUMERATED_COERCION: !1
650
327
  },
651
- props: {
652
- /**
653
- * name attribute to match optional label element
654
- * @default ''
655
- * @type {String}
656
- */
657
- name: {
658
- type: String,
659
- default: ""
328
+ computed: {
329
+ activeItem: function() {
330
+ return this.value[this.activeIndex];
660
331
  },
661
- /**
662
- * Presets the selected options value.
663
- * @type {Object||Array||String||Integer}
664
- */
665
- modelValue: {
666
- type: null,
667
- default() {
668
- return [];
332
+ ariaSlideLabel: function() {
333
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slide : void 0;
334
+ }
335
+ },
336
+ components: {
337
+ ChevronLeftIcon: H,
338
+ ChevronRightIcon: M
339
+ },
340
+ directives: {
341
+ ripple: L
342
+ }
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);
407
+ },
408
+ onKeydown: function(I) {
409
+ return a.onIndicatorKeyDown(I, o);
669
410
  }
670
- },
671
- /**
672
- * String to show when pointing to an option
673
- * @default 'Press enter to select'
674
- * @type {String}
675
- */
676
- selectLabel: {
677
- type: String,
678
- default: "Press enter to select"
679
- },
680
- /**
681
- * String to show when pointing to an option
682
- * @default 'Press enter to select'
683
- * @type {String}
684
- */
685
- selectGroupLabel: {
686
- type: String,
687
- default: "Press enter to select group"
688
- },
689
- /**
690
- * String to show next to selected option
691
- * @default 'Selected'
692
- * @type {String}
693
- */
694
- selectedLabel: {
695
- type: String,
696
- default: "Selected"
697
- },
698
- /**
699
- * String to show when pointing to an already selected option
700
- * @default 'Press enter to remove'
701
- * @type {String}
702
- */
703
- deselectLabel: {
704
- type: String,
705
- default: "Press enter to remove"
706
- },
707
- /**
708
- * String to show when pointing to an already selected option
709
- * @default 'Press enter to remove'
710
- * @type {String}
711
- */
712
- deselectGroupLabel: {
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);
423
+ }
424
+ _.render = he;
425
+ function B(e) {
426
+ return pe(e) || ve(e) || fe(e) || me();
427
+ }
428
+ function me() {
429
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
430
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
431
+ }
432
+ function fe(e, t) {
433
+ if (e) {
434
+ if (typeof e == "string") return N(e, t);
435
+ var i = Object.prototype.toString.call(e).slice(8, -1);
436
+ 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);
438
+ }
439
+ }
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) {
447
+ (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;
450
+ }
451
+ var W = {
452
+ name: "GalleriaThumbnails",
453
+ hostName: "Galleria",
454
+ extends: O,
455
+ emits: ["stop-slideshow", "update:activeIndex"],
456
+ props: {
457
+ containerId: {
713
458
  type: String,
714
- default: "Press enter to deselect group"
715
- },
716
- /**
717
- * Decide whether to show pointer labels
718
- * @default true
719
- * @type {Boolean}
720
- */
721
- showLabels: {
722
- type: Boolean,
723
- default: !0
459
+ default: null
460
+ },
461
+ value: {
462
+ type: Array,
463
+ default: null
724
464
  },
725
- /**
726
- * Limit the display of selected options. The rest will be hidden within the limitText string.
727
- * @default 99999
728
- * @type {Integer}
729
- */
730
- limit: {
465
+ numVisible: {
731
466
  type: Number,
732
- default: 99999
733
- },
734
- /**
735
- * Sets maxHeight style value of the dropdown
736
- * @default 300
737
- * @type {Integer}
738
- */
739
- maxHeight: {
467
+ default: 3
468
+ },
469
+ activeIndex: {
740
470
  type: Number,
741
- default: 300
742
- },
743
- /**
744
- * Function that process the message shown when selected
745
- * elements pass the defined limit.
746
- * @default 'and * more'
747
- * @param {Int} count Number of elements more than limit
748
- * @type {Function}
749
- */
750
- limitText: {
751
- type: Function,
752
- default: (e) => `and ${e} more`
753
- },
754
- /**
755
- * Set true to trigger the loading spinner.
756
- * @default False
757
- * @type {Boolean}
758
- */
759
- loading: {
471
+ default: 0
472
+ },
473
+ isVertical: {
760
474
  type: Boolean,
761
475
  default: !1
762
476
  },
763
- /**
764
- * Disables the multiselect if true.
765
- * @default false
766
- * @type {Boolean}
767
- */
768
- disabled: {
477
+ slideShowActive: {
769
478
  type: Boolean,
770
479
  default: !1
771
480
  },
772
- /**
773
- * Enables search input's spellcheck if true.
774
- * @default false
775
- * @type {Boolean}
776
- */
777
- spellcheck: {
481
+ circular: {
778
482
  type: Boolean,
779
483
  default: !1
780
484
  },
781
- /**
782
- * Fixed opening direction
783
- * @default ''
784
- * @type {String}
785
- */
786
- openDirection: {
485
+ responsiveOptions: {
486
+ type: Array,
487
+ default: null
488
+ },
489
+ contentHeight: {
787
490
  type: String,
788
- default: ""
789
- },
790
- /**
791
- * Shows slot with message about empty options
792
- * @default true
793
- * @type {Boolean}
794
- */
795
- showNoOptions: {
796
- type: Boolean,
797
- default: !0
491
+ default: "300px"
798
492
  },
799
- showNoResults: {
493
+ showThumbnailNavigators: {
800
494
  type: Boolean,
801
495
  default: !0
802
496
  },
803
- tabindex: {
804
- type: Number,
805
- default: 0
806
- },
807
- /**
808
- * Adds Required attribute to the input element when there is no value selected
809
- * @default false
810
- * @type {Boolean}
811
- */
812
- required: {
813
- type: Boolean,
814
- default: !1
497
+ templates: {
498
+ type: null,
499
+ default: null
815
500
  },
816
- /**
817
- * Uses Vue Teleport's feature. Teleports the open dropdown to the bottom of the body element
818
- * @default false
819
- * @type {Boolean}
820
- */
821
- useTeleport: {
822
- type: Boolean,
823
- default: !1
501
+ prevButtonProps: {
502
+ type: null,
503
+ default: null
824
504
  },
825
- /**
826
- * Classes to apply to the `multiselect__content-wrapper` element. This element is a teleport element (when enabled), so can be used to specifically target
827
- * the teleported element
828
- */
829
- contentWrapperClass: {
830
- type: [String, Array, Object],
831
- default: ""
505
+ nextButtonProps: {
506
+ type: null,
507
+ default: null
832
508
  }
833
509
  },
834
- data() {
510
+ startPos: null,
511
+ thumbnailsStyle: null,
512
+ sortedResponsiveOptions: null,
513
+ data: function() {
835
514
  return {
836
- dropdownStyles: {},
837
- ready: !1
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
838
521
  };
839
522
  },
840
- computed: {
841
- hasOptionGroup() {
842
- return this.groupValues && this.groupLabel && this.groupSelect;
523
+ watch: {
524
+ numVisible: function(t, i) {
525
+ this.d_numVisible = t, this.d_oldNumVisible = i;
843
526
  },
844
- isSingleLabelVisible() {
845
- return (this.singleValue || this.singleValue === 0) && (!this.isOpen || !this.searchable) && !this.visibleValues.length;
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
+ 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);
573
+ }
846
574
  },
847
- isPlaceholderVisible() {
848
- return !this.internalValue.length && (!this.searchable || !this.isOpen);
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;
596
+ }
849
597
  },
850
- visibleValues() {
851
- return this.multiple ? this.internalValue.slice(0, this.limit) : [];
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);
852
601
  },
853
- singleValue() {
854
- return this.internalValue[0];
602
+ onLeftKey: function() {
603
+ var t = this.findFocusedIndicatorIndex();
604
+ this.changedFocusedIndicator(t, t - 1 <= 0 ? 0 : t - 1);
855
605
  },
856
- deselectLabelText() {
857
- return this.showLabels ? this.deselectLabel : "";
606
+ onHomeKey: function() {
607
+ var t = this.findFocusedIndicatorIndex();
608
+ this.changedFocusedIndicator(t, 0);
858
609
  },
859
- deselectGroupLabelText() {
860
- return this.showLabels ? this.deselectGroupLabel : "";
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);
861
613
  },
862
- selectLabelText() {
863
- return this.showLabels ? this.selectLabel : "";
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";
864
621
  },
865
- selectGroupLabelText() {
866
- return this.showLabels ? this.selectGroupLabel : "";
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
+ });
867
627
  },
868
- selectedLabelText() {
869
- return this.showLabels ? this.selectedLabel : "";
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();
870
631
  },
871
- inputStyle() {
872
- return this.searchable || this.multiple && this.modelValue && this.modelValue.length ? this.isOpen ? { width: "100%" } : { width: "0", position: "absolute", padding: "0" } : "";
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 = "");
873
634
  },
874
- contentStyle() {
875
- return this.options.length ? { display: "inline-block" } : { display: "block" };
635
+ onTouchStart: function(t) {
636
+ var i = t.changedTouches[0];
637
+ this.startPos = {
638
+ x: i.pageX,
639
+ y: i.pageY
640
+ };
876
641
  },
877
- isAbove() {
878
- return this.openDirection === "above" || this.openDirection === "top" ? !0 : this.openDirection === "below" || this.openDirection === "bottom" ? !1 : this.preferredOpenDirection === "above";
642
+ onTouchMove: function(t) {
643
+ t.cancelable && t.preventDefault();
879
644
  },
880
- showSearchInput() {
881
- return this.searchable && (this.hasSingleSelectedSlot && (this.visibleSingleValue || this.visibleSingleValue === 0) ? this.isOpen : !0);
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);
882
648
  },
883
- isRequired() {
884
- return this.required === !1 ? !1 : this.internalValue.length <= 0;
649
+ changePageOnTouch: function(t, i) {
650
+ i < 0 ? this.navForward(t) : this.navBackward(t);
651
+ },
652
+ getTotalPageNumber: function() {
653
+ return this.value.length > this.d_numVisible ? this.value.length - this.d_numVisible + 1 : 0;
654
+ },
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);
694
+ }
695
+ },
696
+ bindDocumentListeners: function() {
697
+ var t = this;
698
+ this.documentResizeListener || (this.documentResizeListener = function() {
699
+ t.calculatePosition();
700
+ }, window.addEventListener("resize", this.documentResizeListener));
701
+ },
702
+ unbindDocumentListeners: function() {
703
+ this.documentResizeListener && (window.removeEventListener("resize", this.documentResizeListener), this.documentResizeListener = null);
704
+ },
705
+ isNavBackwardDisabled: function() {
706
+ return !this.circular && this.d_activeIndex === 0 || this.value.length <= this.d_numVisible;
707
+ },
708
+ isNavForwardDisabled: function() {
709
+ return !this.circular && this.d_activeIndex === this.value.length - 1 || this.value.length <= this.d_numVisible;
710
+ },
711
+ firstItemAciveIndex: function() {
712
+ return this.totalShiftedItems * -1;
713
+ },
714
+ lastItemActiveIndex: function() {
715
+ return this.firstItemAciveIndex() + this.d_numVisible - 1;
716
+ },
717
+ isItemActive: function(t) {
718
+ return this.firstItemAciveIndex() <= t && this.lastItemActiveIndex() >= t;
719
+ },
720
+ ariaPageLabel: function(t) {
721
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, t) : void 0;
722
+ }
723
+ },
724
+ computed: {
725
+ ariaPrevButtonLabel: function() {
726
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.prevPageLabel : void 0;
727
+ },
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 : ""
885
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
+ };
886
936
  },
887
937
  watch: {
888
- isOpen(e) {
889
- e && (this.useTeleport ? (this.ready = !1, this.$nextTick(() => {
890
- const t = this.$el.getBoundingClientRect();
891
- this.dropdownStyles = {
892
- position: "absolute",
893
- top: `${t.bottom + window.scrollY}px`,
894
- left: `${t.left + window.scrollX}px`,
895
- width: `${t.width}px`,
896
- zIndex: 9999
897
- }, this.ready = !0;
898
- })) : this.ready = !0);
938
+ "$attrs.id": function(t) {
939
+ this.id = t || k();
940
+ },
941
+ "$attrs.value": function(t) {
942
+ t && t.length < this.numVisible && (this.numVisible = t.length);
943
+ },
944
+ "$attrs.activeIndex": function(t) {
945
+ this.activeIndex = t;
946
+ },
947
+ "$attrs.numVisible": function(t) {
948
+ this.numVisible = t;
949
+ },
950
+ "$attrs.autoPlay": function(t) {
951
+ t ? this.startSlideShow() : this.stopSlideShow();
899
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
+ });
971
+ },
972
+ isAutoPlayActive: function() {
973
+ return this.slideShowActive;
974
+ },
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;
981
+ },
982
+ stopSlideShow: function() {
983
+ this.interval && clearInterval(this.interval), this.slideShowActive = !1;
984
+ },
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) : "";
990
+ },
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;
998
+ }
999
+ },
1000
+ components: {
1001
+ GalleriaItem: _,
1002
+ GalleriaThumbnails: W,
1003
+ TimesIcon: J
1004
+ },
1005
+ directives: {
1006
+ ripple: L
900
1007
  }
901
1008
  };
902
- const N = ["tabindex", "aria-expanded", "aria-owns", "aria-activedescendant"], K = {
903
- ref: "tags",
904
- class: "multiselect__tags"
905
- }, R = { class: "multiselect__tags-wrap" }, q = ["textContent"], z = ["onKeydown", "onMousedown"], j = ["textContent"], I = { class: "multiselect__spinner" }, W = ["name", "id", "spellcheck", "placeholder", "required", "value", "disabled", "tabindex", "aria-label", "aria-controls"], U = ["id", "aria-multiselectable"], X = { key: 0 }, Y = { class: "multiselect__option" }, J = ["aria-selected", "id", "role"], Q = ["onClick", "onMouseenter", "data-select", "data-selected", "data-deselect"], Z = ["data-select", "data-deselect", "onMouseenter", "onMousedown"], x = { class: "multiselect__option" }, _ = { class: "multiselect__option" };
906
- function ee(e, t, i, l, a, n) {
907
- return d(), p("div", {
908
- tabindex: e.searchable ? -1 : i.tabindex,
909
- class: y([{ "multiselect--active": e.isOpen, "multiselect--disabled": i.disabled, "multiselect--above": n.isAbove, "multiselect--has-options-group": n.hasOptionGroup }, "multiselect"]),
910
- onFocus: t[14] || (t[14] = (s) => e.activate()),
911
- onBlur: t[15] || (t[15] = (s) => e.searchable ? !1 : e.deactivate()),
912
- onKeydown: [
913
- t[16] || (t[16] = f(r((s) => e.pointerForward(), ["self", "prevent"]), ["down"])),
914
- t[17] || (t[17] = f(r((s) => e.pointerBackward(), ["self", "prevent"]), ["up"])),
915
- t[18] || (t[18] = f(r((s) => e.addPointerElement(s), ["stop", "self"]), ["enter", "tab"]))
916
- ],
917
- onKeyup: t[19] || (t[19] = f((s) => e.deactivate(), ["esc"])),
918
- role: "combobox",
919
- "aria-expanded": e.isOpen,
920
- "aria-owns": "listbox-" + e.id,
921
- "aria-activedescendant": e.isOpen && e.pointer !== null ? e.id + "-" + e.pointer : null
922
- }, [
923
- o(e.$slots, "caret", { toggle: e.toggle }, () => [
924
- u(
925
- "div",
926
- {
927
- onMousedown: t[0] || (t[0] = r((s) => e.toggle(), ["prevent", "stop"])),
928
- class: "multiselect__select"
929
- },
930
- null,
931
- 32
932
- /* NEED_HYDRATION */
933
- )
934
- ]),
935
- o(e.$slots, "clear", { search: e.search }),
936
- u(
937
- "div",
938
- K,
939
- [
940
- o(e.$slots, "selection", {
941
- search: e.search,
942
- remove: e.removeElement,
943
- values: n.visibleValues,
944
- isOpen: e.isOpen
945
- }, () => [
946
- v(u(
947
- "div",
948
- R,
949
- [
950
- (d(!0), p(
951
- L,
952
- null,
953
- $(n.visibleValues, (s, h) => o(e.$slots, "tag", {
954
- option: s,
955
- search: e.search,
956
- remove: e.removeElement
957
- }, () => [
958
- (d(), p(
959
- "span",
960
- {
961
- class: "multiselect__tag",
962
- key: h,
963
- onMousedown: t[1] || (t[1] = r(() => {
964
- }, ["prevent"]))
965
- },
966
- [
967
- u("span", {
968
- textContent: g(e.getOptionLabel(s))
969
- }, null, 8, q),
970
- u("i", {
971
- tabindex: "1",
972
- onKeydown: f(r((m) => e.removeElement(s), ["prevent"]), ["enter"]),
973
- onMousedown: r((m) => e.removeElement(s), ["prevent"]),
974
- class: "multiselect__tag-icon"
975
- }, null, 40, z)
976
- ],
977
- 32
978
- /* NEED_HYDRATION */
979
- ))
980
- ])),
981
- 256
982
- /* UNKEYED_FRAGMENT */
983
- ))
984
- ],
985
- 512
986
- /* NEED_PATCH */
987
- ), [
988
- [w, n.visibleValues.length > 0]
989
- ]),
990
- e.internalValue && e.internalValue.length > i.limit ? o(e.$slots, "limit", { key: 0 }, () => [
991
- u("strong", {
992
- class: "multiselect__strong",
993
- textContent: g(i.limitText(e.internalValue.length - i.limit))
994
- }, null, 8, j)
995
- ]) : c("v-if", !0)
996
- ]),
997
- B(k, { name: "multiselect__loading" }, {
998
- default: T(() => [
999
- o(e.$slots, "loading", {}, () => [
1000
- v(u(
1001
- "div",
1002
- I,
1003
- null,
1004
- 512
1005
- /* NEED_PATCH */
1006
- ), [
1007
- [w, i.loading]
1008
- ])
1009
- ])
1010
- ]),
1011
- _: 3
1012
- /* FORWARDED */
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({
1067
+ 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({
1081
+ 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;
1088
+ }),
1089
+ slideShowActive: r.slideShowActive,
1090
+ "onUpdate:slideShowActive": t[2] || (t[2] = function(m) {
1091
+ return r.slideShowActive = m;
1092
+ }),
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, {
1105
+ key: 0,
1106
+ activeIndex: r.activeIndex,
1107
+ "onUpdate:activeIndex": t[3] || (t[3] = function(m) {
1108
+ return r.activeIndex = m;
1109
+ }),
1110
+ slideShowActive: r.slideShowActive,
1111
+ "onUpdate:slideShowActive": t[4] || (t[4] = function(m) {
1112
+ return r.slideShowActive = m;
1113
+ }),
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)];
1013
1220
  }),
1014
- e.searchable ? (d(), p("input", {
1015
- key: 0,
1016
- ref: "search",
1017
- name: i.name,
1018
- id: e.id,
1019
- type: "text",
1020
- autocomplete: "off",
1021
- spellcheck: i.spellcheck,
1022
- placeholder: e.placeholder,
1023
- required: n.isRequired,
1024
- style: S(n.inputStyle),
1025
- value: e.search,
1026
- disabled: i.disabled,
1027
- tabindex: i.tabindex,
1028
- "aria-label": i.name + "-searchbox",
1029
- onInput: t[2] || (t[2] = (s) => e.updateSearch(s.target.value)),
1030
- onFocus: t[3] || (t[3] = r((s) => e.activate(), ["prevent"])),
1031
- onBlur: t[4] || (t[4] = r((s) => e.deactivate(), ["prevent"])),
1032
- onKeyup: t[5] || (t[5] = f((s) => e.deactivate(), ["esc"])),
1033
- onKeydown: [
1034
- t[6] || (t[6] = f(r((s) => e.pointerForward(), ["prevent"]), ["down"])),
1035
- t[7] || (t[7] = f(r((s) => e.pointerBackward(), ["prevent"]), ["up"])),
1036
- t[8] || (t[8] = f(r((s) => e.addPointerElement(s), ["prevent", "stop", "self"]), ["enter"])),
1037
- t[9] || (t[9] = f(r((s) => e.removeLastElement(), ["stop"]), ["delete"]))
1038
- ],
1039
- class: "multiselect__input",
1040
- "aria-controls": "listbox-" + e.id
1041
- }, null, 44, W)) : c("v-if", !0),
1042
- n.isSingleLabelVisible ? (d(), p(
1043
- "span",
1044
- {
1045
- key: 1,
1046
- class: "multiselect__single",
1047
- onMousedown: t[10] || (t[10] = r((...s) => e.toggle && e.toggle(...s), ["prevent"]))
1048
- },
1049
- [
1050
- o(e.$slots, "singleLabel", { option: n.singleValue }, () => [
1051
- b(
1052
- g(e.currentOptionLabel),
1053
- 1
1054
- /* TEXT */
1055
- )
1056
- ])
1057
- ],
1058
- 32
1059
- /* NEED_HYDRATION */
1060
- )) : c("v-if", !0),
1061
- n.isPlaceholderVisible ? (d(), p(
1062
- "span",
1063
- {
1064
- key: 2,
1065
- class: "multiselect__placeholder",
1066
- onMousedown: t[11] || (t[11] = r((...s) => e.toggle && e.toggle(...s), ["prevent"]))
1067
- },
1068
- [
1069
- o(e.$slots, "placeholder", {}, () => [
1070
- b(
1071
- g(e.placeholder),
1072
- 1
1073
- /* TEXT */
1074
- )
1075
- ])
1076
- ],
1077
- 32
1078
- /* NEED_HYDRATION */
1079
- )) : c("v-if", !0)
1080
- ],
1081
- 512
1082
- /* NEED_PATCH */
1083
- ),
1084
- (d(), E(A, {
1085
- to: "body",
1086
- disabled: !i.useTeleport
1087
- }, [
1088
- B(k, { name: "multiselect" }, {
1089
- default: T(() => [
1090
- e.isOpen && a.ready ? (d(), p(
1091
- "div",
1092
- {
1093
- key: 0,
1094
- class: y(["multiselect__content-wrapper", i.contentWrapperClass]),
1095
- onFocus: t[12] || (t[12] = (...s) => e.activate && e.activate(...s)),
1096
- tabindex: "-1",
1097
- onMousedown: t[13] || (t[13] = r(() => {
1098
- }, ["prevent"])),
1099
- style: S([a.dropdownStyles, { maxHeight: e.optimizedHeight + "px" }]),
1100
- ref: "list"
1101
- },
1102
- [
1103
- u("ul", {
1104
- class: "multiselect__content",
1105
- style: S(n.contentStyle),
1106
- role: "listbox",
1107
- id: "listbox-" + e.id,
1108
- "aria-multiselectable": e.multiple
1109
- }, [
1110
- o(e.$slots, "beforeList"),
1111
- e.multiple && e.max === e.internalValue.length ? (d(), p("li", X, [
1112
- u("span", Y, [
1113
- o(e.$slots, "maxElements", {}, () => [
1114
- b(
1115
- "Maximum of " + g(e.max) + " options selected. First remove a selected option to select another.",
1116
- 1
1117
- /* TEXT */
1118
- )
1119
- ])
1120
- ])
1121
- ])) : c("v-if", !0),
1122
- !e.max || e.internalValue.length < e.max ? (d(!0), p(
1123
- L,
1124
- { key: 1 },
1125
- $(e.filteredOptions, (s, h) => (d(), p("li", {
1126
- class: "multiselect__element",
1127
- key: h,
1128
- "aria-selected": e.isSelected(s),
1129
- id: e.id + "-" + h,
1130
- role: s && (s.$isLabel || s.$isDisabled) ? null : "option"
1131
- }, [
1132
- s && (s.$isLabel || s.$isDisabled) ? c("v-if", !0) : (d(), p("span", {
1133
- key: 0,
1134
- class: y([e.optionHighlight(h, s), "multiselect__option"]),
1135
- onClick: r((m) => e.select(s), ["stop"]),
1136
- onMouseenter: r((m) => e.pointerSet(h), ["self"]),
1137
- "data-select": s && s.isTag ? e.tagPlaceholder : n.selectLabelText,
1138
- "data-selected": n.selectedLabelText,
1139
- "data-deselect": n.deselectLabelText
1140
- }, [
1141
- o(e.$slots, "option", {
1142
- option: s,
1143
- search: e.search,
1144
- index: h
1145
- }, () => [
1146
- u(
1147
- "span",
1148
- null,
1149
- g(e.getOptionLabel(s)),
1150
- 1
1151
- /* TEXT */
1152
- )
1153
- ])
1154
- ], 42, Q)),
1155
- s && (s.$isLabel || s.$isDisabled) ? (d(), p("span", {
1156
- key: 1,
1157
- "data-select": e.groupSelect && n.selectGroupLabelText,
1158
- "data-deselect": e.groupSelect && n.deselectGroupLabelText,
1159
- class: y([e.groupHighlight(h, s), "multiselect__option"]),
1160
- onMouseenter: r((m) => e.groupSelect && e.pointerSet(h), ["self"]),
1161
- onMousedown: r((m) => e.selectGroup(s), ["prevent"])
1162
- }, [
1163
- o(e.$slots, "option", {
1164
- option: s,
1165
- search: e.search,
1166
- index: h
1167
- }, () => [
1168
- u(
1169
- "span",
1170
- null,
1171
- g(e.getOptionLabel(s)),
1172
- 1
1173
- /* TEXT */
1174
- )
1175
- ])
1176
- ], 42, Z)) : c("v-if", !0)
1177
- ], 8, J))),
1178
- 128
1179
- /* KEYED_FRAGMENT */
1180
- )) : c("v-if", !0),
1181
- v(u(
1182
- "li",
1183
- null,
1184
- [
1185
- u("span", x, [
1186
- o(e.$slots, "noResult", { search: e.search }, () => [
1187
- t[20] || (t[20] = b("No elements found. Consider changing the search query."))
1188
- ])
1189
- ])
1190
- ],
1191
- 512
1192
- /* NEED_PATCH */
1193
- ), [
1194
- [w, i.showNoResults && e.filteredOptions.length === 0 && e.search && !i.loading]
1195
- ]),
1196
- v(u(
1197
- "li",
1198
- null,
1199
- [
1200
- u("span", _, [
1201
- o(e.$slots, "noOptions", {}, () => [
1202
- t[21] || (t[21] = b("List is empty."))
1203
- ])
1204
- ])
1205
- ],
1206
- 512
1207
- /* NEED_PATCH */
1208
- ), [
1209
- [w, i.showNoOptions && (e.options.length === 0 || n.hasOptionGroup === !0 && e.filteredOptions.length === 0) && !e.search && !i.loading]
1210
- ]),
1211
- o(e.$slots, "afterList")
1212
- ], 12, U)
1213
- ],
1214
- 38
1215
- /* CLASS, STYLE, NEED_HYDRATION */
1216
- )) : c("v-if", !0)
1217
- ]),
1218
- _: 3
1219
- /* FORWARDED */
1220
- })
1221
- ], 8, ["disabled"]))
1222
- ], 42, N);
1221
+ _: 1
1222
+ }, 16, ["onBeforeEnter", "onEnter", "onBeforeLeave", "onAfterLeave"])], 16, Ee)) : h("", !0)];
1223
+ }),
1224
+ _: 1
1225
+ })) : (s(), f(v, l({
1226
+ 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"]));
1223
1232
  }
1224
- H.render = ee;
1233
+ De.render = Ke;
1225
1234
  export {
1226
- H as Multiselect,
1227
- H as default,
1228
- F as multiselectMixin,
1229
- G as pointerMixin
1235
+ De as default
1230
1236
  };