bitboss-ui 2.0.99 → 2.0.101

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 (152) hide show
  1. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +0 -6
  2. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
  3. package/dist/index100.js +4 -4
  4. package/dist/index111.js +6 -6
  5. package/dist/index119.js +2 -2
  6. package/dist/index121.js +5 -5
  7. package/dist/index123.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 +2 -2
  12. package/dist/index131.js +1 -1
  13. package/dist/index132.js +2 -2
  14. package/dist/index133.js +2 -2
  15. package/dist/index15.js +3 -3
  16. package/dist/index17.js +3 -3
  17. package/dist/index19.js +3 -3
  18. package/dist/index205.js +81 -2
  19. package/dist/index206.js +126 -3
  20. package/dist/index207.js +5 -41
  21. package/dist/index208.js +125 -6
  22. package/dist/index209.js +19 -7
  23. package/dist/index21.js +14 -14
  24. package/dist/index210.js +16 -8
  25. package/dist/index211.js +16 -12
  26. package/dist/index212.js +2 -53
  27. package/dist/index213.js +4 -0
  28. package/dist/index214.js +40 -12
  29. package/dist/index215.js +1 -1
  30. package/dist/index216.js +6 -4
  31. package/dist/index217.js +53 -5
  32. package/dist/index219.js +13 -16
  33. package/dist/index220.js +5 -19
  34. package/dist/index221.js +12 -19
  35. package/dist/index222.js +367 -25
  36. package/dist/index223.js +4 -3
  37. package/dist/index224.js +3 -2
  38. package/dist/index225.js +6 -248
  39. package/dist/index226.js +2 -52
  40. package/dist/index227.js +4 -44
  41. package/dist/index228.js +2 -5
  42. package/dist/index229.js +2 -60
  43. package/dist/index23.js +15 -15
  44. package/dist/index230.js +19 -81
  45. package/dist/index231.js +27 -2
  46. package/dist/index232.js +3 -4
  47. package/dist/index233.js +250 -2
  48. package/dist/index234.js +50 -162
  49. package/dist/index235.js +38 -78
  50. package/dist/index236.js +7 -0
  51. package/dist/index237.js +59 -7
  52. package/dist/index238.js +3 -126
  53. package/dist/index239.js +7 -125
  54. package/dist/index240.js +168 -2
  55. package/dist/index241.js +84 -5
  56. package/dist/index243.js +8 -3
  57. package/dist/index244.js +2 -106
  58. package/dist/index246.js +53 -47
  59. package/dist/index248.js +100 -2
  60. package/dist/index25.js +6 -6
  61. package/dist/index256.js +4 -4
  62. package/dist/index258.js +3 -3
  63. package/dist/index260.js +3 -431
  64. package/dist/index262.js +6 -88
  65. package/dist/index263.js +176 -3
  66. package/dist/index264.js +11 -0
  67. package/dist/index265.js +224 -7
  68. package/dist/index266.js +279 -174
  69. package/dist/index267.js +6 -200
  70. package/dist/index268.js +2 -9
  71. package/dist/index269.js +2 -9
  72. package/dist/index27.js +1 -1
  73. package/dist/index270.js +2 -8
  74. package/dist/index271.js +2 -281
  75. package/dist/index272.js +2 -6
  76. package/dist/index273.js +126 -2
  77. package/dist/index274.js +431 -2
  78. package/dist/index275.js +22 -2
  79. package/dist/index277.js +2 -2
  80. package/dist/index278.js +4 -2
  81. package/dist/index279.js +9 -2
  82. package/dist/index280.js +8 -2
  83. package/dist/index281.js +2 -2
  84. package/dist/index282.js +2 -2
  85. package/dist/index283.js +2 -28
  86. package/dist/index284.js +1 -21
  87. package/dist/index285.js +4 -0
  88. package/dist/index286.js +2 -4
  89. package/dist/index287.js +28 -3
  90. package/dist/index288.js +22 -12
  91. package/dist/index29.js +3 -3
  92. package/dist/index290.js +434 -15
  93. package/dist/index291.js +126 -3
  94. package/dist/index292.js +199 -6
  95. package/dist/index293.js +88 -10
  96. package/dist/index294.js +3 -2
  97. package/dist/index295.js +12 -126
  98. package/dist/index296.js +8 -21
  99. package/dist/index297.js +19 -0
  100. package/dist/index298.js +3 -223
  101. package/dist/index299.js +6 -435
  102. package/dist/index300.js +10 -126
  103. package/dist/index301.js +1 -1
  104. package/dist/index302.js +1 -1
  105. package/dist/index303.js +2 -2
  106. package/dist/index304.js +5 -2
  107. package/dist/index305.js +2 -66
  108. package/dist/index306.js +66 -5
  109. package/dist/index307.js +3 -5
  110. package/dist/index308.js +3 -8
  111. package/dist/index309.js +3 -3
  112. package/dist/index31.js +26 -27
  113. package/dist/index310.js +58 -3
  114. package/dist/index311.js +4 -57
  115. package/dist/index312.js +8 -3
  116. package/dist/index313.js +32 -3
  117. package/dist/index314.js +3 -32
  118. package/dist/index315.js +6 -6
  119. package/dist/index316.js +6 -18
  120. package/dist/index317.js +17 -5
  121. package/dist/index318.js +8 -47
  122. package/dist/index319.js +5 -5
  123. package/dist/index320.js +47 -8
  124. package/dist/index321.js +1 -1
  125. package/dist/{index322.js → index323.js} +1 -1
  126. package/dist/index33.js +48 -42
  127. package/dist/index35.js +3 -3
  128. package/dist/index37.js +80 -78
  129. package/dist/index39.js +3 -3
  130. package/dist/index41.js +8 -9
  131. package/dist/index43.js +58 -52
  132. package/dist/index45.js +6 -6
  133. package/dist/index47.js +2 -2
  134. package/dist/index49.js +2 -2
  135. package/dist/index55.js +1 -1
  136. package/dist/index57.js +1 -1
  137. package/dist/index71.js +38 -18
  138. package/dist/index75.js +10 -10
  139. package/dist/index77.js +21 -20
  140. package/dist/index81.js +1 -1
  141. package/dist/index84.js +3 -3
  142. package/dist/index86.js +1 -1
  143. package/dist/index88.js +3 -3
  144. package/dist/index90.js +1 -1
  145. package/dist/style.css +1 -1
  146. package/package.json +1 -1
  147. package/dist/index218.js +0 -18
  148. package/dist/index242.js +0 -371
  149. package/dist/index261.js +0 -4
  150. package/dist/index276.js +0 -4
  151. package/dist/index289.js +0 -11
  152. /package/dist/{index249.js → index245.js} +0 -0
