bitboss-ui 2.0.96 → 2.0.98

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 (244) 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/BbConfirm/BbConfirm.vue.d.ts +1 -29
  5. package/dist/components/OptionsContainer.vue.d.ts +2 -2
  6. package/dist/composables/useBbConfig.d.ts +3 -0
  7. package/dist/composables/useConfirm.d.ts +67 -32
  8. package/dist/composables/useLocale.d.ts +5 -0
  9. package/dist/i18n/en.d.ts +8 -0
  10. package/dist/i18n/index.d.ts +3 -0
  11. package/dist/i18n/it.d.ts +8 -0
  12. package/dist/index100.js +5 -5
  13. package/dist/index109.js +4 -4
  14. package/dist/index11.js +1 -1
  15. package/dist/index111.js +7 -7
  16. package/dist/index119.js +2 -2
  17. package/dist/index12.js +6 -6
  18. package/dist/index121.js +6 -6
  19. package/dist/index123.js +1 -1
  20. package/dist/index127.js +1 -1
  21. package/dist/index128.js +1 -1
  22. package/dist/index129.js +1 -1
  23. package/dist/index13.js +1 -1
  24. package/dist/index130.js +2 -2
  25. package/dist/index131.js +1 -1
  26. package/dist/index132.js +340 -2
  27. package/dist/index133.js +22 -337
  28. package/dist/index134.js +2 -25
  29. package/dist/index135.js +5 -2
  30. package/dist/index136.js +9 -5
  31. package/dist/index137.js +5 -8
  32. package/dist/index138.js +3 -6
  33. package/dist/index139.js +1 -1
  34. package/dist/index140.js +1 -1
  35. package/dist/index141.js +1 -1
  36. package/dist/index142.js +1 -1
  37. package/dist/index143.js +1 -1
  38. package/dist/index144.js +1 -1
  39. package/dist/index145.js +1 -1
  40. package/dist/index146.js +1 -1
  41. package/dist/index147.js +1 -1
  42. package/dist/index148.js +1 -1
  43. package/dist/index149.js +1 -1
  44. package/dist/index15.js +4 -4
  45. package/dist/index150.js +1 -1
  46. package/dist/index151.js +1 -1
  47. package/dist/index152.js +1 -1
  48. package/dist/index153.js +1 -1
  49. package/dist/index154.js +1 -1
  50. package/dist/index155.js +1 -1
  51. package/dist/index156.js +1 -1
  52. package/dist/index157.js +1 -1
  53. package/dist/index158.js +1 -1
  54. package/dist/index159.js +1 -1
  55. package/dist/index160.js +1 -1
  56. package/dist/index161.js +1 -1
  57. package/dist/index162.js +1 -1
  58. package/dist/index163.js +1 -1
  59. package/dist/index164.js +1 -1
  60. package/dist/index165.js +2 -2
  61. package/dist/index169.js +5 -0
  62. package/dist/index17.js +3 -3
  63. package/dist/index170.js +1 -1
  64. package/dist/index171.js +1 -1
  65. package/dist/index172.js +1 -1
  66. package/dist/index173.js +1 -1
  67. package/dist/index174.js +1 -1
  68. package/dist/index175.js +1 -1
  69. package/dist/index176.js +2 -2
  70. package/dist/index178.js +4 -0
  71. package/dist/index179.js +3 -2
  72. package/dist/index180.js +1 -1
  73. package/dist/index181.js +1 -1
  74. package/dist/index182.js +1 -1
  75. package/dist/index183.js +1 -1
  76. package/dist/index184.js +1 -1
  77. package/dist/index185.js +1 -1
  78. package/dist/index186.js +1 -1
  79. package/dist/index187.js +1 -1
  80. package/dist/index188.js +2 -3
  81. package/dist/index189.js +3 -2
  82. package/dist/index19.js +49 -48
  83. package/dist/index190.js +1 -1
  84. package/dist/index191.js +1 -1
  85. package/dist/{index166.js → index195.js} +1 -1
  86. package/dist/index196.js +1 -1
  87. package/dist/index197.js +1 -1
  88. package/dist/index198.js +1 -1
  89. package/dist/index199.js +1 -1
  90. package/dist/index200.js +1 -1
  91. package/dist/index201.js +1 -1
  92. package/dist/index202.js +1 -1
  93. package/dist/index203.js +1 -1
  94. package/dist/index204.js +1 -1
  95. package/dist/index205.js +81 -3
  96. package/dist/index206.js +2 -81
  97. package/dist/index207.js +53 -2
  98. package/dist/index209.js +13 -126
  99. package/dist/index21.js +63 -56
  100. package/dist/index210.js +20 -5
  101. package/dist/index211.js +4 -125
  102. package/dist/index212.js +5 -19
  103. package/dist/index213.js +2 -2
  104. package/dist/index214.js +2 -2
  105. package/dist/index215.js +19 -2
  106. package/dist/index216.js +19 -2
  107. package/dist/index217.js +26 -40
  108. package/dist/index218.js +3 -20
  109. package/dist/index219.js +2 -6
  110. package/dist/index220.js +6 -51
  111. package/dist/index221.js +252 -0
  112. package/dist/index222.js +52 -13
  113. package/dist/index223.js +44 -5
  114. package/dist/index224.js +4 -11
  115. package/dist/index225.js +59 -368
  116. package/dist/index226.js +3 -19
  117. package/dist/index227.js +40 -26
  118. package/dist/index228.js +6 -3
  119. package/dist/index229.js +7 -250
  120. package/dist/index23.js +31 -31
  121. package/dist/index230.js +10 -50
  122. package/dist/index231.js +125 -43
  123. package/dist/index232.js +125 -5
  124. package/dist/index233.js +2 -60
  125. package/dist/index234.js +5 -164
  126. package/dist/index235.js +368 -83
  127. package/dist/index236.js +166 -0
  128. package/dist/index237.js +84 -3
  129. package/dist/index239.js +8 -2
  130. package/dist/index240.js +3 -4
  131. package/dist/index241.js +2 -2
  132. package/dist/index242.js +4 -4
  133. package/dist/index243.js +2 -3
  134. package/dist/index244.js +1 -1
  135. package/dist/index245.js +1 -1
  136. package/dist/index246.js +2 -2
  137. package/dist/index248.js +2 -2
  138. package/dist/index25.js +33 -32
  139. package/dist/index251.js +2 -10
  140. package/dist/index252.js +9 -2
  141. package/dist/index253.js +2 -8
  142. package/dist/index254.js +9 -23
  143. package/dist/index255.js +23 -89
  144. package/dist/index256.js +91 -0
  145. package/dist/index258.js +6 -16
  146. package/dist/index259.js +16 -9
  147. package/dist/index260.js +3 -9
  148. package/dist/index262.js +7 -3
  149. package/dist/index263.js +175 -11
  150. package/dist/index264.js +280 -8
  151. package/dist/index265.js +6 -17
  152. package/dist/index266.js +2 -4
  153. package/dist/index267.js +2 -281
  154. package/dist/index268.js +2 -6
  155. package/dist/index269.js +2 -2
  156. package/dist/index27.js +5 -2
  157. package/dist/index272.js +2 -2
  158. package/dist/index273.js +2 -2
  159. package/dist/index274.js +2 -2
  160. package/dist/index275.js +1 -1
  161. package/dist/index276.js +28 -2
  162. package/dist/index277.js +21 -1
  163. package/dist/index279.js +427 -24
  164. package/dist/index280.js +1 -21
  165. package/dist/index281.js +91 -0
  166. package/dist/index282.js +9 -7
  167. package/dist/index285.js +20 -429
  168. package/dist/index287.js +200 -3
  169. package/dist/index288.js +11 -0
  170. package/dist/index289.js +7 -21
  171. package/dist/index29.js +3 -3
  172. package/dist/index290.js +438 -0
  173. package/dist/index291.js +127 -2
  174. package/dist/index292.js +3 -4
  175. package/dist/index293.js +11 -199
  176. package/dist/index294.js +7 -434
  177. package/dist/index295.js +16 -126
  178. package/dist/index296.js +3 -88
  179. package/dist/index297.js +7 -224
  180. package/dist/index298.js +11 -3
  181. package/dist/index299.js +224 -3
  182. package/dist/index300.js +4 -213
  183. package/dist/index301.js +2 -66
  184. package/dist/index302.js +3 -5
  185. package/dist/index303.js +3 -2
  186. package/dist/index304.js +213 -3
  187. package/dist/index305.js +5 -3
  188. package/dist/index306.js +66 -3
  189. package/dist/index307.js +6 -57
  190. package/dist/index308.js +18 -10
  191. package/dist/index309.js +6 -6
  192. package/dist/index31.js +2 -2
  193. package/dist/index310.js +4 -18
  194. package/dist/index311.js +7 -6
  195. package/dist/index312.js +2 -32
  196. package/dist/index313.js +32 -46
  197. package/dist/index314.js +3 -5
  198. package/dist/index315.js +3 -8
  199. package/dist/index316.js +58 -2
  200. package/dist/index318.js +7 -479
  201. package/dist/index319.js +10 -0
  202. package/dist/index320.js +43 -420
  203. package/dist/index321.js +2 -47
  204. package/dist/index323.js +482 -0
  205. package/dist/index324.js +426 -0
  206. package/dist/index325.js +49 -0
  207. package/dist/index33.js +2 -2
  208. package/dist/index35.js +4 -4
  209. package/dist/index37.js +13 -13
  210. package/dist/index39.js +5 -5
  211. package/dist/index4.js +5 -4
  212. package/dist/index41.js +2 -2
  213. package/dist/index43.js +2 -2
  214. package/dist/index45.js +5 -5
  215. package/dist/index47.js +2 -2
  216. package/dist/index49.js +2 -2
  217. package/dist/index55.js +2 -2
  218. package/dist/index57.js +2 -2
  219. package/dist/index6.js +65 -51
  220. package/dist/index61.js +2 -2
  221. package/dist/index69.js +51 -59
  222. package/dist/index7.js +1 -1
  223. package/dist/index75.js +5 -5
  224. package/dist/index77.js +36 -34
  225. package/dist/index79.js +2 -2
  226. package/dist/index81.js +1 -1
  227. package/dist/index84.js +4 -4
  228. package/dist/index86.js +1 -1
  229. package/dist/index88.js +5 -5
  230. package/dist/index9.js +1 -1
  231. package/dist/index90.js +1 -1
  232. package/dist/style.css +1 -1
  233. package/package.json +2 -2
  234. package/dist/index177.js +0 -5
  235. package/dist/index192.js +0 -5
  236. package/dist/index208.js +0 -10
  237. package/dist/index238.js +0 -9
  238. package/dist/index257.js +0 -8
  239. package/dist/index261.js +0 -10
  240. package/dist/index278.js +0 -4
  241. package/dist/index286.js +0 -178
  242. /package/dist/{index168.js → index167.js} +0 -0
  243. /package/dist/{index194.js → index193.js} +0 -0
  244. /package/dist/{index322.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
  };
