bitboss-ui 2.0.116 → 2.0.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +4 -0
  2. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +17 -3
  3. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -0
  4. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +17 -3
  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/BbNumberInput/BbNumberInput.vue.d.ts +5 -0
  12. package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
  13. package/dist/components/BbTag/BbTag.vue.d.ts +4 -0
  14. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +4 -0
  15. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +4 -0
  16. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +0 -1
  17. package/dist/components/ClearableButton.vue.d.ts +2 -0
  18. package/dist/components/CommonInputInnerContainer.vue.d.ts +9 -1
  19. package/dist/index100.js +8 -8
  20. package/dist/index101.js +37 -35
  21. package/dist/index111.js +12 -12
  22. package/dist/index113.js +6 -4
  23. package/dist/index115.js +17 -15
  24. package/dist/index117.js +14 -12
  25. package/dist/index119.js +2 -2
  26. package/dist/index121.js +59 -61
  27. package/dist/index123.js +1 -1
  28. package/dist/index125.js +1 -1
  29. package/dist/index127.js +1 -1
  30. package/dist/index128.js +1 -1
  31. package/dist/index129.js +1 -1
  32. package/dist/index13.js +2 -2
  33. package/dist/index131.js +1 -1
  34. package/dist/index132.js +2 -2
  35. package/dist/index133.js +2 -2
  36. package/dist/index15.js +36 -31
  37. package/dist/index17.js +3 -3
  38. package/dist/index19.js +8 -8
  39. package/dist/index205.js +115 -2
  40. package/dist/index206.js +2 -3
  41. package/dist/index207.js +41 -29
  42. package/dist/index209.js +1 -1
  43. package/dist/index21.js +16 -16
  44. package/dist/index210.js +20 -2
  45. package/dist/index211.js +4 -4
  46. package/dist/index212.js +13 -2
  47. package/dist/index213.js +3 -86
  48. package/dist/index214.js +128 -0
  49. package/dist/index215.js +5 -25
  50. package/dist/index216.js +123 -15
  51. package/dist/index217.js +15 -50
  52. package/dist/index218.js +16 -15
  53. package/dist/index219.js +19 -3
  54. package/dist/index220.js +15 -12
  55. package/dist/index221.js +2 -16
  56. package/dist/index222.js +2 -126
  57. package/dist/index223.js +41 -5
  58. package/dist/index224.js +6 -125
  59. package/dist/index225.js +15 -16
  60. package/dist/index226.js +5 -16
  61. package/dist/index227.js +2 -19
  62. package/dist/index228.js +368 -14
  63. package/dist/index229.js +86 -2
  64. package/dist/index23.js +115 -110
  65. package/dist/index231.js +24 -40
  66. package/dist/index232.js +17 -13
  67. package/dist/index233.js +49 -18
  68. package/dist/index234.js +15 -6
  69. package/dist/index235.js +3 -15
  70. package/dist/index236.js +12 -5
  71. package/dist/index237.js +15 -368
  72. package/dist/index238.js +2 -19
  73. package/dist/index239.js +4 -27
  74. package/dist/index240.js +2 -8
  75. package/dist/index241.js +17 -248
  76. package/dist/index242.js +26 -51
  77. package/dist/index243.js +6 -42
  78. package/dist/index244.js +250 -5
  79. package/dist/index245.js +43 -51
  80. package/dist/index246.js +44 -3
  81. package/dist/index247.js +5 -7
  82. package/dist/index248.js +60 -4
  83. package/dist/index249.js +3 -115
  84. package/dist/index25.js +7 -7
  85. package/dist/index250.js +7 -2
  86. package/dist/index251.js +2 -2
  87. package/dist/index252.js +2 -2
  88. package/dist/index253.js +2 -18
  89. package/dist/index254.js +17 -105
  90. package/dist/index255.js +108 -0
  91. package/dist/{index256.js → index257.js} +2 -2
  92. package/dist/index259.js +11 -9
  93. package/dist/index260.js +9 -2
  94. package/dist/index261.js +2 -8
  95. package/dist/index262.js +6 -23
  96. package/dist/index263.js +15 -89
  97. package/dist/index264.js +11 -0
  98. package/dist/index265.js +23 -6
  99. package/dist/index266.js +89 -15
  100. package/dist/index268.js +9 -3
  101. package/dist/index27.js +1 -1
  102. package/dist/index270.js +3 -7
  103. package/dist/index272.js +7 -3
  104. package/dist/index273.js +174 -15
  105. package/dist/index274.js +7 -9
  106. package/dist/index275.js +10 -27
  107. package/dist/index285.js +1 -1
  108. package/dist/index286.js +2 -176
  109. package/dist/index287.js +21 -1
  110. package/dist/index289.js +5 -0
  111. package/dist/index29.js +49 -41
  112. package/dist/index290.js +17 -7
  113. package/dist/index291.js +9 -11
  114. package/dist/index292.js +28 -2
  115. package/dist/index293.js +4 -2
  116. package/dist/index294.js +436 -2
  117. package/dist/index295.js +127 -2
  118. package/dist/index296.js +200 -2
  119. package/dist/index297.js +2 -2
  120. package/dist/index298.js +2 -22
  121. package/dist/index299.js +4 -0
  122. package/dist/index300.js +2 -9
  123. package/dist/index301.js +2 -200
  124. package/dist/index302.js +2 -436
  125. package/dist/index303.js +21 -126
  126. package/dist/index306.js +89 -3
  127. package/dist/index307.js +1 -1
  128. package/dist/index308.js +3 -214
  129. package/dist/index309.js +214 -2
  130. package/dist/index31.js +2 -2
  131. package/dist/index310.js +2 -3
  132. package/dist/index311.js +3 -67
  133. package/dist/index312.js +3 -5
  134. package/dist/index313.js +58 -3
  135. package/dist/index314.js +5 -3
  136. package/dist/index315.js +65 -56
  137. package/dist/index316.js +6 -32
  138. package/dist/index317.js +18 -4
  139. package/dist/index318.js +3 -8
  140. package/dist/index319.js +32 -3
  141. package/dist/index320.js +25 -6
  142. package/dist/index321.js +52 -18
  143. package/dist/index322.js +28 -28
  144. package/dist/index323.js +5 -53
  145. package/dist/index324.js +7 -6
  146. package/dist/index325.js +6 -46
  147. package/dist/index326.js +4 -2
  148. package/dist/index327.js +47 -480
  149. package/dist/index328.js +4 -0
  150. package/dist/index33.js +8 -8
  151. package/dist/index331.js +480 -2
  152. package/dist/{index329.js → index332.js} +1 -1
  153. package/dist/index334.js +4 -0
  154. package/dist/index35.js +4 -4
  155. package/dist/index37.js +148 -138
  156. package/dist/index39.js +5 -5
  157. package/dist/index41.js +2 -2
  158. package/dist/index43.js +8 -8
  159. package/dist/index45.js +92 -85
  160. package/dist/index47.js +40 -36
  161. package/dist/index49.js +38 -34
  162. package/dist/index53.js +1 -1
  163. package/dist/index55.js +1 -1
  164. package/dist/index57.js +2 -2
  165. package/dist/index61.js +11 -10
  166. package/dist/index67.js +14 -12
  167. package/dist/index71.js +5 -3
  168. package/dist/index75.js +3 -3
  169. package/dist/index77.js +1 -1
  170. package/dist/index79.js +2 -2
  171. package/dist/index81.js +1 -1
  172. package/dist/index82.js +11 -9
  173. package/dist/index84.js +4 -4
  174. package/dist/index86.js +2 -2
  175. package/dist/index88.js +5 -5
  176. package/dist/index90.js +1 -1
  177. package/dist/style.css +1 -1
  178. package/package.json +2 -2
  179. package/dist/index230.js +0 -4
  180. package/dist/index258.js +0 -14
  181. package/dist/index271.js +0 -6
  182. package/dist/index288.js +0 -24
  183. package/dist/index304.js +0 -91
  184. /package/dist/{index267.js → index269.js} +0 -0
  185. /package/dist/{index330.js → index333.js} +0 -0
package/dist/index115.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, ref as y, computed as w, openBlock as v, createBlock as B, withCtx as a, renderSlot as r, normalizeProps as p, guardReactiveProps as d, createVNode as g, mergeProps as $ } from "vue";
1
+ import { defineComponent as f, ref as y, computed as w, openBlock as v, createBlock as B, withCtx as a, renderSlot as r, normalizeProps as i, guardReactiveProps as d, createVNode as g, mergeProps as $ } from "vue";
2
2
  import k from "./index27.js";
3
3
  /* empty css */
4
4
  import V from "./index47.js";
@@ -10,6 +10,7 @@ const G = /* @__PURE__ */ f({
10
10
  autocomplete: {},
11
11
  autofocus: {},
12
12
  autoGrow: { type: Boolean },
13
+ clearable: { type: Boolean },
13
14
  compact: { type: Boolean },
14
15
  direction: {},
15
16
  disabled: { type: Boolean },
@@ -33,14 +34,14 @@ const G = /* @__PURE__ */ f({
33
34
  },
34
35
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
35
36
  setup(t, { emit: u }) {
36
- const n = t, o = u, l = y(!1), m = w(() => n.persistentHint || l.value), c = {
37
+ const l = t, o = u, n = y(!1), m = w(() => l.persistentHint || n.value), c = {
37
38
  onBlur: (e) => {
38
- l.value = !1, o("blur", e);
39
+ n.value = !1, o("blur", e);
39
40
  },
40
41
  onChange: (e) => o("change", e),
41
42
  onClick: (e) => o("click", e),
42
43
  onFocus: (e) => {
43
- l.value = !0, o("focus", e);
44
+ n.value = !0, o("focus", e);
44
45
  },
45
46
  onInput: (e) => o("input", e),
46
47
  onKeydown: (e) => o("keydown", e),
@@ -65,23 +66,24 @@ const G = /* @__PURE__ */ f({
65
66
  "show-hint": m.value
66
67
  }, {
67
68
  label: a((s) => [
68
- r(e.$slots, "label", p(d(s)))
69
+ r(e.$slots, "label", i(d(s)))
69
70
  ]),
70
- input: a(({ id: s, hasErrors: h, ariaDescribedby: b }) => [
71
+ input: a(({ id: s, hasErrors: b, ariaDescribedby: h }) => [
71
72
  g(V, $({
72
73
  id: s,
73
- "append:icon": n["append:icon"],
74
- "aria-describedby": b,
74
+ "append:icon": l["append:icon"],
75
+ "aria-describedby": h,
75
76
  "auto-grow": e.autoGrow,
76
77
  autofocus: e.autofocus,
78
+ clearable: e.clearable,
77
79
  compact: e.compact,
78
80
  disabled: e.disabled,
79
- "has-errors": h,
81
+ "has-errors": b,
80
82
  loading: e.loading,
81
83
  "model-value": e.modelValue,
82
84
  name: e.name,
83
85
  placeholder: e.placeholder,
84
- "prepend:icon": n["prepend:icon"],
86
+ "prepend:icon": l["prepend:icon"],
85
87
  readonly: e.readonly,
86
88
  required: e.required,
87
89
  rows: e.rows
@@ -98,14 +100,14 @@ const G = /* @__PURE__ */ f({
98
100
  "prepend-outer": a(() => [
99
101
  r(e.$slots, "prepend-outer")
100
102
  ]),
101
- prefix: a((i) => [
102
- r(e.$slots, "prefix", p(d(i)))
103
+ prefix: a((p) => [
104
+ r(e.$slots, "prefix", i(d(p)))
103
105
  ]),
104
- suffix: a((i) => [
105
- r(e.$slots, "suffix", p(d(i)))
106
+ suffix: a((p) => [
107
+ r(e.$slots, "suffix", i(d(p)))
106
108
  ]),
107
109
  _: 2
108
- }, 1040, ["id", "append:icon", "aria-describedby", "auto-grow", "autofocus", "compact", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "rows"])
110
+ }, 1040, ["id", "append:icon", "aria-describedby", "auto-grow", "autofocus", "clearable", "compact", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "rows"])
109
111
  ]),
110
112
  _: 3
111
113
  }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
package/dist/index117.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 "./index49.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 },
@@ -32,14 +33,14 @@ const E = /* @__PURE__ */ c({
32
33
  },
33
34
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
34
35
  setup(s, { emit: i }) {
35
- const r = s, o = i, l = h(!1), d = b(() => r.persistentHint || l.value), t = {
36
+ const r = s, o = i, n = b(!1), d = h(() => r.persistentHint || n.value), t = {
36
37
  onBlur: (e) => {
37
- l.value = !1, o("blur", e);
38
+ n.value = !1, o("blur", e);
38
39
  },
39
40
  onChange: (e) => o("change", e),
40
41
  onClick: (e) => o("click", e),
41
42
  onFocus: (e) => {
42
- l.value = !0, o("focus", e);
43
+ n.value = !0, o("focus", e);
43
44
  },
44
45
  onInput: (e) => o("input", e),
45
46
  onKeydown: (e) => o("keydown", e),
@@ -64,7 +65,7 @@ const E = /* @__PURE__ */ c({
64
65
  "show-hint": d.value
65
66
  }, {
66
67
  label: a((p) => [
67
- n(e.$slots, "label", v(B(p)))
68
+ l(e.$slots, "label", v(B(p)))
68
69
  ]),
69
70
  input: a(({ id: p, hasErrors: u, ariaDescribedby: m }) => [
70
71
  w(k, g({
@@ -73,6 +74,7 @@ const E = /* @__PURE__ */ c({
73
74
  "aria-describedby": m,
74
75
  autocomplete: e.autocomplete,
75
76
  autofocus: e.autofocus,
77
+ clearable: e.clearable,
76
78
  compact: e.compact,
77
79
  disabled: e.disabled,
78
80
  "has-errors": u,
@@ -86,25 +88,25 @@ const E = /* @__PURE__ */ c({
86
88
  type: e.type
87
89
  }, t), {
88
90
  "append-outer": a(() => [
89
- n(e.$slots, "append-outer")
91
+ l(e.$slots, "append-outer")
90
92
  ]),
91
93
  append: a(() => [
92
- n(e.$slots, "append")
94
+ l(e.$slots, "append")
93
95
  ]),
94
96
  prefix: a(() => [
95
- n(e.$slots, "prefix")
97
+ l(e.$slots, "prefix")
96
98
  ]),
97
99
  suffix: a(() => [
98
- n(e.$slots, "suffix")
100
+ l(e.$slots, "suffix")
99
101
  ]),
100
102
  prepend: a(() => [
101
- n(e.$slots, "prepend")
103
+ l(e.$slots, "prepend")
102
104
  ]),
103
105
  "prepend-outer": a(() => [
104
- n(e.$slots, "prepend-outer")
106
+ l(e.$slots, "prepend-outer")
105
107
  ]),
106
108
  _: 2
107
- }, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "compact", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "type"])
109
+ }, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "clearable", "compact", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "type"])
108
110
  ]),
109
111
  _: 3
110
112
  }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
package/dist/index119.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 "./index235.js";
4
- import B from "./index311.js";
3
+ import C from "./index225.js";
4
+ import B from "./index315.js";
5
5
  const V = /* @__PURE__ */ l({
6
6
  __name: "BbToast",
7
7
  props: {
package/dist/index121.js CHANGED
@@ -1,16 +1,16 @@
1
- import { defineComponent as V, ref as a, watch as H, computed as z, openBlock as B, createElementBlock as I, mergeProps as R, createElementVNode as c, renderSlot as E, normalizeProps as S, guardReactiveProps as U, unref as u, createVNode as W, withCtx as C, createBlock as j, createCommentVNode as q } from "vue";
2
- import { useFloating as A, arrow as G } from "./index222.js";
3
- import { useId as J } from "./index8.js";
1
+ import { defineComponent as H, ref as o, watch as I, computed as z, openBlock as E, createElementBlock as R, mergeProps as S, createElementVNode as p, renderSlot as B, normalizeProps as U, guardReactiveProps as W, unref as u, createVNode as j, withCtx as C, createBlock as q, createCommentVNode as A } from "vue";
2
+ import { useFloating as G, arrow as J } from "./index214.js";
3
+ import { useId as K } from "./index8.js";
4
4
  import { wait as L } from "./index130.js";
5
- import K from "./index13.js";
5
+ import Q from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as m } from "./index246.js";
8
- import { waitFor as Q } from "./index234.js";
9
- import X from "./index263.js";
7
+ import { throttle as v } from "./index249.js";
8
+ import { waitFor as X } from "./index224.js";
9
+ import Y from "./index266.js";
10
10
  /* empty css */
11
- import { useLocale as Y } from "./index232.js";
12
- import { autoUpdate as Z, flip as x, shift as ee, hide as te } from "./index237.js";
13
- const me = /* @__PURE__ */ V({
11
+ import { useLocale as Z } from "./index212.js";
12
+ import { autoUpdate as x, flip as ee, shift as te, hide as oe } from "./index228.js";
13
+ const ae = { class: "bb-tooltip__content" }, be = /* @__PURE__ */ H({
14
14
  __name: "BbTooltip",
15
15
  props: {
16
16
  arrowPadding: { default: 10 },
@@ -26,79 +26,81 @@ const me = /* @__PURE__ */ V({
26
26
  theme: { default: "default" },
27
27
  transitionDuration: { default: 250 }
28
28
  },
29
- setup(D) {
30
- const t = D, { t: _ } = Y(), v = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), M = a(), { placement: b, middlewareData: P } = A(s, d, {
29
+ setup(_) {
30
+ const t = _, { t: D } = Z(), c = `bb_${t.id ?? K().id.value}`, l = o(), M = o(), P = o(), { placement: b, middlewareData: T } = G(l, M, {
31
31
  placement: t.placement,
32
- whileElementsMounted: Z,
32
+ whileElementsMounted: x,
33
33
  middleware: [
34
- x(),
35
- ee({ padding: t.padding }),
36
- G({
37
- element: M,
34
+ ee(),
35
+ te({ padding: t.padding }),
36
+ J({
37
+ element: P,
38
38
  padding: t.arrowPadding
39
39
  }),
40
- te()
40
+ oe()
41
41
  ]
42
42
  });
43
- let w = () => {
43
+ let g = () => {
44
44
  };
45
- const g = a(!0), n = a(!1), r = a(!1), l = a(!1), p = a(!0), h = () => {
46
- r.value || n.value || t.disabled || (F(), document.addEventListener("mouseover", k, { passive: !0 }), document.addEventListener("keydown", y, { passive: !0 }));
47
- }, T = h, k = m((e) => {
48
- const o = e.target;
49
- if (o && o instanceof HTMLElement) {
50
- let f = !0;
51
- s.value && s.value.contains(o) && (f = !1), d.value && d.value.contains(o) && (f = !1), f && i();
45
+ const w = o(!0), n = o(!1), r = o(!1), s = o(!1), d = o(!0), h = () => {
46
+ r.value || n.value || t.disabled || (N(), document.addEventListener("mouseover", k, { passive: !0 }), document.addEventListener("keydown", y, { passive: !0 }));
47
+ }, $ = h;
48
+ let f = null;
49
+ const k = v((e) => {
50
+ const a = e.target;
51
+ if (a && a instanceof HTMLElement) {
52
+ let m = !0;
53
+ l.value && l.value.contains(a) && (m = !1), f ?? (f = document.getElementById(c)), f && f.contains(a) && (m = !1), m && i();
52
54
  }
53
55
  }, t.transitionDuration), y = (e) => {
54
56
  r.value && e.key === "Escape" && i();
55
- }, $ = () => {
56
- g.value = !1, i();
57
- }, O = a(!1), F = m(async () => {
58
- g.value && (O.value = !0, p.value = !1, l.value = !1, n.value = !0, await L(50), r.value = !0, n.value = !1, w = H(
57
+ }, O = () => {
58
+ w.value = !1, i();
59
+ }, F = o(!1), N = v(async () => {
60
+ w.value && (F.value = !0, d.value = !1, s.value = !1, n.value = !0, await L(50), r.value = !0, n.value = !1, g = I(
59
61
  () => {
60
62
  var e;
61
- return (e = P.value.hide) == null ? void 0 : e.referenceHidden;
63
+ return (e = T.value.hide) == null ? void 0 : e.referenceHidden;
62
64
  },
63
65
  async (e) => {
64
- !l.value && !p.value && e && await i();
66
+ !s.value && !d.value && e && await i();
65
67
  }
66
68
  ));
67
- }, t.transitionDuration), i = m(async () => {
68
- await Q(() => !n.value), document.removeEventListener("mouseover", k), document.removeEventListener("keydown", y), r.value = !1, n.value = !1, l.value = !0, await L(t.transitionDuration), l.value = !1, p.value = !0, w();
69
- }, t.transitionDuration), N = z(() => ({
69
+ }, t.transitionDuration), i = v(async () => {
70
+ await X(() => !n.value), document.removeEventListener("mouseover", k), document.removeEventListener("keydown", y), r.value = !1, n.value = !1, s.value = !0, await L(t.transitionDuration), s.value = !1, d.value = !0, g();
71
+ }, t.transitionDuration), V = z(() => ({
70
72
  class: {
71
73
  "bb-tooltip--block": t.block,
72
74
  [`bb-tooltip--${t.theme}`]: t.theme
73
75
  }
74
76
  }));
75
- return (e, o) => (B(), I("span", R({ class: "bb-tooltip" }, N.value), [
76
- c("span", {
77
+ return (e, a) => (E(), R("span", S({ class: "bb-tooltip" }, V.value), [
78
+ p("span", {
77
79
  ref_key: "wrapper",
78
- ref: s,
80
+ ref: l,
79
81
  class: "bb-tooltip__wrapper"
80
82
  }, [
81
- E(e.$slots, "activator", S(U({
83
+ B(e.$slots, "activator", U(W({
82
84
  props: {
83
- "aria-describedby": v,
85
+ "aria-describedby": c,
84
86
  onMouseenter: h,
85
- onFocus: u(T),
87
+ onFocus: u($),
86
88
  onBlur: u(i),
87
89
  disabled: e.disabled
88
90
  },
89
- closed: p.value,
90
- closing: l.value,
91
+ closed: d.value,
92
+ closing: s.value,
91
93
  disabled: e.disabled,
92
94
  open: r.value,
93
95
  opening: n.value,
94
96
  placement: u(b)
95
97
  })))
96
98
  ], 512),
97
- W(X, {
99
+ j(Y, {
98
100
  "arrow-padding": e.arrowPadding,
99
101
  "base-class": "bb-tooltip",
100
102
  "container-attributes": {
101
- id: v
103
+ id: c
102
104
  },
103
105
  eager: e.eager,
104
106
  offset: e.offset,
@@ -108,29 +110,25 @@ const me = /* @__PURE__ */ V({
108
110
  "teleport-target": e.teleportTarget,
109
111
  theme: e.theme,
110
112
  "transition-duration": e.transitionDuration,
111
- wrapper: s.value
113
+ wrapper: l.value
112
114
  }, {
113
115
  default: C(() => [
114
- c("span", {
115
- ref_key: "content",
116
- ref: d,
117
- class: "bb-tooltip__content"
118
- }, [
119
- e.showClose ? (B(), j(K, {
116
+ p("span", ae, [
117
+ e.showClose ? (E(), q(Q, {
120
118
  key: 0,
121
119
  "aria-hidden": "true",
122
- "aria-label": u(_)("common.closeLabel").value,
120
+ "aria-label": u(D)("common.closeLabel").value,
123
121
  class: "bb-tooltip__close",
124
122
  tabindex: "-1",
125
- onClick: $
123
+ onClick: O
126
124
  }, {
127
- default: C(() => o[0] || (o[0] = [
128
- c("svg", {
125
+ default: C(() => a[0] || (a[0] = [
126
+ p("svg", {
129
127
  fill: "none",
130
128
  viewBox: "0 0 24 24",
131
129
  xmlns: "http://www.w3.org/2000/svg"
132
130
  }, [
133
- c("path", {
131
+ p("path", {
134
132
  d: "M23 23L1 1M23 1L1 23",
135
133
  stroke: "currentColor",
136
134
  "stroke-linecap": "round",
@@ -139,9 +137,9 @@ const me = /* @__PURE__ */ V({
139
137
  ], -1)
140
138
  ])),
141
139
  _: 1
142
- }, 8, ["aria-label"])) : q("", !0),
143
- E(e.$slots, "default")
144
- ], 512)
140
+ }, 8, ["aria-label"])) : A("", !0),
141
+ B(e.$slots, "default")
142
+ ])
145
143
  ]),
146
144
  _: 3
147
145
  }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "teleport-target", "theme", "transition-duration", "wrapper"])
@@ -149,5 +147,5 @@ const me = /* @__PURE__ */ V({
149
147
  }
150
148
  });
151
149
  export {
152
- me as default
150
+ be as default
153
151
  };
package/dist/index123.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 "./index312.js";
2
+ import { flattenTree as T } from "./index314.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/index125.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, openBlock as o, createElementBlock as a, createElementVNode as t, renderSlot as p, createTextVNode as b, toDisplayString as m, unref as u, withModifiers as d, createCommentVNode as _ } from "vue";
2
- import { useLocale as f } from "./index232.js";
2
+ import { useLocale as f } from "./index212.js";
3
3
  const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
4
4
  __name: "BbChip",
5
5
  props: {
package/dist/index127.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 "./index210.js";
2
+ import { isCssColor as I } from "./index238.js";
3
3
  const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index128.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 "./index246.js";
2
+ import { throttle as g } from "./index249.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index129.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 "./index210.js";
2
+ import { isCssColor as u } from "./index238.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index13.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, getCurrentInstance as d, shallowRef as x, watch as S, computed as f, openBlock as L, createBlock as B, resolveDynamicComponent as N, unref as $, mergeProps as F, withCtx as w, renderSlot as A, createTextVNode as P, toDisplayString as _, resolveComponent as m } from "vue";
2
2
  import { _config as o } from "./index4.js";
3
- import { useLogger as v } from "./index240.js";
4
- import { hash as g } from "./index219.js";
3
+ import { useLogger as v } from "./index243.js";
4
+ import { hash as g } from "./index235.js";
5
5
  const I = /* @__PURE__ */ C({
6
6
  __name: "BaseButton",
7
7
  props: {
package/dist/index131.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index205.js";
1
+ import { clamp as o } from "./index206.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,5 +1,5 @@
1
- import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as W, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isObject as J, isClient as K } from "./index249.js";
2
- import { bypassFilter as ve, createFilterWrapper as de, debounceFilter as pe, debouncedWatch as he, getLifeCycleTarget as me, throttleFilter as be, debouncedWatch as ge, watchWithFilter as ye } from "./index249.js";
1
+ import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as W, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isObject as J, isClient as K } from "./index205.js";
2
+ import { bypassFilter as ve, createFilterWrapper as de, debounceFilter as pe, debouncedWatch as he, getLifeCycleTarget as me, throttleFilter as be, debouncedWatch as ge, watchWithFilter as ye } from "./index205.js";
3
3
  import { computed as w, watch as z, ref as S, reactive as k, getCurrentInstance as U, onMounted as Z, watchEffect as ee } from "vue";
4
4
  function L(l) {
5
5
  var o;
package/dist/index133.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index317.js";
2
- import { isPlainObject as c } from "./index318.js";
1
+ import { isArray as p } from "./index323.js";
2
+ import { isPlainObject as c } from "./index324.js";
3
3
  function i(e, n, u, l, r) {
4
4
  const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
5
5
  o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index15.js CHANGED
@@ -1,17 +1,19 @@
1
- import { defineComponent as v, ref as h, computed as g, watchPostEffect as C, openBlock as w, createElementBlock as B, Fragment as V, createVNode as t, normalizeClass as H, withCtx as n, renderSlot as l, createElementVNode as s, normalizeStyle as E, withModifiers as q, withDirectives as I, mergeProps as $, unref as d } from "vue";
1
+ import { defineComponent as v, ref as h, computed as C, watchPostEffect as g, openBlock as V, createElementBlock as B, Fragment as w, createVNode as d, normalizeClass as H, withCtx as n, renderSlot as r, unref as t, createElementVNode as s, normalizeStyle as $, withModifiers as E, withDirectives as q, mergeProps as I } from "vue";
2
2
  import M from "./index207.js";
3
3
  /* empty css */
4
4
  import L from "./index209.js";
5
- import { vMaska as z } from "./index233.js";
6
- import { isHex as D } from "./index248.js";
7
- import { useLocale as F } from "./index232.js";
8
- const P = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], N = ["aria-invalid", "aria-label", "disabled", "required"], J = /* @__PURE__ */ v({
5
+ import { vMaska as N } from "./index210.js";
6
+ import { isHex as z } from "./index211.js";
7
+ import { useLocale as D } from "./index212.js";
8
+ import { isNotNil as F } from "./index134.js";
9
+ const P = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], S = ["aria-invalid", "aria-label", "disabled", "required"], U = /* @__PURE__ */ v({
9
10
  __name: "BaseColorInput",
10
11
  props: {
11
12
  "append:icon": {},
12
13
  ariaDescribedby: {},
13
14
  autocomplete: {},
14
15
  autofocus: {},
16
+ clearable: { type: Boolean },
15
17
  compact: { type: Boolean },
16
18
  disabled: { type: Boolean },
17
19
  hasErrors: { type: Boolean },
@@ -26,7 +28,7 @@ const P = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
26
28
  },
27
29
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
28
30
  setup(p, { emit: u }) {
29
- const a = p, o = u, { t: c } = F(), i = h(), m = g(() => ({
31
+ const a = p, o = u, { t: c } = D(), i = h(), m = C(() => ({
30
32
  "bb-base-color-input": !0,
31
33
  "bb-base-color-input--disabled": a.disabled,
32
34
  "bb-base-color-input--errors": a.hasErrors,
@@ -45,57 +47,59 @@ const P = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
45
47
  onMousedown: (e) => o("mousedown", e),
46
48
  onMouseup: (e) => o("mouseup", e),
47
49
  onMaska: (e) => {
48
- const r = e.detail;
49
- D(r.masked) ? o("update:modelValue", r.masked) : r.masked === "" && o("update:modelValue", null);
50
+ const l = e.detail;
51
+ z(l.masked) ? o("update:modelValue", l.masked) : l.masked === "" && o("update:modelValue", null);
50
52
  }
51
53
  }, f = () => {
52
54
  var e;
53
55
  (e = i.value) == null || e.click();
54
- }, k = {
56
+ }, y = {
55
57
  mask: "!#HHHHHH",
56
58
  tokens: {
57
59
  H: { pattern: /[0-9a-fA-F]/ }
58
60
  },
59
61
  eager: !0
60
- }, y = (e) => {
62
+ }, k = (e) => {
61
63
  e.target instanceof HTMLInputElement && o("update:modelValue", e.target.value);
62
64
  };
63
- return C(() => {
65
+ return g(() => {
64
66
  i.value && (i.value.value = a.modelValue ?? "");
65
- }), (e, r) => (w(), B(V, null, [
66
- t(L, {
67
+ }), (e, l) => (V(), B(w, null, [
68
+ d(L, {
67
69
  class: H(m.value)
68
70
  }, {
69
71
  "prepend-outer": n(() => [
70
- l(e.$slots, "prepend-outer")
72
+ r(e.$slots, "prepend-outer")
71
73
  ]),
72
74
  "append-outer": n(() => [
73
- l(e.$slots, "append-outer")
75
+ r(e.$slots, "append-outer")
74
76
  ]),
75
77
  default: n(() => [
76
- t(M, {
78
+ d(M, {
77
79
  "append:icon": a["append:icon"],
78
- "prepend:icon": a["prepend:icon"]
80
+ clearable: e.clearable && t(F)(e.modelValue),
81
+ "prepend:icon": a["prepend:icon"],
82
+ "onClick:clear": l[0] || (l[0] = (A) => e.$emit("update:modelValue", null))
79
83
  }, {
80
84
  prepend: n(() => [
81
- l(e.$slots, "prepend")
85
+ r(e.$slots, "prepend")
82
86
  ]),
83
87
  prefix: n(() => [
84
- l(e.$slots, "prefix")
88
+ r(e.$slots, "prefix")
85
89
  ]),
86
90
  append: n(() => [
87
91
  s("span", {
88
92
  class: "bb-base-color-input__indicator",
89
- style: E({ backgroundColor: a.modelValue ?? void 0 }),
90
- onClick: q(f, ["stop"])
93
+ style: $({ backgroundColor: a.modelValue ?? void 0 }),
94
+ onClick: E(f, ["stop"])
91
95
  }, null, 4),
92
- l(e.$slots, "append")
96
+ r(e.$slots, "append")
93
97
  ]),
94
98
  suffix: n(() => [
95
- l(e.$slots, "suffix")
99
+ r(e.$slots, "suffix")
96
100
  ]),
97
101
  default: n(() => [
98
- I(s("input", $(b, {
102
+ q(s("input", I(b, {
99
103
  id: e.id,
100
104
  ref: "input",
101
105
  "aria-describedby": e.ariaDescribedby,
@@ -109,33 +113,34 @@ const P = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
109
113
  readonly: e.readonly,
110
114
  required: e.required,
111
115
  size: "1",
116
+ type: "text",
112
117
  value: e.modelValue
113
118
  }), null, 16, P), [
114
- [d(z), k]
119
+ [t(N), y]
115
120
  ]),
116
121
  s("input", {
117
122
  ref_key: "picker",
118
123
  ref: i,
119
124
  "aria-hidden": "true",
120
125
  "aria-invalid": e.hasErrors ? !0 : void 0,
121
- "aria-label": d(c)("colorInput.paletteLabel").value,
126
+ "aria-label": t(c)("colorInput.paletteLabel").value,
122
127
  class: "bb-base-color-input__picker",
123
128
  disabled: e.disabled || e.readonly,
124
129
  required: e.required,
125
130
  tabindex: "-1",
126
131
  type: "color",
127
- onInput: y
128
- }, null, 40, N)
132
+ onInput: k
133
+ }, null, 40, S)
129
134
  ]),
130
135
  _: 3
131
- }, 8, ["append:icon", "prepend:icon"])
136
+ }, 8, ["append:icon", "clearable", "prepend:icon"])
132
137
  ]),
133
138
  _: 3
134
139
  }, 8, ["class"]),
135
- r[0] || (r[0] = s("span", null, null, -1))
140
+ l[1] || (l[1] = s("span", null, null, -1))
136
141
  ], 64));
137
142
  }
138
143
  });
139
144
  export {
140
- J as default
145
+ U as default
141
146
  };
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as l, renderSlot as F } from "vue";
2
- import { isCssColor as y } from "./index210.js";
3
- import { when as N } from "./index211.js";
4
- import { booleanishToBoolean as S } from "./index212.js";
2
+ import { isCssColor as y } from "./index238.js";
3
+ import { when as N } from "./index239.js";
4
+ import { booleanishToBoolean as S } from "./index240.js";
5
5
  const A = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"