@factoringplus/pl-components-pack-v3 1.2.14 → 1.2.15

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 };
@@ -34,5 +34,13 @@ export * from './pl-upload';
34
34
  export * from './pl-upload-legacy';
35
35
  export * from './pl-upload-plus';
36
36
  export * from './pl-tooltip-plus';
37
+ export * from './pl-mark-text';
38
+ export * from '../utils/formatCurrency';
39
+ export * from '../utils/declOfNum';
40
+ export * from '../utils/isEqual';
41
+ export * from '../utils/formatDate';
42
+ export * from '../utils/deepSet';
43
+ export * from '../utils/dadataParser';
44
+ export * from '../plugins/filters';
37
45
  declare const _default: Plugin<any[]>[];
38
46
  export default _default;
@@ -9,11 +9,79 @@ import loadingAndSetup from '../plugins/loading/loading';
9
9
 
10
10
  import type { IPlNotification } from './pl-snackbar/types';
11
11
  declare const Storybook: {
12
- install: (app: App) => void;
13
- PlNotification: IPlNotification;
14
12
  apiJs: (optionsRequest: any, isGetResourse: boolean, token: any) => Promise<unknown>;
15
13
  plLoading: typeof plLoading;
16
14
  loader: typeof loadingAndSetup;
15
+ formatCurrency: import("../install-function").SFCInstallWithContext<(number: string | number, showDecimal?: boolean, digitCount?: number) => string>;
16
+ filters: import("../install-function").SFCInstallWithContext<() => {
17
+ capitalize(value: string): string;
18
+ displayDate(value: string | import("dayjs").Dayjs): string;
19
+ }>;
20
+ declOfNum: import("../install-function").SFCInstallWithContext<(value: number, words: string[]) => string>;
21
+ isEqual: import("../install-function").SFCInstallWithContext<(<T>(obj1: T, obj2: T) => boolean)>;
22
+ formatDate: import("../install-function").SFCInstallWithContext<(date: string, format: string) => string>;
23
+ deepSet: import("../install-function").SFCInstallWithContext<() => {
24
+ add: (o: any) => void;
25
+ }>;
26
+ dataParser: {
27
+ recipientBottomText: import("../install-function").SFCInstallWithContext<(response: any[], getBottomText: any) => any[]>;
28
+ innKppBottomText: import("../install-function").SFCInstallWithContext<(e: import('../utils/dadataParser').PartyElement) => string>;
29
+ innAddressBottomText: import("../install-function").SFCInstallWithContext<(e: import('../utils/dadataParser').PartyElement) => string>;
30
+ };
31
+ length: number;
32
+ toString(): string;
33
+ toLocaleString(): string;
34
+ pop(): import("vue").Plugin<any[]>;
35
+ push(...items: import("vue").Plugin<any[]>[]): number;
36
+ concat(...items: ConcatArray<import("vue").Plugin<any[]>>[]): import("vue").Plugin<any[]>[];
37
+ concat(...items: (import("vue").Plugin<any[]> | ConcatArray<import("vue").Plugin<any[]>>)[]): import("vue").Plugin<any[]>[];
38
+ join(separator?: string): string;
39
+ reverse(): import("vue").Plugin<any[]>[];
40
+ shift(): import("vue").Plugin<any[]>;
41
+ slice(start?: number, end?: number): import("vue").Plugin<any[]>[];
42
+ sort(compareFn?: (a: import("vue").Plugin<any[]>, b: import("vue").Plugin<any[]>) => number): import("vue").Plugin<any[]>[];
43
+ splice(start: number, deleteCount?: number): import("vue").Plugin<any[]>[];
44
+ splice(start: number, deleteCount: number, ...items: import("vue").Plugin<any[]>[]): import("vue").Plugin<any[]>[];
45
+ unshift(...items: import("vue").Plugin<any[]>[]): number;
46
+ indexOf(searchElement: import("vue").Plugin<any[]>, fromIndex?: number): number;
47
+ lastIndexOf(searchElement: import("vue").Plugin<any[]>, fromIndex?: number): number;
48
+ 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[];
49
+ every(predicate: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): boolean;
50
+ some(predicate: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): boolean;
51
+ forEach(callbackfn: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => void, thisArg?: any): void;
52
+ map<U>(callbackfn: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => U, thisArg?: any): U[];
53
+ 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[];
54
+ filter(predicate: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): import("vue").Plugin<any[]>[];
55
+ 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[]>;
56
+ 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[]>;
57
+ 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;
58
+ 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[]>;
59
+ 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[]>;
60
+ 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;
61
+ 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;
62
+ find(predicate: (value: import("vue").Plugin<any[]>, index: number, obj: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): import("vue").Plugin<any[]>;
63
+ findIndex(predicate: (value: import("vue").Plugin<any[]>, index: number, obj: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): number;
64
+ fill(value: import("vue").Plugin<any[]>, start?: number, end?: number): import("vue").Plugin<any[]>[];
65
+ copyWithin(target: number, start: number, end?: number): import("vue").Plugin<any[]>[];
66
+ entries(): IterableIterator<[number, import("vue").Plugin<any[]>]>;
67
+ keys(): IterableIterator<number>;
68
+ values(): IterableIterator<import("vue").Plugin<any[]>>;
69
+ includes(searchElement: import("vue").Plugin<any[]>, fromIndex?: number): boolean;
70
+ 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[];
71
+ flat<A, D extends number = 1>(this: A, depth?: D): FlatArray<A, D>[];
72
+ at(index: number): import("vue").Plugin<any[]>;
73
+ [Symbol.iterator](): IterableIterator<import("vue").Plugin<any[]>>;
74
+ [Symbol.unscopables](): {
75
+ copyWithin: boolean;
76
+ entries: boolean;
77
+ fill: boolean;
78
+ find: boolean;
79
+ findIndex: boolean;
80
+ keys: boolean;
81
+ values: boolean;
82
+ };
83
+ install: (app: App) => void;
84
+ PlNotification: IPlNotification;
17
85
  };
18
86
  export * from './components';
19
87
  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;
@@ -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;
@@ -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;
@@ -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>;