@rkmodules/rules 0.0.95 → 0.0.97
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.css +1 -0
- package/dist/index.cjs.js +8 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.css +1 -0
- package/dist/index.esm.js +8 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/DataTree/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.esm.css
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -255,6 +255,9 @@ function broadCast(value) {
|
|
|
255
255
|
function getBranch(tree, path) {
|
|
256
256
|
return tree[path];
|
|
257
257
|
}
|
|
258
|
+
function getBranches(tree) {
|
|
259
|
+
return Object.values(tree);
|
|
260
|
+
}
|
|
258
261
|
function getPaths(tree) {
|
|
259
262
|
return Object.keys(tree);
|
|
260
263
|
}
|
|
@@ -1558,7 +1561,9 @@ var listInput = {
|
|
|
1558
1561
|
tree: mapTreeBranch(inputs.list || {}, function (branch) {
|
|
1559
1562
|
if (!branch || branch.length === 0)
|
|
1560
1563
|
return DISCARD;
|
|
1561
|
-
var allLines = branch.flatMap(function (text) {
|
|
1564
|
+
var allLines = branch.flatMap(function (text) {
|
|
1565
|
+
return text.replace(/(^[\n\r]+)|([\n\r]+$)/, "").split("\n");
|
|
1566
|
+
});
|
|
1562
1567
|
if (allLines.every(function (line) { return isBoolStr(line); })) {
|
|
1563
1568
|
allLines = allLines.map(function (line) { return line.toLowerCase() === "true"; });
|
|
1564
1569
|
}
|
|
@@ -1574,13 +1579,13 @@ var listInput = {
|
|
|
1574
1579
|
|
|
1575
1580
|
var _a$5;
|
|
1576
1581
|
var primitives$5 = (_a$5 = {},
|
|
1582
|
+
_a$5[listInput.name] = listInput,
|
|
1577
1583
|
_a$5[listItem.name] = listItem,
|
|
1578
1584
|
_a$5[listLength.name] = listLength,
|
|
1579
1585
|
_a$5[filterList.name] = filterList,
|
|
1580
1586
|
_a$5[relativeItem.name] = relativeItem,
|
|
1581
1587
|
_a$5[relativeItems.name] = relativeItems,
|
|
1582
1588
|
_a$5[concat.name] = concat,
|
|
1583
|
-
_a$5[listInput.name] = listInput,
|
|
1584
1589
|
_a$5);
|
|
1585
1590
|
|
|
1586
1591
|
var splitGroup = {
|
|
@@ -7239,5 +7244,5 @@ function DDContext(_a) {
|
|
|
7239
7244
|
return React.createElement(DndProvider, { backend: HTML5Backend }, children);
|
|
7240
7245
|
}
|
|
7241
7246
|
|
|
7242
|
-
export { DDContext, DISCARD, Engine, Flow, Lib, binaryOnTree, binaryOnTreeBranch, broadCast, expandTree, getBranch, getPaths, getPositions, getReferences, getValue$1 as getValue, getVariable, graftTree, hasReference, interpolate, isReference, isSingleTon, isTree, mapTree, mapTreeBranch, nAryOnTree, nAryOnTreeBranch, normalizeVarDef, parseReference, primitives, sameShape, simplifyTree$1 as simplifyTree, toArray, topSort, treeSize, trimTree, uid$1 as uid, useDraggableNode, useFlow, useFunction, usePositions, useUpdatePositions, useVariable, variableStore };
|
|
7247
|
+
export { DDContext, DISCARD, Engine, Flow, Lib, binaryOnTree, binaryOnTreeBranch, broadCast, expandTree, getBranch, getBranches, getPaths, getPositions, getReferences, getValue$1 as getValue, getVariable, graftTree, hasReference, interpolate, isReference, isSingleTon, isTree, mapTree, mapTreeBranch, nAryOnTree, nAryOnTreeBranch, normalizeVarDef, parseReference, primitives, sameShape, simplifyTree$1 as simplifyTree, toArray, topSort, treeSize, trimTree, uid$1 as uid, useDraggableNode, useFlow, useFunction, usePositions, useUpdatePositions, useVariable, variableStore };
|
|
7243
7248
|
//# sourceMappingURL=index.esm.js.map
|