bitboss-ui 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +10 -99
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +24 -0
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +56 -0
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +21 -0
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +21 -0
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +1 -46
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -47
- package/dist/components/BbTab/BbTab.vue.d.ts +9 -0
- package/dist/components/Transitions/Slide.vue.d.ts +43 -0
- package/dist/components/Transitions/SlideBack.vue.d.ts +43 -0
- package/dist/composables/useLogger.d.ts +1 -0
- package/dist/index103.js +150 -126
- package/dist/index103.js.map +1 -1
- package/dist/index105.js +5 -5
- package/dist/index113.js +1 -1
- package/dist/index115.js +5 -5
- package/dist/index115.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index12.js +1 -1
- package/dist/index121.js +1 -1
- package/dist/index122.js +1 -1
- package/dist/index123.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index14.js +3 -3
- package/dist/index16.js +2 -2
- package/dist/index18.js +176 -482
- package/dist/index18.js.map +1 -1
- package/dist/index198.js +3 -5
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -158
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +199 -190
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +16 -84
- package/dist/index200.js.map +1 -1
- package/dist/{index223.js → index201.js} +3 -3
- package/dist/{index223.js.map → index201.js.map} +1 -1
- package/dist/index202.js +19 -3
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +19 -3
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +26 -34
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +3 -6
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -7
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +8 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +245 -122
- package/dist/index208.js.map +1 -1
- package/dist/index210.js +51 -122
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +37 -19
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +5 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +41 -2
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -174
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +4 -42
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +5 -0
- package/dist/index216.js.map +1 -0
- package/dist/index217.js +2 -13
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +42 -369
- package/dist/index218.js.map +1 -1
- package/dist/index22.js +5 -5
- package/dist/index220.js +13 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +158 -2
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +84 -16
- package/dist/index222.js.map +1 -1
- package/dist/index224.js +3 -19
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +34 -26
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +6 -8
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +7 -2
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +126 -3
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +123 -3
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +2 -18
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +173 -105
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +8 -0
- package/dist/index232.js.map +1 -0
- package/dist/index233.js +367 -98
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +6 -0
- package/dist/index234.js.map +1 -0
- package/dist/index235.js +17 -9
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +106 -3
- package/dist/index236.js.map +1 -1
- package/dist/index238.js +100 -23
- package/dist/index238.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +2 -16
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +10 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +3 -3
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +224 -12
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +280 -8
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +6 -9
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +2 -17
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -224
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -431
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +2 -89
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +2 -281
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -6
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +3 -2
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +2 -2
- package/dist/index254.js +2 -2
- package/dist/index255.js +2 -126
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +28 -3
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +25 -0
- package/dist/index257.js.map +1 -0
- package/dist/index259.js +6 -3
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +3 -3
- package/dist/index260.js +4 -2
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +8 -68
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +23 -200
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +3 -5
- package/dist/index263.js.map +1 -1
- package/dist/index265.js +6 -127
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +16 -2
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +9 -2
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +3 -2
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +12 -2
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +7 -26
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +9 -3
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +17 -3
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +426 -206
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +92 -0
- package/dist/index274.js.map +1 -0
- package/dist/index275.js +2 -4
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +69 -4
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +5 -59
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +200 -15
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +2 -35
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.js +125 -10
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +21 -1
- package/dist/index281.js.map +1 -1
- package/dist/{index264.js → index283.js} +2 -2
- package/dist/{index264.js.map → index283.js.map} +1 -1
- package/dist/index284.js +123 -417
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +3 -47
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +6 -0
- package/dist/index286.js.map +1 -0
- package/dist/index287.js +214 -0
- package/dist/index287.js.map +1 -0
- package/dist/index289.js +18 -0
- package/dist/index289.js.map +1 -0
- package/dist/index290.js +10 -0
- package/dist/index290.js.map +1 -0
- package/dist/index291.js +22 -0
- package/dist/index291.js.map +1 -0
- package/dist/index292.js +10 -0
- package/dist/index292.js.map +1 -0
- package/dist/index293.js +7 -0
- package/dist/index293.js.map +1 -0
- package/dist/index294.js +7 -0
- package/dist/index294.js.map +1 -0
- package/dist/index295.js +62 -0
- package/dist/index295.js.map +1 -0
- package/dist/index296.js +38 -0
- package/dist/index296.js.map +1 -0
- package/dist/index297.js +14 -0
- package/dist/index297.js.map +1 -0
- package/dist/index298.js +5 -0
- package/dist/index298.js.map +1 -0
- package/dist/{index282.js → index299.js} +3 -3
- package/dist/{index282.js.map → index299.js.map} +1 -1
- package/dist/index30.js +2 -2
- package/dist/index301.js +424 -0
- package/dist/index301.js.map +1 -0
- package/dist/index302.js +50 -0
- package/dist/index302.js.map +1 -0
- package/dist/index32.js +3 -3
- package/dist/index34.js +44 -42
- package/dist/index34.js.map +1 -1
- package/dist/index36.js +4 -4
- package/dist/index38.js +2 -2
- package/dist/index40.js +2 -2
- package/dist/index42.js +6 -6
- package/dist/index44.js +2 -2
- package/dist/index46.js +2 -2
- package/dist/index52.js +1 -1
- package/dist/index54.js +1 -1
- package/dist/index58.js +2 -2
- package/dist/index66.js +16 -23
- package/dist/index66.js.map +1 -1
- package/dist/index70.js +4 -4
- package/dist/index74.js +2 -2
- package/dist/index76.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index83.js +3 -3
- package/dist/index85.js +1 -1
- package/dist/style.css +1 -1
- package/dist/utilities/functions/chunk.d.ts +1 -0
- package/dist/utilities/functions/negative.d.ts +1 -0
- package/dist/utilities/functions/pipe.d.ts +3 -0
- package/dist/utilities/functions/range.d.ts +1 -0
- package/dist/utilities/functions/sort.d.ts +6 -0
- package/package.json +2 -2
- package/dist/index209.js +0 -8
- package/dist/index209.js.map +0 -1
- package/dist/index219.js +0 -5
- package/dist/index219.js.map +0 -1
- package/dist/index237.js +0 -12
- package/dist/index237.js.map +0 -1
- package/dist/index239.js +0 -9
- package/dist/index239.js.map +0 -1
- package/dist/index258.js +0 -10
- package/dist/index258.js.map +0 -1
package/dist/index265.js
CHANGED
|
@@ -1,130 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
left: "right",
|
|
6
|
-
right: "left",
|
|
7
|
-
bottom: "top",
|
|
8
|
-
top: "bottom"
|
|
9
|
-
}, a = {
|
|
10
|
-
start: "end",
|
|
11
|
-
end: "start"
|
|
12
|
-
};
|
|
13
|
-
function w(t, n, e) {
|
|
14
|
-
return m(t, l(n, e));
|
|
15
|
-
}
|
|
16
|
-
function j(t, n) {
|
|
17
|
-
return typeof t == "function" ? t(n) : t;
|
|
18
|
-
}
|
|
19
|
-
function u(t) {
|
|
20
|
-
return t.split("-")[0];
|
|
21
|
-
}
|
|
22
|
-
function g(t) {
|
|
23
|
-
return t.split("-")[1];
|
|
24
|
-
}
|
|
25
|
-
function h(t) {
|
|
26
|
-
return t === "x" ? "y" : "x";
|
|
27
|
-
}
|
|
28
|
-
function b(t) {
|
|
29
|
-
return t === "y" ? "height" : "width";
|
|
30
|
-
}
|
|
31
|
-
function x(t) {
|
|
32
|
-
return ["top", "bottom"].includes(u(t)) ? "y" : "x";
|
|
33
|
-
}
|
|
34
|
-
function d(t) {
|
|
35
|
-
return h(x(t));
|
|
36
|
-
}
|
|
37
|
-
function C(t, n, e) {
|
|
38
|
-
e === void 0 && (e = !1);
|
|
39
|
-
const r = g(t), o = d(t), i = b(o);
|
|
40
|
-
let c = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
41
|
-
return n.reference[i] > n.floating[i] && (c = f(c)), [c, f(c)];
|
|
42
|
-
}
|
|
43
|
-
function L(t) {
|
|
44
|
-
const n = f(t);
|
|
45
|
-
return [s(t), n, s(n)];
|
|
46
|
-
}
|
|
47
|
-
function s(t) {
|
|
48
|
-
return t.replace(/start|end/g, (n) => a[n]);
|
|
49
|
-
}
|
|
50
|
-
function A(t, n, e) {
|
|
51
|
-
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], c = ["bottom", "top"];
|
|
52
|
-
switch (t) {
|
|
53
|
-
case "top":
|
|
54
|
-
case "bottom":
|
|
55
|
-
return e ? n ? o : r : n ? r : o;
|
|
56
|
-
case "left":
|
|
57
|
-
case "right":
|
|
58
|
-
return n ? i : c;
|
|
59
|
-
default:
|
|
60
|
-
return [];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function E(t, n, e, r) {
|
|
64
|
-
const o = g(t);
|
|
65
|
-
let i = A(u(t), e === "start", r);
|
|
66
|
-
return o && (i = i.map((c) => c + "-" + o), n && (i = i.concat(i.map(s)))), i;
|
|
67
|
-
}
|
|
68
|
-
function f(t) {
|
|
69
|
-
return t.replace(/left|right|bottom|top/g, (n) => p[n]);
|
|
70
|
-
}
|
|
71
|
-
function y(t) {
|
|
72
|
-
return {
|
|
73
|
-
top: 0,
|
|
74
|
-
right: 0,
|
|
75
|
-
bottom: 0,
|
|
76
|
-
left: 0,
|
|
77
|
-
...t
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function R(t) {
|
|
81
|
-
return typeof t != "number" ? y(t) : {
|
|
82
|
-
top: t,
|
|
83
|
-
right: t,
|
|
84
|
-
bottom: t,
|
|
85
|
-
left: t
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
function T(t) {
|
|
89
|
-
const {
|
|
90
|
-
x: n,
|
|
91
|
-
y: e,
|
|
92
|
-
width: r,
|
|
93
|
-
height: o
|
|
94
|
-
} = t;
|
|
95
|
-
return {
|
|
96
|
-
width: r,
|
|
97
|
-
height: o,
|
|
98
|
-
top: e,
|
|
99
|
-
left: n,
|
|
100
|
-
right: n + r,
|
|
101
|
-
bottom: e + o,
|
|
102
|
-
x: n,
|
|
103
|
-
y: e
|
|
104
|
-
};
|
|
105
|
-
}
|
|
1
|
+
import e from "./index293.js";
|
|
2
|
+
import r from "./index294.js";
|
|
3
|
+
import o from "./index295.js";
|
|
4
|
+
const f = new o(r, e)._freeze();
|
|
106
5
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
j as evaluate,
|
|
110
|
-
y as expandPaddingObject,
|
|
111
|
-
O as floor,
|
|
112
|
-
g as getAlignment,
|
|
113
|
-
d as getAlignmentAxis,
|
|
114
|
-
C as getAlignmentSides,
|
|
115
|
-
b as getAxisLength,
|
|
116
|
-
L as getExpandedPlacements,
|
|
117
|
-
s as getOppositeAlignmentPlacement,
|
|
118
|
-
h as getOppositeAxis,
|
|
119
|
-
E as getOppositeAxisPlacements,
|
|
120
|
-
f as getOppositePlacement,
|
|
121
|
-
R as getPaddingObject,
|
|
122
|
-
u as getSide,
|
|
123
|
-
x as getSideAxis,
|
|
124
|
-
m as max,
|
|
125
|
-
l as min,
|
|
126
|
-
T as rectToClientRect,
|
|
127
|
-
M as round,
|
|
128
|
-
P as sides
|
|
6
|
+
o as Mime,
|
|
7
|
+
f as default
|
|
129
8
|
};
|
|
130
9
|
//# sourceMappingURL=index265.js.map
|
package/dist/index265.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index265.js","sources":["../node_modules
|
|
1
|
+
{"version":3,"file":"index265.js","sources":["../node_modules/mime/dist/src/index.js"],"sourcesContent":["import otherTypes from '../types/other.js';\nimport standardTypes from '../types/standard.js';\nimport Mime from './Mime.js';\nexport { default as Mime } from './Mime.js';\nexport default new Mime(standardTypes, otherTypes)._freeze();\n//# sourceMappingURL=index.js.map"],"names":["index","Mime","standardTypes","otherTypes"],"mappings":";;;AAIA,MAAeA,IAAA,IAAIC,EAAKC,GAAeC,CAAU,EAAE,QAAS;","x_google_ignoreList":[0]}
|
package/dist/index266.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
const e = (o, r, f) => o.reduce((t, n) => {
|
|
2
|
+
if (t) return t;
|
|
3
|
+
if (f(n))
|
|
4
|
+
return n;
|
|
5
|
+
if (r in n) {
|
|
6
|
+
const i = e(
|
|
7
|
+
[].concat(n[r]),
|
|
8
|
+
r,
|
|
9
|
+
f
|
|
10
|
+
);
|
|
11
|
+
if (i)
|
|
12
|
+
return i;
|
|
13
|
+
}
|
|
14
|
+
return t;
|
|
15
|
+
}, null);
|
|
2
16
|
export {
|
|
3
|
-
e as
|
|
17
|
+
e as findInTree
|
|
4
18
|
};
|
|
5
19
|
//# sourceMappingURL=index266.js.map
|
package/dist/index266.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index266.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index266.js","sources":["../src/utilities/functions/findInTree.ts"],"sourcesContent":["/**\n * Find the eleemnt for which iteratee rfeturns true in a tree like structure\n */\nexport const findInTree = <T extends Record<string, any>>(\n\titems: T[],\n\tkeyName: keyof T,\n\titeratee: (item: T) => boolean\n): null | T => {\n\treturn items.reduce((acc: null | T, curr) => {\n\t\tif (acc) return acc;\n\t\tif (iteratee(curr)) {\n\t\t\treturn curr;\n\t\t}\n\n\t\tif (keyName in curr) {\n\t\t\tconst fromChildren = findInTree(\n\t\t\t\t[].concat(curr[keyName]),\n\t\t\t\tkeyName,\n\t\t\t\titeratee\n\t\t\t);\n\t\t\tif (fromChildren) {\n\t\t\t\treturn fromChildren;\n\t\t\t}\n\t\t}\n\t\treturn acc;\n\t}, null);\n};\n"],"names":["findInTree","items","keyName","iteratee","acc","curr","fromChildren"],"mappings":"AAGO,MAAMA,IAAa,CACzBC,GACAC,GACAC,MAEOF,EAAM,OAAO,CAACG,GAAeC,MAAS;AAC5C,MAAID,EAAY,QAAAA;AACZ,MAAAD,EAASE,CAAI;AACT,WAAAA;AAGR,MAAIH,KAAWG,GAAM;AACpB,UAAMC,IAAeN;AAAA,MACpB,CAAA,EAAG,OAAOK,EAAKH,CAAO,CAAC;AAAA,MACvBA;AAAA,MACAC;AAAA,IAAA;AAED,QAAIG;AACI,aAAAA;AAAA,EAET;AACO,SAAAF;GACL,IAAI;"}
|
package/dist/index267.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
function u(e, i) {
|
|
2
|
+
let t;
|
|
3
|
+
return function(...o) {
|
|
4
|
+
t !== void 0 && clearTimeout(t), t = setTimeout(() => {
|
|
5
|
+
e.apply(this, o);
|
|
6
|
+
}, i);
|
|
7
|
+
};
|
|
8
|
+
}
|
|
2
9
|
export {
|
|
3
|
-
|
|
10
|
+
u as debounce
|
|
4
11
|
};
|
|
5
12
|
//# sourceMappingURL=index267.js.map
|
package/dist/index267.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index267.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index267.js","sources":["../src/utilities/functions/debounce.ts"],"sourcesContent":["export function debounce<T extends (...args: any[]) => any>(\n\tfunc: T,\n\twait: number\n): (...args: Parameters<T>) => void {\n\tlet timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n\treturn function (this: any, ...args: Parameters<T>) {\n\t\tif (timeoutId !== undefined) {\n\t\t\tclearTimeout(timeoutId);\n\t\t}\n\n\t\ttimeoutId = setTimeout(() => {\n\t\t\tfunc.apply(this, args);\n\t\t}, wait);\n\t};\n}\n"],"names":["debounce","func","wait","timeoutId","args"],"mappings":"AAAgB,SAAAA,EACfC,GACAC,GACmC;AAC/B,MAAAC;AAEJ,SAAO,YAAwBC,GAAqB;AACnD,IAAID,MAAc,UACjB,aAAaA,CAAS,GAGvBA,IAAY,WAAW,MAAM;AACvB,MAAAF,EAAA,MAAM,MAAMG,CAAI;AAAA,OACnBF,CAAI;AAAA,EAAA;AAET;"}
|
package/dist/index268.js
CHANGED
package/dist/index268.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index268.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index268.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index269.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { ref as t } from "vue";
|
|
2
|
+
const n = () => {
|
|
3
|
+
const e = t([]);
|
|
4
|
+
return { array: e, set: (...r) => {
|
|
5
|
+
e.value = r;
|
|
6
|
+
}, add: (...r) => {
|
|
7
|
+
e.value.push(...r);
|
|
8
|
+
}, remove: (r) => {
|
|
9
|
+
e.value = e.value.filter(r);
|
|
10
|
+
} };
|
|
11
|
+
};
|
|
2
12
|
export {
|
|
3
|
-
|
|
13
|
+
n as useArray
|
|
4
14
|
};
|
|
5
15
|
//# sourceMappingURL=index269.js.map
|
package/dist/index269.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index269.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index269.js","sources":["../src/composables/useArray.ts"],"sourcesContent":["import { ref, type Ref } from 'vue';\n\nexport const useArray = <T>() => {\n\tconst array = ref<T[]>([]) as Ref<T[]>;\n\n\tconst set = (...items: T[]) => {\n\t\tarray.value = items;\n\t};\n\tconst add = (...items: T[]) => {\n\t\tarray.value.push(...items);\n\t};\n\tconst remove = (iteratee: (option: T) => boolean) => {\n\t\tarray.value = array.value.filter(iteratee);\n\t};\n\n\treturn { array, set, add, remove };\n};\n"],"names":["useArray","array","ref","items","iteratee"],"mappings":";AAEO,MAAMA,IAAW,MAAS;AAC1B,QAAAC,IAAQC,EAAS,CAAA,CAAE;AAYzB,SAAO,EAAE,OAAAD,GAAO,KAVJ,IAAIE,MAAe;AAC9B,IAAAF,EAAM,QAAQE;AAAA,EAAA,GASM,KAPT,IAAIA,MAAe;AACxB,IAAAF,EAAA,MAAM,KAAK,GAAGE,CAAK;AAAA,EAAA,GAMA,QAJX,CAACC,MAAqC;AACpD,IAAAH,EAAM,QAAQA,EAAM,MAAM,OAAOG,CAAQ;AAAA,EAAA,EAGT;AAClC;"}
|
package/dist/index270.js
CHANGED
|
@@ -1,31 +1,12 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if (typeof t == "object" && t !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
|
|
7
|
-
r || (r = /* @__PURE__ */ new WeakSet());
|
|
8
|
-
for (var p = Object.keys(t).sort(y), i = 0; i < p.length; i++) {
|
|
9
|
-
var s = p[i], e = t[s];
|
|
10
|
-
if (n = 33 * n ^ c(s, r), typeof e == "object" && e !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
|
|
11
|
-
if (r.has(e)) continue;
|
|
12
|
-
r.add(e);
|
|
13
|
-
}
|
|
14
|
-
n = 33 * n ^ c(e, r);
|
|
15
|
-
}
|
|
16
|
-
return 33 * n ^ c(t.constructor, r);
|
|
17
|
-
}
|
|
18
|
-
var o = typeof t;
|
|
19
|
-
try {
|
|
20
|
-
t instanceof Date ? o += t.getTime() : o += String(t);
|
|
21
|
-
} catch {
|
|
22
|
-
o += String(Object.assign({}, t));
|
|
1
|
+
function u(e, i) {
|
|
2
|
+
const n = /* @__PURE__ */ new Set(), s = [];
|
|
3
|
+
for (let t = 0; t < e.length; t++) {
|
|
4
|
+
const o = e[t], c = i(o);
|
|
5
|
+
n.has(c) || (n.add(c), s.push(o));
|
|
23
6
|
}
|
|
24
|
-
|
|
25
|
-
return n;
|
|
7
|
+
return s;
|
|
26
8
|
}
|
|
27
9
|
export {
|
|
28
|
-
|
|
29
|
-
y as sortNumbers
|
|
10
|
+
u as uniqBy
|
|
30
11
|
};
|
|
31
12
|
//# sourceMappingURL=index270.js.map
|
package/dist/index270.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index270.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index270.js","sources":["../src/utilities/functions/uniqBy.ts"],"sourcesContent":["export function uniqBy<T, K>(array: T[], keyFn: (item: T) => K): T[] {\n\tconst seen = new Set<K>();\n\tconst result: T[] = [];\n\n\tfor (let i = 0; i < array.length; i++) {\n\t\tconst item = array[i];\n\t\tconst key = keyFn(item);\n\t\tif (!seen.has(key)) {\n\t\t\tseen.add(key);\n\t\t\tresult.push(item);\n\t\t}\n\t}\n\n\treturn result;\n}\n"],"names":["uniqBy","array","keyFn","seen","result","i","item","key"],"mappings":"AAAgB,SAAAA,EAAaC,GAAYC,GAA4B;AAC9D,QAAAC,wBAAW,OACXC,IAAc,CAAA;AAEpB,WAASC,IAAI,GAAGA,IAAIJ,EAAM,QAAQI,KAAK;AAChC,UAAAC,IAAOL,EAAMI,CAAC,GACdE,IAAML,EAAMI,CAAI;AACtB,IAAKH,EAAK,IAAII,CAAG,MAChBJ,EAAK,IAAII,CAAG,GACZH,EAAO,KAAKE,CAAI;AAAA,EAElB;AAEO,SAAAF;AACR;"}
|
package/dist/index271.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import o from "./
|
|
2
|
-
|
|
1
|
+
import { get as o } from "./index297.js";
|
|
2
|
+
const e = () => ({
|
|
3
|
+
getItemValue(n, f) {
|
|
4
|
+
if (typeof f > "u") return n;
|
|
5
|
+
if (typeof f == "function") return f(n);
|
|
6
|
+
if (typeof f == "string") return o(n, f);
|
|
7
|
+
}
|
|
8
|
+
});
|
|
3
9
|
export {
|
|
4
|
-
|
|
10
|
+
e as useItemValue
|
|
5
11
|
};
|
|
6
12
|
//# sourceMappingURL=index271.js.map
|
package/dist/index271.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index271.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index271.js","sources":["../src/composables/useItemValue.ts"],"sourcesContent":["import { get } from '@/utilities/functions/get';\n\nexport const useItemValue = () => ({\n\tgetItemValue<T>(item: T, getter?: string | ((item: T) => any)): any {\n\t\tif (typeof getter === 'undefined') return item;\n\t\tif (typeof getter === 'function') return getter(item);\n\t\tif (typeof getter === 'string') return get(item, getter as any);\n\t},\n});\n"],"names":["useItemValue","item","getter","get"],"mappings":";AAEO,MAAMA,IAAe,OAAO;AAAA,EAClC,aAAgBC,GAASC,GAA2C;AAC/D,QAAA,OAAOA,IAAW,IAAoB,QAAAD;AAC1C,QAAI,OAAOC,KAAW,WAAY,QAAOA,EAAOD,CAAI;AACpD,QAAI,OAAOC,KAAW,SAAiB,QAAAC,EAAIF,GAAMC,CAAa;AAAA,EAC/D;AACD;"}
|
package/dist/index272.js
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { get as t } from "./index297.js";
|
|
2
|
+
const o = () => ({
|
|
3
|
+
getItemText(r, n) {
|
|
4
|
+
if (typeof r == "string" && !n) return r;
|
|
5
|
+
if (n) {
|
|
6
|
+
if (typeof n == "function") {
|
|
7
|
+
let f = n(r);
|
|
8
|
+
return typeof f != "string" && (f = JSON.stringify(f)), f;
|
|
9
|
+
} else if (typeof n == "string") {
|
|
10
|
+
const f = t(r, n);
|
|
11
|
+
return typeof f == "string" ? f : JSON.stringify(f);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return JSON.stringify(r);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
3
17
|
export {
|
|
4
|
-
o as
|
|
18
|
+
o as useItemText
|
|
5
19
|
};
|
|
6
20
|
//# sourceMappingURL=index272.js.map
|
package/dist/index272.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index272.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index272.js","sources":["../src/composables/useItemText.ts"],"sourcesContent":["import { get } from '@/utilities/functions/get';\n\ntype NestedKeyOf<ObjectType extends object> = {\n\t[Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object\n\t\t? `${Key}` | `${Key}.${NestedKeyOf<ObjectType[Key]>}`\n\t\t: `${Key}`;\n}[keyof ObjectType & (string | number)];\n\nexport type Path<T> = T extends object\n\t?\n\t\t\t| NestedKeyOf<T>\n\t\t\t| ((item: T) => string | number)\n\t\t\t| undefined\n\t\t\t| (string & Record<never, never>)\n\t: undefined;\n\nexport const useItemText = () => ({\n\tgetItemText<T>(item: T, getter?: Path<T>): string {\n\t\tif (typeof item === 'string' && !getter) return item;\n\t\telse if (getter) {\n\t\t\tif (typeof getter === 'function') {\n\t\t\t\tlet found = getter(item);\n\t\t\t\tif (typeof found !== 'string') found = JSON.stringify(found);\n\t\t\t\treturn found;\n\t\t\t} else if (typeof getter === 'string') {\n\t\t\t\tconst found = get(item, getter as any);\n\t\t\t\tif (typeof found === 'string') return found;\n\t\t\t\telse return JSON.stringify(found);\n\t\t\t}\n\t\t}\n\t\treturn JSON.stringify(item);\n\t},\n});\n"],"names":["useItemText","item","getter","found","get"],"mappings":";AAgBO,MAAMA,IAAc,OAAO;AAAA,EACjC,YAAeC,GAASC,GAA0B;AACjD,QAAI,OAAOD,KAAS,YAAY,CAACC,EAAe,QAAAD;AAAA,QACvCC;AACJ,UAAA,OAAOA,KAAW,YAAY;AAC7B,YAAAC,IAAQD,EAAOD,CAAI;AACvB,eAAI,OAAOE,KAAU,aAAkBA,IAAA,KAAK,UAAUA,CAAK,IACpDA;AAAA,MAAA,WACG,OAAOD,KAAW,UAAU;AAChC,cAAAC,IAAQC,EAAIH,GAAMC,CAAa;AACjC,eAAA,OAAOC,KAAU,WAAiBA,IAC1B,KAAK,UAAUA,CAAK;AAAA,MACjC;AAAA;AAEM,WAAA,KAAK,UAAUF,CAAI;AAAA,EAC3B;AACD;"}
|