@svgrid/enterprise 3.1.71 → 3.1.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/SvGridBoard.svelte +1 -2
  2. package/dist/cdn/svgrid-enterprise.svelte-external.js +197 -196
  3. package/dist/designer/assets/GridMenus-BWRHlEUz.js +1 -0
  4. package/dist/designer/assets/PinSplitter-DFIcNVPE.js +1 -0
  5. package/dist/designer/assets/{index-CBDmqR3L.js → index-BQsNM94_.js} +3 -3
  6. package/dist/designer/index.html +1 -1
  7. package/dist/fields/BaseTableView.svelte +1 -1
  8. package/dist/fields/BaseTableView.svelte.d.ts +1 -1
  9. package/dist/fields/FieldsHeaderEnd.svelte +2 -2
  10. package/dist/fields/RecordView.svelte +134 -3
  11. package/dist/fields/RecordView.svelte.d.ts +3 -0
  12. package/dist/fields/SvBase.svelte +5 -3
  13. package/dist/fields/SvBase.svelte.d.ts +11 -0
  14. package/dist/fields/SvBaseViewBar.svelte +1 -1
  15. package/dist/fields/base-tables.d.ts +19 -0
  16. package/dist/fields/editor-request.svelte.d.ts +4 -1
  17. package/dist/fields/index.d.ts +1 -1
  18. package/dist/fields/index.js +1 -1
  19. package/dist/fields/messages/record.d.ts +118 -0
  20. package/dist/fields/messages/record.js +1 -1
  21. package/dist/fields/messages/shell.d.ts +2 -0
  22. package/dist/fields/messages/shell.js +1 -1
  23. package/dist/fields/messages.svelte.d.ts +120 -0
  24. package/dist/fields/page/EmojiPicker.svelte +22 -0
  25. package/dist/fields/page/EmojiPicker.svelte.d.ts +8 -0
  26. package/dist/fields/page/PageEditor.svelte +155 -0
  27. package/dist/fields/page/PageEditor.svelte.d.ts +20 -0
  28. package/dist/fields/page/PageSettings.svelte +34 -0
  29. package/dist/fields/page/PageSettings.svelte.d.ts +17 -0
  30. package/dist/fields/page/embed-url.d.ts +20 -0
  31. package/dist/fields/page/embed-url.js +1 -0
  32. package/dist/fields/page/page-editor.d.ts +159 -0
  33. package/dist/fields/page/page-editor.js +10 -0
  34. package/dist/fields/page/page-schema.d.ts +35 -0
  35. package/dist/fields/page/page-schema.js +1 -0
  36. package/dist/fields/rich-html-write.js +1 -1
  37. package/dist/fields/sources.svelte.d.ts +3 -1
  38. package/dist/fields/view-model.d.ts +7 -1
  39. package/dist/fields/view-model.js +1 -1
  40. package/dist/node/studio.js +1 -1
  41. package/dist/version.d.ts +2 -2
  42. package/dist/version.js +1 -1
  43. package/dist/wc/GridMenus-BcOloz5b.js +16 -0
  44. package/dist/wc/GridMenus-CaWxHkj0.js +16 -0
  45. package/dist/wc/PageEditor-9QJDKhtZ.js +10 -0
  46. package/dist/wc/PinSplitter-BmwDy-Ow.js +11 -0
  47. package/dist/wc/PinSplitter-D7UYjmiP.js +11 -0
  48. package/dist/wc/SvForm-CgshrajJ.js +46 -0
  49. package/dist/wc/{board-DrfEgD78.js → board-DZKHA_nQ.js} +5 -4
  50. package/dist/wc/card-look-CtMsGc56.js +6 -0
  51. package/dist/wc/date-locale-HgJNFY2n.js +1 -0
  52. package/dist/wc/dist-38sT7vmy.js +1 -0
  53. package/dist/wc/dist-BeUwTaC6.js +1 -0
  54. package/dist/wc/dist-Bl8aVOmr.js +2 -0
  55. package/dist/wc/dist-C7Z0Guly.js +1 -0
  56. package/dist/wc/dist-CEyUgQt3.js +2 -0
  57. package/dist/wc/dist-D2lK5znU.js +4 -0
  58. package/dist/wc/dist-DdZ3e9iY.js +5 -0
  59. package/dist/wc/dist-DgLsWEqp.js +1 -0
  60. package/dist/wc/dist-Jl2k94vj.js +1 -0
  61. package/dist/wc/dist-ZVYC9b49.js +1 -0
  62. package/dist/wc/dist-z_tOCaGG.js +1 -0
  63. package/dist/wc/embed-url-BTRiV8zf.js +1 -0
  64. package/dist/wc/{gallery-BM8UqXD7.js → gallery-B-VEjOws.js} +2 -2
  65. package/dist/wc/{gantt-D0gdx_Tq.js → gantt-BZfS6Kbz.js} +2 -2
  66. package/dist/wc/{scheduler-BCY96peY.js → scheduler-BzuGk1RZ.js} +2 -2
  67. package/dist/wc/sv-base-element.js +110 -96
  68. package/dist/wc/sv-sheet-element.js +1 -1
  69. package/package.json +58 -3
  70. package/dist/designer/assets/GridMenus-Cx3LyUQM.js +0 -1
  71. package/dist/designer/assets/PinSplitter-oi6ffxQy.js +0 -1
  72. package/dist/wc/GridMenus-BJsnJOkz.js +0 -16
  73. package/dist/wc/GridMenus-sqW-Y7S5.js +0 -16
  74. package/dist/wc/PinSplitter-3i65naKl.js +0 -11
  75. package/dist/wc/PinSplitter-CLTE0bRc.js +0 -11
  76. package/dist/wc/card-look-Ce9vDrsr.js +0 -2
  77. package/dist/wc/date-locale-CKE0m3Dc.js +0 -46
  78. package/dist/wc/rich-text-B6aOaakV.js +0 -5
