@ai-matrx/records 0.77.2 → 0.77.3
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 +6 -0
- package/dist/app-table/index.cjs +4 -4
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.js +4 -4
- package/dist/app-table/index.js.map +1 -1
- package/dist/core/index.cjs +8 -6
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +8 -6
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +4 -1
- package/dist/memory/index.cjs.map +1 -1
- package/dist/memory/index.js +4 -1
- package/dist/memory/index.js.map +1 -1
- package/dist/react/index.cjs +8 -6
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +8 -6
- package/dist/react/index.js.map +1 -1
- package/dist/templates/index.cjs +4 -2
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.js +4 -2
- package/dist/templates/index.js.map +1 -1
- package/package.json +4 -4
package/dist/react/index.cjs
CHANGED
|
@@ -10832,6 +10832,7 @@ function useStoreTable(table, options = {}) {
|
|
|
10832
10832
|
}
|
|
10833
10833
|
|
|
10834
10834
|
// src/app-table/graduate.ts
|
|
10835
|
+
var import_uuid5 = require("@ai-matrx/kit/uuid");
|
|
10835
10836
|
var TO_CUSTOM_FIELDS = "custom_fields";
|
|
10836
10837
|
var TO_ASSOCIATION = "association";
|
|
10837
10838
|
var GRADUATION_BASE_COLUMNS = [
|
|
@@ -10891,10 +10892,9 @@ function graduationProblems(fields, graduation) {
|
|
|
10891
10892
|
}
|
|
10892
10893
|
return problems;
|
|
10893
10894
|
}
|
|
10894
|
-
var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
10895
10895
|
function idsOf(value) {
|
|
10896
10896
|
const list = Array.isArray(value) ? value : value === null || value === void 0 ? [] : [value];
|
|
10897
|
-
return list.filter((v) => typeof v === "string" &&
|
|
10897
|
+
return list.filter((v) => typeof v === "string" && (0, import_uuid5.isUuidShape)(v));
|
|
10898
10898
|
}
|
|
10899
10899
|
function graduatedRow(fields, graduation, snapshot) {
|
|
10900
10900
|
const row = {
|
|
@@ -11358,7 +11358,7 @@ function allowsOtherValues(field2) {
|
|
|
11358
11358
|
}
|
|
11359
11359
|
|
|
11360
11360
|
// src/retype.ts
|
|
11361
|
-
var
|
|
11361
|
+
var import_uuid6 = require("@ai-matrx/kit/uuid");
|
|
11362
11362
|
var TRUE_WORDS2 = /* @__PURE__ */ new Set(["true", "t", "yes", "y", "1", "on", "x", "\u2713", "\u2714"]);
|
|
11363
11363
|
var FALSE_WORDS2 = /* @__PURE__ */ new Set(["false", "f", "no", "n", "0", "off", "\u2610"]);
|
|
11364
11364
|
function valueConverts(to, value) {
|
|
@@ -11379,7 +11379,7 @@ function valueConverts(to, value) {
|
|
|
11379
11379
|
return text2.trim() !== "" && /^[+-]?(\d+\.?\d*|\.\d+)(e[+-]?\d+)?$/i.test(text2.trim());
|
|
11380
11380
|
case "list":
|
|
11381
11381
|
case "relation":
|
|
11382
|
-
return typeof value === "string" && (0,
|
|
11382
|
+
return typeof value === "string" && (0, import_uuid6.isUuidShape)(text2);
|
|
11383
11383
|
default:
|
|
11384
11384
|
return false;
|
|
11385
11385
|
}
|
|
@@ -11830,6 +11830,9 @@ function scopeChip(scope) {
|
|
|
11830
11830
|
return scope.title ? `About: ${scope.title}` : "About: this record";
|
|
11831
11831
|
}
|
|
11832
11832
|
|
|
11833
|
+
// src/table-kind.ts
|
|
11834
|
+
var import_uuid7 = require("@ai-matrx/kit/uuid");
|
|
11835
|
+
|
|
11833
11836
|
// src/table-kind-mapping.json
|
|
11834
11837
|
var table_kind_mapping_default = {
|
|
11835
11838
|
about: "THE ONE MAPPING from a store Field to a kind's three schemas (KINDS-GLUE wave 3 \xA72). Hand-written here; aidream copies it verbatim to packages/matrx-graph/matrx_graph/table_kind_mapping.json (scripts/generate_table_kind_mapping.py --check). Both languages derive from this file only: @ai-matrx/records src/table-kind.ts and matrx_graph.table_kinds. Keys of `kinds` are the store's field kinds (custom.field_kinds() plus the formula `system` kinds custom.field_kind_of answers). Stored mode only: `column_source_default` is custom.table_column_source's answer when the facts carry none (silence means the doctrine: Field rows are the columns); `platform_keys` mirrors custom.record_platform_keys() with each key's shape (parent_id: custom.containment_parent's uuid cast; icon: the record's own @ai-matrx/icons name, a string or null); `stored_patterns` mirror custom.validate_values' relation id regex and, for dates, refuse a string the timestamptz cast can never read (no digits, not a special word) while never refusing one it can.",
|
|
@@ -11908,14 +11911,13 @@ var table_kind_mapping_default = {
|
|
|
11908
11911
|
|
|
11909
11912
|
// src/table-kind.ts
|
|
11910
11913
|
var TABLE_KIND_PREFIX = "table:";
|
|
11911
|
-
var UUID2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
11912
11914
|
var KIND_KEY = "__kind";
|
|
11913
11915
|
var M = table_kind_mapping_default;
|
|
11914
11916
|
function tableKindMapping() {
|
|
11915
11917
|
return M;
|
|
11916
11918
|
}
|
|
11917
11919
|
function isTableKind(slug) {
|
|
11918
|
-
return typeof slug === "string" && slug.startsWith(TABLE_KIND_PREFIX) &&
|
|
11920
|
+
return typeof slug === "string" && slug.startsWith(TABLE_KIND_PREFIX) && (0, import_uuid7.isLowercaseUuidShape)(slug.slice(TABLE_KIND_PREFIX.length));
|
|
11919
11921
|
}
|
|
11920
11922
|
function tableKindSlug(tableId) {
|
|
11921
11923
|
const slug = `${TABLE_KIND_PREFIX}${String(tableId).trim().toLowerCase()}`;
|