mlform 0.1.14 → 0.1.16
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 +2 -2
- package/dist/{builtins-CcS-sHJa.js → builtins-DQTX_dwn.js} +9 -8
- package/dist/mlform/builtins.mjs +1 -1
- package/dist/mlform/kit.mjs +251 -231
- package/dist/mlform/primitives.mjs +1 -1
- package/dist/mlform/runtime.mjs +3 -3
- package/dist/mlform/schema.mjs +2 -2
- package/dist/mlform/transport.mjs +1 -1
- package/dist/{primitives-9obTthA6.js → primitives-BcXt2QWI.js} +83 -53
- package/dist/{runtime-Bn_x46y-.js → runtime-BxMSso-p.js} +630 -519
- package/dist/schema-D9V7-AkU.js +169 -0
- package/dist/{transport-D173EDlB.js → transport-BG3HPc3-.js} +196 -188
- package/dist/types/src/builtins/definitions/fields/series-helpers.d.ts +1 -0
- package/dist/types/src/builtins/definitions/shared.d.ts +1 -0
- package/dist/types/src/kit/mount-types.d.ts +2 -0
- package/dist/types/src/kit/view-core-types.d.ts +4 -1
- package/dist/types/src/primitives/components/form-root-templates.d.ts +3 -1
- package/dist/types/src/primitives/components/form-root.d.ts +3 -1
- package/dist/types/src/primitives/components/report-frame.d.ts +2 -1
- package/dist/types/src/primitives/controller-types.d.ts +44 -0
- package/dist/types/src/primitives/types.d.ts +6 -2
- package/dist/types/src/runtime/index.d.ts +4 -2
- package/dist/types/src/runtime/submission/index.d.ts +2 -0
- package/dist/types/src/runtime/submission/multi-backend.d.ts +25 -0
- package/dist/types/src/runtime/submission/request.d.ts +14 -0
- package/dist/types/src/runtime/submission/snapshot.d.ts +12 -0
- package/dist/types/src/runtime/types/behavior.d.ts +4 -0
- package/dist/types/src/runtime/types/field.d.ts +1 -0
- package/dist/types/src/runtime/types/form.d.ts +4 -0
- package/dist/types/src/runtime/types/transport.d.ts +11 -2
- package/dist/types/src/schema/index.d.ts +2 -0
- package/dist/types/src/schema/mapped-to.d.ts +9 -1
- package/dist/types/src/schema/onehot-display.d.ts +15 -0
- package/dist/types/src/schema/report-context.d.ts +17 -0
- package/dist/types/src/schema/types/field.d.ts +1 -0
- package/dist/types/src/schema/types/report.d.ts +6 -1
- package/dist/types/src/schema/types/submit.d.ts +30 -0
- package/dist/types/src/transport/types/core.d.ts +17 -0
- package/package.json +8 -8
- package/dist/schema-DYDo_1VV.js +0 -95
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, r as f, s as p, t as m, u as h } from "../primitives-
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, r as f, s as p, t as m, u as h } from "../primitives-BcXt2QWI.js";
|
|
2
2
|
export { h as PrimitiveAsyncReportElement, d as PrimitiveDescriptorRegistry, i as PrimitiveFieldElement, n as PrimitiveFormElement, r as PrimitiveReportElement, f as createBuiltinPrimitiveRegistry, p as createPrimitiveDescriptorRegistry, s as createPrimitiveRegistry, c as focusPrimitiveField, m as mountForm, l as primitiveDefaultLabels, o as primitiveStaticText, a as primitiveTagNames, e as resolvePrimitiveText, t as toDescriptorNodes, u as unmountForm };
|
package/dist/mlform/runtime.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { J as
|
|
3
|
-
export {
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "../runtime-BxMSso-p.js";
|
|
2
|
+
import { J as v, Y as y } from "../transport-BG3HPc3-.js";
|
|
3
|
+
export { r as EngineError, i as RegistryError, f as ReportPayloadError, l as SubmissionAbortedError, o as SubmitError, v as TransportError, a as ValidationError, h as createForm, h as createFormRuntime, m as createMultiBackendSubmissionSnapshot, n as createSubmissionSnapshot, u as defaultEquality, e as executeFormPipeline, d as executeMultiBackendPipeline, _ as executeReportFetches, c as identity, g as isPromiseLike, p as shallowArrayEquality, s as shallowEquality, t as shallowObjectEquality, y as transportErrorCodes };
|
package/dist/mlform/schema.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t,
|
|
2
|
-
export {
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "../schema-D9V7-AkU.js";
|
|
2
|
+
export { p as MissingReportMappedToError, c as RegistryError, d as createRegistry, s as createReportContexts, f as createReportFetchRequest, t as defineFieldDefinition, a as defineReportDefinition, u as getReportContext, n as mappedToKey, e as normalizeSchema, o as normalizeSchemaId, r as resolveMappedReportPayload, l as resolveMappedTo, i as resolveOneHotDisplayValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as h, R as g, S as _, T as v, U as y, V as b, W as x, Y as S, _ as C, a as w, b as T, c as E, d as D, f as O, g as k, h as A, i as j, j as M, k as N, l as P, m as F, n as I, o as L, p as R, q as z, r as B, s as V, t as H, u as U, v as W, w as G, x as K, y as q, z as J } from "../transport-
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as h, R as g, S as _, T as v, U as y, V as b, W as x, Y as S, _ as C, a as w, b as T, c as E, d as D, f as O, g as k, h as A, i as j, j as M, k as N, l as P, m as F, n as I, o as L, p as R, q as z, r as B, s as V, t as H, u as U, v as W, w as G, x as K, y as q, z as J } from "../transport-BG3HPc3-.js";
|
|
2
2
|
export { l as TransportError, t as assertPayloadWithinLimits, b as assertTransportCapabilities, s as cloneCapabilities, w as createFallbackTransport, V as createFanoutTransport, h as createGraphqlTransport, r as createGrpcSessionTransport, m as createGrpcStreamTransport, N as createGrpcTransport, e as createGrpcUnaryTransport, I as createHedgedTransport, a as createJsonTransport, E as createLoadBalancedTransport, C as createMemoryCircuitBreakerState, A as createMemorySharedRateLimiter, O as createMemoryTransportCacheStore, H as createMemoryTransportHealthState, j as createPipelineTransport, L as createQuorumFanoutTransport, B as createRacingTransport, P as createRoutingTransport, f as createSessionTransport, p as createSseTransport, c as createTransportRequestRunner, M as createWebSocketSessionTransport, U as createWeightedRoutingTransport, d as extractErrorMessage, g as getTransportPolicyContext, y as inferTransportCapabilities, x as mergeTransportCapabilities, o as normalizeTransportCapabilities, i as pipe, u as transportDefaults, S as transportErrorCodes, z as transportErrorMessages, W as withAuth, D as withCache, k as withCircuitBreaker, R as withDedup, K as withLogging, q as withMetrics, F as withRateLimit, _ as withRequestTransform, n as withResponseTransform, v as withRetry, G as withTimeout, T as withTracing, J as withTransportPolicyContext };
|
|
@@ -873,7 +873,7 @@ var re = () => new Promise((e) => {
|
|
|
873
873
|
></mlf-field-frame>
|
|
874
874
|
`)}
|
|
875
875
|
</div>
|
|
876
|
-
`, pe = (e, t, r, i, a) => n`
|
|
876
|
+
`, pe = (e, t, r, i, a, o) => n`
|
|
877
877
|
<div class="collection" part="report-list">
|
|
878
878
|
${s(e, (e) => e.controller.id, (e) => n`
|
|
879
879
|
<mlf-report-frame
|
|
@@ -882,7 +882,8 @@ var re = () => new Promise((e) => {
|
|
|
882
882
|
.registry=${t}
|
|
883
883
|
.text=${r}
|
|
884
884
|
.transport=${i}
|
|
885
|
-
.
|
|
885
|
+
.fetchMode=${a}
|
|
886
|
+
.lastResult=${o}
|
|
886
887
|
></mlf-report-frame>
|
|
887
888
|
`)}
|
|
888
889
|
</div>
|
|
@@ -934,7 +935,7 @@ var re = () => new Promise((e) => {
|
|
|
934
935
|
</header>
|
|
935
936
|
|
|
936
937
|
<div class="pane-body">
|
|
937
|
-
${pe(e.reportsToRender, e.registry, e.text, e.reportTransport, e.form.state.lastResult ?? null)}
|
|
938
|
+
${pe(e.reportsToRender, e.registry, e.text, e.reportTransport, e.reportFetchMode, e.form.state.lastResult ?? null)}
|
|
938
939
|
</div>
|
|
939
940
|
</aside>
|
|
940
941
|
` : r}
|
|
@@ -985,7 +986,7 @@ var re = () => new Promise((e) => {
|
|
|
985
986
|
</header>
|
|
986
987
|
|
|
987
988
|
<div class="split-content">
|
|
988
|
-
${e.reportsToRender.length > 0 ? pe(e.reportsToRender, e.registry, e.text, e.reportTransport, e.form.state.lastResult ?? null) : n`
|
|
989
|
+
${e.reportsToRender.length > 0 ? pe(e.reportsToRender, e.registry, e.text, e.reportTransport, e.reportFetchMode, e.form.state.lastResult ?? null) : n`
|
|
989
990
|
<div class="empty-report-state">
|
|
990
991
|
<p class="empty-report-title">${e.text.reportsEmptyTitle}</p>
|
|
991
992
|
<p class="empty-report-copy">${e.text.reportsEmptyBody}</p>
|
|
@@ -1098,23 +1099,37 @@ var re = () => new Promise((e) => {
|
|
|
1098
1099
|
set reportTransport(e) {
|
|
1099
1100
|
this.#d = e;
|
|
1100
1101
|
}
|
|
1101
|
-
#f =
|
|
1102
|
-
get
|
|
1102
|
+
#f = "lazy";
|
|
1103
|
+
get reportFetchMode() {
|
|
1103
1104
|
return this.#f;
|
|
1104
1105
|
}
|
|
1105
|
-
set
|
|
1106
|
+
set reportFetchMode(e) {
|
|
1106
1107
|
this.#f = e;
|
|
1107
1108
|
}
|
|
1108
|
-
#p
|
|
1109
|
-
|
|
1109
|
+
#p;
|
|
1110
|
+
get submitHandler() {
|
|
1111
|
+
return this.#p;
|
|
1112
|
+
}
|
|
1113
|
+
set submitHandler(e) {
|
|
1114
|
+
this.#p = e;
|
|
1115
|
+
}
|
|
1116
|
+
#m = null;
|
|
1117
|
+
get formState() {
|
|
1118
|
+
return this.#m;
|
|
1119
|
+
}
|
|
1120
|
+
set formState(e) {
|
|
1121
|
+
this.#m = e;
|
|
1122
|
+
}
|
|
1123
|
+
#h = null;
|
|
1124
|
+
#g;
|
|
1110
1125
|
willUpdate(e) {
|
|
1111
|
-
e.has("form") && this.#
|
|
1126
|
+
e.has("form") && this.#v();
|
|
1112
1127
|
}
|
|
1113
1128
|
connectedCallback() {
|
|
1114
|
-
super.connectedCallback(), this.#
|
|
1129
|
+
super.connectedCallback(), this.#v();
|
|
1115
1130
|
}
|
|
1116
1131
|
disconnectedCallback() {
|
|
1117
|
-
this.#
|
|
1132
|
+
this.#h?.(), this.#h = null, this.#g = void 0, super.disconnectedCallback();
|
|
1118
1133
|
}
|
|
1119
1134
|
render() {
|
|
1120
1135
|
let e = this.form, t = this.formState;
|
|
@@ -1135,7 +1150,8 @@ var re = () => new Promise((e) => {
|
|
|
1135
1150
|
validatingLabel: this.validatingLabel,
|
|
1136
1151
|
submittingLabel: this.submittingLabel,
|
|
1137
1152
|
reportTransport: this.reportTransport,
|
|
1138
|
-
|
|
1153
|
+
reportFetchMode: this.reportFetchMode,
|
|
1154
|
+
onSubmitRequest: this.#_
|
|
1139
1155
|
}) : me({
|
|
1140
1156
|
form: e,
|
|
1141
1157
|
state: t,
|
|
@@ -1151,10 +1167,11 @@ var re = () => new Promise((e) => {
|
|
|
1151
1167
|
validatingLabel: this.validatingLabel,
|
|
1152
1168
|
submittingLabel: this.submittingLabel,
|
|
1153
1169
|
reportTransport: this.reportTransport,
|
|
1154
|
-
|
|
1170
|
+
reportFetchMode: this.reportFetchMode,
|
|
1171
|
+
onSubmitRequest: this.#_
|
|
1155
1172
|
});
|
|
1156
1173
|
}
|
|
1157
|
-
#
|
|
1174
|
+
#_ = async () => {
|
|
1158
1175
|
if (this.form) {
|
|
1159
1176
|
this.dispatchEvent(new CustomEvent(f.submitStart, {
|
|
1160
1177
|
detail: {
|
|
@@ -1165,12 +1182,13 @@ var re = () => new Promise((e) => {
|
|
|
1165
1182
|
composed: !0
|
|
1166
1183
|
}));
|
|
1167
1184
|
try {
|
|
1168
|
-
let e = await this.form.submit();
|
|
1185
|
+
let e = this.submitHandler ? await this.submitHandler() : { result: await this.form.submit() };
|
|
1169
1186
|
this.dispatchEvent(new CustomEvent(f.submitSuccess, {
|
|
1170
1187
|
detail: {
|
|
1171
1188
|
form: this.form,
|
|
1172
1189
|
state: this.form.state,
|
|
1173
|
-
result: e
|
|
1190
|
+
result: e.result,
|
|
1191
|
+
pipelineResult: e.pipelineResult
|
|
1174
1192
|
},
|
|
1175
1193
|
bubbles: !0,
|
|
1176
1194
|
composed: !0
|
|
@@ -1190,15 +1208,15 @@ var re = () => new Promise((e) => {
|
|
|
1190
1208
|
}
|
|
1191
1209
|
}
|
|
1192
1210
|
};
|
|
1193
|
-
#
|
|
1211
|
+
#v() {
|
|
1194
1212
|
if (!this.isConnected) return;
|
|
1195
|
-
if (this.#
|
|
1213
|
+
if (this.#g === this.form) {
|
|
1196
1214
|
this.formState = this.form ? E(this.form) : null;
|
|
1197
1215
|
return;
|
|
1198
1216
|
}
|
|
1199
|
-
if (this.#
|
|
1217
|
+
if (this.#h?.(), this.#h = null, this.#g = this.form, this.formState = this.form ? E(this.form) : null, !this.form) return;
|
|
1200
1218
|
let e = this.form;
|
|
1201
|
-
this.#
|
|
1219
|
+
this.#h = e.subscribeSelector(() => E(e), (e) => {
|
|
1202
1220
|
this.formState = e;
|
|
1203
1221
|
}, { equality: ge });
|
|
1204
1222
|
}
|
|
@@ -1221,7 +1239,7 @@ _([a({ attribute: !1 })], D.prototype, "form", null), _([a({ attribute: !1 })],
|
|
|
1221
1239
|
})], D.prototype, "submittingLabel", null), _([a({
|
|
1222
1240
|
type: String,
|
|
1223
1241
|
attribute: "report-pane"
|
|
1224
|
-
})], D.prototype, "reportPane", null), _([a({ attribute: !1 })], D.prototype, "text", null), _([a({ attribute: !1 })], D.prototype, "reportTransport", null), _([o()], D.prototype, "formState", null), D = _([i(d.form)], D);
|
|
1242
|
+
})], D.prototype, "reportPane", null), _([a({ attribute: !1 })], D.prototype, "text", null), _([a({ attribute: !1 })], D.prototype, "reportTransport", null), _([a({ attribute: !1 })], D.prototype, "reportFetchMode", null), _([a({ attribute: !1 })], D.prototype, "submitHandler", null), _([o()], D.prototype, "formState", null), D = _([i(d.form)], D);
|
|
1225
1243
|
var _e = (e) => e instanceof Error && e.name === "SubmissionAbortedError", O = class e {
|
|
1226
1244
|
fieldPresenters = /* @__PURE__ */ new Map();
|
|
1227
1245
|
reportPresenters = /* @__PURE__ */ new Map();
|
|
@@ -1896,11 +1914,16 @@ _([a({ attribute: !1 })], R.prototype, "controller", null), _([a({ attribute: !1
|
|
|
1896
1914
|
var Te = (e, t = {}) => ({
|
|
1897
1915
|
reportId: t.reportId ?? "",
|
|
1898
1916
|
backend: e.backend,
|
|
1917
|
+
inputs: e.inputs ?? [],
|
|
1918
|
+
displayValues: e.displayValues ?? {},
|
|
1919
|
+
modelValues: e.modelValues ?? e.serializedValues,
|
|
1899
1920
|
values: e.values,
|
|
1900
1921
|
fieldValues: e.fieldValues,
|
|
1901
1922
|
serializedValues: e.serializedValues,
|
|
1902
1923
|
serializedFieldValues: e.serializedFieldValues,
|
|
1903
1924
|
reports: e.reports,
|
|
1925
|
+
reportContext: t.reportId === void 0 ? void 0 : e.reportContexts?.[t.reportId],
|
|
1926
|
+
reportContexts: e.reportContexts ?? {},
|
|
1904
1927
|
meta: e.meta,
|
|
1905
1928
|
raw: e.raw,
|
|
1906
1929
|
signal: t.signal
|
|
@@ -2002,45 +2025,52 @@ var Te = (e, t = {}) => ({
|
|
|
2002
2025
|
set transport(e) {
|
|
2003
2026
|
this.#r = e;
|
|
2004
2027
|
}
|
|
2005
|
-
#i =
|
|
2006
|
-
get
|
|
2028
|
+
#i = "lazy";
|
|
2029
|
+
get fetchMode() {
|
|
2007
2030
|
return this.#i;
|
|
2008
2031
|
}
|
|
2009
|
-
set
|
|
2032
|
+
set fetchMode(e) {
|
|
2010
2033
|
this.#i = e;
|
|
2011
2034
|
}
|
|
2012
2035
|
#a = null;
|
|
2013
|
-
get
|
|
2036
|
+
get lastResult() {
|
|
2014
2037
|
return this.#a;
|
|
2015
2038
|
}
|
|
2016
|
-
set
|
|
2039
|
+
set lastResult(e) {
|
|
2017
2040
|
this.#a = e;
|
|
2018
2041
|
}
|
|
2019
2042
|
#o = null;
|
|
2020
|
-
get
|
|
2043
|
+
get descriptor() {
|
|
2021
2044
|
return this.#o;
|
|
2022
2045
|
}
|
|
2023
|
-
set
|
|
2046
|
+
set descriptor(e) {
|
|
2024
2047
|
this.#o = e;
|
|
2025
2048
|
}
|
|
2026
2049
|
#s = null;
|
|
2027
|
-
get
|
|
2050
|
+
get resolvedDescriptor() {
|
|
2028
2051
|
return this.#s;
|
|
2029
2052
|
}
|
|
2030
|
-
set
|
|
2053
|
+
set resolvedDescriptor(e) {
|
|
2031
2054
|
this.#s = e;
|
|
2032
2055
|
}
|
|
2033
|
-
#c =
|
|
2034
|
-
|
|
2056
|
+
#c = null;
|
|
2057
|
+
get reportState() {
|
|
2058
|
+
return this.#c;
|
|
2059
|
+
}
|
|
2060
|
+
set reportState(e) {
|
|
2061
|
+
this.#c = e;
|
|
2062
|
+
}
|
|
2063
|
+
#l = ++Ee;
|
|
2035
2064
|
#u;
|
|
2036
|
-
#d
|
|
2065
|
+
#d;
|
|
2037
2066
|
#f = null;
|
|
2038
2067
|
#p = null;
|
|
2039
|
-
#m =
|
|
2068
|
+
#m = null;
|
|
2069
|
+
#h = new N(this, (e) => {
|
|
2040
2070
|
this.resolvedDescriptor = this.descriptor, this.reportState = e?.state ?? null;
|
|
2041
2071
|
});
|
|
2042
2072
|
willUpdate(e) {
|
|
2043
|
-
e.has("controller") && this.#
|
|
2073
|
+
e.has("controller") && this.#h.bind(this.controller), e.has("descriptor") && (this.resolvedDescriptor = this.descriptor), (e.has("lastResult") || e.has("controller")) && this.#b();
|
|
2044
2074
|
}
|
|
2045
2075
|
render() {
|
|
2046
2076
|
let e = this.resolvedDescriptor, t = this.reportState;
|
|
@@ -2056,7 +2086,7 @@ var Te = (e, t = {}) => ({
|
|
|
2056
2086
|
<span class="meta">${this.text.reportStatusLabel(t.status)}</span>
|
|
2057
2087
|
</div>
|
|
2058
2088
|
|
|
2059
|
-
${r ? this.#
|
|
2089
|
+
${r ? this.#g(r) : c`
|
|
2060
2090
|
<mlf-unsupported-component
|
|
2061
2091
|
role="report"
|
|
2062
2092
|
component=${e.component}
|
|
@@ -2066,8 +2096,8 @@ var Te = (e, t = {}) => ({
|
|
|
2066
2096
|
</section>
|
|
2067
2097
|
`;
|
|
2068
2098
|
}
|
|
2069
|
-
#
|
|
2070
|
-
let t = l(e), n = this.#
|
|
2099
|
+
#g(e) {
|
|
2100
|
+
let t = l(e), n = this.#_(), r = this.transport, i = this.#y(), a = this.resolvedDescriptor;
|
|
2071
2101
|
return c`
|
|
2072
2102
|
<${t}
|
|
2073
2103
|
.controller=${this.controller}
|
|
@@ -2079,31 +2109,31 @@ var Te = (e, t = {}) => ({
|
|
|
2079
2109
|
></${t}>
|
|
2080
2110
|
`;
|
|
2081
2111
|
}
|
|
2082
|
-
#
|
|
2083
|
-
if (this.controller === this.#
|
|
2084
|
-
let e = this.#
|
|
2085
|
-
return this.#
|
|
2112
|
+
#_() {
|
|
2113
|
+
if (this.controller === this.#d && this.resolvedDescriptor === this.#f) return this.#u;
|
|
2114
|
+
let e = this.#v(this.resolvedDescriptor?.props ?? {});
|
|
2115
|
+
return this.#d = this.controller, this.#f = this.resolvedDescriptor, this.#u = e, e;
|
|
2086
2116
|
}
|
|
2087
|
-
#
|
|
2117
|
+
#v(e) {
|
|
2088
2118
|
if (this.controller) return {
|
|
2089
|
-
regionId: `${g.reportRegion}-${this.controller.id}-${this.#
|
|
2119
|
+
regionId: `${g.reportRegion}-${this.controller.id}-${this.#l}`,
|
|
2090
2120
|
label: F(e.label, this.controller.config.label ?? this.controller.id),
|
|
2091
2121
|
description: typeof e.description == "string" && e.description.length > 0 ? e.description : void 0
|
|
2092
2122
|
};
|
|
2093
2123
|
}
|
|
2094
|
-
#
|
|
2124
|
+
#y() {
|
|
2095
2125
|
let e = this.lastResult;
|
|
2096
2126
|
if (!e || !this.controller) return null;
|
|
2097
|
-
if (e === this.#
|
|
2127
|
+
if (e === this.#p && this.#m?.reportId === this.controller.id) return this.#m;
|
|
2098
2128
|
let t = Te(e, { reportId: this.controller.id });
|
|
2099
|
-
return this.#
|
|
2129
|
+
return this.#p = e, this.#m = t, t;
|
|
2100
2130
|
}
|
|
2101
|
-
#
|
|
2102
|
-
let e = this.controller, t = this.#
|
|
2103
|
-
!e?.canFetch || !t || e.state.status !== "idle" || e.fetch(t);
|
|
2131
|
+
#b() {
|
|
2132
|
+
let e = this.controller, t = this.#y();
|
|
2133
|
+
this.fetchMode !== "lazy" || !e?.canFetch || !t || e.state.status !== "idle" || e.fetch(t);
|
|
2104
2134
|
}
|
|
2105
2135
|
};
|
|
2106
|
-
_([a({ attribute: !1 })], z.prototype, "controller", null), _([a({ attribute: !1 })], z.prototype, "registry", null), _([a({ attribute: !1 })], z.prototype, "text", null), _([a({ attribute: !1 })], z.prototype, "transport", null), _([a({ attribute: !1 })], z.prototype, "lastResult", null), _([a({ attribute: !1 })], z.prototype, "descriptor", null), _([o()], z.prototype, "resolvedDescriptor", null), _([o()], z.prototype, "reportState", null), z = _([i(d.reportFrame)], z);
|
|
2136
|
+
_([a({ attribute: !1 })], z.prototype, "controller", null), _([a({ attribute: !1 })], z.prototype, "registry", null), _([a({ attribute: !1 })], z.prototype, "text", null), _([a({ attribute: !1 })], z.prototype, "transport", null), _([a({ attribute: !1 })], z.prototype, "fetchMode", null), _([a({ attribute: !1 })], z.prototype, "lastResult", null), _([a({ attribute: !1 })], z.prototype, "descriptor", null), _([o()], z.prototype, "resolvedDescriptor", null), _([o()], z.prototype, "reportState", null), z = _([i(d.reportFrame)], z);
|
|
2107
2137
|
//#endregion
|
|
2108
2138
|
//#region src/primitives/components/declarative-field.ts
|
|
2109
2139
|
var B = {
|
|
@@ -4068,7 +4098,7 @@ var rt = new Set([
|
|
|
4068
4098
|
if (e.childNodes.length > 0 && t !== "replace") throw TypeError("Mount into an empty container or pass `containerStrategy: \"replace\"`.");
|
|
4069
4099
|
}, lt = (e) => e ? e.clone() : $(), ut = (e) => e?.clone() ?? k(), dt = (e, t, n = {}) => {
|
|
4070
4100
|
let r = document.createElement(d.form), i = lt(n.registry), a = ut(n.descriptorRegistry), o = h(n.text), s = n.containerStrategy ?? "error", c = s === "replace" ? Array.from(e.childNodes) : [];
|
|
4071
|
-
ct(e, s), r.form = t, r.registry = i, r.descriptorRegistry = a, r.layout = n.layout ?? "stacked", r.formLabel = n.formLabel ?? p.form, r.reportsLabel = n.reportsLabel ?? p.reports, r.submitLabel = n.submitLabel ?? p.submit, r.validatingLabel = n.validatingLabel ?? p.validating, r.submittingLabel = n.submittingLabel ?? p.submitting, r.reportPane = n.reportPane ?? "auto", r.text = o, r.reportTransport = n.reportTransport, e.replaceChildren(r);
|
|
4101
|
+
ct(e, s), r.form = t, r.registry = i, r.descriptorRegistry = a, r.layout = n.layout ?? "stacked", r.formLabel = n.formLabel ?? p.form, r.reportsLabel = n.reportsLabel ?? p.reports, r.submitLabel = n.submitLabel ?? p.submit, r.validatingLabel = n.validatingLabel ?? p.validating, r.submittingLabel = n.submittingLabel ?? p.submitting, r.reportPane = n.reportPane ?? "auto", r.text = o, r.reportTransport = n.reportTransport, r.reportFetchMode = n.reportFetchMode ?? "lazy", r.submitHandler = n.submitHandler, e.replaceChildren(r);
|
|
4072
4102
|
let l = !1;
|
|
4073
4103
|
return Object.freeze({
|
|
4074
4104
|
form: t,
|