@factoringplus/pl-components-pack-v3 1.1.20 → 1.1.21-pre-02
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 +17 -17
- package/dist/components/pl-autocomplete/pl-autocompete.vue.d.ts +7 -3
- package/dist/components/pl-date-picker-plus/pl-date-picker-plus/pl-date-picker-plus.vue.d.ts +1 -1
- package/dist/components/pl-date-picker-plus/pl-date-picker-range-plus/pl-date-picker-range-plus.vue.d.ts +1 -1
- package/dist/components/pl-input-plus/components/pl-currency.vue.d.ts +46 -0
- package/dist/components/pl-input-plus/components/pl-default.vue.d.ts +47 -107
- package/dist/components/pl-input-plus/components/pl-password.vue.d.ts +47 -0
- package/dist/components/pl-input-plus/components/pl-textarea.vue.d.ts +45 -0
- package/dist/components/pl-input-plus/pl-input-plus.vue.d.ts +121 -0
- package/dist/components/pl-input-plus/types/index.d.ts +66 -0
- package/dist/components/pl-select-plus/components/pl-default.vue.d.ts +1 -1
- package/dist/components/pl-select-plus/pl-select-plus.vue.d.ts +1 -1
- package/dist/components/pl-tooltip/pl-tooltip.vue.d.ts +6 -6
- package/dist/components/pl-tooltip-plus/pl-tooltip-plus.vue.d.ts +2 -2
- package/dist/components/pl-upload-plus/pl-upload-plus.vue.d.ts +1 -1
- package/dist/pl-components-pack-v3.es.js +5072 -5288
- package/dist/pl-components-pack-v3.umd.js +25 -25
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# Библиотека компонентов Vue 3
|
|
2
|
-
|
|
3
|
-
## Установка
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
npm i @factoringplus/pl-components-pack-v3
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
### Добавление компонентов в проект
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
// src/main.js
|
|
13
|
-
import components from '@factoringplus/pl-components-pack-v3';
|
|
14
|
-
import '@factoringplus/pl-components-pack-v3/dist/style.css';
|
|
15
|
-
|
|
16
|
-
app.use(components)
|
|
17
|
-
```
|
|
1
|
+
# Библиотека компонентов Vue 3
|
|
2
|
+
|
|
3
|
+
## Установка
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm i @factoringplus/pl-components-pack-v3
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Добавление компонентов в проект
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
// src/main.js
|
|
13
|
+
import components from '@factoringplus/pl-components-pack-v3';
|
|
14
|
+
import '@factoringplus/pl-components-pack-v3/dist/style.css';
|
|
15
|
+
|
|
16
|
+
app.use(components)
|
|
17
|
+
```
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { IOption, IAutocompleteProps } from './types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IAutocompleteProps>, {
|
|
3
|
-
modelValue:
|
|
3
|
+
modelValue: () => {
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
4
6
|
prop: string;
|
|
5
7
|
placeholder: string;
|
|
6
8
|
width: string;
|
|
@@ -25,7 +27,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
25
27
|
fetchDadata: (...args: any[]) => void;
|
|
26
28
|
changeValue: (...args: any[]) => void;
|
|
27
29
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IAutocompleteProps>, {
|
|
28
|
-
modelValue:
|
|
30
|
+
modelValue: () => {
|
|
31
|
+
value: string;
|
|
32
|
+
};
|
|
29
33
|
prop: string;
|
|
30
34
|
placeholder: string;
|
|
31
35
|
width: string;
|
|
@@ -53,7 +57,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
53
57
|
label: string;
|
|
54
58
|
disabled: boolean;
|
|
55
59
|
modelValue: IOption;
|
|
56
|
-
tooltip: string;
|
|
57
60
|
prop: string;
|
|
58
61
|
placeholder: string;
|
|
59
62
|
clearable: boolean;
|
|
@@ -69,6 +72,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
69
72
|
defaultDropText: string;
|
|
70
73
|
noData: string;
|
|
71
74
|
optional: string;
|
|
75
|
+
tooltip: string;
|
|
72
76
|
teleport: boolean;
|
|
73
77
|
}, {}>;
|
|
74
78
|
export default _default;
|
package/dist/components/pl-date-picker-plus/pl-date-picker-plus/pl-date-picker-plus.vue.d.ts
CHANGED
|
@@ -60,13 +60,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
60
60
|
label: string;
|
|
61
61
|
disabled: boolean;
|
|
62
62
|
modelValue: string;
|
|
63
|
-
tooltip: string;
|
|
64
63
|
prop: string;
|
|
65
64
|
placeholder: string;
|
|
66
65
|
clearable: boolean;
|
|
67
66
|
width: string;
|
|
68
67
|
helpertext: string;
|
|
69
68
|
optional: string;
|
|
69
|
+
tooltip: string;
|
|
70
70
|
monthSwitch: boolean;
|
|
71
71
|
yearSwitch: boolean;
|
|
72
72
|
disabledDate: Function;
|
|
@@ -67,13 +67,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
67
67
|
label: string;
|
|
68
68
|
disabled: boolean;
|
|
69
69
|
modelValue: string[];
|
|
70
|
-
tooltip: string;
|
|
71
70
|
prop: string;
|
|
72
71
|
placeholder: string;
|
|
73
72
|
clearable: boolean;
|
|
74
73
|
width: string;
|
|
75
74
|
helpertext: string;
|
|
76
75
|
optional: string;
|
|
76
|
+
tooltip: string;
|
|
77
77
|
periods: boolean;
|
|
78
78
|
monthSwitch: boolean;
|
|
79
79
|
yearSwitch: boolean;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { IPlCurrencyProps } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IPlCurrencyProps>, {
|
|
3
|
+
prop: string;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
leftIcon: string;
|
|
7
|
+
round: boolean;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (...args: any[]) => void;
|
|
10
|
+
blur: (...args: any[]) => void;
|
|
11
|
+
change: (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IPlCurrencyProps>, {
|
|
13
|
+
prop: string;
|
|
14
|
+
placeholder: string;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
leftIcon: string;
|
|
17
|
+
round: boolean;
|
|
18
|
+
}>>> & {
|
|
19
|
+
onBlur?: (...args: any[]) => any;
|
|
20
|
+
onChange?: (...args: any[]) => any;
|
|
21
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
22
|
+
}, {
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
prop: string;
|
|
25
|
+
placeholder: string;
|
|
26
|
+
leftIcon: import("../../pl-icon").TIcon;
|
|
27
|
+
round: boolean;
|
|
28
|
+
}, {}>;
|
|
29
|
+
export default _default;
|
|
30
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
32
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
+
} : {
|
|
35
|
+
type: import('vue').PropType<T[K]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
40
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
41
|
+
default: D[K];
|
|
42
|
+
}> : P[K];
|
|
43
|
+
};
|
|
44
|
+
declare type __VLS_Prettify<T> = {
|
|
45
|
+
[K in keyof T]: T[K];
|
|
46
|
+
} & {};
|
|
@@ -1,113 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
showWordLimit: {
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
disabled: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
formatter: {
|
|
26
|
-
type: FunctionConstructor;
|
|
27
|
-
};
|
|
28
|
-
maxlength: {
|
|
29
|
-
type: StringConstructor;
|
|
30
|
-
default: string;
|
|
31
|
-
};
|
|
32
|
-
placeholder: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
prop: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
iconPointer: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
customBlur: {
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
default: boolean;
|
|
47
|
-
};
|
|
48
|
-
clearable: {
|
|
49
|
-
type: BooleanConstructor;
|
|
50
|
-
default: boolean;
|
|
51
|
-
};
|
|
52
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
import type { IPlDefaultProps } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IPlDefaultProps>, {
|
|
3
|
+
leftIcon: string;
|
|
4
|
+
rightIcon: string;
|
|
5
|
+
id: string;
|
|
6
|
+
showWordLimit: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
maxlength: any;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
prop: string;
|
|
11
|
+
iconPointer: boolean;
|
|
12
|
+
customBlur: boolean;
|
|
13
|
+
clearable: boolean;
|
|
14
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
15
|
"update:modelValue": (...args: any[]) => void;
|
|
54
16
|
resetValue: (...args: any[]) => void;
|
|
55
17
|
tabHandler: (...args: any[]) => void;
|
|
56
18
|
blur: (...args: any[]) => void;
|
|
57
19
|
touchstart: (...args: any[]) => void;
|
|
58
20
|
mousedown: (...args: any[]) => void;
|
|
59
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
default: string;
|
|
74
|
-
};
|
|
75
|
-
showWordLimit: {
|
|
76
|
-
type: BooleanConstructor;
|
|
77
|
-
default: boolean;
|
|
78
|
-
};
|
|
79
|
-
disabled: {
|
|
80
|
-
type: BooleanConstructor;
|
|
81
|
-
default: boolean;
|
|
82
|
-
};
|
|
83
|
-
formatter: {
|
|
84
|
-
type: FunctionConstructor;
|
|
85
|
-
};
|
|
86
|
-
maxlength: {
|
|
87
|
-
type: StringConstructor;
|
|
88
|
-
default: string;
|
|
89
|
-
};
|
|
90
|
-
placeholder: {
|
|
91
|
-
type: StringConstructor;
|
|
92
|
-
default: string;
|
|
93
|
-
};
|
|
94
|
-
prop: {
|
|
95
|
-
type: StringConstructor;
|
|
96
|
-
default: string;
|
|
97
|
-
};
|
|
98
|
-
iconPointer: {
|
|
99
|
-
type: BooleanConstructor;
|
|
100
|
-
default: boolean;
|
|
101
|
-
};
|
|
102
|
-
customBlur: {
|
|
103
|
-
type: BooleanConstructor;
|
|
104
|
-
default: boolean;
|
|
105
|
-
};
|
|
106
|
-
clearable: {
|
|
107
|
-
type: BooleanConstructor;
|
|
108
|
-
default: boolean;
|
|
109
|
-
};
|
|
110
|
-
}>> & {
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IPlDefaultProps>, {
|
|
22
|
+
leftIcon: string;
|
|
23
|
+
rightIcon: string;
|
|
24
|
+
id: string;
|
|
25
|
+
showWordLimit: boolean;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
maxlength: any;
|
|
28
|
+
placeholder: string;
|
|
29
|
+
prop: string;
|
|
30
|
+
iconPointer: boolean;
|
|
31
|
+
customBlur: boolean;
|
|
32
|
+
clearable: boolean;
|
|
33
|
+
}>>> & {
|
|
111
34
|
onBlur?: (...args: any[]) => any;
|
|
112
35
|
onMousedown?: (...args: any[]) => any;
|
|
113
36
|
onTouchstart?: (...args: any[]) => any;
|
|
@@ -120,11 +43,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
43
|
prop: string;
|
|
121
44
|
placeholder: string;
|
|
122
45
|
clearable: boolean;
|
|
123
|
-
leftIcon:
|
|
124
|
-
rightIcon:
|
|
46
|
+
leftIcon: import("../../pl-icon").TIcon;
|
|
47
|
+
rightIcon: import("../../pl-icon").TIcon;
|
|
125
48
|
showWordLimit: boolean;
|
|
126
|
-
maxlength:
|
|
49
|
+
maxlength: number;
|
|
127
50
|
iconPointer: boolean;
|
|
128
51
|
customBlur: boolean;
|
|
129
52
|
}, {}>;
|
|
130
53
|
export default _default;
|
|
54
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
55
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
56
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
57
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
58
|
+
} : {
|
|
59
|
+
type: import('vue').PropType<T[K]>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
64
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
65
|
+
default: D[K];
|
|
66
|
+
}> : P[K];
|
|
67
|
+
};
|
|
68
|
+
declare type __VLS_Prettify<T> = {
|
|
69
|
+
[K in keyof T]: T[K];
|
|
70
|
+
} & {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { IPlPasswordProps } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IPlPasswordProps>, {
|
|
3
|
+
id: string;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
prop: string;
|
|
7
|
+
currentPassword: boolean;
|
|
8
|
+
newPassword: boolean;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (...args: any[]) => void;
|
|
11
|
+
blur: (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IPlPasswordProps>, {
|
|
13
|
+
id: string;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
prop: string;
|
|
17
|
+
currentPassword: boolean;
|
|
18
|
+
newPassword: boolean;
|
|
19
|
+
}>>> & {
|
|
20
|
+
onBlur?: (...args: any[]) => any;
|
|
21
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
22
|
+
}, {
|
|
23
|
+
id: string;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
prop: string;
|
|
26
|
+
placeholder: string;
|
|
27
|
+
currentPassword: boolean;
|
|
28
|
+
newPassword: boolean;
|
|
29
|
+
}, {}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
41
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
42
|
+
default: D[K];
|
|
43
|
+
}> : P[K];
|
|
44
|
+
};
|
|
45
|
+
declare type __VLS_Prettify<T> = {
|
|
46
|
+
[K in keyof T]: T[K];
|
|
47
|
+
} & {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { IPlTextareaProps } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IPlTextareaProps>, {
|
|
3
|
+
id: string;
|
|
4
|
+
showWordLimit: boolean;
|
|
5
|
+
maxlength: any;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
prop: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (...args: any[]) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IPlTextareaProps>, {
|
|
12
|
+
id: string;
|
|
13
|
+
showWordLimit: boolean;
|
|
14
|
+
maxlength: any;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
prop: string;
|
|
18
|
+
}>>> & {
|
|
19
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
20
|
+
}, {
|
|
21
|
+
id: string;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
prop: string;
|
|
24
|
+
placeholder: string;
|
|
25
|
+
showWordLimit: boolean;
|
|
26
|
+
maxlength: number;
|
|
27
|
+
}, {}>;
|
|
28
|
+
export default _default;
|
|
29
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
31
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
+
} : {
|
|
34
|
+
type: import('vue').PropType<T[K]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
39
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
40
|
+
default: D[K];
|
|
41
|
+
}> : P[K];
|
|
42
|
+
};
|
|
43
|
+
declare type __VLS_Prettify<T> = {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} & {};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { IPlInputPlusProps } from './types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IPlInputPlusProps>, {
|
|
3
|
+
prop: string;
|
|
4
|
+
modelValue: string;
|
|
5
|
+
showWordLimit: boolean;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
currency: boolean;
|
|
8
|
+
password: boolean;
|
|
9
|
+
textarea: boolean;
|
|
10
|
+
width: string;
|
|
11
|
+
helpertext: string;
|
|
12
|
+
optional: string;
|
|
13
|
+
label: string;
|
|
14
|
+
tooltip: string;
|
|
15
|
+
leftIcon: string;
|
|
16
|
+
rightIcon: string;
|
|
17
|
+
round: boolean;
|
|
18
|
+
'show-word-limit': boolean;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
maxlength: any;
|
|
21
|
+
currentPassword: boolean;
|
|
22
|
+
newPassword: boolean;
|
|
23
|
+
iconPointer: boolean;
|
|
24
|
+
customBlur: boolean;
|
|
25
|
+
clearable: boolean;
|
|
26
|
+
focusOnReset: boolean;
|
|
27
|
+
disableTrim: boolean;
|
|
28
|
+
valueRange: () => {
|
|
29
|
+
min: number;
|
|
30
|
+
};
|
|
31
|
+
}>, {
|
|
32
|
+
blurInput: (mob?: boolean) => void;
|
|
33
|
+
focusInput: () => void;
|
|
34
|
+
getId: () => string;
|
|
35
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
"update:modelValue": (...args: any[]) => void;
|
|
37
|
+
resetValue: (...args: any[]) => void;
|
|
38
|
+
blur: (...args: any[]) => void;
|
|
39
|
+
touchstart: (...args: any[]) => void;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IPlInputPlusProps>, {
|
|
41
|
+
prop: string;
|
|
42
|
+
modelValue: string;
|
|
43
|
+
showWordLimit: boolean;
|
|
44
|
+
placeholder: string;
|
|
45
|
+
currency: boolean;
|
|
46
|
+
password: boolean;
|
|
47
|
+
textarea: boolean;
|
|
48
|
+
width: string;
|
|
49
|
+
helpertext: string;
|
|
50
|
+
optional: string;
|
|
51
|
+
label: string;
|
|
52
|
+
tooltip: string;
|
|
53
|
+
leftIcon: string;
|
|
54
|
+
rightIcon: string;
|
|
55
|
+
round: boolean;
|
|
56
|
+
'show-word-limit': boolean;
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
maxlength: any;
|
|
59
|
+
currentPassword: boolean;
|
|
60
|
+
newPassword: boolean;
|
|
61
|
+
iconPointer: boolean;
|
|
62
|
+
customBlur: boolean;
|
|
63
|
+
clearable: boolean;
|
|
64
|
+
focusOnReset: boolean;
|
|
65
|
+
disableTrim: boolean;
|
|
66
|
+
valueRange: () => {
|
|
67
|
+
min: number;
|
|
68
|
+
};
|
|
69
|
+
}>>> & {
|
|
70
|
+
onBlur?: (...args: any[]) => any;
|
|
71
|
+
onTouchstart?: (...args: any[]) => any;
|
|
72
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
73
|
+
onResetValue?: (...args: any[]) => any;
|
|
74
|
+
}, {
|
|
75
|
+
label: string;
|
|
76
|
+
textarea: boolean;
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
modelValue: import("./types").TInputModelValue;
|
|
79
|
+
prop: string;
|
|
80
|
+
placeholder: string;
|
|
81
|
+
clearable: boolean;
|
|
82
|
+
leftIcon: import("../pl-icon").TIcon;
|
|
83
|
+
password: boolean;
|
|
84
|
+
rightIcon: import("../pl-icon").TIcon;
|
|
85
|
+
width: string;
|
|
86
|
+
helpertext: string;
|
|
87
|
+
optional: string;
|
|
88
|
+
tooltip: string;
|
|
89
|
+
showWordLimit: boolean;
|
|
90
|
+
currency: boolean;
|
|
91
|
+
round: boolean;
|
|
92
|
+
'show-word-limit': boolean;
|
|
93
|
+
maxlength: number;
|
|
94
|
+
currentPassword: boolean;
|
|
95
|
+
newPassword: boolean;
|
|
96
|
+
iconPointer: boolean;
|
|
97
|
+
customBlur: boolean;
|
|
98
|
+
focusOnReset: boolean;
|
|
99
|
+
disableTrim: boolean;
|
|
100
|
+
valueRange: {
|
|
101
|
+
min: number;
|
|
102
|
+
};
|
|
103
|
+
}, {}>;
|
|
104
|
+
export default _default;
|
|
105
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
106
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
107
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
108
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
109
|
+
} : {
|
|
110
|
+
type: import('vue').PropType<T[K]>;
|
|
111
|
+
required: true;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
115
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
116
|
+
default: D[K];
|
|
117
|
+
}> : P[K];
|
|
118
|
+
};
|
|
119
|
+
declare type __VLS_Prettify<T> = {
|
|
120
|
+
[K in keyof T]: T[K];
|
|
121
|
+
} & {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { CurrencyInputOptions, NumberRange } from 'vue-currency-input';
|
|
2
|
+
import type { TIcon } from '../../pl-icon/types';
|
|
3
|
+
export declare type TInputModelValue = string | number | null | undefined;
|
|
4
|
+
export declare type TMaxlength = number | null | undefined;
|
|
5
|
+
interface IBaseInputProps {
|
|
6
|
+
prop?: string;
|
|
7
|
+
modelValue: TInputModelValue;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface IPlInputPlusProps extends IBaseInputProps {
|
|
12
|
+
showWordLimit?: boolean;
|
|
13
|
+
currency?: boolean;
|
|
14
|
+
password?: boolean;
|
|
15
|
+
textarea?: boolean;
|
|
16
|
+
width?: string;
|
|
17
|
+
helpertext?: string;
|
|
18
|
+
optional?: string;
|
|
19
|
+
label?: string;
|
|
20
|
+
tooltip?: string;
|
|
21
|
+
leftIcon?: TIcon;
|
|
22
|
+
rightIcon?: TIcon;
|
|
23
|
+
round?: boolean;
|
|
24
|
+
valueRange?: NumberRange;
|
|
25
|
+
currencyInputOptions?: CurrencyInputOptions;
|
|
26
|
+
'show-word-limit'?: boolean;
|
|
27
|
+
formatter?: Function;
|
|
28
|
+
maxlength?: TMaxlength;
|
|
29
|
+
currentPassword?: boolean;
|
|
30
|
+
newPassword?: boolean;
|
|
31
|
+
iconPointer?: boolean;
|
|
32
|
+
customBlur?: boolean;
|
|
33
|
+
clearable?: boolean;
|
|
34
|
+
focusOnReset?: boolean;
|
|
35
|
+
disableTrim?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface IPlDefaultProps extends IBaseInputProps {
|
|
38
|
+
id: string;
|
|
39
|
+
maxlength?: TMaxlength;
|
|
40
|
+
showWordLimit?: boolean;
|
|
41
|
+
clearable?: boolean;
|
|
42
|
+
leftIcon?: TIcon;
|
|
43
|
+
rightIcon?: TIcon;
|
|
44
|
+
formatter?: Function;
|
|
45
|
+
iconPointer?: boolean;
|
|
46
|
+
customBlur?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface IPlCurrencyProps extends IBaseInputProps {
|
|
49
|
+
id: string;
|
|
50
|
+
leftIcon?: TIcon;
|
|
51
|
+
round?: boolean;
|
|
52
|
+
valueRange?: NumberRange;
|
|
53
|
+
currencyInputOptions?: CurrencyInputOptions;
|
|
54
|
+
}
|
|
55
|
+
export interface IPlTextareaProps extends IBaseInputProps {
|
|
56
|
+
id: string;
|
|
57
|
+
showWordLimit?: boolean;
|
|
58
|
+
maxlength?: TMaxlength;
|
|
59
|
+
}
|
|
60
|
+
export interface IPlPasswordProps extends IBaseInputProps {
|
|
61
|
+
id: string;
|
|
62
|
+
leftIcon?: TIcon;
|
|
63
|
+
currentPassword?: boolean;
|
|
64
|
+
newPassword?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
@@ -41,12 +41,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
41
41
|
}, {
|
|
42
42
|
id: string;
|
|
43
43
|
disabled: boolean;
|
|
44
|
-
focus: boolean;
|
|
45
44
|
prop: string;
|
|
46
45
|
placeholder: string;
|
|
47
46
|
clearable: boolean;
|
|
48
47
|
showError: number;
|
|
49
48
|
leftIcon: TIcon;
|
|
49
|
+
focus: boolean;
|
|
50
50
|
showDescription: string | boolean;
|
|
51
51
|
}, {}>;
|
|
52
52
|
export default _default;
|
|
@@ -43,7 +43,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
43
43
|
label: string;
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
modelValue: string | number | IOption;
|
|
46
|
-
tooltip: string;
|
|
47
46
|
prop: string;
|
|
48
47
|
placeholder: string;
|
|
49
48
|
clearable: boolean;
|
|
@@ -52,6 +51,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
52
51
|
width: string;
|
|
53
52
|
helpertext: string;
|
|
54
53
|
optional: string;
|
|
54
|
+
tooltip: string;
|
|
55
55
|
teleport: boolean;
|
|
56
56
|
options: IOption[];
|
|
57
57
|
showDescription: boolean;
|
|
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
4
4
|
required: false;
|
|
5
5
|
};
|
|
6
6
|
position: {
|
|
7
|
-
type: () => "left" | "right" | "top" | "
|
|
7
|
+
type: () => "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
customClass: {
|
|
@@ -12,7 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
14
|
trigger: {
|
|
15
|
-
type: () => "click" | "
|
|
15
|
+
type: () => "click" | "focus" | "hover" | "contextmenu";
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
18
|
hideAfter: {
|
|
@@ -25,7 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
25
25
|
required: false;
|
|
26
26
|
};
|
|
27
27
|
position: {
|
|
28
|
-
type: () => "left" | "right" | "top" | "
|
|
28
|
+
type: () => "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
31
|
customClass: {
|
|
@@ -33,7 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
33
33
|
default: string;
|
|
34
34
|
};
|
|
35
35
|
trigger: {
|
|
36
|
-
type: () => "click" | "
|
|
36
|
+
type: () => "click" | "focus" | "hover" | "contextmenu";
|
|
37
37
|
default: string;
|
|
38
38
|
};
|
|
39
39
|
hideAfter: {
|
|
@@ -41,9 +41,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
41
41
|
default: number;
|
|
42
42
|
};
|
|
43
43
|
}>>, {
|
|
44
|
-
position: "left" | "right" | "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
45
44
|
customClass: string;
|
|
46
|
-
trigger: "click" | "
|
|
45
|
+
trigger: "click" | "focus" | "hover" | "contextmenu";
|
|
46
|
+
position: "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
47
47
|
hideAfter: number;
|
|
48
48
|
}, {}>, {
|
|
49
49
|
default?(_: {}): any;
|