@svgrid/enterprise 3.1.57 → 3.1.59

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.
Files changed (64) hide show
  1. package/dist/SvGridBoard.svelte +1 -1
  2. package/dist/SvGridScheduler.svelte +1 -1
  3. package/dist/SvRecordDetail.svelte +1 -1
  4. package/dist/SvSchedule.svelte +1 -1
  5. package/dist/cdn/svgrid-enterprise.svelte-external.js +295 -295
  6. package/dist/date-locale.d.ts +8 -0
  7. package/dist/date-locale.js +1 -0
  8. package/dist/designer/assets/{index-DfYT4Bxh.js → index-BAAiipJp.js} +310 -310
  9. package/dist/designer/index.html +1 -1
  10. package/dist/fields/BaseInboxView.svelte +1 -1
  11. package/dist/fields/BaseTableView.svelte +1 -1
  12. package/dist/fields/ButtonCell.svelte +6 -5
  13. package/dist/fields/ButtonCell.svelte.d.ts +6 -5
  14. package/dist/fields/FieldEditor.svelte +30 -6
  15. package/dist/fields/PeopleRulePicker.svelte +34 -0
  16. package/dist/fields/PeopleRulePicker.svelte.d.ts +16 -0
  17. package/dist/fields/PropertyInput.svelte +36 -2
  18. package/dist/fields/RecordView.svelte +26 -8
  19. package/dist/fields/SelectEditor.svelte +1 -1
  20. package/dist/fields/SvBase.svelte +1 -1
  21. package/dist/fields/activity.svelte.d.ts +34 -0
  22. package/dist/fields/activity.svelte.js +1 -1
  23. package/dist/fields/automations.svelte.d.ts +6 -0
  24. package/dist/fields/automations.svelte.js +1 -1
  25. package/dist/fields/base-permissions.d.ts +13 -0
  26. package/dist/fields/base-permissions.js +1 -1
  27. package/dist/fields/builtin-types.js +1 -1
  28. package/dist/fields/button-host.d.ts +63 -0
  29. package/dist/fields/button-host.js +1 -0
  30. package/dist/fields/button.d.ts +36 -1
  31. package/dist/fields/button.js +1 -1
  32. package/dist/fields/field-access.svelte.d.ts +38 -8
  33. package/dist/fields/field-access.svelte.js +1 -1
  34. package/dist/fields/index.d.ts +5 -3
  35. package/dist/fields/index.js +1 -1
  36. package/dist/fields/messages/fields.d.ts +62 -2
  37. package/dist/fields/messages/fields.js +1 -1
  38. package/dist/fields/messages/record.d.ts +7 -0
  39. package/dist/fields/messages/record.js +1 -1
  40. package/dist/fields/messages.svelte.d.ts +73 -3
  41. package/dist/fields/messages.svelte.js +1 -1
  42. package/dist/fields/people-rule.d.ts +35 -0
  43. package/dist/fields/people-rule.js +1 -0
  44. package/dist/fields/record-delete.svelte.js +1 -1
  45. package/dist/fields/record-menu.js +1 -1
  46. package/dist/fields/registry.svelte.d.ts +22 -0
  47. package/dist/fields/registry.svelte.js +1 -1
  48. package/dist/fields/view-model.js +1 -1
  49. package/dist/gantt/SvGridGantt.svelte +1 -1
  50. package/dist/gantt/gantt-model.js +1 -1
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.js +1 -1
  53. package/dist/node/studio.js +1 -1
  54. package/dist/version.d.ts +2 -2
  55. package/dist/version.js +1 -1
  56. package/dist/wc/board-CEIIZoaC.js +26 -0
  57. package/dist/wc/{palette-DkaM8TCP.js → date-locale-CKE0m3Dc.js} +9 -9
  58. package/dist/wc/gantt-_heLybcH.js +115 -0
  59. package/dist/wc/scheduler-CGoM4ahy.js +160 -0
  60. package/dist/wc/sv-base-element.js +198 -196
  61. package/package.json +3 -3
  62. package/dist/wc/board-C2hPY2IP.js +0 -26
  63. package/dist/wc/gantt-DBRJiYsr.js +0 -115
  64. package/dist/wc/scheduler-DJZRC1fj.js +0 -160
@@ -1,2 +1,37 @@
1
- /** The URL a button field opens: `{Field name}` tokens filled from the row, http(s) only. */
1
+ /**
2
+ * What a Button field does when it is pressed (`fieldProps.action`):
3
+ *
4
+ * - `link`: open a link. The URL is either text with `{Field name}` tokens
5
+ * (`https://maps.google.com/?q={Address}`, each value URL-encoded) or, as in
6
+ * Airtable, a formula (`"mailto:" & {Email} & "?subject=" & ENCODE_URL_COMPONENT({Name})`,
7
+ * or `{Website}` for the link a field holds). Web links open in a new tab, a link
8
+ * to this site in the same tab, and mailto:, tel: and sms: in the app that takes them.
9
+ * - `automation`: only the automations that start "When a button is pressed".
10
+ * - `update`: change fields of the record (values as an automation's "Update the record").
11
+ * - `template`: fill the record's empty fields from one of the table's record templates.
12
+ * - `recordAction`: one of the app's record actions (Print, Make a document).
13
+ * - `copy`: copy text made from the record.
14
+ * - `duplicate`, `delete`, `open`: the record menu's own.
15
+ *
16
+ * Whatever the action, the automations listening on the button run after it.
17
+ */
18
+ export type ButtonAction = 'link' | 'automation' | 'update' | 'template' | 'recordAction' | 'copy' | 'duplicate' | 'delete' | 'open';
19
+ export declare const BUTTON_ACTIONS: ReadonlyArray<ButtonAction>;
20
+ /** The actions that change records: a person who may only read cannot press them. */
21
+ export declare const CHANGING_ACTIONS: ReadonlySet<ButtonAction>;
22
+ /** A field's action; a field saved before there were actions opens its link. */
23
+ export declare function buttonAction(props: {
24
+ action?: unknown;
25
+ } | null | undefined): ButtonAction;
26
+ /** URL text is a template when it starts as a link does (`https:`, `mailto:`, `/orders`); anything else is a formula. */
27
+ export declare function isLinkTemplate(text: string): boolean;
28
+ /** `{Field name}` tokens filled from the row; `encode` URL-encodes each value. */
29
+ export declare function fillButtonTokens(template: string, row: Record<string, unknown>, names: Record<string, string> | undefined, encode: boolean): string;
30
+ /** Where a link may go: the web, e-mail, a phone call or a text, and this site. Never script or data. */
31
+ export declare function safeButtonLink(text: string, origin?: string): string | null;
32
+ /** The URL a template-style button opens: `{Field name}` tokens filled from the row. */
2
33
  export declare function buttonUrl(template: string, row: Record<string, unknown> | null | undefined, names?: Record<string, string>): string | null;
