bitboss-ui 0.2.17 → 0.2.19

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 (148) hide show
  1. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +7 -0
  2. package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -0
  3. package/dist/components/BbSelect/BbSelect.vue.d.ts +7 -0
  4. package/dist/index101.js +1 -1
  5. package/dist/index103.js +2 -2
  6. package/dist/index109.js +1 -1
  7. package/dist/index11.js +2 -2
  8. package/dist/index111.js +4 -4
  9. package/dist/index113.js +1 -1
  10. package/dist/index116.js +1 -1
  11. package/dist/index117.js +1 -1
  12. package/dist/index118.js +1 -1
  13. package/dist/index119.js +1 -1
  14. package/dist/index125.js +1 -1
  15. package/dist/index126.js +1 -1
  16. package/dist/index131.js +2 -2
  17. package/dist/index15.js +8 -8
  18. package/dist/index17.js +9 -9
  19. package/dist/index19.js +3 -3
  20. package/dist/index197.js +235 -5
  21. package/dist/index197.js.map +1 -1
  22. package/dist/index198.js +3 -16
  23. package/dist/index198.js.map +1 -1
  24. package/dist/index199.js +35 -16
  25. package/dist/index199.js.map +1 -1
  26. package/dist/index200.js +6 -19
  27. package/dist/index200.js.map +1 -1
  28. package/dist/index201.js +2 -20
  29. package/dist/index201.js.map +1 -1
  30. package/dist/index202.js +4 -29
  31. package/dist/index202.js.map +1 -1
  32. package/dist/index203.js +10 -8
  33. package/dist/index203.js.map +1 -1
  34. package/dist/index204.js +5 -2
  35. package/dist/index204.js.map +1 -1
  36. package/dist/index205.js +16 -2
  37. package/dist/index205.js.map +1 -1
  38. package/dist/index206.js +16 -4
  39. package/dist/index206.js.map +1 -1
  40. package/dist/index207.js +17 -376
  41. package/dist/index207.js.map +1 -1
  42. package/dist/index208.js +17 -131
  43. package/dist/index208.js.map +1 -1
  44. package/dist/index209.js +29 -2
  45. package/dist/index209.js.map +1 -1
  46. package/dist/index21.js +2 -2
  47. package/dist/index210.js +8 -174
  48. package/dist/index210.js.map +1 -1
  49. package/dist/index211.js +2 -23
  50. package/dist/index211.js.map +1 -1
  51. package/dist/index212.js +3 -373
  52. package/dist/index212.js.map +1 -1
  53. package/dist/index213.js +3 -3
  54. package/dist/index213.js.map +1 -1
  55. package/dist/index214.js +376 -33
  56. package/dist/index214.js.map +1 -1
  57. package/dist/index215.js +134 -6
  58. package/dist/index215.js.map +1 -1
  59. package/dist/index216.js +2 -235
  60. package/dist/index216.js.map +1 -1
  61. package/dist/index217.js +174 -2
  62. package/dist/index217.js.map +1 -1
  63. package/dist/index218.js +23 -10
  64. package/dist/index218.js.map +1 -1
  65. package/dist/index219.js +370 -25
  66. package/dist/index219.js.map +1 -1
  67. package/dist/index220.js +2 -13
  68. package/dist/index220.js.map +1 -1
  69. package/dist/index221.js +2 -3
  70. package/dist/index221.js.map +1 -1
  71. package/dist/index222.js +9 -3
  72. package/dist/index222.js.map +1 -1
  73. package/dist/index223.js +121 -2
  74. package/dist/index223.js.map +1 -1
  75. package/dist/index224.js +27 -8
  76. package/dist/index224.js.map +1 -1
  77. package/dist/index225.js +12 -120
  78. package/dist/index225.js.map +1 -1
  79. package/dist/index226.js +1 -1
  80. package/dist/index228.js +4 -295
  81. package/dist/index228.js.map +1 -1
  82. package/dist/index229.js +434 -5
  83. package/dist/index229.js.map +1 -1
  84. package/dist/index230.js +89 -2
  85. package/dist/index230.js.map +1 -1
  86. package/dist/index231.js +162 -2
  87. package/dist/index231.js.map +1 -1
  88. package/dist/index232.js +2 -2
  89. package/dist/index233.js +69 -2
  90. package/dist/index233.js.map +1 -1
  91. package/dist/index234.js +2 -2
  92. package/dist/index234.js.map +1 -1
  93. package/dist/index235.js +2 -2
  94. package/dist/index236.js +199 -3
  95. package/dist/index236.js.map +1 -1
  96. package/dist/index237.js +295 -2
  97. package/dist/index237.js.map +1 -1
  98. package/dist/index238.js +5 -116
  99. package/dist/index238.js.map +1 -1
  100. package/dist/index239.js +2 -106
  101. package/dist/index239.js.map +1 -1
  102. package/dist/index240.js +2 -162
  103. package/dist/index240.js.map +1 -1
  104. package/dist/index241.js +2 -2
  105. package/dist/index242.js +2 -435
  106. package/dist/index242.js.map +1 -1
  107. package/dist/index243.js +2 -89
  108. package/dist/index243.js.map +1 -1
  109. package/dist/index244.js +2 -200
  110. package/dist/index244.js.map +1 -1
  111. package/dist/index245.js +224 -2
  112. package/dist/index245.js.map +1 -1
  113. package/dist/index246.js +257 -68
  114. package/dist/index246.js.map +1 -1
  115. package/dist/index247.js +2 -38
  116. package/dist/index247.js.map +1 -1
  117. package/dist/index248.js +117 -2
  118. package/dist/index248.js.map +1 -1
  119. package/dist/index249.js +106 -2
  120. package/dist/index249.js.map +1 -1
  121. package/dist/index25.js +2 -2
  122. package/dist/index250.js +37 -223
  123. package/dist/index250.js.map +1 -1
  124. package/dist/index251.js +2 -258
  125. package/dist/index251.js.map +1 -1
  126. package/dist/index252.js +2 -2
  127. package/dist/index252.js.map +1 -1
  128. package/dist/index254.js +2 -3
  129. package/dist/index254.js.map +1 -1
  130. package/dist/index255.js +3 -2
  131. package/dist/index255.js.map +1 -1
  132. package/dist/index29.js +3 -3
  133. package/dist/index31.js +42 -40
  134. package/dist/index31.js.map +1 -1
  135. package/dist/index33.js +1 -1
  136. package/dist/index35.js +2 -2
  137. package/dist/index47.js +1 -1
  138. package/dist/index49.js +1 -1
  139. package/dist/index65.js +5 -5
  140. package/dist/index69.js +2 -2
  141. package/dist/index72.js +1 -1
  142. package/dist/index75.js +1 -1
  143. package/dist/index79.js +70 -62
  144. package/dist/index79.js.map +1 -1
  145. package/dist/index91.js +18 -16
  146. package/dist/index91.js.map +1 -1
  147. package/dist/style.css +1 -1
  148. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index220.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;"}
