bitboss-ui 2.0.115 → 2.0.117

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 (196) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +31 -58
  2. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +4 -0
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +17 -8
  4. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -0
  5. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +22 -3
  6. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +1 -1
  7. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +8 -167
  8. package/dist/components/BaseTag/BaseTag.vue.d.ts +17 -3
  9. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +4 -0
  10. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +4 -0
  11. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  12. package/dist/components/BbButton/BbButton.vue.d.ts +4 -4
  13. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +4 -0
  14. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
  15. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +5 -0
  16. package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -0
  17. package/dist/components/BbTag/BbTag.vue.d.ts +4 -0
  18. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +4 -0
  19. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +4 -0
  20. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +0 -1
  21. package/dist/components/ClearableButton.vue.d.ts +2 -0
  22. package/dist/components/CommonInputInnerContainer.vue.d.ts +9 -1
  23. package/dist/index100.js +9 -9
  24. package/dist/index101.js +41 -37
  25. package/dist/index111.js +11 -11
  26. package/dist/index113.js +6 -4
  27. package/dist/index115.js +17 -15
  28. package/dist/index117.js +14 -12
  29. package/dist/index119.js +2 -2
  30. package/dist/index121.js +59 -61
  31. package/dist/index123.js +1 -1
  32. package/dist/index125.js +1 -1
  33. package/dist/index127.js +1 -1
  34. package/dist/index128.js +1 -1
  35. package/dist/index129.js +1 -1
  36. package/dist/index13.js +2 -2
  37. package/dist/index133.js +2 -2
  38. package/dist/index15.js +38 -33
  39. package/dist/index17.js +3 -3
  40. package/dist/index19.js +8 -8
  41. package/dist/index207.js +58 -79
  42. package/dist/index209.js +13 -25
  43. package/dist/index21.js +12 -12
  44. package/dist/index210.js +19 -16
  45. package/dist/index211.js +4 -48
  46. package/dist/index212.js +13 -15
  47. package/dist/index213.js +3 -3
  48. package/dist/index214.js +126 -12
  49. package/dist/index215.js +5 -16
  50. package/dist/index216.js +125 -5
  51. package/dist/index217.js +2 -2
  52. package/dist/index218.js +2 -2
  53. package/dist/index219.js +3 -3
  54. package/dist/index220.js +2 -2
  55. package/dist/index221.js +2 -19
  56. package/dist/index222.js +2 -27
  57. package/dist/index223.js +41 -2
  58. package/dist/index224.js +5 -7
  59. package/dist/index225.js +11 -246
  60. package/dist/index226.js +5 -52
  61. package/dist/index227.js +2 -44
  62. package/dist/index228.js +369 -5
  63. package/dist/index229.js +80 -54
  64. package/dist/index23.js +111 -107
  65. package/dist/index231.js +25 -2
  66. package/dist/index232.js +17 -4
  67. package/dist/index233.js +51 -2
  68. package/dist/index234.js +15 -53
  69. package/dist/index235.js +5 -0
  70. package/dist/index236.js +12 -13
  71. package/dist/index237.js +15 -19
  72. package/dist/index238.js +2 -4
  73. package/dist/index239.js +4 -3
  74. package/dist/index240.js +2 -41
  75. package/dist/index241.js +19 -6
  76. package/dist/index242.js +27 -7
  77. package/dist/index243.js +6 -13
  78. package/dist/index244.js +250 -3
  79. package/dist/index245.js +49 -123
  80. package/dist/index246.js +44 -125
  81. package/dist/index247.js +5 -2
  82. package/dist/index248.js +60 -5
  83. package/dist/index249.js +3 -369
  84. package/dist/index25.js +7 -7
  85. package/dist/index250.js +7 -2
  86. package/dist/index251.js +2 -2
  87. package/dist/index252.js +2 -2
  88. package/dist/index253.js +2 -18
  89. package/dist/index254.js +17 -105
  90. package/dist/index255.js +108 -0
  91. package/dist/{index256.js → index257.js} +2 -2
  92. package/dist/index259.js +11 -9
  93. package/dist/index260.js +9 -2
  94. package/dist/index261.js +3 -6
  95. package/dist/index262.js +6 -16
  96. package/dist/index263.js +15 -8
  97. package/dist/index264.js +9 -23
  98. package/dist/index265.js +23 -90
  99. package/dist/index266.js +92 -0
  100. package/dist/index268.js +9 -17
  101. package/dist/index269.js +224 -9
  102. package/dist/index27.js +1 -1
  103. package/dist/index270.js +3 -28
  104. package/dist/index272.js +7 -6
  105. package/dist/index273.js +176 -2
  106. package/dist/index274.js +7 -2
  107. package/dist/index275.js +11 -2
  108. package/dist/index276.js +281 -2
  109. package/dist/index277.js +6 -2
  110. package/dist/index278.js +2 -2
  111. package/dist/index279.js +2 -2
  112. package/dist/index280.js +2 -2
  113. package/dist/index281.js +2 -2
  114. package/dist/index282.js +2 -2
  115. package/dist/index283.js +2 -2
  116. package/dist/index284.js +125 -21
  117. package/dist/index285.js +433 -0
  118. package/dist/index286.js +2 -7
  119. package/dist/index287.js +22 -7
  120. package/dist/index289.js +3 -4
  121. package/dist/index29.js +48 -40
  122. package/dist/index290.js +17 -3
  123. package/dist/index291.js +11 -0
  124. package/dist/index292.js +23 -171
  125. package/dist/index293.js +3 -430
  126. package/dist/index294.js +436 -2
  127. package/dist/index295.js +125 -87
  128. package/dist/index296.js +200 -224
  129. package/dist/index297.js +2 -200
  130. package/dist/index298.js +2 -8
  131. package/dist/index299.js +2 -9
  132. package/dist/index300.js +2 -2
  133. package/dist/index301.js +2 -126
  134. package/dist/index302.js +1 -21
  135. package/dist/index303.js +24 -0
  136. package/dist/index305.js +8 -127
  137. package/dist/index306.js +89 -3
  138. package/dist/index307.js +1 -1
  139. package/dist/index308.js +3 -214
  140. package/dist/index309.js +214 -3
  141. package/dist/index31.js +2 -2
  142. package/dist/index310.js +2 -3
  143. package/dist/index311.js +3 -58
  144. package/dist/index312.js +3 -5
  145. package/dist/index313.js +57 -7
  146. package/dist/index314.js +5 -53
  147. package/dist/index315.js +65 -51
  148. package/dist/index316.js +6 -32
  149. package/dist/index317.js +17 -5
  150. package/dist/index318.js +2 -66
  151. package/dist/index319.js +32 -6
  152. package/dist/index320.js +25 -18
  153. package/dist/index321.js +53 -4
  154. package/dist/index322.js +53 -5
  155. package/dist/index323.js +5 -2
  156. package/dist/index324.js +8 -3
  157. package/dist/index325.js +6 -46
  158. package/dist/index326.js +6 -0
  159. package/dist/index327.js +47 -2
  160. package/dist/index328.js +2 -480
  161. package/dist/index33.js +8 -8
  162. package/dist/index331.js +480 -2
  163. package/dist/{index329.js → index332.js} +1 -1
  164. package/dist/index334.js +4 -0
  165. package/dist/index35.js +4 -4
  166. package/dist/index37.js +200 -189
  167. package/dist/index39.js +4 -4
  168. package/dist/index41.js +2 -2
  169. package/dist/index43.js +8 -8
  170. package/dist/index45.js +92 -85
  171. package/dist/index47.js +40 -36
  172. package/dist/index49.js +39 -35
  173. package/dist/index51.js +11 -12
  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 +3 -3
  181. package/dist/index77.js +1 -1
  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 +4 -4
  188. package/dist/style.css +1 -1
  189. package/package.json +1 -1
  190. package/dist/index230.js +0 -15
  191. package/dist/index258.js +0 -14
  192. package/dist/index267.js +0 -5
  193. package/dist/index271.js +0 -283
  194. package/dist/index288.js +0 -13
  195. package/dist/index304.js +0 -438
  196. /package/dist/{index330.js → index333.js} +0 -0
