@v1nt1248/3nclient-lib 0.1.92 → 0.1.93

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.1.92",
5
+ "version": "0.1.93",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -15,7 +15,7 @@ export interface Ui3nDialogProps {
15
15
  contentCssStyle?: Record<string, string>;
16
16
  confirmButton?: boolean;
17
17
  cancelButton?: boolean;
18
- onClose?: () => void;
18
+ onClose?: (data?: unknown) => void;
19
19
  onConfirm?: (data: unknown) => void;
20
20
  onCancel?: (data: unknown) => void;
21
21
  confirmButtonText?: string;
@@ -101,7 +101,7 @@
101
101
  show.value = false;
102
102
  props.dialogProps?.onClose && props.dialogProps.onClose();
103
103
  if (withAction) {
104
- emits('close');
104
+ emits('close', data.value);
105
105
  }
106
106
  }
107
107