cx 25.5.0 → 25.5.2
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/manifest.js +461 -461
- package/dist/ui.js +7 -16
- package/dist/widgets.js +16 -1
- package/package.json +1 -1
- package/src/data/AugmentedViewBase.js +77 -77
- package/src/data/ExposedRecordView.js +75 -75
- package/src/data/ExposedValueView.js +73 -73
- package/src/ui/Container.js +154 -154
- package/src/ui/DataProxy.js +31 -45
- package/src/ui/DetachedScope.js +98 -98
- package/src/ui/Instance.d.ts +72 -72
- package/src/ui/Instance.js +623 -623
- package/src/ui/IsolatedScope.js +30 -30
- package/src/ui/Repeater.js +8 -1
- package/src/ui/Rescope.js +35 -35
- package/src/ui/Restate.js +167 -167
- package/src/ui/Widget.js +184 -184
- package/src/ui/adapter/ArrayAdapter.js +152 -152
- package/src/ui/adapter/TreeAdapter.js +101 -101
- package/src/ui/layout/exploreChildren.d.ts +12 -12
- package/src/ui/layout/exploreChildren.js +27 -27
- package/src/widgets/List.js +9 -2
- package/src/widgets/form/Checkbox.js +203 -200
- package/src/widgets/grid/Grid.js +7 -0
- package/src/widgets/nav/Route.js +102 -102
package/src/ui/Instance.d.ts
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { Record } from "../core";
|
|
2
|
-
import { RenderingContext } from "./RenderingContext";
|
|
3
|
-
import { View } from "../data/View";
|
|
4
|
-
import { Widget } from "./Widget";
|
|
5
|
-
|
|
6
|
-
export class Instance<ViewModel = any, Controller = any> {
|
|
7
|
-
store: View<ViewModel>;
|
|
8
|
-
data: Record;
|
|
9
|
-
widget: Widget;
|
|
10
|
-
key: number;
|
|
11
|
-
id: string;
|
|
12
|
-
controller: Controller;
|
|
13
|
-
parentOptions: any;
|
|
14
|
-
children?: Instance[];
|
|
15
|
-
|
|
16
|
-
constructor(widget: Widget, key: string | number, parent?: Instance, store?: View);
|
|
17
|
-
|
|
18
|
-
setParentStore(parentStore: View): void;
|
|
19
|
-
|
|
20
|
-
init(context: RenderingContext): void;
|
|
21
|
-
|
|
22
|
-
explore(context: RenderingContext): boolean;
|
|
23
|
-
|
|
24
|
-
prepare(context: RenderingContext): void;
|
|
25
|
-
|
|
26
|
-
cleanup(context: RenderingContext): void;
|
|
27
|
-
|
|
28
|
-
render(context: RenderingContext, keyPrefix?: string): JSX.Element | void;
|
|
29
|
-
|
|
30
|
-
setState(state: Cx.Record): void;
|
|
31
|
-
|
|
32
|
-
set(prop: string, value: any, internal?: boolean);
|
|
33
|
-
|
|
34
|
-
definePropertySetter(prop: string, setter: (value: any) => void): boolean;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @protected
|
|
38
|
-
* @param prop
|
|
39
|
-
* @param value
|
|
40
|
-
* @returns {boolean}
|
|
41
|
-
*/
|
|
42
|
-
protected doSet(prop: string, value: any): boolean;
|
|
43
|
-
|
|
44
|
-
replaceState(state: Cx.Config);
|
|
45
|
-
|
|
46
|
-
getInstanceCache(): InstanceCache;
|
|
47
|
-
|
|
48
|
-
clearChildrenCache();
|
|
49
|
-
|
|
50
|
-
getChild(context: RenderingContext | null, widget: Widget, keyPrefix?: string, store?: View): Instance;
|
|
51
|
-
|
|
52
|
-
getDetachedChild(widget: Widget, key: number | string, store?: View): Instance;
|
|
53
|
-
|
|
54
|
-
// TODO: check return type
|
|
55
|
-
prepareRenderCleanupChild(widget: Widget, store?: View, keyPrefix?: string, options?: object): JSX.Element | void;
|
|
56
|
-
|
|
57
|
-
getJsxEventProps(): Cx.Config;
|
|
58
|
-
|
|
59
|
-
nestedDataSet(key: string, value: any, dataConfig: Cx.Config): boolean;
|
|
60
|
-
|
|
61
|
-
invokeControllerMethod(methodName: string, ...args: any[]);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export class InstanceCache {
|
|
65
|
-
constructor(parent: Instance);
|
|
66
|
-
|
|
67
|
-
getChild(widget: Widget, store: View, keyPrefix?: string): Instance;
|
|
68
|
-
|
|
69
|
-
mark();
|
|
70
|
-
|
|
71
|
-
sweep();
|
|
72
|
-
}
|
|
1
|
+
import { Record } from "../core";
|
|
2
|
+
import { RenderingContext } from "./RenderingContext";
|
|
3
|
+
import { View } from "../data/View";
|
|
4
|
+
import { Widget } from "./Widget";
|
|
5
|
+
|
|
6
|
+
export class Instance<ViewModel = any, Controller = any> {
|
|
7
|
+
store: View<ViewModel>;
|
|
8
|
+
data: Record;
|
|
9
|
+
widget: Widget;
|
|
10
|
+
key: number;
|
|
11
|
+
id: string;
|
|
12
|
+
controller: Controller;
|
|
13
|
+
parentOptions: any;
|
|
14
|
+
children?: Instance[];
|
|
15
|
+
|
|
16
|
+
constructor(widget: Widget, key: string | number, parent?: Instance, store?: View);
|
|
17
|
+
|
|
18
|
+
setParentStore(parentStore: View): void;
|
|
19
|
+
|
|
20
|
+
init(context: RenderingContext): void;
|
|
21
|
+
|
|
22
|
+
explore(context: RenderingContext): boolean;
|
|
23
|
+
|
|
24
|
+
prepare(context: RenderingContext): void;
|
|
25
|
+
|
|
26
|
+
cleanup(context: RenderingContext): void;
|
|
27
|
+
|
|
28
|
+
render(context: RenderingContext, keyPrefix?: string): JSX.Element | void;
|
|
29
|
+
|
|
30
|
+
setState(state: Cx.Record): void;
|
|
31
|
+
|
|
32
|
+
set(prop: string, value: any, internal?: boolean);
|
|
33
|
+
|
|
34
|
+
definePropertySetter(prop: string, setter: (value: any) => void): boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @protected
|
|
38
|
+
* @param prop
|
|
39
|
+
* @param value
|
|
40
|
+
* @returns {boolean}
|
|
41
|
+
*/
|
|
42
|
+
protected doSet(prop: string, value: any): boolean;
|
|
43
|
+
|
|
44
|
+
replaceState(state: Cx.Config);
|
|
45
|
+
|
|
46
|
+
getInstanceCache(): InstanceCache;
|
|
47
|
+
|
|
48
|
+
clearChildrenCache();
|
|
49
|
+
|
|
50
|
+
getChild(context: RenderingContext | null, widget: Widget, keyPrefix?: string, store?: View): Instance;
|
|
51
|
+
|
|
52
|
+
getDetachedChild(widget: Widget, key: number | string, store?: View): Instance;
|
|
53
|
+
|
|
54
|
+
// TODO: check return type
|
|
55
|
+
prepareRenderCleanupChild(widget: Widget, store?: View, keyPrefix?: string, options?: object): JSX.Element | void;
|
|
56
|
+
|
|
57
|
+
getJsxEventProps(): Cx.Config;
|
|
58
|
+
|
|
59
|
+
nestedDataSet(key: string, value: any, dataConfig: Cx.Config): boolean;
|
|
60
|
+
|
|
61
|
+
invokeControllerMethod(methodName: string, ...args: any[]);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export class InstanceCache {
|
|
65
|
+
constructor(parent: Instance);
|
|
66
|
+
|
|
67
|
+
getChild(widget: Widget, store: View, keyPrefix?: string): Instance;
|
|
68
|
+
|
|
69
|
+
mark();
|
|
70
|
+
|
|
71
|
+
sweep();
|
|
72
|
+
}
|