bitboss-ui 2.0.94 → 2.0.96

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 (181) hide show
  1. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +1 -1
  2. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
  3. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +5 -1
  4. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +9 -4
  5. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +2 -0
  6. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +4 -0
  7. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +4 -0
  8. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +5 -1
  9. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +1 -1
  10. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
  11. package/dist/components/BaseRating/BaseRating.vue.d.ts +1 -1
  12. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +8 -0
  13. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +1 -1
  14. package/dist/components/BaseTag/BaseTag.vue.d.ts +6 -1
  15. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +5 -1
  16. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +5 -1
  17. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +1 -1
  18. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +5 -1
  19. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +5 -1
  20. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
  21. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -2
  22. package/dist/components/BbRadio/BbRadio.vue.d.ts +1 -1
  23. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +5 -1
  24. package/dist/components/BbRating/BbRating.vue.d.ts +5 -1
  25. package/dist/components/BbRows/BbRows.vue.d.ts +1 -1
  26. package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
  27. package/dist/components/BbSlider/BbSlider.vue.d.ts +5 -1
  28. package/dist/components/BbTable/types.d.ts +1 -1
  29. package/dist/components/BbTag/BbTag.vue.d.ts +5 -1
  30. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +5 -1
  31. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +5 -1
  32. package/dist/components/ListBox.vue.d.ts +4 -0
  33. package/dist/index100.js +10 -10
  34. package/dist/index101.js +18 -15
  35. package/dist/index103.js +11 -9
  36. package/dist/index105.js +10 -10
  37. package/dist/index107.js +16 -14
  38. package/dist/index111.js +5 -5
  39. package/dist/index113.js +12 -9
  40. package/dist/index115.js +27 -24
  41. package/dist/index117.js +27 -24
  42. package/dist/index119.js +1 -1
  43. package/dist/index121.js +5 -5
  44. package/dist/index123.js +1 -1
  45. package/dist/index128.js +1 -1
  46. package/dist/index13.js +1 -1
  47. package/dist/index134.js +2 -2
  48. package/dist/index15.js +24 -22
  49. package/dist/index17.js +14 -15
  50. package/dist/index19.js +57 -51
  51. package/dist/index208.js +7 -125
  52. package/dist/index209.js +126 -5
  53. package/dist/index21.js +77 -72
  54. package/dist/index210.js +5 -125
  55. package/dist/index211.js +123 -17
  56. package/dist/index212.js +18 -15
  57. package/dist/index213.js +10 -10
  58. package/dist/index214.js +16 -2
  59. package/dist/index215.js +2 -2
  60. package/dist/index216.js +2 -41
  61. package/dist/index217.js +41 -20
  62. package/dist/index218.js +20 -6
  63. package/dist/index219.js +5 -52
  64. package/dist/index220.js +55 -0
  65. package/dist/index222.js +12 -4
  66. package/dist/index223.js +5 -12
  67. package/dist/index224.js +12 -369
  68. package/dist/index225.js +369 -3
  69. package/dist/index226.js +19 -4
  70. package/dist/index227.js +22 -14
  71. package/dist/index228.js +3 -27
  72. package/dist/index229.js +250 -3
  73. package/dist/index23.js +28 -26
  74. package/dist/index230.js +50 -6
  75. package/dist/index231.js +36 -241
  76. package/dist/index232.js +5 -52
  77. package/dist/index233.js +47 -31
  78. package/dist/index234.js +164 -5
  79. package/dist/index235.js +78 -54
  80. package/dist/index237.js +3 -84
  81. package/dist/index238.js +9 -0
  82. package/dist/index240.js +1 -1
  83. package/dist/index242.js +4 -3
  84. package/dist/index243.js +3 -7
  85. package/dist/index246.js +1 -1
  86. package/dist/index248.js +1 -1
  87. package/dist/index25.js +6 -6
  88. package/dist/index253.js +9 -224
  89. package/dist/index254.js +23 -281
  90. package/dist/index255.js +89 -6
  91. package/dist/index257.js +6 -2
  92. package/dist/index258.js +16 -2
  93. package/dist/index259.js +9 -2
  94. package/dist/index260.js +9 -2
  95. package/dist/index261.js +8 -126
  96. package/dist/index262.js +3 -431
  97. package/dist/index263.js +11 -175
  98. package/dist/index264.js +9 -3
  99. package/dist/index265.js +19 -0
  100. package/dist/index266.js +4 -7
  101. package/dist/index267.js +281 -22
  102. package/dist/index268.js +8 -0
  103. package/dist/index269.js +2 -2
  104. package/dist/index27.js +9 -7
  105. package/dist/index270.js +2 -6
  106. package/dist/index271.js +2 -16
  107. package/dist/index272.js +2 -9
  108. package/dist/index273.js +2 -23
  109. package/dist/index274.js +2 -89
  110. package/dist/index275.js +4 -0
  111. package/dist/index276.js +2 -9
  112. package/dist/index277.js +2 -2
  113. package/dist/index278.js +2 -2
  114. package/dist/index279.js +28 -2
  115. package/dist/index280.js +21 -1
  116. package/dist/index282.js +7 -2
  117. package/dist/index283.js +2 -28
  118. package/dist/index284.js +125 -21
  119. package/dist/index285.js +433 -0
  120. package/dist/index286.js +167 -427
  121. package/dist/index287.js +3 -127
  122. package/dist/index289.js +22 -3
  123. package/dist/index29.js +10 -8
  124. package/dist/index291.js +2 -9
  125. package/dist/index292.js +4 -9
  126. package/dist/index293.js +197 -14
  127. package/dist/index294.js +435 -3
  128. package/dist/index295.js +127 -8
  129. package/dist/index296.js +88 -3
  130. package/dist/index297.js +218 -83
  131. package/dist/index300.js +23 -21
  132. package/dist/index302.js +5 -2
  133. package/dist/index303.js +2 -5
  134. package/dist/index304.js +3 -5
  135. package/dist/index305.js +3 -8
  136. package/dist/index306.js +3 -3
  137. package/dist/index307.js +58 -3
  138. package/dist/index308.js +10 -57
  139. package/dist/index309.js +6 -3
  140. package/dist/index31.js +4 -4
  141. package/dist/index310.js +19 -3
  142. package/dist/index311.js +6 -6
  143. package/dist/index312.js +32 -18
  144. package/dist/index313.js +46 -32
  145. package/dist/index314.js +4 -6
  146. package/dist/index315.js +7 -10
  147. package/dist/index316.js +2 -47
  148. package/dist/index317.js +4 -2
  149. package/dist/{index319.js → index318.js} +1 -1
  150. package/dist/index33.js +12 -12
  151. package/dist/index35.js +33 -33
  152. package/dist/index37.js +54 -50
  153. package/dist/index39.js +2 -2
  154. package/dist/index41.js +1 -1
  155. package/dist/index43.js +3 -3
  156. package/dist/index45.js +44 -42
  157. package/dist/index47.js +31 -29
  158. package/dist/index49.js +18 -16
  159. package/dist/index63.js +9 -9
  160. package/dist/index65.js +11 -9
  161. package/dist/index67.js +24 -21
  162. package/dist/index71.js +8 -5
  163. package/dist/index75.js +3 -3
  164. package/dist/index79.js +2 -2
  165. package/dist/index81.js +1 -1
  166. package/dist/index82.js +24 -21
  167. package/dist/index84.js +3 -3
  168. package/dist/index86.js +1 -1
  169. package/dist/index88.js +3 -3
  170. package/dist/index92.js +6 -6
  171. package/dist/index94.js +11 -9
  172. package/dist/index96.js +13 -11
  173. package/dist/style.css +1 -1
  174. package/dist/types/CommonProps.d.ts +1 -1
  175. package/package.json +2 -2
  176. package/dist/index221.js +0 -15
  177. package/dist/index236.js +0 -166
  178. package/dist/index256.js +0 -4
  179. package/dist/index281.js +0 -4
  180. package/dist/index288.js +0 -202
  181. package/dist/index290.js +0 -14
