mlform 0.1.18 → 0.1.19
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-STiTwaH9.js → builtins-6Cv46IXP.js} +1 -1
- package/dist/mlform/builtins.mjs +1 -1
- package/dist/mlform/kit.mjs +7 -5
- package/dist/mlform/primitives.mjs +1 -1
- package/dist/{primitives-BcXt2QWI.js → primitives-BNBNG2Aa.js} +315 -262
- package/dist/types/src/kit/index.d.ts +1 -1
- package/dist/types/src/kit/kinds/define-report-kind.d.ts +7 -1
- package/dist/types/src/kit/kinds/index.d.ts +1 -1
- package/dist/types/src/primitives/components/mounted-report.d.ts +15 -0
- package/dist/types/src/primitives/constants.d.ts +1 -0
- package/package.json +2 -2
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.19` 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.19`, 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
|
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-6Cv46IXP.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
1
|
import { _ as e, t } from "../runtime-Eo_q4pgg.js";
|
|
2
2
|
import { m as n, s as r } from "../schema-CNKKJZRx.js";
|
|
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-
|
|
3
|
+
import { n as i } from "../builtins-6Cv46IXP.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-BNBNG2Aa.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";
|
|
@@ -1875,9 +1875,9 @@ var ue = (e, t) => ({
|
|
|
1875
1875
|
state: n.state,
|
|
1876
1876
|
payload: n.payload,
|
|
1877
1877
|
result: n.result
|
|
1878
|
-
};
|
|
1878
|
+
}, i = typeof e.render.mount == "function";
|
|
1879
1879
|
return {
|
|
1880
|
-
component: "declarative-report",
|
|
1880
|
+
component: i ? "mounted-report" : "declarative-report",
|
|
1881
1881
|
props: {
|
|
1882
1882
|
id: t.id,
|
|
1883
1883
|
kind: t.kind,
|
|
@@ -1887,7 +1887,9 @@ var ue = (e, t) => ({
|
|
|
1887
1887
|
error: n.state.error,
|
|
1888
1888
|
state: n.state.status,
|
|
1889
1889
|
summary: e.render.summary?.(r) ?? null,
|
|
1890
|
-
content: n.payload
|
|
1890
|
+
content: !i && n.payload !== void 0 && e.render.content ? o(e.render.content(r)) : [],
|
|
1891
|
+
mount: i ? e.render.mount : null,
|
|
1892
|
+
mountContext: i ? r : null,
|
|
1891
1893
|
...t.ui
|
|
1892
1894
|
},
|
|
1893
1895
|
meta: { declarative: !0 }
|
|
@@ -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-BNBNG2Aa.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 };
|