@rkmodules/rules 0.0.174 → 0.0.176

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