@svgrid/enterprise 3.1.74 → 3.1.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/svgrid-enterprise.svelte-external.js +2 -2
- package/dist/designer/assets/{index-C2M7tfqh.js → index-ZttiuDcp.js} +1 -1
- package/dist/designer/index.html +1 -1
- package/dist/fields/AutomationAction.svelte +2 -1
- package/dist/fields/AutomationGallery.svelte +152 -0
- package/dist/fields/AutomationGallery.svelte.d.ts +29 -0
- package/dist/fields/AutomationTrigger.svelte +10 -4
- package/dist/fields/AutomationTrigger.svelte.d.ts +5 -0
- package/dist/fields/SvBaseAutomations.svelte +46 -21
- package/dist/fields/SvBaseAutomations.svelte.d.ts +2 -0
- package/dist/fields/automation-edit.d.ts +6 -0
- package/dist/fields/automation-edit.js +2 -2
- package/dist/fields/automation-recipes.d.ts +85 -0
- package/dist/fields/automation-recipes.js +2 -0
- package/dist/fields/automations.svelte.d.ts +15 -2
- package/dist/fields/automations.svelte.js +6 -1
- package/dist/fields/builtin-types.js +1 -1
- package/dist/fields/filter-model.d.ts +5 -0
- package/dist/fields/filter-model.js +1 -1
- package/dist/fields/index.d.ts +1 -0
- package/dist/fields/index.js +1 -1
- package/dist/fields/messages/extras.d.ts +131 -0
- package/dist/fields/messages/extras.js +16 -1
- package/dist/fields/messages/viewbar.d.ts +4 -0
- package/dist/fields/messages/viewbar.js +1 -1
- package/dist/fields/messages.svelte.d.ts +135 -0
- package/dist/fields/rollups.d.ts +2 -0
- package/dist/fields/rollups.js +1 -1
- package/dist/fields/viewbar/ConditionValue.svelte +11 -2
- package/dist/node/studio.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wc/{PageEditor-B_aDbCVD.js → PageEditor-uCGeOX5e.js} +1 -1
- package/dist/wc/embed-url-CozXxwvR.js +16 -0
- package/dist/wc/sv-base-element.js +102 -94
- package/package.json +1 -1
- package/dist/wc/embed-url-CGl6lpsT.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VIEWBAR_MESSAGES={"viewbar.board.board":"Board","viewbar.board.addCard":"+ Add a card","viewbar.board.addCardTo":"Add card to {lane}","viewbar.board.cardTitle":"Card title...","viewbar.board.noCards":"No cards","viewbar.board.cardActions":"Card actions","viewbar.board.clearFilters":"Clear filters","viewbar.board.blocked":"Blocked","viewbar.board.age":"Age","viewbar.board.comments":"Comments","viewbar.board.writeComment":"Write a comment...","viewbar.board.deleteComment":"Delete comment","viewbar.board.addSubtask":"Add subtask...","viewbar.board.rename":"Double-click, Enter, or F2 to rename","viewbar.board.cancel":"Cancel","viewbar.board.save":"Save","viewbar.board.grabbed":"Grabbed {card}. Use arrow keys to move, Space to drop, Escape to cancel.","viewbar.board.dropped":"Dropped {card} in {lane}.","viewbar.formMoved":"{field} moved to place {place} of {total}.","viewbar.board.movedTo":"Moved to {lane}.","viewbar.board.movedUp":"Moved up.","viewbar.board.movedDown":"Moved down.","viewbar.board.movedPosition":"Moved {lane} to position {position} of {total}.","viewbar.board.cancelled":"Cancelled.","viewbar.board.wipLimit":"{lane} is at its WIP limit ({limit}).","viewbar.board.cannotMove":"Cards can't be moved here.","viewbar.board.cardBlocked":"{card} is blocked and can't be moved.","viewbar.board.selected":"Selected {card}. {count} selected.","viewbar.board.deselected":"Deselected {card}. {count} selected.","viewbar.board.expand":"Expand {lane}","viewbar.board.collapse":"Collapse {lane}","viewbar.board.wipTitle":"At most {limit} cards","viewbar.board.none":"(none)","viewbar.moveField":"Move {name}","viewbar.moveFieldHint":"Drag, or press the up and down arrows","viewbar.fieldMoved":"{name} moved to place {place} of {count}","viewbar.calendar.month":"Month","viewbar.calendar.week":"Week","viewbar.calendar.day":"Day","viewbar.calendar.agenda":"Agenda","viewbar.calendar.timelineDay":"Day","viewbar.calendar.timelineWeek":"Week","viewbar.calendar.timelineMonth":"Month","viewbar.calendar.timelineYear":"Year","viewbar.calendar.today":"Today","viewbar.calendar.previous":"Previous","viewbar.calendar.next":"Next","viewbar.calendar.allDay":"all day","viewbar.calendar.more":"+{count} more","viewbar.calendar.noEvents":"No events in this range.","viewbar.calendar.eventsColumn":"Events","viewbar.calendar.edit":"Edit","viewbar.calendar.duplicate":"Duplicate","viewbar.calendar.delete":"Delete","viewbar.calendar.moveGrabbed":"{title} picked up. Arrow keys move it, Space puts it down, Escape cancels.","viewbar.gantt.expandAll":"Expand all","viewbar.gantt.collapseAll":"Collapse all","viewbar.gantt.expandTask":"Expand {title}","viewbar.gantt.collapseTask":"Collapse {title}","viewbar.gantt.zoomIn":"Zoom in","viewbar.gantt.zoomOut":"Zoom out","viewbar.gantt.zoomDay":"day","viewbar.gantt.zoomWeek":"week","viewbar.gantt.zoomMonth":"month","viewbar.gantt.zoomQuarter":"quarter","viewbar.gantt.zoomYear":"year","viewbar.gantt.tableLabel":"Records","viewbar.gantt.chartLabel":"Gantt bars","viewbar.gantt.resizeTable":"Resize the record table","viewbar.gantt.days":"Days","viewbar.gantt.progress":"Progress","viewbar.gantt.slack":"Slack","viewbar.gantt.start":"Start","viewbar.gantt.finish":"Finish","viewbar.gantt.progressPercent":"Progress %","viewbar.gantt.task":"Record","viewbar.gantt.milestone":"Milestone","viewbar.gantt.day":"{count} day","viewbar.gantt.daysCount":"{count} days","viewbar.gantt.open":"Open","viewbar.gantt.openTask":"Open {title}","viewbar.gantt.edit":"Edit","viewbar.gantt.addSubtask":"Add subtask","viewbar.gantt.delete":"Delete","viewbar.gantt.deleteTask":"Delete record","viewbar.gantt.removeLink":"Remove link: {from} to {to}","viewbar.gantt.taskActions":"Record actions","viewbar.gantt.save":"Save","viewbar.gantt.cancel":"Cancel","viewbar.gantt.onBaseline":"On the baseline","viewbar.gantt.laterThanBaseline":"{count} days later than baseline","viewbar.gantt.aheadOfBaseline":"{count} days ahead of baseline","viewbar.gantt.dragProgress":"Drag to set progress","viewbar.gantt.linkFromStart":"Drag to link from the start","viewbar.gantt.linkFromFinish":"Drag to link from the finish","viewbar.gantt.workingDays":"{count} working days, {progress}%","viewbar.gantt.onCriticalPath":"On the critical path","viewbar.gantt.daysOfSlack":"{count} days of slack","viewbar.gantt.notMet":"not met","viewbar.gantt.peak":"peak {peak} / {capacity}","viewbar.gantt.loadOf":"{label}: {load} of {capacity}","viewbar.gantt.moveGrabbed":"{title} picked up. Arrow keys move it, Space puts it down, Escape cancels.","viewbar.gantt.moveDone":"{title} moved to {range}.","viewbar.gantt.moveCancelled":"Move cancelled.","viewbar.gantt.resized":"{title} now ends {date}.","viewbar.gantt.progressSet":"{title} at {progress}%.","viewbar.gantt.upcoming":"{title}, upcoming {date}","viewbar.calendar.moveDone":"{title} moved to {place}.","viewbar.calendar.moveCancelled":"Move cancelled.","viewbar.calendar.moveBlocked":"That time is not free.","viewbar.calendar.scopeEdit":"Edit recurring event","viewbar.calendar.scopeDelete":"Delete recurring event","viewbar.calendar.scopeOccurrence":"This event","viewbar.calendar.scopeFollowing":"This and following","viewbar.calendar.scopeSeries":"All events","viewbar.calendar.upcoming":"{name}, upcoming","viewbar.sortToOrder":"Sort this view by a number field to keep the order of its cards","viewbar.viewSettings":"View settings","viewbar.views":"Views","viewbar.defaultViewName":"Grid view","viewbar.viewCopy":"{name} copy","viewbar.rowShort":"Short","viewbar.rowMedium":"Medium","viewbar.rowTall":"Tall","viewbar.rowExtraTall":"Extra tall","viewbar.lockedTitle":"This view is locked: its settings stay as saved","viewbar.lockedTitleBy":"This view is locked by {name}: its settings stay as saved","viewbar.locked":"Locked","viewbar.lockedNotSaved":"Locked, not saved","viewbar.reset":"Reset","viewbar.personalTitle":"A personal view: only you see it","viewbar.personal":"Personal","viewbar.hideFields":"Hide fields","viewbar.hiddenFields.one":"{count} hidden field","viewbar.hiddenFields.other":"{count} hidden fields","viewbar.filter":"Filter","viewbar.filteredBy":"Filtered by {field}","viewbar.filteredByFields.one":"Filtered by {count} field","viewbar.filteredByFields.other":"Filtered by {count} fields","viewbar.group":"Group","viewbar.groupedBy.one":"Grouped by {count} field","viewbar.groupedBy.other":"Grouped by {count} fields","viewbar.sort":"Sort","viewbar.sortedBy.one":"Sorted by {count} field","viewbar.sortedBy.other":"Sorted by {count} fields","viewbar.color":"Color","viewbar.coloredBy":"Colored by {field}","viewbar.coloredByAField":"Colored by field","viewbar.coloredByConditions":"Colored by conditions","viewbar.customizeChart":"Customize chart","viewbar.customizeForm":"Customize form","viewbar.formTitle":"Title","viewbar.formDescription":"Line under the title","viewbar.formButton":"Button text","viewbar.formFields":"Fields the form asks for","viewbar.formRequiredColumn":"Required","viewbar.formAsk":"Ask for {field}","viewbar.formRequire":"{field} is required","viewbar.formMoveUp":"Move {field} up","viewbar.formMoveDown":"Move {field} down","viewbar.customizeTimeline":"Customize timeline","viewbar.customizeGantt":"Customize Gantt","viewbar.customizeList":"Customize list","viewbar.customizeInbox":"Customize inbox","viewbar.customizeBoard":"Customize board","viewbar.customizeCards":"Customize cards","viewbar.cardsFit":"Picture","viewbar.cardsFitFill":"Fill the card","viewbar.cardsFitWhole":"Show the whole picture","viewbar.cardsSize":"Card size","viewbar.cardsSmall":"Small","viewbar.cardsMedium":"Medium","viewbar.cardsLarge":"Large","viewbar.cardsSizeHint":"Long text shows 2 lines on a small card, 3 on a medium one and 5 on a large one.","viewbar.cardsCompact":"Compact","viewbar.boardSizeHint":"Large cards make the columns wider, with a bigger picture and 4 lines of long text instead of 2.","viewbar.cardsLabels":"Show field names","viewbar.cardsFieldsHint":"To choose which fields the cards show, use Hide fields.","viewbar.criticalPath":"Show the critical path","viewbar.criticalPathHint":"The tasks that set the finish date get a red outline: if one of them is late, so is the end. Point at any other task to see how many days it can slip.","viewbar.boardRowsBy":"Rows by","viewbar.boardDue":"Due date","viewbar.boardFade":"Fade cards by","viewbar.boardFadeHint":"Cards fade a little more each week after this date. Pick a Last modified time field to fade the ones nobody has changed.","viewbar.boardBlocked":"Blocked when","viewbar.boardOnCards":"On the cards (up to {count})","viewbar.boardQuickFilters":"Quick filters above the board","viewbar.boardLimits":"Most cards in a column","viewbar.boardNoLimit":"No limit","viewbar.rowHeight":"Row height","viewbar.markAllSeen":"Mark all as seen","viewbar.automations":"Automations","viewbar.automationCount.one":"{count} automation","viewbar.automationCount.other":"{count} automations","viewbar.records.one":"{count} record","viewbar.records.other":"{count} records","viewbar.findRecord":"Find a record","viewbar.search":"Search","viewbar.scanToFind":"Scan a code to find its record","viewbar.searchShortcut":"Search (Ctrl+F)","viewbar.myViews":"My views","viewbar.section":"Section","viewbar.moveToSection":"Move {name} to a section","viewbar.sectionOf":"Section of {name}","viewbar.sectionPlaceholder":"A section, or empty for none","viewbar.newView":"New {type} view","viewbar.name":"Name","viewbar.stackBy":"Stack records by","viewbar.startDate":"Start date","viewbar.dateField":"Date field","viewbar.endDate":"End date","viewbar.none":"None","viewbar.progress":"Progress","viewbar.dependsOn":"Depends on","viewbar.chartType":"Chart type","viewbar.groupBy":"Group by","viewbar.value":"Value","viewbar.numberOfRecords":"Number of records","viewbar.sumOf":"Sum of {field}","viewbar.averageOf":"Average of {field}","viewbar.newestFirstBy":"Newest first by","viewbar.viewsSort":"The view's sort","viewbar.coverImage":"Cover image","viewbar.personalCheck":"Personal view: only I see it","viewbar.cancel":"Cancel","viewbar.createView":"Create view","viewbar.viewName":"View name","viewbar.rename":"Rename","viewbar.renameView":"Rename {name}","viewbar.duplicate":"Duplicate","viewbar.duplicateView":"Duplicate {name}","viewbar.lockView":"Lock {name}","viewbar.unlockView":"Unlock {name}","viewbar.lockHint":"Lock: keep its settings as they are now","viewbar.unlockHint":"Unlock: anyone can change its settings","viewbar.delete":"Delete","viewbar.deleteView":"Delete {name}","viewbar.create":"Create","viewbar.createPersonal":"Create a personal view","viewbar.needsSelect":"Needs a single select field","viewbar.needsGroupField":"Needs a field to group by","viewbar.needsDate":"Needs a date field","viewbar.typeGrid":"Grid","viewbar.typeKanban":"Kanban","viewbar.typeCalendar":"Calendar","viewbar.typeTimeline":"Timeline","viewbar.typeGantt":"Gantt","viewbar.deleteViewAsk":"Delete {name}?","viewbar.typeGallery":"Gallery","viewbar.typeChart":"Chart","viewbar.typeForm":"Form","viewbar.typeList":"List","viewbar.typeInbox":"Inbox","viewbar.typeTree":"Tree","viewbar.typePivot":"Pivot","viewbar.parent":"Parent","viewbar.treeNeedsParent":"A tree needs a link to this table that names each record's parent.","viewbar.treeNeedsAll":"A tree needs every record at once, and this table is read a part at a time.","viewbar.pivotRows":"Rows","viewbar.pivotCols":"Columns","viewbar.pivotValues":"Values","viewbar.pivotAddRow":"Add a field","viewbar.pivotNoCols":"None","viewbar.pivotCount":"Count of records","viewbar.pivotSum":"Sum of {field}","viewbar.pivotAvg":"Average of {field}","viewbar.pivotMin":"Smallest {field}","viewbar.pivotMax":"Largest {field}","viewbar.pivotRemove":"Remove {field}","viewbar.pivotEmpty":"No records to add up.","viewbar.pivotLoaded":"Adds up the {count} records loaded in the page; the table has {total}.","viewbar.pivotTotal":"Total","viewbar.typeDashboard":"Dashboard","viewbar.sortFirstLast":"first → last","viewbar.sortLastFirst":"last → first","viewbar.sortDoneUp":"0% → 100% done","viewbar.sortDoneDown":"100% → 0% done","viewbar.sortHueUp":"red → pink","viewbar.sortHueDown":"pink → red","viewbar.sortAZ":"A → Z","viewbar.sortZA":"Z → A","viewbar.uncategorized":"Uncategorized","viewbar.expandRecord":"Expand record","viewbar.comment":"Comment","viewbar.moveTo":"Move to","viewbar.empty":"Empty","viewbar.duplicateRecord":"Duplicate record","viewbar.deleteRecord":"Delete record","viewbar.filterTitle":"In this view, show records","viewbar.filterEmpty":"No filter conditions are applied to this view","viewbar.where":"Where","viewbar.joinWith":"Join conditions with","viewbar.field":"Field","viewbar.fields":"Fields","viewbar.operator":"Operator","viewbar.removeCondition":"Remove condition","viewbar.addCondition":"+ Add condition","viewbar.addConditionGroup":"+ Add condition group","viewbar.sortBy":"Sort by","viewbar.direction":"Direction","viewbar.removeGroup":"Remove group","viewbar.removeSort":"Remove sort","viewbar.addSubgroup":"+ Add subgroup","viewbar.addSort":"+ Add another sort","viewbar.findField":"Find a field","viewbar.primaryAlwaysShown":"The primary field is always shown","viewbar.hideAll":"Hide all","viewbar.showAll":"Show all","viewbar.editFieldNamed":"Edit the field {name}","viewbar.colorRows":"Color rows","viewbar.selectField":"Select field","viewbar.conditions":"Conditions","viewbar.colorBySelect":"Color records the same as a single select field","viewbar.colorByConditions":"Color records that match a condition; the first match wins","viewbar.notColored":"Rows are not colored","viewbar.colorTabRows":"Rows","viewbar.colorTabCells":"Cells","viewbar.colorCellsHelp":"Color a field's cell while its value matches a condition. For one field, the first match wins.","viewbar.noCellColors":"No cells are colored","viewbar.addCellRule":"Add a rule","viewbar.coloredCells":"Colored cells","viewbar.highlightByHand":"Mark records by hand","viewbar.highlightByHandHelp":"Adds a Highlight field and colors each row by the color picked in it.","viewbar.highlightField":"Highlight","viewbar.chart":"Chart","viewbar.type":"Type","viewbar.chooseField":"Choose a field","viewbar.combine":"Combine","viewbar.sum":"Sum","viewbar.average":"Average","viewbar.timeline":"Timeline","viewbar.gantt":"Gantt","viewbar.laneBy":"Lanes by","viewbar.noneMilestone":"None (a milestone)","viewbar.ganttHint":"Arrows between records come from a link field to this same table.","viewbar.under":"Under {field}","viewbar.theName":"the name","viewbar.backToFirstThree":"Back to the first three shown","viewbar.me":"Me","viewbar.selectOption":"Select an option","viewbar.values":"Values","viewbar.noOptions":"No options","viewbar.span":"Span","viewbar.days":"Days","viewbar.day":"Day","viewbar.date":"Date","viewbar.enterValue":"Enter a value","viewbar.timePlaceholder":"9:30 am","viewbar.dayExactDate":"exact date","viewbar.spanPastNumberOfDays":"the past number of days","viewbar.spanNextNumberOfDays":"the next number of days","viewbar.opContains":"contains","viewbar.opDoesNotContain":"does not contain","viewbar.opIs":"is","viewbar.opIsNot":"is not","viewbar.opIsEmpty":"is empty","viewbar.opIsNotEmpty":"is not empty","viewbar.opIsAnyOf":"is any of","viewbar.opIsNoneOf":"is none of","viewbar.opHasAnyOf":"has any of","viewbar.opHasAllOf":"has all of","viewbar.opIsExactly":"is exactly","viewbar.opHasNoneOf":"has none of","viewbar.opIsBefore":"is before","viewbar.opIsAfter":"is after","viewbar.opIsOnOrBefore":"is on or before","viewbar.opIsOnOrAfter":"is on or after","viewbar.opIsWithin":"is within","viewbar.opIsAtOrBefore":"is at or before","viewbar.opIsAtOrAfter":"is at or after","viewbar.opFileNameContains":"file name contains","viewbar.opIsComplete":"is complete","viewbar.opIsNotComplete":"is not complete","viewbar.opDoneAtLeast":"% done ≥","viewbar.opDoneUnder":"% done <","viewbar.opHasItemContaining":"has an item containing","viewbar.dayToday":"today","viewbar.dayTomorrow":"tomorrow","viewbar.dayYesterday":"yesterday","viewbar.dayOneWeekAgo":"one week ago","viewbar.dayOneWeekFromNow":"one week from now","viewbar.dayOneMonthAgo":"one month ago","viewbar.dayOneMonthFromNow":"one month from now","viewbar.spanPastWeek":"the past week","viewbar.spanPastMonth":"the past month","viewbar.spanPastYear":"the past year","viewbar.spanNextWeek":"the next week","viewbar.spanNextMonth":"the next month","viewbar.spanNextYear":"the next year","viewbar.spanPastDays":"the past {days} days","viewbar.spanNextDays":"the next {days} days","viewbar.valueChecked":"checked","viewbar.valueUnchecked":"unchecked","viewbar.valueMe":"me","viewbar.conjAnd":"and","viewbar.conjOr":"or","viewbar.everyRecord":"every record","viewbar.untitled":"Untitled","viewbar.noRecordsInView":"No records. The view's filter may hide them all.","viewbar.groupLabel":"Group","viewbar.groupAria":"{field}: {value}","viewbar.changedTitle":"Changed by someone else","viewbar.changedSr":"Changed: ","viewbar.unread.one":"{count} unread","viewbar.unread.other":"{count} unread","viewbar.allRead":"All read","viewbar.markAllRead":"Mark all read","viewbar.recordsList":"Records","viewbar.selectedCard":"Selected","viewbar.record":"Record","viewbar.unreadSr":"Unread: ","viewbar.backToList":"Back to the list","viewbar.back":"Back","viewbar.previousRecord":"Previous record","viewbar.previousHint":"Previous (k)","viewbar.nextRecord":"Next record","viewbar.nextHint":"Next (j)","viewbar.expand":"Expand","viewbar.latestChanges":"Latest changes","viewbar.changedTo":"to","viewbar.byAutomation":"Automation: {name}","viewbar.someone":"Someone","viewbar.someoneElse":"Someone else","viewbar.you":"You","viewbar.addedRecord":"added this record","viewbar.changedField":"changed {field}","viewbar.cleared":"(cleared)","viewbar.comments.one":"{count} comment","viewbar.comments.other":"{count} comments","viewbar.addComment":"Add a comment","viewbar.pickRecord":"Pick a record to read it here. j and k move through the list.","viewbar.chartNoRecords":"No records to chart. The view's filter may hide them all.","viewbar.chartChooseField":"Choose a field to chart in Customize chart.","viewbar.chartBar":"Bar","viewbar.chartBarH":"Horizontal bar","viewbar.chartLine":"Line","viewbar.chartPie":"Pie","viewbar.chartDonut":"Donut","viewbar.chartChecked":"Checked","viewbar.chartUnchecked":"Unchecked","viewbar.chartRecords":"Records","viewbar.chartMonth":"{month} {year}","viewbar.monthJan":"Jan","viewbar.monthFeb":"Feb","viewbar.monthMar":"Mar","viewbar.monthApr":"Apr","viewbar.monthMay":"May","viewbar.monthJun":"Jun","viewbar.monthJul":"Jul","viewbar.monthAug":"Aug","viewbar.monthSep":"Sep","viewbar.monthOct":"Oct","viewbar.monthNov":"Nov","viewbar.monthDec":"Dec","viewbar.addTile":"Add tile","viewbar.addATile":"Add a tile","viewbar.dragTileHint":"Drag a tile to move it.","viewbar.done":"Done","viewbar.editDashboard":"Edit dashboard","viewbar.noTiles":"This dashboard has no tiles yet.","viewbar.dashboardTiles":"Dashboard tiles","viewbar.noRecordsMatch":"No records match.","viewbar.noRecordsYet":"No records yet.","viewbar.noRecordsToChart":"No records to chart.","viewbar.partOf":"{part} of {whole}","viewbar.openRecords.one":"Open the {count} record","viewbar.openRecords.other":"Open the {count} records","viewbar.tileSize":"Size of {title}","viewbar.moveTileEarlier":"Move {title} earlier","viewbar.moveEarlier":"Move earlier","viewbar.moveTileLater":"Move {title} later","viewbar.moveLater":"Move later","viewbar.editTileNamed":"Edit {title}","viewbar.editTile":"Edit tile","viewbar.removeTileNamed":"Remove {title}","viewbar.removeTile":"Remove tile","viewbar.removeTileAsk":"Remove this tile?","viewbar.removeTileYes":"Remove {title}","viewbar.tileRemoved":"{title} removed.","viewbar.tileMoved":"{title} moved to place {place} of {total}.","viewbar.shows":"Shows","viewbar.table":"Table","viewbar.deletedTable":"A deleted table","viewbar.ofField":"Of field","viewbar.caption":"Caption","viewbar.captionPlaceholder":"Target $500,000","viewbar.asEntered":"As entered","viewbar.lowToHigh":"Low to high","viewbar.highToLow":"High to low","viewbar.showBeside":"Show beside the name","viewbar.theSortField":"The sort field","viewbar.tileRecords":"Records","viewbar.progressHint":"Shows how many of the table's records match the filter below.","viewbar.doneWhen":"Done when","viewbar.progressEmpty":"Add the condition a record has to match to count as done.","viewbar.recordsEmpty":"Every record of the table. Add a condition to narrow it.","viewbar.title":"Title","viewbar.titlePlaceholder":"Named after what it shows","viewbar.size":"Size","viewbar.save":"Save","viewbar.inTable":"{count} in {table}","viewbar.openNamed":"Open {name}","viewbar.firstOf":"The first {shown} of {count}.","viewbar.tileNumber":"Number","viewbar.tileList":"List","viewbar.tileText":"Text","viewbar.tileButton":"Button","viewbar.tileTextLabel":"Text","viewbar.tileTextHint":"A line starting with # is a heading. **Bold**, and links as [words](https://...).","viewbar.tileTextEmpty":"Edit the tile to write its text.","viewbar.tileButtonLabel":"Label","viewbar.tileButtonUrl":"Opens","viewbar.tileButtonUrlHint":"An address starting with https://, http://, mailto: or /.","viewbar.tileButtonEmpty":"Edit the tile to say where it goes.","viewbar.tileButtonDefault":"Open","viewbar.tileImage":"Image","viewbar.tileDivider":"Divider","viewbar.tilePicker":"Record picker","viewbar.tileImageUrl":"Image address","viewbar.tileImageUrlHint":"An address starting with https://, http:// or /.","viewbar.tileImageAlt":"What it shows","viewbar.tileImageAltPlaceholder":"Said to people who cannot see it","viewbar.tileImageFit":"Fit","viewbar.tileImageContain":"Whole image","viewbar.tileImageCover":"Fill the tile","viewbar.tileImageEmpty":"Edit the tile to give it an image.","viewbar.tileDividerHint":"A line across the dashboard, with its title over it: a new section starts.","viewbar.tilePickerFields":"Fields shown","viewbar.tilePickerHint":"People pick a record here; tiles narrowed by this picker then count only the records linked to it.","viewbar.tilePickerChoose":"Choose a record","viewbar.tilePickerAll":"Every record","viewbar.tilePickerNone":"No records to choose from.","viewbar.tilePickerFirst":"The first {count} records are listed.","viewbar.tilePickerOpen":"Open the record","viewbar.tilePickerPick":"Pick a record to see it here.","viewbar.narrowedBy":"Narrowed by","viewbar.narrowNone":"No record picker","viewbar.narrowOption":"{picker}: records whose {field} is the one picked","viewbar.sizeSmall":"Small","viewbar.sizeWide":"Wide","viewbar.sizeLarge":"Large","viewbar.smallest":"Smallest","viewbar.largest":"Largest","viewbar.chooseFieldToAddUp":"Choose a field to add up.","viewbar.noValues":"No values","viewbar.unnamedRecord":"Untitled record","viewbar.tileTableGone":"The table this tile reads is gone. Edit the tile to pick another.","viewbar.chooseFieldToGroup":"Choose a field to group the records by.","viewbar.tile":"Tile","viewbar.titleTotal":"Total {field}","viewbar.titleAverage":"Average {field}","viewbar.titleSmallest":"Smallest {field}","viewbar.titleLargest":"Largest {field}","viewbar.titleBy":"{value} by {field}"};
|
|
1
|
+
export const VIEWBAR_MESSAGES={"viewbar.board.board":"Board","viewbar.board.addCard":"+ Add a card","viewbar.board.addCardTo":"Add card to {lane}","viewbar.board.cardTitle":"Card title...","viewbar.board.noCards":"No cards","viewbar.board.cardActions":"Card actions","viewbar.board.clearFilters":"Clear filters","viewbar.board.blocked":"Blocked","viewbar.board.age":"Age","viewbar.board.comments":"Comments","viewbar.board.writeComment":"Write a comment...","viewbar.board.deleteComment":"Delete comment","viewbar.board.addSubtask":"Add subtask...","viewbar.board.rename":"Double-click, Enter, or F2 to rename","viewbar.board.cancel":"Cancel","viewbar.board.save":"Save","viewbar.board.grabbed":"Grabbed {card}. Use arrow keys to move, Space to drop, Escape to cancel.","viewbar.board.dropped":"Dropped {card} in {lane}.","viewbar.formMoved":"{field} moved to place {place} of {total}.","viewbar.board.movedTo":"Moved to {lane}.","viewbar.board.movedUp":"Moved up.","viewbar.board.movedDown":"Moved down.","viewbar.board.movedPosition":"Moved {lane} to position {position} of {total}.","viewbar.board.cancelled":"Cancelled.","viewbar.board.wipLimit":"{lane} is at its WIP limit ({limit}).","viewbar.board.cannotMove":"Cards can't be moved here.","viewbar.board.cardBlocked":"{card} is blocked and can't be moved.","viewbar.board.selected":"Selected {card}. {count} selected.","viewbar.board.deselected":"Deselected {card}. {count} selected.","viewbar.board.expand":"Expand {lane}","viewbar.board.collapse":"Collapse {lane}","viewbar.board.wipTitle":"At most {limit} cards","viewbar.board.none":"(none)","viewbar.moveField":"Move {name}","viewbar.moveFieldHint":"Drag, or press the up and down arrows","viewbar.fieldMoved":"{name} moved to place {place} of {count}","viewbar.calendar.month":"Month","viewbar.calendar.week":"Week","viewbar.calendar.day":"Day","viewbar.calendar.agenda":"Agenda","viewbar.calendar.timelineDay":"Day","viewbar.calendar.timelineWeek":"Week","viewbar.calendar.timelineMonth":"Month","viewbar.calendar.timelineYear":"Year","viewbar.calendar.today":"Today","viewbar.calendar.previous":"Previous","viewbar.calendar.next":"Next","viewbar.calendar.allDay":"all day","viewbar.calendar.more":"+{count} more","viewbar.calendar.noEvents":"No events in this range.","viewbar.calendar.eventsColumn":"Events","viewbar.calendar.edit":"Edit","viewbar.calendar.duplicate":"Duplicate","viewbar.calendar.delete":"Delete","viewbar.calendar.moveGrabbed":"{title} picked up. Arrow keys move it, Space puts it down, Escape cancels.","viewbar.gantt.expandAll":"Expand all","viewbar.gantt.collapseAll":"Collapse all","viewbar.gantt.expandTask":"Expand {title}","viewbar.gantt.collapseTask":"Collapse {title}","viewbar.gantt.zoomIn":"Zoom in","viewbar.gantt.zoomOut":"Zoom out","viewbar.gantt.zoomDay":"day","viewbar.gantt.zoomWeek":"week","viewbar.gantt.zoomMonth":"month","viewbar.gantt.zoomQuarter":"quarter","viewbar.gantt.zoomYear":"year","viewbar.gantt.tableLabel":"Records","viewbar.gantt.chartLabel":"Gantt bars","viewbar.gantt.resizeTable":"Resize the record table","viewbar.gantt.days":"Days","viewbar.gantt.progress":"Progress","viewbar.gantt.slack":"Slack","viewbar.gantt.start":"Start","viewbar.gantt.finish":"Finish","viewbar.gantt.progressPercent":"Progress %","viewbar.gantt.task":"Record","viewbar.gantt.milestone":"Milestone","viewbar.gantt.day":"{count} day","viewbar.gantt.daysCount":"{count} days","viewbar.gantt.open":"Open","viewbar.gantt.openTask":"Open {title}","viewbar.gantt.edit":"Edit","viewbar.gantt.addSubtask":"Add subtask","viewbar.gantt.delete":"Delete","viewbar.gantt.deleteTask":"Delete record","viewbar.gantt.removeLink":"Remove link: {from} to {to}","viewbar.gantt.taskActions":"Record actions","viewbar.gantt.save":"Save","viewbar.gantt.cancel":"Cancel","viewbar.gantt.onBaseline":"On the baseline","viewbar.gantt.laterThanBaseline":"{count} days later than baseline","viewbar.gantt.aheadOfBaseline":"{count} days ahead of baseline","viewbar.gantt.dragProgress":"Drag to set progress","viewbar.gantt.linkFromStart":"Drag to link from the start","viewbar.gantt.linkFromFinish":"Drag to link from the finish","viewbar.gantt.workingDays":"{count} working days, {progress}%","viewbar.gantt.onCriticalPath":"On the critical path","viewbar.gantt.daysOfSlack":"{count} days of slack","viewbar.gantt.notMet":"not met","viewbar.gantt.peak":"peak {peak} / {capacity}","viewbar.gantt.loadOf":"{label}: {load} of {capacity}","viewbar.gantt.moveGrabbed":"{title} picked up. Arrow keys move it, Space puts it down, Escape cancels.","viewbar.gantt.moveDone":"{title} moved to {range}.","viewbar.gantt.moveCancelled":"Move cancelled.","viewbar.gantt.resized":"{title} now ends {date}.","viewbar.gantt.progressSet":"{title} at {progress}%.","viewbar.gantt.upcoming":"{title}, upcoming {date}","viewbar.calendar.moveDone":"{title} moved to {place}.","viewbar.calendar.moveCancelled":"Move cancelled.","viewbar.calendar.moveBlocked":"That time is not free.","viewbar.calendar.scopeEdit":"Edit recurring event","viewbar.calendar.scopeDelete":"Delete recurring event","viewbar.calendar.scopeOccurrence":"This event","viewbar.calendar.scopeFollowing":"This and following","viewbar.calendar.scopeSeries":"All events","viewbar.calendar.upcoming":"{name}, upcoming","viewbar.sortToOrder":"Sort this view by a number field to keep the order of its cards","viewbar.viewSettings":"View settings","viewbar.views":"Views","viewbar.defaultViewName":"Grid view","viewbar.viewCopy":"{name} copy","viewbar.rowShort":"Short","viewbar.rowMedium":"Medium","viewbar.rowTall":"Tall","viewbar.rowExtraTall":"Extra tall","viewbar.lockedTitle":"This view is locked: its settings stay as saved","viewbar.lockedTitleBy":"This view is locked by {name}: its settings stay as saved","viewbar.locked":"Locked","viewbar.lockedNotSaved":"Locked, not saved","viewbar.reset":"Reset","viewbar.personalTitle":"A personal view: only you see it","viewbar.personal":"Personal","viewbar.hideFields":"Hide fields","viewbar.hiddenFields.one":"{count} hidden field","viewbar.hiddenFields.other":"{count} hidden fields","viewbar.filter":"Filter","viewbar.filteredBy":"Filtered by {field}","viewbar.filteredByFields.one":"Filtered by {count} field","viewbar.filteredByFields.other":"Filtered by {count} fields","viewbar.group":"Group","viewbar.groupedBy.one":"Grouped by {count} field","viewbar.groupedBy.other":"Grouped by {count} fields","viewbar.sort":"Sort","viewbar.sortedBy.one":"Sorted by {count} field","viewbar.sortedBy.other":"Sorted by {count} fields","viewbar.color":"Color","viewbar.coloredBy":"Colored by {field}","viewbar.coloredByAField":"Colored by field","viewbar.coloredByConditions":"Colored by conditions","viewbar.customizeChart":"Customize chart","viewbar.customizeForm":"Customize form","viewbar.formTitle":"Title","viewbar.formDescription":"Line under the title","viewbar.formButton":"Button text","viewbar.formFields":"Fields the form asks for","viewbar.formRequiredColumn":"Required","viewbar.formAsk":"Ask for {field}","viewbar.formRequire":"{field} is required","viewbar.formMoveUp":"Move {field} up","viewbar.formMoveDown":"Move {field} down","viewbar.customizeTimeline":"Customize timeline","viewbar.customizeGantt":"Customize Gantt","viewbar.customizeList":"Customize list","viewbar.customizeInbox":"Customize inbox","viewbar.customizeBoard":"Customize board","viewbar.customizeCards":"Customize cards","viewbar.cardsFit":"Picture","viewbar.cardsFitFill":"Fill the card","viewbar.cardsFitWhole":"Show the whole picture","viewbar.cardsSize":"Card size","viewbar.cardsSmall":"Small","viewbar.cardsMedium":"Medium","viewbar.cardsLarge":"Large","viewbar.cardsSizeHint":"Long text shows 2 lines on a small card, 3 on a medium one and 5 on a large one.","viewbar.cardsCompact":"Compact","viewbar.boardSizeHint":"Large cards make the columns wider, with a bigger picture and 4 lines of long text instead of 2.","viewbar.cardsLabels":"Show field names","viewbar.cardsFieldsHint":"To choose which fields the cards show, use Hide fields.","viewbar.criticalPath":"Show the critical path","viewbar.criticalPathHint":"The tasks that set the finish date get a red outline: if one of them is late, so is the end. Point at any other task to see how many days it can slip.","viewbar.boardRowsBy":"Rows by","viewbar.boardDue":"Due date","viewbar.boardFade":"Fade cards by","viewbar.boardFadeHint":"Cards fade a little more each week after this date. Pick a Last modified time field to fade the ones nobody has changed.","viewbar.boardBlocked":"Blocked when","viewbar.boardOnCards":"On the cards (up to {count})","viewbar.boardQuickFilters":"Quick filters above the board","viewbar.boardLimits":"Most cards in a column","viewbar.boardNoLimit":"No limit","viewbar.rowHeight":"Row height","viewbar.markAllSeen":"Mark all as seen","viewbar.automations":"Automations","viewbar.automationCount.one":"{count} automation","viewbar.automationCount.other":"{count} automations","viewbar.records.one":"{count} record","viewbar.records.other":"{count} records","viewbar.findRecord":"Find a record","viewbar.search":"Search","viewbar.scanToFind":"Scan a code to find its record","viewbar.searchShortcut":"Search (Ctrl+F)","viewbar.myViews":"My views","viewbar.section":"Section","viewbar.moveToSection":"Move {name} to a section","viewbar.sectionOf":"Section of {name}","viewbar.sectionPlaceholder":"A section, or empty for none","viewbar.newView":"New {type} view","viewbar.name":"Name","viewbar.stackBy":"Stack records by","viewbar.startDate":"Start date","viewbar.dateField":"Date field","viewbar.endDate":"End date","viewbar.none":"None","viewbar.progress":"Progress","viewbar.dependsOn":"Depends on","viewbar.chartType":"Chart type","viewbar.groupBy":"Group by","viewbar.value":"Value","viewbar.numberOfRecords":"Number of records","viewbar.sumOf":"Sum of {field}","viewbar.averageOf":"Average of {field}","viewbar.newestFirstBy":"Newest first by","viewbar.viewsSort":"The view's sort","viewbar.coverImage":"Cover image","viewbar.personalCheck":"Personal view: only I see it","viewbar.cancel":"Cancel","viewbar.createView":"Create view","viewbar.viewName":"View name","viewbar.rename":"Rename","viewbar.renameView":"Rename {name}","viewbar.duplicate":"Duplicate","viewbar.duplicateView":"Duplicate {name}","viewbar.lockView":"Lock {name}","viewbar.unlockView":"Unlock {name}","viewbar.lockHint":"Lock: keep its settings as they are now","viewbar.unlockHint":"Unlock: anyone can change its settings","viewbar.delete":"Delete","viewbar.deleteView":"Delete {name}","viewbar.create":"Create","viewbar.createPersonal":"Create a personal view","viewbar.needsSelect":"Needs a single select field","viewbar.needsGroupField":"Needs a field to group by","viewbar.needsDate":"Needs a date field","viewbar.typeGrid":"Grid","viewbar.typeKanban":"Kanban","viewbar.typeCalendar":"Calendar","viewbar.typeTimeline":"Timeline","viewbar.typeGantt":"Gantt","viewbar.deleteViewAsk":"Delete {name}?","viewbar.typeGallery":"Gallery","viewbar.typeChart":"Chart","viewbar.typeForm":"Form","viewbar.typeList":"List","viewbar.typeInbox":"Inbox","viewbar.typeTree":"Tree","viewbar.typePivot":"Pivot","viewbar.parent":"Parent","viewbar.treeNeedsParent":"A tree needs a link to this table that names each record's parent.","viewbar.treeNeedsAll":"A tree needs every record at once, and this table is read a part at a time.","viewbar.pivotRows":"Rows","viewbar.pivotCols":"Columns","viewbar.pivotValues":"Values","viewbar.pivotAddRow":"Add a field","viewbar.pivotNoCols":"None","viewbar.pivotCount":"Count of records","viewbar.pivotSum":"Sum of {field}","viewbar.pivotAvg":"Average of {field}","viewbar.pivotMin":"Smallest {field}","viewbar.pivotMax":"Largest {field}","viewbar.pivotRemove":"Remove {field}","viewbar.pivotEmpty":"No records to add up.","viewbar.pivotLoaded":"Adds up the {count} records loaded in the page; the table has {total}.","viewbar.pivotTotal":"Total","viewbar.typeDashboard":"Dashboard","viewbar.sortFirstLast":"first → last","viewbar.sortLastFirst":"last → first","viewbar.sortDoneUp":"0% → 100% done","viewbar.sortDoneDown":"100% → 0% done","viewbar.sortHueUp":"red → pink","viewbar.sortHueDown":"pink → red","viewbar.sortAZ":"A → Z","viewbar.sortZA":"Z → A","viewbar.uncategorized":"Uncategorized","viewbar.expandRecord":"Expand record","viewbar.comment":"Comment","viewbar.moveTo":"Move to","viewbar.empty":"Empty","viewbar.duplicateRecord":"Duplicate record","viewbar.deleteRecord":"Delete record","viewbar.filterTitle":"In this view, show records","viewbar.filterEmpty":"No filter conditions are applied to this view","viewbar.where":"Where","viewbar.joinWith":"Join conditions with","viewbar.field":"Field","viewbar.fields":"Fields","viewbar.operator":"Operator","viewbar.removeCondition":"Remove condition","viewbar.addCondition":"+ Add condition","viewbar.addConditionGroup":"+ Add condition group","viewbar.sortBy":"Sort by","viewbar.direction":"Direction","viewbar.removeGroup":"Remove group","viewbar.removeSort":"Remove sort","viewbar.addSubgroup":"+ Add subgroup","viewbar.addSort":"+ Add another sort","viewbar.findField":"Find a field","viewbar.primaryAlwaysShown":"The primary field is always shown","viewbar.hideAll":"Hide all","viewbar.showAll":"Show all","viewbar.editFieldNamed":"Edit the field {name}","viewbar.colorRows":"Color rows","viewbar.selectField":"Select field","viewbar.conditions":"Conditions","viewbar.colorBySelect":"Color records the same as a single select field","viewbar.colorByConditions":"Color records that match a condition; the first match wins","viewbar.notColored":"Rows are not colored","viewbar.colorTabRows":"Rows","viewbar.colorTabCells":"Cells","viewbar.colorCellsHelp":"Color a field's cell while its value matches a condition. For one field, the first match wins.","viewbar.noCellColors":"No cells are colored","viewbar.addCellRule":"Add a rule","viewbar.coloredCells":"Colored cells","viewbar.highlightByHand":"Mark records by hand","viewbar.highlightByHandHelp":"Adds a Highlight field and colors each row by the color picked in it.","viewbar.highlightField":"Highlight","viewbar.chart":"Chart","viewbar.type":"Type","viewbar.chooseField":"Choose a field","viewbar.combine":"Combine","viewbar.sum":"Sum","viewbar.average":"Average","viewbar.timeline":"Timeline","viewbar.gantt":"Gantt","viewbar.laneBy":"Lanes by","viewbar.noneMilestone":"None (a milestone)","viewbar.ganttHint":"Arrows between records come from a link field to this same table.","viewbar.under":"Under {field}","viewbar.theName":"the name","viewbar.backToFirstThree":"Back to the first three shown","viewbar.me":"Me","viewbar.selectOption":"Select an option","viewbar.values":"Values","viewbar.noOptions":"No options","viewbar.span":"Span","viewbar.days":"Days","viewbar.day":"Day","viewbar.date":"Date","viewbar.enterValue":"Enter a value","viewbar.timePlaceholder":"9:30 am","viewbar.dayExactDate":"exact date","viewbar.spanPastNumberOfDays":"the past number of days","viewbar.spanNextNumberOfDays":"the next number of days","viewbar.opContains":"contains","viewbar.opDoesNotContain":"does not contain","viewbar.opIs":"is","viewbar.opIsNot":"is not","viewbar.opIsEmpty":"is empty","viewbar.opIsNotEmpty":"is not empty","viewbar.opIsAnyOf":"is any of","viewbar.opIsNoneOf":"is none of","viewbar.opHasAnyOf":"has any of","viewbar.opHasAllOf":"has all of","viewbar.opIsExactly":"is exactly","viewbar.opHasNoneOf":"has none of","viewbar.opIsBefore":"is before","viewbar.opIsAfter":"is after","viewbar.opIsOnOrBefore":"is on or before","viewbar.opIsOnOrAfter":"is on or after","viewbar.opIsWithin":"is within","viewbar.opIsAtOrBefore":"is at or before","viewbar.opIsAtOrAfter":"is at or after","viewbar.opFileNameContains":"file name contains","viewbar.opIsComplete":"is complete","viewbar.opIsNotComplete":"is not complete","viewbar.opDoneAtLeast":"% done ≥","viewbar.opDoneUnder":"% done <","viewbar.opHasItemContaining":"has an item containing","viewbar.dayToday":"today","viewbar.dayTomorrow":"tomorrow","viewbar.dayYesterday":"yesterday","viewbar.dayOneWeekAgo":"one week ago","viewbar.dayOneWeekFromNow":"one week from now","viewbar.dayOneMonthAgo":"one month ago","viewbar.dayOneMonthFromNow":"one month from now","viewbar.dayNumberFromNow":"number of days from now","viewbar.dayNumberAgo":"number of days ago","viewbar.dayDaysFromNow":"{days} days from now","viewbar.dayDaysAgo":"{days} days ago","viewbar.spanPastWeek":"the past week","viewbar.spanPastMonth":"the past month","viewbar.spanPastYear":"the past year","viewbar.spanNextWeek":"the next week","viewbar.spanNextMonth":"the next month","viewbar.spanNextYear":"the next year","viewbar.spanPastDays":"the past {days} days","viewbar.spanNextDays":"the next {days} days","viewbar.valueChecked":"checked","viewbar.valueUnchecked":"unchecked","viewbar.valueMe":"me","viewbar.conjAnd":"and","viewbar.conjOr":"or","viewbar.everyRecord":"every record","viewbar.untitled":"Untitled","viewbar.noRecordsInView":"No records. The view's filter may hide them all.","viewbar.groupLabel":"Group","viewbar.groupAria":"{field}: {value}","viewbar.changedTitle":"Changed by someone else","viewbar.changedSr":"Changed: ","viewbar.unread.one":"{count} unread","viewbar.unread.other":"{count} unread","viewbar.allRead":"All read","viewbar.markAllRead":"Mark all read","viewbar.recordsList":"Records","viewbar.selectedCard":"Selected","viewbar.record":"Record","viewbar.unreadSr":"Unread: ","viewbar.backToList":"Back to the list","viewbar.back":"Back","viewbar.previousRecord":"Previous record","viewbar.previousHint":"Previous (k)","viewbar.nextRecord":"Next record","viewbar.nextHint":"Next (j)","viewbar.expand":"Expand","viewbar.latestChanges":"Latest changes","viewbar.changedTo":"to","viewbar.byAutomation":"Automation: {name}","viewbar.someone":"Someone","viewbar.someoneElse":"Someone else","viewbar.you":"You","viewbar.addedRecord":"added this record","viewbar.changedField":"changed {field}","viewbar.cleared":"(cleared)","viewbar.comments.one":"{count} comment","viewbar.comments.other":"{count} comments","viewbar.addComment":"Add a comment","viewbar.pickRecord":"Pick a record to read it here. j and k move through the list.","viewbar.chartNoRecords":"No records to chart. The view's filter may hide them all.","viewbar.chartChooseField":"Choose a field to chart in Customize chart.","viewbar.chartBar":"Bar","viewbar.chartBarH":"Horizontal bar","viewbar.chartLine":"Line","viewbar.chartPie":"Pie","viewbar.chartDonut":"Donut","viewbar.chartChecked":"Checked","viewbar.chartUnchecked":"Unchecked","viewbar.chartRecords":"Records","viewbar.chartMonth":"{month} {year}","viewbar.monthJan":"Jan","viewbar.monthFeb":"Feb","viewbar.monthMar":"Mar","viewbar.monthApr":"Apr","viewbar.monthMay":"May","viewbar.monthJun":"Jun","viewbar.monthJul":"Jul","viewbar.monthAug":"Aug","viewbar.monthSep":"Sep","viewbar.monthOct":"Oct","viewbar.monthNov":"Nov","viewbar.monthDec":"Dec","viewbar.addTile":"Add tile","viewbar.addATile":"Add a tile","viewbar.dragTileHint":"Drag a tile to move it.","viewbar.done":"Done","viewbar.editDashboard":"Edit dashboard","viewbar.noTiles":"This dashboard has no tiles yet.","viewbar.dashboardTiles":"Dashboard tiles","viewbar.noRecordsMatch":"No records match.","viewbar.noRecordsYet":"No records yet.","viewbar.noRecordsToChart":"No records to chart.","viewbar.partOf":"{part} of {whole}","viewbar.openRecords.one":"Open the {count} record","viewbar.openRecords.other":"Open the {count} records","viewbar.tileSize":"Size of {title}","viewbar.moveTileEarlier":"Move {title} earlier","viewbar.moveEarlier":"Move earlier","viewbar.moveTileLater":"Move {title} later","viewbar.moveLater":"Move later","viewbar.editTileNamed":"Edit {title}","viewbar.editTile":"Edit tile","viewbar.removeTileNamed":"Remove {title}","viewbar.removeTile":"Remove tile","viewbar.removeTileAsk":"Remove this tile?","viewbar.removeTileYes":"Remove {title}","viewbar.tileRemoved":"{title} removed.","viewbar.tileMoved":"{title} moved to place {place} of {total}.","viewbar.shows":"Shows","viewbar.table":"Table","viewbar.deletedTable":"A deleted table","viewbar.ofField":"Of field","viewbar.caption":"Caption","viewbar.captionPlaceholder":"Target $500,000","viewbar.asEntered":"As entered","viewbar.lowToHigh":"Low to high","viewbar.highToLow":"High to low","viewbar.showBeside":"Show beside the name","viewbar.theSortField":"The sort field","viewbar.tileRecords":"Records","viewbar.progressHint":"Shows how many of the table's records match the filter below.","viewbar.doneWhen":"Done when","viewbar.progressEmpty":"Add the condition a record has to match to count as done.","viewbar.recordsEmpty":"Every record of the table. Add a condition to narrow it.","viewbar.title":"Title","viewbar.titlePlaceholder":"Named after what it shows","viewbar.size":"Size","viewbar.save":"Save","viewbar.inTable":"{count} in {table}","viewbar.openNamed":"Open {name}","viewbar.firstOf":"The first {shown} of {count}.","viewbar.tileNumber":"Number","viewbar.tileList":"List","viewbar.tileText":"Text","viewbar.tileButton":"Button","viewbar.tileTextLabel":"Text","viewbar.tileTextHint":"A line starting with # is a heading. **Bold**, and links as [words](https://...).","viewbar.tileTextEmpty":"Edit the tile to write its text.","viewbar.tileButtonLabel":"Label","viewbar.tileButtonUrl":"Opens","viewbar.tileButtonUrlHint":"An address starting with https://, http://, mailto: or /.","viewbar.tileButtonEmpty":"Edit the tile to say where it goes.","viewbar.tileButtonDefault":"Open","viewbar.tileImage":"Image","viewbar.tileDivider":"Divider","viewbar.tilePicker":"Record picker","viewbar.tileImageUrl":"Image address","viewbar.tileImageUrlHint":"An address starting with https://, http:// or /.","viewbar.tileImageAlt":"What it shows","viewbar.tileImageAltPlaceholder":"Said to people who cannot see it","viewbar.tileImageFit":"Fit","viewbar.tileImageContain":"Whole image","viewbar.tileImageCover":"Fill the tile","viewbar.tileImageEmpty":"Edit the tile to give it an image.","viewbar.tileDividerHint":"A line across the dashboard, with its title over it: a new section starts.","viewbar.tilePickerFields":"Fields shown","viewbar.tilePickerHint":"People pick a record here; tiles narrowed by this picker then count only the records linked to it.","viewbar.tilePickerChoose":"Choose a record","viewbar.tilePickerAll":"Every record","viewbar.tilePickerNone":"No records to choose from.","viewbar.tilePickerFirst":"The first {count} records are listed.","viewbar.tilePickerOpen":"Open the record","viewbar.tilePickerPick":"Pick a record to see it here.","viewbar.narrowedBy":"Narrowed by","viewbar.narrowNone":"No record picker","viewbar.narrowOption":"{picker}: records whose {field} is the one picked","viewbar.sizeSmall":"Small","viewbar.sizeWide":"Wide","viewbar.sizeLarge":"Large","viewbar.smallest":"Smallest","viewbar.largest":"Largest","viewbar.chooseFieldToAddUp":"Choose a field to add up.","viewbar.noValues":"No values","viewbar.unnamedRecord":"Untitled record","viewbar.tileTableGone":"The table this tile reads is gone. Edit the tile to pick another.","viewbar.chooseFieldToGroup":"Choose a field to group the records by.","viewbar.tile":"Tile","viewbar.titleTotal":"Total {field}","viewbar.titleAverage":"Average {field}","viewbar.titleSmallest":"Smallest {field}","viewbar.titleLargest":"Largest {field}","viewbar.titleBy":"{value} by {field}"};
|
|
@@ -452,6 +452,8 @@ export declare const BASE_MESSAGES: {
|
|
|
452
452
|
readonly 'extras.aiInto': "Put the answer in";
|
|
453
453
|
readonly 'extras.aiNowhere': "No field (use {ai} in the next steps)";
|
|
454
454
|
readonly 'extras.aiHint': "Name fields in braces. The answer is {ai} in the next steps.";
|
|
455
|
+
readonly 'extras.aiBase': "Send it the whole base";
|
|
456
|
+
readonly 'extras.aiBaseHint': "The records of every table go with the prompt, for a letter about all of it (\"What should I do this week?\").";
|
|
455
457
|
readonly 'extras.scriptCode': "Script";
|
|
456
458
|
readonly 'extras.scriptNeedsBrowser': "A script runs in the browser: set Runs in to The browser.";
|
|
457
459
|
readonly 'extras.scriptHint': "JavaScript, as in Airtable: input.config() has the record's fields by name; base.getTable('Name') reads and changes a table (selectRecordsAsync, updateRecordAsync, createRecordAsync, deleteRecordAsync); output.set('name', value) is {script.name} in the next steps; fetch() calls https addresses that allow it. It runs in a sandbox for up to 30 seconds.";
|
|
@@ -462,6 +464,135 @@ export declare const BASE_MESSAGES: {
|
|
|
462
464
|
readonly 'extras.summaryRepeat': "{steps} for each record in {table}";
|
|
463
465
|
readonly 'extras.summaryIf': "Then {then}; otherwise {otherwise}";
|
|
464
466
|
readonly 'extras.summaryScript': "{lines} lines";
|
|
467
|
+
readonly 'extras.whenChangesFrom': "When a record changes from {from}";
|
|
468
|
+
readonly 'extras.whenChangesFromTo': "When a record changes from {from} to {condition}";
|
|
469
|
+
readonly 'extras.fromTitle': "Only when, before the change";
|
|
470
|
+
readonly 'extras.fromAny': "Whatever it was before the change";
|
|
471
|
+
readonly 'extras.tabCreate': "Create";
|
|
472
|
+
readonly 'extras.tabManage': "Manage";
|
|
473
|
+
readonly 'extras.gallerySearch': "Search recipes";
|
|
474
|
+
readonly 'extras.galleryCategories': "Categories";
|
|
475
|
+
readonly 'extras.galleryExplore': "Explore";
|
|
476
|
+
readonly 'extras.galleryBasics': "Start with the basics";
|
|
477
|
+
readonly 'extras.galleryNone': "No recipe has these words. Try other words, describe it with AI on Explore, or build it step by step.";
|
|
478
|
+
readonly 'extras.galleryNoneTitle': "No recipes";
|
|
479
|
+
readonly 'extras.recipeCount.one': "{count} recipe";
|
|
480
|
+
readonly 'extras.recipeCount.other': "{count} recipes";
|
|
481
|
+
readonly 'extras.cat_status': "Status changes";
|
|
482
|
+
readonly 'extras.cat_created': "New records";
|
|
483
|
+
readonly 'extras.cat_dates': "Dates and reminders";
|
|
484
|
+
readonly 'extras.cat_forms': "Forms and buttons";
|
|
485
|
+
readonly 'extras.cat_ai': "AI";
|
|
486
|
+
readonly 'extras.cat_messages': "E-mail and messages";
|
|
487
|
+
readonly 'extras.cat_records': "Other tables";
|
|
488
|
+
readonly 'extras.cat_connect': "Connect other apps";
|
|
489
|
+
readonly 'extras.fromScratch': "Create from scratch";
|
|
490
|
+
readonly 'extras.fromScratchHint': "Pick what starts it and what it does, step by step.";
|
|
491
|
+
readonly 'extras.describeCard': "Describe it with AI";
|
|
492
|
+
readonly 'extras.useRecipe': "Use template";
|
|
493
|
+
readonly 'extras.recipeTable': "In table";
|
|
494
|
+
readonly 'extras.recipeAdd': "Add automation";
|
|
495
|
+
readonly 'extras.recipeCancel': "Cancel";
|
|
496
|
+
readonly 'extras.showAll': "Show all";
|
|
497
|
+
readonly 'extras.recipeAdded': "Added and switched on. Check it here, and try it with Test.";
|
|
498
|
+
readonly 'extras.recipeFill': "Fill in the words in bold";
|
|
499
|
+
readonly 'extras.blankTheField': "the {field}";
|
|
500
|
+
readonly 'extras.blankAnyForm': "any form";
|
|
501
|
+
readonly 'extras.blankTyped': "Type it, or pick one";
|
|
502
|
+
readonly 'extras.blankMe': "me ({name})";
|
|
503
|
+
readonly 'extras.recipe_statusNotify': "When {status} changes to {value}, notify {who}";
|
|
504
|
+
readonly 'extras.recipe_statusFromTo': "When {status} changes from {from} to {value}, notify {who}";
|
|
505
|
+
readonly 'extras.recipe_statusAssign': "When {status} changes to {value}, assign {member} as {person}";
|
|
506
|
+
readonly 'extras.recipe_statusMove': "When {status} changes to {value}, set {status2} to {value2}";
|
|
507
|
+
readonly 'extras.recipe_statusStamp': "When {status} changes to {value}, set {date} to today";
|
|
508
|
+
readonly 'extras.recipe_checkboxStatus': "When {box} is checked, set {status} to {value}";
|
|
509
|
+
readonly 'extras.recipe_createdNotify': "When a record is created, notify {who}";
|
|
510
|
+
readonly 'extras.recipe_createdCreator': "When a record is created, assign {creator} as {person}";
|
|
511
|
+
readonly 'extras.recipe_createdStatus': "When a record is created, set {status} to {value}";
|
|
512
|
+
readonly 'extras.recipe_createdDue': "When a record is created, set {date} to {days} days from today";
|
|
513
|
+
readonly 'extras.recipe_dateNotify': "When {date} arrives, notify {who}";
|
|
514
|
+
readonly 'extras.recipe_dateBeforeNotify': "{days} days before {date}, notify {who}";
|
|
515
|
+
readonly 'extras.recipe_dateOverdue': "The day after {date}, if {status} is not {value}, notify {who}";
|
|
516
|
+
readonly 'extras.recipe_dateStatus': "When {date} arrives, set {status} to {value}";
|
|
517
|
+
readonly 'extras.recipe_dateBeforeEmail': "{days} days before {date}, e-mail a reminder to {email}";
|
|
518
|
+
readonly 'extras.recipe_dateBeforeText': "{days} days before {date}, send a text message to {phone}";
|
|
519
|
+
readonly 'extras.recipe_everyCreate': "{every}, create a record in {table}";
|
|
520
|
+
readonly 'extras.recipe_formNotify': "When {form} is sent, notify {who}";
|
|
521
|
+
readonly 'extras.recipe_formEmail': "When {form} is sent, e-mail it to {to}";
|
|
522
|
+
readonly 'extras.recipe_everyRemind': "{every}, remind {who} to look through this table";
|
|
523
|
+
readonly 'extras.recipe_formThanks': "When a form is sent, send a thank you to {email}";
|
|
524
|
+
readonly 'extras.recipe_buttonStatus': "When {button} is pressed, set {status} to {value}";
|
|
525
|
+
readonly 'extras.recipe_buttonEmail': "When {button} is pressed, send an e-mail to {email}";
|
|
526
|
+
readonly 'extras.recipe_aiWrite': "When a record is created, AI writes {target} from {source}";
|
|
527
|
+
readonly 'extras.recipe_aiSort': "When a record is created, AI picks {status} from {source}";
|
|
528
|
+
readonly 'extras.recipe_aiFormSummary': "When a form is sent, AI sums it up in {target}";
|
|
529
|
+
readonly 'extras.recipe_aiReply': "When {status} changes to {value}, AI drafts a reply in {target}";
|
|
530
|
+
readonly 'extras.recipe_aiWeekly': "{every}, AI sums up the base and e-mails it to {to}";
|
|
531
|
+
readonly 'extras.recipe_statusEmail': "When {status} changes to {value}, send an e-mail to {email}";
|
|
532
|
+
readonly 'extras.recipe_statusText': "When {status} changes to {value}, send a text message to {phone}";
|
|
533
|
+
readonly 'extras.recipe_createdEmail': "When a record is created, e-mail {to}";
|
|
534
|
+
readonly 'extras.recipe_createdChat': "When a record is created, post it to Slack, Teams or Google Chat at {url}";
|
|
535
|
+
readonly 'extras.recipe_statusCreate': "When {status} changes to {value}, create a record in {table}";
|
|
536
|
+
readonly 'extras.recipe_createdCreate': "When a record is created, create a linked record in {table}";
|
|
537
|
+
readonly 'extras.recipe_webhookOut': "When a record is created, send it to another app at {url}";
|
|
538
|
+
readonly 'extras.recipe_webhookIn': "When another app sends data to a web address, create a record";
|
|
539
|
+
readonly 'extras.blank_select': "status";
|
|
540
|
+
readonly 'extras.blank_choice': "something";
|
|
541
|
+
readonly 'extras.blank_checkbox': "a checkbox";
|
|
542
|
+
readonly 'extras.blank_date': "date";
|
|
543
|
+
readonly 'extras.blank_days': "N";
|
|
544
|
+
readonly 'extras.blank_who': "someone";
|
|
545
|
+
readonly 'extras.blank_member': "someone";
|
|
546
|
+
readonly 'extras.blank_personField': "person";
|
|
547
|
+
readonly 'extras.blank_creator': "creator";
|
|
548
|
+
readonly 'extras.blank_emailField': "their e-mail";
|
|
549
|
+
readonly 'extras.blank_emailTo': "an address";
|
|
550
|
+
readonly 'extras.blank_phoneField': "their phone";
|
|
551
|
+
readonly 'extras.blank_textField': "a text field";
|
|
552
|
+
readonly 'extras.blank_sourceField': "a field";
|
|
553
|
+
readonly 'extras.blank_table': "a table";
|
|
554
|
+
readonly 'extras.blank_button': "a button";
|
|
555
|
+
readonly 'extras.blank_form': "a form";
|
|
556
|
+
readonly 'extras.blank_every': "Every day";
|
|
557
|
+
readonly 'extras.blank_url': "an address";
|
|
558
|
+
readonly 'extras.recipeNeeds_select': "Needs a single select field";
|
|
559
|
+
readonly 'extras.recipeNeeds_checkbox': "Needs a checkbox field";
|
|
560
|
+
readonly 'extras.recipeNeeds_date': "Needs a date field";
|
|
561
|
+
readonly 'extras.recipeNeeds_who': "Needs a person field or people in the base";
|
|
562
|
+
readonly 'extras.recipeNeeds_member': "Needs people in the base";
|
|
563
|
+
readonly 'extras.recipeNeeds_personField': "Needs a person field";
|
|
564
|
+
readonly 'extras.recipeNeeds_creator': "Needs a Created by field";
|
|
565
|
+
readonly 'extras.recipeNeeds_emailField': "Needs an e-mail field";
|
|
566
|
+
readonly 'extras.recipeNeeds_phoneField': "Needs a phone field";
|
|
567
|
+
readonly 'extras.recipeNeeds_textField': "Needs a text field";
|
|
568
|
+
readonly 'extras.recipeNeeds_sourceField': "Needs a field";
|
|
569
|
+
readonly 'extras.recipeNeeds_table': "Needs a table";
|
|
570
|
+
readonly 'extras.recipeNeeds_button': "Needs a button field";
|
|
571
|
+
readonly 'extras.recipeMsgNowIs': "{name} is now {field}";
|
|
572
|
+
readonly 'extras.recipeMsgFromTo': "{name} went from {from} to {to}";
|
|
573
|
+
readonly 'extras.recipeMsgNew': "New: {name}";
|
|
574
|
+
readonly 'extras.recipeMsgToday': "{field} is today: {name}";
|
|
575
|
+
readonly 'extras.recipeMsgSoon': "{name}: {field} is on {date}";
|
|
576
|
+
readonly 'extras.recipeMsgLate': "{name} is late: {field} was {date}";
|
|
577
|
+
readonly 'extras.recipeMsgForm': "A form was sent: {name}";
|
|
578
|
+
readonly 'extras.recipeMailReminderSubject': "Reminder: {name}";
|
|
579
|
+
readonly 'extras.recipeMailReminderBody': "Hello,\n\nA reminder about {name}: {field} is on {date}.\n\nThank you";
|
|
580
|
+
readonly 'extras.recipeTextReminder': "Reminder: {name} on {date}";
|
|
581
|
+
readonly 'extras.recipeMailThanksSubject': "Thank you, we have it";
|
|
582
|
+
readonly 'extras.recipeMailThanksBody': "Hello,\n\nThank you for writing to us. We have it ({name}) and will come back to you soon.";
|
|
583
|
+
readonly 'extras.recipeMailFormBody': "A new answer came in to {table}: {name}.";
|
|
584
|
+
readonly 'extras.recipeMsgLook': "Time to look through {table}.";
|
|
585
|
+
readonly 'extras.recipeMailButtonBody': "Hello,\n\nAbout {name}.\n\nThank you";
|
|
586
|
+
readonly 'extras.recipeMailStatusSubject': "{name}: {value}";
|
|
587
|
+
readonly 'extras.recipeMailStatusBody': "Hello,\n\n{name} is now {value}.\n\nThank you";
|
|
588
|
+
readonly 'extras.recipeTextStatus': "{name} is now {value}";
|
|
589
|
+
readonly 'extras.recipeMailNewSubject': "New: {name}";
|
|
590
|
+
readonly 'extras.recipeMailWeeklySubject': "Your summary from the base";
|
|
591
|
+
readonly 'extras.recipeAiWrite': "Write the {target} for this record in a few plain sentences, from this: {source}";
|
|
592
|
+
readonly 'extras.recipeAiSort': "Pick the {field} that fits best. Answer with exactly one of these and nothing else: {choices}. The record: {source}";
|
|
593
|
+
readonly 'extras.recipeAiSummary': "Sum up this form answer in two or three plain sentences, saying what the person wants:\n{answers}";
|
|
594
|
+
readonly 'extras.recipeAiReply': "Write a short, friendly reply to the client about {name}, from what the record says.";
|
|
595
|
+
readonly 'extras.recipeAiWeekly': "Sum up what is in this base: what is new, what is waiting and what is late. Plain words, short lines.";
|
|
465
596
|
readonly 'fields.editorTitleEdit': "Edit field";
|
|
466
597
|
readonly 'fields.editorTitleAdd': "Add field";
|
|
467
598
|
readonly 'fields.name': "Name";
|
|
@@ -1621,6 +1752,10 @@ export declare const BASE_MESSAGES: {
|
|
|
1621
1752
|
readonly 'viewbar.dayOneWeekFromNow': "one week from now";
|
|
1622
1753
|
readonly 'viewbar.dayOneMonthAgo': "one month ago";
|
|
1623
1754
|
readonly 'viewbar.dayOneMonthFromNow': "one month from now";
|
|
1755
|
+
readonly 'viewbar.dayNumberFromNow': "number of days from now";
|
|
1756
|
+
readonly 'viewbar.dayNumberAgo': "number of days ago";
|
|
1757
|
+
readonly 'viewbar.dayDaysFromNow': "{days} days from now";
|
|
1758
|
+
readonly 'viewbar.dayDaysAgo': "{days} days ago";
|
|
1624
1759
|
readonly 'viewbar.spanPastWeek': "the past week";
|
|
1625
1760
|
readonly 'viewbar.spanPastMonth': "the past month";
|
|
1626
1761
|
readonly 'viewbar.spanPastYear': "the past year";
|
package/dist/fields/rollups.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** The moment a date value stands for: a Date, or text that starts as one (2026-11-15, 2026-11-15T10:30:00Z); else null. */
|
|
2
|
+
export declare function dateTimeOf(x: unknown): number | null;
|
|
1
3
|
/** A rollup's aggregation over the linked records' values. */
|
|
2
4
|
export declare const ROLLUPS: Record<string, (vals: unknown[]) => unknown>;
|
|
3
5
|
/** Field types whose value is worked out from the record, never stored. */
|
package/dist/fields/rollups.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{toNumber as
|
|
1
|
+
import{toNumber as o}from"./format.js";import{maxOf as a,minOf as s}from"../extent.js";export function dateTimeOf(e){if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.getTime();if(typeof e!="string"||!/^\d{4}-\d{2}-\d{2}/.test(e))return null;const t=Date.parse(e.length===10?`${e}T00:00:00`:e);return Number.isNaN(t)?null:t}function u(e,t){let n=null,r=0;for(const i of e){const l=dateTimeOf(i);l!=null&&(n==null||(t?l>r:l<r))&&(n=i,r=l)}return n}const f=e=>e.filter(t=>!(t instanceof Date)).map(o).filter(t=>t!=null);export const ROLLUPS={SUM:e=>e.reduce((t,n)=>t+(o(n)??0),0),AVERAGE:e=>{const t=e.map(o).filter(n=>n!=null);return t.length?t.reduce((n,r)=>n+r,0)/t.length:null},MIN:e=>{const t=f(e);return t.length?s(t):u(e,!1)},MAX:e=>{const t=f(e);return t.length?a(t):u(e,!0)},COUNT:e=>e.filter(t=>typeof t=="number").length,COUNTA:e=>e.filter(t=>t!=null&&t!=="").length,COUNTALL:e=>e.length,ARRAYJOIN:e=>e.filter(t=>t!=null&&t!=="").map(String).join(", "),ARRAYUNIQUE:e=>[...new Set(e.filter(t=>t!=null&&t!=="").map(String))].join(", "),CONCATENATE:e=>e.map(t=>t==null?"":String(t)).join(""),AND:e=>e.every(Boolean),OR:e=>e.some(Boolean)},COMPUTED_TYPES=new Set(["formula","lookup","rollup","count"]);export function fieldNameMap(e){const t={};for(const n of e){const r=String(n.field??n.id??"");r&&(t[r.toLowerCase()]=r,typeof n.header=="string"&&(t[n.header.trim().toLowerCase()]=r))}return t}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import{ME,NO_VALUE}from"../filter-model";import{fieldPropsOf,originalColumn}from"../registry.svelte";import{getFieldUsers}from"../sources.svelte";import{safeColor,textOn}from"../palette";import{bm}from"../messages.svelte";let{column,condition,onChange}=$props();const choices=$derived.by(()=>{if(column.fieldType==="user"||column.fieldType==="createdBy"||column.fieldType==="lastModifiedBy")return[{value:ME,label:bm("viewbar.me")},...getFieldUsers().map(u=>({value:u.id,label:u.name}))];const p=fieldPropsOf(originalColumn(column.def));return(p.options??[]).map(o=>({value:o.value,label:o.value,...o.color?{color:o.color}:{}}))});const many=$derived(condition.kind==="multi"||condition.kind==="select"&&condition.op!=="is"&&condition.op!=="isNot");const picked=$derived(new Set(Array.isArray(condition.value)?condition.value:[]));function toggle(v){const next=new Set(picked);if(next.has(v))next.delete(v);else next.add(v);onChange([...next])}const DAYS=[{value:"today",key:"viewbar.dayToday"},{value:"tomorrow",key:"viewbar.dayTomorrow"},{value:"yesterday",key:"viewbar.dayYesterday"},{value:"oneWeekAgo",key:"viewbar.dayOneWeekAgo"},{value:"oneWeekFromNow",key:"viewbar.dayOneWeekFromNow"},{value:"oneMonthAgo",key:"viewbar.dayOneMonthAgo"},{value:"oneMonthFromNow",key:"viewbar.dayOneMonthFromNow"},{value:"exactDate",key:"viewbar.dayExactDate"}];const SPANS=[{value:"pastWeek",key:"viewbar.spanPastWeek"},{value:"pastMonth",key:"viewbar.spanPastMonth"},{value:"pastYear",key:"viewbar.spanPastYear"},{value:"nextWeek",key:"viewbar.spanNextWeek"},{value:"nextMonth",key:"viewbar.spanNextMonth"},{value:"nextYear",key:"viewbar.spanNextYear"},{value:"pastDays",key:"viewbar.spanPastNumberOfDays"},{value:"nextDays",key:"viewbar.spanNextNumberOfDays"}];const target=$derived(condition.value??{mode:"today"});const span=$derived(condition.value??{span:"pastWeek"});const textValue=$derived(typeof condition.value==="string"||typeof condition.value==="number"?String(condition.value):"");
|
|
2
|
+
import{ME,NO_VALUE}from"../filter-model";import{fieldPropsOf,originalColumn}from"../registry.svelte";import{getFieldUsers}from"../sources.svelte";import{safeColor,textOn}from"../palette";import{bm}from"../messages.svelte";let{column,condition,onChange}=$props();const choices=$derived.by(()=>{if(column.fieldType==="user"||column.fieldType==="createdBy"||column.fieldType==="lastModifiedBy")return[{value:ME,label:bm("viewbar.me")},...getFieldUsers().map(u=>({value:u.id,label:u.name}))];const p=fieldPropsOf(originalColumn(column.def));return(p.options??[]).map(o=>({value:o.value,label:o.value,...o.color?{color:o.color}:{}}))});const many=$derived(condition.kind==="multi"||condition.kind==="select"&&condition.op!=="is"&&condition.op!=="isNot");const picked=$derived(new Set(Array.isArray(condition.value)?condition.value:[]));function toggle(v){const next=new Set(picked);if(next.has(v))next.delete(v);else next.add(v);onChange([...next])}const DAYS=[{value:"today",key:"viewbar.dayToday"},{value:"tomorrow",key:"viewbar.dayTomorrow"},{value:"yesterday",key:"viewbar.dayYesterday"},{value:"oneWeekAgo",key:"viewbar.dayOneWeekAgo"},{value:"oneWeekFromNow",key:"viewbar.dayOneWeekFromNow"},{value:"oneMonthAgo",key:"viewbar.dayOneMonthAgo"},{value:"oneMonthFromNow",key:"viewbar.dayOneMonthFromNow"},{value:"daysFromNow",key:"viewbar.dayNumberFromNow"},{value:"daysAgo",key:"viewbar.dayNumberAgo"},{value:"exactDate",key:"viewbar.dayExactDate"}];const SPANS=[{value:"pastWeek",key:"viewbar.spanPastWeek"},{value:"pastMonth",key:"viewbar.spanPastMonth"},{value:"pastYear",key:"viewbar.spanPastYear"},{value:"nextWeek",key:"viewbar.spanNextWeek"},{value:"nextMonth",key:"viewbar.spanNextMonth"},{value:"nextYear",key:"viewbar.spanNextYear"},{value:"pastDays",key:"viewbar.spanPastNumberOfDays"},{value:"nextDays",key:"viewbar.spanNextNumberOfDays"}];const target=$derived(condition.value??{mode:"today"});const span=$derived(condition.value??{span:"pastWeek"});const textValue=$derived(typeof condition.value==="string"||typeof condition.value==="number"?String(condition.value):"");
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
{#if NO_VALUE.has(condition.op)}
|
|
@@ -59,7 +59,7 @@ import{ME,NO_VALUE}from"../filter-model";import{fieldPropsOf,originalColumn}from
|
|
|
59
59
|
value={target.mode}
|
|
60
60
|
onchange={(e) => {
|
|
61
61
|
const mode = (e.currentTarget as HTMLSelectElement).value
|
|
62
|
-
onChange(mode === 'exactDate' ? { mode, date: target.date ?? '' } : { mode })
|
|
62
|
+
onChange(mode === 'exactDate' ? { mode, date: target.date ?? '' } : mode === 'daysFromNow' || mode === 'daysAgo' ? { mode, days: target.days ?? 1 } : { mode })
|
|
63
63
|
}}
|
|
64
64
|
>
|
|
65
65
|
{#each DAYS as d (d.value)}<option value={d.value}>{bm(d.key)}</option>{/each}
|
|
@@ -72,6 +72,15 @@ import{ME,NO_VALUE}from"../filter-model";import{fieldPropsOf,originalColumn}from
|
|
|
72
72
|
value={target.date ?? ''}
|
|
73
73
|
oninput={(e) => onChange({ mode: 'exactDate', date: (e.currentTarget as HTMLInputElement).value })}
|
|
74
74
|
/>
|
|
75
|
+
{:else if target.mode === 'daysFromNow' || target.mode === 'daysAgo'}
|
|
76
|
+
<input
|
|
77
|
+
class="sv-fvb-input sv-fcv-days"
|
|
78
|
+
type="number"
|
|
79
|
+
min="0"
|
|
80
|
+
aria-label={bm('viewbar.days')}
|
|
81
|
+
value={target.days ?? ''}
|
|
82
|
+
oninput={(e) => onChange({ mode: target.mode, days: Number((e.currentTarget as HTMLInputElement).value) })}
|
|
83
|
+
/>
|
|
75
84
|
{/if}
|
|
76
85
|
</span>
|
|
77
86
|
{:else}
|
package/dist/node/studio.js
CHANGED
|
@@ -913,7 +913,7 @@ ${E}
|
|
|
913
913
|
@keyframes st-home-spin { to { transform: rotate(360deg); } }
|
|
914
914
|
</style>
|
|
915
915
|
`}}function Ka(e){for(const r of e)je(r);const t=new Map(e.map(r=>[r.name,r])),a=e.map(r=>{const o=Eu(r,t);return{schema:Fu(r,o),infos:o}});return{entries:a,seed:Du(a)}}function fo(e,t={}){const{entries:a,seed:r}=Ka(e),{file:o,needs:n}=em(a,r,t.sources,t.supabaseConn,t.serverMemory),i=[Lu(a),o];(n.supabase||t.supabaseAuth)&&!n.supabaseUrl&&(t.supabaseConn?.url||t.supabaseConn?.key)&&(n.supabaseUrl=t.supabaseConn.url,n.supabaseKey=t.supabaseConn.key),(n.supabase||t.supabaseAuth)&&i.push(tm(n));for(const s of n.sqlRoutes)i.push(Hu(s.schema,s.table,s.dialect,{access:t.accessEnabled,audit:t.auditEnabled,screenIds:t.screensByEntity?.get(s.schema.name)??[],triggers:t.triggers?.[s.schema.name],dbSchema:s.dbSchema,tenantField:t.tenantField&&t.tenantScoped?.(s.schema.name)!==!1?t.tenantField:void 0}));if(n.memoryRoutes.length){i.push(Gu(n.memoryRoutes));for(const s of n.memoryRoutes)i.push(Vu(s.schema,{access:t.accessEnabled,audit:t.auditEnabled,screenIds:t.screensByEntity?.get(s.schema.name)??[],triggers:t.triggers?.[s.schema.name],tenantField:t.tenantField&&t.tenantScoped?.(s.schema.name)!==!1?t.tenantField:void 0}))}return{files:i,prepared:a.map(s=>s.schema)}}function am(e){if(e.length===0)throw new Error("emitStudioApp: no schemas to emit");const{files:t,prepared:a}=fo(e),r=a.map(n=>{const i=z(n);return{href:`/${i.route}`,label:i.label}}),o={path:"src/custom.css",description:"Your custom styles (imported after app.css so it overrides).",userOwned:!0,contents:`/* Your custom styles. Imported after app.css, so these rules override the defaults. */
|
|
916
|
-
`};return[...t,...a.map(n=>Ni(n)),Mi(r),ji(r),o]}function rm(e){return e.fields.some(t=>!!t.when&&(!!t.when.visible||!!t.when.disabled||!!t.when.required))}var om="3.1.
|
|
916
|
+
`};return[...t,...a.map(n=>Ni(n)),Mi(r),ji(r),o]}function rm(e){return e.fields.some(t=>!!t.when&&(!!t.when.visible||!!t.when.disabled||!!t.when.required))}var om="3.1.76",nm="3.0.43",V=(e,t)=>e.some(a=>a.config.kind===t),qi=e=>`activeTab_${e.replace(/[^a-zA-Z0-9_$]/g,"_")}`,aa=(e,t)=>`${e}-${t}`,zi=e=>`accOpen_${e.replace(/[^a-zA-Z0-9_$]/g,"_")}`,ra=(e,t)=>`${e}-s${t}`,oa=e=>`md_${e.replace(/[^a-zA-Z0-9]/g,"_")}_rows`;function im(e){switch(e.type){case"number":{const t=e.decimals;return t!=null?`{ type: 'number', options: { minimumFractionDigits: ${t}, maximumFractionDigits: ${t} } }`:"{ type: 'number' }"}case"currency":return`{ type: 'currency', currency: ${S(e.currency||"USD")} }`;case"percent":{const t=["type: 'percent'"];return e.valueIsPercentPoints&&t.push("valueIsPercentPoints: true"),e.decimals!=null&&t.push(`options: { minimumFractionDigits: ${e.decimals}, maximumFractionDigits: ${e.decimals} }`),`{ ${t.join(", ")} }`}case"date":case"datetime":return e.pattern?`{ type: '${e.type}', pattern: ${S(e.pattern)} }`:`{ type: '${e.type}' }`}}function sm(e,t,a,r){if(t.config.kind!=="grid")return`schemaToColumns(${e})`;const o=t.config,n=t.id.replace(/-/g,"_"),i=o.columns.filter(b=>b.show),s=new Set(i.map(b=>b.field)),d=new Set,l=i.map(b=>{const y=r?.get(b.field);return{c:b,col:y&&!s.has(y)?y:b.field}}).filter(b=>!d.has(b.col)&&!!d.add(b.col)),c=o.editing==="inline"?"":", editable: false";if(l.length===0)return c?`schemaToColumns(${e}).map((c) => ({ ...c${c} }))`:`schemaToColumns(${e})`;const p=l.map(b=>`'${b.col}'`),u=l.map(({c:b,col:y})=>{const w=[];return b.header&&w.push(`header: ${JSON.stringify(b.header)}`),b.width!=null&&w.push(`width: ${b.width}`),b.align&&w.push(`align: '${b.align}'`),b.aggregate&&w.push(`aggregate: '${b.aggregate}'`),o.treeData&&b.field===o.treeData.labelField&&a?w.push(`cell: (ctx: CellContext<${a}>) => renderSnippet(treeCell_${n}, { value: ctx.getValue(), row: ctx.row.original })`):b.cellType&&a?w.push(`cell: (ctx: CellContext<${a}>) => renderSnippet(${Gi(n,b.field)}, { value: ctx.getValue() })`):b.format&&w.push(`format: ${im(b.format)}`),w.length?`'${y}': { ${w.join(", ")} }`:null}).filter(b=>!!b),m=u.length?` const ov: Record<string, Partial<(typeof all)[number]>> = { ${u.join(", ")} };`:"",g=u.length?", ...(ov[String(c.field)] ?? {})":"",h=`[${p.join(", ")}].map((f) => all.find((c) => c.field === f)).filter((c): c is (typeof all)[number] => !!c)`;return`(() => { const all = schemaToColumns(${e});${m} return ${c||g?`${h}.map((c) => ({ ...c${c}${g} }))`:h} })()`}function Ae(e,t){const a=[`grid-column: span ${ei(e)}`,"min-width: 0"];t&&a.push(t);const r=ti(e.style);return r&&a.push(r),`style="${a.join("; ")}"`}var lm=e=>e&&e.replace(/[^#a-zA-Z0-9(),.%\s_-]/g,"").slice(0,40)||"var(--sg-accent)";function Ue(e,t){const a=[t,Xn(e)].filter(Boolean).join(" ");return a?` class="${a}"`:""}function Ha(e){const t=Ta(e.className);return t?` ${t}`:""}function dm(e){const t=Fe(e);if(t==="grid"){const a=ui(e),r=a.maxWidth?` max-width: ${a.maxWidth}px; margin-inline: auto;`:"";return` .st-screen { grid-template-columns: repeat(12, 1fr); gap: ${a.rowGap}px ${a.colGap}px; align-items: ${a.align};${r} }
|
|
917
917
|
@media (max-width: ${a.mobileBreakpoint}px) { .st-screen { grid-template-columns: 1fr; gap: 12px; } }
|
|
918
918
|
`}if(t==="stack"){const a=mi(e),r=a.maxWidth?` max-width: ${a.maxWidth}px;${a.align==="center"?" margin-inline: auto;":""}`:"",o=a.minHeight?`
|
|
919
919
|
.st-stack > * { min-height: ${a.minHeight}px; }`:"",n=a.dividers?`
|
package/dist/version.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
|
|
12
12
|
*/
|
|
13
|
-
export declare const SVGRID_VERSION = "3.1.
|
|
13
|
+
export declare const SVGRID_VERSION = "3.1.76";
|
|
14
14
|
/**
|
|
15
15
|
* The version of `@svgrid/grid`, which releases on its own line: enterprise is
|
|
16
16
|
* on 3.1.x while the grid is on 3.0.x.
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SVGRID_VERSION="3.1.
|
|
1
|
+
export const SVGRID_VERSION="3.1.76",GRID_VERSION="3.0.43";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./disclose-version-P6hHkDOU.js";import{C as ue,E as Yt,Et as W,F as Gt,H as Jt,I as Kt,J as z,P as ee,Q as At,S as Ae,T as me,U as Y,V as _,Y as Se,Z as e,_t as $e,bt as Qt,ct as R,ft as b,h as U,j as Ce,lt as A,m as St,mt as X,n as Zt,nt as L,o as tt,ot as G,q as er,rt as $t,st as Ye,u as Ct,vt as Tt,xt as tr,z as C}from"./client-DTHOsJhV.js";import{r as Ge}from"./popover-WsGlvtQv.js";import{a as Ht,i as Je,m as zt,n as _t,p as rr,s as d,t as or}from"./embed-url-CGl6lpsT.js";var rt=["gray","brown","orange","yellow","green","blue","purple","pink","red"],Lt=h=>!!h&&rt.includes(h);function we(h,M){for(let l of Array.from(h.classList))if(l.startsWith(M)&&Lt(l.slice(M.length)))return l.slice(M.length);return null}var ot=(h,M)=>h.classList.contains(M),Ke={color:{default:null}},Qe=h=>Lt(h)?`sv-c-${h}`:"",Ze=(...h)=>h.filter(Boolean).join(" ")||void 0;function lr(h){let{Schema:M}=h;return new M({nodes:{doc:{content:"block+"},paragraph:{group:"block",content:"inline*",attrs:{...Ke},parseDOM:[{tag:"p",getAttrs:l=>({color:we(l,"sv-c-")})},{tag:"div",priority:10,getAttrs:l=>nr(l)?{color:we(l,"sv-c-")}:!1}],toDOM:l=>["p",{class:Ze(Qe(l.attrs.color))},0]},heading:{group:"block",content:"inline*",attrs:{level:{default:2},...Ke},defining:!0,parseDOM:[1,2,3].map(l=>({tag:`h${l}`,getAttrs:k=>({level:l,color:we(k,"sv-c-")})})).concat([4,5,6].map(l=>({tag:`h${l}`,getAttrs:k=>({level:3,color:we(k,"sv-c-")})}))),toDOM:l=>[`h${l.attrs.level}`,{class:Ze(Qe(l.attrs.color))},0]},blockquote:{group:"block",content:"block+",attrs:{...Ke},defining:!0,parseDOM:[{tag:"blockquote",getAttrs:l=>({color:we(l,"sv-c-")})}],toDOM:l=>["blockquote",{class:Ze(Qe(l.attrs.color))},0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["hr"]},code_block:{group:"block",content:"text*",marks:"",code:!0,defining:!0,attrs:{language:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:l=>{let k=l.querySelector("code"),f=Array.from(k?.classList??[]).find(O=>O.startsWith("language-"));return{language:f?f.slice(9):""}}}],toDOM:l=>["pre",["code",{class:l.attrs.language?`language-${l.attrs.language}`:void 0},0]]},bullet_list:{group:"block",content:"list_item+",parseDOM:[{tag:"ul",getAttrs:l=>!ot(l,"sv-todo")&&null}],toDOM:()=>["ul",0]},ordered_list:{group:"block",content:"list_item+",attrs:{order:{default:1}},parseDOM:[{tag:"ol",getAttrs:l=>({order:Number(l.getAttribute("start")??1)||1})}],toDOM:l=>["ol",l.attrs.order===1?{}:{start:l.attrs.order},0]},list_item:{content:"paragraph block*",defining:!0,parseDOM:[{tag:"li",getAttrs:l=>l.parentElement&&ot(l.parentElement,"sv-todo")?!1:null}],toDOM:()=>["li",0]},todo_list:{group:"block",content:"todo_item+",parseDOM:[{tag:"ul.sv-todo",priority:60}],toDOM:()=>["ul",{class:"sv-todo"},0]},todo_item:{content:"paragraph block*",defining:!0,attrs:{done:{default:!1}},parseDOM:[{tag:"ul.sv-todo > li",priority:60,getAttrs:l=>({done:ot(l,"sv-done")})}],toDOM:l=>["li",{class:l.attrs.done?"sv-done":void 0},0]},toggle:{group:"block",content:"toggle_title toggle_body",attrs:{open:{default:!0},...Ke},defining:!0,parseDOM:[{tag:"div.sv-toggle",priority:60,getAttrs:l=>({open:ot(l,"sv-open"),color:we(l,"sv-c-")})}],toDOM:l=>["div",{class:Ze("sv-toggle",l.attrs.open&&"sv-open",Qe(l.attrs.color))},0]},toggle_title:{content:"inline*",attrs:{level:{default:0}},defining:!0,parseDOM:[{tag:"p.sv-toggle-title",priority:60,getAttrs:()=>({level:0})},...[1,2,3].map(l=>({tag:`h${l}.sv-toggle-title`,priority:60,getAttrs:()=>({level:l})}))],toDOM:l=>[l.attrs.level?`h${l.attrs.level}`:"p",{class:"sv-toggle-title"},0]},toggle_body:{content:"block*",parseDOM:[{tag:"div.sv-toggle-body",priority:60}],toDOM:()=>["div",{class:"sv-toggle-body"},0]},callout:{group:"block",content:"block+",attrs:{icon:{default:"💡"},...Ke},defining:!0,parseDOM:[{tag:"div.sv-callout",priority:60,contentElement:".sv-callout-body",getAttrs:l=>({icon:l.querySelector(".sv-callout-icon")?.textContent?.trim()||"💡",color:we(l,"sv-c-")??"gray"})}],toDOM:l=>["div",{class:Ze("sv-callout",Qe(l.attrs.color??"gray"))},["span",{class:"sv-callout-icon"},l.attrs.icon],["div",{class:"sv-callout-body"},0]]},columns:{group:"block",content:"column column+",defining:!0,isolating:!0,parseDOM:[{tag:"div.sv-columns",priority:60}],toDOM:l=>["div",{class:`sv-columns sv-columns-${l.childCount}`},0]},column:{content:"block+",isolating:!0,parseDOM:[{tag:"div.sv-column",priority:60}],toDOM:()=>["div",{class:"sv-column"},0]},image:{group:"block",draggable:!0,attrs:{src:{},alt:{default:""},width:{default:null}},parseDOM:[{tag:"img[src]",getAttrs:l=>{let k=Number(l.getAttribute("width"));return{src:l.getAttribute("src"),alt:l.getAttribute("alt")??"",width:k>0?k:null}}}],toDOM:l=>["img",{src:l.attrs.src,alt:l.attrs.alt||void 0,width:l.attrs.width??void 0}]},file:{group:"block",atom:!0,draggable:!0,attrs:{href:{},name:{default:""},size:{default:""}},parseDOM:[{tag:"p.sv-file",priority:70,getAttrs:l=>{let k=l.querySelector("a");return k?{href:k.getAttribute("href"),name:k.textContent??"",size:l.querySelector("small")?.textContent??""}:!1}}],toDOM:l=>["p",{class:"sv-file"},["a",{href:l.attrs.href,target:"_blank",rel:"noopener noreferrer"},l.attrs.name||l.attrs.href],...l.attrs.size?[" ",["small",l.attrs.size]]:[]]},embed:{group:"block",atom:!0,draggable:!0,attrs:{href:{}},parseDOM:[{tag:"p.sv-embed",priority:70,getAttrs:l=>{let k=l.querySelector("a");return k?{href:k.getAttribute("href")}:!1}}],toDOM:l=>["p",{class:"sv-embed"},["a",{href:l.attrs.href,target:"_blank",rel:"noopener noreferrer"},l.attrs.href]]},bookmark:{group:"block",atom:!0,draggable:!0,attrs:{href:{},title:{default:""},description:{default:""},site:{default:""}},parseDOM:[{tag:"div.sv-bookmark",priority:70,getAttrs:l=>{let k=l,f=k.querySelector("a");return f?{href:f.getAttribute("href"),title:f.textContent??"",description:k.querySelector("p")?.textContent??"",site:k.querySelector("small")?.textContent??""}:!1}}],toDOM:l=>["div",{class:"sv-bookmark"},["a",{href:l.attrs.href,target:"_blank",rel:"noopener noreferrer"},l.attrs.title||l.attrs.href],...l.attrs.description?[["p",l.attrs.description]]:[],...l.attrs.site?[["small",l.attrs.site]]:[]]},subpage:{group:"block",atom:!0,draggable:!0,attrs:{id:{},title:{default:""}},parseDOM:[{tag:"p.sv-subpage",priority:70,getAttrs:l=>{let k=l.querySelector("a"),f=Bt(k?.getAttribute("href"));return f?{id:f,title:k.textContent??""}:!1}}],toDOM:l=>["p",{class:"sv-subpage"},["a",{href:`#svrec:${l.attrs.id}`},l.attrs.title||"Untitled"]]},linked_view:{group:"block",atom:!0,draggable:!0,attrs:{table:{},view:{},title:{default:""}},parseDOM:[{tag:"div.sv-linked-view",priority:70,getAttrs:l=>{let k=l.querySelector("a"),f=/^#svview:([A-Za-z0-9_.-]{1,64}):([A-Za-z0-9_.:-]{1,64})$/.exec(k?.getAttribute("href")??"");return f?{table:f[1],view:f[2],title:k.textContent??""}:!1}}],toDOM:l=>["div",{class:"sv-linked-view"},["a",{href:`#svview:${l.attrs.table}:${l.attrs.view}`},l.attrs.title||"View"]]},toc:{group:"block",atom:!0,parseDOM:[{tag:"div.sv-toc",priority:70}],toDOM:()=>["div",{class:"sv-toc"}]},mention:{group:"inline",inline:!0,atom:!0,attrs:{id:{},title:{default:""}},parseDOM:[{tag:"a.sv-mention",priority:70,getAttrs:l=>{let k=Bt(l.getAttribute("href"));return k?{id:k,title:l.textContent??""}:!1}}],toDOM:l=>["a",{class:"sv-mention",href:`#svrec:${l.attrs.id}`},l.attrs.title||"Untitled"]},text:{group:"inline"},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}},marks:{link:{attrs:{href:{}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:l=>!l.classList.contains("sv-mention")&&{href:l.getAttribute("href")}}],toDOM:l=>["a",{href:l.attrs.href,target:"_blank",rel:"noopener noreferrer"},0]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:l=>l.style.fontWeight!=="normal"&&null}],toDOM:()=>["strong",0]},em:{parseDOM:[{tag:"em"},{tag:"i"}],toDOM:()=>["em",0]},underline:{parseDOM:[{tag:"u"}],toDOM:()=>["u",0]},strike:{parseDOM:[{tag:"s"},{tag:"del"},{tag:"strike"}],toDOM:()=>["s",0]},code:{parseDOM:[{tag:"code",getAttrs:l=>l.parentElement?.tagName!=="PRE"&&null}],toDOM:()=>["code",0]},color:{attrs:{color:{}},parseDOM:[{tag:"span",getAttrs:l=>{let k=we(l,"sv-c-");return k?{color:k}:!1}}],toDOM:l=>["span",{class:`sv-c-${l.attrs.color}`},0]},highlight:{attrs:{color:{default:"yellow"}},parseDOM:[{tag:"mark",getAttrs:l=>({color:we(l,"sv-h-")??"yellow"})}],toDOM:l=>["mark",{class:`sv-h-${l.attrs.color}`},0]}}})}function Bt(h){let M=/^#svrec:([A-Za-z0-9_.:-]{1,64})$/.exec(h??"");return M?M[1]:null}function nr(h){return!Array.from(h.classList).some(M=>/^sv-(toggle|callout|columns?|toggle-body|callout-body|bookmark|toc|linked-view)$/.test(M))}function Nt(h,M,l){let k=document.createElement("div");return k.innerHTML=l||"<p></p>",h.DOMParser.fromSchema(M).parse(k)}function mt(h,M){if(M.childCount===1&&M.firstChild.type.name==="paragraph"&&M.firstChild.content.size===0)return"";let l=document.createElement("div");return l.appendChild(h.DOMSerializer.fromSchema(M.type.schema).serializeFragment(M.content)),l.innerHTML}var ar=/^(?:#{1,6}\s|[-*+]\s|\d+\.\s|>\s?|```|---\s*$|- \[[ xX]\]\s)/m,sr=null;function ir(){return sr??=Promise.all([import("./dist-D2lK5znU.js").then(h=>h.d),import("./dist-z_tOCaGG.js"),import("./dist-DdZ3e9iY.js"),import("./dist-Bl8aVOmr.js").then(h=>h.l),import("./dist-CEyUgQt3.js"),import("./dist-38sT7vmy.js"),import("./dist-C7Z0Guly.js"),import("./dist-Jl2k94vj.js"),import("./dist-BeUwTaC6.js"),import("./dist-ZVYC9b49.js"),import("./dist-DgLsWEqp.js")]).then(([h,M,l,k,f,O,g,S,V,se,We])=>({model:h,state:M,view:l,transform:k,commands:f,keymap:O,history:g,inputrules:S,lists:V,dropcursor:se,gapcursor:We}),()=>null)}var cr=h=>h==null?"":h<1024?`${h} B`:h<1048576?`${Math.round(h/1024)} KB`:`${(h/1048576).toFixed(1)} MB`,dr=h=>(h.type??"").startsWith("image/")||/\.(png|jpe?g|gif|webp|avif)$/i.test(h.name??""),pr=new Set(["doc","column","toggle_body","callout","blockquote"]),lt=new Set(["list_item","todo_item"]);function ur(h){let M=[];h=h.replace(/^```([a-z0-9+#-]*)[ \t]*\r?\n([\s\S]*?)\r?\n```[ \t]*$/gim,(O,g,S)=>(M.push({lang:g.toLowerCase(),code:S}),`SVPAGECODE${M.length-1}`));let l=O=>O.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),k=rr(h.replace(/^(\s*)[-*+] \[([ xX])\] /gm,(O,g,S)=>`${g}- ${S.trim()?"☑":"☐"} `)),f=document.createElement("div");f.innerHTML=zt(k);for(let O of Array.from(f.querySelectorAll("ul"))){let g=Array.from(O.children);if(!(!g.length||!g.every(S=>/^[\u2610\u2611]\s?/.test(S.textContent??"")))){O.className="sv-todo";for(let S of g){(S.textContent??"").startsWith("☑")&&(S.className="sv-done");let V=document.createTreeWalker(S,NodeFilter.SHOW_TEXT).nextNode();V&&(V.data=V.data.replace(/^[\u2610\u2611]\s?/,""))}}}for(let O of Array.from(f.querySelectorAll("p"))){let g=/^SVPAGECODE(\d+)$/.exec((O.textContent??"").trim()),S=g?M[Number(g[1])]:void 0;if(!S)continue;let V=document.createElement("pre");V.innerHTML=`<code${S.lang?` class="language-${l(S.lang)}"`:""}>${l(S.code)}</code>`,O.replaceWith(V)}for(let O of Array.from(f.querySelectorAll("p"))){if(!/^>\s?/.test(O.textContent??""))continue;let g=O.previousElementSibling,S=g?.tagName==="BLOCKQUOTE"?g:document.createElement("blockquote");S!==g&&O.before(S);let V=document.createTreeWalker(O,NodeFilter.SHOW_TEXT).nextNode();V&&(V.data=V.data.replace(/^>\s?/,"")),S.appendChild(O)}return f.innerHTML}function fr(h,M,l){let k=lr(h.model),f=k.nodes,O=k.marks,{Plugin:g,PluginKey:S,EditorState:V,TextSelection:se,NodeSelection:We}=h.state,{Decoration:be,DecorationSet:nt,EditorView:at}=h.view,{InputRule:Te,inputRules:Re,wrappingInputRule:ge,textblockTypeInputRule:J}=h.inputrules,{splitListItem:xe,liftListItem:He,sinkListItem:ze}=h.lists,te=h.commands,fe=new S("page-slash"),Ne=null,ne=new g({key:fe,state:{init:()=>null,apply(t,r,a,o){let n=t.getMeta(fe);if(n==="close")return null;if(n)return n;if(!r)return null;let p=o.selection;if(!p.empty)return null;let u=t.mapping.map(r.from);if(p.from<=u)return null;let v=o.doc.textBetween(u,p.from,`
|
|
1
|
+
import"./disclose-version-P6hHkDOU.js";import{C as ue,E as Yt,Et as W,F as Gt,H as Jt,I as Kt,J as z,P as ee,Q as At,S as Ae,T as me,U as Y,V as _,Y as Se,Z as e,_t as $e,bt as Qt,ct as R,ft as b,h as U,j as Ce,lt as A,m as St,mt as X,n as Zt,nt as L,o as tt,ot as G,q as er,rt as $t,st as Ye,u as Ct,vt as Tt,xt as tr,z as C}from"./client-DTHOsJhV.js";import{r as Ge}from"./popover-WsGlvtQv.js";import{a as Ht,i as Je,m as zt,n as _t,p as rr,s as d,t as or}from"./embed-url-CozXxwvR.js";var rt=["gray","brown","orange","yellow","green","blue","purple","pink","red"],Lt=h=>!!h&&rt.includes(h);function we(h,M){for(let l of Array.from(h.classList))if(l.startsWith(M)&&Lt(l.slice(M.length)))return l.slice(M.length);return null}var ot=(h,M)=>h.classList.contains(M),Ke={color:{default:null}},Qe=h=>Lt(h)?`sv-c-${h}`:"",Ze=(...h)=>h.filter(Boolean).join(" ")||void 0;function lr(h){let{Schema:M}=h;return new M({nodes:{doc:{content:"block+"},paragraph:{group:"block",content:"inline*",attrs:{...Ke},parseDOM:[{tag:"p",getAttrs:l=>({color:we(l,"sv-c-")})},{tag:"div",priority:10,getAttrs:l=>nr(l)?{color:we(l,"sv-c-")}:!1}],toDOM:l=>["p",{class:Ze(Qe(l.attrs.color))},0]},heading:{group:"block",content:"inline*",attrs:{level:{default:2},...Ke},defining:!0,parseDOM:[1,2,3].map(l=>({tag:`h${l}`,getAttrs:k=>({level:l,color:we(k,"sv-c-")})})).concat([4,5,6].map(l=>({tag:`h${l}`,getAttrs:k=>({level:3,color:we(k,"sv-c-")})}))),toDOM:l=>[`h${l.attrs.level}`,{class:Ze(Qe(l.attrs.color))},0]},blockquote:{group:"block",content:"block+",attrs:{...Ke},defining:!0,parseDOM:[{tag:"blockquote",getAttrs:l=>({color:we(l,"sv-c-")})}],toDOM:l=>["blockquote",{class:Ze(Qe(l.attrs.color))},0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["hr"]},code_block:{group:"block",content:"text*",marks:"",code:!0,defining:!0,attrs:{language:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:l=>{let k=l.querySelector("code"),f=Array.from(k?.classList??[]).find(O=>O.startsWith("language-"));return{language:f?f.slice(9):""}}}],toDOM:l=>["pre",["code",{class:l.attrs.language?`language-${l.attrs.language}`:void 0},0]]},bullet_list:{group:"block",content:"list_item+",parseDOM:[{tag:"ul",getAttrs:l=>!ot(l,"sv-todo")&&null}],toDOM:()=>["ul",0]},ordered_list:{group:"block",content:"list_item+",attrs:{order:{default:1}},parseDOM:[{tag:"ol",getAttrs:l=>({order:Number(l.getAttribute("start")??1)||1})}],toDOM:l=>["ol",l.attrs.order===1?{}:{start:l.attrs.order},0]},list_item:{content:"paragraph block*",defining:!0,parseDOM:[{tag:"li",getAttrs:l=>l.parentElement&&ot(l.parentElement,"sv-todo")?!1:null}],toDOM:()=>["li",0]},todo_list:{group:"block",content:"todo_item+",parseDOM:[{tag:"ul.sv-todo",priority:60}],toDOM:()=>["ul",{class:"sv-todo"},0]},todo_item:{content:"paragraph block*",defining:!0,attrs:{done:{default:!1}},parseDOM:[{tag:"ul.sv-todo > li",priority:60,getAttrs:l=>({done:ot(l,"sv-done")})}],toDOM:l=>["li",{class:l.attrs.done?"sv-done":void 0},0]},toggle:{group:"block",content:"toggle_title toggle_body",attrs:{open:{default:!0},...Ke},defining:!0,parseDOM:[{tag:"div.sv-toggle",priority:60,getAttrs:l=>({open:ot(l,"sv-open"),color:we(l,"sv-c-")})}],toDOM:l=>["div",{class:Ze("sv-toggle",l.attrs.open&&"sv-open",Qe(l.attrs.color))},0]},toggle_title:{content:"inline*",attrs:{level:{default:0}},defining:!0,parseDOM:[{tag:"p.sv-toggle-title",priority:60,getAttrs:()=>({level:0})},...[1,2,3].map(l=>({tag:`h${l}.sv-toggle-title`,priority:60,getAttrs:()=>({level:l})}))],toDOM:l=>[l.attrs.level?`h${l.attrs.level}`:"p",{class:"sv-toggle-title"},0]},toggle_body:{content:"block*",parseDOM:[{tag:"div.sv-toggle-body",priority:60}],toDOM:()=>["div",{class:"sv-toggle-body"},0]},callout:{group:"block",content:"block+",attrs:{icon:{default:"💡"},...Ke},defining:!0,parseDOM:[{tag:"div.sv-callout",priority:60,contentElement:".sv-callout-body",getAttrs:l=>({icon:l.querySelector(".sv-callout-icon")?.textContent?.trim()||"💡",color:we(l,"sv-c-")??"gray"})}],toDOM:l=>["div",{class:Ze("sv-callout",Qe(l.attrs.color??"gray"))},["span",{class:"sv-callout-icon"},l.attrs.icon],["div",{class:"sv-callout-body"},0]]},columns:{group:"block",content:"column column+",defining:!0,isolating:!0,parseDOM:[{tag:"div.sv-columns",priority:60}],toDOM:l=>["div",{class:`sv-columns sv-columns-${l.childCount}`},0]},column:{content:"block+",isolating:!0,parseDOM:[{tag:"div.sv-column",priority:60}],toDOM:()=>["div",{class:"sv-column"},0]},image:{group:"block",draggable:!0,attrs:{src:{},alt:{default:""},width:{default:null}},parseDOM:[{tag:"img[src]",getAttrs:l=>{let k=Number(l.getAttribute("width"));return{src:l.getAttribute("src"),alt:l.getAttribute("alt")??"",width:k>0?k:null}}}],toDOM:l=>["img",{src:l.attrs.src,alt:l.attrs.alt||void 0,width:l.attrs.width??void 0}]},file:{group:"block",atom:!0,draggable:!0,attrs:{href:{},name:{default:""},size:{default:""}},parseDOM:[{tag:"p.sv-file",priority:70,getAttrs:l=>{let k=l.querySelector("a");return k?{href:k.getAttribute("href"),name:k.textContent??"",size:l.querySelector("small")?.textContent??""}:!1}}],toDOM:l=>["p",{class:"sv-file"},["a",{href:l.attrs.href,target:"_blank",rel:"noopener noreferrer"},l.attrs.name||l.attrs.href],...l.attrs.size?[" ",["small",l.attrs.size]]:[]]},embed:{group:"block",atom:!0,draggable:!0,attrs:{href:{}},parseDOM:[{tag:"p.sv-embed",priority:70,getAttrs:l=>{let k=l.querySelector("a");return k?{href:k.getAttribute("href")}:!1}}],toDOM:l=>["p",{class:"sv-embed"},["a",{href:l.attrs.href,target:"_blank",rel:"noopener noreferrer"},l.attrs.href]]},bookmark:{group:"block",atom:!0,draggable:!0,attrs:{href:{},title:{default:""},description:{default:""},site:{default:""}},parseDOM:[{tag:"div.sv-bookmark",priority:70,getAttrs:l=>{let k=l,f=k.querySelector("a");return f?{href:f.getAttribute("href"),title:f.textContent??"",description:k.querySelector("p")?.textContent??"",site:k.querySelector("small")?.textContent??""}:!1}}],toDOM:l=>["div",{class:"sv-bookmark"},["a",{href:l.attrs.href,target:"_blank",rel:"noopener noreferrer"},l.attrs.title||l.attrs.href],...l.attrs.description?[["p",l.attrs.description]]:[],...l.attrs.site?[["small",l.attrs.site]]:[]]},subpage:{group:"block",atom:!0,draggable:!0,attrs:{id:{},title:{default:""}},parseDOM:[{tag:"p.sv-subpage",priority:70,getAttrs:l=>{let k=l.querySelector("a"),f=Bt(k?.getAttribute("href"));return f?{id:f,title:k.textContent??""}:!1}}],toDOM:l=>["p",{class:"sv-subpage"},["a",{href:`#svrec:${l.attrs.id}`},l.attrs.title||"Untitled"]]},linked_view:{group:"block",atom:!0,draggable:!0,attrs:{table:{},view:{},title:{default:""}},parseDOM:[{tag:"div.sv-linked-view",priority:70,getAttrs:l=>{let k=l.querySelector("a"),f=/^#svview:([A-Za-z0-9_.-]{1,64}):([A-Za-z0-9_.:-]{1,64})$/.exec(k?.getAttribute("href")??"");return f?{table:f[1],view:f[2],title:k.textContent??""}:!1}}],toDOM:l=>["div",{class:"sv-linked-view"},["a",{href:`#svview:${l.attrs.table}:${l.attrs.view}`},l.attrs.title||"View"]]},toc:{group:"block",atom:!0,parseDOM:[{tag:"div.sv-toc",priority:70}],toDOM:()=>["div",{class:"sv-toc"}]},mention:{group:"inline",inline:!0,atom:!0,attrs:{id:{},title:{default:""}},parseDOM:[{tag:"a.sv-mention",priority:70,getAttrs:l=>{let k=Bt(l.getAttribute("href"));return k?{id:k,title:l.textContent??""}:!1}}],toDOM:l=>["a",{class:"sv-mention",href:`#svrec:${l.attrs.id}`},l.attrs.title||"Untitled"]},text:{group:"inline"},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}},marks:{link:{attrs:{href:{}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:l=>!l.classList.contains("sv-mention")&&{href:l.getAttribute("href")}}],toDOM:l=>["a",{href:l.attrs.href,target:"_blank",rel:"noopener noreferrer"},0]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:l=>l.style.fontWeight!=="normal"&&null}],toDOM:()=>["strong",0]},em:{parseDOM:[{tag:"em"},{tag:"i"}],toDOM:()=>["em",0]},underline:{parseDOM:[{tag:"u"}],toDOM:()=>["u",0]},strike:{parseDOM:[{tag:"s"},{tag:"del"},{tag:"strike"}],toDOM:()=>["s",0]},code:{parseDOM:[{tag:"code",getAttrs:l=>l.parentElement?.tagName!=="PRE"&&null}],toDOM:()=>["code",0]},color:{attrs:{color:{}},parseDOM:[{tag:"span",getAttrs:l=>{let k=we(l,"sv-c-");return k?{color:k}:!1}}],toDOM:l=>["span",{class:`sv-c-${l.attrs.color}`},0]},highlight:{attrs:{color:{default:"yellow"}},parseDOM:[{tag:"mark",getAttrs:l=>({color:we(l,"sv-h-")??"yellow"})}],toDOM:l=>["mark",{class:`sv-h-${l.attrs.color}`},0]}}})}function Bt(h){let M=/^#svrec:([A-Za-z0-9_.:-]{1,64})$/.exec(h??"");return M?M[1]:null}function nr(h){return!Array.from(h.classList).some(M=>/^sv-(toggle|callout|columns?|toggle-body|callout-body|bookmark|toc|linked-view)$/.test(M))}function Nt(h,M,l){let k=document.createElement("div");return k.innerHTML=l||"<p></p>",h.DOMParser.fromSchema(M).parse(k)}function mt(h,M){if(M.childCount===1&&M.firstChild.type.name==="paragraph"&&M.firstChild.content.size===0)return"";let l=document.createElement("div");return l.appendChild(h.DOMSerializer.fromSchema(M.type.schema).serializeFragment(M.content)),l.innerHTML}var ar=/^(?:#{1,6}\s|[-*+]\s|\d+\.\s|>\s?|```|---\s*$|- \[[ xX]\]\s)/m,sr=null;function ir(){return sr??=Promise.all([import("./dist-D2lK5znU.js").then(h=>h.d),import("./dist-z_tOCaGG.js"),import("./dist-DdZ3e9iY.js"),import("./dist-Bl8aVOmr.js").then(h=>h.l),import("./dist-CEyUgQt3.js"),import("./dist-38sT7vmy.js"),import("./dist-C7Z0Guly.js"),import("./dist-Jl2k94vj.js"),import("./dist-BeUwTaC6.js"),import("./dist-ZVYC9b49.js"),import("./dist-DgLsWEqp.js")]).then(([h,M,l,k,f,O,g,S,V,se,We])=>({model:h,state:M,view:l,transform:k,commands:f,keymap:O,history:g,inputrules:S,lists:V,dropcursor:se,gapcursor:We}),()=>null)}var cr=h=>h==null?"":h<1024?`${h} B`:h<1048576?`${Math.round(h/1024)} KB`:`${(h/1048576).toFixed(1)} MB`,dr=h=>(h.type??"").startsWith("image/")||/\.(png|jpe?g|gif|webp|avif)$/i.test(h.name??""),pr=new Set(["doc","column","toggle_body","callout","blockquote"]),lt=new Set(["list_item","todo_item"]);function ur(h){let M=[];h=h.replace(/^```([a-z0-9+#-]*)[ \t]*\r?\n([\s\S]*?)\r?\n```[ \t]*$/gim,(O,g,S)=>(M.push({lang:g.toLowerCase(),code:S}),`SVPAGECODE${M.length-1}`));let l=O=>O.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),k=rr(h.replace(/^(\s*)[-*+] \[([ xX])\] /gm,(O,g,S)=>`${g}- ${S.trim()?"☑":"☐"} `)),f=document.createElement("div");f.innerHTML=zt(k);for(let O of Array.from(f.querySelectorAll("ul"))){let g=Array.from(O.children);if(!(!g.length||!g.every(S=>/^[\u2610\u2611]\s?/.test(S.textContent??"")))){O.className="sv-todo";for(let S of g){(S.textContent??"").startsWith("☑")&&(S.className="sv-done");let V=document.createTreeWalker(S,NodeFilter.SHOW_TEXT).nextNode();V&&(V.data=V.data.replace(/^[\u2610\u2611]\s?/,""))}}}for(let O of Array.from(f.querySelectorAll("p"))){let g=/^SVPAGECODE(\d+)$/.exec((O.textContent??"").trim()),S=g?M[Number(g[1])]:void 0;if(!S)continue;let V=document.createElement("pre");V.innerHTML=`<code${S.lang?` class="language-${l(S.lang)}"`:""}>${l(S.code)}</code>`,O.replaceWith(V)}for(let O of Array.from(f.querySelectorAll("p"))){if(!/^>\s?/.test(O.textContent??""))continue;let g=O.previousElementSibling,S=g?.tagName==="BLOCKQUOTE"?g:document.createElement("blockquote");S!==g&&O.before(S);let V=document.createTreeWalker(O,NodeFilter.SHOW_TEXT).nextNode();V&&(V.data=V.data.replace(/^>\s?/,"")),S.appendChild(O)}return f.innerHTML}function fr(h,M,l){let k=lr(h.model),f=k.nodes,O=k.marks,{Plugin:g,PluginKey:S,EditorState:V,TextSelection:se,NodeSelection:We}=h.state,{Decoration:be,DecorationSet:nt,EditorView:at}=h.view,{InputRule:Te,inputRules:Re,wrappingInputRule:ge,textblockTypeInputRule:J}=h.inputrules,{splitListItem:xe,liftListItem:He,sinkListItem:ze}=h.lists,te=h.commands,fe=new S("page-slash"),Ne=null,ne=new g({key:fe,state:{init:()=>null,apply(t,r,a,o){let n=t.getMeta(fe);if(n==="close")return null;if(n)return n;if(!r)return null;let p=o.selection;if(!p.empty)return null;let u=t.mapping.map(r.from);if(p.from<=u)return null;let v=o.doc.textBetween(u,p.from,`
|
|
2
2
|
`,`
|
|
3
3
|
`);return!v.startsWith("/")||/\s{2}|\n/.test(v)||v.length>30?null:{from:u,to:p.from,query:v.slice(1)}}},props:{handleTextInput(t,r,a,o){if(o!=="/")return!1;let n=t.state.doc.resolve(r),p=n.parent.textBetween(Math.max(0,n.parentOffset-1),n.parentOffset,`
|
|
4
4
|
`,`
|