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
@@ -1,5 +1,9 @@
1
1
  import { Option } from '../types/Option';
2
2
  type Props = {
3
+ /**
4
+ * Sets the listbox in a compact state.
5
+ */
6
+ compact?: boolean;
3
7
  options: Option[];
4
8
  open?: boolean;
5
9
  loading?: boolean;
@@ -17,12 +17,12 @@ declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_
17
17
  /**
18
18
  * String displayed while items are being loaded.
19
19
  */
20
- loadingText?: string;
20
+ loadingText?: any;
21
21
  loading?: boolean;
22
22
  /**
23
23
  * String displayed when there are no items to display.
24
24
  */
25
- noDataText?: string;
25
+ noDataText?: any;
26
26
  options: Option[];
27
27
  }> & import('vue').PublicProps;
28
28
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
@@ -1,13 +1,16 @@
1
+ import { locales } from '../i18n';
1
2
  type Config = {
2
3
  inertiaLinkName: string;
3
4
  nuxtLinkName: string;
4
5
  mobileMaxWidth: number;
6
+ locale: keyof typeof locales;
5
7
  };
6
8
  export declare const _config: {
7
9
  [x: string]: any;
8
10
  inertiaLinkName: string;
9
11
  nuxtLinkName: string;
10
12
  mobileMaxWidth: number;
13
+ locale: keyof typeof locales;
11
14
  };
12
15
  export declare const useBbConfig: () => {
13
16
  setConfig: (config: Partial<Config>) => void;
@@ -0,0 +1,5 @@
1
+ import { Locale } from '../i18n';
2
+ import { NestedKeyOf } from '../types/NestedKeyOf';
3
+ export declare const useLocale: () => {
4
+ t: (path: NestedKeyOf<Locale>) => Readonly<import('vue').Ref<any, any>>;
5
+ };
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ common: {
3
+ closeLabel: string;
4
+ loadingText: string;
5
+ noDataText: string;
6
+ };
7
+ };
8
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as it } from './it';
2
+ export type Locale = typeof it;
3
+ export declare const locales: Record<'it' | 'en', Locale>;
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ common: {
3
+ closeLabel: string;
4
+ loadingText: string;
5
+ noDataText: string;
6
+ };
7
+ };
8
+ export default _default;
package/dist/index100.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as S, mergeModels as v, computed as y, toRef as u, reactive as $, useModel as b, watch as A, openBlock as h, createElementBlock as V, Fragment as k, renderSlot as r, unref as L, createCommentVNode as R, renderList as q } from "vue";
2
- import { useOptions as E } from "./index235.js";
3
- import { useItemValue as Q } from "./index286.js";
2
+ import { useOptions as E } from "./index237.js";
3
+ import { useItemValue as Q } from "./index283.js";
4
4
  import { isNil as g } from "./index130.js";
5
- import { indexBy as j } from "./index294.js";
6
- import { hash as B } from "./index219.js";
5
+ import { indexBy as j } from "./index297.js";
6
+ import { hash as B } from "./index217.js";
7
7
  const X = /* @__PURE__ */ S({
8
8
  __name: "BbRows",
9
9
  props: /* @__PURE__ */ v({
package/dist/index101.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, ref as y, computed as v, openBlock as B, createBlock as g, withCtx as n, renderSlot as a, normalizeProps as i, guardReactiveProps as l, createVNode as $, mergeProps as T } from "vue";
1
+ import { defineComponent as h, ref as y, computed as B, openBlock as v, createBlock as g, withCtx as n, renderSlot as a, normalizeProps as i, guardReactiveProps as l, createVNode as $, mergeProps as T } from "vue";
2
2
  import V from "./index27.js";
3
3
  /* empty css */
4
4
  import q from "./index37.js";
@@ -12,6 +12,7 @@ const L = /* @__PURE__ */ h({
12
12
  autocomplete: {},
13
13
  autofocus: {},
14
14
  comma: { type: Boolean },
15
+ compact: { type: Boolean },
15
16
  dependencies: {},
16
17
  depsDebounceTime: {},
17
18
  direction: {},
@@ -51,23 +52,24 @@ const L = /* @__PURE__ */ h({
51
52
  updateOnAnimationFrame: { type: Boolean }
52
53
  },
53
54
  emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue"],
54
- setup(d, { emit: u }) {
55
- const r = d, t = u, s = y(!1), m = v(() => r.persistentHint || s.value), b = {
55
+ setup(d, { emit: m }) {
56
+ const r = d, t = m, p = y(!1), u = B(() => r.persistentHint || p.value), c = {
56
57
  onBlur: (e) => t("blur", e),
57
58
  onChange: (e) => t("change", e),
58
59
  onClick: (e) => t("click", e),
59
60
  onFocus: (e) => {
60
- s.value = !0, t("focus", e);
61
+ p.value = !0, t("focus", e);
61
62
  },
62
63
  onInactive: () => {
63
- s.value = !1, t("inactive");
64
+ p.value = !1, t("inactive");
64
65
  },
65
66
  onInput: (e) => t("input", e),
66
67
  "onUpdate:modelValue": (e) => t("update:modelValue", e)
67
68
  };
68
- return (e, w) => (B(), g(V, {
69
+ return (e, w) => (v(), g(V, {
69
70
  id: e.id,
70
71
  class: "bb-select",
72
+ compact: e.compact,
71
73
  direction: e.direction,
72
74
  errors: e.errors,
73
75
  "has-errors": e.hasErrors,
@@ -78,14 +80,14 @@ const L = /* @__PURE__ */ h({
78
80
  "model-value": e.modelValue,
79
81
  name: e.name,
80
82
  reverse: e.reverse,
81
- "show-hint": m.value
83
+ "show-hint": u.value
82
84
  }, {
83
- label: n((p) => [
84
- a(e.$slots, "label", i(l(p)))
85
+ label: n((s) => [
86
+ a(e.$slots, "label", i(l(s)))
85
87
  ]),
86
- input: n(({ id: p, hasErrors: c, ariaDescribedby: f }) => [
88
+ input: n(({ id: s, hasErrors: b, ariaDescribedby: f }) => [
87
89
  $(q, T({
88
- id: p,
90
+ id: s,
89
91
  "add-options": e.addOptions,
90
92
  "allow-writing": e.allowWriting,
91
93
  "append:icon": r["append:icon"],
@@ -93,12 +95,13 @@ const L = /* @__PURE__ */ h({
93
95
  autocomplete: e.autocomplete,
94
96
  autofocus: e.autofocus,
95
97
  comma: e.comma,
98
+ compact: e.compact,
96
99
  dependencies: e.dependencies,
97
100
  "deps-debounce-time": e.depsDebounceTime,
98
101
  disabled: e.disabled,
99
102
  "enforce-coherence": e.enforceCoherence,
100
103
  "filter-by": e.filterBy,
101
- "has-errors": c,
104
+ "has-errors": b,
102
105
  "item-text": e.itemText,
103
106
  "item-value": e.itemValue,
104
107
  items: e.items,
@@ -121,7 +124,7 @@ const L = /* @__PURE__ */ h({
121
124
  stash: e.stash,
122
125
  "transition-duration": e.transitionDuration,
123
126
  "update-on-animation-frame": e.updateOnAnimationFrame
124
- }, b), {
127
+ }, c), {
125
128
  "append-outer": n((o) => [
126
129
  a(e.$slots, "append-outer", i(l(o)))
127
130
  ]),
@@ -168,10 +171,10 @@ const L = /* @__PURE__ */ h({
168
171
  a(e.$slots, "spinner", i(l(o)))
169
172
  ]),
170
173
  _: 2
171
- }, 1040, ["id", "add-options", "allow-writing", "append:icon", "aria-describedby", "autocomplete", "autofocus", "comma", "dependencies", "deps-debounce-time", "disabled", "enforce-coherence", "filter-by", "has-errors", "item-text", "item-value", "items", "loading", "loading-text", "max", "max-selected-labels", "model-value", "model-value-debounce-time", "multiple", "name", "no-data-text", "placeholder", "prefill", "prepend:icon", "query-debounce-time", "readonly", "required", "reset-query-on-option-selected", "stash", "transition-duration", "update-on-animation-frame"])
174
+ }, 1040, ["id", "add-options", "allow-writing", "append:icon", "aria-describedby", "autocomplete", "autofocus", "comma", "compact", "dependencies", "deps-debounce-time", "disabled", "enforce-coherence", "filter-by", "has-errors", "item-text", "item-value", "items", "loading", "loading-text", "max", "max-selected-labels", "model-value", "model-value-debounce-time", "multiple", "name", "no-data-text", "placeholder", "prefill", "prepend:icon", "query-debounce-time", "readonly", "required", "reset-query-on-option-selected", "stash", "transition-duration", "update-on-animation-frame"])
172
175
  ]),
173
176
  _: 3
174
- }, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
177
+ }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
175
178
  }
176
179
  });
177
180
  export {
package/dist/index103.js CHANGED
@@ -1,13 +1,14 @@
1
- import { defineComponent as c, ref as f, computed as y, openBlock as k, createBlock as w, withCtx as a, renderSlot as n, normalizeProps as i, guardReactiveProps as l, createVNode as B, mergeProps as $ } from "vue";
1
+ import { defineComponent as v, ref as y, computed as f, openBlock as B, createBlock as k, withCtx as a, renderSlot as n, normalizeProps as i, guardReactiveProps as l, createVNode as w, mergeProps as $ } from "vue";
2
2
  import g from "./index27.js";
3
3
  /* empty css */
4
4
  import P from "./index39.js";
5
5
  /* empty css */
6
- const S = /* @__PURE__ */ c({
6
+ const S = /* @__PURE__ */ v({
7
7
  __name: "BbSlider",
8
8
  props: {
9
9
  autofocus: {},
10
10
  color: {},
11
+ compact: { type: Boolean },
11
12
  direction: {},
12
13
  disabled: { type: Boolean },
13
14
  errors: {},
@@ -23,7 +24,7 @@ const S = /* @__PURE__ */ c({
23
24
  name: {},
24
25
  persistentHint: { type: Boolean },
25
26
  range: { type: Boolean },
26
- readonly: {},
27
+ readonly: { type: Boolean },
27
28
  required: { type: Boolean },
28
29
  reverse: { type: Boolean },
29
30
  step: {},
@@ -32,7 +33,7 @@ const S = /* @__PURE__ */ c({
32
33
  },
33
34
  emits: ["click", "focus", "active", "inactive", "keydown", "pointerdown", "pointermove", "pointerup", "update:modelValue"],
34
35
  setup(d, { emit: m }) {
35
- const p = d, r = m, s = f(!1), u = y(() => p.persistentHint || s.value), b = {
36
+ const p = d, r = m, s = y(!1), u = f(() => p.persistentHint || s.value), b = {
36
37
  onActive: () => {
37
38
  s.value = !0, r("active");
38
39
  },
@@ -47,9 +48,10 @@ const S = /* @__PURE__ */ c({
47
48
  onPointerup: (e) => r("pointerup", e),
48
49
  "onUpdate:modelValue": (e) => r("update:modelValue", e)
49
50
  };
50
- return (e, V) => (k(), w(g, {
51
+ return (e, V) => (B(), k(g, {
51
52
  id: e.id,
52
53
  class: "bb-slider",
54
+ compact: e.compact,
53
55
  direction: e.direction,
54
56
  errors: e.errors,
55
57
  "has-errors": e.hasErrors,
@@ -65,10 +67,10 @@ const S = /* @__PURE__ */ c({
65
67
  label: a((t) => [
66
68
  n(e.$slots, "label", i(l(t)))
67
69
  ]),
68
- input: a(({ id: t, hasErrors: h, ariaDescribedby: v }) => [
69
- B(P, $({
70
+ input: a(({ id: t, hasErrors: h, ariaDescribedby: c }) => [
71
+ w(P, $({
70
72
  id: t,
71
- "aria-describedby": v,
73
+ "aria-describedby": c,
72
74
  autofocus: e.autofocus,
73
75
  color: e.color,
74
76
  disabled: e.disabled,
@@ -106,7 +108,7 @@ const S = /* @__PURE__ */ c({
106
108
  }, 1040, ["id", "aria-describedby", "autofocus", "color", "disabled", "has-errors", "max", "min", "model-value", "name", "range", "readonly", "required", "step", "thumb-translate", "ticks"])
107
109
  ]),
108
110
  _: 3
109
- }, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
111
+ }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
110
112
  }
111
113
  });
112
114
  export {
package/dist/index105.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, ref as f, computed as v, openBlock as y, createBlock as w, withCtx as l, renderSlot as n, normalizeProps as B, guardReactiveProps as k, createVNode as V, mergeProps as i } from "vue";
1
+ import { defineComponent as c, ref as f, computed as y, openBlock as v, createBlock as w, withCtx as n, renderSlot as r, normalizeProps as B, guardReactiveProps as k, createVNode as V, mergeProps as i } from "vue";
2
2
  import g from "./index27.js";
3
3
  /* empty css */
4
4
  import P from "./index41.js";
@@ -24,7 +24,7 @@ const S = /* @__PURE__ */ c({
24
24
  modelValue: {},
25
25
  name: {},
26
26
  persistentHint: { type: Boolean },
27
- readonly: {},
27
+ readonly: { type: Boolean },
28
28
  required: { type: Boolean },
29
29
  reverse: { type: Boolean, default: !0 },
30
30
  submitWhenFalse: { type: Boolean },
@@ -32,7 +32,7 @@ const S = /* @__PURE__ */ c({
32
32
  },
33
33
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
34
34
  setup(s, { emit: t }) {
35
- const u = s, o = t, a = f(!1), d = v(() => u.persistentHint || a.value), p = {
35
+ const u = s, o = t, a = f(!1), d = y(() => u.persistentHint || a.value), p = {
36
36
  onBlur: (e) => {
37
37
  a.value = !1, o("blur", e);
38
38
  },
@@ -47,7 +47,7 @@ const S = /* @__PURE__ */ c({
47
47
  onMouseup: (e) => o("mouseup", e),
48
48
  "onUpdate:modelValue": (e) => o("update:modelValue", e)
49
49
  };
50
- return (e, q) => (y(), w(g, {
50
+ return (e, q) => (v(), w(g, {
51
51
  id: e.id,
52
52
  class: "bb-switch",
53
53
  direction: e.direction,
@@ -64,12 +64,12 @@ const S = /* @__PURE__ */ c({
64
64
  "show-hint": d.value,
65
65
  tag: "label"
66
66
  }, {
67
- label: l((r) => [
68
- n(e.$slots, "label", B(k(r)))
67
+ label: n((l) => [
68
+ r(e.$slots, "label", B(k(l)))
69
69
  ]),
70
- input: l(({ id: r, hasErrors: m, ariaDescribedby: b }) => [
70
+ input: n(({ id: l, hasErrors: m, ariaDescribedby: b }) => [
71
71
  V(P, i({
72
- id: r,
72
+ id: l,
73
73
  "aria-describedby": b,
74
74
  autofocus: e.autofocus,
75
75
  checked: e.checked,
@@ -85,8 +85,8 @@ const S = /* @__PURE__ */ c({
85
85
  "submit-when-false": e.submitWhenFalse,
86
86
  "true-value": e.trueValue
87
87
  }, p), {
88
- icon: l((h) => [
89
- n(e.$slots, "icon", i(h, { text: e.label }))
88
+ icon: n((h) => [
89
+ r(e.$slots, "icon", i(h, { text: e.label }))
90
90
  ]),
91
91
  _: 2
92
92
  }, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "false-value", "has-errors", "indeterminate", "model-value", "name", "readonly", "required", "submit-when-false", "true-value"])
package/dist/index107.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, ref as v, computed as g, openBlock as y, createBlock as w, withCtx as a, renderSlot as i, normalizeProps as l, guardReactiveProps as r, createVNode as B, mergeProps as $ } from "vue";
1
+ import { defineComponent as f, ref as v, computed as g, openBlock as y, createBlock as B, withCtx as a, renderSlot as i, normalizeProps as l, guardReactiveProps as r, createVNode as w, mergeProps as $ } from "vue";
2
2
  import T from "./index27.js";
3
3
  /* empty css */
4
4
  import V from "./index43.js";
@@ -8,6 +8,7 @@ const E = /* @__PURE__ */ f({
8
8
  props: {
9
9
  autofocus: {},
10
10
  color: {},
11
+ compact: { type: Boolean },
11
12
  dependencies: {},
12
13
  depsDebounceTime: {},
13
14
  disabled: { type: Boolean },
@@ -30,20 +31,20 @@ const E = /* @__PURE__ */ f({
30
31
  name: {},
31
32
  noDataText: {},
32
33
  persistentHint: { type: Boolean },
33
- readonly: {},
34
+ readonly: { type: Boolean },
34
35
  reverse: { type: Boolean }
35
36
  },
36
37
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
37
- setup(t, { emit: p }) {
38
- const u = t, n = p, s = v(!1), m = g(() => u.persistentHint || s.value), c = {
38
+ setup(d, { emit: p }) {
39
+ const m = d, n = p, t = v(!1), u = g(() => m.persistentHint || t.value), c = {
39
40
  onBlur: (e) => n("blur", e),
40
41
  onChange: (e) => n("change", e),
41
42
  onClick: (e) => n("click", e),
42
43
  onFocus: (e) => {
43
- s.value = !0, n("focus", e);
44
+ t.value = !0, n("focus", e);
44
45
  },
45
46
  onInactive: () => {
46
- s.value = !1, n("inactive");
47
+ t.value = !1, n("inactive");
47
48
  },
48
49
  onInput: (e) => n("input", e),
49
50
  onKeydown: (e) => n("keydown", e),
@@ -51,9 +52,10 @@ const E = /* @__PURE__ */ f({
51
52
  onMouseup: (e) => n("mouseup", e),
52
53
  "onUpdate:modelValue": (e) => n("update:modelValue", e)
53
54
  };
54
- return (e, D) => (y(), w(T, {
55
+ return (e, D) => (y(), B(T, {
55
56
  id: e.id,
56
57
  class: "bb-switch-group",
58
+ compact: e.compact,
57
59
  direction: "vertical",
58
60
  errors: e.errors,
59
61
  "has-errors": e.hasErrors,
@@ -63,15 +65,15 @@ const E = /* @__PURE__ */ f({
63
65
  "label-tag": "legend",
64
66
  name: e.name,
65
67
  reverse: e.reverse,
66
- "show-hint": m.value,
68
+ "show-hint": u.value,
67
69
  tag: "fieldset"
68
70
  }, {
69
- label: a((d) => [
70
- i(e.$slots, "legend", l(r(d)))
71
+ label: a((s) => [
72
+ i(e.$slots, "legend", l(r(s)))
71
73
  ]),
72
- input: a(({ id: d, hasErrors: h, ariaDescribedby: b }) => [
73
- B(V, $({
74
- id: d,
74
+ input: a(({ id: s, hasErrors: h, ariaDescribedby: b }) => [
75
+ w(V, $({
76
+ id: s,
75
77
  "aria-describedby": b,
76
78
  autofocus: e.autofocus,
77
79
  color: e.color,
@@ -121,7 +123,7 @@ const E = /* @__PURE__ */ f({
121
123
  }, 1040, ["id", "aria-describedby", "autofocus", "color", "dependencies", "deps-debounce-time", "direction", "disabled", "enforce-coherence", "has-errors", "hide-label", "item-text", "item-value", "items", "loading-text", "max", "model-value", "model-value-debounce-time", "name", "no-data-text", "readonly"])
122
124
  ]),
123
125
  _: 3
124
- }, 8, ["id", "errors", "has-errors", "hide-label", "hint", "label", "name", "reverse", "show-hint"]));
126
+ }, 8, ["id", "compact", "errors", "has-errors", "hide-label", "hint", "label", "name", "reverse", "show-hint"]));
125
127
  }
126
128
  });
127
129
  export {
package/dist/index111.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as re, mergeModels as P, ref as ue, computed as k, toRef as A, useModel as Q, watch as U, reactive as pe, openBlock as n, createBlock as W, resolveDynamicComponent as fe, normalizeClass as r, unref as i, withCtx as me, createElementBlock as d, toDisplayString as u, createCommentVNode as C, createElementVNode as o, renderSlot as p, isRef as ye, Fragment as T, renderList as V, createVNode as G, createTextVNode as he, mergeProps as ke } from "vue";
2
- import { add as ve } from "./index308.js";
2
+ import { add as ve } from "./index303.js";
3
3
  import { clamp as _e } from "./index206.js";
4
4
  import { isNil as K } from "./index130.js";
5
5
  import { useId as Ce } from "./index8.js";
6
- import { useItemValue as ge } from "./index286.js";
7
- import { when as we } from "./index228.js";
6
+ import { useItemValue as ge } from "./index283.js";
7
+ import { when as we } from "./index226.js";
8
8
  import X from "./index17.js";
9
9
  /* empty css */
10
10
  import Te from "./index31.js";
11
11
  /* empty css */
12
- import { useOptions as Ve } from "./index235.js";
13
- import { hash as Y } from "./index219.js";
12
+ import { useOptions as Ve } from "./index237.js";
13
+ import { hash as Y } from "./index217.js";
14
14
  const $e = {
15
15
  key: 0,
16
16
  class: "sr-only"
@@ -48,7 +48,7 @@ const $e = {
48
48
  multiple: { type: Boolean, default: !0 },
49
49
  name: {},
50
50
  noDataText: { default: "Non ci sono elementi da visualizzare" },
51
- readonly: {},
51
+ readonly: { type: Boolean },
52
52
  selectable: { type: [Boolean, Function] },
53
53
  selectAllLabel: { default: "Seleziona tutti gli elementi di questa pagina" },
54
54
  selectText: { default: "Seleziona un elemento" },
package/dist/index113.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, ref as v, computed as y, openBlock as B, createBlock as g, withCtx as l, renderSlot as r, normalizeProps as n, guardReactiveProps as i, createVNode as k, mergeProps as $ } from "vue";
1
+ import { defineComponent as f, ref as y, computed as v, openBlock as B, createBlock as g, withCtx as l, renderSlot as r, normalizeProps as n, guardReactiveProps as i, createVNode as k, mergeProps as $ } from "vue";
2
2
  import w from "./index27.js";
3
3
  /* empty css */
4
4
  import V from "./index45.js";
@@ -10,6 +10,7 @@ const I = /* @__PURE__ */ f({
10
10
  autocomplete: {},
11
11
  autofocus: {},
12
12
  comma: { type: Boolean },
13
+ compact: { type: Boolean },
13
14
  direction: {},
14
15
  disabled: { type: Boolean },
15
16
  divider: {},
@@ -28,22 +29,22 @@ const I = /* @__PURE__ */ f({
28
29
  persistentHint: { type: Boolean },
29
30
  placeholder: {},
30
31
  "prepend:icon": {},
31
- readonly: {},
32
+ readonly: { type: Boolean },
32
33
  required: { type: Boolean },
33
34
  reverse: { type: Boolean }
34
35
  },
35
36
  emits: ["blur", "change", "click", "duplicate", "focus", "inactive", "input", "keydown", "keyup", "update:modelValue"],
36
37
  setup(t, { emit: u }) {
37
- const d = t, a = u, p = v(!1), m = y(() => d.persistentHint || p.value), c = {
38
+ const p = t, a = u, d = y(!1), m = v(() => p.persistentHint || d.value), c = {
38
39
  onBlur: (e) => a("blur", e),
39
40
  onChange: (e) => a("change", e),
40
41
  onClick: (e) => a("click", e),
41
42
  onDuplicate: (e) => a("duplicate", e),
42
43
  onFocus: (e) => {
43
- p.value = !0, a("focus", e);
44
+ d.value = !0, a("focus", e);
44
45
  },
45
46
  onInactive: () => {
46
- p.value = !1, a("inactive");
47
+ d.value = !1, a("inactive");
47
48
  },
48
49
  onInput: (e) => a("input", e),
49
50
  onKeydown: (e) => a("keydown", e),
@@ -53,6 +54,7 @@ const I = /* @__PURE__ */ f({
53
54
  return (e, P) => (B(), g(w, {
54
55
  id: e.id,
55
56
  class: "bb-tag",
57
+ compact: e.compact,
56
58
  direction: e.direction,
57
59
  errors: e.errors,
58
60
  "has-errors": e.hasErrors,
@@ -71,11 +73,12 @@ const I = /* @__PURE__ */ f({
71
73
  input: l(({ id: s, hasErrors: h, ariaDescribedby: b }) => [
72
74
  k(V, $({
73
75
  id: s,
74
- "append:icon": d["append:icon"],
76
+ "append:icon": p["append:icon"],
75
77
  "aria-describedby": b,
76
78
  autocomplete: e.autocomplete,
77
79
  autofocus: e.autofocus,
78
80
  comma: e.comma,
81
+ compact: e.compact,
79
82
  disabled: e.disabled,
80
83
  divider: e.divider,
81
84
  "has-errors": h,
@@ -85,7 +88,7 @@ const I = /* @__PURE__ */ f({
85
88
  multiple: e.multiple,
86
89
  name: e.name,
87
90
  placeholder: e.placeholder,
88
- "prepend:icon": d["prepend:icon"],
91
+ "prepend:icon": p["prepend:icon"],
89
92
  readonly: e.readonly,
90
93
  required: e.required
91
94
  }, c), {
@@ -108,10 +111,10 @@ const I = /* @__PURE__ */ f({
108
111
  r(e.$slots, "append-outer", n(i(o)))
109
112
  ]),
110
113
  _: 2
111
- }, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "comma", "disabled", "divider", "has-errors", "loading", "max", "model-value", "multiple", "name", "placeholder", "prepend:icon", "readonly", "required"])
114
+ }, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "comma", "compact", "disabled", "divider", "has-errors", "loading", "max", "model-value", "multiple", "name", "placeholder", "prepend:icon", "readonly", "required"])
112
115
  ]),
113
116
  _: 3
114
- }, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
117
+ }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
115
118
  }
116
119
  });
117
120
  export {
package/dist/index115.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, ref as w, computed as y, openBlock as v, createBlock as B, withCtx as r, renderSlot as a, normalizeProps as d, guardReactiveProps as p, createVNode as g, mergeProps as $ } from "vue";
1
+ import { defineComponent as f, ref as y, computed as w, openBlock as v, createBlock as B, withCtx as a, renderSlot as r, normalizeProps as p, guardReactiveProps as d, createVNode as g, mergeProps as $ } from "vue";
2
2
  import k from "./index27.js";
3
3
  /* empty css */
4
4
  import V from "./index47.js";
@@ -10,6 +10,7 @@ const G = /* @__PURE__ */ f({
10
10
  autocomplete: {},
11
11
  autofocus: {},
12
12
  autoGrow: { type: Boolean },
13
+ compact: { type: Boolean },
13
14
  direction: {},
14
15
  disabled: { type: Boolean },
15
16
  errors: {},
@@ -25,14 +26,14 @@ const G = /* @__PURE__ */ f({
25
26
  persistentHint: { type: Boolean },
26
27
  placeholder: {},
27
28
  "prepend:icon": {},
28
- readonly: {},
29
+ readonly: { type: Boolean },
29
30
  required: { type: Boolean },
30
31
  reverse: { type: Boolean },
31
32
  rows: {}
32
33
  },
33
34
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
34
- setup(u, { emit: t }) {
35
- const n = u, o = t, l = w(!1), m = y(() => n.persistentHint || l.value), h = {
35
+ setup(t, { emit: u }) {
36
+ const n = t, o = u, l = y(!1), m = w(() => n.persistentHint || l.value), c = {
36
37
  onBlur: (e) => {
37
38
  l.value = !1, o("blur", e);
38
39
  },
@@ -50,6 +51,7 @@ const G = /* @__PURE__ */ f({
50
51
  return (e, P) => (v(), B(k, {
51
52
  id: e.id,
52
53
  class: "bb-textarea",
54
+ compact: e.compact,
53
55
  direction: e.direction,
54
56
  errors: e.errors,
55
57
  "has-errors": e.hasErrors,
@@ -62,18 +64,19 @@ const G = /* @__PURE__ */ f({
62
64
  reverse: e.reverse,
63
65
  "show-hint": m.value
64
66
  }, {
65
- label: r((s) => [
66
- a(e.$slots, "label", d(p(s)))
67
+ label: a((s) => [
68
+ r(e.$slots, "label", p(d(s)))
67
69
  ]),
68
- input: r(({ id: s, hasErrors: b, ariaDescribedby: c }) => [
70
+ input: a(({ id: s, hasErrors: h, ariaDescribedby: b }) => [
69
71
  g(V, $({
70
72
  id: s,
71
73
  "append:icon": n["append:icon"],
72
- "aria-describedby": c,
74
+ "aria-describedby": b,
73
75
  "auto-grow": e.autoGrow,
74
76
  autofocus: e.autofocus,
77
+ compact: e.compact,
75
78
  disabled: e.disabled,
76
- "has-errors": b,
79
+ "has-errors": h,
77
80
  loading: e.loading,
78
81
  "model-value": e.modelValue,
79
82
  name: e.name,
@@ -82,30 +85,30 @@ const G = /* @__PURE__ */ f({
82
85
  readonly: e.readonly,
83
86
  required: e.required,
84
87
  rows: e.rows
85
- }, h), {
86
- "append-outer": r(() => [
87
- a(e.$slots, "append-outer")
88
+ }, c), {
89
+ "append-outer": a(() => [
90
+ r(e.$slots, "append-outer")
88
91
  ]),
89
- append: r(() => [
90
- a(e.$slots, "append")
92
+ append: a(() => [
93
+ r(e.$slots, "append")
91
94
  ]),
92
- prepend: r(() => [
93
- a(e.$slots, "prepend")
95
+ prepend: a(() => [
96
+ r(e.$slots, "prepend")
94
97
  ]),
95
- "prepend-outer": r(() => [
96
- a(e.$slots, "prepend-outer")
98
+ "prepend-outer": a(() => [
99
+ r(e.$slots, "prepend-outer")
97
100
  ]),
98
- prefix: r((i) => [
99
- a(e.$slots, "prefix", d(p(i)))
101
+ prefix: a((i) => [
102
+ r(e.$slots, "prefix", p(d(i)))
100
103
  ]),
101
- suffix: r((i) => [
102
- a(e.$slots, "suffix", d(p(i)))
104
+ suffix: a((i) => [
105
+ r(e.$slots, "suffix", p(d(i)))
103
106
  ]),
104
107
  _: 2
105
- }, 1040, ["id", "append:icon", "aria-describedby", "auto-grow", "autofocus", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "rows"])
108
+ }, 1040, ["id", "append:icon", "aria-describedby", "auto-grow", "autofocus", "compact", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "rows"])
106
109
  ]),
107
110
  _: 3
108
- }, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
111
+ }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
109
112
  }
110
113
  });
111
114
  export {