bitboss-ui 2.0.142 → 2.0.144

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 (174) hide show
  1. package/dist/components/BaseButton/RouterComponent.vue.d.ts +16 -0
  2. package/dist/index100.js +9 -9
  3. package/dist/index111.js +12 -12
  4. package/dist/index119.js +2 -2
  5. package/dist/index121.js +6 -6
  6. package/dist/index123.js +1 -1
  7. package/dist/index125.js +1 -1
  8. package/dist/index127.js +1 -1
  9. package/dist/index128.js +1 -1
  10. package/dist/index129.js +1 -1
  11. package/dist/index13.js +39 -52
  12. package/dist/index131.js +1 -1
  13. package/dist/index133.js +1 -1
  14. package/dist/index134.js +2 -2
  15. package/dist/index15.js +8 -8
  16. package/dist/index17.js +3 -3
  17. package/dist/index19.js +35 -33
  18. package/dist/index207.js +3 -2
  19. package/dist/index208.js +2 -2
  20. package/dist/index209.js +4 -5
  21. package/dist/index21.js +16 -16
  22. package/dist/index210.js +2 -125
  23. package/dist/index211.js +4 -16
  24. package/dist/index212.js +40 -15
  25. package/dist/index213.js +20 -19
  26. package/dist/index214.js +94 -15
  27. package/dist/index216.js +200 -2
  28. package/dist/index218.js +65 -12
  29. package/dist/index220.js +13 -6
  30. package/dist/index221.js +12 -93
  31. package/dist/index222.js +36 -0
  32. package/dist/index223.js +5 -66
  33. package/dist/index224.js +18 -0
  34. package/dist/index225.js +16 -13
  35. package/dist/index226.js +19 -2
  36. package/dist/index227.js +15 -86
  37. package/dist/index228.js +21 -0
  38. package/dist/index229.js +27 -29
  39. package/dist/index23.js +16 -16
  40. package/dist/index230.js +3 -17
  41. package/dist/index231.js +2 -51
  42. package/dist/index232.js +8 -15
  43. package/dist/index233.js +250 -3
  44. package/dist/index234.js +52 -12
  45. package/dist/index235.js +44 -16
  46. package/dist/index236.js +5 -8
  47. package/dist/index237.js +60 -2
  48. package/dist/index238.js +3 -4
  49. package/dist/index239.js +6 -2
  50. package/dist/index240.js +7 -3
  51. package/dist/index241.js +15 -19
  52. package/dist/index242.js +2 -27
  53. package/dist/index243.js +79 -243
  54. package/dist/index245.js +29 -44
  55. package/dist/index246.js +17 -5
  56. package/dist/index247.js +50 -59
  57. package/dist/index248.js +15 -4
  58. package/dist/index249.js +12 -200
  59. package/dist/index25.js +7 -7
  60. package/dist/index250.js +18 -0
  61. package/dist/index251.js +125 -3
  62. package/dist/index252.js +2 -7
  63. package/dist/index253.js +2 -15
  64. package/dist/index254.js +2 -18
  65. package/dist/index255.js +17 -125
  66. package/dist/index256.js +124 -104
  67. package/dist/index257.js +108 -0
  68. package/dist/{index258.js → index259.js} +2 -2
  69. package/dist/index261.js +12 -228
  70. package/dist/index262.js +226 -367
  71. package/dist/index263.js +369 -2
  72. package/dist/index264.js +2 -2
  73. package/dist/index265.js +2 -10
  74. package/dist/index266.js +9 -2
  75. package/dist/index267.js +2 -8
  76. package/dist/index268.js +6 -23
  77. package/dist/index269.js +16 -6
  78. package/dist/index27.js +1 -1
  79. package/dist/index270.js +8 -15
  80. package/dist/index271.js +23 -3
  81. package/dist/index272.js +224 -17
  82. package/dist/index273.js +4 -9
  83. package/dist/index274.js +8 -27
  84. package/dist/index275.js +427 -277
  85. package/dist/index276.js +175 -5
  86. package/dist/index277.js +3 -2
  87. package/dist/index278.js +3 -2
  88. package/dist/index279.js +3 -2
  89. package/dist/index281.js +7 -2
  90. package/dist/index282.js +7 -2
  91. package/dist/index283.js +10 -430
  92. package/dist/index284.js +2 -176
  93. package/dist/index285.js +9 -3
  94. package/dist/index286.js +8 -3
  95. package/dist/index287.js +202 -0
  96. package/dist/index288.js +281 -7
  97. package/dist/index289.js +6 -7
  98. package/dist/index29.js +3 -3
  99. package/dist/index290.js +2 -11
  100. package/dist/index291.js +2 -4
  101. package/dist/index292.js +2 -200
  102. package/dist/index295.js +2 -2
  103. package/dist/index296.js +2 -2
  104. package/dist/index297.js +1 -1
  105. package/dist/index298.js +1 -1
  106. package/dist/index299.js +1 -21
  107. package/dist/index300.js +4 -0
  108. package/dist/index301.js +26 -222
  109. package/dist/index302.js +22 -9
  110. package/dist/index304.js +2 -3
  111. package/dist/index305.js +89 -2
  112. package/dist/index306.js +3 -89
  113. package/dist/index307.js +15 -124
  114. package/dist/index308.js +2 -3
  115. package/dist/index309.js +126 -3
  116. package/dist/index31.js +2 -2
  117. package/dist/index310.js +3 -2
  118. package/dist/index311.js +3 -436
  119. package/dist/index312.js +2 -127
  120. package/dist/index313.js +436 -2
  121. package/dist/index314.js +126 -66
  122. package/dist/index315.js +67 -5
  123. package/dist/index316.js +5 -5
  124. package/dist/index317.js +2 -8
  125. package/dist/index321.js +4 -32
  126. package/dist/index322.js +8 -28
  127. package/dist/index323.js +6 -0
  128. package/dist/index324.js +2 -2
  129. package/dist/index325.js +7 -58
  130. package/dist/index326.js +33 -33
  131. package/dist/index327.js +58 -4
  132. package/dist/index328.js +46 -6
  133. package/dist/index329.js +6 -18
  134. package/dist/index33.js +37 -35
  135. package/dist/index330.js +17 -5
  136. package/dist/index331.js +32 -7
  137. package/dist/index332.js +28 -6
  138. package/dist/index334.js +7 -46
  139. package/dist/index335.js +6 -2
  140. package/dist/index337.js +2 -3
  141. package/dist/index339.js +3 -424
  142. package/dist/index340.js +420 -43
  143. package/dist/index341.js +49 -0
  144. package/dist/index35.js +4 -4
  145. package/dist/index37.js +22 -22
  146. package/dist/index39.js +5 -5
  147. package/dist/index41.js +2 -2
  148. package/dist/index43.js +34 -32
  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 +2 -2
  155. package/dist/index61.js +10 -12
  156. package/dist/index75.js +3 -3
  157. package/dist/index77.js +1 -1
  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 +2 -2
  162. package/dist/index88.js +4 -4
  163. package/dist/index90.js +1 -1
  164. package/dist/style.css +1 -1
  165. package/package.json +1 -1
  166. package/dist/index215.js +0 -4
  167. package/dist/index217.js +0 -43
  168. package/dist/index219.js +0 -22
  169. package/dist/index244.js +0 -54
  170. package/dist/index260.js +0 -14
  171. package/dist/index303.js +0 -10
  172. package/dist/index338.js +0 -4
  173. /package/dist/{index333.js → index336.js} +0 -0
  174. /package/dist/{index280.js → index342.js} +0 -0
