@ai-matrx/records-ui 0.116.28 → 0.116.29
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 +14 -1
- package/dist/index.cjs +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -25063,7 +25063,7 @@ import { measureKey as measureKey5 } from "@ai-matrx/records";
|
|
|
25063
25063
|
var PIVOT_OPS = ["count", "sum", "avg", "min", "max"];
|
|
25064
25064
|
var isPivotOp = (v) => PIVOT_OPS.includes(v ?? "");
|
|
25065
25065
|
var PIVOT_OP_LABEL = { count: "Count", sum: "Sum", avg: "Average", min: "Min", max: "Max" };
|
|
25066
|
-
var PIVOT_CELL_LIMIT =
|
|
25066
|
+
var PIVOT_CELL_LIMIT = 1e3;
|
|
25067
25067
|
var NUMBER_TYPES2 = /* @__PURE__ */ new Set(["number", "integer", "decimal", "money", "currency", "percent", "percentage"]);
|
|
25068
25068
|
var isNumberField = (f) => NUMBER_TYPES2.has(String(f.type));
|
|
25069
25069
|
function pivotQuestion(view, fields) {
|
|
@@ -25288,9 +25288,9 @@ function PivotLayout({ view, fields, filter, onChange, remembered }) {
|
|
|
25288
25288
|
] }) }) : null
|
|
25289
25289
|
] }) }),
|
|
25290
25290
|
table.cut ? /* @__PURE__ */ jsxs78("p", { className: "text-xs text-muted-foreground", "data-records-pivot-cut": "", children: [
|
|
25291
|
-
"
|
|
25291
|
+
"First ",
|
|
25292
25292
|
PIVOT_CELL_LIMIT.toLocaleString(),
|
|
25293
|
-
" cells
|
|
25293
|
+
" cells only. Narrow the filter to see the rest."
|
|
25294
25294
|
] }) : null
|
|
25295
25295
|
] })
|
|
25296
25296
|
] });
|
|
@@ -25933,8 +25933,6 @@ function useViewRecords(view, pageSize = 200, filter, viewId) {
|
|
|
25933
25933
|
cancelled = true;
|
|
25934
25934
|
};
|
|
25935
25935
|
}, [client, ruleId, pageSize]);
|
|
25936
|
-
const asked2 = stableFilterKey4(filter ?? null);
|
|
25937
|
-
const fromView = asked2 !== "{}" && (asked2 === stableFilterKey4(view.where ?? null) || asked2 === stableFilterKey4(view.filters ?? null));
|
|
25938
25936
|
const tableRows = useMemo52(() => table.data?.rows ?? [], [table.data]);
|
|
25939
25937
|
const manual = view.order === "manual" && Boolean(viewId) && !ruleId;
|
|
25940
25938
|
const hand = useHandOrderRows({
|
|
@@ -25986,7 +25984,7 @@ function useViewRecords(view, pageSize = 200, filter, viewId) {
|
|
|
25986
25984
|
// sat over every board and gallery. A view of the whole table says nothing about it; a narrowed
|
|
25987
25985
|
// one says how, in words a person uses.
|
|
25988
25986
|
membership: [
|
|
25989
|
-
|
|
25987
|
+
// A person sees the rows; the screen does not narrate why they are the rows.
|
|
25990
25988
|
manual ? HAND_ORDER_NOTE : ""
|
|
25991
25989
|
].filter(Boolean).join(" ")
|
|
25992
25990
|
};
|