@factoringplus/pl-components-pack-v3 1.2.13 → 1.2.15-pre-01

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.
@@ -1,7 +1,191 @@
1
- import type { App } from 'vue';
2
1
  import type { TButtonProps } from './types';
3
- declare const PlButton: {
4
- install(app: App): void;
5
- };
2
+ export declare const PlButton: import('../../install-function').SFCInstallWithContext<{
3
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
4
+ type: {
5
+ type: import("vue").PropType<"primary" | "secondary" | "alternative" | "error" | "empty">;
6
+ default: string;
7
+ };
8
+ size: {
9
+ type: import("vue").PropType<"small" | "large" | "medium">;
10
+ default: string;
11
+ };
12
+ fullWidth: {
13
+ type: import("vue").PropType<boolean>;
14
+ default: boolean;
15
+ };
16
+ disabled: {
17
+ type: import("vue").PropType<boolean>;
18
+ default: boolean;
19
+ };
20
+ icon: {
21
+ type: import("vue").PropType<import("../pl-icon").TIcon>;
22
+ default: string;
23
+ };
24
+ iconColor: {
25
+ type: import("vue").PropType<string>;
26
+ default: string;
27
+ };
28
+ iconPosition: {
29
+ type: import("vue").PropType<"left" | "right">;
30
+ default: string;
31
+ };
32
+ nativeType: {
33
+ type: import("vue").PropType<"button" | "submit" | "reset">;
34
+ default: string;
35
+ };
36
+ }>> & {
37
+ onClick?: (...args: any[]) => any;
38
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
+ click: (...args: any[]) => void;
40
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
41
+ type: {
42
+ type: import("vue").PropType<"primary" | "secondary" | "alternative" | "error" | "empty">;
43
+ default: string;
44
+ };
45
+ size: {
46
+ type: import("vue").PropType<"small" | "large" | "medium">;
47
+ default: string;
48
+ };
49
+ fullWidth: {
50
+ type: import("vue").PropType<boolean>;
51
+ default: boolean;
52
+ };
53
+ disabled: {
54
+ type: import("vue").PropType<boolean>;
55
+ default: boolean;
56
+ };
57
+ icon: {
58
+ type: import("vue").PropType<import("../pl-icon").TIcon>;
59
+ default: string;
60
+ };
61
+ iconColor: {
62
+ type: import("vue").PropType<string>;
63
+ default: string;
64
+ };
65
+ iconPosition: {
66
+ type: import("vue").PropType<"left" | "right">;
67
+ default: string;
68
+ };
69
+ nativeType: {
70
+ type: import("vue").PropType<"button" | "submit" | "reset">;
71
+ default: string;
72
+ };
73
+ }>> & {
74
+ onClick?: (...args: any[]) => any;
75
+ }, {
76
+ type: "primary" | "secondary" | "alternative" | "error" | "empty";
77
+ size: "small" | "large" | "medium";
78
+ fullWidth: boolean;
79
+ disabled: boolean;
80
+ icon: import("../pl-icon").TIcon;
81
+ iconColor: string;
82
+ iconPosition: "left" | "right";
83
+ nativeType: "button" | "submit" | "reset";
84
+ }, true, {}, {}, {
85
+ P: {};
86
+ B: {};
87
+ D: {};
88
+ C: {};
89
+ M: {};
90
+ Defaults: {};
91
+ }, Readonly<import("vue").ExtractPropTypes<{
92
+ type: {
93
+ type: import("vue").PropType<"primary" | "secondary" | "alternative" | "error" | "empty">;
94
+ default: string;
95
+ };
96
+ size: {
97
+ type: import("vue").PropType<"small" | "large" | "medium">;
98
+ default: string;
99
+ };
100
+ fullWidth: {
101
+ type: import("vue").PropType<boolean>;
102
+ default: boolean;
103
+ };
104
+ disabled: {
105
+ type: import("vue").PropType<boolean>;
106
+ default: boolean;
107
+ };
108
+ icon: {
109
+ type: import("vue").PropType<import("../pl-icon").TIcon>;
110
+ default: string;
111
+ };
112
+ iconColor: {
113
+ type: import("vue").PropType<string>;
114
+ default: string;
115
+ };
116
+ iconPosition: {
117
+ type: import("vue").PropType<"left" | "right">;
118
+ default: string;
119
+ };
120
+ nativeType: {
121
+ type: import("vue").PropType<"button" | "submit" | "reset">;
122
+ default: string;
123
+ };
124
+ }>> & {
125
+ onClick?: (...args: any[]) => any;
126
+ }, {}, {}, {}, {}, {
127
+ type: "primary" | "secondary" | "alternative" | "error" | "empty";
128
+ size: "small" | "large" | "medium";
129
+ fullWidth: boolean;
130
+ disabled: boolean;
131
+ icon: import("../pl-icon").TIcon;
132
+ iconColor: string;
133
+ iconPosition: "left" | "right";
134
+ nativeType: "button" | "submit" | "reset";
135
+ }>;
136
+ __isFragment?: never;
137
+ __isTeleport?: never;
138
+ __isSuspense?: never;
139
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
140
+ type: {
141
+ type: import("vue").PropType<"primary" | "secondary" | "alternative" | "error" | "empty">;
142
+ default: string;
143
+ };
144
+ size: {
145
+ type: import("vue").PropType<"small" | "large" | "medium">;
146
+ default: string;
147
+ };
148
+ fullWidth: {
149
+ type: import("vue").PropType<boolean>;
150
+ default: boolean;
151
+ };
152
+ disabled: {
153
+ type: import("vue").PropType<boolean>;
154
+ default: boolean;
155
+ };
156
+ icon: {
157
+ type: import("vue").PropType<import("../pl-icon").TIcon>;
158
+ default: string;
159
+ };
160
+ iconColor: {
161
+ type: import("vue").PropType<string>;
162
+ default: string;
163
+ };
164
+ iconPosition: {
165
+ type: import("vue").PropType<"left" | "right">;
166
+ default: string;
167
+ };
168
+ nativeType: {
169
+ type: import("vue").PropType<"button" | "submit" | "reset">;
170
+ default: string;
171
+ };
172
+ }>> & {
173
+ onClick?: (...args: any[]) => any;
174
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
175
+ click: (...args: any[]) => void;
176
+ }, string, {
177
+ type: "primary" | "secondary" | "alternative" | "error" | "empty";
178
+ size: "small" | "large" | "medium";
179
+ fullWidth: boolean;
180
+ disabled: boolean;
181
+ icon: import("../pl-icon").TIcon;
182
+ iconColor: string;
183
+ iconPosition: "left" | "right";
184
+ nativeType: "button" | "submit" | "reset";
185
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
186
+ $slots: {
187
+ default?(_: {}): any;
188
+ };
189
+ })>;
6
190
  export default PlButton;
