bitboss-ui 0.1.88 → 0.1.90

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 (190) hide show
  1. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +2 -41
  2. package/dist/components/BaseCheckbox/types.d.ts +26 -0
  3. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +4 -46
  4. package/dist/components/BaseCheckboxGroup/types.d.ts +8 -0
  5. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +2 -43
  6. package/dist/components/BaseRadio/types.d.ts +30 -0
  7. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +4 -40
  8. package/dist/components/BaseRadioGroup/types.d.ts +8 -1
  9. package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +3 -5
  10. package/dist/components/BaseSwitch/types.d.ts +3 -0
  11. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +64 -6
  12. package/dist/components/BaseSwitchGroup/types.d.ts +2 -24
  13. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +3 -18
  14. package/dist/components/BbCheckbox/types.d.ts +4 -0
  15. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +7 -47
  16. package/dist/components/BbCheckboxGroup/types.d.ts +5 -0
  17. package/dist/components/BbRadio/BbRadio.vue.d.ts +3 -15
  18. package/dist/components/BbRadio/types.d.ts +4 -0
  19. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +7 -12
  20. package/dist/components/BbRadioGroup/types.d.ts +4 -1
  21. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +12 -9
  22. package/dist/components/BbSwitch/types.d.ts +3 -0
  23. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +7 -41
  24. package/dist/components/BbSwitchGroup/types.d.ts +2 -7
  25. package/dist/components/BbTable/BbTable.vue.d.ts +3 -3
  26. package/dist/components/BbTable/types.d.ts +1 -1
  27. package/dist/index.d.ts +12 -17
  28. package/dist/index101.js +2 -2
  29. package/dist/index109.js +3 -3
  30. package/dist/index11.js +4 -4
  31. package/dist/index11.js.map +1 -1
  32. package/dist/index114.js +1 -1
  33. package/dist/index115.js +1 -1
  34. package/dist/index116.js +1 -1
  35. package/dist/index117.js +1 -1
  36. package/dist/index119.js +1 -1
  37. package/dist/index121.js +1 -1
  38. package/dist/index122.js +1 -1
  39. package/dist/index123.js +1 -1
  40. package/dist/index127.js +2 -2
  41. package/dist/index13.js +8 -8
  42. package/dist/index15.js +9 -9
  43. package/dist/index17.js +3 -3
  44. package/dist/index19.js +2 -2
  45. package/dist/index193.js +2 -3
  46. package/dist/index193.js.map +1 -1
  47. package/dist/index194.js +4 -35
  48. package/dist/index194.js.map +1 -1
  49. package/dist/index195.js +351 -6
  50. package/dist/index195.js.map +1 -1
  51. package/dist/index196.js +134 -2
  52. package/dist/index196.js.map +1 -1
  53. package/dist/index197.js +5 -2
  54. package/dist/index197.js.map +1 -1
  55. package/dist/index198.js +19 -10
  56. package/dist/index198.js.map +1 -1
  57. package/dist/index199.js +2 -2
  58. package/dist/index199.js.map +1 -1
  59. package/dist/index200.js +2 -4
  60. package/dist/index200.js.map +1 -1
  61. package/dist/index201.js +171 -336
  62. package/dist/index201.js.map +1 -1
  63. package/dist/index202.js +23 -134
  64. package/dist/index202.js.map +1 -1
  65. package/dist/index203.js +369 -5
  66. package/dist/index203.js.map +1 -1
  67. package/dist/index204.js +2 -19
  68. package/dist/index204.js.map +1 -1
  69. package/dist/index205.js +16 -2
  70. package/dist/index205.js.map +1 -1
  71. package/dist/index206.js +16 -2
  72. package/dist/index206.js.map +1 -1
  73. package/dist/index207.js +18 -184
  74. package/dist/index207.js.map +1 -1
  75. package/dist/index208.js +29 -23
  76. package/dist/index208.js.map +1 -1
  77. package/dist/index209.js +8 -369
  78. package/dist/index209.js.map +1 -1
  79. package/dist/index21.js +1 -1
  80. package/dist/index210.js +2 -235
  81. package/dist/index210.js.map +1 -1
  82. package/dist/index211.js +235 -16
  83. package/dist/index211.js.map +1 -1
  84. package/dist/index212.js +3 -16
  85. package/dist/index212.js.map +1 -1
  86. package/dist/index213.js +3 -20
  87. package/dist/index213.js.map +1 -1
  88. package/dist/index214.js +3 -29
  89. package/dist/index214.js.map +1 -1
  90. package/dist/index215.js +35 -8
  91. package/dist/index215.js.map +1 -1
  92. package/dist/index216.js +6 -2
  93. package/dist/index216.js.map +1 -1
  94. package/dist/index217.js +2 -3
  95. package/dist/index217.js.map +1 -1
  96. package/dist/index218.js +2 -3
  97. package/dist/index218.js.map +1 -1
  98. package/dist/index219.js +10 -9
  99. package/dist/index219.js.map +1 -1
  100. package/dist/index220.js +7 -114
  101. package/dist/index220.js.map +1 -1
  102. package/dist/index221.js +116 -2
  103. package/dist/index221.js.map +1 -1
  104. package/dist/index222.js +4 -4
  105. package/dist/index224.js +3 -78
  106. package/dist/index224.js.map +1 -1
  107. package/dist/index225.js +5 -8
  108. package/dist/index225.js.map +1 -1
  109. package/dist/index226.js +2 -6
  110. package/dist/index226.js.map +1 -1
  111. package/dist/index227.js +295 -2
  112. package/dist/index227.js.map +1 -1
  113. package/dist/index228.js +2 -4
  114. package/dist/index228.js.map +1 -1
  115. package/dist/index229.js +2 -162
  116. package/dist/index229.js.map +1 -1
  117. package/dist/index23.js +2 -2
  118. package/dist/index23.js.map +1 -1
  119. package/dist/index230.js +117 -2
  120. package/dist/index230.js.map +1 -1
  121. package/dist/index231.js +99 -428
  122. package/dist/index231.js.map +1 -1
  123. package/dist/index232.js +55 -65
  124. package/dist/index232.js.map +1 -1
  125. package/dist/index233.js +2 -200
  126. package/dist/index233.js.map +1 -1
  127. package/dist/index234.js +2 -6
  128. package/dist/index234.js.map +1 -1
  129. package/dist/index235.js +2 -2
  130. package/dist/index236.js +2 -295
  131. package/dist/index236.js.map +1 -1
  132. package/dist/index237.js +9 -2
  133. package/dist/index237.js.map +1 -1
  134. package/dist/index238.js +6 -2
  135. package/dist/index238.js.map +1 -1
  136. package/dist/index239.js +161 -116
  137. package/dist/index239.js.map +1 -1
  138. package/dist/index240.js +2 -106
  139. package/dist/index240.js.map +1 -1
  140. package/dist/index241.js +2 -2
  141. package/dist/index241.js.map +1 -1
  142. package/dist/index242.js +224 -2
  143. package/dist/index242.js.map +1 -1
  144. package/dist/index243.js +258 -2
  145. package/dist/index243.js.map +1 -1
  146. package/dist/index244.js +435 -2
  147. package/dist/index244.js.map +1 -1
  148. package/dist/index245.js +83 -218
  149. package/dist/index245.js.map +1 -1
  150. package/dist/index246.js +200 -258
  151. package/dist/index246.js.map +1 -1
  152. package/dist/index249.js +2 -38
  153. package/dist/index249.js.map +1 -1
  154. package/dist/index25.js.map +1 -1
  155. package/dist/index250.js +38 -2
  156. package/dist/index250.js.map +1 -1
  157. package/dist/index251.js +2 -2
  158. package/dist/index251.js.map +1 -1
  159. package/dist/index252.js +2 -2
  160. package/dist/index252.js.map +1 -1
  161. package/dist/index253.js +2 -2
  162. package/dist/index27.js +3 -3
  163. package/dist/index29.js +6 -6
  164. package/dist/index31.js +2 -2
  165. package/dist/index33.js +2 -2
  166. package/dist/index33.js.map +1 -1
  167. package/dist/index35.js +4 -4
  168. package/dist/index35.js.map +1 -1
  169. package/dist/index45.js +1 -1
  170. package/dist/index47.js +1 -1
  171. package/dist/index53.js +5 -5
  172. package/dist/index53.js.map +1 -1
  173. package/dist/index55.js.map +1 -1
  174. package/dist/index63.js +5 -5
  175. package/dist/index70.js +1 -1
  176. package/dist/index73.js +1 -1
  177. package/dist/index75.js +1 -1
  178. package/dist/index77.js +4 -4
  179. package/dist/index79.js +1 -1
  180. package/dist/index81.js.map +1 -1
  181. package/dist/index83.js.map +1 -1
  182. package/dist/index9.js +2 -2
  183. package/dist/index9.js.map +1 -1
  184. package/dist/index93.js +13 -13
  185. package/dist/index93.js.map +1 -1
  186. package/dist/index95.js.map +1 -1
  187. package/dist/index97.js +2 -2
  188. package/dist/index99.js +3 -3
  189. package/dist/style.css +1 -1
  190. package/package.json +1 -1
