bitboss-ui 0.1.109 → 0.1.110
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/index101.js +3 -3
- package/dist/index103.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +5 -5
- package/dist/index113.js +1 -1
- package/dist/index116.js +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.js +1 -1
- package/dist/index121.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index128.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +9 -9
- package/dist/index19.js +3 -3
- package/dist/index195.js +10 -3
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +3 -35
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +35 -6
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +6 -295
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -16
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +10 -10
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +15 -18
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +18 -19
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +15 -24
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +29 -8
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +8 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -2
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +351 -4
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +134 -2
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +2 -2
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.js +186 -2
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +23 -351
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +369 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +2 -369
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +4 -134
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +3 -186
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +3 -23
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +2 -3
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +235 -3
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +2 -10
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +2 -235
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +27 -8
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +12 -115
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +8 -27
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +115 -12
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +1 -1
- package/dist/index226.js +2 -435
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +428 -82
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +86 -197
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +200 -6
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +295 -2
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +6 -2
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +2 -2
- package/dist/index236.js +2 -4
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +2 -117
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +2 -106
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +116 -68
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +105 -161
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +4 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +224 -2
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +258 -2
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +162 -224
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +2 -258
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +69 -2
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -38
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -2
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +38 -2
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index250.js +2 -2
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +2 -3
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +3 -2
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +5 -0
- package/dist/index254.js.map +1 -0
- package/dist/index29.js +3 -3
- package/dist/index31.js +6 -6
- package/dist/index33.js +2 -2
- package/dist/index35.js +2 -2
- package/dist/index47.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index65.js +28 -26
- package/dist/index65.js.map +1 -1
- package/dist/index69.js +2 -2
- package/dist/index72.js +1 -1
- package/dist/index75.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index8.js +13 -13
- package/dist/index8.js.map +1 -1
- package/dist/index81.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index238.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index238.js","sources":[
|
1
|
+
{"version":3,"file":"index238.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index239.js
CHANGED
@@ -1,72 +1,120 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
},
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
w
|
62
|
-
]),
|
63
|
-
_: 1
|
64
|
-
})) : o("", !0)
|
65
|
-
])
|
66
|
-
], 2));
|
1
|
+
const l = Math.min, a = Math.max, P = Math.round, M = Math.floor, O = (t) => ({
|
2
|
+
x: t,
|
3
|
+
y: t
|
4
|
+
}), m = {
|
5
|
+
left: "right",
|
6
|
+
right: "left",
|
7
|
+
bottom: "top",
|
8
|
+
top: "bottom"
|
9
|
+
}, p = {
|
10
|
+
start: "end",
|
11
|
+
end: "start"
|
12
|
+
};
|
13
|
+
function S(t, n, o) {
|
14
|
+
return a(t, l(n, o));
|
15
|
+
}
|
16
|
+
function w(t, n) {
|
17
|
+
return typeof t == "function" ? t(n) : t;
|
18
|
+
}
|
19
|
+
function f(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 x(t) {
|
29
|
+
return t === "y" ? "height" : "width";
|
30
|
+
}
|
31
|
+
function b(t) {
|
32
|
+
return ["top", "bottom"].includes(f(t)) ? "y" : "x";
|
33
|
+
}
|
34
|
+
function d(t) {
|
35
|
+
return h(b(t));
|
36
|
+
}
|
37
|
+
function j(t, n, o) {
|
38
|
+
o === void 0 && (o = !1);
|
39
|
+
const s = g(t), i = d(t), e = x(i);
|
40
|
+
let r = i === "x" ? s === (o ? "end" : "start") ? "right" : "left" : s === "start" ? "bottom" : "top";
|
41
|
+
return n.reference[e] > n.floating[e] && (r = u(r)), [r, u(r)];
|
42
|
+
}
|
43
|
+
function C(t) {
|
44
|
+
const n = u(t);
|
45
|
+
return [c(t), n, c(n)];
|
46
|
+
}
|
47
|
+
function c(t) {
|
48
|
+
return t.replace(/start|end/g, (n) => p[n]);
|
49
|
+
}
|
50
|
+
function A(t, n, o) {
|
51
|
+
const s = ["left", "right"], i = ["right", "left"], e = ["top", "bottom"], r = ["bottom", "top"];
|
52
|
+
switch (t) {
|
53
|
+
case "top":
|
54
|
+
case "bottom":
|
55
|
+
return o ? n ? i : s : n ? s : i;
|
56
|
+
case "left":
|
57
|
+
case "right":
|
58
|
+
return n ? e : r;
|
59
|
+
default:
|
60
|
+
return [];
|
67
61
|
}
|
68
|
-
}
|
62
|
+
}
|
63
|
+
function L(t, n, o, s) {
|
64
|
+
const i = g(t);
|
65
|
+
let e = A(f(t), o === "start", s);
|
66
|
+
return i && (e = e.map((r) => r + "-" + i), n && (e = e.concat(e.map(c)))), e;
|
67
|
+
}
|
68
|
+
function u(t) {
|
69
|
+
return t.replace(/left|right|bottom|top/g, (n) => m[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 E(t) {
|
81
|
+
return typeof t != "number" ? y(t) : {
|
82
|
+
top: t,
|
83
|
+
right: t,
|
84
|
+
bottom: t,
|
85
|
+
left: t
|
86
|
+
};
|
87
|
+
}
|
88
|
+
function R(t) {
|
89
|
+
return {
|
90
|
+
...t,
|
91
|
+
top: t.y,
|
92
|
+
left: t.x,
|
93
|
+
right: t.x + t.width,
|
94
|
+
bottom: t.y + t.height
|
95
|
+
};
|
96
|
+
}
|
69
97
|
export {
|
70
|
-
|
98
|
+
S as clamp,
|
99
|
+
O as createCoords,
|
100
|
+
w as evaluate,
|
101
|
+
y as expandPaddingObject,
|
102
|
+
M as floor,
|
103
|
+
g as getAlignment,
|
104
|
+
d as getAlignmentAxis,
|
105
|
+
j as getAlignmentSides,
|
106
|
+
x as getAxisLength,
|
107
|
+
C as getExpandedPlacements,
|
108
|
+
c as getOppositeAlignmentPlacement,
|
109
|
+
h as getOppositeAxis,
|
110
|
+
L as getOppositeAxisPlacements,
|
111
|
+
u as getOppositePlacement,
|
112
|
+
E as getPaddingObject,
|
113
|
+
f as getSide,
|
114
|
+
b as getSideAxis,
|
115
|
+
a as max,
|
116
|
+
l as min,
|
117
|
+
R as rectToClientRect,
|
118
|
+
P as round
|
71
119
|
};
|
72
120
|
//# sourceMappingURL=index239.js.map
|
package/dist/index239.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index239.js","sources":["../
|
1
|
+
{"version":3,"file":"index239.js","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["const sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n return {\n ...rect,\n top: rect.y,\n left: rect.x,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":["min","max","round","floor","createCoords","v","oppositeSideMap","oppositeAlignmentMap","clamp","start","value","end","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","getSideAxis","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","getSideList","side","isStart","lr","rl","tb","bt","getOppositeAxisPlacements","flipAlignment","direction","list","expandPaddingObject","padding","getPaddingObject","rectToClientRect","rect"],"mappings":"AAGK,MAACA,IAAM,KAAK,KACXC,IAAM,KAAK,KACXC,IAAQ,KAAK,OACbC,IAAQ,KAAK,OACbC,IAAe,CAAAC,OAAM;AAAA,EACzB,GAAGA;AAAA,EACH,GAAGA;AACL,IACMC,IAAkB;AAAA,EACtB,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,KAAK;AACP,GACMC,IAAuB;AAAA,EAC3B,OAAO;AAAA,EACP,KAAK;AACP;AACA,SAASC,EAAMC,GAAOC,GAAOC,GAAK;AAChC,SAAOV,EAAIQ,GAAOT,EAAIU,GAAOC,CAAG,CAAC;AACnC;AACA,SAASC,EAASF,GAAOG,GAAO;AAC9B,SAAO,OAAOH,KAAU,aAAaA,EAAMG,CAAK,IAAIH;AACtD;AACA,SAASI,EAAQC,GAAW;AAC1B,SAAOA,EAAU,MAAM,GAAG,EAAE,CAAC;AAC/B;AACA,SAASC,EAAaD,GAAW;AAC/B,SAAOA,EAAU,MAAM,GAAG,EAAE,CAAC;AAC/B;AACA,SAASE,EAAgBC,GAAM;AAC7B,SAAOA,MAAS,MAA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|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
return;
|
47
|
-
l.value = null;
|
48
|
-
const n = h.value.get(t.value);
|
49
|
-
R(n) ? F(t.value) : u("duplicate", t.value), t.value = "";
|
50
|
-
} else if (e.key === "ArrowLeft")
|
51
|
-
l.value === null ? l.value = o.value.length - 1 : l.value === 0 ? l.value = null : l.value--;
|
52
|
-
else if (e.key === "ArrowRight")
|
53
|
-
l.value === null ? l.value = 1 : l.value === o.value.length - 1 ? l.value = null : l.value++;
|
54
|
-
else if (e.key === "Backspace") {
|
55
|
-
if (t.value)
|
56
|
-
return;
|
57
|
-
w(l.value) ? (b(l.value), l.value = P(
|
58
|
-
l.value,
|
59
|
-
0,
|
60
|
-
o.value.length - 2
|
61
|
-
), o.value.length === 1 && (l.value = null)) : l.value = o.value.length - 1;
|
62
|
-
} else
|
63
|
-
(e.key === "Tab" || e.key === "Escape") && (l.value = null);
|
64
|
-
}, F = (e) => {
|
65
|
-
a.multiple ? u("update:modelValue", a.modelValue.concat(e)) : u("update:modelValue", e);
|
66
|
-
}, b = (e) => {
|
67
|
-
if (typeof e == "number")
|
68
|
-
a.multiple ? u("update:modelValue", q(a.modelValue, 1, e)) : u("update:modelValue", null);
|
69
|
-
else {
|
70
|
-
const n = h.value.get(t.value);
|
71
|
-
b(n);
|
72
|
-
}
|
73
|
-
}, M = (e) => {
|
74
|
-
u("focus", e), f.value = !0, document.addEventListener("click", _), document.addEventListener("focusin", V), c.value instanceof HTMLInputElement && c.value.select();
|
75
|
-
}, O = (e) => {
|
76
|
-
u("click", e), !(a.disabled || a.readonly) && c.value instanceof HTMLElement && c.value.focus();
|
77
|
-
}, _ = (e) => {
|
78
|
-
if (e.target instanceof Node && i.value && !i.value.contains(e.target)) {
|
79
|
-
u("inactive"), document.removeEventListener("click", _), f.value = !1, a.multiple && L(500).then(() => {
|
80
|
-
t.value = "";
|
81
|
-
});
|
82
|
-
return;
|
83
|
-
}
|
84
|
-
}, V = (e) => {
|
85
|
-
if (e.target instanceof Node && i.value && !i.value.contains(e.target)) {
|
86
|
-
u("inactive"), document.removeEventListener("focusin", V), f.value = !1, a.multiple && L(500).then(() => {
|
87
|
-
t.value = "";
|
88
|
-
});
|
89
|
-
return;
|
90
|
-
}
|
91
|
-
}, T = {
|
92
|
-
onBlur: (e) => u("blur", e),
|
93
|
-
onChange: (e) => u("change", e),
|
94
|
-
onKeydown: (e) => {
|
95
|
-
e.key === "Enter" && a.divider === "Enter" && e.preventDefault(), u("keydown", e);
|
96
|
-
},
|
97
|
-
onInput: (e) => u("input", e)
|
98
|
-
};
|
99
|
-
return (e, n) => (p(), m("span", {
|
100
|
-
class: g({
|
101
|
-
"bb-base-tag": !0,
|
102
|
-
"bb-base-tag--active": f.value,
|
103
|
-
"bb-base-tag--disabled": e.disabled,
|
104
|
-
"bb-base-tag--errors": e.hasErrors,
|
105
|
-
"bb-base-tag--readonly": e.readonly
|
106
|
-
}),
|
107
|
-
onClick: O,
|
108
|
-
ref_key: "outerContainer",
|
109
|
-
ref: i
|
110
|
-
}, [
|
111
|
-
v(e.$slots, "prepend-outer"),
|
112
|
-
k("span", {
|
113
|
-
class: "bb-base-tag__inner-container",
|
114
|
-
ref_key: "innerContainer",
|
115
|
-
ref: $
|
116
|
-
}, [
|
117
|
-
v(e.$slots, "prepend"),
|
118
|
-
k("span", j, [
|
119
|
-
e.comma ? (p(!0), m(E, { key: 0 }, C(o.value, (r, d) => (p(), m("span", {
|
120
|
-
class: g({
|
121
|
-
"bb-base-tag__selected": !0,
|
122
|
-
"bb-base-tag__selected--comma": !0,
|
123
|
-
"bb-base-tag__selected--focused": d === l.value
|
124
|
-
}),
|
125
|
-
key: r
|
126
|
-
}, B(r) + B(d < o.value.length - 1 ? "," : ""), 3))), 128)) : (p(!0), m(E, { key: 1 }, C(o.value, (r, d) => (p(), S(U, {
|
127
|
-
class: g({
|
128
|
-
"bb-base-tag__selected": !0,
|
129
|
-
"bb-base-tag__selected--chip": !0,
|
130
|
-
"bb-base-tag__selected--focused": d === l.value
|
131
|
-
}),
|
132
|
-
clearable: !0,
|
133
|
-
key: r,
|
134
|
-
text: r,
|
135
|
-
"onClick:clear": (Q) => b(d)
|
136
|
-
}, null, 8, ["class", "text", "onClick:clear"]))), 128)),
|
137
|
-
z(k("input", H({
|
138
|
-
autocomplete: e.autocomplete,
|
139
|
-
autofocus: e.autofocus,
|
140
|
-
class: "bb-base-tag__text-input",
|
141
|
-
disabled: e.disabled,
|
142
|
-
id: e.id,
|
143
|
-
placeholder: D.value,
|
144
|
-
readonly: e.readonly,
|
145
|
-
type: "text",
|
146
|
-
onKeyup: A,
|
147
|
-
onFocus: M
|
148
|
-
}, T, {
|
149
|
-
"onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r),
|
150
|
-
ref_key: "input",
|
151
|
-
ref: c
|
152
|
-
}), null, 16, G), [
|
153
|
-
[J, t.value]
|
154
|
-
])
|
155
|
-
]),
|
156
|
-
v(e.$slots, "append")
|
157
|
-
], 512),
|
158
|
-
v(e.$slots, "append-outer")
|
159
|
-
], 2));
|
1
|
+
function l(n) {
|
2
|
+
return a(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
3
|
+
}
|
4
|
+
function i(n) {
|
5
|
+
var t;
|
6
|
+
return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
7
|
+
}
|
8
|
+
function y(n) {
|
9
|
+
var t;
|
10
|
+
return (t = (a(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
|
11
|
+
}
|
12
|
+
function a(n) {
|
13
|
+
return n instanceof Node || n instanceof i(n).Node;
|
14
|
+
}
|
15
|
+
function S(n) {
|
16
|
+
return n instanceof Element || n instanceof i(n).Element;
|
17
|
+
}
|
18
|
+
function d(n) {
|
19
|
+
return n instanceof HTMLElement || n instanceof i(n).HTMLElement;
|
20
|
+
}
|
21
|
+
function s(n) {
|
22
|
+
return typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
|
23
|
+
}
|
24
|
+
function m(n) {
|
25
|
+
const {
|
26
|
+
overflow: t,
|
27
|
+
overflowX: e,
|
28
|
+
overflowY: o,
|
29
|
+
display: r
|
30
|
+
} = p(n);
|
31
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
|
32
|
+
}
|
33
|
+
function E(n) {
|
34
|
+
return ["table", "td", "th"].includes(l(n));
|
35
|
+
}
|
36
|
+
function N(n) {
|
37
|
+
const t = h(), e = p(n);
|
38
|
+
return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
|
39
|
+
}
|
40
|
+
function T(n) {
|
41
|
+
let t = u(n);
|
42
|
+
for (; d(t) && !w(t); ) {
|
43
|
+
if (N(t))
|
44
|
+
return t;
|
45
|
+
t = u(t);
|
160
46
|
}
|
161
|
-
|
47
|
+
return null;
|
48
|
+
}
|
49
|
+
function h() {
|
50
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
51
|
+
}
|
52
|
+
function w(n) {
|
53
|
+
return ["html", "body", "#document"].includes(l(n));
|
54
|
+
}
|
55
|
+
function p(n) {
|
56
|
+
return i(n).getComputedStyle(n);
|
57
|
+
}
|
58
|
+
function v(n) {
|
59
|
+
return S(n) ? {
|
60
|
+
scrollLeft: n.scrollLeft,
|
61
|
+
scrollTop: n.scrollTop
|
62
|
+
} : {
|
63
|
+
scrollLeft: n.pageXOffset,
|
64
|
+
scrollTop: n.pageYOffset
|
65
|
+
};
|
66
|
+
}
|
67
|
+
function u(n) {
|
68
|
+
if (l(n) === "html")
|
69
|
+
return n;
|
70
|
+
const t = (
|
71
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
72
|
+
n.assignedSlot || // DOM Element detected.
|
73
|
+
n.parentNode || // ShadowRoot detected.
|
74
|
+
s(n) && n.host || // Fallback.
|
75
|
+
y(n)
|
76
|
+
);
|
77
|
+
return s(t) ? t.host : t;
|
78
|
+
}
|
79
|
+
function g(n) {
|
80
|
+
const t = u(n);
|
81
|
+
return w(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : d(t) && m(t) ? t : g(t);
|
82
|
+
}
|
83
|
+
function f(n, t, e) {
|
84
|
+
var o;
|
85
|
+
t === void 0 && (t = []), e === void 0 && (e = !0);
|
86
|
+
const r = g(n), b = r === ((o = n.ownerDocument) == null ? void 0 : o.body), c = i(r);
|
87
|
+
return b ? t.concat(c, c.visualViewport || [], m(r) ? r : [], c.frameElement && e ? f(c.frameElement) : []) : t.concat(r, f(r, [], e));
|
88
|
+
}
|
162
89
|
export {
|
163
|
-
|
90
|
+
p as getComputedStyle,
|
91
|
+
T as getContainingBlock,
|
92
|
+
y as getDocumentElement,
|
93
|
+
g as getNearestOverflowAncestor,
|
94
|
+
l as getNodeName,
|
95
|
+
v as getNodeScroll,
|
96
|
+
f as getOverflowAncestors,
|
97
|
+
u as getParentNode,
|
98
|
+
i as getWindow,
|
99
|
+
N as isContainingBlock,
|
100
|
+
S as isElement,
|
101
|
+
d as isHTMLElement,
|
102
|
+
w as isLastTraversableNode,
|
103
|
+
a as isNode,
|
104
|
+
m as isOverflowElement,
|
105
|
+
s as isShadowRoot,
|
106
|
+
E as isTableElement,
|
107
|
+
h as isWebKit
|
164
108
|
};
|
165
109
|
//# sourceMappingURL=index240.js.map
|
package/dist/index240.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index240.js","sources":["../src/components/BaseTag/BaseTag.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createCommentVNode as _createCommentVNode, createBlock as _createBlock, vModelDynamic as _vModelDynamic, mergeProps as _mergeProps, createElementVNode as _createElementVNode, withDirectives as _withDirectives } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-base-tag__input-container\" }\nconst _hoisted_2 = [\"autocomplete\", \"autofocus\", \"disabled\", \"id\", \"placeholder\", \"readonly\"]\n\nimport { clamp } from \"@/utilities/functions/clamp\";\nimport { computed, ref } from \"vue\";\nimport { drop } from \"@/utilities/functions/drop\";\nimport { isNil } from \"@/utilities/functions/isNil\";\nimport { isNotNil } from \"@/utilities/functions/isNotNil\";\nimport { wait } from \"@/utilities/functions/wait\";\nimport BbChip from \"../BbChip/BbChip.vue\";\nimport type { InputHTMLAttributes, HTMLAttributes } from \"vue\";\n\nexport type BaseTagProps = {\n /**\n * Guides to the browser as to the type of information expected in the field.\n */\n autocomplete?: InputHTMLAttributes[\"autocomplete\"];\n\n /**\n * Sets autofocus on page load.\n */\n autofocus?: InputHTMLAttributes[\"autofocus\"];\n\n /**\n * Sets the display model for selected values to a list\n * of comma separated string. In this mode the user\n * cannot deselect an option by pressing the close button.\n */\n comma?: boolean;\n\n /**\n * Disables the component\n */\n disabled?: boolean;\n\n /**\n * The divider key used to separate values from one another. By default it is \"Enter\"\n */\n divider?: KeyboardEvent[\"key\"];\n\n /**\n * Define if the component should be in an error state.\n * It usually attaches a CSS class for styling purposes.\n */\n hasErrors?: boolean;\n\n /**\n * The identifier of the component.\n */\n id?: HTMLAttributes[\"id\"];\n\n /**\n * Used by v-model. Can be any serializable type.\n */\n modelValue: any;\n\n /**\n * Allows the selection of multiple items.\n */\n multiple?: boolean;\n\n /**\n * Defines the name of the input.\n */\n name?: InputHTMLAttributes[\"name\"];\n\n /**\n * String displayed when there's no data.\n */\n placeholder?: InputHTMLAttributes[\"placeholder\"];\n\n /**\n * Sets the input in a readonly state.\n */\n readonly?: InputHTMLAttributes[\"readonly\"];\n};\n\nexport type BaseTagEvents = {\n (e: \"blur\", event: FocusEvent): void;\n\n (e: \"change\", event: Event): void;\n\n (e: \"click\", event: MouseEvent): void;\n\n (e: \"duplicate\", string: string): void;\n\n (e: \"focus\", event: FocusEvent): void;\n\n (e: \"inactive\"): void;\n\n (e: \"input\", event: Event): void;\n\n (e: \"keydown\", event: KeyboardEvent): void;\n\n (e: \"keyup\", event: KeyboardEvent): void;\n\n (e: \"update:modelValue\", value: any): void;\n};\n\nexport type BaseTagSlots = {\n append?: (props: {}) => any;\n\n \"append-outer\"?: (props: {}) => any;\n\n prepend?: (props: {}) => any;\n\n \"prepend-outer\"?: (props: {}) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseTag',\n props: {\n autocomplete: {},\n autofocus: {},\n comma: { type: Boolean },\n disabled: { type: Boolean },\n divider: { default: \"Enter\" },\n hasErrors: { type: Boolean },\n id: {},\n modelValue: {},\n multiple: { type: Boolean, default: true },\n name: {},\n placeholder: {},\n readonly: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"duplicate\", \"focus\", \"inactive\", \"input\", \"keydown\", \"keyup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\n\n\nif (props.multiple && !Array.isArray(props.modelValue)) {\n throw new Error('Multiple is set to \"true\" but modelValue is not an array.');\n}\n\nconst outerContainer = ref<HTMLElement | null>(null);\nconst innerContainer = ref<HTMLElement | null>(null);\nconst input = ref<HTMLElement | null>(null);\nconst query = ref<string>(\"\");\nconst computedPlaceholder = computed(() => {\n return props.placeholder;\n});\n\nconst modelValueNormalized = computed(() =>\n [].concat(props.modelValue).filter(isNotNil)\n);\n\n/**\n * Indexes modelValue to a map so when can easily know which values are selected\n */\nconst modelValueIndexed = computed(() => {\n let map: { [key: string]: number } = {};\n modelValueNormalized.value.forEach((value: any, index: number) => {\n map[JSON.stringify(value)] = index;\n });\n return {\n get: (value: any) => map[JSON.stringify(value)],\n };\n});\n\n/**\n * Applies a class when the user is inside this whole component.\n * We cannot use focus within as it doesn't work for elements that are teleported.\n * Also we cannot use the <input/> if we phisically move focus to the options so\n * we track it manually.\n */\nconst active = ref(false);\n\nconst focusedIndex = ref<null | number>(null);\n\nconst onInputKeyup = (event: KeyboardEvent) => {\n emit(\"keyup\", event);\n if (props.readonly || props.disabled) {\n event.preventDefault();\n return;\n }\n if (event.key === props.divider) {\n if (query.value[query.value.length - 1] === event.key) {\n query.value = query.value.slice(0, query.value.length - 1);\n }\n if (!query.value) return;\n focusedIndex.value = null;\n const currentIndex = modelValueIndexed.value.get(query.value);\n if (isNil(currentIndex)) selectValue(query.value);\n else emit(\"duplicate\", query.value);\n query.value = \"\";\n } else if (event.key === \"ArrowLeft\") {\n if (focusedIndex.value === null)\n focusedIndex.value = modelValueNormalized.value.length - 1;\n else if (focusedIndex.value === 0) focusedIndex.value = null;\n else focusedIndex.value--;\n } else if (event.key === \"ArrowRight\") {\n if (focusedIndex.value === null) focusedIndex.value = 1;\n else if (focusedIndex.value === modelValueNormalized.value.length - 1)\n focusedIndex.value = null;\n else focusedIndex.value++;\n } else if (event.key === \"Backspace\") {\n if (query.value) return;\n if (isNotNil(focusedIndex.value)) {\n removeValue(focusedIndex.value);\n focusedIndex.value = clamp(\n focusedIndex.value,\n 0,\n modelValueNormalized.value.length - 2\n );\n if (modelValueNormalized.value.length === 1) focusedIndex.value = null;\n } else focusedIndex.value = modelValueNormalized.value.length - 1;\n } else if (event.key === \"Tab\" || event.key === \"Escape\") {\n focusedIndex.value = null;\n }\n};\n\nconst selectValue = (text: string) => {\n if (props.multiple) emit(\"update:modelValue\", props.modelValue.concat(text));\n else emit(\"update:modelValue\", text);\n};\n\nconst removeValue = (indexOrString: number | string) => {\n if (typeof indexOrString === \"number\") {\n if (props.multiple)\n emit(\"update:modelValue\", drop(props.modelValue, 1, indexOrString));\n else emit(\"update:modelValue\", null);\n } else {\n const currentIndex = modelValueIndexed.value.get(query.value);\n removeValue(currentIndex);\n }\n};\n\nconst onInputFocus = (event: FocusEvent) => {\n emit(\"focus\", event);\n active.value = true;\n document.addEventListener(\"click\", onClickOutside);\n document.addEventListener(\"focusin\", onFocusOutside);\n if (input.value instanceof HTMLInputElement) input.value.select();\n};\n\n/**\n * When clicking on the outside container seamlessly move focus to the input and open the panel\n */\nconst onOuterContainerClick = (event: MouseEvent) => {\n emit(\"click\", event);\n if (props.disabled || props.readonly) return;\n if (input.value instanceof HTMLElement) {\n input.value.focus();\n }\n};\n\n/**\n * On click outside of the container close the panel, remove active state.\n * In multiple selection clear query after a timeout\n */\nconst onClickOutside = (event: Event) => {\n if (event.target instanceof Node) {\n if (outerContainer.value) {\n if (!outerContainer.value.contains(event.target)) {\n emit(\"inactive\");\n document.removeEventListener(\"click\", onClickOutside);\n active.value = false;\n if (props.multiple)\n wait(500).then(() => {\n query.value = \"\";\n });\n return;\n }\n }\n }\n};\n\nconst onFocusOutside = (event: FocusEvent) => {\n if (event.target instanceof Node) {\n if (outerContainer.value) {\n if (!outerContainer.value.contains(event.target)) {\n emit(\"inactive\");\n document.removeEventListener(\"focusin\", onFocusOutside);\n active.value = false;\n if (props.multiple)\n wait(500).then(() => {\n query.value = \"\";\n });\n return;\n }\n }\n }\n};\n\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onKeydown: (event: KeyboardEvent) => {\n if (event.key === \"Enter\" && props.divider === \"Enter\") {\n event.preventDefault();\n }\n emit(\"keydown\", event);\n },\n onInput: (event: Event) => emit(\"input\", event),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n class: _normalizeClass({\n 'bb-base-tag': true,\n 'bb-base-tag--active': active.value,\n 'bb-base-tag--disabled': _ctx.disabled,\n 'bb-base-tag--errors': _ctx.hasErrors,\n 'bb-base-tag--readonly': _ctx.readonly,\n }),\n onClick: onOuterContainerClick,\n ref_key: \"outerContainer\",\n ref: outerContainer\n }, [\n _renderSlot(_ctx.$slots, \"prepend-outer\"),\n _createElementVNode(\"span\", {\n class: \"bb-base-tag__inner-container\",\n ref_key: \"innerContainer\",\n ref: innerContainer\n }, [\n _renderSlot(_ctx.$slots, \"prepend\"),\n _createElementVNode(\"span\", _hoisted_1, [\n (_ctx.comma)\n ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(modelValueNormalized.value, (option, index) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n class: _normalizeClass({\n 'bb-base-tag__selected': true,\n 'bb-base-tag__selected--comma': true,\n 'bb-base-tag__selected--focused': index === focusedIndex.value,\n }),\n key: option\n }, _toDisplayString(option) + _toDisplayString(index < modelValueNormalized.value.length - 1 ? \",\" : \"\"), 3))\n }), 128))\n : (_openBlock(true), _createElementBlock(_Fragment, { key: 1 }, _renderList(modelValueNormalized.value, (option, index) => {\n return (_openBlock(), _createBlock(BbChip, {\n class: _normalizeClass({\n 'bb-base-tag__selected': true,\n 'bb-base-tag__selected--chip': true,\n 'bb-base-tag__selected--focused': index === focusedIndex.value,\n }),\n clearable: true,\n key: option,\n text: option,\n \"onClick:clear\": ($event: any) => (removeValue(index))\n }, null, 8, [\"class\", \"text\", \"onClick:clear\"]))\n }), 128)),\n _withDirectives(_createElementVNode(\"input\", _mergeProps({\n autocomplete: _ctx.autocomplete,\n autofocus: _ctx.autofocus,\n class: 'bb-base-tag__text-input',\n disabled: _ctx.disabled,\n id: _ctx.id,\n placeholder: computedPlaceholder.value,\n readonly: _ctx.readonly,\n type: 'text',\n onKeyup: onInputKeyup,\n onFocus: onInputFocus\n }, eventListeners, {\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((query).value = $event)),\n ref_key: \"input\",\n ref: input\n }), null, 16, _hoisted_2), [\n [_vModelDynamic, query.value]\n ])\n ]),\n _renderSlot(_ctx.$slots, \"append\")\n ], 512),\n _renderSlot(_ctx.$slots, \"append-outer\")\n ], 2))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","__emit","props","emit","outerContainer","ref","innerContainer","input","query","computedPlaceholder","computed","modelValueNormalized","isNotNil","modelValueIndexed","map","value","index","active","focusedIndex","onInputKeyup","event","currentIndex","isNil","selectValue","removeValue","clamp","text","indexOrString","drop","onInputFocus","onClickOutside","onFocusOutside","onOuterContainerClick","wait","eventListeners","_ctx","_cache","_openBlock","_createElementBlock","_normalizeClass","_renderSlot","_createElementVNode","_Fragment","_renderList","option","_toDisplayString","_createBlock","BbChip","$event","_withDirectives","_mergeProps","_vModelDynamic"],"mappings":";;;;;;;;AAGA,MAAMA,IAAa,EAAE,OAAO,kCACtBC,IAAa,CAAC,gBAAgB,aAAa,YAAY,MAAM,eAAe,UAAU,GA6GhEC,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,CAAC;AAAA,IACf,WAAW,CAAC;AAAA,IACZ,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,SAAS,EAAE,SAAS,QAAQ;AAAA,IAC5B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,YAAY,CAAC;AAAA,IACb,UAAU,EAAE,MAAM,SAAS,SAAS,GAAK;AAAA,IACzC,MAAM,CAAC;AAAA,IACP,aAAa,CAAC;AAAA,IACd,UAAU,CAAC;AAAA,EACb;AAAA,EACA,OAAO,CAAC,QAAQ,UAAU,SAAS,aAAa,SAAS,YAAY,SAAS,WAAW,SAAS,mBAAmB;AAAA,EACrH,MAAMC,GAAc,EAAE,MAAMC,KAA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AAMA;AAAA,YACN,iBAAiB,CAACI,MAAiBxB,EAAYR,CAAK;AAAA,UAAA,GACnD,MAAM,GAAG,CAAC,SAAS,QAAQ,eAAe,CAAC,EAC/C,GAAG,GAAG;AAAA,UACXiC,EAAgBR,EAAoB,SAASS,EAAY;AAAA,YACvD,cAAcf,EAAK;AAAA,YACnB,WAAWA,EAAK;AAAA,YAChB,OAAO;AAAA,YACP,UAAUA,EAAK;AAAA,YACf,IAAIA,EAAK;AAAA,YACT,aAAa1B,EAAoB;AAAA,YACjC,UAAU0B,EAAK;AAAA,YACf,MAAM;AAAA,YACN,SAAShB;AAAA,YACT,SAASU;AAAA,aACRK,GAAgB;AAAA,YACjB,uBAAuBE,EAAO,CAAC,MAAMA,EAAO,CAAC,IAAI,CAACY,MAAkBxC,EAAO,QAAQwC;AAAA,YACnF,SAAS;AAAA,YACT,KAAKzC;AAAA,UACN,CAAA,GAAG,MAAM,IAAIV,CAAU,GAAG;AAAA,YACzB,CAACsD,GAAgB3C,EAAM,KAAK;AAAA,UAAA,CAC7B;AAAA,QAAA,CACF;AAAA,QACDgC,EAAYL,EAAK,QAAQ,QAAQ;AAAA,SAChC,GAAG;AAAA,MACNK,EAAYL,EAAK,QAAQ,cAAc;AAAA,OACtC,CAAC;AAAA,EAEN;AAEA,CAAC;"}
|
1
|
+
{"version":3,"file":"index240.js","sources":["../node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["function getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n // Browsers without `ShadowRoot` support.\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n const webkit = isWebKit();\n const css = getComputedStyle(element);\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else {\n currentNode = getParentNode(currentNode);\n }\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.pageXOffset,\n scrollTop: element.pageYOffset\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isWebKit };\n"],"names":["getNodeName","node","isNode","getWindow","_node$ownerDocument","getDocumentElement","_ref","value","isElement","isHTMLElement","isShadowRoot","isOverflowElement","element","overflow","overflowX","overflowY","display","getComputedStyle","isTableElement","isContainingBlock","webkit","isWebKit","css","getContainingBlock","currentNode","getParentNode","isLastTraversableNode","getNodeScroll","result","getNearestOverflowAncestor","parentNode","getOverflowAncestors","list","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win"],"mappings":"AAAA,SAASA,EAAYC,GAAM;AACzB,SAAIC,EAAOD,CAAI,KACLA,EAAK,YAAY,IAAI,YAAW,IAKnC;AACT;AACA,SAASE,EAAUF,GAAM;AACvB,MAAIG;AACJ,UAAQH,KAAQ,SAAiBG,IAAsBH,EAAK,kBAAkB,OAAvD,SAAuEG,EAAoB,gBAAgB;AACpI;AACA,SAASC,EAAmBJ,GAAM;AAChC,MAAIK;AACJ,UAAQA,KAAQJ,EAAOD,CAAI,IAAIA,EAAK,gBAAgBA,EAAK,aAAa,OAAO,aAAa,OAAO,SAASK,EAAK;AACjH;AACA,SAASJ,EAAOK,GAAO;AACrB,SAAOA,aAAiB,QAAQA,aAAiBJ,EAAUI,CAAK,EAAE;AACpE;AACA,SAASC,EAAUD,GAAO;AACxB,SAAOA,aAAiB,WAAWA,aAAiBJ,EAAUI,CAAK,EAAE;AACvE;AACA,SAASE,EAAcF,GAAO;AAC5B,SAAOA,aAAiB,eAAeA,aAAiBJ,EAAUI,CAAK,EAAE;AAC3E;AACA,SAASG,EAAaH,GAAO;AAE3B,SAAI,OAAO,aAAe,MACjB,KAEFA,aAAiB,cAAcA,aAAiBJ,EAAUI,CAAK,EAAE;AAC1E;AACA,SAASI,EAAkBC,GAAS;AAClC,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,SAAAC;AAAA,EACJ,IAAMC,EAAiBL,CAAO;AAC5B,SAAO,kCAAkC,KAAKC,IAAWE,IAAYD,CAAS,KAAK,CAAC,CAAC,UAAU,UAAU,EAAE,SAASE,CAAO;AAC7H;AACA,SAASE,EAAeN,GAAS;AAC/B,SAAO,CAAC,SAAS,MAAM,IAAI,EAAE,SAASZ,EAAYY,CAAO,CAAC;AAC5D;AACA,SA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AAOA;AAET,QAAM2B;AAAA;AAAA,IAEN3B,EAAK;AAAA,IAELA,EAAK;AAAA,IAELS,EAAaT,CAAI,KAAKA,EAAK;AAAA,IAE3BI,EAAmBJ,CAAI;AAAA;AACvB,SAAOS,EAAakB,CAAM,IAAIA,EAAO,OAAOA;AAC9C;AACA,SAASC,EAA2B5B,GAAM;AACxC,QAAM6B,IAAaL,EAAcxB,CAAI;AACrC,SAAIyB,EAAsBI,CAAU,IAC3B7B,EAAK,gBAAgBA,EAAK,cAAc,OAAOA,EAAK,OAEzDQ,EAAcqB,CAAU,KAAKnB,EAAkBmB,CAAU,IACpDA,IAEFD,EAA2BC,CAAU;AAC9C;AACA,SAASC,EAAqB9B,GAAM+B,GAAMC,GAAiB;AACzD,MAAIC;AACJ,EAAIF,MAAS,WACXA,IAAO,CAAA,IAELC,MAAoB,WACtBA,IAAkB;AAEpB,QAAME,IAAqBN,EAA2B5B,CAAI,GACpDmC,IAASD,QAAyBD,IAAuBjC,EAAK,kBAAkB,OAAO,SAASiC,EAAqB,OACrHG,IAAMlC,EAAUgC,CAAkB;AACxC,SAAIC,IACKJ,EAAK,OAAOK,GAAKA,EAAI,kBAAkB,CAAE,GAAE1B,EAAkBwB,CAAkB,IAAIA,IAAqB,IAAIE,EAAI,gBAAgBJ,IAAkBF,EAAqBM,EAAI,YAAY,IAAI,CAAA,CAAE,IAE/LL,EAAK,OAAOG,GAAoBJ,EAAqBI,GAAoB,CAAE,GAAEF,CAAe,CAAC;AACtG;","x_google_ignoreList":[0]}
|
package/dist/index241.js
CHANGED
package/dist/index241.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index241.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
1
|
+
{"version":3,"file":"index241.js","sources":["../src/utilities/functions/curry.ts"],"sourcesContent":["export type Curried<A extends any[], R> =\n <P extends Partial<A>>(...args: P) => P extends A ? R :\n A extends [...SameLength<P>, ...infer S] ? S extends any[] ? Curried<S, R>\n : never : never;\n\ntype SameLength<T extends any[]> = Extract<{ [K in keyof T]: any }, any[]>\n\nexport const curry = function<A extends any[], R>(fn: (...args: A) => R): Curried<A, R> {\n return (...args: any[]): any =>\n args.length >= fn.length ? fn(...args as any) : curry((fn as any).bind(undefined, ...args));\n }"],"names":["curry","fn","args"],"mappings":"AAOa,MAAAA,IAAQ,SAA6BC,GAAsC;AACpF,SAAO,IAAIC,MACTA,EAAK,UAAUD,EAAG,SAASA,EAAG,GAAGC,CAAW,IAAIF,EAAOC,EAAW,KAAK,QAAW,GAAGC,CAAI,CAAC;AAC9F;"}
|