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.
@@ -168213,8 +168213,8 @@ const vut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
168213
168213
  variant: { default: "global" },
168214
168214
  title: {},
168215
168215
  text: {},
168216
- callback: {},
168217
- cancelCallback: {},
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.cancelCallback && await l.cancelCallback(), i();
168225
+ l.onCancel && await l.onCancel(), i();
168226
168226
  }
168227
168227
  async function a() {
168228
- l.callback && (r.value = !0, await l.callback(), r.value = !1), i();
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
- callback?: (...params: any) => any;
7
- cancelCallback?: () => void;
6
+ onSave?: (...params: any) => any;
7
+ onCancel?: () => any;
8
8
  width?: string;
9
9
  reference?: boolean;
10
10
  buttons?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jplan-pack",
3
- "version": "0.3.81",
3
+ "version": "0.3.82",
4
4
  "main": "./dist/jplan-pack.cjs.js",
5
5
  "module": "./dist/jplan-pack.es.js",
6
6
  "types": "dist/types/index.d.ts",