bitboss-ui 2.1.91 → 2.1.93

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 (188) hide show
  1. package/dist/components/BbTab/BbTab.vue.d.ts +120 -91
  2. package/dist/index107.js +9 -9
  3. package/dist/index114.js +1 -1
  4. package/dist/index120.js +239 -167
  5. package/dist/index122.js +12 -12
  6. package/dist/index13.js +2 -2
  7. package/dist/index130.js +1 -1
  8. package/dist/index132.js +5 -5
  9. package/dist/index134.js +1 -1
  10. package/dist/index136.js +2 -2
  11. package/dist/index141.js +2 -2
  12. package/dist/index142.js +1 -1
  13. package/dist/index15.js +5 -5
  14. package/dist/index17.js +3 -3
  15. package/dist/index19.js +8 -8
  16. package/dist/index21.js +14 -14
  17. package/dist/index215.js +138 -2
  18. package/dist/index216.js +2 -138
  19. package/dist/index217.js +1 -1
  20. package/dist/index218.js +1 -1
  21. package/dist/index219.js +4 -5
  22. package/dist/index220.js +13 -5
  23. package/dist/index221.js +20 -5
  24. package/dist/index222.js +201 -5
  25. package/dist/index224.js +135 -2
  26. package/dist/index226.js +7 -8
  27. package/dist/index227.js +2 -268
  28. package/dist/index228.js +2 -52
  29. package/dist/index229.js +188 -52
  30. package/dist/index23.js +11 -11
  31. package/dist/index230.js +3 -32
  32. package/dist/index231.js +12 -59
  33. package/dist/index232.js +13 -13
  34. package/dist/index233.js +3 -4
  35. package/dist/index234.js +4 -20
  36. package/dist/index235.js +9 -200
  37. package/dist/index236.js +5 -0
  38. package/dist/index237.js +4 -135
  39. package/dist/index238.js +5 -0
  40. package/dist/index239.js +9 -10
  41. package/dist/index240.js +8 -3
  42. package/dist/index241.js +3 -4
  43. package/dist/index242.js +29 -3
  44. package/dist/index243.js +16 -86
  45. package/dist/index244.js +19 -0
  46. package/dist/index245.js +48 -26
  47. package/dist/index246.js +11 -16
  48. package/dist/index247.js +32 -50
  49. package/dist/index248.js +28 -15
  50. package/dist/index25.js +3 -3
  51. package/dist/index250.js +22 -15
  52. package/dist/index251.js +5 -34
  53. package/dist/index252.js +5 -9
  54. package/dist/index253.js +5 -13
  55. package/dist/index254.js +5 -23
  56. package/dist/index255.js +2 -9
  57. package/dist/index256.js +6 -23
  58. package/dist/index257.js +8 -2
  59. package/dist/index258.js +268 -2
  60. package/dist/index259.js +52 -4
  61. package/dist/index260.js +50 -7
  62. package/dist/index261.js +31 -52
  63. package/dist/index262.js +60 -2
  64. package/dist/index263.js +86 -2
  65. package/dist/index265.js +14 -32
  66. package/dist/index266.js +32 -26
  67. package/dist/index267.js +11 -0
  68. package/dist/index268.js +8 -10
  69. package/dist/index269.js +23 -5
  70. package/dist/index27.js +1 -1
  71. package/dist/index270.js +6 -3
  72. package/dist/index271.js +16 -6
  73. package/dist/index272.js +52 -15
  74. package/dist/index273.js +2 -106
  75. package/dist/index274.js +9 -0
  76. package/dist/index275.js +7 -100
  77. package/dist/index277.js +2 -3
  78. package/dist/index278.js +2 -13
  79. package/dist/index279.js +3 -5
  80. package/dist/index280.js +18 -5
  81. package/dist/index281.js +12 -5
  82. package/dist/index282.js +106 -3
  83. package/dist/index284.js +100 -7
  84. package/dist/index286.js +229 -3
  85. package/dist/index287.js +33 -2
  86. package/dist/index288.js +3 -7
  87. package/dist/index289.js +67 -7
  88. package/dist/index29.js +2 -2
  89. package/dist/index290.js +11 -67
  90. package/dist/index291.js +5 -18
  91. package/dist/index292.js +5 -12
  92. package/dist/index293.js +5 -229
  93. package/dist/index294.js +7 -0
  94. package/dist/index295.js +1 -1
  95. package/dist/index296.js +1 -1
  96. package/dist/index297.js +7 -17
  97. package/dist/index299.js +1 -1
  98. package/dist/index300.js +5 -3
  99. package/dist/index301.js +3 -6
  100. package/dist/index302.js +3 -280
  101. package/dist/index303.js +17 -2
  102. package/dist/index304.js +27 -15
  103. package/dist/index305.js +280 -2
  104. package/dist/index306.js +2 -16
  105. package/dist/index307.js +16 -2
  106. package/dist/index308.js +2 -27
  107. package/dist/index309.js +16 -2
  108. package/dist/index31.js +2 -2
  109. package/dist/index310.js +2 -2
  110. package/dist/index311.js +27 -2
  111. package/dist/index312.js +2 -2
  112. package/dist/index313.js +1 -1
  113. package/dist/index314.js +1 -1
  114. package/dist/index315.js +1 -1
  115. package/dist/index316.js +2 -4
  116. package/dist/index317.js +2 -5
  117. package/dist/index318.js +2 -719
  118. package/dist/index319.js +716 -363
  119. package/dist/index320.js +366 -57
  120. package/dist/index321.js +57 -3
  121. package/dist/index322.js +4 -3
  122. package/dist/index323.js +3 -4
  123. package/dist/index324.js +3 -6
  124. package/dist/index325.js +2 -5
  125. package/dist/index326.js +5 -124
  126. package/dist/index327.js +5 -2
  127. package/dist/index328.js +2 -15
  128. package/dist/index329.js +8 -2
  129. package/dist/index33.js +8 -8
  130. package/dist/index330.js +5 -18
  131. package/dist/index331.js +8 -2
  132. package/dist/index332.js +5 -2
  133. package/dist/index333.js +6 -7
  134. package/dist/index334.js +6 -5
  135. package/dist/index335.js +19 -8
  136. package/dist/index336.js +9 -5
  137. package/dist/index337.js +14 -6
  138. package/dist/index338.js +226 -33
  139. package/dist/index339.js +35 -6
  140. package/dist/index340.js +6 -129
  141. package/dist/index341.js +113 -382
  142. package/dist/index342.js +397 -6
  143. package/dist/index343.js +57 -18
  144. package/dist/index344.js +58 -9
  145. package/dist/index345.js +124 -14
  146. package/dist/index346.js +2 -58
  147. package/dist/index347.js +15 -58
  148. package/dist/index348.js +2 -22
  149. package/dist/index349.js +21 -0
  150. package/dist/index35.js +4 -4
  151. package/dist/index350.js +2 -2
  152. package/dist/index351.js +21 -227
  153. package/dist/index353.js +130 -89
  154. package/dist/index354.js +43 -437
  155. package/dist/index355.js +91 -126
  156. package/dist/index356.js +515 -42
  157. package/dist/index357.js +424 -503
  158. package/dist/index358.js +126 -48
  159. package/dist/index359.js +52 -0
  160. package/dist/index37.js +18 -18
  161. package/dist/index39.js +6 -6
  162. package/dist/index41.js +2 -2
  163. package/dist/index43.js +8 -8
  164. package/dist/index45.js +6 -6
  165. package/dist/index49.js +2 -2
  166. package/dist/index53.js +1 -1
  167. package/dist/index55.js +1 -1
  168. package/dist/index57.js +2 -2
  169. package/dist/index61.js +5 -5
  170. package/dist/index67.js +1 -1
  171. package/dist/index80.js +6 -6
  172. package/dist/index82.js +1 -1
  173. package/dist/index84.js +2 -2
  174. package/dist/index86.js +17 -17
  175. package/dist/index88.js +1 -1
  176. package/dist/index91.js +3 -3
  177. package/dist/index93.js +2 -2
  178. package/dist/index95.js +5 -5
  179. package/dist/utilities/functions/merge.d.ts +11 -1
  180. package/package.json +3 -3
  181. package/dist/index223.js +0 -5
  182. package/dist/index225.js +0 -8
  183. package/dist/index249.js +0 -14
  184. package/dist/index283.js +0 -10
  185. package/dist/index285.js +0 -190
  186. package/dist/index298.js +0 -30
  187. package/dist/index352.js +0 -136
  188. /package/dist/{index264.js → index276.js} +0 -0
