bitboss-ui 2.0.22 → 2.0.23
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.
- package/dist/index107.js +5 -5
- package/dist/index115.js +1 -1
- package/dist/index117.js +5 -5
- package/dist/index119.js +1 -1
- package/dist/index123.js +1 -1
- package/dist/index124.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index129.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index14.js +1 -1
- package/dist/index16.js +3 -3
- package/dist/index18.js +2 -2
- package/dist/index199.js +2 -81
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +12 -12
- package/dist/index200.js +80 -7
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +44 -3
- package/dist/index201.js.map +1 -1
- package/dist/index203.js +12 -43
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +6 -0
- package/dist/index204.js.map +1 -0
- package/dist/index205.js +3 -13
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +33 -156
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +5 -83
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +10 -0
- package/dist/index208.js.map +1 -0
- package/dist/index209.js +8 -3
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +123 -32
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -6
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +123 -7
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +18 -280
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -2
- package/dist/index215.js +2 -2
- package/dist/index216.js +2 -19
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +2 -19
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +172 -25
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +5 -3
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +13 -13
- package/dist/index220.js +369 -2
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +17 -247
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +26 -51
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +3 -44
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +249 -5
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +43 -40
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +44 -2
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +5 -4
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +49 -2
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +151 -119
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +84 -123
- package/dist/index230.js.map +1 -1
- package/dist/index232.js +2 -174
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +4 -5
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +2 -369
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +2 -2
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +18 -2
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +105 -17
- package/dist/index237.js.map +1 -1
- package/dist/{index240.js → index239.js} +2 -2
- package/dist/{index240.js.map → index239.js.map} +1 -1
- package/dist/index24.js +5 -5
- package/dist/index241.js +5 -0
- package/dist/index241.js.map +1 -0
- package/dist/index244.js +3 -6
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +8 -15
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +23 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +9 -3
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +6 -9
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +16 -23
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +1 -1
- package/dist/index251.js +1 -1
- package/dist/index254.js +431 -3
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +88 -11
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +280 -8
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +6 -9
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +2 -17
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +2 -2
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +1 -1
- package/dist/index260.js +2 -66
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +2 -5
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +2 -431
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +119 -82
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +22 -6
- package/dist/index264.js.map +1 -1
- package/dist/index266.js +200 -2
- package/dist/index266.js.map +1 -1
- package/dist/index269.js +2 -2
- package/dist/index270.js +2 -2
- package/dist/index271.js +1 -1
- package/dist/index272.js +1 -1
- package/dist/index273.js +28 -2
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +21 -1
- package/dist/index274.js.map +1 -1
- package/dist/index276.js +435 -21
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +130 -0
- package/dist/index277.js.map +1 -0
- package/dist/index278.js +2 -200
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +9 -4
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +3 -3
- package/dist/index280.js +3 -2
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +12 -126
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +8 -21
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +20 -0
- package/dist/index283.js.map +1 -0
- package/dist/index284.js +64 -434
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +5 -127
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +4 -3
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +1 -1
- package/dist/index288.js +3 -211
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +211 -15
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +15 -4
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +79 -4
- package/dist/index291.js.map +1 -1
- package/dist/index293.js +4 -79
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +7 -0
- package/dist/index294.js.map +1 -0
- package/dist/index295.js +59 -2
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +34 -10
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +2 -35
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +10 -6
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +5 -17
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +2 -2
- package/dist/index300.js +6 -46
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +17 -5
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +47 -480
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +483 -0
- package/dist/index303.js.map +1 -0
- package/dist/index305.js +416 -42
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +47 -2
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +5 -0
- package/dist/index307.js.map +1 -0
- package/dist/index32.js +2 -2
- package/dist/index34.js +3 -3
- package/dist/index36.js +13 -13
- package/dist/index38.js +4 -4
- package/dist/index40.js +2 -2
- package/dist/index42.js +2 -2
- package/dist/index44.js +6 -6
- package/dist/index46.js +2 -2
- package/dist/index48.js +2 -2
- package/dist/index54.js +1 -1
- package/dist/index56.js +1 -1
- package/dist/index72.js +3 -3
- package/dist/index76.js +2 -2
- package/dist/index78.js +1 -1
- package/dist/index81.js +2 -2
- package/dist/index83.js +1 -1
- package/dist/index85.js +3 -3
- package/dist/index87.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index202.js +0 -5
- package/dist/index202.js.map +0 -1
- package/dist/index231.js +0 -5
- package/dist/index231.js.map +0 -1
- package/dist/index238.js +0 -109
- package/dist/index238.js.map +0 -1
- package/dist/index265.js +0 -5
- package/dist/index265.js.map +0 -1
- package/dist/index275.js +0 -31
- package/dist/index275.js.map +0 -1
- package/dist/index292.js +0 -62
- package/dist/index292.js.map +0 -1
- package/dist/index304.js +0 -424
- package/dist/index304.js.map +0 -1
package/dist/index296.js
CHANGED
@@ -1,14 +1,38 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
import { openBlock as t, createElementBlock as e, createElementVNode as o } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
import r from "./index253.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);
|
10
33
|
}
|
34
|
+
const w = /* @__PURE__ */ r(n, [["render", _]]);
|
11
35
|
export {
|
12
|
-
|
36
|
+
w as default
|
13
37
|
};
|
14
38
|
//# sourceMappingURL=index296.js.map
|
package/dist/index296.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index296.js","sources":["../src/
|
1
|
+
{"version":3,"file":"index296.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;;;;"}
|
package/dist/index297.js
CHANGED
@@ -1,38 +1,5 @@
|
|
1
|
-
import
|
2
|
-
/* empty css */
|
3
|
-
import r from "./index253.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);
|
33
|
-
}
|
34
|
-
const w = /* @__PURE__ */ r(n, [["render", _]]);
|
1
|
+
import f from "./index284.js";
|
35
2
|
export {
|
36
|
-
|
3
|
+
f as default
|
37
4
|
};
|
38
5
|
//# sourceMappingURL=index297.js.map
|
package/dist/index297.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index297.js","sources":[
|
1
|
+
{"version":3,"file":"index297.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index298.js
CHANGED
@@ -1,10 +1,14 @@
|
|
1
|
-
function c(n, e) {
|
2
|
-
const
|
3
|
-
|
4
|
-
|
5
|
-
|
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;
|
6
10
|
}
|
7
11
|
export {
|
8
|
-
c as
|
12
|
+
c as get
|
9
13
|
};
|
10
14
|
//# sourceMappingURL=index298.js.map
|
package/dist/index298.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index298.js","sources":["../src/utilities/functions/
|
1
|
+
{"version":3,"file":"index298.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;"}
|
package/dist/index299.js
CHANGED
@@ -1,22 +1,10 @@
|
|
1
|
-
function l(
|
2
|
-
|
3
|
-
|
4
|
-
|
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
|
-
}
|
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;
|
16
5
|
return t;
|
17
6
|
}
|
18
|
-
const r = (t, e) => t < e ? -1 : t > e ? 1 : 0;
|
19
7
|
export {
|
20
|
-
l as
|
8
|
+
l as range
|
21
9
|
};
|
22
10
|
//# sourceMappingURL=index299.js.map
|
package/dist/index299.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index299.js","sources":["../src/utilities/functions/
|
1
|
+
{"version":3,"file":"index299.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;"}
|
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 "./
|
3
|
-
import { when as E } from "./
|
2
|
+
import { isCssColor as i } from "./index232.js";
|
3
|
+
import { when as E } from "./index233.js";
|
4
4
|
const q = {
|
5
5
|
"aria-hidden": "true",
|
6
6
|
class: "bb-base-radio-container"
|
package/dist/index300.js
CHANGED
@@ -1,50 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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 c(n, e) {
|
2
|
+
const u = [];
|
3
|
+
for (let t = 0; t < n.length; t += e)
|
4
|
+
u.push(n.slice(t, t + e));
|
5
|
+
return u;
|
39
6
|
}
|
40
7
|
export {
|
41
|
-
|
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
|
+
c as chunk
|
49
9
|
};
|
50
10
|
//# sourceMappingURL=index300.js.map
|
package/dist/index300.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index300.js","sources":["../
|
1
|
+
{"version":3,"file":"index300.js","sources":["../src/utilities/functions/chunk.ts"],"sourcesContent":["export function chunk<T>(array: T[], size: number): T[][] {\n\tif (size <= 0) {\n\t\tthrow new Error('Size must be a positive number');\n\t}\n\n\tconst result: T[][] = [];\n\n\tfor (let i = 0; i < array.length; i += size) {\n\t\tresult.push(array.slice(i, i + size));\n\t}\n\n\treturn result;\n}\n"],"names":["chunk","array","size","result","i"],"mappings":"AAAgB,SAAAA,EAASC,GAAYC,GAAqB;AAKzD,QAAMC,IAAgB,CAAA;AAEtB,WAASC,IAAI,GAAGA,IAAIH,EAAM,QAAQG,KAAKF;AACtC,IAAAC,EAAO,KAAKF,EAAM,MAAMG,GAAGA,IAAIF,CAAI,CAAC;AAG9B,SAAAC;AACR;"}
|
package/dist/index301.js
CHANGED
@@ -1,10 +1,22 @@
|
|
1
|
-
function l(
|
2
|
-
|
3
|
-
|
4
|
-
t
|
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
|
+
}
|
5
16
|
return t;
|
6
17
|
}
|
18
|
+
const r = (t, e) => t < e ? -1 : t > e ? 1 : 0;
|
7
19
|
export {
|
8
|
-
l as
|
20
|
+
l as sort
|
9
21
|
};
|
10
22
|
//# sourceMappingURL=index301.js.map
|
package/dist/index301.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index301.js","sources":["../src/utilities/functions/
|
1
|
+
{"version":3,"file":"index301.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;"}
|