@azrico/webobject 1.4.30 → 1.4.32
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.
|
@@ -158,6 +158,8 @@ export declare class SimpleObject extends MapableObject {
|
|
|
158
158
|
static setOriginal<T>(obj: T, toObj?: null | 0 | any): T | undefined;
|
|
159
159
|
static getOriginal<T extends SimpleObject>(obj: T): T | undefined;
|
|
160
160
|
addError(title?: string, message?: string, sendToRegister?: boolean | "auto"): any[] | undefined;
|
|
161
|
+
clearErrors(): boolean;
|
|
162
|
+
getErrors(): any[];
|
|
161
163
|
static addError(o?: SimpleObject, title?: string, message?: string, sendToRegister?: boolean | "auto"): any[] | undefined;
|
|
162
164
|
static getErrors(o: SimpleObject): any[];
|
|
163
165
|
static clearErrors(o: SimpleObject): boolean;
|
|
@@ -8,7 +8,6 @@ var _object = require("@azrico/object");
|
|
|
8
8
|
var _global = require("@azrico/global");
|
|
9
9
|
var _MapableObject2 = require("./MapableObject");
|
|
10
10
|
var _ObjectManager = _interopRequireDefault(require("./ObjectManager"));
|
|
11
|
-
var _WebObject = _interopRequireDefault(require("../WebObjects/WebObject"));
|
|
12
11
|
var _string = require("@azrico/string");
|
|
13
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
13
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -774,7 +773,17 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
|
|
|
774
773
|
/* -------------------------------------------------------------------------- */
|
|
775
774
|
function addError(title, message) {
|
|
776
775
|
var sendToRegister = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "auto";
|
|
777
|
-
return
|
|
776
|
+
return SimpleObject.addError(this, title, message, sendToRegister);
|
|
777
|
+
}
|
|
778
|
+
}, {
|
|
779
|
+
key: "clearErrors",
|
|
780
|
+
value: function clearErrors() {
|
|
781
|
+
return SimpleObject.clearErrors(this);
|
|
782
|
+
}
|
|
783
|
+
}, {
|
|
784
|
+
key: "getErrors",
|
|
785
|
+
value: function getErrors() {
|
|
786
|
+
return SimpleObject.getErrors(this);
|
|
778
787
|
}
|
|
779
788
|
}, {
|
|
780
789
|
key: "setSaveResult",
|