1
+ {"version":3,"file":"index220.js","sources":["../src/utilities/functions/booleanishToBoolean.ts"],"sourcesContent":["/**\n * Accepts a booleanish input and returns a boolean value\n * @param input booleanish input\n * @returns \n */\nexport const booleanishToBoolean = (input: boolean | 'true' | 'false') => {\n if(typeof input === 'boolean') return input;\n else return input === 'true';\n}"],"names":["booleanishToBoolean","input"],"mappings":"AAKa,MAAAA,IAAsB,CAACC,MAC7B,OAAOA,KAAU,YAAkBA,IAC1BA,MAAU;"}
package/dist/index221.js CHANGED
@@ -1,6 +1,5 @@
1
- import r from "./index250.js";
2
- const t = r;
1
+ const o = (e) => e[0];
3
2
  export {
4
- t as deburr
3
+ o as head
5
4
  };
6
5
  //# sourceMappingURL=index221.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index221.js","sources":["../src/utilities/functions/deburr.ts"],"sourcesContent":["import d from \"lodash.deburr\";\n\nexport const deburr = d;"],"names":["deburr","d"],"mappings":";AAEO,MAAMA,IAASC;"}
1
+ {"version":3,"file":"index221.js","sources":["../src/utilities/functions/head.ts"],"sourcesContent":["/** Takes an array and returns the first item in it */\nexport const head = <T>(arr: T[]) => arr[0]"],"names":["head","arr"],"mappings":"AACO,MAAMA,IAAO,CAAIC,MAAaA,EAAI,CAAC;"}
package/dist/index222.js CHANGED
@@ -1,6 +1,12 @@
1
- import o from "./index251.js";
2
- const e = o;
1
+ const o = (n, t) => {
2
+ for (let e = n.length - 1; e >= 0; e--) {
3
+ const i = n[e];
4
+ if (t(i, e, n))
5
+ return e;
6
+ }
7
+ return -1;
8
+ };
3
9
  export {
4
- e as snakeCase
10
+ o as findRightIndex
5
11
  };