package/dist/index119.js CHANGED
@@ -1,6 +1,6 @@
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 "./index223.js";
3
+ import C from "./index224.js";
4
4
  import B from "./index301.js";
5
5
  const V = /* @__PURE__ */ l({
6
6
  __name: "BbToast",
package/dist/index121.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as N, ref as a, watch as V, computed as H, openBlock as B, createElementBlock as z, mergeProps as I, createElementVNode as p, renderSlot as C, normalizeProps as R, guardReactiveProps as S, unref as c, createVNode as U, withCtx as E, createBlock as W, createCommentVNode as j } from "vue";
2
- import { useFloating as q, arrow as A } from "./index208.js";
2
+ import { useFloating as q, arrow as A } from "./index209.js";
3
3
  import { useId as G } from "./index8.js";
4
4
  import { wait as _ } from "./index132.js";
5
5
  import J from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as m } from "./index242.js";
8
- import { waitFor as K } from "./index218.js";
9
- import Q from "./index274.js";
7
+ import { throttle as m } from "./index237.js";
8
+ import { waitFor as K } from "./index219.js";
9
+ import Q from "./index255.js";
10
10
  /* empty css */
11
- import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index224.js";
11
+ import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index225.js";
12
12
  const pe = /* @__PURE__ */ N({
13
13
  __name: "BbTooltip",
14
14
  props: {
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 "./index303.js";
2
+ import { flattenTree as T } from "./index302.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/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 "./index242.js";
2
+ import { throttle as g } from "./index237.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index13.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as k, getCurrentInstance as u, resolveComponent as p, computed as d, openBlock as v, createBlock as h, resolveDynamicComponent as C, unref as x, mergeProps as S, withCtx as L, renderSlot as B, createTextVNode as N, toDisplayString as $ } from "vue";
2
2
  import { _config as n } from "./index4.js";
3
- import { useLogger as m } from "./index230.js";
3
+ import { useLogger as m } from "./index208.js";
4
4
  const _ = /* @__PURE__ */ k({
5
5
  __name: "BaseButton",
6
6
  props: {
package/dist/index134.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index304.js";
2
- import { isPlainObject as c } from "./index305.js";
1
+ import { isArray as p } from "./index314.js";
2
+ import { isPlainObject as c } from "./index315.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,9 +1,9 @@
1
- import { defineComponent as k, ref as y, computed as v, watchPostEffect as h, openBlock as g, createElementBlock as C, Fragment as w, createVNode as d, normalizeClass as V, withCtx as n, renderSlot as l, createElementVNode as s, normalizeStyle as H, withModifiers as B, withDirectives as E, mergeProps as q, unref as $ } from "vue";
2
- import z from "./index219.js";
1
+ import { defineComponent as k, ref as y, computed as v, watchPostEffect as h, openBlock as g, createElementBlock as C, Fragment as w, createVNode as d, normalizeClass as B, withCtx as n, renderSlot as r, createElementVNode as s, normalizeStyle as V, withModifiers as H, withDirectives as E, mergeProps as q, unref as $ } from "vue";
2
+ import z from "./index220.js";
3
3
  /* empty css */
4
- import I from "./index221.js";
5
- import { vMaska as M } from "./index217.js";
6
- import { isHex as D } from "./index226.js";
4
+ import I from "./index222.js";
5
+ import { vMaska as M } from "./index218.js";
6
+ import { isHex as D } from "./index242.js";
7
7
  const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], P = ["aria-invalid", "disabled", "required"], T = /* @__PURE__ */ k({
8
8
  __name: "BaseColorInput",
9
9
  props: {
@@ -11,6 +11,7 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
11
11
  ariaDescribedby: {},
12
12
  autocomplete: {},
13
13
  autofocus: {},
14
+ compact: { type: Boolean },
14
15
  disabled: { type: Boolean },
15
16
  hasErrors: { type: Boolean },
16
17
  id: {},
@@ -19,17 +20,18 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
19
20
  name: {},
20
21
  placeholder: {},
21
22
  "prepend:icon": {},
22
- readonly: {},
23
+ readonly: { type: Boolean },
23
24
  required: { type: Boolean }
24
25
  },
25
26
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
26
- setup(t, { emit: u }) {
27
- const a = t, o = u, i = y(), p = v(() => ({
27
+ setup(t, { emit: p }) {
28
+ const a = t, o = p, i = y(), u = v(() => ({
28
29
  "bb-base-color-input": !0,
29
30
  "bb-base-color-input--disabled": a.disabled,
30
31
  "bb-base-color-input--errors": a.hasErrors,
31
32
  "bb-base-color-input--loading": a.loading,
32
- "bb-base-color-input--readonly": a.readonly
33
+ "bb-base-color-input--readonly": a.readonly,
34
+ "bb-base-color-input--compact": a.compact
33
35
  })), c = {
34
36
  onBlur: (e) => o("blur", e),
35
37
  onChange: (e) => o("change", e),
@@ -42,8 +44,8 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
42
44
  onMousedown: (e) => o("mousedown", e),
43
45
  onMouseup: (e) => o("mouseup", e),
44
46
  onMaska: (e) => {
45
- const r = e.detail;
46
- D(r.masked) ? o("update:modelValue", r.masked) : r.masked === "" && o("update:modelValue", null);
47
+ const l = e.detail;
48
+ D(l.masked) ? o("update:modelValue", l.masked) : l.masked === "" && o("update:modelValue", null);
47
49
  }
48
50
  }, m = () => {
49
51
  var e;
@@ -59,15 +61,15 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
59
61
  };
60
62
  return h(() => {
61
63
  i.value && (i.value.value = a.modelValue ?? "");
62
- }), (e, r) => (g(), C(w, null, [
64
+ }), (e, l) => (g(), C(w, null, [
63
65
  d(I, {
64
- class: V(p.value)
66
+ class: B(u.value)
65
67
  }, {
66
68
  "prepend-outer": n(() => [
67
- l(e.$slots, "prepend-outer")
69
+ r(e.$slots, "prepend-outer")
68
70
  ]),
69
71
  "append-outer": n(() => [
70
- l(e.$slots, "append-outer")
72
+ r(e.$slots, "append-outer")
71
73
  ]),
72
74
  default: n(() => [
73
75
  d(z, {
@@ -75,21 +77,21 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
75
77
  "prepend:icon": a["prepend:icon"]
76
78
  }, {
77
79
  prepend: n(() => [
78
- l(e.$slots, "prepend")
80
+ r(e.$slots, "prepend")
79
81
  ]),
80
82
  prefix: n(() => [
81
- l(e.$slots, "prefix")
83
+ r(e.$slots, "prefix")
82
84
  ]),
83
85
  append: n(() => [
84
86
  s("span", {
85
87
  class: "bb-base-color-input__indicator",
86
- style: H({ backgroundColor: a.modelValue ?? void 0 }),
87
- onClick: B(m, ["stop"])
88
+ style: V({ backgroundColor: a.modelValue ?? void 0 }),
89
+ onClick: H(m, ["stop"])
88
90
  }, null, 4),
89
- l(e.$slots, "append")
91
+ r(e.$slots, "append")
90
92
  ]),
91
93
  suffix: n(() => [
92
- l(e.$slots, "suffix")
94
+ r(e.$slots, "suffix")
93
95
  ]),
94
96
  default: n(() => [
95
97
  E(s("input", q(c, {
@@ -129,7 +131,7 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
129
131
  ]),
130
132
  _: 3
131
133
  }, 8, ["class"]),
132
- r[0] || (r[0] = s("span", null, null, -1))
134
+ l[0] || (l[0] = s("span", null, null, -1))
133
135
  ], 64));
134
136
  }
135
137
  });
package/dist/index17.js CHANGED
@@ -1,8 +1,8 @@
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 s, renderSlot as q } from "vue";
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
2
  import { isCssColor as y } from "./index239.js";
3
- import { when as F } from "./index240.js";
4
- import { booleanishToBoolean as N } from "./index241.js";
5
- const S = {
3
+ import { when as N } from "./index240.js";
4
+ import { booleanishToBoolean as S } from "./index241.js";
5
+ const A = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
8
8
  }, $ = /* @__PURE__ */ E({
@@ -18,7 +18,7 @@ const S = {
18
18
  id: {},
19
19
  indeterminate: {},
20
20
  name: {},
21
- readonly: {},
21
+ readonly: { type: Boolean },
22
22
  required: { type: Boolean },
23
23
  submitWhenFalse: { type: Boolean },
24
24
  trueValue: { default: !0 },
@@ -26,7 +26,7 @@ const S = {
26
26
  },
27
27
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
28
28
  setup(v, { emit: V }) {
29
- const e = v, t = V, l = m(null), r = n(() => e.checked ? N(e.checked) : JSON.stringify(e.trueValue) === JSON.stringify(e.modelValue)), u = m(!1), x = n(() => {
29
+ const e = v, t = V, s = m(null), r = n(() => e.checked ? S(e.checked) : JSON.stringify(e.trueValue) === JSON.stringify(e.modelValue)), u = m(!1), x = n(() => {
30
30
  const a = {
31
31
  class: {
32
32
  "bb-base-checkbox": !0,
@@ -38,7 +38,7 @@ const S = {
38
38
  }
39
39
  };
40
40
  return e.color && y(e.color) && (a.style = `--color: ${e.color}`), a;
41
- }), d = F(
41
+ }), d = N(
42
42
  (a) => typeof a != "string",
43
43
  JSON.stringify
44
44
  ), g = n(() => {
@@ -94,28 +94,27 @@ const S = {
94
94
  name: e.name,
95
95
  parsedValue: b.value.value,
96
96
  readonly: e.readonly,
97
- required: e.required,
98
97
  trueValue: e.trueValue,
99
98
  value: r.value ? e.trueValue : e.falseValue
100
99
  }));
101
100
  return _(
102
101
  () => [e.modelValue, e.checked, e.indeterminate],
103
102
  () => {
104
- l.value && (l.value.indeterminate = !!e.indeterminate);
103
+ s.value && (s.value.indeterminate = !!e.indeterminate);
105
104
  }
106
105
  ), (a, c) => (p(), h("span", i(f(x.value)), [
107
106
  !r.value && a.submitWhenFalse ? (p(), h("input", i(k({ key: 0 }, g.value)), null, 16)) : I("", !0),
108
- s("input", k(b.value, {
107
+ l("input", k(b.value, {
109
108
  ref_key: "checkboxInput",
110
- ref: l
109
+ ref: s
111
110
  }), null, 16),
112
- s("span", S, [
113
- q(a.$slots, "icon", i(f(B.value)), () => [
114
- c[0] || (c[0] = s("svg", {
111
+ l("span", A, [
112
+ F(a.$slots, "icon", i(f(B.value)), () => [
113
+ c[0] || (c[0] = l("svg", {
115
114
  class: "bb-base-checkbox-container__icon",
116
115
  viewBox: "276.411 158.834 114.971 114.97"
117
116
  }, [
118
- s("path", {
117
+ l("path", {
119
118
  d: "M 297.574 224.786 L 318.309 243.134 L 371.568 189.232",
120
119
  fill: "none",
121
120
  "stroke-linecap": "round",
package/dist/index19.js CHANGED
@@ -1,10 +1,10 @@
1
- import { defineComponent as $, ref as p, toRef as l, openBlock as B, createBlock as w, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v } from "vue";
2
- import { useOptions as z } from "./index236.js";
3
- import F from "./index17.js";
1
+ import { defineComponent as $, ref as b, toRef as l, openBlock as w, createBlock as O, unref as h, withCtx as i, renderSlot as s, normalizeProps as m, guardReactiveProps as p, createVNode as z, mergeProps as v } from "vue";
2
+ import { useOptions as F } from "./index234.js";
3
+ import M from "./index17.js";
4
4
  /* empty css */
5
- import M from "./index237.js";
5
+ import H from "./index235.js";
6
6
  /* empty css */
7
- const A = /* @__PURE__ */ $({
7
+ const q = /* @__PURE__ */ $({
8
8
  __name: "BaseCheckboxGroup",
9
9
  props: {
10
10
  ariaDescribedby: {},
@@ -27,60 +27,63 @@ const A = /* @__PURE__ */ $({
27
27
  modelValueDebounceTime: { default: 0 },
28
28
  name: {},
29
29
  noDataText: { default: "Nessun elemento da visualizzare" },
30
- readonly: {}
30
+ readonly: { type: Boolean }
31
31
  },
32
32
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
33
33
  setup(g, { emit: y }) {
34
- const a = g, o = y, m = p(), r = p(!1), {
34
+ const n = g, a = y, f = b(), r = b(!1), {
35
35
  innerLoading: T,
36
36
  options: k,
37
37
  selectOption: D,
38
38
  unselectOption: C
39
- } = z({
40
- dependencies: l(a, "dependencies"),
41
- depsDebounceTime: a.depsDebounceTime,
42
- disabled: l(a, "disabled"),
43
- emit: o,
44
- enforceCoherence: a.enforceCoherence,
45
- items: l(a, "items"),
46
- itemText: a.itemText,
47
- itemValue: a.itemValue,
48
- max: a.max,
49
- modelValue: l(a, "modelValue"),
50
- modelValueDebounceTime: a.modelValueDebounceTime,
39
+ } = F({
40
+ dependencies: l(n, "dependencies"),
41
+ depsDebounceTime: n.depsDebounceTime,
42
+ disabled: l(n, "disabled"),
43
+ emit: a,
44
+ enforceCoherence: n.enforceCoherence,
45
+ items: l(n, "items"),
46
+ itemText: n.itemText,
47
+ itemValue: n.itemValue,
48
+ max: n.max,
49
+ modelValue: l(n, "modelValue"),
50
+ modelValueDebounceTime: n.modelValueDebounceTime,
51
51
  multiple: !0,
52
52
  prefill: !0,
53
53
  queryDebounceTime: 0,
54
54
  resetQueryOnOptionSelected: !1,
55
55
  stash: !1
56
- }), L = (e, t) => {
57
- o("change", e), t.selected ? C(t) : D(t);
58
- }, E = {
59
- onBlur: (e) => o("blur", e),
60
- onClick: (e) => o("click", e),
56
+ }), L = (e) => {
57
+ if (n.id)
58
+ return [n.id, e.valueHash].filter(Boolean).join("-");
59
+ }, E = (e, t) => {
60
+ a("change", e), t.selected ? C(t) : D(t);
61
+ }, V = {
62
+ onBlur: (e) => a("blur", e),
63
+ onClick: (e) => a("click", e),
61
64
  onFocus: (e) => {
62
- o("focus", e), r.value || (document.addEventListener("focusin", d, { passive: !0 }), document.addEventListener("click", u, { passive: !0 }), r.value = !0);
65
+ a("focus", e), r.value || (document.addEventListener("focusin", d, { passive: !0 }), document.addEventListener("click", u, { passive: !0 }), r.value = !0);
63
66
  },
64
- onInput: (e) => o("input", e),
65
- onKeydown: (e) => o("keydown", e),
66
- onMousedown: (e) => o("mousedown", e),
67
- onMouseup: (e) => o("mouseup", e)
67
+ onInput: (e) => a("input", e),
68
+ onKeydown: (e) => a("keydown", e),
69
+ onMousedown: (e) => a("mousedown", e),
70
+ onMouseup: (e) => a("mouseup", e)
68
71
  }, d = (e) => {
69
72
  var t;
70
- e.target instanceof HTMLElement && ((t = m.value) != null && t.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
73
+ e.target instanceof HTMLElement && ((t = f.value) != null && t.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
71
74
  }, u = (e) => {
72
75
  var t;
73
- e.target instanceof HTMLElement && ((t = m.value) != null && t.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
76
+ e.target instanceof HTMLElement && ((t = f.value) != null && t.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
74
77
  };
75
- return (e, t) => (B(), w(M, {
78
+ return (e, t) => (w(), O(H, {
76
79
  class: "bb-base-checkbox-group",
77
80
  direction: e.direction,
78
81
  "has-errors": e.hasErrors,
79
82
  "hide-label": e.hideLabel,
80
- loading: !!f(T),
83
+ loading: !!h(T),
81
84
  "loading-text": e.loadingText,
82
85
  "no-data-text": e.noDataText,
83
- options: f(k)
86
+ options: h(k)
84
87
  }, {
85
88
  prepend: i(() => [
86
89
  s(e.$slots, "prepend")
@@ -91,43 +94,46 @@ const A = /* @__PURE__ */ $({
91
94
  "no-data": i(() => [
92
95
  s(e.$slots, "no-data")
93
96
  ]),
94
- "option:prepend": i((n) => [
95
- s(e.$slots, "option:prepend", b(h(n)))
97
+ label: i((o) => [
98
+ s(e.$slots, "label", m(p(o)))
96
99
  ]),
97
- input: i(({ option: n, index: V }) => [
98
- O(F, v({
99
- id: `${e.id}-${n.valueHash}`,
100
+ "option:prepend": i((o) => [
101
+ s(e.$slots, "option:prepend", m(p(o)))
102
+ ]),
103
+ input: i(({ option: o, index: B }) => [
104
+ z(M, v({
105
+ id: L(o),
100
106
  "aria-describedby": e.ariaDescribedby,
101
- autofocus: e.autofocus && !V,
102
- checked: n.selected,
107
+ autofocus: e.autofocus && !B,
108
+ checked: o.selected,
103
109
  color: e.color,
104
- disabled: n.disabled,
110
+ disabled: o.disabled,
105
111
  "has-errors": e.hasErrors,
106
112
  name: e.name,
107
113
  readonly: e.readonly,
108
- "true-value": n.value
109
- }, E, {
110
- onChange: (c) => L(c, n)
114
+ "true-value": o.value
115
+ }, V, {
116
+ onChange: (c) => E(c, o)
111
117
  }), {
112
118
  icon: i((c) => [
113
119
  s(e.$slots, "icon", v({
114
- item: n.item,
115
- text: n.text
120
+ item: o.item,
121
+ text: o.text
116
122
  }, c))
117
123
  ]),
118
124
  _: 2
119
125
  }, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "name", "readonly", "true-value", "onChange"])
120
126
  ]),
121
- "option:append": i((n) => [
122
- s(e.$slots, "option:prepend", b(h(n)))
127
+ "option:append": i((o) => [
128
+ s(e.$slots, "option:append", m(p(o)))
123
129
  ]),
124
130
  append: i(() => [
125
- s(e.$slots, "prepend")
131
+ s(e.$slots, "append")
126
132
  ]),
127
133
  _: 3
128
134
  }, 8, ["direction", "has-errors", "hide-label", "loading", "loading-text", "no-data-text", "options"]));
129
135
  }
130
136
  });
131
137
  export {
132
- A as default
138
+ q as default
133
139
  };
package/dist/index208.js CHANGED
@@ -1,128 +1,10 @@
1
- import { arrow as j, computePosition as A } from "./index224.js";
2
- import { autoUpdate as W, flip as X, hide as Y, offset as Z, platform as ee, shift as ne } from "./index224.js";
3
- import { isNode as B, getNodeName as F } from "./index261.js";
4
- import { getOverflowAncestors as le } from "./index261.js";
5
- import { computed as a, ref as f, shallowRef as I, watch as h, getCurrentScope as U, onScopeDispose as k, shallowReadonly as r, unref as q } from "vue";
6
- function z(e) {
7
- return e != null && typeof e == "object" && "$el" in e;
8
- }
9
- function g(e) {
10
- if (z(e)) {
11
- const l = e.$el;
12
- return B(l) && F(l) === "#comment" ? null : l;
1
+ const o = "bitboss-ui | ", e = () => ({
2
+ warn: (r) => console.warn(`${o}${r}`),
3
+ error: (r) => console.error(`${o}${r}`),
4
+ throw: (r) => {
5
+ throw new Error(`${o}${r}`);
13
6
  }
14
- return e;
15
- }
16
- function o(e) {
17
- return typeof e == "function" ? e() : q(e);
18
- }
19
- function K(e) {
20
- return {
21
- name: "arrow",
22
- options: e,
23
- fn(l) {
24
- const t = g(o(e.element));
25
- return t == null ? {} : j({
26
- element: t,
27
- padding: e.padding
28
- }).fn(l);
29
- }
30
- };
31
- }
32
- function M(e) {
33
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
34
- }
35
- function C(e, l) {
36
- const t = M(e);
37
- return Math.round(l * t) / t;
38
- }
39
- function L(e, l, t) {
40
- t === void 0 && (t = {});
41
- const x = t.whileElementsMounted, V = a(() => {
42
- var n;
43
- return (n = o(t.open)) != null ? n : !0;
44
- }), D = a(() => o(t.middleware)), d = a(() => {
45
- var n;
46
- return (n = o(t.placement)) != null ? n : "bottom";
47
- }), v = a(() => {
48
- var n;
49
- return (n = o(t.strategy)) != null ? n : "absolute";
50
- }), S = a(() => {
51
- var n;
52
- return (n = o(t.transform)) != null ? n : !0;
53
- }), i = a(() => g(e.value)), u = a(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), O = f(d.value), P = I({}), y = f(!1), _ = a(() => {
54
- const n = {
55
- position: c.value,
56
- left: "0",
57
- top: "0"
58
- };
59
- if (!u.value)
60
- return n;
61
- const R = C(u.value, p.value), b = C(u.value, w.value);
62
- return S.value ? {
63
- ...n,
64
- transform: "translate(" + R + "px, " + b + "px)",
65
- ...M(u.value) >= 1.5 && {
66
- willChange: "transform"
67
- }
68
- } : {
69
- position: c.value,
70
- left: R + "px",
71
- top: b + "px"
72
- };
73
- });
74
- let s;
75
- function m() {
76
- i.value == null || u.value == null || A(i.value, u.value, {
77
- middleware: D.value,
78
- placement: d.value,
79
- strategy: v.value
80
- }).then((n) => {
81
- p.value = n.x, w.value = n.y, c.value = n.strategy, O.value = n.placement, P.value = n.middlewareData, y.value = !0;
82
- });
83
- }
84
- function E() {
85
- typeof s == "function" && (s(), s = void 0);
86
- }
87
- function N() {
88
- if (E(), x === void 0) {
89
- m();
90
- return;
91
- }
92
- if (i.value != null && u.value != null) {
93
- s = x(i.value, u.value, m);
94
- return;
95
- }
96
- }
97
- function $() {
98
- V.value || (y.value = !1);
99
- }
100
- return h([D, d, v], m, {
101
- flush: "sync"
102
- }), h([i, u], N, {
103
- flush: "sync"
104
- }), h(V, $, {
105
- flush: "sync"
106
- }), U() && k(E), {
107
- x: r(p),
108
- y: r(w),
109
- strategy: r(c),
110
- placement: r(O),
111
- middlewareData: r(P),
112
- isPositioned: r(y),
113
- floatingStyles: _,
114
- update: m
115
- };
116
- }
7
+ });
117
8
  export {
118
- K as arrow,
119
- W as autoUpdate,
120
- A as computePosition,
121
- X as flip,
122
- le as getOverflowAncestors,
123
- Y as hide,
124
- Z as offset,
125
- ee as platform,
126
- ne as shift,
127
- L as useFloating
9
+ e as useLogger
128
10
  };