@ai-matrx/records-ui 0.113.32 → 0.113.33
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 +2 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -951,6 +951,7 @@ function fieldTypeLabel(field2) {
|
|
|
951
951
|
// src/gridPage.ts
|
|
952
952
|
import { holdsNumbers } from "@ai-matrx/records/first-page";
|
|
953
953
|
import { holdsNumbers as holdsNumbers2, pageSortFor, sortAsFor } from "@ai-matrx/records/first-page";
|
|
954
|
+
import { containsPattern } from "@ai-matrx/records/data";
|
|
954
955
|
function sortRefusal(f) {
|
|
955
956
|
if (!computedOnRead(f)) return null;
|
|
956
957
|
return `${fieldName(f)} is worked out each time it is read, so the store keeps no value to sort the whole table by. Sort by a column it is worked out from.`;
|
|
@@ -963,9 +964,6 @@ function computedOnRead(f) {
|
|
|
963
964
|
const kind = String(editorKindFor(f));
|
|
964
965
|
return (f.type === "formula" || kind === "formula" || kind === "lookup" || kind === "rollup") && String(f.compute_on ?? "read") === "read";
|
|
965
966
|
}
|
|
966
|
-
function containsPattern(text) {
|
|
967
|
-
return `(?i)${text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`;
|
|
968
|
-
}
|
|
969
967
|
var BLANK_VALUE = "__empty__";
|
|
970
968
|
var field = (f) => ({ field: f.id });
|
|
971
969
|
var constant = (value) => ({ const: value });
|