@elyx-code/project-logic-tree 0.0.6985 → 0.0.6986

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.js CHANGED
@@ -163133,23 +163133,15 @@ class Zq {
163133
163133
  }), p;
163134
163134
  }
163135
163135
  get columns() {
163136
- const p = [];
163137
- if (this.selections.forEach((a) => {
163138
- var c;
163139
- if (a.type === vt.ColumnRef)
163140
- p.push(a);
163141
- else if (a.type === vt.AllColumnsSelector && ((c = a.parent) == null ? void 0 : c.type) === vt.DataSource) {
163142
- const f = a.parent.columns;
163143
- p.push(...f);
163144
- }
163145
- }), this.from) {
163146
- const a = this.from.columns;
163147
- p.push(...a);
163148
- }
163149
- const i = /* @__PURE__ */ new Set(), r = [];
163150
- for (const a of p)
163151
- i.has(a) || (i.add(a), r.push(a));
163152
- return r;
163136
+ const p = /* @__PURE__ */ new Set(), i = [];
163137
+ return this.selections.forEach((r) => {
163138
+ var a;
163139
+ r.type === vt.ColumnRef ? p.has(r.id) || (i.push(r), p.add(r.id)) : r.type === vt.AllColumnsSelector && ((a = r.parent) == null ? void 0 : a.type) === vt.DataSource && r.parent.columns.forEach((f) => {
163140
+ p.has(f.id) || (i.push(f), p.add(f.id));
163141
+ });
163142
+ }), this.from && this.from.columns.forEach((a) => {
163143
+ p.has(a.id) || (i.push(a), p.add(a.id));
163144
+ }), i;
163153
163145
  }
163154
163146
  get isValid() {
163155
163147
  return !!this.from && this.from.isValid && !!this.validSelections.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6985",
3
+ "version": "0.0.6986",
4
4
  "author": "Sergio Herrero",
5
5
  "license": "UNLICENSED",
6
6
  "description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",