@okam/stack-ui 1.32.4 → 1.32.5

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 (433) hide show
  1. package/components/fields/Checkbox/index.d.ts +6 -0
  2. package/components/fields/CheckboxGroup/components/CheckboxGroupItem/index.d.ts +6 -0
  3. package/components/fields/Select/Select.d.ts +4 -1
  4. package/components/fields/Select/Select.interface.d.ts +1 -0
  5. package/components/fields/TextArea/index.d.ts +4 -1
  6. package/index.d.ts +4 -2
  7. package/index.js +1 -1
  8. package/index.mjs +153 -151
  9. package/index110.js +1 -1
  10. package/index110.mjs +5 -5
  11. package/index111.js +1 -1
  12. package/index111.mjs +2 -2
  13. package/index112.js +1 -1
  14. package/index112.mjs +1 -1
  15. package/index113.js +1 -1
  16. package/index113.mjs +2 -2
  17. package/index115.js +1 -1
  18. package/index115.mjs +4 -4
  19. package/index116.js +1 -1
  20. package/index116.mjs +2 -2
  21. package/index118.js +1 -1
  22. package/index118.mjs +3 -3
  23. package/index119.js +1 -1
  24. package/index119.mjs +3 -3
  25. package/index120.js +1 -1
  26. package/index120.mjs +4 -4
  27. package/index121.js +1 -1
  28. package/index121.mjs +2 -2
  29. package/index122.js +1 -1
  30. package/index122.mjs +2 -2
  31. package/index123.js +1 -1
  32. package/index123.mjs +8 -8
  33. package/index125.js +1 -1
  34. package/index125.mjs +2 -2
  35. package/index126.js +1 -1
  36. package/index126.mjs +3 -3
  37. package/index130.js +1 -1
  38. package/index130.mjs +2 -2
  39. package/index133.js +1 -1
  40. package/index133.mjs +1 -1
  41. package/index139.js +1 -1
  42. package/index139.mjs +2 -2
  43. package/index140.js +1 -1
  44. package/index140.mjs +23 -23
  45. package/index141.js +1 -1
  46. package/index141.mjs +3 -3
  47. package/index144.js +1 -1
  48. package/index144.mjs +21 -23
  49. package/index145.js +1 -1
  50. package/index145.mjs +38 -113
  51. package/index146.js +1 -1
  52. package/index146.mjs +25 -22
  53. package/index147.js +1 -1
  54. package/index147.mjs +251 -35
  55. package/index148.js +1 -1
  56. package/index148.mjs +106 -25
  57. package/index149.js +1 -1
  58. package/index149.mjs +320 -242
  59. package/index150.js +1 -1
  60. package/index150.mjs +23 -105
  61. package/index151.js +1 -1
  62. package/index151.mjs +104 -323
  63. package/index152.js +1 -1
  64. package/index152.mjs +106 -20
  65. package/index153.js +1 -1
  66. package/index153.mjs +83 -107
  67. package/index154.js +1 -1
  68. package/index154.mjs +26 -83
  69. package/index155.js +1 -1
  70. package/index155.mjs +20 -25
  71. package/index156.js +1 -1
  72. package/index156.mjs +17 -123
  73. package/index157.js +1 -1
  74. package/index157.mjs +122 -24
  75. package/index158.js +1 -1
  76. package/index158.mjs +71 -17
  77. package/index159.js +1 -1
  78. package/index159.mjs +338 -62
  79. package/index16.js +1 -1
  80. package/index16.mjs +144 -67
  81. package/index160.js +1 -1
  82. package/index160.mjs +42 -346
  83. package/index161.js +1 -1
  84. package/index161.mjs +29 -43
  85. package/index162.js +1 -1
  86. package/index162.mjs +24 -28
  87. package/index164.js +1 -1
  88. package/index164.mjs +2 -2
  89. package/index167.js +1 -1
  90. package/index167.mjs +2 -2
  91. package/index169.js +1 -1
  92. package/index169.mjs +4 -4
  93. package/index17.js +1 -1
  94. package/index17.mjs +95 -26
  95. package/index170.js +1 -1
  96. package/index170.mjs +2 -2
  97. package/index173.js +1 -1
  98. package/index173.mjs +1 -1
  99. package/index175.js +1 -1
  100. package/index175.mjs +1 -1
  101. package/index176.js +1 -1
  102. package/index176.mjs +1 -1
  103. package/index178.js +1 -1
  104. package/index178.mjs +4 -4
  105. package/index179.js +1 -1
  106. package/index179.mjs +1 -1
  107. package/index180.js +1 -1
  108. package/index180.mjs +2 -2
  109. package/index182.js +1 -1
  110. package/index182.mjs +1 -1
  111. package/index184.js +1 -1
  112. package/index184.mjs +1 -1
  113. package/index185.js +1 -1
  114. package/index185.mjs +205 -197
  115. package/index186.js +1 -1
  116. package/index186.mjs +24 -64
  117. package/index187.js +1 -1
  118. package/index187.mjs +4 -143
  119. package/index188.js +1 -1
  120. package/index188.mjs +3 -124
  121. package/index189.js +1 -1
  122. package/index189.mjs +116 -215
  123. package/index190.js +1 -1
  124. package/index190.mjs +23 -184
  125. package/index191.js +1 -1
  126. package/index191.mjs +51 -69
  127. package/index192.js +1 -1
  128. package/index192.mjs +43 -278
  129. package/index193.js +1 -1
  130. package/index193.mjs +31 -92
  131. package/index194.js +1 -1
  132. package/index194.mjs +109 -184
  133. package/index195.js +1 -1
  134. package/index195.mjs +77 -84
  135. package/index196.js +1 -1
  136. package/index196.mjs +101 -58
  137. package/index197.js +1 -1
  138. package/index197.mjs +98 -127
  139. package/index198.js +1 -1
  140. package/index198.mjs +188 -101
  141. package/index199.js +1 -1
  142. package/index199.mjs +52 -110
  143. package/index20.js +1 -1
  144. package/index20.mjs +105 -31
  145. package/index200.js +1 -1
  146. package/index200.mjs +138 -67
  147. package/index201.js +1 -1
  148. package/index201.mjs +119 -105
  149. package/index202.js +1 -1
  150. package/index202.mjs +219 -47
  151. package/index203.js +1 -1
  152. package/index203.mjs +185 -88
  153. package/index204.js +1 -1
  154. package/index204.mjs +62 -63
  155. package/index205.js +1 -1
  156. package/index205.mjs +275 -52
  157. package/index206.js +1 -1
  158. package/index206.mjs +93 -94
  159. package/index207.js +1 -5
  160. package/index207.mjs +183 -75
  161. package/index208.js +1 -1
  162. package/index208.mjs +73 -2014
  163. package/index209.js +1 -1
  164. package/index209.mjs +56 -57
  165. package/index21.js +1 -1
  166. package/index21.mjs +132 -59
  167. package/index210.js +1 -1
  168. package/index210.mjs +123 -185
  169. package/index211.js +1 -1
  170. package/index211.mjs +110 -205
  171. package/index212.js +1 -1
  172. package/index212.mjs +122 -24
  173. package/index213.js +1 -1
  174. package/index213.mjs +72 -4
  175. package/index214.js +1 -1
  176. package/index214.mjs +110 -3
  177. package/index215.js +1 -1
  178. package/index215.mjs +51 -124
  179. package/index216.js +1 -1
  180. package/index216.mjs +93 -29
  181. package/index217.js +1 -1
  182. package/index217.mjs +70 -51
  183. package/index218.js +1 -1
  184. package/index218.mjs +56 -44
  185. package/index219.js +1 -1
  186. package/index219.mjs +98 -36
  187. package/index220.js +5 -1
  188. package/index220.mjs +78 -111
  189. package/index221.js +1 -1
  190. package/index221.mjs +2021 -73
  191. package/index222.js +1 -1
  192. package/index222.mjs +57 -99
  193. package/index223.js +1 -1
  194. package/index223.mjs +189 -98
  195. package/index224.js +1 -1
  196. package/index224.mjs +3 -3
  197. package/index225.js +1 -1
  198. package/index225.mjs +1 -1
  199. package/index226.js +1 -1
  200. package/index226.mjs +3 -3
  201. package/index227.js +1 -1
  202. package/index227.mjs +34 -34
  203. package/index230.js +1 -1
  204. package/index230.mjs +2 -2
  205. package/index231.js +1 -1
  206. package/index231.mjs +1 -1
  207. package/index266.js +1 -1
  208. package/index266.mjs +34 -34
  209. package/index269.js +1 -1
  210. package/index269.mjs +4 -130
  211. package/index270.js +1 -1
  212. package/index270.mjs +22 -188
  213. package/index271.js +1 -1
  214. package/index271.mjs +46 -8
  215. package/index272.js +1 -1
  216. package/index272.mjs +5 -3
  217. package/index273.js +1 -1
  218. package/index273.mjs +6 -37
  219. package/index274.js +1 -1
  220. package/index274.mjs +14 -5
  221. package/index275.js +1 -1
  222. package/index275.mjs +24 -29
  223. package/index276.js +1 -1
  224. package/index276.mjs +28 -6
  225. package/index277.js +1 -1
  226. package/index277.mjs +26 -135
  227. package/index278.js +1 -1
  228. package/index278.mjs +9 -197
  229. package/index279.js +1 -1
  230. package/index279.mjs +25 -19
  231. package/index280.js +1 -1
  232. package/index280.mjs +9 -28
  233. package/index281.js +1 -1
  234. package/index281.mjs +5 -46
  235. package/index282.js +1 -1
  236. package/index282.mjs +7 -48
  237. package/index283.js +1 -1
  238. package/index283.mjs +12 -99
  239. package/index284.js +1 -1
  240. package/index284.mjs +8 -5
  241. package/index285.js +1 -1
  242. package/index285.mjs +130 -71
  243. package/index286.js +1 -1
  244. package/index286.mjs +185 -53
  245. package/index287.js +1 -1
  246. package/index287.mjs +9 -7
  247. package/index288.js +1 -1
  248. package/index288.mjs +3 -11
  249. package/index289.js +1 -1
  250. package/index289.mjs +35 -46
  251. package/index290.js +1 -1
  252. package/index290.mjs +5 -24
  253. package/index291.js +1 -1
  254. package/index291.mjs +30 -6
  255. package/index292.js +1 -1
  256. package/index292.mjs +6 -14
  257. package/index293.js +1 -1
  258. package/index293.mjs +48 -24
  259. package/index294.js +1 -1
  260. package/index294.mjs +16 -29
  261. package/index295.js +1 -1
  262. package/index295.mjs +16 -32
  263. package/index296.js +1 -1
  264. package/index296.mjs +16 -10
  265. package/index297.js +1 -1
  266. package/index297.mjs +16 -10
  267. package/index298.js +1 -1
  268. package/index298.mjs +16 -6
  269. package/index299.js +1 -1
  270. package/index299.mjs +16 -8
  271. package/index300.js +1 -1
  272. package/index300.mjs +16 -14
  273. package/index301.js +1 -1
  274. package/index301.mjs +16 -9
  275. package/index302.js +1 -1
  276. package/index302.mjs +16 -5
  277. package/index303.js +1 -1
  278. package/index303.mjs +16 -49
  279. package/index304.js +1 -1
  280. package/index304.mjs +15 -15
  281. package/index305.js +1 -1
  282. package/index305.mjs +15 -15
  283. package/index306.js +1 -1
  284. package/index306.mjs +15 -15
  285. package/index307.js +1 -1
  286. package/index307.mjs +12 -12
  287. package/index308.js +1 -1
  288. package/index308.mjs +15 -15
  289. package/index309.js +1 -1
  290. package/index309.mjs +15 -15
  291. package/index310.js +1 -1
  292. package/index310.mjs +15 -15
  293. package/index311.js +1 -1
  294. package/index311.mjs +15 -15
  295. package/index312.js +1 -1
  296. package/index312.mjs +15 -15
  297. package/index313.js +1 -1
  298. package/index313.mjs +15 -15
  299. package/index314.js +1 -1
  300. package/index314.mjs +12 -12
  301. package/index315.js +1 -1
  302. package/index315.mjs +15 -15
  303. package/index316.js +1 -1
  304. package/index316.mjs +15 -15
  305. package/index317.js +1 -1
  306. package/index317.mjs +15 -15
  307. package/index318.js +1 -1
  308. package/index318.mjs +15 -15
  309. package/index319.js +1 -1
  310. package/index319.mjs +12 -12
  311. package/index320.js +1 -1
  312. package/index320.mjs +15 -15
  313. package/index321.js +1 -1
  314. package/index321.mjs +15 -15
  315. package/index322.js +1 -1
  316. package/index322.mjs +15 -15
  317. package/index323.js +1 -1
  318. package/index323.mjs +15 -15
  319. package/index324.js +1 -1
  320. package/index324.mjs +15 -15
  321. package/index325.js +1 -1
  322. package/index325.mjs +12 -12
  323. package/index326.js +1 -1
  324. package/index326.mjs +15 -15
  325. package/index327.js +1 -1
  326. package/index327.mjs +15 -15
  327. package/index328.js +1 -1
  328. package/index328.mjs +141 -16
  329. package/index329.js +1 -1
  330. package/index329.mjs +198 -16
  331. package/index330.js +1 -1
  332. package/index330.mjs +23 -16
  333. package/index331.js +1 -1
  334. package/index331.mjs +47 -16
  335. package/index332.js +1 -1
  336. package/index332.mjs +49 -16
  337. package/index333.js +1 -1
  338. package/index333.mjs +101 -16
  339. package/index334.js +1 -1
  340. package/index334.mjs +71 -15
  341. package/index335.js +1 -1
  342. package/index335.mjs +59 -16
  343. package/index336.js +1 -1
  344. package/index336.mjs +8 -16
  345. package/index337.js +1 -1
  346. package/index337.mjs +12 -16
  347. package/index338.js +1 -1
  348. package/index338.mjs +7 -4
  349. package/index339.js +1 -1
  350. package/index339.mjs +68 -6
  351. package/index340.js +1 -1
  352. package/index340.mjs +27 -65
  353. package/index341.js +1 -1
  354. package/index341.mjs +6 -30
  355. package/index342.js +1 -1
  356. package/index342.mjs +6 -6
  357. package/index343.js +1 -1
  358. package/index343.mjs +20 -6
  359. package/index344.js +1 -1
  360. package/index344.mjs +3 -20
  361. package/index345.js +1 -1
  362. package/index345.mjs +6 -72
  363. package/index347.js +1 -1
  364. package/index347.mjs +71 -7
  365. package/index348.js +1 -1
  366. package/index348.mjs +7 -7
  367. package/index349.js +1 -1
  368. package/index349.mjs +7 -7
  369. package/index350.js +1 -1
  370. package/index350.mjs +7 -7
  371. package/index351.js +1 -1
  372. package/index351.mjs +4 -4
  373. package/index352.js +1 -1
  374. package/index352.mjs +7 -7
  375. package/index353.js +1 -1
  376. package/index353.mjs +7 -7
  377. package/index354.js +1 -1
  378. package/index354.mjs +4 -4
  379. package/index355.js +1 -1
  380. package/index355.mjs +4 -4
  381. package/index356.js +1 -1
  382. package/index356.mjs +4 -4
  383. package/index357.js +1 -1
  384. package/index357.mjs +4 -4
  385. package/index358.js +1 -1
  386. package/index358.mjs +7 -7
  387. package/index359.js +1 -1
  388. package/index359.mjs +7 -7
  389. package/index360.js +1 -1
  390. package/index360.mjs +7 -7
  391. package/index361.js +1 -1
  392. package/index361.mjs +4 -4
  393. package/index362.js +1 -1
  394. package/index362.mjs +7 -7
  395. package/index363.js +1 -1
  396. package/index363.mjs +7 -7
  397. package/index364.js +1 -1
  398. package/index364.mjs +7 -7
  399. package/index365.js +1 -1
  400. package/index365.mjs +7 -7
  401. package/index366.js +1 -1
  402. package/index366.mjs +7 -7
  403. package/index367.js +1 -1
  404. package/index367.mjs +4 -4
  405. package/index368.js +1 -1
  406. package/index368.mjs +7 -7
  407. package/index369.js +1 -1
  408. package/index369.mjs +7 -7
  409. package/index370.js +1 -1
  410. package/index370.mjs +3 -3
  411. package/index371.js +1 -1
  412. package/index371.mjs +4 -4
  413. package/index372.js +1 -1
  414. package/index372.mjs +7 -7
  415. package/index373.js +1 -1
  416. package/index373.mjs +7 -7
  417. package/index374.js +1 -1
  418. package/index374.mjs +7 -7
  419. package/index375.js +1 -1
  420. package/index375.mjs +4 -4
  421. package/index376.js +1 -1
  422. package/index376.mjs +7 -7
  423. package/index377.js +1 -1
  424. package/index377.mjs +4 -4
  425. package/index378.js +1 -1
  426. package/index378.mjs +4 -4
  427. package/index379.js +1 -1
  428. package/index379.mjs +7 -7
  429. package/index380.js +1 -1
  430. package/index380.mjs +4 -4
  431. package/index381.js +1 -1
  432. package/index381.mjs +8 -6
  433. package/package.json +1 -1
