@ai-matrx/records-ui 0.116.46 → 0.116.47
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 +15 -1
- package/dist/{SaveToTable-SWB2ZN5X.js → SaveToTable-HG3HQMAQ.js} +5 -5
- package/dist/{chunk-KQR2RA4V.js → chunk-ABIUJCNS.js} +3 -3
- package/dist/chunk-ABIUJCNS.js.map +1 -0
- package/dist/{chunk-Y5QOV3XA.js → chunk-K3B5IRXY.js} +3 -3
- package/dist/{chunk-OV6QBL5R.js → chunk-LBZZDHV6.js} +8 -8
- package/dist/chunk-LBZZDHV6.js.map +1 -0
- package/dist/{chunk-ZUQUZOL5.js → chunk-MDXDJVDB.js} +3 -3
- package/dist/chunk-MDXDJVDB.js.map +1 -0
- package/dist/{chunk-UTMV5ES2.js → chunk-VJDJQDDI.js} +7 -7
- package/dist/{chunk-UTMV5ES2.js.map → chunk-VJDJQDDI.js.map} +1 -1
- package/dist/helpers.cjs +9 -9
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.js +9 -9
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +30 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/dist/object-actions.cjs +8 -8
- package/dist/object-actions.cjs.map +1 -1
- package/dist/object-actions.d.cts +1 -1
- package/dist/object-actions.d.ts +1 -1
- package/dist/object-actions.js +2 -2
- package/dist/{objectActions-Be9sBGvW.d.cts → objectActions-DK-qa5zC.d.cts} +1 -1
- package/dist/{objectActions-Be9sBGvW.d.ts → objectActions-DK-qa5zC.d.ts} +1 -1
- package/dist/pickers.cjs +8 -8
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-KQR2RA4V.js.map +0 -1
- package/dist/chunk-OV6QBL5R.js.map +0 -1
- package/dist/chunk-ZUQUZOL5.js.map +0 -1
- /package/dist/{SaveToTable-SWB2ZN5X.js.map → SaveToTable-HG3HQMAQ.js.map} +0 -0
- /package/dist/{chunk-Y5QOV3XA.js.map → chunk-K3B5IRXY.js.map} +0 -0
package/dist/helpers.cjs
CHANGED
|
@@ -127,11 +127,11 @@ function personWallNow(at = /* @__PURE__ */ new Date()) {
|
|
|
127
127
|
return new Date(n("year"), n("month") - 1, n("day"), n("hour"), n("minute"), n("second"));
|
|
128
128
|
}
|
|
129
129
|
var LEVEL_WORD = {
|
|
130
|
-
viewer: "
|
|
131
|
-
commenter: "
|
|
132
|
-
edit_content: "
|
|
133
|
-
editor: "
|
|
134
|
-
admin: "
|
|
130
|
+
viewer: "View access",
|
|
131
|
+
commenter: "Comment access",
|
|
132
|
+
edit_content: "Edit access",
|
|
133
|
+
editor: "Edit access",
|
|
134
|
+
admin: "Full access"
|
|
135
135
|
};
|
|
136
136
|
var NEEDS = {
|
|
137
137
|
read: "viewer",
|
|
@@ -156,7 +156,7 @@ function levelNeededFor(what) {
|
|
|
156
156
|
return NEEDS[what];
|
|
157
157
|
}
|
|
158
158
|
var NOT_YET = "Checking what you may do here. Nothing is offered until then.";
|
|
159
|
-
var NOTHING_AT_ALL = "You have not been given this. Ask somebody
|
|
159
|
+
var NOTHING_AT_ALL = "You have not been given this. Ask somebody with Full access on it to share it with you.";
|
|
160
160
|
function sentenceFor(what, level) {
|
|
161
161
|
if (level === null) return NOTHING_AT_ALL;
|
|
162
162
|
const need = LEVEL_WORD[NEEDS[what]];
|
|
@@ -170,7 +170,7 @@ function sentenceFor(what, level) {
|
|
|
170
170
|
share: "pass this on to somebody else",
|
|
171
171
|
structure: "change the columns of this table"
|
|
172
172
|
};
|
|
173
|
-
return `You
|
|
173
|
+
return `You have ${have} here, and it takes ${need} to ${doing[what]}. Ask somebody with Full access on it to move you up.`;
|
|
174
174
|
}
|
|
175
175
|
function whatYouMayDo(level, known = true) {
|
|
176
176
|
const may = (what) => known && fieldKinds.atLeast(level, NEEDS[what]);
|
|
@@ -1070,7 +1070,7 @@ function exampleOf(error) {
|
|
|
1070
1070
|
const example = detail.example;
|
|
1071
1071
|
return typeof example === "string" && example.trim() !== "" ? example.trim() : null;
|
|
1072
1072
|
}
|
|
1073
|
-
var TIMED_OUT_SAID = "
|
|
1073
|
+
var TIMED_OUT_SAID = "That took too long. Nothing was lost; try again.";
|
|
1074
1074
|
function refusalForAPerson(error) {
|
|
1075
1075
|
const code = error.code ?? "internal";
|
|
1076
1076
|
const timedOut = code === "timed_out" || error.sqlstate === "57014" || /canceling statement due to statement timeout/i.test(String(error.message ?? ""));
|
|
@@ -1232,7 +1232,7 @@ function rightsReason(rights, what, table) {
|
|
|
1232
1232
|
if (!rights.known) return ACTION_CHECKING_ACCESS_REASON;
|
|
1233
1233
|
if (rights[what]) return null;
|
|
1234
1234
|
if (rights.level === null) return ACTION_NO_ACCESS_REASON;
|
|
1235
|
-
return `Needs ${LEVEL_WORD[levelNeededFor(what)]}
|
|
1235
|
+
return `Needs ${LEVEL_WORD[levelNeededFor(what)]}`;
|
|
1236
1236
|
}
|
|
1237
1237
|
var TABLE_ACTION_CHORDS = {
|
|
1238
1238
|
"copy-link": { code: "KeyL", chord: "alt+shift+l" },
|