ag-utilities
Advanced tools
Comparing version 1.1.207 to 1.1.208
@@ -68,3 +68,2 @@ import { Delta } from './AgDiff'; | ||
data: TI; | ||
onShow: (input: TI) => void; | ||
exposed: { | ||
@@ -75,2 +74,5 @@ show(input: InitValue<TI>): Promise<TO>; | ||
reject(err: any): void; | ||
onShow: (input: TI) => void; | ||
onReject: (err: any) => void; | ||
onResolve: (output: TO) => void; | ||
}; |
@@ -216,2 +216,4 @@ "use strict"; | ||
var onshow; | ||
var onreject; | ||
var onresolve; | ||
return { | ||
@@ -230,5 +232,2 @@ get visible() { | ||
}, | ||
set onShow(fn) { | ||
onshow = fn; | ||
}, | ||
exposed: { | ||
@@ -252,2 +251,3 @@ show: function (input) { | ||
resolve: function (output) { | ||
onresolve === null || onresolve === void 0 ? void 0 : onresolve(output); | ||
visible.value = false; | ||
@@ -257,4 +257,14 @@ promise.resolve(output); | ||
reject: function (err) { | ||
onreject === null || onreject === void 0 ? void 0 : onreject(err); | ||
visible.value = false; | ||
promise.reject(err); | ||
}, | ||
set onShow(fn) { | ||
onshow = fn; | ||
}, | ||
set onReject(fn) { | ||
onreject = fn; | ||
}, | ||
set onResolve(fn) { | ||
onresolve = fn; | ||
} | ||
@@ -261,0 +271,0 @@ }; |
{ | ||
"name": "ag-utilities", | ||
"version": "1.1.207", | ||
"version": "1.1.208", | ||
"author": "fangxq", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143854
3292