@@ -70,7 +70,7 @@ export type BaseCheckboxGroupProps<T> = {
70
70
  */
71
71
  loadingText?: string;
72
72
  /**
73
- * Maximum number of selected items.
73
+ * Maximum number of selectable items.
74
74
  */
75
75
  max?: number;
76
76
  /**
@@ -106,67 +106,40 @@ export type BaseCheckboxGroupEvents = {
106
106
  (e: 'mouseup', event: MouseEvent): void;
107
107
  (e: 'update:modelValue', value: any): void;
108
108
  };
109
+ export type BaseCheckboxGroupSlots<T> = {
110
+ prepend?: (props: object) => any;
111
+ loading?: (props: object) => any;
112
+ 'no-data'?: (props: object) => any;
113
+ 'option:prepend'?: (props: {
114
+ checked: boolean;
115
+ disabled: boolean;
116
+ id?: string;
117
+ item: T;
118
+ text: string;
119
+ }) => any;
120
+ icon?: (props: SlotAttributes & {
121
+ item: T;
122
+ text: string;
123
+ }) => any;
124
+ label?: (props: {
125
+ item: T;
126
+ text: string;
127
+ checked: boolean;
128
+ }) => any;
129
+ 'option:append'?: (props: {
130
+ checked: boolean;
131
+ disabled: boolean;
132
+ id?: string;
133
+ item: T;
134
+ text: string;
135
+ }) => any;
136
+ append?: (props: object) => any;
137
+ };
109
138
  declare const _default: <T = 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<{
110
139
  props: __VLS_PrettifyLocal<any & BaseCheckboxGroupProps<T>> & import('vue').PublicProps;
111
140
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
112
141
  attrs: any;
113
- slots: Readonly<{
114
- prepend?: (props: object) => any;
115
- loading?: (props: object) => any;
116
- 'no-data'?: (props: object) => any;
117
- 'option:prepend'?: (props: {
118
- checked: boolean;
119
- disabled: boolean;
120
- id?: string;
121
- item: T;
122
- text: string;
123
- }) => any;
124
- icon?: (props: SlotAttributes & {
125
- item: T;
126
- text: string;
127
- }) => any;
128
- label?: (props: {
129
- item: T;
130
- text: string;
131
- checked: boolean;
132
- }) => any;
133
- 'option:append'?: (props: {
134
- checked: boolean;
135
- disabled: boolean;
136
- id?: string;
137
- item: T;
138
- text: string;
139
- }) => any;
140
- append?: (props: object) => any;
141
- }> & {
142
- prepend?: (props: object) => any;
143
- loading?: (props: object) => any;
144
- 'no-data'?: (props: object) => any;
145
- 'option:prepend'?: (props: {
146
- checked: boolean;
147
- disabled: boolean;
148
- id?: string;
149
- item: T;
150
- text: string;
151
- }) => any;
152
- icon?: (props: SlotAttributes & {
153
- item: T;
154
- text: string;
155
- }) => any;
156
- label?: (props: {
157
- item: T;
158
- text: string;
159
- checked: boolean;
160
- }) => any;
161
- 'option:append'?: (props: {
162
- checked: boolean;
163
- disabled: boolean;
164
- id?: string;
165
- item: T;
166
- text: string;
167
- }) => any;
168
- append?: (props: object) => any;
169
- };
142
+ slots: Readonly<BaseCheckboxGroupSlots<T>> & BaseCheckboxGroupSlots<T>;
170
143
  emit: BaseCheckboxGroupEvents;
171
144
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
172
145
  [key: string]: any;
@@ -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
  */
@@ -87,10 +91,6 @@ export type BaseDatePickerInputProps = {
87
91
  * Target element to teleport the calendar to.
88
92
  */
89
93
  teleportTarget?: string;
90
- /**
91
- * Width of the calendar
92
- */
93
- width?: number | string;
94
94
  };
95
95
  export type BaseDatePickerInputEvents = {
96
96
  (e: 'active'): void;
@@ -166,8 +166,10 @@ declare function __VLS_template(): {
166
166
  $data: {};
167
167
  $props: {
168
168
  readonly 'append:icon'?: string | undefined;
169
+ readonly clearable?: boolean | undefined;
169
170
  readonly 'prepend:icon'?: string | undefined;
170
171
  readonly preventFocus?: boolean | undefined;
172
+ readonly "onClick:clear"?: (() => any) | undefined;
171
173
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
172
174
  $attrs: {
173
175
  [x: string]: unknown;
@@ -181,13 +183,18 @@ declare function __VLS_template(): {
181
183
  $root: import('vue').ComponentPublicInstance | null;
182
184
  $parent: import('vue').ComponentPublicInstance | null;
183
185
  $host: Element | null;
184
- $emit: (event: string, ...args: any[]) => void;
186
+ $emit: (event: "click:clear") => void;
185
187
  $el: any;
186
188
  $options: import('vue').ComponentOptionsBase<Readonly<{
187
189
  'append:icon'?: string;
190
+ clearable?: boolean;
188
191
  'prepend:icon'?: string;
189
192
  preventFocus?: boolean;
190
- }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
193
+ }> & Readonly<{
194
+ "onClick:clear"?: (() => any) | undefined;
195
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
196
+ "click:clear": () => any;
197
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
191
198
  beforeCreate?: (() => void) | (() => void)[];
192
199
  created?: (() => void) | (() => void)[];
193
200
  beforeMount?: (() => void) | (() => void)[];
@@ -209,9 +216,12 @@ declare function __VLS_template(): {
209
216
  $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;
210
217
  } & Readonly<{}> & Omit<Readonly<{
211
218
  'append:icon'?: string;
219
+ clearable?: boolean;
212
220
  'prepend:icon'?: string;
213
221
  preventFocus?: boolean;
214
- }> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
222
+ }> & Readonly<{
223
+ "onClick:clear"?: (() => any) | undefined;
224
+ }>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
215
225
  $slots: {
216
226
  prepend?(_: {}): any;
217
227
  prefix?(_: {}): any;
@@ -308,7 +318,6 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDatePickerInput
308
318
  onActive?: (() => any) | undefined;
309
319
  }>, {
310
320
  autocomplete: string;
311
- width: number | string;
312
321
  allowWriting: boolean | "not-mobile";
313
322
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
314
323
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -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
  */
@@ -21,6 +21,10 @@ export type BaseSelectProps = {
21
21
  * Sets autofocus on page load.
22
22
  */
23
23
  autofocus?: InputHTMLAttributes['autofocus'];
24
+ /**
25
+ * Displays a clear button when the input has a value and is being interacted with.
26
+ */
27
+ clearable?: boolean;
24
28
  /**
25
29
  * Sets the display model for selected values to a list
26
30
  * of comma separated string. In this mode the user
@@ -151,6 +155,11 @@ export type BaseSelectProps = {
151
155
  * you either always return the previous items or you stash them passing `true` to this option.
152
156
  */
153
157
  stash?: boolean;
158
+ /**
159
+ * Function that returns a string to be displayed when the number of selected labels is greater than maxSelectedLabels.
160
+ * @param count - Number of selected labels.
161
+ */
162
+ selectedLabelsFn?: (count: number) => string;
154
163
  /**
155
164
  * Target to teleport the listbox to.
156
165
  */
@@ -283,8 +292,10 @@ declare function __VLS_template(): {
283
292
  $data: {};
284
293
  $props: {
285
294
  readonly 'append:icon'?: string | undefined;
295
+ readonly clearable?: boolean | undefined;
286
296
  readonly 'prepend:icon'?: string | undefined;
287
297
  readonly preventFocus?: boolean | undefined;
298
+ readonly "onClick:clear"?: (() => any) | undefined;
288
299
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
289
300
  $attrs: {
290
301
  [x: string]: unknown;
@@ -298,13 +309,18 @@ declare function __VLS_template(): {
298
309
  $root: import('vue').ComponentPublicInstance | null;
299
310
  $parent: import('vue').ComponentPublicInstance | null;
300
311
  $host: Element | null;
301
- $emit: (event: string, ...args: any[]) => void;
312
+ $emit: (event: "click:clear") => void;
302
313
  $el: any;
303
314
  $options: import('vue').ComponentOptionsBase<Readonly<{
304
315
  'append:icon'?: string;
316
+ clearable?: boolean;
305
317
  'prepend:icon'?: string;
306
318
  preventFocus?: boolean;
307
- }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
319
+ }> & Readonly<{
320
+ "onClick:clear"?: (() => any) | undefined;
321
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
322
+ "click:clear": () => any;
323
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
308
324
  beforeCreate?: (() => void) | (() => void)[];
309
325
  created?: (() => void) | (() => void)[];
310
326
  beforeMount?: (() => void) | (() => void)[];
@@ -326,9 +342,12 @@ declare function __VLS_template(): {
326
342
  $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;
327
343
  } & Readonly<{}> & Omit<Readonly<{
328
344
  'append:icon'?: string;
345
+ clearable?: boolean;
329
346
  'prepend:icon'?: string;
330
347
  preventFocus?: boolean;
331
- }> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
348
+ }> & Readonly<{
349
+ "onClick:clear"?: (() => any) | undefined;
350
+ }>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
332
351
  $slots: {
333
352
  prepend?(_: {}): any;
334
353
  prefix?(_: {}): any;
@@ -65,7 +65,7 @@ export type BaseSliderProps = {
65
65
  */
66
66
  ticks?: boolean;
67
67
  /**
68
- * Proportionally translates the thumb so it remains on track. Set it to false when displaying ticks so they align with less effort.
68
+ * Proportionally translates the thumb so it remains on track. Set it to false when displaying ticks so they align.
69
69
  */
70
70
  thumbTranslate?: boolean;
71
71
  };
@@ -1,173 +1,14 @@
1
- import { HTMLAttributes, InputHTMLAttributes, MaybeRefOrGetter } from 'vue';
2
- import { NestedKeyOf } from '../../types/NestedKeyOf';
3
- import { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';
4
- export type BaseSwitchGroupProps<T> = {
5
- /**
6
- * Guides to the browser as to the type of information expected in the field.
7
- */
8
- ariaDescribedby?: InputHTMLAttributes['aria-describedby'];
9
- /**
10
- * Sets autofocus on page load.
11
- */
12
- autofocus?: InputHTMLAttributes['autofocus'];
13
- /**
14
- * Define a color for the component.
15
- *
16
- * Either a custom color or a coded color in common HEX, RGB, etc... format.
17
- */
18
- color?: string;
19
- /**
20
- * Defines an array of dependencies that will trigger actions in the component upon change.
21
- */
22
- dependencies?: any[];
23
- /**
24
- * Timeout used to debounce response to changes to dependencies.
25
- */
26
- depsDebounceTime?: number;
27
- /**
28
- * Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`
29
- */
30
- direction?: 'horizontal' | 'vertical';
31
- /**
32
- * Disables the component
33
- */
34
- disabled?: boolean;
35
- /**
36
- * If coherence is enforce the input cannot have a modelValue the is incoherent with its current items.
37
- *
38
- * e.g. You cannot set v-model to a user that is not present in the items passed.
39
- *
40
- * modelValue will be reset upon incoherence.
41
- */
42
- enforceCoherence?: boolean;
43
- /**
44
- * Define if the component should be in an error state.
45
- * It usually attaches a CSS class for styling purposes.
46
- */
47
- hasErrors?: boolean;
48
- /**
49
- * Visually hides the label of the input while maintaining accessibility.
50
- */
51
- hideLabel?: boolean;
52
- /**
53
- * The identifier of the component.
54
- */
55
- id?: HTMLAttributes['id'];
56
- /**
57
- * Used to retrieve items can be an array or a function.
58
- */
59
- items: T[] | ((prefill: boolean, modelValue?: any[]) => Promise<T[]>) | ((prefill: boolean, modelValue?: any[]) => T[]);
60
- /**
61
- * Defines a path that returns a property of the object to use as text or a function that returns a string
62
- */
63
- itemText?: T extends object ? NestedKeyOf<T> | ((item: T) => string) : ((item: T) => string) | undefined;
64
- /**
65
- * Defines a path that returns a property of the object to use as value or a function that returns any value
66
- */
67
- itemValue?: T extends object ? NestedKeyOf<T> | ((item: T) => string) : ((item: T) => any) | undefined;
68
- /**
69
- * String displayed while items are being loaded.
70
- */
71
- loadingText?: string;
72
- /**
73
- * Maximum number of selected items.
74
- */
75
- max?: number;
76
- /**
77
- * Used by v-model. Can be an array of any serializable type.
78
- */
79
- modelValue: any[];
80
- /**
81
- * Timeout used to debounce response to changes to modelValue.
82
- */
83
- modelValueDebounceTime?: number;
84
- /**
85
- * Defines the name of the input.
86
- */
87
- name?: InputHTMLAttributes['name'];
88
- /**
89
- * String displayed when there are no items to display.
90
- */
91
- noDataText?: MaybeRefOrGetter<string>;
92
- /**
93
- * Sets the input in a readonly state.
94
- */
95
- readonly?: boolean;
96
- };
97
- export type BaseSwitchGroupEvents = {
98
- (e: 'blur', event: FocusEvent): void;
99
- (e: 'change', event: Event): void;
100
- (e: 'click', event: MouseEvent): void;
101
- (e: 'focus', event: FocusEvent): void;
102
- (e: 'inactive'): void;
103
- (e: 'input', event: Event): void;
104
- (e: 'keydown', event: KeyboardEvent): void;
105
- (e: 'mousedown', event: MouseEvent): void;
106
- (e: 'mouseup', event: MouseEvent): void;
107
- (e: 'update:modelValue', value: any): void;
108
- };
1
+ import { BaseCheckboxGroupEvents, BaseCheckboxGroupProps, BaseCheckboxGroupSlots } from '../BaseCheckboxGroup/BaseCheckboxGroup.vue';
2
+ export type BaseSwitchGroupProps<T> = BaseCheckboxGroupProps<T>;
3
+ export type BaseSwitchGroupEvents = BaseCheckboxGroupEvents;
109
4
  declare const _default: <T = 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<{
110
- props: __VLS_PrettifyLocal<any & BaseSwitchGroupProps<T>> & import('vue').PublicProps;
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, `on${Capitalize<any>}`> & BaseSwitchGroupProps<T>> & import('vue').PublicProps;
111
8
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
112
9
  attrs: any;
113
- slots: Readonly<{
114
- prepend?: (props: object) => any;
115
- loading?: (props: object) => any;
116
- 'no-data'?: (props: object) => any;
117
- 'option:prepend'?: (props: {
118
- checked: boolean;
119
- disabled: boolean;
120
- id?: string;
121
- item: T;
122
- text: string;
123
- }) => any;
124
- icon?: (props: SlotAttributes & {
125
- item: T;
126
- text: string;
127
- }) => any;
128
- label?: (props: {
129
- item: T;
130
- text: string;
131
- checked: boolean;
132
- }) => any;
133
- 'option:append'?: (props: {
134
- checked: boolean;
135
- disabled: boolean;
136
- id?: string;
137
- item: T;
138
- text: string;
139
- }) => any;
140
- append?: (props: object) => any;
141
- }> & {
142
- prepend?: (props: object) => any;
143
- loading?: (props: object) => any;
144
- 'no-data'?: (props: object) => any;
145
- 'option:prepend'?: (props: {
146
- checked: boolean;
147
- disabled: boolean;
148
- id?: string;
149
- item: T;
150
- text: string;
151
- }) => any;
152
- icon?: (props: SlotAttributes & {
153
- item: T;
154
- text: string;
155
- }) => any;
156
- label?: (props: {
157
- item: T;
158
- text: string;
159
- checked: boolean;
160
- }) => any;
161
- 'option:append'?: (props: {
162
- checked: boolean;
163
- disabled: boolean;
164
- id?: string;
165
- item: T;
166
- text: string;
167
- }) => any;
168
- append?: (props: object) => any;
169
- };
170
- emit: BaseSwitchGroupEvents;
10
+ slots: Readonly<BaseCheckboxGroupSlots<T>> & BaseCheckboxGroupSlots<T>;
11
+ emit: BaseCheckboxGroupEvents;
171
12
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
172
13
  [key: string]: any;
173
14
  }> & {
@@ -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
  */
@@ -1,6 +1,6 @@
1
1
  import { BbCollapsibleProps } from '../BbCollapsible/BbCollapsible.vue';
2
2
  import { CommonProps } from '../../types/CommonProps';
3
- export type BbAccordionProps = Partial<BbCollapsibleProps> & Pick<CommonProps, 'id'>;
3
+ export type BbAccordionProps = Pick<BbCollapsibleProps, 'eager' | 'transitionDuration' | 'modelValue'> & Pick<CommonProps, 'id'>;
4
4
  export type BbAccordionEvents = {
5
5
  (e: 'update:modelValue', value: boolean): void;
6
6
  };
@@ -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
  */
@@ -13,6 +13,10 @@ export type BbColorInputProps = {
13
13
  * Sets autofocus on page load.
14
14
  */
15
15
  autofocus?: InputHTMLAttributes['autofocus'];
16
+ /**
17
+ * Displays a clear button when the input has a value and is being interacted with.
18
+ */
19
+ clearable?: boolean;
16
20
  /**
17
21
  * Displays the component in a compact version.
18
22
  */
@@ -18,6 +18,10 @@ export type BbDatePickerInputProps = {
18
18
  * Sets autofocus on page load.
19
19
  */
20
20
  autofocus?: InputHTMLAttributes['autofocus'];
21
+ /**
22
+ * Displays a clear button when the input has a value and is being interacted with.
23
+ */
24
+ clearable?: boolean;
21
25
  /**
22
26
  * Sets the component in a compact state.
23
27
  */
@@ -13,6 +13,10 @@ export type BbNumberInputProps = {
13
13
  * Sets autofocus on page load.
14
14
  */
15
15
  autofocus?: InputHTMLAttributes['autofocus'];
16
+ /**
17
+ * Displays a clear button when the input has a value and is being interacted with.
18
+ */
19
+ clearable?: boolean;
16
20
  /**
17
21
  * Sets the component in a compact state.
18
22
  */
@@ -128,6 +132,7 @@ declare function __VLS_template(): {
128
132
  readonly ariaDescribedby?: InputHTMLAttributes["aria-describedby"];
129
133
  readonly autocomplete?: InputHTMLAttributes["autocomplete"];
130
134
  readonly autofocus?: InputHTMLAttributes["autofocus"];
135
+ readonly clearable?: boolean | undefined;
131
136
  readonly compact?: boolean | undefined;
132
137
  readonly disabled?: boolean | undefined;
133
138
  readonly hasErrors?: boolean | undefined;
@@ -18,6 +18,10 @@ export type BbSelectProps<T> = {
18
18
  * Sets autofocus on page load.
19
19
  */
20
20
  autofocus?: InputHTMLAttributes['autofocus'];
21
+ /**
22
+ * Displays a clear button when the input has a value and is being interacted with.
23
+ */
24
+ clearable?: boolean;
21
25
  /**
22
26
  * Sets the display model for selected values to a list
23
27
  * of comma separated string. In this mode the user
@@ -173,6 +177,11 @@ export type BbSelectProps<T> = {
173
177
  * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.
174
178
  */
175
179
  reverse?: boolean;
180
+ /**
181
+ * Function that returns a string to be displayed when the number of selected labels is greater than maxSelectedLabels.
182
+ * @param count - Number of selected labels.
183
+ */
184
+ selectedLabelsFn?: (count: number) => string;
176
185
  /**
177
186
  * Adds a stash to accumulate selected values. Especially
178
187
  * useful when searching in a big database of items.
@@ -19,6 +19,10 @@ export type BbTagProps = {
19
19
  * cannot deselect an option by pressing the close button.
20
20
  */
21
21
  comma?: boolean;
22
+ /**
23
+ * Displays a clear button when the input has a value and is being interacted with.
24
+ */
25
+ clearable?: boolean;
22
26
  /**
23
27
  * Sets the component in a compact mode.
24
28
  */