@azrico/webobject 1.4.84 → 1.4.86
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.
- package/dist/src/WebObjects/WebObject.d.ts +1 -0
- package/dist/src/WebObjects/WebObject.js +5 -0
- package/dist/src/structs/ObjectManager.d.ts +2 -1
- package/dist/src/structs/ObjectManager.js +8 -3
- package/dist/src/structs/SimpleObject.d.ts +3 -0
- package/dist/src/structs/SimpleObject.js +9 -0
- package/package.json +1 -1
|
@@ -73,6 +73,7 @@ export declare class WebObject extends SimpleObject {
|
|
|
73
73
|
get __web_path(): string;
|
|
74
74
|
get __web_type(): string;
|
|
75
75
|
get manager(): WebObjectManager<any> | undefined;
|
|
76
|
+
get_webname(): string;
|
|
76
77
|
static get_webname(): string;
|
|
77
78
|
onDelete(...p: any): Promise<any>;
|
|
78
79
|
onLoad(...p: any): Promise<any>;
|
|
@@ -436,6 +436,11 @@ var WebObject = /*#__PURE__*/function (_SimpleObject, _setMetaValue, _Save, _Del
|
|
|
436
436
|
get: function get() {
|
|
437
437
|
return this.get_managerClass() || undefined;
|
|
438
438
|
}
|
|
439
|
+
}, {
|
|
440
|
+
key: "get_webname",
|
|
441
|
+
value: function get_webname() {
|
|
442
|
+
return this.__web_path || this.__web_type || this.__cache_name || "";
|
|
443
|
+
}
|
|
439
444
|
}, {
|
|
440
445
|
key: "onDelete",
|
|
441
446
|
value: /* -------------------------------------------------------------------------- */function onDelete() {
|
|
@@ -26,9 +26,10 @@ export declare class ObjectManager<ObjType extends SimpleObject> {
|
|
|
26
26
|
* @returns
|
|
27
27
|
*/
|
|
28
28
|
setObject(toObj: ObjType | undefined): boolean;
|
|
29
|
+
get d(): any;
|
|
29
30
|
get isChanged(): boolean;
|
|
30
31
|
get isDeleted(): boolean;
|
|
31
|
-
get
|
|
32
|
+
get isArchived(): boolean;
|
|
32
33
|
get canModify(): boolean;
|
|
33
34
|
get isNew(): boolean;
|
|
34
35
|
get isSaved(): boolean;
|
|
@@ -98,6 +98,12 @@ var ObjectManager = /*#__PURE__*/function (_notifyChanged, _setValue, _setSubVal
|
|
|
98
98
|
/* -------------------------------------------------------------------------- */
|
|
99
99
|
/* Child functions */
|
|
100
100
|
/* -------------------------------------------------------------------------- */
|
|
101
|
+
}, {
|
|
102
|
+
key: "d",
|
|
103
|
+
get: function get() {
|
|
104
|
+
var _this$obj;
|
|
105
|
+
return ((_this$obj = this.obj) === null || _this$obj === void 0 ? void 0 : _this$obj.d) || {};
|
|
106
|
+
}
|
|
101
107
|
}, {
|
|
102
108
|
key: "isChanged",
|
|
103
109
|
get: function get() {
|
|
@@ -109,10 +115,9 @@ var ObjectManager = /*#__PURE__*/function (_notifyChanged, _setValue, _setSubVal
|
|
|
109
115
|
return this.obj == null || this.obj.isDeleted;
|
|
110
116
|
}
|
|
111
117
|
}, {
|
|
112
|
-
key: "
|
|
118
|
+
key: "isArchived",
|
|
113
119
|
get: function get() {
|
|
114
|
-
|
|
115
|
-
return (_this$obj = this.obj) === null || _this$obj === void 0 ? void 0 : _this$obj.d;
|
|
120
|
+
return this.obj == null || this.obj.isArchived;
|
|
116
121
|
}
|
|
117
122
|
}, {
|
|
118
123
|
key: "canModify",
|
|
@@ -29,6 +29,7 @@ export declare class SimpleObject extends MapableObject {
|
|
|
29
29
|
protected __is_readonly?: boolean;
|
|
30
30
|
protected __throw_errors?: boolean;
|
|
31
31
|
_deleted?: boolean;
|
|
32
|
+
_archived?: boolean;
|
|
32
33
|
_deletedBy?: string;
|
|
33
34
|
protected __errors?: any[];
|
|
34
35
|
protected __showErrors?: boolean;
|
|
@@ -141,6 +142,8 @@ export declare class SimpleObject extends MapableObject {
|
|
|
141
142
|
static setReadonly(objs?: SimpleObject[] | SimpleObject, readonlyval?: boolean, clearChanges?: boolean): void;
|
|
142
143
|
static setThrowErrors(objs?: SimpleObject[] | SimpleObject, throwErr?: boolean): void;
|
|
143
144
|
get isChanged(): boolean;
|
|
145
|
+
get isArchived(): boolean;
|
|
146
|
+
set isArchived(v: boolean);
|
|
144
147
|
get isDeleted(): boolean;
|
|
145
148
|
set isDeleted(v: boolean);
|
|
146
149
|
get d(): Partial<this>;
|
|
@@ -81,6 +81,7 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
|
|
|
81
81
|
_defineProperty(_assertThisInitialized(_this), "__throw_errors", void 0);
|
|
82
82
|
//is this object marked as deleted?
|
|
83
83
|
_defineProperty(_assertThisInitialized(_this), "_deleted", void 0);
|
|
84
|
+
_defineProperty(_assertThisInitialized(_this), "_archived", void 0);
|
|
84
85
|
_defineProperty(_assertThisInitialized(_this), "_deletedBy", void 0);
|
|
85
86
|
//errors
|
|
86
87
|
_defineProperty(_assertThisInitialized(_this), "__errors", void 0);
|
|
@@ -618,6 +619,14 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
|
|
|
618
619
|
}
|
|
619
620
|
return false;
|
|
620
621
|
}
|
|
622
|
+
}, {
|
|
623
|
+
key: "isArchived",
|
|
624
|
+
get: function get() {
|
|
625
|
+
return this._archived || false;
|
|
626
|
+
},
|
|
627
|
+
set: function set(v) {
|
|
628
|
+
this._archived = v;
|
|
629
|
+
}
|
|
621
630
|
}, {
|
|
622
631
|
key: "isDeleted",
|
|
623
632
|
get: function get() {
|