6
12
  //# sourceMappingURL=index222.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index222.js","sources":["../src/utilities/functions/snakeCase.ts"],"sourcesContent":["import s from \"lodash.snakecase\";\n\nexport const snakeCase = s;"],"names":["snakeCase","s"],"mappings":";AAEO,MAAMA,IAAYC;"}
1
+ {"version":3,"file":"index222.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/index223.js CHANGED
@@ -1,5 +1,124 @@
1
- const o = (e) => e[0];
1
+ import { arrow as j, computePosition as A } from "./index214.js";
2
+ import { autoUpdate as T, flip as W, platform as X, shift as Y } from "./index214.js";
3
+ import { unref as o, computed as r, ref as f, shallowRef as B, watch as h, getCurrentScope as F, onScopeDispose as I, shallowReadonly as a } from "vue";
4
+ import { isNode as U, getNodeName as k } from "./index249.js";
5
+ import { getOverflowAncestors as ee } from "./index249.js";
6
+ function q(n) {
7
+ return n != null && typeof n == "object" && "$el" in n;
8
+ }
9
+ function g(n) {
10
+ if (q(n)) {
11
+ const l = n.$el;
12
+ return U(l) && k(l) === "#comment" ? null : l;
13
+ }
14
+ return n;
15
+ }
16
+ function J(n) {
17
+ return {
18
+ name: "arrow",
19
+ options: n,
20
+ fn(l) {
21
+ const t = g(o(n.element));
22
+ return t == null ? {} : j({
23
+ element: t,
24
+ padding: n.padding
25
+ }).fn(l);
26
+ }
27
+ };
28
+ }
29
+ function S(n) {
30
+ return typeof window > "u" ? 1 : (n.ownerDocument.defaultView || window).devicePixelRatio || 1;
31
+ }
32
+ function M(n, l) {
33
+ const t = S(n);
34
+ return Math.round(l * t) / t;
35
+ }
36
+ function K(n, l, t) {
37
+ t === void 0 && (t = {});
38
+ const x = t.whileElementsMounted, D = r(() => {
39
+ var e;
40
+ return (e = o(t.open)) != null ? e : !0;
41
+ }), O = r(() => o(t.middleware)), d = r(() => {
42
+ var e;
43
+ return (e = o(t.placement)) != null ? e : "bottom";
44
+ }), v = r(() => {
45
+ var e;
46
+ return (e = o(t.strategy)) != null ? e : "absolute";
47
+ }), _ = r(() => {
48
+ var e;
49
+ return (e = o(t.transform)) != null ? e : !0;
50
+ }), i = r(() => g(n.value)), u = r(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), P = f(d.value), E = B({}), y = f(!1), N = r(() => {
51
+ const e = {
52
+ position: c.value,
53
+ left: "0",
54
+ top: "0"
55
+ };
56
+ if (!u.value)
57
+ return e;
58
+ const b = M(u.value, p.value), C = M(u.value, w.value);
59
+ return _.value ? {
60
+ ...e,
61
+ transform: "translate(" + b + "px, " + C + "px)",
62
+ ...S(u.value) >= 1.5 && {
63
+ willChange: "transform"
64
+ }
65
+ } : {
66
+ position: c.value,
67
+ left: b + "px",
68
+ top: C + "px"
69
+ };
70
+ });
71
+ let s;
72
+ function m() {
73
+ i.value == null || u.value == null || A(i.value, u.value, {
74
+ middleware: O.value,
75
+ placement: d.value,
76
+ strategy: v.value
77
+ }).then((e) => {
78
+ p.value = e.x, w.value = e.y, c.value = e.strategy, P.value = e.placement, E.value = e.middlewareData, y.value = !0;
79
+ });
80
+ }
81
+ function R() {
82
+ typeof s == "function" && (s(), s = void 0);
83
+ }
84
+ function V() {
85
+ if (R(), x === void 0) {
86
+ m();
87
+ return;
88
+ }
89
+ if (i.value != null && u.value != null) {
90
+ s = x(i.value, u.value, m);
91
+ return;
92
+ }
93
+ }
94
+ function $() {
95
+ D.value || (y.value = !1);
96
+ }
97
+ return h([O, d, v], m, {
98
+ flush: "sync"
99
+ }), h([i, u], V, {
100
+ flush: "sync"
101
+ }), h(D, $, {
102
+ flush: "sync"
103
+ }), F() && I(R), {
104
+ x: a(p),
105
+ y: a(w),
106
+ strategy: a(c),
107
+ placement: a(P),
108
+ middlewareData: a(E),
109
+ isPositioned: a(y),
110
+ floatingStyles: N,
111
+ update: m
112
+ };
113
+ }
2
114
  export {
3
- o as head
115
+ J as arrow,
116
+ T as autoUpdate,
117
+ A as computePosition,
118
+ W as flip,
119
+ ee as getOverflowAncestors,
120
+ X as platform,
121
+ Y as shift,
122
+ K as useFloating
4
123
  };
5
124
  //# sourceMappingURL=index223.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index223.js","sources":["../src/utilities/functions/head.ts"],"sourcesContent":["/** Takes an array and returns the first item in it */\nexport const head = <T>(arr: T[]) => arr[0]"],"names":["head","arr"],"mappings":"AACO,MAAMA,IAAO,CAAIC,MAAaA,EAAI,CAAC;"}
1
+ {"version":3,"file":"index223.js","sources":["../node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs"],"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';\nimport { isNode, getNodeName } from '@floating-ui/utils/dom';\n\nfunction isComponentPublicInstance(target) {\n return target != null && typeof target === 'object' && '$el' in target;\n}\nfunction unwrapElement(target) {\n if (isComponentPublicInstance(target)) {\n const element = target.$el;\n return isNode(element) && getNodeName(element) === '#comment' ? null : element;\n }\n return target;\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":["isComponentPublicInstance","target","unwrapElement","element","isNode","getNodeName","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":";;;;;AAKA,SAASA,EAA0BC,GAAQ;AACzC,SAAOA,KAAU,QAAQ,OAAOA,KAAW,YAAY,SAASA;AAClE;AACA,SAASC,EAAcD,GAAQ;AAC7B,MAAID,EAA0BC,CAAM,GAAG;AACrC,UAAME,IAAUF,EAAO;AACvB,WAAOG,EAAOD,CAAO,KAAKE,EAAYF,CAAO,MAAM,aAAa,OAAOA;AAAA,EACxE;AACD,SAAOF;AACT;AAOA,SAASK,EAAMC,GAAS;AACtB,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAAA;AAAA,IACA,GAAGC,GAAM;AACP,YAAML,IAAUD,EAAcO,EAAMF,EAAQ,OAAO,CAAC;AACpD,aAAIJ,KAAW,OACN,KAEFO,EAAQ;AAAA,QACb,SAAAP;AAAA,QACA,SAASI,EAAQ;AAAA,MACzB,CAAO,EAAE,GAAGC,CAAI;AAAA,IACX;AAAA,EACL;AACA;AAEA,SAASG,EAAOR,GAAS;AACvB,SAAI,OAAO,SAAW,MACb,KAEGA,EAAQ,cAAc,eAAe,QACtC,oBAAoB;AACjC;AAEA,SAASS,EAAWT,GAASU,GAAO;AAClC,QAAMC,IAAMH,EAAOR,CAAO;AAC1B,SAAO,KAAK,MAAMU,IAAQC,CAAG,IAAIA;AACnC;AASA,SAASC,EAAYC,GAAWC,GAAUV,GAAS;AACjD,EAAIA,MAAY,WACd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AA,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/index224.js CHANGED
@@ -1,12 +1,31 @@
1
- const o = (n, t) => {
2
- for (let e = n.length - 1; e >= 0; e--) {
3
- const i = n[e];
4
- if (t(i, e, n))
5
- return e;
1
+ import { getDefaultExportFromCjs as f } from "./index238.js";
2
+ import { M as s } from "./index250.js";
3
+ import { s as m } from "./index251.js";
4
+ import { o as p } from "./index252.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
+ }
6
18
  }
7
- return -1;
8
- };
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]);
9
27
  export {
10
- o as findRightIndex
28
+ d as default,
29
+ _ as i
11
30
  };
