@quoreadmin/ui 1.4.8 → 1.5.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 (360) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +59 -57
  3. package/dist/index10.js +234 -45
  4. package/dist/index100.js +10 -0
  5. package/dist/index102.js +39 -0
  6. package/dist/{index101.js → index104.js} +2 -2
  7. package/dist/{index103.js → index106.js} +1 -1
  8. package/dist/{index105.js → index108.js} +4 -4
  9. package/dist/index11.js +50 -178
  10. package/dist/{index107.js → index110.js} +7 -7
  11. package/dist/{index109.js → index112.js} +1 -1
  12. package/dist/{index111.js → index114.js} +5 -5
  13. package/dist/{index115.js → index118.js} +1 -1
  14. package/dist/index12.js +174 -65
  15. package/dist/{index123.js → index126.js} +2 -2
  16. package/dist/{index125.js → index128.js} +1 -1
  17. package/dist/index13.js +70 -28
  18. package/dist/{index129.js → index132.js} +1 -1
  19. package/dist/{index133.js → index136.js} +113 -112
  20. package/dist/{index135.js → index138.js} +9 -9
  21. package/dist/index14.js +29 -187
  22. package/dist/{index137.js → index140.js} +11 -11
  23. package/dist/{index145.js → index148.js} +1 -1
  24. package/dist/index15.js +180 -128
  25. package/dist/{index147.js → index150.js} +1 -1
  26. package/dist/{index149.js → index152.js} +2 -2
  27. package/dist/index154.js +205 -111
  28. package/dist/index157.js +110 -87
  29. package/dist/index158.js +478 -844
  30. package/dist/index159.js +5520 -36
  31. package/dist/index16.js +123 -303
  32. package/dist/index160.js +90 -279
  33. package/dist/index161.js +833 -122
  34. package/dist/index162.js +36 -1197
  35. package/dist/index163.js +268 -760
  36. package/dist/index164.js +146 -1304
  37. package/dist/index165.js +1151 -228
  38. package/dist/index166.js +754 -88
  39. package/dist/index167.js +1308 -2
  40. package/dist/index168.js +259 -1359
  41. package/dist/index169.js +108 -0
  42. package/dist/index17.js +314 -21
  43. package/dist/index170.js +2 -18
  44. package/dist/index171.js +1372 -14
  45. package/dist/index173.js +8 -8
  46. package/dist/index174.js +10 -17
  47. package/dist/index175.js +18 -759
  48. package/dist/index176.js +18 -1100
  49. package/dist/index177.js +22 -1231
  50. package/dist/index178.js +740 -11258
  51. package/dist/index179.js +1100 -36
  52. package/dist/index18.js +20 -43
  53. package/dist/index180.js +1200 -81
  54. package/dist/index181.js +11276 -43
  55. package/dist/index182.js +36 -1190
  56. package/dist/{index91.js → index183.js} +4 -4
  57. package/dist/index184.js +44 -5938
  58. package/dist/index185.js +5830 -99
  59. package/dist/index186.js +188 -16
  60. package/dist/index187.js +25 -8
  61. package/dist/index188.js +16 -76
  62. package/dist/index189.js +1172 -235
  63. package/dist/index19.js +44 -49
  64. package/dist/index191.js +77 -26
  65. package/dist/index192.js +245 -55
  66. package/dist/index193.js +13655 -209
  67. package/dist/index194.js +26 -307
  68. package/dist/index195.js +43 -268
  69. package/dist/index196.js +231 -81
  70. package/dist/index197.js +288 -387
  71. package/dist/index198.js +287 -21
  72. package/dist/index199.js +84 -29
  73. package/dist/index2.js +2 -2
  74. package/dist/index20.js +49 -31
  75. package/dist/index200.js +400 -109
  76. package/dist/index201.js +22 -36
  77. package/dist/index202.js +33 -26
  78. package/dist/index203.js +111 -31
  79. package/dist/index204.js +36 -9
  80. package/dist/index205.js +26 -19
  81. package/dist/index206.js +36 -10
  82. package/dist/index207.js +9 -10
  83. package/dist/index208.js +18 -50
  84. package/dist/index209.js +10 -43
  85. package/dist/index21.js +32 -65
  86. package/dist/index210.js +10 -4
  87. package/dist/index211.js +48 -36
  88. package/dist/index212.js +43 -21
  89. package/dist/index213.js +3 -160
  90. package/dist/index214.js +38 -19
  91. package/dist/index215.js +21 -20
  92. package/dist/index216.js +160 -21
  93. package/dist/index217.js +218 -189
  94. package/dist/index218.js +36 -69
  95. package/dist/index219.js +10 -34
  96. package/dist/index22.js +61 -170
  97. package/dist/index220.js +123 -36
  98. package/dist/index221.js +37 -21
  99. package/dist/index222.js +80 -22
  100. package/dist/index223.js +10 -10
  101. package/dist/index224.js +20 -836
  102. package/dist/index225.js +19 -701
  103. package/dist/index226.js +19 -175
  104. package/dist/index227.js +11 -11
  105. package/dist/index228.js +14 -12
  106. package/dist/index229.js +6 -6
  107. package/dist/index23.js +173 -10
  108. package/dist/index230.js +7 -7
  109. package/dist/index231.js +836 -20
  110. package/dist/index232.js +702 -3
  111. package/dist/index233.js +172 -183
  112. package/dist/index234.js +21 -132
  113. package/dist/index235.js +20 -1223
  114. package/dist/index236.js +19 -126
  115. package/dist/index237.js +3 -20
  116. package/dist/index238.js +186 -21
  117. package/dist/index239.js +132 -21
  118. package/dist/index24.js +9 -38
  119. package/dist/index240.js +148 -25
  120. package/dist/index241.js +1223 -29
  121. package/dist/index242.js +12 -12
  122. package/dist/index243.js +15 -13
  123. package/dist/index244.js +20 -2
  124. package/dist/index245.js +22 -2
  125. package/dist/index246.js +29 -3632
  126. package/dist/index247.js +20 -55
  127. package/dist/index248.js +20 -77
  128. package/dist/index249.js +2 -52
  129. package/dist/index25.js +36 -116
  130. package/dist/index250.js +2 -215
  131. package/dist/index251.js +3631 -9
  132. package/dist/index252.js +37 -39
  133. package/dist/index253.js +60 -44
  134. package/dist/index254.js +34 -36
  135. package/dist/index255.js +184 -44
  136. package/dist/index256.js +9 -722
  137. package/dist/index257.js +39 -21
  138. package/dist/index258.js +44 -47
  139. package/dist/index259.js +53 -10
  140. package/dist/index26.js +116 -22
  141. package/dist/index260.js +66 -696
  142. package/dist/index261.js +706 -803
  143. package/dist/index262.js +38 -160
  144. package/dist/index263.js +61 -225
  145. package/dist/index264.js +11 -37
  146. package/dist/index265.js +704 -9
  147. package/dist/index266.js +819 -79
  148. package/dist/index267.js +15 -13
  149. package/dist/index268.js +198 -19
  150. package/dist/index269.js +65 -248
  151. package/dist/index27.js +24 -158
  152. package/dist/index270.js +31 -5
  153. package/dist/index271.js +36 -134
  154. package/dist/index272.js +232 -62
  155. package/dist/index273.js +7 -53
  156. package/dist/index274.js +118 -59
  157. package/dist/index275.js +83 -26
  158. package/dist/index276.js +3 -22
  159. package/dist/index277.js +26 -21
  160. package/dist/index278.js +2 -16
  161. package/dist/index279.js +78 -16
  162. package/dist/index28.js +141 -264
  163. package/dist/index280.js +77 -21
  164. package/dist/index281.js +22 -3
  165. package/dist/index282.js +932 -24
  166. package/dist/index283.js +22 -1518
  167. package/dist/index284.js +20 -386
  168. package/dist/index285.js +20 -2731
  169. package/dist/index286.js +67 -84
  170. package/dist/index287.js +19 -3770
  171. package/dist/index288.js +19 -60
  172. package/dist/index289.js +38 -63
  173. package/dist/index29.js +279 -62
  174. package/dist/index290.js +16 -16
  175. package/dist/index291.js +22 -935
  176. package/dist/index292.js +63 -22
  177. package/dist/index293.js +234 -19
  178. package/dist/index294.js +5 -19
  179. package/dist/index295.js +128 -63
  180. package/dist/index296.js +68 -19
  181. package/dist/index297.js +85 -17
  182. package/dist/index298.js +28 -21
  183. package/dist/index299.js +7 -20
  184. package/dist/index3.js +2 -2
  185. package/dist/index30.js +64 -178
  186. package/dist/index300.js +75 -63
  187. package/dist/index301.js +4 -2
  188. package/dist/index302.js +2 -15
  189. package/dist/index303.js +76 -77
  190. package/dist/index304.js +52 -200
  191. package/dist/index305.js +4 -244
  192. package/dist/index306.js +4 -234
  193. package/dist/index307.js +178 -5
  194. package/dist/index308.js +56 -127
  195. package/dist/index309.js +75 -68
  196. package/dist/index31.js +177 -38
  197. package/dist/index310.js +1509 -78
  198. package/dist/index311.js +383 -26
  199. package/dist/index312.js +2731 -9
  200. package/dist/index313.js +83 -72
  201. package/dist/index314.js +3769 -3
  202. package/dist/index315.js +60 -2
  203. package/dist/index316.js +15 -83
  204. package/dist/index317.js +83 -53
  205. package/dist/index318.js +200 -4
  206. package/dist/index319.js +245 -4
  207. package/dist/index32.js +38 -49
  208. package/dist/index320.js +25 -178
  209. package/dist/index321.js +21 -62
  210. package/dist/index322.js +22 -75
  211. package/dist/index323.js +15 -36
  212. package/dist/index324.js +17 -9
  213. package/dist/index325.js +23 -13
  214. package/dist/index326.js +8 -54
  215. package/dist/index327.js +12 -11
  216. package/dist/index328.js +52 -11
  217. package/dist/index329.js +9 -55
  218. package/dist/index33.js +47 -30
  219. package/dist/index330.js +13 -51
  220. package/dist/index331.js +51 -24
  221. package/dist/index332.js +52 -2
  222. package/dist/index333.js +31 -5
  223. package/dist/index334.js +2 -2
  224. package/dist/index335.js +4 -22
  225. package/dist/index336.js +2 -41
  226. package/dist/index337.js +23 -2
  227. package/dist/index338.js +40 -10
  228. package/dist/index339.js +2 -20
  229. package/dist/index34.js +31 -28
  230. package/dist/index340.js +10 -16
  231. package/dist/index341.js +20 -10
  232. package/dist/index342.js +16 -9
  233. package/dist/index343.js +10 -2
  234. package/dist/index344.js +9 -8
  235. package/dist/index345.js +2 -10
  236. package/dist/index346.js +8 -13
  237. package/dist/index347.js +9 -19
  238. package/dist/index348.js +14 -20
  239. package/dist/index349.js +33 -60
  240. package/dist/index35.js +29 -13
  241. package/dist/index350.js +20 -37
  242. package/dist/index351.js +19 -20
  243. package/dist/index352.js +61 -53
  244. package/dist/index353.js +37 -29
  245. package/dist/index354.js +20 -6
  246. package/dist/index355.js +53 -49
  247. package/dist/index356.js +29 -6
  248. package/dist/index357.js +6 -11
  249. package/dist/index358.js +49 -4
  250. package/dist/index359.js +5 -27
  251. package/dist/index36.js +15 -43
  252. package/dist/index360.js +12 -2
  253. package/dist/index361.js +6 -69
  254. package/dist/index362.js +27 -166
  255. package/dist/index363.js +2 -17
  256. package/dist/index364.js +69 -100
  257. package/dist/index365.js +167 -91
  258. package/dist/index366.js +16 -97
  259. package/dist/index367.js +1 -1
  260. package/dist/index368.js +3 -3
  261. package/dist/index37.js +42 -37
  262. package/dist/index371.js +3 -3
  263. package/dist/index373.js +1 -1
  264. package/dist/index375.js +3 -3
  265. package/dist/index376.js +8 -8
  266. package/dist/index377.js +3 -3
  267. package/dist/index379.js +100 -2
  268. package/dist/index38.js +36 -26
  269. package/dist/index380.js +91 -2
  270. package/dist/index381.js +98 -2
  271. package/dist/index382.js +3 -17
  272. package/dist/index383.js +2 -13
  273. package/dist/index384.js +2 -6
  274. package/dist/index385.js +17 -32
  275. package/dist/index386.js +15 -0
  276. package/dist/index387.js +8 -0
  277. package/dist/index388.js +34 -0
  278. package/dist/index39.js +25 -32
  279. package/dist/index4.js +2 -2
  280. package/dist/index40.js +32 -37
  281. package/dist/index41.js +37 -1068
  282. package/dist/index42.js +1045 -309
  283. package/dist/index43.js +326 -146
  284. package/dist/index44.js +155 -18
  285. package/dist/index45.js +16 -36
  286. package/dist/index46.js +38 -68
  287. package/dist/index47.js +67 -60
  288. package/dist/index48.js +56 -175
  289. package/dist/index49.js +173 -77
  290. package/dist/index5.js +2 -2
  291. package/dist/index50.js +79 -200
  292. package/dist/index51.js +206 -68
  293. package/dist/index52.js +69 -20
  294. package/dist/index53.js +20 -11
  295. package/dist/index54.js +10 -6
  296. package/dist/index55.js +5 -209
  297. package/dist/index56.js +210 -12
  298. package/dist/index57.js +12 -184
  299. package/dist/index58.js +176 -68
  300. package/dist/index59.js +79 -0
  301. package/dist/index6.js +2 -2
  302. package/dist/index61.js +7 -63
  303. package/dist/index62.js +65 -0
  304. package/dist/index7.js +2 -2
  305. package/dist/{index69.js → index70.js} +2 -2
  306. package/dist/index74.js +35 -78
  307. package/dist/index75.js +326 -0
  308. package/dist/index77.js +105 -0
  309. package/dist/{index76.js → index79.js} +7 -7
  310. package/dist/index8.js +3 -3
  311. package/dist/index81.js +77 -109
  312. package/dist/index83.js +22 -127
  313. package/dist/index84.js +140 -0
  314. package/dist/index86.js +141 -0
  315. package/dist/{index85.js → index88.js} +7 -7
  316. package/dist/index9.js +2 -2
  317. package/dist/{index89.js → index92.js} +1 -1
  318. package/dist/index94.js +105 -22
  319. package/dist/index96.js +16 -129
  320. package/dist/index97.js +30 -6
  321. package/dist/index99.js +128 -25
  322. package/dist/src/components/calendar/calendar.d.ts +290 -0
  323. package/dist/src/components/calendar/calendar.stories.d.ts +37 -0
  324. package/dist/src/components/calendar/calendar.vue.d.ts +2 -0
  325. package/dist/src/components/date-picker/date-picker.d.ts +2 -2
  326. package/dist/src/components/date-picker/date-picker.stories.d.ts +4 -4
  327. package/dist/src/components/grid/grid.stories.d.ts +10 -10
  328. package/dist/src/components/list/list.stories.d.ts +5 -5
  329. package/dist/src/components/modal/modal.stories.d.ts +5 -5
  330. package/dist/src/components/room-details-popover/room-details-popover.d.ts +3 -3
  331. package/dist/src/components/select/select.d.ts +6 -5
  332. package/dist/src/components/select/select.stories.d.ts +15 -15
  333. package/dist/src/components/textarea/textarea.d.ts +1 -1
  334. package/dist/src/components/textarea/textarea.stories.d.ts +1 -1
  335. package/dist/src/index.d.ts +2 -0
  336. package/package.json +1 -1
  337. package/dist/index151.js +0 -210
  338. package/dist/index155.js +0 -497
  339. package/dist/index156.js +0 -5524
  340. package/dist/index172.js +0 -20
  341. package/dist/index190.js +0 -13686
  342. package/dist/index60.js +0 -9
  343. package/dist/index73.js +0 -62
  344. package/dist/index78.js +0 -108
  345. package/dist/index80.js +0 -36
  346. package/dist/index93.js +0 -29
  347. /package/dist/{index113.js → index116.js} +0 -0
  348. /package/dist/{index117.js → index120.js} +0 -0
  349. /package/dist/{index119.js → index122.js} +0 -0
  350. /package/dist/{index121.js → index124.js} +0 -0
  351. /package/dist/{index127.js → index130.js} +0 -0
  352. /package/dist/{index131.js → index134.js} +0 -0
  353. /package/dist/{index139.js → index142.js} +0 -0
  354. /package/dist/{index141.js → index144.js} +0 -0
  355. /package/dist/{index143.js → index146.js} +0 -0
  356. /package/dist/{index63.js → index64.js} +0 -0
  357. /package/dist/{index65.js → index66.js} +0 -0
  358. /package/dist/{index67.js → index68.js} +0 -0
  359. /package/dist/{index71.js → index72.js} +0 -0
  360. /package/dist/{index87.js → index90.js} +0 -0
