@signal24/vue-foundation 4.13.7 → 4.13.8
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.
|
@@ -10,6 +10,6 @@ export declare function maskComponent(cmp: AnyComponentPublicInstance, message?:
|
|
|
10
10
|
export declare function unmaskComponent(cmp: AnyComponentPublicInstance): void;
|
|
11
11
|
export declare function maskEl(el: MaskElement, message?: string): () => void;
|
|
12
12
|
export declare function unmaskEl(el: MaskElement): void;
|
|
13
|
-
export declare function maskForm(formOrCmp: Element | AnyComponentPublicInstance, buttonSelector?: string | Element, buttonText?: string): (
|
|
13
|
+
export declare function maskForm(formOrCmp: Element | AnyComponentPublicInstance, buttonSelector?: string | Element, buttonText?: string): () => void;
|
|
14
14
|
export declare function unmaskForm(formOrCmp: Element | AnyComponentPublicInstance): void;
|
|
15
15
|
export {};
|
|
@@ -258,7 +258,8 @@ const Q = Symbol("FormMaskState");
|
|
|
258
258
|
function ft(e, t, n) {
|
|
259
259
|
const i = e instanceof Element ? e : He(e);
|
|
260
260
|
if (!i)
|
|
261
|
-
return
|
|
261
|
+
return () => {
|
|
262
|
+
};
|
|
262
263
|
i.classList.add("vf-masked");
|
|
263
264
|
const s = t instanceof Element ? t : i.querySelectorAll(t ?? 'button:not([disabled]):not([type="button"])')[0];
|
|
264
265
|
let o;
|
package/package.json
CHANGED
package/src/helpers/mask.ts
CHANGED
|
@@ -58,7 +58,7 @@ type FormMaskElement = Element & IFormMaskState;
|
|
|
58
58
|
|
|
59
59
|
export function maskForm(formOrCmp: Element | AnyComponentPublicInstance, buttonSelector?: string | Element, buttonText?: string) {
|
|
60
60
|
const form = formOrCmp instanceof Element ? formOrCmp : getFormFromCmp(formOrCmp);
|
|
61
|
-
if (!form) return;
|
|
61
|
+
if (!form) return () => {};
|
|
62
62
|
|
|
63
63
|
form.classList.add('vf-masked');
|
|
64
64
|
|