bitboss-ui 2.0.116 → 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 (200) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +4 -0
  2. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +32 -6
  3. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -0
  4. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +33 -357
  5. package/dist/components/BaseTag/BaseTag.vue.d.ts +17 -3
  6. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +4 -0
  7. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +4 -0
  8. package/dist/components/BbButton/BbButton.vue.d.ts +4 -4
  9. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +4 -0
  10. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
  11. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +76 -89
  12. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +75 -89
  13. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +5 -0
  14. package/dist/components/BbRows/BbRows.vue.d.ts +70 -85
  15. package/dist/components/BbSelect/BbSelect.vue.d.ts +5 -10
  16. package/dist/components/BbTable/BbTable.vue.d.ts +63 -91
  17. package/dist/components/BbTable/types.d.ts +46 -27
  18. package/dist/components/BbTag/BbTag.vue.d.ts +4 -0
  19. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +4 -0
  20. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +4 -0
  21. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +0 -1
  22. package/dist/components/ClearableButton.vue.d.ts +2 -0
  23. package/dist/components/CommonInputInnerContainer.vue.d.ts +9 -1
  24. package/dist/components/ListBox.vue.d.ts +40 -44
  25. package/dist/index100.js +91 -82
  26. package/dist/index101.js +35 -42
  27. package/dist/index111.js +235 -211
  28. package/dist/index113.js +6 -4
  29. package/dist/index115.js +17 -15
  30. package/dist/index117.js +14 -12
  31. package/dist/index119.js +2 -2
  32. package/dist/index121.js +59 -61
  33. package/dist/index123.js +1 -1
  34. package/dist/index125.js +1 -1
  35. package/dist/index127.js +1 -1
  36. package/dist/index128.js +1 -1
  37. package/dist/index129.js +1 -1
  38. package/dist/index13.js +2 -2
  39. package/dist/index132.js +2 -2
  40. package/dist/index133.js +2 -2
  41. package/dist/index15.js +38 -33
  42. package/dist/index17.js +3 -3
  43. package/dist/index19.js +8 -8
  44. package/dist/index206.js +126 -3
  45. package/dist/index207.js +5 -53
  46. package/dist/index208.js +127 -0
  47. package/dist/index209.js +16 -13
  48. package/dist/index21.js +16 -16
  49. package/dist/index210.js +16 -2
  50. package/dist/index211.js +19 -4
  51. package/dist/index212.js +15 -2
  52. package/dist/index213.js +2 -86
  53. package/dist/index214.js +4 -0
  54. package/dist/index215.js +40 -24
  55. package/dist/index216.js +13 -17
  56. package/dist/index217.js +18 -49
  57. package/dist/index218.js +6 -15
  58. package/dist/index219.js +15 -3
  59. package/dist/index220.js +65 -12
  60. package/dist/index222.js +13 -126
  61. package/dist/index223.js +5 -5
  62. package/dist/index224.js +2 -125
  63. package/dist/index225.js +367 -14
  64. package/dist/index226.js +3 -16
  65. package/dist/index227.js +7 -19
  66. package/dist/index228.js +8 -15
  67. package/dist/index229.js +19 -2
  68. package/dist/index23.js +116 -111
  69. package/dist/index230.js +27 -2
  70. package/dist/index231.js +3 -41
  71. package/dist/index232.js +249 -12
  72. package/dist/index233.js +50 -18
  73. package/dist/index234.js +43 -5
  74. package/dist/index235.js +5 -15
  75. package/dist/index236.js +60 -5
  76. package/dist/index237.js +3 -369
  77. package/dist/index238.js +115 -19
  78. package/dist/index239.js +4 -27
  79. package/dist/index240.js +2 -8
  80. package/dist/index241.js +4 -250
  81. package/dist/index242.js +2 -52
  82. package/dist/index243.js +80 -38
  83. package/dist/index245.js +25 -60
  84. package/dist/index246.js +17 -3
  85. package/dist/index247.js +51 -7
  86. package/dist/index248.js +15 -4
  87. package/dist/index249.js +10 -113
  88. package/dist/index25.js +7 -7
  89. package/dist/index250.js +16 -2
  90. package/dist/index251.js +2 -2
  91. package/dist/index252.js +2 -2
  92. package/dist/index253.js +1 -1
  93. package/dist/index254.js +2 -2
  94. package/dist/index256.js +2 -2
  95. package/dist/index259.js +214 -10
  96. package/dist/index260.js +9 -2
  97. package/dist/index261.js +2 -8
  98. package/dist/index262.js +9 -23
  99. package/dist/index263.js +23 -90
  100. package/dist/index264.js +92 -0
  101. package/dist/index266.js +6 -16
  102. package/dist/index267.js +16 -224
  103. package/dist/index268.js +9 -3
  104. package/dist/index269.js +11 -0
  105. package/dist/index27.js +1 -1
  106. package/dist/index270.js +8 -7
  107. package/dist/index271.js +281 -4
  108. package/dist/index272.js +6 -3
  109. package/dist/index273.js +2 -17
  110. package/dist/index274.js +2 -9
  111. package/dist/index275.js +2 -28
  112. package/dist/index276.js +2 -281
  113. package/dist/index277.js +2 -6
  114. package/dist/index278.js +2 -2
  115. package/dist/index279.js +126 -2
  116. package/dist/index280.js +431 -2
  117. package/dist/index281.js +176 -2
  118. package/dist/index282.js +2 -2
  119. package/dist/index283.js +3 -2
  120. package/dist/index285.js +5 -429
  121. package/dist/index286.js +22 -176
  122. package/dist/index288.js +7 -22
  123. package/dist/index289.js +13 -0
  124. package/dist/index29.js +48 -40
  125. package/dist/index290.js +88 -6
  126. package/dist/index291.js +200 -11
  127. package/dist/index292.js +436 -2
  128. package/dist/index293.js +127 -2
  129. package/dist/index294.js +224 -2
  130. package/dist/index295.js +2 -2
  131. package/dist/index296.js +2 -2
  132. package/dist/index297.js +1 -1
  133. package/dist/index298.js +1 -21
  134. package/dist/index299.js +4 -0
  135. package/dist/index300.js +2 -9
  136. package/dist/index301.js +25 -197
  137. package/dist/index302.js +21 -435
  138. package/dist/index304.js +3 -88
  139. package/dist/index305.js +3 -8
  140. package/dist/index306.js +17 -3
  141. package/dist/index307.js +1 -1
  142. package/dist/index308.js +3 -214
  143. package/dist/index309.js +2 -2
  144. package/dist/index31.js +2 -2
  145. package/dist/index310.js +2 -3
  146. package/dist/index311.js +5 -67
  147. package/dist/index312.js +67 -5
  148. package/dist/index313.js +3 -3
  149. package/dist/index314.js +5 -3
  150. package/dist/index315.js +7 -57
  151. package/dist/index316.js +2 -32
  152. package/dist/index317.js +3 -5
  153. package/dist/index318.js +57 -7
  154. package/dist/index320.js +32 -6
  155. package/dist/index321.js +25 -18
  156. package/dist/index322.js +7 -53
  157. package/dist/index323.js +7 -53
  158. package/dist/index324.js +17 -5
  159. package/dist/index325.js +53 -47
  160. package/dist/index326.js +53 -2
  161. package/dist/index327.js +47 -480
  162. package/dist/index328.js +482 -0
  163. package/dist/index329.js +2 -424
  164. package/dist/index33.js +8 -8
  165. package/dist/index332.js +426 -0
  166. package/dist/index35.js +4 -4
  167. package/dist/index37.js +172 -161
  168. package/dist/index39.js +4 -4
  169. package/dist/index41.js +2 -2
  170. package/dist/index43.js +8 -8
  171. package/dist/index45.js +92 -85
  172. package/dist/index47.js +40 -36
  173. package/dist/index49.js +39 -35
  174. package/dist/index53.js +1 -1
  175. package/dist/index55.js +1 -1
  176. package/dist/index57.js +2 -2
  177. package/dist/index61.js +11 -10
  178. package/dist/index67.js +14 -12
  179. package/dist/index71.js +5 -3
  180. package/dist/index75.js +37 -35
  181. package/dist/index77.js +54 -50
  182. package/dist/index79.js +2 -2
  183. package/dist/index81.js +1 -1
  184. package/dist/index82.js +11 -9
  185. package/dist/index84.js +4 -4
  186. package/dist/index86.js +2 -2
  187. package/dist/index88.js +5 -5
  188. package/dist/style.css +1 -1
  189. package/dist/types/ColumnName.d.ts +4 -0
  190. package/dist/types/Option.d.ts +2 -2
  191. package/dist/types/PrefixWith.d.ts +1 -0
  192. package/package.json +2 -2
  193. package/dist/index221.js +0 -18
  194. package/dist/index244.js +0 -7
  195. package/dist/index265.js +0 -8
  196. package/dist/index284.js +0 -128
  197. package/dist/index287.js +0 -4
  198. package/dist/index303.js +0 -129
  199. /package/dist/{index330.js → index333.js} +0 -0
  200. /package/dist/{index331.js → index334.js} +0 -0
