@rkmodules/rules 0.0.91 → 0.0.93
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/index.cjs.css +12 -0
- package/dist/index.cjs.js +26 -25
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.css +12 -0
- package/dist/index.esm.js +26 -25
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/Engine/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs.css
CHANGED
|
@@ -10,12 +10,17 @@
|
|
|
10
10
|
transform: initial;
|
|
11
11
|
left: initial;
|
|
12
12
|
right: initial;
|
|
13
|
+
top: initial;
|
|
13
14
|
background: initial;
|
|
14
15
|
padding: 2px 8px;
|
|
15
16
|
display: flex;
|
|
16
17
|
gap: 8px;
|
|
17
18
|
align-items: center;
|
|
18
19
|
min-height: 22px;
|
|
20
|
+
|
|
21
|
+
display: grid;
|
|
22
|
+
grid-template-columns: subgrid;
|
|
23
|
+
grid-column: 1 / 3;
|
|
19
24
|
}
|
|
20
25
|
.Port_XWl7K.required_ofB6J {
|
|
21
26
|
font-weight: bold;
|
|
@@ -23,6 +28,7 @@
|
|
|
23
28
|
|
|
24
29
|
.Port_XWl7K.react-flow__handle-right {
|
|
25
30
|
text-align: right;
|
|
31
|
+
grid-column: 2 / 3;
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
.Port_XWl7K.react-flow__handle::after {
|
|
@@ -186,6 +192,12 @@
|
|
|
186
192
|
max-width: 200px;
|
|
187
193
|
}
|
|
188
194
|
|
|
195
|
+
.Ports_fVs5I {
|
|
196
|
+
display: grid;
|
|
197
|
+
grid-template-columns: auto 1fr;
|
|
198
|
+
grid-auto-rows: 26px;
|
|
199
|
+
}
|
|
200
|
+
|
|
189
201
|
.Body_ptEZP {
|
|
190
202
|
margin: 2px auto;
|
|
191
203
|
padding: 8px;
|
package/dist/index.cjs.js
CHANGED
|
@@ -2041,9 +2041,10 @@ var Engine = /** @class */ (function () {
|
|
|
2041
2041
|
});
|
|
2042
2042
|
});
|
|
2043
2043
|
};
|
|
2044
|
-
Engine.prototype.runDetailed = function (
|
|
2045
|
-
return __awaiter(this,
|
|
2044
|
+
Engine.prototype.runDetailed = function (node_1) {
|
|
2045
|
+
return __awaiter(this, arguments, void 0, function (node, inputs) {
|
|
2046
2046
|
var _this = this;
|
|
2047
|
+
if (inputs === void 0) { inputs = {}; }
|
|
2047
2048
|
return __generator(this, function (_a) {
|
|
2048
2049
|
return [2 /*return*/, new Promise(function (resolve) {
|
|
2049
2050
|
var unsub = _this.subscribe("result", function (event) {
|
|
@@ -5072,7 +5073,7 @@ var Output = function (_a) {
|
|
|
5072
5073
|
normalized.label || name)));
|
|
5073
5074
|
};
|
|
5074
5075
|
|
|
5075
|
-
var styles = {"NodeContainer":"NodeContainer_gSdHY","selected":"selected_VmB-F","active":"active_zjUzx","Log":"Log_dsq5e","Label":"Label_wBwWA","Description":"Description_f9s4l","Body":"Body_ptEZP","PreviewHead":"PreviewHead_oFT4K","expanded":"expanded_3vnbi","Preview":"Preview_HbkZ6","Duration":"Duration_0jqWx","GroupHead":"GroupHead_QJhST","GroupName":"GroupName_Qvu4r","GroupCnt":"GroupCnt_3ctdd","GroupMore":"GroupMore_D1Kiz","GroupChildren":"GroupChildren_NKx-B","GroupLeaf":"GroupLeaf_eliT8"};
|
|
5076
|
+
var styles = {"NodeContainer":"NodeContainer_gSdHY","selected":"selected_VmB-F","active":"active_zjUzx","Log":"Log_dsq5e","Label":"Label_wBwWA","Description":"Description_f9s4l","Ports":"Ports_fVs5I","Body":"Body_ptEZP","PreviewHead":"PreviewHead_oFT4K","expanded":"expanded_3vnbi","Preview":"Preview_HbkZ6","Duration":"Duration_0jqWx","GroupHead":"GroupHead_QJhST","GroupName":"GroupName_Qvu4r","GroupCnt":"GroupCnt_3ctdd","GroupMore":"GroupMore_D1Kiz","GroupChildren":"GroupChildren_NKx-B","GroupLeaf":"GroupLeaf_eliT8"};
|
|
5076
5077
|
|
|
5077
5078
|
function NodeContainer(_a) {
|
|
5078
5079
|
var _b;
|
|
@@ -5421,24 +5422,23 @@ var InputNode = React.memo(function (_a) {
|
|
|
5421
5422
|
}); };
|
|
5422
5423
|
return (React.createElement(NodeContainer, { label: data.label, selected: selected, id: id, noDelete: true },
|
|
5423
5424
|
React.createElement("div", { className: styles.Description }, data.description),
|
|
5424
|
-
React.createElement("div", { className: styles.Ports },
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
React.createElement("
|
|
5441
|
-
React.createElement("button", { onClick: function () { return onAdd(); } }, "+")))));
|
|
5425
|
+
React.createElement("div", { className: styles.Ports }, Object.entries(outputs || {}).map(function (_a) {
|
|
5426
|
+
var _b = __read(_a, 2), name = _b[0], normalized = _b[1];
|
|
5427
|
+
return (React.createElement(react.Handle, { key: name, type: "source", position: react.Position.Right, id: "".concat(id, "-").concat(name), className: classNames(styles$1.Output, styles$1.Port, styles$1["type-".concat(normalized.type)]), style: {
|
|
5428
|
+
"--type-color": "var(--color-".concat(normalized.type, ")"),
|
|
5429
|
+
gridColumn: "1/3",
|
|
5430
|
+
} },
|
|
5431
|
+
React.createElement(Menu, { handle: React.createElement("button", null, "...") },
|
|
5432
|
+
React.createElement(MenuItem, { onClick: function () {
|
|
5433
|
+
return onRename(name, normalized.label || name);
|
|
5434
|
+
} }, "Rename"),
|
|
5435
|
+
React.createElement(MenuItem, { onClick: function () { return onDelete(name); } }, "Delete"),
|
|
5436
|
+
React.createElement(MenuItem, { onClick: function () { return onDefault(name); } }, "Set Default"),
|
|
5437
|
+
React.createElement(MenuItem, { onClick: function () { return onType(name); } }, "Set Type")),
|
|
5438
|
+
React.createElement("span", { className: styles$1.PortLabel }, normalized.label || name)));
|
|
5439
|
+
})),
|
|
5440
|
+
React.createElement("div", { className: styles.Body },
|
|
5441
|
+
React.createElement("button", { onClick: function () { return onAdd(); } }, "+"))));
|
|
5442
5442
|
});
|
|
5443
5443
|
InputNode.displayName = "InputNode";
|
|
5444
5444
|
|
|
@@ -5581,10 +5581,11 @@ var OutputNode = React.memo(function (_a) {
|
|
|
5581
5581
|
"--type-color": "var(--color-".concat(varDef.type, ")"),
|
|
5582
5582
|
} },
|
|
5583
5583
|
React.createElement("span", { className: styles$1.PortLabel }, name),
|
|
5584
|
-
React.createElement("
|
|
5585
|
-
|
|
5586
|
-
React.createElement(
|
|
5587
|
-
|
|
5584
|
+
React.createElement("div", { style: { display: "flex" } },
|
|
5585
|
+
React.createElement("span", { style: { flex: 1 } }),
|
|
5586
|
+
React.createElement(Menu, { handle: React.createElement("button", null, "...") },
|
|
5587
|
+
React.createElement(MenuItem, { onClick: function () { return onRename(name); } }, "Rename"),
|
|
5588
|
+
React.createElement(MenuItem, { onClick: function () { return onDelete(name); } }, "Delete")))));
|
|
5588
5589
|
})),
|
|
5589
5590
|
React.createElement("div", { className: styles.Body },
|
|
5590
5591
|
React.createElement("button", { onClick: function () { return onAdd(); } }, "+"))));
|