@rkmodules/rules 0.0.173 → 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.
@@ -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 = {
@@ -3158,7 +3184,7 @@ var parseDate = {
3158
3184
  return [2 /*return*/, {
3159
3185
  date: mapTree(inputs.datestring || {}, function (dateStr) {
3160
3186
  var parsedDate = new Date(dateStr || Date.now());
3161
- console.log(parsedDate, dateStr);
3187
+ // console.log(parsedDate, dateStr);
3162
3188
  if (params.timezone !== INFERRED) {
3163
3189
  parsedDate = new Date(parsedDate.toLocaleString("en-US", {
3164
3190
  timeZone: params.timezone,
@@ -3571,7 +3597,12 @@ var Engine = /** @class */ (function () {
3571
3597
  this.fnIndex = __assign(__assign({}, primitives), morePrimitives);
3572
3598
  this.env = env;
3573
3599
  }
3574
- /** Clear successful results; running calls finish but cannot refill invalidated entries. */
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);
@@ -3635,9 +3666,9 @@ var Engine = /** @class */ (function () {
3635
3666
  return [3 /*break*/, 6];
3636
3667
  case 4:
3637
3668
  activate();
3638
- console.log("Executing function call: ".concat(name));
3639
3669
  return [4 /*yield*/, impl.call(fn, inputs, params, this, root ? null : context, name)];
3640
3670
  case 5:
3671
+ // console.log(`Executing function call: ${name}`);
3641
3672
  result = _a.sent();
3642
3673
  _a.label = 6;
3643
3674
  case 6: