mlform 0.1.2 → 0.1.3
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 +166 -85
- package/dist/FieldStrategy-CW2h8YyB.js +2427 -0
- package/dist/{ReportStrategy-DY3GC_mJ.js → ReportStrategy-CxPzs4b2.js} +1 -1
- package/dist/{boolean-field-Cd3uhIPj.js → boolean-field-Dwz0ejWl.js} +2 -2
- package/dist/{category-field-D_Ms1x9u.js → category-field-DIgX--Px.js} +2 -2
- package/dist/{classifier-prediction-C5QzorTo.js → classifier-prediction-DgiEREf_.js} +2 -2
- package/dist/{custom-element-ttkHUa8w.js → custom-element-DFxkZ1wU.js} +0 -5
- package/dist/{date-field-Cg_ja679.js → date-field-91U2Xe46.js} +2 -2
- package/dist/{error-card-BwjPChwf.js → error-card-DHdkE18B.js} +2 -2
- package/dist/{field-wrapper-DqIQl76d.js → field-wrapper-CBmpN5T_.js} +3 -3
- package/dist/{ml-layout-Dx63KKf7.js → ml-layout-BJax9HVW.js} +3 -3
- package/dist/mlform/extensions.mjs +4 -4
- package/dist/mlform/strategies.mjs +9 -9
- package/dist/mlform.mjs +210 -202
- package/dist/{number-field-CC2DrVEb.js → number-field-Bcp45dJb.js} +31 -32
- package/dist/{property-jKFNMQpR.js → property-B2UZ3Oii.js} +0 -25
- package/dist/{range-field-Cr7LEtsJ.js → range-field-CD0kkCt0.js} +2 -2
- package/dist/{regressor-prediction-C18dHlfK.js → regressor-prediction-CPzZXlmA.js} +2 -2
- package/dist/src/core/domain/index.d.ts +2 -1
- package/dist/state-Ba1Gr1cr.js +7 -0
- package/dist/test/integration/lifecycle.integration.test.d.ts +1 -0
- package/dist/test/integration/registration.integration.test.d.ts +1 -0
- package/dist/test/integration/state.integration.test.d.ts +1 -0
- package/dist/test/integration/validation.integration.test.d.ts +1 -0
- package/dist/test/unit/Strategies.extensions.test.d.ts +1 -0
- package/dist/test/unit/Strategies.test.d.ts +1 -0
- package/dist/{text-field-DwP-Fa1w.js → text-field-CSBBr4gN.js} +2 -2
- package/package.json +59 -15
- package/dist/FieldStrategy-pPekBtH-.js +0 -2318
- package/dist/state-CLlTRyl1.js +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as a, b as r, o as e, a as t, n as i, D as o } from "./FieldStrategy-
|
|
1
|
+
import { s as a, b as r, o as e, a as t, n as i, D as o } from "./FieldStrategy-CW2h8YyB.js";
|
|
2
2
|
const l = a({
|
|
3
3
|
title: t().min(1).max(100).regex(/^\S.*\S$/),
|
|
4
4
|
description: e(t().min(1).max(500)),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldElement as n } from "./mlform/extensions.mjs";
|
|
2
|
-
import { x as u, a as d, n as f } from "./property-
|
|
3
|
-
import { t as h } from "./custom-element-
|
|
2
|
+
import { x as u, a as d, n as f } from "./property-B2UZ3Oii.js";
|
|
3
|
+
import { t as h } from "./custom-element-DFxkZ1wU.js";
|
|
4
4
|
var c = Object.defineProperty, m = Object.getOwnPropertyDescriptor, v = (r, e, t) => e in r ? c(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, p = (r, e, t, o) => {
|
|
5
5
|
for (var a = o > 1 ? void 0 : o ? m(e, t) : e, s = r.length - 1, i; s >= 0; s--)
|
|
6
6
|
(i = r[s]) && (a = (o ? i(e, t, a) : i(a)) || a);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldElement as p } from "./mlform/extensions.mjs";
|
|
2
|
-
import { x as d, a as h, n as c } from "./property-
|
|
3
|
-
import { t as v } from "./custom-element-
|
|
2
|
+
import { x as d, a as h, n as c } from "./property-B2UZ3Oii.js";
|
|
3
|
+
import { t as v } from "./custom-element-DFxkZ1wU.js";
|
|
4
4
|
var u = Object.defineProperty, m = Object.getOwnPropertyDescriptor, f = (e, t, r) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n = (e, t, r, l) => {
|
|
5
5
|
for (var a = l > 1 ? void 0 : l ? m(t, r) : t, s = e.length - 1, o; s >= 0; s--)
|
|
6
6
|
(o = e[s]) && (a = (l ? o(t, r, a) : o(a)) || a);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as d, x as p, a as b, n as c } from "./property-
|
|
2
|
-
import { t as h } from "./custom-element-
|
|
1
|
+
import { i as d, x as p, a as b, n as c } from "./property-B2UZ3Oii.js";
|
|
2
|
+
import { t as h } from "./custom-element-DFxkZ1wU.js";
|
|
3
3
|
var m = Object.defineProperty, v = Object.getOwnPropertyDescriptor, u = (r, t, e) => t in r ? m(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, n = (r, t, e, i) => {
|
|
4
4
|
for (var o = i > 1 ? void 0 : i ? v(t, e) : t, a = r.length - 1, s; a >= 0; a--)
|
|
5
5
|
(s = r[a]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldElement as p } from "./mlform/extensions.mjs";
|
|
2
|
-
import { x as d, a as D, n as m } from "./property-
|
|
3
|
-
import { t as c } from "./custom-element-
|
|
2
|
+
import { x as d, a as D, n as m } from "./property-B2UZ3Oii.js";
|
|
3
|
+
import { t as c } from "./custom-element-DFxkZ1wU.js";
|
|
4
4
|
var f = Object.defineProperty, v = Object.getOwnPropertyDescriptor, T = (t, e, a) => e in t ? f(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, u = (t, e, a, i) => {
|
|
5
5
|
for (var r = i > 1 ? void 0 : i ? v(e, a) : e, o = t.length - 1, s; o >= 0; o--)
|
|
6
6
|
(s = t[o]) && (r = (i ? s(e, a, r) : s(r)) || r);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as u, r as g, x as s, a as b, n as p } from "./property-
|
|
2
|
-
import { t as x } from "./custom-element-
|
|
1
|
+
import { i as u, r as g, x as s, a as b, n as p } from "./property-B2UZ3Oii.js";
|
|
2
|
+
import { t as x } from "./custom-element-DFxkZ1wU.js";
|
|
3
3
|
var f = Object.defineProperty, m = Object.getOwnPropertyDescriptor, h = (e, r, t) => r in e ? f(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, d = (e, r, t, a) => {
|
|
4
4
|
for (var i = a > 1 ? void 0 : a ? m(r, t) : r, n = e.length - 1, c; n >= 0; n--)
|
|
5
5
|
(c = e[n]) && (i = (a ? c(r, t, i) : c(i)) || i);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as b, x as h, a as m, n as p } from "./property-
|
|
2
|
-
import { r as l } from "./state-
|
|
3
|
-
import { t as u } from "./custom-element-
|
|
1
|
+
import { i as b, x as h, a as m, n as p } from "./property-B2UZ3Oii.js";
|
|
2
|
+
import { r as l } from "./state-Ba1Gr1cr.js";
|
|
3
|
+
import { t as u } from "./custom-element-DFxkZ1wU.js";
|
|
4
4
|
var d = Object.defineProperty, f = Object.getOwnPropertyDescriptor, v = (e, t, s) => t in e ? d(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, i = (e, t, s, a) => {
|
|
5
5
|
for (var o = a > 1 ? void 0 : a ? f(t, s) : t, n = e.length - 1, c; n >= 0; n--)
|
|
6
6
|
(c = e[n]) && (o = (a ? c(t, s, o) : c(o)) || o);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as m, B as u, x as n, a as b, n as h } from "./property-
|
|
2
|
-
import { r as f } from "./state-
|
|
3
|
-
import { t as p } from "./custom-element-
|
|
1
|
+
import { i as m, B as u, x as n, a as b, n as h } from "./property-B2UZ3Oii.js";
|
|
2
|
+
import { r as f } from "./state-Ba1Gr1cr.js";
|
|
3
|
+
import { t as p } from "./custom-element-DFxkZ1wU.js";
|
|
4
4
|
var d = Object.defineProperty, g = Object.getOwnPropertyDescriptor, v = (r, e, o) => e in r ? d(r, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[e] = o, c = (r, e, o, t) => {
|
|
5
5
|
for (var l = t > 1 ? void 0 : t ? g(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
6
6
|
(i = r[a]) && (l = (t ? i(e, o, l) : i(l)) || l);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as h } from "../FieldStrategy-
|
|
2
|
-
import { B as x, a as y, R as C } from "../ReportStrategy-
|
|
3
|
-
import { i as o, a as l } from "../property-
|
|
4
|
-
import { r as d } from "../state-
|
|
1
|
+
import { F as h } from "../FieldStrategy-CW2h8YyB.js";
|
|
2
|
+
import { B as x, a as y, R as C } from "../ReportStrategy-CxPzs4b2.js";
|
|
3
|
+
import { i as o, a as l } from "../property-B2UZ3Oii.js";
|
|
4
|
+
import { r as d } from "../state-Ba1Gr1cr.js";
|
|
5
5
|
var p = Object.defineProperty, c = (s, t, a, m) => {
|
|
6
6
|
for (var e = void 0, r = s.length - 1, i; r >= 0; r--)
|
|
7
7
|
(i = s[r]) && (e = i(t, a, e) || e);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as i, o as a,
|
|
1
|
+
import { s as i, o as a, f as o, b as E, e as r, a as u, n, i as d, h, t as M, F as l } from "../FieldStrategy-CW2h8YyB.js";
|
|
2
2
|
import { F as s, M as p } from "../ModelTypes-B9_veCKB.js";
|
|
3
|
-
import { B as m, a as S, R as A } from "../ReportStrategy-
|
|
3
|
+
import { B as m, a as S, R as A } from "../ReportStrategy-CxPzs4b2.js";
|
|
4
4
|
const T = i({
|
|
5
5
|
...m.shape,
|
|
6
6
|
type: o(s.BOOLEAN),
|
|
@@ -140,7 +140,7 @@ class j extends l {
|
|
|
140
140
|
super(
|
|
141
141
|
s.BOOLEAN,
|
|
142
142
|
T,
|
|
143
|
-
() => import("../boolean-field-
|
|
143
|
+
() => import("../boolean-field-Dwz0ejWl.js")
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
146
|
buildControl(t) {
|
|
@@ -157,7 +157,7 @@ class $ extends l {
|
|
|
157
157
|
super(
|
|
158
158
|
s.CATEGORY,
|
|
159
159
|
b,
|
|
160
|
-
() => import("../category-field-
|
|
160
|
+
() => import("../category-field-DIgX--Px.js")
|
|
161
161
|
);
|
|
162
162
|
}
|
|
163
163
|
buildControl(t) {
|
|
@@ -175,7 +175,7 @@ class z extends A {
|
|
|
175
175
|
super(
|
|
176
176
|
p.CLASSIFIER,
|
|
177
177
|
y,
|
|
178
|
-
() => import("../classifier-prediction-
|
|
178
|
+
() => import("../classifier-prediction-DgiEREf_.js")
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
181
|
buildControl(t) {
|
|
@@ -195,7 +195,7 @@ class H extends l {
|
|
|
195
195
|
super(
|
|
196
196
|
s.DATE,
|
|
197
197
|
I,
|
|
198
|
-
() => import("../date-field-
|
|
198
|
+
() => import("../date-field-91U2Xe46.js")
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
201
|
buildControl(t) {
|
|
@@ -213,7 +213,7 @@ class H extends l {
|
|
|
213
213
|
class J extends l {
|
|
214
214
|
constructor() {
|
|
215
215
|
super(s.NUMBER, V, async () => {
|
|
216
|
-
await Promise.resolve(), import("../range-field-
|
|
216
|
+
await Promise.resolve(), import("../range-field-CD0kkCt0.js"), import("../number-field-Bcp45dJb.js");
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
buildControl(t) {
|
|
@@ -245,7 +245,7 @@ class K extends A {
|
|
|
245
245
|
super(
|
|
246
246
|
p.REGRESSOR,
|
|
247
247
|
B,
|
|
248
|
-
() => import("../regressor-prediction-
|
|
248
|
+
() => import("../regressor-prediction-CPzZXlmA.js")
|
|
249
249
|
);
|
|
250
250
|
}
|
|
251
251
|
buildControl(t) {
|
|
@@ -265,7 +265,7 @@ class Q extends l {
|
|
|
265
265
|
super(
|
|
266
266
|
s.TEXT,
|
|
267
267
|
w,
|
|
268
|
-
() => import("../text-field-
|
|
268
|
+
() => import("../text-field-CSBBr4gN.js")
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
271
|
buildControl(t) {
|