@@ -1,30 +1,2 @@
1
- declare function __VLS_template(): {
2
- slots: Partial<Record<string, (_: any) => any>> & {
3
- spinner?(_: {}): any;
4
- footer?(_: {
5
- actions: true;
6
- loading: false;
7
- no: boolean;
8
- noAction: {
9
- text: string;
10
- handler: () => void;
11
- };
12
- yes: boolean;
13
- yesAction: {
14
- text: string;
15
- handler: () => void;
16
- };
17
- }): any;
18
- };
19
- refs: {};
20
- attrs: Partial<{}>;
21
- };
22
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
2
  export default _default;
26
- type __VLS_WithTemplateSlots<T, S> = T & {
27
- new (): {
28
- $slots: S;
29
- };
30
- };
@@ -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;
@@ -1,78 +1,113 @@
1
1
  import { Sizes } from '../components/BaseDialog/BaseDialog.vue';
2
2
  type State = {
3
+ /**
4
+ * Description of the content of the modal for accessibility purposes.
5
+ */
3
6
  description: string;
7
+ /**
8
+ * The name of the theme it applies a css class to BbConfirm for styling.
9
+ */
4
10
  theme: string;
5
11
  loading: boolean;
6
- noText: string;
7
12
  open: boolean;
13
+ /**
14
+ * Text content of the modal.
15
+ */
8
16
  text: string;
17
+ /**
18
+ * Tittle of the modal
19
+ */
9
20
  title: string;
10
- yesText: string;
11
- yes: boolean;
12
- no: boolean;
13
- actions: boolean;
14
- size: keyof Sizes;
15
- };
16
- type UserOptions = {
17
21
  /**
18
- * Boolean that sets whether to display or hide the buttons.
19
- * Confirms without actions can only be dismissed by clicking on the overlay or the close button.
22
+ * Boolean that defines whether to display or hide the "Yes" action.
20
23
  */
21
- actions?: State['actions'];
24
+ yes: boolean;
22
25
  /**
23
- * Description of the content of the modal for accessibility purposes.
26
+ * Text content of the "Yes" action.
24
27
  */
25
- description?: State['description'];
28
+ yesText: string;
26
29
  /**
27
30
  * Boolean that defines whether to display or hide the "No" action.
28
31
  */
29
- no?: State['no'];
32
+ no: boolean;
30
33
  /**
31
34
  * Text content of the "No" action.
32
35
  */
33
- noText?: State['noText'];
36
+ noText: string;
34
37
  /**
35
- * Text content of the modal.
38
+ * Boolean that sets whether to display or hide the buttons.
39
+ * Confirms without actions can only be dismissed by clicking on the overlay or the close button.
36
40
  */
37
- text: State['text'];
41
+ actions: boolean;
38
42
  /**
39
- * The name of the theme it applies a css class to BbConfirm for styling.
43
+ * Size of the confirm modal. Use any sizes valid for `BbModal`.
40
44
  */
41
- theme?: State['theme'];
45
+ size: keyof Sizes;
42
46
  /**
43
- * Tittle of the modal
47
+ * Callback function that is called when the user clicks on the "Yes" action.
44
48
  */
45
- title: State['title'];
49
+ onYes: ((...args: any[]) => void) | null;
46
50
  /**
47
- * Boolean that defines whether to display or hide the "Yes" action.
51
+ * Callback function that is called when the user clicks on the "No" action.
48
52
  */
49
- yes?: State['yes'];
53
+ onNo: ((...args: any[]) => void) | null;
50
54
  /**
51
- * Text content of the "Yes" action.
55
+ * Boolean that sets whether the confirm modal is busy after clicking on the "Yes" action.
52
56
  */
53
- yesText?: State['yesText'];
57
+ yesBusy: boolean;
54
58
  /**
55
- * Size of the confirm modal. Use any sizes valid for `BbModal`.
59
+ * Boolean that sets whether the confirm modal is busy after clicking on the "No" action.
56
60
  */
57
- size?: State['size'];
61
+ noBusy: boolean;
58
62
  };