12
31
  //# sourceMappingURL=index224.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index224.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;"}
1
+ {"version":3,"file":"index224.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/index225.js CHANGED
@@ -1,124 +1,16 @@
1
- import { arrow as j, computePosition as A } from "./index207.js";
2
- import { autoUpdate as T, flip as W, platform as X, shift as Y } from "./index207.js";
3
- import { unref as o, computed as r, ref as f, shallowRef as B, watch as h, getCurrentScope as F, onScopeDispose as I, shallowReadonly as a } from "vue";
4
- import { isNode as U, getNodeName as k } from "./index239.js";
5
- import { getOverflowAncestors as ee } from "./index239.js";
6
- function q(n) {
7
- return n != null && typeof n == "object" && "$el" in n;
8
- }
9
- function g(n) {
10
- if (q(n)) {
11
- const l = n.$el;
12
- return U(l) && k(l) === "#comment" ? null : l;
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;
13
10
  }
14
- return n;
15
- }
16
- function J(n) {
17
- return {
18
- name: "arrow",
19
- options: n,
20
- fn(l) {
21
- const t = g(o(n.element));
22
- return t == null ? {} : j({
23
- element: t,
24
- padding: n.padding
25
- }).fn(l);
26
- }
27
- };
28
- }
29
- function S(n) {
30
- return typeof window > "u" ? 1 : (n.ownerDocument.defaultView || window).devicePixelRatio || 1;
31
- }
32
- function M(n, l) {
33
- const t = S(n);
34
- return Math.round(l * t) / t;
35
- }
36
- function K(n, l, t) {
37
- t === void 0 && (t = {});
38
- const x = t.whileElementsMounted, D = r(() => {
39
- var e;
40
- return (e = o(t.open)) != null ? e : !0;
41
- }), O = r(() => o(t.middleware)), d = r(() => {
42
- var e;
43
- return (e = o(t.placement)) != null ? e : "bottom";
44
- }), v = r(() => {
45
- var e;
46
- return (e = o(t.strategy)) != null ? e : "absolute";
47
- }), _ = r(() => {
48
- var e;
49
- return (e = o(t.transform)) != null ? e : !0;
50
- }), i = r(() => g(n.value)), u = r(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), P = f(d.value), E = B({}), y = f(!1), N = r(() => {
51
- const e = {
52
- position: c.value,
53
- left: "0",
54
- top: "0"
55
- };
56
- if (!u.value)
57
- return e;
58
- const b = M(u.value, p.value), C = M(u.value, w.value);
59
- return _.value ? {
60
- ...e,
61
- transform: "translate(" + b + "px, " + C + "px)",
62
- ...S(u.value) >= 1.5 && {
63
- willChange: "transform"
64
- }
65
- } : {
66
- position: c.value,
67
- left: b + "px",
68
- top: C + "px"
69
- };
70
- });
71
- let s;
72
- function m() {
73
- i.value == null || u.value == null || A(i.value, u.value, {
74
- middleware: O.value,
75
- placement: d.value,
76
- strategy: v.value
77
- }).then((e) => {
78
- p.value = e.x, w.value = e.y, c.value = e.strategy, P.value = e.placement, E.value = e.middlewareData, y.value = !0;
79
- });
80
- }
81
- function R() {
82
- typeof s == "function" && (s(), s = void 0);
83
- }
84
- function V() {
85
- if (R(), x === void 0) {
86
- m();
87
- return;
88
- }
89
- if (i.value != null && u.value != null) {
90
- s = x(i.value, u.value, m);
91
- return;
92
- }
93
- }
94
- function $() {
95
- D.value || (y.value = !1);
96
- }
97
- return h([O, d, v], m, {
98
- flush: "sync"
99
- }), h([i, u], V, {
100
- flush: "sync"
101
- }), h(D, $, {
102
- flush: "sync"
103
- }), F() && I(R), {
104
- x: a(p),
105
- y: a(w),
106
- strategy: a(c),
107
- placement: a(P),
108
- middlewareData: a(E),
109
- isPositioned: a(y),
110
- floatingStyles: N,
111
- update: m
112
- };
113
- }
11
+ return t;
12
+ }, null);
114
13
  export {
115
- J as arrow,
116
- T as autoUpdate,
117
- A as computePosition,
118
- W as flip,
119
- ee as getOverflowAncestors,
120
- X as platform,
121
- Y as shift,
122
- K as useFloating
14
+ l as findInTree
123
15
  };
