bitboss-ui 2.0.87 → 2.0.89

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 (230) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +14 -7
  2. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +17 -6
  3. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +27 -224
  4. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +14 -2
  5. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +1 -1
  6. package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +1 -1
  7. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +27 -18
  8. package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +1 -1
  9. package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +1 -1
  10. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +155 -19
  11. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +16 -2
  12. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +10 -3
  13. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +13 -2
  14. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +15 -6
  15. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +27 -224
  16. package/dist/components/BaseRating/BaseRating.vue.d.ts +13 -2
  17. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +315 -6
  18. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +17 -3
  19. package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +13 -2
  20. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +28 -217
  21. package/dist/components/BaseTag/BaseTag.vue.d.ts +200 -4
  22. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +14 -3
  23. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +13 -2
  24. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +28 -20
  25. package/dist/components/BbAlert/BbAlert.vue.d.ts +23 -16
  26. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +15 -6
  27. package/dist/components/BbBadge/BbBadge.vue.d.ts +14 -7
  28. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +51 -44
  29. package/dist/components/BbButton/BbButton.vue.d.ts +13 -6
  30. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +28 -19
  31. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +32 -252
  32. package/dist/components/BbChip/BbChip.vue.d.ts +13 -6
  33. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +13 -6
  34. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +21 -12
  35. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +24 -17
  36. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +29 -22
  37. package/dist/components/BbDialog/BbDialog.vue.d.ts +9 -2
  38. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +177 -159
  39. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +190 -183
  40. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +26 -17
  41. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +24 -15
  42. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +102 -12
  43. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +17 -3
  44. package/dist/components/BbPagination/BbPagination.vue.d.ts +33 -23
  45. package/dist/components/BbPopover/BbPopover.vue.d.ts +66 -54
  46. package/dist/components/BbRadio/BbRadio.vue.d.ts +28 -19
  47. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +32 -252
  48. package/dist/components/BbRating/BbRating.vue.d.ts +21 -12
  49. package/dist/components/BbRatio/BbRatio.vue.d.ts +14 -7
  50. package/dist/components/BbSelect/BbSelect.vue.d.ts +7 -162
  51. package/dist/components/BbSlider/BbSlider.vue.d.ts +21 -12
  52. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +13 -3
  53. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +28 -19
  54. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +32 -252
  55. package/dist/components/BbTab/BbTab.vue.d.ts +89 -78
  56. package/dist/components/BbTable/BbTable.vue.d.ts +95 -78
  57. package/dist/components/BbTable/types.d.ts +0 -4
  58. package/dist/components/BbTag/BbTag.vue.d.ts +11 -2
  59. package/dist/components/BbTeleport.vue.d.ts +10 -3
  60. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +21 -12
  61. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +21 -12
  62. package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
  63. package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
  64. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +13 -3
  65. package/dist/components/BbTree/BbTree.vue.d.ts +9 -2
  66. package/dist/components/ChipsBox.vue.d.ts +2 -2
  67. package/dist/components/CommaBox.vue.d.ts +2 -2
  68. package/dist/components/CommonFloating.vue.d.ts +15 -7
  69. package/dist/components/CommonInputInnerContainer.vue.d.ts +16 -7
  70. package/dist/components/CommonInputOuterContainer.vue.d.ts +12 -5
  71. package/dist/components/ListBox.vue.d.ts +25 -16
  72. package/dist/components/OptionsContainer.vue.d.ts +26 -88
  73. package/dist/components/Transitions/Slide.vue.d.ts +12 -5
  74. package/dist/components/Transitions/SlideBack.vue.d.ts +12 -5
  75. package/dist/composables/useBroadcastChannelInstance.d.ts +2 -2
  76. package/dist/composables/useToast.d.ts +1 -1
  77. package/dist/composables/useWizard.d.ts +1 -1
  78. package/dist/index110.js +143 -135
  79. package/dist/index118.js +2 -2
  80. package/dist/index120.js +5 -5
  81. package/dist/index122.js +1 -1
  82. package/dist/index126.js +1 -1
  83. package/dist/index127.js +1 -1
  84. package/dist/index128.js +1 -1
  85. package/dist/index13.js +1 -1
  86. package/dist/index130.js +1 -1
  87. package/dist/index132.js +6 -6
  88. package/dist/index15.js +4 -4
  89. package/dist/index17.js +3 -3
  90. package/dist/index19.js +2 -2
  91. package/dist/index204.js +2 -81
  92. package/dist/index205.js +53 -2
  93. package/dist/index207.js +13 -4
  94. package/dist/index208.js +5 -2
  95. package/dist/index209.js +14 -124
  96. package/dist/index21.js +14 -14
  97. package/dist/index210.js +16 -5
  98. package/dist/index211.js +17 -123
  99. package/dist/index212.js +18 -18
  100. package/dist/index213.js +24 -13
  101. package/dist/index214.js +3 -16
  102. package/dist/index215.js +2 -2
  103. package/dist/index216.js +8 -2
  104. package/dist/index217.js +248 -40
  105. package/dist/index218.js +50 -18
  106. package/dist/index219.js +43 -5
  107. package/dist/index220.js +4 -52
  108. package/dist/index221.js +62 -0
  109. package/dist/index222.js +3 -13
  110. package/dist/index223.js +3 -5
  111. package/dist/index224.js +41 -12
  112. package/dist/index225.js +6 -369
  113. package/dist/index226.js +7 -4
  114. package/dist/index227.js +12 -164
  115. package/dist/index228.js +80 -83
  116. package/dist/index229.js +166 -0
  117. package/dist/index23.js +16 -16
  118. package/dist/index230.js +84 -19
  119. package/dist/index232.js +2 -3
  120. package/dist/index233.js +4 -8
  121. package/dist/index234.js +2 -249
  122. package/dist/index235.js +18 -50
  123. package/dist/index236.js +4 -44
  124. package/dist/index237.js +126 -5
  125. package/dist/index238.js +124 -59
  126. package/dist/index239.js +2 -3
  127. package/dist/index240.js +5 -7
  128. package/dist/index241.js +369 -3
  129. package/dist/index242.js +2 -2
  130. package/dist/index243.js +2 -18
  131. package/dist/index244.js +17 -105
  132. package/dist/index245.js +108 -0
  133. package/dist/{index246.js → index247.js} +1 -1
  134. package/dist/index25.js +6 -6
  135. package/dist/index251.js +9 -6
  136. package/dist/index252.js +23 -16
  137. package/dist/index253.js +88 -8
  138. package/dist/index255.js +6 -89
  139. package/dist/index256.js +18 -0
  140. package/dist/index258.js +3 -4
  141. package/dist/index260.js +7 -6
  142. package/dist/index261.js +281 -2
  143. package/dist/index262.js +6 -2
  144. package/dist/index263.js +2 -2
  145. package/dist/index266.js +2 -126
  146. package/dist/index267.js +2 -431
  147. package/dist/index268.js +2 -176
  148. package/dist/index269.js +2 -3
  149. package/dist/index27.js +1 -1
  150. package/dist/index270.js +4 -0
  151. package/dist/index271.js +2 -7
  152. package/dist/index272.js +1 -21
  153. package/dist/index273.js +30 -0
  154. package/dist/index274.js +21 -1
  155. package/dist/index276.js +224 -12
  156. package/dist/index277.js +429 -7
  157. package/dist/index278.js +2 -9
  158. package/dist/index279.js +87 -15
  159. package/dist/index280.js +3 -4
  160. package/dist/index281.js +11 -435
  161. package/dist/index282.js +7 -125
  162. package/dist/index283.js +8 -199
  163. package/dist/index284.js +17 -2
  164. package/dist/index285.js +4 -2
  165. package/dist/index286.js +4 -2
  166. package/dist/index287.js +176 -2
  167. package/dist/index288.js +200 -2
  168. package/dist/index289.js +2 -2
  169. package/dist/index29.js +3 -3
  170. package/dist/index290.js +65 -27
  171. package/dist/index291.js +2 -22
  172. package/dist/index292.js +128 -0
  173. package/dist/index293.js +22 -89
  174. package/dist/index295.js +5 -3
  175. package/dist/index296.js +436 -3
  176. package/dist/index297.js +126 -210
  177. package/dist/index298.js +3 -2
  178. package/dist/index299.js +3 -5
  179. package/dist/index300.js +204 -59
  180. package/dist/index301.js +3 -4
  181. package/dist/index302.js +2 -3
  182. package/dist/index303.js +3 -59
  183. package/dist/index304.js +58 -3
  184. package/dist/index305.js +6 -32
  185. package/dist/index306.js +17 -5
  186. package/dist/index309.js +32 -6
  187. package/dist/index31.js +2 -2
  188. package/dist/index310.js +5 -17
  189. package/dist/index313.js +2 -47
  190. package/dist/index314.js +47 -2
  191. package/dist/{index316.js → index315.js} +2 -2
  192. package/dist/index317.js +1 -1
  193. package/dist/index318.js +2 -47
  194. package/dist/index319.js +47 -2
  195. package/dist/index33.js +2 -2
  196. package/dist/index35.js +3 -3
  197. package/dist/index37.js +14 -14
  198. package/dist/index39.js +4 -4
  199. package/dist/index41.js +2 -2
  200. package/dist/index43.js +2 -2
  201. package/dist/index45.js +6 -6
  202. package/dist/index47.js +2 -2
  203. package/dist/index49.js +2 -2
  204. package/dist/index55.js +1 -1
  205. package/dist/index57.js +1 -1
  206. package/dist/index75.js +99 -85
  207. package/dist/index79.js +2 -2
  208. package/dist/index81.js +1 -1
  209. package/dist/index84.js +3 -3
  210. package/dist/index88.js +4 -4
  211. package/dist/index90.js +1 -1
  212. package/dist/style.css +1 -1
  213. package/dist/utilities/functions/booleanishToBoolean.d.ts +1 -1
  214. package/dist/utilities/functions/deburr.d.ts +1 -1
  215. package/dist/utilities/functions/flattenTree.d.ts +1 -1
  216. package/dist/utilities/functions/groupBy.d.ts +1 -1
  217. package/dist/utilities/functions/indexBy.d.ts +1 -1
  218. package/dist/utilities/functions/mapValues.d.ts +1 -1
  219. package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
  220. package/dist/utilities/functions/replace.d.ts +1 -1
  221. package/dist/utilities/functions/retry.d.ts +1 -1
  222. package/dist/utilities/functions/throttle.d.ts +2 -2
  223. package/package.json +4 -4
  224. package/dist/index206.js +0 -4
  225. package/dist/index231.js +0 -29
  226. package/dist/index248.js +0 -4
  227. package/dist/index254.js +0 -25
  228. package/dist/index259.js +0 -283
  229. package/dist/index275.js +0 -5
  230. package/dist/index294.js +0 -226
