@svgrid/enterprise 3.1.66 → 3.1.68
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/dist/cdn/svgrid-enterprise.svelte-external.js +1 -1
- package/dist/designer/assets/{index-3vpkdW1l.js → index-Dwe1MXA7.js} +1 -1
- package/dist/designer/index.html +1 -1
- package/dist/fields/BaseTabs.svelte +81 -12
- package/dist/fields/BaseTabs.svelte.d.ts +9 -0
- package/dist/fields/RecordView.svelte +102 -58
- package/dist/fields/SvBase.svelte +4 -1
- package/dist/fields/SvBase.svelte.d.ts +9 -0
- package/dist/fields/activity.svelte.d.ts +37 -0
- package/dist/fields/activity.svelte.js +1 -1
- package/dist/fields/base-tables.d.ts +4 -0
- package/dist/fields/index.d.ts +1 -1
- package/dist/fields/index.js +1 -1
- package/dist/fields/messages/record.d.ts +14 -0
- package/dist/fields/messages/record.js +1 -1
- package/dist/fields/messages/shell.d.ts +7 -0
- package/dist/fields/messages/shell.js +1 -1
- package/dist/fields/messages.svelte.d.ts +21 -0
- package/dist/node/studio.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wc/sv-base-element.js +103 -98
- package/package.json +1 -1
|
@@ -117,6 +117,15 @@ type $$ComponentProps = {
|
|
|
117
117
|
}>) => BaseTable | null | void | Promise<BaseTable | null | void>;
|
|
118
118
|
activeTable?: string;
|
|
119
119
|
onTablesChange?: (tables: BaseTable[]) => void;
|
|
120
|
+
/**
|
|
121
|
+
* Where the tables are: as tabs along the top (default), or as a list on the left of the base,
|
|
122
|
+
* under the headings their `section` names (folding). A base narrower than 760px keeps tabs.
|
|
123
|
+
*/
|
|
124
|
+
tablesAt?: 'top' | 'left';
|
|
125
|
+
/** The person switched where the tables are (in the list of tables): keep it for the base. */
|
|
126
|
+
onTablesAt?: (at: 'top' | 'left') => void;
|
|
127
|
+
/** A table was put under a heading of the list on the left ('' under none): keep it. */
|
|
128
|
+
onTableSection?: (tableId: string, section: string) => void;
|
|
120
129
|
data?: any[];
|
|
121
130
|
columns?: any[];
|
|
122
131
|
views?: FieldView[];
|
|
@@ -29,6 +29,20 @@ export type RecordComment = {
|
|
|
29
29
|
* store). A person has one vote on a comment, and none on their own.
|
|
30
30
|
*/
|
|
31
31
|
votes?: CommentVotes;
|
|
32
|
+
/**
|
|
33
|
+
* The comment it answers, always the first of its thread (a store with
|
|
34
|
+
* `replies`, or no store): the record view shows it under that one.
|
|
35
|
+
*/
|
|
36
|
+
replyTo?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The thread was marked resolved (a store with `resolve`, or no store),
|
|
39
|
+
* when and by whom; only on a thread's first comment. The record view
|
|
40
|
+
* folds a resolved thread to one line, and it can be opened again.
|
|
41
|
+
*/
|
|
42
|
+
resolved?: {
|
|
43
|
+
at: number;
|
|
44
|
+
by?: string;
|
|
45
|
+
};
|
|
32
46
|
};
|
|
33
47
|
/** A comment's votes: the ids of the people who voted it up, and down. */
|
|
34
48
|
export type CommentVotes = {
|
|
@@ -78,6 +92,13 @@ export type RecordCommentStore = {
|
|
|
78
92
|
* store's comments take no votes. `comment` is the comment with the vote.
|
|
79
93
|
*/
|
|
80
94
|
vote?: (rowId: string, comment: RecordComment, vote: CommentVote, api: unknown, context: RecordCommentContext) => void;
|
|
95
|
+
/** It keeps replies (`replyTo`): each comment gets Reply, and the answers show under it. */
|
|
96
|
+
replies?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* A thread was marked resolved, or opened again (`resolved` false). With it
|
|
99
|
+
* a thread's first comment gets Resolve; `comment` carries `resolved`, or not.
|
|
100
|
+
*/
|
|
101
|
+
resolve?: (rowId: string, comment: RecordComment, resolved: boolean, api: unknown, context: RecordCommentContext) => void;
|
|
81
102
|
};
|
|
82
103
|
export type RecordChange = {
|
|
83
104
|
at: number;
|
|
@@ -236,6 +257,7 @@ export declare function commentStoreTakes(what: 'files' | 'internal'): boolean;
|
|
|
236
257
|
export declare function addComment(ctrl: any, rowId: string, text: string, extra?: {
|
|
237
258
|
files?: Attachment[];
|
|
238
259
|
internal?: boolean;
|
|
260
|
+
replyTo?: string;
|
|
239
261
|
}): void;
|
|
240
262
|
/** Whether this person may change or delete a comment: its author, where the store can do it. */
|
|
241
263
|
export declare function ownsComment(comment: RecordComment, what: 'update' | 'remove'): boolean;
|
|
@@ -257,6 +279,21 @@ export declare function mayVoteComment(comment: RecordComment): boolean;
|
|
|
257
279
|
* it back; the other vote replaces it. Nobody votes their own comment.
|
|
258
280
|
*/
|
|
259
281
|
export declare function voteComment(ctrl: any, rowId: string, id: string, vote: 'up' | 'down'): void;
|
|
282
|
+
/** Whether comments take replies here: no store (kept in the page), or a store with `replies`. */
|
|
283
|
+
export declare const commentsTakeReplies: () => boolean;
|
|
284
|
+
/** Whether threads can be marked resolved here: no store, or a store with `resolve`. */
|
|
285
|
+
export declare const commentsResolve: () => boolean;
|
|
286
|
+
/**
|
|
287
|
+
* A record's comments as threads: the comments that start one, in the order
|
|
288
|
+
* given, and the answers to each, oldest first. An answer to a comment no
|
|
289
|
+
* longer there stands on its own.
|
|
290
|
+
*/
|
|
291
|
+
export declare function commentThreads(list: ReadonlyArray<RecordComment>): {
|
|
292
|
+
top: RecordComment[];
|
|
293
|
+
replies: Map<string, RecordComment[]>;
|
|
294
|
+
};
|
|
295
|
+
/** Mark a thread resolved, or open it again: on the thread's first comment, by anyone who may comment. */
|
|
296
|
+
export declare function resolveComment(ctrl: any, rowId: string, id: string, resolved: boolean): void;
|
|
260
297
|
/** Delete a comment. Only its author can. */
|
|
261
298
|
export declare function deleteComment(ctrl: any, rowId: string, id: string): void;
|
|
262
299
|
/** "just now", "5 minutes ago", "3 hours ago", else the date. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{untrack}from"svelte";import{findFieldUser,getCurrentUser}from"./sources.svelte.js";import{mentionIds,parseMentions}from"./mentions.js";import{bm,bmCount}from"./messages.svelte.js";export const RECORDS_KEPT=2e4;let version=$state(0);const changes={bases:new WeakMap,grids:new WeakMap};const memory={bases:new WeakMap,grids:new WeakMap};const unseen={bases:new WeakMap,grids:new WeakMap};const ANY_BASE={};let store=null;let mentionHandler=null;let historyStore=null;const loaded={bases:new WeakMap,grids:new WeakMap};export function tableIdOf(ctrl){const id=ctrl?.props?.baseTableId;return typeof id==="string"&&id?id:void 0}function rowsOf(kept,scope,create){const named=typeof scope==="string"?{tableId:scope}:"tableId"in scope&&typeof scope.tableId==="string"?scope:null;const tableId=named?named.tableId:tableIdOf(scope);if(!tableId){let byRow2=kept.grids.get(scope);if(!byRow2&&create)kept.grids.set(scope,byRow2=new Map);return byRow2}const base=(named?named.base:scope?.props?.baseScope)??ANY_BASE;let byTable=kept.bases.get(base);if(!byTable&&create)kept.bases.set(base,byTable=new Map);let byRow=byTable?.get(tableId);if(!byRow&&byTable&&create)byTable.set(tableId,byRow=new Map);return byRow}export function setRecordComments(next){store=next;untrack(()=>version+=1)}export function setRecordHistory(next){historyStore=next;loaded.bases=new WeakMap;loaded.grids=new WeakMap;untrack(()=>version+=1)}const historyScope=scope=>{if(typeof scope==="string")return{tableId:scope};if("tableId"in scope&&typeof scope.tableId==="string")return{tableId:scope.tableId};const tableId=tableIdOf(scope);return tableId?{tableId}:scope};const historyContext=scope=>{const tableId=typeof scope==="string"?scope:"tableId"in scope&&typeof scope.tableId==="string"?scope.tableId:tableIdOf(scope);const api=typeof scope==="object"&&!("tableId"in scope)?scope?.buildApi?.():void 0;return{...tableId?{tableId}:{},...api?{api}:{}}};function keep(scope,rowId,change){if(!historyStore?.add)return;try{historyStore.add(rowId,change,historyContext(scope))}catch(err){console.error(err)}}export function loadHistory(scope,rowId){const kept=historyStore;if(!kept)return;const byRow=rowsOf(loaded,historyScope(scope),true);const was=byRow.get(rowId)?.[0];const ask=(was?.ask??0)+1;byRow.set(rowId,[{entries:was?.entries??[],loading:true,ask}]);untrack(()=>version+=1);const done=(entries,error)=>{if(historyStore!==kept||byRow.get(rowId)?.[0]?.ask!==ask)return;byRow.set(rowId,[{entries:Array.isArray(entries)?entries:[],loading:false,ask,...error?{error}:{}}]);version+=1};try{const out=kept.list(rowId,historyContext(scope));if(out&&typeof out.then==="function"){;out.then(entries=>done(entries),err=>done(was?.entries??[],err instanceof Error?err.message:String(err)))}else done(out)}catch(err){done(was?.entries??[],err instanceof Error?err.message:String(err))}}export function historyState(scope,rowId){void version;const l=rowsOf(loaded,historyScope(scope),false)?.get(rowId)?.[0];return{loading:!!l?.loading,...l?.error?{error:l.error}:{}}}const changeKey=c=>`${c.at}|${c.columnId}|${c.by??""}|${c.added?1:0}`;export function historyOf(scope,rowId){const session=changesOf(scope,rowId);const stored=rowsOf(loaded,historyScope(scope),false)?.get(rowId)?.[0]?.entries;if(!stored?.length)return session;const seen=new Set(stored.map(changeKey));return[...stored,...session.filter(c=>!seen.has(changeKey(c)))].sort((a,b)=>a.at-b.at)}export function setMentionHandler(next){mentionHandler=next}export function releaseMentionHandler(fn){if(mentionHandler===fn)mentionHandler=null}export function noteChange(scope,rowId,columnId,value,automation,via,how){const change={at:Date.now(),...automation?{automation}:{by:getCurrentUser()?.id},...via?{via}:{},columnId,value:Array.isArray(value)?[...value]:value,...how&&"from"in how?{from:copy(how.from)}:{},...how?.undone?{undone:true}:{},...how?.redone?{redone:true}:{}};const held=unstored.get(rowId);if(held)return void held.push(()=>addChange(scope,rowId,change));addChange(scope,rowId,change)}const unstored=new Map;export function holdChanges(rowId){if(!unstored.has(rowId))unstored.set(rowId,[])}export function releaseChanges(rowId,stored){const held=unstored.get(rowId);unstored.delete(rowId);if(stored&&held?.length)noteAtOnce(()=>held.forEach(note=>note()))}function addChange(scope,rowId,change){const byRow=rowsOf(changes,scope,true);const list=byRow.get(rowId)??[];list.push(change);if(list.length>50)list.splice(0,list.length-50);byRow.set(rowId,list);if(byRow.size>RECORDS_KEPT)byRow.delete(byRow.keys().next().value);if(noting)changedWhileNoting=true;else version+=1;keep(scope,rowId,change)}let noting=false;let changedWhileNoting=false;export function noteAtOnce(notes){const outer=noting;noting=true;try{return notes()}finally{noting=outer;if(!outer&&changedWhileNoting){changedWhileNoting=false;version+=1}}}export function changesOf(scope,rowId){void version;return rowsOf(changes,scope,false)?.get(rowId)??[]}export function noteRemoteChange(scope,rowId,change){const at=Date.now();const fields=change.fields??[];if(!change.added&&!fields.length)return;const byRow=rowsOf(changes,scope,true);const list=byRow.get(rowId)??[];const by=change.by?{by:change.by}:{};if(change.added)list.push({at,...by,remote:true,added:true,columnId:"",value:void 0});for(const f of fields)list.push({at,...by,remote:true,columnId:f.columnId,value:copy(f.to),from:copy(f.from)});if(list.length>50)list.splice(0,list.length-50);byRow.set(rowId,list);if(byRow.size>RECORDS_KEPT)byRow.delete(byRow.keys().next().value);const marks=rowsOf(unseen,scope,true);const was=marks.get(rowId)?.[0];const columns=new Set([...was?.columns??[],...fields.map(f=>f.columnId)]);marks.set(rowId,[{at,...by,columns,...change.added||was?.added?{added:true}:{}}]);version+=1}const copy=v=>Array.isArray(v)?[...v]:v;export function unseenOf(scope,rowId){void version;return rowsOf(unseen,scope,false)?.get(rowId)?.[0]}export function unseenIn(scope){void version;const out=new Map;for(const[id,list]of rowsOf(unseen,scope,false)??[])if(list[0])out.set(id,list[0]);return out}export function markSeen(scope,rowId){const marks=rowsOf(unseen,scope,false);if(marks?.delete(rowId))version+=1}export function markAllSeen(scope){const marks=rowsOf(unseen,scope,false);if(marks?.size){marks.clear();version+=1}}const contextOf=ctrl=>({tableId:tableIdOf(ctrl),api:ctrl?.buildApi?.()});const commentScope=ctrl=>{const tableId=tableIdOf(ctrl);return tableId?{tableId}:ctrl};export function commentsOf(ctrl,rowId){void version;if(store){const context=contextOf(ctrl);return store.list(rowId,context.api,context)}return rowsOf(memory,commentScope(ctrl),false)?.get(rowId)??[]}let seq=0;export function commentStoreTakes(what){return!!store?.[what]}export function addComment(ctrl,rowId,text,extra={}){const body=text.trim();const files=store?.files&&extra.files?.length?extra.files:[];if(!body&&!files.length)return;const context=contextOf(ctrl);const mentions=mentionIds(body);const comment={id:`c${Date.now().toString(36)}${seq+=1}`,rowId,...context.tableId?{tableId:context.tableId}:{},text:body,at:Date.now(),by:getCurrentUser()?.id,...mentions.length?{mentions}:{},...files.length?{files}:{},...store?.internal&&extra.internal?{internal:true}:{}};const kept=store;if(kept)kept.add(rowId,comment,context.api,context);else{const byRow=rowsOf(memory,commentScope(ctrl),true);byRow.set(rowId,[...byRow.get(rowId)??[],comment])}version+=1;announceMentions(ctrl,rowId,comment,mentions)}function announceMentions(ctrl,rowId,comment,mentions){const kept=store;const context=contextOf(ctrl);if(!mentions.length||!kept?.onMention&&!mentionHandler)return;const written=new Map(parseMentions(comment.text).flatMap(p=>"mention"in p?[[p.mention,p.name]]:[]));const event={comment,mentioned:mentions.map(id=>findFieldUser(id)??{id,name:written.get(id)||id}),rowId,...context.tableId?{tableId:context.tableId}:{},record:(ctrl?.allRows??[]).find(r=>r.id===rowId)?.original,api:context.api};for(const hook of[kept?.onMention,mentionHandler]){try{hook?.(event)}catch(err){console.error(err)}}}export function ownsComment(comment,what){if(store&&!store[what])return false;return comment.by===getCurrentUser()?.id}export function editComment(ctrl,rowId,id,text){const body=text.trim();const was=commentsOf(ctrl,rowId).find(c=>c.id===id);if(!was||!body&&!was.files?.length||!ownsComment(was,"update")||body===was.text)return;const mentions=mentionIds(body);const{mentions:_old,...rest}=was;const comment={...rest,text:body,editedAt:Date.now(),...mentions.length?{mentions}:{}};const kept=store;const context=contextOf(ctrl);if(kept)kept.update(rowId,comment,context.api,context);else{const byRow=rowsOf(memory,commentScope(ctrl),true);byRow.set(rowId,(byRow.get(rowId)??[]).map(c=>c.id===id?comment:c))}version+=1;announceMentions(ctrl,rowId,comment,mentions.filter(m=>!was.mentions?.includes(m)))}export const commentsTakeVotes=()=>!store||!!store.vote;export function commentVotes(comment){const ids=list=>Array.isArray(list)?[...new Set(list.map(String))]:[];return{up:ids(comment.votes?.up),down:ids(comment.votes?.down)}}export function myCommentVote(comment){const me=getCurrentUser()?.id;if(!me)return null;const v=commentVotes(comment);return v.up.includes(me)?"up":v.down.includes(me)?"down":null}export function mayVoteComment(comment){const me=getCurrentUser()?.id;return!!me&&commentsTakeVotes()&&comment.by!==me}export function voteComment(ctrl,rowId,id,vote){const was=commentsOf(ctrl,rowId).find(c=>c.id===id);const me=getCurrentUser()?.id;if(!was||!me||!mayVoteComment(was))return;const now=myCommentVote(was)===vote?null:vote;const v=commentVotes(was);const up=v.up.filter(x=>x!==me);const down=v.down.filter(x=>x!==me);if(now==="up")up.push(me);if(now==="down")down.push(me);const{votes:_old,...rest}=was;const comment={...rest,...up.length||down.length?{votes:{...up.length?{up}:{},...down.length?{down}:{}}}:{}};const kept=store;const context=contextOf(ctrl);if(kept)kept.vote(rowId,comment,now,context.api,context);else{const byRow=rowsOf(memory,commentScope(ctrl),true);byRow.set(rowId,(byRow.get(rowId)??[]).map(c=>c.id===id?comment:c))}version+=1}export function deleteComment(ctrl,rowId,id){const was=commentsOf(ctrl,rowId).find(c=>c.id===id);if(!was||!ownsComment(was,"remove"))return;const kept=store;const context=contextOf(ctrl);if(kept)kept.remove(rowId,id,context.api,context);else{const byRow=rowsOf(memory,commentScope(ctrl),true);byRow.set(rowId,(byRow.get(rowId)??[]).filter(c=>c.id!==id))}version+=1}export function timeAgo(at,now=Date.now()){const s=Math.max(0,Math.round((now-at)/1e3));if(s<45)return bm("record.justNow");const m=Math.round(s/60);if(m<60)return bmCount("record.minutesAgo",m);const h=Math.round(m/60);if(h<24)return bmCount("record.hoursAgo",h);return new Date(at).toLocaleDateString()}
|
|
1
|
+
import{untrack}from"svelte";import{findFieldUser,getCurrentUser}from"./sources.svelte.js";import{mentionIds,parseMentions}from"./mentions.js";import{bm,bmCount}from"./messages.svelte.js";export const RECORDS_KEPT=2e4;let version=$state(0);const changes={bases:new WeakMap,grids:new WeakMap};const memory={bases:new WeakMap,grids:new WeakMap};const unseen={bases:new WeakMap,grids:new WeakMap};const ANY_BASE={};let store=null;let mentionHandler=null;let historyStore=null;const loaded={bases:new WeakMap,grids:new WeakMap};export function tableIdOf(ctrl){const id=ctrl?.props?.baseTableId;return typeof id==="string"&&id?id:void 0}function rowsOf(kept,scope,create){const named=typeof scope==="string"?{tableId:scope}:"tableId"in scope&&typeof scope.tableId==="string"?scope:null;const tableId=named?named.tableId:tableIdOf(scope);if(!tableId){let byRow2=kept.grids.get(scope);if(!byRow2&&create)kept.grids.set(scope,byRow2=new Map);return byRow2}const base=(named?named.base:scope?.props?.baseScope)??ANY_BASE;let byTable=kept.bases.get(base);if(!byTable&&create)kept.bases.set(base,byTable=new Map);let byRow=byTable?.get(tableId);if(!byRow&&byTable&&create)byTable.set(tableId,byRow=new Map);return byRow}export function setRecordComments(next){store=next;untrack(()=>version+=1)}export function setRecordHistory(next){historyStore=next;loaded.bases=new WeakMap;loaded.grids=new WeakMap;untrack(()=>version+=1)}const historyScope=scope=>{if(typeof scope==="string")return{tableId:scope};if("tableId"in scope&&typeof scope.tableId==="string")return{tableId:scope.tableId};const tableId=tableIdOf(scope);return tableId?{tableId}:scope};const historyContext=scope=>{const tableId=typeof scope==="string"?scope:"tableId"in scope&&typeof scope.tableId==="string"?scope.tableId:tableIdOf(scope);const api=typeof scope==="object"&&!("tableId"in scope)?scope?.buildApi?.():void 0;return{...tableId?{tableId}:{},...api?{api}:{}}};function keep(scope,rowId,change){if(!historyStore?.add)return;try{historyStore.add(rowId,change,historyContext(scope))}catch(err){console.error(err)}}export function loadHistory(scope,rowId){const kept=historyStore;if(!kept)return;const byRow=rowsOf(loaded,historyScope(scope),true);const was=byRow.get(rowId)?.[0];const ask=(was?.ask??0)+1;byRow.set(rowId,[{entries:was?.entries??[],loading:true,ask}]);untrack(()=>version+=1);const done=(entries,error)=>{if(historyStore!==kept||byRow.get(rowId)?.[0]?.ask!==ask)return;byRow.set(rowId,[{entries:Array.isArray(entries)?entries:[],loading:false,ask,...error?{error}:{}}]);version+=1};try{const out=kept.list(rowId,historyContext(scope));if(out&&typeof out.then==="function"){;out.then(entries=>done(entries),err=>done(was?.entries??[],err instanceof Error?err.message:String(err)))}else done(out)}catch(err){done(was?.entries??[],err instanceof Error?err.message:String(err))}}export function historyState(scope,rowId){void version;const l=rowsOf(loaded,historyScope(scope),false)?.get(rowId)?.[0];return{loading:!!l?.loading,...l?.error?{error:l.error}:{}}}const changeKey=c=>`${c.at}|${c.columnId}|${c.by??""}|${c.added?1:0}`;export function historyOf(scope,rowId){const session=changesOf(scope,rowId);const stored=rowsOf(loaded,historyScope(scope),false)?.get(rowId)?.[0]?.entries;if(!stored?.length)return session;const seen=new Set(stored.map(changeKey));return[...stored,...session.filter(c=>!seen.has(changeKey(c)))].sort((a,b)=>a.at-b.at)}export function setMentionHandler(next){mentionHandler=next}export function releaseMentionHandler(fn){if(mentionHandler===fn)mentionHandler=null}export function noteChange(scope,rowId,columnId,value,automation,via,how){const change={at:Date.now(),...automation?{automation}:{by:getCurrentUser()?.id},...via?{via}:{},columnId,value:Array.isArray(value)?[...value]:value,...how&&"from"in how?{from:copy(how.from)}:{},...how?.undone?{undone:true}:{},...how?.redone?{redone:true}:{}};const held=unstored.get(rowId);if(held)return void held.push(()=>addChange(scope,rowId,change));addChange(scope,rowId,change)}const unstored=new Map;export function holdChanges(rowId){if(!unstored.has(rowId))unstored.set(rowId,[])}export function releaseChanges(rowId,stored){const held=unstored.get(rowId);unstored.delete(rowId);if(stored&&held?.length)noteAtOnce(()=>held.forEach(note=>note()))}function addChange(scope,rowId,change){const byRow=rowsOf(changes,scope,true);const list=byRow.get(rowId)??[];list.push(change);if(list.length>50)list.splice(0,list.length-50);byRow.set(rowId,list);if(byRow.size>RECORDS_KEPT)byRow.delete(byRow.keys().next().value);if(noting)changedWhileNoting=true;else version+=1;keep(scope,rowId,change)}let noting=false;let changedWhileNoting=false;export function noteAtOnce(notes){const outer=noting;noting=true;try{return notes()}finally{noting=outer;if(!outer&&changedWhileNoting){changedWhileNoting=false;version+=1}}}export function changesOf(scope,rowId){void version;return rowsOf(changes,scope,false)?.get(rowId)??[]}export function noteRemoteChange(scope,rowId,change){const at=Date.now();const fields=change.fields??[];if(!change.added&&!fields.length)return;const byRow=rowsOf(changes,scope,true);const list=byRow.get(rowId)??[];const by=change.by?{by:change.by}:{};if(change.added)list.push({at,...by,remote:true,added:true,columnId:"",value:void 0});for(const f of fields)list.push({at,...by,remote:true,columnId:f.columnId,value:copy(f.to),from:copy(f.from)});if(list.length>50)list.splice(0,list.length-50);byRow.set(rowId,list);if(byRow.size>RECORDS_KEPT)byRow.delete(byRow.keys().next().value);const marks=rowsOf(unseen,scope,true);const was=marks.get(rowId)?.[0];const columns=new Set([...was?.columns??[],...fields.map(f=>f.columnId)]);marks.set(rowId,[{at,...by,columns,...change.added||was?.added?{added:true}:{}}]);version+=1}const copy=v=>Array.isArray(v)?[...v]:v;export function unseenOf(scope,rowId){void version;return rowsOf(unseen,scope,false)?.get(rowId)?.[0]}export function unseenIn(scope){void version;const out=new Map;for(const[id,list]of rowsOf(unseen,scope,false)??[])if(list[0])out.set(id,list[0]);return out}export function markSeen(scope,rowId){const marks=rowsOf(unseen,scope,false);if(marks?.delete(rowId))version+=1}export function markAllSeen(scope){const marks=rowsOf(unseen,scope,false);if(marks?.size){marks.clear();version+=1}}const contextOf=ctrl=>({tableId:tableIdOf(ctrl),api:ctrl?.buildApi?.()});const commentScope=ctrl=>{const tableId=tableIdOf(ctrl);return tableId?{tableId}:ctrl};export function commentsOf(ctrl,rowId){void version;if(store){const context=contextOf(ctrl);return store.list(rowId,context.api,context)}return rowsOf(memory,commentScope(ctrl),false)?.get(rowId)??[]}let seq=0;export function commentStoreTakes(what){return!!store?.[what]}export function addComment(ctrl,rowId,text,extra={}){const body=text.trim();const files=store?.files&&extra.files?.length?extra.files:[];if(!body&&!files.length)return;const context=contextOf(ctrl);const mentions=mentionIds(body);const list=extra.replyTo&&commentsTakeReplies()?commentsOf(ctrl,rowId):[];const root=extra.replyTo?threadRoot(list,extra.replyTo):void 0;const comment={id:`c${Date.now().toString(36)}${seq+=1}`,rowId,...context.tableId?{tableId:context.tableId}:{},text:body,at:Date.now(),by:getCurrentUser()?.id,...mentions.length?{mentions}:{},...files.length?{files}:{},...store?.internal&&(extra.internal||root?.internal)?{internal:true}:{},...root?{replyTo:root.id}:{}};const kept=store;if(kept)kept.add(rowId,comment,context.api,context);else{const byRow=rowsOf(memory,commentScope(ctrl),true);byRow.set(rowId,[...byRow.get(rowId)??[],comment])}version+=1;announceMentions(ctrl,rowId,comment,mentions)}function announceMentions(ctrl,rowId,comment,mentions){const kept=store;const context=contextOf(ctrl);if(!mentions.length||!kept?.onMention&&!mentionHandler)return;const written=new Map(parseMentions(comment.text).flatMap(p=>"mention"in p?[[p.mention,p.name]]:[]));const event={comment,mentioned:mentions.map(id=>findFieldUser(id)??{id,name:written.get(id)||id}),rowId,...context.tableId?{tableId:context.tableId}:{},record:(ctrl?.allRows??[]).find(r=>r.id===rowId)?.original,api:context.api};for(const hook of[kept?.onMention,mentionHandler]){try{hook?.(event)}catch(err){console.error(err)}}}export function ownsComment(comment,what){if(store&&!store[what])return false;return comment.by===getCurrentUser()?.id}export function editComment(ctrl,rowId,id,text){const body=text.trim();const was=commentsOf(ctrl,rowId).find(c=>c.id===id);if(!was||!body&&!was.files?.length||!ownsComment(was,"update")||body===was.text)return;const mentions=mentionIds(body);const{mentions:_old,...rest}=was;const comment={...rest,text:body,editedAt:Date.now(),...mentions.length?{mentions}:{}};const kept=store;const context=contextOf(ctrl);if(kept)kept.update(rowId,comment,context.api,context);else{const byRow=rowsOf(memory,commentScope(ctrl),true);byRow.set(rowId,(byRow.get(rowId)??[]).map(c=>c.id===id?comment:c))}version+=1;announceMentions(ctrl,rowId,comment,mentions.filter(m=>!was.mentions?.includes(m)))}export const commentsTakeVotes=()=>!store||!!store.vote;export function commentVotes(comment){const ids=list=>Array.isArray(list)?[...new Set(list.map(String))]:[];return{up:ids(comment.votes?.up),down:ids(comment.votes?.down)}}export function myCommentVote(comment){const me=getCurrentUser()?.id;if(!me)return null;const v=commentVotes(comment);return v.up.includes(me)?"up":v.down.includes(me)?"down":null}export function mayVoteComment(comment){const me=getCurrentUser()?.id;return!!me&&commentsTakeVotes()&&comment.by!==me}export function voteComment(ctrl,rowId,id,vote){const was=commentsOf(ctrl,rowId).find(c=>c.id===id);const me=getCurrentUser()?.id;if(!was||!me||!mayVoteComment(was))return;const now=myCommentVote(was)===vote?null:vote;const v=commentVotes(was);const up=v.up.filter(x=>x!==me);const down=v.down.filter(x=>x!==me);if(now==="up")up.push(me);if(now==="down")down.push(me);const{votes:_old,...rest}=was;const comment={...rest,...up.length||down.length?{votes:{...up.length?{up}:{},...down.length?{down}:{}}}:{}};const kept=store;const context=contextOf(ctrl);if(kept)kept.vote(rowId,comment,now,context.api,context);else{const byRow=rowsOf(memory,commentScope(ctrl),true);byRow.set(rowId,(byRow.get(rowId)??[]).map(c=>c.id===id?comment:c))}version+=1}export const commentsTakeReplies=()=>!store||!!store.replies;export const commentsResolve=()=>!store||!!store.resolve;function threadRoot(list,id){const byId=new Map(list.map(c=>[c.id,c]));let at=byId.get(id);const seen=new Set;while(at?.replyTo&&byId.has(at.replyTo)&&!seen.has(at.id)){seen.add(at.id);at=byId.get(at.replyTo)}return at}export function commentThreads(list){const top=[];const replies=new Map;for(const c of list){const root=c.replyTo?threadRoot(list,c.replyTo):void 0;if(root&&root.id!==c.id){const answers=replies.get(root.id)??[];answers.push(c);replies.set(root.id,answers)}else top.push(c)}for(const answers of replies.values())answers.sort((a,b)=>a.at-b.at);return{top,replies}}export function resolveComment(ctrl,rowId,id,resolved){const root=threadRoot(commentsOf(ctrl,rowId),id);if(!root||!commentsResolve()||!!root.resolved===resolved)return;const{resolved:_old,...rest}=root;const comment={...rest,...resolved?{resolved:{at:Date.now(),...getCurrentUser()?.id?{by:getCurrentUser().id}:{}}}:{}};const kept=store;const context=contextOf(ctrl);if(kept)kept.resolve(rowId,comment,resolved,context.api,context);else{const byRow=rowsOf(memory,commentScope(ctrl),true);byRow.set(rowId,(byRow.get(rowId)??[]).map(c=>c.id===root.id?comment:c))}version+=1}export function deleteComment(ctrl,rowId,id){const was=commentsOf(ctrl,rowId).find(c=>c.id===id);if(!was||!ownsComment(was,"remove"))return;const kept=store;const context=contextOf(ctrl);if(kept)kept.remove(rowId,id,context.api,context);else{const byRow=rowsOf(memory,commentScope(ctrl),true);byRow.set(rowId,(byRow.get(rowId)??[]).filter(c=>c.id!==id))}version+=1}export function timeAgo(at,now=Date.now()){const s=Math.max(0,Math.round((now-at)/1e3));if(s<45)return bm("record.justNow");const m=Math.round(s/60);if(m<60)return bmCount("record.minutesAgo",m);const h=Math.round(m/60);if(h<24)return bmCount("record.hoursAgo",h);return new Date(at).toLocaleDateString()}
|
|
@@ -36,6 +36,10 @@ export type BaseTable = {
|
|
|
36
36
|
props?: Record<string, unknown>;
|
|
37
37
|
/** What the signed-in person may do in this table, over `<SvBase permissions>`. */
|
|
38
38
|
permissions?: BasePermissions;
|
|
39
|
+
/** A CSS colour for its tab (or its place in the list of tables): a tint, and the colour of its name. */
|
|
40
|
+
color?: string;
|
|
41
|
+
/** The heading it sits under when the tables are listed on the left (`<SvBase tablesAt="left">`). */
|
|
42
|
+
section?: string;
|
|
39
43
|
};
|
|
40
44
|
/**
|
|
41
45
|
* A record template: a name, and values by field id, written as the field
|
package/dist/fields/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export { setRecordActions, type RecordAction, type RecordActionContext, type Rec
|
|
|
38
38
|
export { setAutomationDrafter, type AutomationDrafter, type AutomationDraft } from './automation-drafter.js';
|
|
39
39
|
export { setRecordSeries, refreshRecordSeries, type RecordSeries, type SeriesOccurrence, type SeriesScope } from './record-series.svelte.js';
|
|
40
40
|
export { cronWords } from './cron-words.js';
|
|
41
|
-
export { setRecordComments, type RecordComment, type RecordCommentContext, type RecordCommentStore, type CommentVotes, type CommentVote } from './activity.svelte.js';
|
|
41
|
+
export { setRecordComments, commentThreads, resolveComment, type RecordComment, type RecordCommentContext, type RecordCommentStore, type CommentVotes, type CommentVote } from './activity.svelte.js';
|
|
42
42
|
export { setCommentSnippets, type CommentSnippet, type CommentSnippets } from './comment-snippets.svelte.js';
|
|
43
43
|
export { setFormSuggestions, type FormSuggestion, type FormSuggestions } from './form-suggestions.svelte.js';
|
|
44
44
|
export { setBaseMessages, baseMessages, BASE_MESSAGES, type BaseMessages, type BaseMessageKey } from './messages.svelte.js';
|
package/dist/fields/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{registerCellEditor as f,registerGridExtension as O,registerGridShortcuts as g}from"@svgrid/grid";import{nudgeEnterpriseFor as B}from"../license.js";import P from"./FieldCell.svelte";import L from"./RowAdder.svelte";import V from"./FootRowAdder.svelte";import H from"./AttachmentEditor.svelte";import K from"./FieldsHeaderEnd.svelte";import{askDeleteField as N,openFieldEditor as C,openRecord as U}from"./editor-request.svelte.js";import{enableAdvancedFilter as _,registerFilterKind as G}from"../advanced-filter-enable.js";import{compileFieldFilter as z,newCondition as h,resolveMeWith as W}from"./filter-model.js";import{hasBar as $,openBarPanel as w}from"./bar-request.svelte.js";import{groupRules as q,userSorts as X,writeSortState as j}from"./viewbar/sort-state.js";import{sortLabels as Y}from"./view-model.js";import{changesOf as J,noteChange as T}from"./activity.svelte.js";import{fieldUses as Q}from"./field-uses.js";import{getLinkedTable as Z}from"./sources.svelte.js";import{linkNames as ee,registerBaseCondition as oe}from"./base-alerts.js";import{duplicateField as re,hideField as ie,indexBeside as v,removeField as te}from"./field-ops.js";import{linkReaders as ne}from"./base-tables.js";import{viewOnlyItems as le}from"./base-share.js";import{canEditSchemaIn as se}from"./base-permissions.js";import{formulaReaders as de}from"./formula.js";import{BUILTIN_FIELD_TYPES as ae}from"./builtin-types.js";import{rowColorOf as me,rowColorRootClass as fe,tallRowClass as pe,rowMarkColor as ue,rowMarkLabel as ce}from"./row-colors.js";import{chooseRowColor as M}from"./row-color-choice.svelte.js";import{fieldPropsOf as x,fillFieldColumn as ge,getFieldType as A,isServerGroupRow as Ce,originalColumn as b,registerFieldType as be,ruleFieldNames as ye,typeDrawsCell as Fe}from"./registry.svelte.js";import he from"./RatingEditor.svelte";import we from"./LinkPickerEditor.svelte";import Te from"./DateEditor.svelte";import ve from"./SelectEditor.svelte";import Me from"./NumberEditor.svelte";import xe from"./LongTextEditor.svelte";import Ae from"./RichTextEditor.svelte";import Ee from"./VoteEditor.svelte";import ke from"./TimerEditor.svelte";import Se from"./ChecklistEditor.svelte";import Re from"./ColorEditor.svelte";import De from"./TimeOfDayEditor.svelte";import Ie from"./RowHeader.svelte";import Oe from"./GroupHeader.svelte";import Be from"./SummaryCell.svelte";import{getCurrentUser as E}from"./sources.svelte.js";import{fieldColumns as Pe,gridOf as y,primaryIdOf as F,rememberGrid as Le}from"./grid-access.js";import{bm as p}from"./messages.svelte.js";export{registerFieldType,getFieldType,listFieldTypes,fieldPropsOf,fillFieldColumn}from"./registry.svelte.js";export{linkHref,linkText}from"./links.js";export{setFieldUsers,getFieldUsers,setCurrentUser,getCurrentUser,registerLinkedTable,unregisterLinkedTable,getLinkedTable,listLinkedTables}from"./sources.svelte.js";export{canEditField,canPickChoice,defaultCanEditField,fieldEditorChoices,fieldEditors,setCanEditField,setFieldProtection}from"./field-access.svelte.js";export{FIELD_PREFIX,fieldToken,isFieldToken,personIds,recordOf,ruleFields,ruleNames,ruleUsers,tokenField}from"./people-rule.js";import{protectionText as Ve}from"./field-access.svelte.js";export{compileFormula,formulaError,FORMULA_FUNCTIONS,FormulaError}from"./formula.js";export{FORMULA_DOCS,syntaxArgs}from"./formula-docs.js";export{formatNumber,formatCurrency,formatPercent,formatDuration,parseDuration,formatDate}from"./format.js";export{timerRunning,timerSeconds,timerToggle,timerTotal}from"./timer.js";export{BRIGHT,OPTION_COLORS}from"./palette.js";export{convertValue,countCleared}from"./convert.js";export{openFieldEditor,closeFieldEditor,openRecord,closeRecord}from"./editor-request.svelte.js";export{setBarcodeScanner,barcodeScanSupported,scanBarcode}from"./barcode-scan.js";export{setDictation,dictationSupported,dictate}from"./dictation.svelte.js";export{default as SvBaseViewBar}from"./SvBaseViewBar.svelte";export{default as SvBaseForm}from"./SvBaseForm.svelte";export{default as SvBaseAutomations}from"./SvBaseAutomations.svelte";export{formPrefillLink,readFormPrefill}from"./form-logic.js";export{default as SvBase}from"./SvBase.svelte";export{addSubtasks,blankTable,newRecordId}from"./base-tables.js";export{baseSource,createBaseSync}from"./base-sync.js";export{baseFieldsFromSchema,baseTablesFromSchemas,baseSpecFromSchemas,baseTablesFromSpec}from"./base-schema.js";export{baseToSql,sqlName}from"./base-sql.js";export{applyBaseComments,withInverses}from"./base-schema.js";export{restoreItems,trashLabel}from"./base-trash.js";export{guessField,tableFromMatrix,recordsFromMatrix,matchColumns,mergeByKey}from"./base-import.js";export{baseFromDatabase,describeDatabase,createBaseEndpoint,baseFromEndpoint,createBaseFeed,baseFromSupabase,isSecretColumn}from"./base-connect.js";export{baseFromAirtable,airtableFormulaSupport,airtableColor,formulaFunctionsUsed}from"./airtable.js";export{registerAutomationAction,listAutomationActions,MAX_DEPTH as AUTOMATION_MAX_DEPTH,REPEAT_MOST as AUTOMATION_REPEAT_MOST,allActions as allAutomationActions,scriptRecord,scriptInput,webhookValues,triggerValues}from"./automations.svelte.js";export{createAutomationServer}from"./automation-server.js";export{chatPayload,chatHostOk}from"./automation-outbound.js";export{runScript,SCRIPT_MAX_LENGTH}from"./automation-script.js";export{newWebhookToken}from"./automation-edit.js";export{setViewActions}from"./view-actions.js";export{setRecordActions}from"./record-actions.js";export{setAutomationDrafter}from"./automation-drafter.js";export{setRecordSeries,refreshRecordSeries}from"./record-series.svelte.js";export{cronWords}from"./cron-words.js";export{setRecordComments}from"./activity.svelte.js";export{setCommentSnippets}from"./comment-snippets.svelte.js";export{setFormSuggestions}from"./form-suggestions.svelte.js";export{setBaseMessages,baseMessages,BASE_MESSAGES}from"./messages.svelte.js";export{setDateLocale,dateLocale}from"../date-locale.js";export{setRecordHistory,historyOf,loadHistory}from"./activity.svelte.js";export{setMentionHandler}from"./activity.svelte.js";export{mentionToken,mentionIds,mentionText,parseMentions,encodeMentions}from"./mentions.js";export{baseCondition,baseFilterOf}from"./base-alerts.js";export{compileFieldFilter,describeFieldFilter,filterKindOf,operatorsFor,ME}from"./filter-model.js";export{BUILTIN_FIELD_TYPES}from"./builtin-types.js";export{setAttachmentUploader,setAttachmentSources,attachmentsFromText,attachmentsText,toAttachments}from"./attachments.js";const m={edit:"M4 20h4L19 9l-4-4L4 16zM14 6l4 4",left:"M10 6l-6 6 6 6M4 12h11M20 5v14",right:"M14 6l6 6-6 6M20 12H9M4 5v14",duplicate:"M8 8h12v12H8zM16 8V4H4v12h4",hide:"M3 3l18 18M10.6 10.6a2 2 0 0 0 2.8 2.8M9.9 5.1A9.8 9.8 0 0 1 12 5c5 0 9 5 10 7a13.4 13.4 0 0 1-3 3.9M6.6 6.6A13.5 13.5 0 0 0 2 12c1 2 5 7 10 7a9.6 9.6 0 0 0 4.4-1.1",remove:"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13",color:"M12 3l6 7a6.5 6.5 0 1 1-12 0l6-7z",filter:"M4 5h16l-6 7v6l-4 2v-8z",group:"M4 5h16M4 10h10M4 15h16M4 20h10",info:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 11v5M12 8h.01",lock:"M6 11h12v9H6zM8.5 11V8a3.5 3.5 0 0 1 7 0v3"};function He(o,r){const e=(o?.internalColumns??[]).find(d=>String(d.id??d.field)===r),i=e?.fieldType==="singleSelect"&&e.field?me(o)?.field===e.field?{key:"field-rowcolor",label:p("fields.menuStopColoring"),icon:m.color,run:()=>M(o,null)}:{key:"field-rowcolor",label:p("fields.menuColorRows"),icon:m.color,run:()=>M(o,{field:String(e.field),...o.props.rowColor?.target?{target:o.props.rowColor.target}:{}})}:null,t=F(o)===r,l=e&&$(o)?[...h(r,e)?[{key:"field-filter",label:p("fields.menuFilter"),icon:m.filter,separatorBefore:!0,run:()=>Ke(o,r,e)}]:[],...o.groupingControlsEnabled?[]:[{key:"field-group",label:p("fields.menuGroup"),icon:m.group,run:()=>Ne(o,r)}]]:[];return[...i?[i]:[],{key:"field-edit",label:p("fields.menuEdit"),icon:m.edit,run:()=>C({ctrl:o,mode:"edit",columnId:r})},...t?[]:[{key:"field-left",label:p("fields.menuInsertLeft"),icon:m.left,run:()=>C({ctrl:o,mode:"add",index:v(o,r,"left")})}],{key:"field-right",label:p("fields.menuInsertRight"),icon:m.right,run:()=>C({ctrl:o,mode:"add",index:v(o,r,"right")})},{key:"field-duplicate",label:p("fields.menuDuplicate"),icon:m.duplicate,run:()=>{o.props.baseRefuseDuplicate?.(r)||re(o,r)}},...t?[]:[{key:"field-move-left",label:p("fields.menuMoveLeft"),icon:m.left,disabled:!S(o,r,-1),run:()=>R(o,r,-1)},{key:"field-move-right",label:p("fields.menuMoveRight"),icon:m.right,disabled:!S(o,r,1),run:()=>R(o,r,1)}],...l,...Je(o,r,e),...t?[]:[{key:"field-hide",label:p("fields.menuHide"),icon:m.hide,run:()=>ie(o,r)},{key:"field-delete",label:p("fields.menuDelete"),icon:m.remove,separatorBefore:!0,run:()=>e?.fieldType==="link"&&(e.fieldProps?.inverse&&Z(e.fieldProps.table)||ne({columns:o.internalColumns},e).length)||e&&de(o.internalColumns??[],e).length||Q(o,e).length?N({ctrl:o,columnId:r}):te(o,r)}]]}function k(o,r,e){const i=(o.allColumns??[]).map(l=>l.id),t=i[i.indexOf(r)+e];if(!(!t||t===F(o)||o.isColumnPinned?.(t)!==o.isColumnPinned?.(r)))return t}const S=(o,r,e)=>!!k(o,r,e);function R(o,r,e){const i=k(o,r,e);if(!i)return;const t=o.allColumns.map(n=>n.id),l=t.indexOf(r),d=t.indexOf(i);t[l]=i,t[d]=r;const a=o.grid.getAllColumns().map(n=>n.id),s=o.userColumnOrder??[];o.moveColumnsByUser(je(s.length?[...s,...a.filter(n=>!s.includes(n))]:a,t))}function Ke(o,r,e){const i=h(r,e);if(!i)return;const t=o.advancedFilter,l=t?.kind==="fieldFilter"?t:{kind:"fieldFilter",conjunction:"and",conditions:[]};o.buildApi().setAdvancedFilter({...l,conditions:[...l.conditions,i]}),w(o,"filter")}function Ne(o,r){const e=q(o);e.some(i=>i.id===r)||j(o.buildApi(),[...e,{id:r,desc:!1}],X(o)),w(o,"group")}function D(o,r,e,i,t){if(!r)return;const l=E()?.id,d=i??o.buildApi?.().getRowId?.(r),a=(s,n)=>{d!=null&&!t&&o.editedCellValues&&(o.editedCellValues={...o.editedCellValues,[`${d}:${s}`]:n})};for(const s of o?.internalColumns??[]){if(s.fieldType!=="lastModifiedTime"&&s.fieldType!=="lastModifiedBy")continue;const n=String(s.id??s.field);if(n===e||!s.field)continue;const u=x(b(s));u.watch==="specific"&&!(u.watchFields??[]).includes(e)||(s.fieldType==="lastModifiedTime"?a(n,r[s.field]=new Date().toISOString()):l!==void 0&&a(n,r[s.field]=l))}}export function baseReviewApplied(o){return(r,e,i)=>{const t=y(typeof o=="function"?o():o);if(!t)return;const l=t.buildApi?.(),d=l?.getOption?.("getRowId"),a=new Map;(i??l?.getData?.()??[]).forEach((n,u)=>a.set(String(d?d(n,u):u),n));const s=new Map((t.allColumns??[]).map(n=>[n.columnDef?.field,n.id]));for(const n of r){const u=a.get(n.rowId),c=s.get(n.field);!u||!c||(D(t,u,c),T(t,n.rowId,c,u[n.field],void 0,e==="undo"?void 0:n.source.label))}}}function Ue(o,r,e,i){if(!r)return;const t=(o?.allColumns??[]).find(c=>c.id===e)?.columnDef;if(!t?.field)return;const l=i??o.buildApi?.().getRowId?.(r);if(l==null)return;const d=String(l),a=r[t.field],s=o.history?.[o.historyPtr],n=[...J(o,d)].reverse().find(c=>c.columnId===e),u=s?.rowId===d&&s.columnId===e&&s.after===a?{from:s.before}:n?{from:n.value}:void 0;T(o,d,e,a,void 0,void 0,u)}function _e(o,r){if(o.key!==" "||o.ctrlKey||o.metaKey||o.altKey||o.shiftKey||r.editing||!r.activeCell)return!1;const e=y(r.api);if(!e?.props?.expandRows)return!1;const i=(e.allColumns??[]).find(l=>l.id===r.activeCell.columnId);if(i?.columnDef.editorType==="checkbox"||i?.columnDef.editorType==="fieldVote")return!1;const t=(e.allRows??[])[r.activeCell.rowIndex];return!t||e.isGroupRow?.(t)||Ce(t.original)?!1:(o.preventDefault(),U({ctrl:e,rowId:t.id}),!0)}function Ge(o,r){if(o.key!=="Enter"&&o.key!==" "||o.ctrlKey||o.metaKey||o.altKey||o.shiftKey||r.editing||!r.activeCell)return!1;const e=y(r.api);if(!e?.props?.baseDeleteSelection)return!1;const{rowIndex:i,colIndex:t}=r.activeCell,l=e.allColumns?.[t]?.columnDef.editorType,d=l==="checkbox";if(o.key===" "&&!d&&l!=="fieldVote")return!1;const a=r.ranges.at(-1);return o.key==="Enter"&&(r.ranges.length>1||a&&(a[0]!==a[2]||a[1]!==a[3]))||!e.isCellEditableAt(i,t)?!1:(o.preventDefault(),d?(e.toggleBooleanCell(i,t),!0):(r.startEditing(i,t),!!e.editingCell))}import{baseGridKey as ze}from"./base-keys.svelte.js";import{treeGridKey as We}from"./tree-edit.js";import{fillDownKey as $e}from"./base-fill.js";import{autoSumKey as qe,formatKey as Xe}from"./excel-habits.svelte.js";import{orderKeepingScreen as je}from"./column-order.js";let I=!1;export function enableFields(){if(I)return;I=!0;for(const e of ae)A(e.id)||be(e);O({column:(e,i)=>ge(e,i),cell:P,hasCell:e=>Fe(e??{}),cellEdited:(e,i)=>{D(e,i.row,i.columnId,i.rowId,i.offGrid),Ue(e,i.row,i.columnId,i.rowId),Ye(e,i.row,i.columnId,i.rowId)},rangeAction:(e,i)=>e.props?.baseRangeAction?.(i)===!0,bodyEnd:L,footEnd:V,rowMarkColor:(e,i)=>ue(e,i),rowMarkLabel:(e,i)=>ce(e,i),headerIcon:e=>e?.fieldType?A(e.fieldType)?.icon:null,headerNote:e=>{if(!e?.fieldType)return null;const i=typeof e.description=="string"?e.description:"",t=Ve(b(e),x(b(e)),ye(e));return t?{text:i?`${t} ${i}`:t,icon:m.lock}:i?{text:i,icon:m.info}:null},sortLabels:e=>e?.fieldType?Y(e):null,lockColumn:(e,i)=>F(e)===i,rowHeader:e=>e?.props?.expandRows?Ie:null,groupRow:e=>!e?.props?.rowModel&&Pe(e).some(i=>i.fieldType)?Oe:null,summaryCell:e=>e?.props?.rowModel?null:Be,rootClass:e=>{Le(e);const i=e?.advancedFilter?.kind==="fieldFilter"?"sv-fields-own-filter":"",t=i&&!e?.toolPanelEnabled&&!e?.chartingEnabled?"sv-fields-filter-only":"",l=e?.groupingColumns?.length?"sv-fields-grouped":"";return[fe(e),pe(e),i,t,l].filter(Boolean).join(" ")||null},headerEnd:K,columnMenuItems:(e,i)=>e?.props?.fieldMenu?le(e,He(e,i),!se(e)):[]});const o=e=>({value:e.value,typed:e.typed,columnDef:e.columnDef,columnId:e.columnId,row:e.row,onCommit:e.onCommit,onCancel:e.onCancel});f("fieldRating",{component:he,props:o,typeToEdit:e=>/^[0-9]$/.test(e)}),f("fieldLink",{component:we,props:o,typeToEdit:e=>e!==" "}),f("fieldNumber",{component:Me,props:e=>({...o(e),onCommitAndMove:e.onCommitAndMove,onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>/[0-9.,:+\-(=]/.test(e)}),f("fieldLongText",{component:xe,props:e=>({...o(e),onCommitAndMove:e.onCommitAndMove})}),f("fieldSelect",{component:ve,props:e=>({...o(e),grid:e.grid,onChange:e.onChange,onCommitAndMove:e.onCommitAndMove})}),f("attachment",{component:H,props:e=>({value:e.value,columnDef:e.columnDef,columnId:e.columnId,row:e.row,onCommit:e.onCommit,onCancel:e.onCancel}),typeToEdit:!1});const r=e=>({...o(e),onCommitAndMove:e.onCommitAndMove});f("fieldChecklist",{component:Se,props:r}),f("fieldRichText",{component:Ae,props:r}),f("fieldVote",{component:Ee,props:r,typeToEdit:e=>e===" "}),f("fieldTimer",{component:ke,props:e=>({...r(e),rowId:e.rowId,onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>e===" "||/[0-9:]/.test(e)}),f("fieldColor",{component:Re,props:r}),f("fieldTime",{component:De,props:e=>({...r(e),onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>/[0-9]/.test(e)}),f("fieldDate",{component:Te,props:e=>({...r(e),onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>/[0-9a-z]/i.test(e)}),G("fieldFilter",(e,i)=>z(e,i.getValue,ee)),W(()=>E()?.id),oe(),_(),g(_e,{id:"svgrid-fields-space"}),g(ze,{id:"svgrid-fields-keys"}),g(Ge,{id:"svgrid-base-keys"}),g($e,{id:"svgrid-base-fill-down"}),g(qe,{id:"svgrid-base-autosum",priority:200}),g(Xe,{id:"svgrid-base-format-keys",priority:200}),g(We,{id:"svgrid-base-tree"}),B("base","SvGrid Base")}export{inboxRecords,listColumns,listGroups,viewRecords}from"./list-view.js";import{aiFieldEdited as Ye,aiFieldMenuItems as Je}from"./ai-field.svelte.js";export{generateAIField,regenerateAIFields,cancelAIField,pendingAIField,setAIFieldConcurrency}from"./ai-field.svelte.js";export{aiPromptError,readAIAnswer}from"./ai-prompt.js";export{moveTile,newTile,putTile,removeTile,tileResult,tileRows,tileTitle}from"./dashboard.js";export{sharedTables,sharedViews,shareOf}from"./base-share.js";export{recordsAsShown,downloadAsShown,filesFolders,safeFolder}from"./base-export.js";export{permittedTables,permittedRecords,permittedViews,tablePermissions,gridPermissions,canDeleteRecord}from"./base-permissions.js";export{computeRecords,computeRecord,computedValues,computedFields,evaluateFilter,filterRecords}from"./base-compute.js";export{queryRecords,fieldFilterToSql,fieldFilterToPostgrest,supabaseFieldFilter,viewFilterOf}from"./base-query.js";export{searchBase}from"./base-search.js";export{toChecklist,parseChecklist,checklistText,checklistProgress}from"./checklist.js";export{parseColor}from"./color-value.js";export{parseTimeOfDay,formatTimeOfDay,timeSeconds}from"./time-of-day.js";export{recordDock,setRecordDock,recordDockWidth,setRecordDockWidth}from"./record-dock.svelte.js";
|
|
1
|
+
import{registerCellEditor as f,registerGridExtension as O,registerGridShortcuts as g}from"@svgrid/grid";import{nudgeEnterpriseFor as B}from"../license.js";import P from"./FieldCell.svelte";import L from"./RowAdder.svelte";import V from"./FootRowAdder.svelte";import H from"./AttachmentEditor.svelte";import K from"./FieldsHeaderEnd.svelte";import{askDeleteField as N,openFieldEditor as C,openRecord as U}from"./editor-request.svelte.js";import{enableAdvancedFilter as _,registerFilterKind as G}from"../advanced-filter-enable.js";import{compileFieldFilter as z,newCondition as F,resolveMeWith as W}from"./filter-model.js";import{hasBar as $,openBarPanel as T}from"./bar-request.svelte.js";import{groupRules as q,userSorts as X,writeSortState as j}from"./viewbar/sort-state.js";import{sortLabels as Y}from"./view-model.js";import{changesOf as J,noteChange as w}from"./activity.svelte.js";import{fieldUses as Q}from"./field-uses.js";import{getLinkedTable as Z}from"./sources.svelte.js";import{linkNames as ee,registerBaseCondition as oe}from"./base-alerts.js";import{duplicateField as re,hideField as ie,indexBeside as v,removeField as te}from"./field-ops.js";import{linkReaders as ne}from"./base-tables.js";import{viewOnlyItems as le}from"./base-share.js";import{canEditSchemaIn as se}from"./base-permissions.js";import{formulaReaders as de}from"./formula.js";import{BUILTIN_FIELD_TYPES as ae}from"./builtin-types.js";import{rowColorOf as me,rowColorRootClass as fe,tallRowClass as pe,rowMarkColor as ue,rowMarkLabel as ce}from"./row-colors.js";import{chooseRowColor as M}from"./row-color-choice.svelte.js";import{fieldPropsOf as x,fillFieldColumn as ge,getFieldType as A,isServerGroupRow as Ce,originalColumn as b,registerFieldType as be,ruleFieldNames as ye,typeDrawsCell as he}from"./registry.svelte.js";import Fe from"./RatingEditor.svelte";import Te from"./LinkPickerEditor.svelte";import we from"./DateEditor.svelte";import ve from"./SelectEditor.svelte";import Me from"./NumberEditor.svelte";import xe from"./LongTextEditor.svelte";import Ae from"./RichTextEditor.svelte";import Ee from"./VoteEditor.svelte";import ke from"./TimerEditor.svelte";import Se from"./ChecklistEditor.svelte";import Re from"./ColorEditor.svelte";import De from"./TimeOfDayEditor.svelte";import Ie from"./RowHeader.svelte";import Oe from"./GroupHeader.svelte";import Be from"./SummaryCell.svelte";import{getCurrentUser as E}from"./sources.svelte.js";import{fieldColumns as Pe,gridOf as y,primaryIdOf as h,rememberGrid as Le}from"./grid-access.js";import{bm as p}from"./messages.svelte.js";export{registerFieldType,getFieldType,listFieldTypes,fieldPropsOf,fillFieldColumn}from"./registry.svelte.js";export{linkHref,linkText}from"./links.js";export{setFieldUsers,getFieldUsers,setCurrentUser,getCurrentUser,registerLinkedTable,unregisterLinkedTable,getLinkedTable,listLinkedTables}from"./sources.svelte.js";export{canEditField,canPickChoice,defaultCanEditField,fieldEditorChoices,fieldEditors,setCanEditField,setFieldProtection}from"./field-access.svelte.js";export{FIELD_PREFIX,fieldToken,isFieldToken,personIds,recordOf,ruleFields,ruleNames,ruleUsers,tokenField}from"./people-rule.js";import{protectionText as Ve}from"./field-access.svelte.js";export{compileFormula,formulaError,FORMULA_FUNCTIONS,FormulaError}from"./formula.js";export{FORMULA_DOCS,syntaxArgs}from"./formula-docs.js";export{formatNumber,formatCurrency,formatPercent,formatDuration,parseDuration,formatDate}from"./format.js";export{timerRunning,timerSeconds,timerToggle,timerTotal}from"./timer.js";export{BRIGHT,OPTION_COLORS}from"./palette.js";export{convertValue,countCleared}from"./convert.js";export{openFieldEditor,closeFieldEditor,openRecord,closeRecord}from"./editor-request.svelte.js";export{setBarcodeScanner,barcodeScanSupported,scanBarcode}from"./barcode-scan.js";export{setDictation,dictationSupported,dictate}from"./dictation.svelte.js";export{default as SvBaseViewBar}from"./SvBaseViewBar.svelte";export{default as SvBaseForm}from"./SvBaseForm.svelte";export{default as SvBaseAutomations}from"./SvBaseAutomations.svelte";export{formPrefillLink,readFormPrefill}from"./form-logic.js";export{default as SvBase}from"./SvBase.svelte";export{addSubtasks,blankTable,newRecordId}from"./base-tables.js";export{baseSource,createBaseSync}from"./base-sync.js";export{baseFieldsFromSchema,baseTablesFromSchemas,baseSpecFromSchemas,baseTablesFromSpec}from"./base-schema.js";export{baseToSql,sqlName}from"./base-sql.js";export{applyBaseComments,withInverses}from"./base-schema.js";export{restoreItems,trashLabel}from"./base-trash.js";export{guessField,tableFromMatrix,recordsFromMatrix,matchColumns,mergeByKey}from"./base-import.js";export{baseFromDatabase,describeDatabase,createBaseEndpoint,baseFromEndpoint,createBaseFeed,baseFromSupabase,isSecretColumn}from"./base-connect.js";export{baseFromAirtable,airtableFormulaSupport,airtableColor,formulaFunctionsUsed}from"./airtable.js";export{registerAutomationAction,listAutomationActions,MAX_DEPTH as AUTOMATION_MAX_DEPTH,REPEAT_MOST as AUTOMATION_REPEAT_MOST,allActions as allAutomationActions,scriptRecord,scriptInput,webhookValues,triggerValues}from"./automations.svelte.js";export{createAutomationServer}from"./automation-server.js";export{chatPayload,chatHostOk}from"./automation-outbound.js";export{runScript,SCRIPT_MAX_LENGTH}from"./automation-script.js";export{newWebhookToken}from"./automation-edit.js";export{setViewActions}from"./view-actions.js";export{setRecordActions}from"./record-actions.js";export{setAutomationDrafter}from"./automation-drafter.js";export{setRecordSeries,refreshRecordSeries}from"./record-series.svelte.js";export{cronWords}from"./cron-words.js";export{setRecordComments,commentThreads,resolveComment}from"./activity.svelte.js";export{setCommentSnippets}from"./comment-snippets.svelte.js";export{setFormSuggestions}from"./form-suggestions.svelte.js";export{setBaseMessages,baseMessages,BASE_MESSAGES}from"./messages.svelte.js";export{setDateLocale,dateLocale}from"../date-locale.js";export{setRecordHistory,historyOf,loadHistory}from"./activity.svelte.js";export{setMentionHandler}from"./activity.svelte.js";export{mentionToken,mentionIds,mentionText,parseMentions,encodeMentions}from"./mentions.js";export{baseCondition,baseFilterOf}from"./base-alerts.js";export{compileFieldFilter,describeFieldFilter,filterKindOf,operatorsFor,ME}from"./filter-model.js";export{BUILTIN_FIELD_TYPES}from"./builtin-types.js";export{setAttachmentUploader,setAttachmentSources,attachmentsFromText,attachmentsText,toAttachments}from"./attachments.js";const m={edit:"M4 20h4L19 9l-4-4L4 16zM14 6l4 4",left:"M10 6l-6 6 6 6M4 12h11M20 5v14",right:"M14 6l6 6-6 6M20 12H9M4 5v14",duplicate:"M8 8h12v12H8zM16 8V4H4v12h4",hide:"M3 3l18 18M10.6 10.6a2 2 0 0 0 2.8 2.8M9.9 5.1A9.8 9.8 0 0 1 12 5c5 0 9 5 10 7a13.4 13.4 0 0 1-3 3.9M6.6 6.6A13.5 13.5 0 0 0 2 12c1 2 5 7 10 7a9.6 9.6 0 0 0 4.4-1.1",remove:"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13",color:"M12 3l6 7a6.5 6.5 0 1 1-12 0l6-7z",filter:"M4 5h16l-6 7v6l-4 2v-8z",group:"M4 5h16M4 10h10M4 15h16M4 20h10",info:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 11v5M12 8h.01",lock:"M6 11h12v9H6zM8.5 11V8a3.5 3.5 0 0 1 7 0v3"};function He(o,r){const e=(o?.internalColumns??[]).find(d=>String(d.id??d.field)===r),i=e?.fieldType==="singleSelect"&&e.field?me(o)?.field===e.field?{key:"field-rowcolor",label:p("fields.menuStopColoring"),icon:m.color,run:()=>M(o,null)}:{key:"field-rowcolor",label:p("fields.menuColorRows"),icon:m.color,run:()=>M(o,{field:String(e.field),...o.props.rowColor?.target?{target:o.props.rowColor.target}:{}})}:null,t=h(o)===r,l=e&&$(o)?[...F(r,e)?[{key:"field-filter",label:p("fields.menuFilter"),icon:m.filter,separatorBefore:!0,run:()=>Ke(o,r,e)}]:[],...o.groupingControlsEnabled?[]:[{key:"field-group",label:p("fields.menuGroup"),icon:m.group,run:()=>Ne(o,r)}]]:[];return[...i?[i]:[],{key:"field-edit",label:p("fields.menuEdit"),icon:m.edit,run:()=>C({ctrl:o,mode:"edit",columnId:r})},...t?[]:[{key:"field-left",label:p("fields.menuInsertLeft"),icon:m.left,run:()=>C({ctrl:o,mode:"add",index:v(o,r,"left")})}],{key:"field-right",label:p("fields.menuInsertRight"),icon:m.right,run:()=>C({ctrl:o,mode:"add",index:v(o,r,"right")})},{key:"field-duplicate",label:p("fields.menuDuplicate"),icon:m.duplicate,run:()=>{o.props.baseRefuseDuplicate?.(r)||re(o,r)}},...t?[]:[{key:"field-move-left",label:p("fields.menuMoveLeft"),icon:m.left,disabled:!S(o,r,-1),run:()=>R(o,r,-1)},{key:"field-move-right",label:p("fields.menuMoveRight"),icon:m.right,disabled:!S(o,r,1),run:()=>R(o,r,1)}],...l,...Je(o,r,e),...t?[]:[{key:"field-hide",label:p("fields.menuHide"),icon:m.hide,run:()=>ie(o,r)},{key:"field-delete",label:p("fields.menuDelete"),icon:m.remove,separatorBefore:!0,run:()=>e?.fieldType==="link"&&(e.fieldProps?.inverse&&Z(e.fieldProps.table)||ne({columns:o.internalColumns},e).length)||e&&de(o.internalColumns??[],e).length||Q(o,e).length?N({ctrl:o,columnId:r}):te(o,r)}]]}function k(o,r,e){const i=(o.allColumns??[]).map(l=>l.id),t=i[i.indexOf(r)+e];if(!(!t||t===h(o)||o.isColumnPinned?.(t)!==o.isColumnPinned?.(r)))return t}const S=(o,r,e)=>!!k(o,r,e);function R(o,r,e){const i=k(o,r,e);if(!i)return;const t=o.allColumns.map(n=>n.id),l=t.indexOf(r),d=t.indexOf(i);t[l]=i,t[d]=r;const a=o.grid.getAllColumns().map(n=>n.id),s=o.userColumnOrder??[];o.moveColumnsByUser(je(s.length?[...s,...a.filter(n=>!s.includes(n))]:a,t))}function Ke(o,r,e){const i=F(r,e);if(!i)return;const t=o.advancedFilter,l=t?.kind==="fieldFilter"?t:{kind:"fieldFilter",conjunction:"and",conditions:[]};o.buildApi().setAdvancedFilter({...l,conditions:[...l.conditions,i]}),T(o,"filter")}function Ne(o,r){const e=q(o);e.some(i=>i.id===r)||j(o.buildApi(),[...e,{id:r,desc:!1}],X(o)),T(o,"group")}function D(o,r,e,i,t){if(!r)return;const l=E()?.id,d=i??o.buildApi?.().getRowId?.(r),a=(s,n)=>{d!=null&&!t&&o.editedCellValues&&(o.editedCellValues={...o.editedCellValues,[`${d}:${s}`]:n})};for(const s of o?.internalColumns??[]){if(s.fieldType!=="lastModifiedTime"&&s.fieldType!=="lastModifiedBy")continue;const n=String(s.id??s.field);if(n===e||!s.field)continue;const u=x(b(s));u.watch==="specific"&&!(u.watchFields??[]).includes(e)||(s.fieldType==="lastModifiedTime"?a(n,r[s.field]=new Date().toISOString()):l!==void 0&&a(n,r[s.field]=l))}}export function baseReviewApplied(o){return(r,e,i)=>{const t=y(typeof o=="function"?o():o);if(!t)return;const l=t.buildApi?.(),d=l?.getOption?.("getRowId"),a=new Map;(i??l?.getData?.()??[]).forEach((n,u)=>a.set(String(d?d(n,u):u),n));const s=new Map((t.allColumns??[]).map(n=>[n.columnDef?.field,n.id]));for(const n of r){const u=a.get(n.rowId),c=s.get(n.field);!u||!c||(D(t,u,c),w(t,n.rowId,c,u[n.field],void 0,e==="undo"?void 0:n.source.label))}}}function Ue(o,r,e,i){if(!r)return;const t=(o?.allColumns??[]).find(c=>c.id===e)?.columnDef;if(!t?.field)return;const l=i??o.buildApi?.().getRowId?.(r);if(l==null)return;const d=String(l),a=r[t.field],s=o.history?.[o.historyPtr],n=[...J(o,d)].reverse().find(c=>c.columnId===e),u=s?.rowId===d&&s.columnId===e&&s.after===a?{from:s.before}:n?{from:n.value}:void 0;w(o,d,e,a,void 0,void 0,u)}function _e(o,r){if(o.key!==" "||o.ctrlKey||o.metaKey||o.altKey||o.shiftKey||r.editing||!r.activeCell)return!1;const e=y(r.api);if(!e?.props?.expandRows)return!1;const i=(e.allColumns??[]).find(l=>l.id===r.activeCell.columnId);if(i?.columnDef.editorType==="checkbox"||i?.columnDef.editorType==="fieldVote")return!1;const t=(e.allRows??[])[r.activeCell.rowIndex];return!t||e.isGroupRow?.(t)||Ce(t.original)?!1:(o.preventDefault(),U({ctrl:e,rowId:t.id}),!0)}function Ge(o,r){if(o.key!=="Enter"&&o.key!==" "||o.ctrlKey||o.metaKey||o.altKey||o.shiftKey||r.editing||!r.activeCell)return!1;const e=y(r.api);if(!e?.props?.baseDeleteSelection)return!1;const{rowIndex:i,colIndex:t}=r.activeCell,l=e.allColumns?.[t]?.columnDef.editorType,d=l==="checkbox";if(o.key===" "&&!d&&l!=="fieldVote")return!1;const a=r.ranges.at(-1);return o.key==="Enter"&&(r.ranges.length>1||a&&(a[0]!==a[2]||a[1]!==a[3]))||!e.isCellEditableAt(i,t)?!1:(o.preventDefault(),d?(e.toggleBooleanCell(i,t),!0):(r.startEditing(i,t),!!e.editingCell))}import{baseGridKey as ze}from"./base-keys.svelte.js";import{treeGridKey as We}from"./tree-edit.js";import{fillDownKey as $e}from"./base-fill.js";import{autoSumKey as qe,formatKey as Xe}from"./excel-habits.svelte.js";import{orderKeepingScreen as je}from"./column-order.js";let I=!1;export function enableFields(){if(I)return;I=!0;for(const e of ae)A(e.id)||be(e);O({column:(e,i)=>ge(e,i),cell:P,hasCell:e=>he(e??{}),cellEdited:(e,i)=>{D(e,i.row,i.columnId,i.rowId,i.offGrid),Ue(e,i.row,i.columnId,i.rowId),Ye(e,i.row,i.columnId,i.rowId)},rangeAction:(e,i)=>e.props?.baseRangeAction?.(i)===!0,bodyEnd:L,footEnd:V,rowMarkColor:(e,i)=>ue(e,i),rowMarkLabel:(e,i)=>ce(e,i),headerIcon:e=>e?.fieldType?A(e.fieldType)?.icon:null,headerNote:e=>{if(!e?.fieldType)return null;const i=typeof e.description=="string"?e.description:"",t=Ve(b(e),x(b(e)),ye(e));return t?{text:i?`${t} ${i}`:t,icon:m.lock}:i?{text:i,icon:m.info}:null},sortLabels:e=>e?.fieldType?Y(e):null,lockColumn:(e,i)=>h(e)===i,rowHeader:e=>e?.props?.expandRows?Ie:null,groupRow:e=>!e?.props?.rowModel&&Pe(e).some(i=>i.fieldType)?Oe:null,summaryCell:e=>e?.props?.rowModel?null:Be,rootClass:e=>{Le(e);const i=e?.advancedFilter?.kind==="fieldFilter"?"sv-fields-own-filter":"",t=i&&!e?.toolPanelEnabled&&!e?.chartingEnabled?"sv-fields-filter-only":"",l=e?.groupingColumns?.length?"sv-fields-grouped":"";return[fe(e),pe(e),i,t,l].filter(Boolean).join(" ")||null},headerEnd:K,columnMenuItems:(e,i)=>e?.props?.fieldMenu?le(e,He(e,i),!se(e)):[]});const o=e=>({value:e.value,typed:e.typed,columnDef:e.columnDef,columnId:e.columnId,row:e.row,onCommit:e.onCommit,onCancel:e.onCancel});f("fieldRating",{component:Fe,props:o,typeToEdit:e=>/^[0-9]$/.test(e)}),f("fieldLink",{component:Te,props:o,typeToEdit:e=>e!==" "}),f("fieldNumber",{component:Me,props:e=>({...o(e),onCommitAndMove:e.onCommitAndMove,onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>/[0-9.,:+\-(=]/.test(e)}),f("fieldLongText",{component:xe,props:e=>({...o(e),onCommitAndMove:e.onCommitAndMove})}),f("fieldSelect",{component:ve,props:e=>({...o(e),grid:e.grid,onChange:e.onChange,onCommitAndMove:e.onCommitAndMove})}),f("attachment",{component:H,props:e=>({value:e.value,columnDef:e.columnDef,columnId:e.columnId,row:e.row,onCommit:e.onCommit,onCancel:e.onCancel}),typeToEdit:!1});const r=e=>({...o(e),onCommitAndMove:e.onCommitAndMove});f("fieldChecklist",{component:Se,props:r}),f("fieldRichText",{component:Ae,props:r}),f("fieldVote",{component:Ee,props:r,typeToEdit:e=>e===" "}),f("fieldTimer",{component:ke,props:e=>({...r(e),rowId:e.rowId,onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>e===" "||/[0-9:]/.test(e)}),f("fieldColor",{component:Re,props:r}),f("fieldTime",{component:De,props:e=>({...r(e),onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>/[0-9]/.test(e)}),f("fieldDate",{component:we,props:e=>({...r(e),onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>/[0-9a-z]/i.test(e)}),G("fieldFilter",(e,i)=>z(e,i.getValue,ee)),W(()=>E()?.id),oe(),_(),g(_e,{id:"svgrid-fields-space"}),g(ze,{id:"svgrid-fields-keys"}),g(Ge,{id:"svgrid-base-keys"}),g($e,{id:"svgrid-base-fill-down"}),g(qe,{id:"svgrid-base-autosum",priority:200}),g(Xe,{id:"svgrid-base-format-keys",priority:200}),g(We,{id:"svgrid-base-tree"}),B("base","SvGrid Base")}export{inboxRecords,listColumns,listGroups,viewRecords}from"./list-view.js";import{aiFieldEdited as Ye,aiFieldMenuItems as Je}from"./ai-field.svelte.js";export{generateAIField,regenerateAIFields,cancelAIField,pendingAIField,setAIFieldConcurrency}from"./ai-field.svelte.js";export{aiPromptError,readAIAnswer}from"./ai-prompt.js";export{moveTile,newTile,putTile,removeTile,tileResult,tileRows,tileTitle}from"./dashboard.js";export{sharedTables,sharedViews,shareOf}from"./base-share.js";export{recordsAsShown,downloadAsShown,filesFolders,safeFolder}from"./base-export.js";export{permittedTables,permittedRecords,permittedViews,tablePermissions,gridPermissions,canDeleteRecord}from"./base-permissions.js";export{computeRecords,computeRecord,computedValues,computedFields,evaluateFilter,filterRecords}from"./base-compute.js";export{queryRecords,fieldFilterToSql,fieldFilterToPostgrest,supabaseFieldFilter,viewFilterOf}from"./base-query.js";export{searchBase}from"./base-search.js";export{toChecklist,parseChecklist,checklistText,checklistProgress}from"./checklist.js";export{parseColor}from"./color-value.js";export{parseTimeOfDay,formatTimeOfDay,timeSeconds}from"./time-of-day.js";export{recordDock,setRecordDock,recordDockWidth,setRecordDockWidth}from"./record-dock.svelte.js";
|
|
@@ -265,4 +265,18 @@ export declare const RECORD_MESSAGES: {
|
|
|
265
265
|
readonly 'record.votesMine.other': "{count} votes, including yours";
|
|
266
266
|
readonly 'record.buttonOpen': "Open";
|
|
267
267
|
readonly 'record.nobody': "Nobody";
|
|
268
|
+
readonly 'record.replyComment': "Reply";
|
|
269
|
+
readonly 'record.replyingTo': "Replying to {person}";
|
|
270
|
+
readonly 'record.cancelReply': "Stop replying";
|
|
271
|
+
readonly 'record.replyAddedSay': "Reply added.";
|
|
272
|
+
readonly 'record.resolveThread': "Resolve";
|
|
273
|
+
readonly 'record.resolveThreadHint': "Mark this conversation as done: it folds to one line";
|
|
274
|
+
readonly 'record.reopenThread': "Reopen";
|
|
275
|
+
readonly 'record.threadResolvedBy': "Resolved by {person}";
|
|
276
|
+
readonly 'record.threadResolvedSay': "Marked resolved.";
|
|
277
|
+
readonly 'record.threadReopenedSay': "Opened again.";
|
|
278
|
+
readonly 'record.showThread.one': "Show";
|
|
279
|
+
readonly 'record.showThread.other': "Show {count} comments";
|
|
280
|
+
readonly 'record.hideThread': "Hide";
|
|
281
|
+
readonly 'record.threadReplies': "Replies";
|
|
268
282
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const RECORD_MESSAGES={"record.untitled":"Untitled","record.record":"Record","record.protected":"protected","record.readOnly":"read-only","record.hiddenInGrid":"hidden in the grid","record.notInGridView":"This row is not in the grid's view any more.","record.showHiddenFields.one":"Show {count} hidden field","record.showHiddenFields.other":"Show {count} hidden fields","record.hideHiddenFields.one":"Hide {count} hidden field","record.hideHiddenFields.other":"Hide {count} hidden fields","record.activity":"Activity","record.someone":"Someone","record.someoneElse":"Someone else","record.you":"You","record.byAutomation":"Automation: {name}","record.acceptedBy":"{source} (accepted by {person})","record.through":"{person} via {source}","record.changedField":"changed {field}","record.undidField":"undid a change to {field}","record.redidField":"redid a change to {field}","record.addedRecord":"added this record","record.changedTo":"to","record.cleared":"(cleared)","record.restoreValue":"Restore","record.dockLabel":"Where the record opens","record.dockCenter":"Open in the middle","record.dockRight":"Open beside the table","record.dockFull":"Open full page","record.dockResize":"Width of the record panel","record.restoreHint":"Put back what {field} held before this change","record.noActivity":"No changes or comments yet.","record.loadingHistory":"Loading the history...","record.historyError":"The history could not be read: {error}","record.comment":"Comment","record.attachFiles":"Attach files","record.commentFiles":"Files","record.commentUploadFailed":"{name} was not uploaded: {error}","record.internalNote":"Internal note","record.internalNoteHint":"Only your team sees it, never a client.","record.internalTag":"Internal","record.savedReplies":"Saved replies","record.formSuggestTitle":"These may already answer it","record.formSolved":"This solved it","record.formSolvedTitle":"Glad it helped","record.formSolvedNote":"Nothing was sent.","record.formAskAnother":"Ask something else","record.searchReplies":"Search the saved replies","record.noReplies":"No saved replies yet.","record.noRepliesFound":"No saved reply matches.","record.loadingReplies":"Loading the saved replies...","record.repliesFailed":"The saved replies could not be read: {error}","record.saveAsReply":"Save this text as a reply","record.replyName":"Name of the reply","record.replySaved":"Saved as a reply.","record.replyNotSaved":"The reply was not saved: {error}","record.editComment":"Edit","record.deleteComment":"Delete","record.deleteCommentAsk":"Delete this comment?","record.commentNotSent":"This comment is not sent. Send it, or clear the box, and Esc closes the record.","record.commentNotSaved":"This change is not saved. Save or cancel it, and Esc closes the record.","record.commentHoldsStep":"This change is not saved. Save or cancel it, then move to another record.","record.fileRemoved":"{file} removed.","record.commentAddedSay":"Comment added.","record.commentKept":"Your comment was not sent. It is still in this record, ready to send.","record.commentSavedSay":"Comment saved.","record.commentDeletedSay":"Comment deleted.","record.commentEdited":"(edited)","record.saveComment":"Save","record.cancelComment":"Cancel","record.commentVotes":"Votes","record.voteUp":"Vote up","record.voteDown":"Vote down","record.voteUpCount":"Vote up ({count})","record.voteDownCount":"Vote down ({count})","record.votedUpBy":"Voted up by {names}","record.votedDownBy":"Voted down by {names}","record.previousRecord":"Previous record","record.nextRecord":"Next record","record.position":"{index} of {total}","record.newRecord":"New record","record.linkedOf":"{table} of {owner} ({count})","record.filteredOut":"This record is filtered out of this view.","record.notInView.one":"Not in view ({count} record)","record.notInView.other":"Not in view ({count} records)","record.close":"Close","record.justNow":"just now","record.minutesAgo.one":"{count} minute ago","record.minutesAgo.other":"{count} minutes ago","record.hoursAgo.one":"{count} hour ago","record.hoursAgo.other":"{count} hours ago","record.leaveComment":"Leave a comment","record.commentPlaceholder":"Leave a comment, @ to mention","record.peopleToMention":"People to mention","record.empty":"Empty","record.emptyValue":"empty","record.fieldValue":"{label}: {value}","record.fieldValueEdit":"{label}: {value}, edit","record.formProblems.one":"{count} field needs attention","record.formProblems.other":"{count} fields need attention","record.formTitle":"New record","record.formSubmit":"Submit","record.formChoose":"Choose","record.formPickDate":"Pick a date","record.formAddFiles":"Add files","record.formLinkRecords":"Link records","record.formTypeHere":"Type here","record.formRequired":"required","record.formInvalidEmail":"Not a valid email address","record.formInvalidUrl":"Not a valid web address","record.formInvalidPhone":"Not a valid phone number","record.formFieldRequired":"{field} is required","record.formFieldInvalid":"{field} is not valid","record.formSendFailed":"The record could not be sent. Try again.","record.formEmpty":"Fill in at least one field before you send this.","record.formThanks":"Thank you","record.formAdded":"The record was added.","record.formSubmitAnother":"Submit another","record.formNext":"Next","record.formBack":"Back","record.formStepOf":"Question {n} of {count}","record.formPressEnter":"or press Enter","record.unnamed":"Untitled","record.linkedGone":"This record is not in its table any more.","record.openIn":"Open in {table}","record.linkTo":"Link to {table}","record.linkToRecords":"Link to records","record.linkTableMissing":"The table this field links to is not available.","record.searchTable":"Search {table}","record.pickingFromView":'Records of the view "{view}"',"record.noRecordsMatch":"No records match.","record.createRecord":"Create “{name}”","record.showingOf":"Showing {shown} of {total}. Type to narrow.","record.linkedCount":"{count} linked","record.cancel":"Cancel","record.done":"Done","record.attachments":"Attachments","record.fileBadge":"FILE","record.uploadFailed":"Upload failed","record.uploadsFailed.one":"Upload failed","record.uploadsFailed.other":"{count} uploads failed","record.noUrlFound":"No http(s) URL found","record.noFilesYet":"No files yet. Drop files here, paste them, or use Add files.","record.files":"Files","record.fileTile":"{file}. Enter to preview, Delete to remove, Alt+Arrow to move.","record.removeFile":"Remove {name}","record.uploadingFile":"Uploading {name}","record.cancelUpload":"Cancel {name}","record.retry":"Retry","record.remove":"Remove","record.addFiles":"Add files","record.takePhoto":"Take a photo","record.scanCode":"Scan a code","record.dictateField":"Speak into {field}","record.dictateComment":"Speak a comment","record.listening":"Listening...","record.scanHint":"Point the camera at a barcode or a QR code.","record.scanUnsupported":"This browser cannot read codes from the camera.","record.scanNoCamera":"The camera is not available: allow it for this site, or close another app using it.","record.pasteUrl":"or paste a URL","record.addByUrl":"Add a file by URL","record.addFrom":"Add files from","record.sourceDevice":"Your device","record.sourceLink":"Link (URL)","record.dropHere":"Drop files here","record.dropOr":"or","record.chooseFiles":"Choose files","record.pasteHint":"You can also paste files or pictures here.","record.linkHint":"Paste the address of a file or a picture on the web.","record.addLink":"Add","record.photoHint":"Take a picture with the camera.","record.openSource":"Open {source}","record.sourceHint":"Choose files in {source}. They are added here.","record.sourceWaiting":"Waiting for {source}...","record.backToFiles":"Back to the files","record.gettingFile":"Getting {name}","record.uploadingCount":"Uploading {count}...","record.download":"Download","record.previous":"Previous","record.next":"Next","record.previousFile":"Previous file","record.nextFile":"Next file","record.filePosition":"{index} of {total}","record.noAttachments":"No attachments","record.attachmentList.one":"{count} attachment: {names}","record.attachmentList.other":"{count} attachments: {names}","record.notAdded":"Not added","record.uploading":"Uploading","record.keyMove":"move","record.keySave":"save","record.keyCancel":"cancel","record.checklist":"Checklist","record.checklistDone":"{done} of {total} done","record.noItemsYet":"No items yet","record.noItems":"No items","record.items":"Items","record.item":"item","record.itemNumber":"Item {n}","record.itemDone":"Done: {item}","record.moveItem":"Move {item}","record.deleteItem":"Delete {item}","record.addItem":"Add an item","record.color":"Color","record.hexCode":"Hex code","record.clear":"Clear","record.notAColor":"Not a color: use #rrggbb, #rgb, rgb() or a color name","record.colors":"Colors","record.notATime":"Not a time (9:30 am, 14:05, 2pm)","record.notADate":"Not a date (12/24/2026, 2026-12-24, Dec 24, 2026)","record.dateLabel":"Date","record.dateAndTimeLabel":"Date and time","record.calendarTab":"Date","record.timeTab":"Time","record.openCalendar":"Open the calendar","record.timeOfDay":"Time of day","record.longText":"Long text","record.markupHint":"**bold** *italic* `code` [link](https://...) - list","record.richText":"Rich text","record.removeValue":"Remove {name}","record.findPerson":"Find a person","record.findOption":"Find an option","record.addPerson":"Add a person","record.choosePerson":"Choose a person","record.addOption":"Add an option","record.chooseOption":"Choose an option","record.addNewOption":"Add option","record.everyoneChosen":"Everyone is chosen","record.nobodyMatches":"Nobody matches","record.noPeople":"No people (setFieldUsers)","record.everyOptionChosen":"Every option is chosen","record.noOptionMatches":"No option matches","record.noOptions":"No options","record.notADuration":"Not a duration (1:30, 1h 30m)","record.notANumber":"Not a number","record.formulaInNumber":"This field holds numbers. Press Enter to see how a formula field works this out.","record.noNegative":"Negative numbers are not allowed","record.durationLabel":"Duration ({format})","record.amountIn":"Amount in {symbol}","record.money":"money","record.percent":"Percent","record.number":"Number","record.increaseBy":"Increase by {step}","record.decreaseBy":"Decrease by {step}","record.ratingLabel":"Rating, {value} of {max}","record.aiNeedsPrompt":"Write a prompt for this field first (Edit field).","record.aiGenerating":"Generating...","record.aiWaiting":"Waiting...","record.aiGenerate":"Generate","record.aiGenerateAgain":"Generate again","record.aiNoProvider":"No AI provider","record.aiNoPrompt":"No prompt","record.voted":"{names} voted","record.noVotes":"No votes yet","record.votes.one":"{count} vote","record.votes.other":"{count} votes","record.timerStart":"Start the timer","record.timerStop":"Stop the timer","record.votesMine.one":"{count} vote, including yours","record.votesMine.other":"{count} votes, including yours","record.buttonOpen":"Open","record.nobody":"Nobody"};
|
|
1
|
+
export const RECORD_MESSAGES={"record.untitled":"Untitled","record.record":"Record","record.protected":"protected","record.readOnly":"read-only","record.hiddenInGrid":"hidden in the grid","record.notInGridView":"This row is not in the grid's view any more.","record.showHiddenFields.one":"Show {count} hidden field","record.showHiddenFields.other":"Show {count} hidden fields","record.hideHiddenFields.one":"Hide {count} hidden field","record.hideHiddenFields.other":"Hide {count} hidden fields","record.activity":"Activity","record.someone":"Someone","record.someoneElse":"Someone else","record.you":"You","record.byAutomation":"Automation: {name}","record.acceptedBy":"{source} (accepted by {person})","record.through":"{person} via {source}","record.changedField":"changed {field}","record.undidField":"undid a change to {field}","record.redidField":"redid a change to {field}","record.addedRecord":"added this record","record.changedTo":"to","record.cleared":"(cleared)","record.restoreValue":"Restore","record.dockLabel":"Where the record opens","record.dockCenter":"Open in the middle","record.dockRight":"Open beside the table","record.dockFull":"Open full page","record.dockResize":"Width of the record panel","record.restoreHint":"Put back what {field} held before this change","record.noActivity":"No changes or comments yet.","record.loadingHistory":"Loading the history...","record.historyError":"The history could not be read: {error}","record.comment":"Comment","record.attachFiles":"Attach files","record.commentFiles":"Files","record.commentUploadFailed":"{name} was not uploaded: {error}","record.internalNote":"Internal note","record.internalNoteHint":"Only your team sees it, never a client.","record.internalTag":"Internal","record.savedReplies":"Saved replies","record.formSuggestTitle":"These may already answer it","record.formSolved":"This solved it","record.formSolvedTitle":"Glad it helped","record.formSolvedNote":"Nothing was sent.","record.formAskAnother":"Ask something else","record.searchReplies":"Search the saved replies","record.noReplies":"No saved replies yet.","record.noRepliesFound":"No saved reply matches.","record.loadingReplies":"Loading the saved replies...","record.repliesFailed":"The saved replies could not be read: {error}","record.saveAsReply":"Save this text as a reply","record.replyName":"Name of the reply","record.replySaved":"Saved as a reply.","record.replyNotSaved":"The reply was not saved: {error}","record.editComment":"Edit","record.deleteComment":"Delete","record.deleteCommentAsk":"Delete this comment?","record.commentNotSent":"This comment is not sent. Send it, or clear the box, and Esc closes the record.","record.commentNotSaved":"This change is not saved. Save or cancel it, and Esc closes the record.","record.commentHoldsStep":"This change is not saved. Save or cancel it, then move to another record.","record.fileRemoved":"{file} removed.","record.commentAddedSay":"Comment added.","record.commentKept":"Your comment was not sent. It is still in this record, ready to send.","record.commentSavedSay":"Comment saved.","record.commentDeletedSay":"Comment deleted.","record.commentEdited":"(edited)","record.saveComment":"Save","record.cancelComment":"Cancel","record.commentVotes":"Votes","record.voteUp":"Vote up","record.voteDown":"Vote down","record.voteUpCount":"Vote up ({count})","record.voteDownCount":"Vote down ({count})","record.votedUpBy":"Voted up by {names}","record.votedDownBy":"Voted down by {names}","record.previousRecord":"Previous record","record.nextRecord":"Next record","record.position":"{index} of {total}","record.newRecord":"New record","record.linkedOf":"{table} of {owner} ({count})","record.filteredOut":"This record is filtered out of this view.","record.notInView.one":"Not in view ({count} record)","record.notInView.other":"Not in view ({count} records)","record.close":"Close","record.justNow":"just now","record.minutesAgo.one":"{count} minute ago","record.minutesAgo.other":"{count} minutes ago","record.hoursAgo.one":"{count} hour ago","record.hoursAgo.other":"{count} hours ago","record.leaveComment":"Leave a comment","record.commentPlaceholder":"Leave a comment, @ to mention","record.peopleToMention":"People to mention","record.empty":"Empty","record.emptyValue":"empty","record.fieldValue":"{label}: {value}","record.fieldValueEdit":"{label}: {value}, edit","record.formProblems.one":"{count} field needs attention","record.formProblems.other":"{count} fields need attention","record.formTitle":"New record","record.formSubmit":"Submit","record.formChoose":"Choose","record.formPickDate":"Pick a date","record.formAddFiles":"Add files","record.formLinkRecords":"Link records","record.formTypeHere":"Type here","record.formRequired":"required","record.formInvalidEmail":"Not a valid email address","record.formInvalidUrl":"Not a valid web address","record.formInvalidPhone":"Not a valid phone number","record.formFieldRequired":"{field} is required","record.formFieldInvalid":"{field} is not valid","record.formSendFailed":"The record could not be sent. Try again.","record.formEmpty":"Fill in at least one field before you send this.","record.formThanks":"Thank you","record.formAdded":"The record was added.","record.formSubmitAnother":"Submit another","record.formNext":"Next","record.formBack":"Back","record.formStepOf":"Question {n} of {count}","record.formPressEnter":"or press Enter","record.unnamed":"Untitled","record.linkedGone":"This record is not in its table any more.","record.openIn":"Open in {table}","record.linkTo":"Link to {table}","record.linkToRecords":"Link to records","record.linkTableMissing":"The table this field links to is not available.","record.searchTable":"Search {table}","record.pickingFromView":'Records of the view "{view}"',"record.noRecordsMatch":"No records match.","record.createRecord":"Create “{name}”","record.showingOf":"Showing {shown} of {total}. Type to narrow.","record.linkedCount":"{count} linked","record.cancel":"Cancel","record.done":"Done","record.attachments":"Attachments","record.fileBadge":"FILE","record.uploadFailed":"Upload failed","record.uploadsFailed.one":"Upload failed","record.uploadsFailed.other":"{count} uploads failed","record.noUrlFound":"No http(s) URL found","record.noFilesYet":"No files yet. Drop files here, paste them, or use Add files.","record.files":"Files","record.fileTile":"{file}. Enter to preview, Delete to remove, Alt+Arrow to move.","record.removeFile":"Remove {name}","record.uploadingFile":"Uploading {name}","record.cancelUpload":"Cancel {name}","record.retry":"Retry","record.remove":"Remove","record.addFiles":"Add files","record.takePhoto":"Take a photo","record.scanCode":"Scan a code","record.dictateField":"Speak into {field}","record.dictateComment":"Speak a comment","record.listening":"Listening...","record.scanHint":"Point the camera at a barcode or a QR code.","record.scanUnsupported":"This browser cannot read codes from the camera.","record.scanNoCamera":"The camera is not available: allow it for this site, or close another app using it.","record.pasteUrl":"or paste a URL","record.addByUrl":"Add a file by URL","record.addFrom":"Add files from","record.sourceDevice":"Your device","record.sourceLink":"Link (URL)","record.dropHere":"Drop files here","record.dropOr":"or","record.chooseFiles":"Choose files","record.pasteHint":"You can also paste files or pictures here.","record.linkHint":"Paste the address of a file or a picture on the web.","record.addLink":"Add","record.photoHint":"Take a picture with the camera.","record.openSource":"Open {source}","record.sourceHint":"Choose files in {source}. They are added here.","record.sourceWaiting":"Waiting for {source}...","record.backToFiles":"Back to the files","record.gettingFile":"Getting {name}","record.uploadingCount":"Uploading {count}...","record.download":"Download","record.previous":"Previous","record.next":"Next","record.previousFile":"Previous file","record.nextFile":"Next file","record.filePosition":"{index} of {total}","record.noAttachments":"No attachments","record.attachmentList.one":"{count} attachment: {names}","record.attachmentList.other":"{count} attachments: {names}","record.notAdded":"Not added","record.uploading":"Uploading","record.keyMove":"move","record.keySave":"save","record.keyCancel":"cancel","record.checklist":"Checklist","record.checklistDone":"{done} of {total} done","record.noItemsYet":"No items yet","record.noItems":"No items","record.items":"Items","record.item":"item","record.itemNumber":"Item {n}","record.itemDone":"Done: {item}","record.moveItem":"Move {item}","record.deleteItem":"Delete {item}","record.addItem":"Add an item","record.color":"Color","record.hexCode":"Hex code","record.clear":"Clear","record.notAColor":"Not a color: use #rrggbb, #rgb, rgb() or a color name","record.colors":"Colors","record.notATime":"Not a time (9:30 am, 14:05, 2pm)","record.notADate":"Not a date (12/24/2026, 2026-12-24, Dec 24, 2026)","record.dateLabel":"Date","record.dateAndTimeLabel":"Date and time","record.calendarTab":"Date","record.timeTab":"Time","record.openCalendar":"Open the calendar","record.timeOfDay":"Time of day","record.longText":"Long text","record.markupHint":"**bold** *italic* `code` [link](https://...) - list","record.richText":"Rich text","record.removeValue":"Remove {name}","record.findPerson":"Find a person","record.findOption":"Find an option","record.addPerson":"Add a person","record.choosePerson":"Choose a person","record.addOption":"Add an option","record.chooseOption":"Choose an option","record.addNewOption":"Add option","record.everyoneChosen":"Everyone is chosen","record.nobodyMatches":"Nobody matches","record.noPeople":"No people (setFieldUsers)","record.everyOptionChosen":"Every option is chosen","record.noOptionMatches":"No option matches","record.noOptions":"No options","record.notADuration":"Not a duration (1:30, 1h 30m)","record.notANumber":"Not a number","record.formulaInNumber":"This field holds numbers. Press Enter to see how a formula field works this out.","record.noNegative":"Negative numbers are not allowed","record.durationLabel":"Duration ({format})","record.amountIn":"Amount in {symbol}","record.money":"money","record.percent":"Percent","record.number":"Number","record.increaseBy":"Increase by {step}","record.decreaseBy":"Decrease by {step}","record.ratingLabel":"Rating, {value} of {max}","record.aiNeedsPrompt":"Write a prompt for this field first (Edit field).","record.aiGenerating":"Generating...","record.aiWaiting":"Waiting...","record.aiGenerate":"Generate","record.aiGenerateAgain":"Generate again","record.aiNoProvider":"No AI provider","record.aiNoPrompt":"No prompt","record.voted":"{names} voted","record.noVotes":"No votes yet","record.votes.one":"{count} vote","record.votes.other":"{count} votes","record.timerStart":"Start the timer","record.timerStop":"Stop the timer","record.votesMine.one":"{count} vote, including yours","record.votesMine.other":"{count} votes, including yours","record.buttonOpen":"Open","record.nobody":"Nobody","record.replyComment":"Reply","record.replyingTo":"Replying to {person}","record.cancelReply":"Stop replying","record.replyAddedSay":"Reply added.","record.resolveThread":"Resolve","record.resolveThreadHint":"Mark this conversation as done: it folds to one line","record.reopenThread":"Reopen","record.threadResolvedBy":"Resolved by {person}","record.threadResolvedSay":"Marked resolved.","record.threadReopenedSay":"Opened again.","record.showThread.one":"Show","record.showThread.other":"Show {count} comments","record.hideThread":"Hide","record.threadReplies":"Replies"};
|
|
@@ -379,6 +379,13 @@ export declare const SHELL_MESSAGES: {
|
|
|
379
379
|
readonly 'shell.importWarnLost.other': "{count} values do not fit the fields they go to and would be left empty. Change those field types or skip the columns to keep them.";
|
|
380
380
|
readonly 'shell.importWarnUnmatched.one': "1 cell names a person or a record that was not found, so that name is not imported.";
|
|
381
381
|
readonly 'shell.importWarnUnmatched.other': "{count} cells name a person or a record that was not found, so those names are not imported.";
|
|
382
|
+
readonly 'shell.tablesHeading': "Tables";
|
|
383
|
+
readonly 'shell.tablesOnLeft': "Show the tables on the left";
|
|
384
|
+
readonly 'shell.tablesAsTabs': "Show the tables as tabs";
|
|
385
|
+
readonly 'shell.moveTableToSection': "Put under a heading";
|
|
386
|
+
readonly 'shell.tableSection': "Heading";
|
|
387
|
+
readonly 'shell.tableSectionHint': "Heading, or empty for none";
|
|
388
|
+
readonly 'shell.stepTableSection': "move a table under a heading";
|
|
382
389
|
readonly 'shell.importRepeatedLabel': "Records already in the table";
|
|
383
390
|
readonly 'shell.importAddAll': "Add every row as a new record";
|
|
384
391
|
readonly 'shell.importUpdateMatching': "Update the records that match, add the rest";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SHELL_MESSAGES={"shell.records.one":"{count} record","shell.records.other":"{count} records","shell.tables.one":"{count} table","shell.tables.other":"{count} tables","shell.items.one":"{count} item","shell.items.other":"{count} items","shell.loadingRecords":"Loading records…","shell.deleteTableOnServer":"It leaves this base. Its records stay in the database.","shell.converting":"Converting {done} of {total} records…","shell.writingOptions":"Updating {done} records…","shell.convertTitle":"Convert the stored values?","shell.convertBody":"{name} holds {count} records in the database. Convert their values to the new type, or change the field only and leave them as they are?","shell.convertValues":"Convert the values","shell.convertKeep":"Change the field only","shell.exporting":"Exporting {done} of {total} records…","shell.copying":"Copying {done} of {total} records…","shell.reading":"Reading {done} of {total} records…","shell.saving":"Saving…","shell.allSaved":"All changes saved","shell.notSaved":"Not saved: {message}","shell.savingSlow":"Still saving: the server has not answered yet","shell.tryAgain":"Try again","shell.dismissStatus":"Dismiss","shell.failSave":"Could not save {field} of {record}. {reason}","shell.failSaveTyped":"Could not save {field} of {record}. {reason} You entered: {value}","shell.failSaveRecord":"Could not save {record}. {reason}","shell.failAdd":"Could not add {record}. {reason}","shell.failAddMany":"Could not add {records}. {reason}","shell.failDelete":"Could not delete {record}. {reason} It is still in the table.","shell.failDeleteMany":"Could not delete {records}. {reason} They are still in the table.","shell.failPurge":"Could not delete {record} forever. {reason} It is still in the trash.","shell.failPurgeMany":"Could not delete {records} forever. {reason} They are still in the trash.","shell.undoLeftAway":"{records} left out: someone deleted them. If they are restored, they keep the edit.","shell.failLinkGone":"The record {record} linked to was deleted forever, so this link cannot come back.","shell.linkToTrash":"The record you linked to is in the trash. The link stays empty until someone restores it.","shell.failPurgeHalf":"Could not delete {record} forever. {reason} It stopped half way, so its links may be gone and it cannot be restored. Press Delete forever again to finish.","shell.failPurgeHalfMany":"Could not delete {records} forever. {reason} It stopped half way, so their links may be gone and they cannot be restored. Press Delete forever again to finish.","shell.purgeUnderWay":"{record} cannot be restored: someone has started to delete it forever. If it stays in the trash, that delete did not finish, and Delete forever will finish it.","shell.purgeUnderWayMany":"{records} cannot be restored: someone has started to delete them forever. If they stay in the trash, that delete did not finish, and Delete forever will finish it.","shell.cannotRestorePurging":"A delete forever of this record did not finish. Its links may be gone, so it cannot be restored. Delete it forever to finish.","shell.purgeCameBack":"{record} was not deleted: someone restored it first.","shell.purgeCameBackMany":"{records} were not deleted: someone restored them first.","shell.undoPurged":"{record} was deleted forever, so it cannot come back.","shell.undoPurgedMany":"{records} were deleted forever, so they cannot come back.","shell.failRestore":"Could not put {record} back. {reason} It is still in the trash.","shell.failRestoreMany":"Could not put {records} back. {reason} They are still in the trash.","shell.failMany":"{count} changes could not be saved. {reason}","shell.why.offline":"The server could not be reached.","shell.why.noAnswer":"The server did not answer, so it may not have been stored.","shell.why.required":"This field needs a value.","shell.why.duplicate":"Another record already has this value.","shell.why.notAccepted":"The database does not accept this value.","shell.why.idTooLong":"Record ids need {need} characters; this table's id column holds {holds}. Ask whoever runs the database to make it wider.","shell.why.linked":"Other records depend on it.","shell.why.linkedCircle":"These records link to each other in a circle, and this database checks each link as it deletes, so they were not deleted. Empty the link of one of them first.","shell.why.linkRefused":"The linked record is not there, or you may not link to it. Pick another.","shell.why.noPermission":"You do not have permission to do this.","shell.why.gone":"This record no longer exists.","shell.why.notDeleted":"The database kept it, so you may not have permission.","shell.why.noRead":"The server did not answer.","shell.why.readError":"The server answered with an error. Whoever runs it can see why in its log.","shell.why.linkMissing":"The record it points to is not there.","shell.why.linkMissingField":"The record {field} points to is not there.","shell.why.linkMissingFields":"The record that {fields} point to is not there.","shell.why.serverError":"The server answered with an error. Whoever runs it can see why in its log.","shell.why.unknown":"No reason came with the error that this page may show. Whoever runs the database can see it in its log.","shell.why.said":"The server said: {said}","shell.why.readSaid":"The server answered with an error: {said}","shell.couldNotLoad":"Could not load {table}: {message}","shell.loadFailedTitle":"Could not load {table}","shell.loadTryAgain":"Try again","shell.loadTrying":"Trying again…","shell.couldNotSave":"Could not save {table}: {message}","shell.trashSaveFailed":"Could not save the trash: {message}","shell.trashReadFailed":"Could not read the trash: {message}","shell.deleted":"Deleted {what}","shell.restored":"Restored {what}","shell.theField":"the field {name}","shell.theTable":"the table {name}","shell.theView":"the view {name}","shell.stepDeleteView":"delete view {name}","shell.aField":"a field","shell.importedNewTable":"Imported {records} into a new table, {name}","shell.importedInto":"Imported {records} into {table}","shell.importedIntoFallback":"the table","shell.stepCellEdit":"cell edit","shell.stepCells.one":"{count} cell","shell.stepCells.other":"{count} cells","shell.stepResize":"resize","shell.stepMoveField":"move field","shell.stepAddRecord":"add record","shell.stepMoveRecord":"move record","shell.undoRecordStays":"Someone has changed this record since, so it stays. Delete it if it should go.","shell.undoCellStays.one":"Someone has changed this cell since, so it keeps their value.","shell.undoCellStays.other":"Someone has changed {count} of these cells since, so they keep their values.","shell.undoCellsKept.one":"Someone has changed 1 of these cells since, so it keeps their value.","shell.undoCellsKept.other":"Someone has changed {count} of these cells since, so they keep their values.","shell.undoRecordsKept.one":"Someone has changed 1 of these records since, so it keeps their value.","shell.undoRecordsKept.other":"Someone has changed {count} of these records since, so they keep their values.","shell.undoCannotCheck":"The database could not be reached to check this cell, so nothing was changed. Try again in a moment.","shell.undoStillSaving":"This record is still saving, so nothing was changed. Try again once it has saved.","shell.undoRunning":"Undo is still running.","shell.redoRunning":"Redo is still running.","shell.undoStopped":"Undo stopped: {done} of {total} records were put back. Undo again to put back the rest.","shell.redoStopped":"Redo stopped: {done} of {total} records were changed again. Redo again to do the rest.","shell.undoCellsStopped":"Undo stopped: {done} of {total} cells were put back. Undo again to put back the rest.","shell.redoCellsStopped":"Redo stopped: {done} of {total} cells were changed again. Redo again to do the rest.","shell.undoAddStopped":"Undo stopped: {done} of {total} new records were taken out. Undo again to take out the rest.","shell.redoAddStopped":"Redo stopped: {done} of {total} records were added again. Redo again to add the rest.","shell.redoDeleteStopped":"Redo stopped: {done} of {total} records were deleted again. The rest stay, and Undo brings back those it deleted.","shell.undoRecordGone":"This record has been deleted, so nothing was changed.","shell.retryChanged.one":"This cell has changed since, so it keeps its new value.","shell.retryChanged.other":"{count} cells have changed since, so they keep their new values.","shell.retryGone.one":"The record has been deleted, so this was not saved.","shell.retryGone.other":"{count} records have been deleted, so these were not saved.","shell.retryGoneTyped":'The record has been deleted, so "{value}" was not saved.',"shell.retryUnread":"The record could not be read to check it, so nothing was saved.","shell.deleteCannotRead":"The database could not be read, so these records were not deleted. Try again in a moment.","shell.pasteLeftOut.one":'"{text}" does not fit {field}, so that cell keeps its value.',"shell.pasteLeftOut.other":"{count} values do not fit their fields, so those cells keep their values.","shell.pasteLoading":"The view is still loading, so nothing was pasted. Paste again when the rows are shown.","shell.formulaInField":"In a base, a formula is a field of its own: it works out a value for every record at once.","shell.formulaMakeField":"Make a formula field","shell.formulaIsSummary":"The summary bar under the table works this out for {field}, and keeps it up to date as records change.","shell.formulaShowSummary":"Show it for {field}","shell.sumShown":"The sum of {field} is in the summary bar under the table. It keeps up as records change.","shell.sumNotNumbers":"{field} does not hold numbers, so there is nothing to add up. Select a number field and press Alt+= again.","shell.sumNoBar":"A base adds up a field in the summary bar under the table, and this view does not show one.","shell.totalRecord":"No total record needed: the summary bar under the table adds up each number field, and keeps up as records change.","shell.totalShowSums":"Show the sums","shell.formatInBase":"A base keeps no bold or colors typed into cells, so every screen reads the same data. Color rows or cells by what they hold with Color in the toolbar.","shell.formatOpenColor":"Open Color","shell.pasteNoField.one":"One column of the paste had no field to go in, so it was left out.","shell.pasteNoField.other":"{count} columns of the paste had no field to go in, so they were left out.","shell.pasteNamesLeftOut":"The first line holds the names of the fields, so it is not pasted as a record.","shell.pasteFieldsTitle.one":"Add a field for this paste?","shell.pasteFieldsTitle.other":"Add {count} fields for this paste?","shell.pasteFieldsBody.one":"The paste has one more column than the table has from here. Add a field for it:","shell.pasteFieldsBody.other":"The paste has {count} more columns than the table has from here. Add a field for each:","shell.pasteFirstLineNames":"The first line holds the names of the fields","shell.pasteWithout":"Paste without them","shell.pasteAddFields.one":"Add the field and paste","shell.pasteAddFields.other":"Add {count} fields and paste","shell.pasteNewTitle":"New records","shell.pasteNewAsk":"This paste runs past the last record. Add {records}?","shell.pasteNewConfirm":"Add records","shell.pasteNewPart":"{done} of {total} new records were added.","shell.rangeLoading":"The view is still loading, so nothing was changed. Try again when the rows are shown.","shell.rangeMovedPaste":'Records moved while this was read. Nothing was changed. Try again pastes from "{name}" down over the rows as they are now.',"shell.rangeMovedValue":'Records moved while this was read. Nothing was changed. Try again puts the value in from "{name}" down over the rows as they are now.',"shell.rangeMovedClear":'Records moved while this was read. Nothing was changed. Try again clears from "{name}" down over the rows as they are now.',"shell.rangeMovedFill":'Records moved while this was read. Nothing was changed. Try again fills from "{name}" down over the rows as they are now.',"shell.rangeMovedSelect":"Records moved while this was read. Nothing was changed. Select the cells again.","shell.rangeAnchorGone":'"{name}" is no longer among the rows shown, so nothing was changed. Select the cells again.',"shell.rangeAgainShort.one":'Only {count} row is below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was changed. Select the cells again.',"shell.rangeAgainShort.other":'Only {count} rows are below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was changed. Select the cells again.',"shell.copyAgainShort.one":'Only {count} row is below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was copied. Select the cells again.',"shell.copyAgainShort.other":'Only {count} rows are below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was copied. Select the cells again.',"shell.rangeAgainCovers":'From "{name}" down over {count} rows, selected in the view.',"shell.rangeElsewhere":"That view is no longer open, so nothing was changed.","shell.rangeViewChanged":"The view has changed since, so nothing was changed.","shell.copyElsewhere":"That view is no longer open, so nothing was copied.","shell.copyViewChanged":"The view has changed since, so nothing was copied.","shell.rangeDraftsLeft.one":"1 new record is not stored yet, so it was left out. Change it on its own row.","shell.rangeDraftsLeft.other":"{count} new records are not stored yet, so they were left out. Change them on their own rows.","shell.rangeMoveRefused":"A move can only use rows that are on screen, and {records} of this one are not loaded, so nothing moved. Copy and paste reach them.","shell.copyTitle":"Copy","shell.copyReading":"Reading the selection: {done} rows so far","shell.copyTooBig":"This selection is {cells} cells, more than the {limit} a copy can hold, so nothing was copied. Download this view instead: it holds every record.","shell.copyMovedFrom":'Records moved while this was read. Nothing was copied. Try again copies from "{name}" down over the rows as they are now.',"shell.copyMovedSelect":"Records moved while this was read. Nothing was copied. Select the cells again.","shell.copyAnchorGone":'"{name}" is no longer among the rows shown, so nothing was copied. Select the cells again.',"shell.copyFailed":"Could not read the selection, so nothing was copied: {message}","shell.copyDone":"Copied {count} rows","shell.copyReady":"{count} rows are ready. The browser needs one more click to put them on the clipboard.","shell.copyButton":"Copy","shell.copyRefused":"The browser would not put this much on the clipboard. Download this view instead.","shell.cutRefused":"The browser would not put the cells on the clipboard, so nothing was cut.","shell.cutMoved":"The selection changed before the cells reached the clipboard, so nothing was cleared.","shell.stepPasteRecords":"paste {records}","shell.stepBulkEdit":"edit {records}","shell.bulkReading":"Reading the selection: {done} records so far","shell.bulkFailed":"Could not read the selection, so nothing was changed: {message}","shell.bulkTitle":"Edit records","shell.bulkAsk":"Change {count}?","shell.bulkRuns":"Also run automations: up to {count} runs","shell.bulkRunsTime":"They run one at a time in this tab after the save: about {time} at {rate} a second. Runs left when the tab closes do not happen.","shell.bulkRunsTab":"They run one at a time in this tab after the save. Runs left when the tab closes do not happen.","shell.runsLine":"Running automations: {done} of {total}","shell.runsLineLeft":"Running automations: {done} of {total}, about {time} left","shell.runsStop":"Stop","shell.runsDone":"Automations ran on {total} changes.","shell.runsStopped":"Stopped: {done} of {total} automation runs are done. The other {left} will not run.","shell.timeSeconds":"less than a minute","shell.timeMinutes.one":"1 minute","shell.timeMinutes.other":"{count} minutes","shell.timeHours.one":"1 hour","shell.timeHours.other":"{count} hours","shell.bulkAskNoUndo":"That is too many to undo: once changed, they cannot be changed back from here.","shell.bulkConfirm":"Change records","shell.bulkWriting":"Saving {done} of {total} records...","shell.cellsWriting":"Saving {done} of {total} cells...","shell.bulkDone":"Changed {done} of {total} records","shell.bulkStopped":"Stopped: {done} of {total} records were changed.","shell.bulkFailedPart":"{done} of {total} records were changed, then the save stopped. {reason}","shell.bulkFailedUnsure":"At least {done} of {total} records were changed, then the save stopped and the database could not be read to check the last block. {reason}","shell.bulkUndoLeft":"Undo takes these back.","shell.bulkNoUndoLeft":"That is too many to undo.","shell.failSaveMany":"Could not save {records}. {reason}","shell.stepDeleteRecords":"delete {records}","shell.addColumnFailed":"The column for {field} was not added: {error}","shell.addColumnYourself":"{field} needs a column in {table} before it can store values. Add it to the database: {sql}","shell.duplicateNeedsColumn":"A copy of {field} needs a column of its own in {table}, and the base cannot add one there, so nothing was copied. Add the column to the database first: {sql}","shell.deleting":"Deleting {done} of {total} records...","shell.deleteNoTrash":"That is too many for the trash: they cannot be restored.","shell.scanDrift":"Records changed while this view was being read, so its count may be out by a few.","shell.noSqlSort":"This database cannot work out {fields}, so the view does not sort or total on it.","shell.noSqlView":"This database cannot work out {fields}, so the view cannot filter or group on it. Take it out of the filter or the grouping.","shell.deleteGroupShort":"The group {key} read back {read} records of {size}, so what was left out of the selection cannot be told apart. Nothing was deleted.","shell.deleteGroupUnknown":"How many records the group {key} holds is not known here, so what was left out of the selection cannot be told apart. Nothing was deleted. Tick what should go instead.","shell.deleteTitle":"Delete records","shell.deleteReading":"Finding the records to delete: {done} read...","shell.deleteAsk":"Delete {count}?","shell.deleteAskTrash":"They go to the trash, and undo brings them back.","shell.deleteNothing":"None of the selected records are there any more.","shell.deleteStop":"Stop","shell.deleteCancel":"Cancel","shell.deleteConfirm":"Delete","shell.deleteDone":"Deleted {done} of {total} records","shell.deleteFailed":"Could not read the selection, so nothing was deleted: {message}","shell.columnExists":"The column {column} already exists in {table}, so {field} was stored as {name}.","shell.stepAddField":"add field {name}","shell.stepChangeField":"change field {name}","shell.stepDeleteField":"delete field {name}","shell.stepAddTable":"add table {name}","shell.stepRenameTable":"rename table to {name}","shell.stepDuplicateTable":"duplicate table {name}","shell.stepDeleteTable":"delete table {name}","shell.stepRestore":"restore from the trash","shell.stepImportTable":"import {name}","shell.stepImportRecords":"import {records}","shell.tablesLabel":"Tables","shell.tableName":"Table name","shell.tableActions":"Table actions","shell.tableOptions":"{name} table options","shell.renameTable":"Rename table","shell.duplicateTable":"Duplicate table","shell.importRecordsFromFile":"Import records from a file","shell.keepOneTable":"A base keeps at least one table","shell.deleteTable":"Delete table","shell.allTables":"All tables","shell.importAsTable":"Import a file as a table","shell.importAsTableTitle":"A CSV, TSV, Excel or JSON file as a new table, with a field type for each column","shell.downloadCsv":"Download this view as CSV","shell.downloadExcel":"Download this view as Excel","shell.downloadViewTitle":"The records and fields this view shows, as they read on screen","shell.exportNothing":"This view has no records to download.","shell.excelNeedsZip":"This app cannot write Excel files yet: it needs the jszip package. Ask whoever runs it to install jszip.","shell.exportFailed":"Could not make the file. Try again.","shell.downloadSql":"Download as SQL","shell.downloadFiles":"Download the files (ZIP)","shell.downloadFilesTitle":"Every file this view shows, in a folder for each group, or for each record","shell.exportNoFiles":"This view shows no files.","shell.downloadSqlTitle":"The tables, links, records, views and automations, ready for Postgres or Supabase","shell.addTable":"Add table","shell.addTableWays":"More ways to add a table","shell.blankTable":"Blank table","shell.viewOnly":"View only","shell.viewOnlyTitle":"You can look at these tables but not change them","shell.undo":"Undo","shell.undoStep":"Undo {step}","shell.undoStepTitle":"Undo {step} (Ctrl+Z)","shell.nothingToUndo":"Nothing to undo","shell.redo":"Redo","shell.redoStep":"Redo {step}","shell.redoStepTitle":"Redo {step} (Ctrl+Shift+Z)","shell.nothingToRedo":"Nothing to redo","shell.trashButton":"Trash, {items}","shell.trashTitle":"Deleted records, fields and tables","shell.deleteNamed":"Delete {name}?","shell.deleteTableRecords.one":"Its {count} record goes with it, and so do its views.","shell.deleteTableRecords.other":"Its {count} records go with it, and so do its views.","shell.deleteTableLinks":"These fields of other tables link to it, or read a link to it, and are deleted too:","shell.readsLink":"{table}: {field} (reads {link})","shell.cancel":"Cancel","shell.searchAllTables":"Search all tables","shell.searchResults":"Search results","shell.searchRecords":"Records","shell.searchMore":"{count} more in {table}","shell.searchNone":"No records match.","shell.searchFoot":"{records} in {tables}","shell.trash":"Trash","shell.trashShow":"Show","shell.trashAll":"All","shell.trashRecords":"Records","shell.trashFields":"Fields","shell.trashTables":"Tables","shell.trashViews":"Views","shell.findInTrash":"Find in trash","shell.trashEmpty":"The trash is empty. Deleted records, fields and tables come here.","shell.trashEmptyDays":"The trash is empty. Deleted records, fields and tables come here and stay {days} days.","shell.trashNoMatch":"Nothing in the trash matches.","shell.trashItems":"Deleted items","shell.kindRecord":"Record","shell.kindView":"View","shell.kindField":"Field","shell.kindTable":"Table","shell.trashIn":"{kind} in {table}","shell.trashTableRecords.one":"{kind}, {count} record","shell.trashTableRecords.other":"{kind}, {count} records","shell.trashDeletedTable":"{name} (deleted)","shell.trashADeletedTable":"a deleted table","shell.trashBy":"by","shell.agoNow":"just now","shell.agoMinutes":"{n} min ago","shell.agoHours":"{n} h ago","shell.agoYesterday":"yesterday","shell.agoDays":"{n} days ago","shell.restore":"Restore","shell.restoreItem":"Restore {name}","shell.restoreAll":"Restore all","shell.restoreThese":"Restore these","shell.deleteForever":"Delete forever","shell.deleteItemForever":"Delete {name} forever","shell.deleteCountForever":"Delete {count} forever","shell.keepThem":"Keep them","shell.keepIt":"Keep it","shell.deleteAskForever":"Delete this forever? It cannot be undone.","shell.emptyTrash":"Empty trash","shell.trashNoteDays":"Items are deleted for good after {days} days.","shell.trashNoteKeep":"Items stay until the trash is emptied.","shell.trashNotePage":"Items stay until this page is closed or reloaded.","shell.trashNoteMarked":"Records stay in their table until they are deleted forever. Fields, views and tables stay until this page is closed or reloaded.","shell.trashClosed":"Deleted records are listed for people who may delete. Ask whoever runs this base if you need one back.","shell.trashEmptyMarked":"The trash is empty. Deleted records stay in their table and come here. Deleted fields, views and tables stay until this page is closed or reloaded.","shell.trashMore":"Showing the latest {shown} of {total} deleted records.","shell.trashEmptyPage":"The trash is empty. Deleted records, fields and tables come here and stay until this page is closed or reloaded.","shell.unnamedRecord":"Untitled record","shell.fieldFallback":"Field","shell.cannotRestoreTable":"A table with its id is in the base","shell.cannotRestoreNoTable":"Its table was deleted: restore the table first","shell.cannotRestoreRecord":"The record is in its table","shell.cannotRestoreField":"A field with its id is in the table","shell.importNewTitle":"Import a file as a new table","shell.importIntoTitle":"Import records into {table}","shell.thisTable":"this table","shell.importChoose":"Choose a CSV or Excel file","shell.importReading":"Reading the file…","shell.importDrop":"Drop a file here, or click to choose one","shell.importFormats":"CSV, TSV, Excel (.xlsx) or JSON. The first row names the columns.","shell.importNoRecords":"The file has a header row and no records.","shell.importBinary":"This file is not text. Choose a CSV, TSV, Excel (.xlsx) or JSON file.","shell.importNeedsZip":"This app cannot read Excel files yet: it needs the jszip package. Ask whoever runs it to install jszip, or import the file as CSV.","shell.importBadExcel":"This file could not be read as an Excel workbook. Open it in Excel and save it again as .xlsx.","shell.importBadJson":'This file could not be read as JSON. It needs to be a list of records: [{ "name": "Ana" }, ...].',"shell.importSeparator":"Separator","shell.importEncoding":"Encoding","shell.importComma":"Comma","shell.importSemicolon":"Semicolon","shell.importTab":"Tab","shell.importPipe":"Pipe","shell.importWarnEncoding":"This file is not UTF-8, so it was read as {encoding}. If letters look wrong, choose another encoding above.","shell.importWarnUnclosed.one":"A quote on line {line} is never closed. It was kept as text, and the rows after it were read as usual. Check that row after the import.","shell.importWarnUnclosed.other":"{count} quotes are never closed, the first on line {line}. They were kept as text, and the rows after them were read as usual. Check those rows after the import.","shell.importWarnStray.one":"A quote on line {line} is in an unusual place and was kept as text. Check that row after the import.","shell.importWarnStray.other":"{count} lines have a quote in an unusual place, the first on line {line}. They were kept as text. Check those rows after the import.","shell.importWarnLong.one":"The row on line {line} has more cells than the header row. The extra cells are in columns of their own below.","shell.importWarnLong.other":"{count} rows have more cells than the header row, the first on line {line}. The extra cells are in columns of their own below.","shell.importWarnShort.one":"The row on line {line} has fewer cells than the header row. Its missing cells stay empty.","shell.importWarnShort.other":"{count} rows have fewer cells than the header row, the first on line {line}. Their missing cells stay empty.","shell.importWarnLost.one":"1 value does not fit the field it goes to and would be left empty. Change that field type or skip the column to keep it.","shell.importWarnLost.other":"{count} values do not fit the fields they go to and would be left empty. Change those field types or skip the columns to keep them.","shell.importWarnUnmatched.one":"1 cell names a person or a record that was not found, so that name is not imported.","shell.importWarnUnmatched.other":"{count} cells name a person or a record that was not found, so those names are not imported.","shell.importRepeatedLabel":"Records already in the table","shell.importAddAll":"Add every row as a new record","shell.importUpdateMatching":"Update the records that match, add the rest","shell.importUpdateTooBig":"This table is read a page at a time, so its records cannot all be matched here: every row is added.","shell.importMatchBy":"Match by","shell.importWillMerge":"{updated} records will be updated and {added} added. Blank cells leave a field as it is.","shell.stepImportMerge":"Import: {updated} updated, {added} added","shell.importedMerged":"{updated} records updated and {added} added in {table}.","shell.importWarnRepeated.one":"1 record has the same name as a record already in this table. Importing adds it as a second record.","shell.importWarnRepeated.other":"{count} records have the same name as records already in this table. Importing adds them as second records.","shell.importSummary.one":"{file}: {count} record, {columns} columns","shell.importSummary.other":"{file}: {count} records, {columns} columns","shell.importAnother":"Choose another file","shell.importInto":"Import into","shell.importModeNew":"A new table","shell.importModeAppend":"Add records to {table}","shell.theShownTable":"the shown table","shell.importColumn":"Column","shell.importFieldType":"Field type","shell.importFirstValues":"First values","shell.importFileColumn":"Column in the file","shell.importGoesTo":"Goes to field","shell.importNamesRecords":"names the records","shell.importFieldTypeOf":"Field type of {name}","shell.importFieldFor":"Field for {name}","shell.importSkip":"Skip this column","shell.importNoMapping":"No column goes to a field yet.","shell.importButton.one":"Import {count} record","shell.importButton.other":"Import {count} records","shell.importFieldName":"Field {n}","shell.importedName":"Imported","shell.importedRecordName":"Imported {n}","shell.deleteRecordTitle":"Delete record?","shell.deleteRecordNamed":"{name} is deleted, and its links from other records go with it.","shell.deleteRecordUnnamed":"This record is deleted, and its links from other records go with it.","shell.deleteRecord":"Delete record","shell.fieldLinksTo":"{name} links to {table}.","shell.anotherTable":"another table","shell.fieldLinkBack":"The field there that links back, {name}, is deleted with it.","shell.fieldLinksGo":"The links between the records go too.","shell.fieldReaders":"These fields read it and are deleted too: {fields}.","shell.fieldDeleted":"{name} and its values are deleted.","shell.fieldFormulas":"These formulas read it and will show #ERROR: {fields}.","shell.deleteField":"Delete field","shell.fieldUses":"Used by:","shell.usesView":"{name}: {uses}","shell.usesAutomation":"Automation {name}: it no longer reads or writes this field","shell.usesStack":"stacks its cards by it, and shows as a plain grid without it","shell.usesDates":"places its records by it, and shows as a plain grid without it","shell.usesBars":"draws its bars with it","shell.usesCover":"shows it as the card cover","shell.usesBoard":"shows it on its cards","shell.usesChart":"charts it","shell.usesFilter":"filters by it","shell.usesSort":"sorts by it","shell.usesGroup":"groups by it","shell.usesColor":"colors records by it","shell.usesForm":"asks for it","shell.usesList":"lists it","shell.usesTile":"a tile reads it","shell.cellChanged":"{field} changed to {value}","shell.cellCleared":"{field} cleared","shell.cellsChanged.one":"{count} cell changed","shell.cellsChanged.other":"{count} cells changed","shell.undoneStep":"Undone: {step}","shell.redoneStep":"Redone: {step}","shell.summarize":"Summarize","shell.summarizeField":"Summarize {field}","shell.summaryChange":"{summary} {value}, change summary","shell.summaryCount.one":"{count} record, summarize {field}","shell.summaryCount.other":"{count} records, summarize {field}","shell.recordsWord.one":"record","shell.recordsWord.other":"records","shell.summaryMenu":"Summary","shell.summary.none":"None","shell.summary.empty":"Empty","shell.summary.filled":"Filled","shell.summary.unique":"Unique","shell.summary.percentEmpty":"Percent empty","shell.summary.percentFilled":"Percent filled","shell.summary.sum":"Sum","shell.summary.avg":"Average","shell.summary.median":"Median","shell.summary.min":"Min","shell.summary.max":"Max","shell.summary.range":"Range","shell.summary.checked":"Checked","shell.summary.unchecked":"Unchecked","shell.summary.percentChecked":"Percent checked","shell.summary.earliest":"Earliest date","shell.summary.latest":"Latest date","shell.summary.dateRange":"Date range (days)","shell.searchKey":"Ctrl K","shell.tabHint":"Tab moves between cells. Press Esc, then Tab, to leave the grid.","shell.menuExpand":"Expand record","shell.menuSelect":"Select record","shell.menuDeselect":"Deselect record","shell.recordActions":"Actions for row {row}","shell.menuComment":"Comment","shell.menuInsertAbove":"Insert record above","shell.menuInsertBelow":"Insert record below","shell.menuAddSubtask":"Add subtask","shell.subtasks":"Subtasks","shell.treeNoLoop":"A record cannot go under itself or one of its own subtasks.","shell.treeMovedUnder":"{name} is now under {parent}","shell.treeMovedTop":"{name} is now at the top level","shell.menuDuplicate":"Duplicate record","shell.addField":"Add a field","shell.addRow":"Add row","shell.addRecord":"Add record","shell.groupEmpty":"Empty","shell.groupAdd":"Add a record to this group","shell.groupAddTo":"Add a record to {field} {value}","shell.groupColumn":"Group","shell.someoneElse":"Someone else","shell.unseenAdded":"{who} added this record {ago}","shell.unseenChanged":"{who} changed this record {ago}","shell.selectRow":"Select row {row}","shell.selectAllRows":"Select all rows","shell.expandRow":"Expand row","shell.expandRowN":"Expand row {row}","shell.comments.one":"{count} comment","shell.comments.other":"{count} comments","shell.commentsOnRow.one":"{count} comment on row {row}","shell.commentsOnRow.other":"{count} comments on row {row}","shell.changedBy":"{count} changed by {who}","shell.changedBySomeone":"someone else","shell.changedByOthers":"others","shell.dashboardRecords":"Records"};
|
|
1
|
+
export const SHELL_MESSAGES={"shell.records.one":"{count} record","shell.records.other":"{count} records","shell.tables.one":"{count} table","shell.tables.other":"{count} tables","shell.items.one":"{count} item","shell.items.other":"{count} items","shell.loadingRecords":"Loading records…","shell.deleteTableOnServer":"It leaves this base. Its records stay in the database.","shell.converting":"Converting {done} of {total} records…","shell.writingOptions":"Updating {done} records…","shell.convertTitle":"Convert the stored values?","shell.convertBody":"{name} holds {count} records in the database. Convert their values to the new type, or change the field only and leave them as they are?","shell.convertValues":"Convert the values","shell.convertKeep":"Change the field only","shell.exporting":"Exporting {done} of {total} records…","shell.copying":"Copying {done} of {total} records…","shell.reading":"Reading {done} of {total} records…","shell.saving":"Saving…","shell.allSaved":"All changes saved","shell.notSaved":"Not saved: {message}","shell.savingSlow":"Still saving: the server has not answered yet","shell.tryAgain":"Try again","shell.dismissStatus":"Dismiss","shell.failSave":"Could not save {field} of {record}. {reason}","shell.failSaveTyped":"Could not save {field} of {record}. {reason} You entered: {value}","shell.failSaveRecord":"Could not save {record}. {reason}","shell.failAdd":"Could not add {record}. {reason}","shell.failAddMany":"Could not add {records}. {reason}","shell.failDelete":"Could not delete {record}. {reason} It is still in the table.","shell.failDeleteMany":"Could not delete {records}. {reason} They are still in the table.","shell.failPurge":"Could not delete {record} forever. {reason} It is still in the trash.","shell.failPurgeMany":"Could not delete {records} forever. {reason} They are still in the trash.","shell.undoLeftAway":"{records} left out: someone deleted them. If they are restored, they keep the edit.","shell.failLinkGone":"The record {record} linked to was deleted forever, so this link cannot come back.","shell.linkToTrash":"The record you linked to is in the trash. The link stays empty until someone restores it.","shell.failPurgeHalf":"Could not delete {record} forever. {reason} It stopped half way, so its links may be gone and it cannot be restored. Press Delete forever again to finish.","shell.failPurgeHalfMany":"Could not delete {records} forever. {reason} It stopped half way, so their links may be gone and they cannot be restored. Press Delete forever again to finish.","shell.purgeUnderWay":"{record} cannot be restored: someone has started to delete it forever. If it stays in the trash, that delete did not finish, and Delete forever will finish it.","shell.purgeUnderWayMany":"{records} cannot be restored: someone has started to delete them forever. If they stay in the trash, that delete did not finish, and Delete forever will finish it.","shell.cannotRestorePurging":"A delete forever of this record did not finish. Its links may be gone, so it cannot be restored. Delete it forever to finish.","shell.purgeCameBack":"{record} was not deleted: someone restored it first.","shell.purgeCameBackMany":"{records} were not deleted: someone restored them first.","shell.undoPurged":"{record} was deleted forever, so it cannot come back.","shell.undoPurgedMany":"{records} were deleted forever, so they cannot come back.","shell.failRestore":"Could not put {record} back. {reason} It is still in the trash.","shell.failRestoreMany":"Could not put {records} back. {reason} They are still in the trash.","shell.failMany":"{count} changes could not be saved. {reason}","shell.why.offline":"The server could not be reached.","shell.why.noAnswer":"The server did not answer, so it may not have been stored.","shell.why.required":"This field needs a value.","shell.why.duplicate":"Another record already has this value.","shell.why.notAccepted":"The database does not accept this value.","shell.why.idTooLong":"Record ids need {need} characters; this table's id column holds {holds}. Ask whoever runs the database to make it wider.","shell.why.linked":"Other records depend on it.","shell.why.linkedCircle":"These records link to each other in a circle, and this database checks each link as it deletes, so they were not deleted. Empty the link of one of them first.","shell.why.linkRefused":"The linked record is not there, or you may not link to it. Pick another.","shell.why.noPermission":"You do not have permission to do this.","shell.why.gone":"This record no longer exists.","shell.why.notDeleted":"The database kept it, so you may not have permission.","shell.why.noRead":"The server did not answer.","shell.why.readError":"The server answered with an error. Whoever runs it can see why in its log.","shell.why.linkMissing":"The record it points to is not there.","shell.why.linkMissingField":"The record {field} points to is not there.","shell.why.linkMissingFields":"The record that {fields} point to is not there.","shell.why.serverError":"The server answered with an error. Whoever runs it can see why in its log.","shell.why.unknown":"No reason came with the error that this page may show. Whoever runs the database can see it in its log.","shell.why.said":"The server said: {said}","shell.why.readSaid":"The server answered with an error: {said}","shell.couldNotLoad":"Could not load {table}: {message}","shell.loadFailedTitle":"Could not load {table}","shell.loadTryAgain":"Try again","shell.loadTrying":"Trying again…","shell.couldNotSave":"Could not save {table}: {message}","shell.trashSaveFailed":"Could not save the trash: {message}","shell.trashReadFailed":"Could not read the trash: {message}","shell.deleted":"Deleted {what}","shell.restored":"Restored {what}","shell.theField":"the field {name}","shell.theTable":"the table {name}","shell.theView":"the view {name}","shell.stepDeleteView":"delete view {name}","shell.aField":"a field","shell.importedNewTable":"Imported {records} into a new table, {name}","shell.importedInto":"Imported {records} into {table}","shell.importedIntoFallback":"the table","shell.stepCellEdit":"cell edit","shell.stepCells.one":"{count} cell","shell.stepCells.other":"{count} cells","shell.stepResize":"resize","shell.stepMoveField":"move field","shell.stepAddRecord":"add record","shell.stepMoveRecord":"move record","shell.undoRecordStays":"Someone has changed this record since, so it stays. Delete it if it should go.","shell.undoCellStays.one":"Someone has changed this cell since, so it keeps their value.","shell.undoCellStays.other":"Someone has changed {count} of these cells since, so they keep their values.","shell.undoCellsKept.one":"Someone has changed 1 of these cells since, so it keeps their value.","shell.undoCellsKept.other":"Someone has changed {count} of these cells since, so they keep their values.","shell.undoRecordsKept.one":"Someone has changed 1 of these records since, so it keeps their value.","shell.undoRecordsKept.other":"Someone has changed {count} of these records since, so they keep their values.","shell.undoCannotCheck":"The database could not be reached to check this cell, so nothing was changed. Try again in a moment.","shell.undoStillSaving":"This record is still saving, so nothing was changed. Try again once it has saved.","shell.undoRunning":"Undo is still running.","shell.redoRunning":"Redo is still running.","shell.undoStopped":"Undo stopped: {done} of {total} records were put back. Undo again to put back the rest.","shell.redoStopped":"Redo stopped: {done} of {total} records were changed again. Redo again to do the rest.","shell.undoCellsStopped":"Undo stopped: {done} of {total} cells were put back. Undo again to put back the rest.","shell.redoCellsStopped":"Redo stopped: {done} of {total} cells were changed again. Redo again to do the rest.","shell.undoAddStopped":"Undo stopped: {done} of {total} new records were taken out. Undo again to take out the rest.","shell.redoAddStopped":"Redo stopped: {done} of {total} records were added again. Redo again to add the rest.","shell.redoDeleteStopped":"Redo stopped: {done} of {total} records were deleted again. The rest stay, and Undo brings back those it deleted.","shell.undoRecordGone":"This record has been deleted, so nothing was changed.","shell.retryChanged.one":"This cell has changed since, so it keeps its new value.","shell.retryChanged.other":"{count} cells have changed since, so they keep their new values.","shell.retryGone.one":"The record has been deleted, so this was not saved.","shell.retryGone.other":"{count} records have been deleted, so these were not saved.","shell.retryGoneTyped":'The record has been deleted, so "{value}" was not saved.',"shell.retryUnread":"The record could not be read to check it, so nothing was saved.","shell.deleteCannotRead":"The database could not be read, so these records were not deleted. Try again in a moment.","shell.pasteLeftOut.one":'"{text}" does not fit {field}, so that cell keeps its value.',"shell.pasteLeftOut.other":"{count} values do not fit their fields, so those cells keep their values.","shell.pasteLoading":"The view is still loading, so nothing was pasted. Paste again when the rows are shown.","shell.formulaInField":"In a base, a formula is a field of its own: it works out a value for every record at once.","shell.formulaMakeField":"Make a formula field","shell.formulaIsSummary":"The summary bar under the table works this out for {field}, and keeps it up to date as records change.","shell.formulaShowSummary":"Show it for {field}","shell.sumShown":"The sum of {field} is in the summary bar under the table. It keeps up as records change.","shell.sumNotNumbers":"{field} does not hold numbers, so there is nothing to add up. Select a number field and press Alt+= again.","shell.sumNoBar":"A base adds up a field in the summary bar under the table, and this view does not show one.","shell.totalRecord":"No total record needed: the summary bar under the table adds up each number field, and keeps up as records change.","shell.totalShowSums":"Show the sums","shell.formatInBase":"A base keeps no bold or colors typed into cells, so every screen reads the same data. Color rows or cells by what they hold with Color in the toolbar.","shell.formatOpenColor":"Open Color","shell.pasteNoField.one":"One column of the paste had no field to go in, so it was left out.","shell.pasteNoField.other":"{count} columns of the paste had no field to go in, so they were left out.","shell.pasteNamesLeftOut":"The first line holds the names of the fields, so it is not pasted as a record.","shell.pasteFieldsTitle.one":"Add a field for this paste?","shell.pasteFieldsTitle.other":"Add {count} fields for this paste?","shell.pasteFieldsBody.one":"The paste has one more column than the table has from here. Add a field for it:","shell.pasteFieldsBody.other":"The paste has {count} more columns than the table has from here. Add a field for each:","shell.pasteFirstLineNames":"The first line holds the names of the fields","shell.pasteWithout":"Paste without them","shell.pasteAddFields.one":"Add the field and paste","shell.pasteAddFields.other":"Add {count} fields and paste","shell.pasteNewTitle":"New records","shell.pasteNewAsk":"This paste runs past the last record. Add {records}?","shell.pasteNewConfirm":"Add records","shell.pasteNewPart":"{done} of {total} new records were added.","shell.rangeLoading":"The view is still loading, so nothing was changed. Try again when the rows are shown.","shell.rangeMovedPaste":'Records moved while this was read. Nothing was changed. Try again pastes from "{name}" down over the rows as they are now.',"shell.rangeMovedValue":'Records moved while this was read. Nothing was changed. Try again puts the value in from "{name}" down over the rows as they are now.',"shell.rangeMovedClear":'Records moved while this was read. Nothing was changed. Try again clears from "{name}" down over the rows as they are now.',"shell.rangeMovedFill":'Records moved while this was read. Nothing was changed. Try again fills from "{name}" down over the rows as they are now.',"shell.rangeMovedSelect":"Records moved while this was read. Nothing was changed. Select the cells again.","shell.rangeAnchorGone":'"{name}" is no longer among the rows shown, so nothing was changed. Select the cells again.',"shell.rangeAgainShort.one":'Only {count} row is below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was changed. Select the cells again.',"shell.rangeAgainShort.other":'Only {count} rows are below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was changed. Select the cells again.',"shell.copyAgainShort.one":'Only {count} row is below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was copied. Select the cells again.',"shell.copyAgainShort.other":'Only {count} rows are below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was copied. Select the cells again.',"shell.rangeAgainCovers":'From "{name}" down over {count} rows, selected in the view.',"shell.rangeElsewhere":"That view is no longer open, so nothing was changed.","shell.rangeViewChanged":"The view has changed since, so nothing was changed.","shell.copyElsewhere":"That view is no longer open, so nothing was copied.","shell.copyViewChanged":"The view has changed since, so nothing was copied.","shell.rangeDraftsLeft.one":"1 new record is not stored yet, so it was left out. Change it on its own row.","shell.rangeDraftsLeft.other":"{count} new records are not stored yet, so they were left out. Change them on their own rows.","shell.rangeMoveRefused":"A move can only use rows that are on screen, and {records} of this one are not loaded, so nothing moved. Copy and paste reach them.","shell.copyTitle":"Copy","shell.copyReading":"Reading the selection: {done} rows so far","shell.copyTooBig":"This selection is {cells} cells, more than the {limit} a copy can hold, so nothing was copied. Download this view instead: it holds every record.","shell.copyMovedFrom":'Records moved while this was read. Nothing was copied. Try again copies from "{name}" down over the rows as they are now.',"shell.copyMovedSelect":"Records moved while this was read. Nothing was copied. Select the cells again.","shell.copyAnchorGone":'"{name}" is no longer among the rows shown, so nothing was copied. Select the cells again.',"shell.copyFailed":"Could not read the selection, so nothing was copied: {message}","shell.copyDone":"Copied {count} rows","shell.copyReady":"{count} rows are ready. The browser needs one more click to put them on the clipboard.","shell.copyButton":"Copy","shell.copyRefused":"The browser would not put this much on the clipboard. Download this view instead.","shell.cutRefused":"The browser would not put the cells on the clipboard, so nothing was cut.","shell.cutMoved":"The selection changed before the cells reached the clipboard, so nothing was cleared.","shell.stepPasteRecords":"paste {records}","shell.stepBulkEdit":"edit {records}","shell.bulkReading":"Reading the selection: {done} records so far","shell.bulkFailed":"Could not read the selection, so nothing was changed: {message}","shell.bulkTitle":"Edit records","shell.bulkAsk":"Change {count}?","shell.bulkRuns":"Also run automations: up to {count} runs","shell.bulkRunsTime":"They run one at a time in this tab after the save: about {time} at {rate} a second. Runs left when the tab closes do not happen.","shell.bulkRunsTab":"They run one at a time in this tab after the save. Runs left when the tab closes do not happen.","shell.runsLine":"Running automations: {done} of {total}","shell.runsLineLeft":"Running automations: {done} of {total}, about {time} left","shell.runsStop":"Stop","shell.runsDone":"Automations ran on {total} changes.","shell.runsStopped":"Stopped: {done} of {total} automation runs are done. The other {left} will not run.","shell.timeSeconds":"less than a minute","shell.timeMinutes.one":"1 minute","shell.timeMinutes.other":"{count} minutes","shell.timeHours.one":"1 hour","shell.timeHours.other":"{count} hours","shell.bulkAskNoUndo":"That is too many to undo: once changed, they cannot be changed back from here.","shell.bulkConfirm":"Change records","shell.bulkWriting":"Saving {done} of {total} records...","shell.cellsWriting":"Saving {done} of {total} cells...","shell.bulkDone":"Changed {done} of {total} records","shell.bulkStopped":"Stopped: {done} of {total} records were changed.","shell.bulkFailedPart":"{done} of {total} records were changed, then the save stopped. {reason}","shell.bulkFailedUnsure":"At least {done} of {total} records were changed, then the save stopped and the database could not be read to check the last block. {reason}","shell.bulkUndoLeft":"Undo takes these back.","shell.bulkNoUndoLeft":"That is too many to undo.","shell.failSaveMany":"Could not save {records}. {reason}","shell.stepDeleteRecords":"delete {records}","shell.addColumnFailed":"The column for {field} was not added: {error}","shell.addColumnYourself":"{field} needs a column in {table} before it can store values. Add it to the database: {sql}","shell.duplicateNeedsColumn":"A copy of {field} needs a column of its own in {table}, and the base cannot add one there, so nothing was copied. Add the column to the database first: {sql}","shell.deleting":"Deleting {done} of {total} records...","shell.deleteNoTrash":"That is too many for the trash: they cannot be restored.","shell.scanDrift":"Records changed while this view was being read, so its count may be out by a few.","shell.noSqlSort":"This database cannot work out {fields}, so the view does not sort or total on it.","shell.noSqlView":"This database cannot work out {fields}, so the view cannot filter or group on it. Take it out of the filter or the grouping.","shell.deleteGroupShort":"The group {key} read back {read} records of {size}, so what was left out of the selection cannot be told apart. Nothing was deleted.","shell.deleteGroupUnknown":"How many records the group {key} holds is not known here, so what was left out of the selection cannot be told apart. Nothing was deleted. Tick what should go instead.","shell.deleteTitle":"Delete records","shell.deleteReading":"Finding the records to delete: {done} read...","shell.deleteAsk":"Delete {count}?","shell.deleteAskTrash":"They go to the trash, and undo brings them back.","shell.deleteNothing":"None of the selected records are there any more.","shell.deleteStop":"Stop","shell.deleteCancel":"Cancel","shell.deleteConfirm":"Delete","shell.deleteDone":"Deleted {done} of {total} records","shell.deleteFailed":"Could not read the selection, so nothing was deleted: {message}","shell.columnExists":"The column {column} already exists in {table}, so {field} was stored as {name}.","shell.stepAddField":"add field {name}","shell.stepChangeField":"change field {name}","shell.stepDeleteField":"delete field {name}","shell.stepAddTable":"add table {name}","shell.stepRenameTable":"rename table to {name}","shell.stepDuplicateTable":"duplicate table {name}","shell.stepDeleteTable":"delete table {name}","shell.stepRestore":"restore from the trash","shell.stepImportTable":"import {name}","shell.stepImportRecords":"import {records}","shell.tablesLabel":"Tables","shell.tableName":"Table name","shell.tableActions":"Table actions","shell.tableOptions":"{name} table options","shell.renameTable":"Rename table","shell.duplicateTable":"Duplicate table","shell.importRecordsFromFile":"Import records from a file","shell.keepOneTable":"A base keeps at least one table","shell.deleteTable":"Delete table","shell.allTables":"All tables","shell.importAsTable":"Import a file as a table","shell.importAsTableTitle":"A CSV, TSV, Excel or JSON file as a new table, with a field type for each column","shell.downloadCsv":"Download this view as CSV","shell.downloadExcel":"Download this view as Excel","shell.downloadViewTitle":"The records and fields this view shows, as they read on screen","shell.exportNothing":"This view has no records to download.","shell.excelNeedsZip":"This app cannot write Excel files yet: it needs the jszip package. Ask whoever runs it to install jszip.","shell.exportFailed":"Could not make the file. Try again.","shell.downloadSql":"Download as SQL","shell.downloadFiles":"Download the files (ZIP)","shell.downloadFilesTitle":"Every file this view shows, in a folder for each group, or for each record","shell.exportNoFiles":"This view shows no files.","shell.downloadSqlTitle":"The tables, links, records, views and automations, ready for Postgres or Supabase","shell.addTable":"Add table","shell.addTableWays":"More ways to add a table","shell.blankTable":"Blank table","shell.viewOnly":"View only","shell.viewOnlyTitle":"You can look at these tables but not change them","shell.undo":"Undo","shell.undoStep":"Undo {step}","shell.undoStepTitle":"Undo {step} (Ctrl+Z)","shell.nothingToUndo":"Nothing to undo","shell.redo":"Redo","shell.redoStep":"Redo {step}","shell.redoStepTitle":"Redo {step} (Ctrl+Shift+Z)","shell.nothingToRedo":"Nothing to redo","shell.trashButton":"Trash, {items}","shell.trashTitle":"Deleted records, fields and tables","shell.deleteNamed":"Delete {name}?","shell.deleteTableRecords.one":"Its {count} record goes with it, and so do its views.","shell.deleteTableRecords.other":"Its {count} records go with it, and so do its views.","shell.deleteTableLinks":"These fields of other tables link to it, or read a link to it, and are deleted too:","shell.readsLink":"{table}: {field} (reads {link})","shell.cancel":"Cancel","shell.searchAllTables":"Search all tables","shell.searchResults":"Search results","shell.searchRecords":"Records","shell.searchMore":"{count} more in {table}","shell.searchNone":"No records match.","shell.searchFoot":"{records} in {tables}","shell.trash":"Trash","shell.trashShow":"Show","shell.trashAll":"All","shell.trashRecords":"Records","shell.trashFields":"Fields","shell.trashTables":"Tables","shell.trashViews":"Views","shell.findInTrash":"Find in trash","shell.trashEmpty":"The trash is empty. Deleted records, fields and tables come here.","shell.trashEmptyDays":"The trash is empty. Deleted records, fields and tables come here and stay {days} days.","shell.trashNoMatch":"Nothing in the trash matches.","shell.trashItems":"Deleted items","shell.kindRecord":"Record","shell.kindView":"View","shell.kindField":"Field","shell.kindTable":"Table","shell.trashIn":"{kind} in {table}","shell.trashTableRecords.one":"{kind}, {count} record","shell.trashTableRecords.other":"{kind}, {count} records","shell.trashDeletedTable":"{name} (deleted)","shell.trashADeletedTable":"a deleted table","shell.trashBy":"by","shell.agoNow":"just now","shell.agoMinutes":"{n} min ago","shell.agoHours":"{n} h ago","shell.agoYesterday":"yesterday","shell.agoDays":"{n} days ago","shell.restore":"Restore","shell.restoreItem":"Restore {name}","shell.restoreAll":"Restore all","shell.restoreThese":"Restore these","shell.deleteForever":"Delete forever","shell.deleteItemForever":"Delete {name} forever","shell.deleteCountForever":"Delete {count} forever","shell.keepThem":"Keep them","shell.keepIt":"Keep it","shell.deleteAskForever":"Delete this forever? It cannot be undone.","shell.emptyTrash":"Empty trash","shell.trashNoteDays":"Items are deleted for good after {days} days.","shell.trashNoteKeep":"Items stay until the trash is emptied.","shell.trashNotePage":"Items stay until this page is closed or reloaded.","shell.trashNoteMarked":"Records stay in their table until they are deleted forever. Fields, views and tables stay until this page is closed or reloaded.","shell.trashClosed":"Deleted records are listed for people who may delete. Ask whoever runs this base if you need one back.","shell.trashEmptyMarked":"The trash is empty. Deleted records stay in their table and come here. Deleted fields, views and tables stay until this page is closed or reloaded.","shell.trashMore":"Showing the latest {shown} of {total} deleted records.","shell.trashEmptyPage":"The trash is empty. Deleted records, fields and tables come here and stay until this page is closed or reloaded.","shell.unnamedRecord":"Untitled record","shell.fieldFallback":"Field","shell.cannotRestoreTable":"A table with its id is in the base","shell.cannotRestoreNoTable":"Its table was deleted: restore the table first","shell.cannotRestoreRecord":"The record is in its table","shell.cannotRestoreField":"A field with its id is in the table","shell.importNewTitle":"Import a file as a new table","shell.importIntoTitle":"Import records into {table}","shell.thisTable":"this table","shell.importChoose":"Choose a CSV or Excel file","shell.importReading":"Reading the file…","shell.importDrop":"Drop a file here, or click to choose one","shell.importFormats":"CSV, TSV, Excel (.xlsx) or JSON. The first row names the columns.","shell.importNoRecords":"The file has a header row and no records.","shell.importBinary":"This file is not text. Choose a CSV, TSV, Excel (.xlsx) or JSON file.","shell.importNeedsZip":"This app cannot read Excel files yet: it needs the jszip package. Ask whoever runs it to install jszip, or import the file as CSV.","shell.importBadExcel":"This file could not be read as an Excel workbook. Open it in Excel and save it again as .xlsx.","shell.importBadJson":'This file could not be read as JSON. It needs to be a list of records: [{ "name": "Ana" }, ...].',"shell.importSeparator":"Separator","shell.importEncoding":"Encoding","shell.importComma":"Comma","shell.importSemicolon":"Semicolon","shell.importTab":"Tab","shell.importPipe":"Pipe","shell.importWarnEncoding":"This file is not UTF-8, so it was read as {encoding}. If letters look wrong, choose another encoding above.","shell.importWarnUnclosed.one":"A quote on line {line} is never closed. It was kept as text, and the rows after it were read as usual. Check that row after the import.","shell.importWarnUnclosed.other":"{count} quotes are never closed, the first on line {line}. They were kept as text, and the rows after them were read as usual. Check those rows after the import.","shell.importWarnStray.one":"A quote on line {line} is in an unusual place and was kept as text. Check that row after the import.","shell.importWarnStray.other":"{count} lines have a quote in an unusual place, the first on line {line}. They were kept as text. Check those rows after the import.","shell.importWarnLong.one":"The row on line {line} has more cells than the header row. The extra cells are in columns of their own below.","shell.importWarnLong.other":"{count} rows have more cells than the header row, the first on line {line}. The extra cells are in columns of their own below.","shell.importWarnShort.one":"The row on line {line} has fewer cells than the header row. Its missing cells stay empty.","shell.importWarnShort.other":"{count} rows have fewer cells than the header row, the first on line {line}. Their missing cells stay empty.","shell.importWarnLost.one":"1 value does not fit the field it goes to and would be left empty. Change that field type or skip the column to keep it.","shell.importWarnLost.other":"{count} values do not fit the fields they go to and would be left empty. Change those field types or skip the columns to keep them.","shell.importWarnUnmatched.one":"1 cell names a person or a record that was not found, so that name is not imported.","shell.importWarnUnmatched.other":"{count} cells name a person or a record that was not found, so those names are not imported.","shell.tablesHeading":"Tables","shell.tablesOnLeft":"Show the tables on the left","shell.tablesAsTabs":"Show the tables as tabs","shell.moveTableToSection":"Put under a heading","shell.tableSection":"Heading","shell.tableSectionHint":"Heading, or empty for none","shell.stepTableSection":"move a table under a heading","shell.importRepeatedLabel":"Records already in the table","shell.importAddAll":"Add every row as a new record","shell.importUpdateMatching":"Update the records that match, add the rest","shell.importUpdateTooBig":"This table is read a page at a time, so its records cannot all be matched here: every row is added.","shell.importMatchBy":"Match by","shell.importWillMerge":"{updated} records will be updated and {added} added. Blank cells leave a field as it is.","shell.stepImportMerge":"Import: {updated} updated, {added} added","shell.importedMerged":"{updated} records updated and {added} added in {table}.","shell.importWarnRepeated.one":"1 record has the same name as a record already in this table. Importing adds it as a second record.","shell.importWarnRepeated.other":"{count} records have the same name as records already in this table. Importing adds them as second records.","shell.importSummary.one":"{file}: {count} record, {columns} columns","shell.importSummary.other":"{file}: {count} records, {columns} columns","shell.importAnother":"Choose another file","shell.importInto":"Import into","shell.importModeNew":"A new table","shell.importModeAppend":"Add records to {table}","shell.theShownTable":"the shown table","shell.importColumn":"Column","shell.importFieldType":"Field type","shell.importFirstValues":"First values","shell.importFileColumn":"Column in the file","shell.importGoesTo":"Goes to field","shell.importNamesRecords":"names the records","shell.importFieldTypeOf":"Field type of {name}","shell.importFieldFor":"Field for {name}","shell.importSkip":"Skip this column","shell.importNoMapping":"No column goes to a field yet.","shell.importButton.one":"Import {count} record","shell.importButton.other":"Import {count} records","shell.importFieldName":"Field {n}","shell.importedName":"Imported","shell.importedRecordName":"Imported {n}","shell.deleteRecordTitle":"Delete record?","shell.deleteRecordNamed":"{name} is deleted, and its links from other records go with it.","shell.deleteRecordUnnamed":"This record is deleted, and its links from other records go with it.","shell.deleteRecord":"Delete record","shell.fieldLinksTo":"{name} links to {table}.","shell.anotherTable":"another table","shell.fieldLinkBack":"The field there that links back, {name}, is deleted with it.","shell.fieldLinksGo":"The links between the records go too.","shell.fieldReaders":"These fields read it and are deleted too: {fields}.","shell.fieldDeleted":"{name} and its values are deleted.","shell.fieldFormulas":"These formulas read it and will show #ERROR: {fields}.","shell.deleteField":"Delete field","shell.fieldUses":"Used by:","shell.usesView":"{name}: {uses}","shell.usesAutomation":"Automation {name}: it no longer reads or writes this field","shell.usesStack":"stacks its cards by it, and shows as a plain grid without it","shell.usesDates":"places its records by it, and shows as a plain grid without it","shell.usesBars":"draws its bars with it","shell.usesCover":"shows it as the card cover","shell.usesBoard":"shows it on its cards","shell.usesChart":"charts it","shell.usesFilter":"filters by it","shell.usesSort":"sorts by it","shell.usesGroup":"groups by it","shell.usesColor":"colors records by it","shell.usesForm":"asks for it","shell.usesList":"lists it","shell.usesTile":"a tile reads it","shell.cellChanged":"{field} changed to {value}","shell.cellCleared":"{field} cleared","shell.cellsChanged.one":"{count} cell changed","shell.cellsChanged.other":"{count} cells changed","shell.undoneStep":"Undone: {step}","shell.redoneStep":"Redone: {step}","shell.summarize":"Summarize","shell.summarizeField":"Summarize {field}","shell.summaryChange":"{summary} {value}, change summary","shell.summaryCount.one":"{count} record, summarize {field}","shell.summaryCount.other":"{count} records, summarize {field}","shell.recordsWord.one":"record","shell.recordsWord.other":"records","shell.summaryMenu":"Summary","shell.summary.none":"None","shell.summary.empty":"Empty","shell.summary.filled":"Filled","shell.summary.unique":"Unique","shell.summary.percentEmpty":"Percent empty","shell.summary.percentFilled":"Percent filled","shell.summary.sum":"Sum","shell.summary.avg":"Average","shell.summary.median":"Median","shell.summary.min":"Min","shell.summary.max":"Max","shell.summary.range":"Range","shell.summary.checked":"Checked","shell.summary.unchecked":"Unchecked","shell.summary.percentChecked":"Percent checked","shell.summary.earliest":"Earliest date","shell.summary.latest":"Latest date","shell.summary.dateRange":"Date range (days)","shell.searchKey":"Ctrl K","shell.tabHint":"Tab moves between cells. Press Esc, then Tab, to leave the grid.","shell.menuExpand":"Expand record","shell.menuSelect":"Select record","shell.menuDeselect":"Deselect record","shell.recordActions":"Actions for row {row}","shell.menuComment":"Comment","shell.menuInsertAbove":"Insert record above","shell.menuInsertBelow":"Insert record below","shell.menuAddSubtask":"Add subtask","shell.subtasks":"Subtasks","shell.treeNoLoop":"A record cannot go under itself or one of its own subtasks.","shell.treeMovedUnder":"{name} is now under {parent}","shell.treeMovedTop":"{name} is now at the top level","shell.menuDuplicate":"Duplicate record","shell.addField":"Add a field","shell.addRow":"Add row","shell.addRecord":"Add record","shell.groupEmpty":"Empty","shell.groupAdd":"Add a record to this group","shell.groupAddTo":"Add a record to {field} {value}","shell.groupColumn":"Group","shell.someoneElse":"Someone else","shell.unseenAdded":"{who} added this record {ago}","shell.unseenChanged":"{who} changed this record {ago}","shell.selectRow":"Select row {row}","shell.selectAllRows":"Select all rows","shell.expandRow":"Expand row","shell.expandRowN":"Expand row {row}","shell.comments.one":"{count} comment","shell.comments.other":"{count} comments","shell.commentsOnRow.one":"{count} comment on row {row}","shell.commentsOnRow.other":"{count} comments on row {row}","shell.changedBy":"{count} changed by {who}","shell.changedBySomeone":"someone else","shell.changedByOthers":"others","shell.dashboardRecords":"Records"};
|