@@ -1 +1 @@
1
- export const SHELL_MESSAGES={"shell.records.one":"{count} record","shell.records.other":"{count} records","shell.tables.one":"{count} table","shell.tables.other":"{count} tables","shell.items.one":"{count} item","shell.items.other":"{count} items","shell.loadingRecords":"Loading records…","shell.deleteTableOnServer":"It leaves this base. Its records stay in the database.","shell.converting":"Converting {done} of {total} records…","shell.writingOptions":"Updating {done} records…","shell.convertTitle":"Convert the stored values?","shell.convertBody":"{name} holds {count} records in the database. Convert their values to the new type, or change the field only and leave them as they are?","shell.convertValues":"Convert the values","shell.convertKeep":"Change the field only","shell.exporting":"Exporting {done} of {total} records…","shell.copying":"Copying {done} of {total} records…","shell.reading":"Reading {done} of {total} records…","shell.saving":"Saving…","shell.allSaved":"All changes saved","shell.notSaved":"Not saved: {message}","shell.savingSlow":"Still saving: the server has not answered yet","shell.tryAgain":"Try again","shell.dismissStatus":"Dismiss","shell.failSave":"Could not save {field} of {record}. {reason}","shell.failSaveTyped":"Could not save {field} of {record}. {reason} You entered: {value}","shell.failSaveRecord":"Could not save {record}. {reason}","shell.failAdd":"Could not add {record}. {reason}","shell.failAddMany":"Could not add {records}. {reason}","shell.failDelete":"Could not delete {record}. {reason} It is still in the table.","shell.failDeleteMany":"Could not delete {records}. {reason} They are still in the table.","shell.failPurge":"Could not delete {record} forever. {reason} It is still in the trash.","shell.failPurgeMany":"Could not delete {records} forever. {reason} They are still in the trash.","shell.undoLeftAway":"{records} left out: someone deleted them. If they are restored, they keep the edit.","shell.failLinkGone":"The record {record} linked to was deleted forever, so this link cannot come back.","shell.linkToTrash":"The record you linked to is in the trash. The link stays empty until someone restores it.","shell.failPurgeHalf":"Could not delete {record} forever. {reason} It stopped half way, so its links may be gone and it cannot be restored. Press Delete forever again to finish.","shell.failPurgeHalfMany":"Could not delete {records} forever. {reason} It stopped half way, so their links may be gone and they cannot be restored. Press Delete forever again to finish.","shell.purgeUnderWay":"{record} cannot be restored: someone has started to delete it forever. If it stays in the trash, that delete did not finish, and Delete forever will finish it.","shell.purgeUnderWayMany":"{records} cannot be restored: someone has started to delete them forever. If they stay in the trash, that delete did not finish, and Delete forever will finish it.","shell.cannotRestorePurging":"A delete forever of this record did not finish. Its links may be gone, so it cannot be restored. Delete it forever to finish.","shell.purgeCameBack":"{record} was not deleted: someone restored it first.","shell.purgeCameBackMany":"{records} were not deleted: someone restored them first.","shell.undoPurged":"{record} was deleted forever, so it cannot come back.","shell.undoPurgedMany":"{records} were deleted forever, so they cannot come back.","shell.failRestore":"Could not put {record} back. {reason} It is still in the trash.","shell.failRestoreMany":"Could not put {records} back. {reason} They are still in the trash.","shell.failMany":"{count} changes could not be saved. {reason}","shell.why.offline":"The server could not be reached.","shell.why.noAnswer":"The server did not answer, so it may not have been stored.","shell.why.required":"This field needs a value.","shell.why.duplicate":"Another record already has this value.","shell.why.notAccepted":"The database does not accept this value.","shell.why.idTooLong":"Record ids need {need} characters; this table's id column holds {holds}. Ask whoever runs the database to make it wider.","shell.why.linked":"Other records depend on it.","shell.why.linkedCircle":"These records link to each other in a circle, and this database checks each link as it deletes, so they were not deleted. Empty the link of one of them first.","shell.why.linkRefused":"The linked record is not there, or you may not link to it. Pick another.","shell.why.noPermission":"You do not have permission to do this.","shell.why.gone":"This record no longer exists.","shell.why.notDeleted":"The database kept it, so you may not have permission.","shell.why.noRead":"The server did not answer.","shell.why.readError":"The server answered with an error. Whoever runs it can see why in its log.","shell.why.linkMissing":"The record it points to is not there.","shell.why.linkMissingField":"The record {field} points to is not there.","shell.why.linkMissingFields":"The record that {fields} point to is not there.","shell.why.serverError":"The server answered with an error. Whoever runs it can see why in its log.","shell.why.unknown":"No reason came with the error that this page may show. Whoever runs the database can see it in its log.","shell.why.said":"The server said: {said}","shell.why.readSaid":"The server answered with an error: {said}","shell.couldNotLoad":"Could not load {table}: {message}","shell.loadFailedTitle":"Could not load {table}","shell.loadTryAgain":"Try again","shell.loadTrying":"Trying again…","shell.couldNotSave":"Could not save {table}: {message}","shell.trashSaveFailed":"Could not save the trash: {message}","shell.trashReadFailed":"Could not read the trash: {message}","shell.deleted":"Deleted {what}","shell.restored":"Restored {what}","shell.theField":"the field {name}","shell.theTable":"the table {name}","shell.theView":"the view {name}","shell.stepDeleteView":"delete view {name}","shell.aField":"a field","shell.importedNewTable":"Imported {records} into a new table, {name}","shell.importedInto":"Imported {records} into {table}","shell.importedIntoFallback":"the table","shell.stepCellEdit":"cell edit","shell.stepCells.one":"{count} cell","shell.stepCells.other":"{count} cells","shell.stepResize":"resize","shell.stepMoveField":"move field","shell.stepAddRecord":"add record","shell.stepMoveRecord":"move record","shell.undoRecordStays":"Someone has changed this record since, so it stays. Delete it if it should go.","shell.undoCellStays.one":"Someone has changed this cell since, so it keeps their value.","shell.undoCellStays.other":"Someone has changed {count} of these cells since, so they keep their values.","shell.undoCellsKept.one":"Someone has changed 1 of these cells since, so it keeps their value.","shell.undoCellsKept.other":"Someone has changed {count} of these cells since, so they keep their values.","shell.undoRecordsKept.one":"Someone has changed 1 of these records since, so it keeps their value.","shell.undoRecordsKept.other":"Someone has changed {count} of these records since, so they keep their values.","shell.undoCannotCheck":"The database could not be reached to check this cell, so nothing was changed. Try again in a moment.","shell.undoStillSaving":"This record is still saving, so nothing was changed. Try again once it has saved.","shell.undoRunning":"Undo is still running.","shell.redoRunning":"Redo is still running.","shell.undoStopped":"Undo stopped: {done} of {total} records were put back. Undo again to put back the rest.","shell.redoStopped":"Redo stopped: {done} of {total} records were changed again. Redo again to do the rest.","shell.undoCellsStopped":"Undo stopped: {done} of {total} cells were put back. Undo again to put back the rest.","shell.redoCellsStopped":"Redo stopped: {done} of {total} cells were changed again. Redo again to do the rest.","shell.undoAddStopped":"Undo stopped: {done} of {total} new records were taken out. Undo again to take out the rest.","shell.redoAddStopped":"Redo stopped: {done} of {total} records were added again. Redo again to add the rest.","shell.redoDeleteStopped":"Redo stopped: {done} of {total} records were deleted again. The rest stay, and Undo brings back those it deleted.","shell.undoRecordGone":"This record has been deleted, so nothing was changed.","shell.retryChanged.one":"This cell has changed since, so it keeps its new value.","shell.retryChanged.other":"{count} cells have changed since, so they keep their new values.","shell.retryGone.one":"The record has been deleted, so this was not saved.","shell.retryGone.other":"{count} records have been deleted, so these were not saved.","shell.retryGoneTyped":'The record has been deleted, so "{value}" was not saved.',"shell.retryUnread":"The record could not be read to check it, so nothing was saved.","shell.deleteCannotRead":"The database could not be read, so these records were not deleted. Try again in a moment.","shell.pasteLeftOut.one":'"{text}" does not fit {field}, so that cell keeps its value.',"shell.pasteLeftOut.other":"{count} values do not fit their fields, so those cells keep their values.","shell.pasteLoading":"The view is still loading, so nothing was pasted. Paste again when the rows are shown.","shell.formulaInField":"In a base, a formula is a field of its own: it works out a value for every record at once.","shell.formulaMakeField":"Make a formula field","shell.formulaIsSummary":"The summary bar under the table works this out for {field}, and keeps it up to date as records change.","shell.formulaShowSummary":"Show it for {field}","shell.sumShown":"The sum of {field} is in the summary bar under the table. It keeps up as records change.","shell.sumNotNumbers":"{field} does not hold numbers, so there is nothing to add up. Select a number field and press Alt+= again.","shell.sumNoBar":"A base adds up a field in the summary bar under the table, and this view does not show one.","shell.totalRecord":"No total record needed: the summary bar under the table adds up each number field, and keeps up as records change.","shell.totalShowSums":"Show the sums","shell.formatInBase":"A base keeps no bold or colors typed into cells, so every screen reads the same data. Color rows or cells by what they hold with Color in the toolbar.","shell.formatOpenColor":"Open Color","shell.pasteNoField.one":"One column of the paste had no field to go in, so it was left out.","shell.pasteNoField.other":"{count} columns of the paste had no field to go in, so they were left out.","shell.pasteNamesLeftOut":"The first line holds the names of the fields, so it is not pasted as a record.","shell.pasteFieldsTitle.one":"Add a field for this paste?","shell.pasteFieldsTitle.other":"Add {count} fields for this paste?","shell.pasteFieldsBody.one":"The paste has one more column than the table has from here. Add a field for it:","shell.pasteFieldsBody.other":"The paste has {count} more columns than the table has from here. Add a field for each:","shell.pasteFirstLineNames":"The first line holds the names of the fields","shell.pasteWithout":"Paste without them","shell.pasteAddFields.one":"Add the field and paste","shell.pasteAddFields.other":"Add {count} fields and paste","shell.pasteNewTitle":"New records","shell.pasteNewAsk":"This paste runs past the last record. Add {records}?","shell.pasteNewConfirm":"Add records","shell.pasteNewPart":"{done} of {total} new records were added.","shell.rangeLoading":"The view is still loading, so nothing was changed. Try again when the rows are shown.","shell.rangeMovedPaste":'Records moved while this was read. Nothing was changed. Try again pastes from "{name}" down over the rows as they are now.',"shell.rangeMovedValue":'Records moved while this was read. Nothing was changed. Try again puts the value in from "{name}" down over the rows as they are now.',"shell.rangeMovedClear":'Records moved while this was read. Nothing was changed. Try again clears from "{name}" down over the rows as they are now.',"shell.rangeMovedFill":'Records moved while this was read. Nothing was changed. Try again fills from "{name}" down over the rows as they are now.',"shell.rangeMovedSelect":"Records moved while this was read. Nothing was changed. Select the cells again.","shell.rangeAnchorGone":'"{name}" is no longer among the rows shown, so nothing was changed. Select the cells again.',"shell.rangeAgainShort.one":'Only {count} row is below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was changed. Select the cells again.',"shell.rangeAgainShort.other":'Only {count} rows are below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was changed. Select the cells again.',"shell.copyAgainShort.one":'Only {count} row is below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was copied. Select the cells again.',"shell.copyAgainShort.other":'Only {count} rows are below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was copied. Select the cells again.',"shell.rangeAgainCovers":'From "{name}" down over {count} rows, selected in the view.',"shell.rangeElsewhere":"That view is no longer open, so nothing was changed.","shell.rangeViewChanged":"The view has changed since, so nothing was changed.","shell.copyElsewhere":"That view is no longer open, so nothing was copied.","shell.copyViewChanged":"The view has changed since, so nothing was copied.","shell.rangeDraftsLeft.one":"1 new record is not stored yet, so it was left out. Change it on its own row.","shell.rangeDraftsLeft.other":"{count} new records are not stored yet, so they were left out. Change them on their own rows.","shell.rangeMoveRefused":"A move can only use rows that are on screen, and {records} of this one are not loaded, so nothing moved. Copy and paste reach them.","shell.copyTitle":"Copy","shell.copyReading":"Reading the selection: {done} rows so far","shell.copyTooBig":"This selection is {cells} cells, more than the {limit} a copy can hold, so nothing was copied. Download this view instead: it holds every record.","shell.copyMovedFrom":'Records moved while this was read. Nothing was copied. Try again copies from "{name}" down over the rows as they are now.',"shell.copyMovedSelect":"Records moved while this was read. Nothing was copied. Select the cells again.","shell.copyAnchorGone":'"{name}" is no longer among the rows shown, so nothing was copied. Select the cells again.',"shell.copyFailed":"Could not read the selection, so nothing was copied: {message}","shell.copyDone":"Copied {count} rows","shell.copyReady":"{count} rows are ready. The browser needs one more click to put them on the clipboard.","shell.copyButton":"Copy","shell.copyRefused":"The browser would not put this much on the clipboard. Download this view instead.","shell.cutRefused":"The browser would not put the cells on the clipboard, so nothing was cut.","shell.cutMoved":"The selection changed before the cells reached the clipboard, so nothing was cleared.","shell.stepPasteRecords":"paste {records}","shell.stepBulkEdit":"edit {records}","shell.bulkReading":"Reading the selection: {done} records so far","shell.bulkFailed":"Could not read the selection, so nothing was changed: {message}","shell.bulkTitle":"Edit records","shell.bulkAsk":"Change {count}?","shell.bulkRuns":"Also run automations: up to {count} runs","shell.bulkRunsTime":"They run one at a time in this tab after the save: about {time} at {rate} a second. Runs left when the tab closes do not happen.","shell.bulkRunsTab":"They run one at a time in this tab after the save. Runs left when the tab closes do not happen.","shell.runsLine":"Running automations: {done} of {total}","shell.runsLineLeft":"Running automations: {done} of {total}, about {time} left","shell.runsStop":"Stop","shell.runsDone":"Automations ran on {total} changes.","shell.runsStopped":"Stopped: {done} of {total} automation runs are done. The other {left} will not run.","shell.timeSeconds":"less than a minute","shell.timeMinutes.one":"1 minute","shell.timeMinutes.other":"{count} minutes","shell.timeHours.one":"1 hour","shell.timeHours.other":"{count} hours","shell.bulkAskNoUndo":"That is too many to undo: once changed, they cannot be changed back from here.","shell.bulkConfirm":"Change records","shell.bulkWriting":"Saving {done} of {total} records...","shell.cellsWriting":"Saving {done} of {total} cells...","shell.bulkDone":"Changed {done} of {total} records","shell.bulkStopped":"Stopped: {done} of {total} records were changed.","shell.bulkFailedPart":"{done} of {total} records were changed, then the save stopped. {reason}","shell.bulkFailedUnsure":"At least {done} of {total} records were changed, then the save stopped and the database could not be read to check the last block. {reason}","shell.bulkUndoLeft":"Undo takes these back.","shell.bulkNoUndoLeft":"That is too many to undo.","shell.failSaveMany":"Could not save {records}. {reason}","shell.stepDeleteRecords":"delete {records}","shell.addColumnFailed":"The column for {field} was not added: {error}","shell.addColumnYourself":"{field} needs a column in {table} before it can store values. Add it to the database: {sql}","shell.duplicateNeedsColumn":"A copy of {field} needs a column of its own in {table}, and the base cannot add one there, so nothing was copied. Add the column to the database first: {sql}","shell.deleting":"Deleting {done} of {total} records...","shell.deleteNoTrash":"That is too many for the trash: they cannot be restored.","shell.scanDrift":"Records changed while this view was being read, so its count may be out by a few.","shell.noSqlSort":"This database cannot work out {fields}, so the view does not sort or total on it.","shell.noSqlView":"This database cannot work out {fields}, so the view cannot filter or group on it. Take it out of the filter or the grouping.","shell.deleteGroupShort":"The group {key} read back {read} records of {size}, so what was left out of the selection cannot be told apart. Nothing was deleted.","shell.deleteGroupUnknown":"How many records the group {key} holds is not known here, so what was left out of the selection cannot be told apart. Nothing was deleted. Tick what should go instead.","shell.deleteTitle":"Delete records","shell.deleteReading":"Finding the records to delete: {done} read...","shell.deleteAsk":"Delete {count}?","shell.deleteAskTrash":"They go to the trash, and undo brings them back.","shell.deleteNothing":"None of the selected records are there any more.","shell.deleteStop":"Stop","shell.deleteCancel":"Cancel","shell.deleteConfirm":"Delete","shell.deleteDone":"Deleted {done} of {total} records","shell.deleteFailed":"Could not read the selection, so nothing was deleted: {message}","shell.columnExists":"The column {column} already exists in {table}, so {field} was stored as {name}.","shell.stepAddField":"add field {name}","shell.stepChangeField":"change field {name}","shell.stepDeleteField":"delete field {name}","shell.stepAddTable":"add table {name}","shell.stepRenameTable":"rename table to {name}","shell.stepDuplicateTable":"duplicate table {name}","shell.stepDeleteTable":"delete table {name}","shell.stepRestore":"restore from the trash","shell.stepImportTable":"import {name}","shell.stepImportRecords":"import {records}","shell.tablesLabel":"Tables","shell.tableName":"Table name","shell.tableActions":"Table actions","shell.tableOptions":"{name} table options","shell.renameTable":"Rename table","shell.duplicateTable":"Duplicate table","shell.importRecordsFromFile":"Import records from a file","shell.keepOneTable":"A base keeps at least one table","shell.deleteTable":"Delete table","shell.allTables":"All tables","shell.importAsTable":"Import a file as a table","shell.importAsTableTitle":"A CSV, TSV, Excel or JSON file as a new table, with a field type for each column","shell.downloadCsv":"Download this view as CSV","shell.downloadExcel":"Download this view as Excel","shell.downloadViewTitle":"The records and fields this view shows, as they read on screen","shell.exportNothing":"This view has no records to download.","shell.excelNeedsZip":"This app cannot write Excel files yet: it needs the jszip package. Ask whoever runs it to install jszip.","shell.exportFailed":"Could not make the file. Try again.","shell.downloadSql":"Download as SQL","shell.downloadFiles":"Download the files (ZIP)","shell.downloadFilesTitle":"Every file this view shows, in a folder for each group, or for each record","shell.exportNoFiles":"This view shows no files.","shell.downloadSqlTitle":"The tables, links, records, views and automations, ready for Postgres or Supabase","shell.addTable":"Add table","shell.addTableWays":"More ways to add a table","shell.blankTable":"Blank table","shell.viewOnly":"View only","shell.viewOnlyTitle":"You can look at these tables but not change them","shell.undo":"Undo","shell.undoStep":"Undo {step}","shell.undoStepTitle":"Undo {step} (Ctrl+Z)","shell.nothingToUndo":"Nothing to undo","shell.redo":"Redo","shell.redoStep":"Redo {step}","shell.redoStepTitle":"Redo {step} (Ctrl+Shift+Z)","shell.nothingToRedo":"Nothing to redo","shell.trashButton":"Trash, {items}","shell.trashTitle":"Deleted records, fields and tables","shell.deleteNamed":"Delete {name}?","shell.deleteTableRecords.one":"Its {count} record goes with it, and so do its views.","shell.deleteTableRecords.other":"Its {count} records go with it, and so do its views.","shell.deleteTableLinks":"These fields of other tables link to it, or read a link to it, and are deleted too:","shell.readsLink":"{table}: {field} (reads {link})","shell.cancel":"Cancel","shell.searchAllTables":"Search all tables","shell.searchResults":"Search results","shell.searchRecords":"Records","shell.searchMore":"{count} more in {table}","shell.searchNone":"No records match.","shell.searchFoot":"{records} in {tables}","shell.trash":"Trash","shell.trashShow":"Show","shell.trashAll":"All","shell.trashRecords":"Records","shell.trashFields":"Fields","shell.trashTables":"Tables","shell.trashViews":"Views","shell.findInTrash":"Find in trash","shell.trashEmpty":"The trash is empty. Deleted records, fields and tables come here.","shell.trashEmptyDays":"The trash is empty. Deleted records, fields and tables come here and stay {days} days.","shell.trashNoMatch":"Nothing in the trash matches.","shell.trashItems":"Deleted items","shell.kindRecord":"Record","shell.kindView":"View","shell.kindField":"Field","shell.kindTable":"Table","shell.trashIn":"{kind} in {table}","shell.trashTableRecords.one":"{kind}, {count} record","shell.trashTableRecords.other":"{kind}, {count} records","shell.trashDeletedTable":"{name} (deleted)","shell.trashADeletedTable":"a deleted table","shell.trashBy":"by","shell.agoNow":"just now","shell.agoMinutes":"{n} min ago","shell.agoHours":"{n} h ago","shell.agoYesterday":"yesterday","shell.agoDays":"{n} days ago","shell.restore":"Restore","shell.restoreItem":"Restore {name}","shell.restoreAll":"Restore all","shell.restoreThese":"Restore these","shell.deleteForever":"Delete forever","shell.deleteItemForever":"Delete {name} forever","shell.deleteCountForever":"Delete {count} forever","shell.keepThem":"Keep them","shell.keepIt":"Keep it","shell.deleteAskForever":"Delete this forever? It cannot be undone.","shell.emptyTrash":"Empty trash","shell.trashNoteDays":"Items are deleted for good after {days} days.","shell.trashNoteKeep":"Items stay until the trash is emptied.","shell.trashNotePage":"Items stay until this page is closed or reloaded.","shell.trashNoteMarked":"Records stay in their table until they are deleted forever. Fields, views and tables stay until this page is closed or reloaded.","shell.trashClosed":"Deleted records are listed for people who may delete. Ask whoever runs this base if you need one back.","shell.trashEmptyMarked":"The trash is empty. Deleted records stay in their table and come here. Deleted fields, views and tables stay until this page is closed or reloaded.","shell.trashMore":"Showing the latest {shown} of {total} deleted records.","shell.trashEmptyPage":"The trash is empty. Deleted records, fields and tables come here and stay until this page is closed or reloaded.","shell.unnamedRecord":"Untitled record","shell.fieldFallback":"Field","shell.cannotRestoreTable":"A table with its id is in the base","shell.cannotRestoreNoTable":"Its table was deleted: restore the table first","shell.cannotRestoreRecord":"The record is in its table","shell.cannotRestoreField":"A field with its id is in the table","shell.importNewTitle":"Import a file as a new table","shell.importIntoTitle":"Import records into {table}","shell.thisTable":"this table","shell.importChoose":"Choose a CSV or Excel file","shell.importReading":"Reading the file…","shell.importDrop":"Drop a file here, or click to choose one","shell.importFormats":"CSV, TSV, Excel (.xlsx) or JSON. The first row names the columns.","shell.importNoRecords":"The file has a header row and no records.","shell.importBinary":"This file is not text. Choose a CSV, TSV, Excel (.xlsx) or JSON file.","shell.importNeedsZip":"This app cannot read Excel files yet: it needs the jszip package. Ask whoever runs it to install jszip, or import the file as CSV.","shell.importBadExcel":"This file could not be read as an Excel workbook. Open it in Excel and save it again as .xlsx.","shell.importBadJson":'This file could not be read as JSON. It needs to be a list of records: [{ "name": "Ana" }, ...].',"shell.importSeparator":"Separator","shell.importEncoding":"Encoding","shell.importComma":"Comma","shell.importSemicolon":"Semicolon","shell.importTab":"Tab","shell.importPipe":"Pipe","shell.importWarnEncoding":"This file is not UTF-8, so it was read as {encoding}. If letters look wrong, choose another encoding above.","shell.importWarnUnclosed.one":"A quote on line {line} is never closed. It was kept as text, and the rows after it were read as usual. Check that row after the import.","shell.importWarnUnclosed.other":"{count} quotes are never closed, the first on line {line}. They were kept as text, and the rows after them were read as usual. Check those rows after the import.","shell.importWarnStray.one":"A quote on line {line} is in an unusual place and was kept as text. Check that row after the import.","shell.importWarnStray.other":"{count} lines have a quote in an unusual place, the first on line {line}. They were kept as text. Check those rows after the import.","shell.importWarnLong.one":"The row on line {line} has more cells than the header row. The extra cells are in columns of their own below.","shell.importWarnLong.other":"{count} rows have more cells than the header row, the first on line {line}. The extra cells are in columns of their own below.","shell.importWarnShort.one":"The row on line {line} has fewer cells than the header row. Its missing cells stay empty.","shell.importWarnShort.other":"{count} rows have fewer cells than the header row, the first on line {line}. Their missing cells stay empty.","shell.importWarnLost.one":"1 value does not fit the field it goes to and would be left empty. Change that field type or skip the column to keep it.","shell.importWarnLost.other":"{count} values do not fit the fields they go to and would be left empty. Change those field types or skip the columns to keep them.","shell.importWarnUnmatched.one":"1 cell names a person or a record that was not found, so that name is not imported.","shell.importWarnUnmatched.other":"{count} cells name a person or a record that was not found, so those names are not imported.","shell.tablesHeading":"Tables","shell.tablesOnLeft":"Show the tables on the left","shell.tablesAsTabs":"Show the tables as tabs","shell.moveTableToSection":"Put under a heading","shell.tableSection":"Heading","shell.tableSectionHint":"Heading, or empty for none","shell.stepTableSection":"move a table under a heading","shell.importRepeatedLabel":"Records already in the table","shell.importAddAll":"Add every row as a new record","shell.importUpdateMatching":"Update the records that match, add the rest","shell.importUpdateTooBig":"This table is read a page at a time, so its records cannot all be matched here: every row is added.","shell.importMatchBy":"Match by","shell.importWillMerge":"{updated} records will be updated and {added} added. Blank cells leave a field as it is.","shell.stepImportMerge":"Import: {updated} updated, {added} added","shell.importedMerged":"{updated} records updated and {added} added in {table}.","shell.importWarnRepeated.one":"1 record has the same name as a record already in this table. Importing adds it as a second record.","shell.importWarnRepeated.other":"{count} records have the same name as records already in this table. Importing adds them as second records.","shell.importSummary.one":"{file}: {count} record, {columns} columns","shell.importSummary.other":"{file}: {count} records, {columns} columns","shell.importAnother":"Choose another file","shell.importInto":"Import into","shell.importModeNew":"A new table","shell.importModeAppend":"Add records to {table}","shell.theShownTable":"the shown table","shell.importColumn":"Column","shell.importFieldType":"Field type","shell.importFirstValues":"First values","shell.importFileColumn":"Column in the file","shell.importGoesTo":"Goes to field","shell.importNamesRecords":"names the records","shell.importFieldTypeOf":"Field type of {name}","shell.importFieldFor":"Field for {name}","shell.importSkip":"Skip this column","shell.importNoMapping":"No column goes to a field yet.","shell.importButton.one":"Import {count} record","shell.importButton.other":"Import {count} records","shell.importFieldName":"Field {n}","shell.importedName":"Imported","shell.importedRecordName":"Imported {n}","shell.deleteRecordTitle":"Delete record?","shell.deleteRecordNamed":"{name} is deleted, and its links from other records go with it.","shell.deleteRecordUnnamed":"This record is deleted, and its links from other records go with it.","shell.deleteRecord":"Delete record","shell.fieldLinksTo":"{name} links to {table}.","shell.anotherTable":"another table","shell.fieldLinkBack":"The field there that links back, {name}, is deleted with it.","shell.fieldLinksGo":"The links between the records go too.","shell.fieldReaders":"These fields read it and are deleted too: {fields}.","shell.fieldDeleted":"{name} and its values are deleted.","shell.fieldFormulas":"These formulas read it and will show #ERROR: {fields}.","shell.deleteField":"Delete field","shell.fieldUses":"Used by:","shell.usesView":"{name}: {uses}","shell.usesAutomation":"Automation {name}: it no longer reads or writes this field","shell.usesStack":"stacks its cards by it, and shows as a plain grid without it","shell.usesDates":"places its records by it, and shows as a plain grid without it","shell.usesBars":"draws its bars with it","shell.usesCover":"shows it as the card cover","shell.usesBoard":"shows it on its cards","shell.usesChart":"charts it","shell.usesFilter":"filters by it","shell.usesSort":"sorts by it","shell.usesGroup":"groups by it","shell.usesColor":"colors records by it","shell.usesForm":"asks for it","shell.usesList":"lists it","shell.usesTile":"a tile reads it","shell.cellChanged":"{field} changed to {value}","shell.cellCleared":"{field} cleared","shell.cellsChanged.one":"{count} cell changed","shell.cellsChanged.other":"{count} cells changed","shell.undoneStep":"Undone: {step}","shell.redoneStep":"Redone: {step}","shell.summarize":"Summarize","shell.summarizeField":"Summarize {field}","shell.summaryChange":"{summary} {value}, change summary","shell.summaryCount.one":"{count} record, summarize {field}","shell.summaryCount.other":"{count} records, summarize {field}","shell.recordsWord.one":"record","shell.recordsWord.other":"records","shell.summaryMenu":"Summary","shell.summary.none":"None","shell.summary.empty":"Empty","shell.summary.filled":"Filled","shell.summary.unique":"Unique","shell.summary.percentEmpty":"Percent empty","shell.summary.percentFilled":"Percent filled","shell.summary.sum":"Sum","shell.summary.avg":"Average","shell.summary.median":"Median","shell.summary.min":"Min","shell.summary.max":"Max","shell.summary.range":"Range","shell.summary.checked":"Checked","shell.summary.unchecked":"Unchecked","shell.summary.percentChecked":"Percent checked","shell.summary.earliest":"Earliest date","shell.summary.latest":"Latest date","shell.summary.dateRange":"Date range (days)","shell.searchKey":"Ctrl K","shell.tabHint":"Tab moves between cells. Press Esc, then Tab, to leave the grid.","shell.menuExpand":"Expand record","shell.menuSelect":"Select record","shell.menuDeselect":"Deselect record","shell.recordActions":"Actions for row {row}","shell.menuComment":"Comment","shell.menuInsertAbove":"Insert record above","shell.menuInsertBelow":"Insert record below","shell.menuAddSubtask":"Add subtask","shell.subtasks":"Subtasks","shell.treeNoLoop":"A record cannot go under itself or one of its own subtasks.","shell.treeMovedUnder":"{name} is now under {parent}","shell.treeMovedTop":"{name} is now at the top level","shell.menuDuplicate":"Duplicate record","shell.addField":"Add a field","shell.addRow":"Add row","shell.addRecord":"Add record","shell.groupEmpty":"Empty","shell.groupAdd":"Add a record to this group","shell.groupAddTo":"Add a record to {field} {value}","shell.groupColumn":"Group","shell.someoneElse":"Someone else","shell.unseenAdded":"{who} added this record {ago}","shell.unseenChanged":"{who} changed this record {ago}","shell.selectRow":"Select row {row}","shell.selectAllRows":"Select all rows","shell.expandRow":"Expand row","shell.expandRowN":"Expand row {row}","shell.comments.one":"{count} comment","shell.comments.other":"{count} comments","shell.commentsOnRow.one":"{count} comment on row {row}","shell.commentsOnRow.other":"{count} comments on row {row}","shell.changedBy":"{count} changed by {who}","shell.changedBySomeone":"someone else","shell.changedByOthers":"others","shell.dashboardRecords":"Records"};
1
+ export const SHELL_MESSAGES={"shell.records.one":"{count} record","shell.records.other":"{count} records","shell.tables.one":"{count} table","shell.tables.other":"{count} tables","shell.items.one":"{count} item","shell.items.other":"{count} items","shell.loadingRecords":"Loading records…","shell.deleteTableOnServer":"It leaves this base. Its records stay in the database.","shell.converting":"Converting {done} of {total} records…","shell.writingOptions":"Updating {done} records…","shell.convertTitle":"Convert the stored values?","shell.convertBody":"{name} holds {count} records in the database. Convert their values to the new type, or change the field only and leave them as they are?","shell.convertValues":"Convert the values","shell.convertKeep":"Change the field only","shell.exporting":"Exporting {done} of {total} records…","shell.copying":"Copying {done} of {total} records…","shell.reading":"Reading {done} of {total} records…","shell.saving":"Saving…","shell.allSaved":"All changes saved","shell.notSaved":"Not saved: {message}","shell.savingSlow":"Still saving: the server has not answered yet","shell.tryAgain":"Try again","shell.dismissStatus":"Dismiss","shell.failSave":"Could not save {field} of {record}. {reason}","shell.failSaveTyped":"Could not save {field} of {record}. {reason} You entered: {value}","shell.failSaveRecord":"Could not save {record}. {reason}","shell.failAdd":"Could not add {record}. {reason}","shell.failAddMany":"Could not add {records}. {reason}","shell.failDelete":"Could not delete {record}. {reason} It is still in the table.","shell.failDeleteMany":"Could not delete {records}. {reason} They are still in the table.","shell.failPurge":"Could not delete {record} forever. {reason} It is still in the trash.","shell.failPurgeMany":"Could not delete {records} forever. {reason} They are still in the trash.","shell.undoLeftAway":"{records} left out: someone deleted them. If they are restored, they keep the edit.","shell.failLinkGone":"The record {record} linked to was deleted forever, so this link cannot come back.","shell.linkToTrash":"The record you linked to is in the trash. The link stays empty until someone restores it.","shell.failPurgeHalf":"Could not delete {record} forever. {reason} It stopped half way, so its links may be gone and it cannot be restored. Press Delete forever again to finish.","shell.failPurgeHalfMany":"Could not delete {records} forever. {reason} It stopped half way, so their links may be gone and they cannot be restored. Press Delete forever again to finish.","shell.purgeUnderWay":"{record} cannot be restored: someone has started to delete it forever. If it stays in the trash, that delete did not finish, and Delete forever will finish it.","shell.purgeUnderWayMany":"{records} cannot be restored: someone has started to delete them forever. If they stay in the trash, that delete did not finish, and Delete forever will finish it.","shell.cannotRestorePurging":"A delete forever of this record did not finish. Its links may be gone, so it cannot be restored. Delete it forever to finish.","shell.purgeCameBack":"{record} was not deleted: someone restored it first.","shell.purgeCameBackMany":"{records} were not deleted: someone restored them first.","shell.undoPurged":"{record} was deleted forever, so it cannot come back.","shell.undoPurgedMany":"{records} were deleted forever, so they cannot come back.","shell.failRestore":"Could not put {record} back. {reason} It is still in the trash.","shell.failRestoreMany":"Could not put {records} back. {reason} They are still in the trash.","shell.failMany":"{count} changes could not be saved. {reason}","shell.why.offline":"The server could not be reached.","shell.why.noAnswer":"The server did not answer, so it may not have been stored.","shell.why.required":"This field needs a value.","shell.why.duplicate":"Another record already has this value.","shell.why.notAccepted":"The database does not accept this value.","shell.why.idTooLong":"Record ids need {need} characters; this table's id column holds {holds}. Ask whoever runs the database to make it wider.","shell.why.linked":"Other records depend on it.","shell.why.linkedCircle":"These records link to each other in a circle, and this database checks each link as it deletes, so they were not deleted. Empty the link of one of them first.","shell.why.linkRefused":"The linked record is not there, or you may not link to it. Pick another.","shell.why.noPermission":"You do not have permission to do this.","shell.why.gone":"This record no longer exists.","shell.why.notDeleted":"The database kept it, so you may not have permission.","shell.why.noRead":"The server did not answer.","shell.why.readError":"The server answered with an error. Whoever runs it can see why in its log.","shell.why.linkMissing":"The record it points to is not there.","shell.why.linkMissingField":"The record {field} points to is not there.","shell.why.linkMissingFields":"The record that {fields} point to is not there.","shell.why.serverError":"The server answered with an error. Whoever runs it can see why in its log.","shell.why.unknown":"No reason came with the error that this page may show. Whoever runs the database can see it in its log.","shell.why.said":"The server said: {said}","shell.why.readSaid":"The server answered with an error: {said}","shell.couldNotLoad":"Could not load {table}: {message}","shell.loadFailedTitle":"Could not load {table}","shell.loadTryAgain":"Try again","shell.loadTrying":"Trying again…","shell.couldNotSave":"Could not save {table}: {message}","shell.trashSaveFailed":"Could not save the trash: {message}","shell.trashReadFailed":"Could not read the trash: {message}","shell.deleted":"Deleted {what}","shell.restored":"Restored {what}","shell.theField":"the field {name}","shell.theTable":"the table {name}","shell.theView":"the view {name}","shell.stepDeleteView":"delete view {name}","shell.aField":"a field","shell.importedNewTable":"Imported {records} into a new table, {name}","shell.importedInto":"Imported {records} into {table}","shell.importedIntoFallback":"the table","shell.stepCellEdit":"cell edit","shell.stepCells.one":"{count} cell","shell.stepCells.other":"{count} cells","shell.stepResize":"resize","shell.stepMoveField":"move field","shell.stepAddRecord":"add record","shell.stepMoveRecord":"move record","shell.undoRecordStays":"Someone has changed this record since, so it stays. Delete it if it should go.","shell.undoCellStays.one":"Someone has changed this cell since, so it keeps their value.","shell.undoCellStays.other":"Someone has changed {count} of these cells since, so they keep their values.","shell.undoCellsKept.one":"Someone has changed 1 of these cells since, so it keeps their value.","shell.undoCellsKept.other":"Someone has changed {count} of these cells since, so they keep their values.","shell.undoRecordsKept.one":"Someone has changed 1 of these records since, so it keeps their value.","shell.undoRecordsKept.other":"Someone has changed {count} of these records since, so they keep their values.","shell.undoCannotCheck":"The database could not be reached to check this cell, so nothing was changed. Try again in a moment.","shell.undoStillSaving":"This record is still saving, so nothing was changed. Try again once it has saved.","shell.undoRunning":"Undo is still running.","shell.redoRunning":"Redo is still running.","shell.undoStopped":"Undo stopped: {done} of {total} records were put back. Undo again to put back the rest.","shell.redoStopped":"Redo stopped: {done} of {total} records were changed again. Redo again to do the rest.","shell.undoCellsStopped":"Undo stopped: {done} of {total} cells were put back. Undo again to put back the rest.","shell.redoCellsStopped":"Redo stopped: {done} of {total} cells were changed again. Redo again to do the rest.","shell.undoAddStopped":"Undo stopped: {done} of {total} new records were taken out. Undo again to take out the rest.","shell.redoAddStopped":"Redo stopped: {done} of {total} records were added again. Redo again to add the rest.","shell.redoDeleteStopped":"Redo stopped: {done} of {total} records were deleted again. The rest stay, and Undo brings back those it deleted.","shell.undoRecordGone":"This record has been deleted, so nothing was changed.","shell.retryChanged.one":"This cell has changed since, so it keeps its new value.","shell.retryChanged.other":"{count} cells have changed since, so they keep their new values.","shell.retryGone.one":"The record has been deleted, so this was not saved.","shell.retryGone.other":"{count} records have been deleted, so these were not saved.","shell.retryGoneTyped":'The record has been deleted, so "{value}" was not saved.',"shell.retryUnread":"The record could not be read to check it, so nothing was saved.","shell.deleteCannotRead":"The database could not be read, so these records were not deleted. Try again in a moment.","shell.pasteLeftOut.one":'"{text}" does not fit {field}, so that cell keeps its value.',"shell.pasteLeftOut.other":"{count} values do not fit their fields, so those cells keep their values.","shell.pasteLoading":"The view is still loading, so nothing was pasted. Paste again when the rows are shown.","shell.formulaInField":"In a base, a formula is a field of its own: it works out a value for every record at once.","shell.formulaMakeField":"Make a formula field","shell.formulaIsSummary":"The summary bar under the table works this out for {field}, and keeps it up to date as records change.","shell.formulaShowSummary":"Show it for {field}","shell.sumShown":"The sum of {field} is in the summary bar under the table. It keeps up as records change.","shell.sumNotNumbers":"{field} does not hold numbers, so there is nothing to add up. Select a number field and press Alt+= again.","shell.sumNoBar":"A base adds up a field in the summary bar under the table, and this view does not show one.","shell.totalRecord":"No total record needed: the summary bar under the table adds up each number field, and keeps up as records change.","shell.totalShowSums":"Show the sums","shell.formatInBase":"A base keeps no bold or colors typed into cells, so every screen reads the same data. Color rows or cells by what they hold with Color in the toolbar.","shell.formatOpenColor":"Open Color","shell.pasteNoField.one":"One column of the paste had no field to go in, so it was left out.","shell.pasteNoField.other":"{count} columns of the paste had no field to go in, so they were left out.","shell.pasteNamesLeftOut":"The first line holds the names of the fields, so it is not pasted as a record.","shell.pasteFieldsTitle.one":"Add a field for this paste?","shell.pasteFieldsTitle.other":"Add {count} fields for this paste?","shell.pasteFieldsBody.one":"The paste has one more column than the table has from here. Add a field for it:","shell.pasteFieldsBody.other":"The paste has {count} more columns than the table has from here. Add a field for each:","shell.pasteFirstLineNames":"The first line holds the names of the fields","shell.pasteWithout":"Paste without them","shell.pasteAddFields.one":"Add the field and paste","shell.pasteAddFields.other":"Add {count} fields and paste","shell.pasteNewTitle":"New records","shell.pasteNewAsk":"This paste runs past the last record. Add {records}?","shell.pasteNewConfirm":"Add records","shell.pasteNewPart":"{done} of {total} new records were added.","shell.rangeLoading":"The view is still loading, so nothing was changed. Try again when the rows are shown.","shell.rangeMovedPaste":'Records moved while this was read. Nothing was changed. Try again pastes from "{name}" down over the rows as they are now.',"shell.rangeMovedValue":'Records moved while this was read. Nothing was changed. Try again puts the value in from "{name}" down over the rows as they are now.',"shell.rangeMovedClear":'Records moved while this was read. Nothing was changed. Try again clears from "{name}" down over the rows as they are now.',"shell.rangeMovedFill":'Records moved while this was read. Nothing was changed. Try again fills from "{name}" down over the rows as they are now.',"shell.rangeMovedSelect":"Records moved while this was read. Nothing was changed. Select the cells again.","shell.rangeAnchorGone":'"{name}" is no longer among the rows shown, so nothing was changed. Select the cells again.',"shell.rangeAgainShort.one":'Only {count} row is below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was changed. Select the cells again.',"shell.rangeAgainShort.other":'Only {count} rows are below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was changed. Select the cells again.',"shell.copyAgainShort.one":'Only {count} row is below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was copied. Select the cells again.',"shell.copyAgainShort.other":'Only {count} rows are below "{name}" now, fewer rows than the first try covered ({covered}), so nothing was copied. Select the cells again.',"shell.rangeAgainCovers":'From "{name}" down over {count} rows, selected in the view.',"shell.rangeElsewhere":"That view is no longer open, so nothing was changed.","shell.rangeViewChanged":"The view has changed since, so nothing was changed.","shell.copyElsewhere":"That view is no longer open, so nothing was copied.","shell.copyViewChanged":"The view has changed since, so nothing was copied.","shell.rangeDraftsLeft.one":"1 new record is not stored yet, so it was left out. Change it on its own row.","shell.rangeDraftsLeft.other":"{count} new records are not stored yet, so they were left out. Change them on their own rows.","shell.rangeMoveRefused":"A move can only use rows that are on screen, and {records} of this one are not loaded, so nothing moved. Copy and paste reach them.","shell.copyTitle":"Copy","shell.copyReading":"Reading the selection: {done} rows so far","shell.copyTooBig":"This selection is {cells} cells, more than the {limit} a copy can hold, so nothing was copied. Download this view instead: it holds every record.","shell.copyMovedFrom":'Records moved while this was read. Nothing was copied. Try again copies from "{name}" down over the rows as they are now.',"shell.copyMovedSelect":"Records moved while this was read. Nothing was copied. Select the cells again.","shell.copyAnchorGone":'"{name}" is no longer among the rows shown, so nothing was copied. Select the cells again.',"shell.copyFailed":"Could not read the selection, so nothing was copied: {message}","shell.copyDone":"Copied {count} rows","shell.copyReady":"{count} rows are ready. The browser needs one more click to put them on the clipboard.","shell.copyButton":"Copy","shell.copyRefused":"The browser would not put this much on the clipboard. Download this view instead.","shell.cutRefused":"The browser would not put the cells on the clipboard, so nothing was cut.","shell.cutMoved":"The selection changed before the cells reached the clipboard, so nothing was cleared.","shell.stepPasteRecords":"paste {records}","shell.stepBulkEdit":"edit {records}","shell.bulkReading":"Reading the selection: {done} records so far","shell.bulkFailed":"Could not read the selection, so nothing was changed: {message}","shell.bulkTitle":"Edit records","shell.bulkAsk":"Change {count}?","shell.bulkRuns":"Also run automations: up to {count} runs","shell.bulkRunsTime":"They run one at a time in this tab after the save: about {time} at {rate} a second. Runs left when the tab closes do not happen.","shell.bulkRunsTab":"They run one at a time in this tab after the save. Runs left when the tab closes do not happen.","shell.runsLine":"Running automations: {done} of {total}","shell.runsLineLeft":"Running automations: {done} of {total}, about {time} left","shell.runsStop":"Stop","shell.runsDone":"Automations ran on {total} changes.","shell.runsStopped":"Stopped: {done} of {total} automation runs are done. The other {left} will not run.","shell.timeSeconds":"less than a minute","shell.timeMinutes.one":"1 minute","shell.timeMinutes.other":"{count} minutes","shell.timeHours.one":"1 hour","shell.timeHours.other":"{count} hours","shell.bulkAskNoUndo":"That is too many to undo: once changed, they cannot be changed back from here.","shell.bulkConfirm":"Change records","shell.bulkWriting":"Saving {done} of {total} records...","shell.cellsWriting":"Saving {done} of {total} cells...","shell.bulkDone":"Changed {done} of {total} records","shell.bulkStopped":"Stopped: {done} of {total} records were changed.","shell.bulkFailedPart":"{done} of {total} records were changed, then the save stopped. {reason}","shell.bulkFailedUnsure":"At least {done} of {total} records were changed, then the save stopped and the database could not be read to check the last block. {reason}","shell.bulkUndoLeft":"Undo takes these back.","shell.bulkNoUndoLeft":"That is too many to undo.","shell.failSaveMany":"Could not save {records}. {reason}","shell.stepDeleteRecords":"delete {records}","shell.addColumnFailed":"The column for {field} was not added: {error}","shell.addColumnYourself":"{field} needs a column in {table} before it can store values. Add it to the database: {sql}","shell.duplicateNeedsColumn":"A copy of {field} needs a column of its own in {table}, and the base cannot add one there, so nothing was copied. Add the column to the database first: {sql}","shell.deleting":"Deleting {done} of {total} records...","shell.deleteNoTrash":"That is too many for the trash: they cannot be restored.","shell.scanDrift":"Records changed while this view was being read, so its count may be out by a few.","shell.noSqlSort":"This database cannot work out {fields}, so the view does not sort or total on it.","shell.noSqlView":"This database cannot work out {fields}, so the view cannot filter or group on it. Take it out of the filter or the grouping.","shell.deleteGroupShort":"The group {key} read back {read} records of {size}, so what was left out of the selection cannot be told apart. Nothing was deleted.","shell.deleteGroupUnknown":"How many records the group {key} holds is not known here, so what was left out of the selection cannot be told apart. Nothing was deleted. Tick what should go instead.","shell.deleteTitle":"Delete records","shell.deleteReading":"Finding the records to delete: {done} read...","shell.deleteAsk":"Delete {count}?","shell.deleteAskTrash":"They go to the trash, and undo brings them back.","shell.deleteNothing":"None of the selected records are there any more.","shell.deleteStop":"Stop","shell.deleteCancel":"Cancel","shell.deleteConfirm":"Delete","shell.deleteDone":"Deleted {done} of {total} records","shell.deleteFailed":"Could not read the selection, so nothing was deleted: {message}","shell.columnExists":"The column {column} already exists in {table}, so {field} was stored as {name}.","shell.stepAddField":"add field {name}","shell.stepChangeField":"change field {name}","shell.stepDeleteField":"delete field {name}","shell.stepAddTable":"add table {name}","shell.stepRenameTable":"rename table to {name}","shell.stepDuplicateTable":"duplicate table {name}","shell.stepDeleteTable":"delete table {name}","shell.stepRestore":"restore from the trash","shell.stepImportTable":"import {name}","shell.stepImportRecords":"import {records}","shell.tablesLabel":"Tables","shell.tableName":"Table name","shell.tableActions":"Table actions","shell.tableOptions":"{name} table options","shell.renameTable":"Rename table","shell.duplicateTable":"Duplicate table","shell.importRecordsFromFile":"Import records from a file","shell.keepOneTable":"A base keeps at least one table","shell.deleteTable":"Delete table","shell.allTables":"All tables","shell.importAsTable":"Import a file as a table","shell.importAsTableTitle":"A CSV, TSV, Excel or JSON file as a new table, with a field type for each column","shell.downloadCsv":"Download this view as CSV","shell.downloadExcel":"Download this view as Excel","shell.downloadViewTitle":"The records and fields this view shows, as they read on screen","shell.exportNothing":"This view has no records to download.","shell.excelNeedsZip":"This app cannot write Excel files yet: it needs the jszip package. Ask whoever runs it to install jszip.","shell.exportFailed":"Could not make the file. Try again.","shell.downloadSql":"Download as SQL","shell.downloadFiles":"Download the files (ZIP)","shell.downloadFilesTitle":"Every file this view shows, in a folder for each group, or for each record","shell.exportNoFiles":"This view shows no files.","shell.downloadSqlTitle":"The tables, links, records, views and automations, ready for Postgres or Supabase","shell.addTable":"Add table","shell.addTableWays":"More ways to add a table","shell.blankTable":"Blank table","shell.viewOnly":"View only","shell.viewOnlyTitle":"You can look at these tables but not change them","shell.undo":"Undo","shell.undoStep":"Undo {step}","shell.undoStepTitle":"Undo {step} (Ctrl+Z)","shell.nothingToUndo":"Nothing to undo","shell.redo":"Redo","shell.redoStep":"Redo {step}","shell.redoStepTitle":"Redo {step} (Ctrl+Shift+Z)","shell.nothingToRedo":"Nothing to redo","shell.trashButton":"Trash, {items}","shell.trashTitle":"Deleted records, fields and tables","shell.deleteNamed":"Delete {name}?","shell.deleteTableRecords.one":"Its {count} record goes with it, and so do its views.","shell.deleteTableRecords.other":"Its {count} records go with it, and so do its views.","shell.deleteTableLinks":"These fields of other tables link to it, or read a link to it, and are deleted too:","shell.readsLink":"{table}: {field} (reads {link})","shell.cancel":"Cancel","shell.searchAllTables":"Search all tables","shell.searchResults":"Search results","shell.searchRecords":"Records","shell.searchMore":"{count} more in {table}","shell.searchNone":"No records match.","shell.searchFoot":"{records} in {tables}","shell.trash":"Trash","shell.trashShow":"Show","shell.trashAll":"All","shell.trashRecords":"Records","shell.trashFields":"Fields","shell.trashTables":"Tables","shell.trashViews":"Views","shell.findInTrash":"Find in trash","shell.trashEmpty":"The trash is empty. Deleted records, fields and tables come here.","shell.trashEmptyDays":"The trash is empty. Deleted records, fields and tables come here and stay {days} days.","shell.trashNoMatch":"Nothing in the trash matches.","shell.trashItems":"Deleted items","shell.kindRecord":"Record","shell.kindView":"View","shell.kindField":"Field","shell.kindTable":"Table","shell.trashIn":"{kind} in {table}","shell.trashTableRecords.one":"{kind}, {count} record","shell.trashTableRecords.other":"{kind}, {count} records","shell.trashDeletedTable":"{name} (deleted)","shell.trashADeletedTable":"a deleted table","shell.trashBy":"by","shell.agoNow":"just now","shell.agoMinutes":"{n} min ago","shell.agoHours":"{n} h ago","shell.agoYesterday":"yesterday","shell.agoDays":"{n} days ago","shell.restore":"Restore","shell.restoreItem":"Restore {name}","shell.restoreAll":"Restore all","shell.restoreThese":"Restore these","shell.deleteForever":"Delete forever","shell.deleteItemForever":"Delete {name} forever","shell.deleteCountForever":"Delete {count} forever","shell.keepThem":"Keep them","shell.keepIt":"Keep it","shell.deleteAskForever":"Delete this forever? It cannot be undone.","shell.emptyTrash":"Empty trash","shell.trashNoteDays":"Items are deleted for good after {days} days.","shell.trashNoteKeep":"Items stay until the trash is emptied.","shell.trashNotePage":"Items stay until this page is closed or reloaded.","shell.trashNoteMarked":"Records stay in their table until they are deleted forever. Fields, views and tables stay until this page is closed or reloaded.","shell.trashClosed":"Deleted records are listed for people who may delete. Ask whoever runs this base if you need one back.","shell.trashEmptyMarked":"The trash is empty. Deleted records stay in their table and come here. Deleted fields, views and tables stay until this page is closed or reloaded.","shell.trashMore":"Showing the latest {shown} of {total} deleted records.","shell.trashEmptyPage":"The trash is empty. Deleted records, fields and tables come here and stay until this page is closed or reloaded.","shell.unnamedRecord":"Untitled record","shell.fieldFallback":"Field","shell.cannotRestoreTable":"A table with its id is in the base","shell.cannotRestoreNoTable":"Its table was deleted: restore the table first","shell.cannotRestoreRecord":"The record is in its table","shell.cannotRestoreField":"A field with its id is in the table","shell.importNewTitle":"Import a file as a new table","shell.importIntoTitle":"Import records into {table}","shell.thisTable":"this table","shell.importChoose":"Choose a CSV or Excel file","shell.importReading":"Reading the file…","shell.importDrop":"Drop a file here, or click to choose one","shell.importFormats":"CSV, TSV, Excel (.xlsx) or JSON. The first row names the columns.","shell.importNoRecords":"The file has a header row and no records.","shell.importBinary":"This file is not text. Choose a CSV, TSV, Excel (.xlsx) or JSON file.","shell.importNeedsZip":"This app cannot read Excel files yet: it needs the jszip package. Ask whoever runs it to install jszip, or import the file as CSV.","shell.importBadExcel":"This file could not be read as an Excel workbook. Open it in Excel and save it again as .xlsx.","shell.importBadJson":'This file could not be read as JSON. It needs to be a list of records: [{ "name": "Ana" }, ...].',"shell.importSeparator":"Separator","shell.importEncoding":"Encoding","shell.importComma":"Comma","shell.importSemicolon":"Semicolon","shell.importTab":"Tab","shell.importPipe":"Pipe","shell.importWarnEncoding":"This file is not UTF-8, so it was read as {encoding}. If letters look wrong, choose another encoding above.","shell.importWarnUnclosed.one":"A quote on line {line} is never closed. It was kept as text, and the rows after it were read as usual. Check that row after the import.","shell.importWarnUnclosed.other":"{count} quotes are never closed, the first on line {line}. They were kept as text, and the rows after them were read as usual. Check those rows after the import.","shell.importWarnStray.one":"A quote on line {line} is in an unusual place and was kept as text. Check that row after the import.","shell.importWarnStray.other":"{count} lines have a quote in an unusual place, the first on line {line}. They were kept as text. Check those rows after the import.","shell.importWarnLong.one":"The row on line {line} has more cells than the header row. The extra cells are in columns of their own below.","shell.importWarnLong.other":"{count} rows have more cells than the header row, the first on line {line}. The extra cells are in columns of their own below.","shell.importWarnShort.one":"The row on line {line} has fewer cells than the header row. Its missing cells stay empty.","shell.importWarnShort.other":"{count} rows have fewer cells than the header row, the first on line {line}. Their missing cells stay empty.","shell.importWarnLost.one":"1 value does not fit the field it goes to and would be left empty. Change that field type or skip the column to keep it.","shell.importWarnLost.other":"{count} values do not fit the fields they go to and would be left empty. Change those field types or skip the columns to keep them.","shell.importWarnUnmatched.one":"1 cell names a person or a record that was not found, so that name is not imported.","shell.importWarnUnmatched.other":"{count} cells name a person or a record that was not found, so those names are not imported.","shell.tablesHeading":"Tables","shell.tablesOnLeft":"Show the tables on the left","shell.tablesAsTabs":"Show the tables as tabs","shell.moveTableToSection":"Put under a heading","shell.tableSection":"Heading","shell.tableSectionHint":"Heading, or empty for none","shell.stepTableSection":"move a table under a heading","shell.stepPageOn":"open the records of {name} as pages","shell.stepPageOff":"open the records of {name} as fields","shell.importRepeatedLabel":"Records already in the table","shell.importAddAll":"Add every row as a new record","shell.importUpdateMatching":"Update the records that match, add the rest","shell.importUpdateTooBig":"This table is read a page at a time, so its records cannot all be matched here: every row is added.","shell.importMatchBy":"Match by","shell.importWillMerge":"{updated} records will be updated and {added} added. Blank cells leave a field as it is.","shell.stepImportMerge":"Import: {updated} updated, {added} added","shell.importedMerged":"{updated} records updated and {added} added in {table}.","shell.importWarnRepeated.one":"1 record has the same name as a record already in this table. Importing adds it as a second record.","shell.importWarnRepeated.other":"{count} records have the same name as records already in this table. Importing adds them as second records.","shell.importSummary.one":"{file}: {count} record, {columns} columns","shell.importSummary.other":"{file}: {count} records, {columns} columns","shell.importAnother":"Choose another file","shell.importInto":"Import into","shell.importModeNew":"A new table","shell.importModeAppend":"Add records to {table}","shell.theShownTable":"the shown table","shell.importColumn":"Column","shell.importFieldType":"Field type","shell.importFirstValues":"First values","shell.importFileColumn":"Column in the file","shell.importGoesTo":"Goes to field","shell.importNamesRecords":"names the records","shell.importFieldTypeOf":"Field type of {name}","shell.importFieldFor":"Field for {name}","shell.importSkip":"Skip this column","shell.importNoMapping":"No column goes to a field yet.","shell.importButton.one":"Import {count} record","shell.importButton.other":"Import {count} records","shell.importFieldName":"Field {n}","shell.importedName":"Imported","shell.importedRecordName":"Imported {n}","shell.deleteRecordTitle":"Delete record?","shell.deleteRecordNamed":"{name} is deleted, and its links from other records go with it.","shell.deleteRecordUnnamed":"This record is deleted, and its links from other records go with it.","shell.deleteRecord":"Delete record","shell.fieldLinksTo":"{name} links to {table}.","shell.anotherTable":"another table","shell.fieldLinkBack":"The field there that links back, {name}, is deleted with it.","shell.fieldLinksGo":"The links between the records go too.","shell.fieldReaders":"These fields read it and are deleted too: {fields}.","shell.fieldDeleted":"{name} and its values are deleted.","shell.fieldFormulas":"These formulas read it and will show #ERROR: {fields}.","shell.deleteField":"Delete field","shell.fieldUses":"Used by:","shell.usesView":"{name}: {uses}","shell.usesAutomation":"Automation {name}: it no longer reads or writes this field","shell.usesStack":"stacks its cards by it, and shows as a plain grid without it","shell.usesDates":"places its records by it, and shows as a plain grid without it","shell.usesBars":"draws its bars with it","shell.usesCover":"shows it as the card cover","shell.usesBoard":"shows it on its cards","shell.usesChart":"charts it","shell.usesFilter":"filters by it","shell.usesSort":"sorts by it","shell.usesGroup":"groups by it","shell.usesColor":"colors records by it","shell.usesForm":"asks for it","shell.usesList":"lists it","shell.usesTile":"a tile reads it","shell.cellChanged":"{field} changed to {value}","shell.cellCleared":"{field} cleared","shell.cellsChanged.one":"{count} cell changed","shell.cellsChanged.other":"{count} cells changed","shell.undoneStep":"Undone: {step}","shell.redoneStep":"Redone: {step}","shell.summarize":"Summarize","shell.summarizeField":"Summarize {field}","shell.summaryChange":"{summary} {value}, change summary","shell.summaryCount.one":"{count} record, summarize {field}","shell.summaryCount.other":"{count} records, summarize {field}","shell.recordsWord.one":"record","shell.recordsWord.other":"records","shell.summaryMenu":"Summary","shell.summary.none":"None","shell.summary.empty":"Empty","shell.summary.filled":"Filled","shell.summary.unique":"Unique","shell.summary.percentEmpty":"Percent empty","shell.summary.percentFilled":"Percent filled","shell.summary.sum":"Sum","shell.summary.avg":"Average","shell.summary.median":"Median","shell.summary.min":"Min","shell.summary.max":"Max","shell.summary.range":"Range","shell.summary.checked":"Checked","shell.summary.unchecked":"Unchecked","shell.summary.percentChecked":"Percent checked","shell.summary.earliest":"Earliest date","shell.summary.latest":"Latest date","shell.summary.dateRange":"Date range (days)","shell.searchKey":"Ctrl K","shell.tabHint":"Tab moves between cells. Press Esc, then Tab, to leave the grid.","shell.menuExpand":"Expand record","shell.menuSelect":"Select record","shell.menuDeselect":"Deselect record","shell.recordActions":"Actions for row {row}","shell.menuComment":"Comment","shell.menuInsertAbove":"Insert record above","shell.menuInsertBelow":"Insert record below","shell.menuAddSubtask":"Add subtask","shell.subtasks":"Subtasks","shell.treeNoLoop":"A record cannot go under itself or one of its own subtasks.","shell.treeMovedUnder":"{name} is now under {parent}","shell.treeMovedTop":"{name} is now at the top level","shell.menuDuplicate":"Duplicate record","shell.addField":"Add a field","shell.addRow":"Add row","shell.addRecord":"Add record","shell.groupEmpty":"Empty","shell.groupAdd":"Add a record to this group","shell.groupAddTo":"Add a record to {field} {value}","shell.groupColumn":"Group","shell.someoneElse":"Someone else","shell.unseenAdded":"{who} added this record {ago}","shell.unseenChanged":"{who} changed this record {ago}","shell.selectRow":"Select row {row}","shell.selectAllRows":"Select all rows","shell.expandRow":"Expand row","shell.expandRowN":"Expand row {row}","shell.comments.one":"{count} comment","shell.comments.other":"{count} comments","shell.commentsOnRow.one":"{count} comment on row {row}","shell.commentsOnRow.other":"{count} comments on row {row}","shell.changedBy":"{count} changed by {who}","shell.changedBySomeone":"someone else","shell.changedByOthers":"others","shell.dashboardRecords":"Records"};
@@ -1113,6 +1113,124 @@ export declare const BASE_MESSAGES: {
1113
1113
  readonly 'record.showThread.other': "Show {count} comments";
1114
1114
  readonly 'record.hideThread': "Hide";
1115
1115
  readonly 'record.threadReplies': "Replies";
1116
+ readonly 'record.page': "Page";
1117
+ readonly 'record.pageMenu': "Page settings";
1118
+ readonly 'record.asPages': "Open records as pages";
1119
+ readonly 'record.asPagesHint': "Each record opens as a page: its name as the title, its fields in a short block, then a document across the width.";
1120
+ readonly 'record.pageBody': "Page text";
1121
+ readonly 'record.pageNewBody': "New field \"Page\"";
1122
+ readonly 'record.pageBodyName': "Page";
1123
+ readonly 'record.pageIconName': "Icon";
1124
+ readonly 'record.pageCover': "Cover picture";
1125
+ readonly 'record.pageNoCover': "None";
1126
+ readonly 'record.addIcon': "Add icon";
1127
+ readonly 'record.changeIcon': "Change icon";
1128
+ readonly 'record.removeIcon': "Remove icon";
1129
+ readonly 'record.iconPicker': "Pick an icon";
1130
+ readonly 'record.iconTyped': "Or type or paste one";
1131
+ readonly 'record.addCover': "Add cover";
1132
+ readonly 'record.changeCover': "Change cover";
1133
+ readonly 'record.coverUploading': "Uploading the picture...";
1134
+ readonly 'record.moreFields.one': "{count} more field";
1135
+ readonly 'record.moreFields.other': "{count} more fields";
1136
+ readonly 'record.fewerFields': "Fewer fields";
1137
+ readonly 'record.pageEmpty': "Write here...";
1138
+ readonly 'record.pagePlaceholder': "Type '/' for blocks";
1139
+ readonly 'record.pageEditor': "Page text";
1140
+ readonly 'record.slashMenu': "Blocks";
1141
+ readonly 'record.slashNone': "No block called that";
1142
+ readonly 'record.blockText': "Text";
1143
+ readonly 'record.blockTextHint': "Just start writing";
1144
+ readonly 'record.blockH1': "Heading 1";
1145
+ readonly 'record.blockH1Hint': "A big section heading";
1146
+ readonly 'record.blockH2': "Heading 2";
1147
+ readonly 'record.blockH2Hint': "A medium section heading";
1148
+ readonly 'record.blockH3': "Heading 3";
1149
+ readonly 'record.blockH3Hint': "A small section heading";
1150
+ readonly 'record.blockBullet': "Bulleted list";
1151
+ readonly 'record.blockBulletHint': "A simple list";
1152
+ readonly 'record.blockNumbered': "Numbered list";
1153
+ readonly 'record.blockNumberedHint': "A list in order";
1154
+ readonly 'record.blockTodo': "To-do list";
1155
+ readonly 'record.blockTodoHint': "Things to do, with a tick box";
1156
+ readonly 'record.blockToggle': "Toggle list";
1157
+ readonly 'record.blockToggleHint': "Hide what is inside until opened";
1158
+ readonly 'record.blockToggleH1': "Toggle heading 1";
1159
+ readonly 'record.blockToggleH2': "Toggle heading 2";
1160
+ readonly 'record.blockToggleH3': "Toggle heading 3";
1161
+ readonly 'record.blockToggleHHint': "A heading that folds what is under it";
1162
+ readonly 'record.blockQuote': "Quote";
1163
+ readonly 'record.blockQuoteHint': "Words someone said or wrote";
1164
+ readonly 'record.blockCallout': "Callout";
1165
+ readonly 'record.blockCalloutHint': "Make a note stand out";
1166
+ readonly 'record.blockDivider': "Divider";
1167
+ readonly 'record.blockDividerHint': "A line between parts";
1168
+ readonly 'record.blockCode': "Code";
1169
+ readonly 'record.blockCodeHint': "Code, kept as typed";
1170
+ readonly 'record.blockColumns2': "2 columns";
1171
+ readonly 'record.blockColumns3': "3 columns";
1172
+ readonly 'record.blockColumnsHint': "Blocks side by side";
1173
+ readonly 'record.blockMenu': "Block menu";
1174
+ readonly 'record.blockHandle': "Drag to move, click for the menu";
1175
+ readonly 'record.blockAdd': "Add a block below";
1176
+ readonly 'record.turnInto': "Turn into";
1177
+ readonly 'record.blockColor': "Colour";
1178
+ readonly 'record.blockDuplicate': "Duplicate";
1179
+ readonly 'record.blockDelete': "Delete";
1180
+ readonly 'record.colorDefault': "Default";
1181
+ readonly 'record.colorGray': "Grey";
1182
+ readonly 'record.colorBrown': "Brown";
1183
+ readonly 'record.colorOrange': "Orange";
1184
+ readonly 'record.colorYellow': "Yellow";
1185
+ readonly 'record.colorGreen': "Green";
1186
+ readonly 'record.colorBlue': "Blue";
1187
+ readonly 'record.colorPurple': "Purple";
1188
+ readonly 'record.colorPink': "Pink";
1189
+ readonly 'record.colorRed': "Red";
1190
+ readonly 'record.textColor': "Text colour";
1191
+ readonly 'record.highlight': "Highlight";
1192
+ readonly 'record.markBold': "Bold";
1193
+ readonly 'record.markItalic': "Italic";
1194
+ readonly 'record.markUnderline': "Underline";
1195
+ readonly 'record.markStrike': "Strikethrough";
1196
+ readonly 'record.markCode': "Code";
1197
+ readonly 'record.markLink': "Link";
1198
+ readonly 'record.linkAsk': "Paste or type a link";
1199
+ readonly 'record.linkRemove': "Remove link";
1200
+ readonly 'record.pageSaving': "Saving...";
1201
+ readonly 'record.blockPage': "Page";
1202
+ readonly 'record.blockPageHint': "A page inside this one";
1203
+ readonly 'record.blockToc': "Table of contents";
1204
+ readonly 'record.blockTocHint': "The headings of this page, as links";
1205
+ readonly 'record.mentionMenu': "Pages";
1206
+ readonly 'record.mentionNone': "No page called that";
1207
+ readonly 'record.subpages': "Pages inside";
1208
+ readonly 'record.linkedFrom': "Linked from";
1209
+ readonly 'record.parentPageName': "Parent page";
1210
+ readonly 'record.breadcrumb': "Where this page is";
1211
+ readonly 'record.pageFilesName': "Page files";
1212
+ readonly 'record.pageNoFiles': "Pictures and files cannot be added to this page.";
1213
+ readonly 'record.blockImage': "Picture";
1214
+ readonly 'record.blockImageHint': "Upload a picture";
1215
+ readonly 'record.blockFile': "File";
1216
+ readonly 'record.blockFileHint': "Upload a file to download";
1217
+ readonly 'record.blockVideo': "Video";
1218
+ readonly 'record.blockVideoHint': "YouTube, Vimeo or Loom";
1219
+ readonly 'record.blockEmbed': "Embed";
1220
+ readonly 'record.blockEmbedHint': "Google Docs, Sheets, Maps, Figma and more";
1221
+ readonly 'record.blockBookmark': "Bookmark";
1222
+ readonly 'record.blockBookmarkHint': "A link as a card with its title";
1223
+ readonly 'record.askVideo': "Paste a YouTube, Vimeo or Loom link";
1224
+ readonly 'record.askEmbed': "Paste a link to show in the page";
1225
+ readonly 'record.askBookmark': "Paste a link";
1226
+ readonly 'record.makeEmbed': "Show it";
1227
+ readonly 'record.makeBookmark': "Add bookmark";
1228
+ readonly 'record.embedWhich': "YouTube, Vimeo, Loom, Google Docs, Sheets, Slides, Forms and Maps, Figma, Miro, Spotify and Calendly show in the page; other links stay links.";
1229
+ readonly 'record.pageConflict': "Someone else changed this page while you were writing. Nothing is saved until you choose.";
1230
+ readonly 'record.pageKeepMine': "Keep my version";
1231
+ readonly 'record.pageShowTheirs': "Show theirs";
1232
+ readonly 'record.copyLink': "Copy link";
1233
+ readonly 'record.linkCopied': "Link copied";
1116
1234
  readonly 'viewbar.board.board': "Board";
1117
1235
  readonly 'viewbar.board.addCard': "+ Add a card";
1118
1236
  readonly 'viewbar.board.addCardTo': "Add card to {lane}";
@@ -2048,6 +2166,8 @@ export declare const BASE_MESSAGES: {
2048
2166
  readonly 'shell.tableSection': "Heading";
2049
2167
  readonly 'shell.tableSectionHint': "Heading, or empty for none";
2050
2168
  readonly 'shell.stepTableSection': "move a table under a heading";
2169
+ readonly 'shell.stepPageOn': "open the records of {name} as pages";
2170
+ readonly 'shell.stepPageOff': "open the records of {name} as fields";
2051
2171
  readonly 'shell.importRepeatedLabel': "Records already in the table";
2052
2172
  readonly 'shell.importAddAll': "Add every row as a new record";
2053
2173
  readonly 'shell.importUpdateMatching': "Update the records that match, add the rest";
@@ -0,0 +1,22 @@
1
+ <script lang="ts">
2
+ import{onMount}from"svelte";import{bm}from"../messages.svelte";let{value,onPick,onClose}=$props();const EMOJI=["📄","📝","📌","📎","📁","🗂️","📚","📖","🗒️","✅","☑️","⭐","💡","🎯","🚀","🔥","⚡","🏁","🧭","🗺️","📍","🏠","🏢","🏗️","👋","🙂","😀","🤝","👥","🧑‍💼","🧑‍💻","🧑‍🔧","🧑‍🏫","🎓","💼","🛠️","📅","⏰","⏳","📈","📊","💰","💶","💳","🧾","📦","🛒","🚚","📞","✉️","💬","📣","🔔","🔒","🔑","⚙️","🧪","🩺","❤️","🌱","🍀","☀️","🌙","🌍","🎨","🎬","🎵","📷","🍽️","☕","🎉","🏆"];const COLS=12;let typed=$state("");let box=$state(null);onMount(()=>{box?.querySelector(".sv-fpg-emoji.is-on, .sv-fpg-emoji")?.focus();const away=e=>{if(box&&!box.contains(e.target))onClose()};const t=setTimeout(()=>document.addEventListener("pointerdown",away,true),0);return()=>{clearTimeout(t);document.removeEventListener("pointerdown",away,true)}});function keys(e){if(e.key==="Escape"){e.preventDefault();e.stopPropagation();onClose();return}const list=[...box?.querySelectorAll(".sv-fpg-emoji")??[]];const at=list.indexOf(document.activeElement);if(at<0)return;const step=e.key==="ArrowRight"?1:e.key==="ArrowLeft"?-1:e.key==="ArrowDown"?COLS:e.key==="ArrowUp"?-COLS:0;if(!step)return;e.preventDefault();list[Math.max(0,Math.min(list.length-1,at+step))]?.focus()}function firstGlyph(text){const t=text.trim();if(!t)return"";const Seg=Intl.Segmenter;if(Seg)for(const s of new Seg(void 0,{granularity:"grapheme"}).segment(t))return s.segment;return Array.from(t)[0]??""}
3
+ </script>
4
+
5
+
6
+ <div class="sv-fpg-picker" role="dialog" aria-label={bm('record.iconPicker')} bind:this={box} onkeydown={keys}>
7
+ <div class="sv-fpg-grid" role="group" aria-label={bm('record.iconPicker')}>
8
+ {#each EMOJI as e (e)}
9
+ <button type="button" class="sv-fpg-emoji" class:is-on={e === value} aria-pressed={e === value} onclick={() => onPick(e)}>{e}</button>
10
+ {/each}
11
+ </div>
12
+ <form class="sv-fpg-typed" onsubmit={(e) => { e.preventDefault(); const g = firstGlyph(typed); if (g) onPick(g) }}>
13
+ <input class="sv-fvb-input" maxlength="16" placeholder={bm('record.iconTyped')} aria-label={bm('record.iconTyped')} bind:value={typed} />
14
+ </form>
15
+ {#if value}
16
+ <button type="button" class="sv-fpg-remove" onclick={() => onPick(null)}>{bm('record.removeIcon')}</button>
17
+ {/if}
18
+ </div>
19
+
20
+ <style>
21
+ .sv-fpg-picker{position:absolute;z-index:5;top:100%;inset-inline-start:0;margin-top:4px;width:min(420px,90vw);padding:8px;border:1px solid var(--sg-border, #e2e8f0);border-radius:10px;background:var(--sg-bg, #fff);box-shadow:0 12px 32px #0f172a29;display:grid;gap:8px}.sv-fpg-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:2px}.sv-fpg-emoji{aspect-ratio:1;display:grid;place-items:center;border:0;border-radius:6px;background:none;font-size:20px;line-height:1;cursor:pointer;padding:0}.sv-fpg-emoji:hover,.sv-fpg-emoji:focus-visible{background:var(--sg-row-hover-bg, #f1f5f9);outline:none}.sv-fpg-emoji.is-on{background:color-mix(in srgb,var(--sg-accent, #2563eb) 14%,transparent)}.sv-fpg-typed input{width:100%;box-sizing:border-box}.sv-fpg-remove{justify-self:start;padding:0;border:0;background:none;font:inherit;font-size:12px;color:var(--sg-muted, #64748b);cursor:pointer}.sv-fpg-remove:hover{color:var(--sg-fg, #0f172a);text-decoration:underline}
22
+ </style>
@@ -0,0 +1,8 @@
1
+ type $$ComponentProps = {
2
+ value: string;
3
+ onPick: (icon: string | null) => void;
4
+ onClose: () => void;
5
+ };
6
+ declare const EmojiPicker: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type EmojiPicker = ReturnType<typeof EmojiPicker>;
8
+ export default EmojiPicker;
@@ -0,0 +1,155 @@
1
+ <script lang="ts">
2
+ import{onDestroy,onMount,tick}from"svelte";import{createPageEditor,loadPageEditor}from"./page-editor";import{PAGE_COLORS}from"./page-schema";import{bm}from"../messages.svelte";let{html,editable=true,onSave,onUnavailable,upload,preview,onError,records}=$props();let uploading=$state(0);let root=$state(null);let mount=$state(null);let ed=$state.raw(null);let saved=html;let pending=null;let timer;const PAUSE=1500;function changed(next){pending=next;clearTimeout(timer);if(!theirs)timer=setTimeout(flush,PAUSE)}let theirs=$state(null);function keepMine(){const mine=pending??ed?.html()??saved;theirs=null;pending=mine;saved="\0";flush()}function showTheirs(){const t=theirs;theirs=null;pending=null;if(t==null)return;saved=t;ed?.setHtml(t)}function flush(){clearTimeout(timer);if(theirs!=null)return;if(pending==null||pending===saved)return void(pending=null);saved=pending;pending=null;onSave(saved)}onMount(()=>{let gone=false;void loadPageEditor().then(pm=>{if(gone||!mount)return;if(!pm)return onUnavailable?.();ed=createPageEditor(pm,mount,{html,editable,placeholder:bm("record.pagePlaceholder"),onChange:changed,onSlash:s=>void slashChanged(s),onSelection:()=>selTick+=1,upload,records,onMention:s=>void mentionChanged(s),onUploading:n=>uploading=n,onError,onEscape:()=>{if(blockMenu){blockMenu=null;return true}if(linking){linking=false;return true}return false}})});return()=>{gone=true}});onDestroy(()=>{flush();ed?.destroy()});$effect(()=>{const now=html;if(!ed||now===saved)return;if(pending==null){saved=now;ed.setHtml(now)}else{clearTimeout(timer);theirs=now}});$effect(()=>{ed?.setEditable(editable)});const ITEMS=$derived([{kind:"text",label:bm("record.blockText"),hint:bm("record.blockTextHint"),words:"text paragraph plain",icon:"T"},{kind:"h1",label:bm("record.blockH1"),hint:bm("record.blockH1Hint"),words:"heading title h1 #",icon:"H1"},{kind:"h2",label:bm("record.blockH2"),hint:bm("record.blockH2Hint"),words:"heading subtitle h2 ##",icon:"H2"},{kind:"h3",label:bm("record.blockH3"),hint:bm("record.blockH3Hint"),words:"heading h3 ###",icon:"H3"},{kind:"bullet",label:bm("record.blockBullet"),hint:bm("record.blockBulletHint"),words:"bulleted list unordered ul -",icon:"•"},{kind:"numbered",label:bm("record.blockNumbered"),hint:bm("record.blockNumberedHint"),words:"numbered list ordered ol 1.",icon:"1."},{kind:"todo",label:bm("record.blockTodo"),hint:bm("record.blockTodoHint"),words:"todo to-do task checkbox check []",icon:"☑"},{kind:"toggle",label:bm("record.blockToggle"),hint:bm("record.blockToggleHint"),words:"toggle fold collapse details",icon:"▸"},{kind:"toggleH1",label:bm("record.blockToggleH1"),hint:bm("record.blockToggleHHint"),words:"toggle heading h1",icon:"▸H1"},{kind:"toggleH2",label:bm("record.blockToggleH2"),hint:bm("record.blockToggleHHint"),words:"toggle heading h2",icon:"▸H2"},{kind:"toggleH3",label:bm("record.blockToggleH3"),hint:bm("record.blockToggleHHint"),words:"toggle heading h3",icon:"▸H3"},{kind:"quote",label:bm("record.blockQuote"),hint:bm("record.blockQuoteHint"),words:"quote blockquote >",icon:"“"},{kind:"callout",label:bm("record.blockCallout"),hint:bm("record.blockCalloutHint"),words:"callout note tip warning box",icon:"💡"},{kind:"divider",label:bm("record.blockDivider"),hint:bm("record.blockDividerHint"),words:"divider line separator hr ---",icon:"—"},{kind:"code",label:bm("record.blockCode"),hint:bm("record.blockCodeHint"),words:"code snippet pre ```",icon:"</>"},{kind:"columns2",label:bm("record.blockColumns2"),hint:bm("record.blockColumnsHint"),words:"columns two side by side layout",icon:"▥"},{kind:"columns3",label:bm("record.blockColumns3"),hint:bm("record.blockColumnsHint"),words:"columns three side by side layout",icon:"▥"},...upload?[{kind:"image",label:bm("record.blockImage"),hint:bm("record.blockImageHint"),words:"image picture photo upload",icon:"🖼"},{kind:"file",label:bm("record.blockFile"),hint:bm("record.blockFileHint"),words:"file upload attachment pdf document",icon:"📎"}]:[],...records?[{kind:"page",label:bm("record.blockPage"),hint:bm("record.blockPageHint"),words:"page subpage sub-page child nested",icon:"📄"}]:[],{kind:"toc",label:bm("record.blockToc"),hint:bm("record.blockTocHint"),words:"table of contents toc headings outline",icon:"☰"},{kind:"video",label:bm("record.blockVideo"),hint:bm("record.blockVideoHint"),words:"video youtube vimeo loom",icon:"▶"},{kind:"embed",label:bm("record.blockEmbed"),hint:bm("record.blockEmbedHint"),words:"embed google docs sheets maps figma miro spotify calendly",icon:"⧉"},{kind:"bookmark",label:bm("record.blockBookmark"),hint:bm("record.blockBookmarkHint"),words:"bookmark link web page url",icon:"🔖"}]);let asking=$state(null);let askText=$state("");let askBusy=$state(false);let picker=$state(null);let pickFor=null;async function askDone(e){e.preventDefault();const a=asking;const v=askText.trim();if(!a||!v||!ed)return;const href=/^[a-z][a-z0-9+.-]*:/i.test(v)?v:`https://${v}`;if(a.kind==="bookmark"){askBusy=true;let card={title:href,description:"",site:""};try{if(preview)card=await preview(href)}catch{}askBusy=false;ed.insertBookmark(href,card,a.range)}else ed.insertEmbed(href,a.range);asking=null;askText=""}function picked(e){const input=e.currentTarget;const files=Array.from(input.files??[]);input.value="";if(files.length&&ed&&pickFor)void ed.insertFiles(files,pickFor.range);pickFor=null}let slash=$state(null);let slashAt=$state(null);let slashIndex=$state(0);const found=$derived.by(()=>{const q=(slash?.query??"").trim().toLocaleLowerCase();if(!q)return ITEMS;return ITEMS.filter(i=>i.label.toLocaleLowerCase().includes(q)||i.words.split(" ").some(w=>w.startsWith(q)))});async function slashChanged(s){const opening=s&&!slash;slash=s;if(!s||!ed||!root)return void(slashAt=null);if(opening)slashIndex=0;slashIndex=Math.min(slashIndex,Math.max(0,found.length-1));await tick();slashAt=placeAt(s.from)}function closeSlash(){slash=null;slashAt=null;ed?.closeSlash()}function pick(i){if(!ed||!slash)return;const range={from:slash.from,to:slash.to};if(i.kind==="image"||i.kind==="file"){pickFor={range};if(picker){picker.accept=i.kind==="image"?"image/*":"";picker.click()}closeSlash();return}if(i.kind==="page"){closeSlash();void ed.insertSubpage(range);return}if(i.kind==="embed"||i.kind==="video"||i.kind==="bookmark"){const at2=slashAt??{top:0,left:0};asking={kind:i.kind,range,top:at2.top,left:at2.left};askText="";closeSlash();return}ed.insertBlock(i.kind,range)}function placeAt(pos){if(!ed||!root)return null;try{const c=ed.view.coordsAtPos(pos);const box=root.getBoundingClientRect();return{top:c.bottom-box.top+4,left:Math.max(0,c.left-box.left)}}catch{return{top:0,left:0}}}let at=$state(null);let atPlace=$state(null);let atIndex=$state(0);const people=$derived(at&&records?records.find(at.query).slice(0,8):[]);async function mentionChanged(s){const opening=s&&!at;at=s;if(!s)return void(atPlace=null);if(opening)atIndex=0;atIndex=Math.min(atIndex,Math.max(0,people.length-1));await tick();atPlace=placeAt(s.from)}function name(r){if(!ed||!at)return;ed.insertMention(r,{from:at.from,to:at.to})}function keysFirst(e){if(at){if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault();e.stopPropagation();const n=people.length;if(n)atIndex=(atIndex+(e.key==="ArrowDown"?1:-1)+n)%n;return}if((e.key==="Enter"||e.key==="Tab")&&people.length){e.preventDefault();e.stopPropagation();name(people[atIndex]??people[0]);return}if(e.key==="Escape"){e.preventDefault();e.stopPropagation();ed?.closeMention();return}}if(e.key==="Escape"&&asking){e.preventDefault();e.stopPropagation();asking=null;ed?.view.focus();return}if(e.key==="Escape"&&(slash||blockMenu||linking||colorsOpen)){e.preventDefault();e.stopPropagation();blockMenu=null;linking=false;colorsOpen=false;if(slash)closeSlash();ed?.view.focus();return}if(!slash)return;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault();e.stopPropagation();const n=found.length;if(n)slashIndex=(slashIndex+(e.key==="ArrowDown"?1:-1)+n)%n}else if((e.key==="Enter"||e.key==="Tab")&&found.length){e.preventDefault();e.stopPropagation();pick(found[slashIndex]??found[0])}}let selTick=$state(0);let focused=$state(false);let linking=$state(false);let linkText=$state("");let colorsOpen=$state(false);const bar=$derived.by(()=>{void selTick;if(!ed||!root||!focused||!editable)return null;const sel=ed.view.state.selection;if(sel.empty||sel.node)return null;const at2=placeAt(sel.from);if(!at2)return null;return{top:Math.max(0,at2.top-48),left:at2.left,marks:ed.marksHere()}});const MARKS=[{mark:"strong",key:"record.markBold",text:"B",style:"font-weight:700"},{mark:"em",key:"record.markItalic",text:"i",style:"font-style:italic;font-family:Georgia,serif"},{mark:"underline",key:"record.markUnderline",text:"U",style:"text-decoration:underline"},{mark:"strike",key:"record.markStrike",text:"S",style:"text-decoration:line-through"},{mark:"code",key:"record.markCode",text:"<>",style:"font-family:monospace;font-size:12px"}];function startLink(){linking=true;linkText="";colorsOpen=false}function saveLink(e){e.preventDefault();const v=linkText.trim();if(v)ed?.setLink(/^[a-z][a-z0-9+.-]*:|^\/|^#/i.test(v)?v:`https://${v}`);linking=false}let handle=$state(null);let blockMenu=$state(null);function moved(e){if(!ed||!editable||blockMenu||e.pointerType==="touch")return;const r=ed.view.dom.getBoundingClientRect();if(e.clientY<r.top||e.clientY>r.bottom)return;const hit=ed.blockAt(r.left+12,e.clientY);if(!hit||!root)return;const b=hit.dom.getBoundingClientRect();handle={pos:hit.pos,top:b.top-root.getBoundingClientRect().top}}const COLOR_KEYS={gray:"record.colorGray",brown:"record.colorBrown",orange:"record.colorOrange",yellow:"record.colorYellow",green:"record.colorGreen",blue:"record.colorBlue",purple:"record.colorPurple",pink:"record.colorPink",red:"record.colorRed"};const TURN=["text","h1","h2","h3","bullet","numbered","todo","toggle","quote","callout","code"];function menuDo(f){f();blockMenu=null}$effect(()=>{if(!blockMenu)return;const away=e=>{if(!e.target?.closest?.(".sv-pe-menu, .sv-pe-grip"))blockMenu=null};const t=setTimeout(()=>document.addEventListener("pointerdown",away,true),0);return()=>{clearTimeout(t);document.removeEventListener("pointerdown",away,true)}});
3
+ </script>
4
+
5
+
6
+ <div
7
+ class="sv-pe"
8
+ bind:this={root}
9
+ onkeydowncapture={keysFirst}
10
+ onpointermove={moved}
11
+ onpointerleave={() => {
12
+ if (!blockMenu) handle = null
13
+ }}
14
+ onfocusin={() => (focused = true)}
15
+ onfocusout={(e) => {
16
+ if (root && !root.contains(e.relatedTarget as Node)) {
17
+ focused = false
18
+ linking = false
19
+ colorsOpen = false
20
+ flush()
21
+ }
22
+ }}
23
+ >
24
+ {#if theirs != null}
25
+ <div class="sv-pe-conflict" role="alert">
26
+ <span>{bm('record.pageConflict')}</span>
27
+ <button type="button" onclick={keepMine}>{bm('record.pageKeepMine')}</button>
28
+ <button type="button" onclick={showTheirs}>{bm('record.pageShowTheirs')}</button>
29
+ </div>
30
+ {/if}
31
+ <div class="sv-pe-mount" bind:this={mount} aria-label={bm('record.pageEditor')}></div>
32
+
33
+ {#if handle && editable && ed}
34
+ {@const at = handle}
35
+ <div class="sv-pe-handle" style:top={`${at.top}px`}>
36
+ <button type="button" class="sv-pe-plus" title={bm('record.blockAdd')} aria-label={bm('record.blockAdd')} onclick={() => ed?.addBelow(at.pos)}>+</button>
37
+ <button
38
+ type="button"
39
+ class="sv-pe-grip"
40
+ draggable="true"
41
+ title={bm('record.blockHandle')}
42
+ aria-label={bm('record.blockMenu')}
43
+ aria-haspopup="menu"
44
+ aria-expanded={blockMenu?.pos === at.pos}
45
+ ondragstart={(e) => ed?.dragBlock(at.pos, e)}
46
+ ondragend={() => (handle = null)}
47
+ onclick={() => (blockMenu = blockMenu?.pos === at.pos ? null : { pos: at.pos, top: at.top, part: 'main' })}
48
+ >⋮⋮</button>
49
+ </div>
50
+ {/if}
51
+
52
+ {#if blockMenu && ed}
53
+ {@const m = blockMenu}
54
+ <div class="sv-pe-menu" role="menu" aria-label={bm('record.blockMenu')} style:top={`${m.top}px`}>
55
+ {#if m.part === 'main'}
56
+ <button type="button" role="menuitem" onclick={() => (blockMenu = { ...m, part: 'turn' })}>{bm('record.turnInto')} ›</button>
57
+ <button type="button" role="menuitem" onclick={() => (blockMenu = { ...m, part: 'color' })}>{bm('record.blockColor')} ›</button>
58
+ <button type="button" role="menuitem" onclick={() => menuDo(() => ed!.duplicateBlock(m.pos))}>{bm('record.blockDuplicate')}</button>
59
+ <button type="button" role="menuitem" class="is-danger" onclick={() => menuDo(() => ed!.deleteBlock(m.pos))}>{bm('record.blockDelete')}</button>
60
+ {:else if m.part === 'turn'}
61
+ {#each ITEMS.filter((i) => TURN.includes(i.kind as BlockKind)) as i (i.kind)}
62
+ <button type="button" role="menuitem" onclick={() => menuDo(() => ed!.turnInto(m.pos, i.kind as BlockKind))}><span class="sv-pe-ico">{i.icon}</span>{i.label}</button>
63
+ {/each}
64
+ {:else}
65
+ <button type="button" role="menuitem" onclick={() => menuDo(() => ed!.setBlockColor(m.pos, null))}><span class="sv-pe-swatch"></span>{bm('record.colorDefault')}</button>
66
+ {#each PAGE_COLORS as c (c)}
67
+ <button type="button" role="menuitem" onclick={() => menuDo(() => ed!.setBlockColor(m.pos, c))}><span class="sv-pe-swatch sv-c-{c}">A</span>{bm(COLOR_KEYS[c] as never)}</button>
68
+ {/each}
69
+ {/if}
70
+ </div>
71
+ {/if}
72
+
73
+ <input type="file" class="sv-pe-picker" bind:this={picker} multiple tabindex="-1" aria-hidden="true" onchange={picked} />
74
+ {#if uploading}
75
+ <p class="sv-pe-uploading" role="status">{bm('record.coverUploading')}</p>
76
+ {/if}
77
+ {#if asking}
78
+ <form class="sv-pe-ask" style:top={`${asking.top}px`} style:left={`${asking.left}px`} onsubmit={(e) => void askDone(e)}>
79
+
80
+ <input class="sv-fvb-input" autofocus disabled={askBusy} placeholder={bm(asking.kind === 'bookmark' ? 'record.askBookmark' : asking.kind === 'video' ? 'record.askVideo' : 'record.askEmbed')} aria-label={bm(asking.kind === 'bookmark' ? 'record.askBookmark' : asking.kind === 'video' ? 'record.askVideo' : 'record.askEmbed')} bind:value={askText} />
81
+ <button type="submit" disabled={askBusy || !askText.trim()}>{bm(asking.kind === 'bookmark' ? 'record.makeBookmark' : 'record.makeEmbed')}</button>
82
+ {#if asking.kind !== 'bookmark'}<small>{bm('record.embedWhich')}</small>{/if}
83
+ </form>
84
+ {/if}
85
+ {#if at && atPlace}
86
+ <div class="sv-pe-slash sv-pe-at" role="listbox" aria-label={bm('record.mentionMenu')} style:top={`${atPlace.top}px`} style:left={`${atPlace.left}px`}>
87
+ {#each people as r, n (r.id)}
88
+ <button type="button" role="option" aria-selected={n === atIndex} class:is-on={n === atIndex} onmousedown={(e) => e.preventDefault()} onpointerenter={() => (atIndex = n)} onclick={() => name(r)}>
89
+ <span class="sv-pe-ico">{r.icon || '📄'}</span>
90
+ <span class="sv-pe-what"><strong>{r.title}</strong></span>
91
+ </button>
92
+ {:else}
93
+ <p class="sv-pe-none">{bm('record.mentionNone')}</p>
94
+ {/each}
95
+ </div>
96
+ {/if}
97
+ {#if slash && slashAt}
98
+ <div class="sv-pe-slash" role="listbox" aria-label={bm('record.slashMenu')} style:top={`${slashAt.top}px`} style:left={`${slashAt.left}px`}>
99
+ {#each found as i, n (i.kind)}
100
+ <button
101
+ type="button"
102
+ role="option"
103
+ aria-selected={n === slashIndex}
104
+ class:is-on={n === slashIndex}
105
+ onmousedown={(e) => e.preventDefault()}
106
+ onpointerenter={() => (slashIndex = n)}
107
+ onclick={() => pick(i)}
108
+ >
109
+ <span class="sv-pe-ico">{i.icon}</span>
110
+ <span class="sv-pe-what"><strong>{i.label}</strong><small>{i.hint}</small></span>
111
+ </button>
112
+ {:else}
113
+ <p class="sv-pe-none">{bm('record.slashNone')}</p>
114
+ {/each}
115
+ </div>
116
+ {/if}
117
+
118
+ {#if bar && ed}
119
+
120
+ <div class="sv-pe-bar" role="toolbar" aria-label={bm('record.blockMenu')} style:top={`${bar.top}px`} style:left={`${bar.left}px`} onmousedown={(e) => { if (!(e.target as Element).closest('input')) e.preventDefault() }}>
121
+ {#if linking}
122
+ <form class="sv-pe-link" onsubmit={saveLink}>
123
+
124
+ <input class="sv-fvb-input" autofocus placeholder={bm('record.linkAsk')} aria-label={bm('record.linkAsk')} bind:value={linkText} onkeydown={(e) => { if (e.key === 'Escape') { e.stopPropagation(); linking = false; ed?.view.focus() } }} />
125
+ </form>
126
+ {#if bar.marks.has('link')}<button type="button" onclick={() => { ed?.setLink(null); linking = false }}>{bm('record.linkRemove')}</button>{/if}
127
+ {:else}
128
+ {#each MARKS as m (m.mark)}
129
+ <button type="button" class:is-on={bar.marks.has(m.mark)} aria-pressed={bar.marks.has(m.mark)} title={bm(m.key)} aria-label={bm(m.key)} onclick={() => ed?.toggleMark(m.mark)}><span style={m.style}>{m.text}</span></button>
130
+ {/each}
131
+ <button type="button" class:is-on={bar.marks.has('link')} title={bm('record.markLink')} aria-label={bm('record.markLink')} onclick={startLink}>🔗</button>
132
+ <span class="sv-pe-colors">
133
+ <button type="button" title={bm('record.textColor')} aria-label={bm('record.textColor')} aria-expanded={colorsOpen} onclick={() => (colorsOpen = !colorsOpen)}>A▾</button>
134
+ {#if colorsOpen}
135
+ <div class="sv-pe-palette" role="menu">
136
+ <span class="sv-pe-palette-h">{bm('record.textColor')}</span>
137
+ <button type="button" role="menuitem" onclick={() => { ed?.setTextColor(null); colorsOpen = false }}><span class="sv-pe-swatch">A</span>{bm('record.colorDefault')}</button>
138
+ {#each PAGE_COLORS as c (c)}
139
+ <button type="button" role="menuitem" onclick={() => { ed?.setTextColor(c); colorsOpen = false }}><span class="sv-pe-swatch sv-c-{c}">A</span>{bm(COLOR_KEYS[c] as never)}</button>
140
+ {/each}
141
+ <span class="sv-pe-palette-h">{bm('record.highlight')}</span>
142
+ {#each PAGE_COLORS as c (c)}
143
+ <button type="button" role="menuitem" onclick={() => { ed?.setTextColor(c, true); colorsOpen = false }}><span class="sv-pe-swatch sv-h-{c}">A</span>{bm(COLOR_KEYS[c] as never)}</button>
144
+ {/each}
145
+ </div>
146
+ {/if}
147
+ </span>
148
+ {/if}
149
+ </div>
150
+ {/if}
151
+ </div>
152
+
153
+ <style>
154
+ .sv-pe{position:relative;padding-inline-start:48px;margin-inline-start:-48px}.sv-pe-mount{min-height:160px}.sv-pe-picker{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.sv-pe-uploading{margin:0 0 6px 48px;font-size:12px;color:var(--sg-muted, #64748b)}.sv-pe-ask{position:absolute;z-index:7;display:grid;grid-template-columns:1fr auto;gap:6px;width:min(420px,90%);padding:8px;border:1px solid var(--sg-border, #e2e8f0);border-radius:10px;background:var(--sg-bg, #fff);box-shadow:0 12px 32px #0f172a29}.sv-pe-ask button{padding:0 12px;border:0;border-radius:6px;background:var(--sg-accent, #2563eb);color:#fff;font:inherit;font-size:13px;cursor:pointer}.sv-pe-ask button:disabled{opacity:.5;cursor:default}.sv-pe-ask small{grid-column:1 / -1;color:var(--sg-muted, #64748b);font-size:12px}.sv-pe-conflict{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px 48px;padding:8px 10px;border-radius:8px;background:color-mix(in srgb,#cb912f 16%,transparent);font-size:13px}.sv-pe-conflict span{flex:1;min-width:200px}.sv-pe-conflict button{padding:4px 10px;border:1px solid var(--sg-border, #e2e8f0);border-radius:6px;background:var(--sg-bg, #fff);color:inherit;font:inherit;cursor:pointer}.sv-pe :global(.sv-page-doc){outline:none;min-height:160px;padding:4px 4px 48px;white-space:pre-wrap}.sv-pe :global(.sv-page-doc .is-empty:before){content:attr(data-placeholder);float:left;height:0;pointer-events:none;color:var(--sg-muted, #94a3b8)}.sv-pe :global(.ProseMirror-selectednode){outline:2px solid color-mix(in srgb,var(--sg-accent, #2563eb) 40%,transparent);border-radius:4px}.sv-pe :global(.ProseMirror-gapcursor){display:none;pointer-events:none;position:absolute}.sv-pe :global(.ProseMirror-focused .ProseMirror-gapcursor){display:block}.sv-pe :global(.ProseMirror-gapcursor:after){content:"";display:block;position:absolute;top:-2px;width:20px;border-top:1px solid currentColor}.sv-pe-handle{position:absolute;left:0;display:flex;gap:0;height:26px;align-items:center}.sv-pe-plus,.sv-pe-grip{width:22px;height:24px;padding:0;border:0;border-radius:4px;background:none;color:var(--sg-muted, #94a3b8);cursor:pointer;font-size:16px;line-height:1}.sv-pe-grip{cursor:grab;font-size:12px;letter-spacing:-2px}.sv-pe-plus:hover,.sv-pe-grip:hover,.sv-pe-grip[aria-expanded=true]{background:var(--sg-row-hover-bg, #f1f5f9);color:var(--sg-fg, #0f172a)}.sv-pe-slash,.sv-pe-menu,.sv-pe-palette{position:absolute;z-index:7;display:flex;flex-direction:column;padding:4px;border:1px solid var(--sg-border, #e2e8f0);border-radius:10px;background:var(--sg-bg, #fff);color:var(--sg-fg, #0f172a);box-shadow:0 12px 32px #0f172a29;font-size:13px}.sv-pe-slash{width:280px;max-height:320px;overflow:auto}.sv-pe-menu{left:0;margin-top:28px;width:220px;max-height:360px;overflow:auto}.sv-pe-slash button,.sv-pe-menu button,.sv-pe-palette button{display:flex;align-items:center;gap:10px;width:100%;padding:6px 8px;border:0;border-radius:6px;background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}.sv-pe-slash button.is-on,.sv-pe-menu button:hover,.sv-pe-palette button:hover{background:var(--sg-row-hover-bg, #f1f5f9)}.sv-pe-menu .is-danger{color:var(--sg-danger, #dc2626)}.sv-pe-ico{display:inline-grid;place-items:center;flex:none;width:34px;height:30px;border:1px solid var(--sg-border, #e2e8f0);border-radius:6px;background:var(--sg-bg, #fff);font-size:13px;font-weight:600}.sv-pe-menu .sv-pe-ico{width:24px;height:22px;font-size:11px}.sv-pe-what{display:flex;flex-direction:column;min-width:0}.sv-pe-what small{color:var(--sg-muted, #64748b);font-size:12px}.sv-pe-none{margin:6px 8px;color:var(--sg-muted, #64748b)}.sv-pe-swatch{display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid var(--sg-border, #e2e8f0);border-radius:4px;font-weight:600}.sv-pe-bar{position:absolute;z-index:7;display:flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--sg-border, #e2e8f0);border-radius:8px;background:var(--sg-bg, #fff);box-shadow:0 8px 24px #0f172a29}.sv-pe-bar>button,.sv-pe-colors>button{min-width:28px;height:28px;padding:0 6px;border:0;border-radius:6px;background:none;color:inherit;font:inherit;font-size:14px;cursor:pointer}.sv-pe-bar>button:hover,.sv-pe-bar>button.is-on,.sv-pe-colors>button:hover{background:var(--sg-row-hover-bg, #f1f5f9);color:var(--sg-accent, #2563eb)}.sv-pe-link input{width:240px}.sv-pe-colors{position:relative}.sv-pe-palette{top:100%;left:0;margin-top:4px;width:180px;max-height:300px;overflow:auto}.sv-pe-palette-h{padding:6px 8px 2px;font-size:11px;color:var(--sg-muted, #64748b)}
155
+ </style>
@@ -0,0 +1,20 @@
1
+ import { type LinkCard, type PageEditor, type PageFile, type PageRecords } from './page-editor.js';
2
+ type $$ComponentProps = {
3
+ html: string;
4
+ editable?: boolean;
5
+ /** The page's HTML after a pause in typing, or as the focus leaves. */
6
+ onSave: (html: string) => void;
7
+ /** ProseMirror is not there: the caller shows its usual editor. */
8
+ onUnavailable?: () => void;
9
+ /** Store a picture or file given to the page; without it the page takes none. */
10
+ upload?: (file: File) => Promise<PageFile>;
11
+ /** A link's title and description for a bookmark; without it a bookmark is the address. */
12
+ preview?: (url: string) => Promise<LinkCard>;
13
+ /** Something went wrong (an upload refused): for the host to say. */
14
+ onError?: (message: string) => void;
15
+ /** The table's records, for sub-pages and @ mentions. */
16
+ records?: PageRecords;
17
+ };
18
+ declare const PageEditor: import("svelte").Component<$$ComponentProps, {}, "">;
19
+ type PageEditor = ReturnType<typeof PageEditor>;
20
+ export default PageEditor;