bitboss-ui 2.0.170 → 2.0.171

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 (188) hide show
  1. package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
  2. package/dist/index106.js +9 -9
  3. package/dist/index111.js +1 -1
  4. package/dist/index113.js +1 -1
  5. package/dist/index121.js +12 -12
  6. package/dist/index129.js +2 -2
  7. package/dist/index13.js +1 -1
  8. package/dist/index131.js +3 -3
  9. package/dist/index133.js +1 -1
  10. package/dist/index136.js +1 -1
  11. package/dist/index138.js +1 -1
  12. package/dist/index15.js +8 -8
  13. package/dist/index17.js +3 -3
  14. package/dist/index19.js +8 -8
  15. package/dist/index207.js +2 -2
  16. package/dist/index208.js +2 -2
  17. package/dist/index209.js +2 -5
  18. package/dist/index21.js +16 -16
  19. package/dist/index210.js +4 -5
  20. package/dist/index211.js +2 -5
  21. package/dist/index212.js +18 -5
  22. package/dist/index213.js +128 -5
  23. package/dist/index214.js +106 -5
  24. package/dist/index216.js +100 -3
  25. package/dist/index218.js +64 -6
  26. package/dist/index220.js +13 -52
  27. package/dist/index221.js +5 -43
  28. package/dist/index222.js +15 -5
  29. package/dist/index223.js +29 -60
  30. package/dist/index224.js +16 -13
  31. package/dist/index225.js +12 -2
  32. package/dist/index226.js +51 -4
  33. package/dist/index227.js +17 -2
  34. package/dist/index228.js +15 -34
  35. package/dist/index229.js +3 -2
  36. package/dist/index23.js +17 -17
  37. package/dist/index230.js +12 -2
  38. package/dist/index231.js +12 -85
  39. package/dist/index232.js +4 -0
  40. package/dist/index233.js +227 -28
  41. package/dist/index234.js +363 -12
  42. package/dist/index235.js +2 -51
  43. package/dist/index236.js +5 -15
  44. package/dist/index237.js +5 -12
  45. package/dist/index238.js +5 -16
  46. package/dist/index239.js +5 -3
  47. package/dist/index240.js +5 -4
  48. package/dist/index241.js +5 -41
  49. package/dist/index242.js +5 -20
  50. package/dist/index243.js +6 -92
  51. package/dist/{index219.js → index244.js} +6 -6
  52. package/dist/index245.js +41 -189
  53. package/dist/index246.js +46 -0
  54. package/dist/index247.js +4 -65
  55. package/dist/index248.js +62 -0
  56. package/dist/index249.js +5 -13
  57. package/dist/index25.js +5 -5
  58. package/dist/index250.js +2 -6
  59. package/dist/index251.js +41 -7
  60. package/dist/index252.js +19 -14
  61. package/dist/index253.js +93 -17
  62. package/dist/index255.js +9 -106
  63. package/dist/index256.js +6 -0
  64. package/dist/index257.js +194 -94
  65. package/dist/index259.js +7 -12
  66. package/dist/index260.js +86 -2
  67. package/dist/index262.js +33 -367
  68. package/dist/index263.js +2 -2
  69. package/dist/index264.js +2 -5
  70. package/dist/index265.js +3 -9
  71. package/dist/index267.js +9 -8
  72. package/dist/index268.js +2 -10
  73. package/dist/index269.js +6 -101
  74. package/dist/index27.js +1 -1
  75. package/dist/index270.js +18 -0
  76. package/dist/index271.js +11 -23
  77. package/dist/index272.js +101 -10
  78. package/dist/index274.js +3 -6
  79. package/dist/index275.js +8 -15
  80. package/dist/index276.js +23 -3
  81. package/dist/index277.js +2 -9
  82. package/dist/index278.js +9 -8
  83. package/dist/index279.js +8 -2
  84. package/dist/index280.js +5 -67
  85. package/dist/index281.js +67 -5
  86. package/dist/index282.js +1 -1
  87. package/dist/index283.js +1 -1
  88. package/dist/index284.js +4 -280
  89. package/dist/index285.js +4 -2
  90. package/dist/index286.js +128 -15
  91. package/dist/index287.js +3 -2
  92. package/dist/index288.js +3 -16
  93. package/dist/index289.js +3 -2
  94. package/dist/index29.js +3 -3
  95. package/dist/index291.js +7 -2
  96. package/dist/index292.js +2 -15
  97. package/dist/index293.js +2 -2
  98. package/dist/index294.js +17 -19
  99. package/dist/index295.js +28 -2
  100. package/dist/index296.js +7 -27
  101. package/dist/index297.js +11 -2
  102. package/dist/index298.js +280 -2
  103. package/dist/index299.js +2 -2
  104. package/dist/index300.js +16 -2
  105. package/dist/index301.js +2 -2
  106. package/dist/index302.js +15 -27
  107. package/dist/index303.js +2 -22
  108. package/dist/{index290.js → index304.js} +2 -2
  109. package/dist/index305.js +2 -7
  110. package/dist/index306.js +15 -7
  111. package/dist/index307.js +2 -11
  112. package/dist/index308.js +19 -4
  113. package/dist/index309.js +2 -2
  114. package/dist/index31.js +2 -2
  115. package/dist/index310.js +26 -5
  116. package/dist/index311.js +2 -4
  117. package/dist/index312.js +2 -3
  118. package/dist/index313.js +2 -17
  119. package/dist/index314.js +2 -5
  120. package/dist/index315.js +2 -471
  121. package/dist/index316.js +22 -3
  122. package/dist/index318.js +125 -3
  123. package/dist/index319.js +4 -0
  124. package/dist/index320.js +457 -186
  125. package/dist/index321.js +3 -2
  126. package/dist/index322.js +3 -129
  127. package/dist/index323.js +382 -3
  128. package/dist/index324.js +126 -3
  129. package/dist/index325.js +1 -1
  130. package/dist/index326.js +3 -382
  131. package/dist/index327.js +5 -125
  132. package/dist/index328.js +196 -121
  133. package/dist/index329.js +5 -2
  134. package/dist/index33.js +8 -8
  135. package/dist/index330.js +701 -3
  136. package/dist/index331.js +354 -5
  137. package/dist/index332.js +58 -701
  138. package/dist/index333.js +3 -354
  139. package/dist/index334.js +5 -58
  140. package/dist/index335.js +47 -2
  141. package/dist/index336.js +2 -7
  142. package/dist/index337.js +32 -18
  143. package/dist/index338.js +28 -7
  144. package/dist/index340.js +57 -27
  145. package/dist/index341.js +60 -0
  146. package/dist/index342.js +6 -227
  147. package/dist/index343.js +8 -58
  148. package/dist/index344.js +6 -58
  149. package/dist/index345.js +8 -8
  150. package/dist/index346.js +5 -6
  151. package/dist/index347.js +7 -8
  152. package/dist/index348.js +19 -5
  153. package/dist/index349.js +227 -46
  154. package/dist/index35.js +4 -4
  155. package/dist/index350.js +1 -1
  156. package/dist/index351.js +484 -0
  157. package/dist/index353.js +3 -482
  158. package/dist/index355.js +1 -1
  159. package/dist/index37.js +22 -22
  160. package/dist/index39.js +5 -5
  161. package/dist/index41.js +2 -2
  162. package/dist/index43.js +8 -8
  163. package/dist/index45.js +8 -8
  164. package/dist/index47.js +2 -2
  165. package/dist/index49.js +2 -2
  166. package/dist/index53.js +1 -1
  167. package/dist/index55.js +1 -1
  168. package/dist/index57.js +2 -2
  169. package/dist/index61.js +3 -3
  170. package/dist/index67.js +1 -1
  171. package/dist/index79.js +4 -4
  172. package/dist/index81.js +1 -1
  173. package/dist/index83.js +2 -2
  174. package/dist/index85.js +1 -1
  175. package/dist/index87.js +1 -1
  176. package/dist/index90.js +4 -4
  177. package/dist/index92.js +2 -2
  178. package/dist/index94.js +41 -40
  179. package/dist/index96.js +1 -1
  180. package/package.json +1 -1
  181. package/dist/index215.js +0 -7
  182. package/dist/index217.js +0 -4
  183. package/dist/index254.js +0 -130
  184. package/dist/index261.js +0 -230
  185. package/dist/index273.js +0 -5
  186. package/dist/index317.js +0 -5
  187. package/dist/index339.js +0 -35
  188. package/dist/index352.js +0 -5
