bitboss-ui 0.2.30 → 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 +12 -12
- package/dist/components/BbTable/types.d.ts +108 -108
- 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 +53 -58
- package/dist/index101.js.map +1 -1
- package/dist/index103.js +18 -18
- 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 +2 -2
- 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 +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 +229 -227
- 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 +2 -5
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +2 -16
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +4 -16
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +294 -18
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +23 -23
- package/dist/index2.js.map +1 -1
- package/dist/index200.js +13 -17
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +13 -26
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +19 -8
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +20 -2
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +29 -3
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +8 -35
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -6
- 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 -4
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +33 -376
- 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 -2
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +8 -371
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +378 -2
- 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 +174 -2
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +23 -2
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +365 -126
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +3 -174
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +3 -23
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +2 -10
- 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 +3 -434
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -89
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +6 -200
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +15 -17
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +2 -295
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +2 -6
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +2 -2
- package/dist/index236.js +435 -2
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +89 -2
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +199 -3
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +218 -111
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +246 -94
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +111 -218
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +94 -246
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +17 -19
- package/dist/index244.js.map +1 -1
- package/dist/index246.js +9 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +4 -1
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -2
- 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 +29 -29
- package/dist/index31.js.map +1 -1
- package/dist/index33.js +11 -12
- 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 +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,21 +1,21 @@
|
|
|
1
1
|
import type { CommonProps, NonVoidElementTag } from '../../types/CommonProps';
|
|
2
|
-
import type { InertiaLinkProps } from
|
|
3
|
-
import type { RouterLinkProps } from
|
|
4
|
-
export type BaseButtonProps = Pick<CommonProps,
|
|
2
|
+
import type { InertiaLinkProps } from '@inertiajs/vue3';
|
|
3
|
+
import type { RouterLinkProps } from 'vue-router';
|
|
4
|
+
export type BaseButtonProps = Pick<CommonProps, 'block' | 'disabled' | 'text'> & NonVoidElementTag & Partial<Pick<RouterLinkProps, 'activeClass' | 'ariaCurrentValue' | 'exactActiveClass' | 'replace' | 'to'>> & Partial<Pick<InertiaLinkProps, 'data' | 'headers' | 'method' | 'onBefore' | 'onCancel' | 'onCancelToken' | 'onFinish' | 'only' | 'onProgress' | 'onStart' | 'onSuccess' | 'preserveScroll' | 'preserveState' | 'queryStringArrayFormat'>> & Partial<{
|
|
5
5
|
/**
|
|
6
6
|
* Gets the classification and default behavior of the button.
|
|
7
7
|
*/
|
|
8
|
-
type: HTMLButtonElement[
|
|
8
|
+
type: HTMLButtonElement['type'];
|
|
9
9
|
/**
|
|
10
10
|
* Returns the hyperlink's URL.
|
|
11
11
|
*
|
|
12
12
|
* Can be set, to change the URL.
|
|
13
13
|
*/
|
|
14
|
-
href: HTMLAnchorElement[
|
|
14
|
+
href: HTMLAnchorElement['href'];
|
|
15
15
|
/**
|
|
16
16
|
* Sets or retrieves the window or frame at which to target content.
|
|
17
17
|
*/
|
|
18
|
-
target: HTMLAnchorElement[
|
|
18
|
+
target: HTMLAnchorElement['target'];
|
|
19
19
|
}>;
|
|
20
20
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseButtonProps>, {
|
|
21
21
|
tag: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
1
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
2
|
export type BaseCheckboxProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Sets autofocus on page load.
|
|
5
5
|
*/
|
|
6
|
-
autofocus?: InputHTMLAttributes[
|
|
6
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
7
7
|
/**
|
|
8
8
|
* Defines the input as checked
|
|
9
9
|
*/
|
|
10
|
-
checked?: InputHTMLAttributes[
|
|
10
|
+
checked?: InputHTMLAttributes['checked'];
|
|
11
11
|
/**
|
|
12
12
|
* Define a color for the component.
|
|
13
13
|
*
|
|
@@ -30,19 +30,19 @@ export type BaseCheckboxProps = {
|
|
|
30
30
|
/**
|
|
31
31
|
* The identifier of the component.
|
|
32
32
|
*/
|
|
33
|
-
id?: HTMLAttributes[
|
|
33
|
+
id?: HTMLAttributes['id'];
|
|
34
34
|
/**
|
|
35
35
|
* Sets the input in an indeterminate state.
|
|
36
36
|
*/
|
|
37
|
-
indeterminate?: InputHTMLAttributes[
|
|
37
|
+
indeterminate?: InputHTMLAttributes['indeterminate'];
|
|
38
38
|
/**
|
|
39
39
|
* Defines the name of the input.
|
|
40
40
|
*/
|
|
41
|
-
name?: InputHTMLAttributes[
|
|
41
|
+
name?: InputHTMLAttributes['name'];
|
|
42
42
|
/**
|
|
43
43
|
* Sets the input in a readonly state.
|
|
44
44
|
*/
|
|
45
|
-
readonly?: InputHTMLAttributes[
|
|
45
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
46
46
|
/**
|
|
47
47
|
* Will submit "falseValue" if the input is not checked. Otherwise "trueValue" will be submitted.
|
|
48
48
|
*/
|
|
@@ -57,15 +57,15 @@ export type BaseCheckboxProps = {
|
|
|
57
57
|
modelValue?: any;
|
|
58
58
|
};
|
|
59
59
|
export type BaseCheckboxEvents = {
|
|
60
|
-
(e:
|
|
61
|
-
(e:
|
|
62
|
-
(e:
|
|
63
|
-
(e:
|
|
64
|
-
(e:
|
|
65
|
-
(e:
|
|
66
|
-
(e:
|
|
67
|
-
(e:
|
|
68
|
-
(e:
|
|
60
|
+
(e: 'blur', event: FocusEvent): void;
|
|
61
|
+
(e: 'change', event: Event): void;
|
|
62
|
+
(e: 'click', event: MouseEvent): void;
|
|
63
|
+
(e: 'focus', event: FocusEvent): void;
|
|
64
|
+
(e: 'input', event: Event): void;
|
|
65
|
+
(e: 'keydown', event: KeyboardEvent): void;
|
|
66
|
+
(e: 'mousedown', event: MouseEvent): void;
|
|
67
|
+
(e: 'mouseup', event: MouseEvent): void;
|
|
68
|
+
(e: 'update:modelValue', value: any): void;
|
|
69
69
|
};
|
|
70
70
|
export type SlotAttributes = {
|
|
71
71
|
checked: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
1
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
2
|
import type { NestedKeyOf } from '../../types/NestedKeyOf';
|
|
3
|
-
import type { SlotAttributes } from
|
|
3
|
+
import type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';
|
|
4
4
|
export type BaseCheckboxGroupProps<T> = {
|
|
5
5
|
/**
|
|
6
6
|
* Sets autofocus on page load.
|
|
7
7
|
*/
|
|
8
|
-
autofocus?: InputHTMLAttributes[
|
|
8
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
9
9
|
/**
|
|
10
10
|
* Define a color for the component.
|
|
11
11
|
*
|
|
@@ -23,7 +23,7 @@ export type BaseCheckboxGroupProps<T> = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`
|
|
25
25
|
*/
|
|
26
|
-
direction?:
|
|
26
|
+
direction?: 'horizontal' | 'vertical';
|
|
27
27
|
/**
|
|
28
28
|
* Disables the component
|
|
29
29
|
*/
|
|
@@ -48,7 +48,7 @@ export type BaseCheckboxGroupProps<T> = {
|
|
|
48
48
|
/**
|
|
49
49
|
* The identifier of the component.
|
|
50
50
|
*/
|
|
51
|
-
id?: HTMLAttributes[
|
|
51
|
+
id?: HTMLAttributes['id'];
|
|
52
52
|
/**
|
|
53
53
|
* Used to retrieve items can be an array or a function.
|
|
54
54
|
*/
|
|
@@ -70,7 +70,7 @@ export type BaseCheckboxGroupProps<T> = {
|
|
|
70
70
|
* `string` is 40% faster but relies on property order.
|
|
71
71
|
* `equality` is more reliable but is slower.
|
|
72
72
|
*/
|
|
73
|
-
matchStrategy?:
|
|
73
|
+
matchStrategy?: 'string' | 'equality';
|
|
74
74
|
/**
|
|
75
75
|
* Used by v-model. Can be an array of any serializable type.
|
|
76
76
|
*/
|
|
@@ -82,7 +82,7 @@ export type BaseCheckboxGroupProps<T> = {
|
|
|
82
82
|
/**
|
|
83
83
|
* Defines the name of the input.
|
|
84
84
|
*/
|
|
85
|
-
name?: InputHTMLAttributes[
|
|
85
|
+
name?: InputHTMLAttributes['name'];
|
|
86
86
|
/**
|
|
87
87
|
* String displayed when there are no items to display.
|
|
88
88
|
*/
|
|
@@ -90,19 +90,19 @@ export type BaseCheckboxGroupProps<T> = {
|
|
|
90
90
|
/**
|
|
91
91
|
* Sets the input in a readonly state.
|
|
92
92
|
*/
|
|
93
|
-
readonly?: InputHTMLAttributes[
|
|
93
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
94
94
|
};
|
|
95
95
|
export type BaseCheckboxGroupEvents = {
|
|
96
|
-
(e:
|
|
97
|
-
(e:
|
|
98
|
-
(e:
|
|
99
|
-
(e:
|
|
100
|
-
(e:
|
|
101
|
-
(e:
|
|
102
|
-
(e:
|
|
103
|
-
(e:
|
|
104
|
-
(e:
|
|
105
|
-
(e:
|
|
96
|
+
(e: 'blur', event: FocusEvent): void;
|
|
97
|
+
(e: 'change', event: Event): void;
|
|
98
|
+
(e: 'click', event: MouseEvent): void;
|
|
99
|
+
(e: 'focus', event: FocusEvent): void;
|
|
100
|
+
(e: 'inactive'): void;
|
|
101
|
+
(e: 'input', event: Event): void;
|
|
102
|
+
(e: 'keydown', event: KeyboardEvent): void;
|
|
103
|
+
(e: 'mousedown', event: MouseEvent): void;
|
|
104
|
+
(e: 'mouseup', event: MouseEvent): void;
|
|
105
|
+
(e: 'update:modelValue', value: any): void;
|
|
106
106
|
};
|
|
107
107
|
declare const _default: <T = any>(__VLS_props: {
|
|
108
108
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
@@ -140,8 +140,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
140
140
|
slots: Readonly<{
|
|
141
141
|
prepend?: ((props: {}) => any) | undefined;
|
|
142
142
|
loading?: ((props: {}) => any) | undefined;
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
144
|
+
'option:prepend'?: ((props: {
|
|
145
145
|
item: T;
|
|
146
146
|
}) => any) | undefined;
|
|
147
147
|
icon?: ((props: SlotAttributes & {
|
|
@@ -153,15 +153,15 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
153
153
|
text: string;
|
|
154
154
|
checked: boolean;
|
|
155
155
|
}) => any) | undefined;
|
|
156
|
-
|
|
156
|
+
'option:append'?: ((props: {
|
|
157
157
|
item: T;
|
|
158
158
|
}) => any) | undefined;
|
|
159
159
|
append?: ((props: {}) => any) | undefined;
|
|
160
160
|
}> & {
|
|
161
161
|
prepend?: ((props: {}) => any) | undefined;
|
|
162
162
|
loading?: ((props: {}) => any) | undefined;
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
164
|
+
'option:prepend'?: ((props: {
|
|
165
165
|
item: T;
|
|
166
166
|
}) => any) | undefined;
|
|
167
167
|
icon?: ((props: SlotAttributes & {
|
|
@@ -173,7 +173,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
173
173
|
text: string;
|
|
174
174
|
checked: boolean;
|
|
175
175
|
}) => any) | undefined;
|
|
176
|
-
|
|
176
|
+
'option:append'?: ((props: {
|
|
177
177
|
item: T;
|
|
178
178
|
}) => any) | undefined;
|
|
179
179
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -217,8 +217,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
217
217
|
slots: Readonly<{
|
|
218
218
|
prepend?: ((props: {}) => any) | undefined;
|
|
219
219
|
loading?: ((props: {}) => any) | undefined;
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
221
|
+
'option:prepend'?: ((props: {
|
|
222
222
|
item: T;
|
|
223
223
|
}) => any) | undefined;
|
|
224
224
|
icon?: ((props: SlotAttributes & {
|
|
@@ -230,15 +230,15 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
230
230
|
text: string;
|
|
231
231
|
checked: boolean;
|
|
232
232
|
}) => any) | undefined;
|
|
233
|
-
|
|
233
|
+
'option:append'?: ((props: {
|
|
234
234
|
item: T;
|
|
235
235
|
}) => any) | undefined;
|
|
236
236
|
append?: ((props: {}) => any) | undefined;
|
|
237
237
|
}> & {
|
|
238
238
|
prepend?: ((props: {}) => any) | undefined;
|
|
239
239
|
loading?: ((props: {}) => any) | undefined;
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
241
|
+
'option:prepend'?: ((props: {
|
|
242
242
|
item: T;
|
|
243
243
|
}) => any) | undefined;
|
|
244
244
|
icon?: ((props: SlotAttributes & {
|
|
@@ -250,7 +250,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
250
250
|
text: string;
|
|
251
251
|
checked: boolean;
|
|
252
252
|
}) => any) | undefined;
|
|
253
|
-
|
|
253
|
+
'option:append'?: ((props: {
|
|
254
254
|
item: T;
|
|
255
255
|
}) => any) | undefined;
|
|
256
256
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -297,8 +297,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
297
297
|
slots: Readonly<{
|
|
298
298
|
prepend?: ((props: {}) => any) | undefined;
|
|
299
299
|
loading?: ((props: {}) => any) | undefined;
|
|
300
|
-
|
|
301
|
-
|
|
300
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
301
|
+
'option:prepend'?: ((props: {
|
|
302
302
|
item: T;
|
|
303
303
|
}) => any) | undefined;
|
|
304
304
|
icon?: ((props: SlotAttributes & {
|
|
@@ -310,15 +310,15 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
310
310
|
text: string;
|
|
311
311
|
checked: boolean;
|
|
312
312
|
}) => any) | undefined;
|
|
313
|
-
|
|
313
|
+
'option:append'?: ((props: {
|
|
314
314
|
item: T;
|
|
315
315
|
}) => any) | undefined;
|
|
316
316
|
append?: ((props: {}) => any) | undefined;
|
|
317
317
|
}> & {
|
|
318
318
|
prepend?: ((props: {}) => any) | undefined;
|
|
319
319
|
loading?: ((props: {}) => any) | undefined;
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
321
|
+
'option:prepend'?: ((props: {
|
|
322
322
|
item: T;
|
|
323
323
|
}) => any) | undefined;
|
|
324
324
|
icon?: ((props: SlotAttributes & {
|
|
@@ -330,7 +330,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
330
330
|
text: string;
|
|
331
331
|
checked: boolean;
|
|
332
332
|
}) => any) | undefined;
|
|
333
|
-
|
|
333
|
+
'option:append'?: ((props: {
|
|
334
334
|
item: T;
|
|
335
335
|
}) => any) | undefined;
|
|
336
336
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { default as dayjs } from
|
|
2
|
-
import { default as it } from
|
|
3
|
-
import type { Dayjs } from
|
|
4
|
-
import type { InputHTMLAttributes } from
|
|
1
|
+
import { default as dayjs } from 'dayjs';
|
|
2
|
+
import { default as it } from 'dayjs/locale/it';
|
|
3
|
+
import type { Dayjs } from 'dayjs';
|
|
4
|
+
import type { InputHTMLAttributes } from 'vue';
|
|
5
5
|
export type BaseDatePickerProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Disables the component
|
|
@@ -10,7 +10,7 @@ export type BaseDatePickerProps = {
|
|
|
10
10
|
/**
|
|
11
11
|
* Defines the first day of the week with `0` meaning Sunday and `6` meaning Saturday
|
|
12
12
|
*/
|
|
13
|
-
firstDayOfWeek?: (typeof it)[
|
|
13
|
+
firstDayOfWeek?: (typeof it)['weekStart'];
|
|
14
14
|
/**
|
|
15
15
|
* Maximum selectable date
|
|
16
16
|
*/
|
|
@@ -34,7 +34,7 @@ export type BaseDatePickerProps = {
|
|
|
34
34
|
/**
|
|
35
35
|
* Sets the input in a readonly state.
|
|
36
36
|
*/
|
|
37
|
-
readonly?: InputHTMLAttributes[
|
|
37
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
38
38
|
/**
|
|
39
39
|
* Function that accepts a `Date` object and returns a boolean. `false` meaning the date cannot be selected
|
|
40
40
|
* @param date
|
|
@@ -60,23 +60,23 @@ type Cell = {
|
|
|
60
60
|
};
|
|
61
61
|
export type BaseDatePickerSlots = {
|
|
62
62
|
day?: (props: {
|
|
63
|
-
first: Cell[
|
|
64
|
-
highlighted: Cell[
|
|
65
|
-
item: Cell[
|
|
66
|
-
label: Cell[
|
|
67
|
-
last: Cell[
|
|
68
|
-
middle: Cell[
|
|
69
|
-
selected: Cell[
|
|
63
|
+
first: Cell['first'];
|
|
64
|
+
highlighted: Cell['highlighted'];
|
|
65
|
+
item: Cell['original'];
|
|
66
|
+
label: Cell['label'];
|
|
67
|
+
last: Cell['last'];
|
|
68
|
+
middle: Cell['middle'];
|
|
69
|
+
selected: Cell['selected'];
|
|
70
70
|
}) => any;
|
|
71
71
|
} & {
|
|
72
72
|
[key: string]: (props: {
|
|
73
|
-
first: Cell[
|
|
74
|
-
highlighted: Cell[
|
|
75
|
-
item: Cell[
|
|
76
|
-
label: Cell[
|
|
77
|
-
last: Cell[
|
|
78
|
-
middle: Cell[
|
|
79
|
-
selected: Cell[
|
|
73
|
+
first: Cell['first'];
|
|
74
|
+
highlighted: Cell['highlighted'];
|
|
75
|
+
item: Cell['original'];
|
|
76
|
+
label: Cell['label'];
|
|
77
|
+
last: Cell['last'];
|
|
78
|
+
middle: Cell['middle'];
|
|
79
|
+
selected: Cell['selected'];
|
|
80
80
|
}) => any;
|
|
81
81
|
};
|
|
82
82
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseDatePickerProps>, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { default as dayjs } from
|
|
2
|
-
import { default as it } from
|
|
3
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
1
|
+
import { default as dayjs } from 'dayjs';
|
|
2
|
+
import { default as it } from 'dayjs/locale/it';
|
|
3
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
4
4
|
export type BaseDatePickerInputProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Allows typing into the input.
|
|
@@ -9,11 +9,11 @@ export type BaseDatePickerInputProps = {
|
|
|
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
|
* Disables the component
|
|
19
19
|
*/
|
|
@@ -21,7 +21,7 @@ export type BaseDatePickerInputProps = {
|
|
|
21
21
|
/**
|
|
22
22
|
* Defines the first day of the week with `0` meaning Sunday and `6` meaning Saturday
|
|
23
23
|
*/
|
|
24
|
-
firstDayOfWeek?: (typeof it)[
|
|
24
|
+
firstDayOfWeek?: (typeof it)['weekStart'];
|
|
25
25
|
/**
|
|
26
26
|
* Define if the component should be in an error state.
|
|
27
27
|
* It usually attaches a CSS class for styling purposes.
|
|
@@ -30,7 +30,7 @@ export type BaseDatePickerInputProps = {
|
|
|
30
30
|
/**
|
|
31
31
|
* The identifier of the component.
|
|
32
32
|
*/
|
|
33
|
-
id?: HTMLAttributes[
|
|
33
|
+
id?: HTMLAttributes['id'];
|
|
34
34
|
/**
|
|
35
35
|
* Maximum selectable date
|
|
36
36
|
*/
|
|
@@ -46,11 +46,11 @@ export type BaseDatePickerInputProps = {
|
|
|
46
46
|
/**
|
|
47
47
|
* Defines the name of the input.
|
|
48
48
|
*/
|
|
49
|
-
name?: InputHTMLAttributes[
|
|
49
|
+
name?: InputHTMLAttributes['name'];
|
|
50
50
|
/**
|
|
51
51
|
* String displayed when there's no data.
|
|
52
52
|
*/
|
|
53
|
-
placeholder?: InputHTMLAttributes[
|
|
53
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
54
54
|
/**
|
|
55
55
|
* Selects a range of dates between two dates. It selects all of the days between start and end
|
|
56
56
|
*/
|
|
@@ -58,7 +58,7 @@ export type BaseDatePickerInputProps = {
|
|
|
58
58
|
/**
|
|
59
59
|
* Sets the input in a readonly state.
|
|
60
60
|
*/
|
|
61
|
-
readonly?: InputHTMLAttributes[
|
|
61
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
62
62
|
/**
|
|
63
63
|
* Function that accepts a `Date` object and returns a boolean. `false` meaning the date cannot be selected
|
|
64
64
|
* @param date
|
|
@@ -70,9 +70,9 @@ export type BaseDatePickerInputProps = {
|
|
|
70
70
|
width?: number | string;
|
|
71
71
|
};
|
|
72
72
|
export type BaseDatePickerInputEvents = {
|
|
73
|
-
(e:
|
|
74
|
-
(e:
|
|
75
|
-
(e:
|
|
73
|
+
(e: 'update:modelValue', value: BaseDatePickerInputProps['modelValue']): void;
|
|
74
|
+
(e: 'inactive'): void;
|
|
75
|
+
(e: 'error', message: string): void;
|
|
76
76
|
};
|
|
77
77
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseDatePickerInputProps>, {
|
|
78
78
|
allowWriting: boolean;
|
|
@@ -95,10 +95,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
95
95
|
allowWriting: boolean;
|
|
96
96
|
width: string | number;
|
|
97
97
|
}, {}>, Readonly<{
|
|
98
|
-
|
|
99
|
-
prepend?: ((props:
|
|
100
|
-
append?: ((props:
|
|
101
|
-
|
|
98
|
+
'prepend-outer'?: ((props: object) => any) | undefined;
|
|
99
|
+
prepend?: ((props: object) => any) | undefined;
|
|
100
|
+
append?: ((props: object) => any) | undefined;
|
|
101
|
+
'append-outer'?: ((props: object) => any) | undefined;
|
|
102
102
|
} & {
|
|
103
103
|
day?: ((props: {
|
|
104
104
|
first: boolean;
|
|
@@ -120,10 +120,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
120
120
|
selected: boolean;
|
|
121
121
|
}) => any;
|
|
122
122
|
}> & {
|
|
123
|
-
|
|
124
|
-
prepend?: ((props:
|
|
125
|
-
append?: ((props:
|
|
126
|
-
|
|
123
|
+
'prepend-outer'?: ((props: object) => any) | undefined;
|
|
124
|
+
prepend?: ((props: object) => any) | undefined;
|
|
125
|
+
append?: ((props: object) => any) | undefined;
|
|
126
|
+
'append-outer'?: ((props: object) => any) | undefined;
|
|
127
127
|
} & {
|
|
128
128
|
day?: ((props: {
|
|
129
129
|
first: boolean;
|
|
@@ -4,7 +4,7 @@ export type Sizes = {
|
|
|
4
4
|
md: number;
|
|
5
5
|
lg: number;
|
|
6
6
|
};
|
|
7
|
-
export type BaseDialogProps = Pick<CommonProps,
|
|
7
|
+
export type BaseDialogProps = 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
|
*/
|
|
@@ -22,25 +22,25 @@ export type BaseDialogSlots = {
|
|
|
22
22
|
header?: (props: {
|
|
23
23
|
titleId: typeof titleId;
|
|
24
24
|
close: typeof onCloseClick;
|
|
25
|
-
title: BaseDialogProps[
|
|
25
|
+
title: BaseDialogProps['title'];
|
|
26
26
|
}) => any;
|
|
27
27
|
title?: (props: {
|
|
28
|
-
text: BaseDialogProps[
|
|
28
|
+
text: BaseDialogProps['title'];
|
|
29
29
|
}) => any;
|
|
30
30
|
close?: (props: {
|
|
31
|
-
text: BaseDialogProps[
|
|
31
|
+
text: BaseDialogProps['closeLabel'];
|
|
32
32
|
}) => any;
|
|
33
33
|
description?: (props: {
|
|
34
34
|
descriptionId: typeof descriptionId;
|
|
35
|
-
text: BaseDialogProps[
|
|
35
|
+
text: BaseDialogProps['description'];
|
|
36
36
|
}) => any;
|
|
37
37
|
default?: (props: {}) => any;
|
|
38
38
|
footer?: (props: {}) => any;
|
|
39
39
|
};
|
|
40
40
|
export type BaseDialogEvents = {
|
|
41
|
-
(e:
|
|
42
|
-
(e:
|
|
43
|
-
(e:
|
|
41
|
+
(e: 'shown'): void;
|
|
42
|
+
(e: 'hidden'): void;
|
|
43
|
+
(e: 'update:modelValue', value: boolean): void;
|
|
44
44
|
};
|
|
45
45
|
declare const titleId: string;
|
|
46
46
|
declare const descriptionId: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
1
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
2
|
export type BaseInputContainerProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.
|
|
5
5
|
*/
|
|
6
|
-
direction?:
|
|
6
|
+
direction?: 'horizontal' | 'vertical' | 'auto' | string;
|
|
7
7
|
/**
|
|
8
8
|
* Can be a string or an array of string containing the messages to display.
|
|
9
9
|
*/
|
|
@@ -20,11 +20,11 @@ export type BaseInputContainerProps = {
|
|
|
20
20
|
/**
|
|
21
21
|
* The identifier of the component.
|
|
22
22
|
*/
|
|
23
|
-
id?: HTMLAttributes[
|
|
23
|
+
id?: HTMLAttributes['id'];
|
|
24
24
|
/**
|
|
25
25
|
* Sets the slignment of the input. Since inputs are inline block they can be aligned just as text can.
|
|
26
26
|
*/
|
|
27
|
-
inputPosition?:
|
|
27
|
+
inputPosition?: 'left' | 'center' | 'right';
|
|
28
28
|
/**
|
|
29
29
|
* Text content of the label of the element.
|
|
30
30
|
*/
|
|
@@ -32,7 +32,7 @@ export type BaseInputContainerProps = {
|
|
|
32
32
|
/**
|
|
33
33
|
* Sets the text alignment of the label.
|
|
34
34
|
*/
|
|
35
|
-
labelPosition?:
|
|
35
|
+
labelPosition?: 'left' | 'center' | 'right';
|
|
36
36
|
/**
|
|
37
37
|
* Defines the HTML tag of the label element.
|
|
38
38
|
* Usually is a `label` but for certain component like checkboxes
|
|
@@ -47,7 +47,7 @@ export type BaseInputContainerProps = {
|
|
|
47
47
|
/**
|
|
48
48
|
* Defines the name of the input.
|
|
49
49
|
*/
|
|
50
|
-
name?: InputHTMLAttributes[
|
|
50
|
+
name?: InputHTMLAttributes['name'];
|
|
51
51
|
/**
|
|
52
52
|
* Reverses the layout. Applicable in every direction the order of the label and the input is swapped.
|
|
53
53
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
1
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
2
|
export type BaseNumberInputProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Guides to the browser as to the type of information expected in the field.
|
|
5
5
|
*/
|
|
6
|
-
autocomplete?: InputHTMLAttributes[
|
|
6
|
+
autocomplete?: InputHTMLAttributes['autocomplete'];
|
|
7
7
|
/**
|
|
8
8
|
* Sets autofocus on page load.
|
|
9
9
|
*/
|
|
10
|
-
autofocus?: InputHTMLAttributes[
|
|
10
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
11
11
|
/**
|
|
12
12
|
* Disables the component
|
|
13
13
|
*/
|
|
@@ -20,7 +20,7 @@ export type BaseNumberInputProps = {
|
|
|
20
20
|
/**
|
|
21
21
|
* The identifier of the component.
|
|
22
22
|
*/
|
|
23
|
-
id?: HTMLAttributes[
|
|
23
|
+
id?: HTMLAttributes['id'];
|
|
24
24
|
/**
|
|
25
25
|
* Maximum value cap
|
|
26
26
|
*/
|
|
@@ -36,15 +36,15 @@ export type BaseNumberInputProps = {
|
|
|
36
36
|
/**
|
|
37
37
|
* Defines the name of the input.
|
|
38
38
|
*/
|
|
39
|
-
name?: InputHTMLAttributes[
|
|
39
|
+
name?: InputHTMLAttributes['name'];
|
|
40
40
|
/**
|
|
41
41
|
* String displayed when there's no data.
|
|
42
42
|
*/
|
|
43
|
-
placeholder?: InputHTMLAttributes[
|
|
43
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
44
44
|
/**
|
|
45
45
|
* Sets the input in a readonly state.
|
|
46
46
|
*/
|
|
47
|
-
readonly?: InputHTMLAttributes[
|
|
47
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
48
48
|
/**
|
|
49
49
|
* Incremental unit used in the exposed `increase`
|
|
50
50
|
* and `decrease` function. It's NOT APPLIED to manual input as a step of 5
|
|
@@ -53,24 +53,24 @@ export type BaseNumberInputProps = {
|
|
|
53
53
|
step?: number;
|
|
54
54
|
};
|
|
55
55
|
export type BaseNumberInputEvents = {
|
|
56
|
-
(e:
|
|
57
|
-
(e:
|
|
58
|
-
(e:
|
|
59
|
-
(e:
|
|
60
|
-
(e:
|
|
61
|
-
(e:
|
|
62
|
-
(e:
|
|
63
|
-
(e:
|
|
64
|
-
(e:
|
|
65
|
-
(e:
|
|
66
|
-
(e:
|
|
56
|
+
(e: 'blur', event: FocusEvent): void;
|
|
57
|
+
(e: 'change', event: Event): void;
|
|
58
|
+
(e: 'click', event: MouseEvent): void;
|
|
59
|
+
(e: 'decrease', value: number): void;
|
|
60
|
+
(e: 'focus', event: FocusEvent): void;
|
|
61
|
+
(e: 'increase', value: number): void;
|
|
62
|
+
(e: 'input', event: Event): void;
|
|
63
|
+
(e: 'keydown', event: KeyboardEvent): void;
|
|
64
|
+
(e: 'mousedown', event: MouseEvent): void;
|
|
65
|
+
(e: 'mouseup', event: MouseEvent): void;
|
|
66
|
+
(e: 'update:modelValue', value: number | null): void;
|
|
67
67
|
};
|
|
68
68
|
export type BaseNumberInputSlots = {
|
|
69
69
|
append?: (props: {
|
|
70
70
|
increase: typeof increase;
|
|
71
71
|
decrease: typeof decrease;
|
|
72
72
|
}) => any;
|
|
73
|
-
|
|
73
|
+
'append-outer'?: (props: {
|
|
74
74
|
increase: typeof increase;
|
|
75
75
|
decrease: typeof decrease;
|
|
76
76
|
}) => any;
|
|
@@ -78,7 +78,7 @@ export type BaseNumberInputSlots = {
|
|
|
78
78
|
increase: typeof increase;
|
|
79
79
|
decrease: typeof decrease;
|
|
80
80
|
}) => any;
|
|
81
|
-
|
|
81
|
+
'prepend-outer'?: (props: {
|
|
82
82
|
increase: typeof increase;
|
|
83
83
|
decrease: typeof decrease;
|
|
84
84
|
}) => any;
|