@azrico/webobject 1.4.165 → 1.4.166
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.
|
@@ -116,6 +116,11 @@ export declare class ObjectManager<ObjType extends SimpleObject> extends RawObje
|
|
|
116
116
|
addError(title?: string, message?: string, sendToRegister?: boolean | "auto"): any[] | undefined;
|
|
117
117
|
getErrors(): any[];
|
|
118
118
|
clearErrors(): boolean;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @returns isChanged
|
|
122
|
+
*/
|
|
123
|
+
useIsChanged(): any;
|
|
119
124
|
static addError(o?: ObjectManager<any>, title?: string, message?: string, sendToRegister?: boolean | "auto"): any[] | undefined;
|
|
120
125
|
static getErrors(o: ObjectManager<any>): any[];
|
|
121
126
|
static clearErrors(o: ObjectManager<any>): boolean;
|
|
@@ -700,6 +700,20 @@ var ObjectManager = exports.ObjectManager = /*#__PURE__*/function (_RawObject) {
|
|
|
700
700
|
value: function clearErrors() {
|
|
701
701
|
return ObjectManager.clearErrors(this);
|
|
702
702
|
}
|
|
703
|
+
/* -------------------------------------------------------------------------- */
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @returns isChanged
|
|
707
|
+
*/
|
|
708
|
+
}, {
|
|
709
|
+
key: "useIsChanged",
|
|
710
|
+
value: function useIsChanged() {
|
|
711
|
+
var _this4 = this;
|
|
712
|
+
return this.event_use("on_{change,save,load}", function () {
|
|
713
|
+
return _this4.isChanged;
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
/* -------------------------------------------------------------------------- */
|
|
703
717
|
}], [{
|
|
704
718
|
key: "events_clear",
|
|
705
719
|
value: function events_clear(obj) {
|