bitboss-ui 2.1.98 → 2.1.99

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 (185) hide show
  1. package/dist/composables/useConfirm.d.ts +59 -10
  2. package/dist/index108.js +9 -9
  3. package/dist/index115.js +1 -1
  4. package/dist/index121.js +4 -4
  5. package/dist/index123.js +12 -12
  6. package/dist/index131.js +1 -1
  7. package/dist/index133.js +5 -5
  8. package/dist/index135.js +1 -1
  9. package/dist/index137.js +2 -2
  10. package/dist/index14.js +1 -1
  11. package/dist/index145.js +2 -2
  12. package/dist/index16.js +5 -5
  13. package/dist/index18.js +3 -3
  14. package/dist/index20.js +8 -8
  15. package/dist/index219.js +5 -5
  16. package/dist/index22.js +14 -14
  17. package/dist/index220.js +8 -5
  18. package/dist/index221.js +3 -5
  19. package/dist/index222.js +3 -5
  20. package/dist/index223.js +2 -3
  21. package/dist/index224.js +18 -2
  22. package/dist/index225.js +12 -6
  23. package/dist/index226.js +51 -8
  24. package/dist/index227.js +15 -268
  25. package/dist/index228.js +12 -52
  26. package/dist/index229.js +17 -52
  27. package/dist/index230.js +29 -32
  28. package/dist/index231.js +12 -59
  29. package/dist/index232.js +16 -13
  30. package/dist/index233.js +4 -5
  31. package/dist/index234.js +106 -5
  32. package/dist/index236.js +100 -2
  33. package/dist/index238.js +133 -18
  34. package/dist/index24.js +11 -11
  35. package/dist/index240.js +106 -0
  36. package/dist/index241.js +13 -86
  37. package/dist/index242.js +4 -0
  38. package/dist/index243.js +11 -29
  39. package/dist/index244.js +86 -17
  40. package/dist/index246.js +9 -14
  41. package/dist/index247.js +2 -11
  42. package/dist/index248.js +4 -16
  43. package/dist/index249.js +3 -2
  44. package/dist/index250.js +2 -2
  45. package/dist/index251.js +5 -3
  46. package/dist/index252.js +5 -5
  47. package/dist/index253.js +5 -8
  48. package/dist/index254.js +5 -33
  49. package/dist/index255.js +5 -28
  50. package/dist/index256.js +7 -0
  51. package/dist/index257.js +2 -2
  52. package/dist/index258.js +16 -184
  53. package/dist/index259.js +9 -3
  54. package/dist/index26.js +3 -3
  55. package/dist/index260.js +20 -12
  56. package/dist/index261.js +34 -4
  57. package/dist/index262.js +31 -21
  58. package/dist/index263.js +27 -12
  59. package/dist/index265.js +22 -6
  60. package/dist/index266.js +9 -3
  61. package/dist/index267.js +23 -34
  62. package/dist/index268.js +7 -4
  63. package/dist/index269.js +5 -201
  64. package/dist/index270.js +8 -0
  65. package/dist/index271.js +7 -8
  66. package/dist/index272.js +268 -23
  67. package/dist/index273.js +51 -32
  68. package/dist/index274.js +52 -11
  69. package/dist/index275.js +32 -10
  70. package/dist/index276.js +60 -3
  71. package/dist/index277.js +3 -106
  72. package/dist/index278.js +35 -0
  73. package/dist/index279.js +187 -99
  74. package/dist/index28.js +1 -1
  75. package/dist/index280.js +5 -0
  76. package/dist/index281.js +51 -16
  77. package/dist/index282.js +2 -12
  78. package/dist/index283.js +2 -4
  79. package/dist/index284.js +7 -104
  80. package/dist/index285.js +7 -3
  81. package/dist/index286.js +4 -67
  82. package/dist/index287.js +201 -6
  83. package/dist/index289.js +67 -2
  84. package/dist/index290.js +12 -6
  85. package/dist/index291.js +5 -7
  86. package/dist/index292.js +3 -9
  87. package/dist/index293.js +6 -53
  88. package/dist/index294.js +15 -20
  89. package/dist/index295.js +9 -5
  90. package/dist/index297.js +1 -1
  91. package/dist/index298.js +2 -17
  92. package/dist/index299.js +3 -28
  93. package/dist/index30.js +2 -2
  94. package/dist/index300.js +19 -0
  95. package/dist/index301.js +28 -3
  96. package/dist/index302.js +3 -280
  97. package/dist/index303.js +3 -2
  98. package/dist/index304.js +3 -16
  99. package/dist/index305.js +7 -2
  100. package/dist/index306.js +2 -16
  101. package/dist/index307.js +4 -2
  102. package/dist/index308.js +3 -26
  103. package/dist/index309.js +280 -2
  104. package/dist/index310.js +2 -2
  105. package/dist/index311.js +125 -2
  106. package/dist/index312.js +2 -2
  107. package/dist/index313.js +15 -2
  108. package/dist/index314.js +2 -2
  109. package/dist/index315.js +16 -3
  110. package/dist/index316.js +2 -125
  111. package/dist/index317.js +16 -2
  112. package/dist/index318.js +2 -15
  113. package/dist/index319.js +19 -2
  114. package/dist/index32.js +2 -2
  115. package/dist/index320.js +2 -19
  116. package/dist/index321.js +5 -2
  117. package/dist/index322.js +27 -2
  118. package/dist/index323.js +2 -5
  119. package/dist/index324.js +2 -3
  120. package/dist/index325.js +1 -1
  121. package/dist/index326.js +2 -3
  122. package/dist/index327.js +2 -3
  123. package/dist/index328.js +2 -5
  124. package/dist/index329.js +2 -719
  125. package/dist/index330.js +3 -366
  126. package/dist/index331.js +5 -57
  127. package/dist/index332.js +719 -2
  128. package/dist/index333.js +365 -3
  129. package/dist/index334.js +56 -3
  130. package/dist/index335.js +34 -5
  131. package/dist/index336.js +6 -7
  132. package/dist/index337.js +129 -5
  133. package/dist/index338.js +393 -30
  134. package/dist/index339.js +192 -5
  135. package/dist/index34.js +8 -8
  136. package/dist/index340.js +254 -125
  137. package/dist/index341.js +56 -396
  138. package/dist/index342.js +33 -33
  139. package/dist/index343.js +6 -58
  140. package/dist/index346.js +1 -1
  141. package/dist/index347.js +1 -1
  142. package/dist/index348.js +5 -8
  143. package/dist/index349.js +6 -5
  144. package/dist/index350.js +92 -7
  145. package/dist/index351.js +130 -89
  146. package/dist/index352.js +1 -21
  147. package/dist/index353.js +4 -0
  148. package/dist/index354.js +21 -227
  149. package/dist/index356.js +8 -193
  150. package/dist/index357.js +6 -258
  151. package/dist/index358.js +8 -2
  152. package/dist/index359.js +228 -2
  153. package/dist/index36.js +4 -4
  154. package/dist/index363.js +1 -1
  155. package/dist/index38.js +20 -20
  156. package/dist/index40.js +6 -6
  157. package/dist/index42.js +2 -2
  158. package/dist/index44.js +8 -8
  159. package/dist/index46.js +6 -6
  160. package/dist/index50.js +2 -2
  161. package/dist/index54.js +1 -1
  162. package/dist/index56.js +1 -1
  163. package/dist/index58.js +2 -2
  164. package/dist/index6.js +33 -32
  165. package/dist/index62.js +5 -5
  166. package/dist/index68.js +1 -1
  167. package/dist/index74.js +1 -1
  168. package/dist/index76.js +5 -5
  169. package/dist/index81.js +6 -6
  170. package/dist/index83.js +1 -1
  171. package/dist/index85.js +2 -2
  172. package/dist/index87.js +3 -3
  173. package/dist/index89.js +1 -1
  174. package/dist/index92.js +3 -3
  175. package/dist/index94.js +2 -2
  176. package/dist/index96.js +5 -5
  177. package/package.json +2 -2
  178. package/dist/index235.js +0 -7
  179. package/dist/index237.js +0 -5
  180. package/dist/index239.js +0 -137
  181. package/dist/index245.js +0 -53
  182. package/dist/index264.js +0 -11
  183. package/dist/index288.js +0 -18
  184. package/dist/index296.js +0 -9
  185. package/dist/index355.js +0 -136