package/dist/index33.js CHANGED
@@ -1,10 +1,10 @@
1
- import { defineComponent as L, ref as m, toRef as l, openBlock as $, createBlock as E, unref as p, withCtx as t, renderSlot as i, normalizeProps as f, guardReactiveProps as b, createVNode as B, mergeProps as v, createSlots as C } from "vue";
2
- import { useOptions as w } from "./index234.js";
3
- import q from "./index31.js";
1
+ import { defineComponent as B, ref as f, toRef as l, openBlock as E, createBlock as $, unref as b, withCtx as t, renderSlot as i, normalizeProps as c, guardReactiveProps as m, createVNode as C, mergeProps as v, createSlots as w } from "vue";
2
+ import { useOptions as q } from "./index240.js";
3
+ import z from "./index31.js";
4
4
  /* empty css */
5
- import z from "./index235.js";
5
+ import F from "./index241.js";
6
6
  /* empty css */
7
- const N = /* @__PURE__ */ L({
7
+ const N = /* @__PURE__ */ B({
8
8
  __name: "BaseRadioGroup",
9
9
  props: {
10
10
  ariaDescribedby: {},
@@ -31,50 +31,53 @@ const N = /* @__PURE__ */ L({
31
31
  },
32
32
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
33
33
  setup(h, { emit: y }) {
34
- const n = h, o = y, c = m(), r = m(!1), { innerLoading: g, options: T } = w({
35
- dependencies: l(n, "dependencies"),
36
- depsDebounceTime: n.depsDebounceTime,
37
- disabled: l(n, "disabled"),
38
- emit: o,
39
- enforceCoherence: n.enforceCoherence,
40
- items: l(n, "items"),
41
- itemText: n.itemText,
42
- itemValue: n.itemValue,
43
- modelValue: l(n, "modelValue"),
44
- modelValueDebounceTime: n.modelValueDebounceTime,
34
+ const o = h, n = y, p = f(), r = f(!1), { innerLoading: g, options: T } = q({
35
+ dependencies: l(o, "dependencies"),
36
+ depsDebounceTime: o.depsDebounceTime,
37
+ disabled: l(o, "disabled"),
38
+ emit: n,
39
+ enforceCoherence: o.enforceCoherence,
40
+ items: l(o, "items"),
41
+ itemText: o.itemText,
42
+ itemValue: o.itemValue,
43
+ modelValue: l(o, "modelValue"),
44
+ modelValueDebounceTime: o.modelValueDebounceTime,
45
45
  multiple: !1,
46
46
  prefill: !0,
47
47
  queryDebounceTime: 0,
48
48
  resetQueryOnOptionSelected: !1,
49
49
  stash: !1
50
- }), k = {
51
- onBlur: (e) => o("blur", e),
52
- onChange: (e) => o("change", e),
53
- onClick: (e) => o("click", e),
50
+ }), k = (e) => {
51
+ if (o.id)
52
+ return [o.id, e.valueHash].filter(Boolean).join("-");
53
+ }, V = {
54
+ onBlur: (e) => n("blur", e),
55
+ onChange: (e) => n("change", e),
56
+ onClick: (e) => n("click", e),
54
57
  onFocus: (e) => {
55
- o("focus", e), r.value || (document.addEventListener("focusin", d, { passive: !0 }), document.addEventListener("click", u, { passive: !0 }), r.value = !0);
58
+ n("focus", e), r.value || (document.addEventListener("focusin", d, { passive: !0 }), document.addEventListener("click", u, { passive: !0 }), r.value = !0);
56
59
  },
57
- onInput: (e) => o("input", e),
58
- onKeydown: (e) => o("keydown", e),
59
- onMousedown: (e) => o("mousedown", e),
60
- onMouseup: (e) => o("mouseup", e),
61
- "onUpdate:modelValue": (e) => o("update:modelValue", e)
60
+ onInput: (e) => n("input", e),
61
+ onKeydown: (e) => n("keydown", e),
62
+ onMousedown: (e) => n("mousedown", e),
63
+ onMouseup: (e) => n("mouseup", e),
64
+ "onUpdate:modelValue": (e) => n("update:modelValue", e)
62
65
  }, d = (e) => {
63
66
  var s;
64
- e.target instanceof HTMLElement && ((s = c.value) != null && s.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
67
+ e.target instanceof HTMLElement && ((s = p.value) != null && s.contains(e.target) || (n("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
65
68
  }, u = (e) => {
66
69
  var s;
67
- e.target instanceof HTMLElement && ((s = c.value) != null && s.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
70
+ e.target instanceof HTMLElement && ((s = p.value) != null && s.contains(e.target) || (n("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
68
71
  };
69
- return (e, s) => ($(), E(z, {
72
+ return (e, s) => (E(), $(F, {
70
73
  class: "bb-base-radio-group",
71
74
  direction: e.direction,
72
75
  "has-errors": e.hasErrors,
73
76
  "hide-label": e.hideLabel,
74
- loading: !!p(g),
77
+ loading: !!b(g),
75
78
  "loading-text": e.loadingText,
76
79
  "no-data-text": e.noDataText,
77
- options: p(T)
80
+ options: b(T)
78
81
  }, {
79
82
  prepend: t(() => [
80
83
  i(e.$slots, "prepend")
@@ -85,41 +88,44 @@ const N = /* @__PURE__ */ L({
85
88
  "no-data": t(() => [
86
89
  i(e.$slots, "no-data")
87
90
  ]),
91
+ label: t((a) => [
92
+ i(e.$slots, "label", c(m(a)))
93
+ ]),
88
94
  "option:prepend": t((a) => [
89
- i(e.$slots, "option:prepend", f(b(a)))
95
+ i(e.$slots, "option:prepend", c(m(a)))
90
96
  ]),
91
- input: t(({ option: a, index: V }) => [
92
- B(q, v({
93
- id: `${e.id}-${a.valueHash}`,
97
+ input: t(({ option: a, index: D }) => [
98
+ C(z, v({
99
+ id: k(a),
94
100
  "aria-describedby": e.ariaDescribedby,
95
- autofocus: e.autofocus && !V,
101
+ autofocus: e.autofocus && !D,
96
102
  checked: a.selected,
97
103
  color: e.color,
98
104
  disabled: a.disabled,
99
105
  "has-errors": e.hasErrors,
100
- "model-value": n.modelValue,
106
+ "model-value": o.modelValue,
101
107
  name: e.name,
102
108
  readonly: e.readonly,
103
109
  required: e.required,
104
110
  value: a.value
105
- }, k), C({ _: 2 }, [
111
+ }, V), w({ _: 2 }, [
106
112
  e.$slots.icon ? {
107
113
  name: "icon",
108
- fn: t((D) => [
114
+ fn: t((L) => [
109
115
  i(e.$slots, "icon", v({
110
116
  item: a.item,
111
117
  text: a.text
112
- }, D))
118
+ }, L))
113
119
  ]),
114
120
  key: "0"
115
121
  } : void 0
116
122
  ]), 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "model-value", "name", "readonly", "required", "value"])
117
123
  ]),
118
124
  "option:append": t((a) => [
119
- i(e.$slots, "option:prepend", f(b(a)))
125
+ i(e.$slots, "option:append", c(m(a)))
120
126
  ]),
121
127
  append: t(() => [
122
- i(e.$slots, "prepend")
128
+ i(e.$slots, "append")
123
129
  ]),
124
130
  _: 3
125
131
  }, 8, ["direction", "has-errors", "hide-label", "loading", "loading-text", "no-data-text", "options"]));
package/dist/index35.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, ref as g, computed as f, openBlock as l, createElementBlock as i, mergeProps as h, createElementVNode as r, renderSlot as p, Fragment as B, renderList as I, normalizeClass as V, toDisplayString as M } from "vue";
2
- import { booleanishToBoolean as D } from "./index233.js";
3
- import { identity as F } from "./index240.js";
4
- import { isCssColor as v } from "./index231.js";
2
+ import { booleanishToBoolean as D } from "./index228.js";
3
+ import { identity as F } from "./index212.js";
4
+ import { isCssColor as v } from "./index226.js";
5
5
  import { isNotNil as T } from "./index134.js";
6
6
  const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-rating__label-text sr-only" }, x = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], H = ["height", "width"], J = /* @__PURE__ */ C({
7
7
  __name: "BaseRating",
package/dist/index37.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as xe, defineAsyncComponent as Me, ref as v, computed as y, toRef as V, openBlock as b, createBlock as S, normalizeClass as W, withCtx as r, renderSlot as p, unref as i, createVNode as N, createElementVNode as $, createElementBlock as T, Fragment as R, toDisplayString as Ne, createCommentVNode as J, withDirectives as He, isRef as Pe, withModifiers as c, withKeys as g, vModelDynamic as ze, renderList as _e, mergeProps as Y, normalizeStyle as Qe, nextTick as Ke } from "vue";
1
+ import { defineComponent as Fe, defineAsyncComponent as Me, ref as v, computed as y, toRef as V, openBlock as b, createBlock as S, normalizeClass as W, withCtx as r, renderSlot as p, unref as i, createVNode as N, createElementVNode as $, createElementBlock as T, Fragment as R, toDisplayString as Ne, createCommentVNode as J, withDirectives as He, isRef as Pe, withModifiers as d, withKeys as g, vModelDynamic as ze, renderList as Qe, mergeProps as Y, normalizeStyle as Ke, nextTick as _e } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import { useId as Ue } from "./index8.js";
@@ -6,28 +6,28 @@ import { useMobile as We } from "./index9.js";
6
6
  import Re from "./index128.js";
7
7
  /* empty css */
8
8
  import { isNotNil as Je } from "./index134.js";
9
- import { last as Ye } from "./index224.js";
10
- import { matchAnyKey as j } from "./index249.js";
11
- import { useFloating as je } from "./index238.js";
9
+ import { last as Ye } from "./index213.js";
10
+ import { matchAnyKey as j } from "./index245.js";
11
+ import { useFloating as je } from "./index206.js";
12
12
  import { useIntersectionObserver as Ge } from "./index132.js";
13
- import { useLogger as Xe } from "./index210.js";
14
- import { useOptions as Ze } from "./index234.js";
13
+ import { useLogger as Xe } from "./index225.js";
14
+ import { useOptions as Ze } from "./index240.js";
15
15
  import { wait as L } from "./index130.js";
16
- import { when as et } from "./index232.js";
17
- import tt from "./index244.js";
16
+ import { when as et } from "./index227.js";
17
+ import tt from "./index246.js";
18
18
  /* empty css */
19
- import ot from "./index246.js";
19
+ import ot from "./index248.js";
20
20
  /* empty css */
21
- import nt from "./index212.js";
21
+ import nt from "./index217.js";
22
22
  /* empty css */
23
- import lt from "./index214.js";
24
- import { waitFor as at } from "./index208.js";
25
- import it from "./index211.js";
26
- import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index242.js";
27
- const ct = { class: "bb-base-select__input-container" }, dt = {
23
+ import lt from "./index219.js";
24
+ import { waitFor as at } from "./index216.js";
25
+ import it from "./index221.js";
26
+ import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index222.js";
27
+ const dt = { class: "bb-base-select__input-container" }, ct = {
28
28
  key: 1,
29
29
  class: "bb-base-select__max-reached"
30
- }, ft = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], Pt = /* @__PURE__ */ xe({
30
+ }, ft = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], Pt = /* @__PURE__ */ Fe({
31
31
  __name: "BaseSelect",
32
32
  props: {
33
33
  addOptions: { type: Boolean },
@@ -73,7 +73,7 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
73
73
  const t = G, h = X;
74
74
  if (t.multiple && !Array.isArray(t.modelValue))
75
75
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
76
- const Z = Me(() => import("./index248.js")), A = v(null), B = v(null), a = v(null), H = v(null), P = v(null), u = y(
76
+ const Z = Me(() => import("./index244.js")), A = v(null), B = v(null), a = v(null), H = v(null), P = v(null), u = y(
77
77
  () => t.comma ? H.value : P.value
78
78
  ), { isMobile: ee } = We(), te = y(
79
79
  () => t.allowWriting === "not-mobile" && ee.value ? "none" : void 0
@@ -100,44 +100,44 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
100
100
  zIndex: "10"
101
101
  };
102
102
  return B.value && (e.width = `${(o = B.value) == null ? void 0 : o.$el.clientWidth}px`), e;
103
- }), q = v(null), E = () => {
103
+ }), q = v(null), x = () => {
104
104
  q.value instanceof HTMLInputElement && q.value.focus();
105
105
  }, le = async (e) => {
106
- h("focus", e), Le(), document.addEventListener("click", D), document.addEventListener("focusin", D);
106
+ h("focus", e), Le(), document.addEventListener("click", k), document.addEventListener("focusin", k);
107
107
  }, ae = () => {
108
108
  t.prefill === "focus" && !Oe.value && !Ce.value && Be();
109
109
  }, ie = async (e) => {
110
110
  h("blur", e);
111
111
  }, re = (e) => h("change", e), se = (e) => {
112
112
  var o;
113
- h("input", e), l.value === "" && (t.multiple || ke(null)), (o = u.value) == null || o.blur(), F.value && O(), Ve();
114
- }, D = async (e) => {
113
+ h("input", e), l.value === "" && (t.multiple || De(null)), (o = u.value) == null || o.blur(), E.value && O(), Ve();
114
+ }, k = async (e) => {
115
115
  if (e.target instanceof Node && A.value && a.value && !A.value.$el.contains(e.target) && !a.value.$el.contains(e.target)) {
116
- C(), Ae(), document.removeEventListener("click", D), document.removeEventListener("focusin", D), await L(t.transitionDuration), be();
116
+ C(), Ae(), document.removeEventListener("click", k), document.removeEventListener("focusin", k), await L(t.transitionDuration), be();
117
117
  return;
118
118
  }
119
119
  }, w = y(() => !(t.readonly || t.disabled || I.value || !u.value && t.multiple)), ue = async () => {
120
120
  var e, o, n;
121
- w.value && ((e = u.value) == null || e.blur(), d.value ? (o = a.value) == null || o.focusPrevious() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusLastSelected()));
121
+ w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusPrevious() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusLastSelected()));
122
122
  }, pe = async () => {
123
123
  var e, o, n;
124
- w.value && ((e = u.value) == null || e.blur(), d.value ? (o = a.value) == null || o.focusNext() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusFirstSelected()));
125
- }, ce = (e) => {
126
- var n, s, m, k;
124
+ w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusNext() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusFirstSelected()));
125
+ }, de = (e) => {
126
+ var n, s, m, D;
127
127
  if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
128
128
  (s = u.value) == null || s.focusPrevious();
129
129
  const o = (m = u.value) == null ? void 0 : m.getHighlighted();
130
- o && ((k = a.value) == null || k.focusByHash(o.valueHash));
131
- }, de = (e) => {
132
- var n, s, m, k;
130
+ o && ((D = a.value) == null || D.focusByHash(o.valueHash));
131
+ }, ce = (e) => {
132
+ var n, s, m, D;
133
133
  if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
134
134
  (s = u.value) == null || s.focusNext();
135
135
  const o = (m = u.value) == null ? void 0 : m.getHighlighted();
136
- o && ((k = a.value) == null || k.focusByHash(o.valueHash));
136
+ o && ((D = a.value) == null || D.focusByHash(o.valueHash));
137
137
  }, fe = async () => {
138
138
  var e, o;
139
139
  if (w.value) {
140
- if (!d.value)
140
+ if (!c.value)
141
141
  await O(), await L(t.transitionDuration), f.value.length && ((e = a.value) == null || e.focusFirstSelected());
142
142
  else if ((o = a.value) != null && o.getHighlighted())
143
143
  a.value.confirmOption();
@@ -150,29 +150,29 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
150
150
  return;
151
151
  }
152
152
  const n = l.value.trim();
153
- if (De(n)) return;
154
- he(), K(Ye(Ie.value));
153
+ if (ke(n)) return;
154
+ he(), _(Ye(Ie.value));
155
155
  }
156
156
  }
157
157
  }, me = async () => {
158
- d.value && await C();
158
+ c.value && await C();
159
159
  }, ve = async () => {
160
160
  var e, o;
161
- !w.value || l.value || !f.value.length || ((e = u.value) != null && e.getHighlighted() && u.value.confirmOption(), await Ke(), (o = u.value) == null || o.focusPrevious());
161
+ !w.value || l.value || !f.value.length || ((e = u.value) != null && e.getHighlighted() && u.value.confirmOption(), await _e(), (o = u.value) == null || o.focusPrevious());
162
162
  }, ye = t.prefill === !0 || !t.multiple && Je(t.modelValue) || t.multiple && !!t.modelValue.length, {
163
163
  query: l,
164
164
  alignQueryToState: be,
165
165
  addCurrentQueryToManualItems: he,
166
- innerLoading: _,
167
- options: Q,
166
+ innerLoading: Q,
167
+ options: K,
168
168
  selectedOptions: f,
169
169
  selectOption: ge,
170
170
  unselectOption: we,
171
171
  prefillItems: Be,
172
172
  isPrefilling: Oe,
173
173
  hasPrefilled: Ce,
174
- updateModelValue: ke,
175
- valueIsSelected: De,
174
+ updateModelValue: De,
175
+ valueIsSelected: ke,
176
176
  manualItems: Ie,
177
177
  searchByQuery: Ve
178
178
  } = Ze({
@@ -192,35 +192,35 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
192
192
  depsDebounceTime: t.depsDebounceTime,
193
193
  queryDebounceTime: t.queryDebounceTime,
194
194
  disabled: V(t, "disabled")
195
- }), Se = y(() => f.value.length ? "" : t.placeholder), I = y(() => !!(_.value || t.loading)), $e = y(() => {
195
+ }), Se = y(() => f.value.length ? "" : t.placeholder), I = y(() => !!(Q.value || t.loading)), $e = y(() => {
196
196
  let e = [];
197
197
  const o = f.value.some(
198
198
  (s) => s.text === l.value
199
199
  );
200
- return (t.multiple && l.value || l.value && !o && !t.multiple) && t.filterBy ? e = Q.value.filter((s) => {
200
+ return (t.multiple && l.value || l.value && !o && !t.multiple) && t.filterBy ? e = K.value.filter((s) => {
201
201
  let m = !1;
202
202
  return typeof t.filterBy == "function" ? m = t.filterBy(s.value, s.item) : Array.isArray(t.filterBy) && t.filterBy.length && (m = m || j(s.item, t.filterBy, l.value.trim())), m || j(s, ["text"], l.value.trim());
203
- }) : e = Q.value, e;
204
- }), K = (e) => {
205
- ge(e), E(), t.multiple || C();
203
+ }) : e = K.value, e;
204
+ }), _ = (e) => {
205
+ ge(e), x(), t.multiple || C();
206
206
  }, U = (e) => {
207
- we(e), E();
208
- }, d = v(!1), F = v(!0), x = v(!1), O = async () => {
209
- x.value = !0, await at(() => !!a.value), F.value = !1, d.value = !0;
207
+ we(e), x();
208
+ }, c = v(!1), E = v(!0), F = v(!1), O = async () => {
209
+ F.value = !0, await at(() => !!a.value), E.value = !1, c.value = !0;
210
210
  }, C = async () => {
211
211
  var e;
212
- d.value = !1, F.value = !0, (e = u.value) == null || e.blur();
213
- }, Te = () => d.value ? C() : O(), M = v(!1), Le = () => {
212
+ c.value = !1, E.value = !0, (e = u.value) == null || e.blur();
213
+ }, Te = () => c.value ? C() : O(), M = v(!1), Le = () => {
214
214
  M.value = !0;
215
215
  }, Ae = () => {
216
216
  M.value = !1, h("inactive");
217
217
  }, qe = (e) => {
218
- e.preventDefault(), h("click", e), !(t.disabled || t.readonly) && (E(), Te());
219
- }, Ee = et(
218
+ e.preventDefault(), h("click", e), !(t.disabled || t.readonly) && (x(), Te());
219
+ }, xe = et(
220
220
  (e) => typeof e != "string",
221
221
  JSON.stringify
222
- ), Fe = y(() => [].concat(t.modelValue).map((e) => {
223
- const o = Ee(e);
222
+ ), Ee = y(() => [].concat(t.modelValue).map((e) => {
223
+ const o = xe(e);
224
224
  return {
225
225
  disabled: t.disabled,
226
226
  name: t.name,
@@ -234,7 +234,7 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
234
234
  class: W({
235
235
  "bb-base-select": !0,
236
236
  "bb-base-select--active": M.value,
237
- "bb-base-select--shown": d.value,
237
+ "bb-base-select--shown": c.value,
238
238
  "bb-base-select--loading": I.value,
239
239
  "bb-base-select--disabled": e.disabled,
240
240
  "bb-base-select--errors": e.hasErrors,
@@ -272,7 +272,7 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
272
272
  default: r(() => [
273
273
  N(i(Re), { tag: "span" }, {
274
274
  default: r(() => [
275
- $("span", ct, [
275
+ $("span", dt, [
276
276
  e.multiple && i(f).length <= e.maxSelectedLabels ? (b(), T(R, { key: 0 }, [
277
277
  e.comma ? (b(), S(ot, {
278
278
  key: 0,
@@ -286,16 +286,16 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
286
286
  options: i(f),
287
287
  "onOption:unselected": U
288
288
  }, null, 8, ["options"]))
289
- ], 64)) : e.multiple ? (b(), T("span", dt, Ne(i(f).length) + " elementi selezionati ", 1)) : J("", !0),
289
+ ], 64)) : e.multiple ? (b(), T("span", ct, Ne(i(f).length) + " elementi selezionati ", 1)) : J("", !0),
290
290
  He($("input", {
291
291
  id: i(z),
292
292
  ref_key: "input",
293
293
  ref: q,
294
294
  "onUpdate:modelValue": o[0] || (o[0] = (n) => Pe(l) ? l.value = n : null),
295
295
  "aria-autocomplete": "list",
296
- "aria-controls": x.value ? `${i(z)}_listbox` : void 0,
296
+ "aria-controls": F.value ? `${i(z)}_listbox` : void 0,
297
297
  "aria-describedby": e.ariaDescribedby,
298
- "aria-expanded": d.value,
298
+ "aria-expanded": c.value,
299
299
  autocomplete: e.autocomplete,
300
300
  autofocus: e.autofocus,
301
301
  class: W("bb-base-select__text-input"),
@@ -307,19 +307,19 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
307
307
  role: "combobox",
308
308
  size: "1",
309
309
  type: "text",
310
- onBlur: c(ie, ["stop"]),
311
- onChange: c(re, ["stop"]),
312
- onFocusOnce: c(ae, ["stop"]),
313
- onFocus: c(le, ["stop"]),
314
- onInput: c(se, ["stop"]),
310
+ onBlur: d(ie, ["stop"]),
311
+ onChange: d(re, ["stop"]),
312
+ onFocusOnce: d(ae, ["stop"]),
313
+ onFocus: d(le, ["stop"]),
314
+ onInput: d(se, ["stop"]),
315
315
  onKeydown: [
316
- g(c(ve, ["stop"]), ["delete"]),
317
- g(c(ce, ["stop"]), ["left"]),
318
- g(c(pe, ["stop", "prevent"]), ["down"]),
319
- g(c(fe, ["stop", "prevent"]), ["enter"]),
320
- g(c(me, ["stop", "prevent"]), ["esc"]),
321
- g(c(ue, ["stop", "prevent"]), ["up"]),
322
- g(c(de, ["stop"]), ["right"])
316
+ g(d(ve, ["stop"]), ["delete"]),
317
+ g(d(de, ["stop"]), ["left"]),
318
+ g(d(pe, ["stop", "prevent"]), ["down"]),
319
+ g(d(fe, ["stop", "prevent"]), ["enter"]),
320
+ g(d(me, ["stop", "prevent"]), ["esc"]),
321
+ g(d(ue, ["stop", "prevent"]), ["up"]),
322
+ g(d(ce, ["stop"]), ["right"])
323
323
  ]
324
324
  }, null, 40, ft), [
325
325
  [ze, i(l)]
@@ -329,8 +329,8 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
329
329
  _: 1
330
330
  }),
331
331
  p(e.$slots, "chevron", {
332
- loading: !!i(_),
333
- shown: d.value
332
+ loading: !!i(Q),
333
+ shown: c.value
334
334
  }, () => [
335
335
  o[1] || (o[1] = $("svg", {
336
336
  class: "bb-base-select__chevron",
@@ -346,21 +346,23 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
346
346
  ]),
347
347
  _: 3
348
348
  }, 8, ["append:icon", "prepend:icon"]),
349
- (b(!0), T(R, null, _e(Fe.value, (n) => (b(), T("input", Y({
349
+ (b(!0), T(R, null, Qe(Ee.value, (n) => (b(), T("input", Y({
350
350
  key: n.value,
351
351
  ref_for: !0
352
352
  }, n), null, 16))), 128)),
353
- x.value ? (b(), S(it, { key: 0 }, {
353
+ F.value ? (b(), S(it, { key: 0 }, {
354
354
  default: r(() => [
355
355
  N(i(Z), {
356
356
  ref_key: "optionsContainer",
357
357
  ref: a,
358
358
  compact: e.compact,
359
359
  loading: I.value,
360
- open: d.value,
360
+ "loading-text": e.loadingText,
361
+ "no-data-text": e.noDataText,
362
+ open: c.value,
361
363
  options: $e.value,
362
- style: Qe(ne.value),
363
- "onOption:selected": K,
364
+ style: Ke(ne.value),
365
+ "onOption:selected": _,
364
366
  "onOption:unselected": U
365
367
  }, {
366
368
  "options:prepend": r(() => [
@@ -382,7 +384,7 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
382
384
  }, n))
383
385
  ]),
384
386
  _: 3
385
- }, 8, ["compact", "loading", "open", "options", "style"])
387
+ }, 8, ["compact", "loading", "loading-text", "no-data-text", "open", "options", "style"])
386
388
  ]),
387
389
  _: 3
388
390
  })) : J("", !0)
package/dist/index39.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeClass as F, normalizeStyle as I } from "vue";
2
- import { clamp as le } from "./index205.js";
2
+ import { clamp as le } from "./index229.js";
3
3
  import { head as O } from "./index250.js";
4
- import { isCssColor as Y } from "./index231.js";
4
+ import { isCssColor as Y } from "./index226.js";
5
5
  import { isNil as P } from "./index251.js";
6
6
  import { isNotNil as ne } from "./index134.js";
7
7
  import { transposeValue as y } from "./index131.js";
8
- import { hash as J } from "./index223.js";
8
+ import { hash as J } from "./index232.js";
9
9
  const oe = { class: "bb-base-slider__slider-container" }, ie = {
10
10
  key: 0,
11
11
  class: "bb-base-slider__ticks-container"
package/dist/index41.js CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent as I, ref as f, computed as n, watch as S, openBlock as h, createElementBlock as y, normalizeProps as r, guardReactiveProps as d, mergeProps as V, createCommentVNode as q, createElementVNode as l, renderSlot as A } from "vue";
2
- import { isCssColor as b } from "./index231.js";
3
- import { when as F } from "./index232.js";
4
- const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
1
+ import { defineComponent as I, ref as f, computed as n, watch as S, openBlock as h, createElementBlock as y, normalizeProps as r, guardReactiveProps as d, mergeProps as V, createCommentVNode as A, createElementVNode as l, renderSlot as F } from "vue";
2
+ import { isCssColor as b } from "./index226.js";
3
+ import { when as N } from "./index227.js";
4
+ const x = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
5
5
  __name: "BaseSwitch",
6
6
  props: {
7
7
  ariaDescribedby: {},
@@ -34,7 +34,7 @@ const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
34
34
  }
35
35
  };
36
36
  return e.color && b(e.color) && (a.style = `--color: ${e.color}`), a;
37
- }), m = F(
37
+ }), m = N(
38
38
  (a) => typeof a != "string",
39
39
  JSON.stringify
40
40
  ), g = n(() => {
@@ -91,7 +91,6 @@ const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
91
91
  name: e.name,
92
92
  parsedValue: p.value.value,
93
93
  readonly: e.readonly,
94
- required: e.required,
95
94
  trueValue: e.trueValue,
96
95
  value: s.value ? e.trueValue : e.falseValue
97
96
  })), _ = n(() => {
@@ -107,13 +106,13 @@ const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
107
106
  u.value && (u.value.indeterminate = !!e.indeterminate);
108
107
  }
109
108
  ), (a, c) => (h(), y("span", r(d(w.value)), [
110
- !s.value && a.submitWhenFalse ? (h(), y("input", r(V({ key: 0 }, g.value)), null, 16)) : q("", !0),
109
+ !s.value && a.submitWhenFalse ? (h(), y("input", r(V({ key: 0 }, g.value)), null, 16)) : A("", !0),
111
110
  l("input", V(p.value, {
112
111
  ref_key: "checkboxInput",
113
112
  ref: u
114
113
  }), null, 16),
115
- l("span", N, [
116
- A(a.$slots, "icon", r(d(B.value)), () => [
114
+ l("span", x, [
115
+ F(a.$slots, "icon", r(d(B.value)), () => [
117
116
  l("span", r(d(_.value)), c[0] || (c[0] = [
118
117
  l("span", { class: "bb-base-switch-container__icon-thumb" }, null, -1)
119
118
  ]), 16)