bitboss-ui 2.1.136 → 2.1.137

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 (176) hide show
  1. package/dist/ai/BaseNumberInput.md +87 -10
  2. package/dist/ai/BbNumberInput.md +6 -0
  3. package/dist/components/BaseNumberInput/types.d.ts +4 -0
  4. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +2 -0
  5. package/dist/components/BbNumberInput/types.d.ts +4 -0
  6. package/dist/index109.js +9 -9
  7. package/dist/index110.js +18 -18
  8. package/dist/index118.js +1 -1
  9. package/dist/index124.js +3 -3
  10. package/dist/index126.js +14 -14
  11. package/dist/index134.js +2 -2
  12. package/dist/index136.js +4 -4
  13. package/dist/index138.js +1 -1
  14. package/dist/index14.js +1 -1
  15. package/dist/index142.js +2 -2
  16. package/dist/index146.js +1 -1
  17. package/dist/index148.js +2 -2
  18. package/dist/index150.js +1 -1
  19. package/dist/index16.js +3 -3
  20. package/dist/index18.js +3 -3
  21. package/dist/index20.js +9 -9
  22. package/dist/index22.js +14 -14
  23. package/dist/index224.js +2 -138
  24. package/dist/index225.js +138 -2
  25. package/dist/index226.js +2 -2
  26. package/dist/index227.js +1 -1
  27. package/dist/index228.js +1 -1
  28. package/dist/index229.js +3 -86
  29. package/dist/index230.js +88 -0
  30. package/dist/index232.js +28 -15
  31. package/dist/index233.js +15 -49
  32. package/dist/index234.js +48 -15
  33. package/dist/index235.js +18 -3
  34. package/dist/index236.js +3 -12
  35. package/dist/index237.js +11 -17
  36. package/dist/index238.js +18 -8
  37. package/dist/index239.js +8 -4
  38. package/dist/index24.js +10 -10
  39. package/dist/index240.js +2 -13
  40. package/dist/index241.js +2 -20
  41. package/dist/index242.js +3 -34
  42. package/dist/index243.js +5 -2
  43. package/dist/index244.js +5 -2
  44. package/dist/index245.js +5 -3
  45. package/dist/index246.js +5 -5
  46. package/dist/index247.js +2 -5
  47. package/dist/index248.js +6 -5
  48. package/dist/index249.js +268 -5
  49. package/dist/index250.js +52 -5
  50. package/dist/index251.js +52 -5
  51. package/dist/index252.js +32 -3
  52. package/dist/index253.js +57 -157
  53. package/dist/index254.js +15 -0
  54. package/dist/index255.js +188 -5
  55. package/dist/index256.js +3 -2
  56. package/dist/index257.js +3 -5
  57. package/dist/index258.js +18 -266
  58. package/dist/index259.js +25 -52
  59. package/dist/index26.js +4 -4
  60. package/dist/index260.js +8 -52
  61. package/dist/index261.js +12 -31
  62. package/dist/index262.js +13 -60
  63. package/dist/index263.js +160 -7
  64. package/dist/index265.js +4 -3
  65. package/dist/index266.js +23 -4
  66. package/dist/index267.js +33 -9
  67. package/dist/index268.js +28 -44
  68. package/dist/index270.js +9 -25
  69. package/dist/index271.js +2 -188
  70. package/dist/index272.js +2 -3
  71. package/dist/index273.js +7 -2
  72. package/dist/index274.js +7 -3
  73. package/dist/index275.js +2 -4
  74. package/dist/index276.js +5 -373
  75. package/dist/index278.js +3 -8
  76. package/dist/index279.js +5 -13
  77. package/dist/index28.js +1 -1
  78. package/dist/index280.js +5 -13
  79. package/dist/index281.js +5 -11
  80. package/dist/index282.js +3 -18
  81. package/dist/index283.js +6 -11
  82. package/dist/index284.js +61 -100
  83. package/dist/index285.js +11 -0
  84. package/dist/index286.js +20 -99
  85. package/dist/index287.js +6 -0
  86. package/dist/index288.js +100 -101
  87. package/dist/index290.js +100 -33
  88. package/dist/index292.js +5 -0
  89. package/dist/index293.js +33 -8
  90. package/dist/index294.js +18 -23
  91. package/dist/index295.js +11 -7
  92. package/dist/index296.js +107 -6
  93. package/dist/index297.js +11 -16
  94. package/dist/index298.js +373 -9
  95. package/dist/index30.js +134 -105
  96. package/dist/index300.js +44 -3
  97. package/dist/index301.js +52 -20
  98. package/dist/index302.js +5 -66
  99. package/dist/index303.js +6 -2
  100. package/dist/index304.js +16 -7
  101. package/dist/index305.js +9 -7
  102. package/dist/index306.js +23 -6
  103. package/dist/index307.js +8 -5
  104. package/dist/index308.js +3 -2
  105. package/dist/index309.js +17 -3
  106. package/dist/index310.js +25 -14
  107. package/dist/index311.js +5 -28
  108. package/dist/index32.js +2 -2
  109. package/dist/index321.js +1 -1
  110. package/dist/index322.js +1 -1
  111. package/dist/index323.js +1 -1
  112. package/dist/index324.js +1 -1
  113. package/dist/index325.js +1 -1
  114. package/dist/index326.js +3 -5
  115. package/dist/index328.js +7 -125
  116. package/dist/index329.js +3 -2
  117. package/dist/index330.js +2 -15
  118. package/dist/index331.js +125 -2
  119. package/dist/index332.js +2 -19
  120. package/dist/index333.js +15 -2
  121. package/dist/index334.js +2 -3
  122. package/dist/index335.js +19 -3
  123. package/dist/index336.js +2 -5
  124. package/dist/index337.js +4 -4
  125. package/dist/index338.js +5 -0
  126. package/dist/index339.js +3 -7
  127. package/dist/index34.js +8 -8
  128. package/dist/index340.js +5 -3
  129. package/dist/index341.js +2 -3
  130. package/dist/index342.js +1 -1
  131. package/dist/index343.js +1 -1
  132. package/dist/index344.js +4 -719
  133. package/dist/index345.js +716 -363
  134. package/dist/index346.js +366 -57
  135. package/dist/index347.js +57 -2
  136. package/dist/index349.js +5 -7
  137. package/dist/index350.js +7 -5
  138. package/dist/index353.js +1 -1
  139. package/dist/index354.js +1 -1
  140. package/dist/index358.js +221 -86
  141. package/dist/index36.js +4 -4
  142. package/dist/index361.js +86 -221
  143. package/dist/index365.js +4 -4
  144. package/dist/index366.js +3 -3
  145. package/dist/index372.js +1 -1
  146. package/dist/index38.js +21 -21
  147. package/dist/index40.js +7 -7
  148. package/dist/index42.js +2 -2
  149. package/dist/index44.js +8 -8
  150. package/dist/index46.js +6 -6
  151. package/dist/index50.js +2 -2
  152. package/dist/index54.js +1 -1
  153. package/dist/index56.js +1 -1
  154. package/dist/index58.js +2 -2
  155. package/dist/index60.js +2 -2
  156. package/dist/index62.js +5 -5
  157. package/dist/index68.js +1 -1
  158. package/dist/index74.js +4 -4
  159. package/dist/index82.js +7 -7
  160. package/dist/index84.js +1 -1
  161. package/dist/index86.js +2 -2
  162. package/dist/index88.js +3 -3
  163. package/dist/index90.js +1 -1
  164. package/dist/index91.js +8 -6
  165. package/dist/index93.js +4 -4
  166. package/dist/index95.js +2 -2
  167. package/dist/index97.js +5 -5
  168. package/dist/index99.js +1 -1
  169. package/package.json +1 -1
  170. package/dist/index231.js +0 -32
  171. package/dist/index264.js +0 -4
  172. package/dist/index269.js +0 -55
  173. package/dist/index289.js +0 -25
  174. package/dist/index291.js +0 -30
  175. package/dist/index327.js +0 -6
  176. /package/dist/{index299.js → index277.js} +0 -0
