@ai-matrx/records-ui 0.113.30 → 0.113.31

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.
@@ -4,11 +4,24 @@ import { humanizeIdentifier } from '@ai-matrx/kit/text-case';
4
4
  import { PARITY_FIELD_TYPES, KERNEL_TABLES, isRuleFilter, fieldKindFor } from '@ai-matrx/records';
5
5
  import { dateFilterBounds, dateFilterDayBounds, dayInstantWindow } from '@ai-matrx/design-system/data-table';
6
6
  import 'react';
7
+ import * as versions_star from '@ai-matrx/records/versions';
7
8
  import { parseTableStyle, tableStyleIsEmpty } from '@ai-matrx/design-system/data-table/table-style';
8
9
  import '@ai-matrx/design-system/field-formats';
9
- import { createSeedPort } from '@ai-matrx/entity-data/port';
10
+ import { createSeedPort } from '@ai-matrx/records/entity';
10
11
 
11
- // src/firstPage.ts
12
+ var __defProp = Object.defineProperty;
13
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
14
+ var __getOwnPropNames = Object.getOwnPropertyNames;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from))
19
+ if (!__hasOwnProp.call(to, key) && key !== except)
20
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
+ }
22
+ return to;
23
+ };
24
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget);
12
25
  function fieldName(field2) {
13
26
  const label = (field2.label ?? "").trim();
14
27
  if (label !== "" && label === field2.key && /^[a-z0-9]+(?:[_.-][a-z0-9]+)+$/.test(label)) return humanizeIdentifier(label);
@@ -229,10 +242,8 @@ function storeQuestion(fields, base, columnFilters, now = /* @__PURE__ */ new Da
229
242
  }
230
243
 
231
244
  // src/rowVersion.ts
232
- function ownVersion(row) {
233
- const v = row.version;
234
- return typeof v === "number" ? v : null;
235
- }
245
+ var rowVersion_exports = {};
246
+ __reExport(rowVersion_exports, versions_star);
236
247
 
237
248
  // src/groupReads.ts
238
249
  function isPlainGrouping(grouping) {
@@ -729,7 +740,7 @@ async function askTablePageSeed(input) {
729
740
  reads.push(client.recordAggregate({ table_id: input.tableId, groupBy: [key], measures: [{ op: "count" }], limit: 500, ...filter ? { filter } : {} }));
730
741
  }
731
742
  }
732
- const unversioned = page.data.rows.filter((row) => ownVersion(row) === null).map((row) => row.id);
743
+ const unversioned = page.data.rows.filter((row) => (0, rowVersion_exports.ownVersion)(row) === null).map((row) => row.id);
733
744
  if (unversioned.length > 0) reads.push(client.recordHeaders({ ids: unversioned }));
734
745
  reads.push(
735
746
  client.reverseColumns({ table_id: input.tableId }).then(async (columns) => {