bitboss-ui 0.2.2 → 0.2.3
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/BbTable/BbTable.vue.d.ts +21 -21
- package/dist/components/BbTable/types.d.ts +129 -68
- package/dist/index101.js +18 -18
- package/dist/index101.js.map +1 -1
- 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 +2 -2
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +4 -2
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +3 -4
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +32 -232
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +6 -2
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +2 -2
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +351 -3
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +133 -34
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +5 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +19 -5
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +2 -16
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -16
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +184 -17
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +23 -20
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +367 -27
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.js +2 -8
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +16 -2
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +14 -349
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +17 -131
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +27 -184
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +8 -23
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +225 -359
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +10 -3
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +2 -3
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +3 -10
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +3 -2
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +7 -114
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +113 -25
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +27 -12
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +12 -8
- package/dist/index224.js.map +1 -1
- package/dist/index226.js +4 -2
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +434 -3
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +82 -428
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +197 -86
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index237.js +2 -200
- package/dist/index237.js.map +1 -1
- package/dist/index241.js +2 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +69 -224
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +2 -258
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +1 -1
- package/dist/index246.js +2 -69
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +224 -2
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +258 -2
- package/dist/index248.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index252.js +1 -1
- 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 +5 -5
- 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/index81.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index221.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index221.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index221.js","sources":["../src/utilities/functions/findRightIndex.ts"],"sourcesContent":["/**\n * Same as find but from the end of an array\n */\nexport const findRightIndex = <T>(arr: T[], iteratee: (value: T, index: number, arr: T[]) => boolean) => {\n for (let index = arr.length - 1; index >= 0; index--) {\n const element = arr[index];\n if(iteratee(element, index, arr)) {\n return index\n }\n }\n return -1;\n}"],"names":["findRightIndex","arr","iteratee","index","element"],"mappings":"AAGa,MAAAA,IAAiB,CAAIC,GAAUC,MAA6D;AACrG,WAASC,IAAQF,EAAI,SAAS,GAAGE,KAAS,GAAGA,KAAS;AAC5C,UAAAC,IAAUH,EAAIE,CAAK;AACzB,QAAGD,EAASE,GAASD,GAAOF,CAAG;AACpB,aAAAE;AAAA,EAEf;AACO,SAAA;AACX;"}
|
package/dist/index222.js
CHANGED
|
@@ -1,31 +1,119 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { computePosition as F } from "./index201.js";
|
|
2
|
+
import { autoUpdate as L, platform as N } from "./index201.js";
|
|
3
|
+
import { unref as o, computed as u, ref as i, shallowRef as U, watch as g, getCurrentScope as j, onScopeDispose as k, shallowReadonly as a } from "vue";
|
|
4
|
+
import { arrow as q } from "./index209.js";
|
|
5
|
+
import { detectOverflow as T, flip as W, offset as X, shift as Y } from "./index209.js";
|
|
6
|
+
function h(t) {
|
|
7
|
+
var l;
|
|
8
|
+
return (l = t == null ? void 0 : t.$el) != null ? l : t;
|
|
9
|
+
}
|
|
10
|
+
function H(t) {
|
|
11
|
+
return {
|
|
12
|
+
name: "arrow",
|
|
13
|
+
options: t,
|
|
14
|
+
fn(l) {
|
|
15
|
+
const n = h(o(t.element));
|
|
16
|
+
return n == null ? {} : q({
|
|
17
|
+
element: n,
|
|
18
|
+
padding: t.padding
|
|
19
|
+
}).fn(l);
|
|
17
20
|
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function C(t) {
|
|
24
|
+
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
25
|
+
}
|
|
26
|
+
function S(t, l) {
|
|
27
|
+
const n = C(t);
|
|
28
|
+
return Math.round(l * n) / n;
|
|
29
|
+
}
|
|
30
|
+
function I(t, l, n) {
|
|
31
|
+
n === void 0 && (n = {});
|
|
32
|
+
const x = n.whileElementsMounted, D = u(() => {
|
|
33
|
+
var e;
|
|
34
|
+
return (e = o(n.open)) != null ? e : !0;
|
|
35
|
+
}), O = u(() => o(n.middleware)), v = u(() => {
|
|
36
|
+
var e;
|
|
37
|
+
return (e = o(n.placement)) != null ? e : "bottom";
|
|
38
|
+
}), m = u(() => {
|
|
39
|
+
var e;
|
|
40
|
+
return (e = o(n.strategy)) != null ? e : "absolute";
|
|
41
|
+
}), V = u(() => {
|
|
42
|
+
var e;
|
|
43
|
+
return (e = o(n.transform)) != null ? e : !0;
|
|
44
|
+
}), f = u(() => h(t.value)), r = u(() => h(l.value)), p = i(0), w = i(0), c = i(m.value), E = i(v.value), P = U({}), y = i(!1), $ = u(() => {
|
|
45
|
+
const e = {
|
|
46
|
+
position: c.value,
|
|
47
|
+
left: "0",
|
|
48
|
+
top: "0"
|
|
49
|
+
};
|
|
50
|
+
if (!r.value)
|
|
51
|
+
return e;
|
|
52
|
+
const _ = S(r.value, p.value), M = S(r.value, w.value);
|
|
53
|
+
return V.value ? {
|
|
54
|
+
...e,
|
|
55
|
+
transform: "translate(" + _ + "px, " + M + "px)",
|
|
56
|
+
...C(r.value) >= 1.5 && {
|
|
57
|
+
willChange: "transform"
|
|
58
|
+
}
|
|
59
|
+
} : {
|
|
60
|
+
position: c.value,
|
|
61
|
+
left: _ + "px",
|
|
62
|
+
top: M + "px"
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
let s;
|
|
66
|
+
function d() {
|
|
67
|
+
f.value == null || r.value == null || F(f.value, r.value, {
|
|
68
|
+
middleware: O.value,
|
|
69
|
+
placement: v.value,
|
|
70
|
+
strategy: m.value
|
|
71
|
+
}).then((e) => {
|
|
72
|
+
p.value = e.x, w.value = e.y, c.value = e.strategy, E.value = e.placement, P.value = e.middlewareData, y.value = !0;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function R() {
|
|
76
|
+
typeof s == "function" && (s(), s = void 0);
|
|
77
|
+
}
|
|
78
|
+
function b() {
|
|
79
|
+
if (R(), x === void 0) {
|
|
80
|
+
d();
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (f.value != null && r.value != null) {
|
|
84
|
+
s = x(f.value, r.value, d);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function B() {
|
|
89
|
+
D.value || (y.value = !1);
|
|
18
90
|
}
|
|
19
|
-
return
|
|
91
|
+
return g([O, v, m], d, {
|
|
92
|
+
flush: "sync"
|
|
93
|
+
}), g([f, r], b, {
|
|
94
|
+
flush: "sync"
|
|
95
|
+
}), g(D, B, {
|
|
96
|
+
flush: "sync"
|
|
97
|
+
}), j() && k(R), {
|
|
98
|
+
x: a(p),
|
|
99
|
+
y: a(w),
|
|
100
|
+
strategy: a(c),
|
|
101
|
+
placement: a(E),
|
|
102
|
+
middlewareData: a(P),
|
|
103
|
+
isPositioned: a(y),
|
|
104
|
+
floatingStyles: $,
|
|
105
|
+
update: d
|
|
106
|
+
};
|
|
20
107
|
}
|
|
21
|
-
let l = s;
|
|
22
|
-
var n = new l(m, p);
|
|
23
|
-
const d = /* @__PURE__ */ f(n), _ = /* @__PURE__ */ c({
|
|
24
|
-
__proto__: null,
|
|
25
|
-
default: d
|
|
26
|
-
}, [n]);
|
|
27
108
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
109
|
+
H as arrow,
|
|
110
|
+
L as autoUpdate,
|
|
111
|
+
F as computePosition,
|
|
112
|
+
T as detectOverflow,
|
|
113
|
+
W as flip,
|
|
114
|
+
X as offset,
|
|
115
|
+
N as platform,
|
|
116
|
+
Y as shift,
|
|
117
|
+
I as useFloating
|
|
30
118
|
};
|
|
31
119
|
//# sourceMappingURL=index222.js.map
|
package/dist/index222.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index222.js","sources":["../node_modules/
|
|
1
|
+
{"version":3,"file":"index222.js","sources":["../node_modules/@floating-ui/vue/dist/floating-ui.vue.esm.js"],"sourcesContent":["import { arrow as arrow$1, computePosition } from '@floating-ui/dom';\nexport { autoPlacement, autoUpdate, computePosition, detectOverflow, flip, getOverflowAncestors, hide, inline, limitShift, offset, platform, shift, size } from '@floating-ui/dom';\nimport { unref, computed, ref, shallowRef, watch, getCurrentScope, onScopeDispose, shallowReadonly } from 'vue-demi';\n\nfunction unwrapElement(element) {\n var _$el;\n return (_$el = element == null ? void 0 : element.$el) != null ? _$el : element;\n}\n\n/**\n * Positions an inner element of the floating element such that it is centered to the reference element.\n * @param options The arrow options.\n * @see https://floating-ui.com/docs/arrow\n */\nfunction arrow(options) {\n return {\n name: 'arrow',\n options,\n fn(args) {\n const element = unwrapElement(unref(options.element));\n if (element == null) {\n return {};\n }\n return arrow$1({\n element,\n padding: options.padding\n }).fn(args);\n }\n };\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element next to a reference element when it is given a certain CSS positioning strategy.\n * @param reference The reference template ref.\n * @param floating The floating template ref.\n * @param options The floating options.\n * @see https://floating-ui.com/docs/vue\n */\nfunction useFloating(reference, floating, options) {\n if (options === void 0) {\n options = {};\n }\n const whileElementsMountedOption = options.whileElementsMounted;\n const openOption = computed(() => {\n var _unref;\n return (_unref = unref(options.open)) != null ? _unref : true;\n });\n const middlewareOption = computed(() => unref(options.middleware));\n const placementOption = computed(() => {\n var _unref2;\n return (_unref2 = unref(options.placement)) != null ? _unref2 : 'bottom';\n });\n const strategyOption = computed(() => {\n var _unref3;\n return (_unref3 = unref(options.strategy)) != null ? _unref3 : 'absolute';\n });\n const transformOption = computed(() => {\n var _unref4;\n return (_unref4 = unref(options.transform)) != null ? _unref4 : true;\n });\n const referenceElement = computed(() => unwrapElement(reference.value));\n const floatingElement = computed(() => unwrapElement(floating.value));\n const x = ref(0);\n const y = ref(0);\n const strategy = ref(strategyOption.value);\n const placement = ref(placementOption.value);\n const middlewareData = shallowRef({});\n const isPositioned = ref(false);\n const floatingStyles = computed(() => {\n const initialStyles = {\n position: strategy.value,\n left: '0',\n top: '0'\n };\n if (!floatingElement.value) {\n return initialStyles;\n }\n const xVal = roundByDPR(floatingElement.value, x.value);\n const yVal = roundByDPR(floatingElement.value, y.value);\n if (transformOption.value) {\n return {\n ...initialStyles,\n transform: \"translate(\" + xVal + \"px, \" + yVal + \"px)\",\n ...(getDPR(floatingElement.value) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy.value,\n left: xVal + \"px\",\n top: yVal + \"px\"\n };\n });\n let whileElementsMountedCleanup;\n function update() {\n if (referenceElement.value == null || floatingElement.value == null) {\n return;\n }\n computePosition(referenceElement.value, floatingElement.value, {\n middleware: middlewareOption.value,\n placement: placementOption.value,\n strategy: strategyOption.value\n }).then(position => {\n x.value = position.x;\n y.value = position.y;\n strategy.value = position.strategy;\n placement.value = position.placement;\n middlewareData.value = position.middlewareData;\n isPositioned.value = true;\n });\n }\n function cleanup() {\n if (typeof whileElementsMountedCleanup === 'function') {\n whileElementsMountedCleanup();\n whileElementsMountedCleanup = undefined;\n }\n }\n function attach() {\n cleanup();\n if (whileElementsMountedOption === undefined) {\n update();\n return;\n }\n if (referenceElement.value != null && floatingElement.value != null) {\n whileElementsMountedCleanup = whileElementsMountedOption(referenceElement.value, floatingElement.value, update);\n return;\n }\n }\n function reset() {\n if (!openOption.value) {\n isPositioned.value = false;\n }\n }\n watch([middlewareOption, placementOption, strategyOption], update, {\n flush: 'sync'\n });\n watch([referenceElement, floatingElement], attach, {\n flush: 'sync'\n });\n watch(openOption, reset, {\n flush: 'sync'\n });\n if (getCurrentScope()) {\n onScopeDispose(cleanup);\n }\n return {\n x: shallowReadonly(x),\n y: shallowReadonly(y),\n strategy: shallowReadonly(strategy),\n placement: shallowReadonly(placement),\n middlewareData: shallowReadonly(middlewareData),\n isPositioned: shallowReadonly(isPositioned),\n floatingStyles,\n update\n };\n}\n\nexport { arrow, useFloating };\n"],"names":["unwrapElement","element","_$el","arrow","options","args","unref","arrow$1","getDPR","roundByDPR","value","dpr","useFloating","reference","floating","whileElementsMountedOption","openOption","computed","_unref","middlewareOption","placementOption","_unref2","strategyOption","_unref3","transformOption","_unref4","referenceElement","floatingElement","x","ref","y","strategy","placement","middlewareData","shallowRef","isPositioned","floatingStyles","initialStyles","xVal","yVal","whileElementsMountedCleanup","update","computePosition","position","cleanup","attach","reset","watch","getCurrentScope","onScopeDispose","shallowReadonly"],"mappings":";;;;;AAIA,SAASA,EAAcC,GAAS;AAC9B,MAAIC;AACJ,UAAQA,IAAOD,KAAW,OAAO,SAASA,EAAQ,QAAQ,OAAOC,IAAOD;AAC1E;AAOA,SAASE,EAAMC,GAAS;AACtB,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAAA;AAAA,IACA,GAAGC,GAAM;AACP,YAAMJ,IAAUD,EAAcM,EAAMF,EAAQ,OAAO,CAAC;AACpD,aAAIH,KAAW,OACN,K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,EAAgB,SAAS,MAAM;AACnE,MAAAa,IAA8BzB,EAA2BW,EAAiB,OAAOC,EAAgB,OAAOc,CAAM;AAC9G;AAAA,IACD;AAAA,EACF;AACD,WAASK,IAAQ;AACf,IAAK9B,EAAW,UACdmB,EAAa,QAAQ;AAAA,EAExB;AACD,SAAAY,EAAM,CAAC5B,GAAkBC,GAAiBE,CAAc,GAAGmB,GAAQ;AAAA,IACjE,OAAO;AAAA,EACX,CAAG,GACDM,EAAM,CAACrB,GAAkBC,CAAe,GAAGkB,GAAQ;AAAA,IACjD,OAAO;AAAA,EACX,CAAG,GACDE,EAAM/B,GAAY8B,GAAO;AAAA,IACvB,OAAO;AAAA,EACX,CAAG,GACGE,EAAe,KACjBC,EAAeL,CAAO,GAEjB;AAAA,IACL,GAAGM,EAAgBtB,CAAC;AAAA,IACpB,GAAGsB,EAAgBpB,CAAC;AAAA,IACpB,UAAUoB,EAAgBnB,CAAQ;AAAA,IAClC,WAAWmB,EAAgBlB,CAAS;AAAA,IACpC,gBAAgBkB,EAAgBjB,CAAc;AAAA,IAC9C,cAAciB,EAAgBf,CAAY;AAAA,IAC1C,gBAAAC;AAAA,IACA,QAAAK;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
|
package/dist/index223.js
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as f } from "./index230.js";
|
|
2
|
+
import { M as s } from "./index249.js";
|
|
3
|
+
import { s as m } from "./index250.js";
|
|
4
|
+
import { o as p } from "./index251.js";
|
|
5
|
+
function c(r, i) {
|
|
6
|
+
for (var o = 0; o < i.length; o++) {
|
|
7
|
+
const e = i[o];
|
|
8
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
9
|
+
for (const t in e)
|
|
10
|
+
if (t !== "default" && !(t in r)) {
|
|
11
|
+
const a = Object.getOwnPropertyDescriptor(e, t);
|
|
12
|
+
a && Object.defineProperty(r, t, a.get ? a : {
|
|
13
|
+
enumerable: !0,
|
|
14
|
+
get: () => e[t]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
10
18
|
}
|
|
11
|
-
return
|
|
12
|
-
}
|
|
19
|
+
return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
+
}
|
|
21
|
+
let l = s;
|
|
22
|
+
var n = new l(m, p);
|
|
23
|
+
const d = /* @__PURE__ */ f(n), _ = /* @__PURE__ */ c({
|
|
24
|
+
__proto__: null,
|
|
25
|
+
default: d
|
|
26
|
+
}, [n]);
|
|
13
27
|
export {
|
|
14
|
-
|
|
28
|
+
d as default,
|
|
29
|
+
_ as i
|
|
15
30
|
};
|
|
16
31
|
//# sourceMappingURL=index223.js.map
|
package/dist/index223.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index223.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index223.js","sources":["../node_modules/mime/index.js"],"sourcesContent":["'use strict';\n\nlet Mime = require('./Mime');\nmodule.exports = new Mime(require('./types/standard'), require('./types/other'));\n"],"names":["Mime","require$$0","mime","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA,IAAIA,IAAOC;AACX,IAAAC,IAAiB,IAAIF,EAAKG,GAA6BC,CAAwB;;;;;","x_google_ignoreList":[0]}
|
package/dist/index224.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const l = (e, r, f) => e.reduce((t, n) => {
|
|
2
|
+
if (t)
|
|
3
|
+
return t;
|
|
4
|
+
if (f(n))
|
|
5
|
+
return n;
|
|
6
|
+
if (r in n) {
|
|
7
|
+
let i = l([].concat(n[r]), r, f);
|
|
8
|
+
if (i)
|
|
9
|
+
return i;
|
|
6
10
|
}
|
|
7
|
-
return
|
|
8
|
-
};
|
|
11
|
+
return t;
|
|
12
|
+
}, null);
|
|
9
13
|
export {
|
|
10
|
-
|
|
14
|
+
l as findInTree
|
|
11
15
|
};
|
|
12
16
|
//# sourceMappingURL=index224.js.map
|
package/dist/index224.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index224.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index224.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 items: T[],\n keyName: keyof T,\n iteratee: (item: T) => boolean\n): null | T => {\n return items.reduce((acc: null | T, curr) => {\n if (acc) return acc;\n if (iteratee(curr)) {\n return curr;\n }\n\n if (keyName in curr) {\n let fromChildren = findInTree([].concat(curr[keyName]), keyName, iteratee);\n if (fromChildren) {\n return fromChildren;\n }\n }\n return acc;\n }, null);\n};\n"],"names":["findInTree","items","keyName","iteratee","acc","curr","fromChildren"],"mappings":"AAGO,MAAMA,IAAa,CACxBC,GACAC,GACAC,MAEOF,EAAM,OAAO,CAACG,GAAeC,MAAS;AACvC,MAAAD;AAAY,WAAAA;AACZ,MAAAD,EAASE,CAAI;AACR,WAAAA;AAGT,MAAIH,KAAWG,GAAM;AACf,QAAAC,IAAeN,EAAW,CAAA,EAAG,OAAOK,EAAKH,CAAO,CAAC,GAAGA,GAASC,CAAQ;AACzE,QAAIG;AACK,aAAAA;AAAA,EAEX;AACO,SAAAF;GACN,IAAI;"}
|
package/dist/index226.js
CHANGED
package/dist/index226.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index226.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index226.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;"}
|