@ai-matrx/records-ui 0.113.32 → 0.113.33

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.113.33
4
+ ### the first page and a person's look come from records
5
+
6
+ `./first-page` (`firstPage.ts`, `firstPageEntity.ts`), `entityQuery.ts`, `groupReads.ts`, the sort halves of
7
+ `gridPage.ts` (`holdsNumbers`, `sortAsFor`, `pageSortFor`), `gridLook.ts`'s `defaultSortOf` and `viewLook.ts`'s look
8
+ doors are re-exports of `@ai-matrx/records/first-page` and `@ai-matrx/records/views`; `firstGridPageRequest`,
9
+ `askTablePageSeed` and every view/look door that reads the presentation are records' one definition with this
10
+ package's grid look bound (`bindFirstPageCodec`, `bindViewCodec`) — no same-name second body remains.
11
+ `MEASURE_LABEL` is checked against the store's summary operations.
12
+
13
+ **Consumer action:** none; same names, same signatures (`DefaultSort` is records' `ColumnSort`).
14
+
3
15
  ## 0.113.32
4
16
  ### saved questions come from records/questions
5
17
 
package/dist/index.cjs CHANGED
@@ -1551,6 +1551,7 @@ function fieldTypeLabel(field2) {
1551
1551
  // src/gridPage.ts
1552
1552
  var import_first_page = require("@ai-matrx/records/first-page");
1553
1553
  var import_first_page2 = require("@ai-matrx/records/first-page");
1554
+ var import_data = require("@ai-matrx/records/data");
1554
1555
  function sortRefusal(f) {
1555
1556
  if (!computedOnRead(f)) return null;
1556
1557
  return `${fieldName(f)} is worked out each time it is read, so the store keeps no value to sort the whole table by. Sort by a column it is worked out from.`;
@@ -1563,9 +1564,6 @@ function computedOnRead(f) {
1563
1564
  const kind = String(editorKindFor(f));
1564
1565
  return (f.type === "formula" || kind === "formula" || kind === "lookup" || kind === "rollup") && String(f.compute_on ?? "read") === "read";
1565
1566
  }
1566
- function containsPattern(text) {
1567
- return `(?i)${text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`;
1568
- }
1569
1567
  var BLANK_VALUE = "__empty__";
1570
1568
  var field = (f) => ({ field: f.id });
1571
1569
  var constant = (value) => ({ const: value });
@@ -1587,7 +1585,7 @@ function clauseFor(f, value, now = /* @__PURE__ */ new Date()) {
1587
1585
  if (kind === "number" || kind === "currency" || kind === "percent" || kind === "checkbox") {
1588
1586
  return `${name} holds numbers, so it is filtered by a range, not by words.`;
1589
1587
  }
1590
- const matches2 = op("matches", field(f), constant(containsPattern(text)));
1588
+ const matches2 = op("matches", field(f), constant((0, import_data.containsPattern)(text)));
1591
1589
  return { rule: value.negated ? not(matches2) : matches2 };
1592
1590
  }
1593
1591
  case "select": {