@@ -1,31 +1,4 @@
1
- import { ExtractGenericFromComputedRef } from '../../types/ExtractGenericFromComputedRef';
2
- import type { CommonProps, GenericModelValue } from '../../types/CommonProps';
3
- export type BaseCheckboxProps = Pick<CommonProps, "autofocus" | "checked" | "color" | "disabled" | "falseValue" | "hasErrors" | "id" | "indeterminate" | "name" | "readonly" | "submitWhenFalse" | "trueValue"> & GenericModelValue;
4
- export type BaseCheckboxEvents = {
5
- (e: "blur", event: FocusEvent): void;
6
- (e: "change", event: Event): void;
7
- (e: "click", event: MouseEvent): void;
8
- (e: "focus", event: FocusEvent): void;
9
- (e: "input", event: Event): void;
10
- (e: "keydown", event: KeyboardEvent): void;
11
- (e: "mousedown", event: MouseEvent): void;
12
- (e: "mouseup", event: MouseEvent): void;
13
- (e: "update:modelValue", value: any): void;
14
- };
15
- export type SlotAttributes = ExtractGenericFromComputedRef<typeof slotAttributes>;
16
- declare const slotAttributes: import("vue").ComputedRef<{
17
- checked: boolean;
18
- disabled: boolean;
19
- falseValue: any;
20
- focused: boolean;
21
- hasErrors: boolean;
22
- id: string | undefined;
23
- name: string | undefined;
24
- parsedValue: any;
25
- readonly: (boolean | "true" | "false") | undefined;
26
- trueValue: any;
27
- value: any;
28
- }>;
1
+ import type { BaseCheckboxProps, SlotAttributes } from "./types";
29
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseCheckboxProps>, {
30
3
  trueValue: boolean;
31
4
  falseValue: boolean;
@@ -56,19 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
56
29
  falseValue: any;
57
30
  trueValue: any;
58
31
  }, {}>, Readonly<{
59
- icon?: ((props: {
60
- checked: boolean;
61
- disabled: boolean;
62
- falseValue: any;
63
- focused: boolean;
64
- hasErrors: boolean;
65
- id: string | undefined;
66
- name: string | undefined;
67
- parsedValue: any;
68
- readonly: (boolean | "true" | "false") | undefined;
69
- trueValue: any;
70
- value: any;
71
- }) => any) | undefined;
32
+ icon?: ((props: SlotAttributes) => any) | undefined;
72
33
  }>>;
