bitboss-ui 2.0.95 → 2.0.97

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 (207) hide show
  1. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +1 -1
  2. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +3 -3
  3. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +5 -1
  4. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +22 -5
  5. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +2 -0
  6. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +69 -19
  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 +7 -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/BbSelect/BbSelect.vue.d.ts +4 -0
  26. package/dist/components/BbSlider/BbSlider.vue.d.ts +5 -1
  27. package/dist/components/BbTable/types.d.ts +1 -1
  28. package/dist/components/BbTag/BbTag.vue.d.ts +5 -1
  29. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +5 -1
  30. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +5 -1
  31. package/dist/components/ListBox.vue.d.ts +4 -0
  32. package/dist/components/OptionsContainer.vue.d.ts +2 -2
  33. package/dist/composables/useBbConfig.d.ts +3 -0
  34. package/dist/composables/useLocale.d.ts +5 -0
  35. package/dist/i18n/en.d.ts +8 -0
  36. package/dist/i18n/index.d.ts +3 -0
  37. package/dist/i18n/it.d.ts +8 -0
  38. package/dist/index100.js +4 -4
  39. package/dist/index101.js +18 -15
  40. package/dist/index103.js +11 -9
  41. package/dist/index105.js +10 -10
  42. package/dist/index107.js +16 -14
  43. package/dist/index111.js +6 -6
  44. package/dist/index113.js +12 -9
  45. package/dist/index115.js +27 -24
  46. package/dist/index117.js +27 -24
  47. package/dist/index119.js +2 -2
  48. package/dist/index121.js +5 -5
  49. package/dist/index123.js +1 -1
  50. package/dist/index127.js +1 -1
  51. package/dist/index128.js +1 -1
  52. package/dist/index129.js +1 -1
  53. package/dist/index13.js +1 -1
  54. package/dist/index134.js +2 -2
  55. package/dist/index15.js +22 -20
  56. package/dist/index17.js +15 -16
  57. package/dist/index19.js +72 -65
  58. package/dist/index208.js +1 -1
  59. package/dist/index21.js +84 -72
  60. package/dist/index210.js +1 -1
  61. package/dist/index211.js +5 -20
  62. package/dist/index212.js +16 -4
  63. package/dist/index213.js +16 -5
  64. package/dist/index214.js +18 -15
  65. package/dist/index215.js +16 -13
  66. package/dist/index216.js +26 -18
  67. package/dist/index217.js +3 -19
  68. package/dist/index218.js +2 -27
  69. package/dist/index219.js +8 -3
  70. package/dist/index220.js +250 -2
  71. package/dist/index221.js +50 -6
  72. package/dist/index222.js +36 -241
  73. package/dist/index223.js +5 -52
  74. package/dist/index224.js +47 -31
  75. package/dist/index225.js +2 -5
  76. package/dist/index226.js +4 -60
  77. package/dist/index227.js +2 -2
  78. package/dist/index228.js +126 -4
  79. package/dist/index229.js +125 -2
  80. package/dist/index23.js +28 -26
  81. package/dist/index230.js +2 -3
  82. package/dist/index231.js +1 -1
  83. package/dist/index232.js +20 -6
  84. package/dist/index233.js +6 -7
  85. package/dist/index234.js +5 -12
  86. package/dist/index235.js +12 -164
  87. package/dist/index236.js +368 -83
  88. package/dist/index237.js +166 -0
  89. package/dist/index238.js +83 -125
  90. package/dist/index240.js +8 -2
  91. package/dist/index241.js +3 -5
  92. package/dist/index242.js +7 -369
  93. package/dist/index243.js +1 -1
  94. package/dist/index244.js +4 -2
  95. package/dist/index245.js +1 -1
  96. package/dist/index247.js +1 -1
  97. package/dist/index249.js +2 -2
  98. package/dist/index25.js +5 -5
  99. package/dist/index250.js +2 -18
  100. package/dist/index251.js +17 -9
  101. package/dist/index252.js +9 -2
  102. package/dist/index253.js +2 -8
  103. package/dist/index254.js +3 -23
  104. package/dist/index256.js +9 -0
  105. package/dist/index257.js +4 -9
  106. package/dist/index258.js +281 -6
  107. package/dist/index259.js +6 -16
  108. package/dist/index260.js +2 -3
  109. package/dist/index261.js +4 -0
  110. package/dist/index262.js +2 -7
  111. package/dist/index263.js +2 -176
  112. package/dist/index264.js +2 -281
  113. package/dist/index265.js +2 -6
  114. package/dist/index266.js +2 -2
  115. package/dist/index267.js +2 -2
  116. package/dist/index268.js +2 -2
  117. package/dist/index269.js +2 -2
  118. package/dist/index27.js +8 -6
  119. package/dist/index270.js +28 -2
  120. package/dist/index271.js +22 -2
  121. package/dist/index273.js +89 -2
  122. package/dist/index275.js +9 -2
  123. package/dist/index276.js +6 -28
  124. package/dist/index277.js +15 -21
  125. package/dist/index278.js +11 -0
  126. package/dist/index279.js +23 -4
  127. package/dist/index280.js +3 -431
  128. package/dist/index281.js +12 -2
  129. package/dist/index282.js +7 -87
  130. package/dist/index283.js +9 -3
  131. package/dist/index284.js +17 -12
  132. package/dist/index285.js +3 -8
  133. package/dist/index286.js +7 -9
  134. package/dist/index287.js +11 -17
  135. package/dist/index288.js +2 -4
  136. package/dist/index289.js +122 -196
  137. package/dist/index29.js +8 -6
  138. package/dist/index290.js +431 -2
  139. package/dist/index291.js +171 -121
  140. package/dist/index294.js +2 -8
  141. package/dist/index295.js +83 -218
  142. package/dist/index296.js +219 -431
  143. package/dist/index297.js +8 -127
  144. package/dist/index298.js +200 -3
  145. package/dist/index299.js +436 -3
  146. package/dist/index300.js +126 -210
  147. package/dist/index301.js +1 -1
  148. package/dist/index302.js +2 -32
  149. package/dist/index303.js +2 -5
  150. package/dist/index304.js +5 -8
  151. package/dist/index305.js +66 -3
  152. package/dist/index306.js +213 -3
  153. package/dist/index307.js +32 -57
  154. package/dist/index308.js +5 -2
  155. package/dist/index309.js +7 -6
  156. package/dist/index31.js +6 -6
  157. package/dist/index310.js +2 -65
  158. package/dist/index311.js +4 -5
  159. package/dist/index312.js +3 -7
  160. package/dist/index313.js +3 -19
  161. package/dist/index314.js +57 -10
  162. package/dist/index315.js +6 -3
  163. package/dist/index316.js +6 -46
  164. package/dist/index317.js +19 -480
  165. package/dist/index318.js +10 -0
  166. package/dist/index319.js +8 -2
  167. package/dist/index320.js +43 -420
  168. package/dist/index321.js +2 -47
  169. package/dist/index322.js +480 -2
  170. package/dist/index324.js +426 -0
  171. package/dist/index325.js +49 -0
  172. package/dist/index326.js +4 -0
  173. package/dist/index33.js +12 -12
  174. package/dist/index35.js +35 -35
  175. package/dist/index37.js +54 -50
  176. package/dist/index39.js +4 -4
  177. package/dist/index4.js +5 -4
  178. package/dist/index41.js +3 -3
  179. package/dist/index43.js +3 -3
  180. package/dist/index45.js +42 -40
  181. package/dist/index47.js +29 -27
  182. package/dist/index49.js +16 -14
  183. package/dist/index55.js +1 -1
  184. package/dist/index57.js +1 -1
  185. package/dist/index61.js +2 -2
  186. package/dist/index63.js +9 -9
  187. package/dist/index65.js +11 -9
  188. package/dist/index67.js +24 -21
  189. package/dist/index71.js +8 -5
  190. package/dist/index75.js +3 -3
  191. package/dist/index77.js +36 -34
  192. package/dist/index79.js +2 -2
  193. package/dist/index81.js +1 -1
  194. package/dist/index82.js +24 -21
  195. package/dist/index84.js +2 -2
  196. package/dist/index86.js +1 -1
  197. package/dist/index88.js +2 -2
  198. package/dist/index92.js +6 -6
  199. package/dist/index94.js +11 -9
  200. package/dist/index96.js +13 -11
  201. package/dist/style.css +1 -1
  202. package/dist/types/CommonProps.d.ts +1 -1
  203. package/package.json +2 -2
  204. package/dist/index239.js +0 -127
  205. package/dist/index255.js +0 -91
  206. package/dist/index272.js +0 -4
  207. package/dist/index274.js +0 -4
