bitboss-ui 2.0.116 → 2.0.118

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 (200) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +4 -0
  2. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +32 -6
  3. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -0
  4. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +33 -357
  5. package/dist/components/BaseTag/BaseTag.vue.d.ts +17 -3
  6. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +4 -0
  7. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +4 -0
  8. package/dist/components/BbButton/BbButton.vue.d.ts +4 -4
  9. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +4 -0
  10. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
  11. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +76 -89
  12. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +75 -89
  13. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +5 -0
  14. package/dist/components/BbRows/BbRows.vue.d.ts +70 -85
  15. package/dist/components/BbSelect/BbSelect.vue.d.ts +5 -10
  16. package/dist/components/BbTable/BbTable.vue.d.ts +63 -91
  17. package/dist/components/BbTable/types.d.ts +46 -27
  18. package/dist/components/BbTag/BbTag.vue.d.ts +4 -0
  19. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +4 -0
  20. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +4 -0
  21. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +0 -1
  22. package/dist/components/ClearableButton.vue.d.ts +2 -0
  23. package/dist/components/CommonInputInnerContainer.vue.d.ts +9 -1
  24. package/dist/components/ListBox.vue.d.ts +40 -44
  25. package/dist/index100.js +91 -82
  26. package/dist/index101.js +35 -42
  27. package/dist/index111.js +235 -211
  28. package/dist/index113.js +6 -4
  29. package/dist/index115.js +17 -15
  30. package/dist/index117.js +14 -12
  31. package/dist/index119.js +2 -2
  32. package/dist/index121.js +59 -61
  33. package/dist/index123.js +1 -1
  34. package/dist/index125.js +1 -1
  35. package/dist/index127.js +1 -1
  36. package/dist/index128.js +1 -1
  37. package/dist/index129.js +1 -1
  38. package/dist/index13.js +2 -2
  39. package/dist/index132.js +2 -2
  40. package/dist/index133.js +2 -2
  41. package/dist/index15.js +38 -33
  42. package/dist/index17.js +3 -3
  43. package/dist/index19.js +8 -8
  44. package/dist/index206.js +126 -3
  45. package/dist/index207.js +5 -53
  46. package/dist/index208.js +127 -0
  47. package/dist/index209.js +16 -13
  48. package/dist/index21.js +16 -16
  49. package/dist/index210.js +16 -2
  50. package/dist/index211.js +19 -4
  51. package/dist/index212.js +15 -2
  52. package/dist/index213.js +2 -86
  53. package/dist/index214.js +4 -0
  54. package/dist/index215.js +40 -24
  55. package/dist/index216.js +13 -17
  56. package/dist/index217.js +18 -49
  57. package/dist/index218.js +6 -15
  58. package/dist/index219.js +15 -3
  59. package/dist/index220.js +65 -12
  60. package/dist/index222.js +13 -126
  61. package/dist/index223.js +5 -5
  62. package/dist/index224.js +2 -125
  63. package/dist/index225.js +367 -14
  64. package/dist/index226.js +3 -16
  65. package/dist/index227.js +7 -19
  66. package/dist/index228.js +8 -15
  67. package/dist/index229.js +19 -2
  68. package/dist/index23.js +116 -111
  69. package/dist/index230.js +27 -2
  70. package/dist/index231.js +3 -41
  71. package/dist/index232.js +249 -12
  72. package/dist/index233.js +50 -18
  73. package/dist/index234.js +43 -5
  74. package/dist/index235.js +5 -15
  75. package/dist/index236.js +60 -5
  76. package/dist/index237.js +3 -369
  77. package/dist/index238.js +115 -19
  78. package/dist/index239.js +4 -27
  79. package/dist/index240.js +2 -8
  80. package/dist/index241.js +4 -250
  81. package/dist/index242.js +2 -52
  82. package/dist/index243.js +80 -38
  83. package/dist/index245.js +25 -60
  84. package/dist/index246.js +17 -3
  85. package/dist/index247.js +51 -7
  86. package/dist/index248.js +15 -4
  87. package/dist/index249.js +10 -113
  88. package/dist/index25.js +7 -7
  89. package/dist/index250.js +16 -2
  90. package/dist/index251.js +2 -2
  91. package/dist/index252.js +2 -2
  92. package/dist/index253.js +1 -1
  93. package/dist/index254.js +2 -2
  94. package/dist/index256.js +2 -2
  95. package/dist/index259.js +214 -10
  96. package/dist/index260.js +9 -2
  97. package/dist/index261.js +2 -8
  98. package/dist/index262.js +9 -23
  99. package/dist/index263.js +23 -90
  100. package/dist/index264.js +92 -0
  101. package/dist/index266.js +6 -16
  102. package/dist/index267.js +16 -224
  103. package/dist/index268.js +9 -3
  104. package/dist/index269.js +11 -0
  105. package/dist/index27.js +1 -1
  106. package/dist/index270.js +8 -7
  107. package/dist/index271.js +281 -4
  108. package/dist/index272.js +6 -3
  109. package/dist/index273.js +2 -17
  110. package/dist/index274.js +2 -9
  111. package/dist/index275.js +2 -28
  112. package/dist/index276.js +2 -281
  113. package/dist/index277.js +2 -6
  114. package/dist/index278.js +2 -2
  115. package/dist/index279.js +126 -2
  116. package/dist/index280.js +431 -2
  117. package/dist/index281.js +176 -2
  118. package/dist/index282.js +2 -2
  119. package/dist/index283.js +3 -2
  120. package/dist/index285.js +5 -429
  121. package/dist/index286.js +22 -176
  122. package/dist/index288.js +7 -22
  123. package/dist/index289.js +13 -0
  124. package/dist/index29.js +48 -40
  125. package/dist/index290.js +88 -6
  126. package/dist/index291.js +200 -11
  127. package/dist/index292.js +436 -2
  128. package/dist/index293.js +127 -2
  129. package/dist/index294.js +224 -2
  130. package/dist/index295.js +2 -2
  131. package/dist/index296.js +2 -2
  132. package/dist/index297.js +1 -1
  133. package/dist/index298.js +1 -21
  134. package/dist/index299.js +4 -0
  135. package/dist/index300.js +2 -9
  136. package/dist/index301.js +25 -197
  137. package/dist/index302.js +21 -435
  138. package/dist/index304.js +3 -88
  139. package/dist/index305.js +3 -8
  140. package/dist/index306.js +17 -3
  141. package/dist/index307.js +1 -1
  142. package/dist/index308.js +3 -214
  143. package/dist/index309.js +2 -2
  144. package/dist/index31.js +2 -2
  145. package/dist/index310.js +2 -3
  146. package/dist/index311.js +5 -67
  147. package/dist/index312.js +67 -5
  148. package/dist/index313.js +3 -3
  149. package/dist/index314.js +5 -3
  150. package/dist/index315.js +7 -57
  151. package/dist/index316.js +2 -32
  152. package/dist/index317.js +3 -5
  153. package/dist/index318.js +57 -7
  154. package/dist/index320.js +32 -6
  155. package/dist/index321.js +25 -18
  156. package/dist/index322.js +7 -53
  157. package/dist/index323.js +7 -53
  158. package/dist/index324.js +17 -5
  159. package/dist/index325.js +53 -47
  160. package/dist/index326.js +53 -2
  161. package/dist/index327.js +47 -480
  162. package/dist/index328.js +482 -0
  163. package/dist/index329.js +2 -424
  164. package/dist/index33.js +8 -8
  165. package/dist/index332.js +426 -0
  166. package/dist/index35.js +4 -4
  167. package/dist/index37.js +172 -161
  168. package/dist/index39.js +4 -4
  169. package/dist/index41.js +2 -2
  170. package/dist/index43.js +8 -8
  171. package/dist/index45.js +92 -85
  172. package/dist/index47.js +40 -36
  173. package/dist/index49.js +39 -35
  174. package/dist/index53.js +1 -1
  175. package/dist/index55.js +1 -1
  176. package/dist/index57.js +2 -2
  177. package/dist/index61.js +11 -10
  178. package/dist/index67.js +14 -12
  179. package/dist/index71.js +5 -3
  180. package/dist/index75.js +37 -35
  181. package/dist/index77.js +54 -50
  182. package/dist/index79.js +2 -2
  183. package/dist/index81.js +1 -1
  184. package/dist/index82.js +11 -9
  185. package/dist/index84.js +4 -4
  186. package/dist/index86.js +2 -2
  187. package/dist/index88.js +5 -5
  188. package/dist/style.css +1 -1
  189. package/dist/types/ColumnName.d.ts +4 -0
  190. package/dist/types/Option.d.ts +2 -2
  191. package/dist/types/PrefixWith.d.ts +1 -0
  192. package/package.json +2 -2
  193. package/dist/index221.js +0 -18
  194. package/dist/index244.js +0 -7
  195. package/dist/index265.js +0 -8
  196. package/dist/index284.js +0 -128
  197. package/dist/index287.js +0 -4
  198. package/dist/index303.js +0 -129
  199. /package/dist/{index330.js → index333.js} +0 -0
  200. /package/dist/{index331.js → index334.js} +0 -0
