bitboss-ui 2.0.96 → 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 (168) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +2 -2
  2. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +13 -1
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +65 -19
  4. package/dist/components/OptionsContainer.vue.d.ts +2 -2
  5. package/dist/composables/useBbConfig.d.ts +3 -0
  6. package/dist/composables/useLocale.d.ts +5 -0
  7. package/dist/i18n/en.d.ts +8 -0
  8. package/dist/i18n/index.d.ts +3 -0
  9. package/dist/i18n/it.d.ts +8 -0
  10. package/dist/index100.js +4 -4
  11. package/dist/index111.js +5 -5
  12. package/dist/index119.js +2 -2
  13. package/dist/index121.js +5 -5
  14. package/dist/index123.js +1 -1
  15. package/dist/index127.js +1 -1
  16. package/dist/index128.js +1 -1
  17. package/dist/index129.js +1 -1
  18. package/dist/index13.js +1 -1
  19. package/dist/index131.js +1 -1
  20. package/dist/index133.js +2 -2
  21. package/dist/index134.js +2 -2
  22. package/dist/index15.js +4 -4
  23. package/dist/index17.js +3 -3
  24. package/dist/index19.js +49 -48
  25. package/dist/index206.js +2 -81
  26. package/dist/index207.js +81 -2
  27. package/dist/index208.js +51 -6
  28. package/dist/index21.js +63 -56
  29. package/dist/index210.js +13 -5
  30. package/dist/index211.js +5 -125
  31. package/dist/index212.js +15 -18
  32. package/dist/index213.js +10 -10
  33. package/dist/index214.js +18 -15
  34. package/dist/index215.js +19 -2
  35. package/dist/index216.js +27 -2
  36. package/dist/index217.js +3 -41
  37. package/dist/index218.js +2 -20
  38. package/dist/index219.js +7 -5
  39. package/dist/index220.js +244 -47
  40. package/dist/index221.js +54 -0
  41. package/dist/index222.js +44 -13
  42. package/dist/index223.js +4 -4
  43. package/dist/index224.js +58 -10
  44. package/dist/index225.js +2 -369
  45. package/dist/index226.js +4 -19
  46. package/dist/index227.js +2 -27
  47. package/dist/index228.js +126 -3
  48. package/dist/index229.js +120 -245
  49. package/dist/index23.js +31 -31
  50. package/dist/index230.js +2 -52
  51. package/dist/index231.js +41 -44
  52. package/dist/index232.js +20 -5
  53. package/dist/index233.js +5 -59
  54. package/dist/index234.js +5 -164
  55. package/dist/index235.js +10 -82
  56. package/dist/index236.js +371 -0
  57. package/dist/index237.js +164 -3
  58. package/dist/index238.js +84 -7
  59. package/dist/index240.js +8 -4
  60. package/dist/index241.js +3 -2
  61. package/dist/index242.js +7 -4
  62. package/dist/index243.js +1 -1
  63. package/dist/index244.js +4 -2
  64. package/dist/index245.js +105 -17
  65. package/dist/{index248.js → index247.js} +1 -1
  66. package/dist/index249.js +4 -0
  67. package/dist/index25.js +6 -6
  68. package/dist/index250.js +2 -2
  69. package/dist/index251.js +17 -9
  70. package/dist/index252.js +9 -2
  71. package/dist/index253.js +2 -8
  72. package/dist/index254.js +3 -23
  73. package/dist/index256.js +9 -0
  74. package/dist/index257.js +4 -6
  75. package/dist/index258.js +281 -16
  76. package/dist/index259.js +5 -8
  77. package/dist/index260.js +2 -9
  78. package/dist/index261.js +2 -8
  79. package/dist/index262.js +2 -3
  80. package/dist/index263.js +2 -12
  81. package/dist/index264.js +2 -9
  82. package/dist/index265.js +2 -17
  83. package/dist/index266.js +2 -4
  84. package/dist/index267.js +2 -281
  85. package/dist/index268.js +2 -6
  86. package/dist/index269.js +2 -2
  87. package/dist/index270.js +28 -2
  88. package/dist/index271.js +22 -2
  89. package/dist/index273.js +89 -2
  90. package/dist/index275.js +9 -2
  91. package/dist/index276.js +5 -1
  92. package/dist/index277.js +16 -2
  93. package/dist/index278.js +9 -2
  94. package/dist/index279.js +23 -28
  95. package/dist/index280.js +3 -22
  96. package/dist/index281.js +14 -0
  97. package/dist/index282.js +9 -7
  98. package/dist/index283.js +9 -2
  99. package/dist/index284.js +15 -124
  100. package/dist/index285.js +3 -430
  101. package/dist/index286.js +6 -175
  102. package/dist/index287.js +11 -3
  103. package/dist/index288.js +4 -0
  104. package/dist/index289.js +125 -21
  105. package/dist/index29.js +3 -3
  106. package/dist/index290.js +433 -0
  107. package/dist/index291.js +176 -2
  108. package/dist/index292.js +22 -4
  109. package/dist/index294.js +2 -436
  110. package/dist/index295.js +87 -125
  111. package/dist/index296.js +218 -83
  112. package/dist/index297.js +8 -224
  113. package/dist/index298.js +200 -3
  114. package/dist/index299.js +436 -3
  115. package/dist/index300.js +126 -212
  116. package/dist/index301.js +2 -65
  117. package/dist/index302.js +3 -5
  118. package/dist/index304.js +5 -3
  119. package/dist/index305.js +66 -3
  120. package/dist/index306.js +213 -3
  121. package/dist/index307.js +32 -57
  122. package/dist/index308.js +4 -10
  123. package/dist/index309.js +7 -6
  124. package/dist/index31.js +2 -2
  125. package/dist/index310.js +3 -19
  126. package/dist/index311.js +3 -6
  127. package/dist/index312.js +2 -32
  128. package/dist/index313.js +3 -47
  129. package/dist/index314.js +57 -4
  130. package/dist/index315.js +6 -7
  131. package/dist/index316.js +7 -2
  132. package/dist/index317.js +18 -3
  133. package/dist/index318.js +7 -479
  134. package/dist/index319.js +10 -0
  135. package/dist/index320.js +43 -420
  136. package/dist/index321.js +2 -47
  137. package/dist/index322.js +480 -2
  138. package/dist/index324.js +426 -0
  139. package/dist/index325.js +49 -0
  140. package/dist/index33.js +2 -2
  141. package/dist/index35.js +3 -3
  142. package/dist/index37.js +14 -14
  143. package/dist/index39.js +4 -4
  144. package/dist/index4.js +5 -4
  145. package/dist/index41.js +2 -2
  146. package/dist/index43.js +2 -2
  147. package/dist/index45.js +6 -6
  148. package/dist/index47.js +2 -2
  149. package/dist/index49.js +2 -2
  150. package/dist/index55.js +1 -1
  151. package/dist/index57.js +1 -1
  152. package/dist/index61.js +2 -2
  153. package/dist/index75.js +3 -3
  154. package/dist/index77.js +36 -34
  155. package/dist/index79.js +2 -2
  156. package/dist/index81.js +1 -1
  157. package/dist/index84.js +3 -3
  158. package/dist/index86.js +1 -1
  159. package/dist/index88.js +4 -4
  160. package/dist/index90.js +1 -1
  161. package/package.json +1 -1
  162. package/dist/index209.js +0 -128
  163. package/dist/index239.js +0 -4
  164. package/dist/index246.js +0 -108
  165. package/dist/index255.js +0 -91
  166. package/dist/index274.js +0 -4
  167. package/dist/index293.js +0 -202
  168. /package/dist/{index272.js → index326.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, InputHTMLAttributes } from 'vue';