package/dist/index61.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as g, ref as v, computed as c, useAttrs as B, toRef as k, openBlock as t, createBlock as a, unref as l, mergeProps as C, withCtx as h, createVNode as L, createCommentVNode as r, createElementVNode as S, normalizeClass as x, renderSlot as V, createTextVNode as F, toDisplayString as d, createElementBlock as N } from "vue";
1
+ import { defineComponent as _, ref as B, computed as c, useAttrs as v, toRef as k, openBlock as t, createBlock as a, unref as l, mergeProps as C, withCtx as h, createVNode as L, createCommentVNode as r, createElementVNode as S, normalizeClass as x, renderSlot as V, createTextVNode as F, toDisplayString as d, createElementBlock as N } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import P from "./index13.js";
@@ -7,13 +7,13 @@ import s from "./index127.js";
7
7
  /* empty css */
8
8
  import T from "./index129.js";
9
9
  /* empty css */
10
- import { pickBy as $ } from "./index259.js";
11
- import { noop as A } from "./index260.js";
12
- import { useLocale as W } from "./index232.js";
10
+ import { pickBy as $ } from "./index260.js";
11
+ import { noop as A } from "./index261.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"
16
- }, M = /* @__PURE__ */ g({
16
+ }, M = /* @__PURE__ */ _({
17
17
  __name: "BbButton",
18
18
  props: {
19
19
  autoLoading: { type: Boolean },
@@ -25,6 +25,7 @@ const w = {
25
25
  disabled: { type: Boolean },
26
26
  disabledWhileLoading: { type: Boolean, default: !0 },
27
27
  exactActiveClass: {},
28
+ group: { type: Boolean },
28
29
  headers: {},
29
30
  href: {},
30
31
  icon: {},
@@ -42,7 +43,6 @@ const w = {
42
43
  preserveScroll: { type: [Boolean, Function] },
43
44
  preserveState: { type: [Boolean, Function, null] },
44
45
  queryStringArrayFormat: {},
45
- rel: {},
46
46
  replace: { type: Boolean },
47
47
  tag: {},
48
48
  target: {},
@@ -51,15 +51,15 @@ const w = {
51
51
  type: {}
52
52
  },
53
53
  setup(u) {
54
- const e = u, { t: b } = W(), i = v(0), n = c(
54
+ const e = u, { t: b } = W(), i = B(0), n = c(
55
55
  () => e.loading || !!i.value && e.autoLoading
56
- ), m = c(() => e.disabled), { onClick: y = A } = B(), f = async (o) => {
56
+ ), m = c(() => e.disabled), { onClick: y = A } = v(), f = async (o) => {
57
57
  if (o.stopImmediatePropagation(), n.value && e.disabledWhileLoading) {
58
58
  e.type === "submit" && o.preventDefault();
59
59
  return;
60
60
  }
61
61
  i.value++, await y(o), i.value--;
62
- }, _ = k(() => ({
62
+ }, g = k(() => ({
63
63
  ...$(
64
64
  e,
65
65
  (o, p) => ![
@@ -73,11 +73,12 @@ const w = {
73
73
  ].includes(p)
74
74
  )
75
75
  }));
76
- return (o, p) => (t(), a(l(P), C(_.value, {
76
+ return (o, p) => (t(), a(l(P), C(g.value, {
77
77
  "aria-disabled": n.value ? !0 : void 0,
78
78
  class: {
79
79
  "bb-button": !0,
80
80
  "bb-button--loading": n.value,
81
+ "bb-button--group": e.group,
81
82
  "bb-button--icon": !!o.icon
82
83
  },
83
84
  disabled: m.value,
package/dist/index67.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, ref as h, computed as b, openBlock as f, createBlock as y, withCtx as a, renderSlot as n, normalizeProps as v, guardReactiveProps as B, createVNode as w, mergeProps as g } from "vue";
1
+ import { defineComponent as c, ref as b, computed as h, openBlock as f, createBlock as y, withCtx as a, renderSlot as l, normalizeProps as v, guardReactiveProps as B, createVNode as w, mergeProps as g } from "vue";
2
2
  import $ from "./index27.js";
3
3
  /* empty css */
4
4
  import k from "./index15.js";
@@ -9,6 +9,7 @@ const E = /* @__PURE__ */ c({
9
9
  "append:icon": {},
10
10
  autocomplete: {},
11
11
  autofocus: {},
12
+ clearable: { type: Boolean },
12
13
  compact: { type: Boolean },
13
14
  direction: {},
14
15
  disabled: { type: Boolean },
@@ -31,14 +32,14 @@ const E = /* @__PURE__ */ c({
31
32
  },
32
33
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
33
34
  setup(s, { emit: i }) {
34
- const r = s, o = i, l = h(!1), d = b(() => r.persistentHint || l.value), t = {
35
+ const r = s, o = i, n = b(!1), d = h(() => r.persistentHint || n.value), t = {
35
36
  onBlur: (e) => {
36
- l.value = !1, o("blur", e);
37
+ n.value = !1, o("blur", e);
37
38
  },
38
39
  onChange: (e) => o("change", e),
39
40
  onClick: (e) => o("click", e),
40
41
  onFocus: (e) => {
41
- l.value = !0, o("focus", e);
42
+ n.value = !0, o("focus", e);
42
43
  },
43
44
  onInput: (e) => o("input", e),
44
45
  onKeydown: (e) => o("keydown", e),
@@ -63,7 +64,7 @@ const E = /* @__PURE__ */ c({
63
64
  "show-hint": d.value
64
65
  }, {
65
66
  label: a((p) => [
66
- n(e.$slots, "label", v(B(p)))
67
+ l(e.$slots, "label", v(B(p)))
67
68
  ]),
68
69
  input: a(({ id: p, hasErrors: u, ariaDescribedby: m }) => [
69
70
  w(k, g({
@@ -72,6 +73,7 @@ const E = /* @__PURE__ */ c({
72
73
  "aria-describedby": m,
73
74
  autocomplete: e.autocomplete,
74
75
  autofocus: e.autofocus,
76
+ clearable: e.clearable,
75
77
  compact: e.compact,
76
78
  disabled: e.disabled,
77
79
  "has-errors": u,
@@ -84,25 +86,25 @@ const E = /* @__PURE__ */ c({
84
86
  required: e.required
85
87
  }, t), {
86
88
  "append-outer": a(() => [
87
- n(e.$slots, "append-outer")
89
+ l(e.$slots, "append-outer")
88
90
  ]),
89
91
  append: a(() => [
90
- n(e.$slots, "append")
92
+ l(e.$slots, "append")
91
93
  ]),
92
94
  prefix: a(() => [
93
- n(e.$slots, "prefix")
95
+ l(e.$slots, "prefix")
94
96
  ]),
95
97
  suffix: a(() => [
96
- n(e.$slots, "suffix")
98
+ l(e.$slots, "suffix")
97
99
  ]),
98
100
  prepend: a(() => [
99
- n(e.$slots, "prepend")
101
+ l(e.$slots, "prepend")
100
102
  ]),
101
103
  "prepend-outer": a(() => [
102
- n(e.$slots, "prepend-outer")
104
+ l(e.$slots, "prepend-outer")
103
105
  ]),
104
106
  _: 2
105
- }, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "compact", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required"])
107
+ }, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "clearable", "compact", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required"])
106
108
  ]),
107
109
  _: 3
108
110
  }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
package/dist/index71.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as u, ref as c, computed as f, openBlock as h, createBlock as b, withCtx as o, renderSlot as a, normalizeProps as v, guardReactiveProps as y, createVNode as w, mergeProps as g } from "vue";
1
+ import { defineComponent as u, ref as c, computed as f, openBlock as b, createBlock as h, withCtx as o, renderSlot as a, normalizeProps as v, guardReactiveProps as y, createVNode as w, mergeProps as g } from "vue";
2
2
  import B from "./index23.js";
3
3
  /* empty css */
4
4
  import $ from "./index27.js";
@@ -10,6 +10,7 @@ const E = /* @__PURE__ */ u({
10
10
  "append:icon": {},
11
11
  autocomplete: {},
12
12
  autofocus: {},
13
+ clearable: { type: Boolean },
13
14
  compact: { type: Boolean },
14
15
  direction: {},
15
16
  disabled: { type: Boolean },
@@ -49,7 +50,7 @@ const E = /* @__PURE__ */ u({
49
50
  },
50
51
  "onUpdate:modelValue": (e) => r("update:modelValue", e)
51
52
  };
52
- return (e, k) => (h(), b($, {
53
+ return (e, k) => (b(), h($, {
53
54
  id: e.id,
54
55
  class: "bb-date-picker-input",
55
56
  compact: e.compact,
@@ -75,6 +76,7 @@ const E = /* @__PURE__ */ u({
75
76
  "append:icon": e.$props["append:icon"],
76
77
  autocomplete: e.autocomplete,
77
78
  autofocus: e.autofocus,
79
+ clearable: e.clearable,
78
80
  compact: e.compact,
79
81
  disabled: e.disabled,
80
82
  "first-day-of-week": e.firstDayOfWeek,
@@ -111,7 +113,7 @@ const E = /* @__PURE__ */ u({
111
113
  a(e.$slots, "append-outer")
112
114
  ]),
113
115
  _: 2
114
- }, 1040, ["id", "allow-writing", "append:icon", "autocomplete", "autofocus", "compact", "disabled", "first-day-of-week", "has-errors", "loading", "max", "min", "model-value", "name", "placeholder", "prepend:icon", "range", "readonly", "required", "selectable", "width"])
116
+ }, 1040, ["id", "allow-writing", "append:icon", "autocomplete", "autofocus", "clearable", "compact", "disabled", "first-day-of-week", "has-errors", "loading", "max", "min", "model-value", "name", "placeholder", "prepend:icon", "range", "readonly", "required", "selectable", "width"])
115
117
  ]),
116
118
  _: 3
117
119
  }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
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 "./index261.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 "./index262.js";
9
- import se from "./index263.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 "./index232.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 "./index266.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("./index265.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 "./index246.js";
2
+ import { throttle as c } from "./index226.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {