@decaf-ts/ui-decorators 0.20.8 → 0.21.0
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/ui-decorators.cjs +1 -1
- package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs +19 -0
- package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs.map +1 -1
- package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs +15 -0
- package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs.map +1 -0
- package/lib/cjs/graph/catalog/index.cjs +1 -0
- package/lib/cjs/graph/catalog/index.cjs.map +1 -1
- package/lib/cjs/graph/{nodes/category-styles.cjs → category-styles.cjs} +2 -2
- package/lib/cjs/graph/category-styles.cjs.map +1 -0
- package/lib/cjs/graph/index.cjs +1 -1
- package/lib/cjs/graph/index.cjs.map +1 -1
- package/lib/cjs/graph/reader.cjs +26 -0
- package/lib/cjs/graph/reader.cjs.map +1 -1
- package/lib/cjs/graph/snapshot.cjs +0 -691
- package/lib/cjs/graph/snapshot.cjs.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/esm/graph/catalog/GraphManifestCompiler.js +20 -1
- package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +1 -1
- package/lib/esm/graph/catalog/GraphPortManifest.js.map +1 -1
- package/lib/esm/graph/catalog/GraphPortManifestElement.js +11 -0
- package/lib/esm/graph/catalog/GraphPortManifestElement.js.map +1 -0
- package/lib/esm/graph/catalog/index.js +1 -0
- package/lib/esm/graph/catalog/index.js.map +1 -1
- package/lib/esm/graph/{nodes/category-styles.js → category-styles.js} +2 -2
- package/lib/esm/graph/category-styles.js.map +1 -0
- package/lib/esm/graph/index.js +1 -1
- package/lib/esm/graph/index.js.map +1 -1
- package/lib/esm/graph/reader.js +25 -0
- package/lib/esm/graph/reader.js.map +1 -1
- package/lib/esm/graph/snapshot.js +1 -679
- package/lib/esm/graph/snapshot.js.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/types/graph/catalog/GraphPortManifest.d.cts +2 -0
- package/lib/types/graph/catalog/GraphPortManifest.d.mts +2 -0
- package/lib/types/graph/catalog/GraphPortManifestElement.d.cts +7 -0
- package/lib/types/graph/catalog/GraphPortManifestElement.d.mts +7 -0
- package/lib/types/graph/catalog/index.d.cts +1 -0
- package/lib/types/graph/catalog/index.d.mts +1 -0
- package/lib/types/graph/document/GraphNodeInstance.d.cts +20 -0
- package/lib/types/graph/document/GraphNodeInstance.d.mts +20 -0
- package/lib/types/graph/index.d.cts +1 -1
- package/lib/types/graph/index.d.mts +1 -1
- package/lib/types/graph/reader.d.cts +12 -0
- package/lib/types/graph/reader.d.mts +12 -0
- package/lib/types/graph/snapshot.d.cts +4 -144
- package/lib/types/graph/snapshot.d.mts +4 -144
- package/lib/types/graph/types.d.cts +1 -1
- package/lib/types/graph/types.d.mts +1 -1
- package/lib/types/index.d.cts +3 -3
- package/lib/types/index.d.mts +3 -3
- package/package.json +1 -1
- package/lib/cjs/graph/nodes/agents/agent.cjs +0 -110
- package/lib/cjs/graph/nodes/agents/agent.cjs.map +0 -1
- package/lib/cjs/graph/nodes/base.cjs +0 -36
- package/lib/cjs/graph/nodes/base.cjs.map +0 -1
- package/lib/cjs/graph/nodes/boundary/input-value.cjs +0 -57
- package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +0 -1
- package/lib/cjs/graph/nodes/category-styles.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/break.cjs +0 -63
- package/lib/cjs/graph/nodes/flow-control/break.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +0 -67
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +0 -69
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/if.cjs +0 -71
- package/lib/cjs/graph/nodes/flow-control/if.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs +0 -61
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/switch.cjs +0 -126
- package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +0 -1
- package/lib/cjs/graph/nodes/index.cjs +0 -123
- package/lib/cjs/graph/nodes/index.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/foreach.cjs +0 -86
- package/lib/cjs/graph/nodes/loops/foreach.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/until.cjs +0 -74
- package/lib/cjs/graph/nodes/loops/until.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/while.cjs +0 -74
- package/lib/cjs/graph/nodes/loops/while.cjs.map +0 -1
- package/lib/cjs/graph/nodes/manifests.cjs +0 -342
- package/lib/cjs/graph/nodes/manifests.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/chat.cjs +0 -70
- package/lib/cjs/graph/nodes/triggers/chat.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/event.cjs +0 -58
- package/lib/cjs/graph/nodes/triggers/event.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/form.cjs +0 -59
- package/lib/cjs/graph/nodes/triggers/form.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/manual.cjs +0 -60
- package/lib/cjs/graph/nodes/triggers/manual.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/schedule.cjs +0 -60
- package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/webhook.cjs +0 -62
- package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/code.cjs +0 -99
- package/lib/cjs/graph/nodes/utility/code.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/delay.cjs +0 -61
- package/lib/cjs/graph/nodes/utility/delay.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/log.cjs +0 -62
- package/lib/cjs/graph/nodes/utility/log.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/map.cjs +0 -61
- package/lib/cjs/graph/nodes/utility/map.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/merge.cjs +0 -62
- package/lib/cjs/graph/nodes/utility/merge.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/return.cjs +0 -61
- package/lib/cjs/graph/nodes/utility/return.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/utility-log.cjs +0 -66
- package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +0 -1
- package/lib/esm/graph/nodes/agents/agent.js +0 -101
- package/lib/esm/graph/nodes/agents/agent.js.map +0 -1
- package/lib/esm/graph/nodes/base.js +0 -31
- package/lib/esm/graph/nodes/base.js.map +0 -1
- package/lib/esm/graph/nodes/boundary/input-value.js +0 -48
- package/lib/esm/graph/nodes/boundary/input-value.js.map +0 -1
- package/lib/esm/graph/nodes/category-styles.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/break.js +0 -54
- package/lib/esm/graph/nodes/flow-control/break.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/error-boundary.js +0 -58
- package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/human-approval.js +0 -60
- package/lib/esm/graph/nodes/flow-control/human-approval.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/if.js +0 -62
- package/lib/esm/graph/nodes/flow-control/if.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/parallel.js +0 -52
- package/lib/esm/graph/nodes/flow-control/parallel.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/switch.js +0 -117
- package/lib/esm/graph/nodes/flow-control/switch.js.map +0 -1
- package/lib/esm/graph/nodes/index.js +0 -105
- package/lib/esm/graph/nodes/index.js.map +0 -1
- package/lib/esm/graph/nodes/loops/foreach.js +0 -77
- package/lib/esm/graph/nodes/loops/foreach.js.map +0 -1
- package/lib/esm/graph/nodes/loops/until.js +0 -65
- package/lib/esm/graph/nodes/loops/until.js.map +0 -1
- package/lib/esm/graph/nodes/loops/while.js +0 -65
- package/lib/esm/graph/nodes/loops/while.js.map +0 -1
- package/lib/esm/graph/nodes/manifests.js +0 -338
- package/lib/esm/graph/nodes/manifests.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/chat.js +0 -61
- package/lib/esm/graph/nodes/triggers/chat.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/event.js +0 -49
- package/lib/esm/graph/nodes/triggers/event.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/form.js +0 -50
- package/lib/esm/graph/nodes/triggers/form.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/manual.js +0 -51
- package/lib/esm/graph/nodes/triggers/manual.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/schedule.js +0 -51
- package/lib/esm/graph/nodes/triggers/schedule.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/webhook.js +0 -53
- package/lib/esm/graph/nodes/triggers/webhook.js.map +0 -1
- package/lib/esm/graph/nodes/utility/code.js +0 -90
- package/lib/esm/graph/nodes/utility/code.js.map +0 -1
- package/lib/esm/graph/nodes/utility/delay.js +0 -52
- package/lib/esm/graph/nodes/utility/delay.js.map +0 -1
- package/lib/esm/graph/nodes/utility/log.js +0 -53
- package/lib/esm/graph/nodes/utility/log.js.map +0 -1
- package/lib/esm/graph/nodes/utility/map.js +0 -52
- package/lib/esm/graph/nodes/utility/map.js.map +0 -1
- package/lib/esm/graph/nodes/utility/merge.js +0 -53
- package/lib/esm/graph/nodes/utility/merge.js.map +0 -1
- package/lib/esm/graph/nodes/utility/return.js +0 -52
- package/lib/esm/graph/nodes/utility/return.js.map +0 -1
- package/lib/esm/graph/nodes/utility/utility-log.js +0 -57
- package/lib/esm/graph/nodes/utility/utility-log.js.map +0 -1
- package/lib/types/graph/nodes/agents/agent.d.cts +0 -44
- package/lib/types/graph/nodes/agents/agent.d.mts +0 -44
- package/lib/types/graph/nodes/base.d.cts +0 -28
- package/lib/types/graph/nodes/base.d.mts +0 -28
- package/lib/types/graph/nodes/boundary/input-value.d.cts +0 -13
- package/lib/types/graph/nodes/boundary/input-value.d.mts +0 -13
- package/lib/types/graph/nodes/flow-control/break.d.cts +0 -15
- package/lib/types/graph/nodes/flow-control/break.d.mts +0 -15
- package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +0 -12
- package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +0 -12
- package/lib/types/graph/nodes/flow-control/human-approval.d.cts +0 -13
- package/lib/types/graph/nodes/flow-control/human-approval.d.mts +0 -13
- package/lib/types/graph/nodes/flow-control/if.d.cts +0 -16
- package/lib/types/graph/nodes/flow-control/if.d.mts +0 -16
- package/lib/types/graph/nodes/flow-control/parallel.d.cts +0 -11
- package/lib/types/graph/nodes/flow-control/parallel.d.mts +0 -11
- package/lib/types/graph/nodes/flow-control/switch.d.cts +0 -21
- package/lib/types/graph/nodes/flow-control/switch.d.mts +0 -21
- package/lib/types/graph/nodes/index.d.cts +0 -79
- package/lib/types/graph/nodes/index.d.mts +0 -79
- package/lib/types/graph/nodes/loops/foreach.d.cts +0 -19
- package/lib/types/graph/nodes/loops/foreach.d.mts +0 -19
- package/lib/types/graph/nodes/loops/until.d.cts +0 -16
- package/lib/types/graph/nodes/loops/until.d.mts +0 -16
- package/lib/types/graph/nodes/loops/while.d.cts +0 -16
- package/lib/types/graph/nodes/loops/while.d.mts +0 -16
- package/lib/types/graph/nodes/manifests.d.cts +0 -62
- package/lib/types/graph/nodes/manifests.d.mts +0 -62
- package/lib/types/graph/nodes/triggers/chat.d.cts +0 -13
- package/lib/types/graph/nodes/triggers/chat.d.mts +0 -13
- package/lib/types/graph/nodes/triggers/event.d.cts +0 -10
- package/lib/types/graph/nodes/triggers/event.d.mts +0 -10
- package/lib/types/graph/nodes/triggers/form.d.cts +0 -11
- package/lib/types/graph/nodes/triggers/form.d.mts +0 -11
- package/lib/types/graph/nodes/triggers/manual.d.cts +0 -12
- package/lib/types/graph/nodes/triggers/manual.d.mts +0 -12
- package/lib/types/graph/nodes/triggers/schedule.d.cts +0 -11
- package/lib/types/graph/nodes/triggers/schedule.d.mts +0 -11
- package/lib/types/graph/nodes/triggers/webhook.d.cts +0 -11
- package/lib/types/graph/nodes/triggers/webhook.d.mts +0 -11
- package/lib/types/graph/nodes/utility/code.d.cts +0 -31
- package/lib/types/graph/nodes/utility/code.d.mts +0 -31
- package/lib/types/graph/nodes/utility/delay.d.cts +0 -11
- package/lib/types/graph/nodes/utility/delay.d.mts +0 -11
- package/lib/types/graph/nodes/utility/log.d.cts +0 -13
- package/lib/types/graph/nodes/utility/log.d.mts +0 -13
- package/lib/types/graph/nodes/utility/map.d.cts +0 -11
- package/lib/types/graph/nodes/utility/map.d.mts +0 -11
- package/lib/types/graph/nodes/utility/merge.d.cts +0 -12
- package/lib/types/graph/nodes/utility/merge.d.mts +0 -12
- package/lib/types/graph/nodes/utility/return.d.cts +0 -11
- package/lib/types/graph/nodes/utility/return.d.mts +0 -11
- package/lib/types/graph/nodes/utility/utility-log.d.cts +0 -15
- package/lib/types/graph/nodes/utility/utility-log.d.mts +0 -15
- /package/lib/types/graph/{nodes/category-styles.d.cts → category-styles.d.cts} +0 -0
- /package/lib/types/graph/{nodes/category-styles.d.mts → category-styles.d.mts} +0 -0
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ParallelFlowNode = void 0;
|
|
4
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else
|
|
9
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
-
if (d = decorators[i])
|
|
11
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
-
};
|
|
14
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
-
return Reflect.metadata(k, v);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @module ui-decorators/graph/nodes/flow-control/parallel
|
|
20
|
-
* @summary Parallel flow-control node declaration (DECAF-32 §22.2.2).
|
|
21
|
-
* @description Parallel — splits execution into concurrent branches.
|
|
22
|
-
*/
|
|
23
|
-
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
24
|
-
const decorators_js_1 = require("./../../../ui/decorators.cjs");
|
|
25
|
-
const decorators_js_2 = require("./../../decorators.cjs");
|
|
26
|
-
// Ensure category styles are registered (idempotent).
|
|
27
|
-
require("./../category-styles.cjs");
|
|
28
|
-
let ParallelFlowNode = class ParallelFlowNode extends decorator_validation_1.Model {
|
|
29
|
-
};
|
|
30
|
-
exports.ParallelFlowNode = ParallelFlowNode;
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, decorator_validation_1.required)(),
|
|
33
|
-
(0, decorators_js_1.uielement)("textarea", { label: "Input value", placeholder: "Value to fan out" }),
|
|
34
|
-
(0, decorators_js_2.input)({ handle: "value" }),
|
|
35
|
-
__metadata("design:type", Object)
|
|
36
|
-
], ParallelFlowNode.prototype, "value", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, decorator_validation_1.required)(),
|
|
39
|
-
(0, decorators_js_1.uielement)("input", { label: "Branches", placeholder: "Collected branch outputs" }),
|
|
40
|
-
(0, decorators_js_2.output)({ handle: "branches" }),
|
|
41
|
-
__metadata("design:type", Array)
|
|
42
|
-
], ParallelFlowNode.prototype, "branches", void 0);
|
|
43
|
-
exports.ParallelFlowNode = ParallelFlowNode = __decorate([
|
|
44
|
-
(0, decorators_js_2.node)("core.flow.parallel", {
|
|
45
|
-
kind: "core.flow.parallel",
|
|
46
|
-
category: "Flow Control",
|
|
47
|
-
color: "#f59e0b",
|
|
48
|
-
icon: "ti-arrows-vertical",
|
|
49
|
-
width: 96,
|
|
50
|
-
height: 96,
|
|
51
|
-
labels: ["flow", "parallel", "concurrent"],
|
|
52
|
-
metadata: {
|
|
53
|
-
title: "Parallel",
|
|
54
|
-
description: "Splits execution into concurrent branches. All branches run in parallel and outputs are collected.",
|
|
55
|
-
branchCount: 2,
|
|
56
|
-
},
|
|
57
|
-
}),
|
|
58
|
-
(0, decorator_validation_1.model)()
|
|
59
|
-
], ParallelFlowNode);
|
|
60
|
-
//# sourceMappingURL=parallel.js.map
|
|
61
|
-
//# sourceMappingURL=parallel.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph/nodes/flow-control/parallel.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/parallel.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,M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,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAChD,UAAU,CAAC;IACP,IAAA,+BAAQ,GAAE;IACV,IAAA,yBAAS,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IAClF,IAAA,sBAAM,EAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IAC9B,UAAU,CAAC,aAAa,EAAE,KAAK,CAAC;CACnC,EAAE,gBAAgB,CAAC,SAAS,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;AACnD,2BAAA,gBAAgB,GAAG,UAAU,CAAC;IAC1B,IAAA,oBAAI,EAAC,oBAAoB,EAAE;QACvB,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,cAAc;QACxB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC;QAC1C,QAAQ,EAAE;YACN,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,oGAAoG;YACjH,WAAW,EAAE,CAAC;SACjB;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,gBAAgB,CAAC,CAAC;AAErB,oCAAoC"}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SwitchFlowNode = void 0;
|
|
4
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else
|
|
9
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
-
if (d = decorators[i])
|
|
11
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
-
};
|
|
14
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
-
return Reflect.metadata(k, v);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @module ui-decorators/graph/nodes/flow-control/switch
|
|
20
|
-
* @summary Switch flow-control node declaration (DECAF-32 §22.2.2).
|
|
21
|
-
* @description Switch — multi-branch. Routes the input to one of the case
|
|
22
|
-
* output ports or `default` based on matching conditions. Each case defines
|
|
23
|
-
* a `SwitchCaseCondition` (graphical or code mode) and a dedicated output
|
|
24
|
-
* port. Cases are stored in `metadata.switch.cases` and the renderer creates
|
|
25
|
-
* dynamic output ports from them (DECAF-32 §22.2.2).
|
|
26
|
-
*
|
|
27
|
-
* The node grows in height as cases are added. Each case gets its own
|
|
28
|
-
* output port on the right side, labeled with the case label.
|
|
29
|
-
*/
|
|
30
|
-
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
31
|
-
const decorators_js_1 = require("./../../../ui/decorators.cjs");
|
|
32
|
-
const decorators_js_2 = require("./../../decorators.cjs");
|
|
33
|
-
const constants_js_1 = require("./../../constants.cjs");
|
|
34
|
-
const reader_js_1 = require("./../../reader.cjs");
|
|
35
|
-
const base_js_1 = require("./../base.cjs");
|
|
36
|
-
// Ensure category styles are registered (idempotent).
|
|
37
|
-
require("./../category-styles.cjs");
|
|
38
|
-
let SwitchFlowNode = class SwitchFlowNode extends base_js_1.GraphNode {
|
|
39
|
-
/**
|
|
40
|
-
* Computes the node's ports, size, and data patch from the given switch
|
|
41
|
-
* metadata. Each case gets its own output port on the right side; the
|
|
42
|
-
* `default` port always renders **last** (DECAF-32 §21 port-ordering rule,
|
|
43
|
-
* DECAF-34 §6.2). When `hasDefault` is `false`, the `default` output port
|
|
44
|
-
* is omitted entirely. The node grows in height as cases are added.
|
|
45
|
-
*
|
|
46
|
-
* @param meta - The switch metadata patch (`metadata.switch`), carrying
|
|
47
|
-
* the cases and the optional default-port configuration.
|
|
48
|
-
* @returns The computed {@link NodeMetadataChange}: reordered ports
|
|
49
|
-
* (case outputs inserted before the optional default), the grown size,
|
|
50
|
-
* and the `switchMetadata` data patch.
|
|
51
|
-
*/
|
|
52
|
-
static applyMetadata(meta) {
|
|
53
|
-
const definition = (0, reader_js_1.graphDefinitionOf)(this);
|
|
54
|
-
const defaultPortName = meta.defaultPort ?? "default";
|
|
55
|
-
const hasDefault = meta.hasDefault === true;
|
|
56
|
-
// Base ports excluding any port that collides with a case output port.
|
|
57
|
-
const basePorts = definition.ports.filter((p) => !meta.cases.some((c) => c.outputPort === p.property));
|
|
58
|
-
// Separate the default output port so it can be placed last (or omitted).
|
|
59
|
-
const nonDefaultPorts = basePorts.filter((p) => p.property !== defaultPortName);
|
|
60
|
-
const defaultPort = basePorts.find((p) => p.property === defaultPortName);
|
|
61
|
-
const casePorts = meta.cases.map((c) => ({
|
|
62
|
-
property: c.outputPort,
|
|
63
|
-
name: c.label,
|
|
64
|
-
direction: constants_js_1.PortDirection.OUTPUT,
|
|
65
|
-
label: c.label,
|
|
66
|
-
required: false,
|
|
67
|
-
hidden: false,
|
|
68
|
-
path: c.outputPort,
|
|
69
|
-
}));
|
|
70
|
-
// Port order: inputs/non-default outputs first, case outputs next, default last.
|
|
71
|
-
const ports = [...nonDefaultPorts, ...casePorts];
|
|
72
|
-
if (hasDefault && defaultPort) {
|
|
73
|
-
ports.push(defaultPort);
|
|
74
|
-
}
|
|
75
|
-
const caseCount = meta.cases.length;
|
|
76
|
-
return {
|
|
77
|
-
ports,
|
|
78
|
-
size: (0, constants_js_1.graphNodeSizeOf)(definition, { cases: caseCount }),
|
|
79
|
-
dataPatch: { switchMetadata: meta },
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
exports.SwitchFlowNode = SwitchFlowNode;
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, decorator_validation_1.required)(),
|
|
86
|
-
(0, decorators_js_1.uielement)("textarea", { label: "Input value", placeholder: "Value to switch on" }),
|
|
87
|
-
(0, decorators_js_2.input)({ handle: "value" }),
|
|
88
|
-
__metadata("design:type", Object)
|
|
89
|
-
], SwitchFlowNode.prototype, "value", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, decorator_validation_1.required)(),
|
|
92
|
-
(0, decorators_js_1.uielement)("input", { label: "Default", placeholder: "Default output when no case matches" }),
|
|
93
|
-
(0, decorators_js_2.output)({ handle: "default" }),
|
|
94
|
-
__metadata("design:type", Object)
|
|
95
|
-
], SwitchFlowNode.prototype, "default", void 0);
|
|
96
|
-
exports.SwitchFlowNode = SwitchFlowNode = __decorate([
|
|
97
|
-
(0, decorators_js_2.node)("core.flow.switch", {
|
|
98
|
-
kind: "core.flow.switch",
|
|
99
|
-
category: "Flow Control",
|
|
100
|
-
color: "#f59e0b",
|
|
101
|
-
icon: "ti-arrows-shuffle",
|
|
102
|
-
width: 120,
|
|
103
|
-
height: 140,
|
|
104
|
-
sizeRules: [
|
|
105
|
-
{
|
|
106
|
-
type: "parameterCount",
|
|
107
|
-
parameter: "cases",
|
|
108
|
-
dimension: "height",
|
|
109
|
-
perItem: 24,
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
labels: ["flow", "switch", "multi-branch"],
|
|
113
|
-
metadata: {
|
|
114
|
-
title: "Switch",
|
|
115
|
-
description: "Multi-branch switch. Routes the input to the first matching case output, or the default output.",
|
|
116
|
-
switch: {
|
|
117
|
-
cases: [],
|
|
118
|
-
defaultPort: "default",
|
|
119
|
-
hasDefault: false,
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
}),
|
|
123
|
-
(0, decorator_validation_1.model)()
|
|
124
|
-
], SwitchFlowNode);
|
|
125
|
-
//# sourceMappingURL=switch.js.map
|
|
126
|
-
//# sourceMappingURL=switch.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph/nodes/flow-control/switch.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/switch.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;IAClJ,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,cAAc,CAAC,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O,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;IAC5F,IAAA,sBAAM,EAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAC7B,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,cAAc,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;AAChD,yBAAA,cAAc,GAAG,UAAU,CAAC;IACxB,IAAA,oBAAI,EAAC,kBAAkB,EAAE;QACrB,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,cAAc;QACxB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,SAAS,EAAE;YACP;gBACI,IAAI,EAAE,gBAAgB;gBACtB,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE,QAAQ;gBACnB,OAAO,EAAE,EAAE;aACd;SACJ;QACD,MAAM,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC;QAC1C,QAAQ,EAAE;YACN,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,iGAAiG;YAC9G,MAAM,EAAE;gBACJ,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,SAAS;gBACtB,UAAU,EAAE,KAAK;aACpB;SACJ;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,cAAc,CAAC,CAAC;AAEnB,kCAAkC"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.GRAPH_BOUNDARY_NODES = exports.GRAPH_LOOP_NODES = exports.GRAPH_FLOW_CONTROL_NODES = exports.GRAPH_TRIGGER_NODES = void 0;
|
|
18
|
-
/**
|
|
19
|
-
* @module ui-decorators/graph/nodes
|
|
20
|
-
* @summary Shared node kind declarations (DECAF-32 §22.2, DECAF-50 Phase A).
|
|
21
|
-
* @description Canonical `@node`-decorated classes for the ALFRED-5 node kind
|
|
22
|
-
* taxonomy, laid out one node per file under `nodes/<category>/<node>.ts`:
|
|
23
|
-
* triggers (§22.2.1), flow-control and utility nodes (§22.2.2–22.2.3), the
|
|
24
|
-
* Agent node (§21.3), the three loop kinds (`core.loop.foreach/while/until`,
|
|
25
|
-
* §5.9), and the workflow input-value boundary node. Shared non-node support
|
|
26
|
-
* (base class, category styles, manifests) lives in sibling files under the
|
|
27
|
-
* same tree. Consumers (for-angular, ALFRED, etc.) import these declarations
|
|
28
|
-
* to populate node palettes, registries, and reference snapshots.
|
|
29
|
-
*/
|
|
30
|
-
__exportStar(require("./base.cjs"), exports);
|
|
31
|
-
__exportStar(require("./category-styles.cjs"), exports);
|
|
32
|
-
__exportStar(require("./flow-control/break.cjs"), exports);
|
|
33
|
-
__exportStar(require("./flow-control/error-boundary.cjs"), exports);
|
|
34
|
-
__exportStar(require("./flow-control/human-approval.cjs"), exports);
|
|
35
|
-
__exportStar(require("./flow-control/if.cjs"), exports);
|
|
36
|
-
__exportStar(require("./flow-control/parallel.cjs"), exports);
|
|
37
|
-
__exportStar(require("./flow-control/switch.cjs"), exports);
|
|
38
|
-
__exportStar(require("./utility/code.cjs"), exports);
|
|
39
|
-
__exportStar(require("./utility/delay.cjs"), exports);
|
|
40
|
-
__exportStar(require("./utility/log.cjs"), exports);
|
|
41
|
-
__exportStar(require("./utility/map.cjs"), exports);
|
|
42
|
-
__exportStar(require("./utility/merge.cjs"), exports);
|
|
43
|
-
__exportStar(require("./utility/return.cjs"), exports);
|
|
44
|
-
__exportStar(require("./utility/utility-log.cjs"), exports);
|
|
45
|
-
__exportStar(require("./triggers/chat.cjs"), exports);
|
|
46
|
-
__exportStar(require("./triggers/event.cjs"), exports);
|
|
47
|
-
__exportStar(require("./triggers/form.cjs"), exports);
|
|
48
|
-
__exportStar(require("./triggers/manual.cjs"), exports);
|
|
49
|
-
__exportStar(require("./triggers/schedule.cjs"), exports);
|
|
50
|
-
__exportStar(require("./triggers/webhook.cjs"), exports);
|
|
51
|
-
__exportStar(require("./agents/agent.cjs"), exports);
|
|
52
|
-
__exportStar(require("./loops/foreach.cjs"), exports);
|
|
53
|
-
__exportStar(require("./loops/until.cjs"), exports);
|
|
54
|
-
__exportStar(require("./loops/while.cjs"), exports);
|
|
55
|
-
__exportStar(require("./boundary/input-value.cjs"), exports);
|
|
56
|
-
__exportStar(require("./manifests.cjs"), exports);
|
|
57
|
-
const break_js_1 = require("./flow-control/break.cjs");
|
|
58
|
-
const error_boundary_js_1 = require("./flow-control/error-boundary.cjs");
|
|
59
|
-
const human_approval_js_1 = require("./flow-control/human-approval.cjs");
|
|
60
|
-
const if_js_1 = require("./flow-control/if.cjs");
|
|
61
|
-
const parallel_js_1 = require("./flow-control/parallel.cjs");
|
|
62
|
-
const switch_js_1 = require("./flow-control/switch.cjs");
|
|
63
|
-
const code_js_1 = require("./utility/code.cjs");
|
|
64
|
-
const delay_js_1 = require("./utility/delay.cjs");
|
|
65
|
-
const log_js_1 = require("./utility/log.cjs");
|
|
66
|
-
const map_js_1 = require("./utility/map.cjs");
|
|
67
|
-
const merge_js_1 = require("./utility/merge.cjs");
|
|
68
|
-
const return_js_1 = require("./utility/return.cjs");
|
|
69
|
-
const utility_log_js_1 = require("./utility/utility-log.cjs");
|
|
70
|
-
const chat_js_1 = require("./triggers/chat.cjs");
|
|
71
|
-
const event_js_1 = require("./triggers/event.cjs");
|
|
72
|
-
const form_js_1 = require("./triggers/form.cjs");
|
|
73
|
-
const manual_js_1 = require("./triggers/manual.cjs");
|
|
74
|
-
const schedule_js_1 = require("./triggers/schedule.cjs");
|
|
75
|
-
const webhook_js_1 = require("./triggers/webhook.cjs");
|
|
76
|
-
const foreach_js_1 = require("./loops/foreach.cjs");
|
|
77
|
-
const until_js_1 = require("./loops/until.cjs");
|
|
78
|
-
const while_js_1 = require("./loops/while.cjs");
|
|
79
|
-
const input_value_js_1 = require("./boundary/input-value.cjs");
|
|
80
|
-
/**
|
|
81
|
-
* All built-in trigger node constructors.
|
|
82
|
-
*/
|
|
83
|
-
exports.GRAPH_TRIGGER_NODES = [
|
|
84
|
-
manual_js_1.ManualTriggerNode,
|
|
85
|
-
webhook_js_1.WebhookTriggerNode,
|
|
86
|
-
schedule_js_1.ScheduleTriggerNode,
|
|
87
|
-
event_js_1.EventTriggerNode,
|
|
88
|
-
form_js_1.FormTriggerNode,
|
|
89
|
-
chat_js_1.ChatTriggerNode,
|
|
90
|
-
];
|
|
91
|
-
/**
|
|
92
|
-
* All built-in flow-control node constructors.
|
|
93
|
-
*/
|
|
94
|
-
exports.GRAPH_FLOW_CONTROL_NODES = [
|
|
95
|
-
if_js_1.IfFlowNode,
|
|
96
|
-
switch_js_1.SwitchFlowNode,
|
|
97
|
-
parallel_js_1.ParallelFlowNode,
|
|
98
|
-
merge_js_1.MergeFlowNode,
|
|
99
|
-
map_js_1.MapFlowNode,
|
|
100
|
-
delay_js_1.DelayFlowNode,
|
|
101
|
-
error_boundary_js_1.ErrorBoundaryFlowNode,
|
|
102
|
-
human_approval_js_1.HumanApprovalFlowNode,
|
|
103
|
-
return_js_1.ReturnFlowNode,
|
|
104
|
-
code_js_1.CodeFlowNode,
|
|
105
|
-
log_js_1.LogFlowNode,
|
|
106
|
-
utility_log_js_1.UtilityLogNode,
|
|
107
|
-
break_js_1.BreakFlowNode,
|
|
108
|
-
];
|
|
109
|
-
/**
|
|
110
|
-
* All built-in loop node constructors (shared declarations of the
|
|
111
|
-
* `core.loop.*` system kinds).
|
|
112
|
-
*/
|
|
113
|
-
exports.GRAPH_LOOP_NODES = [
|
|
114
|
-
foreach_js_1.GraphForeachLoopNode,
|
|
115
|
-
while_js_1.GraphWhileLoopNode,
|
|
116
|
-
until_js_1.GraphUntilLoopNode,
|
|
117
|
-
];
|
|
118
|
-
/**
|
|
119
|
-
* All built-in boundary node constructors.
|
|
120
|
-
*/
|
|
121
|
-
exports.GRAPH_BOUNDARY_NODES = [input_value_js_1.GraphInputValueNode];
|
|
122
|
-
//# sourceMappingURL=index.js.map
|
|
123
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph/nodes/index.cjs","sourceRoot":"","sources":["graph/nodes/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;GAWG;AACH,4CAA0B;AAC1B,uDAAqC;AACrC,0DAAwC;AACxC,mEAAiD;AACjD,mEAAiD;AACjD,uDAAqC;AACrC,6DAA2C;AAC3C,2DAAyC;AACzC,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,sDAAoC;AACpC,2DAAyC;AACzC,qDAAmC;AACnC,sDAAoC;AACpC,qDAAmC;AACnC,uDAAqC;AACrC,yDAAuC;AACvC,wDAAsC;AACtC,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,mDAAiC;AACjC,4DAA0C;AAC1C,iDAA+B;AAC/B,sDAAwD;AACxD,wEAAyE;AACzE,wEAAyE;AACzE,gDAAkD;AAClD,4DAA8D;AAC9D,wDAA0D;AAC1D,+CAAiD;AACjD,iDAAmD;AACnD,6CAA+C;AAC/C,6CAA+C;AAC/C,iDAAmD;AACnD,mDAAqD;AACrD,6DAA0D;AAC1D,gDAAqD;AACrD,kDAAuD;AACvD,gDAAqD;AACrD,oDAAyD;AACzD,wDAA6D;AAC7D,sDAA2D;AAC3D,mDAA0D;AAC1D,+CAAsD;AACtD,+CAAsD;AACtD,8DAAgE;AAChE;;GAEG;AACU,QAAA,mBAAmB,GAAG;IAC/B,6BAAiB;IACjB,+BAAkB;IAClB,iCAAmB;IACnB,2BAAgB;IAChB,yBAAe;IACf,yBAAe;CAClB,CAAC;AACF;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACpC,kBAAU;IACV,0BAAc;IACd,8BAAgB;IAChB,wBAAa;IACb,oBAAW;IACX,wBAAa;IACb,yCAAqB;IACrB,yCAAqB;IACrB,0BAAc;IACd,sBAAY;IACZ,oBAAW;IACX,+BAAc;IACd,wBAAa;CAChB,CAAC;AACF;;;GAGG;AACU,QAAA,gBAAgB,GAAG;IAC5B,iCAAoB;IACpB,6BAAkB;IAClB,6BAAkB;CACrB,CAAC;AACF;;GAEG;AACU,QAAA,oBAAoB,GAAG,CAAC,oCAAmB,CAAC,CAAC;AAC1D,iCAAiC"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphForeachLoopNode = void 0;
|
|
4
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else
|
|
9
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
-
if (d = decorators[i])
|
|
11
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
-
};
|
|
14
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
-
return Reflect.metadata(k, v);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @module ui-decorators/graph/nodes/loops/foreach
|
|
20
|
-
* @summary Foreach loop node declaration.
|
|
21
|
-
* @description Shared declaration for the `core.loop.foreach` system node
|
|
22
|
-
* kind (decorator id `graph-foreach-loop-node`), ported from the for-angular
|
|
23
|
-
* demo app so the loop kinds become shared canvas nodes. Its executor is
|
|
24
|
-
* built into the integrations engine (`ForeachGraphNodeExecutor`). The
|
|
25
|
-
* loop-body workflow is demo/app-side content and is not part of the shared
|
|
26
|
-
* declaration — the shared class carries the port/metadata shape only.
|
|
27
|
-
*/
|
|
28
|
-
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
29
|
-
const decorators_js_1 = require("./../../../ui/decorators.cjs");
|
|
30
|
-
const decorators_js_2 = require("./../../decorators.cjs");
|
|
31
|
-
// Ensure category styles are registered (idempotent).
|
|
32
|
-
require("./../category-styles.cjs");
|
|
33
|
-
let GraphForeachLoopNode = class GraphForeachLoopNode extends decorator_validation_1.Model {
|
|
34
|
-
};
|
|
35
|
-
exports.GraphForeachLoopNode = GraphForeachLoopNode;
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, decorator_validation_1.required)(),
|
|
38
|
-
(0, decorators_js_1.uielement)('textarea', { label: 'Items', placeholder: 'Array to iterate over' }),
|
|
39
|
-
(0, decorators_js_2.input)({ handle: 'items' }),
|
|
40
|
-
__metadata("design:type", Array)
|
|
41
|
-
], GraphForeachLoopNode.prototype, "items", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, decorator_validation_1.required)(),
|
|
44
|
-
(0, decorators_js_1.uielement)('input', { label: 'Slice size', placeholder: 'Items per iteration (default 1)' }),
|
|
45
|
-
(0, decorators_js_2.input)({ handle: 'slice' }),
|
|
46
|
-
__metadata("design:type", Number)
|
|
47
|
-
], GraphForeachLoopNode.prototype, "slice", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, decorator_validation_1.required)(),
|
|
50
|
-
(0, decorators_js_2.output)({ handle: 'item' }),
|
|
51
|
-
__metadata("design:type", Object)
|
|
52
|
-
], GraphForeachLoopNode.prototype, "item", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, decorator_validation_1.required)(),
|
|
55
|
-
(0, decorators_js_2.connection)({ handle: 'loop', connectionRules: { allowSelf: true, maxConnections: 1 } }),
|
|
56
|
-
__metadata("design:type", Object)
|
|
57
|
-
], GraphForeachLoopNode.prototype, "loop", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, decorator_validation_1.required)(),
|
|
60
|
-
(0, decorators_js_2.output)({ handle: 'completed' }),
|
|
61
|
-
__metadata("design:type", Array)
|
|
62
|
-
], GraphForeachLoopNode.prototype, "completed", void 0);
|
|
63
|
-
exports.GraphForeachLoopNode = GraphForeachLoopNode = __decorate([
|
|
64
|
-
(0, decorators_js_2.node)('graph-foreach-loop-node', {
|
|
65
|
-
kind: 'core.loop.foreach',
|
|
66
|
-
category: 'Loop',
|
|
67
|
-
color: '#eab308',
|
|
68
|
-
icon: 'ti-repeat',
|
|
69
|
-
width: 120,
|
|
70
|
-
height: 140,
|
|
71
|
-
labels: ['loop', 'iteration', 'foreach'],
|
|
72
|
-
metadata: {
|
|
73
|
-
title: 'Foreach loop',
|
|
74
|
-
description: 'Iterates over an array input and executes the body once per item (or per slice of items).',
|
|
75
|
-
loop: {
|
|
76
|
-
maxIterations: 100,
|
|
77
|
-
itemPort: 'item',
|
|
78
|
-
resultPort: 'result',
|
|
79
|
-
slice: 1,
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
}),
|
|
83
|
-
(0, decorator_validation_1.model)()
|
|
84
|
-
], GraphForeachLoopNode);
|
|
85
|
-
//# sourceMappingURL=foreach.js.map
|
|
86
|
-
//# sourceMappingURL=foreach.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph/nodes/loops/foreach.cjs","sourceRoot":"","sources":["graph/nodes/loops/foreach.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;IAClJ,OA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4BAAK,GAAE;CACV,EAAE,oBAAoB,CAAC,CAAC;AAEzB,mCAAmC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphUntilLoopNode = void 0;
|
|
4
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else
|
|
9
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
-
if (d = decorators[i])
|
|
11
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
-
};
|
|
14
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
-
return Reflect.metadata(k, v);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @module ui-decorators/graph/nodes/loops/until
|
|
20
|
-
* @summary Until loop node declaration.
|
|
21
|
-
* @description Shared declaration for the `core.loop.until` system node kind
|
|
22
|
-
* (decorator id `graph-until-loop-node`), ported from the for-angular demo
|
|
23
|
-
* app so the loop kinds become shared canvas nodes. Its executor is built
|
|
24
|
-
* into the integrations engine (`UntilGraphNodeExecutor`). The loop-body
|
|
25
|
-
* workflow is demo/app-side content and is not part of the shared
|
|
26
|
-
* declaration — the shared class carries the port/metadata shape only.
|
|
27
|
-
*/
|
|
28
|
-
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
29
|
-
const decorators_js_1 = require("./../../../ui/decorators.cjs");
|
|
30
|
-
const decorators_js_2 = require("./../../decorators.cjs");
|
|
31
|
-
// Ensure category styles are registered (idempotent).
|
|
32
|
-
require("./../category-styles.cjs");
|
|
33
|
-
let GraphUntilLoopNode = class GraphUntilLoopNode extends decorator_validation_1.Model {
|
|
34
|
-
};
|
|
35
|
-
exports.GraphUntilLoopNode = GraphUntilLoopNode;
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, decorator_validation_1.required)(),
|
|
38
|
-
(0, decorators_js_1.uielement)('input', { label: 'State', placeholder: 'Initial state' }),
|
|
39
|
-
(0, decorators_js_2.input)({ handle: 'state' }),
|
|
40
|
-
__metadata("design:type", Object)
|
|
41
|
-
], GraphUntilLoopNode.prototype, "state", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, decorator_validation_1.required)(),
|
|
44
|
-
(0, decorators_js_1.uielement)('input', { label: 'Final state', placeholder: 'Final state after loop' }),
|
|
45
|
-
(0, decorators_js_2.output)({ handle: 'state' }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], GraphUntilLoopNode.prototype, "stateOut", void 0);
|
|
48
|
-
exports.GraphUntilLoopNode = GraphUntilLoopNode = __decorate([
|
|
49
|
-
(0, decorators_js_2.node)('graph-until-loop-node', {
|
|
50
|
-
kind: 'core.loop.until',
|
|
51
|
-
category: 'Loop',
|
|
52
|
-
color: '#eab308',
|
|
53
|
-
icon: 'ti-player-stop',
|
|
54
|
-
width: 96,
|
|
55
|
-
height: 96,
|
|
56
|
-
labels: ['loop', 'conditional', 'until'],
|
|
57
|
-
metadata: {
|
|
58
|
-
title: 'Until loop',
|
|
59
|
-
description: 'Repeats the body until the condition is true (post-condition, runs at least once).',
|
|
60
|
-
loop: {
|
|
61
|
-
maxIterations: 50,
|
|
62
|
-
statePort: 'state',
|
|
63
|
-
condition: {
|
|
64
|
-
type: 'greaterThanOrEqual',
|
|
65
|
-
left: 'iteration',
|
|
66
|
-
right: 2,
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
}),
|
|
71
|
-
(0, decorator_validation_1.model)()
|
|
72
|
-
], GraphUntilLoopNode);
|
|
73
|
-
//# sourceMappingURL=until.js.map
|
|
74
|
-
//# sourceMappingURL=until.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph/nodes/loops/until.cjs","sourceRoot":"","sources":["graph/nodes/loops/until.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;IAClJ,OAAO,CAAC,GAAG,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,CAAC;IAC5B,IAAA,oBAAI,EAAC,uBAAuB,EAAE;QAC1B,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC;QACxC,QAAQ,EAAE;YACN,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,oFAAoF;YACjG,IAAI,EAAE;gBACF,aAAa,EAAE,EAAE;gBACjB,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE;oBACP,IAAI,EAAE,oBAAoB;oBAC1B,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,CAAC;iBACX;aACJ;SACJ;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,kBAAkB,CAAC,CAAC;AAEvB,iCAAiC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphWhileLoopNode = void 0;
|
|
4
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else
|
|
9
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
-
if (d = decorators[i])
|
|
11
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
-
};
|
|
14
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
-
return Reflect.metadata(k, v);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @module ui-decorators/graph/nodes/loops/while
|
|
20
|
-
* @summary While loop node declaration.
|
|
21
|
-
* @description Shared declaration for the `core.loop.while` system node kind
|
|
22
|
-
* (decorator id `graph-while-loop-node`), ported from the for-angular demo
|
|
23
|
-
* app so the loop kinds become shared canvas nodes. Its executor is built
|
|
24
|
-
* into the integrations engine (`WhileGraphNodeExecutor`). The loop-body
|
|
25
|
-
* workflow is demo/app-side content and is not part of the shared
|
|
26
|
-
* declaration — the shared class carries the port/metadata shape only.
|
|
27
|
-
*/
|
|
28
|
-
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
29
|
-
const decorators_js_1 = require("./../../../ui/decorators.cjs");
|
|
30
|
-
const decorators_js_2 = require("./../../decorators.cjs");
|
|
31
|
-
// Ensure category styles are registered (idempotent).
|
|
32
|
-
require("./../category-styles.cjs");
|
|
33
|
-
let GraphWhileLoopNode = class GraphWhileLoopNode extends decorator_validation_1.Model {
|
|
34
|
-
};
|
|
35
|
-
exports.GraphWhileLoopNode = GraphWhileLoopNode;
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, decorator_validation_1.required)(),
|
|
38
|
-
(0, decorators_js_1.uielement)('input', { label: 'State', placeholder: 'Initial state' }),
|
|
39
|
-
(0, decorators_js_2.input)({ handle: 'state' }),
|
|
40
|
-
__metadata("design:type", Object)
|
|
41
|
-
], GraphWhileLoopNode.prototype, "state", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, decorator_validation_1.required)(),
|
|
44
|
-
(0, decorators_js_1.uielement)('input', { label: 'Final state', placeholder: 'Final state after loop' }),
|
|
45
|
-
(0, decorators_js_2.output)({ handle: 'state' }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], GraphWhileLoopNode.prototype, "stateOut", void 0);
|
|
48
|
-
exports.GraphWhileLoopNode = GraphWhileLoopNode = __decorate([
|
|
49
|
-
(0, decorators_js_2.node)('graph-while-loop-node', {
|
|
50
|
-
kind: 'core.loop.while',
|
|
51
|
-
category: 'Loop',
|
|
52
|
-
color: '#eab308',
|
|
53
|
-
icon: 'ti-arrows-loop',
|
|
54
|
-
width: 96,
|
|
55
|
-
height: 96,
|
|
56
|
-
labels: ['loop', 'conditional', 'while'],
|
|
57
|
-
metadata: {
|
|
58
|
-
title: 'While loop',
|
|
59
|
-
description: 'Repeats the body while the condition is true (pre-condition).',
|
|
60
|
-
loop: {
|
|
61
|
-
maxIterations: 50,
|
|
62
|
-
statePort: 'state',
|
|
63
|
-
condition: {
|
|
64
|
-
type: 'lessThan',
|
|
65
|
-
left: 'iteration',
|
|
66
|
-
right: 3,
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
}),
|
|
71
|
-
(0, decorator_validation_1.model)()
|
|
72
|
-
], GraphWhileLoopNode);
|
|
73
|
-
//# sourceMappingURL=while.js.map
|
|
74
|
-
//# sourceMappingURL=while.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph/nodes/loops/while.cjs","sourceRoot":"","sources":["graph/nodes/loops/while.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO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