1
+ import { HTMLAttributes, InputHTMLAttributes, MaybeRefOrGetter } from 'vue';
2
2
  import { NestedKeyOf } from '../../types/NestedKeyOf';
3
3
  import { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';
4
4
  export type BaseCheckboxGroupProps<T> = {
@@ -88,7 +88,7 @@ export type BaseCheckboxGroupProps<T> = {
88
88
  /**
89
89
  * String displayed when there are no items to display.
90
90
  */
91
- noDataText?: string;
91
+ noDataText?: MaybeRefOrGetter<string>;
92
92
  /**
93
93
  * Sets the input in a readonly state.
94
94
  */
@@ -47,7 +47,13 @@ export type BaseDatePickerProps = {
47
47
  */
48
48
  selectable?: (date: Date) => boolean;
49
49
  };
50
- declare const _default: import('vue').DefineComponent<BaseDatePickerProps, {
50
+ declare function __VLS_template(): {
51
+ slots: Partial<Record<NonNullable<string | number>, (_: any) => any>>;
52
+ refs: {};
53
+ attrs: Partial<{}>;
54
+ };
55
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
56
+ declare const __VLS_component: import('vue').DefineComponent<BaseDatePickerProps, {
51
57
  resetStatus: () => void;
52
58
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
53
59
  "update:modelValue": (value: any) => any;
@@ -56,4 +62,10 @@ declare const _default: import('vue').DefineComponent<BaseDatePickerProps, {
56
62
  }>, {
57
63
  firstDayOfWeek: number;
58
64
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
65
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
59
66
  export default _default;
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -218,28 +218,74 @@ declare function __VLS_template(): {
218
218
  }) | null;
219
219
  input: HTMLInputElement;
220
220
  calendar: HTMLSpanElement;
221
- basedatepicker: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../..').BaseDatePickerProps> & Readonly<{
222
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
223
- }>, {
224
- resetStatus: () => void;
225
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
226
- "update:modelValue": (value: any) => any;
227
- }, import('vue').PublicProps, {
221
+ basedatepicker: ({
222
+ $: import('vue').ComponentInternalInstance;
223
+ $data: {};
224
+ $props: {
225
+ readonly disabled?: boolean | undefined;
226
+ readonly firstDayOfWeek?: (typeof it)["weekStart"];
227
+ readonly id?: HTMLAttributes["id"];
228
+ readonly header?: boolean | undefined;
229
+ readonly max?: (Date | string | number) | undefined;
230
+ readonly min?: (Date | string | number) | undefined;
231
+ readonly modelValue: string | string[] | null;
232
+ readonly multiple?: boolean | undefined;
233
+ readonly range?: boolean | undefined;
234
+ readonly readonly?: boolean | undefined;
235
+ readonly selectable?: ((date: Date) => boolean) | undefined;
236
+ readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
237
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
238
+ $attrs: {
239
+ [x: string]: unknown;
240
+ };
241
+ $refs: {
242
+ [x: string]: unknown;
243
+ };
244
+ $slots: Readonly<{
245
+ [name: string]: import('vue').Slot<any> | undefined;
246
+ }>;
247
+ $root: import('vue').ComponentPublicInstance | null;
248
+ $parent: import('vue').ComponentPublicInstance | null;
249
+ $host: Element | null;
250
+ $emit: (event: "update:modelValue", value: any) => void;
251
+ $el: any;
252
+ $options: import('vue').ComponentOptionsBase<Readonly<import('../..').BaseDatePickerProps> & Readonly<{
253
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
254
+ }>, {
255
+ resetStatus: () => void;
256
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
257
+ "update:modelValue": (value: any) => any;
258
+ }, string, {
259
+ firstDayOfWeek: number;
260
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
261
+ beforeCreate?: (() => void) | (() => void)[];
262
+ created?: (() => void) | (() => void)[];
263
+ beforeMount?: (() => void) | (() => void)[];
264
+ mounted?: (() => void) | (() => void)[];
265
+ beforeUpdate?: (() => void) | (() => void)[];
266
+ updated?: (() => void) | (() => void)[];
267
+ activated?: (() => void) | (() => void)[];
268
+ deactivated?: (() => void) | (() => void)[];
269
+ beforeDestroy?: (() => void) | (() => void)[];
270
+ beforeUnmount?: (() => void) | (() => void)[];
271
+ destroyed?: (() => void) | (() => void)[];
272
+ unmounted?: (() => void) | (() => void)[];
273
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
274
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
275
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
276
+ };
277
+ $forceUpdate: () => void;
278
+ $nextTick: typeof import('vue').nextTick;
279
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
280
+ } & Readonly<{
228
281
  firstDayOfWeek: number;
229
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
230
- P: {};
231
- B: {};
232
- D: {};
233
- C: {};
234
- M: {};
235
- Defaults: {};
236
- }, Readonly<import('../..').BaseDatePickerProps> & Readonly<{
282
+ }> & Omit<Readonly<import('../..').BaseDatePickerProps> & Readonly<{
237
283
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
238
- }>, {
284
+ }>, "firstDayOfWeek" | "resetStatus"> & import('vue').ShallowUnwrapRef<{
239
285
  resetStatus: () => void;
240
- }, {}, {}, {}, {
241
- firstDayOfWeek: number;
242
- }> | null;
286
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
287
+ $slots: Partial<Record<NonNullable<string | number>, (_: any) => any>>;
288
+ }) | null;
243
289
  };
244
290
  attrs: Partial<{}>;
245
291
  };
@@ -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 "./index234.js";
3
- import { useItemValue as Q } from "./index260.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 "./index261.js";
6
- import { hash as B } from "./index228.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/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
2
  import { add as ve } from "./index303.js";
3
- import { clamp as _e } from "./index207.js";
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 "./index260.js";
7
- import { when as we } from "./index240.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 "./index234.js";
13
- import { hash as Y } from "./index228.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"
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 "./index224.js";
4
- import B from "./index301.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 "./index209.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 "./index237.js";
8
- import { waitFor as K } from "./index219.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 "./index225.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 "./index302.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 "./index239.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 "./index237.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 "./index239.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 "./index208.js";
3
+ import { useLogger as m } from "./index219.js";
4
4
  const _ = /* @__PURE__ */ k({
5
5
  __name: "BaseButton",
6
6
  props: {
package/dist/index131.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index207.js";
1
+ import { clamp as o } from "./index206.js";
2
2
  const r = (t, e) => t * 100 / e, p = (t, e) => t / 100 * e, l = (t, e, n) => r(t - e, n - e), P = ({
3
3
  value: t = 0,
4
4
  originalBounds: e,
package/dist/index133.js CHANGED
@@ -1,5 +1,5 @@
1
- import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as M, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isObject as J, isClient as K } from "./index206.js";
2
- import { createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as pe, throttleFilter as me } from "./index206.js";
1
+ import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as M, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isObject as J, isClient as K } from "./index207.js";
2
+ import { createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as pe, throttleFilter as me } from "./index207.js";
3
3
  import { computed as S, watch as z, ref as w, reactive as k, getCurrentInstance as U, onMounted as Z, watchEffect as ee } from "vue";
4
4
  function L(l) {
5
5
  var o;
package/dist/index134.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index314.js";
2
- import { isPlainObject as c } from "./index315.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
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";
2
+ import z from "./index208.js";
3
3
  /* empty css */
4
- import I from "./index222.js";
5
- import { vMaska as M } from "./index218.js";
6
- import { isHex as D } from "./index242.js";
4
+ import I from "./index210.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: {
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
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 "./index239.js";
3
- import { when as N } from "./index240.js";
4
- import { booleanishToBoolean as S } from "./index241.js";
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
5
  const A = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index19.js CHANGED
@@ -1,10 +1,11 @@
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";
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 H from "./index235.js";
5
+ import P from "./index238.js";
6
6
  /* empty css */
7
- const q = /* @__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,26 +22,26 @@ const q = /* @__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
+ noDataText: {},
30
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 n = g, a = y, f = b(), r = b(!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
- } = F({
40
+ } = M({
40
41
  dependencies: l(n, "dependencies"),
41
42
  depsDebounceTime: n.depsDebounceTime,
42
43
  disabled: l(n, "disabled"),
43
- emit: a,
44
+ emit: t,
44
45
  enforceCoherence: n.enforceCoherence,
45
46
  items: l(n, "items"),
46
47
  itemText: n.itemText,
@@ -53,37 +54,37 @@ const q = /* @__PURE__ */ $({
53
54
  queryDebounceTime: 0,
54
55
  resetQueryOnOptionSelected: !1,
55
56
  stash: !1
56
- }), L = (e) => {
57
+ }), E = (e) => {
57
58
  if (n.id)
58
59
  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),
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),
64
65
  onFocus: (e) => {
65
- a("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);
66
67
  },
67
- onInput: (e) => a("input", e),
68
- onKeydown: (e) => a("keydown", e),
69
- onMousedown: (e) => a("mousedown", e),
70
- onMouseup: (e) => a("mouseup", e)
71
- }, d = (e) => {
72
- var t;
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)));
68
+ onInput: (e) => t("input", e),
69
+ onKeydown: (e) => t("keydown", e),
70
+ onMousedown: (e) => t("mousedown", e),
71
+ onMouseup: (e) => t("mouseup", e)
74
72
  }, u = (e) => {
75
- var t;
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)));
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)));
77
78
  };
