@svgrid/enterprise 3.1.43 → 3.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/svgrid-enterprise.svelte-external.js +1 -1
- package/dist/designer/assets/{index-BWz7zwBp.js → index-BQO-FqUG.js} +214 -214
- package/dist/designer/index.html +1 -1
- package/dist/fields/BaseTableView.svelte +3 -2
- package/dist/fields/FieldEditor.svelte +1 -1
- package/dist/fields/FieldEditor.svelte.d.ts +3 -0
- package/dist/fields/FieldsHeaderEnd.svelte +1 -1
- package/dist/fields/FormulaInput.svelte +122 -0
- package/dist/fields/FormulaInput.svelte.d.ts +10 -0
- package/dist/fields/FormulaInputHarness.svelte +5 -0
- package/dist/fields/FormulaInputHarness.svelte.d.ts +11 -0
- package/dist/fields/NumberEditor.svelte +1 -1
- package/dist/fields/PasteFields.svelte +33 -0
- package/dist/fields/PasteFields.svelte.d.ts +6 -0
- package/dist/fields/PropertyInput.svelte +4 -8
- package/dist/fields/RecordView.svelte +38 -2
- package/dist/fields/SvBase.svelte +1 -1
- package/dist/fields/SvBase.svelte.d.ts +7 -0
- package/dist/fields/SvBaseForm.svelte +26 -2
- package/dist/fields/SvBaseForm.svelte.d.ts +4 -0
- package/dist/fields/SvBaseViewBar.svelte +2 -2
- package/dist/fields/base-import.js +2 -2
- package/dist/fields/celebrate.d.ts +29 -0
- package/dist/fields/celebrate.js +1 -0
- package/dist/fields/cell-colors.svelte.d.ts +17 -0
- package/dist/fields/cell-colors.svelte.js +1 -0
- package/dist/fields/comment-snippets.svelte.d.ts +35 -0
- package/dist/fields/comment-snippets.svelte.js +1 -0
- package/dist/fields/editor-request.svelte.d.ts +7 -0
- package/dist/fields/excel-habits.svelte.d.ts +98 -0
- package/dist/fields/excel-habits.svelte.js +1 -0
- package/dist/fields/form-suggestions.svelte.d.ts +29 -0
- package/dist/fields/form-suggestions.svelte.js +1 -0
- package/dist/fields/formula-docs.d.ts +24 -0
- package/dist/fields/formula-docs.js +1 -0
- package/dist/fields/index.d.ts +3 -0
- package/dist/fields/index.js +1 -1
- package/dist/fields/messages/fields.d.ts +28 -0
- package/dist/fields/messages/fields.js +1 -1
- package/dist/fields/messages/record.d.ts +16 -0
- package/dist/fields/messages/record.js +1 -1
- package/dist/fields/messages/shell.d.ts +22 -0
- package/dist/fields/messages/shell.js +1 -1
- package/dist/fields/messages/viewbar.d.ts +9 -0
- package/dist/fields/messages/viewbar.js +1 -1
- package/dist/fields/messages.svelte.d.ts +75 -0
- package/dist/fields/view-model.d.ts +3 -0
- package/dist/fields/view-model.js +1 -1
- package/dist/fields/viewbar/ColorPanel.svelte +54 -2
- package/dist/fields/viewbar/ColorPanel.svelte.d.ts +3 -0
- package/dist/node/studio.js +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +1 -1
- package/dist/wc/sv-base-element.js +101 -95
- package/dist/wc/sv-sheet-element.js +43 -43
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const FORMULA_DOCS={IF:{syntax:"IF(condition, value if true, [value if false])",summary:"One value when the condition is true, another when it is not (empty if left out).",example:'IF({Qty} > 10, "Bulk", "Small")',group:"logic"},AND:{syntax:"AND(condition1, [condition2, ...])",summary:"True when every condition is true.",example:'AND({Paid}, {Status} = "Shipped")',group:"logic"},OR:{syntax:"OR(condition1, [condition2, ...])",summary:"True when at least one condition is true.",example:'OR({Status} = "Late", {Status} = "Lost")',group:"logic"},NOT:{syntax:"NOT(condition)",summary:"True when the condition is false or empty, false when it is true.",example:"NOT({Paid})",group:"logic"},XOR:{syntax:"XOR(condition1, [condition2, ...])",summary:"True when an odd number of the conditions are true.",example:"XOR({Paid}, {Refunded})",group:"logic"},TRUE:{syntax:"TRUE()",summary:"The value true. You can also write TRUE without the brackets.",example:"IF({Qty} > 0, TRUE(), FALSE())",group:"logic"},FALSE:{syntax:"FALSE()",summary:"The value false. You can also write FALSE without the brackets.",example:'IF({Status} = "Cancelled", FALSE(), TRUE())',group:"logic"},BLANK:{syntax:"BLANK()",summary:"An empty value, for leaving the cell empty.",example:"IF({Qty} = 0, BLANK(), {Qty} * {Unit price})",group:"logic"},ERROR:{syntax:"ERROR()",summary:"Makes the cell show #ERROR, to flag a record that needs a look.",example:"IF({Qty} < 0, ERROR(), {Qty})",group:"logic"},ISERROR:{syntax:"ISERROR(value)",summary:"True when the value is an error, such as ERROR() or a number that cannot be worked out.",example:"IF(ISERROR({Discount}), 0, {Discount})",group:"logic"},SWITCH:{syntax:"SWITCH(value, match1, result1, [match2, result2, ...], [default])",summary:"The result next to the first match for the value, or the default when none match.",example:'SWITCH({Status}, "New", 1, "Paid", 2, "Shipped", 3, 0)',group:"logic"},RECORD_ID:{syntax:"RECORD_ID()",summary:"The id of this record, as text.",example:'"https://example.com/orders/" & RECORD_ID()',group:"records"},CONCATENATE:{syntax:"CONCATENATE(text1, [text2, ...])",summary:"All the values joined into one text, in order. The & sign does the same.",example:'CONCATENATE({First name}, " ", {Last name})',group:"text"},LEN:{syntax:"LEN(text)",summary:"The number of characters in the text.",example:"LEN({Phone})",group:"text"},UPPER:{syntax:"UPPER(text)",summary:"The text in capital letters.",example:"UPPER({Country code})",group:"text"},LOWER:{syntax:"LOWER(text)",summary:"The text in small letters.",example:"LOWER({Email})",group:"text"},TRIM:{syntax:"TRIM(text)",summary:"The text without spaces at the start and the end.",example:"TRIM({Client})",group:"text"},LEFT:{syntax:"LEFT(text, [count])",summary:"The first characters of the text; one character if no count is given.",example:"LEFT({Postcode}, 2)",group:"text"},RIGHT:{syntax:"RIGHT(text, [count])",summary:"The last characters of the text; one character if no count is given.",example:"RIGHT({Phone}, 4)",group:"text"},MID:{syntax:"MID(text, start, [count])",summary:"Characters from a position (1 is the first); the rest of the text if no count.",example:"MID({Invoice no}, 5, 3)",group:"text"},FIND:{syntax:"FIND(text to find, text, [start])",summary:"Where the text is found (1 is the first character), or 0 if not. Case matters.",example:'FIND("@", {Email})',group:"text"},SEARCH:{syntax:"SEARCH(text to find, text, [start])",summary:"Where the text is found (1 is the first character), or empty if not. Case matters.",example:'SEARCH("urgent", {Notes})',group:"text"},SUBSTITUTE:{syntax:"SUBSTITUTE(text, old text, new text, [which one])",summary:"The text with the old text swapped for the new; only the nth one if you give n.",example:'SUBSTITUTE({Phone}, " ", "")',group:"text"},REPLACE:{syntax:"REPLACE(text, start, count, new text)",summary:"The text with count characters from the start position swapped for the new text.",example:'REPLACE({Card number}, 1, 12, "************")',group:"text"},ENCODE_URL_COMPONENT:{syntax:"ENCODE_URL_COMPONENT(text)",summary:"The text made safe to put in a web address.",example:'"https://maps.google.com/?q=" & ENCODE_URL_COMPONENT({Address})',group:"text"},REGEX_MATCH:{syntax:"REGEX_MATCH(text, pattern)",summary:"True when the text fits the pattern (a regular expression).",example:'REGEX_MATCH({Email}, "^[^@ ]+@[^@ ]+[.][a-z]+$")',group:"text"},REGEX_EXTRACT:{syntax:"REGEX_EXTRACT(text, pattern)",summary:"The first part of the text that fits the pattern, or empty if none does.",example:'REGEX_EXTRACT({Notes}, "[0-9]+")',group:"text"},REGEX_REPLACE:{syntax:"REGEX_REPLACE(text, pattern, new text)",summary:"The text with every part that fits the pattern swapped for the new text.",example:'REGEX_REPLACE({Phone}, "[^0-9]", "")',group:"text"},REPT:{syntax:"REPT(text, times)",summary:"The text repeated a number of times (at most 1,000).",example:'REPT("*", {Rating})',group:"text"},T:{syntax:"T(value)",summary:"The value if it is text, otherwise empty text.",example:"T({Notes})",group:"text"},VALUE:{syntax:"VALUE(text)",summary:"The number in the text, ignoring signs like $ and spaces; empty if there is none.",example:"VALUE({Price text}) * {Qty}",group:"text"},ARRAYJOIN:{syntax:"ARRAYJOIN(list, [separator])",summary:'The items of a list joined into one text, with ", " between them unless you say.',example:'ARRAYJOIN({Tags}, " / ")',group:"text"},ARRAYCOMPACT:{syntax:"ARRAYCOMPACT(list)",summary:"The list without its empty items.",example:"ARRAYCOMPACT({Phone numbers})",group:"lists"},ARRAYFLATTEN:{syntax:"ARRAYFLATTEN(list1, [list2, ...])",summary:"One flat list of all the items, with lists inside lists opened up.",example:"ARRAYFLATTEN({Tags}, {Categories})",group:"lists"},ARRAYUNIQUE:{syntax:"ARRAYUNIQUE(list)",summary:"The list with each item only once.",example:"ARRAYUNIQUE({Order cities})",group:"lists"},ARRAYSLICE:{syntax:"ARRAYSLICE(list, start, [end])",summary:"The items from start to end (1 is the first; a negative number counts from the end).",example:"ARRAYSLICE({Tags}, 1, 3)",group:"lists"},SUM:{syntax:"SUM(number1, [number2, ...])",summary:"All the numbers added up.",example:"SUM({Subtotal}, {Shipping}, {Tax})",group:"numbers"},AVERAGE:{syntax:"AVERAGE(number1, [number2, ...])",summary:"The average of the numbers, leaving out empty ones.",example:"AVERAGE({Q1 sales}, {Q2 sales}, {Q3 sales})",group:"numbers"},MAX:{syntax:"MAX(number1, [number2, ...])",summary:"The largest of the numbers.",example:"MAX({Quote A}, {Quote B})",group:"numbers"},MIN:{syntax:"MIN(number1, [number2, ...])",summary:"The smallest of the numbers.",example:"MIN({Stock}, {Qty})",group:"numbers"},COUNT:{syntax:"COUNT(value1, [value2, ...])",summary:"How many of the values are numbers.",example:"COUNT({Mon hours}, {Tue hours}, {Wed hours})",group:"numbers"},COUNTA:{syntax:"COUNTA(value1, [value2, ...])",summary:"How many of the values are not empty.",example:"COUNTA({Phone}, {Email}, {Address})",group:"numbers"},COUNTALL:{syntax:"COUNTALL(value1, [value2, ...])",summary:"How many values there are, empty ones included.",example:"COUNTALL({Attendees})",group:"numbers"},ROUND:{syntax:"ROUND(number, [decimals])",summary:"The number rounded to that many decimal places (none if left out).",example:"ROUND({Qty} * {Unit price}, 2)",group:"numbers"},ROUNDUP:{syntax:"ROUNDUP(number, [decimals])",summary:"The number rounded away from zero to that many decimal places.",example:"ROUNDUP({Hours worked}, 0)",group:"numbers"},ROUNDDOWN:{syntax:"ROUNDDOWN(number, [decimals])",summary:"The number rounded toward zero to that many decimal places.",example:"ROUNDDOWN({Total} * 0.1, 2)",group:"numbers"},INT:{syntax:"INT(number)",summary:"The number rounded down to a whole number.",example:"INT({Hours worked})",group:"numbers"},ABS:{syntax:"ABS(number)",summary:"The number without its minus sign.",example:"ABS({Balance})",group:"numbers"},MOD:{syntax:"MOD(number, divisor)",summary:"What is left after dividing; it takes the sign of the first number.",example:"MOD({Qty}, 12)",group:"numbers"},POWER:{syntax:"POWER(number, power)",summary:"The number raised to the power.",example:"{Deposit} * POWER(1 + {Rate}, {Years})",group:"numbers"},SQRT:{syntax:"SQRT(number)",summary:"The square root of the number.",example:"SQRT({Floor area})",group:"numbers"},EXP:{syntax:"EXP(number)",summary:"The number e (about 2.718) raised to the power you give.",example:"{Deposit} * EXP({Rate} * {Years})",group:"numbers"},LOG:{syntax:"LOG(number, [base])",summary:"The logarithm of the number, in base 10 unless you give another base.",example:"LOG({Visitors}, 10)",group:"numbers"},EVEN:{syntax:"EVEN(number)",summary:"The number rounded away from zero to the next even whole number.",example:"EVEN({Guests})",group:"numbers"},ODD:{syntax:"ODD(number)",summary:"The number rounded away from zero to the next odd whole number.",example:"ODD({Team size})",group:"numbers"},CEILING:{syntax:"CEILING(number, [multiple])",summary:"The number rounded up to a multiple (1 if left out): CEILING(7, 5) is 10.",example:"CEILING({Qty}, 6)",group:"numbers"},FLOOR:{syntax:"FLOOR(number, [multiple])",summary:"The number rounded down to a multiple (1 if left out): FLOOR(7, 5) is 5.",example:"FLOOR({Price}, 0.5)",group:"numbers"},TODAY:{syntax:"TODAY()",summary:"Today's date, at midnight.",example:'DATETIME_DIFF({Due date}, TODAY(), "days")',group:"dates"},NOW:{syntax:"NOW()",summary:"The date and time right now.",example:'DATETIME_DIFF(NOW(), {Created}, "hours")',group:"dates"},YEAR:{syntax:"YEAR(date)",summary:"The year of a date, such as 2026.",example:"YEAR({Invoice date})",group:"dates"},MONTH:{syntax:"MONTH(date)",summary:"The month of a date, from 1 (January) to 12 (December).",example:"MONTH({Invoice date})",group:"dates"},DAY:{syntax:"DAY(date)",summary:"The day of the month of a date, from 1 to 31.",example:"DAY({Due date})",group:"dates"},HOUR:{syntax:"HOUR(date)",summary:"The hour of a date and time, from 0 to 23.",example:"HOUR({Appointment})",group:"dates"},MINUTE:{syntax:"MINUTE(date)",summary:"The minute of a date and time, from 0 to 59.",example:"MINUTE({Appointment})",group:"dates"},SECOND:{syntax:"SECOND(date)",summary:"The second of a date and time, from 0 to 59.",example:"SECOND({Logged at})",group:"dates"},WEEKDAY:{syntax:"WEEKDAY(date, [first day])",summary:'The day of the week, 0 for Sunday to 6; with "Monday" as first day, 0 is Monday.',example:'WEEKDAY({Delivery date}, "Monday")',group:"dates"},WEEKNUM:{syntax:"WEEKNUM(date, [first day])",summary:'The week of the year (week 1 holds January 1); weeks start Sunday, or "Monday".',example:'WEEKNUM({Order date}, "Monday")',group:"dates"},DATEADD:{syntax:"DATEADD(date, count, [unit])",summary:"The date moved on by a number of days, weeks, months, years... (days if no unit).",example:'DATEADD({Invoice date}, 30, "days")',group:"dates"},DATETIME_DIFF:{syntax:"DATETIME_DIFF(date1, date2, [unit])",summary:"The time between two dates: the first minus the second, in days or another unit.",example:'DATETIME_DIFF({Due date}, TODAY(), "days")',group:"dates"},IS_BEFORE:{syntax:"IS_BEFORE(date1, date2)",summary:"True when the first date is before the second.",example:"IS_BEFORE({Due date}, TODAY())",group:"dates"},IS_AFTER:{syntax:"IS_AFTER(date1, date2)",summary:"True when the first date is after the second.",example:"IS_AFTER({Delivered on}, {Due date})",group:"dates"},IS_SAME:{syntax:"IS_SAME(date1, date2, [unit])",summary:"True when two dates are the same moment, or the same day, month, year... by unit.",example:'IS_SAME({Order date}, TODAY(), "month")',group:"dates"},DATESTR:{syntax:"DATESTR(date)",summary:"The date as text, year first: 2026-12-04.",example:"DATESTR({Due date})",group:"dates"},TIMESTR:{syntax:"TIMESTR(date)",summary:"The time of a date as text, in 24 hours: 14:30:00.",example:"TIMESTR({Appointment})",group:"dates"},DATETIME_FORMAT:{syntax:"DATETIME_FORMAT(date, [format])",summary:'The date as text in the format you write, such as "DD/MM/YYYY" or "MMMM D".',example:'DATETIME_FORMAT({Due date}, "DD/MM/YYYY")',group:"dates"},DATETIME_PARSE:{syntax:"DATETIME_PARSE(text, [format])",summary:"The date written in the text, read with the format if you give one.",example:'DATETIME_PARSE({Date text}, "DD.MM.YYYY")',group:"dates"},SET_LOCALE:{syntax:"SET_LOCALE(date, locale)",summary:'The date, set to show month and day names in a language, such as "fr" or "de".',example:'DATETIME_FORMAT(SET_LOCALE({Due date}, "fr"), "D MMMM YYYY")',group:"dates"},SET_TIMEZONE:{syntax:"SET_TIMEZONE(date, time zone)",summary:'The date, set to show the clock of a time zone, such as "Europe/London".',example:'DATETIME_FORMAT(SET_TIMEZONE({Appointment}, "Europe/London"), "HH:mm")',group:"dates"},TONOW:{syntax:"TONOW(date)",summary:"The number of days from the date to today.",example:"TONOW({Last contacted})",group:"dates"},FROMNOW:{syntax:"FROMNOW(date)",summary:"The number of days from today to the date.",example:"FROMNOW({Due date})",group:"dates"},WORKDAY:{syntax:"WORKDAY(start date, days, [holidays])",summary:"The date that many working days on, skipping weekends and the holidays.",example:'WORKDAY({Order date}, 5, "2026-12-25, 2026-12-26")',group:"dates"},WORKDAY_DIFF:{syntax:"WORKDAY_DIFF(start date, end date, [holidays])",summary:"The working days from start to end, both days counted, skipping the holidays.",example:'WORKDAY_DIFF({Start date}, {End date}, "2026-12-25")',group:"dates"}};export function syntaxArgs(e){const t=e.indexOf("("),a=e.lastIndexOf(")");return t<0||a<=t?[]:e.slice(t+1,a).replace(/[[\]]/g,"").split(",").map(s=>s.replace(/\.{3}|…/g,"").trim()).filter(Boolean)}
|
package/dist/fields/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { linkHref, linkText, type LinkKind } from './links.js';
|
|
|
3
3
|
export { setFieldUsers, getFieldUsers, setCurrentUser, getCurrentUser, registerLinkedTable, unregisterLinkedTable, getLinkedTable, listLinkedTables, type FieldUser, type LinkedTable, } from './sources.svelte.js';
|
|
4
4
|
export { canEditField, defaultCanEditField, fieldEditors, setCanEditField, setFieldProtection, type CanEditField, type FieldAccessField, } from './field-access.svelte.js';
|
|
5
5
|
export { compileFormula, formulaError, FORMULA_FUNCTIONS, FormulaError } from './formula.js';
|
|
6
|
+
export { FORMULA_DOCS, syntaxArgs, type FormulaDoc, type FormulaDocGroup } from './formula-docs.js';
|
|
6
7
|
export { formatNumber, formatCurrency, formatPercent, formatDuration, parseDuration, formatDate } from './format.js';
|
|
7
8
|
export { timerRunning, timerSeconds, timerToggle, timerTotal, type TimerRunning, type TimerValue } from './timer.js';
|
|
8
9
|
export { BRIGHT, OPTION_COLORS } from './palette.js';
|
|
@@ -32,6 +33,8 @@ export { setViewActions, type ViewAction } from './view-actions.js';
|
|
|
32
33
|
export type { RecordTemplate } from './base-tables.js';
|
|
33
34
|
export { setRecordActions, type RecordAction, type RecordActionContext, type RecordActionRecord } from './record-actions.js';
|
|
34
35
|
export { setRecordComments, type RecordComment, type RecordCommentContext, type RecordCommentStore } from './activity.svelte.js';
|
|
36
|
+
export { setCommentSnippets, type CommentSnippet, type CommentSnippets } from './comment-snippets.svelte.js';
|
|
37
|
+
export { setFormSuggestions, type FormSuggestion, type FormSuggestions } from './form-suggestions.svelte.js';
|
|
35
38
|
export { setBaseMessages, baseMessages, BASE_MESSAGES, type BaseMessages, type BaseMessageKey } from './messages.svelte.js';
|
|
36
39
|
export { setRecordHistory, historyOf, loadHistory, type RecordChange, type RecordHistoryStore, type RecordHistoryContext } from './activity.svelte.js';
|
|
37
40
|
export { setMentionHandler, type MentionEvent, type MentionHandler } from './activity.svelte.js';
|
package/dist/fields/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{registerCellEditor as f,registerGridExtension as O,registerGridShortcuts as g}from"@svgrid/grid";import{nudgeEnterpriseFor as P}from"../license.js";import B from"./FieldCell.svelte";import L from"./RowAdder.svelte";import V from"./FootRowAdder.svelte";import H from"./AttachmentEditor.svelte";import N from"./FieldsHeaderEnd.svelte";import{askDeleteField as U,openFieldEditor as C,openRecord as _}from"./editor-request.svelte.js";import{enableAdvancedFilter as G,registerFilterKind as K}from"../advanced-filter-enable.js";import{compileFieldFilter as z,newCondition as w,resolveMeWith as $}from"./filter-model.js";import{hasBar as q,openBarPanel as F}from"./bar-request.svelte.js";import{groupRules as X,userSorts as j,writeSortState as W}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 E,isServerGroupRow as Ce,originalColumn as b,registerFieldType as be,typeDrawsCell as ye}from"./registry.svelte.js";import he from"./RatingEditor.svelte";import we from"./LinkPickerEditor.svelte";import Fe from"./DateEditor.svelte";import Te from"./SelectEditor.svelte";import ve from"./NumberEditor.svelte";import Me from"./LongTextEditor.svelte";import Ae from"./RichTextEditor.svelte";import Ee from"./VoteEditor.svelte";import ke from"./TimerEditor.svelte";import xe from"./ChecklistEditor.svelte";import Se from"./ColorEditor.svelte";import Re from"./TimeOfDayEditor.svelte";import De from"./RowHeader.svelte";import Ie from"./GroupHeader.svelte";import Oe from"./SummaryCell.svelte";import{getCurrentUser as k}from"./sources.svelte.js";import{fieldColumns as Pe,gridOf as y,primaryIdOf as h,rememberGrid as Be}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{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{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{setRecordComments}from"./activity.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)?[...w(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:()=>Ne(o,r)}]]:[];return[...i?[i]:[],{key:"field-edit",label:p("fields.menuEdit"),icon:m.edit,run:()=>C({ctrl:o,mode:"edit",columnId:r})},...t?[]:[{key:"field-left",label:p("fields.menuInsertLeft"),icon:m.left,run:()=>C({ctrl:o,mode:"add",index:v(o,r,"left")})}],{key:"field-right",label:p("fields.menuInsertRight"),icon:m.right,run:()=>C({ctrl:o,mode:"add",index:v(o,r,"right")})},{key:"field-duplicate",label:p("fields.menuDuplicate"),icon:m.duplicate,run:()=>{o.props.baseRefuseDuplicate?.(r)||re(o,r)}},...t?[]:[{key:"field-move-left",label:p("fields.menuMoveLeft"),icon:m.left,disabled:!S(o,r,-1),run:()=>R(o,r,-1)},{key:"field-move-right",label:p("fields.menuMoveRight"),icon:m.right,disabled:!S(o,r,1),run:()=>R(o,r,1)}],...l,...je(o,r,e),...t?[]:[{key:"field-hide",label:p("fields.menuHide"),icon:m.hide,run:()=>ie(o,r)},{key:"field-delete",label:p("fields.menuDelete"),icon:m.remove,separatorBefore:!0,run:()=>e?.fieldType==="link"&&(e.fieldProps?.inverse&&Z(e.fieldProps.table)||ne({columns:o.internalColumns},e).length)||e&&de(o.internalColumns??[],e).length||Q(o,e).length?U({ctrl:o,columnId:r}):te(o,r)}]]}function x(o,r,e){const i=(o.allColumns??[]).map(l=>l.id),t=i[i.indexOf(r)+e];if(!(!t||t===h(o)||o.isColumnPinned?.(t)!==o.isColumnPinned?.(r)))return t}const S=(o,r,e)=>!!x(o,r,e);function R(o,r,e){const i=x(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(qe(s.length?[...s,...a.filter(n=>!s.includes(n))]:a,t))}function He(o,r,e){const i=w(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]}),F(o,"filter")}function Ne(o,r){const e=X(o);e.some(i=>i.id===r)||W(o.buildApi(),[...e,{id:r,desc:!1}],j(o)),F(o,"group")}function D(o,r,e,i,t){if(!r)return;const l=k()?.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 Ge(o,r){if(o.key!=="Enter"&&o.key!==" "||o.ctrlKey||o.metaKey||o.altKey||o.shiftKey||r.editing||!r.activeCell)return!1;const e=y(r.api);if(!e?.props?.baseDeleteSelection)return!1;const{rowIndex:i,colIndex:t}=r.activeCell,l=e.allColumns?.[t]?.columnDef.editorType,d=l==="checkbox";if(o.key===" "&&!d&&l!=="fieldVote")return!1;const a=r.ranges.at(-1);return o.key==="Enter"&&(r.ranges.length>1||a&&(a[0]!==a[2]||a[1]!==a[3]))||!e.isCellEditableAt(i,t)?!1:(o.preventDefault(),d?(e.toggleBooleanCell(i,t),!0):(r.startEditing(i,t),!!e.editingCell))}import{baseGridKey as Ke}from"./base-keys.svelte.js";import{treeGridKey as ze}from"./tree-edit.js";import{fillDownKey as $e}from"./base-fill.js";import{orderKeepingScreen as qe}from"./column-order.js";let I=!1;export function enableFields(){if(I)return;I=!0;for(const e of ae)E(e.id)||be(e);O({column:(e,i)=>ge(e,i),cell:B,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),Xe(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?E(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&&Pe(e).some(i=>i.fieldType)?Ie:null,summaryCell:e=>e?.props?.rowModel?null:Oe,rootClass:e=>{Be(e);const i=e?.advancedFilter?.kind==="fieldFilter"?"sv-fields-own-filter":"",t=i&&!e?.toolPanelEnabled&&!e?.chartingEnabled?"sv-fields-filter-only":"",l=e?.groupingColumns?.length?"sv-fields-grouped":"";return[fe(e),pe(e),i,t,l].filter(Boolean).join(" ")||null},headerEnd:N,columnMenuItems:(e,i)=>e?.props?.fieldMenu?le(e,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:we,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:xe,props:r}),f("fieldRichText",{component:Ae,props:r}),f("fieldVote",{component:Ee,props:r,typeToEdit:e=>e===" "}),f("fieldTimer",{component:ke,props:e=>({...r(e),rowId:e.rowId,onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>e===" "||/[0-9:]/.test(e)}),f("fieldColor",{component:Se,props:r}),f("fieldTime",{component:Re,props:e=>({...r(e),onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>/[0-9]/.test(e)}),f("fieldDate",{component:Fe,props:e=>({...r(e),onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>/[0-9a-z]/i.test(e)}),K("fieldFilter",(e,i)=>z(e,i.getValue,ee)),$(()=>k()?.id),oe(),G(),g(_e,{id:"svgrid-fields-space"}),g(Ke,{id:"svgrid-fields-keys"}),g(Ge,{id:"svgrid-base-keys"}),g($e,{id:"svgrid-base-fill-down"}),g(ze,{id:"svgrid-base-tree"}),P("base","SvGrid Base")}export{inboxRecords,listColumns,listGroups,viewRecords}from"./list-view.js";import{aiFieldEdited as Xe,aiFieldMenuItems as je}from"./ai-field.svelte.js";export{generateAIField,regenerateAIFields,cancelAIField,pendingAIField,setAIFieldConcurrency}from"./ai-field.svelte.js";export{aiPromptError,readAIAnswer}from"./ai-prompt.js";export{moveTile,newTile,putTile,removeTile,tileResult,tileRows,tileTitle}from"./dashboard.js";export{sharedTables,sharedViews,shareOf}from"./base-share.js";export{recordsAsShown,downloadAsShown}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 P}from"../license.js";import B from"./FieldCell.svelte";import L from"./RowAdder.svelte";import V from"./FootRowAdder.svelte";import H from"./AttachmentEditor.svelte";import 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 X,userSorts as j,writeSortState as W}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 me}from"./builtin-types.js";import{rowColorOf as ae,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 E,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 Ee from"./VoteEditor.svelte";import xe from"./TimerEditor.svelte";import ke from"./ChecklistEditor.svelte";import Se 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 x}from"./sources.svelte.js";import{fieldColumns as Pe,gridOf as y,primaryIdOf as h,rememberGrid as Be}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{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{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 a={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?ae(o)?.field===e.field?{key:"field-rowcolor",label:p("fields.menuStopColoring"),icon:a.color,run:()=>M(o,null)}:{key:"field-rowcolor",label:p("fields.menuColorRows"),icon:a.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:a.filter,separatorBefore:!0,run:()=>He(o,r,e)}]:[],...o.groupingControlsEnabled?[]:[{key:"field-group",label:p("fields.menuGroup"),icon:a.group,run:()=>Ke(o,r)}]]:[];return[...i?[i]:[],{key:"field-edit",label:p("fields.menuEdit"),icon:a.edit,run:()=>C({ctrl:o,mode:"edit",columnId:r})},...t?[]:[{key:"field-left",label:p("fields.menuInsertLeft"),icon:a.left,run:()=>C({ctrl:o,mode:"add",index:v(o,r,"left")})}],{key:"field-right",label:p("fields.menuInsertRight"),icon:a.right,run:()=>C({ctrl:o,mode:"add",index:v(o,r,"right")})},{key:"field-duplicate",label:p("fields.menuDuplicate"),icon:a.duplicate,run:()=>{o.props.baseRefuseDuplicate?.(r)||re(o,r)}},...t?[]:[{key:"field-move-left",label:p("fields.menuMoveLeft"),icon:a.left,disabled:!S(o,r,-1),run:()=>R(o,r,-1)},{key:"field-move-right",label:p("fields.menuMoveRight"),icon:a.right,disabled:!S(o,r,1),run:()=>R(o,r,1)}],...l,...Ye(o,r,e),...t?[]:[{key:"field-hide",label:p("fields.menuHide"),icon:a.hide,run:()=>ie(o,r)},{key:"field-delete",label:p("fields.menuDelete"),icon:a.remove,separatorBefore:!0,run:()=>e?.fieldType==="link"&&(e.fieldProps?.inverse&&Z(e.fieldProps.table)||ne({columns:o.internalColumns},e).length)||e&&de(o.internalColumns??[],e).length||Q(o,e).length?U({ctrl:o,columnId:r}):te(o,r)}]]}function k(o,r,e){const i=(o.allColumns??[]).map(l=>l.id),t=i[i.indexOf(r)+e];if(!(!t||t===h(o)||o.isColumnPinned?.(t)!==o.isColumnPinned?.(r)))return t}const S=(o,r,e)=>!!k(o,r,e);function R(o,r,e){const i=k(o,r,e);if(!i)return;const t=o.allColumns.map(n=>n.id),l=t.indexOf(r),d=t.indexOf(i);t[l]=i,t[d]=r;const m=o.grid.getAllColumns().map(n=>n.id),s=o.userColumnOrder??[];o.moveColumnsByUser(je(s.length?[...s,...m.filter(n=>!s.includes(n))]:m,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=X(o);e.some(i=>i.id===r)||W(o.buildApi(),[...e,{id:r,desc:!1}],j(o)),w(o,"group")}function D(o,r,e,i,t){if(!r)return;const l=x()?.id,d=i??o.buildApi?.().getRowId?.(r),m=(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"?m(n,r[s.field]=new Date().toISOString()):l!==void 0&&m(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"),m=new Map;(i??l?.getData?.()??[]).forEach((n,u)=>m.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=m.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),m=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===m?{from:s.before}:n?{from:n.value}:void 0;T(o,d,e,m,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 m=r.ranges.at(-1);return o.key==="Enter"&&(r.ranges.length>1||m&&(m[0]!==m[2]||m[1]!==m[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 Xe}from"./excel-habits.svelte.js";import{orderKeepingScreen as je}from"./column-order.js";let O=!1;export function enableFields(){if(O)return;O=!0;for(const e of me)E(e.id)||be(e);I({column:(e,i)=>ge(e,i),cell:B,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),We(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?E(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:a.lock}:i?{text:i,icon:a.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&&Pe(e).some(i=>i.fieldType)?Oe:null,summaryCell:e=>e?.props?.rowModel?null:Ie,rootClass:e=>{Be(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:ke,props:r}),f("fieldRichText",{component:Ae,props:r}),f("fieldVote",{component:Ee,props:r,typeToEdit:e=>e===" "}),f("fieldTimer",{component:xe,props:e=>({...r(e),rowId:e.rowId,onCommitAndMoveDown:e.onCommitAndMoveDown}),typeToEdit:e=>e===" "||/[0-9:]/.test(e)}),f("fieldColor",{component:Se,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)),$(()=>x()?.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(Xe,{id:"svgrid-base-format-keys",priority:200}),g(ze,{id:"svgrid-base-tree"}),P("base","SvGrid Base")}export{inboxRecords,listColumns,listGroups,viewRecords}from"./list-view.js";import{aiFieldEdited as We,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}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";
|
|
@@ -77,6 +77,34 @@ export declare const FIELDS_MESSAGES: {
|
|
|
77
77
|
readonly 'fields.insertField': "Insert a field";
|
|
78
78
|
readonly 'fields.functions': "Functions";
|
|
79
79
|
readonly 'fields.hideFunctions': "Hide functions";
|
|
80
|
+
readonly 'fields.formulaAskPlaceholder': "Describe it, such as \"total with 20% VAT\"";
|
|
81
|
+
readonly 'fields.formulaAskLabel': "Describe the formula in your own words";
|
|
82
|
+
readonly 'fields.formulaAskButton': "Write it";
|
|
83
|
+
readonly 'fields.formulaAskWorking': "Writing…";
|
|
84
|
+
readonly 'fields.formulaAiFailed': "The AI could not write a formula that works. Try describing it another way.";
|
|
85
|
+
readonly 'fields.formulaSuggestions': "Suggestions";
|
|
86
|
+
readonly 'fields.formulaFieldHint': "Field";
|
|
87
|
+
readonly 'fields.formulaPreview': "Result:";
|
|
88
|
+
readonly 'fields.formulaUnnamed': "Unnamed record";
|
|
89
|
+
readonly 'fields.formulaEmpty': "(empty)";
|
|
90
|
+
readonly 'fields.formulaTrue': "true";
|
|
91
|
+
readonly 'fields.formulaFalse': "false";
|
|
92
|
+
readonly 'fields.formulaTips': "Tips";
|
|
93
|
+
readonly 'fields.formulaHideTips': "Hide tips";
|
|
94
|
+
readonly 'fields.formulaTip1': "Start with a field: click its name below, or type { and pick it from the list.";
|
|
95
|
+
readonly 'fields.formulaTip2': "Do math as in a spreadsheet, with field names instead of cells:";
|
|
96
|
+
readonly 'fields.formulaTip3': "Put text in quotes, and join pieces with &:";
|
|
97
|
+
readonly 'fields.formulaTip4': "Choose between two answers with IF:";
|
|
98
|
+
readonly 'fields.formulaTip5': "No = at the start, and commas between the parts of a function. The result for your first records shows as you type.";
|
|
99
|
+
readonly 'fields.formulaTip6': "Not sure how? Describe what you want in the box at the top, and AI writes the formula for you.";
|
|
100
|
+
readonly 'fields.formulaFindFunction': "Find a function";
|
|
101
|
+
readonly 'fields.formulaNoFunction': "No function matches";
|
|
102
|
+
readonly 'fields.formulaGroup.logic': "Logic";
|
|
103
|
+
readonly 'fields.formulaGroup.text': "Text";
|
|
104
|
+
readonly 'fields.formulaGroup.numbers': "Numbers";
|
|
105
|
+
readonly 'fields.formulaGroup.dates': "Dates";
|
|
106
|
+
readonly 'fields.formulaGroup.lists': "Lists";
|
|
107
|
+
readonly 'fields.formulaGroup.records': "Records";
|
|
80
108
|
readonly 'fields.optionsList': "Options";
|
|
81
109
|
readonly 'fields.colorOf': "Color of {name}";
|
|
82
110
|
readonly 'fields.colorOfOption': "Color of option {n}";
|
|
@@ -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.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 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}}"};
|
|
@@ -38,6 +38,21 @@ export declare const RECORD_MESSAGES: {
|
|
|
38
38
|
readonly 'record.internalNote': "Internal note";
|
|
39
39
|
readonly 'record.internalNoteHint': "Only your team sees it, never a client.";
|
|
40
40
|
readonly 'record.internalTag': "Internal";
|
|
41
|
+
readonly 'record.savedReplies': "Saved replies";
|
|
42
|
+
readonly 'record.formSuggestTitle': "These may already answer it";
|
|
43
|
+
readonly 'record.formSolved': "This solved it";
|
|
44
|
+
readonly 'record.formSolvedTitle': "Glad it helped";
|
|
45
|
+
readonly 'record.formSolvedNote': "Nothing was sent.";
|
|
46
|
+
readonly 'record.formAskAnother': "Ask something else";
|
|
47
|
+
readonly 'record.searchReplies': "Search the saved replies";
|
|
48
|
+
readonly 'record.noReplies': "No saved replies yet.";
|
|
49
|
+
readonly 'record.noRepliesFound': "No saved reply matches.";
|
|
50
|
+
readonly 'record.loadingReplies': "Loading the saved replies...";
|
|
51
|
+
readonly 'record.repliesFailed': "The saved replies could not be read: {error}";
|
|
52
|
+
readonly 'record.saveAsReply': "Save this text as a reply";
|
|
53
|
+
readonly 'record.replyName': "Name of the reply";
|
|
54
|
+
readonly 'record.replySaved': "Saved as a reply.";
|
|
55
|
+
readonly 'record.replyNotSaved': "The reply was not saved: {error}";
|
|
41
56
|
readonly 'record.editComment': "Edit";
|
|
42
57
|
readonly 'record.deleteComment': "Delete";
|
|
43
58
|
readonly 'record.deleteCommentAsk': "Delete this comment?";
|
|
@@ -191,6 +206,7 @@ export declare const RECORD_MESSAGES: {
|
|
|
191
206
|
readonly 'record.noOptions': "No options";
|
|
192
207
|
readonly 'record.notADuration': "Not a duration (1:30, 1h 30m)";
|
|
193
208
|
readonly 'record.notANumber': "Not a number";
|
|
209
|
+
readonly 'record.formulaInNumber': "This field holds numbers. Press Enter to see how a formula field works this out.";
|
|
194
210
|
readonly 'record.noNegative': "Negative numbers are not allowed";
|
|
195
211
|
readonly 'record.durationLabel': "Duration ({format})";
|
|
196
212
|
readonly 'record.amountIn': "Amount in {symbol}";
|
|
@@ -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.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.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.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.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"};
|
|
@@ -126,6 +126,28 @@ export declare const SHELL_MESSAGES: {
|
|
|
126
126
|
readonly 'shell.pasteLeftOut.one': "\"{text}\" does not fit {field}, so that cell keeps its value.";
|
|
127
127
|
readonly 'shell.pasteLeftOut.other': "{count} values do not fit their fields, so those cells keep their values.";
|
|
128
128
|
readonly 'shell.pasteLoading': "The view is still loading, so nothing was pasted. Paste again when the rows are shown.";
|
|
129
|
+
readonly 'shell.formulaInField': "In a base, a formula is a field of its own: it works out a value for every record at once.";
|
|
130
|
+
readonly 'shell.formulaMakeField': "Make a formula field";
|
|
131
|
+
readonly 'shell.formulaIsSummary': "The summary bar under the table works this out for {field}, and keeps it up to date as records change.";
|
|
132
|
+
readonly 'shell.formulaShowSummary': "Show it for {field}";
|
|
133
|
+
readonly 'shell.sumShown': "The sum of {field} is in the summary bar under the table. It keeps up as records change.";
|
|
134
|
+
readonly 'shell.sumNotNumbers': "{field} does not hold numbers, so there is nothing to add up. Select a number field and press Alt+= again.";
|
|
135
|
+
readonly 'shell.sumNoBar': "A base adds up a field in the summary bar under the table, and this view does not show one.";
|
|
136
|
+
readonly 'shell.totalRecord': "No total record needed: the summary bar under the table adds up each number field, and keeps up as records change.";
|
|
137
|
+
readonly 'shell.totalShowSums': "Show the sums";
|
|
138
|
+
readonly 'shell.formatInBase': "A base keeps no bold or colors typed into cells, so every screen reads the same data. Color rows or cells by what they hold with Color in the toolbar.";
|
|
139
|
+
readonly 'shell.formatOpenColor': "Open Color";
|
|
140
|
+
readonly 'shell.pasteNoField.one': "One column of the paste had no field to go in, so it was left out.";
|
|
141
|
+
readonly 'shell.pasteNoField.other': "{count} columns of the paste had no field to go in, so they were left out.";
|
|
142
|
+
readonly 'shell.pasteNamesLeftOut': "The first line holds the names of the fields, so it is not pasted as a record.";
|
|
143
|
+
readonly 'shell.pasteFieldsTitle.one': "Add a field for this paste?";
|
|
144
|
+
readonly 'shell.pasteFieldsTitle.other': "Add {count} fields for this paste?";
|
|
145
|
+
readonly 'shell.pasteFieldsBody.one': "The paste has one more column than the table has from here. Add a field for it:";
|
|
146
|
+
readonly 'shell.pasteFieldsBody.other': "The paste has {count} more columns than the table has from here. Add a field for each:";
|
|
147
|
+
readonly 'shell.pasteFirstLineNames': "The first line holds the names of the fields";
|
|
148
|
+
readonly 'shell.pasteWithout': "Paste without them";
|
|
149
|
+
readonly 'shell.pasteAddFields.one': "Add the field and paste";
|
|
150
|
+
readonly 'shell.pasteAddFields.other': "Add {count} fields and paste";
|
|
129
151
|
readonly 'shell.pasteNewTitle': "New records";
|
|
130
152
|
readonly 'shell.pasteNewAsk': "This paste runs past the last record. Add {records}?";
|
|
131
153
|
readonly 'shell.pasteNewConfirm': "Add records";
|