59
- export declare const state: {
63
+ type UserOptions = Pick<State, 'actions' | 'description' | 'no' | 'noText' | 'text' | 'theme' | 'title' | 'yes' | 'yesText' | 'size' | 'onYes' | 'onNo'> & {
64
+ /**
65
+ * Time in milliseconds after which the confirmation is automatically rejected.
66
+ */
67
+ timeout?: number;
68
+ /**
69
+ * Boolean that sets whether the modal is automatically closed after the user clicks on the "Yes" or "No" action.
70
+ */
71
+ autoClose?: boolean;
72
+ };
73
+ export declare const state: import('vue').Ref<{
60
74
  description: string;
61
75
  theme: string;
62
76
  loading: boolean;
63
- noText: string;
64
77
  open: boolean;
65
78
  text: string;
66
79
  title: string;
80
+ yes: boolean;
67
81
  yesText: string;
82
+ no: boolean;
83
+ noText: string;
84
+ actions: boolean;
85
+ size: keyof Sizes;
86
+ onYes: ((...args: any[]) => void) | null;
87
+ onNo: ((...args: any[]) => void) | null;
88
+ yesBusy: boolean;
89
+ noBusy: boolean;
90
+ }, State | {
91
+ description: string;
92
+ theme: string;
93
+ loading: boolean;
94
+ open: boolean;
95
+ text: string;
96
+ title: string;
68
97
  yes: boolean;
98
+ yesText: string;
69
99
  no: boolean;
100
+ noText: string;
70
101
  actions: boolean;
71
102
  size: keyof Sizes;
72
- };
103
+ onYes: ((...args: any[]) => void) | null;
104
+ onNo: ((...args: any[]) => void) | null;
105
+ yesBusy: boolean;
106
+ noBusy: boolean;
107
+ }>;
73
108
  export declare const actions: import('vue').ComputedRef<{
74
109
  text: string;
75
- handler: () => void;
110
+ handler: () => Promise<void>;
76
111
  }[]>;
