@factoringplus/pl-components-pack-v3 1.1.22 → 1.2.0
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-label/pl-label.vue.d.ts +4 -4
- package/dist/components/pl-multi-select/components/pl-default.vue.d.ts +68 -0
- package/dist/components/pl-multi-select/components/pl-multi-select-dropdown.vue.d.ts +49 -0
- package/dist/components/pl-multi-select/index.d.ts +5 -0
- package/dist/components/pl-multi-select/pl-multi-select.vue.d.ts +70 -0
- package/dist/components/pl-multi-select/types/index.d.ts +34 -0
- package/dist/components/pl-select-plus/pl-select-plus.vue.d.ts +1 -1
- package/dist/components/pl-tag/pl-tag.vue.d.ts +35 -0
- package/dist/pl-components-pack-v3.es.js +9071 -8673
- package/dist/pl-components-pack-v3.umd.js +28 -28
- package/dist/style.css +1 -1
- package/package.json +2 -2
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
|
+
```
|
|
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
disabled: {
|
|
11
11
|
type: BooleanConstructor;
|
|
12
12
|
default: boolean;
|
|
13
13
|
};
|
|
@@ -20,16 +20,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
20
20
|
type: StringConstructor;
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
disabled: {
|
|
24
24
|
type: BooleanConstructor;
|
|
25
25
|
default: boolean;
|
|
26
26
|
};
|
|
27
27
|
}>>, {
|
|
28
28
|
title: string;
|
|
29
|
+
disabled: boolean;
|
|
29
30
|
description: string;
|
|
30
|
-
isDisabled: boolean;
|
|
31
31
|
}, {}>, {
|
|
32
|
-
|
|
32
|
+
"custom-description"?(_: {}): any;
|
|
33
33
|
}>;
|
|
34
34
|
export default _default;
|
|
35
35
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { TIcon } from '../../pl-icon';
|
|
2
|
+
interface IProps {
|
|
3
|
+
prop?: string;
|
|
4
|
+
modelValue: any[];
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
clearable?: boolean;
|
|
9
|
+
showDescription?: string | boolean;
|
|
10
|
+
focus?: boolean;
|
|
11
|
+
showError?: number;
|
|
12
|
+
leftIcon?: TIcon;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
15
|
+
prop: string;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
id: string;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
clearable: boolean;
|
|
20
|
+
showDescription: string;
|
|
21
|
+
focus: boolean;
|
|
22
|
+
showError: number;
|
|
23
|
+
leftIcon: string;
|
|
24
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
reset: (...args: any[]) => void;
|
|
26
|
+
"update:focus": (...args: any[]) => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
28
|
+
prop: string;
|
|
29
|
+
placeholder: string;
|
|
30
|
+
id: string;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
clearable: boolean;
|
|
33
|
+
showDescription: string;
|
|
34
|
+
focus: boolean;
|
|
35
|
+
showError: number;
|
|
36
|
+
leftIcon: string;
|
|
37
|
+
}>>> & {
|
|
38
|
+
onReset?: (...args: any[]) => any;
|
|
39
|
+
"onUpdate:focus"?: (...args: any[]) => any;
|
|
40
|
+
}, {
|
|
41
|
+
id: string;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
focus: boolean;
|
|
44
|
+
prop: string;
|
|
45
|
+
placeholder: string;
|
|
46
|
+
clearable: boolean;
|
|
47
|
+
showError: number;
|
|
48
|
+
leftIcon: TIcon;
|
|
49
|
+
showDescription: string | boolean;
|
|
50
|
+
}, {}>;
|
|
51
|
+
export default _default;
|
|
52
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
54
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
55
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
56
|
+
} : {
|
|
57
|
+
type: import('vue').PropType<T[K]>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
62
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
63
|
+
default: D[K];
|
|
64
|
+
}> : P[K];
|
|
65
|
+
};
|
|
66
|
+
declare type __VLS_Prettify<T> = {
|
|
67
|
+
[K in keyof T]: T[K];
|
|
68
|
+
} & {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { IDropdownProps, IOption } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IDropdownProps>, {
|
|
3
|
+
offsets: string;
|
|
4
|
+
focus: boolean;
|
|
5
|
+
id: string;
|
|
6
|
+
helpertext: string;
|
|
7
|
+
errors: () => any[];
|
|
8
|
+
options: () => any[];
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
reset: (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
closeSave: (...args: any[]) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IDropdownProps>, {
|
|
14
|
+
offsets: string;
|
|
15
|
+
focus: boolean;
|
|
16
|
+
id: string;
|
|
17
|
+
helpertext: string;
|
|
18
|
+
errors: () => any[];
|
|
19
|
+
options: () => any[];
|
|
20
|
+
}>>> & {
|
|
21
|
+
onReset?: (...args: any[]) => any;
|
|
22
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
23
|
+
onCloseSave?: (...args: any[]) => any;
|
|
24
|
+
}, {
|
|
25
|
+
id: string;
|
|
26
|
+
focus: boolean;
|
|
27
|
+
helpertext: string;
|
|
28
|
+
errors: import("async-validator").ValidateError[];
|
|
29
|
+
offsets: string;
|
|
30
|
+
options: IOption[];
|
|
31
|
+
}, {}>;
|
|
32
|
+
export default _default;
|
|
33
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
35
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
+
} : {
|
|
38
|
+
type: import('vue').PropType<T[K]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
44
|
+
default: D[K];
|
|
45
|
+
}> : P[K];
|
|
46
|
+
};
|
|
47
|
+
declare type __VLS_Prettify<T> = {
|
|
48
|
+
[K in keyof T]: T[K];
|
|
49
|
+
} & {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { IOption, ISelectProps } from './types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ISelectProps>, {
|
|
3
|
+
modelValue: () => any[];
|
|
4
|
+
prop: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
width: string;
|
|
7
|
+
helpertext: string;
|
|
8
|
+
optional: string;
|
|
9
|
+
label: string;
|
|
10
|
+
tooltip: string;
|
|
11
|
+
leftIcon: string;
|
|
12
|
+
rightIcon: string;
|
|
13
|
+
options: () => any[];
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
clearable: boolean;
|
|
16
|
+
buttons: boolean;
|
|
17
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (...args: any[]) => void;
|
|
19
|
+
change: (...args: any[]) => void;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ISelectProps>, {
|
|
21
|
+
modelValue: () => any[];
|
|
22
|
+
prop: string;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
width: string;
|
|
25
|
+
helpertext: string;
|
|
26
|
+
optional: string;
|
|
27
|
+
label: string;
|
|
28
|
+
tooltip: string;
|
|
29
|
+
leftIcon: string;
|
|
30
|
+
rightIcon: string;
|
|
31
|
+
options: () => any[];
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
clearable: boolean;
|
|
34
|
+
buttons: boolean;
|
|
35
|
+
}>>> & {
|
|
36
|
+
onChange?: (...args: any[]) => any;
|
|
37
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
38
|
+
}, {
|
|
39
|
+
label: string;
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
modelValue: IOption[];
|
|
42
|
+
tooltip: string;
|
|
43
|
+
prop: string;
|
|
44
|
+
placeholder: string;
|
|
45
|
+
clearable: boolean;
|
|
46
|
+
leftIcon: import("../pl-icon").TIcon;
|
|
47
|
+
width: string;
|
|
48
|
+
helpertext: string;
|
|
49
|
+
optional: string;
|
|
50
|
+
buttons: boolean;
|
|
51
|
+
options: IOption[];
|
|
52
|
+
}, {}>;
|
|
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,34 @@
|
|
|
1
|
+
import { TIcon } from '../../pl-icon';
|
|
2
|
+
import type { ValidateError } from 'async-validator';
|
|
3
|
+
declare interface IOption {
|
|
4
|
+
value: any;
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare interface ISelectProps {
|
|
10
|
+
modelValue: IOption[];
|
|
11
|
+
options: IOption[];
|
|
12
|
+
prop?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
width?: string;
|
|
15
|
+
helpertext?: string;
|
|
16
|
+
optional?: string;
|
|
17
|
+
label?: string;
|
|
18
|
+
tooltip?: string;
|
|
19
|
+
leftIcon?: TIcon;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
clearable?: boolean;
|
|
22
|
+
buttons?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare interface IDropdownProps {
|
|
25
|
+
modelValue: IOption[];
|
|
26
|
+
offsets: string;
|
|
27
|
+
focus: boolean;
|
|
28
|
+
id: string;
|
|
29
|
+
helpertext: string;
|
|
30
|
+
errors: ValidateError[];
|
|
31
|
+
options: IOption[];
|
|
32
|
+
buttons: boolean;
|
|
33
|
+
}
|
|
34
|
+
export { IDropdownProps, IOption, ISelectProps };
|
|
@@ -53,8 +53,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
53
53
|
helpertext: string;
|
|
54
54
|
optional: string;
|
|
55
55
|
teleport: boolean;
|
|
56
|
-
options: IOption[];
|
|
57
56
|
showDescription: boolean;
|
|
57
|
+
options: IOption[];
|
|
58
58
|
account: boolean;
|
|
59
59
|
}, {}>;
|
|
60
60
|
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
interface ITagProps {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ITagProps>, {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ITagProps>, {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
}>>>, {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}, {}>, {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
24
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
|
+
default: D[K];
|
|
26
|
+
}> : P[K];
|
|
27
|
+
};
|
|
28
|
+
declare type __VLS_Prettify<T> = {
|
|
29
|
+
[K in keyof T]: T[K];
|
|
30
|
+
} & {};
|
|
31
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|