@@ -16,6 +16,10 @@ export type BaseColorInputProps = {
16
16
  * Sets autofocus on page load.
17
17
  */
18
18
  autofocus?: InputHTMLAttributes['autofocus'];
19
+ /**
20
+ * Displays a clear button when the input has a value and is being interacted with.
21
+ */
22
+ clearable?: boolean;
19
23
  /**
20
24
  * Displays the component in a compact version.
21
25
  */
@@ -17,6 +17,10 @@ export type BaseDatePickerInputProps = {
17
17
  * Sets autofocus on page load.
18
18
  */
19
19
  autofocus?: InputHTMLAttributes['autofocus'];
20
+ /**
21
+ * Displays a clear button when the input has a value and is being interacted with.
22
+ */
23
+ clearable?: boolean;
20
24
  /**
21
25
  * Sets the component in a compact state.
22
26
  */
@@ -149,7 +153,11 @@ declare function __VLS_template(): {
149
153
  };
150
154
  $forceUpdate: () => void;
151
155
  $nextTick: typeof import('vue').nextTick;
152
- $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;
156
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (
157
+ /**
158
+ * These events are just propagated
159
+ */
160
+ ...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;
153
161
  } & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
154
162
  $slots: {
155
163
  "prepend-outer"?(_: {}): any;
@@ -162,8 +170,10 @@ declare function __VLS_template(): {
162
170
  $data: {};
163
171
  $props: {
164
172
  readonly 'append:icon'?: string | undefined;
173
+ readonly clearable?: boolean | undefined;
165
174
  readonly 'prepend:icon'?: string | undefined;
166
175
  readonly preventFocus?: boolean | undefined;
176
+ readonly "onClick:clear"?: (() => any) | undefined;
167
177
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
168
178
  $attrs: {
169
179
  [x: string]: unknown;
@@ -177,13 +187,18 @@ declare function __VLS_template(): {
177
187
  $root: import('vue').ComponentPublicInstance | null;
178
188
  $parent: import('vue').ComponentPublicInstance | null;
179
189
  $host: Element | null;
180
- $emit: (event: string, ...args: any[]) => void;
190
+ $emit: (event: "click:clear") => void;
181
191
  $el: any;
182
192
  $options: import('vue').ComponentOptionsBase<Readonly<{
183
193
  'append:icon'?: string;
194
+ clearable?: boolean;
184
195
  'prepend:icon'?: string;
185
196
  preventFocus?: boolean;
186
- }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
197
+ }> & Readonly<{
198
+ "onClick:clear"?: (() => any) | undefined;
199
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
200
+ "click:clear": () => any;
201
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
187
202
  beforeCreate?: (() => void) | (() => void)[];
188
203
  created?: (() => void) | (() => void)[];
189
204
  beforeMount?: (() => void) | (() => void)[];
@@ -202,12 +217,19 @@ declare function __VLS_template(): {
202
217
  };
203
218
  $forceUpdate: () => void;
204
219
  $nextTick: typeof import('vue').nextTick;
205
- $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;
220
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (
221
+ /**
222
+ * These events are just propagated
223
+ */
224
+ ...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;
206
225
  } & Readonly<{}> & Omit<Readonly<{
207
226
  'append:icon'?: string;
227
+ clearable?: boolean;
208
228
  'prepend:icon'?: string;
209
229
  preventFocus?: boolean;
210
- }> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
230
+ }> & Readonly<{
231
+ "onClick:clear"?: (() => any) | undefined;
232
+ }>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
211
233
  $slots: {
212
234
  prepend?(_: {}): any;
213
235
  prefix?(_: {}): any;
@@ -276,7 +298,11 @@ declare function __VLS_template(): {
276
298
  };
277
299
  $forceUpdate: () => void;
278
300
  $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;
301
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (
302
+ /**
303
+ * These events are just propagated
304
+ */
305
+ ...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
306
  } & Readonly<{
281
307
  firstDayOfWeek: number;
282
308
  }> & Omit<Readonly<import('../..').BaseDatePickerProps> & Readonly<{
@@ -16,6 +16,10 @@ export type BaseNumberInputProps = {
16
16
  * Sets autofocus on page load.
17
17
  */
18
18
  autofocus?: InputHTMLAttributes['autofocus'];
19
+ /**
20
+ * Displays a clear button when the input has a value and is being interacted with.
21
+ */
22
+ clearable?: boolean;
19
23
  /**
20
24
  * Sets the component in a compact state.
21
25
  */
@@ -1,6 +1,5 @@
1
- import { nextTick, HTMLAttributes, InputHTMLAttributes } from 'vue';
2
- import { Option as BaseOption } from '../../types/Option';
3
- export type BaseSelectProps = {
1
+ import { HTMLAttributes, InputHTMLAttributes } from 'vue';
2
+ export type BaseSelectProps<Item> = {
4
3
  /**
5
4
  * Allows typing into the input.
6
5
  */
@@ -21,6 +20,10 @@ export type BaseSelectProps = {
21
20
  * Sets autofocus on page load.
22
21
  */
23
22
  autofocus?: InputHTMLAttributes['autofocus'];
23
+ /**
24
+ * Displays a clear button when the input has a value and is being interacted with.
25
+ */
26
+ clearable?: boolean;
24
27
  /**
25
28
  * Sets the display model for selected values to a list
26
29
  * of comma separated string. In this mode the user
@@ -73,15 +76,15 @@ export type BaseSelectProps = {
73
76
  /**
74
77
  * Used to retrieve items can be an array or a function.
75
78
  */
76
- items: any[] | ((query: string, prefill: boolean, modelValue: any) => Promise<any[]>) | ((query: string, prefill: boolean, modelValue: any) => any[]);
79
+ items: Item[] | ((query: string, prefill: boolean, modelValue: any[]) => Promise<Item[]>) | ((query: string, prefill: boolean, modelValue: any[]) => Item[]);
77
80
  /**
78
81
  * Defines a path that returns a property of the object to use as text or a function that returns a string
79
82
  */
80
- itemText?: string | ((item: any) => string) | undefined;
83
+ itemText?: string | ((item: Item) => string) | undefined;
81
84
  /**
82
85
  * Defines a path that returns a property of the object to use as value or a function that returns any value
83
86
  */
84
- itemValue?: string | ((item: any) => string) | undefined;
87
+ itemValue?: string | ((item: Item) => string) | undefined;
85
88
  /**
86
89
  * Sets the component in a loading state, usually triggering some visual styles.
87
90
  */
@@ -179,7 +182,7 @@ export type BaseSelectEvents = {
179
182
  (e: 'update:modelValue', value: any): void;
180
183
  (e: 'option:add', text: string): void;
181
184
  };
182
- export type BaseSelectSlots = {
185
+ export type BaseSelectSlots<Item> = {
183
186
  append?: (props: {
184
187
  query: string;
185
188
  }) => any;
@@ -212,18 +215,12 @@ export type BaseSelectSlots = {
212
215
  focused: boolean;
213
216
  index: number;
214
217
  hasErrors?: boolean;
215
- item: any;
218
+ item: Item;
216
219
  loading: boolean;
217
220
  selected: boolean;
218
221
  text: string;
219
222
  value: any;
220
223
  }) => any;
221
- 'option:append'?: (props: {
222
- item: any;
223
- }) => any;
224
- 'option:prepend'?: (props: {
225
- item: any;
226
- }) => any;
227
224
  'options:append'?: (props: object) => any;
228
225
  'options:prepend'?: (props: object) => any;
229
226
  prefix?: (props: object) => any;
@@ -235,348 +232,27 @@ export type BaseSelectSlots = {
235
232
  }) => any;
236
233
  suffix?: (props: object) => any;
237
234
  };
238
- declare function __VLS_template(): {
239
- slots: Readonly<BaseSelectSlots> & BaseSelectSlots;
240
- refs: {
241
- outerContainer: ({
242
- $: import('vue').ComponentInternalInstance;
243
- $data: {};
244
- $props: Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>;
245
- $attrs: {
246
- [x: string]: unknown;
247
- };
248
- $refs: {
249
- [x: string]: unknown;
250
- };
251
- $slots: Readonly<{
252
- [name: string]: import('vue').Slot<any> | undefined;
253
- }>;
254
- $root: import('vue').ComponentPublicInstance | null;
255
- $parent: import('vue').ComponentPublicInstance | null;
256
- $host: Element | null;
257
- $emit: (event: string, ...args: any[]) => void;
258
- $el: any;
259
- $options: import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
260
- beforeCreate?: (() => void) | (() => void)[];
261
- created?: (() => void) | (() => void)[];
262
- beforeMount?: (() => void) | (() => void)[];
263
- mounted?: (() => void) | (() => void)[];
264
- beforeUpdate?: (() => void) | (() => void)[];
265
- updated?: (() => void) | (() => void)[];
266
- activated?: (() => void) | (() => void)[];
267
- deactivated?: (() => void) | (() => void)[];
268
- beforeDestroy?: (() => void) | (() => void)[];
269
- beforeUnmount?: (() => void) | (() => void)[];
270
- destroyed?: (() => void) | (() => void)[];
271
- unmounted?: (() => void) | (() => void)[];
272
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
273
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
274
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
275
- };
276
- $forceUpdate: () => void;
277
- $nextTick: typeof nextTick;
278
- $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;
279
- } & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
280
- $slots: {
281
- "prepend-outer"?(_: {}): any;
282
- default?(_: {}): any;
283
- "append-outer"?(_: {}): any;
284
- };
285
- }) | null;
286
- innerContainer: ({
287
- $: import('vue').ComponentInternalInstance;
288
- $data: {};
289
- $props: {
290
- readonly 'append:icon'?: string | undefined;
291
- readonly 'prepend:icon'?: string | undefined;
292
- readonly preventFocus?: boolean | undefined;
293
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
294
- $attrs: {
295
- [x: string]: unknown;
296
- };
297
- $refs: {
298
- [x: string]: unknown;
299
- };
300
- $slots: Readonly<{
301
- [name: string]: import('vue').Slot<any> | undefined;
302
- }>;
303
- $root: import('vue').ComponentPublicInstance | null;
304
- $parent: import('vue').ComponentPublicInstance | null;
305
- $host: Element | null;
306
- $emit: (event: string, ...args: any[]) => void;
307
- $el: any;
308
- $options: import('vue').ComponentOptionsBase<Readonly<{
309
- 'append:icon'?: string;
310
- 'prepend:icon'?: string;
311
- preventFocus?: boolean;
312
- }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
313
- beforeCreate?: (() => void) | (() => void)[];
314
- created?: (() => void) | (() => void)[];
315
- beforeMount?: (() => void) | (() => void)[];
316
- mounted?: (() => void) | (() => void)[];
317
- beforeUpdate?: (() => void) | (() => void)[];
318
- updated?: (() => void) | (() => void)[];
319
- activated?: (() => void) | (() => void)[];
320
- deactivated?: (() => void) | (() => void)[];
321
- beforeDestroy?: (() => void) | (() => void)[];
322
- beforeUnmount?: (() => void) | (() => void)[];
323
- destroyed?: (() => void) | (() => void)[];
324
- unmounted?: (() => void) | (() => void)[];
325
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
326
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
327
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
328
- };
329
- $forceUpdate: () => void;
330
- $nextTick: typeof nextTick;
331
- $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;
332
- } & Readonly<{}> & Omit<Readonly<{
333
- 'append:icon'?: string;
334
- 'prepend:icon'?: string;
335
- preventFocus?: boolean;
336
- }> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
337
- $slots: {
338
- prepend?(_: {}): any;
339
- prefix?(_: {}): any;
340
- default?(_: {}): any;
341
- append?(_: {}): any;
342
- suffix?(_: {}): any;
343
- };
344
- }) | null;
345
- commaBox: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
346
- options: BaseOption[];
347
- }> & Readonly<{
348
- "onOption:unselected"?: ((option: BaseOption) => any) | undefined;
349
- }>, {
350
- focusNext: () => void;
351
- focusPrevious: () => Promise<void>;
352
- focusFirst: () => void;
353
- focusFirstSelected: () => void;
354
- focusLast: () => void;
355
- focusLastSelected: () => void;
356
- blur: () => void;
357
- confirmOption: () => void;
358
- focusByHash: (hash: BaseOption["valueHash"]) => void;
359
- getHighlighted: () => BaseOption | undefined;
360
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
361
- "option:unselected": (option: BaseOption) => any;
362
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
363
- P: {};
364
- B: {};
365
- D: {};
366
- C: {};
367
- M: {};
368
- Defaults: {};
369
- }, Readonly<{
370
- options: BaseOption[];
371
- }> & Readonly<{
372
- "onOption:unselected"?: ((option: BaseOption) => any) | undefined;
373
- }>, {
374
- focusNext: () => void;
375
- focusPrevious: () => Promise<void>;
376
- focusFirst: () => void;
377
- focusFirstSelected: () => void;
378
- focusLast: () => void;
379
- focusLastSelected: () => void;
380
- blur: () => void;
381
- confirmOption: () => void;
382
- focusByHash: (hash: BaseOption["valueHash"]) => void;
383
- getHighlighted: () => BaseOption | undefined;
384
- }, {}, {}, {}, {}> | null;
385
- chipsBox: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
386
- options: BaseOption[];
387
- }> & Readonly<{
388
- "onOption:unselected"?: ((option: BaseOption) => any) | undefined;
389
- }>, {
390
- focusNext: () => void;
391
- focusPrevious: () => Promise<void>;
392
- focusFirst: () => void;
393
- focusFirstSelected: () => void;
394
- focusLast: () => void;
395
- focusLastSelected: () => void;
396
- blur: () => void;
397
- confirmOption: () => void;
398
- focusByHash: (hash: BaseOption["valueHash"]) => void;
399
- getHighlighted: () => BaseOption | undefined;
400
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
401
- "option:unselected": (option: BaseOption) => any;
402
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
403
- P: {};
404
- B: {};
405
- D: {};
406
- C: {};
407
- M: {};
408
- Defaults: {};
409
- }, Readonly<{
410
- options: BaseOption[];
411
- }> & Readonly<{
412
- "onOption:unselected"?: ((option: BaseOption) => any) | undefined;
413
- }>, {
414
- focusNext: () => void;
415
- focusPrevious: () => Promise<void>;
416
- focusFirst: () => void;
417
- focusFirstSelected: () => void;
418
- focusLast: () => void;
419
- focusLastSelected: () => void;
420
- blur: () => void;
421
- confirmOption: () => void;
422
- focusByHash: (hash: BaseOption["valueHash"]) => void;
423
- getHighlighted: () => BaseOption | undefined;
424
- }, {}, {}, {}, {}> | null;
425
- input: HTMLInputElement;
426
- optionsContainer: ({
427
- $: import('vue').ComponentInternalInstance;
428
- $data: {};
429
- $props: {
430
- readonly compact?: boolean | undefined;
431
- readonly options: BaseOption[];
432
- readonly open?: boolean | undefined;
433
- readonly loading?: boolean | undefined;
434
- readonly transitionDuration?: number | undefined;
435
- readonly loadingText?: string | undefined;
436
- readonly noDataText?: string | undefined;
437
- readonly "onOption:unselected"?: ((option: BaseOption) => any) | undefined;
438
- readonly "onOption:selected"?: ((option: BaseOption) => any) | undefined;
439
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
440
- $attrs: {
441
- [x: string]: unknown;
442
- };
443
- $refs: {
444
- [x: string]: unknown;
445
- };
446
- $slots: Readonly<{
447
- [name: string]: import('vue').Slot<any> | undefined;
448
- }>;
449
- $root: import('vue').ComponentPublicInstance | null;
450
- $parent: import('vue').ComponentPublicInstance | null;
451
- $host: Element | null;
452
- $emit: ((event: "option:unselected", option: BaseOption) => void) & ((event: "option:selected", option: BaseOption) => void);
453
- $el: any;
454
- $options: import('vue').ComponentOptionsBase<Readonly<{
455
- compact?: boolean;
456
- options: BaseOption[];
457
- open?: boolean;
458
- loading?: boolean;
459
- transitionDuration?: number;
460
- loadingText?: string;
461
- noDataText?: string;
462
- }> & Readonly<{
463
- "onOption:unselected"?: ((option: BaseOption) => any) | undefined;
464
- "onOption:selected"?: ((option: BaseOption) => any) | undefined;
465
- }>, {
466
- focusNext: () => void;
467
- focusPrevious: () => Promise<void>;
468
- focusFirst: () => void;
469
- focusFirstSelected: () => void;
470
- focusLast: () => void;
471
- focusLastSelected: () => void;
472
- blur: () => void;
473
- confirmOption: () => void;
474
- focusByHash: (hash: BaseOption["valueHash"]) => void;
475
- getHighlighted: () => BaseOption | undefined;
476
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
477
- "option:unselected": (option: BaseOption) => any;
478
- "option:selected": (option: BaseOption) => any;
479
- }, string, {
480
- transitionDuration: number;
481
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
482
- beforeCreate?: (() => void) | (() => void)[];
483
- created?: (() => void) | (() => void)[];
484
- beforeMount?: (() => void) | (() => void)[];
485
- mounted?: (() => void) | (() => void)[];
486
- beforeUpdate?: (() => void) | (() => void)[];
487
- updated?: (() => void) | (() => void)[];
488
- activated?: (() => void) | (() => void)[];
489
- deactivated?: (() => void) | (() => void)[];
490
- beforeDestroy?: (() => void) | (() => void)[];
491
- beforeUnmount?: (() => void) | (() => void)[];
492
- destroyed?: (() => void) | (() => void)[];
493
- unmounted?: (() => void) | (() => void)[];
494
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
495
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
496
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
497
- };
498
- $forceUpdate: () => void;
499
- $nextTick: typeof nextTick;
500
- $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;
501
- } & Readonly<{
502
- transitionDuration: number;
503
- }> & Omit<Readonly<{
504
- compact?: boolean;
505
- options: BaseOption[];
506
- open?: boolean;
507
- loading?: boolean;
508
- transitionDuration?: number;
509
- loadingText?: string;
510
- noDataText?: string;
511
- }> & Readonly<{
512
- "onOption:unselected"?: ((option: BaseOption) => any) | undefined;
513
- "onOption:selected"?: ((option: BaseOption) => any) | undefined;
514
- }>, "transitionDuration" | "blur" | "focusNext" | "focusPrevious" | "focusFirst" | "focusFirstSelected" | "focusLast" | "focusLastSelected" | "confirmOption" | "focusByHash" | "getHighlighted"> & import('vue').ShallowUnwrapRef<{
515
- focusNext: () => void;
516
- focusPrevious: () => Promise<void>;
517
- focusFirst: () => void;
518
- focusFirstSelected: () => void;
519
- focusLast: () => void;
520
- focusLastSelected: () => void;
521
- blur: () => void;
522
- confirmOption: () => void;
523
- focusByHash: (hash: BaseOption["valueHash"]) => void;
524
- getHighlighted: () => BaseOption | undefined;
525
- }> & {} & import('vue').ComponentCustomProperties & {} & {
526
- $slots: Partial<Record<"loading", (_: {}) => any>> & Partial<Record<"no-data", (_: {}) => any>> & {
527
- "options:prepend"?(_: {}): any;
528
- option?(_: {
529
- disabled: boolean;
530
- focused: boolean;
531
- index: number;
532
- item: any;
533
- selected: boolean;
534
- text: string;
535
- value: any;
536
- }): any;
537
- "options:append"?(_: {}): any;
538
- };
539
- }) | null;
540
- };
541
- attrs: Partial<{}>;
235
+ declare const _default: <Item = any>(__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<{
236
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
237
+ readonly onInput?: ((event: Event) => any) | undefined;
238
+ readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
239
+ readonly onBlur?: ((event: FocusEvent) => any) | undefined;
240
+ readonly onChange?: ((event: Event) => any) | undefined;
241
+ readonly onClick?: ((event: MouseEvent) => any) | undefined;
242
+ readonly onFocus?: ((event: FocusEvent) => any) | undefined;
243
+ readonly onInactive?: (() => any) | undefined;
244
+ readonly "onOption:add"?: ((text: string) => any) | undefined;
245
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInput" | "onClick" | "onUpdate:modelValue" | "onInactive" | "onOption:add"> & BaseSelectProps<Item>> & import('vue').PublicProps;
246
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
247
+ attrs: any;
248
+ slots: Readonly<BaseSelectSlots<Item>> & BaseSelectSlots<Item>;
249
+ emit: BaseSelectEvents;
250
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
251
+ [key: string]: any;
252
+ }> & {
253
+ __ctx?: Awaited<typeof __VLS_setup>;
542
254
  };
543
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
544
- declare const __VLS_component: import('vue').DefineComponent<BaseSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
545
- input: (event: Event) => any;
546
- "update:modelValue": (value: any) => any;
547
- blur: (event: FocusEvent) => any;
548
- change: (event: Event) => any;
549
- click: (event: MouseEvent) => any;
550
- focus: (event: FocusEvent) => any;
551
- inactive: () => any;
552
- "option:add": (text: string) => any;
553
- }, string, import('vue').PublicProps, Readonly<BaseSelectProps> & Readonly<{
554
- onInput?: ((event: Event) => any) | undefined;
555
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
556
- onBlur?: ((event: FocusEvent) => any) | undefined;
557
- onChange?: ((event: Event) => any) | undefined;
558
- onClick?: ((event: MouseEvent) => any) | undefined;
559
- onFocus?: ((event: FocusEvent) => any) | undefined;
560
- onInactive?: (() => any) | undefined;
561
- "onOption:add"?: ((text: string) => any) | undefined;
562
- }>, {
563
- autocomplete: string;
564
- transitionDuration: number;
565
- allowWriting: boolean | "not-mobile";
566
- dependencies: any[];
567
- depsDebounceTime: number;
568
- modelValueDebounceTime: number;
569
- max: number;
570
- prefill: boolean | "focus";
571
- filterBy: string | string[] | false | ((value: any, item: any) => boolean) | null;
572
- maxSelectedLabels: number;
573
- queryDebounceTime: number;
574
- updateOnAnimationFrame: boolean;
575
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
576
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
577
255
  export default _default;
578
- type __VLS_WithTemplateSlots<T, S> = T & {
579
- new (): {
580
- $slots: S;
581
- };
582
- };
256
+ type __VLS_PrettifyLocal<T> = {
257
+ [K in keyof T]: T[K];
258
+ } & {};
@@ -23,6 +23,10 @@ export type BaseTagProps = {
23
23
  * cannot deselect an option by pressing the close button.
24
24
  */
25
25
  comma?: boolean;
26
+ /**
27
+ * Displays a clear button when the input has a value and is being interacted with.
28
+ */
29
+ clearable?: boolean;
26
30
  /**
27
31
  * Sets the component in a compact mode.
28
32
  */
@@ -154,8 +158,10 @@ declare function __VLS_template(): {
154
158
  $data: {};
155
159
  $props: {
156
160
  readonly 'append:icon'?: string | undefined;
161
+ readonly clearable?: boolean | undefined;
157
162
  readonly 'prepend:icon'?: string | undefined;
158
163
  readonly preventFocus?: boolean | undefined;
164
+ readonly "onClick:clear"?: (() => any) | undefined;
159
165
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
160
166
  $attrs: {
161
167
  [x: string]: unknown;
@@ -169,13 +175,18 @@ declare function __VLS_template(): {
169
175
  $root: import('vue').ComponentPublicInstance | null;
170
176
  $parent: import('vue').ComponentPublicInstance | null;
171
177
  $host: Element | null;
172
- $emit: (event: string, ...args: any[]) => void;
178
+ $emit: (event: "click:clear") => void;
173
179
  $el: any;
174
180
  $options: import('vue').ComponentOptionsBase<Readonly<{
175
181
  'append:icon'?: string;
182
+ clearable?: boolean;
176
183
  'prepend:icon'?: string;
177
184
  preventFocus?: boolean;
178
- }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
185
+ }> & Readonly<{
186
+ "onClick:clear"?: (() => any) | undefined;
187
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
188
+ "click:clear": () => any;
189
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
179
190
  beforeCreate?: (() => void) | (() => void)[];
180
191
  created?: (() => void) | (() => void)[];
181
192
  beforeMount?: (() => void) | (() => void)[];
@@ -197,9 +208,12 @@ declare function __VLS_template(): {
197
208
  $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;
198
209
  } & Readonly<{}> & Omit<Readonly<{
199
210
  'append:icon'?: string;
211
+ clearable?: boolean;
200
212
  'prepend:icon'?: string;
201
213
  preventFocus?: boolean;
202
- }> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
214
+ }> & Readonly<{
215
+ "onClick:clear"?: (() => any) | undefined;
216
+ }>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
203
217
  $slots: {
204
218
  prepend?(_: {}): any;
205
219
  prefix?(_: {}): any;
@@ -16,6 +16,10 @@ export type BaseTextInputProps = {
16
16
  * Sets autofocus on page load.
17
17
  */
18
18
  autofocus?: InputHTMLAttributes['autofocus'];
19
+ /**
20
+ * Displays a clear button when the input has a value and is being interacted with.
21
+ */
22
+ clearable?: boolean;
19
23
  /**
20
24
  * Displays the component in a compact version.
21
25
  */
@@ -20,6 +20,10 @@ export type BaseTextareaProps = {
20
20
  * Sets autofocus on page load.
21
21
  */
22
22
  autofocus?: InputHTMLAttributes['autofocus'];
23
+ /**
24
+ * Displays a clear button when the input has a value and is being interacted with.
25
+ */
26
+ clearable?: boolean;
23
27
  /**
24
28
  * Sets the component in a compact state.
25
29
  */
@@ -35,6 +35,10 @@ export type BbButtonProps = {
35
35
  * Class to apply when the link is exact active
36
36
  */
37
37
  exactActiveClass?: string;
38
+ /**
39
+ * Identifies the button as part of a button group.
40
+ */
41
+ group?: boolean;
38
42
  headers?: object;
39
43
  /**
40
44
  * Returns the hyperlink's URL.
@@ -72,10 +76,6 @@ export type BbButtonProps = {
72
76
  [key: string]: unknown;
73
77
  }) => boolean) | null;
74
78
  queryStringArrayFormat?: 'brackets' | 'indices';
75
- /**
76
- * Sets or retrieves the relationship between the object and the destination of the link.
77
- */
78
- rel?: HTMLAnchorElement['rel'];
79
79
  /**
80
80
  * Calls `router.replace` instead of `router.push`.
81
81
  */