package/dist/index33.js CHANGED
@@ -1,16 +1,16 @@
1
- import { defineComponent as M, ref as g, toRef as d, openBlock as S, createBlock as R, unref as V, withCtx as t, renderSlot as i, normalizeProps as f, guardReactiveProps as h, createVNode as z, mergeProps as B, createSlots as G } from "vue";
1
+ import { defineComponent as M, ref as g, toRef as d, openBlock as S, createBlock as R, unref as V, withCtx as t, renderSlot as i, normalizeProps as h, guardReactiveProps as v, createVNode as z, mergeProps as k, createSlots as G } from "vue";
2
2
  import W from "./index31.js";
3
3
  /* empty css */
4
- import j from "./index227.js";
4
+ import j from "./index243.js";
5
5
  /* empty css */
6
- import { useItemsGetter as A } from "./index229.js";
7
- import { usePrefill as K } from "./index235.js";
8
- import { useIndexById as k } from "./index230.js";
9
- import { useBaseOptions as N } from "./index231.js";
10
- import { useCoherence as O } from "./index232.js";
11
- import { hash as U } from "./index233.js";
12
- import { useHashedWatcher as T } from "./index234.js";
13
- const se = /* @__PURE__ */ M({
6
+ import { useItemsGetter as A } from "./index245.js";
7
+ import { usePrefill as K } from "./index250.js";
8
+ import { useIndexById as B } from "./index246.js";
9
+ import { useBaseOptions as N } from "./index247.js";
10
+ import { useCoherence as O } from "./index248.js";
11
+ import { hash as U } from "./index230.js";
12
+ import { useHashedWatcher as T } from "./index249.js";
13
+ const le = /* @__PURE__ */ M({
14
14
  __name: "BaseRadioGroup",
15
15
  props: {
16
16
  ariaDescribedby: {},
@@ -36,33 +36,33 @@ const se = /* @__PURE__ */ M({
36
36
  required: { type: Boolean }
37
37
  },
38
38
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
39
- setup(E, { emit: L }) {
40
- const o = E, a = L, v = g(), r = g(!1), {
41
- getter: u,
42
- items: $,
39
+ setup($, { emit: E }) {
40
+ const o = $, a = E, u = g(), r = g(!1), {
41
+ getter: m,
42
+ items: L,
43
43
  loading: w
44
44
  } = A({
45
45
  items: d(o, "items")
46
- }), m = () => {
46
+ }), c = () => {
47
47
  o.enforceCoherence && !y.value && a("update:modelValue", null);
48
48
  }, { hasPrefilled: D } = K({
49
49
  onStart: !0,
50
50
  currentValue: o.modelValue,
51
51
  multiple: !1,
52
52
  fn: async ({ prefill: e }) => {
53
- await u(e, o.modelValue), m();
53
+ await m(e, o.modelValue), c();
54
54
  }
55
- }), { data: I } = k({
55
+ }), { data: I } = B({
56
56
  items: d(o, "modelValue")
57
57
  }), { options: b } = N({
58
58
  disabled: d(o, "disabled"),
59
- items: $,
59
+ items: L,
60
60
  itemText: o.itemText,
61
61
  itemValue: o.itemValue,
62
62
  max: 1 / 0,
63
63
  selectable: !0,
64
64
  selectedIndexedByHash: I
65
- }), { data: C } = k({
65
+ }), { data: C } = B({
66
66
  items: b,
67
67
  key: "valueHash"
68
68
  }), { coherent: y } = O({
@@ -70,11 +70,11 @@ const se = /* @__PURE__ */ M({
70
70
  multiple: !1,
71
71
  iteratee: (e) => !!C.value[U(e)]
72
72
  });
73
- let l = 0;
73
+ let s = 0;
74
74
  T(
75
75
  () => o.modelValue,
76
76
  async () => {
77
- l++, y.value || (await u(!1, o.modelValue), m()), l--;
77
+ s++, y.value || (await m(!1, o.modelValue), c()), s--;
78
78
  },
79
79
  {
80
80
  debounce: o.modelValueDebounceTime
@@ -82,7 +82,7 @@ const se = /* @__PURE__ */ M({
82
82
  ), T(
83
83
  () => [o.dependencies, o.items],
84
84
  async () => {
85
- D.value && (l++, await u(!1, o.modelValue), l === 1 && m(), l--);
85
+ D.value && (s++, await m(!1, o.modelValue), s === 1 && c(), s--);
86
86
  },
87
87
  {
88
88
  debounce: o.depsDebounceTime
@@ -96,21 +96,23 @@ const se = /* @__PURE__ */ M({
96
96
  onChange: (e) => a("change", e),
97
97
  onClick: (e) => a("click", e),
98
98
  onFocus: (e) => {
99
- a("focus", e), r.value || (document.addEventListener("focusin", c, { passive: !0 }), document.addEventListener("click", p, { passive: !0 }), r.value = !0);
99
+ a("focus", e), r.value || (document.addEventListener("focusin", p, { passive: !0 }), document.addEventListener("click", f, { passive: !0 }), r.value = !0);
100
100
  },
101
101
  onInput: (e) => a("input", e),
102
102
  onKeydown: (e) => a("keydown", e),
103
103
  onMousedown: (e) => a("mousedown", e),
104
104
  onMouseup: (e) => a("mouseup", e),
105
105
  "onUpdate:modelValue": (e) => a("update:modelValue", e)
106
- }, c = (e) => {
107
- var s;
108
- e.target instanceof HTMLElement && ((s = v.value) != null && s.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", p)));
109
106
  }, p = (e) => {
110
- var s;
111
- e.target instanceof HTMLElement && ((s = v.value) != null && s.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", p)));
107
+ var l;
108
+ e.target instanceof HTMLElement && ((l = u.value) != null && l.$el.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
109
+ }, f = (e) => {
110
+ var l;
111
+ e.target instanceof HTMLElement && ((l = u.value) != null && l.$el.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
112
112
  };
113
- return (e, s) => (S(), R(j, {
113
+ return (e, l) => (S(), R(j, {
114
+ ref_key: "container",
115
+ ref: u,
114
116
  class: "bb-base-radio-group",
115
117
  direction: e.direction,
116
118
  "has-errors": e.hasErrors,
@@ -130,13 +132,13 @@ const se = /* @__PURE__ */ M({
130
132
  i(e.$slots, "no-data")
131
133
  ]),
132
134
  label: t((n) => [
133
- i(e.$slots, "label", f(h(n)))
135
+ i(e.$slots, "label", h(v(n)))
134
136
  ]),
135
137
  "option:prepend": t((n) => [
136
- i(e.$slots, "option:prepend", f(h(n)))
138
+ i(e.$slots, "option:prepend", h(v(n)))
137
139
  ]),
138
140
  input: t(({ option: n, index: q }) => [
139
- z(W, B({
141
+ z(W, k({
140
142
  id: H(n),
141
143
  "aria-describedby": e.ariaDescribedby,
142
144
  autofocus: e.autofocus && !q,
@@ -153,7 +155,7 @@ const se = /* @__PURE__ */ M({
153
155
  e.$slots.icon ? {
154
156
  name: "icon",
155
157
  fn: t((F) => [
156
- i(e.$slots, "icon", B({
158
+ i(e.$slots, "icon", k({
157
159
  item: n.item,
158
160
  text: n.text
159
161
  }, F))
@@ -163,7 +165,7 @@ const se = /* @__PURE__ */ M({
163
165
  ]), 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "model-value", "name", "readonly", "required", "value"])
164
166
  ]),
165
167
  "option:append": t((n) => [
166
- i(e.$slots, "option:append", f(h(n)))
168
+ i(e.$slots, "option:append", h(v(n)))
167
169
  ]),
168
170
  append: t(() => [
169
171
  i(e.$slots, "append")
@@ -173,5 +175,5 @@ const se = /* @__PURE__ */ M({
173
175
  }
174
176
  });
175
177
  export {
176
- se as default
178
+ le as default
177
179
  };
package/dist/index330.js CHANGED
@@ -1,9 +1,21 @@
1
- function l(n, c, r = 1) {
2
- const o = Math.max(Math.ceil((c - n) / r), 0), t = new Array(o);
3
- for (let e = 0; e < o; e++, n += r)
4
- t[e] = n;
1
+ function l(t, ...e) {
2
+ if (t.length) {
3
+ const o = t[0];
4
+ if (typeof o == "string") return [...t].sort(r);
5
+ if (typeof o == "number") return [...t].sort(r);
6
+ if (e && e.length)
7
+ return [...t].sort((f, u) => {
8
+ for (let n = 0; n < e.length; n++) {
9
+ const i = e[n], s = r(f[i], u[i]);
10
+ if (s) return s;
11
+ }
12
+ return 0;
13
+ });
14
+ throw new Error("Invalid comparison");
15
+ }
5
16
  return t;
6
17
  }
18
+ const r = (t, e) => t < e ? -1 : t > e ? 1 : 0;
7
19
  export {
8
- l as range
20
+ l as sort
9
21
  };
package/dist/index331.js CHANGED
@@ -1,10 +1,35 @@
1
- function i(t) {
2
- if (t = t.replace(/^#/, ""), !/^([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$/.test(t))
3
- throw new Error("Invalid hex code");
4
- t.length === 3 && (t = t.split("").map((n) => n + n).join(""));
5
- const r = parseInt(t.slice(0, 2), 16), s = parseInt(t.slice(2, 4), 16), o = parseInt(t.slice(4, 6), 16);
6
- return [r, s, o];
1
+ import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
+ /* empty css */
3
+ import n from "./index281.js";
4
+ const l = {}, s = {
5
+ class: "bb-error-icon",
6
+ fill: "none",
7
+ viewBox: "0 0 20 20",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ };
10
+ function i(c, r) {
11
+ return e(), t("svg", s, r[0] || (r[0] = [
12
+ o("path", {
13
+ d: "M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z",
14
+ fill: "currentColor"
15
+ }, null, -1),
16
+ o("path", {
17
+ d: "M9.99414 6.66666V9.99999",
18
+ stroke: "white",
19
+ "stroke-linecap": "round",
20
+ "stroke-linejoin": "round",
21
+ "stroke-width": "2"
22
+ }, null, -1),
23
+ o("path", {
24
+ d: "M9.99414 13.3333H10.0025",
25
+ stroke: "white",
26
+ "stroke-linecap": "round",
27
+ "stroke-linejoin": "round",
28
+ "stroke-width": "2"
29
+ }, null, -1)
30
+ ]));
7
31
  }
32
+ const a = /* @__PURE__ */ n(l, [["render", i]]);
8
33
  export {
9
- i as hexToRgb
34
+ a as default
10
35
  };
package/dist/index332.js CHANGED
@@ -1,8 +1,30 @@
1
- function l(c, f, r) {
2
- const t = c / 255, n = f / 255, o = r / 255, i = Math.max(t, n, o), a = Math.min(t, n, o), s = i - a;
3
- let e = 0;
4
- return s !== 0 && (i === t ? e = (n - o) / s % 6 : i === n ? e = (o - t) / s + 2 : i === o && (e = (t - n) / s + 4), e *= 60, e < 0 && (e += 360)), e;
5
- }
1
+ import { defineComponent as l, openBlock as n, createElementBlock as r, unref as a, createElementVNode as t } from "vue";
2
+ import { useLocale as s } from "./index221.js";
3
+ const c = ["aria-label"], b = /* @__PURE__ */ l({
4
+ __name: "ClearableButton",
5
+ setup(u) {
6
+ const { t: o } = s();
7
+ return (i, e) => (n(), r("button", {
8
+ "aria-label": a(o)("common.clearLabel").value,
9
+ class: "bb-clearable-button",
10
+ type: "button"
11
+ }, e[0] || (e[0] = [
12
+ t("svg", {
13
+ viewBox: "0 0 24 24",
14
+ xmlns: "http://www.w3.org/2000/svg"
15
+ }, [
16
+ t("path", {
17
+ d: "M12 12l7 7M12 12l-7 -7M12 12l-7 7M12 12l7 -7",
18
+ fill: "none",
19
+ stroke: "currentColor",
20
+ "stroke-linecap": "round",
21
+ "stroke-linejoin": "round",
22
+ "stroke-width": "2"
23
+ })
24
+ ], -1)
25
+ ]), 8, c));
26
+ }
27
+ });
6
28
  export {
7
- l as getHueFromRGB
29
+ b as default
8
30
  };
package/dist/index334.js CHANGED
@@ -1,49 +1,10 @@
1
- import { observeElementRect as f, observeElementOffset as s, elementScroll as d, Virtualizer as p } from "./index339.js";
2
- import { defaultKeyExtractor as S, defaultRangeExtractor as V, measureElement as b } from "./index339.js";
3
- import { computed as g, unref as l, shallowRef as E, watch as o, triggerRef as i, onScopeDispose as v } from "vue";
4
- function w(e) {
5
- const t = new p(l(e)), a = E(t), u = t._didMount();
6
- return o(
7
- () => l(e).getScrollElement(),
8
- (r) => {
9
- r && t._willUpdate();
10
- },
11
- {
12
- immediate: !0
13
- }
14
- ), o(
15
- () => l(e),
16
- (r) => {
17
- t.setOptions({
18
- ...r,
19
- onChange: (c, m) => {
20
- var n;
21
- i(a), (n = r.onChange) == null || n.call(r, c, m);
22
- }
23
- }), t._willUpdate(), i(a);
24
- },
25
- {
26
- immediate: !0
27
- }
28
- ), v(u), a;
29
- }
30
- function z(e) {
31
- return w(
32
- g(() => ({
33
- observeElementRect: f,
34
- observeElementOffset: s,
35
- scrollToFn: d,
36
- ...l(e)
37
- }))
38
- );
1
+ function i(t) {
2
+ if (t = t.replace(/^#/, ""), !/^([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$/.test(t))
3
+ throw new Error("Invalid hex code");
4
+ t.length === 3 && (t = t.split("").map((n) => n + n).join(""));
5
+ const r = parseInt(t.slice(0, 2), 16), s = parseInt(t.slice(2, 4), 16), o = parseInt(t.slice(4, 6), 16);
6
+ return [r, s, o];
39
7
  }
40
8
  export {
41
- p as Virtualizer,
42
- S as defaultKeyExtractor,
43
- V as defaultRangeExtractor,
44
- d as elementScroll,
45
- b as measureElement,
46
- s as observeElementOffset,
47
- f as observeElementRect,
48
- z as useVirtualizer
9
+ i as hexToRgb
49
10
  };
package/dist/index335.js CHANGED
@@ -1,4 +1,8 @@
1
- import f from "./index314.js";
1
+ function l(c, f, r) {
2
+ const t = c / 255, n = f / 255, o = r / 255, i = Math.max(t, n, o), a = Math.min(t, n, o), s = i - a;
3
+ let e = 0;
4
+ return s !== 0 && (i === t ? e = (n - o) / s % 6 : i === n ? e = (o - t) / s + 2 : i === o && (e = (t - n) / s + 4), e *= 60, e < 0 && (e += 360)), e;
5
+ }
2
6
  export {
3
- f as default
7
+ l as getHueFromRGB
4
8
  };
package/dist/index337.js CHANGED
@@ -1,5 +1,4 @@
1
- import o from "./index322.js";
2
- /* empty css */
1
+ import f from "./index315.js";
3
2
  export {
4
- o as default
3
+ f as default
5
4
  };