@azrico/webobject 1.3.23 → 1.3.26
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 +2 -0
- package/dist/src/WebObjects/WebObject.js +647 -262
- 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.d.ts +1 -1
- package/dist/src/structs/ObjectManager.js +529 -210
- package/dist/src/structs/SimpleObject.d.ts +5 -13
- package/dist/src/structs/SimpleObject.js +960 -678
- package/package.json +1 -1
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { MapableObject } from "./MapableObject";
|
|
2
2
|
import ObjectManager from "./ObjectManager";
|
|
3
|
-
import WebObject from "../WebObjects/WebObject";
|
|
4
|
-
import WebObjectManager from "../WebObjects/WebObjectManager";
|
|
5
3
|
export type saveResultType = "normal" | "nothing" | "error" | "canceled";
|
|
6
4
|
export type saveType = "normal" | "quick";
|
|
7
5
|
export type sendChangesType = boolean | "auto";
|
|
@@ -79,7 +77,7 @@ export declare class SimpleObject extends MapableObject {
|
|
|
79
77
|
* @param subvalue
|
|
80
78
|
* @return true if changed , false otherwise
|
|
81
79
|
*/
|
|
82
|
-
setSubValue
|
|
80
|
+
setSubValue<MKey extends PropOf<this>>(key: MKey, objKey: string, subvalue: any, sendChanges?: sendChangesType): Promise<boolean>;
|
|
83
81
|
/**
|
|
84
82
|
* Push value on array
|
|
85
83
|
* @param key
|
|
@@ -88,14 +86,7 @@ export declare class SimpleObject extends MapableObject {
|
|
|
88
86
|
* @returns
|
|
89
87
|
*/
|
|
90
88
|
pushValue<MKey extends PropOf<this>>(key: MKey, value: any, sendChanges?: sendChangesType): Promise<this[MKey] | false>;
|
|
91
|
-
|
|
92
|
-
* notify the manager class when a value is changed on this object
|
|
93
|
-
* @param type
|
|
94
|
-
* @param key
|
|
95
|
-
* @param value
|
|
96
|
-
* @param subvalue
|
|
97
|
-
*/
|
|
98
|
-
notifyChanged(type: string, key: string, value: any, subvalue?: any): Promise<void>;
|
|
89
|
+
notifyChanged<MKey extends PropOf<this>>(type: string, key: MKey | string, value: any, subvalue?: any): Promise<void>;
|
|
99
90
|
/**
|
|
100
91
|
* check if a key can be changed on an object
|
|
101
92
|
* @param object
|
|
@@ -139,8 +130,9 @@ export declare class SimpleObject extends MapableObject {
|
|
|
139
130
|
get isSaved(): boolean;
|
|
140
131
|
get isNew(): boolean;
|
|
141
132
|
get lastChanged(): string;
|
|
142
|
-
get manager():
|
|
143
|
-
|
|
133
|
+
get manager(): ObjectManager<any> | undefined;
|
|
134
|
+
get_managerClass: () => ObjectManager<any> | undefined;
|
|
135
|
+
set_managerClass(mng: any): void;
|
|
144
136
|
static isDeleted<T extends SimpleObject>(obj: T): boolean;
|
|
145
137
|
getIndexOrID(): number | string;
|
|
146
138
|
getIndex(): number;
|