@abgov/web-components 1.37.1-alpha.6 → 1.38.0-alpha.2
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/common/utils.d.ts +7 -0
- package/components/checkbox-list/CheckboxList.svelte.d.ts +1 -0
- package/components/menu-button/MenuAction.svelte.d.ts +1 -0
- package/components/menu-button/MenuButton.svelte.d.ts +1 -0
- package/index.js +10817 -9795
- package/package.json +1 -1
- package/types/relay-types.d.ts +2 -1
package/common/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function watch(fn: () => void, _: unknown[]): void;
|
|
1
2
|
export declare function styles(...css: (string | boolean)[]): string;
|
|
2
3
|
export declare function style(name: string, value: string | number): string;
|
|
3
4
|
export declare const msg: {
|
|
@@ -30,6 +31,7 @@ export declare function clamp(value: number, min: number, max: number): number;
|
|
|
30
31
|
export declare function generateRandomId(): string;
|
|
31
32
|
export declare function padLeft(value: string | number, len: number, padWith: string | number): string;
|
|
32
33
|
export declare function performOnce(timeoutId: any, action: () => void, delay?: number): any;
|
|
34
|
+
export declare function isPointInRectangle(x: number, y: number, rectX: number, rectY: number, rectWidth: number, rectHeight: number): boolean;
|
|
33
35
|
export declare function ensureSlotExists(el: HTMLElement): void;
|
|
34
36
|
export declare function getQueryParams(url: string | URL): Record<string, string>;
|
|
35
37
|
export declare function getQueryParam(url: string | URL, key: string): string | undefined;
|
|
@@ -39,3 +41,8 @@ export declare function getQueryParam(url: string | URL, key: string): string |
|
|
|
39
41
|
* @param duration How long to keep the announcer element in the DOM (in milliseconds)
|
|
40
42
|
*/
|
|
41
43
|
export declare function announceToScreenReader(text: string, duration?: number): void;
|
|
44
|
+
export declare function getLocalDateValues(input: string | Date): {
|
|
45
|
+
year: number;
|
|
46
|
+
month: number;
|
|
47
|
+
day: number;
|
|
48
|
+
} | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|