77
112
  export declare const useConfirm: () => {
78
113
  /**
@@ -80,7 +115,7 @@ export declare const useConfirm: () => {
80
115
  * the behavior of the modal and returns `Promise<boolean>`
81
116
  * when the user accepts, declines, or ignores the modal.
82
117
  */
83
- confirm: (options: UserOptions) => Promise<boolean>;
118
+ confirm: (options: Partial<UserOptions>) => Promise<boolean>;
84
119
  /**
85
120
  * Sets the state of the confirm to loading and displays a spinner.
86
121
  */
@@ -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";
4
- import { isNil as g } from "./index130.js";
5
- import { indexBy as j } from "./index261.js";
6
- import { hash as B } from "./index228.js";
2
+ import { useOptions as E } from "./index236.js";
3
+ import { useItemValue as Q } from "./index288.js";
4
+ import { isNil as g } from "./index251.js";
5
+ import { indexBy as j } from "./index289.js";
6
+ import { hash as B } from "./index218.js";
7
7
  const X = /* @__PURE__ */ S({
8
8
  __name: "BbRows",
9
9
  props: /* @__PURE__ */ v({
package/dist/index109.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as ee, ref as n, computed as $, getCurrentInstance as te, watch as b, nextTick as le, onMounted as ae, openBlock as f, createElementBlock as p, unref as ie, normalizeClass as T, createElementVNode as h, renderSlot as k, normalizeProps as U, guardReactiveProps as W, normalizeStyle as se, Fragment as K, renderList as O, createVNode as J, withCtx as I, toDisplayString as re, createBlock as ne, Transition as oe, createCommentVNode as ue } from "vue";
2
2
  import { useId as de } from "./index8.js";
3
- import { useRoute as ce } from "./index137.js";
4
- import { useRouter as be } from "./index138.js";
5
- import { wait as fe } from "./index132.js";
6
- import { useScroll as he, useResizeObserver as ye } from "./index133.js";
3
+ import { useRoute as ce } from "./index136.js";
4
+ import { useRouter as be } from "./index137.js";
5
+ import { wait as fe } from "./index130.js";
6
+ import { useScroll as he, useResizeObserver as ye } from "./index132.js";
7
7
  import me from "./index13.js";
8
8
  /* empty css */
9
9
  import ve from "./index128.js";
package/dist/index11.js CHANGED
@@ -1,4 +1,4 @@
1
- import { wait as p } from "./index132.js";
1
+ import { wait as p } from "./index130.js";
2
2
  import { reactive as d } from "vue";
3
3
  import { useId as h } from "./index8.js";
4
4
  const i = d({
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 "./index303.js";
3
- import { clamp as _e } from "./index207.js";
4
- import { isNil as K } from "./index130.js";
2
+ import { add as ve } from "./index301.js";
3
+ import { clamp as _e } from "./index206.js";
4
+ import { isNil as K } from "./index251.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 "./index288.js";
7
+ import { when as we } from "./index242.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 "./index236.js";
13
+ import { hash as Y } from "./index218.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 "./index230.js";
4
+ import B from "./index306.js";
5
5
  const V = /* @__PURE__ */ l({
6
6
  __name: "BbToast",
7
7
  props: {
package/dist/index12.js CHANGED
@@ -1,10 +1,10 @@
1
- import { copy as D } from "./index134.js";
1
+ import { copy as D } from "./index133.js";
2
2
  import { reactive as G, watch as v, toValue as H, computed as g, provide as Q } from "vue";
3
- import { isNotNil as a } from "./index135.js";
4
- import { mapValues as X } from "./index136.js";
5
- import { useRoute as Z } from "./index137.js";
6
- import { useRouter as _ } from "./index138.js";
7
- import { useStepper as ee } from "./index133.js";
3
+ import { isNotNil as a } from "./index134.js";
4
+ import { mapValues as X } from "./index135.js";
5
+ import { useRoute as Z } from "./index136.js";
6
+ import { useRouter as _ } from "./index137.js";
7
+ import { useStepper as ee } from "./index132.js";
8
8
  const te = Symbol(), x = /((step\/)(?<step>[\s\S]+?)(?=[/?]))|((step\/)(?<step2>[\s\S]+))/, O = (i) => {
9
9
  var r, u;
10
10
  const e = i.match(x);
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 "./index231.js";
3
3
  import { useId as G } from "./index8.js";
4
- import { wait as _ } from "./index132.js";
4
+ import { wait as _ } from "./index130.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 "./index226.js";
8
+ import { waitFor as K } from "./index228.js";
9
+ import Q from "./index256.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 "./index235.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 "./index305.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 "./index241.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 "./index226.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 "./index241.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 "./index220.js";
4
4
  const _ = /* @__PURE__ */ k({
5
5
  __name: "BaseButton",
6
6
  props: {
package/dist/index130.js CHANGED
@@ -1,4 +1,4 @@
1
- const r = (e) => typeof e > "u" || e === null;
1
+ const o = (e) => new Promise((t) => setTimeout(t, e));
2
2
  export {
3
- r as isNil
3
+ o as wait
4
4
  };
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,