@code0-tech/pictor 0.0.0-mvp.3 → 0.0.0-mvp.5
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/dist/_virtual/compiler-runtime.js +5 -0
- package/dist/_virtual/compiler-runtime2.js +4 -0
- package/dist/_virtual/react-compiler-runtime.development.js +4 -0
- package/dist/_virtual/react-compiler-runtime.production.js +4 -0
- package/dist/assets/components/d-flow/DFlow.style.css +1 -0
- package/dist/assets/{DFlow.css → node_modules/@xyflow/react/dist/style.css} +1 -1
- package/dist/components/avatar/Avatar.js +2 -2
- package/dist/components/badge/Badge.js +2 -2
- package/dist/components/breadcrumb/Breadcrumb.js +17 -16
- package/dist/components/button/Button.js +6 -5
- package/dist/components/button-group/ButtonGroup.js +6 -5
- package/dist/components/card/Card.js +2 -2
- package/dist/components/card/CardSection.js +1 -1
- package/dist/components/col/Col.js +9 -8
- package/dist/components/command/Command.js +19 -18
- package/dist/components/container/Container.js +12 -11
- package/dist/components/d-flow/DFlow.edges.hook.js +9 -10
- package/dist/components/d-flow/DFlow.js +6 -4
- package/dist/components/d-flow/DFlow.nodes.hook.js +18 -19
- package/dist/components/d-flow/control/DFlowControl.js +1 -1
- package/dist/components/d-flow/data-type/DFlowDataType.service.js +89 -5
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +18 -4
- package/dist/components/d-flow/data-type/index.js +1 -1
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +220 -4
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +227 -4
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeParentRule.js +1 -1
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +241 -5
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +8 -6
- package/dist/components/d-flow/edge/DFlowEdge.js +1 -1
- package/dist/components/d-flow/folder/DFlowFolder.js +16 -15
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +1 -1
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +19 -20
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +51 -51
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +1 -1
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +1 -1
- package/dist/components/d-flow/index.js +8 -8
- package/dist/components/d-flow/input/DFlowInputDataType.js +201 -201
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +6 -5
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +61 -62
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +1 -1
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuFooter.js +1 -1
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuSearchBar.js +1 -1
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +9 -8
- package/dist/components/d-flow/tab/DFlowTabs.js +1 -1
- package/dist/components/d-flow/validation/DFlowValidation.js +15 -14
- package/dist/components/d-fullscreen/DFullScreen.d.ts +1 -2
- package/dist/components/d-fullscreen/DFullScreen.js +15 -14
- package/dist/components/d-layout/DLayout.js +13 -12
- package/dist/components/d-namespace/index.js +6 -6
- package/dist/components/d-organization/index.js +5 -5
- package/dist/components/d-resizable/DResizable.js +17 -16
- package/dist/components/d-user/index.js +4 -4
- package/dist/components/dialog/Dialog.js +18 -17
- package/dist/components/file-tabs/FileTabs.js +41 -40
- package/dist/components/flex/Flex.js +2 -2
- package/dist/components/form/CheckboxInput.js +2 -2
- package/dist/components/form/Input.js +1 -1
- package/dist/components/form/InputDescription.js +1 -1
- package/dist/components/form/InputLabel.js +1 -1
- package/dist/components/form/InputMessage.js +1 -1
- package/dist/components/form/InputSuggestion.js +1 -1
- package/dist/components/form/PinInput.js +2 -2
- package/dist/components/form/RadioGroup.js +2 -2
- package/dist/components/form/RadioInput.js +2 -2
- package/dist/components/menu/Menu.js +2 -2
- package/dist/components/quote/Quote.js +4 -3
- package/dist/components/row/Row.js +10 -9
- package/dist/components/scroll-area/ScrollArea.js +18 -17
- package/dist/components/segmented-control/SegmentedControl.js +12 -11
- package/dist/components/text/Text.js +2 -2
- package/dist/components/tooltip/Tooltip.js +10 -9
- package/dist/index.js +219 -218
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
- package/dist/node_modules/react/compiler-runtime.js +10 -0
- package/dist/utils/contextStore.js +1 -1
- package/dist/utils/generics.js +88 -89
- package/package.json +4 -6
- package/dist/DFlowDataType.service-Dz8pQUeO.js +0 -793
- package/dist/compiler-runtime-BNHg76kC.js +0 -36
- /package/dist/assets/{Avatar.css → components/avatar/Avatar.style.css} +0 -0
- /package/dist/assets/{Badge.css → components/badge/Badge.style.css} +0 -0
- /package/dist/assets/{Breadcrumb.css → components/breadcrumb/Breadcrumb.style.css} +0 -0
- /package/dist/assets/{Button.css → components/button/Button.style.css} +0 -0
- /package/dist/assets/{ButtonGroup.css → components/button-group/ButtonGroup.style.css} +0 -0
- /package/dist/assets/{Card.css → components/card/Card.style.css} +0 -0
- /package/dist/assets/{Col.css → components/col/Col.style.css} +0 -0
- /package/dist/assets/{Command.css → components/command/Command.style.css} +0 -0
- /package/dist/assets/{Container.css → components/container/Container.style.css} +0 -0
- /package/dist/assets/{DFlowFolder.css → components/d-flow/folder/DFlowFolder.style.css} +0 -0
- /package/dist/assets/{DFlowFunctionDefaultCard.css → components/d-flow/function/DFlowFunctionDefaultCard.style.css} +0 -0
- /package/dist/assets/{DFlowInputDataType.css → components/d-flow/input/DFlowInputDataType.style.css} +0 -0
- /package/dist/assets/{DFlowMiniMap.css → components/d-flow/minimap/DFlowMiniMap.style.css} +0 -0
- /package/dist/assets/{DFlowSuggestionSearchInput.css → components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css} +0 -0
- /package/dist/assets/{DFlowValidation.css → components/d-flow/validation/DFlowValidation.style.css} +0 -0
- /package/dist/assets/{DFullScreen.css → components/d-fullscreen/DFullScreen.style.css} +0 -0
- /package/dist/assets/{DLayout.css → components/d-layout/DLayout.style.css} +0 -0
- /package/dist/assets/{DResizable.css → components/d-resizable/DResizable.style.css} +0 -0
- /package/dist/assets/{Dialog.css → components/dialog/Dialog.style.css} +0 -0
- /package/dist/assets/{FileTabs.css → components/file-tabs/FileTabs.style.css} +0 -0
- /package/dist/assets/{Flex.css → components/flex/Flex.style.css} +0 -0
- /package/dist/assets/{Input.css → components/form/Input.style.css} +0 -0
- /package/dist/assets/{Menu.css → components/menu/Menu.style.css} +0 -0
- /package/dist/assets/{Quote.css → components/quote/Quote.style.css} +0 -0
- /package/dist/assets/{Row.css → components/row/Row.style.css} +0 -0
- /package/dist/assets/{ScrollArea.css → components/scroll-area/ScrollArea.style.css} +0 -0
- /package/dist/assets/{SegmentedControl.css → components/segmented-control/SegmentedControl.style.css} +0 -0
- /package/dist/assets/{Text.css → components/text/Text.style.css} +0 -0
- /package/dist/assets/{Tooltip.css → components/tooltip/Tooltip.style.css} +0 -0
|
@@ -1,7 +1,91 @@
|
|
|
1
|
-
import "../../../utils/reactiveArrayService.js";
|
|
2
|
-
import "../../../utils/generics.js";
|
|
3
|
-
import "
|
|
4
|
-
|
|
1
|
+
import { ReactiveArrayService as s } from "../../../utils/reactiveArrayService.js";
|
|
2
|
+
import { resolveType as y } from "../../../utils/generics.js";
|
|
3
|
+
import { useValidateValue as f } from "./DFlowDataType.validation.value.js";
|
|
4
|
+
class l extends s {
|
|
5
|
+
//TODO: remove string because of sagittarius types update
|
|
6
|
+
getDataType(e) {
|
|
7
|
+
if (!e || e.genericKey) return;
|
|
8
|
+
const i = e.dataType?.identifier ?? e.genericType?.dataType?.identifier, t = e.dataType?.id ?? e.genericType?.dataType?.id;
|
|
9
|
+
return this.values().find((r) => r.identifier == i || r.id == t);
|
|
10
|
+
}
|
|
11
|
+
getDataTypeFromValue(e, i) {
|
|
12
|
+
if (!e) return;
|
|
13
|
+
if (e.__typename == "LiteralValue") {
|
|
14
|
+
if (Array.isArray(e.value) && Array.from(e.value).length > 0) return this.getDataType({
|
|
15
|
+
dataType: {
|
|
16
|
+
identifier: "ARRAY"
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
if (typeof e.value == "string") return this.getDataType({
|
|
20
|
+
dataType: {
|
|
21
|
+
identifier: "TEXT"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
if (typeof e.value == "number") return this.getDataType({
|
|
25
|
+
dataType: {
|
|
26
|
+
identifier: "NUMBER"
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
if (typeof e.value == "boolean") return this.getDataType({
|
|
30
|
+
dataType: {
|
|
31
|
+
identifier: "BOOLEAN"
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
const t = this.values().filter((r) => r.identifier === "OBJECT" || e.__typename === "NodeFunction" && (r.variant != "NODE" || !i) ? !1 : f(e, r, i));
|
|
36
|
+
return t[t.length - 1];
|
|
37
|
+
}
|
|
38
|
+
getTypeFromValue(e, i) {
|
|
39
|
+
if (!e) return;
|
|
40
|
+
if (e.__typename === "ReferenceValue") return e.dataTypeIdentifier;
|
|
41
|
+
const t = this.getDataTypeFromValue(e, i);
|
|
42
|
+
if ((t?.genericKeys?.length ?? 0) <= 0 || !t?.genericKeys) return {
|
|
43
|
+
dataType: {
|
|
44
|
+
id: t?.id
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const r = t.genericKeys.map((a) => {
|
|
48
|
+
const n = t.rules?.nodes?.find((d) => "dataTypeIdentifier" in (d?.config ?? {}) && d?.config?.dataTypeIdentifier?.genericKey == a || "inputTypes" in (d?.config ?? {}) && d.config.inputTypes?.some((p) => p.dataTypeIdentifier?.genericKey == a));
|
|
49
|
+
return n && n.variant == "CONTAINS_TYPE" && "value" in e && e?.value && t.variant === "ARRAY" ? {
|
|
50
|
+
sourceDataTypeIdentifiers: [this.getTypeFromValue({
|
|
51
|
+
__typename: "LiteralValue",
|
|
52
|
+
value: e.value[0]
|
|
53
|
+
}, i)],
|
|
54
|
+
target: a
|
|
55
|
+
} : n && n.variant == "CONTAINS_KEY" && "value" in e && e?.value && t.variant === "OBJECT" ? {
|
|
56
|
+
sourceDataTypeIdentifiers: [this.getTypeFromValue({
|
|
57
|
+
__typename: "LiteralValue",
|
|
58
|
+
/* @ts-ignore */
|
|
59
|
+
value: e.value[n.config?.key ?? ""]
|
|
60
|
+
}, i)],
|
|
61
|
+
target: a
|
|
62
|
+
} : n && n.variant == "RETURN_TYPE" && t.variant === "NODE" ? {
|
|
63
|
+
sourceDataTypeIdentifiers: [this.getTypeFromValue(e, i)],
|
|
64
|
+
target: a
|
|
65
|
+
} : n && n.variant == "INPUT_TYPE" && t.variant === "NODE" ? {
|
|
66
|
+
sourceDataTypeIdentifiers: [{
|
|
67
|
+
genericKey: a
|
|
68
|
+
}],
|
|
69
|
+
target: a
|
|
70
|
+
} : null;
|
|
71
|
+
}).filter((a) => !!a), T = r.length > 0 ? {
|
|
72
|
+
genericType: {
|
|
73
|
+
dataType: {
|
|
74
|
+
id: t.id
|
|
75
|
+
},
|
|
76
|
+
genericMappers: r
|
|
77
|
+
}
|
|
78
|
+
} : {
|
|
79
|
+
dataType: {
|
|
80
|
+
id: t.id
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
return y(T, this);
|
|
84
|
+
}
|
|
85
|
+
hasDataTypes(e) {
|
|
86
|
+
return e.every((i) => this.values().find((t) => t.id === (i.genericType?.dataType?.id ?? i.dataType?.id)));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
5
89
|
export {
|
|
6
|
-
|
|
90
|
+
l as DFlowDataTypeReactiveService
|
|
7
91
|
};
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import "../../../compiler-runtime
|
|
2
|
-
import {
|
|
3
|
-
import "../../../utils/contextStore.js";
|
|
1
|
+
import { c } from "../../../_virtual/compiler-runtime.js";
|
|
2
|
+
import { RuleMap as m } from "./rules/DFlowDataTypeRules.js";
|
|
3
|
+
import { useService as f } from "../../../utils/contextStore.js";
|
|
4
|
+
import { DFlowDataTypeReactiveService as u } from "./DFlowDataType.service.js";
|
|
5
|
+
const g = (e, i, n, a) => {
|
|
6
|
+
const t = c.c(6), s = f(u);
|
|
7
|
+
let o;
|
|
8
|
+
if (t[0] !== i.rules?.nodes || t[1] !== s || t[2] !== n || t[3] !== a || t[4] !== e) {
|
|
9
|
+
const p = new Map(a?.map(v));
|
|
10
|
+
o = i.rules?.nodes?.every((r) => !r || !r.variant || !r.config ? !1 : m.get(r.variant) ? m.get(r.variant)?.validate(e, r.config, p, s, n) : !0) ?? !0, t[0] = i.rules?.nodes, t[1] = s, t[2] = n, t[3] = a, t[4] = e, t[5] = o;
|
|
11
|
+
} else
|
|
12
|
+
o = t[5];
|
|
13
|
+
return o;
|
|
14
|
+
};
|
|
15
|
+
function v(e) {
|
|
16
|
+
return [e.target, e];
|
|
17
|
+
}
|
|
4
18
|
export {
|
|
5
|
-
|
|
19
|
+
g as useValidateValue
|
|
6
20
|
};
|
|
@@ -1,6 +1,222 @@
|
|
|
1
|
-
import "./DFlowDataTypeRule.js";
|
|
2
|
-
import "
|
|
3
|
-
|
|
1
|
+
import { genericMapping as T, staticImplements as D } from "./DFlowDataTypeRule.js";
|
|
2
|
+
import { useValidateValue as y } from "../DFlowDataType.validation.value.js";
|
|
3
|
+
function A(r, e, t, n) {
|
|
4
|
+
var i = k(), o = e(function(s) {
|
|
5
|
+
i.initializeInstanceElements(s, a.elements);
|
|
6
|
+
}, t), a = i.decorateClass(I(o.d.map(P)), r);
|
|
7
|
+
return i.initializeClassElements(o.F, a.elements), i.runClassFinishers(o.F, a.finishers);
|
|
8
|
+
}
|
|
9
|
+
function k() {
|
|
10
|
+
k = function() {
|
|
11
|
+
return r;
|
|
12
|
+
};
|
|
13
|
+
var r = { elementsDefinitionOrder: [["method"], ["field"]], initializeInstanceElements: function(e, t) {
|
|
14
|
+
["method", "field"].forEach(function(n) {
|
|
15
|
+
t.forEach(function(i) {
|
|
16
|
+
i.kind === n && i.placement === "own" && this.defineClassElement(e, i);
|
|
17
|
+
}, this);
|
|
18
|
+
}, this);
|
|
19
|
+
}, initializeClassElements: function(e, t) {
|
|
20
|
+
var n = e.prototype;
|
|
21
|
+
["method", "field"].forEach(function(i) {
|
|
22
|
+
t.forEach(function(o) {
|
|
23
|
+
var a = o.placement;
|
|
24
|
+
if (o.kind === i && (a === "static" || a === "prototype")) {
|
|
25
|
+
var s = a === "static" ? e : n;
|
|
26
|
+
this.defineClassElement(s, o);
|
|
27
|
+
}
|
|
28
|
+
}, this);
|
|
29
|
+
}, this);
|
|
30
|
+
}, defineClassElement: function(e, t) {
|
|
31
|
+
var n = t.descriptor;
|
|
32
|
+
if (t.kind === "field") {
|
|
33
|
+
var i = t.initializer;
|
|
34
|
+
n = { enumerable: n.enumerable, writable: n.writable, configurable: n.configurable, value: i === void 0 ? void 0 : i.call(e) };
|
|
35
|
+
}
|
|
36
|
+
Object.defineProperty(e, t.key, n);
|
|
37
|
+
}, decorateClass: function(e, t) {
|
|
38
|
+
var n = [], i = [], o = { static: [], prototype: [], own: [] };
|
|
39
|
+
if (e.forEach(function(s) {
|
|
40
|
+
this.addElementPlacement(s, o);
|
|
41
|
+
}, this), e.forEach(function(s) {
|
|
42
|
+
if (!u(s)) return n.push(s);
|
|
43
|
+
var l = this.decorateElement(s, o);
|
|
44
|
+
n.push(l.element), n.push.apply(n, l.extras), i.push.apply(i, l.finishers);
|
|
45
|
+
}, this), !t) return { elements: n, finishers: i };
|
|
46
|
+
var a = this.decorateConstructor(n, t);
|
|
47
|
+
return i.push.apply(i, a.finishers), a.finishers = i, a;
|
|
48
|
+
}, addElementPlacement: function(e, t, n) {
|
|
49
|
+
var i = t[e.placement];
|
|
50
|
+
if (!n && i.indexOf(e.key) !== -1) throw new TypeError("Duplicated element (" + e.key + ")");
|
|
51
|
+
i.push(e.key);
|
|
52
|
+
}, decorateElement: function(e, t) {
|
|
53
|
+
for (var n = [], i = [], o = e.decorators, a = o.length - 1; a >= 0; a--) {
|
|
54
|
+
var s = t[e.placement];
|
|
55
|
+
s.splice(s.indexOf(e.key), 1);
|
|
56
|
+
var l = this.fromElementDescriptor(e), c = this.toElementFinisherExtras((0, o[a])(l) || l);
|
|
57
|
+
e = c.element, this.addElementPlacement(e, t), c.finisher && i.push(c.finisher);
|
|
58
|
+
var p = c.extras;
|
|
59
|
+
if (p) {
|
|
60
|
+
for (var d = 0; d < p.length; d++) this.addElementPlacement(p[d], t);
|
|
61
|
+
n.push.apply(n, p);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return { element: e, finishers: i, extras: n };
|
|
65
|
+
}, decorateConstructor: function(e, t) {
|
|
66
|
+
for (var n = [], i = t.length - 1; i >= 0; i--) {
|
|
67
|
+
var o = this.fromClassDescriptor(e), a = this.toClassDescriptor((0, t[i])(o) || o);
|
|
68
|
+
if (a.finisher !== void 0 && n.push(a.finisher), a.elements !== void 0) {
|
|
69
|
+
e = a.elements;
|
|
70
|
+
for (var s = 0; s < e.length - 1; s++) for (var l = s + 1; l < e.length; l++) if (e[s].key === e[l].key && e[s].placement === e[l].placement) throw new TypeError("Duplicated element (" + e[s].key + ")");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return { elements: e, finishers: n };
|
|
74
|
+
}, fromElementDescriptor: function(e) {
|
|
75
|
+
var t = { kind: e.kind, key: e.key, placement: e.placement, descriptor: e.descriptor };
|
|
76
|
+
return Object.defineProperty(t, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), e.kind === "field" && (t.initializer = e.initializer), t;
|
|
77
|
+
}, toElementDescriptors: function(e) {
|
|
78
|
+
if (e !== void 0) return x(e).map(function(t) {
|
|
79
|
+
var n = this.toElementDescriptor(t);
|
|
80
|
+
return this.disallowProperty(t, "finisher", "An element descriptor"), this.disallowProperty(t, "extras", "An element descriptor"), n;
|
|
81
|
+
}, this);
|
|
82
|
+
}, toElementDescriptor: function(e) {
|
|
83
|
+
var t = e.kind + "";
|
|
84
|
+
if (t !== "method" && t !== "field") throw new TypeError(`An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "` + t + '"');
|
|
85
|
+
var n = w(e.key), i = e.placement + "";
|
|
86
|
+
if (i !== "static" && i !== "prototype" && i !== "own") throw new TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "` + i + '"');
|
|
87
|
+
var o = e.descriptor;
|
|
88
|
+
this.disallowProperty(e, "elements", "An element descriptor");
|
|
89
|
+
var a = { kind: t, key: n, placement: i, descriptor: Object.assign({}, o) };
|
|
90
|
+
return t !== "field" ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(o, "get", "The property descriptor of a field descriptor"), this.disallowProperty(o, "set", "The property descriptor of a field descriptor"), this.disallowProperty(o, "value", "The property descriptor of a field descriptor"), a.initializer = e.initializer), a;
|
|
91
|
+
}, toElementFinisherExtras: function(e) {
|
|
92
|
+
return { element: this.toElementDescriptor(e), finisher: v(e, "finisher"), extras: this.toElementDescriptors(e.extras) };
|
|
93
|
+
}, fromClassDescriptor: function(e) {
|
|
94
|
+
var t = { kind: "class", elements: e.map(this.fromElementDescriptor, this) };
|
|
95
|
+
return Object.defineProperty(t, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), t;
|
|
96
|
+
}, toClassDescriptor: function(e) {
|
|
97
|
+
var t = e.kind + "";
|
|
98
|
+
if (t !== "class") throw new TypeError(`A class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "` + t + '"');
|
|
99
|
+
this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor");
|
|
100
|
+
var n = v(e, "finisher");
|
|
101
|
+
return { elements: this.toElementDescriptors(e.elements), finisher: n };
|
|
102
|
+
}, runClassFinishers: function(e, t) {
|
|
103
|
+
for (var n = 0; n < t.length; n++) {
|
|
104
|
+
var i = (0, t[n])(e);
|
|
105
|
+
if (i !== void 0) {
|
|
106
|
+
if (typeof i != "function") throw new TypeError("Finishers must return a constructor.");
|
|
107
|
+
e = i;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return e;
|
|
111
|
+
}, disallowProperty: function(e, t, n) {
|
|
112
|
+
if (e[t] !== void 0) throw new TypeError(n + " can't have a ." + t + " property.");
|
|
113
|
+
} };
|
|
114
|
+
return r;
|
|
115
|
+
}
|
|
116
|
+
function P(r) {
|
|
117
|
+
var e, t = w(r.key);
|
|
118
|
+
r.kind === "method" ? e = { value: r.value, writable: !0, configurable: !0, enumerable: !1 } : r.kind === "get" ? e = { get: r.value, configurable: !0, enumerable: !1 } : r.kind === "set" ? e = { set: r.value, configurable: !0, enumerable: !1 } : r.kind === "field" && (e = { configurable: !0, writable: !0, enumerable: !0 });
|
|
119
|
+
var n = { kind: r.kind === "field" ? "field" : "method", key: t, placement: r.static ? "static" : r.kind === "field" ? "own" : "prototype", descriptor: e };
|
|
120
|
+
return r.decorators && (n.decorators = r.decorators), r.kind === "field" && (n.initializer = r.value), n;
|
|
121
|
+
}
|
|
122
|
+
function C(r, e) {
|
|
123
|
+
r.descriptor.get !== void 0 ? e.descriptor.get = r.descriptor.get : e.descriptor.set = r.descriptor.set;
|
|
124
|
+
}
|
|
125
|
+
function I(r) {
|
|
126
|
+
for (var e = [], t = function(a) {
|
|
127
|
+
return a.kind === "method" && a.key === o.key && a.placement === o.placement;
|
|
128
|
+
}, n = 0; n < r.length; n++) {
|
|
129
|
+
var i, o = r[n];
|
|
130
|
+
if (o.kind === "method" && (i = e.find(t)))
|
|
131
|
+
if (h(o.descriptor) || h(i.descriptor)) {
|
|
132
|
+
if (u(o) || u(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated.");
|
|
133
|
+
i.descriptor = o.descriptor;
|
|
134
|
+
} else {
|
|
135
|
+
if (u(o)) {
|
|
136
|
+
if (u(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ").");
|
|
137
|
+
i.decorators = o.decorators;
|
|
138
|
+
}
|
|
139
|
+
C(o, i);
|
|
140
|
+
}
|
|
141
|
+
else e.push(o);
|
|
142
|
+
}
|
|
143
|
+
return e;
|
|
144
|
+
}
|
|
145
|
+
function u(r) {
|
|
146
|
+
return r.decorators && r.decorators.length;
|
|
147
|
+
}
|
|
148
|
+
function h(r) {
|
|
149
|
+
return r !== void 0 && !(r.value === void 0 && r.writable === void 0);
|
|
150
|
+
}
|
|
151
|
+
function v(r, e) {
|
|
152
|
+
var t = r[e];
|
|
153
|
+
if (t !== void 0 && typeof t != "function") throw new TypeError("Expected '" + e + "' to be a function");
|
|
154
|
+
return t;
|
|
155
|
+
}
|
|
156
|
+
function w(r) {
|
|
157
|
+
var e = _(r, "string");
|
|
158
|
+
return typeof e == "symbol" ? e : e + "";
|
|
159
|
+
}
|
|
160
|
+
function _(r, e) {
|
|
161
|
+
if (typeof r != "object" || !r) return r;
|
|
162
|
+
var t = r[Symbol.toPrimitive];
|
|
163
|
+
if (t !== void 0) {
|
|
164
|
+
var n = t.call(r, e);
|
|
165
|
+
if (typeof n != "object") return n;
|
|
166
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
167
|
+
}
|
|
168
|
+
return (e === "string" ? String : Number)(r);
|
|
169
|
+
}
|
|
170
|
+
function x(r) {
|
|
171
|
+
return O(r) || F(r) || z(r) || S();
|
|
172
|
+
}
|
|
173
|
+
function S() {
|
|
174
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
175
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
176
|
+
}
|
|
177
|
+
function z(r, e) {
|
|
178
|
+
if (r) {
|
|
179
|
+
if (typeof r == "string") return b(r, e);
|
|
180
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
181
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? b(r, e) : void 0;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function b(r, e) {
|
|
185
|
+
(e == null || e > r.length) && (e = r.length);
|
|
186
|
+
for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t];
|
|
187
|
+
return n;
|
|
188
|
+
}
|
|
189
|
+
function F(r) {
|
|
190
|
+
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
191
|
+
}
|
|
192
|
+
function O(r) {
|
|
193
|
+
if (Array.isArray(r)) return r;
|
|
194
|
+
}
|
|
195
|
+
let R = A([D()], function(r) {
|
|
196
|
+
class e {
|
|
197
|
+
constructor() {
|
|
198
|
+
r(this);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
F: e,
|
|
203
|
+
d: [{
|
|
204
|
+
kind: "method",
|
|
205
|
+
static: !0,
|
|
206
|
+
key: "validate",
|
|
207
|
+
value: function(n, i, o, a, s) {
|
|
208
|
+
const l = o?.get(i?.dataTypeIdentifier?.genericKey), c = o?.get(i?.dataTypeIdentifier?.genericKey)?.sourceDataTypeIdentifiers, p = o?.get(i?.dataTypeIdentifier?.genericKey)?.genericCombinationStrategies;
|
|
209
|
+
if ((i?.key ?? "") in n && i?.dataTypeIdentifier?.genericKey && !l && !a?.getDataType(i.dataTypeIdentifier)) return !0;
|
|
210
|
+
if (!(a?.getDataType(i.dataTypeIdentifier) || l) || l && !a?.hasDataTypes(c) || l && (p?.length ?? 0) + 1 != c.length) return !1;
|
|
211
|
+
if (i?.dataTypeIdentifier?.genericKey && l && c) {
|
|
212
|
+
const d = c.map((f) => y(n.value[i?.key ?? ""], a?.getDataType(f), s, f.genericType.genericMappers)), E = d.length > 1 ? d.reduce((f, m, g) => p && p[g - 1].type == "OR" ? f || m : f && m) : d[0];
|
|
213
|
+
return (i?.key ?? "") in n && E;
|
|
214
|
+
}
|
|
215
|
+
return i?.dataTypeIdentifier?.dataType ? (i?.key ?? "") in n && y(n.value[i?.key ?? ""], a?.getDataType(i.dataTypeIdentifier)) : (i?.key ?? "") in n && y(n.value[i?.key ?? ""], a?.getDataType(i.dataTypeIdentifier), s, T(i?.dataTypeIdentifier?.genericType?.genericMappers, o));
|
|
216
|
+
}
|
|
217
|
+
}]
|
|
218
|
+
};
|
|
219
|
+
});
|
|
4
220
|
export {
|
|
5
|
-
|
|
221
|
+
R as DFlowDataTypeContainsKeyRule
|
|
6
222
|
};
|
|
@@ -1,6 +1,229 @@
|
|
|
1
|
-
import "./DFlowDataTypeRule.js";
|
|
2
|
-
import "
|
|
3
|
-
|
|
1
|
+
import { genericMapping as E, staticImplements as T } from "./DFlowDataTypeRule.js";
|
|
2
|
+
import { useValidateValue as y } from "../DFlowDataType.validation.value.js";
|
|
3
|
+
function D(r, e, t, n) {
|
|
4
|
+
var i = w(), o = e(function(s) {
|
|
5
|
+
i.initializeInstanceElements(s, a.elements);
|
|
6
|
+
}, t), a = i.decorateClass(C(o.d.map(A)), r);
|
|
7
|
+
return i.initializeClassElements(o.F, a.elements), i.runClassFinishers(o.F, a.finishers);
|
|
8
|
+
}
|
|
9
|
+
function w() {
|
|
10
|
+
w = function() {
|
|
11
|
+
return r;
|
|
12
|
+
};
|
|
13
|
+
var r = { elementsDefinitionOrder: [["method"], ["field"]], initializeInstanceElements: function(e, t) {
|
|
14
|
+
["method", "field"].forEach(function(n) {
|
|
15
|
+
t.forEach(function(i) {
|
|
16
|
+
i.kind === n && i.placement === "own" && this.defineClassElement(e, i);
|
|
17
|
+
}, this);
|
|
18
|
+
}, this);
|
|
19
|
+
}, initializeClassElements: function(e, t) {
|
|
20
|
+
var n = e.prototype;
|
|
21
|
+
["method", "field"].forEach(function(i) {
|
|
22
|
+
t.forEach(function(o) {
|
|
23
|
+
var a = o.placement;
|
|
24
|
+
if (o.kind === i && (a === "static" || a === "prototype")) {
|
|
25
|
+
var s = a === "static" ? e : n;
|
|
26
|
+
this.defineClassElement(s, o);
|
|
27
|
+
}
|
|
28
|
+
}, this);
|
|
29
|
+
}, this);
|
|
30
|
+
}, defineClassElement: function(e, t) {
|
|
31
|
+
var n = t.descriptor;
|
|
32
|
+
if (t.kind === "field") {
|
|
33
|
+
var i = t.initializer;
|
|
34
|
+
n = { enumerable: n.enumerable, writable: n.writable, configurable: n.configurable, value: i === void 0 ? void 0 : i.call(e) };
|
|
35
|
+
}
|
|
36
|
+
Object.defineProperty(e, t.key, n);
|
|
37
|
+
}, decorateClass: function(e, t) {
|
|
38
|
+
var n = [], i = [], o = { static: [], prototype: [], own: [] };
|
|
39
|
+
if (e.forEach(function(s) {
|
|
40
|
+
this.addElementPlacement(s, o);
|
|
41
|
+
}, this), e.forEach(function(s) {
|
|
42
|
+
if (!m(s)) return n.push(s);
|
|
43
|
+
var l = this.decorateElement(s, o);
|
|
44
|
+
n.push(l.element), n.push.apply(n, l.extras), i.push.apply(i, l.finishers);
|
|
45
|
+
}, this), !t) return { elements: n, finishers: i };
|
|
46
|
+
var a = this.decorateConstructor(n, t);
|
|
47
|
+
return i.push.apply(i, a.finishers), a.finishers = i, a;
|
|
48
|
+
}, addElementPlacement: function(e, t, n) {
|
|
49
|
+
var i = t[e.placement];
|
|
50
|
+
if (!n && i.indexOf(e.key) !== -1) throw new TypeError("Duplicated element (" + e.key + ")");
|
|
51
|
+
i.push(e.key);
|
|
52
|
+
}, decorateElement: function(e, t) {
|
|
53
|
+
for (var n = [], i = [], o = e.decorators, a = o.length - 1; a >= 0; a--) {
|
|
54
|
+
var s = t[e.placement];
|
|
55
|
+
s.splice(s.indexOf(e.key), 1);
|
|
56
|
+
var l = this.fromElementDescriptor(e), p = this.toElementFinisherExtras((0, o[a])(l) || l);
|
|
57
|
+
e = p.element, this.addElementPlacement(e, t), p.finisher && i.push(p.finisher);
|
|
58
|
+
var d = p.extras;
|
|
59
|
+
if (d) {
|
|
60
|
+
for (var c = 0; c < d.length; c++) this.addElementPlacement(d[c], t);
|
|
61
|
+
n.push.apply(n, d);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return { element: e, finishers: i, extras: n };
|
|
65
|
+
}, decorateConstructor: function(e, t) {
|
|
66
|
+
for (var n = [], i = t.length - 1; i >= 0; i--) {
|
|
67
|
+
var o = this.fromClassDescriptor(e), a = this.toClassDescriptor((0, t[i])(o) || o);
|
|
68
|
+
if (a.finisher !== void 0 && n.push(a.finisher), a.elements !== void 0) {
|
|
69
|
+
e = a.elements;
|
|
70
|
+
for (var s = 0; s < e.length - 1; s++) for (var l = s + 1; l < e.length; l++) if (e[s].key === e[l].key && e[s].placement === e[l].placement) throw new TypeError("Duplicated element (" + e[s].key + ")");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return { elements: e, finishers: n };
|
|
74
|
+
}, fromElementDescriptor: function(e) {
|
|
75
|
+
var t = { kind: e.kind, key: e.key, placement: e.placement, descriptor: e.descriptor };
|
|
76
|
+
return Object.defineProperty(t, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), e.kind === "field" && (t.initializer = e.initializer), t;
|
|
77
|
+
}, toElementDescriptors: function(e) {
|
|
78
|
+
if (e !== void 0) return _(e).map(function(t) {
|
|
79
|
+
var n = this.toElementDescriptor(t);
|
|
80
|
+
return this.disallowProperty(t, "finisher", "An element descriptor"), this.disallowProperty(t, "extras", "An element descriptor"), n;
|
|
81
|
+
}, this);
|
|
82
|
+
}, toElementDescriptor: function(e) {
|
|
83
|
+
var t = e.kind + "";
|
|
84
|
+
if (t !== "method" && t !== "field") throw new TypeError(`An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "` + t + '"');
|
|
85
|
+
var n = g(e.key), i = e.placement + "";
|
|
86
|
+
if (i !== "static" && i !== "prototype" && i !== "own") throw new TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "` + i + '"');
|
|
87
|
+
var o = e.descriptor;
|
|
88
|
+
this.disallowProperty(e, "elements", "An element descriptor");
|
|
89
|
+
var a = { kind: t, key: n, placement: i, descriptor: Object.assign({}, o) };
|
|
90
|
+
return t !== "field" ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(o, "get", "The property descriptor of a field descriptor"), this.disallowProperty(o, "set", "The property descriptor of a field descriptor"), this.disallowProperty(o, "value", "The property descriptor of a field descriptor"), a.initializer = e.initializer), a;
|
|
91
|
+
}, toElementFinisherExtras: function(e) {
|
|
92
|
+
return { element: this.toElementDescriptor(e), finisher: v(e, "finisher"), extras: this.toElementDescriptors(e.extras) };
|
|
93
|
+
}, fromClassDescriptor: function(e) {
|
|
94
|
+
var t = { kind: "class", elements: e.map(this.fromElementDescriptor, this) };
|
|
95
|
+
return Object.defineProperty(t, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), t;
|
|
96
|
+
}, toClassDescriptor: function(e) {
|
|
97
|
+
var t = e.kind + "";
|
|
98
|
+
if (t !== "class") throw new TypeError(`A class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "` + t + '"');
|
|
99
|
+
this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor");
|
|
100
|
+
var n = v(e, "finisher");
|
|
101
|
+
return { elements: this.toElementDescriptors(e.elements), finisher: n };
|
|
102
|
+
}, runClassFinishers: function(e, t) {
|
|
103
|
+
for (var n = 0; n < t.length; n++) {
|
|
104
|
+
var i = (0, t[n])(e);
|
|
105
|
+
if (i !== void 0) {
|
|
106
|
+
if (typeof i != "function") throw new TypeError("Finishers must return a constructor.");
|
|
107
|
+
e = i;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return e;
|
|
111
|
+
}, disallowProperty: function(e, t, n) {
|
|
112
|
+
if (e[t] !== void 0) throw new TypeError(n + " can't have a ." + t + " property.");
|
|
113
|
+
} };
|
|
114
|
+
return r;
|
|
115
|
+
}
|
|
116
|
+
function A(r) {
|
|
117
|
+
var e, t = g(r.key);
|
|
118
|
+
r.kind === "method" ? e = { value: r.value, writable: !0, configurable: !0, enumerable: !1 } : r.kind === "get" ? e = { get: r.value, configurable: !0, enumerable: !1 } : r.kind === "set" ? e = { set: r.value, configurable: !0, enumerable: !1 } : r.kind === "field" && (e = { configurable: !0, writable: !0, enumerable: !0 });
|
|
119
|
+
var n = { kind: r.kind === "field" ? "field" : "method", key: t, placement: r.static ? "static" : r.kind === "field" ? "own" : "prototype", descriptor: e };
|
|
120
|
+
return r.decorators && (n.decorators = r.decorators), r.kind === "field" && (n.initializer = r.value), n;
|
|
121
|
+
}
|
|
122
|
+
function P(r, e) {
|
|
123
|
+
r.descriptor.get !== void 0 ? e.descriptor.get = r.descriptor.get : e.descriptor.set = r.descriptor.set;
|
|
124
|
+
}
|
|
125
|
+
function C(r) {
|
|
126
|
+
for (var e = [], t = function(a) {
|
|
127
|
+
return a.kind === "method" && a.key === o.key && a.placement === o.placement;
|
|
128
|
+
}, n = 0; n < r.length; n++) {
|
|
129
|
+
var i, o = r[n];
|
|
130
|
+
if (o.kind === "method" && (i = e.find(t)))
|
|
131
|
+
if (h(o.descriptor) || h(i.descriptor)) {
|
|
132
|
+
if (m(o) || m(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated.");
|
|
133
|
+
i.descriptor = o.descriptor;
|
|
134
|
+
} else {
|
|
135
|
+
if (m(o)) {
|
|
136
|
+
if (m(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ").");
|
|
137
|
+
i.decorators = o.decorators;
|
|
138
|
+
}
|
|
139
|
+
P(o, i);
|
|
140
|
+
}
|
|
141
|
+
else e.push(o);
|
|
142
|
+
}
|
|
143
|
+
return e;
|
|
144
|
+
}
|
|
145
|
+
function m(r) {
|
|
146
|
+
return r.decorators && r.decorators.length;
|
|
147
|
+
}
|
|
148
|
+
function h(r) {
|
|
149
|
+
return r !== void 0 && !(r.value === void 0 && r.writable === void 0);
|
|
150
|
+
}
|
|
151
|
+
function v(r, e) {
|
|
152
|
+
var t = r[e];
|
|
153
|
+
if (t !== void 0 && typeof t != "function") throw new TypeError("Expected '" + e + "' to be a function");
|
|
154
|
+
return t;
|
|
155
|
+
}
|
|
156
|
+
function g(r) {
|
|
157
|
+
var e = I(r, "string");
|
|
158
|
+
return typeof e == "symbol" ? e : e + "";
|
|
159
|
+
}
|
|
160
|
+
function I(r, e) {
|
|
161
|
+
if (typeof r != "object" || !r) return r;
|
|
162
|
+
var t = r[Symbol.toPrimitive];
|
|
163
|
+
if (t !== void 0) {
|
|
164
|
+
var n = t.call(r, e);
|
|
165
|
+
if (typeof n != "object") return n;
|
|
166
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
167
|
+
}
|
|
168
|
+
return (e === "string" ? String : Number)(r);
|
|
169
|
+
}
|
|
170
|
+
function _(r) {
|
|
171
|
+
return F(r) || z(r) || S(r) || x();
|
|
172
|
+
}
|
|
173
|
+
function x() {
|
|
174
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
175
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
176
|
+
}
|
|
177
|
+
function S(r, e) {
|
|
178
|
+
if (r) {
|
|
179
|
+
if (typeof r == "string") return b(r, e);
|
|
180
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
181
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? b(r, e) : void 0;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function b(r, e) {
|
|
185
|
+
(e == null || e > r.length) && (e = r.length);
|
|
186
|
+
for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t];
|
|
187
|
+
return n;
|
|
188
|
+
}
|
|
189
|
+
function z(r) {
|
|
190
|
+
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
191
|
+
}
|
|
192
|
+
function F(r) {
|
|
193
|
+
if (Array.isArray(r)) return r;
|
|
194
|
+
}
|
|
195
|
+
let K = D([T()], function(r) {
|
|
196
|
+
class e {
|
|
197
|
+
constructor() {
|
|
198
|
+
r(this);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
F: e,
|
|
203
|
+
d: [{
|
|
204
|
+
kind: "method",
|
|
205
|
+
static: !0,
|
|
206
|
+
key: "validate",
|
|
207
|
+
value: function(n, i, o, a, s) {
|
|
208
|
+
const l = o?.get(i?.dataTypeIdentifier?.genericKey), p = o?.get(i?.dataTypeIdentifier?.genericKey)?.sourceDataTypeIdentifiers, d = o?.get(i?.dataTypeIdentifier?.genericKey)?.genericCombinationStrategies;
|
|
209
|
+
if ("value" in n && !Array.isArray(n.value)) return !1;
|
|
210
|
+
if (i?.dataTypeIdentifier?.genericKey && !l && !a?.getDataType(i.dataTypeIdentifier)) return !0;
|
|
211
|
+
if (!(a?.getDataType(i.dataTypeIdentifier) || l) || l && !a?.hasDataTypes(p) || l && (d?.length ?? 0) + 1 != p.length) return !1;
|
|
212
|
+
if (i?.dataTypeIdentifier?.genericKey && l && p) {
|
|
213
|
+
const c = p.map((f) => n.value.every((u) => f.genericType ? y({
|
|
214
|
+
__typename: "LiteralValue",
|
|
215
|
+
value: u
|
|
216
|
+
}, a?.getDataType(f), s, f.genericType.genericMappers) : y({
|
|
217
|
+
__typename: "LiteralValue",
|
|
218
|
+
value: u
|
|
219
|
+
}, a?.getDataType(f), s)));
|
|
220
|
+
return c.length > 1 ? c.reduce((f, u, k) => d && d[k - 1].type == "OR" ? f || u : f && u) : c[0];
|
|
221
|
+
}
|
|
222
|
+
return i?.dataTypeIdentifier?.dataType ? n.value.every((c) => y(c, a?.getDataType(i.dataTypeIdentifier))) : n.value.every((c) => y(c, a?.getDataType(i.dataTypeIdentifier), s, E((i.dataTypeIdentifier?.genericType).genericMappers, o)));
|
|
223
|
+
}
|
|
224
|
+
}]
|
|
225
|
+
};
|
|
226
|
+
});
|
|
4
227
|
export {
|
|
5
|
-
|
|
228
|
+
K as DFlowDataTypeContainsTypeRule
|
|
6
229
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { staticImplements as w } from "./DFlowDataTypeRule.js";
|
|
2
2
|
import { replaceGenericKeysInType as b } from "../../../../utils/generics.js";
|
|
3
|
-
import {
|
|
3
|
+
import { useValidateValue as E } from "../DFlowDataType.validation.value.js";
|
|
4
4
|
function k(r, e, t, i) {
|
|
5
5
|
var n = y(), o = e(function(a) {
|
|
6
6
|
n.initializeInstanceElements(a, s.elements);
|