bitboss-ui 2.0.116 → 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 (185) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +4 -0
  2. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +17 -3
  3. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -0
  4. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +17 -3
  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/BbNumberInput/BbNumberInput.vue.d.ts +5 -0
  12. package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
  13. package/dist/components/BbTag/BbTag.vue.d.ts +4 -0
  14. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +4 -0
  15. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +4 -0
  16. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +0 -1
  17. package/dist/components/ClearableButton.vue.d.ts +2 -0
  18. package/dist/components/CommonInputInnerContainer.vue.d.ts +9 -1
  19. package/dist/index100.js +8 -8
  20. package/dist/index101.js +37 -35
  21. package/dist/index111.js +12 -12
  22. package/dist/index113.js +6 -4
  23. package/dist/index115.js +17 -15
  24. package/dist/index117.js +14 -12
  25. package/dist/index119.js +2 -2
  26. package/dist/index121.js +59 -61
  27. package/dist/index123.js +1 -1
  28. package/dist/index125.js +1 -1
  29. package/dist/index127.js +1 -1
  30. package/dist/index128.js +1 -1
  31. package/dist/index129.js +1 -1
  32. package/dist/index13.js +2 -2
  33. package/dist/index131.js +1 -1
  34. package/dist/index132.js +2 -2
  35. package/dist/index133.js +2 -2
  36. package/dist/index15.js +36 -31
  37. package/dist/index17.js +3 -3
  38. package/dist/index19.js +8 -8
  39. package/dist/index205.js +115 -2
  40. package/dist/index206.js +2 -3
  41. package/dist/index207.js +41 -29
  42. package/dist/index209.js +1 -1
  43. package/dist/index21.js +16 -16
  44. package/dist/index210.js +20 -2
  45. package/dist/index211.js +4 -4
  46. package/dist/index212.js +13 -2
  47. package/dist/index213.js +3 -86
  48. package/dist/index214.js +128 -0
  49. package/dist/index215.js +5 -25
  50. package/dist/index216.js +123 -15
  51. package/dist/index217.js +15 -50
  52. package/dist/index218.js +16 -15
  53. package/dist/index219.js +19 -3
  54. package/dist/index220.js +15 -12
  55. package/dist/index221.js +2 -16
  56. package/dist/index222.js +2 -126
  57. package/dist/index223.js +41 -5
  58. package/dist/index224.js +6 -125
  59. package/dist/index225.js +15 -16
  60. package/dist/index226.js +5 -16
  61. package/dist/index227.js +2 -19
  62. package/dist/index228.js +368 -14
  63. package/dist/index229.js +86 -2
  64. package/dist/index23.js +115 -110
  65. package/dist/index231.js +24 -40
  66. package/dist/index232.js +17 -13
  67. package/dist/index233.js +49 -18
  68. package/dist/index234.js +15 -6
  69. package/dist/index235.js +3 -15
  70. package/dist/index236.js +12 -5
  71. package/dist/index237.js +15 -368
  72. package/dist/index238.js +2 -19
  73. package/dist/index239.js +4 -27
  74. package/dist/index240.js +2 -8
  75. package/dist/index241.js +17 -248
  76. package/dist/index242.js +26 -51
  77. package/dist/index243.js +6 -42
  78. package/dist/index244.js +250 -5
  79. package/dist/index245.js +43 -51
  80. package/dist/index246.js +44 -3
  81. package/dist/index247.js +5 -7
  82. package/dist/index248.js +60 -4
  83. package/dist/index249.js +3 -115
  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 +2 -8
  95. package/dist/index262.js +6 -23
  96. package/dist/index263.js +15 -89
  97. package/dist/index264.js +11 -0
  98. package/dist/index265.js +23 -6
  99. package/dist/index266.js +89 -15
  100. package/dist/index268.js +9 -3
  101. package/dist/index27.js +1 -1
  102. package/dist/index270.js +3 -7
  103. package/dist/index272.js +7 -3
  104. package/dist/index273.js +174 -15
  105. package/dist/index274.js +7 -9
  106. package/dist/index275.js +10 -27
  107. package/dist/index285.js +1 -1
  108. package/dist/index286.js +2 -176
  109. package/dist/index287.js +21 -1
  110. package/dist/index289.js +5 -0
  111. package/dist/index29.js +49 -41
  112. package/dist/index290.js +17 -7
  113. package/dist/index291.js +9 -11
  114. package/dist/index292.js +28 -2
  115. package/dist/index293.js +4 -2
  116. package/dist/index294.js +436 -2
  117. package/dist/index295.js +127 -2
  118. package/dist/index296.js +200 -2
  119. package/dist/index297.js +2 -2
  120. package/dist/index298.js +2 -22
  121. package/dist/index299.js +4 -0
  122. package/dist/index300.js +2 -9
  123. package/dist/index301.js +2 -200
  124. package/dist/index302.js +2 -436
  125. package/dist/index303.js +21 -126
  126. package/dist/index306.js +89 -3
  127. package/dist/index307.js +1 -1
  128. package/dist/index308.js +3 -214
  129. package/dist/index309.js +214 -2
  130. package/dist/index31.js +2 -2
  131. package/dist/index310.js +2 -3
  132. package/dist/index311.js +3 -67
  133. package/dist/index312.js +3 -5
  134. package/dist/index313.js +58 -3
  135. package/dist/index314.js +5 -3
  136. package/dist/index315.js +65 -56
  137. package/dist/index316.js +6 -32
  138. package/dist/index317.js +18 -4
  139. package/dist/index318.js +3 -8
  140. package/dist/index319.js +32 -3
  141. package/dist/index320.js +25 -6
  142. package/dist/index321.js +52 -18
  143. package/dist/index322.js +28 -28
  144. package/dist/index323.js +5 -53
  145. package/dist/index324.js +7 -6
  146. package/dist/index325.js +6 -46
  147. package/dist/index326.js +4 -2
  148. package/dist/index327.js +47 -480
  149. package/dist/index328.js +4 -0
  150. package/dist/index33.js +8 -8
  151. package/dist/index331.js +480 -2
  152. package/dist/{index329.js → index332.js} +1 -1
  153. package/dist/index334.js +4 -0
  154. package/dist/index35.js +4 -4
  155. package/dist/index37.js +148 -138
  156. package/dist/index39.js +5 -5
  157. package/dist/index41.js +2 -2
  158. package/dist/index43.js +8 -8
  159. package/dist/index45.js +92 -85
  160. package/dist/index47.js +40 -36
  161. package/dist/index49.js +38 -34
  162. package/dist/index53.js +1 -1
  163. package/dist/index55.js +1 -1
  164. package/dist/index57.js +2 -2
  165. package/dist/index61.js +11 -10
  166. package/dist/index67.js +14 -12
  167. package/dist/index71.js +5 -3
  168. package/dist/index75.js +3 -3
  169. package/dist/index77.js +1 -1
  170. package/dist/index79.js +2 -2
  171. package/dist/index81.js +1 -1
  172. package/dist/index82.js +11 -9
  173. package/dist/index84.js +4 -4
  174. package/dist/index86.js +2 -2
  175. package/dist/index88.js +5 -5
  176. package/dist/index90.js +1 -1
  177. package/dist/style.css +1 -1
  178. package/package.json +2 -2
  179. package/dist/index230.js +0 -4
  180. package/dist/index258.js +0 -14
  181. package/dist/index271.js +0 -6
  182. package/dist/index288.js +0 -24
  183. package/dist/index304.js +0 -91
  184. /package/dist/{index267.js → index269.js} +0 -0
  185. /package/dist/{index330.js → index333.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
  */
@@ -162,8 +166,10 @@ declare function __VLS_template(): {
162
166
  $data: {};
163
167
  $props: {
164
168
  readonly 'append:icon'?: string | undefined;
169
+ readonly clearable?: boolean | undefined;
165
170
  readonly 'prepend:icon'?: string | undefined;
166
171
  readonly preventFocus?: boolean | undefined;
172
+ readonly "onClick:clear"?: (() => any) | undefined;
167
173
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
168
174
  $attrs: {
169
175
  [x: string]: unknown;
@@ -177,13 +183,18 @@ declare function __VLS_template(): {
177
183
  $root: import('vue').ComponentPublicInstance | null;
178
184
  $parent: import('vue').ComponentPublicInstance | null;
179
185
  $host: Element | null;
180
- $emit: (event: string, ...args: any[]) => void;
186
+ $emit: (event: "click:clear") => void;
181
187
  $el: any;
182
188
  $options: import('vue').ComponentOptionsBase<Readonly<{
183
189
  'append:icon'?: string;
190
+ clearable?: boolean;
184
191
  'prepend:icon'?: string;
185
192
  preventFocus?: boolean;
186
- }> & 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> & {
187
198
  beforeCreate?: (() => void) | (() => void)[];
188
199
  created?: (() => void) | (() => void)[];
189
200
  beforeMount?: (() => void) | (() => void)[];
@@ -205,9 +216,12 @@ declare function __VLS_template(): {
205
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;
206
217
  } & Readonly<{}> & Omit<Readonly<{
207
218
  'append:icon'?: string;
219
+ clearable?: boolean;
208
220
  'prepend:icon'?: string;
209
221
  preventFocus?: boolean;
210
- }> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
222
+ }> & Readonly<{
223
+ "onClick:clear"?: (() => any) | undefined;
224
+ }>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
211
225
  $slots: {
212
226
  prepend?(_: {}): any;
213
227
  prefix?(_: {}): any;
@@ -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
@@ -288,8 +292,10 @@ declare function __VLS_template(): {
288
292
  $data: {};
289
293
  $props: {
290
294
  readonly 'append:icon'?: string | undefined;
295
+ readonly clearable?: boolean | undefined;
291
296
  readonly 'prepend:icon'?: string | undefined;
292
297
  readonly preventFocus?: boolean | undefined;
298
+ readonly "onClick:clear"?: (() => any) | undefined;
293
299
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
294
300
  $attrs: {
295
301
  [x: string]: unknown;
@@ -303,13 +309,18 @@ declare function __VLS_template(): {
303
309
  $root: import('vue').ComponentPublicInstance | null;
304
310
  $parent: import('vue').ComponentPublicInstance | null;
305
311
  $host: Element | null;
306
- $emit: (event: string, ...args: any[]) => void;
312
+ $emit: (event: "click:clear") => void;
307
313
  $el: any;
308
314
  $options: import('vue').ComponentOptionsBase<Readonly<{
309
315
  'append:icon'?: string;
316
+ clearable?: boolean;
310
317
  'prepend:icon'?: string;
311
318
  preventFocus?: boolean;
312
- }> & 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> & {
313
324
  beforeCreate?: (() => void) | (() => void)[];
314
325
  created?: (() => void) | (() => void)[];
315
326
  beforeMount?: (() => void) | (() => void)[];
@@ -331,9 +342,12 @@ declare function __VLS_template(): {
331
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;
332
343
  } & Readonly<{}> & Omit<Readonly<{
333
344
  'append:icon'?: string;
345
+ clearable?: boolean;
334
346
  'prepend:icon'?: string;
335
347
  preventFocus?: boolean;
336
- }> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
348
+ }> & Readonly<{
349
+ "onClick:clear"?: (() => any) | undefined;
350
+ }>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
337
351
  $slots: {
338
352
  prepend?(_: {}): any;
339
353
  prefix?(_: {}): any;
@@ -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
  */
@@ -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
@@ -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
  */
@@ -13,6 +13,10 @@ export type BbTextInputProps = {
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
  */
@@ -17,6 +17,10 @@ export type BbTextareaProps = {
17
17
  * Expands the textarea to match its content
18
18
  */
19
19
  autoGrow?: boolean;
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
  */
@@ -26,7 +26,6 @@ declare function __VLS_template(): {
26
26
  slots: Readonly<BbTooltipSlots> & BbTooltipSlots;
27
27
  refs: {
28
28
  wrapper: HTMLSpanElement;
29
- content: HTMLSpanElement;
30
29
  };
31
30
  attrs: Partial<{}>;
32
31
  };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -3,6 +3,10 @@ type Props = {
3
3
  * Name of the icon to be added at the end of the input.
4
4
  */
5
5
  'append:icon'?: string;
6
+ /**
7
+ * Whether the input is clearable.
8
+ */
9
+ clearable?: boolean;
6
10
  /**
7
11
  * Name of the icon to be added at the start of the input.
8
12
  */
@@ -23,7 +27,11 @@ declare function __VLS_template(): {
23
27
  attrs: Partial<{}>;
24
28
  };
25
29
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
31
+ "click:clear": () => any;
32
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
33
+ "onClick:clear"?: (() => any) | undefined;
34
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
35
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
36
  export default _default;
29
37
  type __VLS_WithTemplateSlots<T, S> = T & {
package/dist/index100.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as R, mergeModels as b, computed as I, toRef as m, reactive as j, useModel as B, watch as E, openBlock as g, createElementBlock as k, Fragment as H, renderSlot as p, unref as x, createCommentVNode as G, renderList as U } from "vue";
2
- import { useItemValue as W } from "./index274.js";
3
- import { isNil as w } from "./index251.js";
2
+ import { useItemValue as W } from "./index291.js";
3
+ import { isNil as w } from "./index252.js";
4
4
  import { indexBy as q } from "./index305.js";
5
- import { hash as M } from "./index219.js";
6
- import { useItemsGetter as z } from "./index215.js";
7
- import { usePrefill as J } from "./index221.js";
8
- import { useIndexById as K } from "./index216.js";
9
- import { useBaseOptions as Q } from "./index217.js";
10
- import { useHashedWatcher as X } from "./index220.js";
5
+ import { hash as M } from "./index235.js";
6
+ import { useItemsGetter as z } from "./index231.js";
7
+ import { usePrefill as J } from "./index237.js";
8
+ import { useIndexById as K } from "./index232.js";
9
+ import { useBaseOptions as Q } from "./index233.js";
10
+ import { useHashedWatcher as X } from "./index236.js";
11
11
  const de = /* @__PURE__ */ R({
12
12
  __name: "BbRows",
13
13
  props: /* @__PURE__ */ b({
package/dist/index101.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, ref as y, computed as g, openBlock as v, createBlock as B, withCtx as n, renderSlot as a, normalizeProps as l, guardReactiveProps as i, createVNode as $, mergeProps as T } from "vue";
1
+ import { defineComponent as h, ref as y, computed as g, openBlock as v, createBlock as B, withCtx as a, renderSlot as n, normalizeProps as l, guardReactiveProps as i, createVNode as $, mergeProps as T } from "vue";
2
2
  import V from "./index27.js";
3
3
  /* empty css */
4
4
  import w from "./index37.js";
@@ -10,6 +10,7 @@ const k = /* @__PURE__ */ h({
10
10
  "append:icon": {},
11
11
  autocomplete: {},
12
12
  autofocus: {},
13
+ clearable: { type: Boolean },
13
14
  comma: { type: Boolean },
14
15
  compact: { type: Boolean },
15
16
  dependencies: {},
@@ -83,10 +84,10 @@ const k = /* @__PURE__ */ h({
83
84
  reverse: e.reverse,
84
85
  "show-hint": u.value
85
86
  }, {
86
- label: n((s) => [
87
- a(e.$slots, "label", l(i(s)))
87
+ label: a((s) => [
88
+ n(e.$slots, "label", l(i(s)))
88
89
  ]),
89
- input: n(({ id: s, hasErrors: b, ariaDescribedby: f }) => [
90
+ input: a(({ id: s, hasErrors: b, ariaDescribedby: f }) => [
90
91
  $(w, T({
91
92
  id: s,
92
93
  "allow-writing": e.allowWriting,
@@ -94,6 +95,7 @@ const k = /* @__PURE__ */ h({
94
95
  "aria-describedby": f,
95
96
  autocomplete: e.autocomplete,
96
97
  autofocus: e.autofocus,
98
+ clearable: e.clearable,
97
99
  comma: e.comma,
98
100
  compact: e.compact,
99
101
  dependencies: e.dependencies,
@@ -126,53 +128,53 @@ const k = /* @__PURE__ */ h({
126
128
  "transition-duration": e.transitionDuration,
127
129
  "update-on-animation-frame": e.updateOnAnimationFrame
128
130
  }, c), {
129
- "append-outer": n((o) => [
130
- a(e.$slots, "append-outer", l(i(o)))
131
+ "append-outer": a((o) => [
132
+ n(e.$slots, "append-outer", l(i(o)))
131
133
  ]),
132
- append: n((o) => [
133
- a(e.$slots, "append", l(i(o)))
134
+ append: a((o) => [
135
+ n(e.$slots, "append", l(i(o)))
134
136
  ]),
135
- prefix: n((o) => [
136
- a(e.$slots, "prefix", l(i(o)))
137
+ prefix: a((o) => [
138
+ n(e.$slots, "prefix", l(i(o)))
137
139
  ]),
138
- chevron: n((o) => [
139
- a(e.$slots, "chevron", l(i(o)))
140
+ chevron: a((o) => [
141
+ n(e.$slots, "chevron", l(i(o)))
140
142
  ]),
141
- loading: n((o) => [
142
- a(e.$slots, "loading", l(i(o)))
143
+ loading: a((o) => [
144
+ n(e.$slots, "loading", l(i(o)))
143
145
  ]),
144
- "no-data": n((o) => [
145
- a(e.$slots, "no-data", l(i(o)))
146
+ "no-data": a((o) => [
147
+ n(e.$slots, "no-data", l(i(o)))
146
148
  ]),
147
- "option:append": n((o) => [
148
- a(e.$slots, "option:append", l(i(o)))
149
+ "option:append": a((o) => [
150
+ n(e.$slots, "option:append", l(i(o)))
149
151
  ]),
150
- "option:prepend": n((o) => [
151
- a(e.$slots, "option:prepend", l(i(o)))
152
+ "option:prepend": a((o) => [
153
+ n(e.$slots, "option:prepend", l(i(o)))
152
154
  ]),
153
- option: n((o) => [
154
- a(e.$slots, "option", l(i(o)))
155
+ option: a((o) => [
156
+ n(e.$slots, "option", l(i(o)))
155
157
  ]),
156
- "options:append": n((o) => [
157
- a(e.$slots, "options:append", l(i(o)))
158
+ "options:append": a((o) => [
159
+ n(e.$slots, "options:append", l(i(o)))
158
160
  ]),
159
- "options:prepend": n((o) => [
160
- a(e.$slots, "options:prepend", l(i(o)))
161
+ "options:prepend": a((o) => [
162
+ n(e.$slots, "options:prepend", l(i(o)))
161
163
  ]),
162
- "prepend-outer": n((o) => [
163
- a(e.$slots, "prepend-outer", l(i(o)))
164
+ "prepend-outer": a((o) => [
165
+ n(e.$slots, "prepend-outer", l(i(o)))
164
166
  ]),
165
- prepend: n((o) => [
166
- a(e.$slots, "prepend", l(i(o)))
167
+ prepend: a((o) => [
168
+ n(e.$slots, "prepend", l(i(o)))
167
169
  ]),
168
- suffix: n((o) => [
169
- a(e.$slots, "suffix", l(i(o)))
170
+ suffix: a((o) => [
171
+ n(e.$slots, "suffix", l(i(o)))
170
172
  ]),
171
- spinner: n((o) => [
172
- a(e.$slots, "spinner", l(i(o)))
173
+ spinner: a((o) => [
174
+ n(e.$slots, "spinner", l(i(o)))
173
175
  ]),
174
176
  _: 2
175
- }, 1040, ["id", "allow-writing", "append:icon", "aria-describedby", "autocomplete", "autofocus", "comma", "compact", "dependencies", "deps-debounce-time", "disabled", "enforce-coherence", "filter-by", "has-errors", "item-text", "item-value", "items", "loading", "loading-text", "max", "max-selected-labels", "model-value", "model-value-debounce-time", "multiple", "name", "no-data-text", "placeholder", "prefill", "prepend:icon", "query-debounce-time", "readonly", "required", "selected-labels-fn", "stash", "teleport-target", "transition-duration", "update-on-animation-frame"])
177
+ }, 1040, ["id", "allow-writing", "append:icon", "aria-describedby", "autocomplete", "autofocus", "clearable", "comma", "compact", "dependencies", "deps-debounce-time", "disabled", "enforce-coherence", "filter-by", "has-errors", "item-text", "item-value", "items", "loading", "loading-text", "max", "max-selected-labels", "model-value", "model-value-debounce-time", "multiple", "name", "no-data-text", "placeholder", "prefill", "prepend:icon", "query-debounce-time", "readonly", "required", "selected-labels-fn", "stash", "teleport-target", "transition-duration", "update-on-animation-frame"])
176
178
  ]),
177
179
  _: 3
178
180
  }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
package/dist/index111.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { defineComponent as me, mergeModels as K, ref as fe, computed as v, toRef as j, useModel as Q, watch as X, reactive as ye, openBlock as n, createBlock as Y, resolveDynamicComponent as he, normalizeClass as p, unref as b, withCtx as ve, createElementBlock as d, toDisplayString as m, createCommentVNode as _, createElementVNode as o, renderSlot as f, isRef as ke, Fragment as I, renderList as T, createVNode as Z, createTextVNode as _e, mergeProps as ge } from "vue";
2
- import { add as Ce } from "./index309.js";
3
- import { clamp as we } from "./index205.js";
4
- import { isNil as $ } from "./index251.js";
2
+ import { add as Ce } from "./index310.js";
3
+ import { clamp as we } from "./index206.js";
4
+ import { isNil as $ } from "./index252.js";
5
5
  import { useId as Ve } from "./index8.js";
6
- import { useItemValue as Be } from "./index274.js";
7
- import { when as Ie } from "./index211.js";
6
+ import { useItemValue as Be } from "./index291.js";
7
+ import { when as Ie } from "./index239.js";
8
8
  import ee from "./index17.js";
9
9
  /* empty css */
10
10
  import Te from "./index31.js";
11
11
  /* empty css */
12
- import { hash as le } from "./index219.js";
13
- import { useItemsGetter as $e } from "./index215.js";
14
- import { usePrefill as Ae } from "./index221.js";
15
- import { useIndexById as xe } from "./index216.js";
16
- import { useBaseOptions as Ne } from "./index217.js";
17
- import { useHashedWatcher as Le } from "./index220.js";
18
- import { useLocale as Se } from "./index232.js";
12
+ import { hash as le } from "./index235.js";
13
+ import { useItemsGetter as $e } from "./index231.js";
14
+ import { usePrefill as Ae } from "./index237.js";
15
+ import { useIndexById as xe } from "./index232.js";
16
+ import { useBaseOptions as Ne } from "./index233.js";
17
+ import { useHashedWatcher as Le } from "./index236.js";
18
+ import { useLocale as Se } from "./index212.js";
19
19
  const He = {
20
20
  key: 0,
21
21
  class: "sr-only"
package/dist/index113.js CHANGED
@@ -10,6 +10,7 @@ const I = /* @__PURE__ */ f({
10
10
  autocomplete: {},
11
11
  autofocus: {},
12
12
  comma: { type: Boolean },
13
+ clearable: { type: Boolean },
13
14
  compact: { type: Boolean },
14
15
  direction: {},
15
16
  disabled: { type: Boolean },
@@ -70,18 +71,19 @@ const I = /* @__PURE__ */ f({
70
71
  label: l((s) => [
71
72
  r(e.$slots, "label", n(i(s)))
72
73
  ]),
73
- input: l(({ id: s, hasErrors: h, ariaDescribedby: b }) => [
74
+ input: l(({ id: s, hasErrors: b, ariaDescribedby: h }) => [
74
75
  k(V, $({
75
76
  id: s,
76
77
  "append:icon": p["append:icon"],
77
- "aria-describedby": b,
78
+ "aria-describedby": h,
78
79
  autocomplete: e.autocomplete,
79
80
  autofocus: e.autofocus,
81
+ clearable: e.clearable,
80
82
  comma: e.comma,
81
83
  compact: e.compact,
82
84
  disabled: e.disabled,
83
85
  divider: e.divider,
84
- "has-errors": h,
86
+ "has-errors": b,
85
87
  loading: e.loading,
86
88
  max: e.max,
87
89
  "model-value": e.modelValue,
@@ -111,7 +113,7 @@ const I = /* @__PURE__ */ f({
111
113
  r(e.$slots, "append-outer", n(i(o)))
112
114
  ]),
113
115
  _: 2
114
- }, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "comma", "compact", "disabled", "divider", "has-errors", "loading", "max", "model-value", "multiple", "name", "placeholder", "prepend:icon", "readonly", "required"])
116
+ }, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "clearable", "comma", "compact", "disabled", "divider", "has-errors", "loading", "max", "model-value", "multiple", "name", "placeholder", "prepend:icon", "readonly", "required"])
115
117
  ]),
116
118
  _: 3
117
119
  }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));