bitboss-ui 2.0.21 → 2.0.22

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 (247) hide show
  1. package/dist/index107.js +5 -5
  2. package/dist/index115.js +1 -1
  3. package/dist/index117.js +5 -5
  4. package/dist/index119.js +1 -1
  5. package/dist/index123.js +1 -1
  6. package/dist/index124.js +1 -1
  7. package/dist/index125.js +1 -1
  8. package/dist/index127.js +1 -1
  9. package/dist/index129.js +2 -2
  10. package/dist/index130.js +1 -1
  11. package/dist/index14.js +1 -1
  12. package/dist/index16.js +3 -3
  13. package/dist/index18.js +2 -2
  14. package/dist/index199.js +81 -2
  15. package/dist/index199.js.map +1 -1
  16. package/dist/index20.js +14 -14
  17. package/dist/index200.js +8 -5
  18. package/dist/index200.js.map +1 -1
  19. package/dist/index201.js +3 -16
  20. package/dist/index201.js.map +1 -1
  21. package/dist/index202.js +2 -16
  22. package/dist/index202.js.map +1 -1
  23. package/dist/index203.js +44 -19
  24. package/dist/index203.js.map +1 -1
  25. package/dist/index205.js +13 -27
  26. package/dist/index205.js.map +1 -1
  27. package/dist/index206.js +158 -3
  28. package/dist/index206.js.map +1 -1
  29. package/dist/index207.js +84 -2
  30. package/dist/index207.js.map +1 -1
  31. package/dist/index209.js +3 -249
  32. package/dist/index209.js.map +1 -1
  33. package/dist/index210.js +35 -52
  34. package/dist/index210.js.map +1 -1
  35. package/dist/index211.js +5 -43
  36. package/dist/index211.js.map +1 -1
  37. package/dist/index212.js +7 -5
  38. package/dist/index212.js.map +1 -1
  39. package/dist/index213.js +281 -49
  40. package/dist/index213.js.map +1 -1
  41. package/dist/index214.js +14 -124
  42. package/dist/index214.js.map +1 -1
  43. package/dist/index215.js +13 -120
  44. package/dist/index215.js.map +1 -1
  45. package/dist/index216.js +19 -2
  46. package/dist/index216.js.map +1 -1
  47. package/dist/index217.js +19 -35
  48. package/dist/index217.js.map +1 -1
  49. package/dist/index218.js +25 -172
  50. package/dist/index218.js.map +1 -1
  51. package/dist/index219.js +3 -6
  52. package/dist/index219.js.map +1 -1
  53. package/dist/index22.js +15 -15
  54. package/dist/index220.js +2 -44
  55. package/dist/index220.js.map +1 -1
  56. package/dist/index221.js +252 -0
  57. package/dist/index221.js.map +1 -0
  58. package/dist/index222.js +52 -13
  59. package/dist/index222.js.map +1 -1
  60. package/dist/index223.js +44 -5
  61. package/dist/index223.js.map +1 -1
  62. package/dist/index224.js +5 -369
  63. package/dist/index224.js.map +1 -1
  64. package/dist/index225.js +48 -80
  65. package/dist/index225.js.map +1 -1
  66. package/dist/index226.js +2 -3
  67. package/dist/index226.js.map +1 -1
  68. package/dist/index227.js +4 -7
  69. package/dist/index227.js.map +1 -1
  70. package/dist/index228.js +2 -158
  71. package/dist/index228.js.map +1 -1
  72. package/dist/index229.js +125 -83
  73. package/dist/index229.js.map +1 -1
  74. package/dist/index230.js +126 -0
  75. package/dist/index230.js.map +1 -0
  76. package/dist/index231.js +2 -2
  77. package/dist/index231.js.map +1 -1
  78. package/dist/index232.js +174 -4
  79. package/dist/index232.js.map +1 -1
  80. package/dist/index233.js +5 -2
  81. package/dist/index233.js.map +1 -1
  82. package/dist/index234.js +369 -3
  83. package/dist/index234.js.map +1 -1
  84. package/dist/index235.js +2 -2
  85. package/dist/index235.js.map +1 -1
  86. package/dist/index236.js +2 -18
  87. package/dist/index236.js.map +1 -1
  88. package/dist/index237.js +17 -105
  89. package/dist/index237.js.map +1 -1
  90. package/dist/index238.js +109 -0
  91. package/dist/index238.js.map +1 -0
  92. package/dist/index24.js +5 -5
  93. package/dist/{index239.js → index240.js} +2 -2
  94. package/dist/{index239.js.map → index240.js.map} +1 -1
  95. package/dist/index244.js +6 -3
  96. package/dist/index244.js.map +1 -1
  97. package/dist/index245.js +15 -8
  98. package/dist/index245.js.map +1 -1
  99. package/dist/index246.js +9 -23
  100. package/dist/index246.js.map +1 -1
  101. package/dist/index247.js +3 -281
  102. package/dist/index247.js.map +1 -1
  103. package/dist/index248.js +9 -6
  104. package/dist/index248.js.map +1 -1
  105. package/dist/index249.js +23 -2
  106. package/dist/index249.js.map +1 -1
  107. package/dist/index250.js +224 -2
  108. package/dist/index250.js.map +1 -1
  109. package/dist/index251.js +3 -2
  110. package/dist/index251.js.map +1 -1
  111. package/dist/index253.js +7 -2
  112. package/dist/index253.js.map +1 -1
  113. package/dist/index254.js +3 -2
  114. package/dist/index254.js.map +1 -1
  115. package/dist/index255.js +12 -2
  116. package/dist/index255.js.map +1 -1
  117. package/dist/index256.js +9 -2
  118. package/dist/index256.js.map +1 -1
  119. package/dist/index257.js +9 -2
  120. package/dist/index257.js.map +1 -1
  121. package/dist/index258.js +17 -2
  122. package/dist/index258.js.map +1 -1
  123. package/dist/index259.js +2 -28
  124. package/dist/index259.js.map +1 -1
  125. package/dist/index26.js +1 -1
  126. package/dist/index260.js +61 -17
  127. package/dist/index260.js.map +1 -1
  128. package/dist/index261.js +8 -0
  129. package/dist/index261.js.map +1 -0
  130. package/dist/index262.js +429 -5
  131. package/dist/index262.js.map +1 -1
  132. package/dist/index263.js +89 -6
  133. package/dist/index263.js.map +1 -1
  134. package/dist/index264.js +6 -16
  135. package/dist/index264.js.map +1 -1
  136. package/dist/index265.js +2 -2
  137. package/dist/index266.js +2 -126
  138. package/dist/index266.js.map +1 -1
  139. package/dist/index267.js +2 -431
  140. package/dist/index267.js.map +1 -1
  141. package/dist/index268.js +2 -3
  142. package/dist/index268.js.map +1 -1
  143. package/dist/{index252.js → index269.js} +1 -1
  144. package/dist/index269.js.map +1 -0
  145. package/dist/index270.js +2 -22
  146. package/dist/index270.js.map +1 -1
  147. package/dist/index271.js +5 -0
  148. package/dist/index271.js.map +1 -0
  149. package/dist/index272.js +2 -89
  150. package/dist/index272.js.map +1 -1
  151. package/dist/index273.js +2 -200
  152. package/dist/index273.js.map +1 -1
  153. package/dist/index274.js +2 -436
  154. package/dist/index274.js.map +1 -1
  155. package/dist/index275.js +26 -125
  156. package/dist/index275.js.map +1 -1
  157. package/dist/index276.js +22 -3
  158. package/dist/index276.js.map +1 -1
  159. package/dist/index278.js +199 -8
  160. package/dist/index278.js.map +1 -1
  161. package/dist/index279.js +4 -9
  162. package/dist/index279.js.map +1 -1
  163. package/dist/index28.js +3 -3
  164. package/dist/index280.js +2 -17
  165. package/dist/index280.js.map +1 -1
  166. package/dist/index281.js +126 -4
  167. package/dist/index281.js.map +1 -1
  168. package/dist/index282.js +22 -9
  169. package/dist/index282.js.map +1 -1
  170. package/dist/index284.js +436 -2
  171. package/dist/index284.js.map +1 -1
  172. package/dist/index285.js +126 -65
  173. package/dist/index285.js.map +1 -1
  174. package/dist/index286.js +1 -1
  175. package/dist/index287.js +1 -1
  176. package/dist/index288.js +2 -2
  177. package/dist/index289.js +15 -5
  178. package/dist/index289.js.map +1 -1
  179. package/dist/index290.js +4 -15
  180. package/dist/index290.js.map +1 -1
  181. package/dist/index291.js +4 -79
  182. package/dist/index291.js.map +1 -1
  183. package/dist/index292.js +62 -0
  184. package/dist/index292.js.map +1 -0
  185. package/dist/index293.js +79 -7
  186. package/dist/index293.js.map +1 -1
  187. package/dist/index295.js +2 -4
  188. package/dist/index295.js.map +1 -1
  189. package/dist/index296.js +11 -4
  190. package/dist/index296.js.map +1 -1
  191. package/dist/index297.js +34 -58
  192. package/dist/index297.js.map +1 -1
  193. package/dist/index298.js +6 -6
  194. package/dist/index298.js.map +1 -1
  195. package/dist/index299.js +18 -34
  196. package/dist/index299.js.map +1 -1
  197. package/dist/index30.js +2 -2
  198. package/dist/index300.js +46 -10
  199. package/dist/index300.js.map +1 -1
  200. package/dist/index301.js +6 -46
  201. package/dist/index301.js.map +1 -1
  202. package/dist/index302.js +480 -2
  203. package/dist/index302.js.map +1 -1
  204. package/dist/index304.js +424 -0
  205. package/dist/index304.js.map +1 -0
  206. package/dist/index305.js +42 -416
  207. package/dist/index305.js.map +1 -1
  208. package/dist/index306.js +2 -47
  209. package/dist/index306.js.map +1 -1
  210. package/dist/index32.js +2 -2
  211. package/dist/index34.js +3 -3
  212. package/dist/index36.js +13 -13
  213. package/dist/index38.js +4 -4
  214. package/dist/index40.js +2 -2
  215. package/dist/index42.js +2 -2
  216. package/dist/index44.js +6 -6
  217. package/dist/index46.js +2 -2
  218. package/dist/index48.js +2 -2
  219. package/dist/index54.js +1 -1
  220. package/dist/index56.js +1 -1
  221. package/dist/index72.js +3 -3
  222. package/dist/index76.js +2 -2
  223. package/dist/index78.js +1 -1
  224. package/dist/index81.js +2 -2
  225. package/dist/index83.js +76 -65
  226. package/dist/index83.js.map +1 -1
  227. package/dist/index85.js +3 -3
  228. package/dist/index87.js +1 -1
  229. package/dist/style.css +1 -1
  230. package/package.json +1 -1
  231. package/dist/index204.js +0 -22
  232. package/dist/index204.js.map +0 -1
  233. package/dist/index208.js +0 -11
  234. package/dist/index208.js.map +0 -1
  235. package/dist/index241.js +0 -5
  236. package/dist/index241.js.map +0 -1
  237. package/dist/index252.js.map +0 -1
  238. package/dist/index277.js +0 -15
  239. package/dist/index277.js.map +0 -1
  240. package/dist/index283.js +0 -227
  241. package/dist/index283.js.map +0 -1
  242. package/dist/index294.js +0 -22
  243. package/dist/index294.js.map +0 -1
  244. package/dist/index303.js +0 -483
  245. package/dist/index303.js.map +0 -1
  246. package/dist/index307.js +0 -5
  247. package/dist/index307.js.map +0 -1
