bitboss-ui 2.0.117 → 2.0.118

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 (175) hide show
  1. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +15 -3
  2. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +29 -367
  3. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +76 -89
  4. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +75 -89
  5. package/dist/components/BbRows/BbRows.vue.d.ts +70 -85
  6. package/dist/components/BbSelect/BbSelect.vue.d.ts +1 -10
  7. package/dist/components/BbTable/BbTable.vue.d.ts +63 -91
  8. package/dist/components/BbTable/types.d.ts +46 -27
  9. package/dist/components/ListBox.vue.d.ts +40 -44
  10. package/dist/index100.js +91 -82
  11. package/dist/index101.js +7 -16
  12. package/dist/index111.js +235 -211
  13. package/dist/index119.js +2 -2
  14. package/dist/index121.js +6 -6
  15. package/dist/index123.js +1 -1
  16. package/dist/index125.js +1 -1
  17. package/dist/index127.js +1 -1
  18. package/dist/index128.js +1 -1
  19. package/dist/index129.js +1 -1
  20. package/dist/index13.js +2 -2
  21. package/dist/index131.js +1 -1
  22. package/dist/index132.js +2 -2
  23. package/dist/index133.js +2 -2
  24. package/dist/index15.js +5 -5
  25. package/dist/index17.js +3 -3
  26. package/dist/index19.js +8 -8
  27. package/dist/index205.js +2 -115
  28. package/dist/index206.js +126 -2
  29. package/dist/index207.js +5 -65
  30. package/dist/index208.js +127 -0
  31. package/dist/index209.js +16 -13
  32. package/dist/index21.js +16 -16
  33. package/dist/index210.js +15 -19
  34. package/dist/index211.js +19 -4
  35. package/dist/index212.js +15 -13
  36. package/dist/index213.js +2 -3
  37. package/dist/index214.js +2 -126
  38. package/dist/index215.js +41 -5
  39. package/dist/index216.js +13 -125
  40. package/dist/index217.js +19 -15
  41. package/dist/index218.js +6 -16
  42. package/dist/index219.js +15 -19
  43. package/dist/index220.js +65 -15
  44. package/dist/index222.js +13 -2
  45. package/dist/index223.js +5 -41
  46. package/dist/index224.js +2 -6
  47. package/dist/index225.js +369 -15
  48. package/dist/index226.js +3 -5
  49. package/dist/index227.js +7 -2
  50. package/dist/index228.js +7 -368
  51. package/dist/index229.js +19 -86
  52. package/dist/index23.js +19 -19
  53. package/dist/index230.js +29 -0
  54. package/dist/index231.js +3 -25
  55. package/dist/index232.js +250 -17
  56. package/dist/index233.js +50 -49
  57. package/dist/index234.js +44 -15
  58. package/dist/index235.js +5 -3
  59. package/dist/index236.js +60 -12
  60. package/dist/index237.js +3 -16
  61. package/dist/index238.js +115 -2
  62. package/dist/index239.js +4 -4
  63. package/dist/index240.js +2 -2
  64. package/dist/index241.js +4 -19
  65. package/dist/index242.js +2 -27
  66. package/dist/index243.js +84 -6
  67. package/dist/index245.js +24 -51
  68. package/dist/index246.js +17 -44
  69. package/dist/index247.js +51 -5
  70. package/dist/index248.js +15 -60
  71. package/dist/index249.js +12 -3
  72. package/dist/index25.js +7 -7
  73. package/dist/index250.js +16 -7
  74. package/dist/index253.js +18 -2
  75. package/dist/index254.js +105 -17
  76. package/dist/{index257.js → index256.js} +1 -1
  77. package/dist/index258.js +14 -0
  78. package/dist/index259.js +214 -12
  79. package/dist/index262.js +9 -6
  80. package/dist/index263.js +23 -16
  81. package/dist/index264.js +89 -8
  82. package/dist/index266.js +6 -90
  83. package/dist/index267.js +18 -0
  84. package/dist/index269.js +9 -224
  85. package/dist/index27.js +1 -1
  86. package/dist/index270.js +8 -3
  87. package/dist/index271.js +283 -0
  88. package/dist/index272.js +6 -7
  89. package/dist/index273.js +2 -176
  90. package/dist/index274.js +2 -7
  91. package/dist/index275.js +2 -11
  92. package/dist/index276.js +2 -281
  93. package/dist/index277.js +2 -6
  94. package/dist/index278.js +2 -2
  95. package/dist/index279.js +126 -2
  96. package/dist/index280.js +431 -2
  97. package/dist/index281.js +176 -2
  98. package/dist/index282.js +2 -2
  99. package/dist/index283.js +3 -2
  100. package/dist/index285.js +5 -429
  101. package/dist/index286.js +21 -1
  102. package/dist/index288.js +9 -0
  103. package/dist/index289.js +11 -3
  104. package/dist/index29.js +3 -3
  105. package/dist/index290.js +87 -15
  106. package/dist/index291.js +199 -8
  107. package/dist/index292.js +431 -23
  108. package/dist/index293.js +126 -3
  109. package/dist/index294.js +219 -431
  110. package/dist/index295.js +2 -127
  111. package/dist/index296.js +2 -200
  112. package/dist/index297.js +2 -2
  113. package/dist/index298.js +2 -2
  114. package/dist/index299.js +1 -1
  115. package/dist/index300.js +1 -1
  116. package/dist/index301.js +28 -2
  117. package/dist/index302.js +21 -1
  118. package/dist/index304.js +6 -0
  119. package/dist/index305.js +3 -8
  120. package/dist/index306.js +15 -87
  121. package/dist/index307.js +1 -1
  122. package/dist/index308.js +1 -1
  123. package/dist/index309.js +2 -214
  124. package/dist/index31.js +2 -2
  125. package/dist/index311.js +5 -3
  126. package/dist/index312.js +67 -3
  127. package/dist/index313.js +3 -58
  128. package/dist/index314.js +5 -5
  129. package/dist/index315.js +8 -67
  130. package/dist/index316.js +3 -7
  131. package/dist/index317.js +3 -19
  132. package/dist/index318.js +58 -3
  133. package/dist/index319.js +3 -32
  134. package/dist/index320.js +28 -21
  135. package/dist/index321.js +25 -52
  136. package/dist/index322.js +7 -53
  137. package/dist/index323.js +6 -4
  138. package/dist/index324.js +18 -7
  139. package/dist/index325.js +53 -7
  140. package/dist/index326.js +53 -4
  141. package/dist/index328.js +480 -2
  142. package/dist/index329.js +4 -0
  143. package/dist/index33.js +8 -8
  144. package/dist/index35.js +4 -4
  145. package/dist/index37.js +176 -175
  146. package/dist/index39.js +3 -3
  147. package/dist/index41.js +2 -2
  148. package/dist/index43.js +8 -8
  149. package/dist/index45.js +8 -8
  150. package/dist/index47.js +2 -2
  151. package/dist/index49.js +2 -2
  152. package/dist/index53.js +1 -1
  153. package/dist/index55.js +1 -1
  154. package/dist/index57.js +1 -1
  155. package/dist/index61.js +1 -1
  156. package/dist/index75.js +37 -35
  157. package/dist/index77.js +54 -50
  158. package/dist/index79.js +2 -2
  159. package/dist/index81.js +1 -1
  160. package/dist/index84.js +4 -4
  161. package/dist/index86.js +1 -1
  162. package/dist/index88.js +5 -5
  163. package/dist/index90.js +1 -1
  164. package/dist/types/ColumnName.d.ts +4 -0
  165. package/dist/types/Option.d.ts +2 -2
  166. package/dist/types/PrefixWith.d.ts +1 -0
  167. package/package.json +1 -1
  168. package/dist/index221.js +0 -4
  169. package/dist/index244.js +0 -252
  170. package/dist/index255.js +0 -108
  171. package/dist/index265.js +0 -25
  172. package/dist/index284.js +0 -128
  173. package/dist/index287.js +0 -24
  174. package/dist/index303.js +0 -24
  175. package/dist/index331.js +0 -482
