bitboss-ui 2.0.3 → 2.0.4
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/index127.js +2 -2
- 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/index197.js +2 -81
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +158 -5
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +84 -158
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +199 -190
- package/dist/index20.js.map +1 -1
- package/dist/index201.js +5 -0
- package/dist/index201.js.map +1 -0
- package/dist/index202.js +4 -3
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +2 -3
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +78 -32
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +126 -6
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +5 -7
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +123 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +17 -124
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +16 -5
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +13 -120
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +2 -19
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +2 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +35 -2
- package/dist/index213.js.map +1 -1
- package/dist/index215.js +5 -41
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +45 -0
- package/dist/index216.js.map +1 -0
- package/dist/index218.js +13 -369
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +5 -2
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +5 -5
- package/dist/index220.js +369 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +8 -2
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +3 -16
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +7 -16
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +2 -2
- package/dist/index225.js +2 -2
- package/dist/index226.js +3 -8
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +249 -2
- package/dist/index227.js.map +1 -1
- package/dist/index229.js +52 -3
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +35 -16
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +4 -105
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +44 -0
- package/dist/index232.js.map +1 -0
- package/dist/index233.js +3 -100
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +5 -0
- package/dist/index234.js.map +1 -0
- package/dist/index235.js +3 -10
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +17 -2
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +105 -8
- package/dist/index237.js.map +1 -1
- package/dist/index239.js +100 -6
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +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 +3 -11
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +6 -9
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +15 -8
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +8 -16
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +23 -224
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +3 -431
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +11 -88
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +8 -280
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +9 -6
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +17 -2
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +281 -2
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +6 -2
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +2 -126
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +2 -3
- package/dist/index256.js.map +1 -1
- package/dist/{index266.js → index257.js} +1 -1
- package/dist/index257.js.map +1 -0
- package/dist/index258.js +2 -7
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +2 -4
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +3 -3
- package/dist/index260.js +126 -2
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +429 -67
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +3 -200
- package/dist/index262.js.map +1 -1
- package/dist/index264.js +6 -435
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +21 -126
- package/dist/index265.js.map +1 -1
- package/dist/index267.js +9 -2
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +200 -2
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +436 -2
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +125 -26
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +89 -3
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +2 -3
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +2 -211
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +6 -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 +2 -4
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +2 -59
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +26 -13
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +22 -35
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +2 -2
- package/dist/index281.js +2 -2
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +5 -47
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +72 -0
- package/dist/index283.js.map +1 -0
- package/dist/index284.js +221 -418
- 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 +7 -0
- package/dist/index290.js.map +1 -0
- package/dist/index291.js +7 -0
- package/dist/index291.js.map +1 -0
- package/dist/index292.js +62 -0
- package/dist/index292.js.map +1 -0
- package/dist/{index280.js → index293.js} +1 -1
- package/dist/{index280.js.map → index293.js.map} +1 -1
- package/dist/index294.js +38 -0
- package/dist/index294.js.map +1 -0
- package/dist/index295.js +10 -0
- package/dist/index295.js.map +1 -0
- package/dist/index296.js +22 -0
- package/dist/index296.js.map +1 -0
- package/dist/index297.js +10 -0
- package/dist/index297.js.map +1 -0
- package/dist/index298.js +5 -0
- package/dist/index298.js.map +1 -0
- package/dist/index299.js +50 -0
- package/dist/index299.js.map +1 -0
- 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 +1 -1
- package/dist/index200.js +0 -87
- package/dist/index200.js.map +0 -1
- package/dist/index217.js +0 -16
- package/dist/index217.js.map +0 -1
- package/dist/index228.js +0 -6
- package/dist/index228.js.map +0 -1
- package/dist/index238.js +0 -26
- package/dist/index238.js.map +0 -1
- package/dist/index240.js +0 -19
- package/dist/index240.js.map +0 -1
- package/dist/index263.js +0 -8
- package/dist/index263.js.map +0 -1
- package/dist/index266.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function chunk<T>(array: T[], size: number): T[][];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const negative: (a: number) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function range(start: number, end: number, step?: number): number[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type SortableType = string | number | Date;
|
|
2
|
+
export declare function sort<T extends SortableType>(arr: T[]): T[];
|
|
3
|
+
export declare function sort<T extends object>(arr: T[], ...keys: (keyof T)[]): T[];
|
|
4
|
+
export declare function reverseSort<T extends SortableType>(arr: T[]): T[];
|
|
5
|
+
export declare function reverseSort<T extends object>(arr: T[], ...keys: (keyof T)[]): T[];
|
|
6
|
+
export {};
|
package/package.json
CHANGED
package/dist/index200.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, openBlock as n, createElementBlock as s, normalizeClass as r, createElementVNode as l, renderSlot as t, createTextVNode as o, toDisplayString as d, createCommentVNode as h, Fragment as c, renderList as m } from "vue";
|
|
2
|
-
const p = { class: "bb-cr-container__container" }, u = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "bb-cr-container__loading-container"
|
|
5
|
-
}, g = {
|
|
6
|
-
key: 1,
|
|
7
|
-
class: "bb-cr-container__no-data-container"
|
|
8
|
-
}, _ = /* @__PURE__ */ b({
|
|
9
|
-
__name: "OptionsContainer",
|
|
10
|
-
props: {
|
|
11
|
-
direction: {},
|
|
12
|
-
hasErrors: { type: Boolean },
|
|
13
|
-
hideLabel: { type: Boolean },
|
|
14
|
-
loadingText: {},
|
|
15
|
-
loading: { type: Boolean },
|
|
16
|
-
noDataText: {},
|
|
17
|
-
options: {}
|
|
18
|
-
},
|
|
19
|
-
setup(k) {
|
|
20
|
-
return (a, $) => (n(), s("span", {
|
|
21
|
-
ref: "container",
|
|
22
|
-
class: r(["bb-cr-container", {
|
|
23
|
-
"bb-cr-container--errors": a.hasErrors,
|
|
24
|
-
"bb-cr-container--horizontal": a.direction === "horizontal",
|
|
25
|
-
"bb-cr-container--vertical": a.direction === "vertical"
|
|
26
|
-
}])
|
|
27
|
-
}, [
|
|
28
|
-
l("span", p, [
|
|
29
|
-
t(a.$slots, "prepend"),
|
|
30
|
-
!a.options.length && a.loading ? (n(), s("span", u, [
|
|
31
|
-
t(a.$slots, "loading", {}, () => [
|
|
32
|
-
o(d(a.loadingText), 1)
|
|
33
|
-
])
|
|
34
|
-
])) : a.options.length ? h("", !0) : (n(), s("span", g, [
|
|
35
|
-
t(a.$slots, "no-data", {}, () => [
|
|
36
|
-
o(d(a.noDataText), 1)
|
|
37
|
-
])
|
|
38
|
-
])),
|
|
39
|
-
(n(!0), s(c, null, m(a.options, (e, i) => (n(), s(c, {
|
|
40
|
-
key: (e == null ? void 0 : e.id) || i
|
|
41
|
-
}, [
|
|
42
|
-
t(a.$slots, "option:prepend", {
|
|
43
|
-
id: e.valueHash,
|
|
44
|
-
checked: !!e.selected,
|
|
45
|
-
disabled: !!e.disabled,
|
|
46
|
-
item: e.item,
|
|
47
|
-
text: e.text
|
|
48
|
-
}),
|
|
49
|
-
l("label", {
|
|
50
|
-
class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
|
|
51
|
-
}, [
|
|
52
|
-
t(a.$slots, "input", {
|
|
53
|
-
index: i,
|
|
54
|
-
option: e
|
|
55
|
-
}),
|
|
56
|
-
l("span", {
|
|
57
|
-
class: r({
|
|
58
|
-
"bb-cr-container-option__text": !0,
|
|
59
|
-
"bb-cr-container-option__text--hidden": a.hideLabel
|
|
60
|
-
})
|
|
61
|
-
}, [
|
|
62
|
-
t(a.$slots, "label", {
|
|
63
|
-
checked: !!e.selected,
|
|
64
|
-
item: e.item,
|
|
65
|
-
text: e.text
|
|
66
|
-
}, () => [
|
|
67
|
-
o(d(e.text), 1)
|
|
68
|
-
])
|
|
69
|
-
], 2)
|
|
70
|
-
], 2),
|
|
71
|
-
t(a.$slots, "option:append", {
|
|
72
|
-
id: e.valueHash,
|
|
73
|
-
checked: !!e.selected,
|
|
74
|
-
disabled: !!e.disabled,
|
|
75
|
-
item: e.item,
|
|
76
|
-
text: e.text
|
|
77
|
-
})
|
|
78
|
-
], 64))), 128)),
|
|
79
|
-
t(a.$slots, "append")
|
|
80
|
-
])
|
|
81
|
-
], 2));
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
export {
|
|
85
|
-
_ as default
|
|
86
|
-
};
|
|
87
|
-
//# sourceMappingURL=index200.js.map
|
package/dist/index200.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index200.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index217.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { openBlock as t, createElementBlock as n, renderSlot as e } from "vue";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import r from "./index258.js";
|
|
4
|
-
const s = {}, c = { class: "bb-common-input-outer-container" };
|
|
5
|
-
function p(o, a) {
|
|
6
|
-
return t(), n("span", c, [
|
|
7
|
-
e(o.$slots, "prepend-outer"),
|
|
8
|
-
e(o.$slots, "default"),
|
|
9
|
-
e(o.$slots, "append-outer")
|
|
10
|
-
]);
|
|
11
|
-
}
|
|
12
|
-
const i = /* @__PURE__ */ r(s, [["render", p]]);
|
|
13
|
-
export {
|
|
14
|
-
i as default
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=index217.js.map
|
package/dist/index217.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index217.js","sources":["../src/components/CommonInputOuterContainer.vue"],"sourcesContent":["<template>\n\t<span class=\"bb-common-input-outer-container\">\n\t\t<slot name=\"prepend-outer\" />\n\t\t<slot />\n\t\t<slot name=\"append-outer\" />\n\t</span>\n</template>\n\n<script setup lang=\"ts\"></script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/CommonInputInnerContainer';\n</style>\n"],"names":["_sfc_render","_ctx","_cache","_openBlock","_createElementBlock","_hoisted_1","_renderSlot"],"mappings":";;;;AACC,SAAAA,EAAAC,GAAAC,GAAA;SAC8BC,EAAA,GAAAC,EAAA,QAAAC,GAAA;AAAA,IAC7BC,EAAQL,EAAA,QAAA,eAAA;AAAA,IACRK,EAA4BL,EAAA,QAAA,SAAA;AAAA;;;;"}
|
package/dist/index228.js
DELETED
package/dist/index228.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index228.js","sources":["../src/utilities/functions/hash.ts"],"sourcesContent":["import { hash as _h } from 'object-code';\n\nexport const hash = (value: any, prefix = 'bb') => {\n\treturn `${prefix}${_h(value)}`;\n};\n"],"names":["hash","value","prefix","_h"],"mappings":";AAEO,MAAMA,IAAO,CAACC,GAAYC,IAAS,SAClC,GAAGA,CAAM,GAAGC,EAAGF,CAAK,CAAC;"}
|
package/dist/index238.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
inert: ":not([inert]):not([inert] *)",
|
|
3
|
-
negTabIndex: ':not([tabindex^="-"])',
|
|
4
|
-
disabled: ":not(:disabled)"
|
|
5
|
-
}, n = [
|
|
6
|
-
`a[href]${e.inert}${e.negTabIndex}`,
|
|
7
|
-
`area[href]${e.inert}${e.negTabIndex}`,
|
|
8
|
-
`input:not([type="hidden"]):not([type="radio"])${e.inert}${e.negTabIndex}${e.disabled}`,
|
|
9
|
-
`input[type="radio"]${e.inert}${e.negTabIndex}${e.disabled}`,
|
|
10
|
-
`select${e.inert}${e.negTabIndex}${e.disabled}`,
|
|
11
|
-
`textarea${e.inert}${e.negTabIndex}${e.disabled}`,
|
|
12
|
-
`button${e.inert}${e.negTabIndex}${e.disabled}`,
|
|
13
|
-
`details${e.inert} > summary:first-of-type${e.negTabIndex}`,
|
|
14
|
-
// Discard until Firefox supports `:has()`
|
|
15
|
-
// See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
|
|
16
|
-
// `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
|
|
17
|
-
`iframe${e.inert}${e.negTabIndex}`,
|
|
18
|
-
`audio[controls]${e.inert}${e.negTabIndex}`,
|
|
19
|
-
`video[controls]${e.inert}${e.negTabIndex}`,
|
|
20
|
-
`[contenteditable]${e.inert}${e.negTabIndex}`,
|
|
21
|
-
`[tabindex]${e.inert}${e.negTabIndex}`
|
|
22
|
-
];
|
|
23
|
-
export {
|
|
24
|
-
n as default
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=index238.js.map
|
package/dist/index238.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index238.js","sources":["../node_modules/focusable-selectors/index.js"],"sourcesContent":["const not = {\n inert: ':not([inert]):not([inert] *)',\n negTabIndex: ':not([tabindex^=\"-\"])',\n disabled: ':not(:disabled)',\n}\n\nexport default [\n `a[href]${not.inert}${not.negTabIndex}`,\n `area[href]${not.inert}${not.negTabIndex}`,\n `input:not([type=\"hidden\"]):not([type=\"radio\"])${not.inert}${not.negTabIndex}${not.disabled}`,\n `input[type=\"radio\"]${not.inert}${not.negTabIndex}${not.disabled}`,\n `select${not.inert}${not.negTabIndex}${not.disabled}`,\n `textarea${not.inert}${not.negTabIndex}${not.disabled}`,\n `button${not.inert}${not.negTabIndex}${not.disabled}`,\n `details${not.inert} > summary:first-of-type${not.negTabIndex}`,\n // Discard until Firefox supports `:has()`\n // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12\n // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,\n `iframe${not.inert}${not.negTabIndex}`,\n `audio[controls]${not.inert}${not.negTabIndex}`,\n `video[controls]${not.inert}${not.negTabIndex}`,\n `[contenteditable]${not.inert}${not.negTabIndex}`,\n `[tabindex]${not.inert}${not.negTabIndex}`,\n]\n"],"names":["not","selectors"],"mappings":"AAAA,MAAMA,IAAM;AAAA,EACV,OAAO;AAAA,EACP,aAAa;AAAA,EACb,UAAU;AACZ,GAEeC,IAAA;AAAA,EACb,UAAUD,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EACrC,aAAaA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EACxC,iDAAiDA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EAC3F,sBAAsBA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EAChE,SAASA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EACnD,WAAWA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EACrD,SAASA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EACnD,UAAUA,EAAI,KAAK,2BAA2BA,EAAI,WAAW;AAAA;AAAA;AAAA;AAAA,EAI7D,SAASA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EACpC,kBAAkBA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EAC7C,kBAAkBA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EAC7C,oBAAoBA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EAC/C,aAAaA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAC1C;","x_google_ignoreList":[0]}
|
package/dist/index240.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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);
|
|
16
|
-
export {
|
|
17
|
-
e as findInTree
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=index240.js.map
|
package/dist/index240.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index240.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/index263.js
DELETED
package/dist/index263.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index263.js","sources":["../src/utilities/functions/flattenTree.ts"],"sourcesContent":["export const flattenTree = <T extends Record<string, any>, U>(\n\titems: T[],\n\tkeyName: keyof T,\n\tmapper: (item: T, parent?: U) => U = (x: any) => x,\n\tparent?: ReturnType<typeof mapper>\n): ReturnType<typeof mapper>[] => {\n\treturn items\n\t\t.map((item) => {\n\t\t\tif (Array.isArray(item[keyName])) {\n\t\t\t\treturn [\n\t\t\t\t\tmapper(item, parent),\n\t\t\t\t\t...flattenTree(item[keyName], keyName, mapper, mapper(item, parent)),\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn [mapper(item, parent)];\n\t\t})\n\t\t.flat();\n};\n"],"names":["flattenTree","items","keyName","mapper","x","parent","item"],"mappings":"AAAa,MAAAA,IAAc,CAC1BC,GACAC,GACAC,IAAqC,CAACC,MAAWA,GACjDC,MAEOJ,EACL,IAAI,CAACK,MACD,MAAM,QAAQA,EAAKJ,CAAO,CAAC,IACvB;AAAA,EACNC,EAAOG,GAAMD,CAAM;AAAA,EACnB,GAAGL,EAAYM,EAAKJ,CAAO,GAAGA,GAASC,GAAQA,EAAOG,GAAMD,CAAM,CAAC;AAAA,IAG9D,CAACF,EAAOG,GAAMD,CAAM,CAAC,CAC5B,EACA,KAAK;"}
|
package/dist/index266.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index266.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|