@azrico/webobject 1.2.31 → 1.2.33
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/README.md +52 -52
- package/dist/index.js +0 -2
- package/dist/src/WebObjects/ParentWebObject.js +5 -29
- package/dist/src/WebObjects/WebObject.d.ts +1 -1
- package/dist/src/WebObjects/WebObject.js +284 -462
- package/dist/src/WebObjects/WebObjectManager.d.ts +1 -0
- package/dist/src/WebObjects/WebObjectManager.js +134 -209
- package/dist/src/index.js +0 -18
- package/dist/src/structs/DummyObject.js +3 -22
- package/dist/src/structs/MapableObject.js +4 -35
- package/dist/src/structs/MetaObject.js +28 -74
- package/dist/src/structs/ObjectArray.d.ts +1 -1
- package/dist/src/structs/ObjectArray.js +5 -17
- package/dist/src/structs/ObjectManager.d.ts +4 -4
- package/dist/src/structs/ObjectManager.js +152 -295
- package/dist/src/structs/SimpleObject.d.ts +10 -10
- package/dist/src/structs/SimpleObject.js +190 -414
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MapableObject } from "./MapableObject";
|
|
2
2
|
import ObjectManager from "./ObjectManager";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
3
|
+
export type saveResultType = "normal" | "nothing" | "error" | "canceled";
|
|
4
|
+
export type saveType = "normal" | "quick";
|
|
5
|
+
export type sendChangesType = boolean | "auto";
|
|
6
|
+
export type PropOf<obj> = keyof obj;
|
|
7
|
+
export type WriteablePropOf<obj> = keyof obj;
|
|
8
|
+
export type PropType<obj, prop extends keyof obj> = obj[prop];
|
|
9
9
|
export declare class SimpleObject extends MapableObject {
|
|
10
10
|
#private;
|
|
11
11
|
static readonly __cache_name?: string;
|
|
@@ -60,9 +60,9 @@ export declare class SimpleObject extends MapableObject {
|
|
|
60
60
|
/**
|
|
61
61
|
* Apply the changes and empty the delta object
|
|
62
62
|
*/
|
|
63
|
-
apply_changes():
|
|
64
|
-
clear_changes():
|
|
65
|
-
clear_cache():
|
|
63
|
+
apply_changes(): boolean;
|
|
64
|
+
clear_changes(): boolean;
|
|
65
|
+
clear_cache(): boolean;
|
|
66
66
|
/**
|
|
67
67
|
* Sets readonly property on given objects
|
|
68
68
|
* @param objs array of given objects or a single object
|
|
@@ -111,7 +111,7 @@ export declare class SimpleObject extends MapableObject {
|
|
|
111
111
|
* @param toObj
|
|
112
112
|
*/
|
|
113
113
|
setSaveResult(toObj: any, type: saveResultType | "auto"): void;
|
|
114
|
-
getSaveResult(): any;
|
|
114
|
+
getSaveResult(original?: boolean): any;
|
|
115
115
|
getSaveResultType(): saveResultType;
|
|
116
116
|
static factoryClear(obj: SimpleObject): void;
|
|
117
117
|
static delete_cache(): void;
|