@azrico/webobject 1.4.80 → 1.4.81
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.
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { ClassType } from "@azrico/types";
|
|
1
2
|
import { WebObject, sendChangesType } from "../index";
|
|
2
3
|
import ObjectManager from "../structs/ObjectManager";
|
|
3
4
|
/**
|
|
4
5
|
* This class manages the events of an Simple Object
|
|
5
6
|
*/
|
|
6
7
|
export declare class WebObjectManager<T extends WebObject> extends ObjectManager<T> {
|
|
8
|
+
static readonly __object_type: ClassType<WebObject>;
|
|
7
9
|
static readonly __save_message: boolean;
|
|
8
10
|
protected __last_web_path: string;
|
|
9
11
|
protected __last_web_type: string;
|
|
@@ -206,14 +206,14 @@ var WebObjectManager = /*#__PURE__*/function (_ObjectManager, _setMetaValue, _ge
|
|
|
206
206
|
}, {
|
|
207
207
|
key: "__web_path",
|
|
208
208
|
get: function get() {
|
|
209
|
-
var _this$obj5;
|
|
210
|
-
return ((_this$obj5 = this.obj) === null || _this$obj5 === void 0 ? void 0 : _this$obj5.__web_path) || this.__last_web_path || this.__web_type;
|
|
209
|
+
var _this$obj5, _this$constructor$__o;
|
|
210
|
+
return ((_this$obj5 = this.obj) === null || _this$obj5 === void 0 ? void 0 : _this$obj5.__web_path) || ((_this$constructor$__o = this.constructor["__object_type"]) === null || _this$constructor$__o === void 0 ? void 0 : _this$constructor$__o.__web_path) || this.__last_web_path || this.__web_type;
|
|
211
211
|
}
|
|
212
212
|
}, {
|
|
213
213
|
key: "__web_type",
|
|
214
214
|
get: function get() {
|
|
215
|
-
var _this$obj6;
|
|
216
|
-
return ((_this$obj6 = this.obj) === null || _this$obj6 === void 0 ? void 0 : _this$obj6.__web_type) || this.__last_web_type || "";
|
|
215
|
+
var _this$obj6, _this$constructor$__o2;
|
|
216
|
+
return ((_this$obj6 = this.obj) === null || _this$obj6 === void 0 ? void 0 : _this$obj6.__web_type) || ((_this$constructor$__o2 = this.constructor["__object_type"]) === null || _this$constructor$__o2 === void 0 ? void 0 : _this$constructor$__o2.__web_type) || this.__last_web_type || "";
|
|
217
217
|
}
|
|
218
218
|
}, {
|
|
219
219
|
key: "get_webname",
|
|
@@ -387,7 +387,7 @@ var WebObjectManager = /*#__PURE__*/function (_ObjectManager, _setMetaValue, _ge
|
|
|
387
387
|
return WebObjectManager;
|
|
388
388
|
}(_ObjectManager2["default"]);
|
|
389
389
|
exports.WebObjectManager = WebObjectManager;
|
|
390
|
-
|
|
390
|
+
_defineProperty(WebObjectManager, "__object_type", void 0);
|
|
391
391
|
_defineProperty(WebObjectManager, "__save_message", true);
|
|
392
392
|
var _default = WebObjectManager;
|
|
393
393
|
exports["default"] = _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropOf, WriteablePropOf } from "./SimpleObject";
|
|
2
2
|
import SimpleObject from "./SimpleObject";
|
|
3
3
|
import { saveResultType, sendChangesType } from "./SimpleObject";
|
|
4
|
+
import { ClassType } from "@azrico/types";
|
|
4
5
|
/**
|
|
5
6
|
* This class manages the events of an Simple Object
|
|
6
7
|
*/
|
|
@@ -8,6 +9,7 @@ export declare class ObjectManager<ObjType extends SimpleObject> {
|
|
|
8
9
|
__eventList: any;
|
|
9
10
|
__eventPrefix?: string;
|
|
10
11
|
__stopEvents?: boolean;
|
|
12
|
+
static readonly __object_type: ClassType<SimpleObject>;
|
|
11
13
|
protected __currentObject?: ObjType | null;
|
|
12
14
|
protected __options?: object;
|
|
13
15
|
__object_nullable: boolean;
|
|
@@ -134,8 +134,8 @@ var ObjectManager = /*#__PURE__*/function (_notifyChanged, _setValue, _setSubVal
|
|
|
134
134
|
}, {
|
|
135
135
|
key: "__cache_name",
|
|
136
136
|
get: function get() {
|
|
137
|
-
var _this$obj4;
|
|
138
|
-
return ((_this$obj4 = this.obj) === null || _this$obj4 === void 0 ? void 0 : _this$obj4.__cache_name) || "";
|
|
137
|
+
var _this$obj4, _this$constructor$__o;
|
|
138
|
+
return ((_this$obj4 = this.obj) === null || _this$obj4 === void 0 ? void 0 : _this$obj4.__cache_name) || ((_this$constructor$__o = this.constructor["__object_type"]) === null || _this$constructor$__o === void 0 ? void 0 : _this$constructor$__o.__cache_name) || "";
|
|
139
139
|
}
|
|
140
140
|
}, {
|
|
141
141
|
key: "getSaveResult",
|
|
@@ -635,5 +635,6 @@ var ObjectManager = /*#__PURE__*/function (_notifyChanged, _setValue, _setSubVal
|
|
|
635
635
|
return ObjectManager;
|
|
636
636
|
}();
|
|
637
637
|
exports.ObjectManager = ObjectManager;
|
|
638
|
+
_defineProperty(ObjectManager, "__object_type", void 0);
|
|
638
639
|
var _default = ObjectManager;
|
|
639
640
|
exports["default"] = _default;
|