@@ -2,30 +2,75 @@ import { DeepReadonly, Ref } from 'vue';
2
2
  import { Sizes } from '../components/BaseDialog/BaseDialog.vue';
3
3
  export type ConfirmState = {
4
4
  current: StackMessage | null;
5
+ loading: boolean;
6
+ noBusy: boolean;
5
7
  processing: boolean;
6
8
  yesBusy: boolean;
7
- noBusy: boolean;
8
- loading: boolean;
9
9
  };
10
+ /**
11
+ * Configuration options for a single `confirm()` call.
12
+ *
13
+ * Defaults applied by `confirm()`:
14
+ * - `yesText: "OK"`
15
+ * - `noText: "Annulla"`
16
+ * - `dismissAsNo: true`
17
+ *
18
+ * Notes:
19
+ * - `autoClose` is opt-in. When omitted, resolve/reject does not close the dialog automatically.
20
+ * - `timeout` enables automatic close behavior and resolves as `false` when it elapses.
21
+ * - `returning: true` makes the confirm promise resolve with callback return values.
22
+ */
10
23
  export type ConfirmMessage = {
11
- text?: string;
12
- theme?: string;
13
- size?: keyof Sizes;
24
+ /** Shows footer action buttons. Set `false` for content-only confirms. */
14
25
  actions?: boolean;
15
- yes?: boolean;
26
+ /**
27
+ * When `true`, closes the dialog after resolve/reject if no messages are queued.
28
+ * When omitted, close is handled manually through `useConfirm().close()`.
29
+ */
30
+ autoClose?: boolean;
31
+ /**
32
+ * Controls whether implicit dismissals (overlay, X button, timeout, escape) trigger `onNo`.
33
+ * Explicit "No" button clicks always trigger `onNo` when provided.
34
+ *
35
+ * @default true
36
+ */
37
+ dismissAsNo?: boolean;
38
+ /** Enables/disables the "No" action button. */
16
39
  no?: boolean;
17
- yesText?: string;
40
+ /** Label for the "No" action button. */
18
41
  noText?: string;
19
- onYes?: () => unknown | Promise<unknown>;
42
+ /** Callback executed for a negative outcome. Can be async. */
20
43
  onNo?: () => unknown | Promise<unknown>;
44
+ /** Callback executed for a positive outcome. Can be async. */
45
+ onYes?: () => unknown | Promise<unknown>;
46
+ /**
47
+ * When `true`, resolves with `onYes` / `onNo` return value instead of `true` / `false`.
48
+ */
21
49
  returning?: boolean;
22
- autoClose?: boolean;
50
+ /** Dialog size forwarded to `BaseDialog`. */
51
+ size?: keyof Sizes;
52
+ /** Body text content shown in the confirm dialog. */
53
+ text?: string;
54
+ /** Visual theme name forwarded to confirm UI. */
55
+ theme?: string;
56
+ /**
57
+ * Auto-dismiss time in milliseconds.
58
+ * When set, dismissal is treated as `false` and dialog auto-closes.
59
+ */
23
60
  timeout?: number;
61
+ /** Enables/disables the "Yes" action button. */
62
+ yes?: boolean;
63
+ /** Label for the "Yes" action button. */
64
+ yesText?: string;
24
65
  } & ({
66
+ /** Hides the header of the confirm dialog. */
25
67
  hideHeader: true;
68
+ /** Title of the confirm dialog. */
26
69
  title?: string;
27
70
  } | {
71
+ /** Hides the header of the confirm dialog. */
28
72
  hideHeader?: false;
73
+ /** Title of the confirm dialog. */
29
74
  title: string;
30
75
  });