package/index214.mjs CHANGED
@@ -1,6 +1,113 @@
1
- function d(f, a) {
2
- return f - a * Math.floor(f / a);
1
+ function s(o) {
2
+ const e = this, {
3
+ params: t,
4
+ slidesEl: p
5
+ } = e;
6
+ t.loop && e.loopDestroy();
7
+ const f = (n) => {
8
+ if (typeof n == "string") {
9
+ const i = document.createElement("div");
10
+ i.innerHTML = n, p.append(i.children[0]), i.innerHTML = "";
11
+ } else
12
+ p.append(n);
13
+ };
14
+ if (typeof o == "object" && "length" in o)
15
+ for (let n = 0; n < o.length; n += 1)
16
+ o[n] && f(o[n]);
17
+ else
18
+ f(o);
19
+ e.recalcSlides(), t.loop && e.loopCreate(), (!t.observer || e.isElement) && e.update();
20
+ }
21
+ function m(o) {
22
+ const e = this, {
23
+ params: t,
24
+ activeIndex: p,
25
+ slidesEl: f
26
+ } = e;
27
+ t.loop && e.loopDestroy();
28
+ let n = p + 1;
29
+ const i = (l) => {
30
+ if (typeof l == "string") {
31
+ const a = document.createElement("div");
32
+ a.innerHTML = l, f.prepend(a.children[0]), a.innerHTML = "";
33
+ } else
34
+ f.prepend(l);
35
+ };
36
+ if (typeof o == "object" && "length" in o) {
37
+ for (let l = 0; l < o.length; l += 1)
38
+ o[l] && i(o[l]);
39
+ n = p + o.length;
40
+ } else
41
+ i(o);
42
+ e.recalcSlides(), t.loop && e.loopCreate(), (!t.observer || e.isElement) && e.update(), e.slideTo(n, 0, !1);
43
+ }
44
+ function h(o, e) {
45
+ const t = this, {
46
+ params: p,
47
+ activeIndex: f,
48
+ slidesEl: n
49
+ } = t;
50
+ let i = f;
51
+ p.loop && (i -= t.loopedSlides, t.loopDestroy(), t.recalcSlides());
52
+ const l = t.slides.length;
53
+ if (o <= 0) {
54
+ t.prependSlide(e);
55
+ return;
56
+ }
57
+ if (o >= l) {
58
+ t.appendSlide(e);
59
+ return;
60
+ }
61
+ let a = i > o ? i + 1 : i;
62
+ const d = [];
63
+ for (let r = l - 1; r >= o; r -= 1) {
64
+ const c = t.slides[r];
65
+ c.remove(), d.unshift(c);
66
+ }
67
+ if (typeof e == "object" && "length" in e) {
68
+ for (let r = 0; r < e.length; r += 1)
69
+ e[r] && n.append(e[r]);
70
+ a = i > o ? i + e.length : i;
71
+ } else
72
+ n.append(e);
73
+ for (let r = 0; r < d.length; r += 1)
74
+ n.append(d[r]);
75
+ t.recalcSlides(), p.loop && t.loopCreate(), (!p.observer || t.isElement) && t.update(), p.loop ? t.slideTo(a + t.loopedSlides, 0, !1) : t.slideTo(a, 0, !1);
76
+ }
77
+ function v(o) {
78
+ const e = this, {
79
+ params: t,
80
+ activeIndex: p
81
+ } = e;
82
+ let f = p;
83
+ t.loop && (f -= e.loopedSlides, e.loopDestroy());
84
+ let n = f, i;
85
+ if (typeof o == "object" && "length" in o) {
86
+ for (let l = 0; l < o.length; l += 1)
87
+ i = o[l], e.slides[i] && e.slides[i].remove(), i < n && (n -= 1);
88
+ n = Math.max(n, 0);
89
+ } else
90
+ i = o, e.slides[i] && e.slides[i].remove(), i < n && (n -= 1), n = Math.max(n, 0);
91
+ e.recalcSlides(), t.loop && e.loopCreate(), (!t.observer || e.isElement) && e.update(), t.loop ? e.slideTo(n + e.loopedSlides, 0, !1) : e.slideTo(n, 0, !1);
92
+ }
93
+ function S() {
94
+ const o = this, e = [];
95
+ for (let t = 0; t < o.slides.length; t += 1)
96
+ e.push(t);
97
+ o.removeSlide(e);
98
+ }
99
+ function u(o) {
100
+ let {
101
+ swiper: e
102
+ } = o;
103
+ Object.assign(e, {
104
+ appendSlide: s.bind(e),
105
+ prependSlide: m.bind(e),
106
+ addSlide: h.bind(e),
107
+ removeSlide: v.bind(e),
108
+ removeAllSlides: S.bind(e)
109
+ });
3
110
  }
4
111
  export {
5
- d as mod
112
+ u as default
6
113
  };
package/index215.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index169.js"),D=require("./index184.js"),u=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],c=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],f=[1867,1911,1925,1988,2018],i=["meiji","taisho","showa","heisei","reiwa"];function h(e){const r=u.findIndex(([n,a,t])=>e.year<n||e.year===n&&e.month<a||e.year===n&&e.month===a&&e.day<t);return r===-1?u.length-1:r===0?0:r-1}function l(e){let r=f[i.indexOf(e.era)];if(!r)throw new Error("Unknown era: "+e.era);return new y.CalendarDate(e.year+r,e.month,e.day)}class M extends D.GregorianCalendar{fromJulianDay(r){let n=super.fromJulianDay(r),a=h(n);return new y.CalendarDate(this,i[a],n.year-f[a],n.month,n.day)}toJulianDay(r){return super.toJulianDay(l(r))}balanceDate(r){let n=l(r),a=h(n);i[a]!==r.era&&(r.era=i[a],r.year=n.year-f[a]),this.constrainDate(r)}constrainDate(r){let n=i.indexOf(r.era),a=c[n];if(a!=null){let[t,o,$]=a,s=t-f[n];r.year=Math.max(1,Math.min(s,r.year)),r.year===s&&(r.month=Math.min(o,r.month),r.month===o&&(r.day=Math.min($,r.day)))}if(r.year===1&&n>=0){let[,t,o]=u[n];r.month=Math.max(t,r.month),r.month===t&&(r.day=Math.max(o,r.day))}}getEras(){return i}getYearsInEra(r){let n=i.indexOf(r.era),a=u[n],t=u[n+1];if(t==null)return 9999-a[0]+1;let o=t[0]-a[0];return(r.month<t[1]||r.month===t[1]&&r.day<t[2])&&o++,o}getDaysInMonth(r){return super.getDaysInMonth(l(r))}getMinimumMonthInYear(r){let n=m(r);return n?n[1]:1}getMinimumDayInMonth(r){let n=m(r);return n&&r.month===n[1]?n[2]:1}constructor(...r){super(...r),this.identifier="japanese"}}function m(e){if(e.year===1){let r=i.indexOf(e.era);return u[r]}}exports.JapaneseCalendar=M;
1
+ "use strict";const u=require("./index289.js"),E=require("./index290.js"),x=require("./index291.js"),g=require("./index286.js");function h(f){let{swiper:e,extendParams:l,on:c}=f;l({fadeEffect:{crossFade:!1}});const d=()=>{const{slides:t}=e,a=e.params.fadeEffect;for(let s=0;s<t.length;s+=1){const r=e.slides[s];let i=-r.swiperSlideOffset;e.params.virtualTranslate||(i-=e.translate);let n=0;e.isHorizontal()||(n=i,i=0);const m=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(r.progress),0):1+Math.min(Math.max(r.progress,-1),0),o=E.e(a,r);o.style.opacity=m,o.style.transform=`translate3d(${i}px, ${n}px, 0px)`}},p=t=>{const a=e.slides.map(s=>g.g(s));a.forEach(s=>{s.style.transitionDuration=`${t}ms`}),x.e({swiper:e,duration:t,transformElements:a,allSlides:!0})};u.e({effect:"fade",swiper:e,on:c,setTranslate:d,setTransition:p,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}module.exports=h;
package/index215.mjs CHANGED
@@ -1,128 +1,55 @@
1
- import { CalendarDate as $ } from "./index169.mjs";
2
- import { GregorianCalendar as c } from "./index184.mjs";
3
- const f = [
4
- [
5
- 1868,
6
- 9,
7
- 8
8
- ],
9
- [
10
- 1912,
11
- 7,
12
- 30
13
- ],
14
- [
15
- 1926,
16
- 12,
17
- 25
18
- ],
19
- [
20
- 1989,
21
- 1,
22
- 8
23
- ],
24
- [
25
- 2019,
26
- 5,
27
- 1
28
- ]
29
- ], D = [
30
- [
31
- 1912,
32
- 7,
33
- 29
34
- ],
35
- [
36
- 1926,
37
- 12,
38
- 24
39
- ],
40
- [
41
- 1989,
42
- 1,
43
- 7
44
- ],
45
- [
46
- 2019,
47
- 4,
48
- 30
49
- ]
50
- ], u = [
51
- 1867,
52
- 1911,
53
- 1925,
54
- 1988,
55
- 2018
56
- ], i = [
57
- "meiji",
58
- "taisho",
59
- "showa",
60
- "heisei",
61
- "reiwa"
62
- ];
63
- function h(e) {
64
- const r = f.findIndex(([n, a, t]) => e.year < n || e.year === n && e.month < a || e.year === n && e.month === a && e.day < t);
65
- return r === -1 ? f.length - 1 : r === 0 ? 0 : r - 1;
66
- }
67
- function s(e) {
68
- let r = u[i.indexOf(e.era)];
69
- if (!r) throw new Error("Unknown era: " + e.era);
70
- return new $(e.year + r, e.month, e.day);
71
- }
72
- class g extends c {
73
- fromJulianDay(r) {
74
- let n = super.fromJulianDay(r), a = h(n);
75
- return new $(this, i[a], n.year - u[a], n.month, n.day);
76
- }
77
- toJulianDay(r) {
78
- return super.toJulianDay(s(r));
79
- }
80
- balanceDate(r) {
81
- let n = s(r), a = h(n);
82
- i[a] !== r.era && (r.era = i[a], r.year = n.year - u[a]), this.constrainDate(r);
83
- }
84
- constrainDate(r) {
85
- let n = i.indexOf(r.era), a = D[n];
86
- if (a != null) {
87
- let [t, o, y] = a, m = t - u[n];
88
- r.year = Math.max(1, Math.min(m, r.year)), r.year === m && (r.month = Math.min(o, r.month), r.month === o && (r.day = Math.min(y, r.day)));
1
+ import { e as d } from "./index289.mjs";
2
+ import { e as p } from "./index290.mjs";
3
+ import { e as E } from "./index291.mjs";
4
+ import { g as T } from "./index286.mjs";
5
+ function P(l) {
6
+ let {
7
+ swiper: e,
8
+ extendParams: n,
9
+ on: c
10
+ } = l;
11
+ n({
12
+ fadeEffect: {
13
+ crossFade: !1
89
14
  }
90
- if (r.year === 1 && n >= 0) {
91
- let [, t, o] = f[n];
92
- r.month = Math.max(t, r.month), r.month === t && (r.day = Math.max(o, r.day));
93
- }
94
- }
95
- getEras() {
96
- return i;
97
- }
98
- getYearsInEra(r) {
99
- let n = i.indexOf(r.era), a = f[n], t = f[n + 1];
100
- if (t == null)
101
- return 9999 - a[0] + 1;
102
- let o = t[0] - a[0];
103
- return (r.month < t[1] || r.month === t[1] && r.day < t[2]) && o++, o;
104
- }
105
- getDaysInMonth(r) {
106
- return super.getDaysInMonth(s(r));
107
- }
108
- getMinimumMonthInYear(r) {
109
- let n = l(r);
110
- return n ? n[1] : 1;
111
- }
112
- getMinimumDayInMonth(r) {
113
- let n = l(r);
114
- return n && r.month === n[1] ? n[2] : 1;
115
- }
116
- constructor(...r) {
117
- super(...r), this.identifier = "japanese";
118
- }
119
- }
120
- function l(e) {
121
- if (e.year === 1) {
122
- let r = i.indexOf(e.era);
123
- return f[r];
124
- }
15
+ }), d({
16
+ effect: "fade",
17
+ swiper: e,
18
+ on: c,
19
+ setTranslate: () => {
20
+ const {
21
+ slides: t
22
+ } = e, a = e.params.fadeEffect;
23
+ for (let s = 0; s < t.length; s += 1) {
24
+ const r = e.slides[s];
25
+ let o = -r.swiperSlideOffset;
26
+ e.params.virtualTranslate || (o -= e.translate);
27
+ let f = 0;
28
+ e.isHorizontal() || (f = o, o = 0);
29
+ const m = e.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(r.progress), 0) : 1 + Math.min(Math.max(r.progress, -1), 0), i = p(a, r);
30
+ i.style.opacity = m, i.style.transform = `translate3d(${o}px, ${f}px, 0px)`;
31
+ }
32
+ },
33
+ setTransition: (t) => {
34
+ const a = e.slides.map((s) => T(s));
35
+ a.forEach((s) => {
36
+ s.style.transitionDuration = `${t}ms`;
37
+ }), E({
38
+ swiper: e,
39
+ duration: t,
40
+ transformElements: a,
41
+ allSlides: !0
42
+ });
43
+ },
44
+ overwriteParams: () => ({
45
+ slidesPerView: 1,
46
+ slidesPerGroup: 1,
47
+ watchSlidesProgress: !0,
48
+ spaceBetween: 0,
49
+ virtualTranslate: !e.params.cssMode
50
+ })
51
+ });
125
52
  }
126
53
  export {
127
- g as JapaneseCalendar
54
+ P as default
128
55
  };
package/index216.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index169.js"),t=require("./index184.js"),o=-543;class i extends t.GregorianCalendar{fromJulianDay(e){let r=super.fromJulianDay(e),u=t.getExtendedYear(r.era,r.year);return new d.CalendarDate(this,u-o,r.month,r.day)}toJulianDay(e){return super.toJulianDay(n(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(n(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function n(a){let[e,r]=t.fromExtendedYear(a.year+o);return new d.CalendarDate(e,r,a.month,a.day)}exports.BuddhistCalendar=i;
1
+ "use strict";const X=require("./index289.js"),y=require("./index286.js");function D(P){let{swiper:e,extendParams:z,on:E}=P;z({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const M=(t,r,a)=>{let s=a?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),l=a?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");s||(s=y.c("div",`swiper-slide-shadow-cube swiper-slide-shadow-${a?"left":"top"}`.split(" ")),t.append(s)),l||(l=y.c("div",`swiper-slide-shadow-cube swiper-slide-shadow-${a?"right":"bottom"}`.split(" ")),t.append(l)),s&&(s.style.opacity=Math.max(-r,0)),l&&(l.style.opacity=Math.max(r,0))},A=()=>{const t=e.isHorizontal();e.slides.forEach(r=>{const a=Math.max(Math.min(r.progress,1),-1);M(r,a,t)})},H=()=>{const{el:t,wrapperEl:r,slides:a,width:s,height:l,rtlTranslate:$,size:o,browser:S}=e,g=y.o(e),p=e.params.cubeEffect,h=e.isHorizontal(),O=e.virtual&&e.params.virtual.enabled;let u=0,i;p.shadow&&(h?(i=e.wrapperEl.querySelector(".swiper-cube-shadow"),i||(i=y.c("div","swiper-cube-shadow"),e.wrapperEl.append(i)),i.style.height=`${s}px`):(i=t.querySelector(".swiper-cube-shadow"),i||(i=y.c("div","swiper-cube-shadow"),t.append(i))));for(let w=0;w<a.length;w+=1){const m=a[w];let d=w;O&&(d=parseInt(m.getAttribute("data-swiper-slide-index"),10));let c=d*90,f=Math.floor(c/360);$&&(c=-c,f=Math.floor(-c/360));const b=Math.max(Math.min(m.progress,1),-1);let n=0,v=0,x=0;d%4===0?(n=-f*4*o,x=0):(d-1)%4===0?(n=0,x=-f*4*o):(d-2)%4===0?(n=o+f*4*o,x=o):(d-3)%4===0&&(n=-o,x=3*o+o*4*f),$&&(n=-n),h||(v=n,n=0);const T=`rotateX(${g(h?0:-c)}deg) rotateY(${g(h?c:0)}deg) translate3d(${n}px, ${v}px, ${x}px)`;b<=1&&b>-1&&(u=d*90+b*90,$&&(u=-d*90-b*90)),m.style.transform=T,p.slideShadows&&M(m,b,h)}if(r.style.transformOrigin=`50% 50% -${o/2}px`,r.style["-webkit-transform-origin"]=`50% 50% -${o/2}px`,p.shadow)if(h)i.style.transform=`translate3d(0px, ${s/2+p.shadowOffset}px, ${-s/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${p.shadowScale})`;else{const w=Math.abs(u)-Math.floor(Math.abs(u)/90)*90,m=1.5-(Math.sin(w*2*Math.PI/360)/2+Math.cos(w*2*Math.PI/360)/2),d=p.shadowScale,c=p.shadowScale/m,f=p.shadowOffset;i.style.transform=`scale3d(${d}, 1, ${c}) translate3d(0px, ${l/2+f}px, ${-l/2/c}px) rotateX(-89.99deg)`}const q=(S.isSafari||S.isWebView)&&S.needPerspectiveFix?-o/2:0;r.style.transform=`translate3d(0px,0,${q}px) rotateX(${g(e.isHorizontal()?0:u)}deg) rotateY(${g(e.isHorizontal()?-u:0)}deg)`,r.style.setProperty("--swiper-cube-translate-z",`${q}px`)},I=t=>{const{el:r,slides:a}=e;if(a.forEach(s=>{s.style.transitionDuration=`${t}ms`,s.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(l=>{l.style.transitionDuration=`${t}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const s=r.querySelector(".swiper-cube-shadow");s&&(s.style.transitionDuration=`${t}ms`)}};X.e({effect:"cube",swiper:e,on:E,setTranslate:H,setTransition:I,recreateShadows:A,getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}module.exports=D;
package/index216.mjs CHANGED
@@ -1,32 +1,96 @@
1
- import { CalendarDate as n } from "./index169.mjs";
2
- import { GregorianCalendar as s, getExtendedYear as $, fromExtendedYear as c } from "./index184.mjs";
3
- const o = -543;
4
- class u extends s {
5
- fromJulianDay(e) {
6
- let r = super.fromJulianDay(e), d = $(r.era, r.year);
7
- return new n(this, d - o, r.month, r.day);
8
- }
9
- toJulianDay(e) {
10
- return super.toJulianDay(t(e));
11
- }
12
- getEras() {
13
- return [
14
- "BE"
15
- ];
16
- }
17
- getDaysInMonth(e) {
18
- return super.getDaysInMonth(t(e));
19
- }
20
- balanceDate() {
21
- }
22
- constructor(...e) {
23
- super(...e), this.identifier = "buddhist";
24
- }
25
- }
26
- function t(a) {
27
- let [e, r] = c(a.year + o);
28
- return new n(e, r, a.month, a.day);
1
+ import { e as H } from "./index289.mjs";
2
+ import { c as y, o as I } from "./index286.mjs";
3
+ function V(z) {
4
+ let {
5
+ swiper: e,
6
+ extendParams: E,
7
+ on: q
8
+ } = z;
9
+ E({
10
+ cubeEffect: {
11
+ slideShadows: !0,
12
+ shadow: !0,
13
+ shadowOffset: 20,
14
+ shadowScale: 0.94
15
+ }
16
+ });
17
+ const M = (t, a, r) => {
18
+ let s = r ? t.querySelector(".swiper-slide-shadow-left") : t.querySelector(".swiper-slide-shadow-top"), l = r ? t.querySelector(".swiper-slide-shadow-right") : t.querySelector(".swiper-slide-shadow-bottom");
19
+ s || (s = y("div", `swiper-slide-shadow-cube swiper-slide-shadow-${r ? "left" : "top"}`.split(" ")), t.append(s)), l || (l = y("div", `swiper-slide-shadow-cube swiper-slide-shadow-${r ? "right" : "bottom"}`.split(" ")), t.append(l)), s && (s.style.opacity = Math.max(-a, 0)), l && (l.style.opacity = Math.max(a, 0));
20
+ };
21
+ H({
22
+ effect: "cube",
23
+ swiper: e,
24
+ on: q,
25
+ setTranslate: () => {
26
+ const {
27
+ el: t,
28
+ wrapperEl: a,
29
+ slides: r,
30
+ width: s,
31
+ height: l,
32
+ rtlTranslate: $,
33
+ size: o,
34
+ browser: S
35
+ } = e, g = I(e), c = e.params.cubeEffect, h = e.isHorizontal(), T = e.virtual && e.params.virtual.enabled;
36
+ let u = 0, i;
37
+ c.shadow && (h ? (i = e.wrapperEl.querySelector(".swiper-cube-shadow"), i || (i = y("div", "swiper-cube-shadow"), e.wrapperEl.append(i)), i.style.height = `${s}px`) : (i = t.querySelector(".swiper-cube-shadow"), i || (i = y("div", "swiper-cube-shadow"), t.append(i))));
38
+ for (let w = 0; w < r.length; w += 1) {
39
+ const m = r[w];
40
+ let d = w;
41
+ T && (d = parseInt(m.getAttribute("data-swiper-slide-index"), 10));
42
+ let n = d * 90, f = Math.floor(n / 360);
43
+ $ && (n = -n, f = Math.floor(-n / 360));
44
+ const x = Math.max(Math.min(m.progress, 1), -1);
45
+ let p = 0, P = 0, b = 0;
46
+ d % 4 === 0 ? (p = -f * 4 * o, b = 0) : (d - 1) % 4 === 0 ? (p = 0, b = -f * 4 * o) : (d - 2) % 4 === 0 ? (p = o + f * 4 * o, b = o) : (d - 3) % 4 === 0 && (p = -o, b = 3 * o + o * 4 * f), $ && (p = -p), h || (P = p, p = 0);
47
+ const A = `rotateX(${g(h ? 0 : -n)}deg) rotateY(${g(h ? n : 0)}deg) translate3d(${p}px, ${P}px, ${b}px)`;
48
+ x <= 1 && x > -1 && (u = d * 90 + x * 90, $ && (u = -d * 90 - x * 90)), m.style.transform = A, c.slideShadows && M(m, x, h);
49
+ }
50
+ if (a.style.transformOrigin = `50% 50% -${o / 2}px`, a.style["-webkit-transform-origin"] = `50% 50% -${o / 2}px`, c.shadow)
51
+ if (h)
52
+ i.style.transform = `translate3d(0px, ${s / 2 + c.shadowOffset}px, ${-s / 2}px) rotateX(89.99deg) rotateZ(0deg) scale(${c.shadowScale})`;
53
+ else {
54
+ const w = Math.abs(u) - Math.floor(Math.abs(u) / 90) * 90, m = 1.5 - (Math.sin(w * 2 * Math.PI / 360) / 2 + Math.cos(w * 2 * Math.PI / 360) / 2), d = c.shadowScale, n = c.shadowScale / m, f = c.shadowOffset;
55
+ i.style.transform = `scale3d(${d}, 1, ${n}) translate3d(0px, ${l / 2 + f}px, ${-l / 2 / n}px) rotateX(-89.99deg)`;
56
+ }
57
+ const v = (S.isSafari || S.isWebView) && S.needPerspectiveFix ? -o / 2 : 0;
58
+ a.style.transform = `translate3d(0px,0,${v}px) rotateX(${g(e.isHorizontal() ? 0 : u)}deg) rotateY(${g(e.isHorizontal() ? -u : 0)}deg)`, a.style.setProperty("--swiper-cube-translate-z", `${v}px`);
59
+ },
60
+ setTransition: (t) => {
61
+ const {
62
+ el: a,
63
+ slides: r
64
+ } = e;
65
+ if (r.forEach((s) => {
66
+ s.style.transitionDuration = `${t}ms`, s.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((l) => {
67
+ l.style.transitionDuration = `${t}ms`;
68
+ });
69
+ }), e.params.cubeEffect.shadow && !e.isHorizontal()) {
70
+ const s = a.querySelector(".swiper-cube-shadow");
71
+ s && (s.style.transitionDuration = `${t}ms`);
72
+ }
73
+ },
74
+ recreateShadows: () => {
75
+ const t = e.isHorizontal();
76
+ e.slides.forEach((a) => {
77
+ const r = Math.max(Math.min(a.progress, 1), -1);
78
+ M(a, r, t);
79
+ });
80
+ },
81
+ getEffectParams: () => e.params.cubeEffect,
82
+ perspective: () => !0,
83
+ overwriteParams: () => ({
84
+ slidesPerView: 1,
85
+ slidesPerGroup: 1,
86
+ watchSlidesProgress: !0,
87
+ resistanceRatio: 0,
88
+ spaceBetween: 0,
89
+ centeredSlides: !1,
90
+ virtualTranslate: !0
91
+ })
92
+ });
29
93
  }
30
94
  export {
31
- u as BuddhistCalendar
95
+ V as default
32
96
  };
package/index217.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index169.js"),o=require("./index184.js"),n=1911;function l(r){return r.era==="minguo"?r.year+n:1-r.year+n}function u(r){let e=r-n;return e>0?["minguo",e]:["before_minguo",1-e]}class c extends o.GregorianCalendar{fromJulianDay(e){let a=super.fromJulianDay(e),t=o.getExtendedYear(a.era,a.year),[s,g]=u(t);return new f.CalendarDate(this,s,g,a.month,a.day)}toJulianDay(e){return super.toJulianDay(i(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[a,t]=u(l(e));e.era=a,e.year=t}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(i(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-n}constructor(...e){super(...e),this.identifier="roc"}}function i(r){let[e,a]=o.fromExtendedYear(l(r));return new f.CalendarDate(e,a,r.month,r.day)}exports.TaiwanCalendar=c;
1
+ "use strict";const m=require("./index292.js"),z=require("./index289.js"),P=require("./index290.js"),T=require("./index291.js"),w=require("./index286.js");function $(u){let{swiper:t,extendParams:g,on:y}=u;g({flipEffect:{slideShadows:!0,limitRotation:!0}});const c=(e,r)=>{let s=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),o=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=m.c("flip",e,t.isHorizontal()?"left":"top")),o||(o=m.c("flip",e,t.isHorizontal()?"right":"bottom")),s&&(s.style.opacity=Math.max(-r,0)),o&&(o.style.opacity=Math.max(r,0))},S=()=>{t.params.flipEffect,t.slides.forEach(e=>{let r=e.progress;t.params.flipEffect.limitRotation&&(r=Math.max(Math.min(e.progress,1),-1)),c(e,r)})},x=()=>{const{slides:e,rtlTranslate:r}=t,s=t.params.flipEffect,o=w.o(t);for(let f=0;f<e.length;f+=1){const a=e[f];let l=a.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(a.progress,1),-1));const p=a.swiperSlideOffset;let i=-180*l,d=0,n=t.params.cssMode?-p-t.translate:-p,h=0;t.isHorizontal()?r&&(i=-i):(h=n,n=0,d=-i,i=0),a.style.zIndex=-Math.abs(Math.round(l))+e.length,s.slideShadows&&c(a,l);const M=`translate3d(${n}px, ${h}px, 0px) rotateX(${o(d)}deg) rotateY(${o(i)}deg)`,E=P.e(s,a);E.style.transform=M}},q=e=>{const r=t.slides.map(s=>w.g(s));r.forEach(s=>{s.style.transitionDuration=`${e}ms`,s.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(o=>{o.style.transitionDuration=`${e}ms`})}),T.e({swiper:t,duration:e,transformElements:r})};z.e({effect:"flip",swiper:t,on:y,setTranslate:x,setTransition:q,recreateShadows:S,getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}module.exports=$;
package/index217.mjs CHANGED
@@ -1,54 +1,73 @@
1
- import { CalendarDate as f } from "./index169.mjs";
2
- import { GregorianCalendar as c, getExtendedYear as s, fromExtendedYear as g } from "./index184.mjs";
3
- const n = 1911;
4
- function i(r) {
5
- return r.era === "minguo" ? r.year + n : 1 - r.year + n;
6
- }
7
- function o(r) {
8
- let e = r - n;
9
- return e > 0 ? [
10
- "minguo",
11
- e
12
- ] : [
13
- "before_minguo",
14
- 1 - e
15
- ];
16
- }
17
- class m extends c {
18
- fromJulianDay(e) {
19
- let a = super.fromJulianDay(e), t = s(a.era, a.year), [u, $] = o(t);
20
- return new f(this, u, $, a.month, a.day);
21
- }
22
- toJulianDay(e) {
23
- return super.toJulianDay(b(e));
24
- }
25
- getEras() {
26
- return [
27
- "before_minguo",
28
- "minguo"
29
- ];
30
- }
31
- balanceDate(e) {
32
- let [a, t] = o(i(e));
33
- e.era = a, e.year = t;
34
- }
35
- isInverseEra(e) {
36
- return e.era === "before_minguo";
37
- }
38
- getDaysInMonth(e) {
39
- return super.getDaysInMonth(b(e));
40
- }
41
- getYearsInEra(e) {
42
- return e.era === "before_minguo" ? 9999 : 9999 - n;
43
- }
44
- constructor(...e) {
45
- super(...e), this.identifier = "roc";
46
- }
47
- }
48
- function b(r) {
49
- let [e, a] = g(i(r));
50
- return new f(e, a, r.month, r.day);
1
+ import { c as h } from "./index292.mjs";
2
+ import { e as x } from "./index289.mjs";
3
+ import { e as M } from "./index290.mjs";
4
+ import { e as E } from "./index291.mjs";
5
+ import { g as T, o as z } from "./index286.mjs";
6
+ function B(w) {
7
+ let {
8
+ swiper: t,
9
+ extendParams: g,
10
+ on: u
11
+ } = w;
12
+ g({
13
+ flipEffect: {
14
+ slideShadows: !0,
15
+ limitRotation: !0
16
+ }
17
+ });
18
+ const p = (e, r) => {
19
+ let s = t.isHorizontal() ? e.querySelector(".swiper-slide-shadow-left") : e.querySelector(".swiper-slide-shadow-top"), a = t.isHorizontal() ? e.querySelector(".swiper-slide-shadow-right") : e.querySelector(".swiper-slide-shadow-bottom");
20
+ s || (s = h("flip", e, t.isHorizontal() ? "left" : "top")), a || (a = h("flip", e, t.isHorizontal() ? "right" : "bottom")), s && (s.style.opacity = Math.max(-r, 0)), a && (a.style.opacity = Math.max(r, 0));
21
+ };
22
+ x({
23
+ effect: "flip",
24
+ swiper: t,
25
+ on: u,
26
+ setTranslate: () => {
27
+ const {
28
+ slides: e,
29
+ rtlTranslate: r
30
+ } = t, s = t.params.flipEffect, a = z(t);
31
+ for (let f = 0; f < e.length; f += 1) {
32
+ const o = e[f];
33
+ let l = o.progress;
34
+ t.params.flipEffect.limitRotation && (l = Math.max(Math.min(o.progress, 1), -1));
35
+ const c = o.swiperSlideOffset;
36
+ let i = -180 * l, m = 0, n = t.params.cssMode ? -c - t.translate : -c, d = 0;
37
+ t.isHorizontal() ? r && (i = -i) : (d = n, n = 0, m = -i, i = 0), o.style.zIndex = -Math.abs(Math.round(l)) + e.length, s.slideShadows && p(o, l);
38
+ const S = `translate3d(${n}px, ${d}px, 0px) rotateX(${a(m)}deg) rotateY(${a(i)}deg)`, y = M(s, o);
39
+ y.style.transform = S;
40
+ }
41
+ },
42
+ setTransition: (e) => {
43
+ const r = t.slides.map((s) => T(s));
44
+ r.forEach((s) => {
45
+ s.style.transitionDuration = `${e}ms`, s.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((a) => {
46
+ a.style.transitionDuration = `${e}ms`;
47
+ });
48
+ }), E({
49
+ swiper: t,
50
+ duration: e,
51
+ transformElements: r
52
+ });
53
+ },
54
+ recreateShadows: () => {
55
+ t.params.flipEffect, t.slides.forEach((e) => {
56
+ let r = e.progress;
57
+ t.params.flipEffect.limitRotation && (r = Math.max(Math.min(e.progress, 1), -1)), p(e, r);
58
+ });
59
+ },
60
+ getEffectParams: () => t.params.flipEffect,
61
+ perspective: () => !0,
62
+ overwriteParams: () => ({
63
+ slidesPerView: 1,
64
+ slidesPerGroup: 1,
65
+ watchSlidesProgress: !0,
66
+ spaceBetween: 0,
67
+ virtualTranslate: !t.params.cssMode
68
+ })
69
+ });
51
70
  }
52
71
  export {
53
- m as TaiwanCalendar
72
+ B as default
54
73
  };
package/index218.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index169.js"),u=require("./index214.js"),o=1948320,l=[0,31,62,93,124,155,186,216,246,276,306,336];class c{fromJulianDay(e){let r=e-o,a=1+Math.floor((33*r+3)/12053),i=365*(a-1)+Math.floor((8*a+21)/33),t=r-i,n=t<216?Math.floor(t/31):Math.floor((t-6)/30),s=t-l[n]+1;return new f.CalendarDate(this,a,n+1,s)}toJulianDay(e){let r=o-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return r+=l[e.month-1],r+=e.day,r}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||u.mod(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}exports.PersianCalendar=c;
1
+ "use strict";const v=require("./index292.js"),B=require("./index289.js"),C=require("./index290.js"),$=require("./index286.js");function F(x){let{swiper:o,extendParams:z,on:O}=x;z({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}});const T=()=>{const{width:l,height:b,slides:i,slidesSizesGrid:d}=o,t=o.params.coverflowEffect,s=o.isHorizontal(),S=o.translate,P=s?-S+l/2:-S+b/2,E=s?t.rotate:-t.rotate,X=t.depth,M=$.o(o);for(let c=0,Y=i.length;c<Y;c+=1){const r=i[c],h=d[c],A=r.swiperSlideOffset,q=(P-A-h/2)/h,e=typeof t.modifier=="function"?t.modifier(q):q*t.modifier;let w=s?E*e:0,p=s?0:E*e,m=-X*Math.abs(e),a=t.stretch;typeof a=="string"&&a.indexOf("%")!==-1&&(a=parseFloat(t.stretch)/100*h);let u=s?0:a*e,y=s?a*e:0,g=1-(1-t.scale)*Math.abs(e);Math.abs(y)<.001&&(y=0),Math.abs(u)<.001&&(u=0),Math.abs(m)<.001&&(m=0),Math.abs(w)<.001&&(w=0),Math.abs(p)<.001&&(p=0),Math.abs(g)<.001&&(g=0);const D=`translate3d(${y}px,${u}px,${m}px) rotateX(${M(p)}deg) rotateY(${M(w)}deg) scale(${g})`,I=C.e(t,r);if(I.style.transform=D,r.style.zIndex=-Math.abs(Math.round(e))+1,t.slideShadows){let f=s?r.querySelector(".swiper-slide-shadow-left"):r.querySelector(".swiper-slide-shadow-top"),n=s?r.querySelector(".swiper-slide-shadow-right"):r.querySelector(".swiper-slide-shadow-bottom");f||(f=v.c("coverflow",r,s?"left":"top")),n||(n=v.c("coverflow",r,s?"right":"bottom")),f&&(f.style.opacity=e>0?e:0),n&&(n.style.opacity=-e>0?-e:0)}}},H=l=>{o.slides.map(i=>$.g(i)).forEach(i=>{i.style.transitionDuration=`${l}ms`,i.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${l}ms`})})};B.e({effect:"coverflow",swiper:o,on:O,setTranslate:T,setTransition:H,perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}module.exports=F;