@ai-matrx/records-ui 0.85.8 → 0.85.9
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 +37 -0
- package/dist/index.cjs +17 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2212,9 +2212,9 @@ var DUE_STATE_LABEL = {
|
|
|
2212
2212
|
};
|
|
2213
2213
|
var WORK_INBOX_KINDS = exhaustiveValuesOf()(["assignment", "approval", "proposal"]);
|
|
2214
2214
|
var WORK_INBOX_KIND_LABEL = {
|
|
2215
|
-
assignment: "
|
|
2216
|
-
approval: "
|
|
2217
|
-
proposal: "Agent"
|
|
2215
|
+
assignment: "Assigned",
|
|
2216
|
+
approval: "Approval",
|
|
2217
|
+
proposal: "Agent proposal"
|
|
2218
2218
|
};
|
|
2219
2219
|
var WORK_INBOX_KIND_GROUP_LABEL = {
|
|
2220
2220
|
approval: "Approvals",
|
|
@@ -19099,14 +19099,20 @@ var COMPARE_LABEL = {
|
|
|
19099
19099
|
function compareKey(block, fields) {
|
|
19100
19100
|
return block.bucket?.key ?? block.compare?.key ?? offerableFields(onePerKey(fields), "date")[0]?.key ?? null;
|
|
19101
19101
|
}
|
|
19102
|
-
function
|
|
19103
|
-
|
|
19104
|
-
if (
|
|
19105
|
-
if (
|
|
19106
|
-
|
|
19107
|
-
return
|
|
19102
|
+
function holds(sent, stored) {
|
|
19103
|
+
const absent = (v) => v === void 0 || v === null;
|
|
19104
|
+
if (absent(sent)) return absent(stored);
|
|
19105
|
+
if (absent(stored)) return false;
|
|
19106
|
+
if (Array.isArray(sent)) {
|
|
19107
|
+
return Array.isArray(stored) && stored.length === sent.length && sent.every((v, i) => holds(v, stored[i]));
|
|
19108
19108
|
}
|
|
19109
|
-
|
|
19109
|
+
if (typeof sent === "object") {
|
|
19110
|
+
if (typeof stored !== "object" || Array.isArray(stored)) return false;
|
|
19111
|
+
return Object.entries(sent).every(
|
|
19112
|
+
([k, v]) => absent(v) || holds(v, stored[k])
|
|
19113
|
+
);
|
|
19114
|
+
}
|
|
19115
|
+
return Object.is(sent, stored);
|
|
19110
19116
|
}
|
|
19111
19117
|
var KEPT_SETTINGS = [
|
|
19112
19118
|
["kind", "its shape"],
|
|
@@ -19123,7 +19129,7 @@ function whatTheStoreDidNotKeep(sent, stored) {
|
|
|
19123
19129
|
lost.push(`\u201C${block.title}\u201D`);
|
|
19124
19130
|
return;
|
|
19125
19131
|
}
|
|
19126
|
-
const what = KEPT_SETTINGS.filter(([key]) =>
|
|
19132
|
+
const what = KEPT_SETTINGS.filter(([key]) => !holds(block[key], kept[key])).map(([, words]) => words);
|
|
19127
19133
|
if (what.length) lost.push(`${what.join(" and ")} for \u201C${block.title}\u201D`);
|
|
19128
19134
|
});
|
|
19129
19135
|
if (lost.length === 0) return null;
|