34
+ /** Open a button's link: this site in the same tab, other web links in a new one, mailto:/tel:/sms: in their app. */
35
+ export declare function openButtonLink(href: string, origin?: string): void;
36
+ /** Copy text to the clipboard; on a page without the Clipboard API, through a hidden text box. */
37
+ export declare function copyButtonText(text: string): Promise<boolean>;
@@ -1 +1 @@
1
- export function buttonUrl(n,o,e){if(!n.trim()||!o)return null;const c=n.replace(/\{([^}]+)\}/g,(r,l)=>{const u=e?.[l.trim().toLowerCase()]??l.trim(),t=o[u];return encodeURIComponent(t==null?"":Array.isArray(t)?t.join(","):String(t))});try{const r=new URL(c);return r.protocol==="http:"||r.protocol==="https:"?r.href:null}catch{return null}}
1
+ export const BUTTON_ACTIONS=["link","automation","update","template","recordAction","copy","duplicate","delete","open"],CHANGING_ACTIONS=new Set(["automation","update","template","duplicate","delete"]);export function buttonAction(o){const e=o?.action;return typeof e=="string"&&BUTTON_ACTIONS.includes(e)?e:"link"}export function isLinkTemplate(o){return/^\s*([a-z][a-z0-9+.-]*:|\/)/i.test(o)}export function fillButtonTokens(o,e,t,r){return o.replace(/\{([^}]+)\}/g,(n,c)=>{const a=t?.[c.trim().toLowerCase()]??c.trim(),i=e[a],l=i==null?"":Array.isArray(i)?i.join(","):String(i);return r?encodeURIComponent(l):l})}export function safeButtonLink(o,e=typeof location>"u"?"http://localhost":location.origin){const t=o.trim();if(!t)return null;if(t.startsWith("/")&&!t.startsWith("//"))try{return new URL(t,e).href}catch{return null}const r=/^[a-z0-9-]+(\.[a-z0-9-]+)+(:\d+)?([/?#]|$)/i.test(t)?`https://${t}`:t;try{const n=new URL(r);return n.protocol==="http:"||n.protocol==="https:"?n.href:n.protocol==="mailto:"||n.protocol==="tel:"||n.protocol==="sms:"?r:null}catch{return null}}export function buttonUrl(o,e,t){return!o.trim()||!e?null:safeButtonLink(fillButtonTokens(o,e,t,!0))}export function openButtonLink(o,e=location.origin){let t=null;try{t=new URL(o,e)}catch{return}if(t.protocol!=="http:"&&t.protocol!=="https:"){location.href=o;return}t.origin===e?location.assign(t.href):window.open(t.href,"_blank","noopener,noreferrer")}export async function copyButtonText(o){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(o),!0}catch{}const e=document.createElement("textarea");e.value=o,e.setAttribute("readonly",""),e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select();let t=!1;try{t=document.execCommand("copy")}catch{t=!1}return e.remove(),t}
@@ -14,14 +14,35 @@ export type FieldAccessField = {
14
14
  id: string;
15
15
  name: string;
16
16
  fieldType: string;
17
- fieldProps: Record<string, unknown>;
17
+ fieldProps: Record<string, unknown>; /** The key its values have in a record. */
18
+ field?: string;
18
19
  };
19
- /** Whether `user` may change the values of `field`. */
20
- export type CanEditField = (field: FieldAccessField, user: FieldUser | null) => boolean;
20
+ /**
21
+ * Whether `user` may change the values of `field`; of this record, when
22
+ * `record` is given (a cell, the record view), else of the field as a whole.
23
+ */
24
+ export type CanEditField = (field: FieldAccessField, user: FieldUser | null, record?: Record<string, unknown> | null) => boolean;
21
25
  /** The people a field's values are limited to, or null when it is not protected. */
22
26
  export declare function fieldEditors(fieldProps: Record<string, unknown> | undefined): string[] | null;
23
- /** The built-in check: a field with `editors` takes edits from those people only. */
27
+ /**
28
+ * The choices a choice field's `editors` hold for (`fieldProps.editorChoices`):
29
+ * only the people named may pick them, or change a record that holds one;
30
+ * the other choices are anyone's. Null when the whole field is held.
31
+ */
32
+ export declare function fieldEditorChoices(fieldType: unknown, fieldProps: Record<string, unknown> | undefined): string[] | null;
33
+ /**
34
+ * The built-in check: a field with `editors` takes edits from the people
35
+ * they name only (`field:<field>` names whoever that person field of the
36
+ * record holds). With `editorChoices`, everyone else may still edit, unless
37
+ * the record holds one of those choices.
38
+ */
24
39
  export declare const defaultCanEditField: CanEditField;
40
+ /**
41
+ * Whether the signed-in person may pick `choice` in the choice field `def`
42
+ * (on `record`): a choice its `editorChoices` hold is for the people its
43
+ * `editors` name. The select editor leaves out the ones they may not pick.
44
+ */
45
+ export declare function canPickChoice(def: Record<string, any>, choice: unknown, record?: Record<string, unknown> | null, props?: Record<string, unknown>): boolean;
25
46
  /** Use the app's own check for every field of every base on the page; null goes back to `editors`. */
26
47
  export declare function setCanEditField(fn: CanEditField | null): void;
27
48
  /** Take `fn` off again, if it is still the check (a base unmounting leaves another's alone). */
@@ -31,7 +52,16 @@ export declare const hasCanEditField: () => boolean;
31
52
  /** Whether the signed-in person may say who edits a field (the field editor's "Who can edit"). */
32
53
  export declare function setFieldProtection(allowed: boolean): void;
33
54
  export declare const canProtectFields: () => boolean;
34
- /** Whether the signed-in person may change the values of the field `def` (its `fieldProps` in `props`). */
35
- export declare function canEditField(def: Record<string, any>, props?: Record<string, unknown>): boolean;
36
- /** "Only Ana Ruiz and Ben Okafor can edit this field." for a protected field; null otherwise. */
37
- export declare function protectionText(def: Record<string, any>, props?: Record<string, unknown>): string | null;
55
+ /**
56
+ * Whether the signed-in person may change the values of the field `def` (its
57
+ * `fieldProps` in `props`): in `record` when given (a rule may name a person
58
+ * field of the record), else in the field as a whole.
59
+ */
60
+ export declare function canEditField(def: Record<string, any>, props?: Record<string, unknown>, record?: Record<string, unknown> | null): boolean;
61
+ /**
62
+ * "Only Ana Ruiz and Ben Okafor can edit this field." for a protected field;
63
+ * "Only whoever is in Approver can choose Approved or Declined." for held
64
+ * choices; null otherwise. `fieldNames` names the record's fields a rule is
65
+ * about (their key to their name).
66
+ */
67
+ export declare function protectionText(def: Record<string, any>, props?: Record<string, unknown>, fieldNames?: Readonly<Record<string, string>>): string | null;
@@ -1 +1 @@
1
- import{findFieldUser,getCurrentUser}from"./sources.svelte.js";let check=$state.raw(null);let protecting=$state(true);export function fieldEditors(fieldProps){const list=fieldProps?.editors;return Array.isArray(list)?list.map(String):null}export const defaultCanEditField=(field,user)=>{const editors=fieldEditors(field.fieldProps);return!editors||!!user&&editors.includes(user.id)};export function setCanEditField(fn){check=fn}export function releaseCanEditField(fn){if(check===fn)check=null}export const hasCanEditField=()=>check!==null;export function setFieldProtection(allowed){protecting=allowed}export const canProtectFields=()=>protecting;export function canEditField(def,props=def.fieldProps??{}){const field={id:String(def.id??def.field??""),name:String(def.header??def.id??def.field??""),fieldType:String(def.fieldType??""),fieldProps:props};try{return(check??defaultCanEditField)(field,getCurrentUser())!==false}catch{return false}}export function protectionText(def,props=def.fieldProps??{}){const editors=fieldEditors(props);if(editors){const names=editors.map(id=>findFieldUser(id)?.name??id);if(!names.length)return"Nobody can edit this field.";const list=names.length===1?names[0]:`${names.slice(0,-1).join(", ")} and ${names.at(-1)}`;return`Only ${list} can edit this field.`}return check&&!canEditField(def,props)?"You cannot edit this field.":null}
1
+ import{findFieldUser,getCurrentUser}from"./sources.svelte.js";import{ruleNames,isFieldToken,tokenField}from"./people-rule.js";import{bm}from"./messages.svelte.js";let check=$state.raw(null);let protecting=$state(true);export function fieldEditors(fieldProps){const list=fieldProps?.editors;return Array.isArray(list)?list.map(String):null}const CHOICE_TYPES=new Set(["singleSelect","multiSelect"]);export function fieldEditorChoices(fieldType,fieldProps){const list=fieldProps?.editorChoices;return CHOICE_TYPES.has(String(fieldType))&&Array.isArray(list)&&list.length?list.map(String):null}const choicesIn=value=>Array.isArray(value)?value.map(String):value==null||value===""?[]:[String(value)];export const defaultCanEditField=(field,user,record)=>{const editors=fieldEditors(field.fieldProps);if(!editors||ruleNames(editors,user?.id,record))return true;const choices=fieldEditorChoices(field.fieldType,field.fieldProps);if(!choices)return false;if(!user)return false;return!record||!choicesIn(record[field.field??field.id]).some(c=>choices.includes(c))};export function canPickChoice(def,choice,record,props=def.fieldProps??{}){const choices=fieldEditorChoices(def.fieldType,props);if(!choices||!choices.includes(String(choice)))return true;return ruleNames(fieldEditors(props)??[],getCurrentUser()?.id,record)}export function setCanEditField(fn){check=fn}export function releaseCanEditField(fn){if(check===fn)check=null}export const hasCanEditField=()=>check!==null;export function setFieldProtection(allowed){protecting=allowed}export const canProtectFields=()=>protecting;export function canEditField(def,props=def.fieldProps??{},record){const field={id:String(def.id??def.field??""),name:String(def.header??def.id??def.field??""),fieldType:String(def.fieldType??""),fieldProps:props,field:String(def.field??def.id??"")};try{return(check??defaultCanEditField)(field,getCurrentUser(),record)!==false}catch{return false}}const listed=names=>names.length===1?names[0]:`${names.slice(0,-1).join(", ")} ${bm("fields.protectedAnd")} ${names[names.length-1]}`;export function protectionText(def,props=def.fieldProps??{},fieldNames){const editors=fieldEditors(props);if(editors){const names=editors.map(e=>isFieldToken(e)?bm("fields.protectedWhoeverIn",{field:fieldNames?.[tokenField(e)]??tokenField(e)}):findFieldUser(e)?.name??e);const choices=fieldEditorChoices(def.fieldType,props);if(choices){const options=Array.isArray(props.options)?props.options:[];const label=c=>String(options.find(o=>String(o.value)===c)?.label??c);const picked=choices.map(label);const or=picked.length===1?picked[0]:`${picked.slice(0,-1).join(", ")} ${bm("fields.protectedOr")} ${picked[picked.length-1]}`;return names.length?bm("fields.protectedChoices",{names:listed(names),choices:or}):bm("fields.protectedChoicesNobody",{choices:or})}if(!names.length)return bm("fields.protectedNobody");return bm("fields.protectedOnly",{names:listed(names)})}return check&&!canEditField(def,props)?bm("fields.protectedNotYou"):null}
@@ -1,7 +1,8 @@
1
1
  export { registerFieldType, getFieldType, listFieldTypes, fieldPropsOf, fillFieldColumn, type FieldTypeDef, type FieldCellProps, } from './registry.svelte.js';
2
2
  export { linkHref, linkText, type LinkKind } from './links.js';
3
3
  export { setFieldUsers, getFieldUsers, setCurrentUser, getCurrentUser, registerLinkedTable, unregisterLinkedTable, getLinkedTable, listLinkedTables, type FieldUser, type LinkedTable, } from './sources.svelte.js';
4
- export { canEditField, defaultCanEditField, fieldEditors, setCanEditField, setFieldProtection, type CanEditField, type FieldAccessField, } from './field-access.svelte.js';
4
+ export { canEditField, canPickChoice, defaultCanEditField, fieldEditorChoices, fieldEditors, setCanEditField, setFieldProtection, type CanEditField, type FieldAccessField, } from './field-access.svelte.js';
5
+ export { FIELD_PREFIX, fieldToken, isFieldToken, personIds, recordOf, ruleFields, ruleNames, ruleUsers, tokenField } from './people-rule.js';
5
6
  export { compileFormula, formulaError, FORMULA_FUNCTIONS, FormulaError } from './formula.js';
6
7
  export { FORMULA_DOCS, syntaxArgs, type FormulaDoc, type FormulaDocGroup } from './formula-docs.js';
7
8
  export { formatNumber, formatCurrency, formatPercent, formatDuration, parseDuration, formatDate } from './format.js';
@@ -37,10 +38,11 @@ export { setRecordActions, type RecordAction, type RecordActionContext, type Rec
37
38
  export { setAutomationDrafter, type AutomationDrafter, type AutomationDraft } from './automation-drafter.js';
38
39
  export { setRecordSeries, refreshRecordSeries, type RecordSeries, type SeriesOccurrence, type SeriesScope } from './record-series.svelte.js';
39
40
  export { cronWords } from './cron-words.js';
40
- export { setRecordComments, type RecordComment, type RecordCommentContext, type RecordCommentStore } from './activity.svelte.js';
41
+ export { setRecordComments, type RecordComment, type RecordCommentContext, type RecordCommentStore, type CommentVotes, type CommentVote } from './activity.svelte.js';
41
42
  export { setCommentSnippets, type CommentSnippet, type CommentSnippets } from './comment-snippets.svelte.js';
42
43
  export { setFormSuggestions, type FormSuggestion, type FormSuggestions } from './form-suggestions.svelte.js';
43
44
  export { setBaseMessages, baseMessages, BASE_MESSAGES, type BaseMessages, type BaseMessageKey } from './messages.svelte.js';
45
+ export { setDateLocale, dateLocale } from '../date-locale.js';
44
46
  export { setRecordHistory, historyOf, loadHistory, type RecordChange, type RecordHistoryStore, type RecordHistoryContext } from './activity.svelte.js';
45
47
  export { setMentionHandler, type MentionEvent, type MentionHandler } from './activity.svelte.js';
46
48
  export { mentionToken, mentionIds, mentionText, parseMentions, encodeMentions, type MentionPart } from './mentions.js';
@@ -81,7 +83,7 @@ export { aiPromptError, readAIAnswer, type AIFieldProps, type AIFieldOutput } fr
81
83
  export { moveTile, newTile, putTile, removeTile, tileResult, tileRows, tileTitle, type DashboardTile, type DashboardTileKind, type DashboardTileSize, type NumberAggregation, type TileResult, } from './dashboard.js';
82
84
  export { sharedTables, sharedViews, shareOf, type BaseShare } from './base-share.js';
83
85
  export { recordsAsShown, downloadAsShown, filesFolders, safeFolder, type BaseExportFormat, type BaseFilesExport, type BaseFilesRecord } from './base-export.js';
84
- export { permittedTables, permittedRecords, permittedViews, tablePermissions, gridPermissions, type BasePermissions, type TablePermissions } from './base-permissions.js';
86
+ export { permittedTables, permittedRecords, permittedViews, tablePermissions, gridPermissions, canDeleteRecord, type BasePermissions, type TablePermissions } from './base-permissions.js';
85
87
  export { computeRecords, computeRecord, computedValues, computedFields, evaluateFilter, filterRecords, type ComputeTable, type ComputeOptions, type FilterContext } from './base-compute.js';
86
88
  export { queryRecords, fieldFilterToSql, fieldFilterToPostgrest, supabaseFieldFilter, viewFilterOf, type QueryOptions, type FieldFilterSqlOptions, type FieldFilterPostgrestOptions } from './base-query.js';
87
89
  export { searchBase, type BaseSearchGroup, type BaseSearchHit, type BaseSearchOptions } from './base-search.js';
@@ -1 +1 @@
1
- import{registerCellEditor as f,registerGridExtension as I,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 U,openFieldEditor as C,openRecord as _}from"./editor-request.svelte.js";import{enableAdvancedFilter as N,registerFilterKind as G}from"../advanced-filter-enable.js";import{compileFieldFilter as z,newCondition as F,resolveMeWith as $}from"./filter-model.js";import{hasBar as q,openBarPanel as w}from"./bar-request.svelte.js";import{groupRules as W,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 A,fillFieldColumn as ge,getFieldType as x,isServerGroupRow as Ce,originalColumn as b,registerFieldType as be,typeDrawsCell as ye}from"./registry.svelte.js";import he from"./RatingEditor.svelte";import Fe from"./LinkPickerEditor.svelte";import we from"./DateEditor.svelte";import Te from"./SelectEditor.svelte";import ve from"./NumberEditor.svelte";import Me from"./LongTextEditor.svelte";import Ae from"./RichTextEditor.svelte";import xe from"./VoteEditor.svelte";import Ee from"./TimerEditor.svelte";import Se from"./ChecklistEditor.svelte";import ke from"./ColorEditor.svelte";import Re from"./TimeOfDayEditor.svelte";import De from"./RowHeader.svelte";import Oe from"./GroupHeader.svelte";import Ie from"./SummaryCell.svelte";import{getCurrentUser as E}from"./sources.svelte.js";import{fieldColumns as Be,gridOf as y,primaryIdOf as h,rememberGrid as Pe}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,defaultCanEditField,fieldEditors,setCanEditField,setFieldProtection}from"./field-access.svelte.js";import{protectionText as Le}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}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{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 Ve(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&&q(o)?[...F(r,e)?[{key:"field-filter",label:p("fields.menuFilter"),icon:m.filter,separatorBefore:!0,run:()=>He(o,r,e)}]:[],...o.groupingControlsEnabled?[]:[{key:"field-group",label:p("fields.menuGroup"),icon:m.group,run:()=>Ke(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:!k(o,r,-1),run:()=>R(o,r,-1)},{key:"field-move-right",label:p("fields.menuMoveRight"),icon:m.right,disabled:!k(o,r,1),run:()=>R(o,r,1)}],...l,...Ye(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?U({ctrl:o,columnId:r}):te(o,r)}]]}function S(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 k=(o,r,e)=>!!S(o,r,e);function R(o,r,e){const i=S(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(Xe(s.length?[...s,...a.filter(n=>!s.includes(n))]:a,t))}function He(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]}),w(o,"filter")}function Ke(o,r){const e=W(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=A(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(),_({ctrl:e,rowId:t.id}),!0)}function Ne(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 Ge}from"./base-keys.svelte.js";import{treeGridKey as ze}from"./tree-edit.js";import{fillDownKey as $e}from"./base-fill.js";import{autoSumKey as qe,formatKey as We}from"./excel-habits.svelte.js";import{orderKeepingScreen as Xe}from"./column-order.js";let O=!1;export function enableFields(){if(O)return;O=!0;for(const e of ae)x(e.id)||be(e);I({column:(e,i)=>ge(e,i),cell:P,hasCell:e=>ye(e??{}),cellEdited:(e,i)=>{D(e,i.row,i.columnId,i.rowId,i.offGrid),Ue(e,i.row,i.columnId,i.rowId),je(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?x(e.fieldType)?.icon:null,headerNote:e=>{if(!e?.fieldType)return null;const i=typeof e.description=="string"?e.description:"",t=Le(b(e),A(b(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?De:null,groupRow:e=>!e?.props?.rowModel&&Be(e).some(i=>i.fieldType)?Oe:null,summaryCell:e=>e?.props?.rowModel?null:Ie,rootClass:e=>{Pe(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,Ve(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:Fe,props:o,typeToEdit:e=>e!==" "}),f("fieldNumber",{component:ve,props:e=>({...o(e),onCommitAndMove:e.onCommitAndMove,onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>/[0-9.,:+\-(=]/.test(e)}),f("fieldLongText",{component:Me,props:e=>({...o(e),onCommitAndMove:e.onCommitAndMove})}),f("fieldSelect",{component:Te,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:xe,props:r,typeToEdit:e=>e===" "}),f("fieldTimer",{component:Ee,props:e=>({...r(e),rowId:e.rowId,onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>e===" "||/[0-9:]/.test(e)}),f("fieldColor",{component:ke,props:r}),f("fieldTime",{component:Re,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)),$(()=>E()?.id),oe(),N(),g(_e,{id:"svgrid-fields-space"}),g(Ge,{id:"svgrid-fields-keys"}),g(Ne,{id:"svgrid-base-keys"}),g($e,{id:"svgrid-base-fill-down"}),g(qe,{id:"svgrid-base-autosum",priority:200}),g(We,{id:"svgrid-base-format-keys",priority:200}),g(ze,{id:"svgrid-base-tree"}),B("base","SvGrid Base")}export{inboxRecords,listColumns,listGroups,viewRecords}from"./list-view.js";import{aiFieldEdited as je,aiFieldMenuItems as Ye}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}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";
1
+ import{registerCellEditor as f,registerGridExtension as O,registerGridShortcuts as g}from"@svgrid/grid";import{nudgeEnterpriseFor as P}from"../license.js";import B from"./FieldCell.svelte";import L from"./RowAdder.svelte";import V from"./FootRowAdder.svelte";import H from"./AttachmentEditor.svelte";import N from"./FieldsHeaderEnd.svelte";import{askDeleteField as U,openFieldEditor as C,openRecord as _}from"./editor-request.svelte.js";import{enableAdvancedFilter as K,registerFilterKind as G}from"../advanced-filter-enable.js";import{compileFieldFilter as z,newCondition as h,resolveMeWith as $}from"./filter-model.js";import{hasBar as q,openBarPanel as w}from"./bar-request.svelte.js";import{groupRules as X,userSorts as W,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 Pe from"./SummaryCell.svelte";import{getCurrentUser as E}from"./sources.svelte.js";import{fieldColumns as Be,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}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&&q(o)?[...h(r,e)?[{key:"field-filter",label:p("fields.menuFilter"),icon:m.filter,separatorBefore:!0,run:()=>Ne(o,r,e)}]:[],...o.groupingControlsEnabled?[]:[{key:"field-group",label:p("fields.menuGroup"),icon:m.group,run:()=>Ue(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?U({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 Ne(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 Ue(o,r){const e=X(o);e.some(i=>i.id===r)||j(o.buildApi(),[...e,{id:r,desc:!1}],W(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 _e(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 Ke(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(),_({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 $e}from"./tree-edit.js";import{fillDownKey as qe}from"./base-fill.js";import{autoSumKey as Xe,formatKey as We}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:B,hasCell:e=>Fe(e??{}),cellEdited:(e,i)=>{D(e,i.row,i.columnId,i.rowId,i.offGrid),_e(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&&Be(e).some(i=>i.fieldType)?Oe:null,summaryCell:e=>e?.props?.rowModel?null:Pe,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:N,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)),$(()=>E()?.id),oe(),K(),g(Ke,{id:"svgrid-fields-space"}),g(ze,{id:"svgrid-fields-keys"}),g(Ge,{id:"svgrid-base-keys"}),g(qe,{id:"svgrid-base-fill-down"}),g(Xe,{id:"svgrid-base-autosum",priority:200}),g(We,{id:"svgrid-base-format-keys",priority:200}),g($e,{id:"svgrid-base-tree"}),P("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";
@@ -37,6 +37,14 @@ export declare const FIELDS_MESSAGES: {
37
37
  readonly 'fields.nobodyCanChange': "Nobody will be able to change its values.";
38
38
  readonly 'fields.youCannotChange': "You will not be able to change its values yourself.";
39
39
  readonly 'fields.othersReadOnly': "Others see the field read-only. Its name, type and options stay editable.";
40
+ readonly 'fields.whoeverInLabel': "And whoever the record names in";
41
+ readonly 'fields.whoeverIn': "Whoever is in {field}";
42
+ readonly 'fields.onlySomeChoices': "Only for some choices";
43
+ readonly 'fields.heldChoices': "Choices only they can pick";
44
+ readonly 'fields.pickHeldChoices': "Tick the choices only they can pick.";
45
+ readonly 'fields.nobodyCanPick': "Nobody will be able to pick these choices.";
46
+ readonly 'fields.youCannotPick': "You will not be able to pick these choices yourself.";
47
+ readonly 'fields.othersPickRest': "Everyone else picks the other choices, and cannot change a record that has one of these.";
40
48
  readonly 'fields.description': "Description";
41
49
  readonly 'fields.optional': "optional";
42
50
  readonly 'fields.descriptionPlaceholder': "What goes in this field";
@@ -155,7 +163,7 @@ export declare const FIELDS_MESSAGES: {
155
163
  readonly 'fields.typeBarcode': "Barcode";
156
164
  readonly 'fields.typeBarcodeDescription': "A barcode's text, from a scanner or typed.";
157
165
  readonly 'fields.typeButton': "Button";
158
- readonly 'fields.typeButtonDescription': "A button in every row that opens a link made from the row.";
166
+ readonly 'fields.typeButtonDescription': "A button in every row: open a link, change the record, print it, copy text or run an automation.";
159
167
  readonly 'fields.typeChecklist': "Checklist";
160
168
  readonly 'fields.typeChecklistDescription': "A list of to-dos; the cell shows how many are done.";
161
169
  readonly 'fields.typeColor': "Color";
@@ -233,7 +241,59 @@ export declare const FIELDS_MESSAGES: {
233
241
  readonly 'fields.propButtonStyle': "Style";
234
242
  readonly 'fields.propButtonUrl': "URL";
235
243
  readonly 'fields.propButtonUrlPlaceholder': "https://example.com/orders/{Order id}";
236
- readonly 'fields.propButtonUrlHint': "Use {Field name} for that field's value in the row. An app can set fieldProps.onClick instead.";
244
+ readonly 'fields.propButtonUrlHint': "Use {Field name} for a value of the record, or write a formula: \"mailto:\" & {Email}, or {Website} for the link a field holds. mailto:, tel: and sms: links open the e-mail, phone or messages app.";
245
+ readonly 'fields.propButtonAction': "When pressed";
246
+ readonly 'fields.buttonActionLink': "Open a link";
247
+ readonly 'fields.buttonActionAutomation': "Run automations";
248
+ readonly 'fields.buttonActionUpdate': "Change this record";
249
+ readonly 'fields.buttonActionTemplate': "Fill in from a record template";
250
+ readonly 'fields.buttonActionRecordAction': "Print or another record action";
251
+ readonly 'fields.buttonActionCopy': "Copy text";
252
+ readonly 'fields.buttonActionDuplicate': "Duplicate the record";
253
+ readonly 'fields.buttonActionDelete': "Delete the record";
254
+ readonly 'fields.buttonActionOpen': "Open the record";
255
+ readonly 'fields.propButtonValues': "Set these fields";
256
+ readonly 'fields.propButtonValuesHint': "Write a value as you would type it. A date can be today or today+7, a person can be me (whoever presses).";
257
+ readonly 'fields.buttonValuesInBase': "Pick the fields once the button is in a table of a base.";
258
+ readonly 'fields.propButtonTemplate': "Record template";
259
+ readonly 'fields.propButtonTemplateHint': "Fills only the fields that are empty. Make one from the arrow beside + Add row, then Manage templates.";
260
+ readonly 'fields.propButtonRecordAction': "Action";
261
+ readonly 'fields.propButtonCopy': "Text to copy";
262
+ readonly 'fields.propButtonCopyPlaceholder': "Order {Order id} for {Customer}";
263
+ readonly 'fields.propButtonCopyHint': "Use {Field name} for a value of the record. Start with = to write a formula.";
264
+ readonly 'fields.propButtonDoneLabel': "Label once done";
265
+ readonly 'fields.propButtonDoneLabelPlaceholder': "Done";
266
+ readonly 'fields.propButtonDoneLabelHint': "When the record already has these values, the button shows a check and this label, and cannot be pressed again.";
267
+ readonly 'fields.propButtonWhen': "Can be pressed when";
268
+ readonly 'fields.propButtonWhenHint': "On other records the button is greyed out.";
269
+ readonly 'fields.buttonWhenAlways': "On every record";
270
+ readonly 'fields.propButtonAsk': "Ask before it runs";
271
+ readonly 'fields.propButtonAskText': "Question";
272
+ readonly 'fields.buttonAskDefault': "Are you sure?";
273
+ readonly 'fields.buttonNotNow': "This record does not meet the button's condition.";
274
+ readonly 'fields.buttonReadOnly': "You can view this base but not change it.";
275
+ readonly 'fields.buttonNoAutomation': "No automation starts when this button is pressed yet. Add one on the Automations page.";
276
+ readonly 'fields.buttonNoLink': "This record has no link to open.";
277
+ readonly 'fields.buttonNoText': "This record has no text to copy.";
278
+ readonly 'fields.buttonNoValues': "Pick the fields this button sets.";
279
+ readonly 'fields.buttonNoTemplate': "Pick the record template this button uses.";
280
+ readonly 'fields.buttonNoRecordAction': "This action is not available here.";
281
+ readonly 'fields.buttonSomeRefused': "Some fields were not changed: you may not edit them.";
282
+ readonly 'fields.buttonCopied': "Copied.";
283
+ readonly 'fields.buttonCopyFailed': "Could not copy. Try again.";
284
+ readonly 'fields.protectedOnly': "Only {names} can edit this field.";
285
+ readonly 'fields.propButtonWho': "Who can press it";
286
+ readonly 'fields.buttonWhoEveryone': "Everyone who can use the base";
287
+ readonly 'fields.propButtonWhoHint': "Tick a person field to let whoever it names on each record press the button, such as the approver of each request.";
288
+ readonly 'fields.whoNobody': "Nobody will be able to press it.";
289
+ readonly 'fields.buttonOnlyWho': "Only {names} can press this.";
290
+ readonly 'fields.protectedNobody': "Nobody can edit this field.";
291
+ readonly 'fields.protectedNotYou': "You cannot edit this field.";
292
+ readonly 'fields.protectedChoices': "Only {names} can choose {choices}.";
293
+ readonly 'fields.protectedChoicesNobody': "Nobody can choose {choices}.";
294
+ readonly 'fields.protectedWhoeverIn': "whoever is in {field}";
295
+ readonly 'fields.protectedAnd': "and";
296
+ readonly 'fields.protectedOr': "or";
237
297
  readonly 'fields.propFormat': "Format";
238
298
  readonly 'fields.propCurrencySymbol': "Currency symbol";
239
299
  readonly 'fields.propSymbolPosition': "Symbol position";
@@ -1 +1 @@
1
- export const FIELDS_MESSAGES={"fields.editorTitleEdit":"Edit field","fields.editorTitleAdd":"Add field","fields.name":"Name","fields.namePlaceholder":"Field name","fields.fallbackName":"Field","fields.nameRequired":"A field needs a name","fields.needLinkField":"Pick the link field this reads.","fields.needLinkFieldFirst":"This table has no link field yet: add one first.","fields.needLinkedField":"Pick the field to read from the linked table.","fields.needPrompt":"Write what the field should work out.","fields.nameTaken":"Another field has this name","fields.fixFormulaFirst":"Fix the formula first: {message}","fields.fixPromptFirst":"Fix the prompt first: {message}","fields.fieldType":"Field type","fields.keyFixed":"This field is the record key the database gives each record. Its type and values cannot change; its name and description can.","fields.findType":"Find a type","fields.findTypeLabel":"Find a field type","fields.noTypeMatches":'No type matches "{search}".',"fields.groupBasic":"Fields","fields.groupNumber":"Numbers and time","fields.groupDate":"Dates","fields.groupPeople":"People","fields.groupComputed":"Computed and automatic","fields.groupRelation":"Other tables","fields.whoCanEdit":"Who can edit its values","fields.whoEveryone":"Everyone who can edit the base","fields.whoOnly":"Only these people","fields.peopleWhoCanEdit":"People who can edit","fields.nameYou":"{name} (you)","fields.nobodyCanChange":"Nobody will be able to change its values.","fields.youCannotChange":"You will not be able to change its values yourself.","fields.othersReadOnly":"Others see the field read-only. Its name, type and options stay editable.","fields.description":"Description","fields.optional":"optional","fields.descriptionPlaceholder":"What goes in this field","fields.convertsValues":"{from} to {to} converts the values.","fields.everyValueConverts":"Every value converts.","fields.cellsCleared.one":"{count} cell will be cleared or cut short.","fields.cellsCleared.other":"{count} cells will be cleared or cut short.","fields.optionRemoved.one":"{count} record holds {name}. Saving clears it from that record.","fields.optionRemoved.other":"{count} records hold {name}. Saving clears it from those records.","fields.optionRenamed.one":"Renames {name} on {count} record.","fields.optionRenamed.other":"Renames {name} on {count} records.","fields.optionsSameName":"Two options cannot have the same name: {name}.","fields.optionNeedsName":"An option in use needs a name: {name}. Name it, or remove it.","fields.cancel":"Cancel","fields.templatesOf":"Record templates of {table}","fields.templatesHint":"A template fills in some fields of a new record. Pick it from the arrow beside + Add row.","fields.templateNew":"New template","fields.templateAdd":"+ New template","fields.templateName":"Template name","fields.templateHint":"The fields a new record starts with, written as the field shows them: an option's name, a person's name, today or today+7 for a date, a linked record's name.","fields.templateDone":"Done","fields.templateFields.one":"{count} field set","fields.templateFields.other":"{count} fields set","fields.templateDelete":"Delete the template {name}","fields.templateDeleteAsk":'Delete "{name}"?',"fields.templateDeleteYes":"Delete","fields.fromTemplate":"Add from a template","fields.manageTemplates":"Manage templates","fields.save":"Save","fields.createField":"Create field","fields.choose":"Choose...","fields.checked":"Checked","fields.defaultNone":"None","fields.addOptionsFirst":"Add options first.","fields.nobody":"Nobody","fields.empty":"Empty","fields.formulaPlaceholder":'IF({Budget} > 2000, "Large", "Small")',"fields.insertField":"Insert a field","fields.functions":"Functions","fields.hideFunctions":"Hide functions","fields.formulaAskPlaceholder":'Describe it, such as "total with 20% VAT"',"fields.formulaAskLabel":"Describe the formula in your own words","fields.formulaAskButton":"Write it","fields.formulaAskWorking":"Writing…","fields.formulaAiFailed":"The AI could not write a formula that works. Try describing it another way.","fields.formulaSuggestions":"Suggestions","fields.formulaFieldHint":"Field","fields.formulaPreview":"Result:","fields.formulaUnnamed":"Unnamed record","fields.formulaEmpty":"(empty)","fields.formulaTrue":"true","fields.formulaFalse":"false","fields.formulaTips":"Tips","fields.formulaHideTips":"Hide tips","fields.formulaTip1":"Start with a field: click its name below, or type { and pick it from the list.","fields.formulaTip2":"Do math as in a spreadsheet, with field names instead of cells:","fields.formulaTip3":"Put text in quotes, and join pieces with &:","fields.formulaTip4":"Choose between two answers with IF:","fields.formulaTip5":"No = at the start, and commas between the parts of a function. The result for your first records shows as you type.","fields.formulaTip6":"Not sure how? Describe what you want in the box at the top, and AI writes the formula for you.","fields.formulaFindFunction":"Find a function","fields.formulaNoFunction":"No function matches","fields.formulaGroup.logic":"Logic","fields.formulaGroup.text":"Text","fields.formulaGroup.numbers":"Numbers","fields.formulaGroup.dates":"Dates","fields.formulaGroup.lists":"Lists","fields.formulaGroup.records":"Records","fields.optionsList":"Options","fields.colorOf":"Color of {name}","fields.colorOfOption":"Color of option {n}","fields.optionName":"Option name","fields.optionN":"Option {n}","fields.moveUp":"Move up","fields.moveDown":"Move down","fields.removeNamed":"Remove {name}","fields.removeOption":"Remove option","fields.addOption":"+ Add option","fields.sortAZ":"Sort A to Z","fields.menuColorRows":"Color rows by this field","fields.menuStopColoring":"Stop coloring rows","fields.menuFilter":"Filter by this field","fields.menuGroup":"Group by this field","fields.menuEdit":"Edit field","fields.menuInsertLeft":"Insert left","fields.menuInsertRight":"Insert right","fields.menuMoveLeft":"Move left","fields.menuMoveRight":"Move right","fields.menuDuplicate":"Duplicate field","fields.menuHide":"Hide field","fields.menuDelete":"Delete field","fields.typeText":"Single line text","fields.typeTextDescription":"A short line of text, like a name or a title.","fields.typeLongText":"Long text","fields.typeLongTextDescription":"Several lines of text; Alt+Enter starts a new line.","fields.typeRichText":"Rich text","fields.typeRichTextDescription":"Formatted notes: bold, italic, lists and links from a toolbar.","fields.typeAttachment":"Attachment","fields.typeAttachmentDescription":"Images and files: thumbnails in the cell, a dialog to add more.","fields.typeCheckbox":"Checkbox","fields.typeCheckboxDescription":"Done or not done: one click to toggle.","fields.typeSingleSelect":"Single select","fields.typeSingleSelectDescription":"One choice from a list of colored options.","fields.typeMultiSelect":"Multiple select","fields.typeMultiSelectDescription":"Any number of choices from a list of colored options.","fields.typeUser":"User","fields.typeUserDescription":"A person (or several) from the people the app lists.","fields.typeDate":"Date","fields.typeDateDescription":"A calendar date, with or without the time.","fields.typePhone":"Phone number","fields.typePhoneDescription":"A phone number, shown as a tel link.","fields.typeEmail":"Email","fields.typeEmailDescription":"An email address, shown as a mailto link.","fields.typeUrl":"URL","fields.typeUrlDescription":"A web address, shown as a link.","fields.typeBarcode":"Barcode","fields.typeBarcodeDescription":"A barcode's text, from a scanner or typed.","fields.typeButton":"Button","fields.typeButtonDescription":"A button in every row that opens a link made from the row.","fields.typeChecklist":"Checklist","fields.typeChecklistDescription":"A list of to-dos; the cell shows how many are done.","fields.typeColor":"Color","fields.typeColorDescription":"A color from the palette, or any hex code.","fields.typeNumber":"Number","fields.typeNumberDescription":"A number: whole, decimal, an amount of money or a percentage.","fields.typeCurrency":"Currency","fields.typeCurrencyDescription":"An amount, with a currency symbol.","fields.typePercent":"Percent","fields.typePercentDescription":"A share, shown with a percent sign.","fields.typeDuration":"Duration","fields.typeDurationDescription":"A length of time, typed as 1:30 or 1h 30m.","fields.typeTimeOfDay":"Time of day","fields.typeTimeOfDayDescription":"A time on the clock with no date, typed as 9:30 am, 14:05 or 2pm.","fields.typeRating":"Rating","fields.typeRatingDescription":"One to ten stars, hearts, thumbs, flags or dots.","fields.typeTimer":"Timer","fields.typeTimerDescription":"Time counted with a start and stop button; each run adds to the total.","fields.typeVote":"Vote","fields.typeVoteDescription":"Who voted for it: one click adds your vote or takes it back.","fields.typeSparkline":"Sparkline","fields.typeSparklineDescription":"A list of numbers drawn as a small line, area or column chart.","fields.typeFormula":"Formula","fields.typeFormulaDescription":"A value computed from the row's other fields.","fields.typeCreatedTime":"Created time","fields.typeCreatedTimeDescription":"When the row was added. Set automatically.","fields.typeLastModifiedTime":"Last modified time","fields.typeLastModifiedTimeDescription":"When the row last changed. Set automatically.","fields.typeCreatedBy":"Created by","fields.typeCreatedByDescription":"Who added the row. Set automatically.","fields.typeLastModifiedBy":"Last modified by","fields.typeLastModifiedByDescription":"Who last changed the row. Set automatically.","fields.typeAutoNumber":"Autonumber","fields.typeAutoNumberDescription":"A number every row gets, counting up. Set automatically.","fields.typeLink":"Link to records","fields.typeLinkDescription":"Rows of another table this row points at.","fields.typeLookup":"Lookup","fields.typeLookupDescription":"A field of the linked rows, shown here.","fields.typeRollup":"Rollup","fields.typeRollupDescription":"A summary of a field over the linked rows (a sum, a count, a list).","fields.typeCount":"Count","fields.typeCountDescription":"How many rows a link field points at.","fields.typeAi":"AI","fields.typeAiDescription":"A model writes the value from a prompt that names the record's fields. Stored, and editable by hand.","fields.propSeparators":"Separators","fields.propShowThousands":"Show thousands separator","fields.propAbbreviation":"Large number abbreviation","fields.propAllowNegative":"Allow negative numbers","fields.propDefault":"Default value","fields.propDefaultHint":"New rows start with this value.","fields.propDateFormat":"Date format","fields.propIncludeTime":"Include time","fields.propTimeFormat":"Time format","fields.propGmt":"Use the same time zone (GMT) for everyone","fields.propShowTimeZone":"Display time zone","fields.propLinkField":"Link field","fields.propLinkFieldHint":"A link-to-records field of this table.","fields.propLinkedField":"Field in the linked table","fields.propWatch":"Changes to","fields.propWatchFields":"Fields","fields.propMarkdown":"Format with Markdown","fields.propMarkdownHint":"**bold**, *italic*, `code`, [links](https://...) and lists. For a toolbar, use Rich text.","fields.propToolbar":"Toolbar","fields.propToolbarHint":"Full adds headings, quotes, code blocks, undo and redo.","fields.propAccept":"Accepted types","fields.propAcceptPlaceholder":"image/*,.pdf (any when empty)","fields.propMaxFiles":"Most files per cell","fields.propIcon":"Icon","fields.propColor":"Color","fields.propOptions":"Options","fields.propMultipleUsers":"Allow adding multiple users","fields.propDefaultToday":"Default to today","fields.propButtonLabel":"Label","fields.propButtonLabelPlaceholder":"Open","fields.propButtonStyle":"Style","fields.propButtonUrl":"URL","fields.propButtonUrlPlaceholder":"https://example.com/orders/{Order id}","fields.propButtonUrlHint":"Use {Field name} for that field's value in the row. An app can set fieldProps.onClick instead.","fields.propFormat":"Format","fields.propCurrencySymbol":"Currency symbol","fields.propSymbolPosition":"Symbol position","fields.propPrecision":"Precision","fields.propStep":"Spinner step","fields.propStepHint":"What the editor's arrows and Up / Down add or take away; Shift for ten times as much.","fields.propShowBar":"Show as a progress bar","fields.propPoints":"Values are 0 to 100 (not 0 to 1)","fields.propDurationFormat":"Duration format","fields.propShowSeconds":"Show seconds","fields.propMaximum":"Maximum","fields.propChart":"Chart","fields.propShowLast":"Show the last value","fields.propFormula":"Formula","fields.propResult":"Format the result as","fields.propTable":"Table","fields.propTableHint":"The table gets a field that links back to this one.","fields.propMultipleRecords":"Allow linking to multiple records","fields.propPickFrom":"Pick records from","fields.pickFromAll":"All records","fields.propPickFromHint":"People pick only the records this view of the linked table shows (its filter).","fields.propAggregation":"Aggregation","fields.propPrompt":"Prompt","fields.propPromptPlaceholder":"Write a one-line pitch for {Name}, aimed at {Audience}","fields.propPromptHint":"Use {Field name} for that field's value in the record.","fields.propOutput":"The model writes","fields.propAuto":"Generate again when a field the prompt names changes","fields.propAutoHint":"Off: only when someone presses the button or uses the column menu.","fields.choiceLocal":"Local","fields.choiceNone":"None","fields.choiceThousand":"Thousand (K)","fields.choiceMillion":"Million (M)","fields.choiceBillion":"Billion (B)","fields.choiceFriendly":"Friendly (October 14, 2026)","fields.choiceUs":"US (10/14/2026)","fields.choiceEuropean":"European (14/10/2026)","fields.choiceIso":"ISO (2026-10-14)","fields.choice12Hour":"12 hour","fields.choice24Hour":"24 hour","fields.choiceAllFields":"All fields","fields.choiceSpecificFields":"Specific fields","fields.choiceStandard":"Standard","fields.choiceFull":"Full","fields.choiceInteger":"Integer","fields.choiceDecimal":"Decimal","fields.choiceCurrency":"Currency","fields.choicePercent":"Percent","fields.choiceBefore":"Before ($1.00)","fields.choiceAfter":"After (1.00 kr)","fields.choiceArrow":"Arrow","fields.choiceThumb":"Thumb","fields.choiceHeart":"Heart","fields.choiceLine":"Line","fields.choiceArea":"Area","fields.choiceColumns":"Columns","fields.choiceAsComputed":"As computed","fields.choiceNumber":"Number","fields.choiceDate":"Date","fields.choiceText":"Text","fields.choiceOneOption":"One option","fields.choiceANumber":"A number","fields.notJson":"{field} holds JSON, and this text is not valid JSON. Check its brackets and quotes.","fields.negativeNotAllowed":"Negative numbers are not allowed","fields.aiStop":"Stop generating ({count} left)","fields.aiGenerateEmpty.one":"Generate for {count} empty record","fields.aiGenerateEmpty.other":"Generate for {count} empty records","fields.aiAllTitle.one":"Generate for {count} record?","fields.aiAllTitle.other":"Generate for all {count} records?","fields.aiAllBody.one":"This replaces the value 1 record holds, and sends the AI provider a request for each of {records}. One Undo takes the replaced values back.","fields.aiAllBody.other":"This replaces the values {count} records hold, and sends the AI provider a request for each of {records}. One Undo takes the replaced values back.","fields.aiAllRecords.one":"{count} record","fields.aiAllRecords.other":"{count} records","fields.aiAllYes":"Generate","fields.aiGenerateAll.one":"Generate for all {count} record","fields.aiGenerateAll.other":"Generate for all {count} records","fields.aiNoProvider":"No AI provider. The app sets one with setAIProvider() from @svgrid/grid.","fields.aiNotEditable":"You cannot edit this field, so nothing was written.","fields.aiNotShown":"The record is not in the grid (filtered out or deleted).","fields.aiNotAiField":"The field is no longer an AI field.","fields.aiNoPrompt":"The field has no prompt yet: write one in Edit field.","fields.aiRequestFailed":"The request failed","fields.aiNotNumber":'The model answered "{answer}", which is not a number',"fields.aiNotOption":'The model answered "{answer}", which is not one of the options',"fields.promptNotClosed":"The { at {at} is not closed","fields.promptEmptyRef":"Empty {} at {at}: put a field name in it","fields.promptInvalid":"The prompt is not valid","fields.promptOwnField":"A prompt cannot read its own field {{name}}","fields.promptNoField":"No field is named {{name}}"};
1
+ export const FIELDS_MESSAGES={"fields.editorTitleEdit":"Edit field","fields.editorTitleAdd":"Add field","fields.name":"Name","fields.namePlaceholder":"Field name","fields.fallbackName":"Field","fields.nameRequired":"A field needs a name","fields.needLinkField":"Pick the link field this reads.","fields.needLinkFieldFirst":"This table has no link field yet: add one first.","fields.needLinkedField":"Pick the field to read from the linked table.","fields.needPrompt":"Write what the field should work out.","fields.nameTaken":"Another field has this name","fields.fixFormulaFirst":"Fix the formula first: {message}","fields.fixPromptFirst":"Fix the prompt first: {message}","fields.fieldType":"Field type","fields.keyFixed":"This field is the record key the database gives each record. Its type and values cannot change; its name and description can.","fields.findType":"Find a type","fields.findTypeLabel":"Find a field type","fields.noTypeMatches":'No type matches "{search}".',"fields.groupBasic":"Fields","fields.groupNumber":"Numbers and time","fields.groupDate":"Dates","fields.groupPeople":"People","fields.groupComputed":"Computed and automatic","fields.groupRelation":"Other tables","fields.whoCanEdit":"Who can edit its values","fields.whoEveryone":"Everyone who can edit the base","fields.whoOnly":"Only these people","fields.peopleWhoCanEdit":"People who can edit","fields.nameYou":"{name} (you)","fields.nobodyCanChange":"Nobody will be able to change its values.","fields.youCannotChange":"You will not be able to change its values yourself.","fields.othersReadOnly":"Others see the field read-only. Its name, type and options stay editable.","fields.whoeverInLabel":"And whoever the record names in","fields.whoeverIn":"Whoever is in {field}","fields.onlySomeChoices":"Only for some choices","fields.heldChoices":"Choices only they can pick","fields.pickHeldChoices":"Tick the choices only they can pick.","fields.nobodyCanPick":"Nobody will be able to pick these choices.","fields.youCannotPick":"You will not be able to pick these choices yourself.","fields.othersPickRest":"Everyone else picks the other choices, and cannot change a record that has one of these.","fields.description":"Description","fields.optional":"optional","fields.descriptionPlaceholder":"What goes in this field","fields.convertsValues":"{from} to {to} converts the values.","fields.everyValueConverts":"Every value converts.","fields.cellsCleared.one":"{count} cell will be cleared or cut short.","fields.cellsCleared.other":"{count} cells will be cleared or cut short.","fields.optionRemoved.one":"{count} record holds {name}. Saving clears it from that record.","fields.optionRemoved.other":"{count} records hold {name}. Saving clears it from those records.","fields.optionRenamed.one":"Renames {name} on {count} record.","fields.optionRenamed.other":"Renames {name} on {count} records.","fields.optionsSameName":"Two options cannot have the same name: {name}.","fields.optionNeedsName":"An option in use needs a name: {name}. Name it, or remove it.","fields.cancel":"Cancel","fields.templatesOf":"Record templates of {table}","fields.templatesHint":"A template fills in some fields of a new record. Pick it from the arrow beside + Add row.","fields.templateNew":"New template","fields.templateAdd":"+ New template","fields.templateName":"Template name","fields.templateHint":"The fields a new record starts with, written as the field shows them: an option's name, a person's name, today or today+7 for a date, a linked record's name.","fields.templateDone":"Done","fields.templateFields.one":"{count} field set","fields.templateFields.other":"{count} fields set","fields.templateDelete":"Delete the template {name}","fields.templateDeleteAsk":'Delete "{name}"?',"fields.templateDeleteYes":"Delete","fields.fromTemplate":"Add from a template","fields.manageTemplates":"Manage templates","fields.save":"Save","fields.createField":"Create field","fields.choose":"Choose...","fields.checked":"Checked","fields.defaultNone":"None","fields.addOptionsFirst":"Add options first.","fields.nobody":"Nobody","fields.empty":"Empty","fields.formulaPlaceholder":'IF({Budget} > 2000, "Large", "Small")',"fields.insertField":"Insert a field","fields.functions":"Functions","fields.hideFunctions":"Hide functions","fields.formulaAskPlaceholder":'Describe it, such as "total with 20% VAT"',"fields.formulaAskLabel":"Describe the formula in your own words","fields.formulaAskButton":"Write it","fields.formulaAskWorking":"Writing…","fields.formulaAiFailed":"The AI could not write a formula that works. Try describing it another way.","fields.formulaSuggestions":"Suggestions","fields.formulaFieldHint":"Field","fields.formulaPreview":"Result:","fields.formulaUnnamed":"Unnamed record","fields.formulaEmpty":"(empty)","fields.formulaTrue":"true","fields.formulaFalse":"false","fields.formulaTips":"Tips","fields.formulaHideTips":"Hide tips","fields.formulaTip1":"Start with a field: click its name below, or type { and pick it from the list.","fields.formulaTip2":"Do math as in a spreadsheet, with field names instead of cells:","fields.formulaTip3":"Put text in quotes, and join pieces with &:","fields.formulaTip4":"Choose between two answers with IF:","fields.formulaTip5":"No = at the start, and commas between the parts of a function. The result for your first records shows as you type.","fields.formulaTip6":"Not sure how? Describe what you want in the box at the top, and AI writes the formula for you.","fields.formulaFindFunction":"Find a function","fields.formulaNoFunction":"No function matches","fields.formulaGroup.logic":"Logic","fields.formulaGroup.text":"Text","fields.formulaGroup.numbers":"Numbers","fields.formulaGroup.dates":"Dates","fields.formulaGroup.lists":"Lists","fields.formulaGroup.records":"Records","fields.optionsList":"Options","fields.colorOf":"Color of {name}","fields.colorOfOption":"Color of option {n}","fields.optionName":"Option name","fields.optionN":"Option {n}","fields.moveUp":"Move up","fields.moveDown":"Move down","fields.removeNamed":"Remove {name}","fields.removeOption":"Remove option","fields.addOption":"+ Add option","fields.sortAZ":"Sort A to Z","fields.menuColorRows":"Color rows by this field","fields.menuStopColoring":"Stop coloring rows","fields.menuFilter":"Filter by this field","fields.menuGroup":"Group by this field","fields.menuEdit":"Edit field","fields.menuInsertLeft":"Insert left","fields.menuInsertRight":"Insert right","fields.menuMoveLeft":"Move left","fields.menuMoveRight":"Move right","fields.menuDuplicate":"Duplicate field","fields.menuHide":"Hide field","fields.menuDelete":"Delete field","fields.typeText":"Single line text","fields.typeTextDescription":"A short line of text, like a name or a title.","fields.typeLongText":"Long text","fields.typeLongTextDescription":"Several lines of text; Alt+Enter starts a new line.","fields.typeRichText":"Rich text","fields.typeRichTextDescription":"Formatted notes: bold, italic, lists and links from a toolbar.","fields.typeAttachment":"Attachment","fields.typeAttachmentDescription":"Images and files: thumbnails in the cell, a dialog to add more.","fields.typeCheckbox":"Checkbox","fields.typeCheckboxDescription":"Done or not done: one click to toggle.","fields.typeSingleSelect":"Single select","fields.typeSingleSelectDescription":"One choice from a list of colored options.","fields.typeMultiSelect":"Multiple select","fields.typeMultiSelectDescription":"Any number of choices from a list of colored options.","fields.typeUser":"User","fields.typeUserDescription":"A person (or several) from the people the app lists.","fields.typeDate":"Date","fields.typeDateDescription":"A calendar date, with or without the time.","fields.typePhone":"Phone number","fields.typePhoneDescription":"A phone number, shown as a tel link.","fields.typeEmail":"Email","fields.typeEmailDescription":"An email address, shown as a mailto link.","fields.typeUrl":"URL","fields.typeUrlDescription":"A web address, shown as a link.","fields.typeBarcode":"Barcode","fields.typeBarcodeDescription":"A barcode's text, from a scanner or typed.","fields.typeButton":"Button","fields.typeButtonDescription":"A button in every row: open a link, change the record, print it, copy text or run an automation.","fields.typeChecklist":"Checklist","fields.typeChecklistDescription":"A list of to-dos; the cell shows how many are done.","fields.typeColor":"Color","fields.typeColorDescription":"A color from the palette, or any hex code.","fields.typeNumber":"Number","fields.typeNumberDescription":"A number: whole, decimal, an amount of money or a percentage.","fields.typeCurrency":"Currency","fields.typeCurrencyDescription":"An amount, with a currency symbol.","fields.typePercent":"Percent","fields.typePercentDescription":"A share, shown with a percent sign.","fields.typeDuration":"Duration","fields.typeDurationDescription":"A length of time, typed as 1:30 or 1h 30m.","fields.typeTimeOfDay":"Time of day","fields.typeTimeOfDayDescription":"A time on the clock with no date, typed as 9:30 am, 14:05 or 2pm.","fields.typeRating":"Rating","fields.typeRatingDescription":"One to ten stars, hearts, thumbs, flags or dots.","fields.typeTimer":"Timer","fields.typeTimerDescription":"Time counted with a start and stop button; each run adds to the total.","fields.typeVote":"Vote","fields.typeVoteDescription":"Who voted for it: one click adds your vote or takes it back.","fields.typeSparkline":"Sparkline","fields.typeSparklineDescription":"A list of numbers drawn as a small line, area or column chart.","fields.typeFormula":"Formula","fields.typeFormulaDescription":"A value computed from the row's other fields.","fields.typeCreatedTime":"Created time","fields.typeCreatedTimeDescription":"When the row was added. Set automatically.","fields.typeLastModifiedTime":"Last modified time","fields.typeLastModifiedTimeDescription":"When the row last changed. Set automatically.","fields.typeCreatedBy":"Created by","fields.typeCreatedByDescription":"Who added the row. Set automatically.","fields.typeLastModifiedBy":"Last modified by","fields.typeLastModifiedByDescription":"Who last changed the row. Set automatically.","fields.typeAutoNumber":"Autonumber","fields.typeAutoNumberDescription":"A number every row gets, counting up. Set automatically.","fields.typeLink":"Link to records","fields.typeLinkDescription":"Rows of another table this row points at.","fields.typeLookup":"Lookup","fields.typeLookupDescription":"A field of the linked rows, shown here.","fields.typeRollup":"Rollup","fields.typeRollupDescription":"A summary of a field over the linked rows (a sum, a count, a list).","fields.typeCount":"Count","fields.typeCountDescription":"How many rows a link field points at.","fields.typeAi":"AI","fields.typeAiDescription":"A model writes the value from a prompt that names the record's fields. Stored, and editable by hand.","fields.propSeparators":"Separators","fields.propShowThousands":"Show thousands separator","fields.propAbbreviation":"Large number abbreviation","fields.propAllowNegative":"Allow negative numbers","fields.propDefault":"Default value","fields.propDefaultHint":"New rows start with this value.","fields.propDateFormat":"Date format","fields.propIncludeTime":"Include time","fields.propTimeFormat":"Time format","fields.propGmt":"Use the same time zone (GMT) for everyone","fields.propShowTimeZone":"Display time zone","fields.propLinkField":"Link field","fields.propLinkFieldHint":"A link-to-records field of this table.","fields.propLinkedField":"Field in the linked table","fields.propWatch":"Changes to","fields.propWatchFields":"Fields","fields.propMarkdown":"Format with Markdown","fields.propMarkdownHint":"**bold**, *italic*, `code`, [links](https://...) and lists. For a toolbar, use Rich text.","fields.propToolbar":"Toolbar","fields.propToolbarHint":"Full adds headings, quotes, code blocks, undo and redo.","fields.propAccept":"Accepted types","fields.propAcceptPlaceholder":"image/*,.pdf (any when empty)","fields.propMaxFiles":"Most files per cell","fields.propIcon":"Icon","fields.propColor":"Color","fields.propOptions":"Options","fields.propMultipleUsers":"Allow adding multiple users","fields.propDefaultToday":"Default to today","fields.propButtonLabel":"Label","fields.propButtonLabelPlaceholder":"Open","fields.propButtonStyle":"Style","fields.propButtonUrl":"URL","fields.propButtonUrlPlaceholder":"https://example.com/orders/{Order id}","fields.propButtonUrlHint":'Use {Field name} for a value of the record, or write a formula: "mailto:" & {Email}, or {Website} for the link a field holds. mailto:, tel: and sms: links open the e-mail, phone or messages app.',"fields.propButtonAction":"When pressed","fields.buttonActionLink":"Open a link","fields.buttonActionAutomation":"Run automations","fields.buttonActionUpdate":"Change this record","fields.buttonActionTemplate":"Fill in from a record template","fields.buttonActionRecordAction":"Print or another record action","fields.buttonActionCopy":"Copy text","fields.buttonActionDuplicate":"Duplicate the record","fields.buttonActionDelete":"Delete the record","fields.buttonActionOpen":"Open the record","fields.propButtonValues":"Set these fields","fields.propButtonValuesHint":"Write a value as you would type it. A date can be today or today+7, a person can be me (whoever presses).","fields.buttonValuesInBase":"Pick the fields once the button is in a table of a base.","fields.propButtonTemplate":"Record template","fields.propButtonTemplateHint":"Fills only the fields that are empty. Make one from the arrow beside + Add row, then Manage templates.","fields.propButtonRecordAction":"Action","fields.propButtonCopy":"Text to copy","fields.propButtonCopyPlaceholder":"Order {Order id} for {Customer}","fields.propButtonCopyHint":"Use {Field name} for a value of the record. Start with = to write a formula.","fields.propButtonDoneLabel":"Label once done","fields.propButtonDoneLabelPlaceholder":"Done","fields.propButtonDoneLabelHint":"When the record already has these values, the button shows a check and this label, and cannot be pressed again.","fields.propButtonWhen":"Can be pressed when","fields.propButtonWhenHint":"On other records the button is greyed out.","fields.buttonWhenAlways":"On every record","fields.propButtonAsk":"Ask before it runs","fields.propButtonAskText":"Question","fields.buttonAskDefault":"Are you sure?","fields.buttonNotNow":"This record does not meet the button's condition.","fields.buttonReadOnly":"You can view this base but not change it.","fields.buttonNoAutomation":"No automation starts when this button is pressed yet. Add one on the Automations page.","fields.buttonNoLink":"This record has no link to open.","fields.buttonNoText":"This record has no text to copy.","fields.buttonNoValues":"Pick the fields this button sets.","fields.buttonNoTemplate":"Pick the record template this button uses.","fields.buttonNoRecordAction":"This action is not available here.","fields.buttonSomeRefused":"Some fields were not changed: you may not edit them.","fields.buttonCopied":"Copied.","fields.buttonCopyFailed":"Could not copy. Try again.","fields.protectedOnly":"Only {names} can edit this field.","fields.propButtonWho":"Who can press it","fields.buttonWhoEveryone":"Everyone who can use the base","fields.propButtonWhoHint":"Tick a person field to let whoever it names on each record press the button, such as the approver of each request.","fields.whoNobody":"Nobody will be able to press it.","fields.buttonOnlyWho":"Only {names} can press this.","fields.protectedNobody":"Nobody can edit this field.","fields.protectedNotYou":"You cannot edit this field.","fields.protectedChoices":"Only {names} can choose {choices}.","fields.protectedChoicesNobody":"Nobody can choose {choices}.","fields.protectedWhoeverIn":"whoever is in {field}","fields.protectedAnd":"and","fields.protectedOr":"or","fields.propFormat":"Format","fields.propCurrencySymbol":"Currency symbol","fields.propSymbolPosition":"Symbol position","fields.propPrecision":"Precision","fields.propStep":"Spinner step","fields.propStepHint":"What the editor's arrows and Up / Down add or take away; Shift for ten times as much.","fields.propShowBar":"Show as a progress bar","fields.propPoints":"Values are 0 to 100 (not 0 to 1)","fields.propDurationFormat":"Duration format","fields.propShowSeconds":"Show seconds","fields.propMaximum":"Maximum","fields.propChart":"Chart","fields.propShowLast":"Show the last value","fields.propFormula":"Formula","fields.propResult":"Format the result as","fields.propTable":"Table","fields.propTableHint":"The table gets a field that links back to this one.","fields.propMultipleRecords":"Allow linking to multiple records","fields.propPickFrom":"Pick records from","fields.pickFromAll":"All records","fields.propPickFromHint":"People pick only the records this view of the linked table shows (its filter).","fields.propAggregation":"Aggregation","fields.propPrompt":"Prompt","fields.propPromptPlaceholder":"Write a one-line pitch for {Name}, aimed at {Audience}","fields.propPromptHint":"Use {Field name} for that field's value in the record.","fields.propOutput":"The model writes","fields.propAuto":"Generate again when a field the prompt names changes","fields.propAutoHint":"Off: only when someone presses the button or uses the column menu.","fields.choiceLocal":"Local","fields.choiceNone":"None","fields.choiceThousand":"Thousand (K)","fields.choiceMillion":"Million (M)","fields.choiceBillion":"Billion (B)","fields.choiceFriendly":"Friendly (October 14, 2026)","fields.choiceUs":"US (10/14/2026)","fields.choiceEuropean":"European (14/10/2026)","fields.choiceIso":"ISO (2026-10-14)","fields.choice12Hour":"12 hour","fields.choice24Hour":"24 hour","fields.choiceAllFields":"All fields","fields.choiceSpecificFields":"Specific fields","fields.choiceStandard":"Standard","fields.choiceFull":"Full","fields.choiceInteger":"Integer","fields.choiceDecimal":"Decimal","fields.choiceCurrency":"Currency","fields.choicePercent":"Percent","fields.choiceBefore":"Before ($1.00)","fields.choiceAfter":"After (1.00 kr)","fields.choiceArrow":"Arrow","fields.choiceThumb":"Thumb","fields.choiceHeart":"Heart","fields.choiceLine":"Line","fields.choiceArea":"Area","fields.choiceColumns":"Columns","fields.choiceAsComputed":"As computed","fields.choiceNumber":"Number","fields.choiceDate":"Date","fields.choiceText":"Text","fields.choiceOneOption":"One option","fields.choiceANumber":"A number","fields.notJson":"{field} holds JSON, and this text is not valid JSON. Check its brackets and quotes.","fields.negativeNotAllowed":"Negative numbers are not allowed","fields.aiStop":"Stop generating ({count} left)","fields.aiGenerateEmpty.one":"Generate for {count} empty record","fields.aiGenerateEmpty.other":"Generate for {count} empty records","fields.aiAllTitle.one":"Generate for {count} record?","fields.aiAllTitle.other":"Generate for all {count} records?","fields.aiAllBody.one":"This replaces the value 1 record holds, and sends the AI provider a request for each of {records}. One Undo takes the replaced values back.","fields.aiAllBody.other":"This replaces the values {count} records hold, and sends the AI provider a request for each of {records}. One Undo takes the replaced values back.","fields.aiAllRecords.one":"{count} record","fields.aiAllRecords.other":"{count} records","fields.aiAllYes":"Generate","fields.aiGenerateAll.one":"Generate for all {count} record","fields.aiGenerateAll.other":"Generate for all {count} records","fields.aiNoProvider":"No AI provider. The app sets one with setAIProvider() from @svgrid/grid.","fields.aiNotEditable":"You cannot edit this field, so nothing was written.","fields.aiNotShown":"The record is not in the grid (filtered out or deleted).","fields.aiNotAiField":"The field is no longer an AI field.","fields.aiNoPrompt":"The field has no prompt yet: write one in Edit field.","fields.aiRequestFailed":"The request failed","fields.aiNotNumber":'The model answered "{answer}", which is not a number',"fields.aiNotOption":'The model answered "{answer}", which is not one of the options',"fields.promptNotClosed":"The { at {at} is not closed","fields.promptEmptyRef":"Empty {} at {at}: put a field name in it","fields.promptInvalid":"The prompt is not valid","fields.promptOwnField":"A prompt cannot read its own field {{name}}","fields.promptNoField":"No field is named {{name}}"};
@@ -67,6 +67,13 @@ export declare const RECORD_MESSAGES: {
67
67
  readonly 'record.commentEdited': "(edited)";
68
68
  readonly 'record.saveComment': "Save";
69
69
  readonly 'record.cancelComment': "Cancel";
70
+ readonly 'record.commentVotes': "Votes";
71
+ readonly 'record.voteUp': "Vote up";
72
+ readonly 'record.voteDown': "Vote down";
73
+ readonly 'record.voteUpCount': "Vote up ({count})";
74
+ readonly 'record.voteDownCount': "Vote down ({count})";
75
+ readonly 'record.votedUpBy': "Voted up by {names}";
76
+ readonly 'record.votedDownBy': "Voted down by {names}";
70
77
  readonly 'record.previousRecord': "Previous record";
71
78
  readonly 'record.nextRecord': "Next record";
72
79
  readonly 'record.position': "{index} of {total}";
@@ -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.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.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.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"};