fuma 0.3.55 → 0.3.56
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.
|
@@ -15,16 +15,16 @@ $:
|
|
|
15
15
|
let header;
|
|
16
16
|
let timeout;
|
|
17
17
|
async function handleClick(event) {
|
|
18
|
-
if (
|
|
18
|
+
if (isClickOnInteractiveElement(event))
|
|
19
19
|
return;
|
|
20
20
|
await goto($urlParam.toggle({ section: value }), { noScroll: true, keepFocus: true });
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function isClickOnInteractiveElement(event) {
|
|
23
23
|
if (!event)
|
|
24
24
|
return false;
|
|
25
25
|
const target = event.target;
|
|
26
|
-
const
|
|
27
|
-
return !!
|
|
26
|
+
const elements = [...header.querySelectorAll("a, button")];
|
|
27
|
+
return !!elements.filter((element) => element.contains(target)).length;
|
|
28
28
|
}
|
|
29
29
|
onDestroy(() => {
|
|
30
30
|
clearTimeout(timeout);
|
|
@@ -31,7 +31,7 @@ export type FormInputProps<T extends FormInputsType> = ComponentProps<InstanceTy
|
|
|
31
31
|
export type FormInputsProps = {
|
|
32
32
|
[T in FormInputsType]: FormInputProps<T>;
|
|
33
33
|
};
|
|
34
|
-
export declare const formInputsType: ("number" | "boolean" | "select" | "textarea" | "
|
|
34
|
+
export declare const formInputsType: ("number" | "boolean" | "select" | "textarea" | "text" | "date" | "password" | "radio" | "textrich" | "datetime" | "relation" | "relations")[];
|
|
35
35
|
export declare function relationProps<Item extends {
|
|
36
36
|
id: string;
|
|
37
37
|
}>(props: ComponentProps<InstanceType<typeof InputRelation<Item>>>): {
|
package/dist/validation/zod.d.ts
CHANGED
|
@@ -186,7 +186,7 @@ export declare const z: {
|
|
|
186
186
|
map: "map";
|
|
187
187
|
set: "set";
|
|
188
188
|
};
|
|
189
|
-
getParsedType: (data: any) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "map" | "nan" | "integer" | "float" | "date" | "null" | "array" | "unknown" | "promise" | "void" | "never"
|
|
189
|
+
getParsedType: (data: any) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "map" | "set" | "nan" | "integer" | "float" | "date" | "null" | "array" | "unknown" | "promise" | "void" | "never";
|
|
190
190
|
ZodType: typeof zod.ZodType;
|
|
191
191
|
ZodString: typeof zod.ZodString;
|
|
192
192
|
ZodNumber: typeof zod.ZodNumber;
|