@ai-matrx/records-ui 0.113.29 → 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.
- package/CHANGELOG.md +33 -0
- package/dist/first-page.cjs +40 -9
- package/dist/first-page.cjs.map +1 -1
- package/dist/first-page.js +18 -7
- package/dist/first-page.js.map +1 -1
- package/dist/index.cjs +6341 -6850
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -292
- package/dist/index.d.ts +22 -292
- package/dist/index.js +7474 -7954
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +1538 -1524
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +1295 -1267
- package/dist/pickers.js.map +1 -1
- package/package.json +5 -6
package/dist/first-page.js
CHANGED
|
@@ -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
|
|
10
|
+
import { createSeedPort } from '@ai-matrx/records/entity';
|
|
10
11
|
|
|
11
|
-
|
|
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
|
-
|
|
233
|
-
|
|
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) => {
|