package/dist/index299.js CHANGED
@@ -1,38 +1,22 @@
1
- import { openBlock as t, createElementBlock as e, createElementVNode as o } from "vue";
2
- /* empty css */
3
- import r from "./index262.js";
4
- const n = {}, s = {
5
- class: "bb-error-icon",
6
- fill: "none",
7
- height: "20",
8
- viewBox: "0 0 20 20",
9
- width: "20",
10
- xmlns: "http://www.w3.org/2000/svg"
11
- }, i = /* @__PURE__ */ o("path", {
12
- d: "M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z",
13
- fill: "currentColor"
14
- }, null, -1), c = /* @__PURE__ */ o("path", {
15
- d: "M9.99414 6.66666V9.99999",
16
- stroke: "white",
17
- "stroke-linecap": "round",
18
- "stroke-linejoin": "round",
19
- "stroke-width": "2"
20
- }, null, -1), l = /* @__PURE__ */ o("path", {
21
- d: "M9.99414 13.3333H10.0025",
22
- stroke: "white",
23
- "stroke-linecap": "round",
24
- "stroke-linejoin": "round",
25
- "stroke-width": "2"
26
- }, null, -1), d = [
27
- i,
28
- c,
29
- l
30
- ];
31
- function _(h, a) {
32
- return t(), e("svg", s, d);
1
+ function l(t, ...e) {
2
+ if (t.length) {
3
+ const o = t[0];
4
+ if (typeof o == "string") return [...t].sort(r);
5
+ if (typeof o == "number") return [...t].sort(r);
6
+ if (e && e.length)
7
+ return [...t].sort((f, u) => {
8
+ for (let n = 0; n < e.length; n++) {
9
+ const i = e[n], s = r(f[i], u[i]);
10
+ if (s) return s;
11
+ }
12
+ return 0;
13
+ });
14
+ throw new Error("Invalid comparison");
15
+ }
16
+ return t;
33
17
  }
34
- const w = /* @__PURE__ */ r(n, [["render", _]]);
18
+ const r = (t, e) => t < e ? -1 : t > e ? 1 : 0;
35
19
  export {
36
- w as default
20
+ l as sort
37
21
  };
38
22
  //# sourceMappingURL=index299.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index299.js","sources":["../src/components/ErrorIcon.vue"],"sourcesContent":["<template>\n\t<svg\n\t\tclass=\"bb-error-icon\"\n\t\tfill=\"none\"\n\t\theight=\"20\"\n\t\tviewBox=\"0 0 20 20\"\n\t\twidth=\"20\"\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t>\n\t\t<path\n\t\t\td=\"M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z\"\n\t\t\tfill=\"currentColor\"\n\t\t/>\n\t\t<path\n\t\t\td=\"M9.99414 6.66666V9.99999\"\n\t\t\tstroke=\"white\"\n\t\t\tstroke-linecap=\"round\"\n\t\t\tstroke-linejoin=\"round\"\n\t\t\tstroke-width=\"2\"\n\t\t/>\n\t\t<path\n\t\t\td=\"M9.99414 13.3333H10.0025\"\n\t\t\tstroke=\"white\"\n\t\t\tstroke-linecap=\"round\"\n\t\t\tstroke-linejoin=\"round\"\n\t\t\tstroke-width=\"2\"\n\t\t/>\n\t</svg>\n</template>\n\n<script setup lang=\"ts\"></script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbErrorIcon';\n</style>\n"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","_hoisted_4","_hoisted_5","_cache"],"mappings":";;;cAEEA,IAAqB;AAAA,EACrB,OAAW;AAAA,EACX,MAAM;AAAA,EACN;EACA,SAAU;AAAA,EACV,OAAM;AAAA;GAGgNC,IAAAC,gBAAAA,EAAA,QAAA;AAAA,EACrN,GAAA;AAAA;cAG4BC,IAAAD,gBAAAA,EAAA,QAAA;AAAA,EAC5B,GAAA;AAAA,EACA,QAAA;AAAA,EACA;EACA,mBAAgB;AAAA;cAGYE,IAAAF,gBAAAA,EAAA,QAAA;AAAA,EAC5B,GAAA;AAAA,EACA,QAAA;AAAA,EACA;EACA,mBAAgB;AAAA;cAbfG,IAAA;AAAA,EACFJ;AAAA,EAOAE;AAAA;;cAOKG,GAAA;;;;"}
1
+ {"version":3,"file":"index299.js","sources":["../src/utilities/functions/sort.ts"],"sourcesContent":["import { negative } from './negative';\nimport { pipe } from './pipe';\n\ntype SortableType = string | number | Date;\nexport function sort<T extends SortableType>(arr: T[]): T[];\nexport function sort<T extends object>(arr: T[], ...keys: (keyof T)[]): T[];\n\n/**\n *\n * @param arr Array of objects, strings, or numbers to be sorted\n * @param keys Key of the object to be considered, it must be a string or number\n * @returns The sorted array\n */\nexport function sort<T>(arr: T[], ...keys: (keyof T)[]) {\n\tif (arr.length) {\n\t\tconst first = arr[0];\n\t\tif (typeof first === 'string') return [...arr].sort(getCompare);\n\t\telse if (typeof first === 'number') return [...arr].sort(getCompare);\n\t\telse if (keys && keys.length) {\n\t\t\treturn [...arr].sort((a, b) => {\n\t\t\t\tfor (let index = 0; index < keys.length; index++) {\n\t\t\t\t\tconst key = keys[index];\n\n\t\t\t\t\tconst result = getCompare(a[key], b[key]);\n\t\t\t\t\tif (result) return result;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t});\n\t\t}\n\t\tthrow new Error('Invalid comparison');\n\t}\n\treturn arr;\n}\n\nconst getCompare = (a: any, b: any) => {\n\tif (a < b) return -1;\n\telse if (a > b) return 1;\n\telse return 0;\n};\n\nexport function reverseSort<T extends SortableType>(arr: T[]): T[];\nexport function reverseSort<T extends object>(\n\tarr: T[],\n\t...keys: (keyof T)[]\n): T[];\n\n/**\n *\n * @param arr Array of objects, strings, or numbers to be sorted\n * @param keys Key of the object to be considered, it must be a string or number\n * @returns The sorted array\n */\nexport function reverseSort<T>(arr: T[], ...keys: (keyof T)[]) {\n\tif (arr.length) {\n\t\tconst first = arr[0];\n\t\tif (typeof first === 'string')\n\t\t\treturn [...arr].sort(pipe(getCompare, negative));\n\t\telse if (typeof first === 'number')\n\t\t\treturn [...arr].sort(pipe(getCompare, negative));\n\t\telse if (keys && keys.length) {\n\t\t\treturn [...arr].sort((a, b) => {\n\t\t\t\tfor (let index = 0; index < keys.length; index++) {\n\t\t\t\t\tconst key = keys[index];\n\n\t\t\t\t\tconst result = getCompare(a[key], b[key]);\n\t\t\t\t\tif (result) return result * -1;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t});\n\t\t}\n\t\tthrow new Error('Invalid comparison');\n\t}\n\treturn arr;\n}\n"],"names":["sort","arr","keys","first","getCompare","a","b","index","key","result"],"mappings":"AAagB,SAAAA,EAAQC,MAAaC,GAAmB;AACvD,MAAID,EAAI,QAAQ;AACT,UAAAE,IAAQF,EAAI,CAAC;AACf,QAAA,OAAOE,KAAU,SAAU,QAAO,CAAC,GAAGF,CAAG,EAAE,KAAKG,CAAU;AACrD,QAAA,OAAOD,KAAU,SAAU,QAAO,CAAC,GAAGF,CAAG,EAAE,KAAKG,CAAU;AAC1D,QAAAF,KAAQA,EAAK;AACrB,aAAO,CAAC,GAAGD,CAAG,EAAE,KAAK,CAACI,GAAGC,MAAM;AAC9B,iBAASC,IAAQ,GAAGA,IAAQL,EAAK,QAAQK,KAAS;AAC3C,gBAAAC,IAAMN,EAAKK,CAAK,GAEhBE,IAASL,EAAWC,EAAEG,CAAG,GAAGF,EAAEE,CAAG,CAAC;AACxC,cAAIC,EAAe,QAAAA;AAAA,QACpB;AACO,eAAA;AAAA,MAAA,CACP;AAEI,UAAA,IAAI,MAAM,oBAAoB;AAAA,EACrC;AACO,SAAAR;AACR;AAEA,MAAMG,IAAa,CAACC,GAAQC,MACvBD,IAAIC,IAAU,KACTD,IAAIC,IAAU,IACX;"}
package/dist/index30.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, computed as s, ref as _, openBlock as B, createElementBlock as w, normalizeProps as t, guardReactiveProps as l, createElementVNode as u, mergeProps as V, renderSlot as C } from "vue";
2
- import { isCssColor as i } from "./index231.js";
3
- import { when as E } from "./index232.js";
2
+ import { isCssColor as i } from "./index226.js";
3
+ import { when as E } from "./index227.js";
4
4
  const q = {
5
5
  "aria-hidden": "true",
6
6
  class: "bb-base-radio-container"
package/dist/index300.js CHANGED
@@ -1,14 +1,50 @@
1
- function c(n, r, e) {
2
- const i = typeof r == "string" ? r.split(".") : r;
3
- let t = n;
4
- for (const o of i)
5
- if (t && typeof t == "object" && o in t)
6
- t = t[o];
7
- else
8
- return e;
9
- return t === void 0 ? e : t;
1
+ import { observeElementRect as f, observeElementOffset as s, elementScroll as d, Virtualizer as p } from "./index304.js";
2
+ import { defaultKeyExtractor as S, defaultRangeExtractor as V, measureElement as b } from "./index304.js";
3
+ import { computed as g, unref as l, shallowRef as E, watch as o, triggerRef as i, onScopeDispose as v } from "vue";
4
+ function w(e) {
5
+ const t = new p(l(e)), a = E(t), u = t._didMount();
6
+ return o(
7
+ () => l(e).getScrollElement(),
8
+ (r) => {
9
+ r && t._willUpdate();
10
+ },
11
+ {
12
+ immediate: !0
13
+ }
14
+ ), o(
15
+ () => l(e),
16
+ (r) => {
17
+ t.setOptions({
18
+ ...r,
19
+ onChange: (c, m) => {
20
+ var n;
21
+ i(a), (n = r.onChange) == null || n.call(r, c, m);
22
+ }
23
+ }), t._willUpdate(), i(a);
24
+ },
25
+ {
26
+ immediate: !0
27
+ }
28
+ ), v(u), a;
29
+ }
30
+ function z(e) {
31
+ return w(
32
+ g(() => ({
33
+ observeElementRect: f,
34
+ observeElementOffset: s,
35
+ scrollToFn: d,
36
+ ...l(e)
37
+ }))
38
+ );
10
39
  }
11
40
  export {
12
- c as get
41
+ p as Virtualizer,
42
+ S as defaultKeyExtractor,
43
+ V as defaultRangeExtractor,
44
+ d as elementScroll,
45
+ b as measureElement,
46
+ s as observeElementOffset,
47
+ f as observeElementRect,
48
+ z as useVirtualizer
13
49
  };
14
50
  //# sourceMappingURL=index300.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index300.js","sources":["../src/utilities/functions/get.ts"],"sourcesContent":["type Path<T, K extends keyof T> = K extends string\n\t? T[K] extends object\n\t\t? `${K}.${Path<T[K], keyof T[K]>}` | K\n\t\t: K\n\t: never;\n\nexport function get<T, P extends Path<T, keyof T>>(\n\tobj: T,\n\tpath: P,\n\tdefaultValue?: any\n): any {\n\tconst pathArray = (\n\t\ttypeof path === 'string' ? path.split('.') : path\n\t) as string[];\n\n\tlet current: any = obj;\n\n\tfor (const key of pathArray) {\n\t\tif (current && typeof current === 'object' && key in current) {\n\t\t\tcurrent = current[key];\n\t\t} else {\n\t\t\treturn defaultValue;\n\t\t}\n\t}\n\n\treturn current === undefined ? defaultValue : current;\n}\n"],"names":["get","obj","path","defaultValue","pathArray","current","key"],"mappings":"AAMgB,SAAAA,EACfC,GACAC,GACAC,GACM;AACN,QAAMC,IACL,OAAOF,KAAS,WAAWA,EAAK,MAAM,GAAG,IAAIA;AAG9C,MAAIG,IAAeJ;AAEnB,aAAWK,KAAOF;AACjB,QAAIC,KAAW,OAAOA,KAAY,YAAYC,KAAOD;AACpD,MAAAA,IAAUA,EAAQC,CAAG;AAAA;AAEd,aAAAH;AAIF,SAAAE,MAAY,SAAYF,IAAeE;AAC/C;"}
1
+ {"version":3,"file":"index300.js","sources":["../node_modules/@tanstack/vue-virtual/dist/esm/index.js"],"sourcesContent":["import { observeElementRect, observeElementOffset, elementScroll, observeWindowRect, observeWindowOffset, windowScroll, Virtualizer } from \"@tanstack/virtual-core\";\nexport * from \"@tanstack/virtual-core\";\nimport { computed, unref, shallowRef, watch, triggerRef, onScopeDispose } from \"vue\";\nfunction useVirtualizerBase(options) {\n const virtualizer = new Virtualizer(unref(options));\n const state = shallowRef(virtualizer);\n const cleanup = virtualizer._didMount();\n watch(\n () => unref(options).getScrollElement(),\n (el) => {\n if (el) {\n virtualizer._willUpdate();\n }\n },\n {\n immediate: true\n }\n );\n watch(\n () => unref(options),\n (options2) => {\n virtualizer.setOptions({\n ...options2,\n onChange: (instance, sync) => {\n var _a;\n triggerRef(state);\n (_a = options2.onChange) == null ? void 0 : _a.call(options2, instance, sync);\n }\n });\n virtualizer._willUpdate();\n triggerRef(state);\n },\n {\n immediate: true\n }\n );\n onScopeDispose(cleanup);\n return state;\n}\nfunction useVirtualizer(options) {\n return useVirtualizerBase(\n computed(() => ({\n observeElementRect,\n observeElementOffset,\n scrollToFn: elementScroll,\n ...unref(options)\n }))\n );\n}\nfunction useWindowVirtualizer(options) {\n return useVirtualizerBase(\n computed(() => ({\n getScrollElement: () => typeof document !== \"undefined\" ? window : null,\n observeElementRect: observeWindowRect,\n observeElementOffset: observeWindowOffset,\n scrollToFn: windowScroll,\n initialOffset: () => typeof document !== \"undefined\" ? window.scrollY : 0,\n ...unref(options)\n }))\n );\n}\nexport {\n useVirtualizer,\n useWindowVirtualizer\n};\n//# sourceMappingURL=index.js.map\n"],"names":["useVirtualizerBase","options","virtualizer","Virtualizer","unref","state","shallowRef","cleanup","watch","el","options2","instance","sync","_a","triggerRef","onScopeDispose","useVirtualizer","computed","observeElementRect","observeElementOffset","elementScroll"],"mappings":";;;AAGA,SAASA,EAAmBC,GAAS;AACnC,QAAMC,IAAc,IAAIC,EAAYC,EAAMH,CAAO,CAAC,GAC5CI,IAAQC,EAAWJ,CAAW,GAC9BK,IAAUL,EAAY;AAC5B,SAAAM;AAAA,IACE,MAAMJ,EAAMH,CAAO,EAAE,iBAAkB;AAAA,IACvC,CAACQ,MAAO;AACN,MAAIA,KACFP,EAAY,YAAW;AAAA,IAE1B;AAAA,IACD;AAAA,MACE,WAAW;AAAA,IACZ;AAAA,EACL,GACEM;AAAA,IACE,MAAMJ,EAAMH,CAAO;AAAA,IACnB,CAACS,MAAa;AACZ,MAAAR,EAAY,WAAW;AAAA,QACrB,GAAGQ;AAAA,QACH,UAAU,CAACC,GAAUC,MAAS;AAC5B,cAAIC;AACJ,UAAAC,EAAWT,CAAK,IACfQ,IAAKH,EAAS,aAAa,QAAgBG,EAAG,KAAKH,GAAUC,GAAUC,CAAI;AAAA,QAC7E;AAAA,MACT,CAAO,GACDV,EAAY,YAAW,GACvBY,EAAWT,CAAK;AAAA,IACjB;AAAA,IACD;AAAA,MACE,WAAW;AAAA,IACZ;AAAA,EACL,GACEU,EAAeR,CAAO,GACfF;AACT;AACA,SAASW,EAAef,GAAS;AAC/B,SAAOD;AAAA,IACLiB,EAAS,OAAO;AAAA,MACd,oBAAAC;AAAA,MACA,sBAAAC;AAAA,MACA,YAAYC;AAAA,MACZ,GAAGhB,EAAMH,CAAO;AAAA,IACtB,EAAM;AAAA,EACN;AACA;","x_google_ignoreList":[0]}
package/dist/index301.js CHANGED
@@ -1,50 +1,10 @@
1
- import { observeElementRect as f, observeElementOffset as s, elementScroll as d, Virtualizer as p } from "./index305.js";
2
- import { defaultKeyExtractor as S, defaultRangeExtractor as V, measureElement as b } from "./index305.js";
3
- import { computed as g, unref as l, shallowRef as E, watch as o, triggerRef as i, onScopeDispose as v } from "vue";
4
- function w(e) {
5
- const t = new p(l(e)), a = E(t), u = t._didMount();
6
- return o(
7
- () => l(e).getScrollElement(),
8
- (r) => {
9
- r && t._willUpdate();
10
- },
11
- {
12
- immediate: !0
13
- }
14
- ), o(
15
- () => l(e),
16
- (r) => {
17
- t.setOptions({
18
- ...r,
19
- onChange: (c, m) => {
20
- var n;
21
- i(a), (n = r.onChange) == null || n.call(r, c, m);
22
- }
23
- }), t._willUpdate(), i(a);
24
- },
25
- {
26
- immediate: !0
27
- }
28
- ), v(u), a;
29
- }
30
- function z(e) {
31
- return w(
32
- g(() => ({
33
- observeElementRect: f,
34
- observeElementOffset: s,
35
- scrollToFn: d,
36
- ...l(e)
37
- }))
38
- );
1
+ function l(n, c, r = 1) {
2
+ const o = Math.max(Math.ceil((c - n) / r), 0), t = new Array(o);
3
+ for (let e = 0; e < o; e++, n += r)
4
+ t[e] = n;
5
+ return t;
39
6
  }
40
7
  export {
41
- p as Virtualizer,
42
- S as defaultKeyExtractor,
43
- V as defaultRangeExtractor,
44
- d as elementScroll,
45
- b as measureElement,
46
- s as observeElementOffset,
47
- f as observeElementRect,
48
- z as useVirtualizer
8
+ l as range
49
9
  };
50
10
  //# sourceMappingURL=index301.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index301.js","sources":["../node_modules/@tanstack/vue-virtual/dist/esm/index.js"],"sourcesContent":["import { observeElementRect, observeElementOffset, elementScroll, observeWindowRect, observeWindowOffset, windowScroll, Virtualizer } from \"@tanstack/virtual-core\";\nexport * from \"@tanstack/virtual-core\";\nimport { computed, unref, shallowRef, watch, triggerRef, onScopeDispose } from \"vue\";\nfunction useVirtualizerBase(options) {\n const virtualizer = new Virtualizer(unref(options));\n const state = shallowRef(virtualizer);\n const cleanup = virtualizer._didMount();\n watch(\n () => unref(options).getScrollElement(),\n (el) => {\n if (el) {\n virtualizer._willUpdate();\n }\n },\n {\n immediate: true\n }\n );\n watch(\n () => unref(options),\n (options2) => {\n virtualizer.setOptions({\n ...options2,\n onChange: (instance, sync) => {\n var _a;\n triggerRef(state);\n (_a = options2.onChange) == null ? void 0 : _a.call(options2, instance, sync);\n }\n });\n virtualizer._willUpdate();\n triggerRef(state);\n },\n {\n immediate: true\n }\n );\n onScopeDispose(cleanup);\n return state;\n}\nfunction useVirtualizer(options) {\n return useVirtualizerBase(\n computed(() => ({\n observeElementRect,\n observeElementOffset,\n scrollToFn: elementScroll,\n ...unref(options)\n }))\n );\n}\nfunction useWindowVirtualizer(options) {\n return useVirtualizerBase(\n computed(() => ({\n getScrollElement: () => typeof document !== \"undefined\" ? window : null,\n observeElementRect: observeWindowRect,\n observeElementOffset: observeWindowOffset,\n scrollToFn: windowScroll,\n initialOffset: () => typeof document !== \"undefined\" ? window.scrollY : 0,\n ...unref(options)\n }))\n );\n}\nexport {\n useVirtualizer,\n useWindowVirtualizer\n};\n//# sourceMappingURL=index.js.map\n"],"names":["useVirtualizerBase","options","virtualizer","Virtualizer","unref","state","shallowRef","cleanup","watch","el","options2","instance","sync","_a","triggerRef","onScopeDispose","useVirtualizer","computed","observeElementRect","observeElementOffset","elementScroll"],"mappings":";;;AAGA,SAASA,EAAmBC,GAAS;AACnC,QAAMC,IAAc,IAAIC,EAAYC,EAAMH,CAAO,CAAC,GAC5CI,IAAQC,EAAWJ,CAAW,GAC9BK,IAAUL,EAAY;AAC5B,SAAAM;AAAA,IACE,MAAMJ,EAAMH,CAAO,EAAE,iBAAkB;AAAA,IACvC,CAACQ,MAAO;AACN,MAAIA,KACFP,EAAY,YAAW;AAAA,IAE1B;AAAA,IACD;AAAA,MACE,WAAW;AAAA,IACZ;AAAA,EACL,GACEM;AAAA,IACE,MAAMJ,EAAMH,CAAO;AAAA,IACnB,CAACS,MAAa;AACZ,MAAAR,EAAY,WAAW;AAAA,QACrB,GAAGQ;AAAA,QACH,UAAU,CAACC,GAAUC,MAAS;AAC5B,cAAIC;AACJ,UAAAC,EAAWT,CAAK,IACfQ,IAAKH,EAAS,aAAa,QAAgBG,EAAG,KAAKH,GAAUC,GAAUC,CAAI;AAAA,QAC7E;AAAA,MACT,CAAO,GACDV,EAAY,YAAW,GACvBY,EAAWT,CAAK;AAAA,IACjB;AAAA,IACD;AAAA,MACE,WAAW;AAAA,IACZ;AAAA,EACL,GACEU,EAAeR,CAAO,GACfF;AACT;AACA,SAASW,EAAef,GAAS;AAC/B,SAAOD;AAAA,IACLiB,EAAS,OAAO;AAAA,MACd,oBAAAC;AAAA,MACA,sBAAAC;AAAA,MACA,YAAYC;AAAA,MACZ,GAAGhB,EAAMH,CAAO;AAAA,IACtB,EAAM;AAAA,EACN;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index301.js","sources":["../src/utilities/functions/range.ts"],"sourcesContent":["export function range(start: number, end: number, step: number = 1): number[] {\n\tconst length = Math.max(Math.ceil((end - start) / step), 0);\n\tconst result = new Array<number>(length);\n\n\tfor (let i = 0; i < length; i++, start += step) {\n\t\tresult[i] = start;\n\t}\n\n\treturn result;\n}\n"],"names":["range","start","end","step","length","result","i"],"mappings":"AAAO,SAASA,EAAMC,GAAeC,GAAaC,IAAe,GAAa;AACvE,QAAAC,IAAS,KAAK,IAAI,KAAK,MAAMF,IAAMD,KAASE,CAAI,GAAG,CAAC,GACpDE,IAAS,IAAI,MAAcD,CAAM;AAEvC,WAASE,IAAI,GAAGA,IAAIF,GAAQE,KAAKL,KAASE;AACzC,IAAAE,EAAOC,CAAC,IAAIL;AAGN,SAAAI;AACR;"}