@azrico/webobject 1.3.17 → 1.3.19
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.
|
@@ -69,6 +69,7 @@ export declare class WebObject extends SimpleObject {
|
|
|
69
69
|
static get_webname(): string | undefined;
|
|
70
70
|
get manager(): WebObjectManager<any> | null;
|
|
71
71
|
get_managerClass: () => WebObjectManager<any> | null;
|
|
72
|
+
set_managerClass(mng: WebObjectManager<any> | any): void;
|
|
72
73
|
onDelete(...p: any): Promise<any>;
|
|
73
74
|
onLoad(...p: any): Promise<any>;
|
|
74
75
|
onSave(...p: any): Promise<any>;
|
|
@@ -343,9 +343,17 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
343
343
|
get: function get() {
|
|
344
344
|
return this.get_managerClass();
|
|
345
345
|
}
|
|
346
|
+
}, {
|
|
347
|
+
key: "set_managerClass",
|
|
348
|
+
value: function set_managerClass(mng) {
|
|
349
|
+
this.get_managerClass = function () {
|
|
350
|
+
return mng;
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
/* -------------------------------------------------------------------------- */
|
|
346
354
|
}, {
|
|
347
355
|
key: "onDelete",
|
|
348
|
-
value:
|
|
356
|
+
value: function () {
|
|
349
357
|
var _onDelete = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
350
358
|
var _this$manager;
|
|
351
359
|
var _len,
|
|
@@ -88,12 +88,12 @@ var ObjectManager = /*#__PURE__*/function () {
|
|
|
88
88
|
}, {
|
|
89
89
|
key: "setObject",
|
|
90
90
|
value: function setObject(toObj) {
|
|
91
|
-
var _this = this;
|
|
92
91
|
this.__currentObject = toObj;
|
|
93
92
|
if (this.__currentObject) {
|
|
94
|
-
this.__currentObject.
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
this.__currentObject.set_managerClass(this);
|
|
94
|
+
}
|
|
95
|
+
if (toObj == null) {
|
|
96
|
+
console.warn("setObject was used to set null. try to use empty objects instead of null");
|
|
97
97
|
}
|
|
98
98
|
return true;
|
|
99
99
|
}
|
|
@@ -139,6 +139,7 @@ export declare class SimpleObject extends MapableObject {
|
|
|
139
139
|
get lastChanged(): string;
|
|
140
140
|
get manager(): ObjectManager<any> | null;
|
|
141
141
|
get_managerClass: () => ObjectManager<any> | null;
|
|
142
|
+
set_managerClass(mng: ObjectManager<any> | any): void;
|
|
142
143
|
static isDeleted<T extends SimpleObject>(obj: T): boolean;
|
|
143
144
|
getIndexOrID(): number | string;
|
|
144
145
|
getIndex(): number;
|
|
@@ -634,6 +634,13 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
|
|
|
634
634
|
get: function get() {
|
|
635
635
|
return this.get_managerClass();
|
|
636
636
|
}
|
|
637
|
+
}, {
|
|
638
|
+
key: "set_managerClass",
|
|
639
|
+
value: function set_managerClass(mng) {
|
|
640
|
+
this.get_managerClass = function () {
|
|
641
|
+
return mng;
|
|
642
|
+
};
|
|
643
|
+
}
|
|
637
644
|
}, {
|
|
638
645
|
key: "getIndexOrID",
|
|
639
646
|
value: function getIndexOrID() {
|