bitboss-ui 0.2.31 → 0.2.32
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.
- package/dist/components/BaseButton/BaseButton.vue.d.ts +6 -6
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +16 -16
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +36 -36
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +20 -20
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +21 -21
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +8 -8
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +6 -6
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +20 -20
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +20 -20
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +36 -36
- package/dist/components/BaseRating/BaseRating.vue.d.ts +17 -17
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +23 -23
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +15 -15
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +1 -1
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +20 -20
- package/dist/components/BaseTag/BaseTag.vue.d.ts +20 -20
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +19 -19
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +18 -18
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +3 -3
- package/dist/components/BbAlert/BbAlert.vue.d.ts +3 -3
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +8 -8
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +6 -6
- package/dist/components/BbButton/BbButton.vue.d.ts +1 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +11 -11
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +27 -27
- package/dist/components/BbChip/BbChip.vue.d.ts +2 -2
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +4 -4
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +16 -24
- package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +11 -11
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +14 -14
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +4 -4
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +3 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +10 -10
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +9 -9
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +8 -8
- package/dist/components/BbRadio/BbRadio.vue.d.ts +10 -10
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +27 -27
- package/dist/components/BbRating/BbRating.vue.d.ts +10 -10
- package/dist/components/BbSelect/BbSelect.vue.d.ts +19 -19
- package/dist/components/BbSlider/BbSlider.vue.d.ts +8 -8
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +2 -2
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +20 -20
- package/dist/components/BbTab/BbTab.vue.d.ts +5 -5
- package/dist/components/BbTable/BbTable.vue.d.ts +11 -11
- package/dist/components/BbTable/types.d.ts +107 -107
- package/dist/components/BbTag/BbTag.vue.d.ts +13 -13
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +11 -11
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +10 -10
- package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/composables/useConfirm.d.ts +10 -10
- package/dist/composables/useOptions.d.ts +2 -2
- package/dist/composables/useRoute.d.ts +2 -2
- package/dist/composables/useRouter.d.ts +1 -1
- package/dist/composables/useToast.d.ts +5 -5
- package/dist/composables/useWizard.d.ts +1 -1
- package/dist/index.d.ts +126 -126
- package/dist/index101.js +32 -37
- package/dist/index101.js.map +1 -1
- package/dist/index103.js +19 -19
- package/dist/index103.js.map +1 -1
- package/dist/index105.js +16 -16
- package/dist/index105.js.map +1 -1
- package/dist/index107.js +15 -15
- package/dist/index107.js.map +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +7 -7
- package/dist/index11.js.map +1 -1
- package/dist/index111.js +16 -16
- package/dist/index111.js.map +1 -1
- package/dist/index113.js +3 -3
- package/dist/index113.js.map +1 -1
- package/dist/index115.js +6 -6
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +4 -4
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +5 -5
- package/dist/index119.js.map +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js.map +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +4 -4
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +4 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +11 -11
- package/dist/index13.js.map +1 -1
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index15.js +226 -224
- package/dist/index15.js.map +1 -1
- package/dist/index17.js +61 -62
- package/dist/index17.js.map +1 -1
- package/dist/index19.js +22 -22
- package/dist/index19.js.map +1 -1
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +2 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +4 -16
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +293 -14
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +23 -23
- package/dist/index2.js.map +1 -1
- package/dist/index200.js +15 -18
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +13 -17
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +18 -28
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +20 -8
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +29 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +8 -378
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -134
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +235 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +3 -174
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +35 -23
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +4 -4
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +6 -373
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +10 -2
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +378 -4
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +134 -3
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -3
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +172 -8
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +23 -3
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +369 -31
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +3 -6
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +3 -2
- package/dist/index219.js.map +1 -1
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +26 -233
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +16 -8
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +2 -121
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +8 -27
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +120 -12
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +1 -1
- package/dist/index227.js +4 -295
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -6
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +6 -2
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +14 -16
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +2 -2
- package/dist/index235.js +2 -2
- package/dist/index236.js +428 -110
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +88 -105
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +199 -3
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +1 -1
- package/dist/index240.js +1 -1
- package/dist/index241.js +2 -435
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +115 -87
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +104 -198
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +160 -2
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +2 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +9 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +5 -162
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +1 -1
- package/dist/index249.js +37 -14
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +4 -4
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +2 -38
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +15 -2
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +3 -2
- package/dist/index253.js.map +1 -1
- package/dist/index255.js +2 -3
- package/dist/index255.js.map +1 -1
- package/dist/index27.js +7 -7
- package/dist/index27.js.map +1 -1
- package/dist/index29.js +15 -15
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +2 -1
- package/dist/index3.js.map +1 -1
- package/dist/index31.js +28 -28
- package/dist/index31.js.map +1 -1
- package/dist/index33.js +10 -11
- package/dist/index33.js.map +1 -1
- package/dist/index35.js +2 -2
- package/dist/index35.js.map +1 -1
- package/dist/index37.js +12 -12
- package/dist/index37.js.map +1 -1
- package/dist/index39.js +5 -7
- package/dist/index39.js.map +1 -1
- package/dist/index4.js.map +1 -1
- package/dist/index41.js +5 -5
- package/dist/index41.js.map +1 -1
- package/dist/index43.js +19 -16
- package/dist/index43.js.map +1 -1
- package/dist/index45.js +9 -9
- package/dist/index45.js.map +1 -1
- package/dist/index47.js +4 -4
- package/dist/index47.js.map +1 -1
- package/dist/index49.js +1 -1
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +7 -6
- package/dist/index5.js.map +1 -1
- package/dist/index51.js +6 -6
- package/dist/index51.js.map +1 -1
- package/dist/index53.js.map +1 -1
- package/dist/index55.js +20 -20
- package/dist/index55.js.map +1 -1
- package/dist/index57.js +35 -35
- package/dist/index57.js.map +1 -1
- package/dist/index59.js +8 -8
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +38 -38
- package/dist/index6.js.map +1 -1
- package/dist/index61.js +27 -27
- package/dist/index61.js.map +1 -1
- package/dist/index63.js +4 -4
- package/dist/index63.js.map +1 -1
- package/dist/index65.js +20 -20
- package/dist/index65.js.map +1 -1
- package/dist/index67.js +26 -26
- package/dist/index67.js.map +1 -1
- package/dist/index69.js +21 -19
- package/dist/index69.js.map +1 -1
- package/dist/index7.js.map +1 -1
- package/dist/index71.js +2 -2
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +3 -3
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +14 -14
- package/dist/index73.js.map +1 -1
- package/dist/index75.js +18 -18
- package/dist/index75.js.map +1 -1
- package/dist/index77.js +11 -11
- package/dist/index77.js.map +1 -1
- package/dist/index79.js +15 -15
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +10 -7
- package/dist/index8.js.map +1 -1
- package/dist/index81.js.map +1 -1
- package/dist/index83.js +20 -20
- package/dist/index83.js.map +1 -1
- package/dist/index85.js +34 -34
- package/dist/index85.js.map +1 -1
- package/dist/index87.js +18 -18
- package/dist/index87.js.map +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js.map +1 -1
- package/dist/index91.js +53 -53
- package/dist/index91.js.map +1 -1
- package/dist/index93.js +16 -16
- package/dist/index93.js.map +1 -1
- package/dist/index95.js +21 -21
- package/dist/index95.js.map +1 -1
- package/dist/index97.js +37 -37
- package/dist/index97.js.map +1 -1
- package/dist/index99.js +18 -18
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +18 -18
- package/dist/types/ExtractGenericFromComputedRef.d.ts +1 -1
- package/dist/types/ExtractGenericFromRef.d.ts +1 -1
- package/dist/types/VoidHtmlElements.d.ts +1 -1
- package/dist/utilities/functions/cloneDeep.d.ts +1 -1
- package/dist/utilities/functions/debounce.d.ts +1 -1
- package/dist/utilities/functions/flow.d.ts +1 -1
- package/dist/utilities/functions/get.d.ts +1 -1
- package/dist/utilities/functions/isNotNil.d.ts +1 -1
- package/dist/utilities/functions/mapValues.d.ts +1 -1
- package/dist/utilities/functions/merge.d.ts +1 -1
- package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
- package/dist/utilities/functions/overEvery.d.ts +1 -1
- package/dist/utilities/functions/percentage.d.ts +4 -4
- package/dist/utilities/functions/pick.d.ts +1 -1
- package/dist/utilities/functions/pickBy.d.ts +1 -1
- package/dist/utilities/functions/roundToTheNearest.d.ts +1 -1
- package/package.json +93 -77
- package/dist/index256.js +0 -5
- package/dist/index256.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Partial<Record<string, (_: any) => any>> & {
|
|
2
2
|
spinner?(_: {}): any;
|
|
3
3
|
footer?(_: {
|
|
4
|
-
loading: false;
|
|
5
4
|
actions: true;
|
|
6
|
-
|
|
5
|
+
loading: false;
|
|
7
6
|
no: boolean;
|
|
8
|
-
|
|
7
|
+
noAction: {
|
|
9
8
|
text: string;
|
|
10
9
|
handler: () => void;
|
|
11
10
|
};
|
|
12
|
-
|
|
11
|
+
yes: boolean;
|
|
12
|
+
yesAction: {
|
|
13
13
|
text: string;
|
|
14
14
|
handler: () => void;
|
|
15
15
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BaseDatePickerInputEvents } from
|
|
2
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
3
|
-
import type { Locale } from
|
|
1
|
+
import type { BaseDatePickerInputEvents } from '../BaseDatePickerInput/BaseDatePickerInput.vue';
|
|
2
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
3
|
+
import type { Locale } from 'dayjs/locale/it';
|
|
4
4
|
export type BbDatePickerInputProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Allows typing into the input.
|
|
@@ -9,15 +9,15 @@ export type BbDatePickerInputProps = {
|
|
|
9
9
|
/**
|
|
10
10
|
* Guides to the browser as to the type of information expected in the field.
|
|
11
11
|
*/
|
|
12
|
-
autocomplete?: InputHTMLAttributes[
|
|
12
|
+
autocomplete?: InputHTMLAttributes['autocomplete'];
|
|
13
13
|
/**
|
|
14
14
|
* Sets autofocus on page load.
|
|
15
15
|
*/
|
|
16
|
-
autofocus?: InputHTMLAttributes[
|
|
16
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
17
17
|
/**
|
|
18
18
|
* Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.
|
|
19
19
|
*/
|
|
20
|
-
direction?:
|
|
20
|
+
direction?: 'horizontal' | 'vertical' | 'auto' | string;
|
|
21
21
|
/**
|
|
22
22
|
* Disables the component
|
|
23
23
|
*/
|
|
@@ -29,7 +29,7 @@ export type BbDatePickerInputProps = {
|
|
|
29
29
|
/**
|
|
30
30
|
* Defines the first day of the week with `0` meaning Sunday and `6` meaning Saturday
|
|
31
31
|
*/
|
|
32
|
-
firstDayOfWeek?: Locale[
|
|
32
|
+
firstDayOfWeek?: Locale['weekStart'];
|
|
33
33
|
/**
|
|
34
34
|
* Define if the component should be in an error state.
|
|
35
35
|
* It usually attaches a CSS class for styling purposes.
|
|
@@ -42,7 +42,7 @@ export type BbDatePickerInputProps = {
|
|
|
42
42
|
/**
|
|
43
43
|
* The identifier of the component.
|
|
44
44
|
*/
|
|
45
|
-
id?: HTMLAttributes[
|
|
45
|
+
id?: HTMLAttributes['id'];
|
|
46
46
|
/**
|
|
47
47
|
* Text content of the label of the element.
|
|
48
48
|
*/
|
|
@@ -50,7 +50,7 @@ export type BbDatePickerInputProps = {
|
|
|
50
50
|
/**
|
|
51
51
|
* Sets the text alignment of the label.
|
|
52
52
|
*/
|
|
53
|
-
labelPosition?:
|
|
53
|
+
labelPosition?: 'left' | 'center' | 'right';
|
|
54
54
|
/**
|
|
55
55
|
* Maximum selectable date
|
|
56
56
|
*/
|
|
@@ -66,11 +66,11 @@ export type BbDatePickerInputProps = {
|
|
|
66
66
|
/**
|
|
67
67
|
* Defines the name of the input.
|
|
68
68
|
*/
|
|
69
|
-
name?: InputHTMLAttributes[
|
|
69
|
+
name?: InputHTMLAttributes['name'];
|
|
70
70
|
/**
|
|
71
71
|
* String displayed when there's no data.
|
|
72
72
|
*/
|
|
73
|
-
placeholder?: InputHTMLAttributes[
|
|
73
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
74
74
|
/**
|
|
75
75
|
* Selects a range of dates between two dates. It selects all of the days between start and end
|
|
76
76
|
*/
|
|
@@ -78,7 +78,7 @@ export type BbDatePickerInputProps = {
|
|
|
78
78
|
/**
|
|
79
79
|
* Sets the input in a readonly state.
|
|
80
80
|
*/
|
|
81
|
-
readonly?: InputHTMLAttributes[
|
|
81
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
82
82
|
/**
|
|
83
83
|
* Reverses the layout. Applicable in every direction the order of the label and the input is swapped.
|
|
84
84
|
*/
|
|
@@ -109,10 +109,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
109
109
|
}, {
|
|
110
110
|
allowWriting: boolean;
|
|
111
111
|
}, {}>, Readonly<{
|
|
112
|
-
|
|
112
|
+
'prepend-outer'?: ((props: {}) => any) | undefined;
|
|
113
113
|
prepend?: ((props: {}) => any) | undefined;
|
|
114
114
|
append?: ((props: {}) => any) | undefined;
|
|
115
|
-
|
|
115
|
+
'append-outer'?: ((props: {}) => any) | undefined;
|
|
116
116
|
label?: ((props: {
|
|
117
117
|
text: string;
|
|
118
118
|
hasErrors: boolean;
|
|
@@ -125,10 +125,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
125
125
|
label: string;
|
|
126
126
|
last: boolean;
|
|
127
127
|
middle: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Function that accepts a `Date` object and returns a boolean. `false` meaning the date cannot be selected
|
|
130
|
-
* @param date
|
|
131
|
-
*/
|
|
132
128
|
selected: boolean;
|
|
133
129
|
}) => any) | undefined;
|
|
134
130
|
} & {
|
|
@@ -142,10 +138,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
142
138
|
selected: boolean;
|
|
143
139
|
}) => any;
|
|
144
140
|
}> & {
|
|
145
|
-
|
|
141
|
+
'prepend-outer'?: ((props: {}) => any) | undefined;
|
|
146
142
|
prepend?: ((props: {}) => any) | undefined;
|
|
147
143
|
append?: ((props: {}) => any) | undefined;
|
|
148
|
-
|
|
144
|
+
'append-outer'?: ((props: {}) => any) | undefined;
|
|
149
145
|
label?: ((props: {
|
|
150
146
|
text: string;
|
|
151
147
|
hasErrors: boolean;
|
|
@@ -158,10 +154,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
158
154
|
label: string;
|
|
159
155
|
last: boolean;
|
|
160
156
|
middle: boolean;
|
|
161
|
-
/**
|
|
162
|
-
* Function that accepts a `Date` object and returns a boolean. `false` meaning the date cannot be selected
|
|
163
|
-
* @param date
|
|
164
|
-
*/
|
|
165
157
|
selected: boolean;
|
|
166
158
|
}) => any) | undefined;
|
|
167
159
|
} & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseDialogProps, BaseDialogSlots } from
|
|
2
|
-
export type { BaseDialogProps as BbDialogProps, BaseDialogEvents as BbDialogEvents, Sizes, } from
|
|
1
|
+
import type { BaseDialogProps, BaseDialogSlots } from '../BaseDialog/BaseDialog.vue';
|
|
2
|
+
export type { BaseDialogProps as BbDialogProps, BaseDialogEvents as BbDialogEvents, Sizes, } from '../BaseDialog/BaseDialog.vue';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseDialogProps>, {
|
|
4
4
|
showClose: boolean;
|
|
5
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BaseButtonProps } from
|
|
1
|
+
import type { BaseButtonProps } from '../BaseButton/BaseButton.vue';
|
|
2
2
|
import type { CommonProps } from '../../types/CommonProps';
|
|
3
|
-
export type BbDropdownProps = Pick<CommonProps,
|
|
3
|
+
export type BbDropdownProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'id' | 'offset' | 'padding' | 'placement' | 'theme' | 'transitionDuration'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Array used to render each dropdown button.
|
|
6
6
|
* They can act as `button`, as `a`, or as `router-link`
|
|
@@ -13,7 +13,7 @@ export type BbDropdownProps = Pick<CommonProps, "arrowPadding" | "block" | "disa
|
|
|
13
13
|
*/
|
|
14
14
|
width?: number;
|
|
15
15
|
};
|
|
16
|
-
export type Item = Omit<BaseButtonProps,
|
|
16
|
+
export type Item = Omit<BaseButtonProps, 'block' | 'tag' | 'type'> & {
|
|
17
17
|
/**
|
|
18
18
|
* Click handler of the item.
|
|
19
19
|
*/
|
|
@@ -60,8 +60,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
60
60
|
}, {}>, Readonly<{
|
|
61
61
|
activator?: ((props: {
|
|
62
62
|
props: {
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
'aria-expanded': boolean;
|
|
64
|
+
'aria-controls': string;
|
|
65
65
|
id: string;
|
|
66
66
|
onClick: ((...args: any[]) => any) | undefined;
|
|
67
67
|
onKeydown: (event: KeyboardEvent) => void;
|
|
@@ -82,7 +82,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
82
82
|
opening: boolean;
|
|
83
83
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | undefined;
|
|
84
84
|
}) => any) | undefined;
|
|
85
|
-
|
|
85
|
+
'item:prepend'?: ((props: {
|
|
86
86
|
closed: boolean;
|
|
87
87
|
closing: boolean;
|
|
88
88
|
disabled?: boolean | undefined;
|
|
@@ -104,7 +104,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
104
104
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | undefined;
|
|
105
105
|
text: string | undefined;
|
|
106
106
|
}) => any) | undefined;
|
|
107
|
-
|
|
107
|
+
'item:append'?: ((props: {
|
|
108
108
|
closed: boolean;
|
|
109
109
|
closing: boolean;
|
|
110
110
|
disabled?: boolean | undefined;
|
|
@@ -138,8 +138,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
138
138
|
}> & {
|
|
139
139
|
activator?: ((props: {
|
|
140
140
|
props: {
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
'aria-expanded': boolean;
|
|
142
|
+
'aria-controls': string;
|
|
143
143
|
id: string;
|
|
144
144
|
onClick: ((...args: any[]) => any) | undefined;
|
|
145
145
|
onKeydown: (event: KeyboardEvent) => void;
|
|
@@ -160,7 +160,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
160
160
|
opening: boolean;
|
|
161
161
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | undefined;
|
|
162
162
|
}) => any) | undefined;
|
|
163
|
-
|
|
163
|
+
'item:prepend'?: ((props: {
|
|
164
164
|
closed: boolean;
|
|
165
165
|
closing: boolean;
|
|
166
166
|
disabled?: boolean | undefined;
|
|
@@ -182,7 +182,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
182
182
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | undefined;
|
|
183
183
|
text: string | undefined;
|
|
184
184
|
}) => any) | undefined;
|
|
185
|
-
|
|
185
|
+
'item:append'?: ((props: {
|
|
186
186
|
closed: boolean;
|
|
187
187
|
closing: boolean;
|
|
188
188
|
disabled?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BbDropdownProps } from
|
|
2
|
-
export type BbDropdownButtonProps = Pick<BbDropdownProps,
|
|
1
|
+
import type { BbDropdownProps } from '../BbDropdown/BbDropdown.vue';
|
|
2
|
+
export type BbDropdownButtonProps = Pick<BbDropdownProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'id' | 'items' | 'offset' | 'padding' | 'placement' | 'theme' | 'transitionDuration' | 'width'>;
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbDropdownButtonProps>, {
|
|
4
4
|
theme: string;
|
|
5
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbDropdownButtonProps>, {
|
|
@@ -7,14 +7,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
7
7
|
}>>>, {
|
|
8
8
|
theme: string;
|
|
9
9
|
}, {}>, Readonly<{
|
|
10
|
-
|
|
10
|
+
'left-btn'?: ((props: {
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
text: string | undefined;
|
|
13
13
|
}) => any) | undefined;
|
|
14
14
|
activator?: ((props: {
|
|
15
15
|
props: {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
'aria-expanded': boolean;
|
|
17
|
+
'aria-controls': string;
|
|
18
18
|
id: string;
|
|
19
19
|
onClick: ((...args: any[]) => any) | undefined;
|
|
20
20
|
onKeydown: (event: KeyboardEvent) => void;
|
|
@@ -35,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
35
|
opening: boolean;
|
|
36
36
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | undefined;
|
|
37
37
|
}) => any) | undefined;
|
|
38
|
-
|
|
38
|
+
'item:prepend'?: ((props: {
|
|
39
39
|
closed: boolean;
|
|
40
40
|
closing: boolean;
|
|
41
41
|
disabled?: boolean | undefined;
|
|
@@ -57,7 +57,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
57
57
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | undefined;
|
|
58
58
|
text: string | undefined;
|
|
59
59
|
}) => any) | undefined;
|
|
60
|
-
|
|
60
|
+
'item:append'?: ((props: {
|
|
61
61
|
closed: boolean;
|
|
62
62
|
closing: boolean;
|
|
63
63
|
disabled?: boolean | undefined;
|
|
@@ -76,7 +76,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
76
76
|
opening: boolean;
|
|
77
77
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | undefined;
|
|
78
78
|
}) => any) | undefined;
|
|
79
|
-
|
|
79
|
+
'right-btn'?: ((props: {
|
|
80
80
|
closed: boolean;
|
|
81
81
|
closing: boolean;
|
|
82
82
|
disabled?: boolean | undefined;
|
|
@@ -97,14 +97,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
97
97
|
text: string | undefined;
|
|
98
98
|
}) => any;
|
|
99
99
|
}> & {
|
|
100
|
-
|
|
100
|
+
'left-btn'?: ((props: {
|
|
101
101
|
disabled?: boolean | undefined;
|
|
102
102
|
text: string | undefined;
|
|
103
103
|
}) => any) | undefined;
|
|
104
104
|
activator?: ((props: {
|
|
105
105
|
props: {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
'aria-expanded': boolean;
|
|
107
|
+
'aria-controls': string;
|
|
108
108
|
id: string;
|
|
109
109
|
onClick: ((...args: any[]) => any) | undefined;
|
|
110
110
|
onKeydown: (event: KeyboardEvent) => void;
|
|
@@ -125,7 +125,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
125
125
|
opening: boolean;
|
|
126
126
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | undefined;
|
|
127
127
|
}) => any) | undefined;
|
|
128
|
-
|
|
128
|
+
'item:prepend'?: ((props: {
|
|
129
129
|
closed: boolean;
|
|
130
130
|
closing: boolean;
|
|
131
131
|
disabled?: boolean | undefined;
|
|
@@ -147,7 +147,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
147
147
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | undefined;
|
|
148
148
|
text: string | undefined;
|
|
149
149
|
}) => any) | undefined;
|
|
150
|
-
|
|
150
|
+
'item:append'?: ((props: {
|
|
151
151
|
closed: boolean;
|
|
152
152
|
closing: boolean;
|
|
153
153
|
disabled?: boolean | undefined;
|
|
@@ -166,7 +166,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
166
166
|
opening: boolean;
|
|
167
167
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | undefined;
|
|
168
168
|
}) => any) | undefined;
|
|
169
|
-
|
|
169
|
+
'right-btn'?: ((props: {
|
|
170
170
|
closed: boolean;
|
|
171
171
|
closing: boolean;
|
|
172
172
|
disabled?: boolean | undefined;
|
|
@@ -19,10 +19,10 @@ export type BbDropzoneProps = Pick<CommonProps, 'autofocus' | 'disabled' | 'erro
|
|
|
19
19
|
modelValue: any;
|
|
20
20
|
} & NonVoidElementTag;
|
|
21
21
|
export type BbDropzoneEvents = {
|
|
22
|
-
(e:
|
|
23
|
-
(e:
|
|
24
|
-
(e:
|
|
25
|
-
(e:
|
|
22
|
+
(e: 'blur', event: FocusEvent): void;
|
|
23
|
+
(e: 'error', data: DropZoneError): void;
|
|
24
|
+
(e: 'focus', event: FocusEvent): void;
|
|
25
|
+
(e: 'update:modelValue', data: any): void;
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* Helper that creates errors based on component properties
|
|
@@ -10,9 +10,9 @@ export type BbIntersectionProps = {
|
|
|
10
10
|
options?: IntersectionObserverInit;
|
|
11
11
|
} & NonVoidElementTag;
|
|
12
12
|
export type BbIntersectionEvents = {
|
|
13
|
-
(e:
|
|
14
|
-
(e:
|
|
15
|
-
(e:
|
|
13
|
+
(e: 'shown'): void;
|
|
14
|
+
(e: 'hidden'): void;
|
|
15
|
+
(e: 'intersected', value: number): void;
|
|
16
16
|
};
|
|
17
17
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbIntersectionProps>, {
|
|
18
18
|
debounceTime: number;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { BaseNumberInputEvents, BaseNumberInputSlots } from
|
|
2
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
1
|
+
import type { BaseNumberInputEvents, BaseNumberInputSlots } from '../BaseNumberInput/BaseNumberInput.vue';
|
|
2
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
3
3
|
export type BbNumberInputProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Guides to the browser as to the type of information expected in the field.
|
|
6
6
|
*/
|
|
7
|
-
autocomplete?: InputHTMLAttributes[
|
|
7
|
+
autocomplete?: InputHTMLAttributes['autocomplete'];
|
|
8
8
|
/**
|
|
9
9
|
* Sets autofocus on page load.
|
|
10
10
|
*/
|
|
11
|
-
autofocus?: InputHTMLAttributes[
|
|
11
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
12
12
|
/**
|
|
13
13
|
* Disables the component
|
|
14
14
|
*/
|
|
@@ -21,7 +21,7 @@ export type BbNumberInputProps = {
|
|
|
21
21
|
/**
|
|
22
22
|
* The identifier of the component.
|
|
23
23
|
*/
|
|
24
|
-
id?: HTMLAttributes[
|
|
24
|
+
id?: HTMLAttributes['id'];
|
|
25
25
|
/**
|
|
26
26
|
* Maximum value cap
|
|
27
27
|
*/
|
|
@@ -37,15 +37,15 @@ export type BbNumberInputProps = {
|
|
|
37
37
|
/**
|
|
38
38
|
* Defines the name of the input.
|
|
39
39
|
*/
|
|
40
|
-
name?: InputHTMLAttributes[
|
|
40
|
+
name?: InputHTMLAttributes['name'];
|
|
41
41
|
/**
|
|
42
42
|
* String displayed when there's no data.
|
|
43
43
|
*/
|
|
44
|
-
placeholder?: InputHTMLAttributes[
|
|
44
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
45
45
|
/**
|
|
46
46
|
* Sets the input in a readonly state.
|
|
47
47
|
*/
|
|
48
|
-
readonly?: InputHTMLAttributes[
|
|
48
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
49
49
|
/**
|
|
50
50
|
* Incremental unit used in the exposed `increase`
|
|
51
51
|
* and `decrease` function. It's NOT APPLIED to manual input as a step of 5
|
|
@@ -55,7 +55,7 @@ export type BbNumberInputProps = {
|
|
|
55
55
|
/**
|
|
56
56
|
* Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.
|
|
57
57
|
*/
|
|
58
|
-
direction?:
|
|
58
|
+
direction?: 'horizontal' | 'vertical' | 'auto' | string;
|
|
59
59
|
/**
|
|
60
60
|
* Can be a string or an array of string containing the messages to display.
|
|
61
61
|
*/
|
|
@@ -71,7 +71,7 @@ export type BbNumberInputProps = {
|
|
|
71
71
|
/**
|
|
72
72
|
* Sets the text alignment of the label.
|
|
73
73
|
*/
|
|
74
|
-
labelPosition?:
|
|
74
|
+
labelPosition?: 'left' | 'center' | 'right';
|
|
75
75
|
/**
|
|
76
76
|
* Reverses the layout. Applicable in every direction the order of the label and the input is swapped.
|
|
77
77
|
*/
|
|
@@ -4,7 +4,7 @@ export type Sizes = {
|
|
|
4
4
|
md: number;
|
|
5
5
|
lg: number;
|
|
6
6
|
};
|
|
7
|
-
export type BbOffCanvasProps = Pick<CommonProps,
|
|
7
|
+
export type BbOffCanvasProps = Pick<CommonProps, 'closeLabel' | 'compact' | 'disabled' | 'eager' | 'panelClasses' | 'overlayClasses' | 'persistent' | 'showClose' | 'title' | 'transition' | 'transitionDuration'> & Size<Sizes> & {
|
|
8
8
|
/**
|
|
9
9
|
* Description of the content of the modal. Extremely useful for accessibility reasons.
|
|
10
10
|
*/
|
|
@@ -20,28 +20,28 @@ export type BbOffCanvasProps = Pick<CommonProps, "closeLabel" | "compact" | "dis
|
|
|
20
20
|
/**
|
|
21
21
|
* Defines the direction the offcanvas should appear from
|
|
22
22
|
*/
|
|
23
|
-
direction?:
|
|
23
|
+
direction?: 'left' | 'top' | 'right' | 'bottom';
|
|
24
24
|
};
|
|
25
25
|
export type BbOffCanvasEvents = {
|
|
26
|
-
(e:
|
|
27
|
-
(e:
|
|
28
|
-
(e:
|
|
26
|
+
(e: 'shown'): void;
|
|
27
|
+
(e: 'hidden'): void;
|
|
28
|
+
(e: 'update:modelValue', value: boolean): void;
|
|
29
29
|
};
|
|
30
30
|
export type BbOffCanvasSlots = {
|
|
31
31
|
header?: (props: {
|
|
32
32
|
titleId: typeof titleId;
|
|
33
33
|
close: typeof onCloseClick;
|
|
34
|
-
title: BbOffCanvasProps[
|
|
34
|
+
title: BbOffCanvasProps['title'];
|
|
35
35
|
}) => any;
|
|
36
36
|
title?: (props: {
|
|
37
|
-
text: BbOffCanvasProps[
|
|
37
|
+
text: BbOffCanvasProps['title'];
|
|
38
38
|
}) => any;
|
|
39
39
|
close?: (props: {
|
|
40
|
-
text: BbOffCanvasProps[
|
|
40
|
+
text: BbOffCanvasProps['closeLabel'];
|
|
41
41
|
}) => any;
|
|
42
42
|
description?: (props: {
|
|
43
43
|
descriptionId: typeof descriptionId;
|
|
44
|
-
text: BbOffCanvasProps[
|
|
44
|
+
text: BbOffCanvasProps['description'];
|
|
45
45
|
}) => any;
|
|
46
46
|
default?: (props: {}) => any;
|
|
47
47
|
content?: (props: {
|
|
@@ -20,7 +20,7 @@ export type BbPaginationProps = Pick<CommonProps, 'disabled' | 'loading'> & {
|
|
|
20
20
|
totalPages?: number | string;
|
|
21
21
|
};
|
|
22
22
|
export type BbPaginationEvents = {
|
|
23
|
-
(e:
|
|
23
|
+
(e: 'update:modelValue', value: number): void;
|
|
24
24
|
};
|
|
25
25
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbPaginationProps>, {
|
|
26
26
|
modelValue: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CommonProps } from '../../types/CommonProps';
|
|
2
|
-
import type { Placement } from
|
|
3
|
-
export type BbPopoverProps = Pick<CommonProps,
|
|
2
|
+
import type { Placement } from '@floating-ui/vue';
|
|
3
|
+
export type BbPopoverProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'offset' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Elements that obtains focus immediately after opening the popover.
|
|
6
6
|
* By default it's the first tabbable item.
|
|
@@ -12,8 +12,8 @@ export type BbPopoverProps = Pick<CommonProps, "arrowPadding" | "block" | "disab
|
|
|
12
12
|
width?: number | string;
|
|
13
13
|
};
|
|
14
14
|
export type BbPopoverEvents = {
|
|
15
|
-
(e:
|
|
16
|
-
(e:
|
|
15
|
+
(e: 'shown'): void;
|
|
16
|
+
(e: 'hidden'): void;
|
|
17
17
|
};
|
|
18
18
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbPopoverProps>, {
|
|
19
19
|
arrowPadding: number;
|
|
@@ -48,8 +48,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
48
48
|
}, {}>, Readonly<{
|
|
49
49
|
activator?: ((props: {
|
|
50
50
|
props: {
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
'aria-controls': string;
|
|
52
|
+
'aria-expanded': boolean;
|
|
53
53
|
onClick: () => Promise<void>;
|
|
54
54
|
id: string;
|
|
55
55
|
disabled: boolean;
|
|
@@ -73,8 +73,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
73
73
|
}> & {
|
|
74
74
|
activator?: ((props: {
|
|
75
75
|
props: {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
'aria-controls': string;
|
|
77
|
+
'aria-expanded': boolean;
|
|
78
78
|
onClick: () => Promise<void>;
|
|
79
79
|
id: string;
|
|
80
80
|
disabled: boolean;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
2
|
-
import type { SlotAttributes, BaseRadioEvents } from
|
|
1
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
|
+
import type { SlotAttributes, BaseRadioEvents } from '../BaseRadio/BaseRadio.vue';
|
|
3
3
|
export type BbRadioProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Sets autofocus on page load.
|
|
6
6
|
*/
|
|
7
|
-
autofocus?: InputHTMLAttributes[
|
|
7
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
8
8
|
/**
|
|
9
9
|
* Defines the input as checked
|
|
10
10
|
*/
|
|
11
|
-
checked?: InputHTMLAttributes[
|
|
11
|
+
checked?: InputHTMLAttributes['checked'];
|
|
12
12
|
/**
|
|
13
13
|
* Define a color for the component.
|
|
14
14
|
*
|
|
@@ -27,7 +27,7 @@ export type BbRadioProps = {
|
|
|
27
27
|
/**
|
|
28
28
|
* The identifier of the component.
|
|
29
29
|
*/
|
|
30
|
-
id?: HTMLAttributes[
|
|
30
|
+
id?: HTMLAttributes['id'];
|
|
31
31
|
/**
|
|
32
32
|
* Used by v-model. Can be any serializable type.
|
|
33
33
|
*/
|
|
@@ -35,11 +35,11 @@ export type BbRadioProps = {
|
|
|
35
35
|
/**
|
|
36
36
|
* Defines the name of the input.
|
|
37
37
|
*/
|
|
38
|
-
name: InputHTMLAttributes[
|
|
38
|
+
name: InputHTMLAttributes['name'];
|
|
39
39
|
/**
|
|
40
40
|
* Sets the input in a readonly state.
|
|
41
41
|
*/
|
|
42
|
-
readonly?: InputHTMLAttributes[
|
|
42
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
43
43
|
/**
|
|
44
44
|
* Defines the value of the radio input.
|
|
45
45
|
* It can be any serializable value.
|
|
@@ -48,7 +48,7 @@ export type BbRadioProps = {
|
|
|
48
48
|
/**
|
|
49
49
|
* Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.
|
|
50
50
|
*/
|
|
51
|
-
direction?:
|
|
51
|
+
direction?: 'horizontal' | 'vertical' | 'auto' | string;
|
|
52
52
|
/**
|
|
53
53
|
* Can be a string or an array of string containing the messages to display.
|
|
54
54
|
*/
|
|
@@ -60,7 +60,7 @@ export type BbRadioProps = {
|
|
|
60
60
|
/**
|
|
61
61
|
* Sets the slignment of the input. Since inputs are inline block they can be aligned just as text can.
|
|
62
62
|
*/
|
|
63
|
-
inputPosition?:
|
|
63
|
+
inputPosition?: 'left' | 'center' | 'right';
|
|
64
64
|
/**
|
|
65
65
|
* Text content of the label of the element.
|
|
66
66
|
*/
|
|
@@ -68,7 +68,7 @@ export type BbRadioProps = {
|
|
|
68
68
|
/**
|
|
69
69
|
* Sets the text alignment of the label.
|
|
70
70
|
*/
|
|
71
|
-
labelPosition?:
|
|
71
|
+
labelPosition?: 'left' | 'center' | 'right';
|
|
72
72
|
/**
|
|
73
73
|
* Reverses the layout. Applicable in every direction the order of the label and the input is swapped.
|
|
74
74
|
*/
|