bitboss-ui 2.1.113 → 2.1.114

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 (191) hide show
  1. package/dist/components/BaseCheckboxGroup/types.d.ts +12 -4
  2. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
  3. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +8 -2
  4. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  5. package/dist/index109.js +9 -9
  6. package/dist/index110.js +18 -18
  7. package/dist/index118.js +1 -1
  8. package/dist/index122.js +1 -0
  9. package/dist/index124.js +4 -4
  10. package/dist/index126.js +13 -13
  11. package/dist/index134.js +1 -1
  12. package/dist/index136.js +5 -5
  13. package/dist/index138.js +1 -1
  14. package/dist/index14.js +1 -1
  15. package/dist/index140.js +2 -2
  16. package/dist/index144.js +1 -1
  17. package/dist/index146.js +2 -2
  18. package/dist/index149.js +2 -2
  19. package/dist/index16.js +3 -3
  20. package/dist/index18.js +3 -3
  21. package/dist/index20.js +70 -59
  22. package/dist/index22.js +14 -14
  23. package/dist/index221.js +138 -2
  24. package/dist/index222.js +2 -138
  25. package/dist/index224.js +5 -34
  26. package/dist/index225.js +7 -32
  27. package/dist/index226.js +33 -28
  28. package/dist/index227.js +30 -0
  29. package/dist/index229.js +3 -7
  30. package/dist/index230.js +13 -7
  31. package/dist/index231.js +20 -2
  32. package/dist/index232.js +2 -9
  33. package/dist/index233.js +4 -13
  34. package/dist/index234.js +86 -3
  35. package/dist/index236.js +30 -11
  36. package/dist/index237.js +17 -8
  37. package/dist/index238.js +51 -3
  38. package/dist/index239.js +18 -3
  39. package/dist/index24.js +10 -10
  40. package/dist/index240.js +3 -2
  41. package/dist/index241.js +11 -17
  42. package/dist/index242.js +17 -11
  43. package/dist/index243.js +8 -51
  44. package/dist/index244.js +2 -18
  45. package/dist/index245.js +3 -12
  46. package/dist/index246.js +5 -17
  47. package/dist/index247.js +5 -30
  48. package/dist/index248.js +5 -18
  49. package/dist/index249.js +5 -4
  50. package/dist/index250.js +5 -106
  51. package/dist/index251.js +7 -0
  52. package/dist/index252.js +3 -100
  53. package/dist/{index254.js → index253.js} +6 -6
  54. package/dist/index255.js +4 -0
  55. package/dist/index256.js +100 -101
  56. package/dist/index258.js +100 -2
  57. package/dist/index26.js +3 -3
  58. package/dist/index260.js +10 -7
  59. package/dist/index261.js +3 -86
  60. package/dist/index262.js +6 -0
  61. package/dist/index263.js +3 -5
  62. package/dist/index264.js +188 -5
  63. package/dist/index265.js +3 -5
  64. package/dist/index266.js +5 -5
  65. package/dist/index267.js +6 -5
  66. package/dist/index268.js +268 -5
  67. package/dist/index269.js +42 -57
  68. package/dist/index270.js +51 -32
  69. package/dist/index271.js +32 -2
  70. package/dist/index272.js +60 -2
  71. package/dist/index273.js +7 -3
  72. package/dist/index274.js +2 -4
  73. package/dist/index275.js +369 -19
  74. package/dist/index277.js +2 -13
  75. package/dist/index278.js +7 -5
  76. package/dist/index279.js +6 -5
  77. package/dist/index28.js +1 -1
  78. package/dist/index280.js +2 -268
  79. package/dist/index281.js +30 -48
  80. package/dist/index282.js +9 -52
  81. package/dist/index283.js +25 -32
  82. package/dist/index284.js +11 -60
  83. package/dist/index285.js +13 -4
  84. package/dist/index286.js +21 -18
  85. package/dist/index287.js +9 -5
  86. package/dist/index288.js +23 -373
  87. package/dist/index289.js +7 -0
  88. package/dist/index290.js +9 -6
  89. package/dist/index291.js +20 -15
  90. package/dist/index292.js +6 -10
  91. package/dist/index293.js +16 -3
  92. package/dist/index294.js +17 -8
  93. package/dist/index295.js +12 -21
  94. package/dist/index296.js +106 -8
  95. package/dist/index297.js +6 -23
  96. package/dist/index298.js +3 -25
  97. package/dist/index299.js +51 -186
  98. package/dist/index30.js +3 -3
  99. package/dist/index300.js +13 -3
  100. package/dist/index301.js +67 -3
  101. package/dist/index302.js +31 -51
  102. package/dist/index305.js +1 -1
  103. package/dist/index306.js +4 -2
  104. package/dist/index307.js +7 -5
  105. package/dist/index308.js +3 -7
  106. package/dist/index309.js +17 -3
  107. package/dist/index310.js +28 -3
  108. package/dist/index311.js +1 -1
  109. package/dist/index312.js +3 -2
  110. package/dist/index313.js +5 -28
  111. package/dist/index314.js +3 -17
  112. package/dist/index315.js +3 -4
  113. package/dist/index316.js +280 -2
  114. package/dist/index317.js +2 -3
  115. package/dist/index318.js +13 -277
  116. package/dist/index319.js +2 -2
  117. package/dist/index32.js +2 -2
  118. package/dist/index320.js +12 -121
  119. package/dist/index321.js +2 -2
  120. package/dist/index322.js +25 -13
  121. package/dist/index324.js +2 -16
  122. package/dist/index325.js +2 -2
  123. package/dist/index326.js +2 -16
  124. package/dist/index327.js +2 -2
  125. package/dist/index328.js +2 -19
  126. package/dist/index329.js +125 -2
  127. package/dist/index330.js +2 -27
  128. package/dist/index331.js +15 -2
  129. package/dist/index332.js +2 -2
  130. package/dist/index333.js +19 -2
  131. package/dist/index334.js +2 -2
  132. package/dist/index335.js +1 -1
  133. package/dist/index336.js +719 -2
  134. package/dist/index337.js +366 -3
  135. package/dist/index338.js +56 -3
  136. package/dist/index339.js +4 -719
  137. package/dist/index34.js +8 -8
  138. package/dist/index340.js +5 -366
  139. package/dist/index341.js +2 -57
  140. package/dist/index343.js +2 -5
  141. package/dist/index344.js +6 -34
  142. package/dist/index345.js +66 -128
  143. package/dist/index346.js +65 -396
  144. package/dist/index347.js +34 -199
  145. package/dist/index348.js +125 -255
  146. package/dist/index349.js +390 -220
  147. package/dist/index350.js +7 -67
  148. package/dist/index351.js +18 -66
  149. package/dist/index352.js +9 -2
  150. package/dist/index353.js +15 -2
  151. package/dist/index354.js +5 -134
  152. package/dist/index355.js +200 -7
  153. package/dist/index356.js +257 -17
  154. package/dist/index357.js +92 -8
  155. package/dist/index358.js +225 -12
  156. package/dist/index359.js +134 -5
  157. package/dist/index36.js +4 -4
  158. package/dist/index360.js +22 -7
  159. package/dist/index362.js +4 -0
  160. package/dist/index363.js +2 -93
  161. package/dist/index367.js +1 -1
  162. package/dist/index38.js +133 -131
  163. package/dist/index40.js +7 -7
  164. package/dist/index42.js +2 -2
  165. package/dist/index44.js +16 -15
  166. package/dist/index46.js +6 -6
  167. package/dist/index50.js +2 -2
  168. package/dist/index54.js +1 -1
  169. package/dist/index56.js +1 -1
  170. package/dist/index58.js +2 -2
  171. package/dist/index60.js +2 -2
  172. package/dist/index62.js +5 -5
  173. package/dist/index66.js +3 -1
  174. package/dist/index68.js +1 -1
  175. package/dist/index74.js +4 -4
  176. package/dist/index82.js +6 -6
  177. package/dist/index84.js +1 -1
  178. package/dist/index86.js +2 -2
  179. package/dist/index88.js +3 -3
  180. package/dist/index90.js +1 -1
  181. package/dist/index93.js +3 -3
  182. package/dist/index95.js +2 -2
  183. package/dist/index97.js +5 -5
  184. package/dist/index99.js +1 -1
  185. package/package.json +1 -1
  186. package/dist/index228.js +0 -7
  187. package/dist/index235.js +0 -4
  188. package/dist/index257.js +0 -15
  189. package/dist/index259.js +0 -9
  190. package/dist/index276.js +0 -8
  191. package/dist/index361.js +0 -24
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes, InputHTMLAttributes, MaybeRefOrGetter } from 'vue';
2
2
  import { BaseCheckboxIconSlotProps } from '../BaseCheckbox/types';