31
76
  type StackMessage = ConfirmMessage & {
@@ -40,8 +85,12 @@ export declare const confirmState: Ref<DeepReadonly<ConfirmState>>;
40
85
  /**
41
86
  * Handles user interaction with the confirm dialog.
42
87
  * Executes the appropriate callback and resolves/rejects the promise.
88
+ *
89
+ * @param explicit - `true` when the user chose “No” via the No button (or portal `no`).
90
+ * `false` for backdrop / close icon / timeout. `onNo` runs when `explicit` is true, or when
91
+ * `dismissAsNo` is true for an implicit dismiss.
43
92
  */
44
- export declare const processMessage: (value: boolean) => Promise<void>;
93
+ export declare const processMessage: (value: boolean, explicit?: boolean) => Promise<void>;
45
94
  /** Composable for programmatically showing confirm dialogs. */
46
95
  export declare const useConfirm: () => {
47
96
  confirm: <T extends ConfirmMessage>(message: T) => Promise<ReturnedValue<T>>;
package/dist/index108.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 "./index292.js";
3
- import { isNil as k } from "./index257.js";
4
- import { indexBy as U } from "./index294.js";
5
- import { hash as p } from "./index223.js";
6
- import { useItemsGetter as W } from "./index243.js";
7
- import { usePrefill as q } from "./index248.js";
8
- import { useIndexById as z } from "./index244.js";
9
- import { useBaseOptions as J } from "./index245.js";
10
- import { useHashedWatcher as K } from "./index247.js";
2
+ import { useItemValue as G } from "./index259.js";
3
+ import { isNil as k } from "./index242.js";
4
+ import { indexBy as U } from "./index260.js";
5
+ import { hash as p } from "./index221.js";
6
+ import { useItemsGetter as W } from "./index230.js";
7
+ import { usePrefill as q } from "./index232.js";
8
+ import { useIndexById as z } from "./index229.js";
9
+ import { useBaseOptions as J } from "./index226.js";
10
+ import { useHashedWatcher as K } from "./index228.js";
11
11
  const oe = /* @__PURE__ */ D({
12
12
  __name: "BbRows",
13
13
  props: {
package/dist/index115.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, createElementBlock as b, openBlock as _, mergeProps as a, createStaticVNode as x } from "vue";
2
- import { isCssColor as m } from "./index249.js";
2
+ import { isCssColor as m } from "./index250.js";
3
3
  const d = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index121.js CHANGED
@@ -8,12 +8,12 @@ import Ce from "./index14.js";
8
8
  import Be from "./index113.js";
9
9
  /* empty css */
10
10
  import { useFrameworkDetection as Te } from "./index143.js";
11
- import { merge as qe } from "./index273.js";
12
- import { isNil as Le } from "./index257.js";
11
+ import { merge as qe } from "./index278.js";
12
+ import { isNil as Le } from "./index242.js";
13
13
  import { useQuery as Fe } from "./index11.js";
14
- import { hash as Ee } from "./index223.js";
14
+ import { hash as Ee } from "./index221.js";
15
15
  import { isNotNil as Ne } from "./index146.js";
16
- import { useLogger as Pe } from "./index226.js";
16
+ import { useLogger as Pe } from "./index271.js";
17
17
  const Ve = ["id"], Re = { class: "bb-tab__label-boundary" }, Ke = { class: "bb-tab__label" }, De = { class: "bb-tab__panes-container" }, We = ["id", "aria-labelledby", "tabindex"], rt = /* @__PURE__ */ fe({
18
18
  __name: "BbTab",
19
19
  props: {
package/dist/index123.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import { defineComponent as he, mergeModels as X, ref as ke, computed as u, toRef as O, useModel as Y, watch as M, reactive as ge, createBlock as Z, openBlock as s, resolveDynamicComponent as xe, normalizeClass as i, withCtx as we, createElementBlock as o, createCommentVNode as p, createElementVNode as n, toDisplayString as m, renderSlot as c, unref as v, Fragment as k, renderList as x, normalizeStyle as H, createVNode as ee, createTextVNode as Ce, mergeProps as Ie } from "vue";
2
2
  import { clamp as Ve } from "./index217.js";
3
- import { hash as T } from "./index223.js";
4
- import { isNil as w } from "./index257.js";
5
- import { when as $e } from "./index283.js";
3
+ import { hash as T } from "./index221.js";
4
+ import { isNil as w } from "./index242.js";
5
+ import { when as $e } from "./index233.js";
6
6
  import { useId as Be } from "./index8.js";
7
- import { useItemValue as He } from "./index292.js";
8
- import { useItemsGetter as Te } from "./index243.js";
9
- import { usePrefill as Ae } from "./index248.js";
10
- import { useIndexById as le } from "./index244.js";
11
- import { useBaseOptions as Ne } from "./index245.js";
12
- import { useHashedWatcher as Le } from "./index247.js";
13
- import { useLocale as De } from "./index232.js";
7
+ import { useItemValue as He } from "./index259.js";
8
+ import { useItemsGetter as Te } from "./index230.js";
9
+ import { usePrefill as Ae } from "./index232.js";
10
+ import { useIndexById as le } from "./index229.js";
11
+ import { useBaseOptions as Ne } from "./index226.js";
12
+ import { useHashedWatcher as Le } from "./index228.js";
13
+ import { useLocale as De } from "./index231.js";
14
14
  import ae from "./index18.js";
15
15
  /* empty css */
16
16
  import Ee from "./index32.js";
17
17
  /* empty css */
18
- import { columnKeyToSlotName as Pe, mergeHeaderClasses as Se, applyFixedTableColumns as Re, mergeCellClasses as Oe } from "./index293.js";
19
- import { useLogger as Me } from "./index226.js";
18
+ import { columnKeyToSlotName as Pe, mergeHeaderClasses as Se, applyFixedTableColumns as Re, mergeCellClasses as Oe } from "./index281.js";
19
+ import { useLogger as Me } from "./index271.js";
20
20
  const Fe = {
21
21
  key: 0,
22
22
  class: "sr-only"
package/dist/index131.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as a, createElementBlock as o, openBlock as e, normalizeClass as c, createVNode as l, TransitionGroup as m, withCtx as i, Fragment as p, renderList as u, unref as r, createBlock as f, mergeProps as _ } from "vue";
2
2
  import { useToast as d, state as k } from "./index12.js";
3
- import b from "./index286.js";
3
+ import b from "./index289.js";
4
4
  const $ = /* @__PURE__ */ a({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index133.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as R, mergeModels as U, ref as L, computed as v, useTemplateRef as W, useModel as x, watch as m, onBeforeUnmount as F, createElementBlock as I, openBlock as g, Fragment as _, renderSlot as k, createCommentVNode as C, createVNode as j, normalizeProps as q, mergeProps as B, withCtx as T, createElementVNode as f, normalizeStyle as G, createBlock as H, unref as J } from "vue";
2
2
  import { useId as K } from "./index8.js";
3
- import { useLocale as Q } from "./index232.js";
4
- import { useUntil as X } from "./index260.js";
3
+ import { useLocale as Q } from "./index231.js";
4
+ import { useUntil as X } from "./index241.js";
5
5
  import Y from "./index14.js";
6
6
  /* empty css */
7
- import Z from "./index239.js";
7
+ import Z from "./index238.js";
8
8
  /* empty css */
9
9
  import { useElementSize as ee } from "./index142.js";
10
- import { extractDomContainer as V } from "./index261.js";
11
- import { parseWidthString as te } from "./index262.js";
10
+ import { extractDomContainer as V } from "./index248.js";
11
+ import { parseWidthString as te } from "./index265.js";
12
12
  const ce = /* @__PURE__ */ R({
13
13
  inheritAttrs: !1,
14
14
  __name: "BbTooltip",
package/dist/index135.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 "./index295.js";
2
+ import { flattenTree as T } from "./index291.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/index137.js CHANGED
@@ -5,8 +5,8 @@ import u from "./index87.js";
5
5
  /* empty css */
6
6
  import I from "./index115.js";
7
7
  /* empty css */
8
- import N from "./index254.js";
9
- import g from "./index255.js";
8
+ import N from "./index262.js";
9
+ import g from "./index263.js";
10
10
  /* empty css */
11
11
  const h = { class: "bb-common-input-inner-container__prefix" }, B = { class: "bb-common-input-inner-container__suffix" }, R = /* @__PURE__ */ k({
12
12
  __name: "CommonInputInnerContainer",
package/dist/index14.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, getCurrentInstance as P, computed as r, createBlock as c, openBlock as i, mergeProps as f, withCtx as v, renderSlot as d, createTextVNode as p, toDisplayString as h, resolveDynamicComponent as b } from "vue";
2
- import R from "./index267.js";
2
+ import R from "./index261.js";
3
3
  import { useFrameworkDetection as _ } from "./index143.js";
4
4
  import { _config as g } from "./index4.js";
5
5
  const D = /* @__PURE__ */ w({
package/dist/index145.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index252.js";
2
- import { isPlainObject as i } from "./index253.js";
1
+ import { isArray as p } from "./index219.js";
2
+ import { isPlainObject as i } from "./index220.js";
3
3
  function f(e, n, u, l, r) {
4
4
  const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
5
5
  o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index16.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as H, ref as s, computed as M, createBlock as D, openBlock as E, normalizeClass as I, withCtx as l, createVNode as d, unref as u, withDirectives as L, createElementVNode as p, mergeProps as _, renderSlot as r, withModifiers as q, normalizeStyle as N } from "vue";
2
- import { isHex as z } from "./index268.js";
2
+ import { isHex as z } from "./index286.js";
3
3
  import { isNotNil as F } from "./index146.js";
4
4
  import { useId as S } from "./index8.js";
5
- import { useLocale as U } from "./index232.js";
6
- import { vMaska as A } from "./index238.js";
7
- import K from "./index269.js";
5
+ import { useLocale as U } from "./index231.js";
6
+ import { vMaska as A } from "./index258.js";
7
+ import K from "./index287.js";
8
8
  /* empty css */
9
9
  import O from "./index137.js";
10
10
  /* empty css */
11
11
  import P from "./index139.js";
12
- import T from "./index239.js";
12
+ import T from "./index238.js";
13
13
  /* empty css */
14
14
  const j = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], G = ["aria-label"], J = { class: "bb-common-input-inner-container__suffix" }, ie = /* @__PURE__ */ H({
15
15
  __name: "BaseColorInput",
package/dist/index18.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as _, ref as i, computed as t, watch as F, createElementBlock as p, openBlock as h, normalizeProps as d, guardReactiveProps as f, createCommentVNode as L, createElementVNode as s, mergeProps as k, renderSlot as M } from "vue";
2
- import { isCssColor as y } from "./index249.js";
3
- import { booleanishToBoolean as q } from "./index250.js";
4
- import { isEqual as A } from "./index251.js";
2
+ import { isCssColor as y } from "./index250.js";
3
+ import { booleanishToBoolean as q } from "./index282.js";
4
+ import { isEqual as A } from "./index249.js";
5
5
  const N = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index20.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as z, ref as B, toRef as p, computed as G, createBlock as R, openBlock as W, unref as T, withCtx as n, renderSlot as s, normalizeProps as f, guardReactiveProps as h, createVNode as K, mergeProps as w } from "vue";
2
2
  import N from "./index18.js";
3
3
  /* empty css */
4
- import U from "./index241.js";
4
+ import U from "./index244.js";
5
5
  /* empty css */
6
- import { useItemsGetter as q } from "./index243.js";
7
- import { useIndexById as C } from "./index244.js";
8
- import { useBaseOptions as J } from "./index245.js";
9
- import { useCoherence as Q } from "./index246.js";
10
- import { hash as X } from "./index223.js";
11
- import { useHashedWatcher as $ } from "./index247.js";
12
- import { usePrefill as Y } from "./index248.js";
6
+ import { useItemsGetter as q } from "./index230.js";
7
+ import { useIndexById as C } from "./index229.js";
8
+ import { useBaseOptions as J } from "./index226.js";
9
+ import { useCoherence as Q } from "./index227.js";
10
+ import { hash as X } from "./index221.js";
11
+ import { useHashedWatcher as $ } from "./index228.js";
12
+ import { usePrefill as Y } from "./index232.js";
13
13
  const ce = /* @__PURE__ */ z({
14
14
  __name: "BaseCheckboxGroup",
15
15
  props: {
package/dist/index219.js CHANGED
@@ -1,7 +1,7 @@
1
- import { getDefaultExportFromCjs as r } from "./index335.js";
2
- import { __require as o } from "./index302.js";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
1
+ import { getType as t } from "./index308.js";
2
+ function o(r) {
3
+ return t(r) === "Array";
4
+ }
5
5
  export {
6
- s as default
6
+ o as isArray
7
7
  };
package/dist/index22.js CHANGED
@@ -5,20 +5,20 @@ import { _config as Q } from "./index4.js";
5
5
  import { useId as X } from "./index8.js";
6
6
  import b from "./index14.js";
7
7
  /* empty css */
8
- import d from "./index219.js";
9
- import ee from "./index220.js";
10
- import ae from "./index221.js";
11
- import te from "./index222.js";
12
- import { hash as B } from "./index223.js";
13
- import { last as le } from "./index224.js";
14
- import { validateDateFormat as L } from "./index225.js";
15
- import { useLogger as oe } from "./index226.js";
16
- import re from "./index227.js";
17
- import se from "./index228.js";
18
- import de from "./index229.js";
19
- import S from "./index230.js";
20
- import ie from "./index231.js";
21
- import { useLocale as ne } from "./index232.js";
8
+ import d from "./index251.js";
9
+ import ee from "./index254.js";
10
+ import ae from "./index255.js";
11
+ import te from "./index269.js";
12
+ import { hash as B } from "./index221.js";
13
+ import { last as le } from "./index223.js";
14
+ import { validateDateFormat as L } from "./index270.js";
15
+ import { useLogger as oe } from "./index271.js";
16
+ import re from "./index272.js";
17
+ import se from "./index273.js";
18
+ import de from "./index274.js";
19
+ import S from "./index275.js";
20
+ import ie from "./index276.js";
21
+ import { useLocale as ne } from "./index231.js";
22
22
  const ue = { class: "bb-base-date-picker" }, me = { class: "bb-base-date-picker__body" }, ce = { class: "bb-base-date-picker__controls" }, pe = { class: "sr-only" }, fe = { class: "sr-only" }, be = { class: "sr-only" }, ve = {
23
23
  style: { transform: "rotate(180deg)" },
24
24
  viewBox: "0 0 24 24",
package/dist/index220.js CHANGED
@@ -1,7 +1,10 @@
1
- import { getDefaultExportFromCjs as r } from "./index335.js";
2
- import { __require as e } from "./index304.js";
3
- var t = e();
4
- const m = /* @__PURE__ */ r(t);
1
+ import { getType as o } from "./index308.js";
2
+ function c(e) {
3
+ if (o(e) !== "Object")
4
+ return !1;
5
+ const t = Object.getPrototypeOf(e);
6
+ return !!t && t.constructor === Object && t === Object.prototype;
7
+ }
5
8
  export {
6
- m as default
9
+ c as isPlainObject
7
10
  };
package/dist/index221.js CHANGED
@@ -1,7 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./index335.js";
2
- import { __require as e } from "./index306.js";
3
- var o = e();
4
- const m = /* @__PURE__ */ r(o);
1
+ import { hash as o } from "./index301.js";
2
+ const t = (r, h = "bb") => `${h}${o(r)}`;
5
3
  export {
6
- m as default
4
+ t as hash
7
5
  };
package/dist/index222.js CHANGED
@@ -1,7 +1,5 @@
1
- import { getDefaultExportFromCjs as e } from "./index335.js";
2
- import { __require as r } from "./index308.js";
3
- var o = r();
4
- const f = /* @__PURE__ */ e(o);
1
+ import { isNil as r } from "./index242.js";
2
+ const e = (t) => r(t) ? !0 : Array.isArray(t) || typeof t == "string" ? t.length === 0 : t instanceof Map || t instanceof Set ? t.size === 0 : typeof t == "number" ? Number.isNaN(t) : typeof t == "boolean" || typeof t == "function" ? !1 : typeof t == "object" ? "length" in t && typeof t.length == "number" ? t.length === 0 : Object.keys(t).length === 0 : !1;
5
3
  export {
6
- f as default
4
+ e as isEmpty
7
5
  };
package/dist/index223.js CHANGED
@@ -1,5 +1,4 @@
1
- import { hash as o } from "./index299.js";
2
- const t = (r, h = "bb") => `${h}${o(r)}`;
1
+ const e = (t) => t[t.length - 1];
3
2
  export {
4
- t as hash
3
+ e as last
5
4
  };
package/dist/index224.js CHANGED
@@ -1,4 +1,20 @@
1
- const e = (t) => t[t.length - 1];
1
+ import { isNil as c } from "./index242.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
+ };
2
18
  export {
3
- e as last
19
+ y as matchAnyKey
4
20
  };
package/dist/index225.js CHANGED
@@ -1,8 +1,14 @@
1
- function e(t, r) {
2
- if (!/\d{4}-\d{2}-\d{2}/.test(t))
3
- throw new Error(`${r} must be in the format YYYY-MM-DD`);
4
- return t;
5
- }
1
+ import { ref as t } from "vue";
2
+ const n = () => {
3
+ const e = t([]);
4
+ return { array: e, set: (...r) => {
5
+ e.value = r;
6
+ }, add: (...r) => {
7
+ e.value.push(...r);
8
+ }, remove: (r) => {
9
+ e.value = e.value.filter(r);
10
+ } };
11
+ };
6
12
  export {
7
- e as validateDateFormat
13
+ n as useArray
8
14
  };
package/dist/index226.js CHANGED
@@ -1,10 +1,53 @@
1
- const o = "bitboss-ui | ", e = () => ({
2
- warn: (r) => console.warn(`${o}${r}`),
3
- error: (r) => console.error(`${o}${r}`),
4
- throw: (r) => {
5
- throw new Error(`${o}${r}`);
6
- }
7
- });
1
+ import { computed as l, unref as o } from "vue";
2
+ import { useItemText as x } from "./index300.js";
3
+ import { useItemValue as w } from "./index259.js";
4
+ import { hash as y } from "./index221.js";
5
+ import { useLogger as D } from "./index271.js";
6
+ const { getItemText: O } = x(), { getItemValue: V } = w(), { warn: H } = D(), T = (u, c, m, a, d, r) => r ? !1 : !!(c || u.disabled || a && d >= a), q = ({
7
+ items: u,
8
+ disabled: c,
9
+ selectable: m,
10
+ itemText: a,
11
+ itemValue: d,
12
+ selectedIndexedByHash: r,
13
+ max: b = 1 / 0
14
+ }) => {
15
+ const v = l(() => o(c)), p = l(() => o(u)), h = l(
16
+ () => Object.keys(r.value).length
17
+ ), g = o(b), f = (e) => {
18
+ const n = V(e, o(d)), t = y(n), i = O(e, o(a)), s = r.value[t] !== void 0, I = T(
19
+ e,
20
+ v.value,
21
+ m,
22
+ g,
23
+ h.value,
24
+ s
25
+ );
26
+ return {
27
+ item: e,
28
+ text: i,
29
+ value: n,
30
+ valueHash: t,
31
+ selected: s,
32
+ disabled: o(I)
33
+ };
34
+ };
35
+ return {
36
+ options: l(() => {
37
+ const e = [], n = /* @__PURE__ */ new Set();
38
+ for (let t = 0; t < p.value.length; t++) {
39
+ const i = p.value[t];
40
+ i.disabled && H(
41
+ "Disabling an item by passing a disabled option to the item itself is deprecated and will be removed in a future version. Use the `disabled` prop or the `selectable` iteratee prop instead."
42
+ );
43
+ const s = f(i);
44
+ n.has(s.valueHash) || (n.add(s.valueHash), e.push(s));
45
+ }
46
+ return e;
47
+ }),
48
+ createOption: f
49
+ };
50
+ };
8
51
  export {
9
- e as useLogger
52
+ q as useBaseOptions
10
53
  };