@factoringplus/pl-components-pack-v3 1.2.12-pre-05 → 1.2.12-pre-06

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 };
@@ -10,16 +10,68 @@ import loadingAndSetup from '../plugins/loading/loading';
10
10
  import type { IPlNotification } from './pl-snackbar/types';
11
11
  import declOfNum from '../utils/declOfNum';
12
12
  declare const Storybook: {
13
- install: (app: App) => void;
14
- PlNotification: IPlNotification;
15
13
  apiJs: (optionsRequest: any, isGetResourse: boolean, token: any) => Promise<unknown>;
16
14
  plLoading: typeof plLoading;
17
15
  loader: typeof loadingAndSetup;
18
- formatCurrency: (number: string | number, showDecimal?: boolean, digitCount?: number) => string;
16
+ formatCurrency: import("../install-function").SFCInstallWithContext<(number: string | number, showDecimal?: boolean, digitCount?: number) => string>;
19
17
  filters: {
20
18
  install(app: App<any>): void;
21
19
  };
22
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;
23
75
  };
24
76
  export * from './components';
25
77
  export default Storybook;
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
15
15
  clearable: boolean;
16
16
  buttons: boolean;
17
17
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ reset: (...args: any[]) => void;
18
19
  "update:modelValue": (...args: any[]) => void;
19
20
  change: (...args: any[]) => void;
20
21
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ISelectProps>, {
@@ -34,6 +35,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
34
35
  buttons: boolean;
35
36
  }>>> & {
36
37
  onChange?: (...args: any[]) => any;
38
+ onReset?: (...args: any[]) => any;
37
39
  "onUpdate:modelValue"?: (...args: any[]) => any;
38
40
  }, {
39
41
  label: string;
@@ -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>;