jplan-pack 0.3.81 → 0.3.82
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/jplan-pack.es.js
CHANGED
@@ -168213,8 +168213,8 @@ const vut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
168213
168213
|
variant: { default: "global" },
|
168214
168214
|
title: {},
|
168215
168215
|
text: {},
|
168216
|
-
|
168217
|
-
|
168216
|
+
onSave: {},
|
168217
|
+
onCancel: {},
|
168218
168218
|
width: { default: "500" },
|
168219
168219
|
reference: { type: Boolean },
|
168220
168220
|
buttons: { type: Boolean, default: !0 }
|
@@ -168222,10 +168222,10 @@ const vut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
168222
168222
|
setup(n) {
|
168223
168223
|
const l = n, r = kt(!1), { isDialogActive: s, closeDialog: i } = But(l.dialogId);
|
168224
168224
|
async function h() {
|
168225
|
-
l.
|
168225
|
+
l.onCancel && await l.onCancel(), i();
|
168226
168226
|
}
|
168227
168227
|
async function a() {
|
168228
|
-
l.
|
168228
|
+
l.onSave && (r.value = !0, await l.onSave(), r.value = !1), i();
|
168229
168229
|
}
|
168230
168230
|
return (d, p) => {
|
168231
168231
|
const u = le("ExclamationCircleIcon");
|
@@ -3,8 +3,8 @@ export type JDialogType = {
|
|
3
3
|
variant?: 'global' | 'confirm';
|
4
4
|
title?: string;
|
5
5
|
text?: string;
|
6
|
-
|
7
|
-
|
6
|
+
onSave?: (...params: any) => any;
|
7
|
+
onCancel?: () => any;
|
8
8
|
width?: string;
|
9
9
|
reference?: boolean;
|
10
10
|
buttons?: boolean;
|