@ai-matrx/records-ui 0.115.54 → 0.115.56
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 +5 -5
package/dist/index.js
CHANGED
|
@@ -16819,7 +16819,7 @@ function planPastedBlock(args) {
|
|
|
16819
16819
|
if (field2 === void 0 || raw === void 0) continue;
|
|
16820
16820
|
const judged = valueFromPastedText(field2, raw, args.options?.get(key), args.relationNames?.get(key));
|
|
16821
16821
|
if ("refusal" in judged) {
|
|
16822
|
-
if ("unmatched" in judged) {
|
|
16822
|
+
if ("unmatched" in judged && judged.unmatched) {
|
|
16823
16823
|
const seen = unmatched.get(key) ?? { column: fieldName(field2), words: [] };
|
|
16824
16824
|
for (const word of judged.unmatched) {
|
|
16825
16825
|
if (!seen.words.some((w) => w.toLowerCase() === word.toLowerCase())) seen.words.push(word);
|
|
@@ -17539,7 +17539,8 @@ function useMergedGridControls(args) {
|
|
|
17539
17539
|
[rows, order, hidden]
|
|
17540
17540
|
);
|
|
17541
17541
|
const contextMenu = useMemo24(
|
|
17542
|
-
|
|
17542
|
+
// The designed menu: these sections are its feature section, headed by the row / column clicked.
|
|
17543
|
+
() => enabled ? { sections: (payload) => gridMenuSections(payload, ctx, rowText), designedMenu: true } : void 0,
|
|
17543
17544
|
[enabled, ctx, rowText]
|
|
17544
17545
|
);
|
|
17545
17546
|
const headerMenuFor = useCallback17(
|
|
@@ -19246,7 +19247,7 @@ function useDrillAnswers(args) {
|
|
|
19246
19247
|
limit: 200,
|
|
19247
19248
|
...compare ? { compare: { against: compare.against, key: asked3.windowKey, from: compare.from, to: compare.to } } : {}
|
|
19248
19249
|
});
|
|
19249
|
-
if (!got2.ok) return { request, error: refusalSentence(got2.error) };
|
|
19250
|
+
if (!got2.ok) return { request, error: refusalSentence(got2.error) || "The groups could not be read." };
|
|
19250
19251
|
return {
|
|
19251
19252
|
request,
|
|
19252
19253
|
rows: (got2.data ?? []).map((row) => {
|
|
@@ -19303,7 +19304,7 @@ function useDrillAnswers(args) {
|
|
|
19303
19304
|
const nextLabels = /* @__PURE__ */ new Map();
|
|
19304
19305
|
const sentences = [];
|
|
19305
19306
|
for (const r of results) {
|
|
19306
|
-
if (!("rows" in r)) continue;
|
|
19307
|
+
if (!("rows" in r) || !r.rows) continue;
|
|
19307
19308
|
out[r.request.key] = r.rows;
|
|
19308
19309
|
for (const [dim, map] of Object.entries(r.labels ?? {})) {
|
|
19309
19310
|
const held = nextLabels.get(dim) ?? /* @__PURE__ */ new Map();
|
|
@@ -22036,7 +22037,7 @@ function ImportWizard({ tableId, source, onDone, onWrote, autoRun, className })
|
|
|
22036
22037
|
const raw = row[header];
|
|
22037
22038
|
if (typeof raw !== "string" || raw.trim() === "") continue;
|
|
22038
22039
|
const read = valueFromPastedText(field2, raw, options);
|
|
22039
|
-
if ("unmatched" in read) {
|
|
22040
|
+
if ("unmatched" in read && read.unmatched) {
|
|
22040
22041
|
for (const w of read.unmatched) if (!words2.some((x) => x.toLowerCase() === w.toLowerCase())) words2.push(w);
|
|
22041
22042
|
}
|
|
22042
22043
|
}
|