73
34
  export default _default;
74
35
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,26 @@
1
+ import { CommonProps, GenericModelValue } from '../../types/CommonProps';
2
+ export type BaseCheckboxProps = Pick<CommonProps, "autofocus" | "checked" | "color" | "disabled" | "falseValue" | "hasErrors" | "id" | "indeterminate" | "name" | "readonly" | "submitWhenFalse" | "trueValue"> & GenericModelValue;
3
+ export type BaseCheckboxEvents = {
4
+ (e: "blur", event: FocusEvent): void;
5
+ (e: "change", event: Event): void;
6
+ (e: "click", event: MouseEvent): void;
7
+ (e: "focus", event: FocusEvent): void;
8
+ (e: "input", event: Event): void;
9
+ (e: "keydown", event: KeyboardEvent): void;
10
+ (e: "mousedown", event: MouseEvent): void;
11
+ (e: "mouseup", event: MouseEvent): void;
12
+ (e: "update:modelValue", value: any): void;
13
+ };
14
+ export type SlotAttributes = {
15
+ checked: boolean;
16
+ disabled: Exclude<BaseCheckboxProps['disabled'], undefined>;
17
+ falseValue: any;
18
+ focused: boolean;
19
+ hasErrors: Exclude<BaseCheckboxProps['hasErrors'], undefined>;
20
+ id: BaseCheckboxProps['id'];
21
+ name: BaseCheckboxProps['name'];
22
+ parsedValue: any;
23
+ readonly: BaseCheckboxProps['readonly'];
24
+ trueValue: any;
25
+ value: any;
26
+ };
@@ -1,14 +1,5 @@
1
- import type { Simplify } from '../../types/Simplify';
2
- import type { SlotAttributes } from "../BaseCheckbox/BaseCheckbox.vue";
3
- import type { CommonProps, OptionItems, GenericModelValueArray, ItemText, ItemValue } from '../../types/CommonProps';
4
1
  import type { BaseCheckboxGroupEvents } from "./types";
