@rkmodules/rules 0.0.174 → 0.0.175
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.esm.mjs
CHANGED
|
@@ -2533,6 +2533,31 @@ var treeItem = {
|
|
|
2533
2533
|
}); },
|
|
2534
2534
|
};
|
|
2535
2535
|
|
|
2536
|
+
var combineTrees = {
|
|
2537
|
+
pure: true,
|
|
2538
|
+
name: "combineTrees",
|
|
2539
|
+
label: "Combine Trees",
|
|
2540
|
+
description: "Combines matching items from all groups into a sub group",
|
|
2541
|
+
nodeType: "DynamicInput",
|
|
2542
|
+
inputs: {},
|
|
2543
|
+
outputs: {
|
|
2544
|
+
result: "any",
|
|
2545
|
+
},
|
|
2546
|
+
impl: function (inputs) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2547
|
+
var values, lists, result;
|
|
2548
|
+
return __generator(this, function (_a) {
|
|
2549
|
+
values = Object.values(inputs);
|
|
2550
|
+
lists = nAryOnTree(values, function (values) {
|
|
2551
|
+
return [[values]];
|
|
2552
|
+
}, true);
|
|
2553
|
+
result = mapTreeBranch(graftTree(lists), function (items) {
|
|
2554
|
+
return items.flat();
|
|
2555
|
+
});
|
|
2556
|
+
return [2 /*return*/, { result: result }];
|
|
2557
|
+
});
|
|
2558
|
+
}); },
|
|
2559
|
+
};
|
|
2560
|
+
|
|
2536
2561
|
var _a$5;
|
|
2537
2562
|
var primitives$5 = (_a$5 = {},
|
|
2538
2563
|
_a$5[splitGroup.name] = splitGroup,
|
|
@@ -2544,6 +2569,7 @@ var primitives$5 = (_a$5 = {},
|
|
|
2544
2569
|
_a$5[normalizeTree.name] = normalizeTree,
|
|
2545
2570
|
_a$5[cartesianGroups.name] = cartesianGroups,
|
|
2546
2571
|
_a$5[mergeTree.name] = mergeTree,
|
|
2572
|
+
_a$5[combineTrees.name] = combineTrees,
|
|
2547
2573
|
_a$5);
|
|
2548
2574
|
|
|
2549
2575
|
var series = {
|
|
@@ -3571,7 +3597,12 @@ var Engine = /** @class */ (function () {
|
|
|
3571
3597
|
this.fnIndex = __assign(__assign({}, primitives), morePrimitives);
|
|
3572
3598
|
this.env = env;
|
|
3573
3599
|
}
|
|
3574
|
-
/**
|
|
3600
|
+
/**
|
|
3601
|
+
* Clear successful results; running calls finish but cannot refill invalidated entries.
|
|
3602
|
+
* when graph option is omitted, all cached results are cleared regardless of their graph association.
|
|
3603
|
+
* when cacheKey is omitted, all cached results are cleared regardless of their cache key association.
|
|
3604
|
+
* when kind is omitted, all cached results are cleared regardless of their kind association.
|
|
3605
|
+
*/
|
|
3575
3606
|
Engine.prototype.clearCache = function (options) {
|
|
3576
3607
|
if (options === void 0) { options = {}; }
|
|
3577
3608
|
this.cache.clear(options);
|