@aitronos/freddy-plugins 0.1.37 → 0.1.39
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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +71 -0
- package/dist/index.js +798 -697
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -131,6 +131,34 @@ export declare const calculatePercentage: (partialValue: number, totalValue: num
|
|
|
131
131
|
*/
|
|
132
132
|
export declare function cloneDeepSafe<T>(value: T): T;
|
|
133
133
|
|
|
134
|
+
export declare const ConfirmationModal: DefineComponent<ExtractPropTypes< {
|
|
135
|
+
title: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
required: true;
|
|
138
|
+
};
|
|
139
|
+
description: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
144
|
+
close: (...args: any[]) => void;
|
|
145
|
+
confirmDeletion: (...args: any[]) => void;
|
|
146
|
+
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
147
|
+
title: {
|
|
148
|
+
type: StringConstructor;
|
|
149
|
+
required: true;
|
|
150
|
+
};
|
|
151
|
+
description: {
|
|
152
|
+
type: StringConstructor;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
155
|
+
}>> & Readonly<{
|
|
156
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
157
|
+
onConfirmDeletion?: ((...args: any[]) => any) | undefined;
|
|
158
|
+
}>, {
|
|
159
|
+
description: string;
|
|
160
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
161
|
+
|
|
134
162
|
/**
|
|
135
163
|
* Copies the provided text to the clipboard and shows a toast notification.
|
|
136
164
|
* @param textToCopy - The text to copy to the clipboard.
|
|
@@ -139,6 +167,21 @@ export declare const copyToClipboard: (textToCopy: string) => Promise<void>;
|
|
|
139
167
|
|
|
140
168
|
export declare const daysInMonth: number;
|
|
141
169
|
|
|
170
|
+
/**
|
|
171
|
+
* Creates a debounced version of a function that delays invoking it
|
|
172
|
+
* until after `wait` milliseconds have elapsed since the last time it was called.
|
|
173
|
+
*
|
|
174
|
+
* @template T - The type of the original function.
|
|
175
|
+
* @param fn - The function to debounce.
|
|
176
|
+
* @param wait - The number of milliseconds to delay. Defaults to 300ms.
|
|
177
|
+
* @returns A debounced version of the original function.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* const debouncedFn = debounce(() => console.log('Called!'), 500)
|
|
181
|
+
* window.addEventListener('resize', debouncedFn)
|
|
182
|
+
*/
|
|
183
|
+
export declare function debounce<T extends (...args: any[]) => void>(fn: T, wait?: number): (...args: Parameters<T>) => void;
|
|
184
|
+
|
|
142
185
|
/**
|
|
143
186
|
* Performs a deep comparison between two values to determine if they are equivalent.
|
|
144
187
|
* This function is similar to Lodash's `isEqual`.
|
|
@@ -152,6 +195,34 @@ export declare function deepEqual<T>(a: T, b: T): boolean;
|
|
|
152
195
|
|
|
153
196
|
export declare const defaultImageSrc = "https://img.freepik.com/premium-vector/default-image-icon-vector-missing-picture-page-website-design-mobile-app-no-photo-available_87543-11093.jpg";
|
|
154
197
|
|
|
198
|
+
export declare const DeleteConfirmationModal: DefineComponent<ExtractPropTypes< {
|
|
199
|
+
title: {
|
|
200
|
+
type: StringConstructor;
|
|
201
|
+
required: true;
|
|
202
|
+
};
|
|
203
|
+
description: {
|
|
204
|
+
type: StringConstructor;
|
|
205
|
+
default: string;
|
|
206
|
+
};
|
|
207
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
208
|
+
close: (...args: any[]) => void;
|
|
209
|
+
confirmDeletion: (...args: any[]) => void;
|
|
210
|
+
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
211
|
+
title: {
|
|
212
|
+
type: StringConstructor;
|
|
213
|
+
required: true;
|
|
214
|
+
};
|
|
215
|
+
description: {
|
|
216
|
+
type: StringConstructor;
|
|
217
|
+
default: string;
|
|
218
|
+
};
|
|
219
|
+
}>> & Readonly<{
|
|
220
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
221
|
+
onConfirmDeletion?: ((...args: any[]) => any) | undefined;
|
|
222
|
+
}>, {
|
|
223
|
+
description: string;
|
|
224
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
225
|
+
|
|
155
226
|
/**
|
|
156
227
|
* Formats a file size in bytes into a human-readable string.
|
|
157
228
|
* @param bytes - The file size in bytes.
|