@factoringplus/pl-components-pack-v3 1.2.14 → 1.2.15-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/button/index.d.ts +188 -4
- package/dist/components/components.d.ts +8 -0
- package/dist/components/entry.d.ts +70 -2
- package/dist/components/pl-date-picker-plus/common/constants.d.ts +2 -0
- package/dist/components/pl-dialog/pl-dialog-plus.stories.d.ts +19 -19
- package/dist/components/pl-dialog/pl-dialog-plus.vue.d.ts +1 -1
- package/dist/components/pl-dialog/pl-dialog.stories.d.ts +19 -19
- package/dist/components/pl-dialog/pl-dialog.vue.d.ts +1 -1
- package/dist/components/pl-form/pl-form.vue.d.ts +37 -32
- package/dist/components/pl-input-plus/pl-input-plus.vue.d.ts +1 -1
- package/dist/components/pl-mark-text/index.d.ts +2 -0
- package/dist/components/pl-scrollbar/pl-scrollbar.vue.d.ts +1 -1
- package/dist/components/pl-select-plus/pl-select-plus.vue.d.ts +1 -1
- package/dist/components/pl-snackbar/renderSnackbar.d.ts +1 -7
- package/dist/components/pl-tooltip/pl-tooltip.vue.d.ts +1 -1
- package/dist/install-function/index.d.ts +6 -0
- package/dist/pl-components-pack-v3.es.js +9513 -9442
- package/dist/pl-components-pack-v3.umd.js +26 -26
- package/dist/plugins/filters.d.ts +7 -0
- package/dist/style.css +1 -1
- package/dist/utils/dadataParser.d.ts +11 -0
- package/dist/utils/declOfNum.d.ts +3 -1
- package/dist/utils/deepSet.d.ts +5 -0
- package/dist/utils/formatAccount.d.ts +2 -0
- package/dist/utils/formatCurrency.d.ts +3 -0
- package/dist/utils/formatDate.d.ts +3 -0
- package/dist/utils/getSourceCode.d.ts +2 -0
- package/dist/utils/isEqual.d.ts +3 -0
- package/dist/utils/types.d.ts +67 -0
- package/package.json +1 -1
|
@@ -1,46 +1,51 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Rules, ValidateError } from 'async-validator';
|
|
2
|
+
interface IFormProps {
|
|
2
3
|
model: {
|
|
3
|
-
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
rules: {
|
|
7
|
-
type: ObjectConstructor;
|
|
8
|
-
default: () => void;
|
|
4
|
+
[key: string]: any;
|
|
9
5
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
rules?: Rules;
|
|
7
|
+
modelErrorsState?: ValidateError[];
|
|
8
|
+
}
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IFormProps>, {
|
|
10
|
+
rules: () => {};
|
|
11
|
+
modelErrorsState: () => any[];
|
|
12
|
+
}>, {
|
|
13
|
+
validate: (callback?: (success: boolean, errors: ValidateError[]) => void) => Promise<void>;
|
|
14
|
+
validateField: (prop: string) => Promise<void>;
|
|
15
|
+
clearValidate: (props?: string | string[]) => void;
|
|
16
|
+
resetFields: (props?: string | string[]) => void;
|
|
19
17
|
refreshForm: () => void;
|
|
20
18
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
19
|
"update:modelErrorsState": (...args: any[]) => void;
|
|
22
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
rules: {
|
|
28
|
-
type: ObjectConstructor;
|
|
29
|
-
default: () => void;
|
|
30
|
-
};
|
|
31
|
-
modelErrorsState: {
|
|
32
|
-
type: ArrayConstructor;
|
|
33
|
-
default: () => any[];
|
|
34
|
-
};
|
|
35
|
-
}>> & {
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IFormProps>, {
|
|
21
|
+
rules: () => {};
|
|
22
|
+
modelErrorsState: () => any[];
|
|
23
|
+
}>>> & {
|
|
36
24
|
"onUpdate:modelErrorsState"?: (...args: any[]) => any;
|
|
37
25
|
}, {
|
|
38
|
-
rules:
|
|
39
|
-
modelErrorsState:
|
|
26
|
+
rules: Rules;
|
|
27
|
+
modelErrorsState: ValidateError[];
|
|
40
28
|
}, {}>, {
|
|
41
29
|
default?(_: {}): any;
|
|
42
30
|
}>;
|
|
43
31
|
export default _default;
|
|
32
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
+
} : {
|
|
37
|
+
type: import('vue').PropType<T[K]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
43
|
+
default: D[K];
|
|
44
|
+
}> : P[K];
|
|
45
|
+
};
|
|
46
|
+
declare type __VLS_Prettify<T> = {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} & {};
|
|
44
49
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
50
|
new (): {
|
|
46
51
|
$slots: S;
|
|
@@ -83,6 +83,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
83
83
|
clearable: boolean;
|
|
84
84
|
leftIcon: import("../pl-icon").TIcon;
|
|
85
85
|
password: boolean;
|
|
86
|
+
currency: boolean;
|
|
86
87
|
rightIcon: import("../pl-icon").TIcon;
|
|
87
88
|
width: string;
|
|
88
89
|
helpertext: string;
|
|
@@ -90,7 +91,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
90
91
|
tooltip: string;
|
|
91
92
|
focusOnReset: boolean;
|
|
92
93
|
showWordLimit: boolean;
|
|
93
|
-
currency: boolean;
|
|
94
94
|
round: boolean;
|
|
95
95
|
'show-word-limit': boolean;
|
|
96
96
|
maxlength: number;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const PlMarkText: import('../../install-function').SFCInstallWithContext<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>>;
|
|
2
|
+
export default PlMarkText;
|
|
@@ -31,8 +31,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
31
31
|
onScroll?: (...args: any[]) => any;
|
|
32
32
|
onWheel?: (...args: any[]) => any;
|
|
33
33
|
}, {
|
|
34
|
-
maxHeight: string | number;
|
|
35
34
|
height: string | number;
|
|
35
|
+
maxHeight: string | number;
|
|
36
36
|
wrapClass: string;
|
|
37
37
|
viewClass: string;
|
|
38
38
|
hideScrollThumb: boolean;
|
|
@@ -53,8 +53,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
53
53
|
optional: string;
|
|
54
54
|
tooltip: string;
|
|
55
55
|
teleport: boolean;
|
|
56
|
-
showDescription: boolean;
|
|
57
56
|
options: IOption[];
|
|
57
|
+
showDescription: boolean;
|
|
58
58
|
account: boolean;
|
|
59
59
|
}, {}>;
|
|
60
60
|
export default _default;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
|
|
2
2
|
import type { IPlNotification } from './types';
|
|
3
|
-
|
|
4
|
-
export declare type SFCWithInstall<T> = T & Plugin;
|
|
5
|
-
export declare type SFCInstallWithContext<T> = SFCWithInstall<T> & {
|
|
6
|
-
_context: AppContext | null;
|
|
7
|
-
};
|
|
8
|
-
export declare const withInstallFunction: <T>(fn: T, name: string) => SFCInstallWithContext<T>;
|
|
9
|
-
export declare const PlNotification: SFCInstallWithContext<IPlNotification>;
|
|
3
|
+
export declare const PlNotification: import('../../install-function').SFCInstallWithContext<IPlNotification>;
|
|
10
4
|
export default PlNotification;
|
|
@@ -41,8 +41,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
41
41
|
default: number;
|
|
42
42
|
};
|
|
43
43
|
}>>, {
|
|
44
|
-
trigger: "click" | "focus" | "hover" | "contextmenu";
|
|
45
44
|
customClass: string;
|
|
45
|
+
trigger: "click" | "focus" | "hover" | "contextmenu";
|
|
46
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
|
}, {}>, {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AppContext, Plugin } from 'vue';
|
|
2
|
+
export declare type SFCWithInstall<T> = T & Plugin;
|
|
3
|
+
export declare type SFCInstallWithContext<T> = SFCWithInstall<T> & {
|
|
4
|
+
_context: AppContext | null;
|
|
5
|
+
};
|
|
6
|
+
export declare const withInstallFunction: <T>(fn: T, name: string) => SFCInstallWithContext<T>;
|