@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.
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();
|
|
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 = {
|
|
@@ -3160,7 +3186,7 @@ var parseDate = {
|
|
|
3160
3186
|
return [2 /*return*/, {
|
|
3161
3187
|
date: mapTree(inputs.datestring || {}, function (dateStr) {
|
|
3162
3188
|
var parsedDate = new Date(dateStr || Date.now());
|
|
3163
|
-
console.log(parsedDate, dateStr);
|
|
3189
|
+
// console.log(parsedDate, dateStr);
|
|
3164
3190
|
if (params.timezone !== INFERRED) {
|
|
3165
3191
|
parsedDate = new Date(parsedDate.toLocaleString("en-US", {
|
|
3166
3192
|
timeZone: params.timezone,
|
|
@@ -3573,7 +3599,12 @@ var Engine = /** @class */ (function () {
|
|
|
3573
3599
|
this.fnIndex = __assign(__assign({}, primitives), morePrimitives);
|
|
3574
3600
|
this.env = env;
|
|
3575
3601
|
}
|
|
3576
|
-
/**
|
|
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);
|
|
@@ -3637,9 +3668,9 @@ var Engine = /** @class */ (function () {
|
|
|
3637
3668
|
return [3 /*break*/, 6];
|
|
3638
3669
|
case 4:
|
|
3639
3670
|
activate();
|
|
3640
|
-
console.log("Executing function call: ".concat(name));
|
|
3641
3671
|
return [4 /*yield*/, impl.call(fn, inputs, params, this, root ? null : context, name)];
|
|
3642
3672
|
case 5:
|
|
3673
|
+
// console.log(`Executing function call: ${name}`);
|
|
3643
3674
|
result = _a.sent();
|
|
3644
3675
|
_a.label = 6;
|
|
3645
3676
|
case 6:
|