@azrico/webobject 1.3.22 → 1.3.24
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/index.js +16 -1
- package/dist/src/WebObjects/ParentWebObject.js +51 -20
- package/dist/src/WebObjects/WebObject.d.ts +1 -3
- package/dist/src/WebObjects/WebObject.js +647 -269
- package/dist/src/WebObjects/WebObjectManager.js +386 -125
- package/dist/src/index.js +104 -9
- package/dist/src/structs/DummyObject.js +35 -8
- package/dist/src/structs/MapableObject.js +113 -74
- package/dist/src/structs/MetaObject.js +125 -35
- package/dist/src/structs/ObjectArray.js +71 -43
- package/dist/src/structs/ObjectManager.js +529 -210
- package/dist/src/structs/SimpleObject.d.ts +13 -4
- package/dist/src/structs/SimpleObject.js +960 -676
- package/package.json +1 -1
|
@@ -77,7 +77,7 @@ export declare class SimpleObject extends MapableObject {
|
|
|
77
77
|
* @param subvalue
|
|
78
78
|
* @return true if changed , false otherwise
|
|
79
79
|
*/
|
|
80
|
-
setSubValue
|
|
80
|
+
setSubValue<MKey extends PropOf<this>>(key: MKey, objKey: string, subvalue: any, sendChanges?: sendChangesType): Promise<boolean>;
|
|
81
81
|
/**
|
|
82
82
|
* Push value on array
|
|
83
83
|
* @param key
|
|
@@ -86,6 +86,14 @@ export declare class SimpleObject extends MapableObject {
|
|
|
86
86
|
* @returns
|
|
87
87
|
*/
|
|
88
88
|
pushValue<MKey extends PropOf<this>>(key: MKey, value: any, sendChanges?: sendChangesType): Promise<this[MKey] | false>;
|
|
89
|
+
/**
|
|
90
|
+
* notify the manager class when a meta value is changed on this object
|
|
91
|
+
* @param type
|
|
92
|
+
* @param key
|
|
93
|
+
* @param value
|
|
94
|
+
* @param subvalue
|
|
95
|
+
*/
|
|
96
|
+
notifyChanged<MKey extends PropOf<this>>(type: "meta", key: string, value: any, subvalue?: any): any;
|
|
89
97
|
/**
|
|
90
98
|
* notify the manager class when a value is changed on this object
|
|
91
99
|
* @param type
|
|
@@ -93,7 +101,7 @@ export declare class SimpleObject extends MapableObject {
|
|
|
93
101
|
* @param value
|
|
94
102
|
* @param subvalue
|
|
95
103
|
*/
|
|
96
|
-
notifyChanged(type: string, key:
|
|
104
|
+
notifyChanged<MKey extends PropOf<this>>(type: string, key: MKey, value: any, subvalue?: any): any;
|
|
97
105
|
/**
|
|
98
106
|
* check if a key can be changed on an object
|
|
99
107
|
* @param object
|
|
@@ -137,8 +145,9 @@ export declare class SimpleObject extends MapableObject {
|
|
|
137
145
|
get isSaved(): boolean;
|
|
138
146
|
get isNew(): boolean;
|
|
139
147
|
get lastChanged(): string;
|
|
140
|
-
get manager(): ObjectManager<any> |
|
|
141
|
-
|
|
148
|
+
get manager(): ObjectManager<any> | undefined;
|
|
149
|
+
get_managerClass: () => ObjectManager<any> | undefined;
|
|
150
|
+
set_managerClass(mng: any): void;
|
|
142
151
|
static isDeleted<T extends SimpleObject>(obj: T): boolean;
|
|
143
152
|
getIndexOrID(): number | string;
|
|
144
153
|
getIndex(): number;
|