@factoringplus/pl-components-pack-v3 1.2.11-pre-03 → 1.2.11-typings-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.
@@ -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 };
@@ -9,11 +9,63 @@ 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
+ length: number;
16
+ toString(): string;
17
+ toLocaleString(): string;
18
+ pop(): import("vue").Plugin<any[]>;
19
+ push(...items: import("vue").Plugin<any[]>[]): number;
20
+ concat(...items: ConcatArray<import("vue").Plugin<any[]>>[]): import("vue").Plugin<any[]>[];
21
+ concat(...items: (import("vue").Plugin<any[]> | ConcatArray<import("vue").Plugin<any[]>>)[]): import("vue").Plugin<any[]>[];
22
+ join(separator?: string): string;
23
+ reverse(): import("vue").Plugin<any[]>[];
24
+ shift(): import("vue").Plugin<any[]>;
25
+ slice(start?: number, end?: number): import("vue").Plugin<any[]>[];
26
+ sort(compareFn?: (a: import("vue").Plugin<any[]>, b: import("vue").Plugin<any[]>) => number): import("vue").Plugin<any[]>[];
27
+ splice(start: number, deleteCount?: number): import("vue").Plugin<any[]>[];
28
+ splice(start: number, deleteCount: number, ...items: import("vue").Plugin<any[]>[]): import("vue").Plugin<any[]>[];
29
+ unshift(...items: import("vue").Plugin<any[]>[]): number;
30
+ indexOf(searchElement: import("vue").Plugin<any[]>, fromIndex?: number): number;
31
+ lastIndexOf(searchElement: import("vue").Plugin<any[]>, fromIndex?: number): number;
32
+ 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[];
33
+ every(predicate: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): boolean;
34
+ some(predicate: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): boolean;
35
+ forEach(callbackfn: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => void, thisArg?: any): void;
36
+ map<U>(callbackfn: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => U, thisArg?: any): U[];
37
+ 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[];
38
+ filter(predicate: (value: import("vue").Plugin<any[]>, index: number, array: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): import("vue").Plugin<any[]>[];
39
+ 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[]>;
40
+ 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[]>;
41
+ 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;
42
+ 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[]>;
43
+ 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[]>;
44
+ 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;
45
+ 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;
46
+ find(predicate: (value: import("vue").Plugin<any[]>, index: number, obj: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): import("vue").Plugin<any[]>;
47
+ findIndex(predicate: (value: import("vue").Plugin<any[]>, index: number, obj: import("vue").Plugin<any[]>[]) => unknown, thisArg?: any): number;
48
+ fill(value: import("vue").Plugin<any[]>, start?: number, end?: number): import("vue").Plugin<any[]>[];
49
+ copyWithin(target: number, start: number, end?: number): import("vue").Plugin<any[]>[];
50
+ entries(): IterableIterator<[number, import("vue").Plugin<any[]>]>;
51
+ keys(): IterableIterator<number>;
52
+ values(): IterableIterator<import("vue").Plugin<any[]>>;
53
+ includes(searchElement: import("vue").Plugin<any[]>, fromIndex?: number): boolean;
54
+ 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[];
55
+ flat<A, D extends number = 1>(this: A, depth?: D): FlatArray<A, D>[];
56
+ at(index: number): import("vue").Plugin<any[]>;
57
+ [Symbol.iterator](): IterableIterator<import("vue").Plugin<any[]>>;
58
+ [Symbol.unscopables](): {
59
+ copyWithin: boolean;
60
+ entries: boolean;
61
+ fill: boolean;
62
+ find: boolean;
63
+ findIndex: boolean;
64
+ keys: boolean;
65
+ values: boolean;
66
+ };
67
+ install: (app: App) => void;
68
+ PlNotification: IPlNotification;
17
69
  };
18
70
  export * from './components';
19
71
  export default Storybook;
@@ -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>;