package/dist/index110.js CHANGED
@@ -1,28 +1,29 @@
1
- import { defineComponent as oe, ref as j, computed as m, toRef as B, watch as ne, openBlock as n, createBlock as de, resolveDynamicComponent as ce, normalizeClass as r, unref as y, withCtx as ie, createElementBlock as d, toDisplayString as u, createCommentVNode as v, createElementVNode as o, renderSlot as p, createVNode as R, Fragment as w, renderList as T, createTextVNode as be, mergeProps as re } from "vue";
2
- import { add as ue } from "./index298.js";
3
- import { clamp as pe } from "./index205.js";
4
- import { isNil as M } from "./index129.js";
5
- import { useId as fe } from "./index8.js";
6
- import { useItemValue as me } from "./index278.js";
7
- import { when as ye } from "./index207.js";
8
- import J from "./index17.js";
1
+ import { defineComponent as ue, mergeModels as P, ref as Q, computed as k, toRef as A, useModel as U, watch as W, reactive as pe, openBlock as n, createBlock as G, resolveDynamicComponent as fe, normalizeClass as r, unref as i, withCtx as me, createElementBlock as d, toDisplayString as u, createCommentVNode as C, createElementVNode as o, renderSlot as p, isRef as ye, Fragment as T, renderList as V, createVNode as K, createTextVNode as he, mergeProps as ke } from "vue";
2
+ import { add as ve } from "./index289.js";
3
+ import { clamp as _e } from "./index204.js";
4
+ import { isNil as X } from "./index129.js";
5
+ import { useId as Ce } from "./index8.js";
6
+ import { useItemValue as ge } from "./index283.js";
7
+ import { when as we } from "./index233.js";
8
+ import Y from "./index17.js";
9
9
  /* empty css */
