@svgrid/enterprise 3.1.56 → 3.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SvGridBoard.svelte +1 -1
- package/dist/SvGridScheduler.svelte +1 -1
- package/dist/SvRecordDetail.svelte +1 -1
- package/dist/SvSchedule.svelte +1 -1
- package/dist/cdn/svgrid-enterprise.svelte-external.js +295 -295
- package/dist/date-locale.d.ts +8 -0
- package/dist/date-locale.js +1 -0
- package/dist/designer/assets/{index-Cay0XkF7.js → index-DoEhPIfX.js} +310 -310
- package/dist/designer/index.html +1 -1
- package/dist/fields/AttachmentDialog.svelte +155 -77
- package/dist/fields/BaseInboxView.svelte +1 -1
- package/dist/fields/BaseTableView.svelte +1 -1
- package/dist/fields/ButtonCell.svelte +6 -5
- package/dist/fields/ButtonCell.svelte.d.ts +6 -5
- package/dist/fields/PropertyInput.svelte +25 -2
- package/dist/fields/SvBase.svelte +1 -1
- package/dist/fields/attachments.d.ts +48 -0
- package/dist/fields/attachments.js +1 -1
- package/dist/fields/automations.svelte.d.ts +6 -0
- package/dist/fields/automations.svelte.js +1 -1
- package/dist/fields/builtin-types.js +1 -1
- package/dist/fields/button-host.d.ts +61 -0
- package/dist/fields/button-host.js +1 -0
- package/dist/fields/button.d.ts +36 -1
- package/dist/fields/button.js +1 -1
- package/dist/fields/index.d.ts +2 -1
- package/dist/fields/index.js +1 -1
- package/dist/fields/messages/fields.d.ts +41 -2
- package/dist/fields/messages/fields.js +1 -1
- package/dist/fields/messages/record.d.ts +15 -0
- package/dist/fields/messages/record.js +1 -1
- package/dist/fields/messages.svelte.d.ts +60 -3
- package/dist/fields/messages.svelte.js +1 -1
- package/dist/fields/registry.svelte.d.ts +11 -0
- package/dist/gantt/SvGridGantt.svelte +1 -1
- package/dist/gantt/gantt-model.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/node/studio.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wc/board-CEIIZoaC.js +26 -0
- package/dist/wc/{palette-DkaM8TCP.js → date-locale-CKE0m3Dc.js} +9 -9
- package/dist/wc/gantt-_heLybcH.js +115 -0
- package/dist/wc/scheduler-CGoM4ahy.js +160 -0
- package/dist/wc/sv-base-element.js +205 -195
- package/package.json +1 -1
- package/dist/wc/board-C2hPY2IP.js +0 -26
- package/dist/wc/gantt-DBRJiYsr.js +0 -115
- package/dist/wc/scheduler-DJZRC1fj.js +0 -160
package/dist/fields/index.js
CHANGED
|
@@ -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,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 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{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 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";
|
|
@@ -155,7 +155,7 @@ export declare const FIELDS_MESSAGES: {
|
|
|
155
155
|
readonly 'fields.typeBarcode': "Barcode";
|
|
156
156
|
readonly 'fields.typeBarcodeDescription': "A barcode's text, from a scanner or typed.";
|
|
157
157
|
readonly 'fields.typeButton': "Button";
|
|
158
|
-
readonly 'fields.typeButtonDescription': "A button in every row
|
|
158
|
+
readonly 'fields.typeButtonDescription': "A button in every row: open a link, change the record, print it, copy text or run an automation.";
|
|
159
159
|
readonly 'fields.typeChecklist': "Checklist";
|
|
160
160
|
readonly 'fields.typeChecklistDescription': "A list of to-dos; the cell shows how many are done.";
|
|
161
161
|
readonly 'fields.typeColor': "Color";
|
|
@@ -233,7 +233,46 @@ export declare const FIELDS_MESSAGES: {
|
|
|
233
233
|
readonly 'fields.propButtonStyle': "Style";
|
|
234
234
|
readonly 'fields.propButtonUrl': "URL";
|
|
235
235
|
readonly 'fields.propButtonUrlPlaceholder': "https://example.com/orders/{Order id}";
|
|
236
|
-
readonly 'fields.propButtonUrlHint': "Use {Field name} for
|
|
236
|
+
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.";
|
|
237
|
+
readonly 'fields.propButtonAction': "When pressed";
|
|
238
|
+
readonly 'fields.buttonActionLink': "Open a link";
|
|
239
|
+
readonly 'fields.buttonActionAutomation': "Run automations";
|
|
240
|
+
readonly 'fields.buttonActionUpdate': "Change this record";
|
|
241
|
+
readonly 'fields.buttonActionTemplate': "Fill in from a record template";
|
|
242
|
+
readonly 'fields.buttonActionRecordAction': "Print or another record action";
|
|
243
|
+
readonly 'fields.buttonActionCopy': "Copy text";
|
|
244
|
+
readonly 'fields.buttonActionDuplicate': "Duplicate the record";
|
|
245
|
+
readonly 'fields.buttonActionDelete': "Delete the record";
|
|
246
|
+
readonly 'fields.buttonActionOpen': "Open the record";
|
|
247
|
+
readonly 'fields.propButtonValues': "Set these fields";
|
|
248
|
+
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).";
|
|
249
|
+
readonly 'fields.buttonValuesInBase': "Pick the fields once the button is in a table of a base.";
|
|
250
|
+
readonly 'fields.propButtonTemplate': "Record template";
|
|
251
|
+
readonly 'fields.propButtonTemplateHint': "Fills only the fields that are empty. Make one from the arrow beside + Add row, then Manage templates.";
|
|
252
|
+
readonly 'fields.propButtonRecordAction': "Action";
|
|
253
|
+
readonly 'fields.propButtonCopy': "Text to copy";
|
|
254
|
+
readonly 'fields.propButtonCopyPlaceholder': "Order {Order id} for {Customer}";
|
|
255
|
+
readonly 'fields.propButtonCopyHint': "Use {Field name} for a value of the record. Start with = to write a formula.";
|
|
256
|
+
readonly 'fields.propButtonDoneLabel': "Label once done";
|
|
257
|
+
readonly 'fields.propButtonDoneLabelPlaceholder': "Done";
|
|
258
|
+
readonly 'fields.propButtonDoneLabelHint': "When the record already has these values, the button shows a check and this label, and cannot be pressed again.";
|
|
259
|
+
readonly 'fields.propButtonWhen': "Can be pressed when";
|
|
260
|
+
readonly 'fields.propButtonWhenHint': "On other records the button is greyed out.";
|
|
261
|
+
readonly 'fields.buttonWhenAlways': "On every record";
|
|
262
|
+
readonly 'fields.propButtonAsk': "Ask before it runs";
|
|
263
|
+
readonly 'fields.propButtonAskText': "Question";
|
|
264
|
+
readonly 'fields.buttonAskDefault': "Are you sure?";
|
|
265
|
+
readonly 'fields.buttonNotNow': "This record does not meet the button's condition.";
|
|
266
|
+
readonly 'fields.buttonReadOnly': "You can view this base but not change it.";
|
|
267
|
+
readonly 'fields.buttonNoAutomation': "No automation starts when this button is pressed yet. Add one on the Automations page.";
|
|
268
|
+
readonly 'fields.buttonNoLink': "This record has no link to open.";
|
|
269
|
+
readonly 'fields.buttonNoText': "This record has no text to copy.";
|
|
270
|
+
readonly 'fields.buttonNoValues': "Pick the fields this button sets.";
|
|
271
|
+
readonly 'fields.buttonNoTemplate': "Pick the record template this button uses.";
|
|
272
|
+
readonly 'fields.buttonNoRecordAction': "This action is not available here.";
|
|
273
|
+
readonly 'fields.buttonSomeRefused': "Some fields were not changed: you may not edit them.";
|
|
274
|
+
readonly 'fields.buttonCopied': "Copied.";
|
|
275
|
+
readonly 'fields.buttonCopyFailed': "Could not copy. Try again.";
|
|
237
276
|
readonly 'fields.propFormat': "Format";
|
|
238
277
|
readonly 'fields.propCurrencySymbol': "Currency symbol";
|
|
239
278
|
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.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.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}}"};
|
|
@@ -151,6 +151,21 @@ export declare const RECORD_MESSAGES: {
|
|
|
151
151
|
readonly 'record.scanNoCamera': "The camera is not available: allow it for this site, or close another app using it.";
|
|
152
152
|
readonly 'record.pasteUrl': "or paste a URL";
|
|
153
153
|
readonly 'record.addByUrl': "Add a file by URL";
|
|
154
|
+
readonly 'record.addFrom': "Add files from";
|
|
155
|
+
readonly 'record.sourceDevice': "Your device";
|
|
156
|
+
readonly 'record.sourceLink': "Link (URL)";
|
|
157
|
+
readonly 'record.dropHere': "Drop files here";
|
|
158
|
+
readonly 'record.dropOr': "or";
|
|
159
|
+
readonly 'record.chooseFiles': "Choose files";
|
|
160
|
+
readonly 'record.pasteHint': "You can also paste files or pictures here.";
|
|
161
|
+
readonly 'record.linkHint': "Paste the address of a file or a picture on the web.";
|
|
162
|
+
readonly 'record.addLink': "Add";
|
|
163
|
+
readonly 'record.photoHint': "Take a picture with the camera.";
|
|
164
|
+
readonly 'record.openSource': "Open {source}";
|
|
165
|
+
readonly 'record.sourceHint': "Choose files in {source}. They are added here.";
|
|
166
|
+
readonly 'record.sourceWaiting': "Waiting for {source}...";
|
|
167
|
+
readonly 'record.backToFiles': "Back to the files";
|
|
168
|
+
readonly 'record.gettingFile': "Getting {name}";
|
|
154
169
|
readonly 'record.uploadingCount': "Uploading {count}...";
|
|
155
170
|
readonly 'record.download': "Download";
|
|
156
171
|
readonly 'record.previous': "Previous";
|
|
@@ -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.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.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"};
|
|
@@ -594,7 +594,7 @@ export declare const BASE_MESSAGES: {
|
|
|
594
594
|
readonly 'fields.typeBarcode': "Barcode";
|
|
595
595
|
readonly 'fields.typeBarcodeDescription': "A barcode's text, from a scanner or typed.";
|
|
596
596
|
readonly 'fields.typeButton': "Button";
|
|
597
|
-
readonly 'fields.typeButtonDescription': "A button in every row
|
|
597
|
+
readonly 'fields.typeButtonDescription': "A button in every row: open a link, change the record, print it, copy text or run an automation.";
|
|
598
598
|
readonly 'fields.typeChecklist': "Checklist";
|
|
599
599
|
readonly 'fields.typeChecklistDescription': "A list of to-dos; the cell shows how many are done.";
|
|
600
600
|
readonly 'fields.typeColor': "Color";
|
|
@@ -672,7 +672,46 @@ export declare const BASE_MESSAGES: {
|
|
|
672
672
|
readonly 'fields.propButtonStyle': "Style";
|
|
673
673
|
readonly 'fields.propButtonUrl': "URL";
|
|
674
674
|
readonly 'fields.propButtonUrlPlaceholder': "https://example.com/orders/{Order id}";
|
|
675
|
-
readonly 'fields.propButtonUrlHint': "Use {Field name} for
|
|
675
|
+
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.";
|
|
676
|
+
readonly 'fields.propButtonAction': "When pressed";
|
|
677
|
+
readonly 'fields.buttonActionLink': "Open a link";
|
|
678
|
+
readonly 'fields.buttonActionAutomation': "Run automations";
|
|
679
|
+
readonly 'fields.buttonActionUpdate': "Change this record";
|
|
680
|
+
readonly 'fields.buttonActionTemplate': "Fill in from a record template";
|
|
681
|
+
readonly 'fields.buttonActionRecordAction': "Print or another record action";
|
|
682
|
+
readonly 'fields.buttonActionCopy': "Copy text";
|
|
683
|
+
readonly 'fields.buttonActionDuplicate': "Duplicate the record";
|
|
684
|
+
readonly 'fields.buttonActionDelete': "Delete the record";
|
|
685
|
+
readonly 'fields.buttonActionOpen': "Open the record";
|
|
686
|
+
readonly 'fields.propButtonValues': "Set these fields";
|
|
687
|
+
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).";
|
|
688
|
+
readonly 'fields.buttonValuesInBase': "Pick the fields once the button is in a table of a base.";
|
|
689
|
+
readonly 'fields.propButtonTemplate': "Record template";
|
|
690
|
+
readonly 'fields.propButtonTemplateHint': "Fills only the fields that are empty. Make one from the arrow beside + Add row, then Manage templates.";
|
|
691
|
+
readonly 'fields.propButtonRecordAction': "Action";
|
|
692
|
+
readonly 'fields.propButtonCopy': "Text to copy";
|
|
693
|
+
readonly 'fields.propButtonCopyPlaceholder': "Order {Order id} for {Customer}";
|
|
694
|
+
readonly 'fields.propButtonCopyHint': "Use {Field name} for a value of the record. Start with = to write a formula.";
|
|
695
|
+
readonly 'fields.propButtonDoneLabel': "Label once done";
|
|
696
|
+
readonly 'fields.propButtonDoneLabelPlaceholder': "Done";
|
|
697
|
+
readonly 'fields.propButtonDoneLabelHint': "When the record already has these values, the button shows a check and this label, and cannot be pressed again.";
|
|
698
|
+
readonly 'fields.propButtonWhen': "Can be pressed when";
|
|
699
|
+
readonly 'fields.propButtonWhenHint': "On other records the button is greyed out.";
|
|
700
|
+
readonly 'fields.buttonWhenAlways': "On every record";
|
|
701
|
+
readonly 'fields.propButtonAsk': "Ask before it runs";
|
|
702
|
+
readonly 'fields.propButtonAskText': "Question";
|
|
703
|
+
readonly 'fields.buttonAskDefault': "Are you sure?";
|
|
704
|
+
readonly 'fields.buttonNotNow': "This record does not meet the button's condition.";
|
|
705
|
+
readonly 'fields.buttonReadOnly': "You can view this base but not change it.";
|
|
706
|
+
readonly 'fields.buttonNoAutomation': "No automation starts when this button is pressed yet. Add one on the Automations page.";
|
|
707
|
+
readonly 'fields.buttonNoLink': "This record has no link to open.";
|
|
708
|
+
readonly 'fields.buttonNoText': "This record has no text to copy.";
|
|
709
|
+
readonly 'fields.buttonNoValues': "Pick the fields this button sets.";
|
|
710
|
+
readonly 'fields.buttonNoTemplate': "Pick the record template this button uses.";
|
|
711
|
+
readonly 'fields.buttonNoRecordAction': "This action is not available here.";
|
|
712
|
+
readonly 'fields.buttonSomeRefused': "Some fields were not changed: you may not edit them.";
|
|
713
|
+
readonly 'fields.buttonCopied': "Copied.";
|
|
714
|
+
readonly 'fields.buttonCopyFailed': "Could not copy. Try again.";
|
|
676
715
|
readonly 'fields.propFormat': "Format";
|
|
677
716
|
readonly 'fields.propCurrencySymbol': "Currency symbol";
|
|
678
717
|
readonly 'fields.propSymbolPosition': "Symbol position";
|
|
@@ -907,6 +946,21 @@ export declare const BASE_MESSAGES: {
|
|
|
907
946
|
readonly 'record.scanNoCamera': "The camera is not available: allow it for this site, or close another app using it.";
|
|
908
947
|
readonly 'record.pasteUrl': "or paste a URL";
|
|
909
948
|
readonly 'record.addByUrl': "Add a file by URL";
|
|
949
|
+
readonly 'record.addFrom': "Add files from";
|
|
950
|
+
readonly 'record.sourceDevice': "Your device";
|
|
951
|
+
readonly 'record.sourceLink': "Link (URL)";
|
|
952
|
+
readonly 'record.dropHere': "Drop files here";
|
|
953
|
+
readonly 'record.dropOr': "or";
|
|
954
|
+
readonly 'record.chooseFiles': "Choose files";
|
|
955
|
+
readonly 'record.pasteHint': "You can also paste files or pictures here.";
|
|
956
|
+
readonly 'record.linkHint': "Paste the address of a file or a picture on the web.";
|
|
957
|
+
readonly 'record.addLink': "Add";
|
|
958
|
+
readonly 'record.photoHint': "Take a picture with the camera.";
|
|
959
|
+
readonly 'record.openSource': "Open {source}";
|
|
960
|
+
readonly 'record.sourceHint': "Choose files in {source}. They are added here.";
|
|
961
|
+
readonly 'record.sourceWaiting': "Waiting for {source}...";
|
|
962
|
+
readonly 'record.backToFiles': "Back to the files";
|
|
963
|
+
readonly 'record.gettingFile': "Getting {name}";
|
|
910
964
|
readonly 'record.uploadingCount': "Uploading {count}...";
|
|
911
965
|
readonly 'record.download': "Download";
|
|
912
966
|
readonly 'record.previous': "Previous";
|
|
@@ -2018,10 +2072,13 @@ export type BaseMessages = Partial<Record<BaseMessageKey, string>> & Record<stri
|
|
|
2018
2072
|
/**
|
|
2019
2073
|
* Use these words in every base on the page; null goes back to English. A
|
|
2020
2074
|
* `plural` function picks the form of a count (`'one'`, `'few'`, `'other'`),
|
|
2021
|
-
* as `Intl.PluralRules(locale).select` does.
|
|
2075
|
+
* as `Intl.PluralRules(locale).select` does. A `locale` ("bg") writes the dates
|
|
2076
|
+
* in that language too: a calendar's month and weekdays, a Gantt's axis, short
|
|
2077
|
+
* dates (setDateLocale); left out, they stay in the browser's.
|
|
2022
2078
|
*/
|
|
2023
2079
|
export declare function setBaseMessages(messages: BaseMessages | null, options?: {
|
|
2024
2080
|
plural?: (n: number) => string;
|
|
2081
|
+
locale?: string;
|
|
2025
2082
|
}): void;
|
|
2026
2083
|
/** The words in effect now (the app's over the English), for code that hands them on. */
|
|
2027
2084
|
export declare function baseMessages(): Readonly<Record<string, string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{untrack}from"svelte";import{SHELL_MESSAGES}from"./messages/shell.js";import{VIEWBAR_MESSAGES}from"./messages/viewbar.js";import{RECORD_MESSAGES}from"./messages/record.js";import{FIELDS_MESSAGES}from"./messages/fields.js";import{EXTRAS_MESSAGES}from"./messages/extras.js";import{PALETTE_MESSAGES}from"./messages/palette.js";import{GRID_MESSAGES}from"./messages/grid.js";import{setPaletteWords}from"./palette.js";export const BASE_MESSAGES={...SHELL_MESSAGES,...VIEWBAR_MESSAGES,...RECORD_MESSAGES,...FIELDS_MESSAGES,...EXTRAS_MESSAGES,...PALETTE_MESSAGES,...GRID_MESSAGES};let overrides=$state.raw({});let pluralRule=null;export function setBaseMessages(messages,options={}){untrack(()=>{overrides=messages?{...messages}:{};pluralRule=options.plural??null})}export function baseMessages(){return{...BASE_MESSAGES,...overrides}}export function fillMessage(template,vars){if(!vars)return template;return template.replace(/\{(\w+)\}/g,(m,k)=>k in vars?String(vars[k]):m)}export function bm(key,vars){const own=overrides[key];return fillMessage(own??BASE_MESSAGES[key]??key,vars)}export function baseGridText(){const text={};for(const key of Object.keys(GRID_MESSAGES))text[key.slice("grid.".length)]=overrides[key]??GRID_MESSAGES[key];return text}setPaletteWords((key,english)=>overrides[key]??english);export function bmCount(key,count,vars){const form=pluralRule?pluralRule(count):count===1?"one":"other";const own=overrides;const word=k=>own[k]??BASE_MESSAGES[k];const template=word(`${key}.${form}`)??word(`${key}.${count===1?"one":"other"}`)??word(`${key}.other`)??key;return fillMessage(template,{count:countText(count),...vars})}let counts=null;const countText=n=>(counts??(counts=new Intl.NumberFormat)).format(n);
|
|
1
|
+
import{untrack}from"svelte";import{SHELL_MESSAGES}from"./messages/shell.js";import{VIEWBAR_MESSAGES}from"./messages/viewbar.js";import{RECORD_MESSAGES}from"./messages/record.js";import{FIELDS_MESSAGES}from"./messages/fields.js";import{EXTRAS_MESSAGES}from"./messages/extras.js";import{PALETTE_MESSAGES}from"./messages/palette.js";import{GRID_MESSAGES}from"./messages/grid.js";import{setPaletteWords}from"./palette.js";import{setDateLocale}from"../date-locale.js";export const BASE_MESSAGES={...SHELL_MESSAGES,...VIEWBAR_MESSAGES,...RECORD_MESSAGES,...FIELDS_MESSAGES,...EXTRAS_MESSAGES,...PALETTE_MESSAGES,...GRID_MESSAGES};let overrides=$state.raw({});let pluralRule=null;export function setBaseMessages(messages,options={}){untrack(()=>{overrides=messages?{...messages}:{};pluralRule=options.plural??null});setDateLocale(messages?options.locale:void 0)}export function baseMessages(){return{...BASE_MESSAGES,...overrides}}export function fillMessage(template,vars){if(!vars)return template;return template.replace(/\{(\w+)\}/g,(m,k)=>k in vars?String(vars[k]):m)}export function bm(key,vars){const own=overrides[key];return fillMessage(own??BASE_MESSAGES[key]??key,vars)}export function baseGridText(){const text={};for(const key of Object.keys(GRID_MESSAGES))text[key.slice("grid.".length)]=overrides[key]??GRID_MESSAGES[key];return text}setPaletteWords((key,english)=>overrides[key]??english);export function bmCount(key,count,vars){const form=pluralRule?pluralRule(count):count===1?"one":"other";const own=overrides;const word=k=>own[k]??BASE_MESSAGES[k];const template=word(`${key}.${form}`)??word(`${key}.${count===1?"one":"other"}`)??word(`${key}.other`)??key;return fillMessage(template,{count:countText(count),...vars})}let counts=null;const countText=n=>(counts??(counts=new Intl.NumberFormat)).format(n);
|
|
@@ -100,6 +100,17 @@ export type FieldPropertyDef = Base & ({
|
|
|
100
100
|
/** Some of the grid's other columns. */
|
|
101
101
|
| {
|
|
102
102
|
kind: 'columns';
|
|
103
|
+
}
|
|
104
|
+
/** A condition on the record (the view bar's filter): a `FieldFilter`, none when it has no conditions. */
|
|
105
|
+
| {
|
|
106
|
+
kind: 'filter';
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Values for fields of the record, by column id, as an automation's
|
|
110
|
+
* "Update the record" takes them (a base's grid only: `baseTables`).
|
|
111
|
+
*/
|
|
112
|
+
| {
|
|
113
|
+
kind: 'recordValues';
|
|
103
114
|
});
|
|
104
115
|
/** What a type is told when it fills in a column. */
|
|
105
116
|
export type FieldFillContext = {
|