@@ -16,7 +16,7 @@ export type BbPopoverEvents = {
16
16
  (e: 'shown'): void;
17
17
  (e: 'hidden'): void;
18
18
  };
19
- declare const onTriggerClick: () => Promise<void>;
19
+ declare const onTriggerClick: (event: MouseEvent) => Promise<void>;
20
20
  declare const onClickClose: () => Promise<void>;
21
21
  declare function __VLS_template(): {
22
22
  attrs: Partial<{}>;
@@ -147,7 +147,7 @@ declare function __VLS_template(): {
147
147
  };
148
148
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
149
149
  declare const __VLS_component: import('vue').DefineComponent<BbPopoverProps, {
150
- open: () => Promise<void>;
150
+ open: (event: MouseEvent) => Promise<void>;
151
151
  close: () => Promise<void>;
152
152
  closed: import('vue').ComputedRef<boolean>;
153
153
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
package/dist/index106.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as D, computed as V, toRef as r, ref as E, reactive as L, watch as m, createElementBlock as b, openBlock as B, Fragment as g, renderSlot as i, createCommentVNode as P, unref as R, renderList as j } from "vue";
2
- import { useItemValue as G } from "./index277.js";
3
- import { isNil as k } from "./index230.js";
4
- import { indexBy as U } from "./index278.js";
5
- import { hash as p } from "./index216.js";
6
- import { useItemsGetter as W } from "./index233.js";
7
- import { usePrefill as q } from "./index238.js";
8
- import { useIndexById as z } from "./index234.js";
9
- import { useBaseOptions as J } from "./index235.js";
10
- import { useHashedWatcher as K } from "./index237.js";
2
+ import { useItemValue as G } from "./index278.js";
3
+ import { isNil as k } from "./index264.js";
4
+ import { indexBy as U } from "./index279.js";
5
+ import { hash as p } from "./index229.js";
6
+ import { useItemsGetter as W } from "./index223.js";
7
+ import { usePrefill as q } from "./index224.js";
8
+ import { useIndexById as z } from "./index227.js";
9
+ import { useBaseOptions as J } from "./index226.js";
10
+ import { useHashedWatcher as K } from "./index230.js";
11
11
  const oe = /* @__PURE__ */ D({
12
12
  __name: "BbRows",
13
13
  props: {
package/dist/index111.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as a, onMounted as m, onBeforeUnmount as p, createBlock as i, openBlock as l, resolveDynamicComponent as u, normalizeStyle as d, withCtx as f, renderSlot as h } from "vue";
2
- import { throttle as g } from "./index276.js";
2
+ import { throttle as g } from "./index274.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index113.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, createElementBlock as b, openBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index225.js";
2
+ import { isCssColor as u } from "./index209.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index121.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { defineComponent as ue, ref as K, computed as h, toRef as O, watch as D, reactive as pe, createBlock as Q, openBlock as n, resolveDynamicComponent as me, normalizeClass as p, unref as v, withCtx as fe, createElementBlock as d, createCommentVNode as g, createElementVNode as o, toDisplayString as m, renderSlot as f, Fragment as A, renderList as B, createVNode as X, createTextVNode as ye, mergeProps as he } from "vue";
2
- import { add as ve } from "./index279.js";
3
- import { clamp as ke } from "./index208.js";
4
- import { isNil as T } from "./index230.js";
2
+ import { add as ve } from "./index277.js";
3
+ import { clamp as ke } from "./index207.js";
4
+ import { isNil as T } from "./index264.js";
5
5
  import { useId as _e } from "./index8.js";
6
- import { useItemValue as ge } from "./index277.js";
7
- import { when as Ce } from "./index226.js";
6
+ import { useItemValue as ge } from "./index278.js";
7
+ import { when as Ce } from "./index210.js";
8
8
  import Y from "./index17.js";
9
9
  /* empty css */
10
10
  import we from "./index31.js";
11
11
  /* empty css */
12
- import { hash as E } from "./index216.js";
13
- import { useItemsGetter as Ie } from "./index233.js";
14
- import { usePrefill as Ve } from "./index238.js";
15
- import { useIndexById as Ae } from "./index234.js";
16
- import { useBaseOptions as Be } from "./index235.js";
17
- import { useHashedWatcher as Te } from "./index237.js";
18
- import { useLocale as $e } from "./index224.js";
12
+ import { hash as E } from "./index229.js";
13
+ import { useItemsGetter as Ie } from "./index223.js";
14
+ import { usePrefill as Ve } from "./index224.js";
15
+ import { useIndexById as Ae } from "./index227.js";
16
+ import { useBaseOptions as Be } from "./index226.js";
17
+ import { useHashedWatcher as Te } from "./index230.js";
18
+ import { useLocale as $e } from "./index231.js";
19
19
  const xe = {
20
20
  key: 0,
21
21
  class: "sr-only"
package/dist/index129.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, createBlock as o, openBlock as e, withCtx as r, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as u, createElementBlock as p, Fragment as f, renderList as _, unref as n, mergeProps as d } from "vue";
2
2
  import { useToast as k, state as b } from "./index11.js";
3
- import C from "./index252.js";
4
- import B from "./index280.js";
3
+ import C from "./index222.js";
4
+ import B from "./index281.js";
5
5
  const V = /* @__PURE__ */ l({
6
6
  __name: "BbToast",
7
7
  props: {
package/dist/index13.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, getCurrentInstance as h, computed as r, createBlock as i, openBlock as u, mergeProps as c, withCtx as d, renderSlot as p, createTextVNode as f, toDisplayString as v, resolveDynamicComponent as C } from "vue";
2
- import S from "./index228.js";
2
+ import S from "./index262.js";
3
3
  const A = /* @__PURE__ */ m({
4
4
  __name: "BaseButton",
5
5
  props: {
package/dist/index131.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as V, mergeModels as h, ref as i, useModel as $, createBlock as k, openBlock as y, normalizeClass as D, withCtx as d, createElementVNode as u, createCommentVNode as O, renderSlot as B, unref as m, normalizeProps as P, guardReactiveProps as z } from "vue";
2
- import { throttle as p } from "./index276.js";
2
+ import { throttle as p } from "./index274.js";
3
3
  import { useId as F } from "./index8.js";
4
- import { useLocale as N } from "./index224.js";
4
+ import { useLocale as N } from "./index231.js";
5
5
  import { wait as H } from "./index135.js";
6
6
  import I from "./index13.js";
7
7
  /* empty css */
8
- import R from "./index269.js";
8
+ import R from "./index272.js";
9
9
  /* empty css */
10
10
  const W = /* @__PURE__ */ V({
11
11
  __name: "BbTooltip",
package/dist/index133.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, createElementBlock as f, openBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index281.js";
2
+ import { flattenTree as T } from "./index280.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index136.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index208.js";
1
+ import { clamp as o } from "./index207.js";
2
2
  const r = (t, e) => t * 100 / e, p = (t, e) => t / 100 * e, l = (t, e, n) => r(t - e, n - e), P = ({
3
3
  value: t = 0,
4
4
  originalBounds: e,
package/dist/index138.js CHANGED
@@ -1,4 +1,4 @@
1
- import { urlAlphabet as l } from "./index207.js";
1
+ import { urlAlphabet as l } from "./index208.js";
2
2
  let o = (t = 21) => {
3
3
  let e = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
4
4
  for (; t--; )
package/dist/index15.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as H, ref as u, computed as D, createElementBlock as E, openBlock as I, Fragment as M, createVNode as p, normalizeClass as _, withCtx as n, unref as s, withDirectives as F, createElementVNode as c, mergeProps as T, renderSlot as r, withModifiers as q, normalizeStyle as L, nextTick as N } from "vue";
2
- import { isHex as O } from "./index240.js";
2
+ import { isHex as O } from "./index256.js";
3
3
  import { isNotNil as z } from "./index140.js";
4
- import { useFocusTrap as S } from "./index241.js";
4
+ import { useFocusTrap as S } from "./index251.js";
5
5
  import { useId as A } from "./index8.js";
6
- import { vMaska as K } from "./index242.js";
7
- import P from "./index243.js";
6
+ import { vMaska as K } from "./index252.js";
7
+ import P from "./index253.js";
8
8
  /* empty css */
9
- import R from "./index245.js";
9
+ import R from "./index257.js";
10
10
  /* empty css */
11
- import U from "./index247.js";
11
+ import U from "./index218.js";
12
12
  /* empty css */
13
- import j from "./index249.js";
13
+ import j from "./index220.js";
14
14
  import { wait as G } from "./index135.js";
15
- import { useLocale as J } from "./index224.js";
15
+ import { useLocale as J } from "./index231.js";
16
16
  const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], W = ["aria-label"], X = { class: "bb-common-input-inner-container__suffix" }, ce = /* @__PURE__ */ H({
17
17
  __name: "BaseColorInput",
18
18
  props: {
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, createElementBlock as p, openBlock as h, normalizeProps as i, guardReactiveProps as f, createCommentVNode as I, createElementVNode as l, mergeProps as k, renderSlot as F } from "vue";
2
- import { isCssColor as y } from "./index225.js";
3
- import { when as N } from "./index226.js";
4
- import { booleanishToBoolean as S } from "./index227.js";
2
+ import { isCssColor as y } from "./index209.js";
3
+ import { when as N } from "./index210.js";
4
+ import { booleanishToBoolean as S } from "./index235.js";
5
5
  const A = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index19.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as b, guardReactiveProps as v, createVNode as R, mergeProps as T } from "vue";
2
2
  import W from "./index17.js";
3
3
  /* empty css */
4
- import K from "./index231.js";
4
+ import K from "./index260.js";
5
5
  /* empty css */
6
- import { useItemsGetter as N } from "./index233.js";
7
- import { useIndexById as w } from "./index234.js";
8
- import { useBaseOptions as U } from "./index235.js";
9
- import { useCoherence as q } from "./index236.js";
10
- import { hash as J } from "./index216.js";
11
- import { useHashedWatcher as C } from "./index237.js";
12
- import { usePrefill as Q } from "./index238.js";
6
+ import { useItemsGetter as N } from "./index223.js";
7
+ import { useIndexById as w } from "./index227.js";
8
+ import { useBaseOptions as U } from "./index226.js";
9
+ import { useCoherence as q } from "./index228.js";
10
+ import { hash as J } from "./index229.js";
11
+ import { useHashedWatcher as C } from "./index230.js";
12
+ import { usePrefill as Q } from "./index224.js";
13
13
  const de = /* @__PURE__ */ j({
14
14
  __name: "BaseCheckboxGroup",
15
15
  props: {
package/dist/index207.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1
+ const n = (t, a, m) => Math.min(Math.max(t, a), m);
2
2
  export {
3
- t as urlAlphabet
3
+ n as clamp
4
4
  };
package/dist/index208.js CHANGED
@@ -1,4 +1,4 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
1
+ const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2
2
  export {
3
- n as clamp
3
+ t as urlAlphabet
4
4
  };
package/dist/index209.js CHANGED
@@ -1,7 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./index310.js";
2
- import { __require as o } from "./index284.js";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
1
+ const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
5
2
  export {
6
- s as default
3
+ s as isCssColor
7
4
  };
package/dist/index21.js CHANGED
@@ -5,22 +5,22 @@ import { _config as C } from "./index4.js";
5
5
  import { useId as F } from "./index8.js";
6
6
  import f from "./index13.js";
7
7
  /* empty css */
8
- import s from "./index209.js";
9
- import G from "./index210.js";
10
- import J from "./index211.js";
11
- import K from "./index212.js";
12
- import Q from "./index213.js";
13
- import X from "./index214.js";
14
- import ee from "./index215.js";
15
- import { hash as M } from "./index216.js";
16
- import { last as ae } from "./index217.js";
17
- import { useLogger as te } from "./index218.js";
18
- import oe from "./index219.js";
19
- import le from "./index220.js";
20
- import re from "./index221.js";
21
- import B from "./index222.js";
22
- import se from "./index223.js";
23
- import { useLocale as de } from "./index224.js";
8
+ import s from "./index236.js";
9
+ import G from "./index237.js";
10
+ import J from "./index238.js";
11
+ import K from "./index239.js";
12
+ import Q from "./index240.js";
13
+ import X from "./index241.js";
14
+ import ee from "./index242.js";
15
+ import { hash as M } from "./index229.js";
16
+ import { last as ae } from "./index211.js";
17
+ import { useLogger as te } from "./index243.js";
18
+ import oe from "./index244.js";
19
+ import le from "./index245.js";
20
+ import re from "./index246.js";
21
+ import B from "./index247.js";
22
+ import se from "./index248.js";
23
+ import { useLocale as de } from "./index231.js";
24
24
  const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker__body" }, ue = { class: "bb-base-date-picker__controls" }, me = { class: "sr-only" }, pe = { class: "sr-only" }, ce = { class: "sr-only" }, fe = {
25
25
  style: { transform: "rotate(180deg)" },
26
26
  viewBox: "0 0 24 24",
package/dist/index210.js CHANGED
@@ -1,7 +1,6 @@
1
- import { getDefaultExportFromCjs as r } from "./index310.js";
2
- import { __require as e } from "./index286.js";
3
- var t = e();
4
- const m = /* @__PURE__ */ r(t);
1
+ import { curry as e } from "./index284.js";
2
+ const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
5
3
  export {
6
- m as default
4
+ t as baseWhen,
5
+ s as when
7
6
  };
package/dist/index211.js CHANGED
@@ -1,7 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./index310.js";
2
- import { __require as e } from "./index288.js";
3
- var o = e();
4
- const m = /* @__PURE__ */ r(o);
1
+ const e = (t) => t[t.length - 1];
5
2
  export {
6
- m as default
3
+ e as last
7
4
  };
package/dist/index212.js CHANGED
@@ -1,7 +1,20 @@
1
- import { getDefaultExportFromCjs as r } from "./index310.js";
2
- import { __require as t } from "./index290.js";
3
- var o = t();
4
- const a = /* @__PURE__ */ r(o);
1
+ import { isNil as c } from "./index264.js";
2
+ const a = (t, r) => {
3
+ if (!Object.prototype.hasOwnProperty.call(t, r))
4
+ throw new Error(
5
+ `Object ${JSON.stringify(t, null, 2)} has no property named "${r.toString()}"`
6
+ );
7
+ }, l = (t) => typeof t == "string" ? t.toLocaleLowerCase() : JSON.stringify(t).toLowerCase(), y = (t, r, s) => {
8
+ const i = s.toLocaleLowerCase();
9
+ for (let e = 0; e < r.length; e++) {
10
+ const n = r[e];
11
+ a(t, n);
12
+ const o = t[n];
13
+ if (c(o)) continue;
14
+ if (l(o).includes(i)) return !0;
15
+ }
16
+ return !1;
17
+ };
5
18
  export {
6
- a as default
19
+ y as matchAnyKey
7
20
  };
package/dist/index213.js CHANGED
@@ -1,7 +1,130 @@
1
- import { getDefaultExportFromCjs as r } from "./index310.js";
2
- import { __require as e } from "./index292.js";
3
- var o = e();
4
- const m = /* @__PURE__ */ r(o);
1
+ import { arrow as j, computePosition as A } from "./index234.js";
2
+ import { autoUpdate as W, flip as X, offset as Y, platform as Z, shift as ee } from "./index234.js";
3
+ import { isNode as B, getNodeName as F } from "./index286.js";
4
+ import { getOverflowAncestors as te } from "./index286.js";
5
+ import { computed as r, ref as c, shallowRef as I, watch as x, getCurrentScope as U, onScopeDispose as k, shallowReadonly as o, unref as q } from "vue";
6
+ function z(e) {
7
+ return e != null && typeof e == "object" && "$el" in e;
8
+ }
9
+ function V(e) {
10
+ if (z(e)) {
11
+ const l = e.$el;
12
+ return B(l) && F(l) === "#comment" ? null : l;
13
+ }
14
+ return e;
15
+ }
16
+ function i(e) {
17
+ return typeof e == "function" ? e() : q(e);
18
+ }
19
+ function K(e) {
20
+ return {
21
+ name: "arrow",
22
+ options: e,
23
+ fn(l) {
24
+ const t = V(i(e.element));
25
+ return t == null ? {} : j({
26
+ element: t,
27
+ padding: e.padding
28
+ }).fn(l);
29
+ }
30
+ };
31
+ }
32
+ function M(e) {
33
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
34
+ }
35
+ function C(e, l) {
36
+ const t = M(e);
37
+ return Math.round(l * t) / t;
38
+ }
39
+ function L(e, l, t) {
40
+ t === void 0 && (t = {});
41
+ const D = t.whileElementsMounted, s = r(() => {
42
+ var n;
43
+ return (n = i(t.open)) != null ? n : !0;
44
+ }), O = r(() => i(t.middleware)), p = r(() => {
45
+ var n;
46
+ return (n = i(t.placement)) != null ? n : "bottom";
47
+ }), w = r(() => {
48
+ var n;
49
+ return (n = i(t.strategy)) != null ? n : "absolute";
50
+ }), S = r(() => {
51
+ var n;
52
+ return (n = i(t.transform)) != null ? n : !0;
53
+ }), f = r(() => V(e.value)), u = r(() => V(l.value)), y = c(0), h = c(0), m = c(w.value), P = c(p.value), E = I({}), g = c(!1), _ = r(() => {
54
+ const n = {
55
+ position: m.value,
56
+ left: "0",
57
+ top: "0"
58
+ };
59
+ if (!u.value)
60
+ return n;
61
+ const a = C(u.value, y.value), b = C(u.value, h.value);
62
+ return S.value ? {
63
+ ...n,
64
+ transform: "translate(" + a + "px, " + b + "px)",
65
+ ...M(u.value) >= 1.5 && {
66
+ willChange: "transform"
67
+ }
68
+ } : {
69
+ position: m.value,
70
+ left: a + "px",
71
+ top: b + "px"
72
+ };
73
+ });
74
+ let d;
75
+ function v() {
76
+ if (f.value == null || u.value == null)
77
+ return;
78
+ const n = s.value;
79
+ A(f.value, u.value, {
80
+ middleware: O.value,
81
+ placement: p.value,
82
+ strategy: w.value
83
+ }).then((a) => {
84
+ y.value = a.x, h.value = a.y, m.value = a.strategy, P.value = a.placement, E.value = a.middlewareData, g.value = n !== !1;
85
+ });
86
+ }
87
+ function R() {
88
+ typeof d == "function" && (d(), d = void 0);
89
+ }
90
+ function N() {
91
+ if (R(), D === void 0) {
92
+ v();
93
+ return;
94
+ }
95
+ if (f.value != null && u.value != null) {
96
+ d = D(f.value, u.value, v);
97
+ return;
98
+ }
99
+ }
100
+ function $() {
101
+ s.value || (g.value = !1);
102
+ }
103
+ return x([O, p, w, s], v, {
104
+ flush: "sync"
105
+ }), x([f, u], N, {
106
+ flush: "sync"
107
+ }), x(s, $, {
108
+ flush: "sync"
109
+ }), U() && k(R), {
110
+ x: o(y),
111
+ y: o(h),
112
+ strategy: o(m),
113
+ placement: o(P),
114
+ middlewareData: o(E),
115
+ isPositioned: o(g),
116
+ floatingStyles: _,
117
+ update: v
118
+ };
119
+ }
5
120
  export {
6
- m as default
121
+ K as arrow,
122
+ W as autoUpdate,
123
+ A as computePosition,
124
+ X as flip,
125
+ te as getOverflowAncestors,
126
+ Y as offset,
127
+ Z as platform,
128
+ ee as shift,
129
+ L as useFloating
7
130
  };
package/dist/index214.js CHANGED
@@ -1,7 +1,108 @@
1
- import { getDefaultExportFromCjs as e } from "./index310.js";
2
- import { __require as r } from "./index294.js";
3
- var o = r();
4
- const p = /* @__PURE__ */ e(o);
1
+ import { defineComponent as y, ref as F, computed as H, watch as N, createElementBlock as L, openBlock as p, Fragment as S, renderList as V, createBlock as A, withModifiers as O, normalizeClass as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
2
+ import { hash as d } from "./index229.js";
3
+ import { isNil as l } from "./index264.js";
4
+ import E from "./index67.js";
5
+ /* empty css */
6
+ const K = /* @__PURE__ */ y({
7
+ __name: "ChipsBox",
8
+ props: {
9
+ options: {}
10
+ },
11
+ emits: ["option:unselected"],
12
+ setup(f, { expose: v, emit: h }) {
13
+ const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
14
+ const s = l(n.value) ? -1 : n.value;
15
+ let o = (s + e) % t.options.length;
16
+ for (; t.options[o].disabled && o !== s; )
17
+ o = a(e + 1);
18
+ return o;
19
+ }, x = () => {
20
+ if (!i.value) return;
21
+ const e = a();
22
+ n.value = e;
23
+ }, c = (e = 1) => {
24
+ const s = l(n.value) ? 0 : n.value;
25
+ let o = (s - e + t.options.length) % t.options.length;
26
+ for (; t.options[o].disabled && o !== s; )
27
+ o = c(e + 1);
28
+ return o;
29
+ }, m = async () => {
30
+ if (!i.value) return;
31
+ const e = c();
32
+ n.value = e;
33
+ }, w = () => {
34
+ if (!i.value) return;
35
+ let e = 0;
36
+ for (; t.options[e].disabled; )
37
+ e++;
38
+ n.value = e;
39
+ }, b = () => {
40
+ if (!i.value) return;
41
+ let e = t.options.length - 1;
42
+ for (; t.options[e].disabled && e !== 0; )
43
+ e--;
44
+ n.value = e;
45
+ }, I = () => {
46
+ if (!i.value) return;
47
+ let e = 0;
48
+ for (; !t.options[e].selected && t.options.length !== e; )
49
+ e++;
50
+ n.value = e;
51
+ }, g = () => {
52
+ if (!i.value) return;
53
+ let e = t.options.length - 1;
54
+ for (; t.options[e].selected && e !== 0; )
55
+ e--;
56
+ n.value = e;
57
+ }, _ = (e) => {
58
+ if (!i.value) return;
59
+ const s = t.options.findIndex(
60
+ (o) => o.valueHash === e
61
+ );
62
+ s >= 0 && (n.value = s);
63
+ }, r = () => {
64
+ n.value = null;
65
+ }, k = () => {
66
+ if (l(n.value)) return;
67
+ const e = t.options[n.value];
68
+ e.selected && u("option:unselected", e);
69
+ }, C = () => l(n.value) ? void 0 : t.options[n.value];
70
+ return N(
71
+ () => t.options,
72
+ (e, s) => {
73
+ d(e) !== d(s) && r();
74
+ },
75
+ {
76
+ flush: "post"
77
+ }
78
+ ), v({
79
+ focusNext: x,
80
+ focusPrevious: m,
81
+ focusFirst: w,
82
+ focusFirstSelected: I,
83
+ focusLast: b,
84
+ focusLastSelected: g,
85
+ blur: r,
86
+ confirmOption: k,
87
+ focusByHash: _,
88
+ getHighlighted: C
89
+ }), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
90
+ key: o.valueHash,
91
+ class: P({
92
+ "bb-chipsbox-item": !0,
93
+ "bb-chipsbox-item--focused": B === n.value
94
+ }),
95
+ clearable: !0,
96
+ text: o.text,
97
+ "onClick:clear": O((M) => u("option:unselected", o), ["stop"])
98
+ }, {
99
+ default: $(() => [
100
+ z(D(o.text), 1)
101
+ ]),
102
+ _: 2
103
+ }, 1032, ["class", "text", "onClick:clear"]))), 128));
104
+ }
105
+ });
5
106
  export {
6
- p as default
107
+ K as default
7
108
  };