intelliwaketssveltekitv25 1.0.48 → 1.0.50
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/Functions.d.ts +2 -4
- package/dist/Functions.js +1 -1
- package/package.json +1 -1
package/dist/Functions.d.ts
CHANGED
|
@@ -25,17 +25,16 @@ export declare const DownloadBase64Data: (fileName: string, base64: string) => v
|
|
|
25
25
|
export declare function CopyRefToClipboard(ref: HTMLElement | null | undefined, tryFormatted?: boolean): boolean;
|
|
26
26
|
export declare const TableIDToExcel: (tableID: string, fileName?: string, appendDateTime?: boolean) => void;
|
|
27
27
|
export declare const DoIDsMatch: (a: any, b: any) => boolean;
|
|
28
|
-
type Focusable = HTMLElement | HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
|
|
29
28
|
/**
|
|
30
29
|
* Manages automatic focusing of an element, with the ability to enable or disable the functionality dynamically.
|
|
31
30
|
*
|
|
32
|
-
* @param {
|
|
31
|
+
* @param {HTMLElement | HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement} el - The element to auto-focus. The element should implement the `focus()` method and be connected to the DOM.
|
|
33
32
|
* @param {boolean} [enabled=true] - A flag indicating whether auto-focus should be initially enabled.
|
|
34
33
|
* @return {Object} An object with methods to update the enabled state or destroy the auto-focus behavior:
|
|
35
34
|
* - `update(nextEnabled: boolean)`: Updates the enabled state.
|
|
36
35
|
* - `destroy()`: Cancels the auto-focus behavior and cleans up resources.
|
|
37
36
|
*/
|
|
38
|
-
export declare function autoFocus(el:
|
|
37
|
+
export declare function autoFocus(el: HTMLElement | HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement, enabled?: boolean): {
|
|
39
38
|
update(nextEnabled: boolean): void;
|
|
40
39
|
destroy(): void;
|
|
41
40
|
};
|
|
@@ -221,4 +220,3 @@ export type TInputNumberAttributes = Omit<HTMLInputAttributes, 'value' | 'this'
|
|
|
221
220
|
thisRef?: HTMLInputElement;
|
|
222
221
|
} & TNumberStringOptions;
|
|
223
222
|
export declare function PageAdvanceSize(pageCount: number): number | null;
|
|
224
|
-
export {};
|
package/dist/Functions.js
CHANGED
|
@@ -178,7 +178,7 @@ export const DoIDsMatch = (a, b) => IsEqual(a, b) || IsEqual(a?.id, b?.id);
|
|
|
178
178
|
/**
|
|
179
179
|
* Manages automatic focusing of an element, with the ability to enable or disable the functionality dynamically.
|
|
180
180
|
*
|
|
181
|
-
* @param {
|
|
181
|
+
* @param {HTMLElement | HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement} el - The element to auto-focus. The element should implement the `focus()` method and be connected to the DOM.
|
|
182
182
|
* @param {boolean} [enabled=true] - A flag indicating whether auto-focus should be initially enabled.
|
|
183
183
|
* @return {Object} An object with methods to update the enabled state or destroy the auto-focus behavior:
|
|
184
184
|
* - `update(nextEnabled: boolean)`: Updates the enabled state.
|