@rkmodules/rules 0.0.149 → 0.0.151
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.js +17 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +17 -16
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/Flow/Components/Controls/index.d.ts +5 -0
- package/dist/lib/Flow/index.d.ts +1 -0
- package/dist/lib/Primitives/Util/getValue.d.ts +0 -3
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -701,9 +701,6 @@ function interpolate(inputs, scope) {
|
|
|
701
701
|
}));
|
|
702
702
|
}
|
|
703
703
|
|
|
704
|
-
/**
|
|
705
|
-
* TODO: need rank polymorhism on the tree item sizes
|
|
706
|
-
*/
|
|
707
704
|
var getValue = {
|
|
708
705
|
name: "getValue",
|
|
709
706
|
label: "Get Value",
|
|
@@ -712,20 +709,24 @@ var getValue = {
|
|
|
712
709
|
tree: "any",
|
|
713
710
|
path: "string",
|
|
714
711
|
},
|
|
712
|
+
params: {
|
|
713
|
+
removeEmpty: { type: "boolean", default: false, label: "remove empty" },
|
|
714
|
+
},
|
|
715
715
|
outputs: {
|
|
716
716
|
tree: "any",
|
|
717
717
|
},
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
var
|
|
721
|
-
return __generator(this, function (
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
718
|
+
impl: function (_a, params_1) { return __awaiter(void 0, [_a, params_1], void 0, function (_b, params) {
|
|
719
|
+
var result;
|
|
720
|
+
var _c = _b.tree, tree = _c === void 0 ? {} : _c, _d = _b.path, path = _d === void 0 ? {} : _d;
|
|
721
|
+
return __generator(this, function (_e) {
|
|
722
|
+
result = binaryOnTree(tree, path, function (value, path) {
|
|
723
|
+
var val = getValue$1(value, path);
|
|
724
|
+
if ((val === undefined || val === null) && params.removeEmpty) {
|
|
725
|
+
return DISCARD;
|
|
726
|
+
}
|
|
726
727
|
return val;
|
|
727
|
-
});
|
|
728
|
-
return [2 /*return*/, { tree:
|
|
728
|
+
}, true);
|
|
729
|
+
return [2 /*return*/, { tree: result }];
|
|
729
730
|
});
|
|
730
731
|
}); },
|
|
731
732
|
};
|
|
@@ -1552,7 +1553,7 @@ var filterList = {
|
|
|
1552
1553
|
keep: "boolean",
|
|
1553
1554
|
},
|
|
1554
1555
|
params: {
|
|
1555
|
-
removeEmpty: { type: "boolean", default: false },
|
|
1556
|
+
removeEmpty: { type: "boolean", default: false, label: "remove empty" },
|
|
1556
1557
|
},
|
|
1557
1558
|
outputs: {
|
|
1558
1559
|
list: "any",
|
|
@@ -1964,7 +1965,7 @@ var mergeTree = {
|
|
|
1964
1965
|
name: "mergeTree",
|
|
1965
1966
|
label: "Merge Tree",
|
|
1966
1967
|
description: "Merge groups with the same index into a single tree.",
|
|
1967
|
-
nodeType: "
|
|
1968
|
+
nodeType: "DynamicInput",
|
|
1968
1969
|
inputs: {},
|
|
1969
1970
|
outputs: {
|
|
1970
1971
|
result: "any",
|
|
@@ -8484,5 +8485,5 @@ function DDContext(_a) {
|
|
|
8484
8485
|
return React.createElement(DndProvider, { backend: HTML5Backend }, children);
|
|
8485
8486
|
}
|
|
8486
8487
|
|
|
8487
|
-
export { DDContext, DISCARD, Engine, Flow, FlowContext, GenericNode, Input, Lib, Output, Param, binaryOnTree, binaryOnTreeBranch, broadCast, deRefEdgeHandle, ensureBranch, expandTree, forEachBranch, forEachItem, getBranch, getBranches, getItem, getPaths, getPositions, getReferences, getValue$1 as getValue, getVariable, graftTree, hasReference, interpolate, isEmpty, isEmptyTree, isReference, isSingleTon, isTree, mapTree, mapTreeBranch, nAryOnTree, nAryOnTreeBranch, normalizePaths, normalizeVarDef, parseReference, primitives, pushItem, safeName, sameShape, simplifyTree$1 as simplifyTree, toArray, topSort, treeSize, treeStats, trimTree, uid$1 as uid, useControls, useDraggableNode, useEngine, useFlow, useFunction, useGraphedFunction, usePositions, usePrompts, useUpdatePositions, useVariable, variableStore };
|
|
8488
|
+
export { Control, DDContext, DISCARD, Engine, Flow, FlowContext, GenericNode, Input, Lib, Output, Param, binaryOnTree, binaryOnTreeBranch, broadCast, deRefEdgeHandle, ensureBranch, expandTree, forEachBranch, forEachItem, getBranch, getBranches, getItem, getPaths, getPositions, getReferences, getValue$1 as getValue, getVariable, graftTree, hasReference, interpolate, isEmpty, isEmptyTree, isReference, isSingleTon, isTree, mapTree, mapTreeBranch, nAryOnTree, nAryOnTreeBranch, normalizePaths, normalizeVarDef, parseReference, primitives, pushItem, safeName, sameShape, simplifyTree$1 as simplifyTree, toArray, topSort, treeSize, treeStats, trimTree, uid$1 as uid, useControls, useDraggableNode, useEngine, useFlow, useFunction, useGraphedFunction, usePositions, usePrompts, useUpdatePositions, useVariable, variableStore };
|
|
8488
8489
|
//# sourceMappingURL=index.esm.js.map
|