@quoreadmin/ui 1.10.33 → 1.11.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 (365) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +29 -27
  3. package/dist/index10.js +2 -2
  4. package/dist/index101.js +20 -25
  5. package/dist/index102.js +34 -0
  6. package/dist/{index103.js → index104.js} +1 -1
  7. package/dist/index106.js +147 -2
  8. package/dist/index107.js +2 -37
  9. package/dist/index108.js +39 -0
  10. package/dist/index11.js +2 -2
  11. package/dist/{index109.js → index110.js} +2 -2
  12. package/dist/{index111.js → index112.js} +1 -1
  13. package/dist/{index113.js → index114.js} +3 -3
  14. package/dist/{index115.js → index116.js} +5 -5
  15. package/dist/{index117.js → index118.js} +1 -1
  16. package/dist/index12.js +2 -2
  17. package/dist/{index119.js → index120.js} +5 -5
  18. package/dist/index13.js +2 -2
  19. package/dist/{index131.js → index132.js} +2 -2
  20. package/dist/{index136.js → index137.js} +1 -1
  21. package/dist/{index138.js → index139.js} +2 -2
  22. package/dist/index14.js +2 -2
  23. package/dist/index142.js +167 -0
  24. package/dist/{index143.js → index146.js} +1 -1
  25. package/dist/index15.js +2 -2
  26. package/dist/{index147.js → index150.js} +379 -399
  27. package/dist/{index149.js → index152.js} +1 -1
  28. package/dist/{index151.js → index154.js} +10 -10
  29. package/dist/index16.js +2 -2
  30. package/dist/index160.js +581 -86
  31. package/dist/index163.js +93 -0
  32. package/dist/index165.js +87 -356
  33. package/dist/index168.js +389 -0
  34. package/dist/index17.js +2 -2
  35. package/dist/{index167.js → index170.js} +1 -1
  36. package/dist/index172.js +205 -111
  37. package/dist/index175.js +110 -87
  38. package/dist/index176.js +478 -844
  39. package/dist/index177.js +5520 -36
  40. package/dist/index178.js +90 -279
  41. package/dist/index179.js +833 -122
  42. package/dist/index18.js +2 -2
  43. package/dist/index180.js +36 -1197
  44. package/dist/index181.js +268 -760
  45. package/dist/index182.js +146 -1304
  46. package/dist/index183.js +1151 -228
  47. package/dist/index184.js +754 -88
  48. package/dist/index185.js +1308 -2
  49. package/dist/index186.js +259 -1359
  50. package/dist/index187.js +108 -0
  51. package/dist/index188.js +2 -18
  52. package/dist/index189.js +1372 -14
  53. package/dist/index19.js +2 -2
  54. package/dist/index191.js +8 -8
  55. package/dist/index192.js +10 -17
  56. package/dist/index193.js +18 -759
  57. package/dist/index194.js +18 -1177
  58. package/dist/index195.js +22 -1231
  59. package/dist/index196.js +740 -11258
  60. package/dist/index197.js +1177 -36
  61. package/dist/index198.js +1233 -43
  62. package/dist/index199.js +11258 -1209
  63. package/dist/index2.js +2 -2
  64. package/dist/index20.js +3 -3
  65. package/dist/index200.js +38 -0
  66. package/dist/index201.js +44 -5938
  67. package/dist/index202.js +1149 -128
  68. package/dist/index204.js +5933 -13
  69. package/dist/index205.js +205 -76
  70. package/dist/index206.js +28 -246
  71. package/dist/index207.js +14 -13680
  72. package/dist/index208.js +77 -26
  73. package/dist/index209.js +245 -55
  74. package/dist/index21.js +2 -2
  75. package/dist/index210.js +13655 -209
  76. package/dist/index211.js +26 -310
  77. package/dist/index212.js +43 -277
  78. package/dist/index213.js +231 -81
  79. package/dist/index214.js +291 -387
  80. package/dist/index215.js +296 -21
  81. package/dist/index219.js +2 -2
  82. package/dist/index22.js +2 -2
  83. package/dist/index220.js +1 -1
  84. package/dist/index222.js +4 -4
  85. package/dist/index224.js +1 -1
  86. package/dist/index225.js +1 -1
  87. package/dist/index226.js +1 -1
  88. package/dist/index227.js +4 -4
  89. package/dist/index229.js +1 -1
  90. package/dist/index23.js +2 -2
  91. package/dist/index230.js +84 -157
  92. package/dist/index231.js +384 -205
  93. package/dist/index232.js +22 -37
  94. package/dist/index233.js +160 -9
  95. package/dist/index234.js +223 -156
  96. package/dist/index235.js +36 -19
  97. package/dist/index236.js +10 -20
  98. package/dist/index237.js +126 -21
  99. package/dist/index238.js +22 -183
  100. package/dist/index239.js +79 -69
  101. package/dist/index24.js +2 -2
  102. package/dist/index240.js +20 -34
  103. package/dist/index241.js +19 -39
  104. package/dist/index242.js +12 -14
  105. package/dist/index243.js +12 -14
  106. package/dist/index244.js +11 -11
  107. package/dist/index245.js +120 -795
  108. package/dist/index246.js +19 -701
  109. package/dist/index247.js +22 -176
  110. package/dist/index248.js +198 -19
  111. package/dist/index249.js +68 -18
  112. package/dist/index250.js +34 -22
  113. package/dist/index251.js +39 -19
  114. package/dist/index252.js +253 -20
  115. package/dist/index253.js +8 -3
  116. package/dist/index254.js +124 -173
  117. package/dist/index255.js +80 -130
  118. package/dist/index256.js +2 -1223
  119. package/dist/index257.js +57 -105
  120. package/dist/index258.js +13 -11
  121. package/dist/index259.js +11 -11
  122. package/dist/index26.js +2 -2
  123. package/dist/index260.js +11 -13
  124. package/dist/index261.js +819 -21
  125. package/dist/index262.js +701 -28
  126. package/dist/index263.js +176 -20
  127. package/dist/index264.js +14 -12
  128. package/dist/index265.js +20 -2
  129. package/dist/index266.js +20 -2
  130. package/dist/index267.js +3 -80
  131. package/dist/index268.js +186 -19
  132. package/dist/index269.js +132 -19
  133. package/dist/index27.js +2 -2
  134. package/dist/index270.js +1185 -215
  135. package/dist/index271.js +20 -8
  136. package/dist/index272.js +22 -138
  137. package/dist/index273.js +22 -83
  138. package/dist/index274.js +29 -3709
  139. package/dist/index275.js +20 -60
  140. package/dist/index276.js +20 -83
  141. package/dist/index277.js +2 -52
  142. package/dist/index278.js +2 -215
  143. package/dist/index279.js +3708 -9
  144. package/dist/index28.js +2 -2
  145. package/dist/index280.js +42 -39
  146. package/dist/index281.js +65 -43
  147. package/dist/index282.js +34 -36
  148. package/dist/index283.js +184 -50
  149. package/dist/index284.js +9 -727
  150. package/dist/index285.js +38 -28
  151. package/dist/index286.js +44 -47
  152. package/dist/index287.js +53 -10
  153. package/dist/index288.js +71 -695
  154. package/dist/index289.js +711 -803
  155. package/dist/index29.js +2 -2
  156. package/dist/index290.js +44 -51
  157. package/dist/index291.js +62 -77
  158. package/dist/index292.js +11 -26
  159. package/dist/index293.js +705 -22
  160. package/dist/index294.js +820 -22
  161. package/dist/index295.js +52 -14
  162. package/dist/index296.js +26 -17
  163. package/dist/index297.js +22 -23
  164. package/dist/index298.js +22 -3
  165. package/dist/index299.js +16 -27
  166. package/dist/index3.js +2 -2
  167. package/dist/index30.js +2 -2
  168. package/dist/index300.js +17 -2
  169. package/dist/index301.js +21 -77
  170. package/dist/index302.js +3 -22
  171. package/dist/index303.js +24 -932
  172. package/dist/index304.js +57 -21
  173. package/dist/index305.js +36 -19
  174. package/dist/index306.js +234 -19
  175. package/dist/index307.js +5 -68
  176. package/dist/index308.js +133 -18
  177. package/dist/index309.js +68 -19
  178. package/dist/index31.js +3 -3
  179. package/dist/index310.js +85 -20
  180. package/dist/index311.js +28 -21
  181. package/dist/index312.js +8 -62
  182. package/dist/index313.js +64 -1523
  183. package/dist/index314.js +3 -385
  184. package/dist/index315.js +2 -2731
  185. package/dist/index316.js +77 -80
  186. package/dist/index317.js +53 -3797
  187. package/dist/index318.js +4 -58
  188. package/dist/index319.js +5 -15
  189. package/dist/index32.js +2 -2
  190. package/dist/index320.js +166 -71
  191. package/dist/index321.js +57 -196
  192. package/dist/index322.js +75 -246
  193. package/dist/index323.js +1534 -37
  194. package/dist/index324.js +366 -215
  195. package/dist/index325.js +2729 -4
  196. package/dist/index326.js +83 -131
  197. package/dist/index327.js +3796 -66
  198. package/dist/index328.js +56 -83
  199. package/dist/index329.js +15 -29
  200. package/dist/index33.js +2 -2
  201. package/dist/index330.js +83 -8
  202. package/dist/index331.js +191 -64
  203. package/dist/index332.js +245 -3
  204. package/dist/index333.js +79 -2
  205. package/dist/index334.js +21 -82
  206. package/dist/index335.js +930 -49
  207. package/dist/index336.js +21 -5
  208. package/dist/index337.js +19 -4
  209. package/dist/index338.js +19 -178
  210. package/dist/index339.js +67 -61
  211. package/dist/index34.js +2 -2
  212. package/dist/index340.js +18 -74
  213. package/dist/index341.js +19 -9
  214. package/dist/index342.js +21 -12
  215. package/dist/index343.js +21 -54
  216. package/dist/index344.js +63 -12
  217. package/dist/index345.js +126 -11
  218. package/dist/index346.js +393 -52
  219. package/dist/index347.js +8 -51
  220. package/dist/index348.js +12 -30
  221. package/dist/index349.js +55 -2
  222. package/dist/index35.js +2 -2
  223. package/dist/index350.js +12 -5
  224. package/dist/index351.js +14 -2
  225. package/dist/index352.js +57 -22
  226. package/dist/index353.js +50 -39
  227. package/dist/index354.js +31 -2
  228. package/dist/index355.js +2 -11
  229. package/dist/index356.js +5 -20
  230. package/dist/index357.js +2 -10
  231. package/dist/index358.js +22 -9
  232. package/dist/index359.js +38 -14
  233. package/dist/index36.js +2 -2
  234. package/dist/index360.js +2 -2
  235. package/dist/index361.js +10 -8
  236. package/dist/index362.js +19 -9
  237. package/dist/index363.js +9 -13
  238. package/dist/index364.js +10 -20
  239. package/dist/index365.js +16 -19
  240. package/dist/index366.js +2 -64
  241. package/dist/index367.js +9 -37
  242. package/dist/index368.js +9 -20
  243. package/dist/index369.js +14 -56
  244. package/dist/index37.js +2 -2
  245. package/dist/index370.js +18 -26
  246. package/dist/index371.js +55 -6
  247. package/dist/index372.js +28 -51
  248. package/dist/index373.js +7 -6
  249. package/dist/index374.js +51 -11
  250. package/dist/index375.js +5 -6
  251. package/dist/index376.js +12 -28
  252. package/dist/index377.js +7 -2
  253. package/dist/index378.js +27 -69
  254. package/dist/index379.js +2 -167
  255. package/dist/index38.js +2 -2
  256. package/dist/index380.js +70 -17
  257. package/dist/index381.js +165 -99
  258. package/dist/index382.js +19 -90
  259. package/dist/index383.js +20 -98
  260. package/dist/index384.js +63 -12
  261. package/dist/index385.js +37 -7
  262. package/dist/index386.js +131 -28
  263. package/dist/index387.js +30 -10
  264. package/dist/index388.js +10 -3
  265. package/dist/index389.js +3 -3
  266. package/dist/index39.js +2 -2
  267. package/dist/index390.js +3 -11
  268. package/dist/index391.js +13 -5
  269. package/dist/index392.js +7 -33
  270. package/dist/index393.js +11 -30
  271. package/dist/index394.js +5 -28
  272. package/dist/index395.js +33 -61
  273. package/dist/index396.js +31 -3
  274. package/dist/index397.js +28 -2
  275. package/dist/index398.js +61 -2
  276. package/dist/index399.js +100 -16
  277. package/dist/index4.js +2 -2
  278. package/dist/index40.js +2 -2
  279. package/dist/index400.js +90 -12
  280. package/dist/index401.js +98 -6
  281. package/dist/index402.js +16 -31
  282. package/dist/index403.js +448 -0
  283. package/dist/index404.js +128 -0
  284. package/dist/index405.js +5 -0
  285. package/dist/index406.js +4 -0
  286. package/dist/index407.js +4 -0
  287. package/dist/index408.js +19 -0
  288. package/dist/index409.js +15 -0
  289. package/dist/index41.js +2 -2
  290. package/dist/index410.js +8 -0
  291. package/dist/index411.js +34 -0
  292. package/dist/index42.js +4 -29
  293. package/dist/index43.js +25 -32
  294. package/dist/index44.js +32 -37
  295. package/dist/index45.js +37 -1391
  296. package/dist/index46.js +1350 -348
  297. package/dist/index47.js +367 -145
  298. package/dist/index48.js +155 -18
  299. package/dist/index49.js +16 -42
  300. package/dist/index5.js +2 -2
  301. package/dist/index50.js +45 -5
  302. package/dist/index51.js +5 -69
  303. package/dist/index52.js +67 -61
  304. package/dist/index53.js +57 -175
  305. package/dist/index54.js +173 -77
  306. package/dist/index55.js +79 -200
  307. package/dist/index56.js +206 -68
  308. package/dist/index57.js +69 -20
  309. package/dist/index58.js +20 -11
  310. package/dist/index59.js +10 -6
  311. package/dist/index6.js +2 -2
  312. package/dist/index60.js +5 -209
  313. package/dist/index61.js +210 -12
  314. package/dist/index62.js +12 -184
  315. package/dist/index63.js +176 -68
  316. package/dist/index64.js +79 -0
  317. package/dist/index66.js +7 -91
  318. package/dist/index67.js +93 -0
  319. package/dist/index7.js +2 -2
  320. package/dist/{index74.js → index75.js} +2 -2
  321. package/dist/index79.js +38 -395
  322. package/dist/index8.js +3 -3
  323. package/dist/index80.js +419 -0
  324. package/dist/{index83.js → index84.js} +4 -4
  325. package/dist/{index85.js → index86.js} +1 -1
  326. package/dist/index88.js +23 -143
  327. package/dist/index89.js +156 -0
  328. package/dist/index9.js +2 -2
  329. package/dist/{index90.js → index91.js} +5 -5
  330. package/dist/{index92.js → index93.js} +5 -5
  331. package/dist/{index98.js → index99.js} +4 -4
  332. package/dist/src/components/popper/popper.vue.d.ts +90 -0
  333. package/dist/src/components/popper/use-popper.d.ts +37 -0
  334. package/dist/src/index.d.ts +1 -0
  335. package/package.json +2 -1
  336. package/dist/index100.js +0 -29
  337. package/dist/index105.js +0 -149
  338. package/dist/index157.js +0 -588
  339. package/dist/index162.js +0 -120
  340. package/dist/index169.js +0 -210
  341. package/dist/index173.js +0 -497
  342. package/dist/index174.js +0 -5524
  343. package/dist/index190.js +0 -20
  344. package/dist/index203.js +0 -37
  345. package/dist/index65.js +0 -9
  346. package/dist/index78.js +0 -62
  347. package/dist/index87.js +0 -36
  348. package/dist/src/components/room-details-popover/room-details-popover.d.ts +0 -2167
  349. /package/dist/{index121.js → index122.js} +0 -0
  350. /package/dist/{index123.js → index124.js} +0 -0
  351. /package/dist/{index125.js → index126.js} +0 -0
  352. /package/dist/{index127.js → index128.js} +0 -0
  353. /package/dist/{index129.js → index130.js} +0 -0
  354. /package/dist/{index134.js → index135.js} +0 -0
  355. /package/dist/{index141.js → index144.js} +0 -0
  356. /package/dist/{index145.js → index148.js} +0 -0
  357. /package/dist/{index153.js → index156.js} +0 -0
  358. /package/dist/{index155.js → index158.js} +0 -0
  359. /package/dist/{index68.js → index69.js} +0 -0
  360. /package/dist/{index70.js → index71.js} +0 -0
  361. /package/dist/{index72.js → index73.js} +0 -0
  362. /package/dist/{index76.js → index77.js} +0 -0
  363. /package/dist/{index81.js → index82.js} +0 -0
  364. /package/dist/{index94.js → index95.js} +0 -0
  365. /package/dist/{index96.js → index97.js} +0 -0
