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.
Files changed (265) hide show
  1. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +10 -99
  2. package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +24 -0
  3. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +56 -0
  4. package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +21 -0
  5. package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +21 -0
  6. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +1 -46
  7. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -47
  8. package/dist/components/BbTab/BbTab.vue.d.ts +9 -0
  9. package/dist/components/Transitions/Slide.vue.d.ts +43 -0
  10. package/dist/components/Transitions/SlideBack.vue.d.ts +43 -0
  11. package/dist/composables/useLogger.d.ts +1 -0
  12. package/dist/index103.js +150 -126
  13. package/dist/index103.js.map +1 -1
  14. package/dist/index105.js +5 -5
  15. package/dist/index113.js +1 -1
  16. package/dist/index115.js +5 -5
  17. package/dist/index115.js.map +1 -1
  18. package/dist/index117.js +1 -1
  19. package/dist/index12.js +1 -1
  20. package/dist/index121.js +1 -1
  21. package/dist/index122.js +1 -1
  22. package/dist/index123.js +1 -1
  23. package/dist/index125.js +1 -1
  24. package/dist/index127.js +2 -2
  25. package/dist/index128.js +1 -1
  26. package/dist/index14.js +3 -3
  27. package/dist/index16.js +2 -2
  28. package/dist/index18.js +176 -482
  29. package/dist/index18.js.map +1 -1
  30. package/dist/index197.js +2 -81
  31. package/dist/index197.js.map +1 -1
  32. package/dist/index198.js +158 -5
  33. package/dist/index198.js.map +1 -1
  34. package/dist/index199.js +84 -158
  35. package/dist/index199.js.map +1 -1
  36. package/dist/index20.js +199 -190
  37. package/dist/index20.js.map +1 -1
  38. package/dist/index201.js +5 -0
  39. package/dist/index201.js.map +1 -0
  40. package/dist/index202.js +4 -3
  41. package/dist/index202.js.map +1 -1
  42. package/dist/index203.js +2 -3
  43. package/dist/index203.js.map +1 -1
  44. package/dist/index204.js +78 -32
  45. package/dist/index204.js.map +1 -1
  46. package/dist/index205.js +126 -6
  47. package/dist/index205.js.map +1 -1
  48. package/dist/index206.js +5 -7
  49. package/dist/index206.js.map +1 -1
  50. package/dist/index207.js +123 -2
  51. package/dist/index207.js.map +1 -1
  52. package/dist/index208.js +17 -124
  53. package/dist/index208.js.map +1 -1
  54. package/dist/index209.js +16 -5
  55. package/dist/index209.js.map +1 -1
  56. package/dist/index210.js +13 -120
  57. package/dist/index210.js.map +1 -1
  58. package/dist/index211.js +2 -19
  59. package/dist/index211.js.map +1 -1
  60. package/dist/index212.js +2 -2
  61. package/dist/index212.js.map +1 -1
  62. package/dist/index213.js +35 -2
  63. package/dist/index213.js.map +1 -1
  64. package/dist/index215.js +5 -41
  65. package/dist/index215.js.map +1 -1
  66. package/dist/index216.js +45 -0
  67. package/dist/index216.js.map +1 -0
  68. package/dist/index218.js +13 -369
  69. package/dist/index218.js.map +1 -1
  70. package/dist/index219.js +5 -2
  71. package/dist/index219.js.map +1 -1
  72. package/dist/index22.js +5 -5
  73. package/dist/index220.js +369 -4
  74. package/dist/index220.js.map +1 -1
  75. package/dist/index221.js +8 -2
  76. package/dist/index221.js.map +1 -1
  77. package/dist/index222.js +3 -16
  78. package/dist/index222.js.map +1 -1
  79. package/dist/index223.js +7 -16
  80. package/dist/index223.js.map +1 -1
  81. package/dist/index224.js +2 -2
  82. package/dist/index225.js +2 -2
  83. package/dist/index226.js +3 -8
  84. package/dist/index226.js.map +1 -1
  85. package/dist/index227.js +249 -2
  86. package/dist/index227.js.map +1 -1
  87. package/dist/index229.js +52 -3
  88. package/dist/index229.js.map +1 -1
  89. package/dist/index230.js +35 -16
  90. package/dist/index230.js.map +1 -1
  91. package/dist/index231.js +4 -105
  92. package/dist/index231.js.map +1 -1
  93. package/dist/index232.js +44 -0
  94. package/dist/index232.js.map +1 -0
  95. package/dist/index233.js +3 -100
  96. package/dist/index233.js.map +1 -1
  97. package/dist/index234.js +5 -0
  98. package/dist/index234.js.map +1 -0
  99. package/dist/index235.js +3 -10
  100. package/dist/index235.js.map +1 -1
  101. package/dist/index236.js +17 -2
  102. package/dist/index236.js.map +1 -1
  103. package/dist/index237.js +105 -8
  104. package/dist/index237.js.map +1 -1
  105. package/dist/index239.js +100 -6
  106. package/dist/index239.js.map +1 -1
  107. package/dist/index24.js +1 -1
  108. package/dist/index241.js +10 -9
  109. package/dist/index241.js.map +1 -1
  110. package/dist/index242.js +3 -3
  111. package/dist/index242.js.map +1 -1
  112. package/dist/index243.js +3 -11
  113. package/dist/index243.js.map +1 -1
  114. package/dist/index244.js +6 -9
  115. package/dist/index244.js.map +1 -1
  116. package/dist/index245.js +15 -8
  117. package/dist/index245.js.map +1 -1
  118. package/dist/index246.js +8 -16
  119. package/dist/index246.js.map +1 -1
  120. package/dist/index247.js +23 -224
  121. package/dist/index247.js.map +1 -1
  122. package/dist/index248.js +3 -431
  123. package/dist/index248.js.map +1 -1
  124. package/dist/index249.js +11 -88
  125. package/dist/index249.js.map +1 -1
  126. package/dist/index250.js +8 -280
  127. package/dist/index250.js.map +1 -1
  128. package/dist/index251.js +9 -6
  129. package/dist/index251.js.map +1 -1
  130. package/dist/index252.js +17 -2
  131. package/dist/index252.js.map +1 -1
  132. package/dist/index253.js +281 -2
  133. package/dist/index253.js.map +1 -1
  134. package/dist/index254.js +6 -2
  135. package/dist/index254.js.map +1 -1
  136. package/dist/index255.js +2 -126
  137. package/dist/index255.js.map +1 -1
  138. package/dist/index256.js +2 -3
  139. package/dist/index256.js.map +1 -1
  140. package/dist/{index266.js → index257.js} +1 -1
  141. package/dist/index257.js.map +1 -0
  142. package/dist/index258.js +2 -7
  143. package/dist/index258.js.map +1 -1
  144. package/dist/index259.js +2 -4
  145. package/dist/index259.js.map +1 -1
  146. package/dist/index26.js +3 -3
  147. package/dist/index260.js +126 -2
  148. package/dist/index260.js.map +1 -1
  149. package/dist/index261.js +429 -67
  150. package/dist/index261.js.map +1 -1
  151. package/dist/index262.js +3 -200
  152. package/dist/index262.js.map +1 -1
  153. package/dist/index264.js +6 -435
  154. package/dist/index264.js.map +1 -1
  155. package/dist/index265.js +21 -126
  156. package/dist/index265.js.map +1 -1
  157. package/dist/index267.js +9 -2
  158. package/dist/index267.js.map +1 -1
  159. package/dist/index268.js +200 -2
  160. package/dist/index268.js.map +1 -1
  161. package/dist/index269.js +436 -2
  162. package/dist/index269.js.map +1 -1
  163. package/dist/index270.js +125 -26
  164. package/dist/index270.js.map +1 -1
  165. package/dist/index271.js +89 -3
  166. package/dist/index271.js.map +1 -1
  167. package/dist/index272.js +2 -3
  168. package/dist/index272.js.map +1 -1
  169. package/dist/index273.js +2 -211
  170. package/dist/index273.js.map +1 -1
  171. package/dist/index274.js +6 -0
  172. package/dist/index274.js.map +1 -0
  173. package/dist/index275.js +2 -4
  174. package/dist/index275.js.map +1 -1
  175. package/dist/index276.js +2 -4
  176. package/dist/index276.js.map +1 -1
  177. package/dist/index277.js +2 -59
  178. package/dist/index277.js.map +1 -1
  179. package/dist/index278.js +26 -13
  180. package/dist/index278.js.map +1 -1
  181. package/dist/index279.js +22 -35
  182. package/dist/index279.js.map +1 -1
  183. package/dist/index28.js +2 -2
  184. package/dist/index281.js +2 -2
  185. package/dist/index281.js.map +1 -1
  186. package/dist/index282.js +5 -47
  187. package/dist/index282.js.map +1 -1
  188. package/dist/index283.js +72 -0
  189. package/dist/index283.js.map +1 -0
  190. package/dist/index284.js +221 -418
  191. package/dist/index284.js.map +1 -1
  192. package/dist/index285.js +3 -47
  193. package/dist/index285.js.map +1 -1
  194. package/dist/index286.js +6 -0
  195. package/dist/index286.js.map +1 -0
  196. package/dist/index287.js +214 -0
  197. package/dist/index287.js.map +1 -0
  198. package/dist/index289.js +18 -0
  199. package/dist/index289.js.map +1 -0
  200. package/dist/index290.js +7 -0
  201. package/dist/index290.js.map +1 -0
  202. package/dist/index291.js +7 -0
  203. package/dist/index291.js.map +1 -0
  204. package/dist/index292.js +62 -0
  205. package/dist/index292.js.map +1 -0
  206. package/dist/{index280.js → index293.js} +1 -1
  207. package/dist/{index280.js.map → index293.js.map} +1 -1
  208. package/dist/index294.js +38 -0
  209. package/dist/index294.js.map +1 -0
  210. package/dist/index295.js +10 -0
  211. package/dist/index295.js.map +1 -0
  212. package/dist/index296.js +22 -0
  213. package/dist/index296.js.map +1 -0
  214. package/dist/index297.js +10 -0
  215. package/dist/index297.js.map +1 -0
  216. package/dist/index298.js +5 -0
  217. package/dist/index298.js.map +1 -0
  218. package/dist/index299.js +50 -0
  219. package/dist/index299.js.map +1 -0
  220. package/dist/index30.js +2 -2
  221. package/dist/index301.js +424 -0
  222. package/dist/index301.js.map +1 -0
  223. package/dist/index302.js +50 -0
  224. package/dist/index302.js.map +1 -0
  225. package/dist/index32.js +3 -3
  226. package/dist/index34.js +44 -42
  227. package/dist/index34.js.map +1 -1
  228. package/dist/index36.js +4 -4
  229. package/dist/index38.js +2 -2
  230. package/dist/index40.js +2 -2
  231. package/dist/index42.js +6 -6
  232. package/dist/index44.js +2 -2
  233. package/dist/index46.js +2 -2
  234. package/dist/index52.js +1 -1
  235. package/dist/index54.js +1 -1
  236. package/dist/index58.js +2 -2
  237. package/dist/index66.js +16 -23
  238. package/dist/index66.js.map +1 -1
  239. package/dist/index70.js +4 -4
  240. package/dist/index74.js +2 -2
  241. package/dist/index76.js +1 -1
  242. package/dist/index79.js +2 -2
  243. package/dist/index81.js +1 -1
  244. package/dist/index83.js +3 -3
  245. package/dist/index85.js +1 -1
  246. package/dist/style.css +1 -1
  247. package/dist/utilities/functions/chunk.d.ts +1 -0
  248. package/dist/utilities/functions/negative.d.ts +1 -0
  249. package/dist/utilities/functions/pipe.d.ts +3 -0
  250. package/dist/utilities/functions/range.d.ts +1 -0
  251. package/dist/utilities/functions/sort.d.ts +6 -0
  252. package/package.json +1 -1
  253. package/dist/index200.js +0 -87
  254. package/dist/index200.js.map +0 -1
  255. package/dist/index217.js +0 -16
  256. package/dist/index217.js.map +0 -1
  257. package/dist/index228.js +0 -6
  258. package/dist/index228.js.map +0 -1
  259. package/dist/index238.js +0 -26
  260. package/dist/index238.js.map +0 -1
  261. package/dist/index240.js +0 -19
  262. package/dist/index240.js.map +0 -1
  263. package/dist/index263.js +0 -8
  264. package/dist/index263.js.map +0 -1
  265. 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,3 @@
1
+ type Fn<T, R> = (...input: T[]) => R;
2
+ export declare function pipe<T>(...fns: Fn<any, any>[]): Fn<T, any>;
3
+ export {};
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
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
@@ -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
@@ -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
@@ -1,6 +0,0 @@
1
- import { hash as o } from "./index270.js";
2
- const t = (r, h = "bb") => `${h}${o(r)}`;
3
- export {
4
- t as hash
5
- };
6
- //# sourceMappingURL=index228.js.map
@@ -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
@@ -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
@@ -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
@@ -1,8 +0,0 @@
1
- const o = (l, n, f = (r) => r, u) => l.map((r) => Array.isArray(r[n]) ? [
2
- f(r, u),
3
- ...o(r[n], n, f, f(r, u))
4
- ] : [f(r, u)]).flat();
5
- export {
6
- o as flattenTree
7
- };
8
- //# sourceMappingURL=index263.js.map
@@ -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;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index266.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}