ballerina-core 1.0.260 → 1.0.261
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/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/apis/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/apis/state.js +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/apis/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/layout/state.d.ts +57 -0
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/layout/state.d.ts.map +1 -0
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/layout/state.js +85 -0
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/layout/state.js.map +1 -0
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/lookup/state.d.ts +4 -7
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/lookup/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/lookup/state.js +12 -15
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/lookup/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/nestedRenderer/state.d.ts +2 -0
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/nestedRenderer/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/nestedRenderer/state.js +2 -3
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/nestedRenderer/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/record/domains/recordFieldRenderer/state.d.ts +2 -0
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/record/domains/recordFieldRenderer/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/record/domains/recordFieldRenderer/state.js +2 -0
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/record/domains/recordFieldRenderer/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/table/state.d.ts +2 -3
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/table/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/table/state.js +18 -21
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/table/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/union/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/union/state.js +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/union/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/state.d.ts +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/state.js +6 -7
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/state.js +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/statev2.d.ts +51 -23
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/statev2.js +165 -109
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/enum/state.d.ts +35 -19
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/enum/state.js +40 -27
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/list/state.d.ts +63 -29
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/list/state.js +85 -44
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/lookup/state.d.ts +121 -56
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/lookup/state.js +133 -67
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/map/state.d.ts +44 -15
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/map/state.js +73 -32
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/nestedRenderer/state.d.ts +72 -29
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/nestedRenderer/state.js +83 -34
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/one/state.d.ts +67 -18
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/one/state.js +104 -36
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/primitive/state.d.ts +20 -10
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/primitive/state.js +21 -13
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/readOnly/state.d.ts +52 -19
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/readOnly/state.js +60 -26
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/record/domains/recordFieldRenderer/state.d.ts +47 -11
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/record/domains/recordFieldRenderer/state.js +68 -21
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/record/state.d.ts +51 -19
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/record/state.js +139 -60
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/stream/state.d.ts +29 -14
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/stream/state.js +43 -27
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/sum/state.d.ts +50 -19
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/sum/state.js +72 -26
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/sumUnitDate/state.d.ts +21 -13
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/sumUnitDate/state.js +39 -22
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/table/domains/tableCellRenderer/state.d.ts +44 -10
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/table/domains/tableCellRenderer/state.js +55 -14
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/table/state.d.ts +91 -39
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/table/state.js +184 -57
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/tuple/state.d.ts +38 -13
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/tuple/state.js +79 -37
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/union/state.d.ts +41 -15
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/domains/union/state.js +84 -38
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/state.d.ts +109 -19
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/forms/domains/renderer/state.js +203 -74
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/types/state.d.ts +424 -228
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/domains/types/state.js +1016 -572
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/state.d.ts +124 -60
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification-v2/state.js +330 -145
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/list/state.d.ts +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/list/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/list/state.js +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/list/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/lookup/state.d.ts +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/lookup/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/lookup/state.js +2 -5
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/lookup/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/map/state.d.ts +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/map/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/map/state.js +2 -2
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/map/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/nestedDispatcher/state.d.ts +2 -2
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/nestedDispatcher/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/nestedDispatcher/state.js +2 -2
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/nestedDispatcher/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/one/state.d.ts +2 -2
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/one/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/one/state.js +4 -4
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/one/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/readOnly/state.d.ts +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/readOnly/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/readOnly/state.js +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/readOnly/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/recordField/state.d.ts +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/recordField/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/recordField/state.js +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/recordField/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/state.d.ts +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/state.js +2 -2
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/sum/state.d.ts +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/sum/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/sum/state.js +3 -3
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/sum/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/table/state.d.ts +2 -2
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/table/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/table/state.js +74 -77
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/table/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/tupleDispatcher/state.d.ts +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/tupleDispatcher/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/tupleDispatcher/state.js +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/tupleDispatcher/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/unionDispatcher/state.d.ts +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/unionDispatcher/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/unionDispatcher/state.js +2 -2
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/unionDispatcher/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/state.d.ts +2 -2
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/state.js +13 -16
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/template.d.ts.map +1 -1
- package/bin/src/forms/domains/launcher/coroutines/runner.d.ts.map +1 -1
- package/bin/src/forms/domains/launcher/template.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/apis/state.ts +0 -1
- package/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/lookup/state.ts +0 -18
- package/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/nestedRenderer/state.ts +3 -3
- package/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/record/domains/recordFieldRenderer/state.ts +6 -0
- package/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/table/state.ts +99 -111
- package/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/union/state.ts +0 -1
- package/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/state.ts +0 -6
- package/src/forms/domains/dispatched-forms/deserializer/domains/specification/state.ts +0 -1
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/list/state.ts +0 -2
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/lookup/state.ts +2 -3
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/map/state.ts +0 -3
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/nestedDispatcher/state.ts +1 -4
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/one/state.ts +0 -6
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/readOnly/state.ts +0 -2
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/recordField/state.ts +0 -2
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/state.ts +0 -2
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/sum/state.ts +0 -3
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/table/state.ts +240 -235
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/tupleDispatcher/state.ts +0 -2
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/unionDispatcher/state.ts +1 -2
- package/src/forms/domains/dispatched-forms/runner/domains/dispatcher/state.ts +6 -14
|
@@ -39,11 +39,7 @@ export const TableDispatcher = {
|
|
|
39
39
|
? ValueOrErrors.Default.throwOne("internal error: api is not defined")
|
|
40
40
|
: dispatcherContext.tableApiSources == undefined
|
|
41
41
|
? ValueOrErrors.Default.throwOne("table api sources are not defined")
|
|
42
|
-
:
|
|
43
|
-
? ValueOrErrors.Default.throwOne(
|
|
44
|
-
"lookup api not supported for table",
|
|
45
|
-
)
|
|
46
|
-
: dispatcherContext.tableApiSources(api),
|
|
42
|
+
: dispatcherContext.tableApiSources(api),
|
|
47
43
|
DispatchDetailsRenderer: <
|
|
48
44
|
T extends DispatchInjectablesTypes<T>,
|
|
49
45
|
Flags,
|
|
@@ -58,7 +54,6 @@ export const TableDispatcher = {
|
|
|
58
54
|
ExtraContext
|
|
59
55
|
>,
|
|
60
56
|
isInlined: boolean,
|
|
61
|
-
tableApi: string | undefined,
|
|
62
57
|
): ValueOrErrors<undefined | Template<any, any, any, any>, string> =>
|
|
63
58
|
renderer.detailsRenderer == undefined
|
|
64
59
|
? ValueOrErrors.Default.return(undefined)
|
|
@@ -67,7 +62,6 @@ export const TableDispatcher = {
|
|
|
67
62
|
dispatcherContext,
|
|
68
63
|
"table details renderer",
|
|
69
64
|
isInlined,
|
|
70
|
-
tableApi,
|
|
71
65
|
),
|
|
72
66
|
Dispatch: <
|
|
73
67
|
T extends DispatchInjectablesTypes<T>,
|
|
@@ -82,248 +76,259 @@ export const TableDispatcher = {
|
|
|
82
76
|
CustomPresentationContext,
|
|
83
77
|
ExtraContext
|
|
84
78
|
>,
|
|
85
|
-
tableApi: string | undefined,
|
|
79
|
+
tableApi: string | Array<string> | undefined,
|
|
86
80
|
isInlined: boolean,
|
|
87
81
|
): ValueOrErrors<Template<any, any, any, any>, string> =>
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
columnName,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
.defaultState(columnType, columnRenderer.renderer)
|
|
128
|
-
.Then((defaultState) =>
|
|
82
|
+
Array.isArray(tableApi)
|
|
83
|
+
? ValueOrErrors.Default.throwOne("lookup api not supported for table")
|
|
84
|
+
: DispatchParsedType.Operations.ResolveLookupType(
|
|
85
|
+
renderer.type.arg.name,
|
|
86
|
+
dispatcherContext.types,
|
|
87
|
+
)
|
|
88
|
+
.Then((tableEntityType) =>
|
|
89
|
+
tableEntityType.kind == "record"
|
|
90
|
+
? ValueOrErrors.Operations.All(
|
|
91
|
+
List<
|
|
92
|
+
ValueOrErrors<
|
|
93
|
+
[
|
|
94
|
+
string,
|
|
95
|
+
{
|
|
96
|
+
template: Template<any, any, any, any>;
|
|
97
|
+
disabled?: Expr;
|
|
98
|
+
GetDefaultState: () => any;
|
|
99
|
+
GetDefaultValue: () => any;
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
string
|
|
103
|
+
>
|
|
104
|
+
>(
|
|
105
|
+
renderer.columns
|
|
106
|
+
.entrySeq()
|
|
107
|
+
.toArray()
|
|
108
|
+
.map(([columnName, columnRenderer]) =>
|
|
109
|
+
MapRepo.Operations.tryFindWithError(
|
|
110
|
+
columnName,
|
|
111
|
+
tableEntityType.fields,
|
|
112
|
+
() =>
|
|
113
|
+
`cannot find column "${columnName}" in table entity type`,
|
|
114
|
+
).Then((columnType) =>
|
|
115
|
+
NestedDispatcher.Operations.DispatchAs(
|
|
116
|
+
columnRenderer,
|
|
117
|
+
dispatcherContext,
|
|
118
|
+
`table column ${columnName}`,
|
|
119
|
+
isInlined,
|
|
120
|
+
).Then((template) =>
|
|
129
121
|
dispatcherContext
|
|
130
|
-
.
|
|
122
|
+
.defaultState(
|
|
131
123
|
columnType,
|
|
132
124
|
columnRenderer.renderer,
|
|
133
125
|
)
|
|
134
|
-
.Then((
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
126
|
+
.Then((defaultState) =>
|
|
127
|
+
dispatcherContext
|
|
128
|
+
.defaultValue(
|
|
129
|
+
columnType,
|
|
130
|
+
columnRenderer.renderer,
|
|
131
|
+
)
|
|
132
|
+
.Then((defaultValue) =>
|
|
133
|
+
ValueOrErrors.Default.return<
|
|
134
|
+
[
|
|
135
|
+
string,
|
|
136
|
+
{
|
|
137
|
+
template: Template<
|
|
138
|
+
any,
|
|
139
|
+
any,
|
|
140
|
+
any,
|
|
141
|
+
any
|
|
142
|
+
>;
|
|
143
|
+
disabled?: Expr;
|
|
144
|
+
label: string | undefined;
|
|
145
|
+
GetDefaultState: () => any;
|
|
146
|
+
GetDefaultValue: () => PredicateValue;
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
string
|
|
150
|
+
>([
|
|
151
|
+
columnName,
|
|
152
|
+
{
|
|
153
|
+
// Special attention - tables have a look up arg that represents the table entity type
|
|
154
|
+
template: LookupTypeAbstractRenderer<
|
|
155
|
+
CustomPresentationContext,
|
|
156
|
+
Flags,
|
|
157
|
+
ExtraContext
|
|
158
|
+
>(
|
|
159
|
+
template,
|
|
160
|
+
renderer.type.arg,
|
|
161
|
+
dispatcherContext.IdProvider,
|
|
162
|
+
dispatcherContext.ErrorRenderer,
|
|
163
|
+
).withView(
|
|
164
|
+
dispatcherContext.lookupTypeRenderer(),
|
|
165
|
+
),
|
|
166
|
+
disabled: columnRenderer.disabled,
|
|
167
|
+
label: columnRenderer.label,
|
|
168
|
+
GetDefaultState: () => defaultState,
|
|
169
|
+
GetDefaultValue: () => defaultValue,
|
|
170
|
+
},
|
|
171
|
+
]),
|
|
172
|
+
),
|
|
169
173
|
),
|
|
170
174
|
),
|
|
175
|
+
),
|
|
171
176
|
),
|
|
172
|
-
),
|
|
173
177
|
),
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
? undefined
|
|
186
|
-
: (dispatcherContext.specApis.tables?.get(api!)
|
|
187
|
-
?.filtering ?? undefined);
|
|
188
|
-
|
|
189
|
-
// TODO - this can be significantly improved, also to provide an error if something fails
|
|
190
|
-
const AllowedFilters: Map<
|
|
191
|
-
string,
|
|
192
|
-
{
|
|
193
|
-
template: Template<any, any, any, any>;
|
|
194
|
-
filters: SumNType<any>;
|
|
195
|
-
type: DispatchParsedType<any>;
|
|
196
|
-
GetDefaultValue: () => PredicateValue;
|
|
197
|
-
GetDefaultState: () => any;
|
|
198
|
-
label: string | undefined;
|
|
199
|
-
tooltip: string | undefined;
|
|
200
|
-
details: string | undefined;
|
|
201
|
-
}
|
|
202
|
-
> = (() => {
|
|
203
|
-
if (filtering == undefined) {
|
|
204
|
-
return Map([]);
|
|
205
|
-
}
|
|
206
|
-
return filtering
|
|
207
|
-
.map((columnFilters) => ({
|
|
208
|
-
template: Dispatcher.Operations.DispatchAs(
|
|
209
|
-
columnFilters.displayRenderer,
|
|
210
|
-
dispatcherContext,
|
|
211
|
-
"table column filter renderer",
|
|
212
|
-
false,
|
|
213
|
-
isInlined,
|
|
214
|
-
tableApi,
|
|
215
|
-
),
|
|
216
|
-
filters: columnFilters.filters,
|
|
217
|
-
type: columnFilters.displayType,
|
|
218
|
-
GetDefaultValue: () =>
|
|
219
|
-
dispatcherContext.defaultValue(
|
|
220
|
-
columnFilters.displayType,
|
|
221
|
-
columnFilters.displayRenderer,
|
|
222
|
-
),
|
|
223
|
-
GetDefaultState: () =>
|
|
224
|
-
dispatcherContext.defaultState(
|
|
225
|
-
columnFilters.displayType,
|
|
226
|
-
columnFilters.displayRenderer,
|
|
227
|
-
),
|
|
228
|
-
label: columnFilters.label,
|
|
229
|
-
tooltip: columnFilters.tooltip,
|
|
230
|
-
details: columnFilters.details,
|
|
231
|
-
}))
|
|
232
|
-
.filter(
|
|
233
|
-
(dispatchedFilterRenderer) =>
|
|
234
|
-
dispatchedFilterRenderer.template.kind == "value" &&
|
|
235
|
-
dispatchedFilterRenderer.GetDefaultValue().kind ==
|
|
236
|
-
"value" &&
|
|
237
|
-
dispatchedFilterRenderer.GetDefaultState().kind ==
|
|
238
|
-
"value",
|
|
239
|
-
)
|
|
240
|
-
.map((dispatchedFilterRenderer) => ({
|
|
241
|
-
template: (
|
|
242
|
-
dispatchedFilterRenderer.template as Value<
|
|
243
|
-
Template<any, any, any, any>
|
|
244
|
-
>
|
|
245
|
-
).value,
|
|
246
|
-
filters: dispatchedFilterRenderer.filters,
|
|
247
|
-
type: dispatchedFilterRenderer.type,
|
|
248
|
-
GetDefaultValue: () =>
|
|
249
|
-
(
|
|
250
|
-
dispatchedFilterRenderer.GetDefaultValue() as Value<PredicateValue>
|
|
251
|
-
).value,
|
|
252
|
-
GetDefaultState: () =>
|
|
253
|
-
(
|
|
254
|
-
dispatchedFilterRenderer.GetDefaultState() as Value<any>
|
|
255
|
-
).value,
|
|
256
|
-
label: dispatchedFilterRenderer.label,
|
|
257
|
-
tooltip: dispatchedFilterRenderer.tooltip,
|
|
258
|
-
details: dispatchedFilterRenderer.details,
|
|
259
|
-
}));
|
|
260
|
-
})();
|
|
178
|
+
).Then((cellTemplates) =>
|
|
179
|
+
TableDispatcher.Operations.DispatchDetailsRenderer(
|
|
180
|
+
renderer,
|
|
181
|
+
dispatcherContext,
|
|
182
|
+
isInlined,
|
|
183
|
+
).Then((detailsRenderer) => {
|
|
184
|
+
const filtering =
|
|
185
|
+
tableApi == undefined
|
|
186
|
+
? undefined
|
|
187
|
+
: (dispatcherContext.specApis.tables?.get(tableApi)
|
|
188
|
+
?.filtering ?? undefined);
|
|
261
189
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
renderer.disabledColumns,
|
|
289
|
-
dispatcherContext.IdProvider,
|
|
290
|
-
dispatcherContext.ErrorRenderer,
|
|
291
|
-
tableEntityType,
|
|
292
|
-
AllowedFilters,
|
|
293
|
-
dispatcherContext.parseToApiByType,
|
|
294
|
-
dispatcherContext.parseFromApiByType,
|
|
295
|
-
dispatcherContext.parseFromApiByType(
|
|
296
|
-
renderer.type.arg,
|
|
190
|
+
// TODO - this can be significantly improved, also to provide an error if something fails
|
|
191
|
+
const AllowedFilters: Map<
|
|
192
|
+
string,
|
|
193
|
+
{
|
|
194
|
+
template: Template<any, any, any, any>;
|
|
195
|
+
filters: SumNType<any>;
|
|
196
|
+
type: DispatchParsedType<any>;
|
|
197
|
+
GetDefaultValue: () => PredicateValue;
|
|
198
|
+
GetDefaultState: () => any;
|
|
199
|
+
label: string | undefined;
|
|
200
|
+
tooltip: string | undefined;
|
|
201
|
+
details: string | undefined;
|
|
202
|
+
}
|
|
203
|
+
> = (() => {
|
|
204
|
+
if (filtering == undefined) {
|
|
205
|
+
return Map([]);
|
|
206
|
+
}
|
|
207
|
+
return filtering
|
|
208
|
+
.map((columnFilters) => ({
|
|
209
|
+
template: Dispatcher.Operations.DispatchAs(
|
|
210
|
+
columnFilters.displayRenderer,
|
|
211
|
+
dispatcherContext,
|
|
212
|
+
"table column filter renderer",
|
|
213
|
+
false,
|
|
214
|
+
isInlined,
|
|
215
|
+
tableApi,
|
|
297
216
|
),
|
|
298
|
-
|
|
217
|
+
filters: columnFilters.filters,
|
|
218
|
+
type: columnFilters.displayType,
|
|
219
|
+
GetDefaultValue: () =>
|
|
220
|
+
dispatcherContext.defaultValue(
|
|
221
|
+
columnFilters.displayType,
|
|
222
|
+
columnFilters.displayRenderer,
|
|
223
|
+
),
|
|
224
|
+
GetDefaultState: () =>
|
|
225
|
+
dispatcherContext.defaultState(
|
|
226
|
+
columnFilters.displayType,
|
|
227
|
+
columnFilters.displayRenderer,
|
|
228
|
+
),
|
|
229
|
+
label: columnFilters.label,
|
|
230
|
+
tooltip: columnFilters.tooltip,
|
|
231
|
+
details: columnFilters.details,
|
|
232
|
+
}))
|
|
233
|
+
.filter(
|
|
234
|
+
(dispatchedFilterRenderer) =>
|
|
235
|
+
dispatchedFilterRenderer.template.kind ==
|
|
236
|
+
"value" &&
|
|
237
|
+
dispatchedFilterRenderer.GetDefaultValue().kind ==
|
|
238
|
+
"value" &&
|
|
239
|
+
dispatchedFilterRenderer.GetDefaultState().kind ==
|
|
240
|
+
"value",
|
|
299
241
|
)
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
242
|
+
.map((dispatchedFilterRenderer) => ({
|
|
243
|
+
template: (
|
|
244
|
+
dispatchedFilterRenderer.template as Value<
|
|
245
|
+
Template<any, any, any, any>
|
|
246
|
+
>
|
|
247
|
+
).value,
|
|
248
|
+
filters: dispatchedFilterRenderer.filters,
|
|
249
|
+
type: dispatchedFilterRenderer.type,
|
|
250
|
+
GetDefaultValue: () =>
|
|
251
|
+
(
|
|
252
|
+
dispatchedFilterRenderer.GetDefaultValue() as Value<PredicateValue>
|
|
253
|
+
).value,
|
|
254
|
+
GetDefaultState: () =>
|
|
255
|
+
(
|
|
256
|
+
dispatchedFilterRenderer.GetDefaultState() as Value<any>
|
|
257
|
+
).value,
|
|
258
|
+
label: dispatchedFilterRenderer.label,
|
|
259
|
+
tooltip: dispatchedFilterRenderer.tooltip,
|
|
260
|
+
details: dispatchedFilterRenderer.details,
|
|
261
|
+
}));
|
|
262
|
+
})();
|
|
263
|
+
|
|
264
|
+
return dispatcherContext
|
|
265
|
+
.getConcreteRenderer("table", renderer.concreteRenderer)
|
|
266
|
+
.Then((concreteRenderer) =>
|
|
267
|
+
TableDispatcher.Operations.GetApi(
|
|
268
|
+
tableApi,
|
|
269
|
+
dispatcherContext,
|
|
270
|
+
).Then((tableApiSource) => {
|
|
271
|
+
const highlightedFilters =
|
|
272
|
+
tableApi == undefined
|
|
273
|
+
? []
|
|
274
|
+
: (dispatcherContext.specApis.tables
|
|
275
|
+
?.get(tableApi)
|
|
276
|
+
?.highlightedFilters?.toArray() ?? []);
|
|
277
|
+
|
|
278
|
+
const sorting =
|
|
279
|
+
tableApi == undefined
|
|
280
|
+
? []
|
|
281
|
+
: (dispatcherContext.specApis.tables?.get(
|
|
282
|
+
tableApi,
|
|
283
|
+
)?.sorting ?? []);
|
|
284
|
+
return ValueOrErrors.Default.return(
|
|
285
|
+
TableAbstractRenderer(
|
|
286
|
+
Map(cellTemplates),
|
|
287
|
+
renderer.columns,
|
|
288
|
+
detailsRenderer,
|
|
289
|
+
renderer.detailsRenderer,
|
|
290
|
+
renderer.visibleColumns,
|
|
291
|
+
renderer.disabledColumns,
|
|
292
|
+
dispatcherContext.IdProvider,
|
|
293
|
+
dispatcherContext.ErrorRenderer,
|
|
294
|
+
tableEntityType,
|
|
295
|
+
AllowedFilters,
|
|
296
|
+
dispatcherContext.parseToApiByType,
|
|
297
|
+
dispatcherContext.parseFromApiByType,
|
|
298
|
+
dispatcherContext.parseFromApiByType(
|
|
299
|
+
renderer.type.arg,
|
|
300
|
+
),
|
|
301
|
+
tableApiSource,
|
|
302
|
+
)
|
|
303
|
+
.mapContext((_: any) => ({
|
|
304
|
+
..._,
|
|
305
|
+
type: renderer.type,
|
|
306
|
+
apiMethods:
|
|
307
|
+
tableApi == undefined
|
|
308
|
+
? []
|
|
309
|
+
: (dispatcherContext.specApis.tables?.get(
|
|
310
|
+
tableApi,
|
|
311
|
+
)?.methods ?? []),
|
|
312
|
+
sorting,
|
|
313
|
+
highlightedFilters,
|
|
314
|
+
}))
|
|
315
|
+
.withView(concreteRenderer),
|
|
316
|
+
);
|
|
317
|
+
}),
|
|
313
318
|
);
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
319
|
+
}),
|
|
320
|
+
)
|
|
321
|
+
: ValueOrErrors.Default.throwOne<
|
|
322
|
+
Template<any, any, any, any>,
|
|
323
|
+
string
|
|
324
|
+
>(
|
|
325
|
+
`expected a record type, but got a ${tableEntityType.kind} type`,
|
|
326
|
+
),
|
|
327
|
+
)
|
|
328
|
+
.MapErrors((errors) =>
|
|
329
|
+
errors.map(
|
|
330
|
+
(error) => `${error}\n...When dispatching as table form`,
|
|
323
331
|
),
|
|
324
|
-
|
|
325
|
-
.MapErrors((errors) =>
|
|
326
|
-
errors.map((error) => `${error}\n...When dispatching as table form`),
|
|
327
|
-
),
|
|
332
|
+
),
|
|
328
333
|
},
|
|
329
334
|
};
|
|
@@ -29,7 +29,6 @@ export const TupleDispatcher = {
|
|
|
29
29
|
ExtraContext
|
|
30
30
|
>,
|
|
31
31
|
isInlined: boolean,
|
|
32
|
-
tableApi: string | undefined,
|
|
33
32
|
): ValueOrErrors<Template<any, any, any, any>, string> =>
|
|
34
33
|
ValueOrErrors.Operations.All(
|
|
35
34
|
List<ValueOrErrors<[number, Template<any, any, any, any>], string>>(
|
|
@@ -39,7 +38,6 @@ export const TupleDispatcher = {
|
|
|
39
38
|
dispatcherContext,
|
|
40
39
|
`Item ${index + 1}`,
|
|
41
40
|
isInlined,
|
|
42
|
-
tableApi,
|
|
43
41
|
).Then((template) =>
|
|
44
42
|
ValueOrErrors.Default.return([index, template]),
|
|
45
43
|
),
|
|
@@ -31,7 +31,6 @@ export const UnionDispatcher = {
|
|
|
31
31
|
ExtraContext
|
|
32
32
|
>,
|
|
33
33
|
isNested: boolean,
|
|
34
|
-
tableApi: string | undefined,
|
|
35
34
|
): ValueOrErrors<Template<any, any, any, any>, string> =>
|
|
36
35
|
ValueOrErrors.Operations.All(
|
|
37
36
|
List<ValueOrErrors<[string, Template<any, any, any, any>], string>>(
|
|
@@ -49,7 +48,7 @@ export const UnionDispatcher = {
|
|
|
49
48
|
`case ${caseName}`,
|
|
50
49
|
isNested,
|
|
51
50
|
false,
|
|
52
|
-
|
|
51
|
+
undefined,
|
|
53
52
|
).Then((template) =>
|
|
54
53
|
ValueOrErrors.Default.return<
|
|
55
54
|
[string, Template<any, any, any, any>],
|
|
@@ -38,14 +38,14 @@ export const Dispatcher = {
|
|
|
38
38
|
as: string,
|
|
39
39
|
isNested: boolean,
|
|
40
40
|
isInlined: boolean,
|
|
41
|
-
|
|
41
|
+
api: string | Array<string> | undefined,
|
|
42
42
|
): ValueOrErrors<Template<any, any, any, any>, string> =>
|
|
43
43
|
Dispatcher.Operations.Dispatch(
|
|
44
44
|
renderer,
|
|
45
45
|
dispatcherContext,
|
|
46
46
|
isNested,
|
|
47
47
|
isInlined,
|
|
48
|
-
|
|
48
|
+
api,
|
|
49
49
|
).MapErrors((errors) =>
|
|
50
50
|
errors.map((error) => `${error}\n...When dispatching as: ${as}`),
|
|
51
51
|
),
|
|
@@ -64,7 +64,7 @@ export const Dispatcher = {
|
|
|
64
64
|
>,
|
|
65
65
|
isNested: boolean,
|
|
66
66
|
isInlined: boolean | undefined,
|
|
67
|
-
|
|
67
|
+
api: string | Array<string> | undefined,
|
|
68
68
|
): ValueOrErrors<Template<any, any, any, any>, string> => {
|
|
69
69
|
// see the deserializer state file for a commeny explaining lookup renderers
|
|
70
70
|
return renderer.kind == "primitiveRenderer"
|
|
@@ -74,7 +74,7 @@ export const Dispatcher = {
|
|
|
74
74
|
? LookupDispatcher.Operations.Dispatch(
|
|
75
75
|
renderer,
|
|
76
76
|
dispatcherContext,
|
|
77
|
-
|
|
77
|
+
api,
|
|
78
78
|
)
|
|
79
79
|
: renderer.kind == "inlinedType-lookupRenderer"
|
|
80
80
|
? LookupRenderer.Operations.ResolveRenderer(
|
|
@@ -86,7 +86,7 @@ export const Dispatcher = {
|
|
|
86
86
|
dispatcherContext,
|
|
87
87
|
isNested,
|
|
88
88
|
false,
|
|
89
|
-
|
|
89
|
+
api,
|
|
90
90
|
),
|
|
91
91
|
)
|
|
92
92
|
: renderer.kind == "recordRenderer"
|
|
@@ -95,21 +95,18 @@ export const Dispatcher = {
|
|
|
95
95
|
dispatcherContext,
|
|
96
96
|
isNested,
|
|
97
97
|
isInlined ?? true,
|
|
98
|
-
tableApi,
|
|
99
98
|
)
|
|
100
99
|
: renderer.kind == "listRenderer"
|
|
101
100
|
? ListDispatcher.Operations.Dispatch(
|
|
102
101
|
renderer,
|
|
103
102
|
dispatcherContext,
|
|
104
103
|
isInlined ?? true,
|
|
105
|
-
tableApi,
|
|
106
104
|
)
|
|
107
105
|
: renderer.kind == "mapRenderer"
|
|
108
106
|
? MapDispatcher.Operations.Dispatch(
|
|
109
107
|
renderer,
|
|
110
108
|
dispatcherContext,
|
|
111
109
|
isInlined ?? true,
|
|
112
|
-
tableApi,
|
|
113
110
|
)
|
|
114
111
|
: (renderer.kind == "enumRenderer" ||
|
|
115
112
|
renderer.kind == "streamRenderer") &&
|
|
@@ -130,14 +127,12 @@ export const Dispatcher = {
|
|
|
130
127
|
renderer,
|
|
131
128
|
dispatcherContext,
|
|
132
129
|
isInlined ?? true,
|
|
133
|
-
tableApi,
|
|
134
130
|
)
|
|
135
131
|
: renderer.kind == "readOnlyRenderer"
|
|
136
132
|
? ReadOnlyDispatcher.Operations.Dispatch(
|
|
137
133
|
renderer,
|
|
138
134
|
dispatcherContext,
|
|
139
135
|
isInlined ?? true,
|
|
140
|
-
tableApi,
|
|
141
136
|
)
|
|
142
137
|
: renderer.kind == "sumRenderer" ||
|
|
143
138
|
renderer.kind == "sumUnitDateRenderer"
|
|
@@ -145,13 +140,12 @@ export const Dispatcher = {
|
|
|
145
140
|
renderer,
|
|
146
141
|
dispatcherContext,
|
|
147
142
|
isInlined ?? true,
|
|
148
|
-
tableApi,
|
|
149
143
|
)
|
|
150
144
|
: renderer.kind == "tableRenderer"
|
|
151
145
|
? TableDispatcher.Operations.Dispatch(
|
|
152
146
|
renderer,
|
|
153
147
|
dispatcherContext,
|
|
154
|
-
|
|
148
|
+
api,
|
|
155
149
|
isInlined ?? true,
|
|
156
150
|
)
|
|
157
151
|
: renderer.kind == "tupleRenderer"
|
|
@@ -159,14 +153,12 @@ export const Dispatcher = {
|
|
|
159
153
|
renderer,
|
|
160
154
|
dispatcherContext,
|
|
161
155
|
isInlined ?? true,
|
|
162
|
-
tableApi,
|
|
163
156
|
)
|
|
164
157
|
: renderer.kind == "unionRenderer"
|
|
165
158
|
? UnionDispatcher.Operations.Dispatch(
|
|
166
159
|
renderer,
|
|
167
160
|
dispatcherContext,
|
|
168
161
|
isNested,
|
|
169
|
-
tableApi,
|
|
170
162
|
)
|
|
171
163
|
: ValueOrErrors.Default.throwOne(
|
|
172
164
|
`unknown renderer ${renderer.kind}`,
|