@ai-matrx/records-ui 0.115.55 → 0.115.57
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 +12 -0
- package/dist/index.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
+
## 0.115.57
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/records-ui/v0.115.56..npm/records-ui/v0.115.57 -- apps/shared/records-ui`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.115.56
|
|
10
|
+
|
|
11
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
12
|
+
`git diff npm/records-ui/v0.115.55..npm/records-ui/v0.115.56 -- apps/shared/records-ui`).
|
|
13
|
+
No source changes intended and no consumer action required.
|
|
14
|
+
|
|
3
15
|
## 0.115.55
|
|
4
16
|
|
|
5
17
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/index.cjs
CHANGED
|
@@ -17200,7 +17200,7 @@ function planPastedBlock(args) {
|
|
|
17200
17200
|
if (field2 === void 0 || raw === void 0) continue;
|
|
17201
17201
|
const judged = valueFromPastedText(field2, raw, args.options?.get(key), args.relationNames?.get(key));
|
|
17202
17202
|
if ("refusal" in judged) {
|
|
17203
|
-
if ("unmatched" in judged) {
|
|
17203
|
+
if ("unmatched" in judged && judged.unmatched) {
|
|
17204
17204
|
const seen = unmatched.get(key) ?? { column: fieldName(field2), words: [] };
|
|
17205
17205
|
for (const word of judged.unmatched) {
|
|
17206
17206
|
if (!seen.words.some((w) => w.toLowerCase() === word.toLowerCase())) seen.words.push(word);
|
|
@@ -17920,7 +17920,8 @@ function useMergedGridControls(args) {
|
|
|
17920
17920
|
[rows, order, hidden]
|
|
17921
17921
|
);
|
|
17922
17922
|
const contextMenu = (0, import_react101.useMemo)(
|
|
17923
|
-
|
|
17923
|
+
// The designed menu: these sections are its feature section, headed by the row / column clicked.
|
|
17924
|
+
() => enabled ? { sections: (payload) => gridMenuSections(payload, ctx, rowText), designedMenu: true } : void 0,
|
|
17924
17925
|
[enabled, ctx, rowText]
|
|
17925
17926
|
);
|
|
17926
17927
|
const headerMenuFor = (0, import_react101.useCallback)(
|
|
@@ -19595,7 +19596,7 @@ function useDrillAnswers(args) {
|
|
|
19595
19596
|
limit: 200,
|
|
19596
19597
|
...compare ? { compare: { against: compare.against, key: asked3.windowKey, from: compare.from, to: compare.to } } : {}
|
|
19597
19598
|
});
|
|
19598
|
-
if (!got2.ok) return { request, error: refusalSentence(got2.error) };
|
|
19599
|
+
if (!got2.ok) return { request, error: refusalSentence(got2.error) || "The groups could not be read." };
|
|
19599
19600
|
return {
|
|
19600
19601
|
request,
|
|
19601
19602
|
rows: (got2.data ?? []).map((row) => {
|
|
@@ -19652,7 +19653,7 @@ function useDrillAnswers(args) {
|
|
|
19652
19653
|
const nextLabels = /* @__PURE__ */ new Map();
|
|
19653
19654
|
const sentences = [];
|
|
19654
19655
|
for (const r of results) {
|
|
19655
|
-
if (!("rows" in r)) continue;
|
|
19656
|
+
if (!("rows" in r) || !r.rows) continue;
|
|
19656
19657
|
out[r.request.key] = r.rows;
|
|
19657
19658
|
for (const [dim, map] of Object.entries(r.labels ?? {})) {
|
|
19658
19659
|
const held = nextLabels.get(dim) ?? /* @__PURE__ */ new Map();
|
|
@@ -22329,7 +22330,7 @@ function ImportWizard({ tableId, source, onDone, onWrote, autoRun, className })
|
|
|
22329
22330
|
const raw = row[header];
|
|
22330
22331
|
if (typeof raw !== "string" || raw.trim() === "") continue;
|
|
22331
22332
|
const read = valueFromPastedText(field2, raw, options);
|
|
22332
|
-
if ("unmatched" in read) {
|
|
22333
|
+
if ("unmatched" in read && read.unmatched) {
|
|
22333
22334
|
for (const w of read.unmatched) if (!words2.some((x) => x.toLowerCase() === w.toLowerCase())) words2.push(w);
|
|
22334
22335
|
}
|
|
22335
22336
|
}
|