10
- import he from "./index31.js";
10
+ import Te from "./index31.js";
11
11
  /* empty css */
12
- import { useOptions as ke } from "./index227.js";
13
- const _e = {
12
+ import { useOptions as Ve } from "./index229.js";
13
+ import { hash as Z } from "./index214.js";
14
+ const $e = {
14
15
  key: 0,
15
16
  class: "sr-only"
16
- }, ve = { class: "bb-table-header-row" }, Ce = { class: "bb-table-header__content" }, ge = { class: "bb-table-check__label-text sr-only" }, we = {
17
+ }, Be = { class: "bb-table-header-row" }, Ne = { class: "bb-table-header__content" }, Se = { class: "bb-table-check__label-text sr-only" }, Ae = {
17
18
  key: 1,
18
19
  class: "bb-table-radio__label-text sr-only"
19
- }, Te = { class: "bb-table-header__content" }, Ve = { class: "bb-table-header__content sr-only" }, $e = { class: "bb-table-loading__row" }, Ae = ["colspan"], Be = { class: "bb-table-loading__text sr-only" }, Ne = {
20
+ }, De = { class: "bb-table-header__content" }, Le = { class: "bb-table-header__content sr-only" }, Ie = { class: "bb-table-loading__row" }, Re = ["colspan"], He = { class: "bb-table-loading__text sr-only" }, ze = {
20
21
  class: "bb-table-skeleton__container",
21
22
  role: "status"
22
- }, Se = { class: "bb-table-no-data__row" }, De = ["colspan"], Le = { class: "bb-table-no-data__text" }, Ie = ["onClick", "onContextmenu", "onDblclick"], Re = { class: "bb-table-check__label-text sr-only" }, xe = { class: "bb-table-radio__label-text sr-only" }, We = /* @__PURE__ */ oe({
23
+ }, Me = { class: "bb-table-no-data__row" }, xe = ["colspan"], Oe = { class: "bb-table-no-data__text" }, qe = ["onClick", "onContextmenu", "onDblclick"], Ee = { class: "bb-table-check__label-text sr-only" }, Fe = { class: "bb-table-radio__label-text sr-only" }, tl = /* @__PURE__ */ ue({
23
24
  __name: "BbTable",
24
- props: {
25
- accessibleLabel: { type: Function, default: (N) => ["Seleziona"].concat(N.map((S) => S.content)).join(" ") },
25
+ props: /* @__PURE__ */ P({
26
+ accessibleLabel: { type: Function, default: (g) => ["Seleziona"].concat(g.map((D) => D.content)).join(" ") },
26
27
  actions: { type: Boolean },
27
28
  actionsText: { default: "Azioni" },
28
29
  align: { default: "left" },
@@ -49,18 +50,24 @@ const _e = {
49
50
  noDataText: { default: "Non ci sono elementi da visualizzare" },
50
51
  readonly: {},
51
52
  selectable: { type: [Boolean, Function] },
52
- selectAll: { type: Boolean },
53
53
  selectAllLabel: { default: "Seleziona tutti gli elementi di questa pagina" },
54
54
  selectText: { default: "Seleziona un elemento" },
55
55
  tdClass: {},
56
56
  thClass: {}
57
- },
58
- emits: ["click:row", "contextmenu:row", "dblclick:row", "update:modelValue", "update:selectAll", "item:selected", "item:unselected"],
59
- setup(N, { emit: S }) {
60
- const { getItemValue: P } = me(), x = fe().id.value, t = N, k = S, V = j(), Q = t.accessibleLabel, U = t.loadingText, W = t.noDataText, z = t.selectText, G = m(() => t.selectable ? "fieldset" : "div"), K = j(!1), O = m(() => t.loading || K.value), H = m(() => [!!t.selectable, !!t.actions].reduce(
57
+ }, {
58
+ "select-all": { type: Boolean, default: !1 },
59
+ "select-allModifiers": {},
60
+ "unselected-items": {
61
+ default: () => []
62
+ },
63
+ "unselected-itemsModifiers": {}
64
+ }),
65
+ emits: /* @__PURE__ */ P(["click:row", "contextmenu:row", "dblclick:row", "update:modelValue", "update:selectAll", "item:selected", "item:unselected"], ["update:select-all", "update:unselected-items"]),
66
+ setup(g, { emit: D }) {
67
+ const { getItemValue: ee } = ge(), M = Ce().id.value, t = g, v = D, $ = Q(), le = t.accessibleLabel, te = t.loadingText, ae = t.noDataText, x = t.selectText, se = k(() => t.selectable ? "fieldset" : "div"), oe = Q(!1), O = k(() => t.loading || oe.value), q = k(() => [!!t.selectable, !!t.actions].reduce(
61
68
  (e, s) => e + +!!s,
62
69
  t.columns.length
63
- )), q = m(
70
+ )), E = k(
64
71
  () => t.columns.reduce(
65
72
  (e, s) => {
66
73
  const l = s.key.split(/\W+/g).join("_");
@@ -68,69 +75,69 @@ const _e = {
68
75
  },
69
76
  {}
70
77
  )
71
- ), { options: $, selectOption: X, unselectOption: Y, internalItems: E } = ke({
72
- emit: k,
78
+ ), { options: B, selectOption: ne, unselectOption: de, internalItems: F } = Ve({
79
+ emit: v,
73
80
  itemText: void 0,
74
81
  itemValue: t.itemValue,
75
82
  max: t.max,
76
- modelValue: B(t, "modelValue"),
83
+ modelValue: A(t, "modelValue"),
77
84
  multiple: t.multiple,
78
85
  resetQueryOnOptionSelected: !1,
79
86
  stash: !1,
80
- items: B(t, "items"),
81
- enforceCoherence: !0,
87
+ items: A(t, "items"),
88
+ enforceCoherence: !1,
82
89
  prefill: !0,
83
90
  modelValueDebounceTime: 0,
84
- dependencies: B(t, "dependencies"),
91
+ dependencies: A(t, "dependencies"),
85
92
  depsDebounceTime: t.depsDebounceTime,
86
93
  queryDebounceTime: 0,
87
- disabled: B(t, "disabled")
88
- }), Z = m(
94
+ disabled: A(t, "disabled")
95
+ }), ce = k(
89
96
  () => t.columns.map((e) => {
90
- const s = e.align || "left", { label: l, key: c } = e, g = `header:${q.value[e.key]}`;
97
+ const s = e.align || "left", { label: l, key: f } = e, R = `header:${E.value[e.key]}`;
91
98
  let a = [`bb-table-header--${s}`];
92
99
  return t.thClass && (a = a.concat(t.thClass)), e.thClass && (a = a.concat(e.thClass)), {
93
100
  align: s,
94
- key: c,
101
+ key: f,
95
102
  label: l,
96
- slotName: g,
103
+ slotName: R,
97
104
  classes: a
98
105
  };
99
106
  })
100
- ), C = m(() => $.value.map((e) => {
107
+ ), L = k(() => B.value.map((e) => {
101
108
  let s = !t.selectable;
102
109
  typeof t.selectable == "function" && (s = !t.selectable(e.item)), s = s || !!e.disabled;
103
110
  const l = t.columns.map((a) => {
104
- const i = q.value[a.key], h = a.align || "left", { label: A, key: L } = a;
105
- let f = P(e.item, a.key);
111
+ const c = E.value[a.key], h = a.align || "left", { label: S, key: H } = a;
112
+ let m = ee(e.item, a.key);
106
113
  a.formatter && // By default the formatter runs anyway
107
- (!M(f) || a.formatOnNull !== !1) && (f = a.formatter(f, a.key, e.item)), a.placeholder && M(f) && (f = a.placeholder);
114
+ (!X(m) || a.formatOnNull !== !1) && (m = a.formatter(m, a.key, e.item)), a.placeholder && X(m) && (m = a.placeholder);
108
115
  let b = [`bb-table-data__cell--${h}`];
109
116
  if (t.tdClass)
110
117
  if (typeof t.tdClass == "function") {
111
- let _ = t.tdClass(f, a.key, e.item);
118
+ let _ = t.tdClass(m, a.key, e.item);
112
119
  _ && (b = b.concat(_));
113
120
  } else b = b.concat(t.tdClass);
114
121
  if (a.tdClass)
115
122
  if (typeof a.tdClass == "function") {
116
- let _ = a.tdClass(f, a.key, e.item);
123
+ let _ = a.tdClass(m, a.key, e.item);
117
124
  _ && (b = b.concat(_));
118
125
  } else b = b.concat(a.tdClass);
119
126
  return {
120
127
  align: h,
121
128
  classes: b,
122
- content: f,
123
- key: L,
124
- label: A,
125
- slotName: i
129
+ content: m,
130
+ key: H,
131
+ label: S,
132
+ slotName: c
126
133
  };
127
134
  });
128
135
  return {
129
- accessibleLabel: Q(l, e.item),
136
+ accessibleLabel: le(l, e.item),
130
137
  cols: l,
131
- onRowClick: (a) => k("click:row", a, e, !!e.selected),
132
- onRowContextMenu: (a) => k("contextmenu:row", a, e, !!e.selected),
133
- onRowDblClick: (a) => k("dblclick:row", a, e, !!e.selected),
138
+ onRowClick: (a) => v("click:row", a, e, !!e.selected),
139
+ onRowContextMenu: (a) => v("contextmenu:row", a, e, !!e.selected),
140
+ onRowDblClick: (a) => v("dblclick:row", a, e, !!e.selected),
134
141
  item: e.item,
135
142
  text: e.text,
136
143
  valueHash: e.valueHash,
@@ -138,55 +145,55 @@ const _e = {
138
145
  selected: e.selected,
139
146
  disabled: s
140
147
  };
141
- })), ee = (e) => {
142
- let s = e, l = [];
143
- s && (l = C.value.reduce((c, g) => (!g.disabled && c.length < t.max && c.push(g.value), c), [])), k("update:modelValue", l), k("update:selectAll", e);
144
- }, D = m(
145
- () => !!(t.selectAll || C.value.length && C.value.filter((e) => !e.disabled).every((e) => e.selected))
146
- ), le = m(
147
- () => {
148
- var e;
149
- return C.value.some((s) => !s.selected) && !!((e = t.modelValue) != null && e.length);
150
- }
151
- ), F = (e) => {
152
- e.selected ? (Y(e), k("item:unselected", e.value)) : (X(e), k("item:selected", e.value));
153
- }, te = ye(
148
+ }));
149
+ let y = U(g, "select-all");
150
+ W(y, () => {
151
+ w.clear(), N.value = [], v("update:modelValue", []);
152
+ });
153
+ const j = k(() => {
154
+ var e;
155
+ return (e = t.modelValue) != null && e.length ? L.value.some((s) => !s.selected) : !!(y.value && w.size);
156
+ }), w = pe(/* @__PURE__ */ new Set()), N = U(g, "unselected-items"), J = (e) => {
157
+ I(e) ? (de(e), v("item:unselected", e.value), w.add(e.valueHash), N.value.push(e.item)) : (y.value || ne(e), v("item:selected", e.value), w.delete(e.valueHash), N.value = N.value.filter(
158
+ (s) => Z(s) !== Z(e.item)
159
+ ));
160
+ }, I = (e) => w.has(e.valueHash) ? !1 : e.selected || y.value, ie = we(
154
161
  (e) => typeof e != "string",
155
162
  JSON.stringify
156
- ), ae = m(() => [].concat(t.modelValue).map((e) => {
157
- const s = te(e);
163
+ ), be = k(() => [].concat(t.modelValue).map((e) => {
164
+ const s = ie(e);
158
165
  return {
159
166
  disabled: t.disabled,
160
167
  name: t.name,
161
168
  type: "hidden",
162
169
  value: s
163
170
  };
164
- })), se = m(() => pe($.value.length, 4, 10));
165
- return ne(
166
- () => C.value,
171
+ })), re = k(() => _e(B.value.length, 4, 10));
172
+ return W(
173
+ () => L.value,
167
174
  () => {
168
175
  var e;
169
- if (t.fixedColumns.length && t.items && V.value) {
176
+ if (t.fixedColumns.length && t.items && $.value) {
170
177
  const s = Array.from(
171
- V.value.querySelectorAll("thead th")
172
- ), l = t.fixedColumns.reduce((a, i) => {
173
- const h = typeof i == "number" ? i : i.index, A = typeof i == "number" ? "left" : i.position, L = s[h].getBoundingClientRect(), f = Math.floor(L.width), b = a.filter((I) => I.position === A).map((I) => I.width).reduce(ue, 0), _ = {
178
+ $.value.querySelectorAll("thead th")
179
+ ), l = t.fixedColumns.reduce((a, c) => {
180
+ const h = typeof c == "number" ? c : c.index, S = typeof c == "number" ? "left" : c.position, H = s[h].getBoundingClientRect(), m = Math.floor(H.width), b = a.filter((z) => z.position === S).map((z) => z.width).reduce(ve, 0), _ = {
174
181
  index: h,
175
- position: A,
176
- width: f,
182
+ position: S,
183
+ width: m,
177
184
  offset: b
178
185
  };
179
186
  return a.push(_), a;
180
187
  }, []);
181
- Array.from((e = V.value) == null ? void 0 : e.querySelectorAll("tr")).map(
188
+ Array.from((e = $.value) == null ? void 0 : e.querySelectorAll("tr")).map(
182
189
  (a) => Array.from(
183
190
  a.querySelectorAll(
184
- l.map((i) => `:scope > :nth-child(${i.index + 1})`).join(", ")
191
+ l.map((c) => `:scope > :nth-child(${c.index + 1})`).join(", ")
185
192
  )
186
193
  )
187
194
  ).forEach((a) => {
188
- a.forEach((i, h) => {
189
- i.style.position = "sticky", l[h].position === "left" ? i.style.left = `${l[h].offset}px` : i.style.right = `${l[h].offset}px`;
195
+ a.forEach((c, h) => {
196
+ c.style.position = "sticky", l[h].position === "left" ? c.style.left = `${l[h].offset}px` : c.style.right = `${l[h].offset}px`;
190
197
  });
191
198
  });
192
199
  }
@@ -194,9 +201,9 @@ const _e = {
194
201
  {
195
202
  flush: "post"
196
203
  }
197
- ), (e, s) => (n(), de(ce(G.value), {
204
+ ), (e, s) => (n(), G(fe(se.value), {
198
205
  ref_key: "container",
199
- ref: V,
206
+ ref: $,
200
207
  class: r({
201
208
  "bb-table": !0,
202
209
  [`bb-table--align-${e.align}`]: !0,
@@ -204,12 +211,12 @@ const _e = {
204
211
  "bb-table--fixed": e.fixed,
205
212
  "bb-table--fixed-header": e.fixedHeaders,
206
213
  "bb-table--loading": O.value,
207
- "bb-table--empty": !y($).length,
214
+ "bb-table--empty": !i(B).length,
208
215
  "bb-table--selectable": e.selectable
209
216
  })
210
217
  }, {
211
- default: ie(() => [
212
- e.selectable ? (n(), d("legend", _e, u(e.legend), 1)) : v("", !0),
218
+ default: me(() => [
219
+ e.selectable ? (n(), d("legend", $e, u(e.legend), 1)) : C("", !0),
213
220
  o("table", null, [
214
221
  e.caption ? (n(), d("caption", {
215
222
  key: 0,
@@ -217,10 +224,10 @@ const _e = {
217
224
  "bb-table-caption": !0,
218
225
  "sr-only": !e.displayCaption
219
226
  })
220
- }, u(e.caption), 3)) : v("", !0),
227
+ }, u(e.caption), 3)) : C("", !0),
221
228
  o("thead", null, [
222
229
  p(e.$slots, "thead", {}, () => [
223
- o("tr", ve, [
230
+ o("tr", Be, [
224
231
  e.selectable ? (n(), d("th", {
225
232
  key: 0,
226
233
  class: r(["bb-table-header bb-table-header--select", e.thClass]),
@@ -228,31 +235,32 @@ const _e = {
228
235
  }, [
229
236
  p(e.$slots, "header:select", {
230
237
  multiple: e.multiple,
231
- selectAll: !!e.selectAll,
232
- text: y(z)
238
+ selectAll: !!i(y),
239
+ text: i(x)
233
240
  }, () => [
234
- o("span", Ce, [
241
+ o("span", Ne, [
235
242
  e.allowSelectAll && e.multiple ? (n(), d("label", {
236
243
  key: 0,
237
244
  class: r(["bb-table-check__label", {
238
245
  "bb-table-check__label--disabled": e.disabled
239
246
  }])
240
247
  }, [
241
- R(J, {
248
+ (n(), G(Y, {
249
+ key: j.value.toString(),
250
+ modelValue: i(y),
251
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => ye(y) ? y.value = l : y = l),
242
252
  class: "bb-table-check",
243
253
  disabled: e.disabled,
244
- indeterminate: le.value,
245
- "model-value": D.value,
254
+ indeterminate: j.value,
246
255
  name: `select_all_${e.name || ""}`,
247
- readonly: e.readonly,
248
- "onUpdate:modelValue": ee
249
- }, null, 8, ["disabled", "indeterminate", "model-value", "name", "readonly"]),
250
- o("span", ge, u(e.selectAllLabel), 1)
251
- ], 2)) : e.multiple ? v("", !0) : (n(), d("span", we, u(y(z)), 1))
256
+ readonly: e.readonly
257
+ }, null, 8, ["modelValue", "disabled", "indeterminate", "name", "readonly"])),
258
+ o("span", Se, u(e.selectAllLabel), 1)
259
+ ], 2)) : e.multiple ? C("", !0) : (n(), d("span", Ae, u(i(x)), 1))
252
260
  ])
253
261
  ])
254
- ], 2)) : v("", !0),
255
- (n(!0), d(w, null, T(Z.value, (l) => (n(), d("th", {
262
+ ], 2)) : C("", !0),
263
+ (n(!0), d(T, null, V(ce.value, (l) => (n(), d("th", {
256
264
  key: l.key,
257
265
  class: r(["bb-table-header", l.classes]),
258
266
  scope: "col"
@@ -260,10 +268,10 @@ const _e = {
260
268
  p(e.$slots, l.slotName, {
261
269
  classes: l.classes,
262
270
  item: void 0,
263
- items: y(E),
271
+ items: i(F),
264
272
  label: l.label
265
273
  }, () => [
266
- o("span", Te, u(l.label), 1)
274
+ o("span", De, u(l.label), 1)
267
275
  ])
268
276
  ], 2))), 128)),
269
277
  e.actions ? (n(), d("th", {
@@ -272,28 +280,28 @@ const _e = {
272
280
  scope: "col"
273
281
  }, [
274
282
  p(e.$slots, "header:actions", { text: e.actionsText }, () => [
275
- o("span", Ve, u(e.actionsText), 1)
283
+ o("span", Le, u(e.actionsText), 1)
276
284
  ])
277
- ], 2)) : v("", !0)
285
+ ], 2)) : C("", !0)
278
286
  ])
279
287
  ])
280
288
  ]),
281
289
  o("tbody", null, [
282
290
  O.value ? p(e.$slots, "loading", {
283
291
  key: 0,
284
- items: y(E)
292
+ items: i(F)
285
293
  }, () => [
286
- o("tr", $e, [
294
+ o("tr", Ie, [
287
295
  o("td", {
288
296
  class: "bb-table-loading__cell",
289
- colspan: H.value
297
+ colspan: q.value
290
298
  }, [
291
- o("span", Be, u(y(U)), 1),
292
- o("div", Ne, [
293
- (n(!0), d(w, null, T(se.value, (l) => (n(), d("div", {
299
+ o("span", He, u(i(te)), 1),
300
+ o("div", ze, [
301
+ (n(!0), d(T, null, V(re.value, (l) => (n(), d("div", {
294
302
  key: l,
295
303
  class: "bb-table-skeleton-item"
296
- }, s[0] || (s[0] = [
304
+ }, s[1] || (s[1] = [
297
305
  o("div", { class: "bb-table-skeleton-item__avatar-container" }, [
298
306
  o("div", { class: "bb-table-skeleton-item__avatar" })
299
307
  ], -1),
@@ -303,10 +311,10 @@ const _e = {
303
311
  ], -1)
304
312
  ])))), 128))
305
313
  ])
306
- ], 8, Ae)
314
+ ], 8, Re)
307
315
  ])
308
- ]) : y($).length ? p(e.$slots, "tbody", { key: 2 }, () => [
309
- (n(!0), d(w, null, T(C.value, (l) => (n(), d("tr", {
316
+ ]) : i(B).length ? p(e.$slots, "tbody", { key: 2 }, () => [
317
+ (n(!0), d(T, null, V(L.value, (l) => (n(), d("tr", {
310
318
  key: l.valueHash,
311
319
  class: "bb-table-data__row",
312
320
  onClick: l.onRowClick,
@@ -318,9 +326,9 @@ const _e = {
318
326
  class: r(["bb-table-data__cell bb-table-data__cell--select", e.tdClass])
319
327
  }, [
320
328
  p(e.$slots, "select", {
321
- checked: !!(l.selected || D.value),
329
+ checked: I(l),
322
330
  disabled: !!l.disabled,
323
- inputName: y(x),
331
+ inputName: i(M),
324
332
  item: l.item,
325
333
  readonly: !!e.readonly,
326
334
  value: l.value
@@ -331,44 +339,44 @@ const _e = {
331
339
  "bb-table-check__label--disabled": l.disabled
332
340
  }])
333
341
  }, [
334
- R(J, {
335
- checked: l.selected || D.value,
342
+ K(Y, {
343
+ checked: I(l),
336
344
  class: "bb-table-check",
337
345
  disabled: l.disabled,
338
346
  readonly: e.readonly,
339
- onChange: () => F(l)
347
+ onChange: () => J(l)
340
348
  }, null, 8, ["checked", "disabled", "readonly", "onChange"]),
341
- o("span", Re, u(l.accessibleLabel), 1)
349
+ o("span", Ee, u(l.accessibleLabel), 1)
342
350
  ], 2)) : (n(), d("label", {
343
351
  key: 1,
344
352
  class: r(["bb-table-radio__label", {
345
353
  "bb-table-radio__label--disabled": l.disabled
346
354
  }])
347
355
  }, [
348
- R(he, {
356
+ K(Te, {
349
357
  checked: l.selected,
350
358
  class: "bb-table-radio",
351
359
  disabled: l.disabled,
352
- name: y(x),
360
+ name: i(M),
353
361
  readonly: e.readonly,
354
362
  value: l.value,
355
- onChange: () => F(l)
363
+ onChange: () => J(l)
356
364
  }, null, 8, ["checked", "disabled", "name", "readonly", "value", "onChange"]),
357
- o("span", xe, u(l.accessibleLabel), 1)
365
+ o("span", Fe, u(l.accessibleLabel), 1)
358
366
  ], 2))
359
367
  ])
360
- ], 2)) : v("", !0),
361
- (n(!0), d(w, null, T(l.cols, (c) => (n(), d("td", {
362
- key: c.key,
363
- class: r(["bb-table-data__cell", c.classes])
368
+ ], 2)) : C("", !0),
369
+ (n(!0), d(T, null, V(l.cols, (f) => (n(), d("td", {
370
+ key: f.key,
371
+ class: r(["bb-table-data__cell", f.classes])
364
372
  }, [
365
- p(e.$slots, c.slotName, {
366
- classes: c.classes,
367
- content: c.content,
373
+ p(e.$slots, f.slotName, {
374
+ classes: f.classes,
375
+ content: f.content,
368
376
  item: l.item,
369
377
  value: l.value
370
378
  }, () => [
371
- be(u(c.content), 1)
379
+ he(u(f.content), 1)
372
380
  ])
373
381
  ], 2))), 128)),
374
382
  e.actions ? (n(), d("td", {
@@ -379,16 +387,16 @@ const _e = {
379
387
  item: l.item,
380
388
  value: l.value
381
389
  })
382
- ], 2)) : v("", !0)
383
- ], 40, Ie))), 128))
390
+ ], 2)) : C("", !0)
391
+ ], 40, qe))), 128))
384
392
  ]) : p(e.$slots, "no-data", { key: 1 }, () => [
385
- o("tr", Se, [
393
+ o("tr", Me, [
386
394
  o("td", {
387
395
  class: "bb-table-no-data__cell",
388
- colspan: H.value
396
+ colspan: q.value
389
397
  }, [
390
- o("span", Le, u(y(W)), 1)
391
- ], 8, De)
398
+ o("span", Oe, u(i(ae)), 1)
399
+ ], 8, xe)
392
400
  ])
393
401
  ])
394
402
  ]),
@@ -396,7 +404,7 @@ const _e = {
396
404
  p(e.$slots, "tfoot")
397
405
  ])
398
406
  ]),
399
- (n(!0), d(w, null, T(ae.value, (l) => (n(), d("input", re({
407
+ (n(!0), d(T, null, V(be.value, (l) => (n(), d("input", ke({
400
408
  key: l.value,
401
409
  ref_for: !0
402
410
  }, l), null, 16))), 128))
@@ -406,5 +414,5 @@ const _e = {
406
414
  }
407
415
  });
408
416
  export {
409
- We as default
417
+ tl as default
410
418
  };
package/dist/index118.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, openBlock as e, createBlock as o, 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 { state as k, useToast as b } from "./index11.js";
3
- import C from "./index224.js";
4
- import B from "./index300.js";
3
+ import C from "./index227.js";
4
+ import B from "./index290.js";
5
5
  const V = /* @__PURE__ */ l({
6
6
  __name: "BbToast",
7
7
  props: {
package/dist/index120.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as N, ref as a, watch as V, computed as H, openBlock as B, createElementBlock as z, mergeProps as I, createElementVNode as p, renderSlot as C, normalizeProps as R, guardReactiveProps as S, unref as c, createVNode as U, withCtx as E, createBlock as W, createCommentVNode as j } from "vue";
2
- import { useFloating as q, arrow as A } from "./index209.js";
2
+ import { useFloating as q, arrow as A } from "./index237.js";
3
3
  import { useId as G } from "./index8.js";
4
4
  import { wait as _ } from "./index131.js";
5
5
  import J from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as m } from "./index239.js";
8
- import { waitFor as K } from "./index219.js";
9
- import Q from "./index255.js";
7
+ import { throttle as m } from "./index223.js";
8
+ import { waitFor as K } from "./index225.js";
9
+ import Q from "./index253.js";
10
10
  /* empty css */
11
- import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index225.js";
11
+ import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index241.js";
12
12
  const pe = /* @__PURE__ */ N({
13
13
  __name: "BbTooltip",
14
14
  props: {
package/dist/index122.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock 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 "./index299.js";
2
+ import { flattenTree as T } from "./index295.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/index126.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, openBlock as h, createElementBlock as $, mergeProps as g } from "vue";
2
- import { isCssColor as I } from "./index206.js";
2
+ import { isCssColor as I } from "./index232.js";
3
3
  const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index127.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index239.js";
2
+ import { throttle as g } from "./index223.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index128.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index206.js";
2
+ import { isCssColor as u } from "./index232.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index13.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as k, getCurrentInstance as u, resolveComponent as p, computed as d, openBlock as v, createBlock as h, resolveDynamicComponent as C, unref as x, mergeProps as S, withCtx as L, renderSlot as B, createTextVNode as N, toDisplayString as $ } from "vue";
2
2
  import { _config as n } from "./index4.js";
3
- import { useLogger as m } from "./index233.js";
3
+ import { useLogger as m } from "./index216.js";
4
4
  const _ = /* @__PURE__ */ k({
5
5
  __name: "BaseButton",
6
6
  props: {
package/dist/index130.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index205.js";
1
+ import { clamp as o } from "./index204.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/index132.js CHANGED
@@ -1,12 +1,12 @@
1
- import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as M, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isClient as J, isObject as K } from "./index204.js";
2
- import { createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as pe, throttleFilter as me } from "./index204.js";
1
+ import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as M, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isObject as J, isClient as K } from "./index228.js";
2
+ import { createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as pe, throttleFilter as me } from "./index228.js";
3
3
  import { computed as S, watch as z, ref as w, reactive as k, getCurrentInstance as U, onMounted as Z, watchEffect as ee } from "vue";
4
4
  function L(l) {
5
5
  var o;
6
6
  const n = O(l);
7
7
  return (o = n == null ? void 0 : n.$el) != null ? o : n;
8
8
  }
9
- const W = J ? window : void 0;
9
+ const W = K ? window : void 0;
10
10
  function P(...l) {
11
11
  let o, n, t, e;
12
12
  if (typeof l[0] == "string" || Array.isArray(l[0]) ? ([n, t, e] = l, o = W) : [o, n, t, e] = l, !o)
@@ -19,7 +19,7 @@ function P(...l) {
19
19
  ([i, u]) => {
20
20
  if (a(), !i)
21
21
  return;
22
- const d = K(u) ? { ...u } : u;
22
+ const d = J(u) ? { ...u } : u;
23
23
  f.push(
24
24
  ...n.flatMap((b) => t.map((m) => v(i, b, m, d)))
25
25
  );
@@ -319,8 +319,8 @@ export {
319
319
  de as debounceFilter,
320
320
  W as defaultWindow,
321
321
  pe as getLifeCycleTarget,
322
- J as isClient,
323
- K as isObject,
322
+ K as isClient,
323
+ J as isObject,
324
324
  M as noop,
325
325
  $ as notNullish,
326
326
  me as throttleFilter,