package/dist/index224.js CHANGED
@@ -1,140 +1,4 @@
1
- import { onMounted as O, nextTick as W, getCurrentScope as S, onScopeDispose as C, watch as F, getCurrentInstance as g, isRef as P, toValue as b, hasInjectionContext as k, inject as v } from "vue";
2
- function V(e) {
3
- return S() ? (C(e), !0) : !1;
4
- }
5
- const w = /* @__PURE__ */ new WeakMap(), E = (...e) => {
6
- var r;
7
- const n = e[0], t = (r = g()) == null ? void 0 : r.proxy;
8
- if (t == null && !k())
9
- throw new Error("injectLocal must be called in setup");
10
- return t && w.has(t) && n in w.get(t) ? w.get(t)[n] : v(...e);
11
- }, G = typeof window < "u" && typeof document < "u";
12
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
13
- const _ = (e) => e != null, M = Object.prototype.toString, q = (e) => M.call(e) === "[object Object]", d = () => {
14
- };
15
- function y(e, r) {
16
- function n(...t) {
17
- return new Promise((o, i) => {
18
- Promise.resolve(e(() => r.apply(this, t), { fn: r, thisArg: this, args: t })).then(o).catch(i);
19
- });
20
- }
21
- return n;
22
- }
23
- const A = (e) => e();
24
- function x(e, r = {}) {
25
- let n, t, o = d;
26
- const i = (c) => {
27
- clearTimeout(c), o(), o = d;
28
- };
29
- let u;
30
- return (c) => {
31
- const a = b(e), l = b(r.maxWait);
32
- return n && i(n), a <= 0 || l !== void 0 && l <= 0 ? (t && (i(t), t = null), Promise.resolve(c())) : new Promise((f, p) => {
33
- o = r.rejectOnCancel ? p : f, u = c, l && !t && (t = setTimeout(() => {
34
- n && i(n), t = null, f(u());
35
- }, l)), n = setTimeout(() => {
36
- t && i(t), t = null, f(c());
37
- }, a);
38
- });
39
- };
40
- }
41
- function I(...e) {
42
- let r = 0, n, t = !0, o = d, i, u, s, c, a;
43
- !P(e[0]) && typeof e[0] == "object" ? { delay: u, trailing: s = !0, leading: c = !0, rejectOnCancel: a = !1 } = e[0] : [u, s = !0, c = !0, a = !1] = e;
44
- const l = () => {
45
- n && (clearTimeout(n), n = void 0, o(), o = d);
46
- };
47
- return (p) => {
48
- const m = b(u), j = Date.now() - r, h = () => i = p();
49
- return l(), m <= 0 ? (r = Date.now(), h()) : (j > m && (c || !t) ? (r = Date.now(), h()) : s && (i = new Promise((T, D) => {
50
- o = a ? D : T, n = setTimeout(() => {
51
- r = Date.now(), t = !0, T(h()), l();
52
- }, Math.max(0, m - j));
53
- })), !c && !n && (n = setTimeout(() => t = !0, m)), t = !1, i);
54
- };
55
- }
56
- function z(e) {
57
- return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
58
- }
59
- function L(e) {
60
- return g();
61
- }
62
- function B(e) {
63
- return Array.isArray(e) ? e : [e];
64
- }
65
- function H(e, r = 200, n = {}) {
66
- return y(
67
- x(r, n),
68
- e
69
- );
70
- }
71
- function J(e, r = 200, n = !1, t = !0, o = !1) {
72
- return y(
73
- I(r, n, t, o),
74
- e
75
- );
76
- }
77
- function N(e, r, n = {}) {
78
- const {
79
- eventFilter: t = A,
80
- ...o
81
- } = n;
82
- return F(
83
- e,
84
- y(
85
- t,
86
- r
87
- ),
88
- o
89
- );
90
- }
91
- function K(e, r = !0, n) {
92
- L() ? O(e, n) : r ? e() : W(e);
93
- }
94
- function Q(e, r, n = {}) {
95
- const {
96
- debounce: t = 0,
97
- maxWait: o = void 0,
98
- ...i
99
- } = n;
100
- return N(
101
- e,
102
- r,
103
- {
104
- ...i,
105
- eventFilter: x(t, { maxWait: o })
106
- }
107
- );
108
- }
109
- function U(e, r, n) {
110
- return F(
111
- e,
112
- r,
113
- {
114
- ...n,
115
- immediate: !0
116
- }
117
- );
118
- }
1
+ const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
119
2
  export {
120
- A as bypassFilter,
121
- y as createFilterWrapper,
122
- x as debounceFilter,
123
- Q as debouncedWatch,
124
- L as getLifeCycleTarget,
125
- E as injectLocal,
126
- G as isClient,
127
- q as isObject,
128
- d as noop,
129
- _ as notNullish,
130
- z as pxValue,
131
- I as throttleFilter,
132
- B as toArray,
133
- K as tryOnMounted,
134
- V as tryOnScopeDispose,
135
- H as useDebounceFn,
136
- J as useThrottleFn,
137
- Q as watchDebounced,
138
- U as watchImmediate,
139
- N as watchWithFilter
3
+ t as urlAlphabet
140
4
  };