7
191
  export type { TButtonProps };
@@ -8,12 +8,70 @@ import loadingAndSetup from '../plugins/loading/loading';
8
8
 
9
9
 
10
10
  import type { IPlNotification } from './pl-snackbar/types';
11
+ import declOfNum from '../utils/declOfNum';
11
12
  declare const Storybook: {
12
- install: (app: App) => void;
13
- PlNotification: IPlNotification;
14
13
  apiJs: (optionsRequest: any, isGetResourse: boolean, token: any) => Promise<unknown>;
15
14
  plLoading: typeof plLoading;
16
15
  loader: typeof loadingAndSetup;
16
+ formatCurrency: (number: string | number, showDecimal?: boolean, digitCount?: number) => string;
17
+ filters: {
18
+ install(app: App<any>): void;
19
+ };
20
+ declOfNum: typeof declOfNum;
21
+ length: number;
22
+ toString(): string;
23
+ toLocaleString(): string;
24
+ pop(): import("vue").Plugin<any[]>;
25
+ push(...items: import("vue").Plugin<any[]>[]): number;
26
+ concat(...items: ConcatArray<import("vue").Plugin<any[]>>[]): import("vue").Plugin<any[]>[];
27
+ concat(...items: (import("vue").Plugin<any[]> | ConcatArray<import("vue").Plugin<any[]>>)[]): import("vue").Plugin<any[]>[];
28
+ join(separator?: string): string;
29
+ reverse(): import("vue").Plugin<any[]>[];
30
+ shift(): import("vue").Plugin<any[]>;
31
+ slice(start?: number, end?: number): import("vue").Plugin<any[]>[];
32
+ sort(compareFn?: (a: import("vue").Plugin<any[]>, b: import("vue").Plugin<any[]>) => number): import("vue").Plugin<any[]>[];
33
+ splice(start: number, deleteCount?: number): import("vue").Plugin<any[]>[];
34
+ splice(start: number, deleteCount: number, ...items: import("vue").Plugin<any[]>[]): import("vue").Plugin<any[]>[];
35
+ unshift(...items: import("vue").Plugin<any[]>[]): number;
36
+ indexOf(searchElement: import("vue").Plugin<any[]>, fromIndex?: number): number;
37
+ lastIndexOf(searchElement: import("vue").Plugin<any[]>, fromIndex?: number): number;
38
+ every<S extends import("vue").Plugin<any[]>>(predicate: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => value is S, thisArg?: any): this is S[];
39
+ every(predicate: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): boolean;
40
+ some(predicate: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): boolean;
41
+ forEach(callbackfn: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => void, thisArg?: any): void;
42
+ map<U>(callbackfn: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => U, thisArg?: any): U[];
43
+ filter<S_1 extends import("vue").Plugin<any[]>>(predicate: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => value is S_1, thisArg?: any): S_1[];
44
+ filter(predicate: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): import("vue").Plugin<any[]>[];
45
+ reduce(callbackfn: (previousValue: import("vue").Plugin<any[]>, currentValue: import("vue").Plugin<any[]>, currentIndex: number, array: import("vue").Plugin<any[]>[]) => import("vue").Plugin<any[]>): import("vue").Plugin<any[]>;
46
+ reduce(callbackfn: (previousValue: import("vue").Plugin<any[]>, currentValue: import("vue").Plugin<any[]>, currentIndex: number, array: import("vue").Plugin<any[]>[]) => import("vue").Plugin<any[]>, initialValue: import("vue").Plugin<any[]>): import("vue").Plugin<any[]>;
47
+ reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: import("vue").Plugin<any[]>, currentIndex: number, array: import("vue").Plugin<any[]>[]) => U_1, initialValue: U_1): U_1;
48
+ reduceRight(callbackfn: (previousValue: import("vue").Plugin<any[]>, currentValue: import("vue").Plugin<any[]>, currentIndex: number, array: import("vue").Plugin<any[]>[]) => import("vue").Plugin<any[]>): import("vue").Plugin<any[]>;
49
+ reduceRight(callbackfn: (previousValue: import("vue").Plugin<any[]>, currentValue: import("vue").Plugin<any[]>, currentIndex: number, array: import("vue").Plugin<any[]>[]) => import("vue").Plugin<any[]>, initialValue: import("vue").Plugin<any[]>): import("vue").Plugin<any[]>;
50
+ reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: import("vue").Plugin<any[]>, currentIndex: number, array: import("vue").Plugin<any[]>[]) => U_2, initialValue: U_2): U_2;
51
+ find<S_2 extends import("vue").Plugin<any[]>>(predicate: (this: void, value: import("vue").Plugin<any[]>, index: number, obj: import("vue").Plugin<any[]>[]) => value is S_2, thisArg?: any): S_2;
52
+ find(predicate: (value: import("vue").Plugin<any[]>, index: number, obj: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): import("vue").Plugin<any[]>;
53
+ findIndex(predicate: (value: import("vue").Plugin<any[]>, index: number, obj: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): number;
54
+ fill(value: import("vue").Plugin<any[]>, start?: number, end?: number): import("vue").Plugin<any[]>[];
55
+ copyWithin(target: number, start: number, end?: number): import("vue").Plugin<any[]>[];
56
+ entries(): IterableIterator<[number, import("vue").Plugin<any[]>]>;
57
+ keys(): IterableIterator<number>;
58
+ values(): IterableIterator<import("vue").Plugin<any[]>>;
59
+ includes(searchElement: import("vue").Plugin<any[]>, fromIndex?: number): boolean;
60
+ flatMap<U_3, This = undefined>(callback: (this: This, value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => U_3 | readonly U_3[], thisArg?: This): U_3[];
61
+ flat<A, D extends number = 1>(this: A, depth?: D): FlatArray<A, D>[];
62
+ at(index: number): import("vue").Plugin<any[]>;
63
+ [Symbol.iterator](): IterableIterator<import("vue").Plugin<any[]>>;
64
+ [Symbol.unscopables](): {
65
+ copyWithin: boolean;
66
+ entries: boolean;
67
+ fill: boolean;
68
+ find: boolean;
69
+ findIndex: boolean;
70
+ keys: boolean;
71
+ values: boolean;
72
+ };
73
+ install: (app: App) => void;
74
+ PlNotification: IPlNotification;
17
75
  };
18
76
  export * from './components';
19
77
  export default Storybook;
@@ -0,0 +1,2 @@
1
+ export declare const WEEK_DAYS: string[];
2
+ export declare const DISPLAY_MONTHS: string[];
@@ -1,46 +1,51 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
1
+ import type { Rules, ValidateError } from 'async-validator';
2
+ interface IFormProps {
2
3
  model: {
3
- type: ObjectConstructor;
4
- required: true;
5
- };
6
- rules: {
7
- type: ObjectConstructor;
8
- default: () => void;
4
+ [key: string]: any;
9
5
  };
10
- modelErrorsState: {
11
- type: ArrayConstructor;
12
- default: () => any[];
13
- };
14
- }, {
15
- validate: (callback?: (success: boolean, errors: any[]) => void) => Promise<void>;
16
- validateField: (prop: any) => Promise<void>;
17
- clearValidate: (props?: any[]) => void;
18
- resetFields: (props?: any[]) => void;
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
- model: {
24
- type: ObjectConstructor;
25
- required: true;
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: Record<string, any>;
39
- modelErrorsState: unknown[];
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;
@@ -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
- import type { AppContext, Plugin } from 'vue';
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;
@@ -12,6 +12,7 @@ interface IProps {
12
12
  tooltip?: string;
13
13
  prop?: string;
14
14
  optional?: string;
15
+ width?: string;
15
16
  }
16
17
  declare type TError = {
17
18
  dist: boolean;
@@ -20,7 +21,7 @@ declare type TError = {
20
21
  declare type TUnloadedFile = {
21
22
  name: string;
22
23
  size: number;
23
- error: TError;
24
+ error?: TError;
24
25
  };
25
26
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
26
27
  multiple: boolean;
@@ -36,6 +37,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
36
37
  tooltip: string;
37
38
  prop: string;
38
39
  optional: string;
40
+ width: string;
39
41
  }>, {
40
42
  addFiles: (files: FileList | File[]) => void;
41
43
  removeFile: (fileToRemove: File | TUnloadedFile) => void;
@@ -57,6 +59,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
57
59
  tooltip: string;
58
60
  prop: string;
59
61
  optional: string;
62
+ width: string;
60
63
  }>>> & {
61
64
  onAddFiles?: (...args: any[]) => any;
62
65
  onRemoveFile?: (...args: any[]) => any;
@@ -67,6 +70,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
67
70
  modelValue: (File | TUnloadedFile)[];
68
71
  prop: string;
69
72
  description: string;
73
+ width: string;
70
74
  optional: string;
71
75
  tooltip: string;
72
76
  accept: string;
@@ -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>;