@signal24/vue-foundation 4.3.4 → 4.3.6
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/src/components/alert-modal.vue.d.ts +25 -48
- package/dist/src/components/ez-smart-select.vue.d.ts +23 -38
- package/dist/src/components/modal.vue.d.ts +23 -34
- package/dist/vue-foundation.es.js +4 -2
- package/package.json +1 -1
- package/src/components/alert-helpers.ts +2 -0
- package/src/components/alert-modal.vue +1 -1
- package/src/helpers/context-menu.ts +3 -2
|
@@ -1,50 +1,27 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
isBare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
message:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
type: import(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
-
isBare: {
|
|
27
|
-
type: import("vue").PropType<boolean>;
|
|
28
|
-
};
|
|
29
|
-
isHtml: {
|
|
30
|
-
type: import("vue").PropType<boolean>;
|
|
31
|
-
};
|
|
32
|
-
classes: {
|
|
33
|
-
type: import("vue").PropType<string[]>;
|
|
34
|
-
};
|
|
35
|
-
title: {
|
|
36
|
-
type: import("vue").PropType<string>;
|
|
37
|
-
};
|
|
38
|
-
message: {
|
|
39
|
-
type: import("vue").PropType<string | Error>;
|
|
40
|
-
required: true;
|
|
41
|
-
};
|
|
42
|
-
shouldConfirm: {
|
|
43
|
-
type: import("vue").PropType<boolean>;
|
|
44
|
-
};
|
|
45
|
-
callback: {
|
|
46
|
-
type: import("vue").PropType<(ok: boolean) => void>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
isBare?: boolean | undefined;
|
|
3
|
+
isHtml?: boolean | undefined;
|
|
4
|
+
classes?: string[] | undefined;
|
|
5
|
+
title?: string | undefined;
|
|
6
|
+
message: string | Error;
|
|
7
|
+
shouldConfirm?: boolean | undefined;
|
|
8
|
+
callback: (ok: boolean) => void;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
isBare?: boolean | undefined;
|
|
11
|
+
isHtml?: boolean | undefined;
|
|
12
|
+
classes?: string[] | undefined;
|
|
13
|
+
title?: string | undefined;
|
|
14
|
+
message: string | Error;
|
|
15
|
+
shouldConfirm?: boolean | undefined;
|
|
16
|
+
callback: (ok: boolean) => void;
|
|
17
|
+
}>>>, {}, {}>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
47
25
|
required: true;
|
|
48
26
|
};
|
|
49
|
-
}
|
|
50
|
-
export default _default;
|
|
27
|
+
};
|
|
@@ -1,42 +1,27 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
modelValue:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
placeholder: {
|
|
10
|
-
type: import("vue").PropType<string>;
|
|
11
|
-
};
|
|
12
|
-
options: {
|
|
13
|
-
type: import("vue").PropType<string[] | Record<string, string>>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
formatter: {
|
|
17
|
-
type: import("vue").PropType<(value: any) => string>;
|
|
18
|
-
};
|
|
19
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
modelValue: string | null | undefined;
|
|
3
|
+
nullTitle?: string | undefined;
|
|
4
|
+
placeholder?: string | undefined;
|
|
5
|
+
options: string[] | Record<string, string>;
|
|
6
|
+
formatter?: ((value: any) => string) | undefined;
|
|
7
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
8
|
"update:modelValue": (value: string | null) => void;
|
|
21
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
-
modelValue:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
placeholder: {
|
|
30
|
-
type: import("vue").PropType<string>;
|
|
31
|
-
};
|
|
32
|
-
options: {
|
|
33
|
-
type: import("vue").PropType<string[] | Record<string, string>>;
|
|
34
|
-
required: true;
|
|
35
|
-
};
|
|
36
|
-
formatter: {
|
|
37
|
-
type: import("vue").PropType<(value: any) => string>;
|
|
38
|
-
};
|
|
39
|
-
}>> & {
|
|
9
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
modelValue: string | null | undefined;
|
|
11
|
+
nullTitle?: string | undefined;
|
|
12
|
+
placeholder?: string | undefined;
|
|
13
|
+
options: string[] | Record<string, string>;
|
|
14
|
+
formatter?: ((value: any) => string) | undefined;
|
|
15
|
+
}>>> & {
|
|
40
16
|
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
41
17
|
}, {}, {}>;
|
|
42
18
|
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -1,41 +1,21 @@
|
|
|
1
1
|
declare function mask(): void;
|
|
2
2
|
declare function unmask(): void;
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
-
id
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
scrolls: {
|
|
11
|
-
type: import("vue").PropType<boolean>;
|
|
12
|
-
};
|
|
13
|
-
closeX: {
|
|
14
|
-
type: import("vue").PropType<boolean>;
|
|
15
|
-
};
|
|
16
|
-
class: {
|
|
17
|
-
type: import("vue").PropType<string>;
|
|
18
|
-
};
|
|
19
|
-
}, {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
id?: string | undefined;
|
|
5
|
+
closeOnMaskClick?: boolean | undefined;
|
|
6
|
+
scrolls?: boolean | undefined;
|
|
7
|
+
closeX?: boolean | undefined;
|
|
8
|
+
class?: string | undefined;
|
|
9
|
+
}>, {
|
|
20
10
|
mask: typeof mask;
|
|
21
11
|
unmask: typeof unmask;
|
|
22
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formSubmit"[], "formSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
id
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
scrolls: {
|
|
30
|
-
type: import("vue").PropType<boolean>;
|
|
31
|
-
};
|
|
32
|
-
closeX: {
|
|
33
|
-
type: import("vue").PropType<boolean>;
|
|
34
|
-
};
|
|
35
|
-
class: {
|
|
36
|
-
type: import("vue").PropType<string>;
|
|
37
|
-
};
|
|
38
|
-
}>> & {
|
|
12
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formSubmit"[], "formSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
closeOnMaskClick?: boolean | undefined;
|
|
15
|
+
scrolls?: boolean | undefined;
|
|
16
|
+
closeX?: boolean | undefined;
|
|
17
|
+
class?: string | undefined;
|
|
18
|
+
}>>> & {
|
|
39
19
|
onFormSubmit?: ((...args: any[]) => any) | undefined;
|
|
40
20
|
}, {}, {}>, {
|
|
41
21
|
header?(_: {}): any;
|
|
@@ -43,6 +23,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
43
23
|
footer?(_: {}): any;
|
|
44
24
|
}>;
|
|
45
25
|
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
46
35
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
36
|
new (): {
|
|
48
37
|
$slots: S;
|
|
@@ -131,6 +131,8 @@ async function Tn(e, t) {
|
|
|
131
131
|
function On(e, t) {
|
|
132
132
|
const n = we(R, {
|
|
133
133
|
...N(e, t),
|
|
134
|
+
isBare: !0,
|
|
135
|
+
classes: ["wait"],
|
|
134
136
|
callback: () => {
|
|
135
137
|
}
|
|
136
138
|
});
|
|
@@ -314,7 +316,7 @@ const ut = ["innerHtml"], ht = ["innerText"], R = /* @__PURE__ */ D({
|
|
|
314
316
|
]),
|
|
315
317
|
_: 2
|
|
316
318
|
}, [
|
|
317
|
-
|
|
319
|
+
i.title ? {
|
|
318
320
|
name: "header",
|
|
319
321
|
fn: j(() => [
|
|
320
322
|
y("h1", null, M(i.title), 1)
|
|
@@ -817,7 +819,7 @@ function Dn(e, t) {
|
|
|
817
819
|
return;
|
|
818
820
|
}
|
|
819
821
|
const g = document.createElement("div");
|
|
820
|
-
g.classList.add("item"), g.style.userSelect = "none", g.innerText = f.title, i.appendChild(g), f.class && g.classList.add(f.class), f.shouldConfirm ? g.addEventListener("click", () => f.handler
|
|
822
|
+
g.classList.add("item"), g.style.userSelect = "none", g.innerText = f.title, i.appendChild(g), f.class && g.classList.add(f.class), f.shouldConfirm ? g.addEventListener("click", () => E(g, f.handler)) : g.addEventListener("click", () => f.handler());
|
|
821
823
|
});
|
|
822
824
|
const o = window.innerWidth - e.clientX, r = window.innerHeight - e.clientY, l = i.offsetHeight, a = i.offsetWidth, v = o < a ? e.clientX - a - 1 : e.clientX + 1, h = r < l ? e.clientY - l - 1 : e.clientY + 1;
|
|
823
825
|
i.style.left = v + "px", i.style.top = h + "px", setTimeout(() => {
|
package/package.json
CHANGED
|
@@ -39,6 +39,8 @@ export function showWait(message: string): () => void;
|
|
|
39
39
|
export function showWait(titleOrMessage: string, message?: string): () => void {
|
|
40
40
|
const injection = createModalInjection(AlertModal, {
|
|
41
41
|
...resolveAlertParams(titleOrMessage, message),
|
|
42
|
+
isBare: true,
|
|
43
|
+
classes: ['wait'],
|
|
42
44
|
callback: () => {}
|
|
43
45
|
});
|
|
44
46
|
return () => removeModalInjection(injection);
|
|
@@ -53,9 +53,9 @@ export function showContextMenu(e: MouseEvent, config: ContextMenuConfig) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
if (item.shouldConfirm) {
|
|
56
|
-
itemEl.addEventListener('click', () => item.handler());
|
|
57
|
-
} else {
|
|
58
56
|
itemEl.addEventListener('click', () => confirmAction(itemEl, item.handler));
|
|
57
|
+
} else {
|
|
58
|
+
itemEl.addEventListener('click', () => item.handler());
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
|
|
@@ -106,3 +106,4 @@ export function showContextMenu(e: MouseEvent, config: ContextMenuConfig) {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
// TODO: actually de-select text rather than just using CSS to hide its selection
|
|
109
|
+
// TODO: confirm isn't working
|