@uwdata/mosaic-inputs 0.3.2 → 0.3.4

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.
@@ -12506,11 +12506,13 @@ var DataCubeIndexer = class {
12506
12506
  const cols = Object.values(activeView.columns).map((c) => c.columns[0]);
12507
12507
  subqueryPushdown(subq, cols);
12508
12508
  }
12509
+ const order = query.orderby();
12510
+ query.query.orderby = [];
12509
12511
  const sql2 = query.toString();
12510
12512
  const id = (fnv_hash(sql2) >>> 0).toString(16);
12511
12513
  const table2 = `cube_index_${id}`;
12512
12514
  const result = mc.exec(create(table2, sql2, { temp }));
12513
- indices.set(client, { table: table2, result, ...index });
12515
+ indices.set(client, { table: table2, result, order, ...index });
12514
12516
  }
12515
12517
  }
12516
12518
  async update() {
@@ -12527,8 +12529,8 @@ var DataCubeIndexer = class {
12527
12529
  if (!filter) {
12528
12530
  filter = this.activeView.predicate(this.selection.active.predicate);
12529
12531
  }
12530
- const { table: table2, dims, aggr } = index;
12531
- const query = Query.select(dims, aggr).from(table2).groupby(dims).where(filter);
12532
+ const { table: table2, dims, aggr, order = [] } = index;
12533
+ const query = Query.select(dims, aggr).from(table2).groupby(dims).where(filter).orderby(order);
12532
12534
  return this.mc.updateClient(client, query);
12533
12535
  }
12534
12536
  };
@@ -13714,7 +13716,7 @@ var Selection = class _Selection extends Param {
13714
13716
  }
13715
13717
  /**
13716
13718
  * Create a clone of this Selection with clauses corresponding
13717
- * to provided source removed.
13719
+ * to the provided source removed.
13718
13720
  * @param {*} source The clause source to remove.
13719
13721
  * @returns {this} A cloned and updated Selection.
13720
13722
  */
@@ -13805,12 +13807,16 @@ var Selection = class _Selection extends Param {
13805
13807
  /**
13806
13808
  * Return a selection query predicate for the given client.
13807
13809
  * @param {*} client The client whose data may be filtered.
13810
+ * @param {boolean} [noSkip=false] Disable skipping of active
13811
+ * cross-filtered sources. If set true, the source of the active
13812
+ * clause in a cross-filtered selection will not be skipped.
13808
13813
  * @returns {*} The query predicate for filtering client data,
13809
13814
  * based on the current state of this selection.
13810
13815
  */
13811
- predicate(client) {
13816
+ predicate(client, noSkip = false) {
13812
13817
  const { clauses } = this;
13813
- return this._resolver.predicate(clauses, clauses.active, client);
13818
+ const active = noSkip ? null : clauses.active;
13819
+ return this._resolver.predicate(clauses, active, client);
13814
13820
  }
13815
13821
  };
13816
13822
  var SelectionResolver = class {