package/dist/index195.js CHANGED
@@ -1,1236 +1,27 @@
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 "./index214.js";
5
- import Y from "./index267.js";
6
- import J from "./index236.js";
7
- import L from "./index213.js";
8
- import H from "./index268.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 "./index269.js";
13
- var ie = {
14
- name: "BaseGalleria",
15
- extends: O,
16
- props: {
17
- id: {
18
- type: String,
19
- default: null
20
- },
21
- value: {
22
- type: Array,
23
- default: null
24
- },
25
- activeIndex: {
26
- type: Number,
27
- default: 0
28
- },
29
- fullScreen: {
30
- type: Boolean,
31
- default: !1
32
- },
33
- visible: {
34
- type: Boolean,
35
- default: !1
36
- },
37
- numVisible: {
38
- type: Number,
39
- default: 3
40
- },
41
- responsiveOptions: {
42
- type: Array,
43
- default: null
44
- },
45
- showItemNavigators: {
46
- type: Boolean,
47
- default: !1
48
- },
49
- showThumbnailNavigators: {
50
- type: Boolean,
51
- default: !0
52
- },
53
- showItemNavigatorsOnHover: {
54
- type: Boolean,
55
- default: !1
56
- },
57
- changeItemOnIndicatorHover: {
58
- type: Boolean,
59
- default: !1
60
- },
61
- circular: {
62
- type: Boolean,
63
- default: !1
64
- },
65
- autoPlay: {
66
- type: Boolean,
67
- default: !1
68
- },
69
- transitionInterval: {
70
- type: Number,
71
- default: 4e3
72
- },
73
- showThumbnails: {
74
- type: Boolean,
75
- default: !0
76
- },
77
- thumbnailsPosition: {
78
- type: String,
79
- default: "bottom"
80
- },
81
- verticalThumbnailViewPortHeight: {
82
- type: String,
83
- default: "300px"
84
- },
85
- showIndicators: {
86
- type: Boolean,
87
- default: !1
88
- },
89
- showIndicatorsOnItem: {
90
- type: Boolean,
91
- default: !1
92
- },
93
- indicatorsPosition: {
94
- type: String,
95
- default: "bottom"
96
- },
97
- baseZIndex: {
98
- type: Number,
99
- default: 0
100
- },
101
- maskClass: {
102
- type: String,
103
- default: null
104
- },
105
- containerStyle: {
106
- type: null,
107
- default: null
108
- },
109
- containerClass: {
110
- type: null,
111
- default: null
112
- },
113
- containerProps: {
114
- type: null,
115
- default: null
116
- },
117
- prevButtonProps: {
118
- type: null,
119
- default: null
120
- },
121
- nextButtonProps: {
122
- type: null,
123
- default: null
124
- },
125
- ariaLabel: {
126
- type: String,
127
- default: null
128
- },
129
- ariaRoledescription: {
130
- type: String,
131
- default: null
132
- }
133
- },
134
- style: Y,
135
- provide: function() {
136
- return {
137
- $parentInstance: this
138
- };
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"],
172
- props: {
173
- circular: {
174
- type: Boolean,
175
- default: !1
176
- },
177
- activeIndex: {
178
- type: Number,
179
- default: 0
180
- },
181
- value: {
182
- type: Array,
183
- default: null
184
- },
185
- showItemNavigators: {
186
- type: Boolean,
187
- default: !0
188
- },
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
212
- }
213
- },
214
- mounted: function() {
215
- this.autoPlay && this.$emit("start-slideshow");
216
- },
217
- methods: {
218
- getIndicatorPTOptions: function(t) {
219
- return {
220
- context: {
221
- highlighted: this.activeIndex === t
222
- }
223
- };
224
- },
225
- next: function() {
226
- var t = this.activeIndex + 1, i = this.circular && this.value.length - 1 === this.activeIndex ? 0 : t;
227
- this.$emit("update:activeIndex", i);
228
- },
229
- prev: function() {
230
- var t = this.activeIndex !== 0 ? this.activeIndex - 1 : 0, i = this.circular && this.activeIndex === 0 ? this.value.length - 1 : t;
231
- this.$emit("update:activeIndex", i);
232
- },
233
- stopSlideShow: function() {
234
- this.slideShowActive && this.stopSlideShow && this.$emit("stop-slideshow");
235
- },
236
- navBackward: function(t) {
237
- this.stopSlideShow(), this.prev(), t && t.cancelable && t.preventDefault();
238
- },
239
- navForward: function(t) {
240
- this.stopSlideShow(), this.next(), t && t.cancelable && t.preventDefault();
241
- },
242
- onIndicatorClick: function(t) {
243
- this.stopSlideShow(), this.$emit("update:activeIndex", t);
244
- },
245
- onIndicatorMouseEnter: function(t) {
246
- this.changeItemOnIndicatorHover && (this.stopSlideShow(), this.$emit("update:activeIndex", t));
247
- },
248
- onIndicatorKeyDown: function(t, i) {
249
- switch (t.code) {
250
- case "Enter":
251
- case "NumpadEnter":
252
- case "Space":
253
- this.stopSlideShow(), this.$emit("update:activeIndex", i), t.preventDefault();
254
- break;
255
- case "ArrowRight":
256
- this.onRightKey();
257
- break;
258
- case "ArrowLeft":
259
- this.onLeftKey();
260
- break;
261
- case "Home":
262
- this.onHomeKey(), t.preventDefault();
263
- break;
264
- case "End":
265
- this.onEndKey(), t.preventDefault();
266
- break;
267
- case "Tab":
268
- this.onTabKey();
269
- break;
270
- case "ArrowDown":
271
- case "ArrowUp":
272
- case "PageUp":
273
- case "PageDown":
274
- t.preventDefault();
275
- break;
276
- }
277
- },
278
- onRightKey: function() {
279
- var t = g(c.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]')), i = this.findFocusedIndicatorIndex();
280
- this.changedFocusedIndicator(i, i + 1 === t.length ? t.length - 1 : i + 1);
281
- },
282
- onLeftKey: function() {
283
- var t = this.findFocusedIndicatorIndex();
284
- this.changedFocusedIndicator(t, t - 1 <= 0 ? 0 : t - 1);
285
- },
286
- onHomeKey: function() {
287
- var t = this.findFocusedIndicatorIndex();
288
- this.changedFocusedIndicator(t, 0);
289
- },
290
- onEndKey: function() {
291
- var t = g(c.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]')), i = this.findFocusedIndicatorIndex();
292
- this.changedFocusedIndicator(i, t.length - 1);
293
- },
294
- onTabKey: function() {
295
- var t = g(c.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]')), i = t.findIndex(function(a) {
296
- return c.getAttribute(a, "data-p-highlight") === !0;
297
- }), n = c.findSingle(this.$refs.indicatorContent, '[data-pc-section="indicator"] > button[tabindex="0"]'), r = t.findIndex(function(a) {
298
- return a === n.parentElement;
299
- });
300
- t[r].children[0].tabIndex = "-1", t[i].children[0].tabIndex = "0";
301
- },
302
- findFocusedIndicatorIndex: function() {
303
- var t = g(c.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]')), i = c.findSingle(this.$refs.indicatorContent, '[data-pc-section="indicator"] > button[tabindex="0"]');
304
- return t.findIndex(function(n) {
305
- return n === i.parentElement;
306
- });
307
- },
308
- changedFocusedIndicator: function(t, i) {
309
- var n = g(c.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]'));
310
- n[t].children[0].tabIndex = "-1", n[i].children[0].tabIndex = "0", n[i].children[0].focus();
311
- },
312
- isIndicatorItemActive: function(t) {
313
- return this.activeIndex === t;
314
- },
315
- isNavBackwardDisabled: function() {
316
- return !this.circular && this.activeIndex === 0;
317
- },
318
- isNavForwardDisabled: function() {
319
- return !this.circular && this.activeIndex === this.value.length - 1;
320
- },
321
- ariaSlideNumber: function(t) {
322
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slideNumber.replace(/{slideNumber}/g, t) : void 0;
323
- },
324
- ariaPageLabel: function(t) {
325
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, t) : void 0;
326
- }
327
- },
328
- computed: {
329
- activeItem: function() {
330
- return this.value[this.activeIndex];
331
- },
332
- ariaSlideLabel: function() {
333
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slide : void 0;
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);
410
- }
411
- }, e.ptm("indicator", a.getIndicatorPTOptions(o)), {
412
- "data-p-highlight": a.isIndicatorItemActive(o)
413
- }), [i.templates.indicator ? h("", !0) : (s(), d("button", l({
414
- key: 0,
415
- type: "button",
416
- tabindex: i.activeIndex === o ? "0" : "-1",
417
- class: e.cx("indicatorButton")
418
- }, e.ptm("indicatorButton", a.getIndicatorPTOptions(o))), null, 16, de)), i.templates.indicator ? (s(), f(p(i.templates.indicator), {
419
- key: 1,
420
- index: o
421
- }, null, 8, ["index"])) : h("", !0)], 16, ce);
422
- }), 128))], 16)) : h("", !0)], 16);
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: {
458
- type: String,
459
- default: null
460
- },
461
- value: {
462
- type: Array,
463
- default: null
464
- },
465
- numVisible: {
466
- type: Number,
467
- default: 3
468
- },
469
- activeIndex: {
470
- type: Number,
471
- default: 0
472
- },
473
- isVertical: {
474
- type: Boolean,
475
- default: !1
476
- },
477
- slideShowActive: {
478
- type: Boolean,
479
- default: !1
480
- },
481
- circular: {
482
- type: Boolean,
483
- default: !1
484
- },
485
- responsiveOptions: {
486
- type: Array,
487
- default: null
488
- },
489
- contentHeight: {
490
- type: String,
491
- default: "300px"
492
- },
493
- showThumbnailNavigators: {
494
- type: Boolean,
495
- default: !0
496
- },
497
- templates: {
498
- type: null,
499
- default: null
500
- },
501
- prevButtonProps: {
502
- type: null,
503
- default: null
504
- },
505
- nextButtonProps: {
506
- type: null,
507
- default: null
508
- }
509
- },
510
- startPos: null,
511
- thumbnailsStyle: null,
512
- sortedResponsiveOptions: null,
513
- data: function() {
514
- return {
515
- d_numVisible: this.numVisible,
516
- d_oldNumVisible: this.numVisible,
517
- d_activeIndex: this.activeIndex,
518
- d_oldActiveItemIndex: this.activeIndex,
519
- totalShiftedItems: 0,
520
- page: 0
521
- };
522
- },
523
- watch: {
524
- numVisible: function(t, i) {
525
- this.d_numVisible = t, this.d_oldNumVisible = i;
526
- },
527
- activeIndex: function(t, i) {
528
- this.d_activeIndex = t, this.d_oldActiveItemIndex = i;
529
- }
530
- },
531
- mounted: function() {
532
- this.createStyle(), this.calculatePosition(), this.responsiveOptions && this.bindDocumentListeners();
533
- },
534
- updated: function() {
535
- var t = this.totalShiftedItems;
536
- (this.d_oldNumVisible !== this.d_numVisible || this.d_oldActiveItemIndex !== this.d_activeIndex) && (this.d_activeIndex <= this.getMedianItemIndex() ? t = 0 : this.value.length - this.d_numVisible + this.getMedianItemIndex() < this.d_activeIndex ? t = this.d_numVisible - this.value.length : this.value.length - this.d_numVisible < this.d_activeIndex && this.d_numVisible % 2 === 0 ? t = this.d_activeIndex * -1 + this.getMedianItemIndex() + 1 : t = this.d_activeIndex * -1 + this.getMedianItemIndex(), t !== this.totalShiftedItems && (this.totalShiftedItems = t), this.$refs.itemsContainer.style.transform = this.isVertical ? "translate3d(0, ".concat(t * (100 / this.d_numVisible), "%, 0)") : "translate3d(".concat(t * (100 / this.d_numVisible), "%, 0, 0)"), this.d_oldActiveItemIndex !== this.d_activeIndex && (document.body.setAttribute("data-p-items-hidden", "false"), !this.isUnstyled && c.removeClass(this.$refs.itemsContainer, "p-items-hidden"), this.$refs.itemsContainer.style.transition = "transform 500ms ease 0s"), this.d_oldActiveItemIndex = this.d_activeIndex, this.d_oldNumVisible = this.d_numVisible);
537
- },
538
- beforeUnmount: function() {
539
- this.responsiveOptions && this.unbindDocumentListeners(), this.thumbnailsStyle && this.thumbnailsStyle.parentNode.removeChild(this.thumbnailsStyle);
540
- },
541
- 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
- }
574
- },
575
- onThumbnailKeydown: function(t, i) {
576
- switch ((t.code === "Enter" || t.code === "NumpadEnter" || t.code === "Space") && (this.onItemClick(i), t.preventDefault()), t.code) {
577
- case "ArrowRight":
578
- this.onRightKey();
579
- break;
580
- case "ArrowLeft":
581
- this.onLeftKey();
582
- break;
583
- case "Home":
584
- this.onHomeKey(), t.preventDefault();
585
- break;
586
- case "End":
587
- this.onEndKey(), t.preventDefault();
588
- break;
589
- case "ArrowUp":
590
- case "ArrowDown":
591
- t.preventDefault();
592
- break;
593
- case "Tab":
594
- this.onTabKey();
595
- break;
596
- }
597
- },
598
- onRightKey: function() {
599
- var t = c.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]'), i = this.findFocusedIndicatorIndex();
600
- this.changedFocusedIndicator(i, i + 1 === t.length ? t.length - 1 : i + 1);
601
- },
602
- onLeftKey: function() {
603
- var t = this.findFocusedIndicatorIndex();
604
- this.changedFocusedIndicator(t, t - 1 <= 0 ? 0 : t - 1);
605
- },
606
- onHomeKey: function() {
607
- var t = this.findFocusedIndicatorIndex();
608
- this.changedFocusedIndicator(t, 0);
609
- },
610
- onEndKey: function() {
611
- var t = c.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]'), i = this.findFocusedIndicatorIndex();
612
- this.changedFocusedIndicator(i, t.length - 1);
613
- },
614
- onTabKey: function() {
615
- var t = B(c.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]')), i = t.findIndex(function(a) {
616
- return c.getAttribute(a, "data-p-active") === !0;
617
- }), n = c.findSingle(this.$refs.itemsContainer, '[tabindex="0"]'), r = t.findIndex(function(a) {
618
- return a === n.parentElement;
619
- });
620
- t[r].children[0].tabIndex = "-1", t[i].children[0].tabIndex = "0";
621
- },
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
- });
627
- },
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();
631
- },
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 = "");
634
- },
635
- onTouchStart: function(t) {
636
- var i = t.changedTouches[0];
637
- this.startPos = {
638
- x: i.pageX,
639
- y: i.pageY
640
- };
641
- },
642
- onTouchMove: function(t) {
643
- t.cancelable && t.preventDefault();
644
- },
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);
648
- },
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
1
+ import t from "./index189.js";
2
+ var a = {
3
+ months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
4
+ monthsShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
5
+ weekdays: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
6
+ weekdaysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
7
+ weekdaysMin: ["日", "一", "", "三", "四", "五", "六"],
8
+ firstDayOfWeek: 1,
9
+ firstWeekContainsDate: 4,
10
+ meridiemParse: /上午|下午/,
11
+ meridiem: function(e) {
12
+ return e < 12 ? "上午" : "下午";
13
+ },
14
+ isPM: function(e) {
15
+ return e === "下午";
740
16
  }
741
17
  };
