mlform 0.1.19 → 0.1.22
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-6Cv46IXP.js → builtins-B2U_ViF6.js} +12 -14
- package/dist/mlform/builtins.mjs +1 -1
- package/dist/mlform/kit.mjs +6 -8
- 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 +2 -2
- package/dist/{primitives-BNBNG2Aa.js → primitives-ljp3c5R8.js} +11 -54
- package/dist/{runtime-Eo_q4pgg.js → runtime-C9ZioNpI.js} +405 -683
- package/dist/schema-CiCjXECD.js +350 -0
- package/dist/transport-KUB3zfW9.js +65 -0
- package/dist/types/src/kit/constants.d.ts +0 -1
- package/dist/types/src/kit/kinds/define-report-kind.d.ts +1 -3
- package/dist/types/src/primitives/components/form-root-state.d.ts +0 -4
- package/dist/types/src/primitives/components/submit-button.d.ts +0 -4
- package/dist/types/src/primitives/controller-types.d.ts +9 -23
- package/dist/types/src/runtime/errors.d.ts +0 -1
- package/dist/types/src/runtime/index.d.ts +1 -2
- package/dist/types/src/runtime/reports/controller.d.ts +1 -2
- package/dist/types/src/runtime/state/engine.d.ts +1 -5
- package/dist/types/src/runtime/submission/create-submitter.d.ts +1 -1
- package/dist/types/src/runtime/submission/index.d.ts +1 -0
- package/dist/types/src/runtime/submission/reports.d.ts +1 -2
- package/dist/types/src/runtime/submission/request.d.ts +2 -18
- package/dist/types/src/runtime/submission/transport-response.d.ts +2 -0
- package/dist/types/src/runtime/submission/types.d.ts +2 -23
- package/dist/types/src/runtime/types/behavior.d.ts +1 -7
- package/dist/types/src/runtime/types/form.d.ts +1 -14
- package/dist/types/src/runtime/types/report.d.ts +1 -1
- package/dist/types/src/runtime/types/transport.d.ts +5 -16
- package/dist/types/src/schema/index.d.ts +1 -0
- package/dist/types/src/schema/mapped-to.d.ts +13 -1
- package/dist/types/src/schema/normalize.d.ts +5 -0
- package/dist/types/src/schema/report-context.d.ts +2 -2
- package/dist/types/src/schema/types/report.d.ts +5 -11
- package/dist/types/src/schema/types/submit.d.ts +28 -11
- package/dist/types/src/schema/validation.d.ts +25 -0
- package/dist/types/src/transport/errors.d.ts +1 -28
- package/dist/types/src/transport/fanout.d.ts +17 -0
- package/dist/types/src/transport/index.d.ts +4 -10
- package/dist/types/src/transport/request-runner.d.ts +3 -2
- package/dist/types/src/transport/types.d.ts +18 -0
- package/package.json +1 -1
- package/dist/schema-CNKKJZRx.js +0 -173
- package/dist/transport-Cloa_erk.js +0 -2154
- package/dist/types/src/runtime/submission/field-updates.d.ts +0 -14
- package/dist/types/src/runtime/submission/pending-patches.d.ts +0 -2
- package/dist/types/src/runtime/submission/report-updates.d.ts +0 -16
- package/dist/types/src/runtime/submission/stream-events.d.ts +0 -13
- package/dist/types/src/runtime/submission/stream-progress.d.ts +0 -4
- package/dist/types/src/transport/capabilities.d.ts +0 -7
- package/dist/types/src/transport/clone.d.ts +0 -6
- package/dist/types/src/transport/composition/fallback.d.ts +0 -2
- package/dist/types/src/transport/composition/fanout-helpers.d.ts +0 -2
- package/dist/types/src/transport/composition/fanout-options.d.ts +0 -9
- package/dist/types/src/transport/composition/fanout.d.ts +0 -2
- package/dist/types/src/transport/composition/hedged.d.ts +0 -2
- package/dist/types/src/transport/composition/index.d.ts +0 -8
- package/dist/types/src/transport/composition/load-balancing.d.ts +0 -2
- package/dist/types/src/transport/composition/pipeline.d.ts +0 -2
- package/dist/types/src/transport/composition/quorum-fanout.d.ts +0 -2
- package/dist/types/src/transport/composition/racing.d.ts +0 -2
- package/dist/types/src/transport/composition/routing.d.ts +0 -3
- package/dist/types/src/transport/constants.d.ts +0 -34
- package/dist/types/src/transport/internal-core.d.ts +0 -21
- package/dist/types/src/transport/internal-errors.d.ts +0 -21
- package/dist/types/src/transport/internal-request.d.ts +0 -21
- package/dist/types/src/transport/internal-routing.d.ts +0 -25
- package/dist/types/src/transport/internal-sse.d.ts +0 -14
- package/dist/types/src/transport/internal-stream.d.ts +0 -13
- package/dist/types/src/transport/internal.d.ts +0 -6
- package/dist/types/src/transport/middleware/auth.d.ts +0 -2
- package/dist/types/src/transport/middleware/cache.d.ts +0 -2
- package/dist/types/src/transport/middleware/circuit-breaker.d.ts +0 -2
- package/dist/types/src/transport/middleware/dedup.d.ts +0 -2
- package/dist/types/src/transport/middleware/index.d.ts +0 -12
- package/dist/types/src/transport/middleware/logging.d.ts +0 -2
- package/dist/types/src/transport/middleware/metrics.d.ts +0 -2
- package/dist/types/src/transport/middleware/pipe.d.ts +0 -2
- package/dist/types/src/transport/middleware/rate-limit.d.ts +0 -2
- package/dist/types/src/transport/middleware/retry.d.ts +0 -2
- package/dist/types/src/transport/middleware/timeout.d.ts +0 -2
- package/dist/types/src/transport/middleware/tracing.d.ts +0 -2
- package/dist/types/src/transport/middleware/transform.d.ts +0 -3
- package/dist/types/src/transport/policy-context.d.ts +0 -3
- package/dist/types/src/transport/protocols/graphql.d.ts +0 -2
- package/dist/types/src/transport/protocols/grpc.d.ts +0 -5
- package/dist/types/src/transport/protocols/index.d.ts +0 -5
- package/dist/types/src/transport/protocols/json.d.ts +0 -2
- package/dist/types/src/transport/protocols/sse.d.ts +0 -2
- package/dist/types/src/transport/protocols/websocket.d.ts +0 -2
- package/dist/types/src/transport/runtime.d.ts +0 -4
- package/dist/types/src/transport/state/cache-store.d.ts +0 -2
- package/dist/types/src/transport/state/circuit-breaker.d.ts +0 -2
- package/dist/types/src/transport/state/health.d.ts +0 -2
- package/dist/types/src/transport/state/index.d.ts +0 -5
- package/dist/types/src/transport/state/rate-limiter.d.ts +0 -2
- package/dist/types/src/transport/state/session.d.ts +0 -2
- package/dist/types/src/transport/types/capabilities.d.ts +0 -35
- package/dist/types/src/transport/types/core.d.ts +0 -74
- package/dist/types/src/transport/types/events.d.ts +0 -50
- package/dist/types/src/transport/types/index.d.ts +0 -7
- package/dist/types/src/transport/types/middleware.d.ts +0 -3
- package/dist/types/src/transport/types/options-http.d.ts +0 -85
- package/dist/types/src/transport/types/options-middleware.d.ts +0 -96
- package/dist/types/src/transport/types/options-routing.d.ts +0 -82
- package/dist/types/src/transport/types/options.d.ts +0 -3
- package/dist/types/src/transport/types/session.d.ts +0 -48
- package/dist/types/src/transport/types/state.d.ts +0 -46
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Schema-driven forms for machine learning applications.
|
|
|
9
9
|
|
|
10
10
|
MLForm gives you a predictable UI layer between users and model backends. You describe inputs and reports with a schema, MLForm renders accessible Web Components, validates values, submits structured payloads, and displays model results in the same host container.
|
|
11
11
|
|
|
12
|
-
Version `0.1.
|
|
12
|
+
Version `0.1.22` is the current release in this repository.
|
|
13
13
|
|
|
14
14
|
## Why MLForm
|
|
15
15
|
|
|
@@ -306,7 +306,7 @@ The main package targets Node.js `>=24.9.0`.
|
|
|
306
306
|
|
|
307
307
|
## Release Notes
|
|
308
308
|
|
|
309
|
-
For `0.1.
|
|
309
|
+
For `0.1.22`, use the repository release entry and the published docs as the source of truth:
|
|
310
310
|
|
|
311
311
|
- GitHub releases: https://github.com/UlloaSP/mlform/releases
|
|
312
312
|
- npm package: https://www.npmjs.com/package/mlform
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as r } from "./primitives-
|
|
1
|
+
import { b as e, d as t, h as n } from "./schema-CiCjXECD.js";
|
|
2
|
+
import { s as r } from "./primitives-ljp3c5R8.js";
|
|
3
3
|
import * as i from "zod";
|
|
4
4
|
//#region src/builtins/constants.ts
|
|
5
5
|
var a = {
|
|
@@ -632,15 +632,14 @@ var a = {
|
|
|
632
632
|
}
|
|
633
633
|
}, J = {
|
|
634
634
|
kind: "classifier",
|
|
635
|
-
partialUpdatePolicy: "validate",
|
|
636
635
|
schema: i.object({
|
|
637
636
|
kind: i.literal("classifier"),
|
|
638
637
|
..._,
|
|
639
638
|
labels: i.array(i.string()).optional(),
|
|
640
639
|
showClassProbabilities: i.boolean().optional().default(!0)
|
|
641
640
|
}),
|
|
642
|
-
resolvePayload(
|
|
643
|
-
return
|
|
641
|
+
resolvePayload(e, t) {
|
|
642
|
+
return n(t.report, t.result);
|
|
644
643
|
},
|
|
645
644
|
describe(e, t) {
|
|
646
645
|
return t.state.status === "idle" && t.payload === void 0 ? null : {
|
|
@@ -661,15 +660,14 @@ var a = {
|
|
|
661
660
|
}
|
|
662
661
|
}, Y = {
|
|
663
662
|
kind: "regressor",
|
|
664
|
-
partialUpdatePolicy: "validate",
|
|
665
663
|
schema: i.object({
|
|
666
664
|
kind: i.literal("regressor"),
|
|
667
665
|
..._,
|
|
668
666
|
unit: i.string().optional(),
|
|
669
667
|
precision: i.number().int().nonnegative().optional().default(2)
|
|
670
668
|
}),
|
|
671
|
-
resolvePayload(
|
|
672
|
-
return
|
|
669
|
+
resolvePayload(e, t) {
|
|
670
|
+
return n(t.report, t.result);
|
|
673
671
|
},
|
|
674
672
|
describe(e, t) {
|
|
675
673
|
return t.state.status === "idle" && t.payload === void 0 ? null : {
|
|
@@ -688,7 +686,7 @@ var a = {
|
|
|
688
686
|
}
|
|
689
687
|
};
|
|
690
688
|
}
|
|
691
|
-
}, X = (e) => e.kind === "mapped-category" ? e.config : null, Z = (
|
|
689
|
+
}, X = (e) => e.kind === "mapped-category" ? e.config : null, Z = (t, n) => t.getField(n) ?? t.getField(e(n)), ie = async (e, t) => {
|
|
692
690
|
let n = t.getField(e.fieldId);
|
|
693
691
|
if (!n) return;
|
|
694
692
|
let r = X(n);
|
|
@@ -737,13 +735,13 @@ var a = {
|
|
|
737
735
|
kind: t.kind,
|
|
738
736
|
describe: t.describe
|
|
739
737
|
});
|
|
740
|
-
}, ce = () =>
|
|
741
|
-
let e =
|
|
742
|
-
for (let
|
|
743
|
-
for (let
|
|
738
|
+
}, ce = () => t().registerReport(J).registerReport(Y), le = () => {
|
|
739
|
+
let e = t(), n = r();
|
|
740
|
+
for (let t of ae) e.registerField(t), $(n, t);
|
|
741
|
+
for (let t of oe) e.registerReport(t), se(n, t);
|
|
744
742
|
return {
|
|
745
743
|
registry: e,
|
|
746
|
-
descriptorRegistry:
|
|
744
|
+
descriptorRegistry: n,
|
|
747
745
|
behaviors: [Q()]
|
|
748
746
|
};
|
|
749
747
|
};
|
package/dist/mlform/builtins.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b, y as x } from "../builtins-
|
|
1
|
+
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b, y as x } from "../builtins-B2U_ViF6.js";
|
|
2
2
|
export { t as booleanFieldDefinition, y as builtinFieldKinds, x as builtinReportFallbacks, r as builtinReportKinds, b as builtinReportLabels, e as builtinValidationMessages, s as categoryFieldDefinition, n as classifierReportDefinition, _ as createBuiltinMlRegistry, h as createMappedCategoryBehavior, f as createMlRegistryPack, m as dateFieldDefinition, o as longTextFieldDefinition, c as mappedCategoryFieldDefinition, a as multiChoiceFieldDefinition, v as numberFieldDefinition, d as oneHotCategoryFieldDefinition, u as ratingFieldDefinition, l as regressorReportDefinition, g as seriesFieldDefinition, p as singleChoiceFieldDefinition, i as textFieldDefinition };
|
package/dist/mlform/kit.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as e, t } from "../runtime-
|
|
2
|
-
import {
|
|
3
|
-
import { n as i } from "../builtins-
|
|
4
|
-
import { _ as a, a as o, h as s, l as c, m as l, p as u, r as d, t as f } from "../primitives-
|
|
1
|
+
import { _ as e, t } from "../runtime-C9ZioNpI.js";
|
|
2
|
+
import { b as n, d as r } from "../schema-CiCjXECD.js";
|
|
3
|
+
import { n as i } from "../builtins-B2U_ViF6.js";
|
|
4
|
+
import { _ as a, a as o, h as s, l as c, m as l, p as u, r as d, t as f } from "../primitives-ljp3c5R8.js";
|
|
5
5
|
import { d as p, h as m, r as h } from "../design-Dr7o4rR9.js";
|
|
6
6
|
import { LitElement as g, css as _, html as v, nothing as y } from "lit";
|
|
7
7
|
import { customElement as b, property as x, state as S } from "lit/decorators.js";
|
|
@@ -1856,14 +1856,13 @@ var ue = (e, t) => ({
|
|
|
1856
1856
|
schema: e.schema,
|
|
1857
1857
|
payloadSchema: e.payloadSchema,
|
|
1858
1858
|
payloadValidationPolicy: e.payloadValidationPolicy,
|
|
1859
|
-
partialUpdatePolicy: e.partialUpdatePolicy,
|
|
1860
1859
|
clonePayload: e.clonePayload,
|
|
1861
1860
|
fetch: e.fetch,
|
|
1862
|
-
resolvePayload: (t, n) => e.resolve({
|
|
1861
|
+
resolvePayload: e.resolve ? (t, n) => e.resolve?.({
|
|
1863
1862
|
config: n.report,
|
|
1864
1863
|
report: n.report,
|
|
1865
1864
|
result: n.result
|
|
1866
|
-
})
|
|
1865
|
+
}) : void 0
|
|
1867
1866
|
}, n = {
|
|
1868
1867
|
kind: e.kind,
|
|
1869
1868
|
describe(t, n) {
|
|
@@ -1901,7 +1900,6 @@ var ue = (e, t) => ({
|
|
|
1901
1900
|
schema: e.schema,
|
|
1902
1901
|
payloadSchema: e.payloadSchema,
|
|
1903
1902
|
payloadValidationPolicy: e.payloadValidationPolicy,
|
|
1904
|
-
partialUpdatePolicy: e.partialUpdatePolicy,
|
|
1905
1903
|
clonePayload: t.clonePayload,
|
|
1906
1904
|
fetch: t.fetch,
|
|
1907
1905
|
resolvePayload: t.resolvePayload,
|
|
@@ -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-ljp3c5R8.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 { _ 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-
|
|
2
|
-
import {
|
|
3
|
-
export { r as EngineError, i as RegistryError, f as ReportPayloadError, l as SubmissionAbortedError, o as SubmitError,
|
|
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-C9ZioNpI.js";
|
|
2
|
+
import { a as v, i as y } from "../transport-KUB3zfW9.js";
|
|
3
|
+
export { r as EngineError, i as RegistryError, f as ReportPayloadError, l as SubmissionAbortedError, o as SubmitError, y 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, v as transportErrorCodes };
|
package/dist/mlform/schema.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, y } from "../schema-CiCjXECD.js";
|
|
2
|
+
export { _ as RegistryError, r as SchemaNormalizationError, i as createRegistry, t as createReportContexts, g as createReportFetchRequest, a as defineFieldDefinition, p as defineReportDefinition, d as findUnknownKinds, f as getReportContext, u as mappedToKey, l as normalizeSchema, n as normalizeSchemaId, s as resolveMappedReportPayload, o as resolveMappedReportResult, e as resolveMappedRoutes, v as resolveMappedTargets, y as resolveMappedTo, h as resolveOneHotDisplayValue, m as toSchemaJsonSchema, c as validateSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "../transport-KUB3zfW9.js";
|
|
2
|
+
export { t as TransportError, i as createFanoutTransport, n as createTransportRequestRunner, r as extractErrorMessage, e as transportErrorCodes };
|
|
@@ -90,6 +90,7 @@ var f = {
|
|
|
90
90
|
case "idle": return "Idle";
|
|
91
91
|
case "loading": return "Loading";
|
|
92
92
|
case "ready": return "Ready";
|
|
93
|
+
case "skipped": return "Skipped";
|
|
93
94
|
case "error": return "Error";
|
|
94
95
|
}
|
|
95
96
|
},
|
|
@@ -916,10 +917,6 @@ var re = () => new Promise((e) => {
|
|
|
916
917
|
.idleLabel=${e.submitLabel}
|
|
917
918
|
.validatingLabel=${e.validatingLabel}
|
|
918
919
|
.submittingLabel=${e.submittingLabel}
|
|
919
|
-
.loaded=${e.state.submissionLoaded}
|
|
920
|
-
.total=${e.state.submissionTotal}
|
|
921
|
-
.progressMessage=${e.state.submissionMessage}
|
|
922
|
-
.sessionMessageCount=${e.state.submissionSessionMessageCount}
|
|
923
920
|
@mlf-submit-request=${e.onSubmitRequest}
|
|
924
921
|
></mlf-submit-button>
|
|
925
922
|
</div>
|
|
@@ -969,10 +966,6 @@ var re = () => new Promise((e) => {
|
|
|
969
966
|
.idleLabel=${e.submitLabel}
|
|
970
967
|
.validatingLabel=${e.validatingLabel}
|
|
971
968
|
.submittingLabel=${e.submittingLabel}
|
|
972
|
-
.loaded=${e.state.submissionLoaded}
|
|
973
|
-
.total=${e.state.submissionTotal}
|
|
974
|
-
.progressMessage=${e.state.submissionMessage}
|
|
975
|
-
.sessionMessageCount=${e.state.submissionSessionMessageCount}
|
|
976
969
|
@mlf-submit-request=${e.onSubmitRequest}
|
|
977
970
|
></mlf-submit-button>
|
|
978
971
|
</div>
|
|
@@ -999,17 +992,13 @@ var re = () => new Promise((e) => {
|
|
|
999
992
|
` : r}
|
|
1000
993
|
</div>
|
|
1001
994
|
</div>
|
|
1002
|
-
`, E = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), ge = (e, t) => e.status === t.status && e.submitCount === t.submitCount && e.hasFormErrors === t.hasFormErrors && e.hasLastResult === t.hasLastResult &&
|
|
995
|
+
`, E = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), ge = (e, t) => e.status === t.status && e.submitCount === t.submitCount && e.hasFormErrors === t.hasFormErrors && e.hasLastResult === t.hasLastResult && E(e.visibleFieldIds, t.visibleFieldIds) && E(e.visibleReportIds, t.visibleReportIds) && E(e.reportStateKeys, t.reportStateKeys), D = (e) => {
|
|
1003
996
|
let t = e.state;
|
|
1004
997
|
return {
|
|
1005
998
|
status: t.status,
|
|
1006
999
|
submitCount: t.submitCount,
|
|
1007
1000
|
hasFormErrors: t.errors.form.length > 0,
|
|
1008
1001
|
hasLastResult: t.lastResult !== null,
|
|
1009
|
-
submissionLoaded: t.submissionProgress?.loaded,
|
|
1010
|
-
submissionTotal: t.submissionProgress?.total,
|
|
1011
|
-
submissionMessage: t.submissionProgress?.message,
|
|
1012
|
-
submissionSessionMessageCount: t.submissionProgress?.sessionMessageCount,
|
|
1013
1002
|
visibleFieldIds: e.fields.filter((e) => e.state.visible).map((e) => e.id),
|
|
1014
1003
|
visibleReportIds: e.reports.map((e) => e.id),
|
|
1015
1004
|
reportStateKeys: e.reports.map((e) => `${e.id}:${e.state.status}:${e.state.payload === void 0}:${e.state.error === null}`)
|
|
@@ -1428,55 +1417,27 @@ var j = class extends e {
|
|
|
1428
1417
|
set submittingLabel(e) {
|
|
1429
1418
|
this.#r = e;
|
|
1430
1419
|
}
|
|
1431
|
-
#i = void 0;
|
|
1432
|
-
get loaded() {
|
|
1433
|
-
return this.#i;
|
|
1434
|
-
}
|
|
1435
|
-
set loaded(e) {
|
|
1436
|
-
this.#i = e;
|
|
1437
|
-
}
|
|
1438
|
-
#a = void 0;
|
|
1439
|
-
get total() {
|
|
1440
|
-
return this.#a;
|
|
1441
|
-
}
|
|
1442
|
-
set total(e) {
|
|
1443
|
-
this.#a = e;
|
|
1444
|
-
}
|
|
1445
|
-
#o = void 0;
|
|
1446
|
-
get progressMessage() {
|
|
1447
|
-
return this.#o;
|
|
1448
|
-
}
|
|
1449
|
-
set progressMessage(e) {
|
|
1450
|
-
this.#o = e;
|
|
1451
|
-
}
|
|
1452
|
-
#s = void 0;
|
|
1453
|
-
get sessionMessageCount() {
|
|
1454
|
-
return this.#s;
|
|
1455
|
-
}
|
|
1456
|
-
set sessionMessageCount(e) {
|
|
1457
|
-
this.#s = e;
|
|
1458
|
-
}
|
|
1459
1420
|
render() {
|
|
1460
|
-
let e = this.
|
|
1421
|
+
let e = this.status === "validating" ? this.validatingLabel : this.status === "submitting" ? this.submittingLabel : this.idleLabel;
|
|
1461
1422
|
return n`
|
|
1462
1423
|
<button
|
|
1463
1424
|
type="button"
|
|
1464
1425
|
?disabled=${this.status === "validating" || this.status === "submitting"}
|
|
1465
1426
|
aria-busy=${String(this.status === "validating" || this.status === "submitting")}
|
|
1466
|
-
@click=${this.#
|
|
1427
|
+
@click=${this.#i}
|
|
1467
1428
|
>
|
|
1468
|
-
${
|
|
1429
|
+
${e}
|
|
1469
1430
|
</button>
|
|
1470
1431
|
`;
|
|
1471
1432
|
}
|
|
1472
|
-
#
|
|
1433
|
+
#i = () => {
|
|
1473
1434
|
this.dispatchEvent(new CustomEvent(p.submitRequest, {
|
|
1474
1435
|
bubbles: !0,
|
|
1475
1436
|
composed: !0
|
|
1476
1437
|
}));
|
|
1477
1438
|
};
|
|
1478
1439
|
};
|
|
1479
|
-
v([a({ type: String })], j.prototype, "status", null), v([a({ type: String })], j.prototype, "idleLabel", null), v([a({ type: String })], j.prototype, "validatingLabel", null), v([a({ type: String })], j.prototype, "submittingLabel", null),
|
|
1440
|
+
v([a({ type: String })], j.prototype, "status", null), v([a({ type: String })], j.prototype, "idleLabel", null), v([a({ type: String })], j.prototype, "validatingLabel", null), v([a({ type: String })], j.prototype, "submittingLabel", null), j = v([i(f.submitButton)], j);
|
|
1480
1441
|
//#endregion
|
|
1481
1442
|
//#region src/primitives/components/unsupported-component.ts
|
|
1482
1443
|
var M = class extends e {
|
|
@@ -1915,16 +1876,12 @@ v([a({ attribute: !1 })], R.prototype, "controller", null), v([a({ attribute: !1
|
|
|
1915
1876
|
var Ee = (e, t = {}) => ({
|
|
1916
1877
|
reportId: t.reportId ?? "",
|
|
1917
1878
|
backend: e.backend,
|
|
1918
|
-
inputs: e.inputs
|
|
1919
|
-
displayValues: e.displayValues
|
|
1920
|
-
modelValues: e.modelValues
|
|
1921
|
-
values: e.values,
|
|
1922
|
-
fieldValues: e.fieldValues,
|
|
1923
|
-
serializedValues: e.serializedValues,
|
|
1924
|
-
serializedFieldValues: e.serializedFieldValues,
|
|
1879
|
+
inputs: e.inputs,
|
|
1880
|
+
displayValues: e.displayValues,
|
|
1881
|
+
modelValues: e.modelValues,
|
|
1925
1882
|
reports: e.reports,
|
|
1926
1883
|
reportContext: t.reportId === void 0 ? void 0 : e.reportContexts?.[t.reportId],
|
|
1927
|
-
reportContexts: e.reportContexts
|
|
1884
|
+
reportContexts: e.reportContexts,
|
|
1928
1885
|
meta: e.meta,
|
|
1929
1886
|
raw: e.raw,
|
|
1930
1887
|
signal: t.signal
|