@hbdlzy/ui-core 0.1.1 → 0.1.3
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/README.md +37 -2
- package/components.manifest.json +198 -161
- package/dist/components/BaseCard/BaseCard.types.d.ts +36 -0
- package/dist/components/BaseCard/BaseCard.vue.d.ts +122 -0
- package/dist/components/BaseCard/index.d.ts +3 -0
- package/dist/components/BaseEChart/BaseEChart.types.d.ts +26 -0
- package/dist/components/BaseEChart/BaseEChart.vue.d.ts +66 -0
- package/dist/components/BaseEChart/index.d.ts +3 -0
- package/dist/components/BaseExportButton/BaseExportButton.types.d.ts +21 -0
- package/dist/components/BaseExportButton/BaseExportButton.utils.d.ts +4 -0
- package/dist/components/BaseExportButton/BaseExportButton.vue.d.ts +128 -0
- package/dist/components/BaseExportButton/index.d.ts +5 -0
- package/dist/components/BaseTable/BaseTable.types.d.ts +163 -0
- package/dist/components/BaseTable/BaseTable.vue.d.ts +157 -0
- package/dist/components/BaseTable/index.d.ts +3 -0
- package/dist/components/OutlinedCascader/OutlinedCascader.types.d.ts +25 -0
- package/dist/components/OutlinedCascader/OutlinedCascader.vue.d.ts +85 -0
- package/dist/components/OutlinedCascader/index.d.ts +3 -0
- package/dist/components/OutlinedDatePicker/OutlinedDatePicker.types.d.ts +27 -0
- package/dist/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +88 -0
- package/dist/components/OutlinedDatePicker/index.d.ts +3 -0
- package/dist/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.d.ts +26 -0
- package/dist/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +97 -0
- package/dist/components/OutlinedDateTimePicker/index.d.ts +3 -0
- package/dist/components/OutlinedInput/OutlinedInput.types.d.ts +29 -0
- package/dist/components/OutlinedInput/OutlinedInput.vue.d.ts +97 -0
- package/dist/components/OutlinedInput/index.d.ts +3 -0
- package/dist/components/OutlinedSelect/OutlinedSelect.types.d.ts +38 -0
- package/dist/components/OutlinedSelect/OutlinedSelect.vue.d.ts +116 -0
- package/dist/components/OutlinedSelect/index.d.ts +3 -0
- package/dist/components/OutlinedTimePicker/OutlinedTimePicker.types.d.ts +28 -0
- package/dist/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +94 -0
- package/dist/components/OutlinedTimePicker/index.d.ts +3 -0
- package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.types.d.ts +46 -0
- package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +137 -0
- package/dist/components/OutlinedTreeSelect/index.d.ts +3 -0
- package/dist/echarts/index.d.ts +9 -0
- package/dist/excel/exportExcel.d.ts +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +26 -0
- package/dist/index.js +2181 -41
- package/dist/style.css +1 -1
- package/package.json +6 -4
- package/src/components/BaseCard/BaseCard.types.d.ts +36 -0
- package/src/components/BaseCard/BaseCard.vue.d.ts +122 -0
- package/src/components/BaseCard/index.d.ts +3 -0
- package/src/components/BaseEChart/BaseEChart.types.d.ts +26 -0
- package/src/components/BaseEChart/BaseEChart.vue.d.ts +66 -0
- package/src/components/BaseEChart/index.d.ts +3 -0
- package/src/components/BaseExportButton/BaseExportButton.types.d.ts +21 -0
- package/src/components/BaseExportButton/BaseExportButton.utils.d.ts +4 -0
- package/src/components/BaseExportButton/BaseExportButton.vue.d.ts +128 -0
- package/src/components/BaseExportButton/index.d.ts +5 -0
- package/src/components/BaseTable/BaseTable.types.d.ts +163 -0
- package/src/components/BaseTable/BaseTable.types.ts +12 -0
- package/src/components/BaseTable/BaseTable.vue +412 -13
- package/src/components/BaseTable/BaseTable.vue.d.ts +157 -0
- package/src/components/BaseTable/README.md +106 -120
- package/src/components/BaseTable/index.d.ts +3 -0
- package/src/components/OutlinedCascader/OutlinedCascader.types.d.ts +25 -0
- package/src/components/OutlinedCascader/OutlinedCascader.types.ts +28 -0
- package/src/components/OutlinedCascader/OutlinedCascader.vue +250 -0
- package/src/components/OutlinedCascader/OutlinedCascader.vue.d.ts +85 -0
- package/src/components/OutlinedCascader/README.md +91 -0
- package/src/components/OutlinedCascader/index.d.ts +3 -0
- package/src/components/OutlinedCascader/index.ts +10 -0
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.types.d.ts +27 -0
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.types.ts +40 -0
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.vue +365 -0
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +88 -0
- package/src/components/OutlinedDatePicker/README.md +137 -0
- package/src/components/OutlinedDatePicker/index.d.ts +3 -0
- package/src/components/OutlinedDatePicker/index.ts +11 -0
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.d.ts +26 -0
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.ts +34 -0
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue +421 -0
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +97 -0
- package/src/components/OutlinedDateTimePicker/README.md +88 -0
- package/src/components/OutlinedDateTimePicker/index.d.ts +3 -0
- package/src/components/OutlinedDateTimePicker/index.ts +11 -0
- package/src/components/OutlinedInput/OutlinedInput.types.d.ts +29 -0
- package/src/components/OutlinedInput/OutlinedInput.types.ts +32 -0
- package/src/components/OutlinedInput/OutlinedInput.vue +307 -0
- package/src/components/OutlinedInput/OutlinedInput.vue.d.ts +97 -0
- package/src/components/OutlinedInput/README.md +154 -0
- package/src/components/OutlinedInput/index.d.ts +3 -0
- package/src/components/OutlinedInput/index.ts +10 -0
- package/src/components/OutlinedSelect/OutlinedSelect.types.d.ts +38 -0
- package/src/components/OutlinedSelect/OutlinedSelect.types.ts +48 -0
- package/src/components/OutlinedSelect/OutlinedSelect.vue +359 -0
- package/src/components/OutlinedSelect/OutlinedSelect.vue.d.ts +116 -0
- package/src/components/OutlinedSelect/README.md +166 -0
- package/src/components/OutlinedSelect/index.d.ts +3 -0
- package/src/components/OutlinedSelect/index.ts +12 -0
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.types.d.ts +28 -0
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.types.ts +36 -0
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.vue +303 -0
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +94 -0
- package/src/components/OutlinedTimePicker/README.md +93 -0
- package/src/components/OutlinedTimePicker/index.d.ts +3 -0
- package/src/components/OutlinedTimePicker/index.ts +10 -0
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.types.d.ts +46 -0
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.types.ts +56 -0
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.vue +354 -0
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +137 -0
- package/src/components/OutlinedTreeSelect/README.md +107 -0
- package/src/components/OutlinedTreeSelect/index.d.ts +3 -0
- package/src/components/OutlinedTreeSelect/index.ts +12 -0
- package/src/echarts/index.d.ts +9 -0
- package/src/echarts/index.ts +13 -8
- package/src/excel/exportExcel.d.ts +18 -0
- package/src/index.d.ts +26 -0
- package/src/index.ts +14 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { OutlinedCascaderCssValue, OutlinedCascaderProps, OutlinedCascaderValue } from './OutlinedCascader.types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedCascaderProps>, {
|
|
3
|
+
value: () => never[];
|
|
4
|
+
options: () => never[];
|
|
5
|
+
clearable: boolean;
|
|
6
|
+
propsValue: undefined;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
label: string;
|
|
9
|
+
popperClass: string;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
inputHeight: number;
|
|
12
|
+
isBorder: boolean;
|
|
13
|
+
filterable: boolean;
|
|
14
|
+
levels: boolean;
|
|
15
|
+
marginBottom: number;
|
|
16
|
+
paddingTop: number;
|
|
17
|
+
}>>, {
|
|
18
|
+
focus: () => void;
|
|
19
|
+
blur: () => void;
|
|
20
|
+
togglePopperVisible: () => void;
|
|
21
|
+
clear: () => void;
|
|
22
|
+
getCascaderRef: () => unknown;
|
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
input: (value: OutlinedCascaderValue) => void;
|
|
25
|
+
"update:value": (value: OutlinedCascaderValue) => void;
|
|
26
|
+
change: (value: OutlinedCascaderValue) => void;
|
|
27
|
+
focus: (value: FocusEvent) => void;
|
|
28
|
+
blur: (value: FocusEvent) => void;
|
|
29
|
+
"visible-change": (value: boolean) => void;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedCascaderProps>, {
|
|
31
|
+
value: () => never[];
|
|
32
|
+
options: () => never[];
|
|
33
|
+
clearable: boolean;
|
|
34
|
+
propsValue: undefined;
|
|
35
|
+
placeholder: string;
|
|
36
|
+
label: string;
|
|
37
|
+
popperClass: string;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
inputHeight: number;
|
|
40
|
+
isBorder: boolean;
|
|
41
|
+
filterable: boolean;
|
|
42
|
+
levels: boolean;
|
|
43
|
+
marginBottom: number;
|
|
44
|
+
paddingTop: number;
|
|
45
|
+
}>>> & Readonly<{
|
|
46
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
47
|
+
onChange?: ((value: OutlinedCascaderValue) => any) | undefined;
|
|
48
|
+
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
49
|
+
onInput?: ((value: OutlinedCascaderValue) => any) | undefined;
|
|
50
|
+
"onUpdate:value"?: ((value: OutlinedCascaderValue) => any) | undefined;
|
|
51
|
+
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
52
|
+
}>, {
|
|
53
|
+
label: string;
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
value: OutlinedCascaderValue;
|
|
56
|
+
options: Record<string, unknown>[];
|
|
57
|
+
popperClass: string;
|
|
58
|
+
placeholder: string;
|
|
59
|
+
clearable: boolean;
|
|
60
|
+
propsValue: Record<string, unknown>;
|
|
61
|
+
inputHeight: number;
|
|
62
|
+
isBorder: boolean;
|
|
63
|
+
filterable: boolean;
|
|
64
|
+
levels: boolean;
|
|
65
|
+
marginBottom: OutlinedCascaderCssValue;
|
|
66
|
+
paddingTop: OutlinedCascaderCssValue;
|
|
67
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
68
|
+
export default _default;
|
|
69
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
70
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
71
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
72
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
73
|
+
} : {
|
|
74
|
+
type: import('vue').PropType<T[K]>;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
type __VLS_WithDefaults<P, D> = {
|
|
79
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
80
|
+
default: D[K];
|
|
81
|
+
}> : P[K];
|
|
82
|
+
};
|
|
83
|
+
type __VLS_Prettify<T> = {
|
|
84
|
+
[K in keyof T]: T[K];
|
|
85
|
+
} & {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type OutlinedDatePickerCssValue = string | number;
|
|
2
|
+
export type OutlinedDatePickerValue = string | number | Date | Array<string | number | Date> | null;
|
|
3
|
+
export type OutlinedDatePickerDisabledDate = string | number | Date | ((date: Date) => boolean);
|
|
4
|
+
export interface OutlinedDatePickerProps {
|
|
5
|
+
value?: OutlinedDatePickerValue;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
timeValue?: boolean;
|
|
10
|
+
typeDate?: string;
|
|
11
|
+
format?: string;
|
|
12
|
+
valueFormat?: string;
|
|
13
|
+
showPassword?: boolean;
|
|
14
|
+
multiple?: boolean;
|
|
15
|
+
inputHeight?: number;
|
|
16
|
+
isBorder?: boolean;
|
|
17
|
+
disabledDate?: OutlinedDatePickerDisabledDate;
|
|
18
|
+
marginBottom?: OutlinedDatePickerCssValue;
|
|
19
|
+
paddingTop?: OutlinedDatePickerCssValue;
|
|
20
|
+
}
|
|
21
|
+
export interface OutlinedDatePickerExpose {
|
|
22
|
+
focus: () => void;
|
|
23
|
+
blur: () => void;
|
|
24
|
+
handleOpen: () => void;
|
|
25
|
+
handleClose: () => void;
|
|
26
|
+
getPickerRef: () => unknown | null;
|
|
27
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { OutlinedDatePickerCssValue, OutlinedDatePickerDisabledDate, OutlinedDatePickerProps, OutlinedDatePickerValue } from './OutlinedDatePicker.types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedDatePickerProps>, {
|
|
3
|
+
value: string;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
timeValue: boolean;
|
|
8
|
+
typeDate: string;
|
|
9
|
+
format: string;
|
|
10
|
+
valueFormat: string;
|
|
11
|
+
showPassword: boolean;
|
|
12
|
+
multiple: boolean;
|
|
13
|
+
inputHeight: number;
|
|
14
|
+
isBorder: boolean;
|
|
15
|
+
disabledDate: undefined;
|
|
16
|
+
marginBottom: number;
|
|
17
|
+
paddingTop: number;
|
|
18
|
+
}>>, {
|
|
19
|
+
focus: () => void;
|
|
20
|
+
blur: () => void;
|
|
21
|
+
handleOpen: () => void;
|
|
22
|
+
handleClose: () => void;
|
|
23
|
+
getPickerRef: () => unknown;
|
|
24
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
input: (value: OutlinedDatePickerValue) => void;
|
|
26
|
+
"update:value": (value: OutlinedDatePickerValue) => void;
|
|
27
|
+
change: (value: OutlinedDatePickerValue) => void;
|
|
28
|
+
focus: (value: FocusEvent) => void;
|
|
29
|
+
blur: (value: FocusEvent) => void;
|
|
30
|
+
"visible-change": (value: boolean) => void;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedDatePickerProps>, {
|
|
32
|
+
value: string;
|
|
33
|
+
placeholder: string;
|
|
34
|
+
label: string;
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
timeValue: boolean;
|
|
37
|
+
typeDate: string;
|
|
38
|
+
format: string;
|
|
39
|
+
valueFormat: string;
|
|
40
|
+
showPassword: boolean;
|
|
41
|
+
multiple: boolean;
|
|
42
|
+
inputHeight: number;
|
|
43
|
+
isBorder: boolean;
|
|
44
|
+
disabledDate: undefined;
|
|
45
|
+
marginBottom: number;
|
|
46
|
+
paddingTop: number;
|
|
47
|
+
}>>> & Readonly<{
|
|
48
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
49
|
+
onChange?: ((value: OutlinedDatePickerValue) => any) | undefined;
|
|
50
|
+
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
51
|
+
onInput?: ((value: OutlinedDatePickerValue) => any) | undefined;
|
|
52
|
+
"onUpdate:value"?: ((value: OutlinedDatePickerValue) => any) | undefined;
|
|
53
|
+
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
54
|
+
}>, {
|
|
55
|
+
label: string;
|
|
56
|
+
disabled: boolean;
|
|
57
|
+
value: OutlinedDatePickerValue;
|
|
58
|
+
placeholder: string;
|
|
59
|
+
inputHeight: number;
|
|
60
|
+
isBorder: boolean;
|
|
61
|
+
marginBottom: OutlinedDatePickerCssValue;
|
|
62
|
+
paddingTop: OutlinedDatePickerCssValue;
|
|
63
|
+
multiple: boolean;
|
|
64
|
+
timeValue: boolean;
|
|
65
|
+
typeDate: string;
|
|
66
|
+
format: string;
|
|
67
|
+
valueFormat: string;
|
|
68
|
+
showPassword: boolean;
|
|
69
|
+
disabledDate: OutlinedDatePickerDisabledDate;
|
|
70
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
71
|
+
export default _default;
|
|
72
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
73
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
74
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
75
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
76
|
+
} : {
|
|
77
|
+
type: import('vue').PropType<T[K]>;
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
type __VLS_WithDefaults<P, D> = {
|
|
82
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
83
|
+
default: D[K];
|
|
84
|
+
}> : P[K];
|
|
85
|
+
};
|
|
86
|
+
type __VLS_Prettify<T> = {
|
|
87
|
+
[K in keyof T]: T[K];
|
|
88
|
+
} & {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import OutlinedDatePicker from './OutlinedDatePicker.vue';
|
|
2
|
+
export default OutlinedDatePicker;
|
|
3
|
+
export type { OutlinedDatePickerCssValue, OutlinedDatePickerDisabledDate, OutlinedDatePickerExpose, OutlinedDatePickerProps, OutlinedDatePickerValue } from './OutlinedDatePicker.types';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type OutlinedDateTimePickerCssValue = string | number;
|
|
2
|
+
export type OutlinedDateTimePickerValue = string;
|
|
3
|
+
export type OutlinedDateTimePickerDisabledDate = string | number | Date | ((date: Date) => boolean);
|
|
4
|
+
export interface OutlinedDateTimePickerProps {
|
|
5
|
+
value?: OutlinedDateTimePickerValue;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
inputHeight?: number;
|
|
9
|
+
isBorder?: boolean;
|
|
10
|
+
disabledDate?: OutlinedDateTimePickerDisabledDate;
|
|
11
|
+
separatorText?: string;
|
|
12
|
+
timePlaceholder?: string;
|
|
13
|
+
clearable?: boolean;
|
|
14
|
+
marginBottom?: OutlinedDateTimePickerCssValue;
|
|
15
|
+
paddingTop?: OutlinedDateTimePickerCssValue;
|
|
16
|
+
}
|
|
17
|
+
export interface OutlinedDateTimePickerExpose {
|
|
18
|
+
focusDate: () => void;
|
|
19
|
+
focusTime: () => void;
|
|
20
|
+
blurDate: () => void;
|
|
21
|
+
blurTime: () => void;
|
|
22
|
+
openDatePanel: () => void;
|
|
23
|
+
openTimePanel: () => void;
|
|
24
|
+
getDatePickerRef: () => unknown | null;
|
|
25
|
+
getTimePickerRef: () => unknown | null;
|
|
26
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { OutlinedDateTimePickerCssValue, OutlinedDateTimePickerDisabledDate, OutlinedDateTimePickerProps } from './OutlinedDateTimePicker.types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedDateTimePickerProps>, {
|
|
3
|
+
value: string;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
label: string;
|
|
6
|
+
inputHeight: number;
|
|
7
|
+
isBorder: boolean;
|
|
8
|
+
disabledDate: undefined;
|
|
9
|
+
separatorText: string;
|
|
10
|
+
timePlaceholder: string;
|
|
11
|
+
clearable: boolean;
|
|
12
|
+
marginBottom: number;
|
|
13
|
+
paddingTop: number;
|
|
14
|
+
}>>, {
|
|
15
|
+
focusDate: () => void;
|
|
16
|
+
focusTime: () => void;
|
|
17
|
+
blurDate: () => void;
|
|
18
|
+
blurTime: () => void;
|
|
19
|
+
openDatePanel: () => void;
|
|
20
|
+
openTimePanel: () => void;
|
|
21
|
+
getDatePickerRef: () => unknown;
|
|
22
|
+
getTimePickerRef: () => unknown;
|
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
input: (value: string) => void;
|
|
25
|
+
"update:value": (value: string) => void;
|
|
26
|
+
change: (value: string) => void;
|
|
27
|
+
focus: (payload: {
|
|
28
|
+
field: "time" | "date";
|
|
29
|
+
event: FocusEvent;
|
|
30
|
+
}) => void;
|
|
31
|
+
blur: (payload: {
|
|
32
|
+
field: "time" | "date";
|
|
33
|
+
event: FocusEvent;
|
|
34
|
+
}) => void;
|
|
35
|
+
"visible-change": (payload: {
|
|
36
|
+
field: "time" | "date";
|
|
37
|
+
visible: boolean;
|
|
38
|
+
}) => void;
|
|
39
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedDateTimePickerProps>, {
|
|
40
|
+
value: string;
|
|
41
|
+
placeholder: string;
|
|
42
|
+
label: string;
|
|
43
|
+
inputHeight: number;
|
|
44
|
+
isBorder: boolean;
|
|
45
|
+
disabledDate: undefined;
|
|
46
|
+
separatorText: string;
|
|
47
|
+
timePlaceholder: string;
|
|
48
|
+
clearable: boolean;
|
|
49
|
+
marginBottom: number;
|
|
50
|
+
paddingTop: number;
|
|
51
|
+
}>>> & Readonly<{
|
|
52
|
+
onBlur?: ((payload: {
|
|
53
|
+
field: "time" | "date";
|
|
54
|
+
event: FocusEvent;
|
|
55
|
+
}) => any) | undefined;
|
|
56
|
+
onChange?: ((value: string) => any) | undefined;
|
|
57
|
+
onFocus?: ((payload: {
|
|
58
|
+
field: "time" | "date";
|
|
59
|
+
event: FocusEvent;
|
|
60
|
+
}) => any) | undefined;
|
|
61
|
+
onInput?: ((value: string) => any) | undefined;
|
|
62
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
63
|
+
"onVisible-change"?: ((payload: {
|
|
64
|
+
field: "time" | "date";
|
|
65
|
+
visible: boolean;
|
|
66
|
+
}) => any) | undefined;
|
|
67
|
+
}>, {
|
|
68
|
+
label: string;
|
|
69
|
+
value: string;
|
|
70
|
+
placeholder: string;
|
|
71
|
+
clearable: boolean;
|
|
72
|
+
inputHeight: number;
|
|
73
|
+
isBorder: boolean;
|
|
74
|
+
marginBottom: OutlinedDateTimePickerCssValue;
|
|
75
|
+
paddingTop: OutlinedDateTimePickerCssValue;
|
|
76
|
+
disabledDate: OutlinedDateTimePickerDisabledDate;
|
|
77
|
+
separatorText: string;
|
|
78
|
+
timePlaceholder: string;
|
|
79
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
80
|
+
export default _default;
|
|
81
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
82
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
83
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
84
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
85
|
+
} : {
|
|
86
|
+
type: import('vue').PropType<T[K]>;
|
|
87
|
+
required: true;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
type __VLS_WithDefaults<P, D> = {
|
|
91
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
92
|
+
default: D[K];
|
|
93
|
+
}> : P[K];
|
|
94
|
+
};
|
|
95
|
+
type __VLS_Prettify<T> = {
|
|
96
|
+
[K in keyof T]: T[K];
|
|
97
|
+
} & {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import OutlinedDateTimePicker from './OutlinedDateTimePicker.vue';
|
|
2
|
+
export default OutlinedDateTimePicker;
|
|
3
|
+
export type { OutlinedDateTimePickerCssValue, OutlinedDateTimePickerDisabledDate, OutlinedDateTimePickerExpose, OutlinedDateTimePickerProps, OutlinedDateTimePickerValue } from './OutlinedDateTimePicker.types';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type OutlinedInputValue = string | number;
|
|
2
|
+
export type OutlinedInputCssValue = string | number;
|
|
3
|
+
export interface OutlinedInputProps {
|
|
4
|
+
value?: OutlinedInputValue;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
regex?: RegExp;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
maxlength?: string | number;
|
|
10
|
+
max?: string | number;
|
|
11
|
+
min?: string | number;
|
|
12
|
+
typeInput?: string;
|
|
13
|
+
showPassword?: boolean;
|
|
14
|
+
isNumber?: boolean;
|
|
15
|
+
inputHeight?: number;
|
|
16
|
+
isBorder?: boolean;
|
|
17
|
+
suffixText?: string;
|
|
18
|
+
clearable?: boolean;
|
|
19
|
+
showWordLimit?: boolean;
|
|
20
|
+
marginBottom?: OutlinedInputCssValue;
|
|
21
|
+
paddingTop?: OutlinedInputCssValue;
|
|
22
|
+
}
|
|
23
|
+
export interface OutlinedInputExpose {
|
|
24
|
+
focus: () => void;
|
|
25
|
+
blur: () => void;
|
|
26
|
+
clear: () => void;
|
|
27
|
+
select: () => void;
|
|
28
|
+
getInputRef: () => unknown | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { OutlinedInputCssValue, OutlinedInputProps, OutlinedInputValue } from './OutlinedInput.types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedInputProps>, {
|
|
3
|
+
value: string;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
label: string;
|
|
7
|
+
typeInput: string;
|
|
8
|
+
showPassword: boolean;
|
|
9
|
+
isNumber: boolean;
|
|
10
|
+
inputHeight: number;
|
|
11
|
+
isBorder: boolean;
|
|
12
|
+
suffixText: string;
|
|
13
|
+
clearable: boolean;
|
|
14
|
+
showWordLimit: boolean;
|
|
15
|
+
marginBottom: number;
|
|
16
|
+
paddingTop: number;
|
|
17
|
+
}>>, {
|
|
18
|
+
focus: () => void;
|
|
19
|
+
blur: () => void;
|
|
20
|
+
clear: () => void;
|
|
21
|
+
select: () => void;
|
|
22
|
+
getInputRef: () => unknown;
|
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
input: (value: OutlinedInputValue) => void;
|
|
25
|
+
"update:value": (value: OutlinedInputValue) => void;
|
|
26
|
+
warning: (value: string) => void;
|
|
27
|
+
focus: (value: FocusEvent) => void;
|
|
28
|
+
blur: (value: FocusEvent) => void;
|
|
29
|
+
change: (value: OutlinedInputValue) => void;
|
|
30
|
+
clear: () => void;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedInputProps>, {
|
|
32
|
+
value: string;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
placeholder: string;
|
|
35
|
+
label: string;
|
|
36
|
+
typeInput: string;
|
|
37
|
+
showPassword: boolean;
|
|
38
|
+
isNumber: boolean;
|
|
39
|
+
inputHeight: number;
|
|
40
|
+
isBorder: boolean;
|
|
41
|
+
suffixText: string;
|
|
42
|
+
clearable: boolean;
|
|
43
|
+
showWordLimit: boolean;
|
|
44
|
+
marginBottom: number;
|
|
45
|
+
paddingTop: number;
|
|
46
|
+
}>>> & Readonly<{
|
|
47
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
48
|
+
onChange?: ((value: OutlinedInputValue) => any) | undefined;
|
|
49
|
+
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
50
|
+
onInput?: ((value: OutlinedInputValue) => any) | undefined;
|
|
51
|
+
onClear?: (() => any) | undefined;
|
|
52
|
+
onWarning?: ((value: string) => any) | undefined;
|
|
53
|
+
"onUpdate:value"?: ((value: OutlinedInputValue) => any) | undefined;
|
|
54
|
+
}>, {
|
|
55
|
+
label: string;
|
|
56
|
+
disabled: boolean;
|
|
57
|
+
value: OutlinedInputValue;
|
|
58
|
+
placeholder: string;
|
|
59
|
+
clearable: boolean;
|
|
60
|
+
inputHeight: number;
|
|
61
|
+
isBorder: boolean;
|
|
62
|
+
marginBottom: OutlinedInputCssValue;
|
|
63
|
+
paddingTop: OutlinedInputCssValue;
|
|
64
|
+
showPassword: boolean;
|
|
65
|
+
typeInput: string;
|
|
66
|
+
isNumber: boolean;
|
|
67
|
+
suffixText: string;
|
|
68
|
+
showWordLimit: boolean;
|
|
69
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
70
|
+
prefix?(_: {}): any;
|
|
71
|
+
prepend?(_: {}): any;
|
|
72
|
+
append?(_: {}): any;
|
|
73
|
+
suffix?(_: {}): any;
|
|
74
|
+
}>;
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
77
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
78
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
79
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
80
|
+
} : {
|
|
81
|
+
type: import('vue').PropType<T[K]>;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
type __VLS_WithDefaults<P, D> = {
|
|
86
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
87
|
+
default: D[K];
|
|
88
|
+
}> : P[K];
|
|
89
|
+
};
|
|
90
|
+
type __VLS_Prettify<T> = {
|
|
91
|
+
[K in keyof T]: T[K];
|
|
92
|
+
} & {};
|
|
93
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
94
|
+
new (): {
|
|
95
|
+
$slots: S;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type OutlinedSelectCssValue = string | number;
|
|
2
|
+
export type OutlinedSelectOptionValue = string | number | boolean | Record<string, unknown> | null;
|
|
3
|
+
export type OutlinedSelectValue = OutlinedSelectOptionValue | OutlinedSelectOptionValue[];
|
|
4
|
+
export interface OutlinedSelectOption {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: OutlinedSelectOptionValue;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface OutlinedSelectProps {
|
|
11
|
+
value?: OutlinedSelectValue;
|
|
12
|
+
options?: OutlinedSelectOption[];
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
typeInput?: string;
|
|
17
|
+
showPassword?: boolean;
|
|
18
|
+
collapseTags?: boolean;
|
|
19
|
+
collapseTagsTooltip?: boolean;
|
|
20
|
+
filterable?: boolean;
|
|
21
|
+
clearable?: boolean;
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
inputHeight?: number;
|
|
24
|
+
isBorder?: boolean;
|
|
25
|
+
keyValue?: string;
|
|
26
|
+
labelValue?: string;
|
|
27
|
+
noCheck?: boolean;
|
|
28
|
+
maxCollapseTags?: number;
|
|
29
|
+
marginBottom?: OutlinedSelectCssValue;
|
|
30
|
+
paddingTop?: OutlinedSelectCssValue;
|
|
31
|
+
}
|
|
32
|
+
export interface OutlinedSelectExpose {
|
|
33
|
+
focus: () => void;
|
|
34
|
+
blur: () => void;
|
|
35
|
+
clear: () => void;
|
|
36
|
+
toggleMenu: () => void;
|
|
37
|
+
getSelectRef: () => unknown | null;
|
|
38
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { OutlinedSelectCssValue, OutlinedSelectOption, OutlinedSelectProps, OutlinedSelectValue } from './OutlinedSelect.types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedSelectProps>, {
|
|
3
|
+
value: undefined;
|
|
4
|
+
options: () => never[];
|
|
5
|
+
placeholder: string;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
typeInput: string;
|
|
9
|
+
showPassword: boolean;
|
|
10
|
+
collapseTags: boolean;
|
|
11
|
+
collapseTagsTooltip: boolean;
|
|
12
|
+
filterable: boolean;
|
|
13
|
+
clearable: boolean;
|
|
14
|
+
multiple: boolean;
|
|
15
|
+
inputHeight: number;
|
|
16
|
+
isBorder: boolean;
|
|
17
|
+
keyValue: string;
|
|
18
|
+
labelValue: string;
|
|
19
|
+
noCheck: boolean;
|
|
20
|
+
maxCollapseTags: number;
|
|
21
|
+
marginBottom: number;
|
|
22
|
+
paddingTop: number;
|
|
23
|
+
}>>, {
|
|
24
|
+
focus: () => void;
|
|
25
|
+
blur: () => void;
|
|
26
|
+
clear: () => void;
|
|
27
|
+
toggleMenu: () => void;
|
|
28
|
+
getSelectRef: () => unknown;
|
|
29
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
input: (value: OutlinedSelectValue) => void;
|
|
31
|
+
"update:value": (value: OutlinedSelectValue) => void;
|
|
32
|
+
change: (value: OutlinedSelectValue) => void;
|
|
33
|
+
focus: (value: FocusEvent) => void;
|
|
34
|
+
blur: (value: FocusEvent) => void;
|
|
35
|
+
"visible-change": (value: boolean) => void;
|
|
36
|
+
clear: () => void;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedSelectProps>, {
|
|
38
|
+
value: undefined;
|
|
39
|
+
options: () => never[];
|
|
40
|
+
placeholder: string;
|
|
41
|
+
label: string;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
typeInput: string;
|
|
44
|
+
showPassword: boolean;
|
|
45
|
+
collapseTags: boolean;
|
|
46
|
+
collapseTagsTooltip: boolean;
|
|
47
|
+
filterable: boolean;
|
|
48
|
+
clearable: boolean;
|
|
49
|
+
multiple: boolean;
|
|
50
|
+
inputHeight: number;
|
|
51
|
+
isBorder: boolean;
|
|
52
|
+
keyValue: string;
|
|
53
|
+
labelValue: string;
|
|
54
|
+
noCheck: boolean;
|
|
55
|
+
maxCollapseTags: number;
|
|
56
|
+
marginBottom: number;
|
|
57
|
+
paddingTop: number;
|
|
58
|
+
}>>> & Readonly<{
|
|
59
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
60
|
+
onChange?: ((value: OutlinedSelectValue) => any) | undefined;
|
|
61
|
+
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
62
|
+
onInput?: ((value: OutlinedSelectValue) => any) | undefined;
|
|
63
|
+
onClear?: (() => any) | undefined;
|
|
64
|
+
"onUpdate:value"?: ((value: OutlinedSelectValue) => any) | undefined;
|
|
65
|
+
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
66
|
+
}>, {
|
|
67
|
+
label: string;
|
|
68
|
+
disabled: boolean;
|
|
69
|
+
value: OutlinedSelectValue;
|
|
70
|
+
options: OutlinedSelectOption[];
|
|
71
|
+
placeholder: string;
|
|
72
|
+
clearable: boolean;
|
|
73
|
+
inputHeight: number;
|
|
74
|
+
isBorder: boolean;
|
|
75
|
+
filterable: boolean;
|
|
76
|
+
marginBottom: OutlinedSelectCssValue;
|
|
77
|
+
paddingTop: OutlinedSelectCssValue;
|
|
78
|
+
multiple: boolean;
|
|
79
|
+
showPassword: boolean;
|
|
80
|
+
typeInput: string;
|
|
81
|
+
collapseTags: boolean;
|
|
82
|
+
collapseTagsTooltip: boolean;
|
|
83
|
+
keyValue: string;
|
|
84
|
+
labelValue: string;
|
|
85
|
+
noCheck: boolean;
|
|
86
|
+
maxCollapseTags: number;
|
|
87
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
88
|
+
default?(_: {}): any;
|
|
89
|
+
empty?(_: {}): any;
|
|
90
|
+
header?(_: {}): any;
|
|
91
|
+
footer?(_: {}): any;
|
|
92
|
+
tag?(_: any): any;
|
|
93
|
+
}>;
|
|
94
|
+
export default _default;
|
|
95
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
96
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
97
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
98
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
99
|
+
} : {
|
|
100
|
+
type: import('vue').PropType<T[K]>;
|
|
101
|
+
required: true;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
type __VLS_WithDefaults<P, D> = {
|
|
105
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
106
|
+
default: D[K];
|
|
107
|
+
}> : P[K];
|
|
108
|
+
};
|
|
109
|
+
type __VLS_Prettify<T> = {
|
|
110
|
+
[K in keyof T]: T[K];
|
|
111
|
+
} & {};
|
|
112
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
113
|
+
new (): {
|
|
114
|
+
$slots: S;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type OutlinedTimePickerCssValue = string | number;
|
|
2
|
+
export type OutlinedTimePickerValue = string | number | Date | Array<string | number | Date> | null;
|
|
3
|
+
export interface OutlinedTimePickerProps {
|
|
4
|
+
value?: OutlinedTimePickerValue;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
clearable?: boolean;
|
|
9
|
+
isRange?: boolean;
|
|
10
|
+
startPlaceholder?: string;
|
|
11
|
+
endPlaceholder?: string;
|
|
12
|
+
rangeSeparator?: string;
|
|
13
|
+
format?: string;
|
|
14
|
+
valueFormat?: string;
|
|
15
|
+
arrowControl?: boolean;
|
|
16
|
+
inputHeight?: number;
|
|
17
|
+
isBorder?: boolean;
|
|
18
|
+
marginBottom?: OutlinedTimePickerCssValue;
|
|
19
|
+
paddingTop?: OutlinedTimePickerCssValue;
|
|
20
|
+
}
|
|
21
|
+
export interface OutlinedTimePickerExpose {
|
|
22
|
+
focus: () => void;
|
|
23
|
+
blur: () => void;
|
|
24
|
+
handleOpen: () => void;
|
|
25
|
+
handleClose: () => void;
|
|
26
|
+
clear: () => void;
|
|
27
|
+
getPickerRef: () => unknown | null;
|
|
28
|
+
}
|