124
16
  //# sourceMappingURL=index225.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index225.js","sources":["../node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs"],"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';\nimport { isNode, getNodeName } from '@floating-ui/utils/dom';\n\nfunction isComponentPublicInstance(target) {\n return target != null && typeof target === 'object' && '$el' in target;\n}\nfunction unwrapElement(target) {\n if (isComponentPublicInstance(target)) {\n const element = target.$el;\n return isNode(element) && getNodeName(element) === '#comment' ? null : element;\n }\n return target;\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":["isComponentPublicInstance","target","unwrapElement","element","isNode","getNodeName","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":";;;;;AAKA,SAASA,EAA0BC,GAAQ;AACzC,SAAOA,KAAU,QAAQ,OAAOA,KAAW,YAAY,SAASA;AAClE;AACA,SAASC,EAAcD,GAAQ;AAC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nBZ,EAAS,QAAQY,EAAS,UAC1BX,EAAU,QAAQW,EAAS,WAC3BV,EAAe,QAAQU,EAAS,gBAChCR,EAAa,QAAQ;AAAA,IAC3B,CAAK;AAAA,EACF;AACD,WAASS,IAAU;AACjB,IAAI,OAAOJ,KAAgC,eACzCA,KACAA,IAA8B;AAAA,EAEjC;AACD,WAASK,IAAS;AAEhB,QADAD,KACI7B,MAA+B,QAAW;AAC5C,MAAA0B;AACA;AAAA,IACD;AACD,QAAIf,EAAiB,SAAS,QAAQC,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]}
1
+ {"version":3,"file":"index225.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
@@ -1,4 +1,4 @@
1
- import { getDefaultExportFromCjs as F, commonjsGlobal as g } from "./index229.js";
1
+ import { getDefaultExportFromCjs as F, commonjsGlobal as g } from "./index238.js";
2
2
  var M = "Expected a function", S = 0 / 0, N = "[object Symbol]", W = /^\s+|\s+$/g, A = /^[-+]0x[0-9a-f]+$/i, B = /^0b[01]+$/i, R = /^0o[0-7]+$/i, _ = parseInt, D = typeof g == "object" && g && g.Object === Object && g, G = typeof self == "object" && self && self.Object === Object && self, P = D || G || Function("return this")(), H = Object.prototype, U = H.toString, X = Math.max, q = Math.min, T = function() {
3
3
  return P.Date.now();
4
4
  };