3
- export type BaseCheckboxGroupProps<T> = {
3
+ export type BaseCheckboxGroupProps<T = any> = {
4
4
  /**
5
5
  * ID of the element that describes the entire checkbox group for assistive
6
6
  * technologies. Forwarded to each generated input as `aria-describedby`.
@@ -74,7 +74,7 @@ export type BaseCheckboxGroupProps<T> = {
74
74
  * change to load options dynamically.
75
75
  * @defaultValue `[]`
76
76
  */
77
- items: T[] | ((prefill: boolean, modelValue?: any[]) => Promise<T[]>) | ((prefill: boolean, modelValue?: any[]) => T[]);
77
+ items: T[] | ((prefill: boolean, modelValue?: any) => Promise<T[]>) | ((prefill: boolean, modelValue?: any) => T[]);
78
78
  /**
79
79
  * Defines how to derive the display text from an item. Accepts a nested key path
80
80
  * into the item or a function `(item) => string`.
@@ -103,9 +103,17 @@ export type BaseCheckboxGroupProps<T> = {
103
103
  max?: number;
104
104
  /**
105
105
  * Selected values for the group. Used with `v-model`.
106
- * Must be an array.
106
+ * Single value when `multiple` is false, array when `multiple` is true.
107
107
  */
108
- modelValue: any[];
108
+ modelValue: any;
109
+ /**
110
+ * Enables multi-selection behavior.
111
+ * When `true`, `modelValue` must be an array and emitted updates are arrays.
112
+ * When `false`, `modelValue` must be a single value (or `null`) and emitted
113
+ * updates are single values.
114
+ * @defaultValue `true`
115
+ */
116
+ multiple?: boolean;
109
117
  /**
110
118
  * Debounce delay (ms) applied when reacting to `modelValue` changes.
111
119
  * @defaultValue `0`
@@ -4,7 +4,7 @@ import { SlotAttributes } from '../BaseRadio/BaseRadio.vue';
4
4
  /**
5
5
  * Props for the radio group component that renders a list of radio options from items.
6
6
  */
7
- export type BaseRadioGroupProps<T> = {
7
+ export type BaseRadioGroupProps<T = any> = {
8
8
  /**
9
9
  * Id(s) of elements describing this group for assistive technologies.
10
10
  */
@@ -77,7 +77,7 @@ export type BbCheckboxGroupProps<T> = {
77
77
  /**
78
78
  * Used to retrieve items can be an array or a function.
79
79
  */
80
- items: T[] | ((prefill: boolean, modelValue?: any[]) => Promise<T[]>) | ((prefill: boolean, modelValue?: any[]) => T[]);
80
+ items: T[] | ((prefill: boolean, modelValue?: any) => Promise<T[]>) | ((prefill: boolean, modelValue?: any) => T[]);
81
81
  /**
82
82
  * Defines a path that returns a property of the object to use as text or a function that returns a string
83
83
  */
@@ -105,7 +105,13 @@ export type BbCheckboxGroupProps<T> = {
105
105
  /**
106
106
  * Used by v-model. Can be an array of any serializable type.
107
107
  */
108
- modelValue: any[];
108
+ modelValue: any;
109
+ /**
110
+ * Enables multi-selection behavior.
111
+ * When true, `modelValue` must be an array.
112
+ * When false, `modelValue` should be a single value.
113
+ */
114
+ multiple?: boolean;
109
115
  /**
110
116
  * Timeout used to debounce response to changes to modelValue.
111
117
  */
@@ -1,6 +1,6 @@
1
1
  import { BaseCheckboxIconSlotProps } from '../BaseCheckbox/types';
2
2
  import { BbCheckboxGroupEvents, BbCheckboxGroupProps } from '../BbCheckboxGroup/BbCheckboxGroup.vue';
3
- export type BbSwitchGroupProps<T> = BbCheckboxGroupProps<T>;
3
+ export type BbSwitchGroupProps<T = any> = BbCheckboxGroupProps<T>;
4
4
  export type BbSwitchGroupEvents = BbCheckboxGroupEvents;
5
5
  declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
6
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
package/dist/index109.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as D, computed as b, toRef as r, ref as E, reactive as L, watch as m, createElementBlock as V, openBlock as g, Fragment as B, renderSlot as i, createCommentVNode as P, unref as R, renderList as j } from "vue";
2
- import { useItemValue as G } from "./index294.js";
3
- import { isNil as k } from "./index231.js";
4
- import { indexBy as U } from "./index295.js";
5
- import { hash as p } from "./index238.js";
6
- import { useItemsGetter as W } from "./index247.js";
7
- import { usePrefill as q } from "./index248.js";
8
- import { useIndexById as z } from "./index246.js";
9
- import { useBaseOptions as J } from "./index243.js";
10
- import { useHashedWatcher as K } from "./index245.js";
2
+ import { useItemValue as G } from "./index290.js";
3
+ import { isNil as k } from "./index274.js";
4
+ import { indexBy as U } from "./index291.js";
5
+ import { hash as p } from "./index240.js";
6
+ import { useItemsGetter as W } from "./index236.js";
7
+ import { usePrefill as q } from "./index242.js";
8
+ import { useIndexById as z } from "./index237.js";
9
+ import { useBaseOptions as J } from "./index238.js";
10
+ import { useHashedWatcher as K } from "./index241.js";
11
11
  const oe = /* @__PURE__ */ D({
12
12
  __name: "BbRows",
13
13
  props: {
package/dist/index110.js CHANGED
@@ -1,31 +1,31 @@
1
1
  import { defineComponent as at, ref as f, computed as l, watch as Q, toRef as X, onBeforeUnmount as rt, createElementBlock as Y, openBlock as Z, Fragment as nt, renderSlot as m, createCommentVNode as it, createVNode as F, normalizeProps as ye, mergeProps as ge, normalizeStyle as lt, normalizeClass as st, withCtx as g, createElementVNode as L, withDirectives as ut, withKeys as h, withModifiers as d, unref as I, vModelDynamic as ct, guardReactiveProps as dt, nextTick as we } from "vue";
2
- import { extractDomContainer as pt } from "./index274.js";
3
- import { get as vt } from "./index236.js";
4
- import { hash as ee } from "./index238.js";
5
- import { isNil as ft } from "./index231.js";
6
- import { matchAnyKey as Be } from "./index241.js";
7
- import { parseWidthString as mt } from "./index275.js";
8
- import { useArray as ht } from "./index242.js";
9
- import { useBaseOptions as bt } from "./index243.js";
10
- import { useCoherence as yt } from "./index244.js";
2
+ import { extractDomContainer as pt } from "./index262.js";
3
+ import { get as vt } from "./index284.js";
4
+ import { hash as ee } from "./index240.js";
5
+ import { isNil as ft } from "./index274.js";
6
+ import { matchAnyKey as Be } from "./index294.js";
7
+ import { parseWidthString as mt } from "./index286.js";
8
+ import { useArray as ht } from "./index295.js";
9
+ import { useBaseOptions as bt } from "./index238.js";
10
+ import { useCoherence as yt } from "./index239.js";
11
11
  import { useElementSize as gt, useIntersectionObserver as wt } from "./index146.js";
12
- import { useHashedWatcher as Ae } from "./index245.js";
12
+ import { useHashedWatcher as Ae } from "./index241.js";
13
13
  import { useId as Bt } from "./index8.js";
14
- import { useIndexById as Ie } from "./index246.js";
15
- import { useItemsGetter as At } from "./index247.js";
14
+ import { useIndexById as Ie } from "./index237.js";
15
+ import { useItemsGetter as At } from "./index236.js";
16
16
  import { useMobile as It } from "./index9.js";
17
- import { usePrefill as Vt } from "./index248.js";
18
- import { useUntil as xt } from "./index257.js";
17
+ import { usePrefill as Vt } from "./index242.js";
18
+ import { useUntil as xt } from "./index285.js";
19
19
  import { wait as C } from "./index145.js";
20
20
  /* empty css */
21
21
  /* empty css */
22
22
  import Et from "./index118.js";
23
23
  /* empty css */
24
- import St from "./index254.js";
24
+ import St from "./index253.js";
25
25
  /* empty css */
26
- import kt from "./index225.js";
27
- import Dt from "./index256.js";
28
- import { waitFor as Lt } from "./index276.js";
26
+ import kt from "./index226.js";
27
+ import Dt from "./index296.js";
28
+ import { waitFor as Lt } from "./index297.js";
29
29
  const Ct = {
30
30
  key: 0,
31
31
  class: "bb-select-popover__search-container"
package/dist/index118.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 "./index235.js";
2
+ import { isCssColor as m } from "./index232.js";
3
3
  const d = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index122.js CHANGED
@@ -30,6 +30,7 @@ const E = /* @__PURE__ */ f({
30
30
  loadingText: {},
31
31
  max: {},
32
32
  modelValue: {},
33
+ multiple: { type: Boolean },
33
34
  modelValueDebounceTime: {},
34
35
  name: {},
35
36
  noDataText: {},
package/dist/index124.js CHANGED
@@ -8,12 +8,12 @@ import Ce from "./index14.js";
8
8
  import Be from "./index116.js";
9
9
  /* empty css */
10
10
  import { useFrameworkDetection as Te } from "./index147.js";
11
- import { merge as qe } from "./index270.js";
12
- import { isNil as Le } from "./index231.js";
11
+ import { merge as qe } from "./index302.js";
12
+ import { isNil as Le } from "./index274.js";
13
13
  import { useQuery as Fe } from "./index11.js";
14
- import { hash as Ee } from "./index238.js";
14
+ import { hash as Ee } from "./index240.js";
15
15
  import { isNotNil as Ne } from "./index150.js";
16
- import { useLogger as Pe } from "./index237.js";
16
+ import { useLogger as Pe } from "./index243.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/index126.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
- import { clamp as Ve } from "./index221.js";
3
- import { hash as T } from "./index238.js";
4
- import { isNil as w } from "./index231.js";
5
- import { when as $e } from "./index249.js";
2
+ import { clamp as Ve } from "./index222.js";
3
+ import { hash as T } from "./index240.js";
4
+ import { isNil as w } from "./index274.js";
5
+ import { when as $e } from "./index233.js";
6
6
  import { useId as Be } from "./index8.js";
7
- import { useItemValue as He } from "./index294.js";
8
- import { useItemsGetter as Te } from "./index247.js";
9
- import { usePrefill as Ae } from "./index248.js";
10
- import { useIndexById as le } from "./index246.js";
11
- import { useBaseOptions as Ne } from "./index243.js";
12
- import { useHashedWatcher as Le } from "./index245.js";
13
- import { useLocale as De } from "./index233.js";
7
+ import { useItemValue as He } from "./index290.js";
8
+ import { useItemsGetter as Te } from "./index236.js";
9
+ import { usePrefill as Ae } from "./index242.js";
10
+ import { useIndexById as le } from "./index237.js";
11
+ import { useBaseOptions as Ne } from "./index238.js";
12
+ import { useHashedWatcher as Le } from "./index241.js";
13
+ import { useLocale as De } from "./index230.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 "./index302.js";
19
- import { useLogger as Me } from "./index237.js";
18
+ import { columnKeyToSlotName as Pe, mergeHeaderClasses as Se, applyFixedTableColumns as Re, mergeCellClasses as Oe } from "./index299.js";
19
+ import { useLogger as Me } from "./index243.js";
20
20
  const Fe = {
21
21
  key: 0,
22
22
  class: "sr-only"
package/dist/index134.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 "./index269.js";
3
+ import b from "./index301.js";
4
4
  const $ = /* @__PURE__ */ a({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index136.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 "./index233.js";
4
- import { useUntil as X } from "./index257.js";
3
+ import { useLocale as Q } from "./index230.js";
4
+ import { useUntil as X } from "./index285.js";
5
5
  import Y from "./index14.js";
6
6
  /* empty css */
7
- import Z from "./index254.js";
7
+ import Z from "./index253.js";
8
8
  /* empty css */
9
9
  import { useElementSize as ee } from "./index146.js";
10
- import { extractDomContainer as V } from "./index274.js";
11
- import { parseWidthString as te } from "./index275.js";
10
+ import { extractDomContainer as V } from "./index262.js";
11
+ import { parseWidthString as te } from "./index286.js";
12
12
  const ce = /* @__PURE__ */ R({
13
13
  inheritAttrs: !1,
14
14
  __name: "BbTooltip",
package/dist/index138.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 "./index287.js";
2
+ import { flattenTree as T } from "./index289.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/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 "./index224.js";
2
+ import R from "./index281.js";
3
3
  import { useFrameworkDetection as _ } from "./index147.js";
4
4
  import { _config as g } from "./index4.js";
5
5
  const D = /* @__PURE__ */ w({
package/dist/index140.js CHANGED
@@ -5,8 +5,8 @@ import u from "./index88.js";
5
5
  /* empty css */
6
6
  import I from "./index118.js";
7
7
  /* empty css */
8
- import N from "./index225.js";
9
- import g from "./index226.js";
8
+ import N from "./index226.js";
9
+ import g from "./index227.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/index144.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as s } from "./index221.js";
1
+ import { clamp as s } from "./index222.js";
2
2
  const o = (n, e, r = !1) => {
3
3
  const t = n * 100 / e;
4
4
  return r ? s(t, 0, 100) : t;
package/dist/index146.js CHANGED
@@ -1,5 +1,5 @@
1
- import { tryOnMounted as D, toArray as L, notNullish as Z, noop as V, tryOnScopeDispose as P, useThrottleFn as q, isClient as ee, watchImmediate as te, useDebounceFn as ne, pxValue as G, injectLocal as oe, isObject as le } from "./index222.js";
2
- import { bypassFilter as We, createFilterWrapper as ye, debounceFilter as Te, debouncedWatch as Ie, getLifeCycleTarget as Me, throttleFilter as _e, debouncedWatch as Re, watchWithFilter as Ae } from "./index222.js";
1
+ import { tryOnMounted as D, toArray as L, notNullish as Z, noop as V, tryOnScopeDispose as P, useThrottleFn as q, isClient as ee, watchImmediate as te, useDebounceFn as ne, pxValue as G, injectLocal as oe, isObject as le } from "./index221.js";
2
+ import { bypassFilter as We, createFilterWrapper as ye, debounceFilter as Te, debouncedWatch as Ie, getLifeCycleTarget as Me, throttleFilter as _e, debouncedWatch as Re, watchWithFilter as Ae } from "./index221.js";
3
3
  import { shallowRef as S, getCurrentInstance as ue, onMounted as se, computed as g, watch as B, toValue as w, reactive as U, ref as J, watchEffect as re, hasInjectionContext as ie, unref as ce } from "vue";
4
4
  const R = ee ? window : void 0;
5
5
  function W(o) {
package/dist/index149.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index228.js";
2
- import { isPlainObject as i } from "./index229.js";
1
+ import { isArray as p } from "./index224.js";
2
+ import { isPlainObject as i } from "./index225.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,9 +1,9 @@
1
1
  import { defineComponent as $, ref as d, computed as i, createBlock as C, openBlock as g, normalizeClass as M, withCtx as n, createVNode as b, unref as p, withDirectives as I, createElementVNode as t, mergeProps as f, renderSlot as s } from "vue";
2
- import { isHex as q } from "./index285.js";
2
+ import { isHex as q } from "./index229.js";
3
3
  import { isNotNil as D } from "./index150.js";
4
4
  import { useId as E } from "./index8.js";
5
- import { useLocale as N } from "./index233.js";
6
- import { vMaska as L } from "./index286.js";
5
+ import { useLocale as N } from "./index230.js";
6
+ import { vMaska as L } from "./index231.js";
7
7
  import P from "./index74.js";
8
8
  import z from "./index140.js";
9
9
  /* empty css */
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 "./index235.js";
3
- import { booleanishToBoolean as q } from "./index271.js";
4
- import { isEqual as A } from "./index273.js";
2
+ import { isCssColor as y } from "./index232.js";
3
+ import { booleanishToBoolean as q } from "./index244.js";
4
+ import { isEqual as A } from "./index245.js";
5
5
  const N = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index20.js CHANGED
@@ -1,16 +1,17 @@
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
- import N from "./index18.js";
1
+ import { defineComponent as z, ref as B, toRef as p, computed as R, createBlock as W, openBlock as K, unref as T, withCtx as n, renderSlot as l, normalizeProps as f, guardReactiveProps as h, createVNode as N, mergeProps as C } from "vue";
2
+ import U from "./index18.js";
3
3
  /* empty css */
4
- import U from "./index261.js";
4
+ import q from "./index234.js";
5
5
  /* empty css */
6
- import { useItemsGetter as q } from "./index247.js";
7
- import { useIndexById as C } from "./index246.js";
8
- import { useBaseOptions as J } from "./index243.js";
9
- import { useCoherence as Q } from "./index244.js";
10
- import { hash as X } from "./index238.js";
11
- import { useHashedWatcher as $ } from "./index245.js";
12
- import { usePrefill as Y } from "./index248.js";
13
- const ce = /* @__PURE__ */ z({
6
+ import { useItemsGetter as J } from "./index236.js";
7
+ import { useIndexById as $ } from "./index237.js";
8
+ import { useBaseOptions as Q } from "./index238.js";
9
+ import { useCoherence as X } from "./index239.js";
10
+ import { hash as Y } from "./index240.js";
11
+ import { useHashedWatcher as w } from "./index241.js";
12
+ import { usePrefill as Z } from "./index242.js";
13
+ import { useLogger as _ } from "./index243.js";
14
+ const fe = /* @__PURE__ */ z({
14
15
  __name: "BaseCheckboxGroup",
15
16
  props: {
16
17
  ariaDescribedby: {},
@@ -30,6 +31,7 @@ const ce = /* @__PURE__ */ z({
30
31
  loadingText: {},
31
32
  max: { default: 1 / 0 },
32
33
  modelValue: {},
34
+ multiple: { type: Boolean, default: !0 },
33
35
  modelValueDebounceTime: { default: 0 },
34
36
  name: {},
35
37
  noDataText: {},
@@ -37,28 +39,29 @@ const ce = /* @__PURE__ */ z({
37
39
  },
38
40
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
39
41
  setup(I, { emit: D }) {
40
- const o = I, t = D;
41
- if (!Array.isArray(o.modelValue))
42
- throw new Error("Model value must be an array in checkbox group.");
43
- const i = B(), d = B(!1), {
44
- getter: u,
42
+ const o = I, t = D, L = _();
43
+ o.multiple && !Array.isArray(o.modelValue) && L.throw(
44
+ 'BaseCheckboxGroup: multiple is set to "true" but modelValue is not an array.'
45
+ );
46
+ const r = B(), u = B(!1), {
47
+ getter: d,
45
48
  items: E,
46
49
  loading: H
47
- } = q({
50
+ } = J({
48
51
  items: p(o, "items"),
49
52
  debounce: 0
50
53
  }), c = () => {
51
- o.enforceCoherence && !v.value && t("update:modelValue", F.value.coherent);
52
- }, { hasPrefilled: L } = Y({
54
+ o.enforceCoherence && !v.value && t("update:modelValue", O.value);
55
+ }, { hasPrefilled: x } = Z({
53
56
  trigger: !0,
54
57
  currentValue: o.modelValue,
55
- multiple: !0,
58
+ multiple: o.multiple,
56
59
  fn: async (e) => {
57
- await u(e, o.modelValue), c();
60
+ await d(e, o.modelValue), c();
58
61
  }
59
- }), { data: b } = C({
60
- items: G(() => o.modelValue)
61
- }), { options: y } = J({
62
+ }), { data: b } = $({
63
+ items: R(() => [].concat(o.modelValue))
64
+ }), { options: y } = Q({
62
65
  disabled: p(o, "disabled"),
63
66
  items: E,
64
67
  itemText: o.itemText,
@@ -66,62 +69,70 @@ const ce = /* @__PURE__ */ z({
66
69
  max: o.max,
67
70
  selectable: !0,
68
71
  selectedIndexedByHash: b
69
- }), x = async (e) => {
70
- t("update:modelValue", o.modelValue.concat(e.value));
71
- }, M = async (e) => {
72
- const l = { ...b.value };
73
- delete l[e.valueHash], t("update:modelValue", Object.values(l));
74
- }, { data: P } = C({
72
+ }), P = async (e) => {
73
+ if (o.multiple) {
74
+ t("update:modelValue", [].concat(o.modelValue).concat(e.value));
75
+ return;
76
+ }
77
+ t("update:modelValue", e.value);
78
+ }, F = async (e) => {
79
+ if (!o.multiple) {
80
+ t("update:modelValue", null);
81
+ return;
82
+ }
83
+ const s = { ...b.value };
84
+ delete s[e.valueHash], t("update:modelValue", Object.values(s));
85
+ }, { data: M } = $({
75
86
  items: y,
76
87
  key: "valueHash"
77
- }), { coherent: v, status: F } = Q({
88
+ }), { coherent: v, coherentValue: O } = X({
78
89
  modelValue: p(o, "modelValue"),
79
- multiple: !0,
80
- iteratee: (e) => !!P.value[X(e)]
90
+ multiple: o.multiple,
91
+ iteratee: (e) => !!M.value[Y(e)]
81
92
  });
82
- let r = 0;
83
- $(
93
+ let i = 0;
94
+ w(
84
95
  () => o.modelValue,
85
96
  async () => {
86
- r++, v.value || (await u(!1, o.modelValue), c()), r--;
97
+ i++, v.value || (await d(!1, o.modelValue), c()), i--;
87
98
  },
88
99
  {
89
100
  debounce: o.modelValueDebounceTime
90
101
  }
91
- ), $(
102
+ ), w(
92
103
  () => [o.dependencies, o.items],
93
104
  async () => {
94
- L.value && (r++, await u(!1, o.modelValue), r === 1 && c(), r--);
105
+ x.value && (i++, await d(!1, o.modelValue), i === 1 && c(), i--);
95
106
  },
96
107
  {
97
108
  debounce: o.depsDebounceTime
98
109
  }
99
110
  );
100
- const O = (e) => {
111
+ const A = (e) => {
101
112
  if (o.id)
102
113
  return [o.id, e.valueHash].filter(Boolean).join("-");
103
- }, A = (e, l) => {
104
- t("change", e), l.selected ? M(l) : x(l);
114
+ }, G = (e, s) => {
115
+ t("change", e), s.selected ? F(s) : P(s);
105
116
  }, S = {
106
117
  onBlur: (e) => t("blur", e),
107
118
  onClick: (e) => t("click", e),
108
119
  onFocus: (e) => {
109
- t("focus", e), d.value || (document.addEventListener("focusin", V, { passive: !0 }), document.addEventListener("click", k, { passive: !0 }), d.value = !0);
120
+ t("focus", e), u.value || (document.addEventListener("focusin", V, { passive: !0 }), document.addEventListener("click", k, { passive: !0 }), u.value = !0);
110
121
  },
111
122
  onInput: (e) => t("input", e),
112
123
  onKeydown: (e) => t("keydown", e),
113
124
  onMousedown: (e) => t("mousedown", e),
114
125
  onMouseup: (e) => t("mouseup", e)
115
126
  }, g = () => {
116
- t("inactive"), d.value = !1, document.removeEventListener("focusin", V), document.removeEventListener("click", k);
127
+ t("inactive"), u.value = !1, document.removeEventListener("focusin", V), document.removeEventListener("click", k);
117
128
  }, V = (e) => {
118
- e.target instanceof HTMLElement && (i.value?.$el.contains(e.target) || g());
129
+ e.target instanceof HTMLElement && (r.value?.$el.contains(e.target) || g());
119
130
  }, k = (e) => {
120
- e.target instanceof HTMLElement && (i.value?.$el.contains(e.target) || g());
131
+ e.target instanceof HTMLElement && (r.value?.$el.contains(e.target) || g());
121
132
  };
122
- return (e, l) => (W(), R(U, {
133
+ return (e, s) => (K(), W(q, {
123
134
  ref_key: "container",
124
- ref: i,
135
+ ref: r,
125
136
  class: "bb-base-checkbox-group",
126
137
  direction: e.direction,
127
138
  "has-errors": e.hasErrors,
@@ -132,23 +143,23 @@ const ce = /* @__PURE__ */ z({
132
143
  options: T(y)
133
144
  }, {
134
145
  prepend: n(() => [
135
- s(e.$slots, "prepend")
146
+ l(e.$slots, "prepend")
136
147
  ]),
137
148
  loading: n(() => [
138
- s(e.$slots, "loading")
149
+ l(e.$slots, "loading")
139
150
  ]),
140
151
  "no-data": n(() => [
141
- s(e.$slots, "no-data")
152
+ l(e.$slots, "no-data")
142
153
  ]),
143
154
  label: n((a) => [
144
- s(e.$slots, "label", f(h(a)))
155
+ l(e.$slots, "label", f(h(a)))
145
156
  ]),
146
157
  "option:prepend": n((a) => [
147
- s(e.$slots, "option:prepend", f(h(a)))
158
+ l(e.$slots, "option:prepend", f(h(a)))
148
159
  ]),
149
160
  input: n(({ option: a, index: j }) => [
150
- K(N, w({
151
- id: O(a),
161
+ N(U, C({
162
+ id: A(a),
152
163
  "aria-describedby": e.ariaDescribedby,
153
164
  autofocus: e.autofocus && !j,
154
165
  checked: a.selected,
@@ -159,10 +170,10 @@ const ce = /* @__PURE__ */ z({
159
170
  readonly: e.readonly,
160
171
  "true-value": a.value
161
172
  }, S, {
162
- onChange: (m) => A(m, a)
173
+ onChange: (m) => G(m, a)
163
174
  }), {
164
175
  icon: n((m) => [
165
- s(e.$slots, "icon", w({
176
+ l(e.$slots, "icon", C({
166
177
  item: a.item,
167
178
  text: a.text
168
179
  }, m))
@@ -171,15 +182,15 @@ const ce = /* @__PURE__ */ z({
171
182
  }, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "name", "readonly", "true-value", "onChange"])
172
183
  ]),
173
184
  "option:append": n((a) => [
174
- s(e.$slots, "option:append", f(h(a)))
185
+ l(e.$slots, "option:append", f(h(a)))
175
186
  ]),
176
187
  append: n(() => [
177
- s(e.$slots, "append")
188
+ l(e.$slots, "append")
178
189
  ]),
179
190
  _: 3
180
191
  }, 8, ["direction", "has-errors", "hide-label", "loading", "loading-text", "no-data-text", "options"]));
181
192
  }
182
193
  });
183
194
  export {
184
- ce as default
195
+ fe as default
185
196
  };
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 "./index263.js";
9
- import ee from "./index266.js";
10
- import ae from "./index267.js";
11
- import te from "./index278.js";
12
- import { hash as B } from "./index238.js";
13
- import { last as le } from "./index240.js";
14
- import { validateDateFormat as L } from "./index279.js";
15
- import { useLogger as oe } from "./index237.js";
16
- import re from "./index280.js";
17
- import se from "./index281.js";
18
- import de from "./index282.js";
19
- import S from "./index283.js";
20
- import ie from "./index284.js";
21
- import { useLocale as ne } from "./index233.js";
8
+ import d from "./index246.js";
9
+ import ee from "./index249.js";
10
+ import ae from "./index250.js";
11
+ import te from "./index266.js";
12
+ import { hash as B } from "./index240.js";
13
+ import { last as le } from "./index255.js";
14
+ import { validateDateFormat as L } from "./index267.js";
15
+ import { useLogger as oe } from "./index243.js";
16
+ import re from "./index268.js";
17
+ import se from "./index269.js";
18
+ import de from "./index270.js";
19
+ import S from "./index271.js";
20
+ import ie from "./index272.js";
21
+ import { useLocale as ne } from "./index230.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",