package/dist/index225.js CHANGED
@@ -1,4 +1,140 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
1
+ import { onMounted as O, nextTick as W, getCurrentScope as S, onScopeDispose as C, watch as F, getCurrentInstance as g, isRef as P, toValue as b, hasInjectionContext as k, inject as v } from "vue";
2
+ function V(e) {
3
+ return S() ? (C(e), !0) : !1;
4
+ }
5
+ const w = /* @__PURE__ */ new WeakMap(), E = (...e) => {
6
+ var r;
7
+ const n = e[0], t = (r = g()) == null ? void 0 : r.proxy;
8
+ if (t == null && !k())
9
+ throw new Error("injectLocal must be called in setup");
10
+ return t && w.has(t) && n in w.get(t) ? w.get(t)[n] : v(...e);
11
+ }, G = typeof window < "u" && typeof document < "u";
12
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
13
+ const _ = (e) => e != null, M = Object.prototype.toString, q = (e) => M.call(e) === "[object Object]", d = () => {
14
+ };
15
+ function y(e, r) {
16
+ function n(...t) {
17
+ return new Promise((o, i) => {
18
+ Promise.resolve(e(() => r.apply(this, t), { fn: r, thisArg: this, args: t })).then(o).catch(i);
19
+ });
20
+ }
21
+ return n;
22
+ }
23
+ const A = (e) => e();
24
+ function x(e, r = {}) {
25
+ let n, t, o = d;
26
+ const i = (c) => {
27
+ clearTimeout(c), o(), o = d;
28
+ };
29
+ let u;
30
+ return (c) => {
31
+ const a = b(e), l = b(r.maxWait);
32
+ return n && i(n), a <= 0 || l !== void 0 && l <= 0 ? (t && (i(t), t = null), Promise.resolve(c())) : new Promise((f, p) => {
33
+ o = r.rejectOnCancel ? p : f, u = c, l && !t && (t = setTimeout(() => {
34
+ n && i(n), t = null, f(u());
35
+ }, l)), n = setTimeout(() => {
36
+ t && i(t), t = null, f(c());
37
+ }, a);
38
+ });
39
+ };
40
+ }
41
+ function I(...e) {
42
+ let r = 0, n, t = !0, o = d, i, u, s, c, a;
43
+ !P(e[0]) && typeof e[0] == "object" ? { delay: u, trailing: s = !0, leading: c = !0, rejectOnCancel: a = !1 } = e[0] : [u, s = !0, c = !0, a = !1] = e;
44
+ const l = () => {
45
+ n && (clearTimeout(n), n = void 0, o(), o = d);
46
+ };
47
+ return (p) => {
48
+ const m = b(u), j = Date.now() - r, h = () => i = p();
49
+ return l(), m <= 0 ? (r = Date.now(), h()) : (j > m && (c || !t) ? (r = Date.now(), h()) : s && (i = new Promise((T, D) => {
50
+ o = a ? D : T, n = setTimeout(() => {
51
+ r = Date.now(), t = !0, T(h()), l();
52
+ }, Math.max(0, m - j));
53
+ })), !c && !n && (n = setTimeout(() => t = !0, m)), t = !1, i);
54
+ };
55
+ }
56
+ function z(e) {
57
+ return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
58
+ }
59
+ function L(e) {
60
+ return g();
61
+ }
62
+ function B(e) {
63
+ return Array.isArray(e) ? e : [e];
64
+ }
65
+ function H(e, r = 200, n = {}) {
66
+ return y(
67
+ x(r, n),
68
+ e
69
+ );
70
+ }
71
+ function J(e, r = 200, n = !1, t = !0, o = !1) {
72
+ return y(
73
+ I(r, n, t, o),
74
+ e
75
+ );
76
+ }
77
+ function N(e, r, n = {}) {
78
+ const {
79
+ eventFilter: t = A,
80
+ ...o
81
+ } = n;
82
+ return F(
83
+ e,
84
+ y(
85
+ t,
86
+ r
87
+ ),
88
+ o
89
+ );
90
+ }
91
+ function K(e, r = !0, n) {
92
+ L() ? O(e, n) : r ? e() : W(e);
93
+ }
94
+ function Q(e, r, n = {}) {
95
+ const {
96
+ debounce: t = 0,
97
+ maxWait: o = void 0,
98
+ ...i
99
+ } = n;
100
+ return N(
101
+ e,
102
+ r,
103
+ {
104
+ ...i,
105
+ eventFilter: x(t, { maxWait: o })
106
+ }
107
+ );
108
+ }
109
+ function U(e, r, n) {
110
+ return F(
111
+ e,
112
+ r,
113
+ {
114
+ ...n,
115
+ immediate: !0
116
+ }
117
+ );
118
+ }
2
119
  export {
3
- n as clamp
120
+ A as bypassFilter,
121
+ y as createFilterWrapper,
122
+ x as debounceFilter,
123
+ Q as debouncedWatch,
124
+ L as getLifeCycleTarget,
125
+ E as injectLocal,
126
+ G as isClient,
127
+ q as isObject,
128
+ d as noop,
129
+ _ as notNullish,
130
+ z as pxValue,
131
+ I as throttleFilter,
132
+ B as toArray,
133
+ K as tryOnMounted,
134
+ V as tryOnScopeDispose,
135
+ H as useDebounceFn,
136
+ J as useThrottleFn,
137
+ Q as watchDebounced,
138
+ U as watchImmediate,
139
+ N as watchWithFilter
4
140
  };
