@ai-matrx/records-ui 0.116.46 → 0.116.48
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 -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 +76 -36
- 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 +70 -29
- 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 +5 -5
- 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.js
CHANGED
|
@@ -106,11 +106,11 @@ function personWallNow(at = /* @__PURE__ */ new Date()) {
|
|
|
106
106
|
return new Date(n("year"), n("month") - 1, n("day"), n("hour"), n("minute"), n("second"));
|
|
107
107
|
}
|
|
108
108
|
var LEVEL_WORD = {
|
|
109
|
-
viewer: "
|
|
110
|
-
commenter: "
|
|
111
|
-
edit_content: "
|
|
112
|
-
editor: "
|
|
113
|
-
admin: "
|
|
109
|
+
viewer: "View access",
|
|
110
|
+
commenter: "Comment access",
|
|
111
|
+
edit_content: "Edit access",
|
|
112
|
+
editor: "Edit access",
|
|
113
|
+
admin: "Full access"
|
|
114
114
|
};
|
|
115
115
|
var NEEDS = {
|
|
116
116
|
read: "viewer",
|
|
@@ -135,7 +135,7 @@ function levelNeededFor(what) {
|
|
|
135
135
|
return NEEDS[what];
|
|
136
136
|
}
|
|
137
137
|
var NOT_YET = "Checking what you may do here. Nothing is offered until then.";
|
|
138
|
-
var NOTHING_AT_ALL = "You have not been given this. Ask somebody
|
|
138
|
+
var NOTHING_AT_ALL = "You have not been given this. Ask somebody with Full access on it to share it with you.";
|
|
139
139
|
function sentenceFor(what, level) {
|
|
140
140
|
if (level === null) return NOTHING_AT_ALL;
|
|
141
141
|
const need = LEVEL_WORD[NEEDS[what]];
|
|
@@ -149,7 +149,7 @@ function sentenceFor(what, level) {
|
|
|
149
149
|
share: "pass this on to somebody else",
|
|
150
150
|
structure: "change the columns of this table"
|
|
151
151
|
};
|
|
152
|
-
return `You
|
|
152
|
+
return `You have ${have} here, and it takes ${need} to ${doing[what]}. Ask somebody with Full access on it to move you up.`;
|
|
153
153
|
}
|
|
154
154
|
function whatYouMayDo(level, known = true) {
|
|
155
155
|
const may = (what) => known && atLeast(level, NEEDS[what]);
|
|
@@ -1049,7 +1049,7 @@ function exampleOf(error) {
|
|
|
1049
1049
|
const example = detail.example;
|
|
1050
1050
|
return typeof example === "string" && example.trim() !== "" ? example.trim() : null;
|
|
1051
1051
|
}
|
|
1052
|
-
var TIMED_OUT_SAID = "
|
|
1052
|
+
var TIMED_OUT_SAID = "That took too long. Nothing was lost; try again.";
|
|
1053
1053
|
function refusalForAPerson(error) {
|
|
1054
1054
|
const code = error.code ?? "internal";
|
|
1055
1055
|
const timedOut = code === "timed_out" || error.sqlstate === "57014" || /canceling statement due to statement timeout/i.test(String(error.message ?? ""));
|
|
@@ -1211,7 +1211,7 @@ function rightsReason(rights, what, table) {
|
|
|
1211
1211
|
if (!rights.known) return ACTION_CHECKING_ACCESS_REASON;
|
|
1212
1212
|
if (rights[what]) return null;
|
|
1213
1213
|
if (rights.level === null) return ACTION_NO_ACCESS_REASON;
|
|
1214
|
-
return `Needs ${LEVEL_WORD[levelNeededFor(what)]}
|
|
1214
|
+
return `Needs ${LEVEL_WORD[levelNeededFor(what)]}`;
|
|
1215
1215
|
}
|
|
1216
1216
|
var TABLE_ACTION_CHORDS = {
|
|
1217
1217
|
"copy-link": { code: "KeyL", chord: "alt+shift+l" },
|