package/dist/index158.js CHANGED
@@ -1,863 +1,497 @@
1
- const o = {
2
- root: ({ props: e }) => ({
3
- class: [
4
- "relative",
5
- // Flex & Alignment
6
- { "flex flex-col": e.scrollable && e.scrollHeight === "flex" },
7
- // Size
8
- { "h-full": e.scrollable && e.scrollHeight === "flex" }
9
- ]
10
- }),
11
- loadingoverlay: {
12
- class: [
13
- // Position
14
- "absolute",
15
- "top-0 left-0",
16
- "z-20",
17
- // Flex & Alignment
18
- "flex items-center justify-center",
19
- // Size
20
- "w-full h-full",
21
- // Color
22
- "bg-surface-100/0 dark:bg-surface-800/0",
23
- // Transition
24
- "transition duration-200"
25
- ]
26
- },
27
- loadingicon: {
28
- class: "w-8 h-8 animate-spin hidden"
29
- },
30
- wrapper: ({ props: e }) => ({
31
- class: [
32
- { relative: e.scrollable, "flex flex-col grow": e.scrollable && e.scrollHeight === "flex" },
33
- // Size
34
- { "h-full": e.scrollable && e.scrollHeight === "flex" }
35
- ]
36
- }),
37
- header: ({ props: e }) => ({
38
- class: [
39
- "font-bold",
40
- // Shape
41
- e.showGridlines ? "border-x border-t border-b-0" : "border-y-0 border-x-0",
42
- // Spacing
43
- "p-4",
44
- // Color
45
- "bg-surface-50 dark:bg-surface-800",
46
- "border-surface-200 dark:border-surface-700",
47
- "text-surface-700 dark:text-white/80"
48
- ]
49
- }),
50
- table: {
51
- class: "w-full border-spacing-0 border-separate"
52
- },
53
- thead: ({ context: e }) => ({
54
- class: [
55
- {
56
- "bg-surface-50 z-40 sticky": e.scrollable
57
- }
58
- ]
59
- }),
60
- tbody: ({ instance: e, context: r }) => ({
61
- class: [
62
- {
63
- "sticky z-20": e.frozenRow && r.scrollable
64
- }
65
- ]
66
- }),
67
- tfoot: ({ context: e }) => ({
68
- class: [
69
- {
70
- "bg-surface-50 bottom-0 z-0": e.scrollable
1
+ import { noop as j, tryOnMounted as U, isClient as K, toArray as X, watchImmediate as re, notNullish as le, tryOnScopeDispose as ee, injectLocal as ue, pxValue as H, increaseWithUnit as se, isObject as ie, useThrottleFn as ae, useDebounceFn as ce } from "./index169.js";
2
+ import { createFilterWrapper as We, debounceFilter as De, getLifeCycleTarget as Fe, throttleFilter as Ce } from "./index169.js";
3
+ import { shallowRef as T, computed as A, toValue as S, reactive as Y, watch as _, hasInjectionContext as de, watchEffect as fe, getCurrentInstance as ve, onMounted as me, unref as te } from "vue";
4
+ const C = K ? window : void 0;
5
+ function W(t) {
6
+ var v;
7
+ const o = S(t);
8
+ return (v = o?.$el) !== null && v !== void 0 ? v : o;
9
+ }
10
+ function O(...t) {
11
+ const v = (l, d, u, m) => (l.addEventListener(d, u, m), () => l.removeEventListener(d, u, m)), o = A(() => {
12
+ const l = X(S(t[0])).filter((d) => d != null);
13
+ return l.every((d) => typeof d != "string") ? l : void 0;
14
+ });
15
+ return re(() => {
16
+ var l, d;
17
+ return [
18
+ (l = (d = o.value) === null || d === void 0 ? void 0 : d.map((u) => W(u))) !== null && l !== void 0 ? l : [C].filter((u) => u != null),
19
+ X(S(o.value ? t[1] : t[0])),
20
+ X(te(o.value ? t[2] : t[1])),
21
+ S(o.value ? t[3] : t[2])
22
+ ];
23
+ }, ([l, d, u, m], h, r) => {
24
+ if (!l?.length || !d?.length || !u?.length) return;
25
+ const p = ie(m) ? { ...m } : m, f = l.flatMap((b) => d.flatMap((y) => u.map((n) => v(b, y, n, p))));
26
+ r(() => {
27
+ f.forEach((b) => b());
28
+ });
29
+ }, { flush: "post" });
30
+ }
31
+ function Ee(t, v, o = {}) {
32
+ const { window: l = C, ignore: d = [], capture: u = !0, detectIframe: m = !1, controls: h = !1 } = o;
33
+ if (!l) return h ? {
34
+ stop: j,
35
+ cancel: j,
36
+ trigger: j
37
+ } : j;
38
+ let r = !0;
39
+ const p = (e) => S(d).some((s) => {
40
+ if (typeof s == "string") return Array.from(l.document.querySelectorAll(s)).some((c) => c === e.target || e.composedPath().includes(c));
41
+ {
42
+ const c = W(s);
43
+ return c && (e.target === c || e.composedPath().includes(c));
44
+ }
45
+ });
46
+ function f(e) {
47
+ const s = S(e);
48
+ return s && s.$.subTree.shapeFlag === 16;
49
+ }
50
+ function b(e, s) {
51
+ const c = S(e), w = c.$.subTree && c.$.subTree.children;
52
+ return w == null || !Array.isArray(w) ? !1 : w.some((x) => x.el === s.target || s.composedPath().includes(x.el));
53
+ }
54
+ const y = (e) => {
55
+ const s = W(t);
56
+ if (e.target != null && !(!(s instanceof Element) && f(t) && b(t, e)) && !(!s || s === e.target || e.composedPath().includes(s))) {
57
+ if ("detail" in e && e.detail === 0 && (r = !p(e)), !r) {
58
+ r = !0;
59
+ return;
71
60
  }
72
- ]
73
- }),
74
- footer: {
75
- class: [
76
- "font-bold",
77
- // Shape
78
- "border-t-0 border-b border-x-0",
79
- // Spacing
80
- "p-4",
81
- // Color
82
- "bg-surface-50 dark:bg-surface-800",
83
- "border-surface-200 dark:border-surface-700",
84
- "text-surface-700 dark:text-white/80"
85
- ]
86
- },
87
- column: {
88
- headercell: ({ context: e, props: r }) => ({
89
- class: [
90
- "font-bold",
91
- // Position
92
- { "sticky z-20 border-b": r.frozen || r.frozen === "" },
93
- { relative: e.resizable },
94
- // Alignment
95
- "text-left",
96
- // Shape
97
- { "first:border-l border-y border-r": e?.showGridlines },
98
- "border-0 border-b border-solid",
99
- // Spacing
100
- e?.size === "small" ? "p-2" : e?.size === "large" ? "p-5" : "p-4",
101
- // Color
102
- (r.sortable === "" || r.sortable) && e.sorted ? "bg-primary-50 text-primary-700" : "bg-surface-50 text-surface-700",
103
- (r.sortable === "" || r.sortable) && e.sorted ? "dark:text-white dark:bg-primary-400/30" : "dark:text-white/80 dark:bg-surface-800",
104
- "border-surface-200 dark:border-surface-700 ",
105
- // States
106
- { "hover:bg-surface-100 dark:hover:bg-surface-400/30": (r.sortable === "" || r.sortable) && !e?.sorted },
107
- "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
108
- // Transition
109
- { "transition duration-200": r.sortable === "" || r.sortable },
110
- // Misc
111
- { "cursor-pointer": r.sortable === "" || r.sortable },
112
- {
113
- "overflow-hidden space-nowrap border-y bg-clip-padding": e.resizable
114
- // Resizable
115
- }
116
- ]
117
- }),
118
- headercontent: {
119
- class: "flex items-center"
120
- },
121
- sort: ({ context: e }) => ({
122
- class: [e.sorted ? "text-primary-500" : "text-surface-700", e.sorted ? "dark:text-primary-400" : "dark:text-white/80"]
123
- }),
124
- bodycell: ({ props: e, context: r, state: t, parent: a }) => ({
125
- class: [
126
- //Position
127
- { "sticky box-border border-b": a.instance.frozenRow },
128
- { "sticky box-border border-b": e.frozen || e.frozen === "" },
129
- // Alignment
130
- "text-left",
131
- // Shape
132
- "border-0 border-b border-solid",
133
- { "first:border-l border-r border-b": r?.showGridlines },
134
- { "bg-surface-0 dark:bg-surface-800": a.instance.frozenRow || e.frozen || e.frozen === "" },
135
- // Spacing
136
- { "p-2": r?.size === "small" && !t.d_editing },
137
- { "p-5": r?.size === "large" && !t.d_editing },
138
- { "p-4": r?.size !== "large" && r?.size !== "small" && !t.d_editing },
139
- { "py-[0.6rem] px-2": t.d_editing },
140
- // Color
141
- "border-surface-200 dark:border-surface-700"
142
- ]
143
- }),
144
- footercell: ({ context: e }) => ({
145
- class: [
146
- // Font
147
- "font-bold",
148
- // Alignment
149
- "text-left",
150
- // Shape
151
- "border-0 border-b border-solid",
152
- { "border-x border-y": e?.showGridlines },
153
- // Spacing
154
- e?.size === "small" ? "p-2" : e?.size === "large" ? "p-5" : "p-4",
155
- // Color
156
- "border-surface-200 dark:border-surface-700",
157
- "text-surface-700 dark:text-white/80",
158
- "bg-surface-50 dark:bg-surface-800"
159
- ]
160
- }),
161
- sorticon: ({ context: e }) => ({
162
- class: ["ml-2", e.sorted ? "text-primary-700 dark:text-white/80" : "text-surface-700 dark:text-white/70"]
61
+ v(e);
62
+ }
63
+ };
64
+ let n = !1;
65
+ const i = [
66
+ O(l, "click", (e) => {
67
+ n || (n = !0, setTimeout(() => {
68
+ n = !1;
69
+ }, 0), y(e));
70
+ }, {
71
+ passive: !0,
72
+ capture: u
163
73
  }),
164
- sortbadge: {
165
- class: [
166
- // Flex & Alignment
167
- "flex items-center justify-center align-middle",
168
- // Shape
169
- "rounded-full",
170
- // Size
171
- "w-[1.143rem] leading-[1.143rem]",
172
- // Spacing
173
- "ml-2",
174
- // Color
175
- "text-primary-700 dark:text-white",
176
- "bg-primary-50 dark:bg-primary-400/30"
177
- ]
178
- },
179
- columnfilter: {
180
- class: "inline-flex items-center ml-auto"
181
- },
182
- filteroverlay: {
183
- class: [
184
- // Position
185
- "absolute top-0 left-0",
186
- // Shape
187
- "border-0 dark:border",
188
- "rounded-md",
189
- "shadow-md",
190
- // Size
191
- "min-w-[12.5rem]",
192
- // Color
193
- "bg-surface-0 dark:bg-surface-800",
194
- "text-surface-800 dark:text-white/80",
195
- "dark:border-surface-700"
196
- ]
74
+ O(l, "pointerdown", (e) => {
75
+ const s = W(t);
76
+ r = !p(e) && !!(s && !e.composedPath().includes(s));
77
+ }, { passive: !0 }),
78
+ m && O(l, "blur", (e) => {
79
+ setTimeout(() => {
80
+ var s;
81
+ const c = W(t);
82
+ ((s = l.document.activeElement) === null || s === void 0 ? void 0 : s.tagName) === "IFRAME" && !c?.contains(l.document.activeElement) && v(e);
83
+ }, 0);
84
+ }, { passive: !0 })
85
+ ].filter(Boolean), E = () => i.forEach((e) => e());
86
+ return h ? {
87
+ stop: E,
88
+ cancel: () => {
89
+ r = !1;
197
90
  },
198
- filtermatchmodedropdown: {
199
- root: ({ state: e }) => ({
200
- class: [
201
- // Display and Position
202
- "flex",
203
- "relative",
204
- // Spacing
205
- "my-2",
206
- // Shape
207
- "w-full",
208
- "rounded-md",
209
- // Color and Background
210
- "bg-surface-0 dark:bg-surface-900",
211
- "border border-surface-300 dark:border-surface-700",
212
- "text-surface-800 dark:text-white/80",
213
- "placeholder:text-surface-400 dark:placeholder:text-surface-500",
214
- // Transitions
215
- "transition-all",
216
- "duration-200",
217
- // States
218
- "hover:border-primary-500 dark:hover:border-primary-300",
219
- { "outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50": e.focused },
220
- // Misc
221
- "cursor-pointer",
222
- "select-none"
223
- ]
224
- })
225
- },
226
- filterrowitems: {
227
- class: "m-0 p-0 py-3 list-none"
91
+ trigger: (e) => {
92
+ r = !0, y(e), r = !1;
93
+ }
94
+ } : E;
95
+ }
96
+ // @__NO_SIDE_EFFECTS__
97
+ function he() {
98
+ const t = T(!1), v = ve();
99
+ return v && me(() => {
100
+ t.value = !0;
101
+ }, v), t;
102
+ }
103
+ // @__NO_SIDE_EFFECTS__
104
+ function q(t) {
105
+ const v = /* @__PURE__ */ he();
106
+ return A(() => (v.value, !!t()));
107
+ }
108
+ function ne(t, v, o = {}) {
109
+ const { window: l = C, ...d } = o;
110
+ let u;
111
+ const m = /* @__PURE__ */ q(() => l && "MutationObserver" in l), h = () => {
112
+ u && (u.disconnect(), u = void 0);
113
+ }, r = _(A(() => {
114
+ const b = X(S(t)).map(W).filter(le);
115
+ return new Set(b);
116
+ }), (b) => {
117
+ h(), m.value && b.size && (u = new MutationObserver(v), b.forEach((y) => u.observe(y, d)));
118
+ }, {
119
+ immediate: !0,
120
+ flush: "post"
121
+ }), p = () => u?.takeRecords(), f = () => {
122
+ r(), h();
123
+ };
124
+ return ee(f), {
125
+ isSupported: m,
126
+ stop: f,
127
+ takeRecords: p
128
+ };
129
+ }
130
+ const pe = /* @__PURE__ */ Symbol("vueuse-ssr-width");
131
+ // @__NO_SIDE_EFFECTS__
132
+ function oe() {
133
+ const t = de() ? ue(pe, null) : null;
134
+ return typeof t == "number" ? t : void 0;
135
+ }
136
+ function z(t, v = {}) {
137
+ const { window: o = C, ssrWidth: l = /* @__PURE__ */ oe() } = v, d = /* @__PURE__ */ q(() => o && "matchMedia" in o && typeof o.matchMedia == "function"), u = T(typeof l == "number"), m = T(), h = T(!1), r = (p) => {
138
+ h.value = p.matches;
139
+ };
140
+ return fe(() => {
141
+ if (u.value) {
142
+ u.value = !d.value, h.value = S(t).split(",").some((p) => {
143
+ const f = p.includes("not all"), b = p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), y = p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
144
+ let n = !!(b || y);
145
+ return b && n && (n = l >= H(b[1])), y && n && (n = l <= H(y[1])), f ? !n : n;
146
+ });
147
+ return;
148
+ }
149
+ d.value && (m.value = o.matchMedia(S(t)), h.value = m.value.matches);
150
+ }), O(m, "change", r, { passive: !0 }), A(() => h.value);
151
+ }
152
+ const Se = {
153
+ sm: 640,
154
+ md: 768,
155
+ lg: 1024,
156
+ xl: 1280,
157
+ "2xl": 1536
158
+ };
159
+ // @__NO_SIDE_EFFECTS__
160
+ function Te(t, v = {}) {
161
+ function o(n, i) {
162
+ let E = S(t[S(n)]);
163
+ return i != null && (E = se(E, i)), typeof E == "number" && (E = `${E}px`), E;
164
+ }
165
+ const { window: l = C, strategy: d = "min-width", ssrWidth: u = /* @__PURE__ */ oe() } = v, m = typeof u == "number", h = m ? T(!1) : { value: !0 };
166
+ m && U(() => h.value = !!l);
167
+ function r(n, i) {
168
+ return !h.value && m ? n === "min" ? u >= H(i) : u <= H(i) : l ? l.matchMedia(`(${n}-width: ${i})`).matches : !1;
169
+ }
170
+ const p = (n) => z(() => `(min-width: ${o(n)})`, v), f = (n) => z(() => `(max-width: ${o(n)})`, v), b = Object.keys(t).reduce((n, i) => (Object.defineProperty(n, i, {
171
+ get: () => d === "min-width" ? p(i) : f(i),
172
+ enumerable: !0,
173
+ configurable: !0
174
+ }), n), {});
175
+ function y() {
176
+ const n = Object.keys(t).map((i) => [
177
+ i,
178
+ b[i],
179
+ H(o(i))
180
+ ]).sort((i, E) => i[2] - E[2]);
181
+ return A(() => n.filter(([, i]) => i.value).map(([i]) => i));
182
+ }
183
+ return Object.assign(b, {
184
+ greaterOrEqual: p,
185
+ smallerOrEqual: f,
186
+ greater(n) {
187
+ return z(() => `(min-width: ${o(n, 0.1)})`, v);
228
188
  },
229
- filterrowitem: ({ context: e }) => ({
230
- class: [
231
- // Font
232
- "font-normal",
233
- "leading-none",
234
- // Position
235
- "relative",
236
- // Shape
237
- "border-0",
238
- "rounded-none",
239
- // Spacing
240
- "m-0",
241
- "py-3 px-5",
242
- // Color
243
- { "text-surface-700 dark:text-white/80": !e?.highlighted },
244
- { "bg-surface-0 dark:bg-surface-800 text-surface-700 dark:text-white/80": !e?.highlighted },
245
- { "bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80": e?.highlighted },
246
- { "bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80": e?.highlighted },
247
- //States
248
- { "hover:bg-surface-100 dark:hover:bg-surface-600/80": !e?.highlighted },
249
- { "hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80": !e?.highlighted },
250
- "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
251
- // Transitions
252
- "transition-shadow",
253
- "duration-200",
254
- // Misc
255
- "cursor-pointer",
256
- "overflow-hidden",
257
- "whitespace-nowrap"
258
- ]
259
- }),
260
- filteroperator: {
261
- class: [
262
- // Spacing
263
- "px-5 py-3",
264
- // Shape
265
- "border-b border-solid",
266
- "rounded-t-md",
267
- // Color
268
- "text-surface-700 dark:text-white/80",
269
- "border-surface-200 dark:border-surface-800",
270
- "bg-surface-0 dark:bg-surface-700"
271
- ]
189
+ smaller(n) {
190
+ return z(() => `(max-width: ${o(n, -0.1)})`, v);
272
191
  },
273
- filteroperatordropdown: {
274
- root: ({ state: e }) => ({
275
- class: [
276
- // Display and Position
277
- "inline-flex",
278
- "relative",
279
- // Shape
280
- "w-full",
281
- "rounded-md",
282
- // Color and Background
283
- "bg-surface-0 dark:bg-surface-900",
284
- "border border-surface-300 dark:border-surface-700",
285
- // Transitions
286
- "transition-all",
287
- "duration-200",
288
- // States
289
- "hover:border-primary-500 dark:hover:border-primary-300",
290
- { "outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50": e.focused },
291
- // Misc
292
- "cursor-pointer",
293
- "select-none"
294
- ]
295
- }),
296
- input: ({ props: e }) => ({
297
- class: [
298
- //Font
299
- "font-sans",
300
- "leading-none",
301
- // Display
302
- "block",
303
- "flex-auto",
304
- // Color and Background
305
- "bg-transparent",
306
- "border-0",
307
- { "text-surface-800 dark:text-white/80": e.modelValue, "text-surface-400 dark:text-surface-500": !e.modelValue },
308
- "placeholder:text-surface-400 dark:placeholder:text-surface-500",
309
- // Sizing and Spacing
310
- "w-[1%]",
311
- "p-3",
312
- //Shape
313
- "rounded-none",
314
- // Transitions
315
- "transition",
316
- "duration-200",
317
- // States
318
- "focus:outline-none focus:shadow-none",
319
- // Misc
320
- "relative",
321
- "cursor-pointer",
322
- "overflow-hidden overflow-ellipsis",
323
- "whitespace-nowrap",
324
- "appearance-none"
325
- ]
326
- }),
327
- trigger: {
328
- class: [
329
- // Flexbox
330
- "flex items-center justify-center",
331
- "shrink-0",
332
- // Color and Background
333
- "bg-transparent",
334
- "text-surface-500",
335
- // Size
336
- "w-12",
337
- // Shape
338
- "rounded-tr-md",
339
- "rounded-br-md"
340
- ]
341
- },
342
- panel: {
343
- class: [
344
- // Position
345
- "absolute top-0 left-0",
346
- // Shape
347
- "border-0 dark:border",
348
- "rounded-md",
349
- "shadow-md",
350
- // Color
351
- "bg-surface-0 dark:bg-surface-800",
352
- "text-surface-800 dark:text-white/80",
353
- "dark:border-surface-700"
354
- ]
355
- },
356
- item: ({ context: e }) => ({
357
- class: [
358
- // Font
359
- "font-normal",
360
- "leading-none",
361
- // Position
362
- "relative",
363
- // Shape
364
- "border-0",
365
- "rounded-none",
366
- // Spacing
367
- "m-0",
368
- "py-3 px-5",
369
- // Color
370
- { "text-surface-700 dark:text-white/80": !e.focused && !e.selected },
371
- { "bg-surface-50 dark:bg-surface-600/60 text-surface-700 dark:text-white/80": e.focused && !e.selected },
372
- { "bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80": e.focused && e.selected },
373
- { "bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80": !e.focused && e.selected },
374
- //States
375
- { "hover:bg-surface-100 dark:hover:bg-surface-600/80": !e.focused && !e.selected },
376
- { "hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80": e.focused && !e.selected },
377
- // Transitions
378
- "transition-shadow",
379
- "duration-200",
380
- // Misc
381
- "cursor-pointer",
382
- "overflow-hidden",
383
- "whitespace-nowrap"
384
- ]
385
- })
192
+ between(n, i) {
193
+ return z(() => `(min-width: ${o(n)}) and (max-width: ${o(i, -0.1)})`, v);
386
194
  },
387
- filterconstraint: {
388
- class: [
389
- // Spacing
390
- "py-3 px-5",
391
- // Shape
392
- "border-b border-solid",
393
- // Color
394
- "border-surface-200 dark:border-surface-700"
395
- ]
195
+ isGreater(n) {
196
+ return r("min", o(n, 0.1));
396
197
  },
397
- filteraddrule: {
398
- class: "py-3 px-5"
198
+ isGreaterOrEqual(n) {
199
+ return r("min", o(n));
399
200
  },
400
- filteraddrulebutton: {
401
- root: {
402
- class: [
403
- "relative",
404
- // Alignments
405
- "items-center inline-flex text-center align-bottom justify-center",
406
- // Sizes & Spacing
407
- "text-sm py-2 px-3 w-full",
408
- // Shape
409
- "rounded-md",
410
- "bg-transparent border-transparent",
411
- "text-primary-500 dark:text-primary-400",
412
- "hover:bg-primary-300/20",
413
- // Transitions
414
- "transition duration-200 ease-in-out",
415
- // Misc
416
- "cursor-pointer overflow-hidden select-none"
417
- ]
418
- },
419
- label: {
420
- class: "flex-auto grow-0"
421
- },
422
- icon: {
423
- class: "mr-2"
424
- }
201
+ isSmaller(n) {
202
+ return r("max", o(n, -0.1));
425
203
  },
426
- filterremovebutton: {
427
- root: {
428
- class: [
429
- "relative",
430
- // Alignments
431
- "items-center inline-flex text-center align-bottom justify-center",
432
- // Sizes & Spacing
433
- "text-sm py-2 px-3 w-full mt-2",
434
- // Shape
435
- "rounded-md",
436
- "bg-transparent border-transparent",
437
- "text-red-500 dark:text-red-400",
438
- "hover:bg-red-300/20",
439
- // Transitions
440
- "transition duration-200 ease-in-out",
441
- // Misc
442
- "cursor-pointer overflow-hidden select-none"
443
- ]
444
- },
445
- label: {
446
- class: "flex-auto grow-0"
447
- },
448
- icon: {
449
- class: "mr-2"
450
- }
204
+ isSmallerOrEqual(n) {
205
+ return r("max", o(n));
451
206
  },
452
- filterbuttonbar: {
453
- class: [
454
- // Flex & Alignment
455
- "flex items-center justify-between",
456
- // Space
457
- "py-3 px-5"
458
- ]
207
+ isInBetween(n, i) {
208
+ return r("min", o(n)) && r("max", o(i, -0.1));
459
209
  },
460
- filterclearbutton: {
461
- root: {
462
- class: [
463
- "relative",
464
- // Alignments
465
- "items-center inline-flex text-center align-bottom justify-center",
466
- // Sizes & Spacing
467
- "text-sm py-2 px-3",
468
- // Shape
469
- "rounded-md",
470
- "text-primary-500 border border-primary-500",
471
- "hover:bg-primary-300/20",
472
- // Transitions
473
- "transition duration-200 ease-in-out",
474
- // Misc
475
- "cursor-pointer overflow-hidden select-none"
476
- ]
210
+ current: y,
211
+ active() {
212
+ const n = y();
213
+ return A(() => n.value.length === 0 ? "" : n.value.at(d === "min-width" ? -1 : 0));
214
+ }
215
+ });
216
+ }
217
+ function xe(t, v = {}) {
218
+ const o = T(!1), l = T(null);
219
+ let d = 0, u = !0;
220
+ if (K) {
221
+ var m, h;
222
+ const r = typeof v == "function" ? { onDrop: v } : v, p = (m = r.multiple) !== null && m !== void 0 ? m : !0, f = (h = r.preventDefaultForUnhandled) !== null && h !== void 0 ? h : !1, b = (e) => {
223
+ var s, c;
224
+ const w = Array.from((s = (c = e.dataTransfer) === null || c === void 0 ? void 0 : c.files) !== null && s !== void 0 ? s : []);
225
+ return w.length === 0 ? null : p ? w : [w[0]];
226
+ }, y = (e) => {
227
+ const s = te(r.dataTypes);
228
+ return typeof s == "function" ? s(e) : s?.length ? e.length === 0 ? !1 : e.every((c) => s.some((w) => c.includes(w))) : !0;
229
+ }, n = (e) => {
230
+ if (r.checkValidity) return r.checkValidity(e);
231
+ const s = y(Array.from(e ?? []).map((w) => w.type)), c = p || e.length <= 1;
232
+ return s && c;
233
+ }, i = () => /^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent) && !("chrome" in window), E = (e, s) => {
234
+ var c, w;
235
+ const x = (c = e.dataTransfer) === null || c === void 0 ? void 0 : c.items;
236
+ if (u = (w = x && n(x)) !== null && w !== void 0 ? w : !1, f && e.preventDefault(), !i() && !u) {
237
+ e.dataTransfer && (e.dataTransfer.dropEffect = "none");
238
+ return;
477
239
  }
478
- },
479
- filterapplybutton: {
480
- root: {
481
- class: [
482
- "relative",
483
- // Alignments
484
- "items-center inline-flex text-center align-bottom justify-center",
485
- // Sizes & Spacing
486
- "text-sm py-2 px-3",
487
- // Shape
488
- "rounded-md",
489
- "text-white dark:text-surface-900",
490
- "bg-primary-500 dark:bg-primary-400",
491
- "hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300",
492
- // Transitions
493
- "transition duration-200 ease-in-out",
494
- // Misc
495
- "cursor-pointer overflow-hidden select-none"
496
- ]
240
+ e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "copy");
241
+ const L = b(e);
242
+ switch (s) {
243
+ case "enter":
244
+ var V;
245
+ d += 1, o.value = !0, (V = r.onEnter) === null || V === void 0 || V.call(r, null, e);
246
+ break;
247
+ case "over":
248
+ var g;
249
+ (g = r.onOver) === null || g === void 0 || g.call(r, null, e);
250
+ break;
251
+ case "leave":
252
+ var M;
253
+ d -= 1, d === 0 && (o.value = !1), (M = r.onLeave) === null || M === void 0 || M.call(r, null, e);
254
+ break;
255
+ case "drop":
256
+ if (d = 0, o.value = !1, u) {
257
+ var a;
258
+ l.value = L, (a = r.onDrop) === null || a === void 0 || a.call(r, L, e);
259
+ }
260
+ break;
497
261
  }
262
+ };
263
+ O(t, "dragenter", (e) => E(e, "enter")), O(t, "dragover", (e) => E(e, "over")), O(t, "dragleave", (e) => E(e, "leave")), O(t, "drop", (e) => E(e, "drop"));
264
+ }
265
+ return {
266
+ files: l,
267
+ isOverDropZone: o
268
+ };
269
+ }
270
+ function be(t, v, o = {}) {
271
+ const { window: l = C, ...d } = o;
272
+ let u;
273
+ const m = /* @__PURE__ */ q(() => l && "ResizeObserver" in l), h = () => {
274
+ u && (u.disconnect(), u = void 0);
275
+ }, r = _(A(() => {
276
+ const f = S(t);
277
+ return Array.isArray(f) ? f.map((b) => W(b)) : [W(f)];
278
+ }), (f) => {
279
+ if (h(), m.value && l) {
280
+ u = new ResizeObserver(v);
281
+ for (const b of f) b && u.observe(b, d);
282
+ }
283
+ }, {
284
+ immediate: !0,
285
+ flush: "post"
286
+ }), p = () => {
287
+ h(), r();
288
+ };
289
+ return ee(p), {
290
+ isSupported: m,
291
+ stop: p
292
+ };
293
+ }
294
+ function Me(t, v = {}) {
295
+ const { reset: o = !0, windowResize: l = !0, windowScroll: d = !0, immediate: u = !0, updateTiming: m = "sync" } = v, h = T(0), r = T(0), p = T(0), f = T(0), b = T(0), y = T(0), n = T(0), i = T(0);
296
+ function E() {
297
+ const s = W(t);
298
+ if (!s) {
299
+ o && (h.value = 0, r.value = 0, p.value = 0, f.value = 0, b.value = 0, y.value = 0, n.value = 0, i.value = 0);
300
+ return;
301
+ }
302
+ const c = s.getBoundingClientRect();
303
+ h.value = c.height, r.value = c.bottom, p.value = c.left, f.value = c.right, b.value = c.top, y.value = c.width, n.value = c.x, i.value = c.y;
304
+ }
305
+ function e() {
306
+ m === "sync" ? E() : m === "next-frame" && requestAnimationFrame(() => E());
307
+ }
308
+ return be(t, e), _(() => W(t), (s) => !s && e()), ne(t, e, { attributeFilter: ["style", "class"] }), d && O("scroll", e, {
309
+ capture: !0,
310
+ passive: !0
311
+ }), l && O("resize", e, { passive: !0 }), U(() => {
312
+ u && e();
313
+ }), {
314
+ height: h,
315
+ bottom: r,
316
+ left: p,
317
+ right: f,
318
+ top: b,
319
+ width: y,
320
+ x: n,
321
+ y: i,
322
+ update: e
323
+ };
324
+ }
325
+ const J = 1;
326
+ function we(t, v = {}) {
327
+ const { throttle: o = 0, idle: l = 200, onStop: d = j, onScroll: u = j, offset: m = {
328
+ left: 0,
329
+ right: 0,
330
+ top: 0,
331
+ bottom: 0
332
+ }, observe: h = { mutation: !1 }, eventListenerOptions: r = {
333
+ capture: !1,
334
+ passive: !0
335
+ }, behavior: p = "auto", window: f = C, onError: b = (a) => {
336
+ console.error(a);
337
+ } } = v, y = typeof h == "boolean" ? { mutation: h } : h, n = T(0), i = T(0), E = A({
338
+ get() {
339
+ return n.value;
498
340
  },
499
- filtermenubutton: ({ context: e }) => ({
500
- class: [
501
- "relative",
502
- // Flex & Alignment
503
- "inline-flex items-center justify-center",
504
- // Size
505
- "w-8 h-8",
506
- // Spacing
507
- "ml-2",
508
- // Shape
509
- "rounded-full",
510
- // Color
511
- { "bg-primary-50 text-primary-700": e.active },
512
- "dark:text-white/70 dark:hover:text-white/80 dark:bg-surface-800",
513
- // States
514
- "hover:text-surface-700 hover:bg-surface-300/20",
515
- "focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
516
- // Transition
517
- "transition duration-200",
518
- // Misc
519
- "cursor-pointer no-underline overflow-hidden"
520
- ]
521
- }),
522
- headerfilterclearbutton: ({ context: e }) => ({
523
- class: [
524
- "relative",
525
- // Flex & Alignment
526
- "inline-flex items-center justify-center",
527
- "text-left",
528
- // Shape
529
- "border-none",
530
- // Spacing
531
- "m-0 p-0 ml-2",
532
- // Color
533
- "bg-transparent",
534
- // Misc
535
- "cursor-pointer no-underline overflow-hidden select-none",
536
- {
537
- invisible: !e.hidden
538
- }
539
- ]
540
- }),
541
- rowtoggler: {
542
- class: [
543
- "relative",
544
- // Flex & Alignment
545
- "inline-flex items-center justify-center",
546
- "text-left",
547
- // Spacing
548
- "m-0 p-0",
549
- // Size
550
- "w-8 h-8",
551
- // Shape
552
- "border-0 rounded-full",
553
- // Color
554
- "text-surface-500 dark:text-white/70",
555
- "bg-transparent",
556
- "focus-visible:outline-none focus-visible:outline-offset-0",
557
- "focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
558
- // Transition
559
- "transition duration-200",
560
- // Misc
561
- "overflow-hidden",
562
- "cursor-pointer select-none"
563
- ]
564
- },
565
- columnresizer: {
566
- class: [
567
- "block",
568
- // Position
569
- "absolute top-0 right-0",
570
- // Sizing
571
- "w-2 h-full",
572
- // Spacing
573
- "m-0 p-0",
574
- // Color
575
- "border border-transparent",
576
- // Misc
577
- "cursor-col-resize"
578
- ]
579
- },
580
- rowreordericon: {
581
- class: "cursor-move"
582
- },
583
- roweditorinitbutton: {
584
- class: [
585
- "relative",
586
- // Flex & Alignment
587
- "inline-flex items-center justify-center",
588
- "text-left",
589
- // Size
590
- "w-8 h-8",
591
- // Shape
592
- "border-0 rounded-full",
593
- // Color
594
- "text-surface-700 dark:text-white/70",
595
- "border-transparent",
596
- // States
597
- "focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
598
- "hover:text-surface-700 hover:bg-surface-300/20",
599
- // Transition
600
- "transition duration-200",
601
- // Misc
602
- "overflow-hidden",
603
- "cursor-pointer select-none"
604
- ]
605
- },
606
- roweditorsavebutton: {
607
- class: [
608
- "relative",
609
- // Flex & Alignment
610
- "inline-flex items-center justify-center",
611
- "text-left",
612
- // Size
613
- "w-8 h-8",
614
- // Shape
615
- "border-0 rounded-full",
616
- // Color
617
- "text-surface-700 dark:text-white/70",
618
- "border-transparent",
619
- // States
620
- "focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
621
- "hover:text-surface-700 hover:bg-surface-300/20",
622
- // Transition
623
- "transition duration-200",
624
- // Misc
625
- "overflow-hidden",
626
- "cursor-pointer select-none"
627
- ]
628
- },
629
- roweditorcancelbutton: {
630
- class: [
631
- "relative",
632
- // Flex & Alignment
633
- "inline-flex items-center justify-center",
634
- "text-left",
635
- // Size
636
- "w-8 h-8",
637
- // Shape
638
- "border-0 rounded-full",
639
- // Color
640
- "text-surface-700 dark:text-white/70",
641
- "border-transparent",
642
- // States
643
- "focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
644
- "hover:text-surface-700 hover:bg-surface-300/20",
645
- // Transition
646
- "transition duration-200",
647
- // Misc
648
- "overflow-hidden",
649
- "cursor-pointer select-none"
650
- ]
651
- },
652
- radiobuttonwrapper: {
653
- class: [
654
- "relative",
655
- // Flex & Alignment
656
- "inline-flex align-bottom",
657
- // Size
658
- "w-6 h-6",
659
- // Misc
660
- "cursor-pointer select-none"
661
- ]
662
- },
663
- radiobutton: ({ context: e }) => ({
664
- class: [
665
- // Flexbox
666
- "flex justify-center items-center",
667
- // Size
668
- "w-[1.571rem] h-[1.571rem]",
669
- // Shape
670
- "border-2 rounded-full",
671
- // Color
672
- { "text-surface-700 dark:text-white/80": !e.checked },
673
- { "bg-surface-0 dark:bg-surface-900": !e.checked },
674
- { "border-surface-300 dark:border-surface-700": !e.checked },
675
- { "border-primary-500 dark:border-primary-400": e.checked },
676
- { "bg-primary-500 dark:bg-primary-400": e.checked },
677
- // States
678
- { "hover:border-primary-500 dark:hover:border-primary-400": !e.disabled },
679
- { "outline-none outline-offset-0 ring ring-primary-400/50 ring-inset dark:ring-primary-300/50": e.focused },
680
- // Transition
681
- "transition duration-200 ease-in-out",
682
- // Misc
683
- { "cursor-default opacity-60": e.disabled }
684
- ]
685
- }),
686
- radiobuttonicon: ({ context: e }) => ({
687
- class: [
688
- "block",
689
- // Shape
690
- "rounded-full",
691
- // Size
692
- "w-3 h-3",
693
- // Color
694
- "bg-surface-0 dark:bg-surface-900",
695
- // Transition
696
- "transition duration-200 transform",
697
- {
698
- "backface-hidden scale-10 invisible": e.checked === !1,
699
- "transform scale-100 visible": e.checked === !0
700
- }
701
- ]
702
- }),
703
- headercheckboxwrapper: {
704
- class: [
705
- "relative",
706
- // Flex & Alignment
707
- "inline-flex align-bottom",
708
- // Size
709
- "w-6 h-6",
710
- // Misc
711
- "cursor-pointer select-none"
712
- ]
713
- },
714
- headercheckbox: ({ context: e }) => ({
715
- class: [
716
- // Flex & Alignment
717
- "flex items-center justify-center",
718
- // Shape
719
- "border-2 rounded-lg",
720
- // Size
721
- "w-6 h-6",
722
- // Color
723
- "text-surface-600",
724
- {
725
- "border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900": !e.checked,
726
- "border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400": e.checked
727
- },
728
- // States
729
- "focus:outline-none focus:outline-offset-0",
730
- {
731
- "ring ring-primary-400/50 dark:ring-primary-300/50": e.focused
732
- },
733
- // Transition
734
- "transition-colors duration-200",
735
- // Misc
736
- { "cursor-default opacity-60": e.disabled }
737
- ]
738
- }),
739
- headercheckboxicon: {
740
- class: [
741
- // Size
742
- "w-4 h-4",
743
- "text-base leading-none",
744
- // Color
745
- "text-white dark:text-surface-900",
746
- // Transition
747
- "transition-all duration-200"
748
- ]
749
- },
750
- checkboxwrapper: {
751
- class: [
752
- "relative",
753
- // Flex & Alignment
754
- "inline-flex align-bottom",
755
- // Size
756
- "w-6 h-6",
757
- // Misc
758
- "cursor-pointer select-none"
759
- ]
760
- },
761
- checkbox: ({ context: e }) => ({
762
- class: [
763
- // Flex & Alignment
764
- "flex items-center justify-center",
765
- // Shape
766
- "border-2 rounded-lg",
767
- // Size
768
- "w-6 h-6",
769
- // Color
770
- "text-surface-600",
771
- {
772
- "border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900": !e.checked,
773
- "border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400": e.checked
774
- },
775
- // States
776
- "focus:outline-none focus:outline-offset-0",
777
- {
778
- "ring ring-primary-400/50 dark:ring-primary-300/50": e.focused
779
- },
780
- // Transition
781
- "transition-colors duration-200",
782
- // Misc
783
- { "cursor-default opacity-60": e.disabled }
784
- ]
785
- }),
786
- checkboxicon: {
787
- class: [
788
- // Size
789
- "w-4 h-4",
790
- "text-base leading-none",
791
- // Color
792
- "text-white dark:text-surface-900",
793
- // Transition
794
- "transition-all duration-200"
795
- ]
341
+ set(a) {
342
+ s(a, void 0);
343
+ }
344
+ }), e = A({
345
+ get() {
346
+ return i.value;
796
347
  },
797
- transition: {
798
- enterFromClass: "opacity-0 scale-y-[0.8]",
799
- enterActiveClass: "transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
800
- leaveActiveClass: "transition-opacity duration-100 ease-linear",
801
- leaveToClass: "opacity-0"
348
+ set(a) {
349
+ s(void 0, a);
802
350
  }
803
- },
804
- bodyrow: ({ context: e, props: r }) => ({
805
- class: [
806
- // Color
807
- "dark:text-white/80",
808
- { "bg-primary-50 text-primary-600 dark:bg-primary-400/30": e.selected },
809
- { "bg-surface-0 text-surface-600 dark:bg-surface-800": !e.selected },
810
- { "font-bold bg-surface-0 dark:bg-surface-800": r.frozenRow },
811
- { "odd:bg-surface-0 odd:text-surface-600 dark:odd:bg-surface-800 even:bg-surface-50 even:text-surface-600 dark:even:bg-surface-900/50": e.stripedRows },
812
- // State
813
- // { 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 ring-inset dark:focus:ring-primary-300/50': context.selectable },
814
- { "hover:bg-surface-300/20 hover:text-surface-600": r.selectionMode && !e.selected },
815
- // Transition
816
- { "transition duration-200": r.selectionMode && !e.selected || r.rowHover },
817
- // Misc
818
- { "cursor-pointer": r.selectionMode }
819
- ]
820
- }),
821
- rowexpansion: {
822
- class: "bg-surface-0 dark:bg-surface-800 text-surface-600 dark:text-white/80"
823
- },
824
- rowgroupheader: {
825
- class: ["sticky z-20", "bg-surface-0 text-surface-600 dark:text-white/70", "dark:bg-surface-800"]
826
- },
827
- rowgroupfooter: {
828
- class: ["sticky z-20", "bg-surface-0 text-surface-600 dark:text-white/70", "dark:bg-surface-800"]
829
- },
830
- rowgrouptoggler: {
831
- class: [
832
- "relative",
833
- // Flex & Alignment
834
- "inline-flex items-center justify-center",
835
- "text-left",
836
- // Spacing
837
- "m-0 p-0",
838
- // Size
839
- "w-8 h-8",
840
- // Shape
841
- "border-0 rounded-full",
842
- // Color
843
- "text-surface-500 dark:text-white/70",
844
- "bg-transparent",
845
- "focus-visible:outline-none focus-visible:outline-offset-0",
846
- "focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
847
- // Transition
848
- "transition duration-200",
849
- // Misc
850
- "overflow-hidden",
851
- "cursor-pointer select-none"
852
- ]
853
- },
854
- rowgrouptogglericon: {
855
- class: "inline-block w-4 h-4"
856
- },
857
- resizehelper: {
858
- class: "absolute hidden w-[2px] z-20 bg-primary-500 dark:bg-primary-400"
351
+ });
352
+ function s(a, D) {
353
+ var R, P, I, B;
354
+ if (!f) return;
355
+ const $ = S(t);
356
+ if (!$) return;
357
+ (R = $ instanceof Document ? f.document.body : $) === null || R === void 0 || R.scrollTo({
358
+ top: (P = S(D)) !== null && P !== void 0 ? P : e.value,
359
+ left: (I = S(a)) !== null && I !== void 0 ? I : E.value,
360
+ behavior: S(p)
361
+ });
362
+ const F = ($ == null || (B = $.document) === null || B === void 0 ? void 0 : B.documentElement) || $?.documentElement || $;
363
+ E != null && (n.value = F.scrollLeft), e != null && (i.value = F.scrollTop);
859
364
  }
860
- };
365
+ const c = T(!1), w = Y({
366
+ left: !0,
367
+ right: !1,
368
+ top: !0,
369
+ bottom: !1
370
+ }), x = Y({
371
+ left: !1,
372
+ right: !1,
373
+ top: !1,
374
+ bottom: !1
375
+ }), L = (a) => {
376
+ c.value && (c.value = !1, x.left = !1, x.right = !1, x.top = !1, x.bottom = !1, d(a));
377
+ }, V = ce(L, o + l), g = (a) => {
378
+ var D;
379
+ if (!f) return;
380
+ const R = (a == null || (D = a.document) === null || D === void 0 ? void 0 : D.documentElement) || a?.documentElement || W(a), { display: P, flexDirection: I, direction: B } = f.getComputedStyle(R), $ = B === "rtl" ? -1 : 1, F = R.scrollLeft;
381
+ x.left = F < n.value, x.right = F > n.value;
382
+ const G = Math.abs(F * $) <= (m.left || 0), N = Math.abs(F * $) + R.clientWidth >= R.scrollWidth - (m.right || 0) - J;
383
+ P === "flex" && I === "row-reverse" ? (w.left = N, w.right = G) : (w.left = G, w.right = N), n.value = F;
384
+ let k = R.scrollTop;
385
+ a === f.document && !k && (k = f.document.body.scrollTop), x.top = k < i.value, x.bottom = k > i.value;
386
+ const Q = Math.abs(k) <= (m.top || 0), Z = Math.abs(k) + R.clientHeight >= R.scrollHeight - (m.bottom || 0) - J;
387
+ P === "flex" && I === "column-reverse" ? (w.top = Z, w.bottom = Q) : (w.top = Q, w.bottom = Z), i.value = k;
388
+ }, M = (a) => {
389
+ var D;
390
+ f && (g((D = a.target.documentElement) !== null && D !== void 0 ? D : a.target), c.value = !0, V(a), u(a));
391
+ };
392
+ return O(t, "scroll", o ? ae(M, o, !0, !1) : M, r), U(() => {
393
+ try {
394
+ const a = S(t);
395
+ if (!a) return;
396
+ g(a);
397
+ } catch (a) {
398
+ b(a);
399
+ }
400
+ }), y?.mutation && t != null && t !== f && t !== document && ne(t, () => {
401
+ const a = S(t);
402
+ a && g(a);
403
+ }, {
404
+ attributes: !0,
405
+ childList: !0,
406
+ subtree: !0
407
+ }), O(t, "scrollend", L, r), {
408
+ x: E,
409
+ y: e,
410
+ isScrolling: c,
411
+ arrivedState: w,
412
+ directions: x,
413
+ measure() {
414
+ const a = S(t);
415
+ f && a && g(a);
416
+ }
417
+ };
418
+ }
419
+ function Oe(t, v = {}) {
420
+ const { threshold: o = 50, onSwipe: l, onSwipeEnd: d, onSwipeStart: u, passive: m = !0 } = v, h = Y({
421
+ x: 0,
422
+ y: 0
423
+ }), r = Y({
424
+ x: 0,
425
+ y: 0
426
+ }), p = A(() => h.x - r.x), f = A(() => h.y - r.y), { max: b, abs: y } = Math, n = A(() => b(y(p.value), y(f.value)) >= o), i = T(!1), E = A(() => n.value ? y(p.value) > y(f.value) ? p.value > 0 ? "left" : "right" : f.value > 0 ? "up" : "down" : "none"), e = (g) => [g.touches[0].clientX, g.touches[0].clientY], s = (g, M) => {
427
+ h.x = g, h.y = M;
428
+ }, c = (g, M) => {
429
+ r.x = g, r.y = M;
430
+ }, w = {
431
+ passive: m,
432
+ capture: !m
433
+ }, x = (g) => {
434
+ i.value && d?.(g, E.value), i.value = !1;
435
+ }, L = [
436
+ O(t, "touchstart", (g) => {
437
+ if (g.touches.length !== 1) return;
438
+ const [M, a] = e(g);
439
+ s(M, a), c(M, a), u?.(g);
440
+ }, w),
441
+ O(t, "touchmove", (g) => {
442
+ if (g.touches.length !== 1) return;
443
+ const [M, a] = e(g);
444
+ c(M, a), w.capture && !w.passive && Math.abs(p.value) > Math.abs(f.value) && g.preventDefault(), !i.value && n.value && (i.value = !0), i.value && l?.(g);
445
+ }, w),
446
+ O(t, ["touchend", "touchcancel"], x, w)
447
+ ];
448
+ return {
449
+ isSwiping: i,
450
+ direction: E,
451
+ coordsStart: h,
452
+ coordsEnd: r,
453
+ lengthX: p,
454
+ lengthY: f,
455
+ stop: () => L.forEach((g) => g())
456
+ };
457
+ }
458
+ function $e(t = {}) {
459
+ const { window: v = C, ...o } = t;
460
+ return we(v, o);
461
+ }
861
462
  export {
862
- o as default
463
+ Se as breakpointsTailwind,
464
+ We as createFilterWrapper,
465
+ De as debounceFilter,
466
+ C as defaultWindow,
467
+ Fe as getLifeCycleTarget,
468
+ se as increaseWithUnit,
469
+ ue as injectLocal,
470
+ K as isClient,
471
+ ie as isObject,
472
+ j as noop,
473
+ le as notNullish,
474
+ Ee as onClickOutside,
475
+ H as pxValue,
476
+ Ce as throttleFilter,
477
+ X as toArray,
478
+ U as tryOnMounted,
479
+ ee as tryOnScopeDispose,
480
+ W as unrefElement,
481
+ Te as useBreakpoints,
482
+ ce as useDebounceFn,
483
+ xe as useDropZone,
484
+ Me as useElementBounding,
485
+ O as useEventListener,
486
+ z as useMediaQuery,
487
+ he as useMounted,
488
+ ne as useMutationObserver,
489
+ be as useResizeObserver,
490
+ oe as useSSRWidth,
491
+ we as useScroll,
492
+ q as useSupported,
493
+ Oe as useSwipe,
494
+ ae as useThrottleFn,
495
+ $e as useWindowScroll,
496
+ re as watchImmediate
863
497
  };