package/dist/index117.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, ref as h, computed as b, openBlock as f, createBlock as y, withCtx as n, renderSlot as r, normalizeProps as v, guardReactiveProps as B, createVNode as w, mergeProps as g } from "vue";
1
+ import { defineComponent as c, ref as h, computed as b, openBlock as f, createBlock as y, withCtx as a, renderSlot as n, normalizeProps as v, guardReactiveProps as B, createVNode as w, mergeProps as g } from "vue";
2
2
  import $ from "./index27.js";
3
3
  /* empty css */
4
4
  import k from "./index49.js";
@@ -9,6 +9,7 @@ const E = /* @__PURE__ */ c({
9
9
  "append:icon": {},
10
10
  autocomplete: {},
11
11
  autofocus: {},
12
+ compact: { type: Boolean },
12
13
  direction: {},
13
14
  disabled: { type: Boolean },
14
15
  errors: {},
@@ -24,14 +25,14 @@ const E = /* @__PURE__ */ c({
24
25
  persistentHint: { type: Boolean },
25
26
  placeholder: {},
26
27
  "prepend:icon": {},
27
- readonly: {},
28
+ readonly: { type: Boolean },
28
29
  required: { type: Boolean },
29
30
  reverse: { type: Boolean },
30
31
  type: {}
31
32
  },
32
33
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
33
- setup(i, { emit: p }) {
34
- const a = i, o = p, l = h(!1), d = b(() => a.persistentHint || l.value), t = {
34
+ setup(s, { emit: i }) {
35
+ const r = s, o = i, l = h(!1), d = b(() => r.persistentHint || l.value), t = {
35
36
  onBlur: (e) => {
36
37
  l.value = !1, o("blur", e);
37
38
  },
@@ -49,6 +50,7 @@ const E = /* @__PURE__ */ c({
49
50
  return (e, V) => (f(), y($, {
50
51
  id: e.id,
51
52
  class: "bb-text-input",
53
+ compact: e.compact,
52
54
  direction: e.direction,
53
55
  errors: e.errors,
54
56
  "has-errors": e.hasErrors,
@@ -61,50 +63,51 @@ const E = /* @__PURE__ */ c({
61
63
  reverse: e.reverse,
62
64
  "show-hint": d.value
63
65
  }, {
64
- label: n((s) => [
65
- r(e.$slots, "label", v(B(s)))
66
+ label: a((p) => [
67
+ n(e.$slots, "label", v(B(p)))
66
68
  ]),
67
- input: n(({ id: s, hasErrors: u, ariaDescribedby: m }) => [
69
+ input: a(({ id: p, hasErrors: u, ariaDescribedby: m }) => [
68
70
  w(k, g({
69
- id: s,
70
- "append:icon": a["append:icon"],
71
+ id: p,
72
+ "append:icon": r["append:icon"],
71
73
  "aria-describedby": m,
72
74
  autocomplete: e.autocomplete,
73
75
  autofocus: e.autofocus,
76
+ compact: e.compact,
74
77
  disabled: e.disabled,
75
78
  "has-errors": u,
76
79
  loading: e.loading,
77
80
  "model-value": e.modelValue,
78
81
  name: e.name,
79
82
  placeholder: e.placeholder,
80
- "prepend:icon": a["prepend:icon"],
83
+ "prepend:icon": r["prepend:icon"],
81
84
  readonly: e.readonly,
82
85
  required: e.required,
83
86
  type: e.type
84
87
  }, t), {
85
- "append-outer": n(() => [
86
- r(e.$slots, "append-outer")
88
+ "append-outer": a(() => [
89
+ n(e.$slots, "append-outer")
87
90
  ]),
88
- append: n(() => [
89
- r(e.$slots, "append")
91
+ append: a(() => [
92
+ n(e.$slots, "append")
90
93
  ]),
91
- prefix: n(() => [
92
- r(e.$slots, "prefix")
94
+ prefix: a(() => [
95
+ n(e.$slots, "prefix")
93
96
  ]),
94
- suffix: n(() => [
95
- r(e.$slots, "suffix")
97
+ suffix: a(() => [
98
+ n(e.$slots, "suffix")
96
99
  ]),
97
- prepend: n(() => [
98
- r(e.$slots, "prepend")
100
+ prepend: a(() => [
101
+ n(e.$slots, "prepend")
99
102
  ]),
100
- "prepend-outer": n(() => [
101
- r(e.$slots, "prepend-outer")
103
+ "prepend-outer": a(() => [
104
+ n(e.$slots, "prepend-outer")
102
105
  ]),
103
106
  _: 2
104
- }, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "type"])
107
+ }, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "compact", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "type"])
105
108
  ]),
106
109
  _: 3
107
- }, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
110
+ }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
108
111
  }
109
112
  });
110
113
  export {
package/dist/index119.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, openBlock as e, createBlock as o, withCtx as r, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as u, createElementBlock as p, Fragment as f, renderList as _, unref as n, mergeProps as d } from "vue";
2
2
  import { state as k, useToast as b } from "./index11.js";
3
- import C from "./index234.js";
4
- import B from "./index310.js";
3
+ import C from "./index235.js";
4
+ import B from "./index305.js";
5
5
  const V = /* @__PURE__ */ l({
6
6
  __name: "BbToast",
7
7
  props: {
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 "./index238.js";
2
+ import { useFloating as q, arrow as A } from "./index228.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 "./index230.js";
8
- import { waitFor as K } from "./index232.js";
9
- import Q from "./index255.js";
7
+ import { throttle as m } from "./index241.js";
8
+ import { waitFor as K } from "./index233.js";
9
+ import Q from "./index273.js";
10
10
  /* empty css */
11
- import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index242.js";
11
+ import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index236.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 "./index311.js";
2
+ import { flattenTree as T } from "./index304.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/index127.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, openBlock as h, createElementBlock as $, mergeProps as g } from "vue";
2
- import { isCssColor as I } from "./index227.js";
2
+ import { isCssColor as I } from "./index225.js";
3
3
  const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index128.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index230.js";
2
+ import { throttle as g } from "./index241.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index129.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index227.js";
2
+ import { isCssColor as u } from "./index225.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
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 "./index221.js";
3
+ import { useLogger as m } from "./index219.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 "./index303.js";
2
- import { isPlainObject as c } from "./index304.js";
1
+ import { isArray as p } from "./index308.js";
2
+ import { isPlainObject as c } from "./index309.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";
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
2
  import z from "./index208.js";
3
3
  /* empty css */
4
4
  import I from "./index210.js";
5
- import { vMaska as M } from "./index211.js";
6
- import { isHex as D } from "./index212.js";
5
+ import { vMaska as M } from "./index232.js";
6
+ import { isHex as D } from "./index244.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";
2
- import { isCssColor as y } from "./index227.js";
3
- import { when as F } from "./index228.js";
4
- import { booleanishToBoolean as N } from "./index229.js";
5
- const S = {
1
+ import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as l, renderSlot as F } from "vue";
2
+ import { isCssColor as y } from "./index225.js";
3
+ import { when as N } from "./index226.js";
4
+ import { booleanishToBoolean as S } from "./index227.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,11 @@
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 "./index235.js";
3
- import F from "./index17.js";
1
+ import { defineComponent as w, ref as v, toRef as l, openBlock as O, createBlock as x, unref as d, withCtx as i, renderSlot as s, normalizeProps as p, guardReactiveProps as f, createVNode as F, mergeProps as g } from "vue";
2
+ import { useOptions as M } from "./index237.js";
3
+ import H from "./index17.js";
4
4
  /* empty css */
5
- import M from "./index236.js";
5
+ import P from "./index238.js";
6
6
  /* empty css */
7
- const A = /* @__PURE__ */ $({
7
+ import { useLocale as z } from "./index240.js";
8
+ const N = /* @__PURE__ */ w({
8
9
  __name: "BaseCheckboxGroup",
9
10
  props: {
10
11
  ariaDescribedby: {},
@@ -21,66 +22,69 @@ const A = /* @__PURE__ */ $({
21
22
  items: { type: [Array, Function], default: () => [] },
22
23
  itemText: {},
23
24
  itemValue: {},
24
- loadingText: { default: "Caricamento..." },
25
+ loadingText: {},
25
26
  max: {},
26
27
  modelValue: {},
27
28
  modelValueDebounceTime: { default: 0 },
28
29
  name: {},
29
- noDataText: { default: "Nessun elemento da visualizzare" },
30
- readonly: {}
30
+ noDataText: {},
31
+ readonly: { type: Boolean }
31
32
  },
32
33
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
33
- setup(g, { emit: y }) {
34
- const a = g, o = y, m = p(), r = p(!1), {
35
- innerLoading: T,
36
- options: k,
37
- selectOption: D,
34
+ setup(y, { emit: T }) {
35
+ const n = y, t = T, { t: b } = z(), h = v(), r = v(!1), {
36
+ innerLoading: k,
37
+ options: D,
38
+ selectOption: L,
38
39
  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,
40
+ } = M({
41
+ dependencies: l(n, "dependencies"),
42
+ depsDebounceTime: n.depsDebounceTime,
43
+ disabled: l(n, "disabled"),
44
+ emit: t,
45
+ enforceCoherence: n.enforceCoherence,
46
+ items: l(n, "items"),
47
+ itemText: n.itemText,
48
+ itemValue: n.itemValue,
49
+ max: n.max,
50
+ modelValue: l(n, "modelValue"),
51
+ modelValueDebounceTime: n.modelValueDebounceTime,
51
52
  multiple: !0,
52
53
  prefill: !0,
53
54
  queryDebounceTime: 0,
54
55
  resetQueryOnOptionSelected: !1,
55
56
  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),
57
+ }), E = (e) => {
58
+ if (n.id)
59
+ return [n.id, e.valueHash].filter(Boolean).join("-");
60
+ }, V = (e, a) => {
61
+ t("change", e), a.selected ? C(a) : L(a);
62
+ }, B = {
63
+ onBlur: (e) => t("blur", e),
64
+ onClick: (e) => t("click", e),
61
65
  onFocus: (e) => {
62
- o("focus", e), r.value || (document.addEventListener("focusin", d, { passive: !0 }), document.addEventListener("click", u, { passive: !0 }), r.value = !0);
66
+ t("focus", e), r.value || (document.addEventListener("focusin", u, { passive: !0 }), document.addEventListener("click", c, { passive: !0 }), r.value = !0);
63
67
  },
64
- onInput: (e) => o("input", e),
65
- onKeydown: (e) => o("keydown", e),
66
- onMousedown: (e) => o("mousedown", e),
67
- onMouseup: (e) => o("mouseup", e)
68
- }, d = (e) => {
69
- 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)));
68
+ onInput: (e) => t("input", e),
69
+ onKeydown: (e) => t("keydown", e),
70
+ onMousedown: (e) => t("mousedown", e),
71
+ onMouseup: (e) => t("mouseup", e)
71
72
  }, u = (e) => {
72
- 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)));
73
+ var a;
74
+ e.target instanceof HTMLElement && ((a = h.value) != null && a.contains(e.target) || (t("inactive"), r.value = !1, document.removeEventListener("focusin", u), document.removeEventListener("click", c)));
75
+ }, c = (e) => {
76
+ var a;
77
+ e.target instanceof HTMLElement && ((a = h.value) != null && a.contains(e.target) || (t("inactive"), r.value = !1, document.removeEventListener("focusin", u), document.removeEventListener("click", c)));
74
78
  };
75
- return (e, t) => (B(), w(M, {
79
+ return (e, a) => (O(), x(P, {
76
80
  class: "bb-base-checkbox-group",
77
81
  direction: e.direction,
78
82
  "has-errors": e.hasErrors,
79
83
  "hide-label": e.hideLabel,
80
- loading: !!f(T),
81
- "loading-text": e.loadingText,
82
- "no-data-text": e.noDataText,
83
- options: f(k)
84
+ loading: !!d(k),
85
+ "loading-text": e.loadingText || d(b)("common.loadingText"),
86
+ "no-data-text": e.noDataText || d(b)("common.noDataText"),
87
+ options: d(D)
84
88
  }, {
85
89
  prepend: i(() => [
86
90
  s(e.$slots, "prepend")
@@ -91,43 +95,46 @@ const A = /* @__PURE__ */ $({
91
95
  "no-data": i(() => [
92
96
  s(e.$slots, "no-data")
93
97
  ]),
94
- "option:prepend": i((n) => [
95
- s(e.$slots, "option:prepend", b(h(n)))
98
+ label: i((o) => [
99
+ s(e.$slots, "label", p(f(o)))
96
100
  ]),
97
- input: i(({ option: n, index: V }) => [
98
- O(F, v({
99
- id: `${e.id}-${n.valueHash}`,
101
+ "option:prepend": i((o) => [
102
+ s(e.$slots, "option:prepend", p(f(o)))
103
+ ]),
104
+ input: i(({ option: o, index: $ }) => [
105
+ F(H, g({
106
+ id: E(o),
100
107
  "aria-describedby": e.ariaDescribedby,
101
- autofocus: e.autofocus && !V,
102
- checked: n.selected,
108
+ autofocus: e.autofocus && !$,
109
+ checked: o.selected,
103
110
  color: e.color,
104
- disabled: n.disabled,
111
+ disabled: o.disabled,
105
112
  "has-errors": e.hasErrors,
106
113
  name: e.name,
107
114
  readonly: e.readonly,
108
- "true-value": n.value
109
- }, E, {
110
- onChange: (c) => L(c, n)
115
+ "true-value": o.value
116
+ }, B, {
117
+ onChange: (m) => V(m, o)
111
118
  }), {
112
- icon: i((c) => [
113
- s(e.$slots, "icon", v({
114
- item: n.item,
115
- text: n.text
116
- }, c))
119
+ icon: i((m) => [
120
+ s(e.$slots, "icon", g({
121
+ item: o.item,
122
+ text: o.text
123
+ }, m))
117
124
  ]),
118
125
  _: 2
119
126
  }, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "name", "readonly", "true-value", "onChange"])
120
127
  ]),
121
- "option:append": i((n) => [
122
- s(e.$slots, "option:prepend", b(h(n)))
128
+ "option:append": i((o) => [
129
+ s(e.$slots, "option:append", p(f(o)))
123
130
  ]),
124
131
  append: i(() => [
125
- s(e.$slots, "prepend")
132
+ s(e.$slots, "append")
126
133
  ]),
127
134
  _: 3
128
135
  }, 8, ["direction", "has-errors", "hide-label", "loading", "loading-text", "no-data-text", "options"]));
129
136
  }
130
137
  });
131
138
  export {
132
- A as default
139
+ N as default
133
140
  };
package/dist/index208.js CHANGED
@@ -5,7 +5,7 @@ import a from "./index127.js";
5
5
  /* empty css */
6
6
  import $ from "./index129.js";
7
7
  /* empty css */
8
- import b from "./index302.js";
8
+ import b from "./index307.js";
9
9
  const y = { class: "bb-common-input-inner-container__prefix" }, k = { class: "bb-common-input-inner-container__suffix" }, S = /* @__PURE__ */ f({
10
10
  __name: "CommonInputInnerContainer",
11
11
  props: {