5
- import type { BaseCheckboxProps } from "../BaseCheckbox/BaseCheckbox.vue";
6
- export type BaseCheckboxGroupProps<T> = Pick<BaseCheckboxProps, "autofocus" | "color" | "disabled" | "id" | "name" | "readonly"> & Pick<CommonProps, "dependencies" | "depsDebounceTime" | "enforceCoherence" | "hasErrors" | "hideLabel" | "loadingText" | "matchStrategy" | "modelValueDebounceTime" | "noDataText"> & Required<GenericModelValueArray> & OptionItems<T> & ItemText<T> & ItemValue<T> & {
7
- /**
8
- * Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`
9
- */
10
- direction?: "horizontal" | "vertical";
11
- };
2
+ import type { SlotAttributes } from "../BaseCheckbox/types";
12
3
  declare const _default: <T = any>(__VLS_props: {
13
4
  onFocus?: ((event: FocusEvent) => any) | undefined;
14
5
  onBlur?: ((event: FocusEvent) => any) | undefined;
@@ -49,18 +40,7 @@ declare const _default: <T = any>(__VLS_props: {
49
40
  "option:prepend"?: ((props: {
50
41
  item: T;
51
42
  }) => any) | undefined;
52
- icon?: ((props: {
53
- checked: boolean;
54
- disabled: boolean;
55
- falseValue: any;
56
- focused: boolean;
57
- hasErrors: boolean;
58
- id: string | undefined;
59
- name: string | undefined;
60
- parsedValue: any;
61
- readonly: (boolean | "true" | "false") | undefined;
62
- trueValue: any;
63
- value: any;
43
+ icon?: ((props: SlotAttributes & {
64
44
  item: T;
65
45
  text: string;
66
46
  }) => any) | undefined;
@@ -117,18 +97,7 @@ declare const _default: <T = any>(__VLS_props: {
117
97
  "option:prepend"?: ((props: {
118
98
  item: T;
119
99
  }) => any) | undefined;
120
- icon?: ((props: {
121
- checked: boolean;
122
- disabled: boolean;
123
- falseValue: any;
124
- focused: boolean;
125
- hasErrors: boolean;
126
- id: string | undefined;
127
- name: string | undefined;
128
- parsedValue: any;
129
- readonly: (boolean | "true" | "false") | undefined;
130
- trueValue: any;
131
- value: any;
100
+ icon?: ((props: SlotAttributes & {
132
101
  item: T;
133
102
  text: string;
134
103
  }) => any) | undefined;
@@ -188,18 +157,7 @@ declare const _default: <T = any>(__VLS_props: {
188
157
  "option:prepend"?: ((props: {
189
158
  item: T;
190
159
  }) => any) | undefined;
191
- icon?: ((props: {
192
- checked: boolean;
193
- disabled: boolean;
194
- falseValue: any;
195
- focused: boolean;
196
- hasErrors: boolean;
197
- id: string | undefined;
198
- name: string | undefined;
199
- parsedValue: any;
200
- readonly: (boolean | "true" | "false") | undefined;
201
- trueValue: any;
202
- value: any;
160
+ icon?: ((props: SlotAttributes & {
203
161
  item: T;
204
162
  text: string;
205
163
  }) => any) | undefined;
@@ -1,3 +1,11 @@
1
+ import { CommonProps, GenericModelValueArray, ItemText, ItemValue, OptionItems } from '../../types/CommonProps';
2
+ import { BaseCheckboxProps } from "../BaseCheckbox/types";
3
+ export type BaseCheckboxGroupProps<T> = Pick<BaseCheckboxProps, "autofocus" | "color" | "disabled" | "id" | "name" | "readonly"> & Pick<CommonProps, "dependencies" | "depsDebounceTime" | "enforceCoherence" | "hasErrors" | "hideLabel" | "loadingText" | "matchStrategy" | "modelValueDebounceTime" | "noDataText"> & Required<GenericModelValueArray> & OptionItems<T> & ItemText<T> & ItemValue<T> & {
4
+ /**
5
+ * Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`
6
+ */
7
+ direction?: "horizontal" | "vertical";
8
+ };
1
9
  export type BaseCheckboxGroupEvents = {
2
10
  (e: "blur", event: FocusEvent): void;
3
11
  (e: "change", event: Event): void;
@@ -1,35 +1,4 @@
1
- import type { CommonProps, GenericModelValue } from '../../types/CommonProps';
2
- import type { ExtractGenericFromComputedRef } from '../../types/ExtractGenericFromComputedRef';
3
- export type BaseRadioProps = Pick<CommonProps, "autofocus" | "checked" | "color" | "disabled" | "hasErrors" | "id" | "name" | "readonly"> & GenericModelValue & Required<Pick<CommonProps, "name">> & {
4
- /**
5
- * Defines the value of the radio input.
6
- * It can be any serializable value.
7
- */
8
- value: any;
9
- };
10
- export type BaseRadioEvents = {
11
- (e: "blur", event: FocusEvent): void;
12
- (e: "change", event: Event): void;
13
- (e: "click", event: MouseEvent): void;
14
- (e: "focus", event: FocusEvent): void;
15
- (e: "input", event: Event): void;
16
- (e: "keydown", event: KeyboardEvent): void;
17
- (e: "mousedown", event: MouseEvent): void;
18
- (e: "mouseup", event: MouseEvent): void;
19
- (e: "update:modelValue", value: any): void;
20
- };
21
- export type SlotAttributes = ExtractGenericFromComputedRef<typeof slotAttributes>;
22
- declare const slotAttributes: import("vue").ComputedRef<{
23
- checked: boolean;
24
- disabled: boolean;
25
- focused: boolean;
26
- hasErrors: boolean;
27
- id: string | undefined;
28
- name: string;
29
- parsedValue: any;
30
- readonly: (boolean | "true" | "false") | undefined;
31
- value: any;
32
- }>;
1
+ import type { BaseRadioProps, SlotAttributes } from "./types";
33
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<BaseRadioProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
3
  blur: (event: FocusEvent) => void;
35
4
  change: (event: Event) => void;
@@ -51,17 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
51
20
  onMouseup?: ((event: MouseEvent) => any) | undefined;
52
21
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
53
22
  }, {}, {}>, Readonly<{
54
- icon?: ((props: {
55
- checked: boolean;
56
- disabled: boolean;
57
- focused: boolean;
58
- hasErrors: boolean;
59
- id: string | undefined;
60
- name: string;
61
- parsedValue: any;
62
- readonly: (boolean | "true" | "false") | undefined;
63
- value: any;
64
- }) => any) | undefined;
23
+ icon?: ((props: SlotAttributes) => any) | undefined;
65
24
  }>>;
66
25
  export default _default;
67
26
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,30 @@
1
+ import { CommonProps, GenericModelValue } from '../../types/CommonProps';
2
+ export type BaseRadioProps = Pick<CommonProps, "autofocus" | "checked" | "color" | "disabled" | "hasErrors" | "id" | "name" | "readonly"> & GenericModelValue & Required<Pick<CommonProps, "name">> & {
3
+ /**
4
+ * Defines the value of the radio input.
5
+ * It can be any serializable value.
6
+ */
7
+ value: any;
8
+ };
9
+ export type BaseRadioEvents = {
10
+ (e: "blur", event: FocusEvent): void;
11
+ (e: "change", event: Event): void;
12
+ (e: "click", event: MouseEvent): void;
13
+ (e: "focus", event: FocusEvent): void;
14
+ (e: "input", event: Event): void;
15
+ (e: "keydown", event: KeyboardEvent): void;
16
+ (e: "mousedown", event: MouseEvent): void;
17
+ (e: "mouseup", event: MouseEvent): void;
18
+ (e: "update:modelValue", value: any): void;
19
+ };
20
+ export type SlotAttributes = {
21
+ checked: boolean;
22
+ disabled: Exclude<BaseRadioProps['disabled'], undefined>;
23
+ hasErrors: Exclude<BaseRadioProps['hasErrors'], undefined>;
24
+ focused: boolean;
25
+ id: BaseRadioProps['id'];
26
+ name: BaseRadioProps['name'];
27
+ parsedValue: any;
28
+ readonly: BaseRadioProps['readonly'];
29
+ value: any;
30
+ };
@@ -1,14 +1,5 @@
1
- import type { SlotAttributes } from "../BaseRadio/BaseRadio.vue";
2
- import type { BaseRadioProps } from "../BaseRadio/BaseRadio.vue";
1
+ import type { SlotAttributes } from "../BaseRadio/types";
3
2
  import type { BaseRadioGroupEvents } from "./types";
4
- import type { CommonProps, GenericModelValue, ItemText, ItemValue, OptionItems } from '../../types/CommonProps';
5
- import type { Simplify } from '../../types/Simplify';
6
- export type BaseRadioGroupProps<T> = Pick<BaseRadioProps, "autofocus" | "color" | "disabled" | "hasErrors" | "id" | "name" | "readonly"> & Pick<CommonProps, "dependencies" | "depsDebounceTime" | "enforceCoherence" | "hideLabel" | "loadingText" | "matchStrategy" | "modelValueDebounceTime" | "noDataText"> & OptionItems<T> & ItemText<T> & ItemValue<T> & Required<GenericModelValue> & {
7
- /**
8
- * Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`
9
- */
10
- direction?: "horizontal" | "vertical";
11
- };
12
3
  declare const _default: <T = any>(__VLS_props: {
13
4
  onFocus?: ((event: FocusEvent) => any) | undefined;
14
5
  onBlur?: ((event: FocusEvent) => any) | undefined;
@@ -49,16 +40,7 @@ declare const _default: <T = any>(__VLS_props: {
49
40
  "option:prepend"?: ((props: {
50
41
  item: T;
51
42
  }) => any) | undefined;
52
- icon?: ((props: {
53
- checked: boolean;
54
- disabled: boolean;
55
- focused: boolean;
56
- hasErrors: boolean;
57
- id: string | undefined;
58
- name: string;
59
- parsedValue: any;
60
- readonly: (boolean | "true" | "false") | undefined;
61
- value: any;
43
+ icon?: ((props: SlotAttributes & {
62
44
  item: T;
63
45
  text: string;
64
46
  }) => any) | undefined;
@@ -115,16 +97,7 @@ declare const _default: <T = any>(__VLS_props: {
115
97
  "option:prepend"?: ((props: {
116
98
  item: T;
117
99
  }) => any) | undefined;
118
- icon?: ((props: {
119
- checked: boolean;
120
- disabled: boolean;
121
- focused: boolean;
122
- hasErrors: boolean;
123
- id: string | undefined;
124
- name: string;
125
- parsedValue: any;
126
- readonly: (boolean | "true" | "false") | undefined;
127
- value: any;
100
+ icon?: ((props: SlotAttributes & {
128
101
  item: T;
129
102
  text: string;
130
103
  }) => any) | undefined;
@@ -184,16 +157,7 @@ declare const _default: <T = any>(__VLS_props: {
184
157
  "option:prepend"?: ((props: {
185
158
  item: T;
186
159
  }) => any) | undefined;
187
- icon?: ((props: {
188
- checked: boolean;
189
- disabled: boolean;
190
- focused: boolean;
191
- hasErrors: boolean;
192
- id: string | undefined;
193
- name: string;
194
- parsedValue: any;
195
- readonly: (boolean | "true" | "false") | undefined;
196
- value: any;
160
+ icon?: ((props: SlotAttributes & {
197
161
  item: T;
198
162
  text: string;
199
163
  }) => any) | undefined;
@@ -1,4 +1,11 @@
1
- import { BaseRadioEvents } from "../BaseRadio/BaseRadio.vue";
1
+ import { CommonProps, GenericModelValue, ItemText, ItemValue, OptionItems } from '../../types/CommonProps';
2
+ import { BaseRadioEvents, BaseRadioProps } from "../BaseRadio/types";
2
3
  export type BaseRadioGroupEvents = BaseRadioEvents & {
3
4
  (e: "inactive"): void;
4
5
  };
6
+ export type BaseRadioGroupProps<T> = Pick<BaseRadioProps, "autofocus" | "color" | "disabled" | "hasErrors" | "id" | "name" | "readonly"> & Pick<CommonProps, "dependencies" | "depsDebounceTime" | "enforceCoherence" | "hideLabel" | "loadingText" | "matchStrategy" | "modelValueDebounceTime" | "noDataText"> & OptionItems<T> & ItemText<T> & ItemValue<T> & Required<GenericModelValue> & {
7
+ /**
8
+ * Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`
9
+ */
10
+ direction?: "horizontal" | "vertical";
11
+ };
@@ -1,10 +1,8 @@
1
- import type { BaseCheckboxProps, BaseCheckboxEvents, SlotAttributes } from "../BaseCheckbox/BaseCheckbox.vue";
2
- export type BaseSwitchProps = BaseCheckboxProps;
3
- export type BaseSwitchEvents = BaseCheckboxEvents;
1
+ import type { SlotAttributes } from "../BaseCheckbox/types";
4
2
  export type BaseSwitchSlots = {
5
3
  icon?: (props: SlotAttributes) => any;
6
4
  };
7
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseCheckboxProps>, {
5
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<import("../BaseCheckbox/types").BaseCheckboxProps>, {
8
6
  trueValue: boolean;
9
7
  falseValue: boolean;
10
8
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -17,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
15
  mousedown: (event: MouseEvent) => void;
18
16
  mouseup: (event: MouseEvent) => void;
19
17
  "update:modelValue": (value: any) => void;
20
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseCheckboxProps>, {
18
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<import("../BaseCheckbox/types").BaseCheckboxProps>, {
21
19
  trueValue: boolean;
22
20
  falseValue: boolean;
23
21
  }>>> & {
@@ -0,0 +1,3 @@
1
+ import { BaseCheckboxEvents, BaseCheckboxProps } from "../BaseCheckbox/types";
2
+ export type BaseSwitchProps = BaseCheckboxProps;
3
+ export type BaseSwitchEvents = BaseCheckboxEvents;
@@ -1,6 +1,4 @@
1
- import { type BaseCheckboxGroupProps } from "../BaseCheckboxGroup/BaseCheckboxGroup.vue";
2
- import type { BaseSwitchGroupSlots } from "./types";
3
- export type BaseSwitchGroupProps<T> = BaseCheckboxGroupProps<T>;
1
+ import type { SlotAttributes } from "../BaseCheckbox/types";
4
2
  declare const _default: <T = any>(__VLS_props: {
5
3
  onFocus?: ((event: FocusEvent) => any) | undefined;
6
4
  onBlur?: ((event: FocusEvent) => any) | undefined;
@@ -34,7 +32,27 @@ declare const _default: <T = any>(__VLS_props: {
34
32
  items: T[] | ((prefill: boolean, modelValue?: any[] | undefined) => Promise<T[]>) | ((prefill: boolean, modelValue?: any[] | undefined) => T[]);
35
33
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
36
34
  attrs: any;
37
- slots: Readonly<BaseSwitchGroupSlots<T>>;
35
+ slots: Readonly<{
36
+ prepend?: ((props: {}) => any) | undefined;
37
+ loading?: ((props: {}) => any) | undefined;
38
+ "no-data"?: ((props: {}) => any) | undefined;
39
+ "option:prepend"?: ((props: {
40
+ item: T;
41
+ }) => any) | undefined;
42
+ icon?: ((props: SlotAttributes & {
43
+ item: T;
44
+ text: string;
45
+ }) => any) | undefined;
46
+ label?: ((props: {
47
+ item: T;
48
+ text: string;
49
+ checked: boolean;
50
+ }) => any) | undefined;
51
+ "option:append"?: ((props: {
52
+ item: T;
53
+ }) => any) | undefined;
54
+ append?: ((props: {}) => any) | undefined;
55
+ }>;
38
56
  emit: import("../..").BaseCheckboxGroupEvents;
39
57
  } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
40
58
  props: {
@@ -71,7 +89,27 @@ declare const _default: <T = any>(__VLS_props: {
71
89
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
72
90
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
73
91
  attrs: any;
74
- slots: Readonly<BaseSwitchGroupSlots<T>>;
92
+ slots: Readonly<{
93
+ prepend?: ((props: {}) => any) | undefined;
94
+ loading?: ((props: {}) => any) | undefined;
95
+ "no-data"?: ((props: {}) => any) | undefined;
96
+ "option:prepend"?: ((props: {
97
+ item: T;
98
+ }) => any) | undefined;
99
+ icon?: ((props: SlotAttributes & {
100
+ item: T;
101
+ text: string;
102
+ }) => any) | undefined;
103
+ label?: ((props: {
104
+ item: T;
105
+ text: string;
106
+ checked: boolean;
107
+ }) => any) | undefined;
108
+ "option:append"?: ((props: {
109
+ item: T;
110
+ }) => any) | undefined;
111
+ append?: ((props: {}) => any) | undefined;
112
+ }>;
75
113
  emit: import("../..").BaseCheckboxGroupEvents;
76
114
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
77
115
  [key: string]: any;
@@ -111,7 +149,27 @@ declare const _default: <T = any>(__VLS_props: {
111
149
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
112
150
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
113
151
  attrs: any;
114
- slots: Readonly<BaseSwitchGroupSlots<T>>;
152
+ slots: Readonly<{
153
+ prepend?: ((props: {}) => any) | undefined;
154
+ loading?: ((props: {}) => any) | undefined;
155
+ "no-data"?: ((props: {}) => any) | undefined;
156
+ "option:prepend"?: ((props: {
157
+ item: T;
158
+ }) => any) | undefined;
159
+ icon?: ((props: SlotAttributes & {
160
+ item: T;
161
+ text: string;
162
+ }) => any) | undefined;
163
+ label?: ((props: {
164
+ item: T;
165
+ text: string;
166
+ checked: boolean;
167
+ }) => any) | undefined;
168
+ "option:append"?: ((props: {
169
+ item: T;
170
+ }) => any) | undefined;
171
+ append?: ((props: {}) => any) | undefined;
172
+ }>;
115
173
  emit: import("../..").BaseCheckboxGroupEvents;
116
174
  } | undefined;
117
175
  };
@@ -1,25 +1,3 @@
1
- import { Simplify } from '../../types/Simplify';
2
- import { BaseCheckboxGroupEvents } from "../BaseCheckboxGroup/types";
3
- import { SlotAttributes } from "../BaseCheckbox/BaseCheckbox.vue";
1
+ import { BaseCheckboxGroupEvents, BaseCheckboxGroupProps } from "../BaseCheckboxGroup/types";
4
2
  export type BaseSwitchGroupEvents = BaseCheckboxGroupEvents;
5
- export type BaseSwitchGroupSlots<T> = {
6
- prepend?: (props: {}) => any;
7
- loading?: (props: {}) => any;
8
- "no-data"?: (props: {}) => any;
9
- "option:prepend"?: (props: {
10
- item: T;
11
- }) => any;
12
- icon?: (props: Simplify<SlotAttributes & {
13
- item: T;
14
- text: string;
15
- }>) => any;
16
- label?: (props: {
17
- item: T;
18
- text: string;
19
- checked: boolean;
20
- }) => any;
21
- "option:append"?: (props: {
22
- item: T;
23
- }) => any;
24
- append?: (props: {}) => any;
25
- };
3
+ export type BaseSwitchGroupProps<T> = BaseCheckboxGroupProps<T>;
@@ -1,8 +1,5 @@
1
- import { type BaseInputContainerProps } from "../BaseInputContainer/BaseInputContainer.vue";
2
- import { type BaseCheckboxProps } from "../BaseCheckbox/BaseCheckbox.vue";
3
- import type { BaseCheckboxEvents } from "../BaseCheckbox/BaseCheckbox.vue";
4
- export type BbCheckboxEvents = BaseCheckboxEvents;
5
- export type BbCheckboxProps = Pick<BaseCheckboxProps, "autofocus" | "checked" | "color" | "disabled" | "falseValue" | "hasErrors" | "id" | "indeterminate" | "modelValue" | "name" | "readonly" | "submitWhenFalse" | "trueValue"> & Pick<BaseInputContainerProps, "direction" | "errors" | "hideLabel" | "inputPosition" | "label" | "labelPosition" | "reverse">;
1
+ import type { SlotAttributes } from "../BaseCheckbox/types";
2
+ import type { BbCheckboxProps } from "./types";
6
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbCheckboxProps>, {
7
4
  direction: string;
8
5
  reverse: boolean;
@@ -37,19 +34,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
37
34
  text: string;
38
35
  hasErrors: boolean;
39
36
  }) => any) | undefined;
40
- icon?: ((props: {
41
- checked: boolean;
42
- disabled: boolean;
43
- falseValue: any;
44
- focused: boolean;
45
- hasErrors: boolean;
46
- id: string | undefined;
47
- name: string | undefined;
48
- parsedValue: any;
49
- readonly: (boolean | "true" | "false") | undefined;
50
- trueValue: any;
51
- value: any;
52
- } & {
37
+ icon?: ((props: SlotAttributes & {
53
38
  text: string;
54
39
  }) => any) | undefined;
55
40
  }>>;
@@ -0,0 +1,4 @@
1
+ import { BaseCheckboxEvents, BaseCheckboxProps } from "../BaseCheckbox/types";
2
+ import { BaseInputContainerProps } from "../BaseInputContainer/BaseInputContainer.vue";
3
+ export type BbCheckboxEvents = BaseCheckboxEvents;
4
+ export type BbCheckboxProps = Pick<BaseCheckboxProps, "autofocus" | "checked" | "color" | "disabled" | "falseValue" | "hasErrors" | "id" | "indeterminate" | "modelValue" | "name" | "readonly" | "submitWhenFalse" | "trueValue"> & Pick<BaseInputContainerProps, "direction" | "errors" | "hideLabel" | "inputPosition" | "label" | "labelPosition" | "reverse">;
@@ -1,11 +1,4 @@
1
- import { BaseCheckboxGroupProps } from "../BaseCheckboxGroup/BaseCheckboxGroup.vue";
2
- import { BaseInputContainerProps } from "../BaseInputContainer/BaseInputContainer.vue";
3
- import { BaseCheckboxGroupEvents } from "../BaseCheckboxGroup/types";
4
- import { Simplify } from '../../types/Simplify';
5
- import { SlotAttributes } from "../BaseCheckbox/BaseCheckbox.vue";
6
- import { CommonProps } from '../../types/CommonProps';
7
- export type BbCheckboxGroupEvents = BaseCheckboxGroupEvents;
8
- export type BbCheckboxGroupProps<T> = Pick<BaseCheckboxGroupProps<T>, "autofocus" | "color" | "dependencies" | "depsDebounceTime" | "disabled" | "enforceCoherence" | "hasErrors" | "id" | "items" | "itemText" | "itemValue" | "loadingText" | "matchStrategy" | "modelValue" | "modelValueDebounceTime" | "name" | "noDataText" | "readonly"> & Pick<BaseInputContainerProps, "errors" | "hideLabel" | "reverse"> & Pick<CommonProps, "hideLegend" | "inputDirection" | "legend">;
1
+ import type { SlotAttributes } from "../BaseCheckbox/types";
9
2
  declare const _default: <T = any>(__VLS_props: {
10
3
  onFocus?: ((event: FocusEvent) => any) | undefined;
11
4
  onBlur?: ((event: FocusEvent) => any) | undefined;
@@ -50,18 +43,7 @@ declare const _default: <T = any>(__VLS_props: {
50
43
  "option:prepend"?: ((props: {
51
44
  item: T;
52
45
  }) => any) | undefined;
53
- icon?: ((props: {
54
- checked: boolean;
55
- disabled: boolean;
56
- falseValue: any;
57
- focused: boolean;
58
- hasErrors: boolean;
59
- id: string | undefined;
60
- name: string | undefined;
61
- parsedValue: any;
62
- readonly: (boolean | "true" | "false") | undefined;
63
- trueValue: any;
64
- value: any;
46
+ icon?: ((props: SlotAttributes & {
65
47
  item: T;
66
48
  text: string;
67
49
  }) => any) | undefined;
@@ -79,7 +61,7 @@ declare const _default: <T = any>(__VLS_props: {
79
61
  hasErrors: boolean;
80
62
  }) => any) | undefined;
81
63
  }>;
82
- emit: BaseCheckboxGroupEvents;
64
+ emit: import("../..").BaseCheckboxGroupEvents;
83
65
  } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
84
66
  props: {
85
67
  onFocus?: ((event: FocusEvent) => any) | undefined;
@@ -126,18 +108,7 @@ declare const _default: <T = any>(__VLS_props: {
126
108
  "option:prepend"?: ((props: {
127
109
  item: T;
128
110
  }) => any) | undefined;
129
- icon?: ((props: {
130
- checked: boolean;
131
- disabled: boolean;
132
- falseValue: any;
133
- focused: boolean;
134
- hasErrors: boolean;
135
- id: string | undefined;
136
- name: string | undefined;
137
- parsedValue: any;
138
- readonly: (boolean | "true" | "false") | undefined;
139
- trueValue: any;
140
- value: any;
111
+ icon?: ((props: SlotAttributes & {
141
112
  item: T;
142
113
  text: string;
143
114
  }) => any) | undefined;
@@ -155,7 +126,7 @@ declare const _default: <T = any>(__VLS_props: {
155
126
  hasErrors: boolean;
156
127
  }) => any) | undefined;
157
128
  }>;
158
- emit: BaseCheckboxGroupEvents;
129
+ emit: import("../..").BaseCheckboxGroupEvents;
159
130
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
160
131
  [key: string]: any;
161
132
  }> & {
@@ -205,18 +176,7 @@ declare const _default: <T = any>(__VLS_props: {
205
176
  "option:prepend"?: ((props: {
206
177
  item: T;
207
178
  }) => any) | undefined;
208
- icon?: ((props: {
209
- checked: boolean;
210
- disabled: boolean;
211
- falseValue: any;
212
- focused: boolean;
213
- hasErrors: boolean;
214
- id: string | undefined;
215
- name: string | undefined;
216
- parsedValue: any;
217
- readonly: (boolean | "true" | "false") | undefined;
218
- trueValue: any;
219
- value: any;
179
+ icon?: ((props: SlotAttributes & {
220
180
  item: T;
221
181
  text: string;
222
182
  }) => any) | undefined;
@@ -234,7 +194,7 @@ declare const _default: <T = any>(__VLS_props: {
234
194
  hasErrors: boolean;
235
195
  }) => any) | undefined;
236
196
  }>;
237
- emit: BaseCheckboxGroupEvents;
197
+ emit: import("../..").BaseCheckboxGroupEvents;
238
198
  } | undefined;
239
199
  };
240
200
  export default _default;
@@ -0,0 +1,5 @@
1
+ import { CommonProps } from '../../types/CommonProps';
2
+ import { BaseCheckboxGroupEvents, BaseCheckboxGroupProps } from "../BaseCheckboxGroup/types";
3
+ import { BaseInputContainerProps } from "../BaseInputContainer/BaseInputContainer.vue";
4
+ export type BbCheckboxGroupEvents = BaseCheckboxGroupEvents;
5
+ export type BbCheckboxGroupProps<T> = Pick<BaseCheckboxGroupProps<T>, "autofocus" | "color" | "dependencies" | "depsDebounceTime" | "disabled" | "enforceCoherence" | "hasErrors" | "id" | "items" | "itemText" | "itemValue" | "loadingText" | "matchStrategy" | "modelValue" | "modelValueDebounceTime" | "name" | "noDataText" | "readonly"> & Pick<BaseInputContainerProps, "errors" | "hideLabel" | "reverse"> & Pick<CommonProps, "hideLegend" | "inputDirection" | "legend">;