@@ -1,5 +1,72 @@
1
1
  import { CommonProps } from '../../types/CommonProps';
2
- export type BbTabItem = Pick<CommonProps, 'disabled'> & {
2
+ /**
3
+ * Inertia-specific options shared between `BbTabProps` (component-level defaults)
4
+ * and `BbTabItem` (per-item overrides). Item values always win over component values.
5
+ */
6
+ export type BbTabInertiaOptions = {
7
+ /**
8
+ * Additional HTTP headers forwarded to Inertia when navigation is triggered.
9
+ * Only meaningful in an Inertia context.
10
+ */
11
+ headers?: Record<string, string>;
12
+ /**
13
+ * Limits which server-side props are refreshed during a partial Inertia reload.
14
+ * Only meaningful in an Inertia context.
15
+ */
16
+ only?: string[];
17
+ /**
18
+ * Inertia lifecycle hook — fired just before the request is sent.
19
+ * Return `false` to cancel the visit.
20
+ */
21
+ onBefore?: () => boolean | void;
22
+ /**
23
+ * Inertia lifecycle hook — fired when the request is cancelled.
24
+ */
25
+ onCancel?: () => void;
26
+ /**
27
+ * Inertia lifecycle hook — fired after the visit finishes (success or error).
28
+ */
29
+ onFinish?: () => void;
30
+ /**
31
+ * Inertia lifecycle hook — fired when the server returns validation errors.
32
+ */
33
+ onError?: (errors: Record<string, string>) => void;
34
+ /**
35
+ * Inertia lifecycle hook — fired when upload/download progress is available.
36
+ */
37
+ onProgress?: (progress: {
38
+ percentage: number | undefined;
39
+ }) => void;
40
+ /**
41
+ * Inertia lifecycle hook — fired when the request starts.
42
+ */
43
+ onStart?: () => void;
44
+ /**
45
+ * Inertia lifecycle hook — fired when the visit completes successfully.
46
+ */
47
+ onSuccess?: () => void;
48
+ /**
49
+ * Controls whether Inertia preserves the scroll position after navigation.
50
+ * Only meaningful in an Inertia context.
51
+ */
52
+ preserveScroll?: boolean | ((props: Record<string, unknown>) => boolean);
53
+ /**
54
+ * Controls whether Inertia preserves the current component state after navigation.
55
+ * Only meaningful in an Inertia context.
56
+ */
57
+ preserveState?: boolean | ((props: Record<string, unknown>) => boolean) | null;
58
+ /**
59
+ * When true and in an Inertia context, triggers a real server-side Inertia
60
+ * visit (via `router.visit`) instead of a client-only `history.pushState`.
61
+ * All other Inertia options (`headers`, `only`, `preserveScroll`, etc.) and
62
+ * lifecycle hooks are forwarded to that visit.
63
+ */
64
+ server?: boolean;
65
+ };
66
+ export type BbTabEvents = {
67
+ (e: 'update:modelValue', value: string): void;
68
+ };
69
+ export type BbTabItem<K extends string = string> = Pick<CommonProps, 'disabled'> & BbTabInertiaOptions & {
3
70
  /**
4
71
  * Used to render a tab even when not visible.
5
72
  * It's useful if you want the content of a tab in the DOM
@@ -7,16 +74,22 @@ export type BbTabItem = Pick<CommonProps, 'disabled'> & {
7
74
  * even when not visible for SEO purposes.
8
75
  */
9
76
  eager?: boolean;
77
+ /**
78
+ * Destination URL for this tab. In an Inertia context the tab button renders
79
+ * as an Inertia Link that navigates to this URL on click.
80
+ * Ignored when `server` is true (programmatic visit is used instead).
81
+ */
82
+ href?: string;
10
83
  /**
11
84
  * String that identifies the tab.
12
85
  */
13
- key: string;
86
+ key: K;
14
87
  /**
15
88
  * Label to use as the tab text.
16
89
  */
17
90
  label?: string;
18
91
  };
19
- export type BbTabProps = Pick<CommonProps, 'disabled' | 'eager' | 'id'> & {
92
+ export type BbTabProps<K extends string = string> = Pick<CommonProps, 'disabled' | 'eager' | 'id'> & BbTabInertiaOptions & {
20
93
  /**
21
94
  * Enables transitions vertically
22
95
  */
@@ -32,11 +105,11 @@ export type BbTabProps = Pick<CommonProps, 'disabled' | 'eager' | 'id'> & {
32
105
  /**
33
106
  * Array of items that define the tabs in the component.
34
107
  */
35
- items: BbTabItem[];
108
+ items: BbTabItem<K>[];
36
109
  /**
37
110
  * The current tab. Used by v-model.
38
111
  */
39
- modelValue?: null | BbTabItem['key'];
112
+ modelValue?: null | BbTabItem<K>['key'];
40
113
  /**
41
114
  * Synchronizes the current tab with the url.
42
115
  */
@@ -50,33 +123,18 @@ export type BbTabProps = Pick<CommonProps, 'disabled' | 'eager' | 'id'> & {
50
123
  */
51
124
  replace?: boolean;
52
125
  };
53
- declare const props: Readonly<{
54
- id: import('vue').HTMLAttributes["id"];
55
- disabled: boolean;
56
- eager: boolean;
57
- items: BbTabItem[];
58
- modelValue: null | BbTabItem["key"];
59
- navigation: boolean;
60
- replace: boolean;
61
- }> & {
62
- readonly animateX: boolean;
63
- readonly animateY: boolean;
64
- readonly direction: "horizontal" | "vertical";
65
- readonly querykey: string;
66
- } & {
67
- readonly replace: boolean;
68
- readonly disabled: boolean;
69
- readonly eager: boolean;
70
- readonly navigation: boolean;
71
- readonly animateX: boolean;
72
- readonly animateY: boolean;
73
- };
74
- export type BbTabEvents = {
75
- (e: 'update:modelValue', value: (typeof props.items)[number]['key']): void;
76
- };
77
- declare const goTo: (target: "first" | "previous" | "next" | "last") => void;
78
- declare function __VLS_template(): {
79
- attrs: Partial<{}>;
126
+ declare const _default: <K extends string = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
127
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
128
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
129
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & BbTabProps<K> & Partial<{}>> & import('vue').PublicProps;
130
+ expose(exposed: import('vue').ShallowUnwrapRef<{
131
+ isFirst: import('vue').ComputedRef<boolean>;
132
+ isLast: import('vue').ComputedRef<boolean>;
133
+ current: [K | null] extends [import('vue').Ref<any, any>] ? import('@vue/shared').IfAny<import('vue').Ref<any, any> & K, import('vue').Ref<import('vue').Ref<any, any> & K, import('vue').Ref<any, any> & K>, import('vue').Ref<any, any> & K> : import('vue').Ref<import('vue').UnwrapRef<K> | null, K | import('vue').UnwrapRef<K> | null>;
134
+ currentIndex: import('vue').ComputedRef<number>;
135
+ goTo: (target: "first" | "previous" | "next" | "last") => void;
136
+ }>): void;
137
+ attrs: any;
80
138
  slots: Readonly<{
81
139
  'header:prepend'?: (props: {
82
140
  isScrolling: boolean;
@@ -97,21 +155,19 @@ declare function __VLS_template(): {
97
155
  selected: boolean;
98
156
  text: BbTabItem["label"];
99
157
  value: string;
100
- goTo: typeof goTo;
158
+ goTo: (target: "first" | "previous" | "next" | "last") => void;
101
159
  }) => any;
102
- } & {
103
- [key: string]: (props: {
104
- current: string | null;
105
- currentIndex: number;
106
- disabled: boolean;
107
- isFirst: boolean;
108
- isLast: boolean;
109
- selected: boolean;
110
- text: BbTabItem["label"];
111
- value: string;
112
- goTo: typeof goTo;
113
- }) => any;
114
- }> & {
160
+ } & Partial<Record<K | `label-${K}`, (props: {
161
+ current: string | null;
162
+ currentIndex: number;
163
+ disabled: boolean;
164
+ isFirst: boolean;
165
+ isLast: boolean;
166
+ selected: boolean;
167
+ text: BbTabItem["label"];
168
+ value: string;
169
+ goTo: (target: "first" | "previous" | "next" | "last") => void;
170
+ }) => any>>> & {
115
171
  'header:prepend'?: (props: {
116
172
  isScrolling: boolean;
117
173
  left: boolean;
@@ -131,51 +187,24 @@ declare function __VLS_template(): {
131
187
  selected: boolean;
132
188
  text: BbTabItem["label"];
133
189
  value: string;
134
- goTo: typeof goTo;
135
- }) => any;
136
- } & {
137
- [key: string]: (props: {
138
- current: string | null;
139
- currentIndex: number;
140
- disabled: boolean;
141
- isFirst: boolean;
142
- isLast: boolean;
143
- selected: boolean;
144
- text: BbTabItem["label"];
145
- value: string;
146
- goTo: typeof goTo;
190
+ goTo: (target: "first" | "previous" | "next" | "last") => void;
147
191
  }) => any;
148
- };
149
- refs: {
150
- tabs: HTMLDivElement;
151
- tablist: HTMLUListElement;
152
- };
153
- rootEl: HTMLDivElement;
192
+ } & Partial<Record<K | `label-${K}`, (props: {
193
+ current: string | null;
194
+ currentIndex: number;
195
+ disabled: boolean;
196
+ isFirst: boolean;
197
+ isLast: boolean;
198
+ selected: boolean;
199
+ text: BbTabItem["label"];
200
+ value: string;
201
+ goTo: (target: "first" | "previous" | "next" | "last") => void;
202
+ }) => any>>;
203
+ emit: BbTabEvents;
204
+ }>) => import('vue').VNode & {
205
+ __ctx?: Awaited<typeof __VLS_setup>;
154
206
  };
155
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
156
- declare const __VLS_component: import('vue').DefineComponent<BbTabProps, {
157
- isFirst: import('vue').ComputedRef<boolean>;
158
- isLast: import('vue').ComputedRef<boolean>;
159
- current: import('vue').Ref<string | null, string | null>;
160
- currentIndex: import('vue').ComputedRef<number>;
161
- goTo: (target: "first" | "previous" | "next" | "last") => void;
162
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
163
- "update:modelValue": (value: string) => any;
164
- }, string, import('vue').PublicProps, Readonly<BbTabProps> & Readonly<{
165
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
166
- }>, {
167
- direction: "horizontal" | "vertical";
168
- querykey: string;
169
- animateX: boolean;
170
- animateY: boolean;
171
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
172
- tabs: HTMLDivElement;
173
- tablist: HTMLUListElement;
174
- }, HTMLDivElement>;
175
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
176
207
  export default _default;
177
- type __VLS_WithTemplateSlots<T, S> = T & {
178
- new (): {
179
- $slots: S;
180
- };
181
- };
208
+ type __VLS_PrettifyLocal<T> = {
209
+ [K in keyof T]: T[K];
210
+ } & {};
package/dist/index107.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as D, computed as V, toRef as r, ref as E, reactive as L, watch as m, createElementBlock as b, openBlock as B, Fragment as g, renderSlot as i, createCommentVNode as P, unref as R, renderList as j } from "vue";
2
- import { useItemValue as G } from "./index260.js";
3
- import { isNil as k } from "./index258.js";
4
- import { indexBy as U } from "./index283.js";
5
- import { hash as p } from "./index223.js";
6
- import { useItemsGetter as W } from "./index245.js";
7
- import { usePrefill as q } from "./index250.js";
8
- import { useIndexById as z } from "./index246.js";
9
- import { useBaseOptions as J } from "./index247.js";
10
- import { useHashedWatcher as K } from "./index249.js";
2
+ import { useItemValue as G } from "./index239.js";
3
+ import { isNil as k } from "./index227.js";
4
+ import { indexBy as U } from "./index240.js";
5
+ import { hash as p } from "./index241.js";
6
+ import { useItemsGetter as W } from "./index242.js";
7
+ import { usePrefill as q } from "./index243.js";
8
+ import { useIndexById as z } from "./index244.js";
9
+ import { useBaseOptions as J } from "./index245.js";
10
+ import { useHashedWatcher as K } from "./index246.js";
11
11
  const oe = /* @__PURE__ */ D({
12
12
  __name: "BbRows",
13
13
  props: {
package/dist/index114.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, createElementBlock as b, openBlock as _, mergeProps as a, createStaticVNode as x } from "vue";
2
- import { isCssColor as m } from "./index257.js";
2
+ import { isCssColor as m } from "./index228.js";
3
3
  const d = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {