@ai-matrx/records-ui 0.116.103 → 0.116.104
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 +21 -0
- package/dist/{chunk-VQDHNYJQ.js → chunk-TZ2KUSHH.js} +5 -3
- package/dist/{chunk-VQDHNYJQ.js.map → chunk-TZ2KUSHH.js.map} +1 -1
- package/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +4 -2
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -26915,10 +26915,11 @@ var import_field_formats15 = require("@ai-matrx/design-system/field-formats");
|
|
|
26915
26915
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
26916
26916
|
var SHARED_FOR_MS = 5e3;
|
|
26917
26917
|
var sharedReads = /* @__PURE__ */ new WeakMap();
|
|
26918
|
+
var KEPT_OUT_OF_LISTS = /* @__PURE__ */ new Set(["agent_output", "copying"]);
|
|
26918
26919
|
function readTablesAnywhere(dataSource) {
|
|
26919
26920
|
const held = sharedReads.get(dataSource);
|
|
26920
26921
|
if (held && Date.now() - held.at < SHARED_FOR_MS) return held.read;
|
|
26921
|
-
const read = Promise.resolve(dataSource.rpc("
|
|
26922
|
+
const read = Promise.resolve(dataSource.rpc("data_home", { p_include_platform_tables: true }, { schema: "custom" })).then(
|
|
26922
26923
|
({ data, error }) => {
|
|
26923
26924
|
if (error) {
|
|
26924
26925
|
return {
|
|
@@ -26927,7 +26928,8 @@ function readTablesAnywhere(dataSource) {
|
|
|
26927
26928
|
rows: []
|
|
26928
26929
|
};
|
|
26929
26930
|
}
|
|
26930
|
-
const
|
|
26931
|
+
const answered = data && typeof data === "object" && !Array.isArray(data) ? data.tables : null;
|
|
26932
|
+
const rows = (Array.isArray(answered) ? answered : []).filter((t) => !KEPT_OUT_OF_LISTS.has(t.kind ?? ""));
|
|
26931
26933
|
rows.sort((a, b) => a.table_name.localeCompare(b.table_name));
|
|
26932
26934
|
return { loading: false, error: null, rows };
|
|
26933
26935
|
},
|
|
@@ -32000,7 +32002,7 @@ function withTypeMark(field2, header) {
|
|
|
32000
32002
|
const stamp = stampMarkOf(field2);
|
|
32001
32003
|
const kind2 = stamp ?? editorKindFor(field2);
|
|
32002
32004
|
const parts = (stamp ? STAMP_ICON[stamp] : TYPE_ICON[editorKindFor(field2)]) ?? TYPE_ICON.text;
|
|
32003
|
-
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("span", { className: "
|
|
32005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("span", { className: "flex min-w-0 max-w-full items-center gap-1.5", "data-records-type-mark": kind2, title: fieldHelpText(field2) ?? (typeof header === "string" ? header : void 0), children: [
|
|
32004
32006
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
32005
32007
|
"svg",
|
|
32006
32008
|
{
|
|
@@ -32022,7 +32024,7 @@ function withTypeMark(field2, header) {
|
|
|
32022
32024
|
})
|
|
32023
32025
|
}
|
|
32024
32026
|
),
|
|
32025
|
-
header
|
|
32027
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { "data-records-type-label": "", className: "min-w-0 truncate", children: header })
|
|
32026
32028
|
] });
|
|
32027
32029
|
}
|
|
32028
32030
|
|