@noego/wood 0.0.3 → 0.0.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/client/controller_contract.ts"],"sourcesContent":["export interface ControllerState {}\n\nexport interface ControllerInput {}\n\nexport interface ControllerEvents {}\n\nexport interface PageController<\n S extends ControllerState = ControllerState,\n I extends ControllerInput = ControllerInput,\n E extends ControllerEvents = ControllerEvents,\n> {\n readonly
|
|
1
|
+
{"version":3,"sources":["../../src/client/controller_contract.ts"],"sourcesContent":["export interface ControllerState {}\n\nexport interface ControllerInput {}\n\nexport interface ControllerEvents {}\n\nexport interface PageController<\n S extends ControllerState = ControllerState,\n I extends ControllerInput = ControllerInput,\n E extends ControllerEvents = ControllerEvents,\n> {\n readonly data?: S;\n readonly input?: I;\n readonly events?: E;\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -5,7 +5,7 @@ interface ControllerInput {
|
|
|
5
5
|
interface ControllerEvents {
|
|
6
6
|
}
|
|
7
7
|
interface PageController<S extends ControllerState = ControllerState, I extends ControllerInput = ControllerInput, E extends ControllerEvents = ControllerEvents> {
|
|
8
|
-
readonly
|
|
8
|
+
readonly data?: S;
|
|
9
9
|
readonly input?: I;
|
|
10
10
|
readonly events?: E;
|
|
11
11
|
}
|
|
@@ -5,7 +5,7 @@ interface ControllerInput {
|
|
|
5
5
|
interface ControllerEvents {
|
|
6
6
|
}
|
|
7
7
|
interface PageController<S extends ControllerState = ControllerState, I extends ControllerInput = ControllerInput, E extends ControllerEvents = ControllerEvents> {
|
|
8
|
-
readonly
|
|
8
|
+
readonly data?: S;
|
|
9
9
|
readonly input?: I;
|
|
10
10
|
readonly events?: E;
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
let childLayoutControllers = $derived(layoutControllers.slice(1));
|
|
26
26
|
let ViewComponent = $derived(view);
|
|
27
27
|
|
|
28
|
-
let
|
|
28
|
+
let topData = $derived(topLayoutController?.data);
|
|
29
29
|
let topInput = $derived(topLayoutController?.input);
|
|
30
30
|
let topEvents = $derived(topLayoutController?.events);
|
|
31
31
|
|
|
32
|
-
let
|
|
32
|
+
let viewData = $derived(controller?.data);
|
|
33
33
|
let viewInput = $derived(controller?.input);
|
|
34
34
|
let viewEvents = $derived(controller?.events);
|
|
35
35
|
</script>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
{/snippet}
|
|
49
49
|
<svelte:component
|
|
50
50
|
this={topLayout}
|
|
51
|
-
|
|
51
|
+
data={topData}
|
|
52
52
|
input={topInput}
|
|
53
53
|
events={topEvents}
|
|
54
54
|
{params}
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
{#snippet viewChild()}
|
|
61
61
|
<svelte:component
|
|
62
62
|
this={ViewComponent}
|
|
63
|
-
|
|
63
|
+
data={viewData}
|
|
64
64
|
input={viewInput}
|
|
65
65
|
events={viewEvents}
|
|
66
66
|
{params}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
{/snippet}
|
|
71
71
|
<svelte:component
|
|
72
72
|
this={topLayout}
|
|
73
|
-
|
|
73
|
+
data={topData}
|
|
74
74
|
input={topInput}
|
|
75
75
|
events={topEvents}
|
|
76
76
|
{params}
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
{:else}
|
|
82
82
|
<svelte:component
|
|
83
83
|
this={ViewComponent}
|
|
84
|
-
|
|
84
|
+
data={viewData}
|
|
85
85
|
input={viewInput}
|
|
86
86
|
events={viewEvents}
|
|
87
87
|
{params}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<svelte:component
|
|
37
37
|
this={topLayout}
|
|
38
38
|
{...(topData || {})}
|
|
39
|
-
|
|
39
|
+
data={topData?.controller?.data}
|
|
40
40
|
input={topData?.controller?.input}
|
|
41
41
|
events={topData?.controller?.events}
|
|
42
42
|
{wood}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
<svelte:component
|
|
48
48
|
this={view}
|
|
49
49
|
{...(viewData || {})}
|
|
50
|
-
|
|
50
|
+
data={viewData?.controller?.data}
|
|
51
51
|
input={viewData?.controller?.input}
|
|
52
52
|
events={viewData?.controller?.events}
|
|
53
53
|
{wood}
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
<svelte:component
|
|
57
57
|
this={topLayout}
|
|
58
58
|
{...(topData || {})}
|
|
59
|
-
|
|
59
|
+
data={topData?.controller?.data}
|
|
60
60
|
input={topData?.controller?.input}
|
|
61
61
|
events={topData?.controller?.events}
|
|
62
62
|
{wood}
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<svelte:component
|
|
67
67
|
this={view}
|
|
68
68
|
{...(viewData || {})}
|
|
69
|
-
|
|
69
|
+
data={viewData?.controller?.data}
|
|
70
70
|
input={viewData?.controller?.input}
|
|
71
71
|
events={viewData?.controller?.events}
|
|
72
72
|
{wood}
|