78
- return (e, t) => (w(), O(H, {
79
+ return (e, a) => (O(), x(P, {
79
80
  class: "bb-base-checkbox-group",
80
81
  direction: e.direction,
81
82
  "has-errors": e.hasErrors,
82
83
  "hide-label": e.hideLabel,
83
- loading: !!h(T),
84
- "loading-text": e.loadingText,
85
- "no-data-text": e.noDataText,
86
- options: h(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)
87
88
  }, {
88
89
  prepend: i(() => [
89
90
  s(e.$slots, "prepend")
@@ -95,16 +96,16 @@ const q = /* @__PURE__ */ $({
95
96
  s(e.$slots, "no-data")
96
97
  ]),
97
98
  label: i((o) => [
98
- s(e.$slots, "label", m(p(o)))
99
+ s(e.$slots, "label", p(f(o)))
99
100
  ]),
100
101
  "option:prepend": i((o) => [
101
- s(e.$slots, "option:prepend", m(p(o)))
102
+ s(e.$slots, "option:prepend", p(f(o)))
102
103
  ]),
103
- input: i(({ option: o, index: B }) => [
104
- z(M, v({
105
- id: L(o),
104
+ input: i(({ option: o, index: $ }) => [
105
+ F(H, g({
106
+ id: E(o),
106
107
  "aria-describedby": e.ariaDescribedby,
107
- autofocus: e.autofocus && !B,
108
+ autofocus: e.autofocus && !$,
108
109
  checked: o.selected,
109
110
  color: e.color,
110
111
  disabled: o.disabled,
@@ -112,20 +113,20 @@ const q = /* @__PURE__ */ $({
112
113
  name: e.name,
113
114
  readonly: e.readonly,
114
115
  "true-value": o.value
115
- }, V, {
116
- onChange: (c) => E(c, o)
116
+ }, B, {
117
+ onChange: (m) => V(m, o)
117
118
  }), {
118
- icon: i((c) => [
119
- s(e.$slots, "icon", v({
119
+ icon: i((m) => [
120
+ s(e.$slots, "icon", g({
120
121
  item: o.item,
121
122
  text: o.text
122
- }, c))
123
+ }, m))
123
124
  ]),
124
125
  _: 2
125
126
  }, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "name", "readonly", "true-value", "onChange"])
126
127
  ]),
127
128
  "option:append": i((o) => [
128
- s(e.$slots, "option:append", m(p(o)))
129
+ s(e.$slots, "option:append", p(f(o)))
129
130
  ]),
130
131
  append: i(() => [
131
132
  s(e.$slots, "append")
@@ -135,5 +136,5 @@ const q = /* @__PURE__ */ $({
135
136
  }
136
137
  });
137
138
  export {
138
- q as default
139
+ N as default
139
140
  };
package/dist/index206.js CHANGED
@@ -1,83 +1,4 @@
1
- import { getCurrentScope as g, onScopeDispose as D, unref as x, onMounted as O, nextTick as S, isRef as C, getCurrentInstance as F } from "vue";
2
- function G(e) {
3
- return g() ? (D(e), !0) : !1;
4
- }
5
- function d(e) {
6
- return typeof e == "function" ? e() : x(e);
7
- }
8
- const L = typeof window < "u" && typeof document < "u";
9
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
- const V = (e) => e != null, P = Object.prototype.toString, A = (e) => P.call(e) === "[object Object]", m = () => {
11
- };
12
- function h(e, r) {
13
- function t(...n) {
14
- return new Promise((o, i) => {
15
- Promise.resolve(e(() => r.apply(this, n), { fn: r, thisArg: this, args: n })).then(o).catch(i);
16
- });
17
- }
18
- return t;
19
- }
20
- function W(e, r = {}) {
21
- let t, n, o = m;
22
- const i = (l) => {
23
- clearTimeout(l), o(), o = m;
24
- };
25
- return (l) => {
26
- const c = d(e), u = d(r.maxWait);
27
- return t && i(t), c <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(l())) : new Promise((s, T) => {
28
- o = r.rejectOnCancel ? T : s, u && !n && (n = setTimeout(() => {
29
- t && i(t), n = null, s(l());
30
- }, u)), t = setTimeout(() => {
31
- n && i(n), n = null, s(l());
32
- }, c);
33
- });
34
- };
35
- }
36
- function M(...e) {
37
- let r = 0, t, n = !0, o = m, i, a, l, c, u;
38
- !C(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: l = !0, leading: c = !0, rejectOnCancel: u = !1 } = e[0] : [a, l = !0, c = !0, u = !1] = e;
39
- const s = () => {
40
- t && (clearTimeout(t), t = void 0, o(), o = m);
41
- };
42
- return (w) => {
43
- const f = d(a), y = Date.now() - r, p = () => i = w();
44
- return s(), f <= 0 ? (r = Date.now(), p()) : (y > f && (c || !n) ? (r = Date.now(), p()) : l && (i = new Promise((b, j) => {
45
- o = u ? j : b, t = setTimeout(() => {
46
- r = Date.now(), n = !0, b(p()), s();
47
- }, Math.max(0, f - y));
48
- })), !c && !t && (t = setTimeout(() => n = !0, f)), n = !1, i);
49
- };
50
- }
51
- function R(e) {
52
- return F();
53
- }
54
- function E(e, r = 200, t = {}) {
55
- return h(
56
- W(r, t),
57
- e
58
- );
59
- }
60
- function I(e, r = 200, t = !1, n = !0, o = !1) {
61
- return h(
62
- M(r, t, n, o),
63
- e
64
- );
65
- }
66
- function N(e, r = !0, t) {
67
- R() ? O(e, t) : r ? e() : S(e);
68
- }
1
+ const n = (t, a, m) => Math.min(Math.max(t, a), m);
69
2
  export {
70
- h as createFilterWrapper,
71
- W as debounceFilter,
72
- R as getLifeCycleTarget,
73
- L as isClient,
74
- A as isObject,
75
- m as noop,
76
- V as notNullish,
77
- M as throttleFilter,
78
- d as toValue,
79
- N as tryOnMounted,
80
- G as tryOnScopeDispose,
81
- E as useDebounceFn,
82
- I as useThrottleFn
3
+ n as clamp
83
4
  };