@azrico/webobject 1.4.85 → 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.
@@ -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 d(): any;
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: "d",
118
+ key: "isArchived",
113
119
  get: function get() {
114
- var _this$obj;
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() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.4.85",
3
+ "version": "1.4.86",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",