package/dist/index226.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1
+ const n = (t, a, m) => Math.min(Math.max(t, a), m);
2
2
  export {
3
- t as urlAlphabet
3
+ n as clamp
4
4
  };
package/dist/index227.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getType as t } from "./index337.js";
1
+ import { getType as t } from "./index344.js";
2
2
  function o(r) {
3
3
  return t(r) === "Array";
4
4
  }
package/dist/index228.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getType as o } from "./index337.js";
1
+ import { getType as o } from "./index344.js";
2
2
  function c(e) {
3
3
  if (o(e) !== "Object")
4
4
  return !1;
package/dist/index229.js CHANGED
@@ -1,88 +1,5 @@
1
- import { defineComponent as p, createElementBlock as n, openBlock as s, normalizeClass as r, createElementVNode as o, renderSlot as t, createCommentVNode as h, createTextVNode as l, toDisplayString as i, unref as b, Fragment as m, renderList as u } from "vue";
2
- import { useLocale as g } from "./index240.js";
3
- const k = { class: "bb-cr-container__container" }, y = {
4
- key: 0,
5
- class: "bb-cr-container__loading-container"
6
- }, $ = {
7
- key: 1,
8
- class: "bb-cr-container__no-data-container"
9
- }, C = /* @__PURE__ */ p({
10
- __name: "OptionsContainer",
11
- props: {
12
- direction: {},
13
- hasErrors: { type: Boolean },
14
- hideLabel: { type: Boolean },
15
- loadingText: {},
16
- loading: { type: Boolean },
17
- noDataText: {},
18
- options: {}
19
- },
20
- setup(f) {
21
- const { t: d } = g();
22
- return (e, T) => (s(), n("span", {
23
- ref: "container",
24
- class: r(["bb-cr-container", {
25
- "bb-cr-container--errors": e.hasErrors,
26
- "bb-cr-container--horizontal": e.direction === "horizontal",
27
- "bb-cr-container--vertical": e.direction === "vertical"
28
- }])
29
- }, [
30
- o("span", k, [
31
- t(e.$slots, "prepend"),
32
- !e.options.length && e.loading ? (s(), n("span", y, [
33
- t(e.$slots, "loading", {}, () => [
34
- l(i(e.loadingText || b(d)("common.loadingText")), 1)
35
- ])
36
- ])) : e.options.length ? h("", !0) : (s(), n("span", $, [
37
- t(e.$slots, "no-data", {}, () => [
38
- l(i(e.noDataText || b(d)("common.noDataText")), 1)
39
- ])
40
- ])),
41
- (s(!0), n(m, null, u(e.options, (a, c) => (s(), n(m, {
42
- key: a?.valueHash || c
43
- }, [
44
- t(e.$slots, "option:prepend", {
45
- id: a.valueHash,
46
- checked: !!a.selected,
47
- disabled: !!a.disabled,
48
- item: a.item,
49
- text: a.text
50
- }),
51
- o("label", {
52
- class: r(["bb-cr-container-option", { "bb-base-radio-selected": a.selected }])
53
- }, [
54
- t(e.$slots, "input", {
55
- index: c,
56
- option: a
57
- }),
58
- o("span", {
59
- class: r({
60
- "bb-cr-container-option__text": !0,
61
- "sr-only": e.hideLabel
62
- })
63
- }, [
64
- t(e.$slots, "label", {
65
- checked: !!a.selected,
66
- item: a.item,
67
- text: a.text
68
- }, () => [
69
- l(i(a.text), 1)
70
- ])
71
- ], 2)
72
- ], 2),
73
- t(e.$slots, "option:append", {
74
- id: a.valueHash,
75
- checked: !!a.selected,
76
- disabled: !!a.disabled,
77
- item: a.item,
78
- text: a.text
79
- })
80
- ], 64))), 128)),
81
- t(e.$slots, "append")
82
- ])
83
- ], 2));
84
- }
85
- });
1
+ import r from "./index311.js";
2
+ const t = r;
86
3
  export {
87
- C as default
4
+ t as deburr
88
5
  };
@@ -0,0 +1,88 @@
1
+ import { defineComponent as p, createElementBlock as n, openBlock as s, normalizeClass as r, createElementVNode as o, renderSlot as t, createCommentVNode as h, createTextVNode as l, toDisplayString as i, unref as b, Fragment as m, renderList as u } from "vue";
2
+ import { useLocale as g } from "./index254.js";
3
+ const k = { class: "bb-cr-container__container" }, y = {
4
+ key: 0,
5
+ class: "bb-cr-container__loading-container"
6
+ }, $ = {
7
+ key: 1,
8
+ class: "bb-cr-container__no-data-container"
9
+ }, C = /* @__PURE__ */ p({
10
+ __name: "OptionsContainer",
11
+ props: {
12
+ direction: {},
13
+ hasErrors: { type: Boolean },
14
+ hideLabel: { type: Boolean },
15
+ loadingText: {},
16
+ loading: { type: Boolean },
17
+ noDataText: {},
18
+ options: {}
19
+ },
20
+ setup(f) {
21
+ const { t: d } = g();
22
+ return (e, T) => (s(), n("span", {
23
+ ref: "container",
24
+ class: r(["bb-cr-container", {
25
+ "bb-cr-container--errors": e.hasErrors,
26
+ "bb-cr-container--horizontal": e.direction === "horizontal",
27
+ "bb-cr-container--vertical": e.direction === "vertical"
28
+ }])
29
+ }, [
30
+ o("span", k, [
31
+ t(e.$slots, "prepend"),
32
+ !e.options.length && e.loading ? (s(), n("span", y, [
33
+ t(e.$slots, "loading", {}, () => [
34
+ l(i(e.loadingText || b(d)("common.loadingText")), 1)
35
+ ])
36
+ ])) : e.options.length ? h("", !0) : (s(), n("span", $, [
37
+ t(e.$slots, "no-data", {}, () => [
38
+ l(i(e.noDataText || b(d)("common.noDataText")), 1)
39
+ ])
40
+ ])),
41
+ (s(!0), n(m, null, u(e.options, (a, c) => (s(), n(m, {
42
+ key: a?.valueHash || c
43
+ }, [
44
+ t(e.$slots, "option:prepend", {
45
+ id: a.valueHash,
46
+ checked: !!a.selected,
47
+ disabled: !!a.disabled,
48
+ item: a.item,
49
+ text: a.text
50
+ }),
51
+ o("label", {
52
+ class: r(["bb-cr-container-option", { "bb-base-radio-selected": a.selected }])
53
+ }, [
54
+ t(e.$slots, "input", {
55
+ index: c,
56
+ option: a
57
+ }),
58
+ o("span", {
59
+ class: r({
60
+ "bb-cr-container-option__text": !0,
61
+ "sr-only": e.hideLabel
62
+ })
63
+ }, [
64
+ t(e.$slots, "label", {
65
+ checked: !!a.selected,
66
+ item: a.item,
67
+ text: a.text
68
+ }, () => [
69
+ l(i(a.text), 1)
70
+ ])
71
+ ], 2)
72
+ ], 2),
73
+ t(e.$slots, "option:append", {
74
+ id: a.valueHash,
75
+ checked: !!a.selected,
76
+ disabled: !!a.disabled,
77
+ item: a.item,
78
+ text: a.text
79
+ })
80
+ ], 64))), 128)),
81
+ t(e.$slots, "append")
82
+ ])
83
+ ], 2));
84
+ }
85
+ });
86
+ export {
87
+ C as default
88
+ };
package/dist/index232.js CHANGED
@@ -1,19 +1,32 @@
1
- import { computed as u, unref as a } from "vue";
2
- import { hash as d } from "./index235.js";
3
- const p = ({
4
- items: m,
5
- key: e
6
- }) => {
7
- const n = (t) => e ? String(t[e]) : d(t), o = u(() => {
8
- const t = {}, s = Array.from(a(m) ?? []);
9
- for (let r = 0; r < s.length; r++) {
10
- const c = s[r];
11
- t[n(c)] = c;
1
+ import { computed as s, unref as v, ref as c } from "vue";
2
+ import { useDebounceFn as m } from "./index225.js";
3
+ const y = (o) => {
4
+ const e = s(() => v(o.items)), t = c([]), r = c(0);
5
+ let a = 0;
6
+ const u = async (...i) => {
7
+ if (Array.isArray(e.value)) {
8
+ t.value = e.value;
9
+ return;
12
10
  }
13
- return t;
14
- });
15
- return { data: o, get: (t) => o.value[n(t)] };
11
+ if (typeof e.value != "function") return;
12
+ const f = ++a;
13
+ r.value++;
14
+ try {
15
+ const n = await e.value(...i);
16
+ f === a && (t.value = n);
17
+ } catch (n) {
18
+ console.error(n);
19
+ } finally {
20
+ r.value--;
21
+ }
22
+ }, l = m(u, o.debounce || 0);
23
+ return {
24
+ getter: u,
25
+ debouncedGetter: l,
26
+ items: t,
27
+ loading: s(() => r.value > 0)
28
+ };
16
29
  };
17
30
  export {
18
- p as useIndexById
31
+ y as useItemsGetter
19
32
  };
package/dist/index233.js CHANGED
@@ -1,53 +1,19 @@
1
- import { computed as l, unref as o } from "vue";
2
- import { useItemText as x } from "./index310.js";
3
- import { useItemValue as w } from "./index267.js";
4
- import { hash as y } from "./index235.js";
5
- import { useLogger as D } from "./index238.js";
6
- const { getItemText: O } = x(), { getItemValue: V } = w(), { warn: H } = D(), T = (u, c, m, a, d, r) => r ? !1 : !!(c || u.disabled || a && d >= a), q = ({
7
- items: u,
8
- disabled: c,
9
- selectable: m,
10
- itemText: a,
11
- itemValue: d,
12
- selectedIndexedByHash: r,
13
- max: b = 1 / 0
1
+ import { computed as u, unref as a } from "vue";
2
+ import { hash as d } from "./index236.js";
3
+ const p = ({
4
+ items: m,
5
+ key: e
14
6
  }) => {
15
- const v = l(() => o(c)), p = l(() => o(u)), h = l(
16
- () => Object.keys(r.value).length
17
- ), g = o(b), f = (e) => {
18
- const n = V(e, o(d)), t = y(n), i = O(e, o(a)), s = r.value[t] !== void 0, I = T(
19
- e,
20
- v.value,
21
- m,
22
- g,
23
- h.value,
24
- s
25
- );
26
- return {
27
- item: e,
28
- text: i,
29
- value: n,
30
- valueHash: t,
31
- selected: s,
32
- disabled: o(I)
33
- };
34
- };
35
- return {
36
- options: l(() => {
37
- const e = [], n = /* @__PURE__ */ new Set();
38
- for (let t = 0; t < p.value.length; t++) {
39
- const i = p.value[t];
40
- i.disabled && H(
41
- "Disabling an item by passing a disabled option to the item itself is deprecated and will be removed in a future version. Use the `disabled` prop or the `selectable` iteratee prop instead."
42
- );
43
- const s = f(i);
44
- n.has(s.valueHash) || (n.add(s.valueHash), e.push(s));
45
- }
46
- return e;
47
- }),
48
- createOption: f
49
- };
7
+ const n = (t) => e ? String(t[e]) : d(t), o = u(() => {
8
+ const t = {}, s = Array.from(a(m) ?? []);
9
+ for (let r = 0; r < s.length; r++) {
10
+ const c = s[r];
11
+ t[n(c)] = c;
12
+ }
13
+ return t;
14
+ });
15
+ return { data: o, get: (t) => o.value[n(t)] };
50
16
  };
51
17
  export {
52
- q as useBaseOptions
18
+ p as useIndexById
53
19
  };
package/dist/index234.js CHANGED
@@ -1,20 +1,53 @@
1
- import { isNil as a } from "./index264.js";
2
- import { computed as n, unref as h } from "vue";
3
- const v = ({ modelValue: r, iteratee: c, multiple: t }) => {
4
- const s = n(
5
- () => new Array().concat(h(r))
6
- ), e = n(() => s.value.reduce(
7
- (o, u) => (c(u) ? o.coherent.push(u) : o.incoherent.push(u), o),
8
- { coherent: [], incoherent: [] }
9
- )), i = n(() => t && !h(r).length || !t && a(h(r)) ? !0 : !e.value.incoherent.length), l = n(
10
- () => t ? e.value.coherent : e.value.coherent[0] ?? null
11
- );
1
+ import { computed as l, unref as o } from "vue";
2
+ import { useItemText as x } from "./index309.js";
3
+ import { useItemValue as w } from "./index285.js";
4
+ import { hash as y } from "./index236.js";
5
+ import { useLogger as D } from "./index239.js";
6
+ const { getItemText: O } = x(), { getItemValue: V } = w(), { warn: H } = D(), T = (u, c, m, a, d, r) => r ? !1 : !!(c || u.disabled || a && d >= a), q = ({
7
+ items: u,
8
+ disabled: c,
9
+ selectable: m,
10
+ itemText: a,
11
+ itemValue: d,
12
+ selectedIndexedByHash: r,
13
+ max: b = 1 / 0
14
+ }) => {
15
+ const v = l(() => o(c)), p = l(() => o(u)), h = l(
16
+ () => Object.keys(r.value).length
17
+ ), g = o(b), f = (e) => {
18
+ const n = V(e, o(d)), t = y(n), i = O(e, o(a)), s = r.value[t] !== void 0, I = T(
19
+ e,
20
+ v.value,
21
+ m,
22
+ g,
23
+ h.value,
24
+ s
25
+ );
26
+ return {
27
+ item: e,
28
+ text: i,
29
+ value: n,
30
+ valueHash: t,
31
+ selected: s,
32
+ disabled: o(I)
33
+ };
34
+ };
12
35
  return {
13
- status: e,
14
- coherent: i,
15
- coherentValue: l
36
+ options: l(() => {
37
+ const e = [], n = /* @__PURE__ */ new Set();
38
+ for (let t = 0; t < p.value.length; t++) {
39
+ const i = p.value[t];
40
+ i.disabled && H(
41
+ "Disabling an item by passing a disabled option to the item itself is deprecated and will be removed in a future version. Use the `disabled` prop or the `selectable` iteratee prop instead."
42
+ );
43
+ const s = f(i);
44
+ n.has(s.valueHash) || (n.add(s.valueHash), e.push(s));
45
+ }
46
+ return e;
47
+ }),
48
+ createOption: f
16
49
  };
17
50
  };
18
51
  export {
19
- v as useCoherence
52
+ q as useBaseOptions
20
53
  };