@code0-tech/pictor 0.0.0-mvp.2
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/LICENSE +29 -0
- package/README.md +0 -0
- package/dist/DFlowDataType.service-Dz8pQUeO.js +793 -0
- package/dist/assets/Avatar.css +1 -0
- package/dist/assets/Badge.css +1 -0
- package/dist/assets/Breadcrumb.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/ButtonGroup.css +1 -0
- package/dist/assets/Card.css +1 -0
- package/dist/assets/Col.css +1 -0
- package/dist/assets/Command.css +1 -0
- package/dist/assets/Container.css +1 -0
- package/dist/assets/DFlow.css +1 -0
- package/dist/assets/DFlowFolder.css +1 -0
- package/dist/assets/DFlowFunctionDefaultCard.css +1 -0
- package/dist/assets/DFlowInputDataType.css +1 -0
- package/dist/assets/DFlowMiniMap.css +1 -0
- package/dist/assets/DFlowSuggestionSearchInput.css +1 -0
- package/dist/assets/DFlowValidation.css +1 -0
- package/dist/assets/DFullScreen.css +1 -0
- package/dist/assets/DLayout.css +1 -0
- package/dist/assets/DResizable.css +1 -0
- package/dist/assets/Dialog.css +1 -0
- package/dist/assets/FileTabs.css +1 -0
- package/dist/assets/Flex.css +1 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/Menu.css +1 -0
- package/dist/assets/Quote.css +1 -0
- package/dist/assets/Row.css +1 -0
- package/dist/assets/ScrollArea.css +1 -0
- package/dist/assets/SegmentedControl.css +1 -0
- package/dist/assets/Text.css +1 -0
- package/dist/assets/Tooltip.css +1 -0
- package/dist/compiler-runtime-BNHg76kC.js +36 -0
- package/dist/components/avatar/Avatar.d.ts +8 -0
- package/dist/components/avatar/Avatar.js +55 -0
- package/dist/components/badge/Badge.d.ts +7 -0
- package/dist/components/badge/Badge.js +22 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +7 -0
- package/dist/components/breadcrumb/Breadcrumb.js +31 -0
- package/dist/components/button/Button.d.ts +10 -0
- package/dist/components/button/Button.js +28 -0
- package/dist/components/button-group/ButtonGroup.d.ts +7 -0
- package/dist/components/button-group/ButtonGroup.js +26 -0
- package/dist/components/card/Card.d.ts +14 -0
- package/dist/components/card/Card.js +39 -0
- package/dist/components/card/CardSection.d.ts +9 -0
- package/dist/components/card/CardSection.js +22 -0
- package/dist/components/col/Col.d.ts +13 -0
- package/dist/components/col/Col.js +26 -0
- package/dist/components/command/Command.d.ts +30 -0
- package/dist/components/command/Command.js +102 -0
- package/dist/components/container/Container.d.ts +6 -0
- package/dist/components/container/Container.js +20 -0
- package/dist/components/d-flow/DFlow.d.ts +5 -0
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +4 -0
- package/dist/components/d-flow/DFlow.edges.hook.js +145 -0
- package/dist/components/d-flow/DFlow.js +373 -0
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +3 -0
- package/dist/components/d-flow/DFlow.nodes.hook.js +140 -0
- package/dist/components/d-flow/DFlow.service.d.ts +10 -0
- package/dist/components/d-flow/DFlow.service.js +11 -0
- package/dist/components/d-flow/DFlow.view.d.ts +109 -0
- package/dist/components/d-flow/DFlow.view.js +213 -0
- package/dist/components/d-flow/control/DFlowControl.d.ts +2 -0
- package/dist/components/d-flow/control/DFlowControl.js +77 -0
- package/dist/components/d-flow/control/index.d.ts +1 -0
- package/dist/components/d-flow/control/index.js +4 -0
- package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +10 -0
- package/dist/components/d-flow/data-type/DFlowDataType.service.js +7 -0
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +2 -0
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +18 -0
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +4 -0
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +6 -0
- package/dist/components/d-flow/data-type/DFlowDataType.view.d.ts +32 -0
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +65 -0
- package/dist/components/d-flow/data-type/index.d.ts +2 -0
- package/dist/components/d-flow/data-type/index.js +6 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +6 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +6 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +6 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +6 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +7 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeItemOfCollectionRule.js +214 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +4 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeNumberRangeRule.js +214 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeParentRule.d.ts +9 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeParentRule.js +217 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRegexRule.d.ts +4 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRegexRule.js +214 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +6 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +7 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRule.d.ts +8 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRule.js +10 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.d.ts +3 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +8 -0
- package/dist/components/d-flow/edge/DFlowEdge.d.ts +10 -0
- package/dist/components/d-flow/edge/DFlowEdge.js +48 -0
- package/dist/components/d-flow/folder/DFlowFolder.d.ts +19 -0
- package/dist/components/d-flow/folder/DFlowFolder.js +118 -0
- package/dist/components/d-flow/folder/index.d.ts +1 -0
- package/dist/components/d-flow/folder/index.js +6 -0
- package/dist/components/d-flow/function/DFlowFunction.input.hook.d.ts +4 -0
- package/dist/components/d-flow/function/DFlowFunction.input.hook.js +9 -0
- package/dist/components/d-flow/function/DFlowFunction.return.hook.d.ts +4 -0
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +11 -0
- package/dist/components/d-flow/function/DFlowFunction.service.d.ts +6 -0
- package/dist/components/d-flow/function/DFlowFunction.service.js +9 -0
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +10 -0
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +75 -0
- package/dist/components/d-flow/function/DFlowFunction.view.d.ts +66 -0
- package/dist/components/d-flow/function/DFlowFunction.view.js +117 -0
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.d.ts +15 -0
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +158 -0
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +5 -0
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +55 -0
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.d.ts +11 -0
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +26 -0
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.d.ts +9 -0
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +97 -0
- package/dist/components/d-flow/function/index.d.ts +2 -0
- package/dist/components/d-flow/function/index.js +7 -0
- package/dist/components/d-flow/index.d.ts +13 -0
- package/dist/components/d-flow/index.js +46 -0
- package/dist/components/d-flow/input/DFlowInputDataType.d.ts +8 -0
- package/dist/components/d-flow/input/DFlowInputDataType.js +422 -0
- package/dist/components/d-flow/minimap/DFlowMiniMap.d.ts +2 -0
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +21 -0
- package/dist/components/d-flow/minimap/index.d.ts +1 -0
- package/dist/components/d-flow/minimap/index.js +4 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.d.ts +33 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +151 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +5 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +18 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +21 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +25 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.d.ts +8 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +67 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.util.d.ts +3 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.util.js +42 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuFooter.d.ts +2 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuFooter.js +69 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuSearchBar.d.ts +6 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuSearchBar.js +21 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.d.ts +7 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +21 -0
- package/dist/components/d-flow/suggestion/index.d.ts +2 -0
- package/dist/components/d-flow/suggestion/index.js +7 -0
- package/dist/components/d-flow/tab/DFlowTabDefault.d.ts +11 -0
- package/dist/components/d-flow/tab/DFlowTabDefault.js +97 -0
- package/dist/components/d-flow/tab/DFlowTabTrigger.d.ts +6 -0
- package/dist/components/d-flow/tab/DFlowTabTrigger.js +51 -0
- package/dist/components/d-flow/tab/DFlowTabs.d.ts +2 -0
- package/dist/components/d-flow/tab/DFlowTabs.js +105 -0
- package/dist/components/d-flow/type/DFlowType.service.d.ts +6 -0
- package/dist/components/d-flow/type/DFlowType.service.js +9 -0
- package/dist/components/d-flow/type/DFlowType.view.d.ts +35 -0
- package/dist/components/d-flow/type/DFlowType.view.js +69 -0
- package/dist/components/d-flow/type/index.d.ts +2 -0
- package/dist/components/d-flow/type/index.js +6 -0
- package/dist/components/d-flow/validation/DFlowValidation.d.ts +6 -0
- package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +3 -0
- package/dist/components/d-flow/validation/DFlowValidation.hook.js +10 -0
- package/dist/components/d-flow/validation/DFlowValidation.js +59 -0
- package/dist/components/d-flow/validation/index.d.ts +2 -0
- package/dist/components/d-flow/validation/index.js +6 -0
- package/dist/components/d-fullscreen/DFullScreen.d.ts +7 -0
- package/dist/components/d-fullscreen/DFullScreen.js +20 -0
- package/dist/components/d-layout/DLayout.d.ts +10 -0
- package/dist/components/d-layout/DLayout.js +51 -0
- package/dist/components/d-namespace/DNamespace.service.d.ts +6 -0
- package/dist/components/d-namespace/DNamespace.service.js +11 -0
- package/dist/components/d-namespace/DNamespace.view.d.ts +32 -0
- package/dist/components/d-namespace/DNamespace.view.js +65 -0
- package/dist/components/d-namespace/index.d.ts +12 -0
- package/dist/components/d-namespace/index.js +35 -0
- package/dist/components/d-namespace/license/DNamespaceLicense.service.d.ts +8 -0
- package/dist/components/d-namespace/license/DNamespaceLicense.service.js +11 -0
- package/dist/components/d-namespace/license/DNamespaceLicense.view.d.ts +26 -0
- package/dist/components/d-namespace/license/DNamespaceLicense.view.js +57 -0
- package/dist/components/d-namespace/member/DNamespaceMember.service.d.ts +9 -0
- package/dist/components/d-namespace/member/DNamespaceMember.service.js +11 -0
- package/dist/components/d-namespace/member/DNamespaceMember.view.d.ts +26 -0
- package/dist/components/d-namespace/member/DNamespaceMember.view.js +57 -0
- package/dist/components/d-namespace/project/DNamespaceProject.service.d.ts +9 -0
- package/dist/components/d-namespace/project/DNamespaceProject.service.js +11 -0
- package/dist/components/d-namespace/project/DNamespaceProject.view.d.ts +35 -0
- package/dist/components/d-namespace/project/DNamespaceProject.view.js +69 -0
- package/dist/components/d-namespace/project/DNamespaceProjectCard.d.ts +9 -0
- package/dist/components/d-namespace/project/DNamespaceProjectCard.js +57 -0
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.d.ts +9 -0
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.js +18 -0
- package/dist/components/d-namespace/role/DNamespaceRole.service.d.ts +10 -0
- package/dist/components/d-namespace/role/DNamespaceRole.service.js +11 -0
- package/dist/components/d-namespace/role/DNamespaceRole.view.d.ts +26 -0
- package/dist/components/d-namespace/role/DNamespaceRole.view.js +57 -0
- package/dist/components/d-organization/DOrganization.service.d.ts +8 -0
- package/dist/components/d-organization/DOrganization.service.js +11 -0
- package/dist/components/d-organization/DOrganization.view.d.ts +20 -0
- package/dist/components/d-organization/DOrganization.view.js +52 -0
- package/dist/components/d-organization/DOrganizationCard.d.ts +10 -0
- package/dist/components/d-organization/DOrganizationCard.js +63 -0
- package/dist/components/d-organization/DOrganizationMenu.d.ts +9 -0
- package/dist/components/d-organization/DOrganizationMenu.js +18 -0
- package/dist/components/d-organization/index.d.ts +4 -0
- package/dist/components/d-organization/index.js +19 -0
- package/dist/components/d-resizable/DResizable.d.ts +10 -0
- package/dist/components/d-resizable/DResizable.js +31 -0
- package/dist/components/d-runtime/DRuntime.service.d.ts +9 -0
- package/dist/components/d-runtime/DRuntime.service.js +11 -0
- package/dist/components/d-runtime/DRuntime.view.d.ts +38 -0
- package/dist/components/d-runtime/DRuntime.view.js +73 -0
- package/dist/components/d-runtime/index.d.ts +2 -0
- package/dist/components/d-runtime/index.js +6 -0
- package/dist/components/d-user/DUser.service.d.ts +21 -0
- package/dist/components/d-user/DUser.service.js +17 -0
- package/dist/components/d-user/DUser.view.d.ts +52 -0
- package/dist/components/d-user/DUser.view.js +100 -0
- package/dist/components/d-user/DUserMenu.d.ts +8 -0
- package/dist/components/d-user/DUserMenu.js +28 -0
- package/dist/components/d-user/index.d.ts +3 -0
- package/dist/components/d-user/index.js +17 -0
- package/dist/components/dialog/Dialog.d.ts +28 -0
- package/dist/components/dialog/Dialog.js +98 -0
- package/dist/components/file-tabs/FileTabs.d.ts +17 -0
- package/dist/components/file-tabs/FileTabs.js +70 -0
- package/dist/components/file-tabs/FileTabs.service.d.ts +13 -0
- package/dist/components/file-tabs/FileTabs.service.js +47 -0
- package/dist/components/file-tabs/FileTabs.view.d.ts +9 -0
- package/dist/components/file-tabs/FileTabs.view.js +1 -0
- package/dist/components/flex/Flex.d.ts +7 -0
- package/dist/components/flex/Flex.js +21 -0
- package/dist/components/form/CheckboxInput.d.ts +5 -0
- package/dist/components/form/CheckboxInput.js +67 -0
- package/dist/components/form/EmailInput.d.ts +8 -0
- package/dist/components/form/EmailInput.js +20 -0
- package/dist/components/form/Input.d.ts +22 -0
- package/dist/components/form/Input.js +153 -0
- package/dist/components/form/InputDescription.d.ts +5 -0
- package/dist/components/form/InputDescription.js +12 -0
- package/dist/components/form/InputLabel.d.ts +5 -0
- package/dist/components/form/InputLabel.js +12 -0
- package/dist/components/form/InputMessage.d.ts +5 -0
- package/dist/components/form/InputMessage.js +18 -0
- package/dist/components/form/InputSuggestion.d.ts +19 -0
- package/dist/components/form/InputSuggestion.js +102 -0
- package/dist/components/form/NumberInput.d.ts +6 -0
- package/dist/components/form/NumberInput.js +20 -0
- package/dist/components/form/PasswordInput.d.ts +8 -0
- package/dist/components/form/PasswordInput.js +18 -0
- package/dist/components/form/PinInput.d.ts +11 -0
- package/dist/components/form/PinInput.js +66 -0
- package/dist/components/form/RadioGroup.d.ts +5 -0
- package/dist/components/form/RadioGroup.js +48 -0
- package/dist/components/form/RadioInput.d.ts +7 -0
- package/dist/components/form/RadioInput.js +27 -0
- package/dist/components/form/SwitchInput.d.ts +6 -0
- package/dist/components/form/SwitchInput.js +19 -0
- package/dist/components/form/TextInput.d.ts +7 -0
- package/dist/components/form/TextInput.js +19 -0
- package/dist/components/form/index.d.ts +15 -0
- package/dist/components/form/index.js +37 -0
- package/dist/components/form/useForm.d.ts +25 -0
- package/dist/components/form/useForm.js +57 -0
- package/dist/components/menu/Menu.d.ts +27 -0
- package/dist/components/menu/Menu.js +104 -0
- package/dist/components/quote/Quote.d.ts +10 -0
- package/dist/components/quote/Quote.js +48 -0
- package/dist/components/row/Row.d.ts +6 -0
- package/dist/components/row/Row.js +20 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +13 -0
- package/dist/components/scroll-area/ScrollArea.js +42 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts +8 -0
- package/dist/components/segmented-control/SegmentedControl.js +23 -0
- package/dist/components/text/Text.d.ts +8 -0
- package/dist/components/text/Text.js +23 -0
- package/dist/components/tooltip/Tooltip.d.ts +13 -0
- package/dist/components/tooltip/Tooltip.js +47 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +223 -0
- package/dist/utils/arrayService.d.ts +10 -0
- package/dist/utils/arrayService.js +1 -0
- package/dist/utils/contextStore.d.ts +62 -0
- package/dist/utils/contextStore.js +60 -0
- package/dist/utils/generics.d.ts +17 -0
- package/dist/utils/generics.js +311 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +28 -0
- package/dist/utils/inspection.d.ts +13 -0
- package/dist/utils/inspection.js +4 -0
- package/dist/utils/nonReactiveArrayService.d.ts +19 -0
- package/dist/utils/nonReactiveArrayService.js +54 -0
- package/dist/utils/objectStore.d.ts +12 -0
- package/dist/utils/objectStore.js +34 -0
- package/dist/utils/reactiveArrayService.d.ts +22 -0
- package/dist/utils/reactiveArrayService.js +81 -0
- package/dist/utils/types.d.ts +57 -0
- package/dist/utils/types.js +4 -0
- package/dist/utils/utils.d.ts +68 -0
- package/dist/utils/utils.js +216 -0
- package/package.json +121 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
function i(e, t, r) {
|
|
2
|
+
return (t = s(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
3
|
+
}
|
|
4
|
+
function s(e) {
|
|
5
|
+
var t = u(e, "string");
|
|
6
|
+
return typeof t == "symbol" ? t : t + "";
|
|
7
|
+
}
|
|
8
|
+
function u(e, t) {
|
|
9
|
+
if (typeof e != "object" || !e) return e;
|
|
10
|
+
var r = e[Symbol.toPrimitive];
|
|
11
|
+
if (r !== void 0) {
|
|
12
|
+
var n = r.call(e, t);
|
|
13
|
+
if (typeof n != "object") return n;
|
|
14
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
|
+
}
|
|
16
|
+
return (t === "string" ? String : Number)(e);
|
|
17
|
+
}
|
|
18
|
+
class d {
|
|
19
|
+
constructor(t) {
|
|
20
|
+
i(this, "_createdAt", void 0), i(this, "_genericKeys", void 0), i(this, "_id", void 0), i(this, "_identifier", void 0), i(this, "_name", void 0), i(this, "_runtime", void 0), i(this, "_rules", void 0), i(this, "_updatedAt", void 0), i(this, "_variant", void 0), this._id = t.id, this._createdAt = t.createdAt, this._updatedAt = t.updatedAt, this._identifier = t.identifier, this._name = t.name ?? void 0, this._runtime = t.runtime ?? void 0, this._variant = t.variant, this._genericKeys = t.genericKeys ?? void 0, this._rules = t.rules ?? void 0;
|
|
21
|
+
}
|
|
22
|
+
get createdAt() {
|
|
23
|
+
return this._createdAt;
|
|
24
|
+
}
|
|
25
|
+
get genericKeys() {
|
|
26
|
+
return this._genericKeys;
|
|
27
|
+
}
|
|
28
|
+
get id() {
|
|
29
|
+
return this._id;
|
|
30
|
+
}
|
|
31
|
+
get identifier() {
|
|
32
|
+
return this._identifier;
|
|
33
|
+
}
|
|
34
|
+
get name() {
|
|
35
|
+
return this._name;
|
|
36
|
+
}
|
|
37
|
+
get runtime() {
|
|
38
|
+
return this._runtime;
|
|
39
|
+
}
|
|
40
|
+
get rules() {
|
|
41
|
+
return this._rules;
|
|
42
|
+
}
|
|
43
|
+
get updatedAt() {
|
|
44
|
+
return this._updatedAt;
|
|
45
|
+
}
|
|
46
|
+
get variant() {
|
|
47
|
+
return this._variant;
|
|
48
|
+
}
|
|
49
|
+
get json() {
|
|
50
|
+
return {
|
|
51
|
+
id: this._id,
|
|
52
|
+
createdAt: this._createdAt,
|
|
53
|
+
updatedAt: this._updatedAt,
|
|
54
|
+
identifier: this._identifier,
|
|
55
|
+
name: this._name,
|
|
56
|
+
runtime: this._runtime,
|
|
57
|
+
variant: this._variant,
|
|
58
|
+
genericKeys: this._genericKeys,
|
|
59
|
+
rules: this._rules
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
d as DataTypeView
|
|
65
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
+
import { DataTypeRulesContainsKeyConfig, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
import { FlowView } from '../../DFlow.view';
|
|
4
|
+
export declare class DFlowDataTypeContainsKeyRule {
|
|
5
|
+
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?: FlowView): boolean;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
+
import { DataTypeRulesContainsKeyConfig, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
import { FlowView } from '../../DFlow.view';
|
|
4
|
+
export declare class DFlowDataTypeContainsTypeRule {
|
|
5
|
+
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?: FlowView): boolean;
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DataTypeRulesItemOfCollectionConfig, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
+
/**
|
|
3
|
+
* @todo deep equality check for arrays and objects
|
|
4
|
+
*/
|
|
5
|
+
export declare class DFlowDataTypeItemOfCollectionRule {
|
|
6
|
+
static validate(value: NodeParameterValue, config: DataTypeRulesItemOfCollectionConfig): boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { staticImplements as w } from "./DFlowDataTypeRule.js";
|
|
2
|
+
function b(r, e, t, i) {
|
|
3
|
+
var n = y(), o = e(function(a) {
|
|
4
|
+
n.initializeInstanceElements(a, s.elements);
|
|
5
|
+
}, t), s = n.decorateClass(g(o.d.map(E)), r);
|
|
6
|
+
return n.initializeClassElements(o.F, s.elements), n.runClassFinishers(o.F, s.finishers);
|
|
7
|
+
}
|
|
8
|
+
function y() {
|
|
9
|
+
y = function() {
|
|
10
|
+
return r;
|
|
11
|
+
};
|
|
12
|
+
var r = { elementsDefinitionOrder: [["method"], ["field"]], initializeInstanceElements: function(e, t) {
|
|
13
|
+
["method", "field"].forEach(function(i) {
|
|
14
|
+
t.forEach(function(n) {
|
|
15
|
+
n.kind === i && n.placement === "own" && this.defineClassElement(e, n);
|
|
16
|
+
}, this);
|
|
17
|
+
}, this);
|
|
18
|
+
}, initializeClassElements: function(e, t) {
|
|
19
|
+
var i = e.prototype;
|
|
20
|
+
["method", "field"].forEach(function(n) {
|
|
21
|
+
t.forEach(function(o) {
|
|
22
|
+
var s = o.placement;
|
|
23
|
+
if (o.kind === n && (s === "static" || s === "prototype")) {
|
|
24
|
+
var a = s === "static" ? e : i;
|
|
25
|
+
this.defineClassElement(a, o);
|
|
26
|
+
}
|
|
27
|
+
}, this);
|
|
28
|
+
}, this);
|
|
29
|
+
}, defineClassElement: function(e, t) {
|
|
30
|
+
var i = t.descriptor;
|
|
31
|
+
if (t.kind === "field") {
|
|
32
|
+
var n = t.initializer;
|
|
33
|
+
i = { enumerable: i.enumerable, writable: i.writable, configurable: i.configurable, value: n === void 0 ? void 0 : n.call(e) };
|
|
34
|
+
}
|
|
35
|
+
Object.defineProperty(e, t.key, i);
|
|
36
|
+
}, decorateClass: function(e, t) {
|
|
37
|
+
var i = [], n = [], o = { static: [], prototype: [], own: [] };
|
|
38
|
+
if (e.forEach(function(a) {
|
|
39
|
+
this.addElementPlacement(a, o);
|
|
40
|
+
}, this), e.forEach(function(a) {
|
|
41
|
+
if (!c(a)) return i.push(a);
|
|
42
|
+
var l = this.decorateElement(a, o);
|
|
43
|
+
i.push(l.element), i.push.apply(i, l.extras), n.push.apply(n, l.finishers);
|
|
44
|
+
}, this), !t) return { elements: i, finishers: n };
|
|
45
|
+
var s = this.decorateConstructor(i, t);
|
|
46
|
+
return n.push.apply(n, s.finishers), s.finishers = n, s;
|
|
47
|
+
}, addElementPlacement: function(e, t, i) {
|
|
48
|
+
var n = t[e.placement];
|
|
49
|
+
if (!i && n.indexOf(e.key) !== -1) throw new TypeError("Duplicated element (" + e.key + ")");
|
|
50
|
+
n.push(e.key);
|
|
51
|
+
}, decorateElement: function(e, t) {
|
|
52
|
+
for (var i = [], n = [], o = e.decorators, s = o.length - 1; s >= 0; s--) {
|
|
53
|
+
var a = t[e.placement];
|
|
54
|
+
a.splice(a.indexOf(e.key), 1);
|
|
55
|
+
var l = this.fromElementDescriptor(e), d = this.toElementFinisherExtras((0, o[s])(l) || l);
|
|
56
|
+
e = d.element, this.addElementPlacement(e, t), d.finisher && n.push(d.finisher);
|
|
57
|
+
var p = d.extras;
|
|
58
|
+
if (p) {
|
|
59
|
+
for (var f = 0; f < p.length; f++) this.addElementPlacement(p[f], t);
|
|
60
|
+
i.push.apply(i, p);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return { element: e, finishers: n, extras: i };
|
|
64
|
+
}, decorateConstructor: function(e, t) {
|
|
65
|
+
for (var i = [], n = t.length - 1; n >= 0; n--) {
|
|
66
|
+
var o = this.fromClassDescriptor(e), s = this.toClassDescriptor((0, t[n])(o) || o);
|
|
67
|
+
if (s.finisher !== void 0 && i.push(s.finisher), s.elements !== void 0) {
|
|
68
|
+
e = s.elements;
|
|
69
|
+
for (var a = 0; a < e.length - 1; a++) for (var l = a + 1; l < e.length; l++) if (e[a].key === e[l].key && e[a].placement === e[l].placement) throw new TypeError("Duplicated element (" + e[a].key + ")");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return { elements: e, finishers: i };
|
|
73
|
+
}, fromElementDescriptor: function(e) {
|
|
74
|
+
var t = { kind: e.kind, key: e.key, placement: e.placement, descriptor: e.descriptor };
|
|
75
|
+
return Object.defineProperty(t, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), e.kind === "field" && (t.initializer = e.initializer), t;
|
|
76
|
+
}, toElementDescriptors: function(e) {
|
|
77
|
+
if (e !== void 0) return P(e).map(function(t) {
|
|
78
|
+
var i = this.toElementDescriptor(t);
|
|
79
|
+
return this.disallowProperty(t, "finisher", "An element descriptor"), this.disallowProperty(t, "extras", "An element descriptor"), i;
|
|
80
|
+
}, this);
|
|
81
|
+
}, toElementDescriptor: function(e) {
|
|
82
|
+
var t = e.kind + "";
|
|
83
|
+
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 + '"');
|
|
84
|
+
var i = v(e.key), n = e.placement + "";
|
|
85
|
+
if (n !== "static" && n !== "prototype" && n !== "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 "` + n + '"');
|
|
86
|
+
var o = e.descriptor;
|
|
87
|
+
this.disallowProperty(e, "elements", "An element descriptor");
|
|
88
|
+
var s = { kind: t, key: i, placement: n, descriptor: Object.assign({}, o) };
|
|
89
|
+
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"), s.initializer = e.initializer), s;
|
|
90
|
+
}, toElementFinisherExtras: function(e) {
|
|
91
|
+
return { element: this.toElementDescriptor(e), finisher: m(e, "finisher"), extras: this.toElementDescriptors(e.extras) };
|
|
92
|
+
}, fromClassDescriptor: function(e) {
|
|
93
|
+
var t = { kind: "class", elements: e.map(this.fromElementDescriptor, this) };
|
|
94
|
+
return Object.defineProperty(t, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), t;
|
|
95
|
+
}, toClassDescriptor: function(e) {
|
|
96
|
+
var t = e.kind + "";
|
|
97
|
+
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 + '"');
|
|
98
|
+
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");
|
|
99
|
+
var i = m(e, "finisher");
|
|
100
|
+
return { elements: this.toElementDescriptors(e.elements), finisher: i };
|
|
101
|
+
}, runClassFinishers: function(e, t) {
|
|
102
|
+
for (var i = 0; i < t.length; i++) {
|
|
103
|
+
var n = (0, t[i])(e);
|
|
104
|
+
if (n !== void 0) {
|
|
105
|
+
if (typeof n != "function") throw new TypeError("Finishers must return a constructor.");
|
|
106
|
+
e = n;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return e;
|
|
110
|
+
}, disallowProperty: function(e, t, i) {
|
|
111
|
+
if (e[t] !== void 0) throw new TypeError(i + " can't have a ." + t + " property.");
|
|
112
|
+
} };
|
|
113
|
+
return r;
|
|
114
|
+
}
|
|
115
|
+
function E(r) {
|
|
116
|
+
var e, t = v(r.key);
|
|
117
|
+
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 });
|
|
118
|
+
var i = { kind: r.kind === "field" ? "field" : "method", key: t, placement: r.static ? "static" : r.kind === "field" ? "own" : "prototype", descriptor: e };
|
|
119
|
+
return r.decorators && (i.decorators = r.decorators), r.kind === "field" && (i.initializer = r.value), i;
|
|
120
|
+
}
|
|
121
|
+
function k(r, e) {
|
|
122
|
+
r.descriptor.get !== void 0 ? e.descriptor.get = r.descriptor.get : e.descriptor.set = r.descriptor.set;
|
|
123
|
+
}
|
|
124
|
+
function g(r) {
|
|
125
|
+
for (var e = [], t = function(s) {
|
|
126
|
+
return s.kind === "method" && s.key === o.key && s.placement === o.placement;
|
|
127
|
+
}, i = 0; i < r.length; i++) {
|
|
128
|
+
var n, o = r[i];
|
|
129
|
+
if (o.kind === "method" && (n = e.find(t)))
|
|
130
|
+
if (u(o.descriptor) || u(n.descriptor)) {
|
|
131
|
+
if (c(o) || c(n)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated.");
|
|
132
|
+
n.descriptor = o.descriptor;
|
|
133
|
+
} else {
|
|
134
|
+
if (c(o)) {
|
|
135
|
+
if (c(n)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ").");
|
|
136
|
+
n.decorators = o.decorators;
|
|
137
|
+
}
|
|
138
|
+
k(o, n);
|
|
139
|
+
}
|
|
140
|
+
else e.push(o);
|
|
141
|
+
}
|
|
142
|
+
return e;
|
|
143
|
+
}
|
|
144
|
+
function c(r) {
|
|
145
|
+
return r.decorators && r.decorators.length;
|
|
146
|
+
}
|
|
147
|
+
function u(r) {
|
|
148
|
+
return r !== void 0 && !(r.value === void 0 && r.writable === void 0);
|
|
149
|
+
}
|
|
150
|
+
function m(r, e) {
|
|
151
|
+
var t = r[e];
|
|
152
|
+
if (t !== void 0 && typeof t != "function") throw new TypeError("Expected '" + e + "' to be a function");
|
|
153
|
+
return t;
|
|
154
|
+
}
|
|
155
|
+
function v(r) {
|
|
156
|
+
var e = D(r, "string");
|
|
157
|
+
return typeof e == "symbol" ? e : e + "";
|
|
158
|
+
}
|
|
159
|
+
function D(r, e) {
|
|
160
|
+
if (typeof r != "object" || !r) return r;
|
|
161
|
+
var t = r[Symbol.toPrimitive];
|
|
162
|
+
if (t !== void 0) {
|
|
163
|
+
var i = t.call(r, e);
|
|
164
|
+
if (typeof i != "object") return i;
|
|
165
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
166
|
+
}
|
|
167
|
+
return (e === "string" ? String : Number)(r);
|
|
168
|
+
}
|
|
169
|
+
function P(r) {
|
|
170
|
+
return _(r) || T(r) || C(r) || A();
|
|
171
|
+
}
|
|
172
|
+
function A() {
|
|
173
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
174
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
175
|
+
}
|
|
176
|
+
function C(r, e) {
|
|
177
|
+
if (r) {
|
|
178
|
+
if (typeof r == "string") return h(r, e);
|
|
179
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
180
|
+
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) ? h(r, e) : void 0;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
function h(r, e) {
|
|
184
|
+
(e == null || e > r.length) && (e = r.length);
|
|
185
|
+
for (var t = 0, i = Array(e); t < e; t++) i[t] = r[t];
|
|
186
|
+
return i;
|
|
187
|
+
}
|
|
188
|
+
function T(r) {
|
|
189
|
+
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
190
|
+
}
|
|
191
|
+
function _(r) {
|
|
192
|
+
if (Array.isArray(r)) return r;
|
|
193
|
+
}
|
|
194
|
+
let z = b([w()], function(r) {
|
|
195
|
+
class e {
|
|
196
|
+
constructor() {
|
|
197
|
+
r(this);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return {
|
|
201
|
+
F: e,
|
|
202
|
+
d: [{
|
|
203
|
+
kind: "method",
|
|
204
|
+
static: !0,
|
|
205
|
+
key: "validate",
|
|
206
|
+
value: function(i, n) {
|
|
207
|
+
return n.items ? "value" in i && n.items.includes(i.value) : !1;
|
|
208
|
+
}
|
|
209
|
+
}]
|
|
210
|
+
};
|
|
211
|
+
});
|
|
212
|
+
export {
|
|
213
|
+
z as DFlowDataTypeItemOfCollectionRule
|
|
214
|
+
};
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { staticImplements as w } from "./DFlowDataTypeRule.js";
|
|
2
|
+
function b(r, e, t, i) {
|
|
3
|
+
var n = y(), o = e(function(a) {
|
|
4
|
+
n.initializeInstanceElements(a, s.elements);
|
|
5
|
+
}, t), s = n.decorateClass(g(o.d.map(E)), r);
|
|
6
|
+
return n.initializeClassElements(o.F, s.elements), n.runClassFinishers(o.F, s.finishers);
|
|
7
|
+
}
|
|
8
|
+
function y() {
|
|
9
|
+
y = function() {
|
|
10
|
+
return r;
|
|
11
|
+
};
|
|
12
|
+
var r = { elementsDefinitionOrder: [["method"], ["field"]], initializeInstanceElements: function(e, t) {
|
|
13
|
+
["method", "field"].forEach(function(i) {
|
|
14
|
+
t.forEach(function(n) {
|
|
15
|
+
n.kind === i && n.placement === "own" && this.defineClassElement(e, n);
|
|
16
|
+
}, this);
|
|
17
|
+
}, this);
|
|
18
|
+
}, initializeClassElements: function(e, t) {
|
|
19
|
+
var i = e.prototype;
|
|
20
|
+
["method", "field"].forEach(function(n) {
|
|
21
|
+
t.forEach(function(o) {
|
|
22
|
+
var s = o.placement;
|
|
23
|
+
if (o.kind === n && (s === "static" || s === "prototype")) {
|
|
24
|
+
var a = s === "static" ? e : i;
|
|
25
|
+
this.defineClassElement(a, o);
|
|
26
|
+
}
|
|
27
|
+
}, this);
|
|
28
|
+
}, this);
|
|
29
|
+
}, defineClassElement: function(e, t) {
|
|
30
|
+
var i = t.descriptor;
|
|
31
|
+
if (t.kind === "field") {
|
|
32
|
+
var n = t.initializer;
|
|
33
|
+
i = { enumerable: i.enumerable, writable: i.writable, configurable: i.configurable, value: n === void 0 ? void 0 : n.call(e) };
|
|
34
|
+
}
|
|
35
|
+
Object.defineProperty(e, t.key, i);
|
|
36
|
+
}, decorateClass: function(e, t) {
|
|
37
|
+
var i = [], n = [], o = { static: [], prototype: [], own: [] };
|
|
38
|
+
if (e.forEach(function(a) {
|
|
39
|
+
this.addElementPlacement(a, o);
|
|
40
|
+
}, this), e.forEach(function(a) {
|
|
41
|
+
if (!c(a)) return i.push(a);
|
|
42
|
+
var l = this.decorateElement(a, o);
|
|
43
|
+
i.push(l.element), i.push.apply(i, l.extras), n.push.apply(n, l.finishers);
|
|
44
|
+
}, this), !t) return { elements: i, finishers: n };
|
|
45
|
+
var s = this.decorateConstructor(i, t);
|
|
46
|
+
return n.push.apply(n, s.finishers), s.finishers = n, s;
|
|
47
|
+
}, addElementPlacement: function(e, t, i) {
|
|
48
|
+
var n = t[e.placement];
|
|
49
|
+
if (!i && n.indexOf(e.key) !== -1) throw new TypeError("Duplicated element (" + e.key + ")");
|
|
50
|
+
n.push(e.key);
|
|
51
|
+
}, decorateElement: function(e, t) {
|
|
52
|
+
for (var i = [], n = [], o = e.decorators, s = o.length - 1; s >= 0; s--) {
|
|
53
|
+
var a = t[e.placement];
|
|
54
|
+
a.splice(a.indexOf(e.key), 1);
|
|
55
|
+
var l = this.fromElementDescriptor(e), d = this.toElementFinisherExtras((0, o[s])(l) || l);
|
|
56
|
+
e = d.element, this.addElementPlacement(e, t), d.finisher && n.push(d.finisher);
|
|
57
|
+
var p = d.extras;
|
|
58
|
+
if (p) {
|
|
59
|
+
for (var f = 0; f < p.length; f++) this.addElementPlacement(p[f], t);
|
|
60
|
+
i.push.apply(i, p);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return { element: e, finishers: n, extras: i };
|
|
64
|
+
}, decorateConstructor: function(e, t) {
|
|
65
|
+
for (var i = [], n = t.length - 1; n >= 0; n--) {
|
|
66
|
+
var o = this.fromClassDescriptor(e), s = this.toClassDescriptor((0, t[n])(o) || o);
|
|
67
|
+
if (s.finisher !== void 0 && i.push(s.finisher), s.elements !== void 0) {
|
|
68
|
+
e = s.elements;
|
|
69
|
+
for (var a = 0; a < e.length - 1; a++) for (var l = a + 1; l < e.length; l++) if (e[a].key === e[l].key && e[a].placement === e[l].placement) throw new TypeError("Duplicated element (" + e[a].key + ")");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return { elements: e, finishers: i };
|
|
73
|
+
}, fromElementDescriptor: function(e) {
|
|
74
|
+
var t = { kind: e.kind, key: e.key, placement: e.placement, descriptor: e.descriptor };
|
|
75
|
+
return Object.defineProperty(t, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), e.kind === "field" && (t.initializer = e.initializer), t;
|
|
76
|
+
}, toElementDescriptors: function(e) {
|
|
77
|
+
if (e !== void 0) return P(e).map(function(t) {
|
|
78
|
+
var i = this.toElementDescriptor(t);
|
|
79
|
+
return this.disallowProperty(t, "finisher", "An element descriptor"), this.disallowProperty(t, "extras", "An element descriptor"), i;
|
|
80
|
+
}, this);
|
|
81
|
+
}, toElementDescriptor: function(e) {
|
|
82
|
+
var t = e.kind + "";
|
|
83
|
+
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 + '"');
|
|
84
|
+
var i = v(e.key), n = e.placement + "";
|
|
85
|
+
if (n !== "static" && n !== "prototype" && n !== "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 "` + n + '"');
|
|
86
|
+
var o = e.descriptor;
|
|
87
|
+
this.disallowProperty(e, "elements", "An element descriptor");
|
|
88
|
+
var s = { kind: t, key: i, placement: n, descriptor: Object.assign({}, o) };
|
|
89
|
+
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"), s.initializer = e.initializer), s;
|
|
90
|
+
}, toElementFinisherExtras: function(e) {
|
|
91
|
+
return { element: this.toElementDescriptor(e), finisher: m(e, "finisher"), extras: this.toElementDescriptors(e.extras) };
|
|
92
|
+
}, fromClassDescriptor: function(e) {
|
|
93
|
+
var t = { kind: "class", elements: e.map(this.fromElementDescriptor, this) };
|
|
94
|
+
return Object.defineProperty(t, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), t;
|
|
95
|
+
}, toClassDescriptor: function(e) {
|
|
96
|
+
var t = e.kind + "";
|
|
97
|
+
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 + '"');
|
|
98
|
+
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");
|
|
99
|
+
var i = m(e, "finisher");
|
|
100
|
+
return { elements: this.toElementDescriptors(e.elements), finisher: i };
|
|
101
|
+
}, runClassFinishers: function(e, t) {
|
|
102
|
+
for (var i = 0; i < t.length; i++) {
|
|
103
|
+
var n = (0, t[i])(e);
|
|
104
|
+
if (n !== void 0) {
|
|
105
|
+
if (typeof n != "function") throw new TypeError("Finishers must return a constructor.");
|
|
106
|
+
e = n;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return e;
|
|
110
|
+
}, disallowProperty: function(e, t, i) {
|
|
111
|
+
if (e[t] !== void 0) throw new TypeError(i + " can't have a ." + t + " property.");
|
|
112
|
+
} };
|
|
113
|
+
return r;
|
|
114
|
+
}
|
|
115
|
+
function E(r) {
|
|
116
|
+
var e, t = v(r.key);
|
|
117
|
+
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 });
|
|
118
|
+
var i = { kind: r.kind === "field" ? "field" : "method", key: t, placement: r.static ? "static" : r.kind === "field" ? "own" : "prototype", descriptor: e };
|
|
119
|
+
return r.decorators && (i.decorators = r.decorators), r.kind === "field" && (i.initializer = r.value), i;
|
|
120
|
+
}
|
|
121
|
+
function k(r, e) {
|
|
122
|
+
r.descriptor.get !== void 0 ? e.descriptor.get = r.descriptor.get : e.descriptor.set = r.descriptor.set;
|
|
123
|
+
}
|
|
124
|
+
function g(r) {
|
|
125
|
+
for (var e = [], t = function(s) {
|
|
126
|
+
return s.kind === "method" && s.key === o.key && s.placement === o.placement;
|
|
127
|
+
}, i = 0; i < r.length; i++) {
|
|
128
|
+
var n, o = r[i];
|
|
129
|
+
if (o.kind === "method" && (n = e.find(t)))
|
|
130
|
+
if (u(o.descriptor) || u(n.descriptor)) {
|
|
131
|
+
if (c(o) || c(n)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated.");
|
|
132
|
+
n.descriptor = o.descriptor;
|
|
133
|
+
} else {
|
|
134
|
+
if (c(o)) {
|
|
135
|
+
if (c(n)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ").");
|
|
136
|
+
n.decorators = o.decorators;
|
|
137
|
+
}
|
|
138
|
+
k(o, n);
|
|
139
|
+
}
|
|
140
|
+
else e.push(o);
|
|
141
|
+
}
|
|
142
|
+
return e;
|
|
143
|
+
}
|
|
144
|
+
function c(r) {
|
|
145
|
+
return r.decorators && r.decorators.length;
|
|
146
|
+
}
|
|
147
|
+
function u(r) {
|
|
148
|
+
return r !== void 0 && !(r.value === void 0 && r.writable === void 0);
|
|
149
|
+
}
|
|
150
|
+
function m(r, e) {
|
|
151
|
+
var t = r[e];
|
|
152
|
+
if (t !== void 0 && typeof t != "function") throw new TypeError("Expected '" + e + "' to be a function");
|
|
153
|
+
return t;
|
|
154
|
+
}
|
|
155
|
+
function v(r) {
|
|
156
|
+
var e = D(r, "string");
|
|
157
|
+
return typeof e == "symbol" ? e : e + "";
|
|
158
|
+
}
|
|
159
|
+
function D(r, e) {
|
|
160
|
+
if (typeof r != "object" || !r) return r;
|
|
161
|
+
var t = r[Symbol.toPrimitive];
|
|
162
|
+
if (t !== void 0) {
|
|
163
|
+
var i = t.call(r, e);
|
|
164
|
+
if (typeof i != "object") return i;
|
|
165
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
166
|
+
}
|
|
167
|
+
return (e === "string" ? String : Number)(r);
|
|
168
|
+
}
|
|
169
|
+
function P(r) {
|
|
170
|
+
return _(r) || C(r) || T(r) || A();
|
|
171
|
+
}
|
|
172
|
+
function A() {
|
|
173
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
174
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
175
|
+
}
|
|
176
|
+
function T(r, e) {
|
|
177
|
+
if (r) {
|
|
178
|
+
if (typeof r == "string") return h(r, e);
|
|
179
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
180
|
+
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) ? h(r, e) : void 0;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
function h(r, e) {
|
|
184
|
+
(e == null || e > r.length) && (e = r.length);
|
|
185
|
+
for (var t = 0, i = Array(e); t < e; t++) i[t] = r[t];
|
|
186
|
+
return i;
|
|
187
|
+
}
|
|
188
|
+
function C(r) {
|
|
189
|
+
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
190
|
+
}
|
|
191
|
+
function _(r) {
|
|
192
|
+
if (Array.isArray(r)) return r;
|
|
193
|
+
}
|
|
194
|
+
let z = b([w()], function(r) {
|
|
195
|
+
class e {
|
|
196
|
+
constructor() {
|
|
197
|
+
r(this);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return {
|
|
201
|
+
F: e,
|
|
202
|
+
d: [{
|
|
203
|
+
kind: "method",
|
|
204
|
+
static: !0,
|
|
205
|
+
key: "validate",
|
|
206
|
+
value: function(i, n) {
|
|
207
|
+
return i.__typename !== "LiteralValue" || typeof i.value != "number" || !n.from || !n.to ? !1 : i.value >= n.from && i.value <= n.to;
|
|
208
|
+
}
|
|
209
|
+
}]
|
|
210
|
+
};
|
|
211
|
+
});
|
|
212
|
+
export {
|
|
213
|
+
z as DFlowDataTypeRangeRule
|
|
214
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
+
import { DataTypeIdentifier, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
import { FlowView } from '../../DFlow.view';
|
|
4
|
+
export interface DFlowDataTypeParentRuleConfig {
|
|
5
|
+
type: DataTypeIdentifier;
|
|
6
|
+
}
|
|
7
|
+
export declare class DFlowDataTypeParentRule {
|
|
8
|
+
static validate(value: NodeParameterValue, config: DFlowDataTypeParentRuleConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?: FlowView): boolean;
|
|
9
|
+
}
|