742
- function S(e) {
743
- "@babel/helpers - typeof";
744
- return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
745
- return typeof t;
746
- } : function(t) {
747
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
748
- }, S(e);
749
- }
750
- function E(e, t) {
751
- var i = Object.keys(e);
752
- if (Object.getOwnPropertySymbols) {
753
- var n = Object.getOwnPropertySymbols(e);
754
- t && (n = n.filter(function(r) {
755
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
756
- })), i.push.apply(i, n);
757
- }
758
- return i;
759
- }
760
- function x(e) {
761
- for (var t = 1; t < arguments.length; t++) {
762
- var i = arguments[t] != null ? arguments[t] : {};
763
- t % 2 ? E(Object(i), !0).forEach(function(n) {
764
- be(e, n, i[n]);
765
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : E(Object(i)).forEach(function(n) {
766
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
767
- });
768
- }
769
- return e;
770
- }
771
- function be(e, t, i) {
772
- return t = Ie(t), t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
773
- }
774
- function Ie(e) {
775
- var t = ye(e, "string");
776
- return S(t) == "symbol" ? t : String(t);
777
- }
778
- function ye(e, t) {
779
- if (S(e) != "object" || !e) return e;
780
- var i = e[Symbol.toPrimitive];
781
- if (i !== void 0) {
782
- var n = i.call(e, t);
783
- if (S(n) != "object") return n;
784
- throw new TypeError("@@toPrimitive must return a primitive value.");
785
- }
786
- return (t === "string" ? String : Number)(e);
787
- }
788
- var ge = ["disabled", "aria-label"], Se = ["data-p-active", "aria-selected", "aria-controls", "onKeydown", "data-p-galleria-thumbnail-item-current", "data-p-galleria-thumbnail-item-active", "data-p-galleria-thumbnail-item-start", "data-p-galleria-thumbnail-item-end"], we = ["tabindex", "aria-label", "aria-current", "onClick"], Pe = ["disabled", "aria-label"];
789
- function xe(e, t, i, n, r, a) {
790
- var v = C("ripple");
791
- return s(), d("div", l({
792
- class: e.cx("thumbnailWrapper")
793
- }, e.ptm("thumbnailWrapper")), [b("div", l({
794
- class: e.cx("thumbnailContainer")
795
- }, e.ptm("thumbnailContainer")), [i.showThumbnailNavigators ? y((s(), d("button", l({
796
- key: 0,
797
- class: e.cx("previousThumbnailButton"),
798
- disabled: a.isNavBackwardDisabled(),
799
- type: "button",
800
- "aria-label": a.ariaPrevButtonLabel,
801
- onClick: t[0] || (t[0] = function(u) {
802
- return a.navBackward(u);
803
- })
804
- }, x(x({}, i.prevButtonProps), e.ptm("previousThumbnailButton")), {
805
- "data-pc-group-section": "thumbnailnavigator"
806
- }), [(s(), f(p(i.templates.previousthumbnailicon || (i.isVertical ? "ChevronUpIcon" : "ChevronLeftIcon")), l({
807
- class: e.cx("previousThumbnailIcon")
808
- }, e.ptm("previousThumbnailIcon")), null, 16, ["class"]))], 16, ge)), [[v]]) : h("", !0), b("div", l({
809
- class: e.cx("thumbnailItemsContainer"),
810
- style: {
811
- height: i.isVertical ? i.contentHeight : ""
812
- }
813
- }, e.ptm("thumbnailItemsContainer")), [b("div", l({
814
- ref: "itemsContainer",
815
- class: e.cx("thumbnailItems"),
816
- role: "tablist",
817
- onTransitionend: t[1] || (t[1] = function(u) {
818
- return a.onTransitionEnd(u);
819
- }),
820
- onTouchstart: t[2] || (t[2] = function(u) {
821
- return a.onTouchStart(u);
822
- }),
823
- onTouchmove: t[3] || (t[3] = function(u) {
824
- return a.onTouchMove(u);
825
- }),
826
- onTouchend: t[4] || (t[4] = function(u) {
827
- return a.onTouchEnd(u);
828
- })
829
- }, e.ptm("thumbnailItems")), [(s(!0), d(U, null, G(i.value, function(u, o) {
830
- return s(), d("div", l({
831
- key: "p-galleria-thumbnail-item-".concat(o),
832
- class: e.cx("thumbnailItem", {
833
- index: o,
834
- activeIndex: i.activeIndex
835
- }),
836
- role: "tab",
837
- "data-p-active": i.activeIndex === o,
838
- "aria-selected": i.activeIndex === o,
839
- "aria-controls": i.containerId + "_item_" + o,
840
- onKeydown: function(I) {
841
- return a.onThumbnailKeydown(I, o);
842
- }
843
- }, e.ptm("thumbnailItem"), {
844
- "data-p-galleria-thumbnail-item-current": i.activeIndex === o,
845
- "data-p-galleria-thumbnail-item-active": a.isItemActive(o),
846
- "data-p-galleria-thumbnail-item-start": a.firstItemAciveIndex() === o,
847
- "data-p-galleria-thumbnail-item-end": a.lastItemActiveIndex() === o
848
- }), [b("div", l({
849
- class: e.cx("thumbnailItemContent"),
850
- tabindex: i.activeIndex === o ? "0" : "-1",
851
- "aria-label": a.ariaPageLabel(o + 1),
852
- "aria-current": i.activeIndex === o ? "page" : void 0,
853
- onClick: function(I) {
854
- return a.onItemClick(o);
855
- }
856
- }, e.ptm("thumbnailItemContent")), [i.templates.thumbnail ? (s(), f(p(i.templates.thumbnail), {
857
- key: 0,
858
- item: u
859
- }, null, 8, ["item"])) : h("", !0)], 16, we)], 16, Se);
860
- }), 128))], 16)], 16), i.showThumbnailNavigators ? y((s(), d("button", l({
861
- key: 1,
862
- class: e.cx("nextThumbnailButton"),
863
- disabled: a.isNavForwardDisabled(),
864
- type: "button",
865
- "aria-label": a.ariaNextButtonLabel,
866
- onClick: t[5] || (t[5] = function(u) {
867
- return a.navForward(u);
868
- })
869
- }, x(x({}, i.nextButtonProps), e.ptm("nextThumbnailButton")), {
870
- "data-pc-group-section": "thumbnailnavigator"
871
- }), [(s(), f(p(i.templates.nextthumbnailicon || (i.isVertical ? "ChevronDownIcon" : "ChevronRightIcon")), l({
872
- class: e.cx("nextThumbnailIcon")
873
- }, e.ptm("nextThumbnailIcon")), null, 16, ["class"]))], 16, Pe)), [[v]]) : h("", !0)], 16)], 16);
874
- }
875
- W.render = xe;
876
- function w(e) {
877
- "@babel/helpers - typeof";
878
- return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
879
- return typeof t;
880
- } : function(t) {
881
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
882
- }, w(e);
883
- }
884
- function K(e, t) {
885
- var i = Object.keys(e);
886
- if (Object.getOwnPropertySymbols) {
887
- var n = Object.getOwnPropertySymbols(e);
888
- t && (n = n.filter(function(r) {
889
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
890
- })), i.push.apply(i, n);
891
- }
892
- return i;
893
- }
894
- function j(e) {
895
- for (var t = 1; t < arguments.length; t++) {
896
- var i = arguments[t] != null ? arguments[t] : {};
897
- t % 2 ? K(Object(i), !0).forEach(function(n) {
898
- Ae(e, n, i[n]);
899
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : K(Object(i)).forEach(function(n) {
900
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
901
- });
902
- }
903
- return e;
904
- }
905
- function Ae(e, t, i) {
906
- return t = Oe(t), t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
907
- }
908
- function Oe(e) {
909
- var t = Ce(e, "string");
910
- return w(t) == "symbol" ? t : String(t);
911
- }
912
- function Ce(e, t) {
913
- if (w(e) != "object" || !e) return e;
914
- var i = e[Symbol.toPrimitive];
915
- if (i !== void 0) {
916
- var n = i.call(e, t);
917
- if (w(n) != "object") return n;
918
- throw new TypeError("@@toPrimitive must return a primitive value.");
919
- }
920
- return (t === "string" ? String : Number)(e);
921
- }
922
- var Z = {
923
- name: "GalleriaContent",
924
- hostName: "Galleria",
925
- extends: O,
926
- inheritAttrs: !1,
927
- interval: null,
928
- emits: ["activeitem-change", "mask-hide"],
929
- data: function() {
930
- return {
931
- id: this.$attrs.id || k(),
932
- activeIndex: this.$attrs.activeIndex,
933
- numVisible: this.$attrs.numVisible,
934
- slideShowActive: !1
935
- };
936
- },
937
- watch: {
938
- "$attrs.id": function(t) {
939
- this.id = t || k();
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();
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
1007
- }
18
+ const o = {
19
+ formatLocale: a,
20
+ yearFormat: "YYYY年",
21
+ monthFormat: "MMM",
22
+ monthBeforeYear: !1
1008
23
  };
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)];
1220
- }),
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"]));
1232
- }
1233
- De.render = Ke;
24
+ t.locale("zh-cn", o);
1234
25
  export {
1235
- De as default
26
+ o as default
1236
27
  };