package/dist/index45.js CHANGED
@@ -3,17 +3,17 @@ import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z,
3
3
  /* empty css */
4
4
  import ae from "./index128.js";
5
5
  /* empty css */
6
- import { last as le } from "./index222.js";
7
- import { useBaseOptions as ne } from "./index233.js";
8
- import { useIndexById as re } from "./index232.js";
9
- import ie from "./index255.js";
6
+ import { last as le } from "./index214.js";
7
+ import { useBaseOptions as ne } from "./index247.js";
8
+ import { useIndexById as re } from "./index246.js";
9
+ import ie from "./index254.js";
10
10
  /* empty css */
11
- import ue from "./index257.js";
11
+ import ue from "./index256.js";
12
12
  /* empty css */
13
- import se from "./index207.js";
13
+ import se from "./index220.js";
14
14
  /* empty css */
15
- import de from "./index209.js";
16
- import { isEmpty as pe } from "./index227.js";
15
+ import de from "./index222.js";
16
+ import { isEmpty as pe } from "./index224.js";
17
17
  const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Le = /* @__PURE__ */ Q({
18
18
  __name: "BaseTag",
19
19
  props: {
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, openBlock as $, createBlock as k, normalizeClass as C, withCtx as r, renderSlot as t, createVNode as i, unref as T, createElementVNode as v, mergeProps as x } from "vue";
2
- import E from "./index209.js";
3
- import G from "./index207.js";
2
+ import E from "./index222.js";
3
+ import G from "./index220.js";
4
4
  /* empty css */
5
5
  import M from "./index128.js";
6
6
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m, computed as b, openBlock as c, createElementBlock as f, Fragment as y, createVNode as r, normalizeClass as B, withCtx as n, renderSlot as l, unref as g, createElementVNode as p, mergeProps as h } from "vue";
2
- import $ from "./index207.js";
2
+ import $ from "./index220.js";
3
3
  /* empty css */
4
- import k from "./index209.js";
4
+ import k from "./index222.js";
5
5
  import { isNotNil as C } from "./index134.js";
6
6
  const V = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], M = /* @__PURE__ */ m({
7
7
  __name: "BaseTextInput",
package/dist/index53.js CHANGED
@@ -3,7 +3,7 @@ import B from "./index126.js";
3
3
  /* empty css */
4
4
  import L from "./index127.js";
5
5
  /* empty css */
6
- import { useLocale as g } from "./index212.js";
6
+ import { useLocale as g } from "./index216.js";
7
7
  const $ = {
8
8
  class: "bb-alert__inner-container",
9
9
  role: "alert"
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, computed as z, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
2
- import { isCssColor as y } from "./index238.js";
2
+ import { isCssColor as y } from "./index240.js";
3
3
  import { wait as C } from "./index130.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, useSlots as d, computed as n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as r } from "./index238.js";
2
+ import { isCssColor as r } from "./index240.js";
3
3
  import { isNil as B } from "./index252.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
package/dist/index61.js CHANGED
@@ -9,7 +9,7 @@ import T from "./index129.js";
9
9
  /* empty css */
10
10
  import { pickBy as $ } from "./index260.js";
11
11
  import { noop as A } from "./index261.js";
12
- import { useLocale as W } from "./index212.js";
12
+ import { useLocale as W } from "./index216.js";
13
13
  const w = {
14
14
  key: 2,
15
15
  class: "bb-button__loading-label sr-only"
package/dist/index75.js CHANGED
@@ -1,14 +1,14 @@
1
- import { defineComponent as X, computed as A, ref as y, openBlock as $, createElementBlock as D, mergeProps as B, createElementVNode as H, renderSlot as g, normalizeProps as Y, guardReactiveProps as Z, unref as h, createVNode as C, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as N, toDisplayString as te } from "vue";
2
- import { findRightIndex as I } from "./index264.js";
1
+ import { defineComponent as X, computed as F, ref as g, openBlock as $, createElementBlock as D, mergeProps as A, createElementVNode as H, renderSlot as y, normalizeProps as Y, guardReactiveProps as Z, unref as h, createVNode as B, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as j, toDisplayString as te } from "vue";
2
+ import { findRightIndex as I } from "./index262.js";
3
3
  import { useId as ne } from "./index8.js";
4
4
  import { wait as oe } from "./index130.js";
5
5
  import { useIntersectionObserver as ae } from "./index132.js";
6
6
  import le from "./index13.js";
7
7
  /* empty css */
8
- import V from "./index265.js";
9
- import se from "./index266.js";
8
+ import N from "./index263.js";
9
+ import se from "./index264.js";
10
10
  /* empty css */
11
- import j from "./index127.js";
11
+ import V from "./index127.js";
12
12
  /* empty css */
13
13
  const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
14
14
  __name: "BbDropdown",
@@ -28,25 +28,25 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
28
28
  width: { default: 200 }
29
29
  },
30
30
  setup(z) {
31
- const r = z, u = r.id ?? `bb_${ne().id.value}`, m = A(() => {
31
+ const r = z, u = r.id ?? `bb_${ne().id.value}`, m = F(() => {
32
32
  let e = r.items.findIndex((t) => !t.disabled), o = I(
33
33
  r.items,
34
34
  (t) => !t.disabled
35
35
  );
36
36
  return r.items.map((t, n) => {
37
- const i = `${u}-item-${t.key}`, { onClick: q, ...F } = t, Q = async () => {
37
+ const i = `${u}-item-${t.key}`, { onClick: q, ...C } = t, J = async () => {
38
38
  await b();
39
39
  const s = document.querySelector(`#${u}`);
40
40
  if (s) s instanceof HTMLElement && s.focus();
41
41
  else return;
42
42
  q && q();
43
- }, W = (s) => {
43
+ }, Q = (s) => {
44
44
  if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
45
45
  if (!a.value) return;
46
46
  if (s.key === "ArrowDown") {
47
47
  if (s.preventDefault(), a.value && n !== o) {
48
48
  const d = a.value.querySelector(
49
- V.map((w) => `#${i} ~ ${w}`).join(",")
49
+ N.map((w) => `#${i} ~ ${w}`).join(",")
50
50
  );
51
51
  d && d instanceof HTMLElement && d.focus();
52
52
  }
@@ -59,7 +59,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
59
59
  }
60
60
  } else if (s.key === "Tab") {
61
61
  if (n === o && !s.shiftKey) {
62
- const d = V.join(","), w = Array.from(
62
+ const d = N.join(","), w = Array.from(
63
63
  document.querySelectorAll(d)
64
64
  ), k = w.findIndex(
65
65
  (T) => T.id === u
@@ -75,14 +75,16 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
75
75
  }
76
76
  };
77
77
  return {
78
- ...F,
79
- disabled: F.disabled || r.disabled,
78
+ ...C,
79
+ original: t,
80
+ key: t.key.split(/\W+/g).join("_").toLowerCase(),
81
+ disabled: C.disabled || r.disabled,
80
82
  id: i,
81
- onClick: Q,
82
- onKeydown: W
83
+ onClick: J,
84
+ onKeydown: Q
83
85
  };
84
86
  });
85
- }), v = y(), a = y();
87
+ }), v = g(), a = g();
86
88
  ae(
87
89
  v,
88
90
  ([{ intersectionRatio: e }]) => {
@@ -90,7 +92,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
90
92
  },
91
93
  { threshold: [0, 1] }
92
94
  );
93
- const c = y(!1), l = y(!1), p = y(!1), f = y(!0), R = () => {
95
+ const c = g(!1), l = g(!1), p = g(!1), f = g(!0), R = () => {
94
96
  c.value || p.value || (l.value ? b() : L());
95
97
  }, U = async (e) => {
96
98
  let o = r.items.findIndex((n) => !n.disabled), t = I(
@@ -134,23 +136,23 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
134
136
  }
135
137
  b();
136
138
  }
137
- }, G = y(!1), L = async () => {
138
- G.value = !0, await oe(50), l.value = !0, document.addEventListener("click", M, { passive: !0 }), document.addEventListener("focusin", S, { passive: !0 }), document.addEventListener("keydown", _, { passive: !0 });
139
+ }, W = g(!1), L = async () => {
140
+ W.value = !0, await oe(50), l.value = !0, document.addEventListener("click", M, { passive: !0 }), document.addEventListener("focusin", S, { passive: !0 }), document.addEventListener("keydown", _, { passive: !0 });
139
141
  }, b = async () => {
140
142
  l.value = !1, document.removeEventListener("click", M), document.removeEventListener("focusin", S), document.removeEventListener("keydown", _);
141
- }, J = A(() => ({
143
+ }, G = F(() => ({
142
144
  class: {
143
145
  "bb-dropdown--block": r.block,
144
146
  [`bb-dropdown--${r.theme}`]: r.theme
145
147
  }
146
148
  }));
147
- return (e, o) => ($(), D("span", B({ class: "bb-dropdown" }, J.value), [
149
+ return (e, o) => ($(), D("span", A({ class: "bb-dropdown" }, G.value), [
148
150
  H("span", {
149
151
  ref_key: "wrapper",
150
152
  ref: v,
151
153
  class: "bb-dropdown__wrapper"
152
154
  }, [
153
- g(e.$slots, "activator", Y(Z({
155
+ y(e.$slots, "activator", Y(Z({
154
156
  props: {
155
157
  "aria-expanded": l.value,
156
158
  "aria-controls": `menu_${h(u)}`,
@@ -167,7 +169,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
167
169
  placement: e.placement
168
170
  })))
169
171
  ], 512),
170
- C(se, {
172
+ B(se, {
171
173
  "arrow-padding": e.arrowPadding,
172
174
  "base-class": "bb-dropdown",
173
175
  "container-attributes": {
@@ -192,7 +194,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
192
194
  class: "bb-dropdown__items-container",
193
195
  style: x({ width: `${e.width}px` })
194
196
  }, [
195
- g(e.$slots, "prepend", {
197
+ y(e.$slots, "prepend", {
196
198
  closed: f.value,
197
199
  closing: p.value,
198
200
  disabled: e.disabled,
@@ -203,7 +205,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
203
205
  ($(!0), D(K, null, ee(m.value, (t, n) => ($(), D(K, {
204
206
  key: t.key
205
207
  }, [
206
- g(e.$slots, "item:prepend", {
208
+ y(e.$slots, "item:prepend", {
207
209
  closed: f.value,
208
210
  closing: p.value,
209
211
  disabled: t.disabled,
@@ -214,7 +216,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
214
216
  placement: e.placement,
215
217
  text: t.text
216
218
  }),
217
- C(le, B({
219
+ B(le, A({
218
220
  "aria-role": "menuitem",
219
221
  class: ["bb-dropdown__item", {
220
222
  "bb-dropdown__item--first": n === 0,
@@ -224,45 +226,45 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
224
226
  ref_for: !0
225
227
  }, t), {
226
228
  default: O(() => [
227
- g(e.$slots, t.key, {
229
+ y(e.$slots, t.key, {
228
230
  closed: f.value,
229
231
  closing: p.value,
230
232
  disabled: t.disabled,
231
233
  index: n,
232
- item: t,
234
+ item: t.original,
233
235
  open: l.value,
234
236
  opening: c.value,
235
237
  placement: e.placement,
236
238
  text: t.text
237
239
  }, () => [
238
- g(e.$slots, "item", {
240
+ y(e.$slots, "item", {
239
241
  closed: f.value,
240
242
  closing: p.value,
241
243
  disabled: t.disabled,
242
244
  index: n,
243
- item: t,
245
+ item: t.original,
244
246
  open: l.value,
245
247
  opening: c.value,
246
248
  placement: e.placement,
247
249
  text: t.text
248
250
  }, () => [
249
- t["prepend:icon"] ? ($(), P(j, {
251
+ t["prepend:icon"] ? ($(), P(V, {
250
252
  key: 0,
251
253
  class: "item__prepend-icon",
252
254
  type: t["prepend:icon"]
253
- }, null, 8, ["type"])) : N("", !0),
255
+ }, null, 8, ["type"])) : j("", !0),
254
256
  H("span", ie, te(t.text), 1),
255
- t["append:icon"] ? ($(), P(j, {
257
+ t["append:icon"] ? ($(), P(V, {
256
258
  key: 1,
257
259
  class: "item__append-icon",
258
260
  type: t["append:icon"]
259
- }, null, 8, ["type"])) : N("", !0)
261
+ }, null, 8, ["type"])) : j("", !0)
260
262
  ])
261
263
  ])
262
264
  ]),
263
265
  _: 2
264
266
  }, 1040, ["class"]),
265
- g(e.$slots, "item:append", {
267
+ y(e.$slots, "item:append", {
266
268
  closed: f.value,
267
269
  closing: p.value,
268
270
  disabled: t.disabled,
@@ -274,7 +276,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
274
276
  text: t.text
275
277
  })
276
278
  ], 64))), 128)),
277
- g(e.$slots, "append", {
279
+ y(e.$slots, "append", {
278
280
  closed: f.value,
279
281
  closing: p.value,
280
282
  disabled: e.disabled,
package/dist/index77.js CHANGED
@@ -1,19 +1,19 @@
1
- import { defineComponent as E, ref as W, computed as g, openBlock as l, createElementBlock as L, normalizeClass as I, createVNode as u, mergeProps as P, withCtx as t, unref as d, createBlock as D, createCommentVNode as v, createElementVNode as m, toDisplayString as y, createSlots as M, renderSlot as a, normalizeProps as r, guardReactiveProps as i, renderList as R } from "vue";
2
- import N from "./index13.js";
1
+ import { defineComponent as j, ref as z, computed as y, openBlock as l, createElementBlock as L, normalizeClass as E, createVNode as u, mergeProps as P, withCtx as n, unref as d, createBlock as D, createCommentVNode as v, createElementVNode as m, toDisplayString as _, createSlots as I, renderSlot as a, normalizeProps as r, guardReactiveProps as i, renderList as M } from "vue";
2
+ import W from "./index13.js";
3
3
  /* empty css */
4
- import T from "./index75.js";
4
+ import R from "./index75.js";
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
8
- import S from "./index127.js";
8
+ import N from "./index127.js";
9
9
  /* empty css */
10
- import Z from "./index129.js";
10
+ import T from "./index129.js";
11
11
  /* empty css */
12
- import { useLocale as j } from "./index212.js";
12
+ import { useLocale as Z } from "./index216.js";
13
13
  const q = { class: "bb-dropdown-button__content" }, A = {
14
14
  key: 1,
15
15
  class: "bb-dropdown-button__loading-label sr-only"
16
- }, F = { class: "bb-dropdown-button__dropdown-label sr-only" }, no = /* @__PURE__ */ E({
16
+ }, F = { class: "bb-dropdown-button__dropdown-label sr-only" }, to = /* @__PURE__ */ j({
17
17
  __name: "BbDropdownButton",
18
18
  props: {
19
19
  arrowPadding: {},
@@ -34,84 +34,88 @@ const q = { class: "bb-dropdown-button__content" }, A = {
34
34
  loading: { type: Boolean },
35
35
  "prepend:icon": {}
36
36
  },
37
- setup(V) {
38
- const n = V, { t: b } = j(), c = W(0), w = g(
39
- () => n.loading || !!c.value && n.autoLoading
40
- ), z = (o) => async (...s) => {
41
- w.value && n.disabledWhileLoading || (c.value++, await o(...s), c.value--);
42
- }, h = g(
43
- () => n.items.map((o) => o.onClick ? {
37
+ setup(S) {
38
+ const t = S, { t: b } = Z(), c = z(0), w = y(
39
+ () => t.loading || !!c.value && t.autoLoading
40
+ ), V = (o) => async (...s) => {
41
+ w.value && t.disabledWhileLoading || (c.value++, await o(...s), c.value--);
42
+ }, f = y(
43
+ () => t.items.map((o) => o.onClick ? {
44
44
  ...o,
45
- onClick: z(o.onClick)
46
- } : o)
47
- ), _ = g(() => {
48
- const o = { ...h.value[0] };
49
- return o.disabled = o.disabled || n.disabled, o;
45
+ key: o.key.split(/\W+/g).join("_").toLowerCase(),
46
+ onClick: V(o.onClick)
47
+ } : {
48
+ ...o,
49
+ key: o.key.split(/\W+/g).join("_").toLowerCase()
50
+ })
51
+ ), k = y(() => {
52
+ const o = { ...f.value[0] };
53
+ return o.disabled = o.disabled || t.disabled, o;
50
54
  });
51
55
  return (o, s) => (l(), L("span", {
52
- class: I(["bb-dropdown-button", {
56
+ class: E(["bb-dropdown-button", {
53
57
  "bb-dropdown-button--block": o.block,
54
58
  "bb-dropdown-button--loading": w.value,
55
59
  [`bb-dropdown-button--${o.theme}`]: !0
56
60
  }])
57
61
  }, [
58
- u(N, P(_.value, { class: "bb-dropdown-button__main-btn" }), {
59
- default: t(() => [
60
- u(d(Z), { class: "bb-dropdown-button__spinner" }),
61
- n["prepend:icon"] ? (l(), D(d(S), {
62
+ u(W, P(k.value, { class: "bb-dropdown-button__main-btn" }), {
63
+ default: n(() => [
64
+ u(d(T), { class: "bb-dropdown-button__spinner" }),
65
+ t["prepend:icon"] ? (l(), D(d(N), {
62
66
  key: 0,
63
67
  class: "bb-dropdown-button__prepend-icon",
64
- type: n["prepend:icon"]
68
+ type: t["prepend:icon"]
65
69
  }, null, 8, ["type"])) : v("", !0),
66
- m("span", q, y(_.value.text), 1),
67
- w.value ? (l(), L("span", A, y(d(b)("common.loadingText").value), 1)) : v("", !0),
68
- n["append:icon"] ? (l(), D(d(S), {
70
+ m("span", q, _(k.value.text), 1),
71
+ w.value ? (l(), L("span", A, _(d(b)("common.loadingText").value), 1)) : v("", !0),
72
+ t["append:icon"] ? (l(), D(d(N), {
69
73
  key: 2,
70
74
  class: "bb-dropdown-button__append-icon",
71
- type: n["append:icon"]
75
+ type: t["append:icon"]
72
76
  }, null, 8, ["type"])) : v("", !0)
73
77
  ]),
74
78
  _: 1
75
79
  }, 16),
76
- u(T, {
80
+ u(R, {
77
81
  id: o.id,
78
82
  "arrow-padding": o.arrowPadding,
79
83
  disabled: o.disabled,
80
84
  eager: o.eager,
81
- items: h.value,
85
+ items: f.value,
82
86
  offset: o.offset,
83
87
  padding: o.padding,
84
88
  placement: o.placement,
85
89
  theme: o.theme,
86
90
  "transition-duration": o.transitionDuration,
87
91
  width: o.width
88
- }, M({
89
- activator: t(({
92
+ }, I({
93
+ activator: n(({
90
94
  props: e,
91
95
  opening: p,
92
- open: f,
93
- closed: k,
96
+ open: g,
97
+ closed: h,
94
98
  closing: B,
95
99
  disabled: $,
96
100
  placement: C
97
101
  }) => [
98
102
  a(o.$slots, "activator", {
99
- closed: k,
103
+ closed: h,
100
104
  closing: B,
101
105
  disabled: $,
102
- open: f,
106
+ open: g,
103
107
  opening: p,
104
108
  placement: C,
105
109
  props: e
106
110
  }, () => [
107
- u(N, P(e, { class: "bb-dropdown-button__dropdown-btn" }), {
108
- default: t(() => [
109
- m("span", F, y(f || p ? d(b)("dropdownButton.close").value : d(b)("dropdownButton.open").value), 1),
111
+ u(W, P(e, { class: "bb-dropdown-button__dropdown-btn" }), {
112
+ default: n(() => [
113
+ m("span", F, _(g || p ? d(b)("dropdownButton.close").value : d(b)("dropdownButton.open").value), 1),
110
114
  a(o.$slots, "right-btn", {
111
- closed: k,
115
+ closed: h,
112
116
  closing: B,
113
117
  disabled: $,
114
- open: f,
118
+ open: g,
115
119
  opening: p,
116
120
  placement: C
117
121
  }, () => [
@@ -131,26 +135,26 @@ const q = { class: "bb-dropdown-button__content" }, A = {
131
135
  }, 1040)
132
136
  ])
133
137
  ]),
134
- prepend: t((e) => [
138
+ prepend: n((e) => [
135
139
  a(o.$slots, "prepend", r(i(e)))
136
140
  ]),
137
- "item:prepend": t((e) => [
141
+ "item:prepend": n((e) => [
138
142
  a(o.$slots, "item:prepend", r(i(e)))
139
143
  ]),
140
- item: t((e) => [
144
+ item: n((e) => [
141
145
  a(o.$slots, "item", r(i(e)))
142
146
  ]),
143
- "item:append": t((e) => [
147
+ "item:append": n((e) => [
144
148
  a(o.$slots, "item:append", r(i(e)))
145
149
  ]),
146
- append: t((e) => [
150
+ append: n((e) => [
147
151
  a(o.$slots, "append", r(i(e)))
148
152
  ]),
149
153
  _: 2
150
154
  }, [
151
- R(o.items, (e) => ({
155
+ M(f.value, (e) => ({
152
156
  name: e.key,
153
- fn: t((p) => [
157
+ fn: n((p) => [
154
158
  a(o.$slots, e.key, r(i(p)))
155
159
  ])
156
160
  }))
@@ -159,5 +163,5 @@ const q = { class: "bb-dropdown-button__content" }, A = {
159
163
  }
160
164
  });
161
165
  export {
162
- no as default
166
+ to as default
163
167
  };
package/dist/index79.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index263.js";
2
+ import { findInTree as ae } from "./index267.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index128.js";
5
5
  /* empty css */
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
53
53
  const r = a.accept[t];
54
54
  if (r.includes("/")) e.push(r);
55
55
  else {
56
- b || (b = (await import("./index262.js")).default);
56
+ b || (b = (await import("./index266.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index81.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index249.js";
2
+ import { throttle as c } from "./index226.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as se, ref as l, useAttrs as ae, computed as u, getCurrentInstance as ne, nextTick as ie, onBeforeUnmount as O, onMounted as re, watch as ue, openBlock as g, createBlock as ce, withCtx as de, createElementVNode as s, mergeProps as S, createElementBlock as z, renderSlot as n, createTextVNode as fe, toDisplayString as A, unref as ve, createCommentVNode as $ } from "vue";
2
- import { useFocusTrap as pe } from "./index223.js";
2
+ import { useFocusTrap as pe } from "./index215.js";
3
3
  import { useId as E } from "./index8.js";
4
4
  import { wait as H } from "./index130.js";
5
- import { useModalsState as b } from "./index250.js";
6
- import be from "./index225.js";
5
+ import { useModalsState as b } from "./index227.js";
6
+ import be from "./index219.js";
7
7
  import { useMobile as me } from "./index9.js";
8
- import { useLocale as ye } from "./index212.js";
8
+ import { useLocale as ye } from "./index216.js";
9
9
  const he = ["inert"], ge = { class: "bb-offcanvas-close" }, _e = ["aria-label"], Te = /* @__PURE__ */ se({
10
10
  __name: "BbOffCanvas",
11
11
  props: {
package/dist/index86.js CHANGED
@@ -4,7 +4,7 @@ import { debounce as T } from "./index268.js";
4
4
  /* empty css */
5
5
  import z from "./index13.js";
6
6
  /* empty css */
7
- import { useLocale as D } from "./index212.js";
7
+ import { useLocale as D } from "./index216.js";
8
8
  const G = ["aria-label"], I = { class: "bb-pagination__page-label sr-only" }, O = { class: "bb-pagination__page-label" }, j = { class: "bb-pagination__page-label" }, q = { class: "bb-pagination__page-label sr-only" }, Z = /* @__PURE__ */ E({
9
9
  __name: "BbPagination",
10
10
  props: {
package/dist/index88.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as O, ref as n, computed as v, openBlock as y, createElementBlock as S, mergeProps as F, createElementVNode as p, renderSlot as k, normalizeProps as H, guardReactiveProps as V, createVNode as q, withCtx as T, createBlock as I, toDisplayString as W, unref as z, createCommentVNode as A, nextTick as R } from "vue";
2
- import { useFocusTrap as j } from "./index223.js";
2
+ import { useFocusTrap as j } from "./index215.js";
3
3
  import { useId as G } from "./index8.js";
4
4
  import { useIntersectionObserver as J } from "./index132.js";
5
- import { waitFor as K } from "./index224.js";
5
+ import { waitFor as K } from "./index218.js";
6
6
  import Q from "./index13.js";
7
7
  /* empty css */
8
- import U from "./index266.js";
8
+ import U from "./index264.js";
9
9
  /* empty css */
10
- import { useLocale as X } from "./index212.js";
11
- import { useDebounceFn as Y } from "./index205.js";
10
+ import { useLocale as X } from "./index216.js";
11
+ import { useDebounceFn as Y } from "./index238.js";
12
12
  const Z = { class: "bb-popover__close-label sr-only" }, ce = /* @__PURE__ */ O({
13
13
  __name: "BbPopover",
14
14
  props: {
package/dist/index90.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index206.js";
2
+ import { clamp as p } from "./index205.js";
3
3
  import { getAsPercentageBetween as i } from "./index131.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",
@@ -0,0 +1,4 @@
1
+ type ReplaceNonWordWithUnderscore<S extends string> = S extends `${infer Head}${infer Tail}` ? Head extends ' ' | '.' | ',' | '!' | '?' | '-' | ';' | ':' | "'" | '"' | '(' | ')' | '[' | ']' | '{' | '}' | '`' | '~' | '@' | '#' | '$' | '%' | '^' | '&' | '*' | '+' | '=' | '|' | '\\' | '/' | '<' | '>' | '?' | '!' ? `_${ReplaceNonWordWithUnderscore<Tail>}` : `${Head}${ReplaceNonWordWithUnderscore<Tail>}` : S;
2
+ type CollapseConsecutiveUnderscores<S extends string> = S extends `${infer Head}__${infer Tail}` ? CollapseConsecutiveUnderscores<`${Head}_${Tail}`> : S;
3
+ export type ColumnName<S extends string> = CollapseConsecutiveUnderscores<Lowercase<ReplaceNonWordWithUnderscore<S>>>;
4
+ export {};
@@ -1,8 +1,8 @@
1
- export type Option = {
1
+ export type Option<Item = any> = {
2
2
  text: string;
3
3
  value: any;
4
4
  selected?: boolean;
5
- item: any;
5
+ item: Item;
6
6
  disabled?: boolean;
7
7
  valueHash: string;
8
8
  };
@@ -0,0 +1 @@
1
+ export type PrefixWith<T extends string, Prefix extends string> = `${Prefix}${T}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.117",
3
+ "version": "2.0.118",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index221.js DELETED
@@ -1,4 +0,0 @@
1
- const e = (t) => t;
2
- export {
3
- e as identity
4
- };