@mistriwork/kit 1.0.0-rc.11 → 1.0.0-rc.12
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/client/actionGrants.d.ts +21 -0
- package/dist/client/actionGrants.js +24 -0
- package/dist/client/addressMount.d.ts +67 -0
- package/dist/client/addressMount.js +136 -0
- package/dist/client/app.d.ts +10 -0
- package/dist/client/app.js +976 -0
- package/dist/client/boot.d.ts +1 -0
- package/dist/client/boot.js +37 -0
- package/dist/client/brandLook.css +125 -0
- package/dist/client/breakdownBatch.d.ts +34 -0
- package/dist/client/breakdownBatch.js +115 -0
- package/dist/client/bulkActions.d.ts +66 -0
- package/dist/client/bulkActions.js +171 -0
- package/dist/client/chart.d.ts +20 -0
- package/dist/client/chart.js +80 -0
- package/dist/client/clauses.d.ts +121 -0
- package/dist/client/clauses.js +276 -0
- package/dist/client/columns.d.ts +77 -0
- package/dist/client/columns.js +102 -0
- package/dist/client/components/Accordion.d.ts +26 -0
- package/dist/client/components/Accordion.js +44 -0
- package/dist/client/components/ApiOperations.d.ts +3 -0
- package/dist/client/components/ApiOperations.js +162 -0
- package/dist/client/components/AppColumnMenu.d.ts +66 -0
- package/dist/client/components/AppColumnMenu.js +59 -0
- package/dist/client/components/AppColumnMenuPopups.d.ts +21 -0
- package/dist/client/components/AppColumnMenuPopups.js +92 -0
- package/dist/client/components/AppFooter.css +17 -0
- package/dist/client/components/AppFooter.d.ts +23 -0
- package/dist/client/components/AppFooter.js +12 -0
- package/dist/client/components/AppIssues.d.ts +4 -0
- package/dist/client/components/AppIssues.js +18 -0
- package/dist/client/components/AppList.d.ts +20 -0
- package/dist/client/components/AppList.js +696 -0
- package/dist/client/components/AttachmentList.d.ts +45 -0
- package/dist/client/components/AttachmentList.js +178 -0
- package/dist/client/components/BoardList.css +9 -0
- package/dist/client/components/Breakdown.d.ts +11 -0
- package/dist/client/components/Breakdown.js +157 -0
- package/dist/client/components/BreakdownRoom.d.ts +4 -0
- package/dist/client/components/BreakdownRoom.js +48 -0
- package/dist/client/components/CardsList.d.ts +23 -0
- package/dist/client/components/CardsList.js +209 -0
- package/dist/client/components/Chart.css +165 -0
- package/dist/client/components/Chart.d.ts +194 -0
- package/dist/client/components/Chart.js +801 -0
- package/dist/client/components/ChartFigure.d.ts +82 -0
- package/dist/client/components/ChartFigure.js +102 -0
- package/dist/client/components/ChartShapes.css +213 -0
- package/dist/client/components/ChartShapes.d.ts +63 -0
- package/dist/client/components/ChartShapes.js +393 -0
- package/dist/client/components/Checklist.css +16 -0
- package/dist/client/components/Composer.d.ts +1 -0
- package/dist/client/components/Composer.js +331 -0
- package/dist/client/components/Content.d.ts +8 -0
- package/dist/client/components/Content.js +170 -0
- package/dist/client/components/CountedLabel.d.ts +10 -0
- package/dist/client/components/CountedLabel.js +26 -0
- package/dist/client/components/Crumbs.d.ts +11 -0
- package/dist/client/components/Crumbs.js +142 -0
- package/dist/client/components/DashboardList.css +7 -0
- package/dist/client/components/DashboardList.d.ts +9 -0
- package/dist/client/components/DashboardList.js +46 -0
- package/dist/client/components/DashboardNote.d.ts +21 -0
- package/dist/client/components/DashboardNote.js +22 -0
- package/dist/client/components/DateField.css +6 -0
- package/dist/client/components/DateField.d.ts +7 -0
- package/dist/client/components/DateField.js +27 -0
- package/dist/client/components/DefinedFields.d.ts +50 -0
- package/dist/client/components/DefinedFields.js +186 -0
- package/dist/client/components/DeleteButton.d.ts +30 -0
- package/dist/client/components/DeleteButton.js +198 -0
- package/dist/client/components/Diagram.d.ts +7 -0
- package/dist/client/components/Diagram.js +320 -0
- package/dist/client/components/Dressed.d.ts +31 -0
- package/dist/client/components/Dressed.js +138 -0
- package/dist/client/components/Dropdown.d.ts +14 -0
- package/dist/client/components/Dropdown.js +20 -0
- package/dist/client/components/EditLayoutButton.d.ts +13 -0
- package/dist/client/components/EditLayoutButton.js +7 -0
- package/dist/client/components/Editable.d.ts +47 -0
- package/dist/client/components/Editable.js +422 -0
- package/dist/client/components/ErrorBoundary.d.ts +40 -0
- package/dist/client/components/ErrorBoundary.js +41 -0
- package/dist/client/components/Export.d.ts +15 -0
- package/dist/client/components/Export.js +151 -0
- package/dist/client/components/ExportHold.d.ts +18 -0
- package/dist/client/components/ExportHold.js +30 -0
- package/dist/client/components/FavoriteStar.d.ts +5 -0
- package/dist/client/components/FavoriteStar.js +14 -0
- package/dist/client/components/FieldArranger.d.ts +28 -0
- package/dist/client/components/FieldArranger.js +82 -0
- package/dist/client/components/FilePreview.css +20 -0
- package/dist/client/components/FilePreview.d.ts +26 -0
- package/dist/client/components/FilePreview.js +170 -0
- package/dist/client/components/FilterBoxes.d.ts +76 -0
- package/dist/client/components/FilterBoxes.js +294 -0
- package/dist/client/components/FilterRail.css +100 -0
- package/dist/client/components/FilterRail.d.ts +61 -0
- package/dist/client/components/FilterRail.js +559 -0
- package/dist/client/components/Gallery.d.ts +11 -0
- package/dist/client/components/Gallery.js +53 -0
- package/dist/client/components/Grid.d.ts +122 -0
- package/dist/client/components/Grid.js +1115 -0
- package/dist/client/components/GridCellEditor.d.ts +35 -0
- package/dist/client/components/GridCellEditor.js +291 -0
- package/dist/client/components/GridSelection.d.ts +16 -0
- package/dist/client/components/GridSelection.js +28 -0
- package/dist/client/components/HelpPanel.d.ts +5 -0
- package/dist/client/components/HelpPanel.js +92 -0
- package/dist/client/components/History.d.ts +10 -0
- package/dist/client/components/History.js +22 -0
- package/dist/client/components/Icon.d.ts +31 -0
- package/dist/client/components/Icon.js +20 -0
- package/dist/client/components/JsonPreview.d.ts +5 -0
- package/dist/client/components/JsonPreview.js +25 -0
- package/dist/client/components/JsonValue.d.ts +4 -0
- package/dist/client/components/JsonValue.js +3 -0
- package/dist/client/components/JsonView.css +109 -0
- package/dist/client/components/JsonView.d.ts +3 -0
- package/dist/client/components/JsonView.js +118 -0
- package/dist/client/components/Landing.d.ts +19 -0
- package/dist/client/components/Landing.js +55 -0
- package/dist/client/components/LandingSurface.css +177 -0
- package/dist/client/components/LandingSurface.d.ts +42 -0
- package/dist/client/components/LandingSurface.js +108 -0
- package/dist/client/components/LayoutBuilder.d.ts +36 -0
- package/dist/client/components/LayoutBuilder.js +104 -0
- package/dist/client/components/Lightbox.d.ts +29 -0
- package/dist/client/components/Lightbox.js +62 -0
- package/dist/client/components/ListEmpty.css +13 -0
- package/dist/client/components/ListEmpty.d.ts +10 -0
- package/dist/client/components/ListEmpty.js +8 -0
- package/dist/client/components/ListFilterBar.css +76 -0
- package/dist/client/components/ListFilterBar.d.ts +52 -0
- package/dist/client/components/ListFilterBar.js +304 -0
- package/dist/client/components/LiveNotices.css +105 -0
- package/dist/client/components/LiveNotices.d.ts +26 -0
- package/dist/client/components/LiveNotices.js +211 -0
- package/dist/client/components/MinorMoneyInput.d.ts +26 -0
- package/dist/client/components/MinorMoneyInput.js +50 -0
- package/dist/client/components/Modal.css +3 -0
- package/dist/client/components/MultiStepForm.css +122 -0
- package/dist/client/components/MultiStepForm.d.ts +59 -0
- package/dist/client/components/MultiStepForm.js +216 -0
- package/dist/client/components/NavGlyph.d.ts +14 -0
- package/dist/client/components/NavGlyph.js +27 -0
- package/dist/client/components/Nested.d.ts +21 -0
- package/dist/client/components/Nested.js +86 -0
- package/dist/client/components/NewRecord.d.ts +89 -0
- package/dist/client/components/NewRecord.js +897 -0
- package/dist/client/components/NewRecordButton.d.ts +13 -0
- package/dist/client/components/NewRecordButton.js +28 -0
- package/dist/client/components/Notes.css +39 -0
- package/dist/client/components/Notes.d.ts +59 -0
- package/dist/client/components/Notes.js +96 -0
- package/dist/client/components/OverflowMenu.d.ts +3 -0
- package/dist/client/components/OverflowMenu.js +60 -0
- package/dist/client/components/Page.d.ts +52 -0
- package/dist/client/components/Page.js +237 -0
- package/dist/client/components/PageCurrent.d.ts +38 -0
- package/dist/client/components/PageCurrent.js +27 -0
- package/dist/client/components/PageEmptyRun.d.ts +18 -0
- package/dist/client/components/PageEmptyRun.js +118 -0
- package/dist/client/components/PageFields.d.ts +3 -0
- package/dist/client/components/PageFields.js +294 -0
- package/dist/client/components/PageFlowDiagram.css +193 -0
- package/dist/client/components/PageFlowDiagram.d.ts +95 -0
- package/dist/client/components/PageFlowDiagram.js +276 -0
- package/dist/client/components/PageFlows.css +27 -0
- package/dist/client/components/PageFlows.d.ts +54 -0
- package/dist/client/components/PageFlows.js +92 -0
- package/dist/client/components/PageGroups.d.ts +43 -0
- package/dist/client/components/PageGroups.js +123 -0
- package/dist/client/components/PageHead.d.ts +28 -0
- package/dist/client/components/PageHead.js +279 -0
- package/dist/client/components/PageHeadline.d.ts +23 -0
- package/dist/client/components/PageHeadline.js +101 -0
- package/dist/client/components/PageHistory.d.ts +62 -0
- package/dist/client/components/PageHistory.js +160 -0
- package/dist/client/components/PageLayout.d.ts +22 -0
- package/dist/client/components/PageLayout.js +13 -0
- package/dist/client/components/PageMetrics.d.ts +11 -0
- package/dist/client/components/PageMetrics.js +252 -0
- package/dist/client/components/PageRelated.d.ts +70 -0
- package/dist/client/components/PageRelated.js +667 -0
- package/dist/client/components/PageRoom.d.ts +37 -0
- package/dist/client/components/PageRoom.js +277 -0
- package/dist/client/components/PageSectionBox.d.ts +28 -0
- package/dist/client/components/PageSectionBox.js +65 -0
- package/dist/client/components/PageSections.d.ts +38 -0
- package/dist/client/components/PageSections.js +352 -0
- package/dist/client/components/PageSkeleton.css +17 -0
- package/dist/client/components/PageSkeleton.d.ts +11 -0
- package/dist/client/components/PageSkeleton.js +25 -0
- package/dist/client/components/PageTimeline.d.ts +2 -0
- package/dist/client/components/PageTimeline.js +273 -0
- package/dist/client/components/Palette.d.ts +4 -0
- package/dist/client/components/Palette.js +176 -0
- package/dist/client/components/Peek.d.ts +1 -0
- package/dist/client/components/Peek.js +158 -0
- package/dist/client/components/PeekPanel.d.ts +16 -0
- package/dist/client/components/PeekPanel.js +120 -0
- package/dist/client/components/Picker.d.ts +13 -0
- package/dist/client/components/Picker.js +33 -0
- package/dist/client/components/Prefs.d.ts +3 -0
- package/dist/client/components/Prefs.js +121 -0
- package/dist/client/components/PresentationSwitch.d.ts +13 -0
- package/dist/client/components/PresentationSwitch.js +10 -0
- package/dist/client/components/Prompt.d.ts +35 -0
- package/dist/client/components/Prompt.js +114 -0
- package/dist/client/components/QrCode.css +11 -0
- package/dist/client/components/QrCode.d.ts +4 -0
- package/dist/client/components/QrCode.js +57 -0
- package/dist/client/components/QueueList.css +122 -0
- package/dist/client/components/QuickAdd.css +18 -0
- package/dist/client/components/QuickAdd.d.ts +11 -0
- package/dist/client/components/QuickAdd.js +53 -0
- package/dist/client/components/QuickAddOnDemand.d.ts +4 -0
- package/dist/client/components/QuickAddOnDemand.js +10 -0
- package/dist/client/components/Record.d.ts +36 -0
- package/dist/client/components/Record.js +385 -0
- package/dist/client/components/RecordGone.d.ts +7 -0
- package/dist/client/components/RecordGone.js +22 -0
- package/dist/client/components/RecordPicker.d.ts +59 -0
- package/dist/client/components/RecordPicker.js +299 -0
- package/dist/client/components/RecordSummaries.d.ts +55 -0
- package/dist/client/components/RecordSummaries.js +151 -0
- package/dist/client/components/RecordTags.d.ts +6 -0
- package/dist/client/components/RecordTags.js +119 -0
- package/dist/client/components/RecordTrailNav.d.ts +25 -0
- package/dist/client/components/RecordTrailNav.js +110 -0
- package/dist/client/components/RichText.d.ts +7 -0
- package/dist/client/components/RichText.js +82 -0
- package/dist/client/components/RichTextEditor.css +202 -0
- package/dist/client/components/RichTextEditor.d.ts +33 -0
- package/dist/client/components/RichTextEditor.js +348 -0
- package/dist/client/components/RichTextField.d.ts +26 -0
- package/dist/client/components/RichTextField.js +71 -0
- package/dist/client/components/Rooms.d.ts +35 -0
- package/dist/client/components/Rooms.js +276 -0
- package/dist/client/components/RowActions.d.ts +8 -0
- package/dist/client/components/RowActions.js +49 -0
- package/dist/client/components/RowHost.d.ts +110 -0
- package/dist/client/components/RowHost.js +212 -0
- package/dist/client/components/SavedViews.d.ts +25 -0
- package/dist/client/components/SavedViews.js +35 -0
- package/dist/client/components/SchemaExport.d.ts +15 -0
- package/dist/client/components/SchemaExport.js +42 -0
- package/dist/client/components/SectionPeriod.css +14 -0
- package/dist/client/components/SectionPeriod.d.ts +7 -0
- package/dist/client/components/SectionPeriod.js +14 -0
- package/dist/client/components/SetFieldDialog.d.ts +12 -0
- package/dist/client/components/SetFieldDialog.js +51 -0
- package/dist/client/components/Sidebar.d.ts +34 -0
- package/dist/client/components/Sidebar.js +398 -0
- package/dist/client/components/Skeleton.d.ts +35 -0
- package/dist/client/components/Skeleton.js +49 -0
- package/dist/client/components/SortMenu.d.ts +20 -0
- package/dist/client/components/SortMenu.js +45 -0
- package/dist/client/components/SplitListDetail.css +119 -0
- package/dist/client/components/SuggestBox.d.ts +29 -0
- package/dist/client/components/SuggestBox.js +60 -0
- package/dist/client/components/Summary.d.ts +14 -0
- package/dist/client/components/Summary.js +93 -0
- package/dist/client/components/TableRoom.d.ts +88 -0
- package/dist/client/components/TableRoom.js +246 -0
- package/dist/client/components/TableView.d.ts +111 -0
- package/dist/client/components/TableView.js +324 -0
- package/dist/client/components/ThMenu.d.ts +40 -0
- package/dist/client/components/ThMenu.js +163 -0
- package/dist/client/components/ThemeLab.d.ts +4 -0
- package/dist/client/components/ThemeLab.js +67 -0
- package/dist/client/components/TimelineSides.css +23 -0
- package/dist/client/components/TimelineSides.d.ts +7 -0
- package/dist/client/components/TimelineSides.js +9 -0
- package/dist/client/components/Tour.d.ts +12 -0
- package/dist/client/components/Tour.js +131 -0
- package/dist/client/components/Value.d.ts +38 -0
- package/dist/client/components/Value.js +172 -0
- package/dist/client/components/WorkPanel.d.ts +9 -0
- package/dist/client/components/WorkPanel.js +43 -0
- package/dist/client/components/WorkflowStatus.d.ts +6 -0
- package/dist/client/components/WorkflowStatus.js +44 -0
- package/dist/client/components/WriteConfirm.d.ts +4 -0
- package/dist/client/components/WriteConfirm.js +27 -0
- package/dist/client/components/appColumnMenuModel.d.ts +46 -0
- package/dist/client/components/appColumnMenuModel.js +51 -0
- package/dist/client/components/appListModel.d.ts +179 -0
- package/dist/client/components/appListModel.js +421 -0
- package/dist/client/components/appRooms.d.ts +106 -0
- package/dist/client/components/appRooms.js +133 -0
- package/dist/client/components/autoChart.d.ts +33 -0
- package/dist/client/components/autoChart.js +107 -0
- package/dist/client/components/avatarPhotos.d.ts +45 -0
- package/dist/client/components/avatarPhotos.js +93 -0
- package/dist/client/components/besideDetail.d.ts +1 -0
- package/dist/client/components/besideDetail.js +10 -0
- package/dist/client/components/boardNew.d.ts +2 -0
- package/dist/client/components/boardNew.js +8 -0
- package/dist/client/components/cardsModel.d.ts +11 -0
- package/dist/client/components/cardsModel.js +24 -0
- package/dist/client/components/chromeIcons.d.ts +16 -0
- package/dist/client/components/chromeIcons.js +16 -0
- package/dist/client/components/columnPresentation.d.ts +8 -0
- package/dist/client/components/columnPresentation.js +47 -0
- package/dist/client/components/componentSlot.d.ts +31 -0
- package/dist/client/components/componentSlot.js +76 -0
- package/dist/client/components/composerDraft.d.ts +16 -0
- package/dist/client/components/composerDraft.js +16 -0
- package/dist/client/components/conditionText.d.ts +14 -0
- package/dist/client/components/conditionText.js +45 -0
- package/dist/client/components/conditionWords.d.ts +37 -0
- package/dist/client/components/conditionWords.js +382 -0
- package/dist/client/components/crumbSlot.d.ts +14 -0
- package/dist/client/components/crumbSlot.js +49 -0
- package/dist/client/components/dashboardModel.d.ts +283 -0
- package/dist/client/components/dashboardModel.js +415 -0
- package/dist/client/components/dashboardParts.d.ts +9 -0
- package/dist/client/components/dashboardParts.js +18 -0
- package/dist/client/components/diagramModel.d.ts +83 -0
- package/dist/client/components/diagramModel.js +211 -0
- package/dist/client/components/dueOpen.d.ts +1 -0
- package/dist/client/components/dueOpen.js +23 -0
- package/dist/client/components/editInteraction.d.ts +20 -0
- package/dist/client/components/editInteraction.js +178 -0
- package/dist/client/components/favoriteNav.d.ts +6 -0
- package/dist/client/components/favoriteNav.js +31 -0
- package/dist/client/components/favorites.d.ts +23 -0
- package/dist/client/components/favorites.js +86 -0
- package/dist/client/components/filePreviewModel.d.ts +18 -0
- package/dist/client/components/filePreviewModel.js +21 -0
- package/dist/client/components/filterRailModel.d.ts +93 -0
- package/dist/client/components/filterRailModel.js +302 -0
- package/dist/client/components/formControlsStyle.d.ts +1 -0
- package/dist/client/components/formControlsStyle.js +3 -0
- package/dist/client/components/formDefaults.d.ts +17 -0
- package/dist/client/components/formDefaults.js +128 -0
- package/dist/client/components/gridArrange.d.ts +33 -0
- package/dist/client/components/gridArrange.js +62 -0
- package/dist/client/components/gridCellModel.d.ts +32 -0
- package/dist/client/components/gridCellModel.js +42 -0
- package/dist/client/components/gridSizing.d.ts +89 -0
- package/dist/client/components/gridSizing.js +295 -0
- package/dist/client/components/groupMoves.d.ts +44 -0
- package/dist/client/components/groupMoves.js +295 -0
- package/dist/client/components/groupOrder.d.ts +43 -0
- package/dist/client/components/groupOrder.js +63 -0
- package/dist/client/components/inputRenderers.d.ts +48 -0
- package/dist/client/components/inputRenderers.js +37 -0
- package/dist/client/components/intakeStyle.d.ts +2 -0
- package/dist/client/components/intakeStyle.js +6 -0
- package/dist/client/components/jsonModel.d.ts +98 -0
- package/dist/client/components/jsonModel.js +264 -0
- package/dist/client/components/listColumn.d.ts +20 -0
- package/dist/client/components/listColumn.js +31 -0
- package/dist/client/components/listNavigation.d.ts +16 -0
- package/dist/client/components/listNavigation.js +14 -0
- package/dist/client/components/mentionRows.d.ts +5 -0
- package/dist/client/components/mentionRows.js +62 -0
- package/dist/client/components/mount.d.ts +55 -0
- package/dist/client/components/mount.js +155 -0
- package/dist/client/components/myViews.d.ts +54 -0
- package/dist/client/components/myViews.js +82 -0
- package/dist/client/components/navCounts.d.ts +84 -0
- package/dist/client/components/navCounts.js +194 -0
- package/dist/client/components/navigationTree.d.ts +52 -0
- package/dist/client/components/navigationTree.js +49 -0
- package/dist/client/components/newMenuModel.d.ts +27 -0
- package/dist/client/components/newMenuModel.js +58 -0
- package/dist/client/components/newRecordModel.d.ts +58 -0
- package/dist/client/components/newRecordModel.js +232 -0
- package/dist/client/components/onDemand.d.ts +30 -0
- package/dist/client/components/onDemand.js +121 -0
- package/dist/client/components/optimisticMoves.d.ts +21 -0
- package/dist/client/components/optimisticMoves.js +145 -0
- package/dist/client/components/pageContext.d.ts +154 -0
- package/dist/client/components/pageContext.js +47 -0
- package/dist/client/components/pageFieldsRead.d.ts +67 -0
- package/dist/client/components/pageFieldsRead.js +55 -0
- package/dist/client/components/pageModel.d.ts +203 -0
- package/dist/client/components/pageModel.js +67 -0
- package/dist/client/components/pageStep.d.ts +31 -0
- package/dist/client/components/pageStep.js +15 -0
- package/dist/client/components/paletteModel.d.ts +9 -0
- package/dist/client/components/paletteModel.js +46 -0
- package/dist/client/components/pickerStaleness.d.ts +32 -0
- package/dist/client/components/pickerStaleness.js +27 -0
- package/dist/client/components/placeOrder.d.ts +47 -0
- package/dist/client/components/placeOrder.js +71 -0
- package/dist/client/components/pointerDrag.d.ts +54 -0
- package/dist/client/components/pointerDrag.js +95 -0
- package/dist/client/components/presentationFit.d.ts +19 -0
- package/dist/client/components/presentationFit.js +32 -0
- package/dist/client/components/recordKeys.d.ts +2 -0
- package/dist/client/components/recordKeys.js +8 -0
- package/dist/client/components/recordSearch.d.ts +31 -0
- package/dist/client/components/recordSearch.js +80 -0
- package/dist/client/components/recordSurface.d.ts +86 -0
- package/dist/client/components/recordSurface.js +267 -0
- package/dist/client/components/rowOpens.d.ts +19 -0
- package/dist/client/components/rowOpens.js +25 -0
- package/dist/client/components/sidebarModel.d.ts +152 -0
- package/dist/client/components/sidebarModel.js +372 -0
- package/dist/client/components/suggestModel.d.ts +22 -0
- package/dist/client/components/suggestModel.js +49 -0
- package/dist/client/components/suggestPart.d.ts +4 -0
- package/dist/client/components/suggestPart.js +4 -0
- package/dist/client/components/textMeasure.d.ts +2 -0
- package/dist/client/components/textMeasure.js +35 -0
- package/dist/client/components/unknownIcon.d.ts +8 -0
- package/dist/client/components/unknownIcon.js +32 -0
- package/dist/client/components/useBulkSelection.d.ts +30 -0
- package/dist/client/components/useBulkSelection.js +360 -0
- package/dist/client/components/useConditionWords.d.ts +17 -0
- package/dist/client/components/useConditionWords.js +104 -0
- package/dist/client/components/useGridKeyboard.d.ts +32 -0
- package/dist/client/components/useGridKeyboard.js +223 -0
- package/dist/client/components/useListOrder.d.ts +94 -0
- package/dist/client/components/useListOrder.js +294 -0
- package/dist/client/components/useMediaQuery.d.ts +10 -0
- package/dist/client/components/useMediaQuery.js +45 -0
- package/dist/client/components/useMessageLanguage.d.ts +1 -0
- package/dist/client/components/useMessageLanguage.js +6 -0
- package/dist/client/components/usePins.d.ts +20 -0
- package/dist/client/components/usePins.js +66 -0
- package/dist/client/components/usePointerDrag.d.ts +72 -0
- package/dist/client/components/usePointerDrag.js +553 -0
- package/dist/client/components/useRecordInsert.d.ts +42 -0
- package/dist/client/components/useRecordInsert.js +145 -0
- package/dist/client/components/useRowWindow.d.ts +35 -0
- package/dist/client/components/useRowWindow.js +149 -0
- package/dist/client/components/useStickyHead.d.ts +17 -0
- package/dist/client/components/useStickyHead.js +65 -0
- package/dist/client/components/useTabFold.d.ts +32 -0
- package/dist/client/components/useTabFold.js +145 -0
- package/dist/client/components/valueModel.d.ts +300 -0
- package/dist/client/components/valueModel.js +560 -0
- package/dist/client/components/valueRenderers.d.ts +36 -0
- package/dist/client/components/valueRenderers.js +13 -0
- package/dist/client/components/viewLink.d.ts +27 -0
- package/dist/client/components/viewLink.js +79 -0
- package/dist/client/components/walk.d.ts +14 -0
- package/dist/client/components/walk.js +16 -0
- package/dist/client/compose.d.ts +8 -0
- package/dist/client/compose.js +163 -0
- package/dist/client/composedHook.d.ts +20 -0
- package/dist/client/composedHook.js +12 -0
- package/dist/client/composedReads.d.ts +26 -0
- package/dist/client/composedReads.js +183 -0
- package/dist/client/composer.css +499 -0
- package/dist/client/composer.d.ts +121 -0
- package/dist/client/composer.js +1079 -0
- package/dist/client/composerEntry.d.ts +1 -0
- package/dist/client/composerEntry.js +58 -0
- package/dist/client/composerTab.d.ts +6 -0
- package/dist/client/composerTab.js +20 -0
- package/dist/client/conditions.d.ts +46 -0
- package/dist/client/conditions.js +150 -0
- package/dist/client/connectionList.d.ts +11 -0
- package/dist/client/connectionList.js +146 -0
- package/dist/client/connectionScope.d.ts +6 -0
- package/dist/client/connectionScope.js +14 -0
- package/dist/client/connectionTransition.d.ts +12 -0
- package/dist/client/connectionTransition.js +41 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenu.d.ts +4 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenu.js +6 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenuPopups.d.ts +4 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenuPopups.js +6 -0
- package/dist/client/copy/columnMenu/components/ThMenu.d.ts +35 -0
- package/dist/client/copy/columnMenu/components/ThMenu.js +37 -0
- package/dist/client/copy/columnMenu/components/appColumnMenuModel.d.ts +10 -0
- package/dist/client/copy/columnMenu/components/appColumnMenuModel.js +12 -0
- package/dist/client/copy/dashboards/breakdownBatch.d.ts +3 -0
- package/dist/client/copy/dashboards/breakdownBatch.js +5 -0
- package/dist/client/copy/dashboards/components/Breakdown.d.ts +32 -0
- package/dist/client/copy/dashboards/components/Breakdown.js +25 -0
- package/dist/client/copy/dashboards/components/BreakdownRoom.d.ts +3 -0
- package/dist/client/copy/dashboards/components/BreakdownRoom.js +5 -0
- package/dist/client/copy/dashboards/components/Chart.d.ts +26 -0
- package/dist/client/copy/dashboards/components/Chart.js +19 -0
- package/dist/client/copy/dashboards/components/ChartShapes.d.ts +16 -0
- package/dist/client/copy/dashboards/components/ChartShapes.js +12 -0
- package/dist/client/copy/dashboards/components/PageMetrics.d.ts +21 -0
- package/dist/client/copy/dashboards/components/PageMetrics.js +20 -0
- package/dist/client/copy/dashboards/components/SectionPeriod.d.ts +4 -0
- package/dist/client/copy/dashboards/components/SectionPeriod.js +6 -0
- package/dist/client/copy/dashboards/components/dashboardModel.d.ts +3 -0
- package/dist/client/copy/dashboards/components/dashboardModel.js +5 -0
- package/dist/client/copy/es.d.ts +11 -0
- package/dist/client/copy/es.js +60 -0
- package/dist/client/copy/filters/components/FilterBoxes.d.ts +10 -0
- package/dist/client/copy/filters/components/FilterBoxes.js +12 -0
- package/dist/client/copy/filters/components/FilterRail.d.ts +16 -0
- package/dist/client/copy/filters/components/FilterRail.js +18 -0
- package/dist/client/copy/filters/components/ListFilterBar.d.ts +9 -0
- package/dist/client/copy/filters/components/ListFilterBar.js +11 -0
- package/dist/client/copy/filters/components/conditionWords.d.ts +46 -0
- package/dist/client/copy/filters/components/conditionWords.js +95 -0
- package/dist/client/copy/filters/components/filterRailModel.d.ts +12 -0
- package/dist/client/copy/filters/components/filterRailModel.js +14 -0
- package/dist/client/copy/forms/components/DateField.d.ts +13 -0
- package/dist/client/copy/forms/components/DateField.js +15 -0
- package/dist/client/copy/forms/components/MinorMoneyInput.d.ts +4 -0
- package/dist/client/copy/forms/components/MinorMoneyInput.js +6 -0
- package/dist/client/copy/forms/components/MultiStepForm.d.ts +10 -0
- package/dist/client/copy/forms/components/MultiStepForm.js +12 -0
- package/dist/client/copy/forms/components/NewRecord.d.ts +29 -0
- package/dist/client/copy/forms/components/NewRecord.js +31 -0
- package/dist/client/copy/forms/components/NewRecordButton.d.ts +6 -0
- package/dist/client/copy/forms/components/NewRecordButton.js +8 -0
- package/dist/client/copy/forms/components/Picker.d.ts +4 -0
- package/dist/client/copy/forms/components/Picker.js +6 -0
- package/dist/client/copy/forms/components/QuickAdd.d.ts +3 -0
- package/dist/client/copy/forms/components/QuickAdd.js +5 -0
- package/dist/client/copy/forms/components/RecordPicker.d.ts +6 -0
- package/dist/client/copy/forms/components/RecordPicker.js +8 -0
- package/dist/client/copy/forms/components/RichTextEditor.d.ts +36 -0
- package/dist/client/copy/forms/components/RichTextEditor.js +40 -0
- package/dist/client/copy/forms/components/RichTextField.d.ts +3 -0
- package/dist/client/copy/forms/components/RichTextField.js +5 -0
- package/dist/client/copy/forms/components/SetFieldDialog.d.ts +10 -0
- package/dist/client/copy/forms/components/SetFieldDialog.js +9 -0
- package/dist/client/copy/forms/components/useRecordInsert.d.ts +7 -0
- package/dist/client/copy/forms/components/useRecordInsert.js +9 -0
- package/dist/client/copy/help/helpContent.d.ts +71 -0
- package/dist/client/copy/help/helpContent.js +73 -0
- package/dist/client/copy/lists/bulkActions.d.ts +12 -0
- package/dist/client/copy/lists/bulkActions.js +14 -0
- package/dist/client/copy/lists/components/AppList.d.ts +28 -0
- package/dist/client/copy/lists/components/AppList.js +30 -0
- package/dist/client/copy/lists/components/CardsList.d.ts +3 -0
- package/dist/client/copy/lists/components/CardsList.js +5 -0
- package/dist/client/copy/lists/components/Gallery.d.ts +7 -0
- package/dist/client/copy/lists/components/Gallery.js +9 -0
- package/dist/client/copy/lists/components/Grid.d.ts +30 -0
- package/dist/client/copy/lists/components/Grid.js +29 -0
- package/dist/client/copy/lists/components/GridCellEditor.d.ts +5 -0
- package/dist/client/copy/lists/components/GridCellEditor.js +7 -0
- package/dist/client/copy/lists/components/GridSelection.d.ts +4 -0
- package/dist/client/copy/lists/components/GridSelection.js +6 -0
- package/dist/client/copy/lists/components/Nested.d.ts +7 -0
- package/dist/client/copy/lists/components/Nested.js +9 -0
- package/dist/client/copy/lists/components/RowActions.d.ts +1 -0
- package/dist/client/copy/lists/components/RowActions.js +3 -0
- package/dist/client/copy/lists/components/SavedViews.d.ts +5 -0
- package/dist/client/copy/lists/components/SavedViews.js +7 -0
- package/dist/client/copy/lists/components/SortMenu.d.ts +5 -0
- package/dist/client/copy/lists/components/SortMenu.js +7 -0
- package/dist/client/copy/lists/components/TableRoom.d.ts +12 -0
- package/dist/client/copy/lists/components/TableRoom.js +14 -0
- package/dist/client/copy/lists/components/TableView.d.ts +37 -0
- package/dist/client/copy/lists/components/TableView.js +39 -0
- package/dist/client/copy/lists/components/appListModel.d.ts +6 -0
- package/dist/client/copy/lists/components/appListModel.js +5 -0
- package/dist/client/copy/lists/components/myViews.d.ts +4 -0
- package/dist/client/copy/lists/components/myViews.js +6 -0
- package/dist/client/copy/lists/components/placeOrder.d.ts +4 -0
- package/dist/client/copy/lists/components/placeOrder.js +6 -0
- package/dist/client/copy/lists/components/useBulkSelection.d.ts +20 -0
- package/dist/client/copy/lists/components/useBulkSelection.js +16 -0
- package/dist/client/copy/lists/components/useListOrder.d.ts +7 -0
- package/dist/client/copy/lists/components/useListOrder.js +9 -0
- package/dist/client/copy/public/components/appRooms.d.ts +3 -0
- package/dist/client/copy/public/components/appRooms.js +5 -0
- package/dist/client/copy/record/components/Actions.d.ts +13 -0
- package/dist/client/copy/record/components/Actions.js +15 -0
- package/dist/client/copy/record/components/AttachmentList.d.ts +23 -0
- package/dist/client/copy/record/components/AttachmentList.js +22 -0
- package/dist/client/copy/record/components/DeleteButton.d.ts +22 -0
- package/dist/client/copy/record/components/DeleteButton.js +24 -0
- package/dist/client/copy/record/components/Dressed.d.ts +5 -0
- package/dist/client/copy/record/components/Dressed.js +7 -0
- package/dist/client/copy/record/components/EditLayoutButton.d.ts +5 -0
- package/dist/client/copy/record/components/EditLayoutButton.js +7 -0
- package/dist/client/copy/record/components/Editable.d.ts +25 -0
- package/dist/client/copy/record/components/Editable.js +24 -0
- package/dist/client/copy/record/components/FieldArranger.d.ts +15 -0
- package/dist/client/copy/record/components/FieldArranger.js +17 -0
- package/dist/client/copy/record/components/FilePreview.d.ts +13 -0
- package/dist/client/copy/record/components/FilePreview.js +15 -0
- package/dist/client/copy/record/components/JsonPreview.d.ts +3 -0
- package/dist/client/copy/record/components/JsonPreview.js +5 -0
- package/dist/client/copy/record/components/JsonView.d.ts +12 -0
- package/dist/client/copy/record/components/JsonView.js +14 -0
- package/dist/client/copy/record/components/LayoutBuilder.d.ts +23 -0
- package/dist/client/copy/record/components/LayoutBuilder.js +25 -0
- package/dist/client/copy/record/components/Lightbox.d.ts +5 -0
- package/dist/client/copy/record/components/Lightbox.js +7 -0
- package/dist/client/copy/record/components/LiveNotices.d.ts +33 -0
- package/dist/client/copy/record/components/LiveNotices.js +29 -0
- package/dist/client/copy/record/components/PageCurrent.d.ts +1 -0
- package/dist/client/copy/record/components/PageCurrent.js +3 -0
- package/dist/client/copy/record/components/PageEmptyRun.d.ts +3 -0
- package/dist/client/copy/record/components/PageEmptyRun.js +5 -0
- package/dist/client/copy/record/components/PageFields.d.ts +5 -0
- package/dist/client/copy/record/components/PageFields.js +7 -0
- package/dist/client/copy/record/components/PageFlowDiagram.d.ts +33 -0
- package/dist/client/copy/record/components/PageFlowDiagram.js +37 -0
- package/dist/client/copy/record/components/PageFlows.d.ts +20 -0
- package/dist/client/copy/record/components/PageFlows.js +22 -0
- package/dist/client/copy/record/components/PageGroups.d.ts +12 -0
- package/dist/client/copy/record/components/PageGroups.js +14 -0
- package/dist/client/copy/record/components/PageHead.d.ts +8 -0
- package/dist/client/copy/record/components/PageHead.js +10 -0
- package/dist/client/copy/record/components/PageHistory.d.ts +18 -0
- package/dist/client/copy/record/components/PageHistory.js +20 -0
- package/dist/client/copy/record/components/PageLayout.d.ts +5 -0
- package/dist/client/copy/record/components/PageLayout.js +7 -0
- package/dist/client/copy/record/components/PageRelated.d.ts +24 -0
- package/dist/client/copy/record/components/PageRelated.js +26 -0
- package/dist/client/copy/record/components/PageRoom.d.ts +4 -0
- package/dist/client/copy/record/components/PageRoom.js +6 -0
- package/dist/client/copy/record/components/PageSectionBox.d.ts +6 -0
- package/dist/client/copy/record/components/PageSectionBox.js +10 -0
- package/dist/client/copy/record/components/PageTimeline.d.ts +9 -0
- package/dist/client/copy/record/components/PageTimeline.js +8 -0
- package/dist/client/copy/record/components/Peek.d.ts +3 -0
- package/dist/client/copy/record/components/Peek.js +5 -0
- package/dist/client/copy/record/components/PeekPanel.d.ts +5 -0
- package/dist/client/copy/record/components/PeekPanel.js +7 -0
- package/dist/client/copy/record/components/QrCode.d.ts +3 -0
- package/dist/client/copy/record/components/QrCode.js +5 -0
- package/dist/client/copy/record/components/Record.d.ts +19 -0
- package/dist/client/copy/record/components/Record.js +21 -0
- package/dist/client/copy/record/components/RecordGone.d.ts +4 -0
- package/dist/client/copy/record/components/RecordGone.js +6 -0
- package/dist/client/copy/record/components/RecordSummaries.d.ts +1 -0
- package/dist/client/copy/record/components/RecordSummaries.js +3 -0
- package/dist/client/copy/record/components/RecordTags.d.ts +9 -0
- package/dist/client/copy/record/components/RecordTags.js +11 -0
- package/dist/client/copy/record/components/RecordTrailNav.d.ts +8 -0
- package/dist/client/copy/record/components/RecordTrailNav.js +10 -0
- package/dist/client/copy/record/components/RichText.d.ts +4 -0
- package/dist/client/copy/record/components/RichText.js +6 -0
- package/dist/client/copy/record/components/Value.d.ts +4 -0
- package/dist/client/copy/record/components/Value.js +6 -0
- package/dist/client/copy/record/components/WorkflowStatus.d.ts +7 -0
- package/dist/client/copy/record/components/WorkflowStatus.js +9 -0
- package/dist/client/copy/record/components/WriteConfirm.d.ts +11 -0
- package/dist/client/copy/record/components/WriteConfirm.js +13 -0
- package/dist/client/copy/record/components/groupMoves.d.ts +7 -0
- package/dist/client/copy/record/components/groupMoves.js +9 -0
- package/dist/client/copy/record/components/jsonModel.d.ts +3 -0
- package/dist/client/copy/record/components/jsonModel.js +5 -0
- package/dist/client/copy/record/components/pageModel.d.ts +5 -0
- package/dist/client/copy/record/components/pageModel.js +7 -0
- package/dist/client/copy/record/components/recordSurface.d.ts +6 -0
- package/dist/client/copy/record/components/recordSurface.js +8 -0
- package/dist/client/copy/record/components/valueModel.d.ts +5 -0
- package/dist/client/copy/record/components/valueModel.js +7 -0
- package/dist/client/copy/record/fileSource.d.ts +3 -0
- package/dist/client/copy/record/fileSource.js +5 -0
- package/dist/client/copy/record/insert.d.ts +6 -0
- package/dist/client/copy/record/insert.js +8 -0
- package/dist/client/copy/record/page.d.ts +4 -0
- package/dist/client/copy/record/page.js +6 -0
- package/dist/client/copy/record/recordEditValidation.d.ts +4 -0
- package/dist/client/copy/record/recordEditValidation.js +6 -0
- package/dist/client/copy/record/savedPages.d.ts +4 -0
- package/dist/client/copy/record/savedPages.js +6 -0
- package/dist/client/copy/record/template.d.ts +9 -0
- package/dist/client/copy/record/template.js +11 -0
- package/dist/client/copy/record/write.d.ts +30 -0
- package/dist/client/copy/record/write.js +26 -0
- package/dist/client/copy/shell/app.d.ts +27 -0
- package/dist/client/copy/shell/app.js +43 -0
- package/dist/client/copy/shell/components/AppIssues.d.ts +10 -0
- package/dist/client/copy/shell/components/AppIssues.js +9 -0
- package/dist/client/copy/shell/components/Crumbs.d.ts +7 -0
- package/dist/client/copy/shell/components/Crumbs.js +17 -0
- package/dist/client/copy/shell/components/Dropdown.d.ts +3 -0
- package/dist/client/copy/shell/components/Dropdown.js +5 -0
- package/dist/client/copy/shell/components/ErrorBoundary.d.ts +4 -0
- package/dist/client/copy/shell/components/ErrorBoundary.js +6 -0
- package/dist/client/copy/shell/components/FavoriteStar.d.ts +4 -0
- package/dist/client/copy/shell/components/FavoriteStar.js +6 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.d.ts +4 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.js +12 -0
- package/dist/client/copy/shell/components/OverflowMenu.d.ts +3 -0
- package/dist/client/copy/shell/components/OverflowMenu.js +10 -0
- package/dist/client/copy/shell/components/Palette.d.ts +15 -0
- package/dist/client/copy/shell/components/Palette.js +18 -0
- package/dist/client/copy/shell/components/Prefs.d.ts +4 -0
- package/dist/client/copy/shell/components/Prefs.js +11 -0
- package/dist/client/copy/shell/components/Prompt.d.ts +1 -0
- package/dist/client/copy/shell/components/Prompt.js +3 -0
- package/dist/client/copy/shell/components/Rooms.d.ts +6 -0
- package/dist/client/copy/shell/components/Rooms.js +8 -0
- package/dist/client/copy/shell/components/Sidebar.d.ts +7 -0
- package/dist/client/copy/shell/components/Sidebar.js +9 -0
- package/dist/client/copy/shell/components/Skeleton.d.ts +5 -0
- package/dist/client/copy/shell/components/Skeleton.js +7 -0
- package/dist/client/copy/shell/components/TopNav.d.ts +4 -0
- package/dist/client/copy/shell/components/TopNav.js +12 -0
- package/dist/client/copy/shell/components/Tour.d.ts +4 -0
- package/dist/client/copy/shell/components/Tour.js +6 -0
- package/dist/client/copy/shell/components/newMenuModel.d.ts +3 -0
- package/dist/client/copy/shell/components/newMenuModel.js +5 -0
- package/dist/client/copy/shell/components/onDemand.d.ts +3 -0
- package/dist/client/copy/shell/components/onDemand.js +5 -0
- package/dist/client/copy/shell/components/sidebarModel.d.ts +3 -0
- package/dist/client/copy/shell/components/sidebarModel.js +5 -0
- package/dist/client/copy/shell/connectionList.d.ts +6 -0
- package/dist/client/copy/shell/connectionList.js +8 -0
- package/dist/client/copy/shell/core.d.ts +16 -0
- package/dist/client/copy/shell/core.js +18 -0
- package/dist/client/copy/shell/palette.d.ts +6 -0
- package/dist/client/copy/shell/palette.js +8 -0
- package/dist/client/copy/shell/prompt.d.ts +1 -0
- package/dist/client/copy/shell/prompt.js +3 -0
- package/dist/client/copy/shell/requestIdentity.d.ts +9 -0
- package/dist/client/copy/shell/requestIdentity.js +11 -0
- package/dist/client/copy/shell/resourceRequests.d.ts +4 -0
- package/dist/client/copy/shell/resourceRequests.js +6 -0
- package/dist/client/copy/shell/sessionIdentity.d.ts +11 -0
- package/dist/client/copy/shell/sessionIdentity.js +13 -0
- package/dist/client/copy/shell/sessionLifecycle.d.ts +5 -0
- package/dist/client/copy/shell/sessionLifecycle.js +7 -0
- package/dist/client/copy/shell/startup.d.ts +5 -0
- package/dist/client/copy/shell/startup.js +7 -0
- package/dist/client/copy/shell/theme.d.ts +5 -0
- package/dist/client/copy/shell/theme.js +14 -0
- package/dist/client/copy/shell/toast.d.ts +3 -0
- package/dist/client/copy/shell/toast.js +5 -0
- package/dist/client/copy/shell/updateAttempts.d.ts +6 -0
- package/dist/client/copy/shell/updateAttempts.js +8 -0
- package/dist/client/copy/shell/visualTheme.d.ts +4 -0
- package/dist/client/copy/shell/visualTheme.js +6 -0
- package/dist/client/copy/workbench/clauses.d.ts +3 -0
- package/dist/client/copy/workbench/clauses.js +5 -0
- package/dist/client/copy/workbench/components/ApiOperations.d.ts +21 -0
- package/dist/client/copy/workbench/components/ApiOperations.js +23 -0
- package/dist/client/copy/workbench/components/Composer.d.ts +105 -0
- package/dist/client/copy/workbench/components/Composer.js +92 -0
- package/dist/client/copy/workbench/components/Diagram.d.ts +56 -0
- package/dist/client/copy/workbench/components/Diagram.js +46 -0
- package/dist/client/copy/workbench/components/Export.d.ts +26 -0
- package/dist/client/copy/workbench/components/Export.js +25 -0
- package/dist/client/copy/workbench/components/HelpPanel.d.ts +10 -0
- package/dist/client/copy/workbench/components/HelpPanel.js +12 -0
- package/dist/client/copy/workbench/components/History.d.ts +11 -0
- package/dist/client/copy/workbench/components/History.js +10 -0
- package/dist/client/copy/workbench/components/Landing.d.ts +5 -0
- package/dist/client/copy/workbench/components/Landing.js +7 -0
- package/dist/client/copy/workbench/components/SchemaExport.d.ts +24 -0
- package/dist/client/copy/workbench/components/SchemaExport.js +20 -0
- package/dist/client/copy/workbench/components/Summary.d.ts +28 -0
- package/dist/client/copy/workbench/components/Summary.js +24 -0
- package/dist/client/copy/workbench/components/ThemeLab.d.ts +25 -0
- package/dist/client/copy/workbench/components/ThemeLab.js +27 -0
- package/dist/client/copy/workbench/components/WorkPanel.d.ts +12 -0
- package/dist/client/copy/workbench/components/WorkPanel.js +14 -0
- package/dist/client/copy/workbench/composer.d.ts +36 -0
- package/dist/client/copy/workbench/composer.js +32 -0
- package/dist/client/copy/workbench/composerEntry.d.ts +4 -0
- package/dist/client/copy/workbench/composerEntry.js +6 -0
- package/dist/client/copy/workbench/export.d.ts +8 -0
- package/dist/client/copy/workbench/export.js +7 -0
- package/dist/client/copy/workbench/filterbar.d.ts +6 -0
- package/dist/client/copy/workbench/filterbar.js +8 -0
- package/dist/client/copy/workbench/handoff.d.ts +20 -0
- package/dist/client/copy/workbench/handoff.js +19 -0
- package/dist/client/copy/workbench/help.d.ts +6 -0
- package/dist/client/copy/workbench/help.js +8 -0
- package/dist/client/copy/workbench/history.d.ts +3 -0
- package/dist/client/copy/workbench/history.js +5 -0
- package/dist/client/copy/workbench/schemaexport.d.ts +5 -0
- package/dist/client/copy/workbench/schemaexport.js +7 -0
- package/dist/client/copy/workbench/tour.d.ts +22 -0
- package/dist/client/copy/workbench/tour.js +24 -0
- package/dist/client/copy/workbench/views.d.ts +6 -0
- package/dist/client/copy/workbench/views.js +8 -0
- package/dist/client/core.d.ts +312 -0
- package/dist/client/core.js +1067 -0
- package/dist/client/customThemes.css +43 -0
- package/dist/client/dashboard.d.ts +16 -0
- package/dist/client/dashboard.js +35 -0
- package/dist/client/deeplink.d.ts +64 -0
- package/dist/client/deeplink.js +384 -0
- package/dist/client/delete.d.ts +8 -0
- package/dist/client/delete.js +35 -0
- package/dist/client/density.d.ts +8 -0
- package/dist/client/density.js +102 -0
- package/dist/client/devtoolsEventClient.d.ts +27 -0
- package/dist/client/devtoolsEventClient.js +32 -0
- package/dist/client/documents.d.ts +9 -0
- package/dist/client/documents.js +23 -0
- package/dist/client/dom.d.ts +36 -0
- package/dist/client/dom.js +232 -0
- package/dist/client/draftRecovery.d.ts +16 -0
- package/dist/client/draftRecovery.js +56 -0
- package/dist/client/export.d.ts +59 -0
- package/dist/client/export.js +217 -0
- package/dist/client/features.css +2187 -0
- package/dist/client/fieldErrors.d.ts +27 -0
- package/dist/client/fieldErrors.js +20 -0
- package/dist/client/fileSource.d.ts +10 -0
- package/dist/client/fileSource.js +115 -0
- package/dist/client/filterbar.d.ts +87 -0
- package/dist/client/filterbar.js +168 -0
- package/dist/client/firstPaint.d.ts +26 -0
- package/dist/client/firstPaint.js +102 -0
- package/dist/client/fonts/Barlow-OFL.txt +125 -0
- package/dist/client/fonts/IBMPlexMono-OFL.txt +104 -0
- package/dist/client/fonts/Inter-OFL.txt +92 -0
- package/dist/client/fonts/barlow-400.woff2 +0 -0
- package/dist/client/fonts/barlow-600.woff2 +0 -0
- package/dist/client/fonts/barlow-semi-condensed-700.woff2 +0 -0
- package/dist/client/fonts/ibm-plex-mono-400.woff2 +0 -0
- package/dist/client/fonts/ibm-plex-mono-500.woff2 +0 -0
- package/dist/client/fonts/inter-latin.woff2 +0 -0
- package/dist/client/formControls.css +5 -0
- package/dist/client/handoff.d.ts +47 -0
- package/dist/client/handoff.js +138 -0
- package/dist/client/help.css +151 -0
- package/dist/client/help.d.ts +20 -0
- package/dist/client/help.js +103 -0
- package/dist/client/helpContent.d.ts +95 -0
- package/dist/client/helpContent.js +661 -0
- package/dist/client/history.d.ts +10 -0
- package/dist/client/history.js +181 -0
- package/dist/client/historyToken.d.ts +18 -0
- package/dist/client/historyToken.js +27 -0
- package/dist/client/iconWeight.d.ts +16 -0
- package/dist/client/iconWeight.js +44 -0
- package/dist/client/index.html +244 -0
- package/dist/client/insert.d.ts +50 -0
- package/dist/client/insert.js +269 -0
- package/dist/client/kit.d.ts +7 -0
- package/dist/client/kit.js +1 -0
- package/dist/client/layoutDraftRecovery.d.ts +8 -0
- package/dist/client/layoutDraftRecovery.js +33 -0
- package/dist/client/ledgerLook.css +32 -0
- package/dist/client/liveReads.d.ts +23 -0
- package/dist/client/liveReads.js +38 -0
- package/dist/client/liveState.d.ts +94 -0
- package/dist/client/liveState.js +212 -0
- package/dist/client/locale.d.ts +141 -0
- package/dist/client/locale.js +0 -0
- package/dist/client/lumenLook.css +1867 -0
- package/dist/client/menu.d.ts +49 -0
- package/dist/client/menu.js +131 -0
- package/dist/client/menuScope.d.ts +6 -0
- package/dist/client/menuScope.js +4 -0
- package/dist/client/messages.d.ts +240 -0
- package/dist/client/messages.js +370 -0
- package/dist/client/motionStill.d.ts +1 -0
- package/dist/client/motionStill.js +17 -0
- package/dist/client/navigationHold.d.ts +37 -0
- package/dist/client/navigationHold.js +503 -0
- package/dist/client/nested.d.ts +8 -0
- package/dist/client/nested.js +26 -0
- package/dist/client/ownWrites.d.ts +33 -0
- package/dist/client/ownWrites.js +76 -0
- package/dist/client/page.css +4052 -0
- package/dist/client/page.d.ts +21 -0
- package/dist/client/page.js +187 -0
- package/dist/client/pagemarks.d.ts +32 -0
- package/dist/client/pagemarks.js +98 -0
- package/dist/client/palette.d.ts +35 -0
- package/dist/client/palette.js +357 -0
- package/dist/client/partsLook.css +1047 -0
- package/dist/client/peek.d.ts +11 -0
- package/dist/client/peek.js +51 -0
- package/dist/client/peekpanel.d.ts +26 -0
- package/dist/client/peekpanel.js +121 -0
- package/dist/client/pendingWork.d.ts +19 -0
- package/dist/client/pendingWork.js +36 -0
- package/dist/client/pins.d.ts +24 -0
- package/dist/client/pins.js +97 -0
- package/dist/client/prefs.d.ts +3 -0
- package/dist/client/prefs.js +32 -0
- package/dist/client/prompt.d.ts +27 -0
- package/dist/client/prompt.js +61 -0
- package/dist/client/readGathering.d.ts +4 -0
- package/dist/client/readGathering.js +23 -0
- package/dist/client/recordCompose.d.ts +11 -0
- package/dist/client/recordCompose.js +69 -0
- package/dist/client/recordDrafts.d.ts +40 -0
- package/dist/client/recordDrafts.js +57 -0
- package/dist/client/recordEditValidation.d.ts +12 -0
- package/dist/client/recordEditValidation.js +52 -0
- package/dist/client/recordIntent.d.ts +6 -0
- package/dist/client/recordIntent.js +15 -0
- package/dist/client/recordPress.d.ts +12 -0
- package/dist/client/recordPress.js +84 -0
- package/dist/client/recordSource.d.ts +6 -0
- package/dist/client/recordSource.js +15 -0
- package/dist/client/recordTrail.d.ts +77 -0
- package/dist/client/recordTrail.js +101 -0
- package/dist/client/recordWriteRefresh.d.ts +74 -0
- package/dist/client/recordWriteRefresh.js +284 -0
- package/dist/client/relatedRows.d.ts +4 -0
- package/dist/client/relatedRows.js +24 -0
- package/dist/client/requestIdentity.d.ts +36 -0
- package/dist/client/requestIdentity.js +97 -0
- package/dist/client/resourceRequests.d.ts +7 -0
- package/dist/client/resourceRequests.js +32 -0
- package/dist/client/roleLabels.d.ts +7 -0
- package/dist/client/roleLabels.js +24 -0
- package/dist/client/rowEditing.d.ts +15 -0
- package/dist/client/rowEditing.js +36 -0
- package/dist/client/sageLook.css +242 -0
- package/dist/client/savedPages.d.ts +15 -0
- package/dist/client/savedPages.js +123 -0
- package/dist/client/schemaexport.d.ts +14 -0
- package/dist/client/schemaexport.js +182 -0
- package/dist/client/sessionIdentity.d.ts +39 -0
- package/dist/client/sessionIdentity.js +255 -0
- package/dist/client/sessionLifecycle.d.ts +33 -0
- package/dist/client/sessionLifecycle.js +276 -0
- package/dist/client/shellHost.d.ts +70 -0
- package/dist/client/shellHost.js +92 -0
- package/dist/client/shellMain.d.ts +8 -0
- package/dist/client/shellMode.d.ts +433 -0
- package/dist/client/shellMode.js +68 -0
- package/dist/client/shellStart.d.ts +5 -0
- package/dist/client/shellStart.js +54 -0
- package/dist/client/shells.d.ts +123 -0
- package/dist/client/shells.js +1 -0
- package/dist/client/sql.css +139 -0
- package/dist/client/startup.d.ts +8 -0
- package/dist/client/startup.js +85 -0
- package/dist/client/startupHold.d.ts +10 -0
- package/dist/client/startupHold.js +73 -0
- package/dist/client/structure.css +1296 -0
- package/dist/client/style.css +3526 -0
- package/dist/client/styleImports.d.ts +3 -0
- package/dist/client/surfaces.d.ts +18 -0
- package/dist/client/surfaces.js +27 -0
- package/dist/client/surfacesLook.css +88 -0
- package/dist/client/template.d.ts +75 -0
- package/dist/client/template.js +403 -0
- package/dist/client/theme.d.ts +14 -0
- package/dist/client/theme.js +112 -0
- package/dist/client/themeFamilies.css +788 -0
- package/dist/client/thmenu.d.ts +12 -0
- package/dist/client/thmenu.js +94 -0
- package/dist/client/toast.d.ts +7 -0
- package/dist/client/toast.js +117 -0
- package/dist/client/tour.d.ts +8 -0
- package/dist/client/tour.js +176 -0
- package/dist/client/transport.d.ts +2 -0
- package/dist/client/transport.js +13 -0
- package/dist/client/typography.d.ts +4 -0
- package/dist/client/typography.js +51 -0
- package/dist/client/uiBridge.d.ts +57 -0
- package/dist/client/uiBridge.js +30 -0
- package/dist/client/updateAttempts.d.ts +46 -0
- package/dist/client/updateAttempts.js +131 -0
- package/dist/client/url.d.ts +74 -0
- package/dist/client/url.js +388 -0
- package/dist/client/views.d.ts +19 -0
- package/dist/client/views.js +133 -0
- package/dist/client/visualTheme.d.ts +62 -0
- package/dist/client/visualTheme.js +502 -0
- package/dist/client/visualThemes.css +421 -0
- package/dist/client/workshopLook.css +126 -0
- package/dist/client/write.d.ts +100 -0
- package/dist/client/write.js +882 -0
- package/dist/client/writePaths.d.ts +16 -0
- package/dist/client/writePaths.js +35 -0
- package/dist/client/yesNoRule.d.ts +12 -0
- package/dist/client/yesNoRule.js +39 -0
- package/dist/clientFiles.d.ts +11 -4
- package/dist/clientFiles.js +16 -12
- package/dist/vite.d.ts +136 -0
- package/dist/vite.js +571 -0
- package/package.json +130 -3
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The view composer: one row per base table, with any field from any table
|
|
4
|
+
* it points at, summaries of the many side, a filter in the query language
|
|
5
|
+
* over paths, and the result previewed as it is built. The draft, the
|
|
6
|
+
* preview fetch, storage and the URL are `composer.js`'s — a store this
|
|
7
|
+
* reads through `useComposer` and drives through its actions. This is the
|
|
8
|
+
* drawing.
|
|
9
|
+
*/
|
|
10
|
+
import { useEffect, useRef, useState, useSyncExternalStore } from 'react';
|
|
11
|
+
import { motionStill } from '../motionStill.js';
|
|
12
|
+
import { findTable, hopsFrom, refsTo, state, tableAtPrefix } from '../core.js';
|
|
13
|
+
import { MAX_DEPTH, aggregateLabel, composerActions as act, composerState, composerVersion, phraseMany, phraseOne, plural, sameAggregate, shortAggregate, subscribeComposer, } from '../composer.js';
|
|
14
|
+
import { Dropdown } from './Dropdown.js';
|
|
15
|
+
import { canUseDatabaseTools } from '../connectionScope.js';
|
|
16
|
+
import { formatNumber } from '../locale.js';
|
|
17
|
+
import { say } from '../copy/workbench/components/Composer.js';
|
|
18
|
+
function useComposer() {
|
|
19
|
+
useSyncExternalStore(subscribeComposer, composerVersion, composerVersion);
|
|
20
|
+
return composerState();
|
|
21
|
+
}
|
|
22
|
+
const tableAt = (base, prefix) => tableAtPrefix(base, prefix);
|
|
23
|
+
const hopsOut = (id) => hopsFrom(id);
|
|
24
|
+
const shortTable = (id) => findTable(id)?.name ?? id;
|
|
25
|
+
const andList = (items) => items.length <= 1 ? (items[0] ?? '') : `${items.slice(0, -1).join(', ')} and ${items[items.length - 1]}`;
|
|
26
|
+
export function Composer() {
|
|
27
|
+
const s = useComposer();
|
|
28
|
+
return (_jsxs(_Fragment, { children: [_jsx(TopBar, { s: s }), _jsxs("div", { className: "composer-body", children: [_jsxs("aside", { className: "composer-side", children: [_jsx(StartPanel, { s: s }), _jsx(SavedPanel, { s: s }), _jsx(RelatedPanel, { s: s })] }), _jsxs("div", { className: "composer-main", children: [_jsx(FieldsPanel, { s: s }), _jsx(FilterPanel, { s: s }), _jsx(SummaryLine, { s: s }), s.showText ? _jsx(TextPanel, { s: s }) : null, s.showSql && canUseDatabaseTools() ? (_jsx("pre", { className: "explain composer-explain", children: s.preview?.explain ?? (s.previewError ? say('theViewDoesNotCompile') : say('pickAFieldToSee')) })) : null, _jsx("div", { className: "composer-preview", id: "composer-preview", children: _jsx(PreviewBody, { s: s }) })] })] })] }));
|
|
29
|
+
}
|
|
30
|
+
function TopBar({ s }) {
|
|
31
|
+
return (_jsxs("header", { className: "composer-bar", children: [_jsx("span", { className: "composer-eyebrow", children: say('viewEyebrow') }), _jsx("input", { className: "composer-name", type: "text", value: s.draft.name, placeholder: say('untitledView'), "aria-label": say('viewName'), onChange: (e) => act.setName(e.currentTarget.value) }), _jsx("span", { className: "composer-on", children: say('from', { base: s.draft.base }) }), _jsxs("div", { className: "composer-bar-actions", children: [_jsx("button", { type: "button", className: "ghost", "aria-pressed": s.showText, title: say('theViewWrittenDown'), onClick: () => act.toggleText(), children: say('text') }), canUseDatabaseTools() && (_jsx("button", { type: "button", className: "ghost", "aria-pressed": s.showSql, title: say('theStatementThisCompiles'), onClick: () => act.toggleSql(), children: "SQL" })), _jsx("button", { type: "button", className: "ghost", onClick: () => void act.saveAs(), children: say('saveAs') }), _jsx("button", { type: "button", onClick: () => void act.saveDraft(), children: say('common.save') }), _jsx("button", { type: "button", className: "ghost composer-close", "aria-label": say('closeTheComposer'), title: say('closeParenEsc'), onClick: () => act.leave(), children: "\u00D7" })] })] }));
|
|
32
|
+
}
|
|
33
|
+
function StartPanel({ s }) {
|
|
34
|
+
const tables = state.schema.tables;
|
|
35
|
+
return (_jsxs("section", { className: "panel composer-panel", children: [_jsx("h3", { children: say('startFrom') }), _jsx("div", { className: "composer-pad", children: _jsx(Dropdown, { ariaLabel: say('baseTable'), value: s.draft.base, onChange: (id) => act.setBase(id), items: tables.map((t) => ({
|
|
36
|
+
value: t.id,
|
|
37
|
+
label: t.id,
|
|
38
|
+
detail: `${say('columns', { count: t.columns.length })}${t.approxRows != null ? ` · ${say('rows', { count: t.approxRows })}` : ''}`,
|
|
39
|
+
badge: t.isView ? 'view' : undefined,
|
|
40
|
+
})) }) })] }));
|
|
41
|
+
}
|
|
42
|
+
function SavedPanel({ s }) {
|
|
43
|
+
const all = [...s.savedViews, ...s.fromConfig];
|
|
44
|
+
/* Pinned first, and stably. */
|
|
45
|
+
const ordered = [...all].sort((a, b) => Number(s.pinned.includes(b.id)) - Number(s.pinned.includes(a.id)));
|
|
46
|
+
return (_jsxs("section", { className: "panel composer-panel", children: [_jsx("h3", { children: say('savedViews') }), !all.length ? (_jsx("p", { className: "note", children: say('nothingSavedYetBuild') })) : (_jsx("ul", { className: "composer-saved", children: ordered.map((view) => {
|
|
47
|
+
const pinned = s.pinned.includes(view.id);
|
|
48
|
+
return (_jsxs("li", { className: `composer-saved-item${view.id === s.draft.id ? ' active' : ''}`, children: [_jsx("button", { type: "button", className: `composer-pin${pinned ? ' on' : ''}`, "aria-pressed": pinned, title: pinned ? say('unpin', { name: view.name }) : say('pinToTheTop', { name: view.name }), "aria-label": pinned ? say('unpinName', { name: view.name }) : say('pin', { name: view.name }), onClick: () => act.togglePin(view.id), children: pinned ? '★' : '☆' }), _jsxs("button", { type: "button", className: "composer-saved-open", disabled: Boolean(view.error), title: view.error
|
|
49
|
+
? view.error
|
|
50
|
+
: `${view.base} · ${say('countFields', { count: (view.columns ?? []).length })}${(view.aggregates ?? []).length ? ` · ${say('countSummaries', { count: view.aggregates.length })}` : ''}`, onClick: () => act.openSaved(view), children: [_jsx("span", { className: "composer-saved-name", children: view.name }), _jsx("span", { className: "composer-saved-base", children: view.base })] }), view.source === 'config' ? (_jsx("span", { className: "composer-saved-tag", title: say('definedInTablewalkJson'), children: say('config') })) : (_jsx("button", { type: "button", className: "view-remove", title: say('removeQuotedNameQuoted', { name: view.name }), "aria-label": say('remove', { name: view.name }), onClick: () => void act.removeSaved(view), children: "\u00D7" }))] }, view.id));
|
|
51
|
+
}) }))] }));
|
|
52
|
+
}
|
|
53
|
+
/** The forward hops out of a table, grouped per target, recursing into the ones that are open. */
|
|
54
|
+
function Outgoing({ s, tableId, prefix, depth }) {
|
|
55
|
+
const table = findTable(tableId);
|
|
56
|
+
if (!table)
|
|
57
|
+
return null;
|
|
58
|
+
const groups = new Map();
|
|
59
|
+
for (const hop of hopsOut(tableId))
|
|
60
|
+
groups.set(hop.target, [...(groups.get(hop.target) ?? []), hop]);
|
|
61
|
+
const pathOf = (hop) => (prefix ? `${prefix}.${hop.name}` : hop.name);
|
|
62
|
+
return (_jsx(_Fragment, { children: [...groups.entries()].map(([targetId, hops]) => {
|
|
63
|
+
const target = findTable(targetId);
|
|
64
|
+
const rows = target && target.approxRows != null ? ` · ${say('rows', { count: target.approxRows })}` : '';
|
|
65
|
+
if (hops.length === 1) {
|
|
66
|
+
return (_jsx(HopRow, { s: s, table: table, hop: hops[0], prefix: prefix, depth: depth, phrase: phraseOne(table, hops[0]), detail: say('viaNameRows', { name: hops[0].name, rows }), sub: s.opened.has(pathOf(hops[0])) ? _jsx(Outgoing, { s: s, tableId: targetId, prefix: pathOf(hops[0]), depth: depth + 1 }) : null }, targetId));
|
|
67
|
+
}
|
|
68
|
+
/* The header states the relationship once; each way is a row under it. */
|
|
69
|
+
const anyOptional = hops.some((h) => h.optional);
|
|
70
|
+
const self = targetId === table.id;
|
|
71
|
+
return (_jsxs("li", { className: "composer-rel-group-wrap", style: { display: 'contents' }, children: [_jsxs("li", { className: "composer-rel-group", style: depth ? { paddingLeft: `${10 + depth * 14}px` } : undefined, children: [_jsx("span", { className: "composer-phrase", children: say('eachRelation', {
|
|
72
|
+
table: table.name,
|
|
73
|
+
verb: anyOptional ? say('mayHaveOne') : say('hasOne'),
|
|
74
|
+
related: self ? say('relatedPrefix') : '',
|
|
75
|
+
target: target ? target.name : targetId,
|
|
76
|
+
}) }), _jsx("span", { className: "composer-ways", children: say('hopWays', { count: hops.length, rows }) })] }), hops.map((hop) => (_jsx(HopRow, { s: s, table: table, hop: hop, prefix: prefix, depth: depth, detail: `${say('viaHop', { hop: hop.name })}${hop.optional ? say('mayBeEmpty') : ''}`, inGroup: true, sub: s.opened.has(pathOf(hop)) ? _jsx(Outgoing, { s: s, tableId: targetId, prefix: pathOf(hop), depth: depth + 1 }) : null }, hop.name)))] }, targetId));
|
|
77
|
+
}) }));
|
|
78
|
+
}
|
|
79
|
+
function HopRow({ s, hop, prefix, depth, phrase, detail, inGroup, sub, }) {
|
|
80
|
+
const path = prefix ? `${prefix}.${hop.name}` : hop.name;
|
|
81
|
+
const isOpen = s.opened.has(path);
|
|
82
|
+
const tooDeep = depth >= MAX_DEPTH;
|
|
83
|
+
const indent = 10 + depth * 14 + (inGroup ? 12 : 0);
|
|
84
|
+
return (_jsxs(_Fragment, { children: [_jsxs("li", { className: `composer-rel-item${isOpen ? ' open' : ''}${inGroup ? ' in-group' : ''}`, style: indent === 10 ? undefined : { paddingLeft: `${indent}px` }, children: [phrase ? _jsx("span", { className: "composer-phrase", children: phrase }) : null, _jsx("span", { className: "composer-via", children: detail }), tooDeep && !isOpen ? (_jsx("span", { className: "composer-cap", title: say('aPathMayFollow', { max: MAX_DEPTH }), children: say('tooDeep') })) : (_jsx("button", { type: "button", className: `composer-add${isOpen ? ' on' : ''}`, "aria-pressed": isOpen, title: isOpen ? say('removeAndEveryField', { path }) : say('addItsFieldsJoin', { path }), onClick: () => (isOpen ? act.removeJoin(path) : act.addJoin(path)), children: isOpen ? say('common.added') : say('common.add') }))] }), sub] }));
|
|
85
|
+
}
|
|
86
|
+
function RelatedPanel({ s }) {
|
|
87
|
+
const base = findTable(s.draft.base);
|
|
88
|
+
const incoming = refsTo(s.draft.base);
|
|
89
|
+
const aggregates = s.draft.aggregates ?? [];
|
|
90
|
+
return (_jsxs("section", { className: "panel composer-panel composer-related", children: [_jsx("h3", { children: say('relatedTables') }), _jsxs("ul", { className: "composer-rel", children: [_jsx(Outgoing, { s: s, tableId: s.draft.base, prefix: "", depth: 0 }), incoming.length && base ? _jsx("li", { className: "composer-rel-head", children: say('pointingBack') }) : null, base
|
|
91
|
+
? incoming.map((fk) => {
|
|
92
|
+
const child = findTable(fk.from.table);
|
|
93
|
+
if (!child)
|
|
94
|
+
return null;
|
|
95
|
+
const countSpec = { fn: 'count', via: `${fk.from.table}.${fk.from.columns.join('+')}` };
|
|
96
|
+
const counted = aggregates.some((a) => sameAggregate(a, countSpec, s.draft.base));
|
|
97
|
+
return (_jsxs("li", { className: "composer-rel-item many", children: [_jsx("span", { className: "composer-phrase", children: phraseMany(base, fk) }), _jsx("span", { className: "composer-via", children: say('viaJoiningItWould', { columns: fk.from.columns.join(', '), base: base.name, child: child.name }) }), _jsxs("span", { className: "composer-many-actions", children: [_jsx("button", { type: "button", className: `composer-add${counted ? ' on' : ''}`, "aria-pressed": counted, title: counted
|
|
98
|
+
? say('removeTheCount', { name: child.name })
|
|
99
|
+
: say('addAColumnCounting', { name: base.name, names: plural(child.name) }), onClick: () => (counted ? act.removeAggregate(countSpec) : act.addAggregate(countSpec)), children: counted ? say('counted') : say('addCount') }), _jsx(SummariseMenu, { fk: fk, child: child }), _jsx("button", { type: "button", className: "composer-add", title: say('startAViewFromShowing', { child: child.name, base: base.name }), onClick: () => act.startFromChild(fk), children: say('startHere') })] })] }, fk.name));
|
|
100
|
+
})
|
|
101
|
+
: null] })] }));
|
|
102
|
+
}
|
|
103
|
+
function summaryLabel(fn, column, isDate) {
|
|
104
|
+
switch (fn) {
|
|
105
|
+
case 'sum':
|
|
106
|
+
return say('total', { column });
|
|
107
|
+
case 'avg':
|
|
108
|
+
return say('average', { column });
|
|
109
|
+
case 'min':
|
|
110
|
+
return isDate ? say('earliest', { column }) : say('smallest', { column });
|
|
111
|
+
case 'max':
|
|
112
|
+
return isDate ? say('latest', { column }) : say('largest', { column });
|
|
113
|
+
default:
|
|
114
|
+
return `${fn} ${column}`;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function SummariseMenu({ fk, child }) {
|
|
118
|
+
const items = [{ value: '', label: say('summarise'), detail: say('aTotalAnAverage') }];
|
|
119
|
+
for (const column of child.columns) {
|
|
120
|
+
if (column.primaryKey || column.references)
|
|
121
|
+
continue;
|
|
122
|
+
const type = column.type.toLowerCase();
|
|
123
|
+
const numeric = /int|numeric|decimal|real|double|float|money|serial/.test(type);
|
|
124
|
+
const dateish = /date|time/.test(type);
|
|
125
|
+
if (!numeric && !dateish)
|
|
126
|
+
continue;
|
|
127
|
+
/* A flag is numeric in SQLite and averaging it is meaningless. */
|
|
128
|
+
if (numeric && /^(is|has|can|should)_|^(active|enabled|urgent|billable)/.test(column.name))
|
|
129
|
+
continue;
|
|
130
|
+
for (const fn of numeric ? ['sum', 'avg', 'min', 'max'] : ['min', 'max']) {
|
|
131
|
+
items.push({ value: `${fn}:${column.name}`, label: summaryLabel(fn, column.name, dateish), detail: `${fn}(${column.name})` });
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if (items.length === 1)
|
|
135
|
+
return null;
|
|
136
|
+
return (_jsx("span", { className: "composer-menu", children: _jsx(Dropdown, { items: items, value: "", ariaLabel: say('summariseName', { name: child.name }), onChange: (value) => {
|
|
137
|
+
if (!value)
|
|
138
|
+
return;
|
|
139
|
+
const [fn, column] = value.split(':');
|
|
140
|
+
act.addAggregate({ fn, via: `${fk.from.table}.${fk.from.columns.join('+')}`, column });
|
|
141
|
+
} }) }));
|
|
142
|
+
}
|
|
143
|
+
function FieldsPanel({ s }) {
|
|
144
|
+
const { draft, opened, justAdded } = s;
|
|
145
|
+
const groups = [{ prefix: '', tableId: draft.base }];
|
|
146
|
+
for (const prefix of [...opened].sort()) {
|
|
147
|
+
const table = tableAt(draft.base, prefix);
|
|
148
|
+
if (table)
|
|
149
|
+
groups.push({ prefix, tableId: table.id });
|
|
150
|
+
}
|
|
151
|
+
const isSelected = (path) => draft.columns.some((c) => c.path === path);
|
|
152
|
+
const aggregates = draft.aggregates ?? [];
|
|
153
|
+
const fresh = useRef(null);
|
|
154
|
+
/* Bring a freshly added table's fields into sight, once. */
|
|
155
|
+
useEffect(() => {
|
|
156
|
+
if (!justAdded)
|
|
157
|
+
return;
|
|
158
|
+
fresh.current?.scrollIntoView?.({ block: 'nearest', behavior: motionStill() ? 'auto' : 'smooth' });
|
|
159
|
+
act.consumeJustAdded();
|
|
160
|
+
}, [justAdded]);
|
|
161
|
+
return (_jsxs("section", { className: "panel composer-panel composer-fields", children: [_jsxs("h3", { children: [say('fieldsHeading'), _jsx("span", { className: "composer-count", children: say('shown', { columnsCount: draft.columns.length }) })] }), groups.length === 1 ? (_jsxs("p", { className: "composer-empty", children: [_jsx("strong", { children: say('aViewIsOne', { name: findTable(draft.base)?.name ?? draft.base }) }), say('withAnyFieldFromAny')] })) : null, groups.map((group) => {
|
|
162
|
+
const table = findTable(group.tableId);
|
|
163
|
+
if (!table)
|
|
164
|
+
return null;
|
|
165
|
+
const isFresh = Boolean(group.prefix) && group.prefix === justAdded;
|
|
166
|
+
return (_jsxs("div", { ref: isFresh ? fresh : undefined, className: `composer-group${isFresh ? ' fresh' : ''}`, "data-prefix": group.prefix || undefined, children: [_jsxs("div", { className: "composer-group-head", children: [_jsx("span", { className: "composer-group-name", children: table.name }), _jsx("span", { className: "composer-group-path", children: group.prefix ? say('viaPrefix', { prefix: group.prefix }) : say('baseTableGroup') }), isFresh ? _jsx("span", { className: "composer-group-new", children: say('justAdded') }) : null] }), _jsx("div", { className: "composer-checks", children: table.columns.map((column) => {
|
|
167
|
+
const path = group.prefix ? `${group.prefix}.${column.name}` : column.name;
|
|
168
|
+
if (path.split('.').length > MAX_DEPTH + 1)
|
|
169
|
+
return null;
|
|
170
|
+
const on = isSelected(path);
|
|
171
|
+
return (_jsxs("label", { className: `composer-check${on ? ' on' : ''}`, title: path, children: [_jsx("input", { type: "checkbox", checked: on, onChange: () => act.toggleField(path) }), _jsx("span", { className: "composer-field-name", children: column.name }), _jsx("span", { className: "composer-field-type", children: column.type.toLowerCase() }), column.primaryKey ? _jsx("span", { className: "composer-mark pk", children: say('common.key') }) : null, column.references ? (_jsx("span", { className: "composer-mark fk", title: `→ ${column.references.table}`, children: "\u2192" })) : null] }, path));
|
|
172
|
+
}) })] }, group.prefix || '·'));
|
|
173
|
+
}), aggregates.length ? (_jsxs("div", { className: "composer-group", children: [_jsxs("div", { className: "composer-group-head", children: [_jsx("span", { className: "composer-group-name", children: say('summaries') }), _jsx("span", { className: "composer-group-path", children: say('oneValuePerRow') })] }), _jsx("div", { className: "composer-checks", children: aggregates.map((spec, i) => (_jsxs("label", { className: "composer-check on", title: aggregateLabel(spec), children: [_jsx("input", { type: "checkbox", checked: true, onChange: () => act.removeAggregate(spec) }), _jsx("span", { className: "composer-field-name", children: shortAggregate(spec) }), _jsx("span", { className: "composer-field-type", children: spec.fn })] }, i))) })] })) : null] }));
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The filter box with its path-aware completions: after `customer_id.` the
|
|
177
|
+
* useful suggestion is the next table's columns, which needs the key graph
|
|
178
|
+
* walked. Same keyboard contract as the query bar's completer.
|
|
179
|
+
*/
|
|
180
|
+
function FilterPanel({ s }) {
|
|
181
|
+
const input = useRef(null);
|
|
182
|
+
const [items, setItems] = useState([]);
|
|
183
|
+
const [index, setIndex] = useState(-1);
|
|
184
|
+
const [openList, setOpenList] = useState(false);
|
|
185
|
+
const shut = () => {
|
|
186
|
+
setOpenList(false);
|
|
187
|
+
setItems([]);
|
|
188
|
+
setIndex(-1);
|
|
189
|
+
};
|
|
190
|
+
const show = () => {
|
|
191
|
+
const node = input.current;
|
|
192
|
+
const caret = node.selectionStart ?? node.value.length;
|
|
193
|
+
const next = act.completionsFor(node.value, caret).slice(0, 40);
|
|
194
|
+
if (!next.length) {
|
|
195
|
+
shut();
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
setItems(next);
|
|
199
|
+
setIndex(-1);
|
|
200
|
+
setOpenList(true);
|
|
201
|
+
};
|
|
202
|
+
const accept = (item) => {
|
|
203
|
+
const node = input.current;
|
|
204
|
+
const caret = node.selectionStart ?? node.value.length;
|
|
205
|
+
const before = node.value.slice(0, caret);
|
|
206
|
+
const start = Math.max(before.lastIndexOf(' '), before.lastIndexOf(',')) + 1;
|
|
207
|
+
const after = node.value.slice(caret);
|
|
208
|
+
/* A hop keeps the caret against the dot; a finished token gets a space. */
|
|
209
|
+
const insert = item.partial ? item.value : item.value + (after.startsWith(' ') ? '' : ' ');
|
|
210
|
+
const value = node.value.slice(0, start) + insert + after;
|
|
211
|
+
act.setQuery(value);
|
|
212
|
+
const at = start + insert.length;
|
|
213
|
+
requestAnimationFrame(() => {
|
|
214
|
+
node.setSelectionRange(at, at);
|
|
215
|
+
show();
|
|
216
|
+
});
|
|
217
|
+
shut();
|
|
218
|
+
};
|
|
219
|
+
const onKey = (e) => {
|
|
220
|
+
if (!openList) {
|
|
221
|
+
if (e.key === ' ' && (e.ctrlKey || e.metaKey)) {
|
|
222
|
+
e.preventDefault();
|
|
223
|
+
show();
|
|
224
|
+
}
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
const step = (n) => setIndex(((n % items.length) + items.length) % items.length);
|
|
228
|
+
if (e.key === 'ArrowDown') {
|
|
229
|
+
e.preventDefault();
|
|
230
|
+
step(index + 1);
|
|
231
|
+
}
|
|
232
|
+
else if (e.key === 'ArrowUp') {
|
|
233
|
+
e.preventDefault();
|
|
234
|
+
step(index - 1);
|
|
235
|
+
}
|
|
236
|
+
else if (e.key === 'Escape') {
|
|
237
|
+
e.preventDefault();
|
|
238
|
+
e.stopPropagation();
|
|
239
|
+
shut();
|
|
240
|
+
}
|
|
241
|
+
else if (e.key === 'Tab') {
|
|
242
|
+
e.preventDefault();
|
|
243
|
+
accept(items[index >= 0 ? index : 0]);
|
|
244
|
+
}
|
|
245
|
+
else if (e.key === 'Enter') {
|
|
246
|
+
if (index >= 0) {
|
|
247
|
+
e.preventDefault();
|
|
248
|
+
accept(items[index]);
|
|
249
|
+
}
|
|
250
|
+
else
|
|
251
|
+
shut();
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
return (_jsxs("section", { className: "composer-filter", children: [_jsxs("div", { className: "composer-filter-row", children: [_jsx("span", { className: "composer-filter-label", children: say('where') }), _jsxs("span", { className: "composer-query-wrap", children: [_jsx("input", { ref: input, className: "composer-query", type: "text", spellCheck: false, value: s.draft.query, "aria-label": say('common.filter'), placeholder: "customer_id.country_code.name = Australia and total > 500", onChange: (e) => {
|
|
255
|
+
act.setQuery(e.currentTarget.value);
|
|
256
|
+
show();
|
|
257
|
+
}, onClick: show, onBlur: () => setTimeout(shut, 120), onKeyDown: onKey }), _jsx("div", { className: "ac composer-ac", hidden: !openList, role: "listbox", children: items.map((item, i) => (_jsxs("div", { className: `ac-item kind-${item.kind}${i === index ? ' active' : ''}`, role: "option", "aria-selected": i === index, onMouseDown: (e) => {
|
|
258
|
+
e.preventDefault();
|
|
259
|
+
accept(item);
|
|
260
|
+
}, children: [_jsx("span", { className: "ac-label", children: item.label }), _jsx("span", { className: "ac-detail", children: item.detail })] }, item.value))) })] }), _jsx("span", { className: "composer-filter-label", children: say('common.rows') }), _jsx("input", { className: "composer-limit", type: "number", min: 1, max: 1000, defaultValue: String(s.draft.limit), "aria-label": say('rowLimit'), onChange: (e) => act.setLimit(Number(e.currentTarget.value)) })] }), _jsx("p", { className: "composer-hint", children: say('sameLanguageAsTheBar') })] }));
|
|
261
|
+
}
|
|
262
|
+
function SummaryLine({ s }) {
|
|
263
|
+
const base = findTable(s.draft.base);
|
|
264
|
+
const name = base ? base.name : s.draft.base;
|
|
265
|
+
const sources = [...s.opened].sort().map((prefix) => ({ prefix, name: tableAt(s.draft.base, prefix)?.name ?? prefix }));
|
|
266
|
+
/* Two hops onto the same table are two different things. */
|
|
267
|
+
const counts = new Map();
|
|
268
|
+
for (const src of sources)
|
|
269
|
+
counts.set(src.name, (counts.get(src.name) ?? 0) + 1);
|
|
270
|
+
const labels = sources.map((src) => ((counts.get(src.name) ?? 0) > 1 ? `${src.name} (${src.prefix})` : src.name));
|
|
271
|
+
const rolled = (s.draft.aggregates ?? []).map((a) => aggregateLabel(a));
|
|
272
|
+
const parts = [say('oneRowPer', { name })];
|
|
273
|
+
if (labels.length)
|
|
274
|
+
parts.push(say('withColumns', { andList: andList(labels) }));
|
|
275
|
+
if (rolled.length)
|
|
276
|
+
parts.push(`${labels.length ? say('and') : say('with')} ${andList(rolled)}`);
|
|
277
|
+
parts.push('.');
|
|
278
|
+
return (_jsxs("p", { className: "composer-summary", children: [_jsx("strong", { children: parts.join('') }), labels.length ? say('everyAppearsExactlyOnce', { name }) : null] }));
|
|
279
|
+
}
|
|
280
|
+
function TextPanel({ s }) {
|
|
281
|
+
const value = s.textEdit ?? s.preview?.text ?? '';
|
|
282
|
+
const same = value.trim() === (s.preview?.text ?? '').trim();
|
|
283
|
+
return (_jsxs("section", { className: "composer-textpanel", children: [_jsx("textarea", { className: "composer-text", spellCheck: false, rows: Math.min(10, Math.max(3, value.split('\n').length + 1)), "aria-label": say('theViewAsText'), placeholder: 'invoice\n show id, customer_id.name as customer\n where total > 500', value: value, onChange: (e) => act.setTextEdit(e.currentTarget.value),
|
|
284
|
+
/* Applied on demand rather than on every keystroke: a half-typed clause is an error, not a view. */
|
|
285
|
+
onKeyDown: (e) => {
|
|
286
|
+
if (e.key === 'Enter' && (e.metaKey || e.ctrlKey)) {
|
|
287
|
+
e.preventDefault();
|
|
288
|
+
void act.applyText(e.currentTarget.value);
|
|
289
|
+
}
|
|
290
|
+
} }), _jsxs("div", { className: "composer-text-actions", children: [_jsx("span", { className: "composer-hint", children: say('editAndApplyOrPaste') }), _jsx("button", { type: "button", className: "ghost composer-text-apply", disabled: s.textEdit === null || same, onClick: () => void act.applyText(value), children: say('common.apply') })] })] }));
|
|
291
|
+
}
|
|
292
|
+
function PreviewBody({ s }) {
|
|
293
|
+
const { draft, preview, previewError, running } = s;
|
|
294
|
+
if (previewError)
|
|
295
|
+
return (_jsx("div", { className: "errors composer-errors", role: "alert", children: previewError.map((e, i) => (_jsx("p", { children: e.message }, i))) }));
|
|
296
|
+
if (!draft.columns.length && !(draft.aggregates ?? []).length)
|
|
297
|
+
return _jsx("p", { className: "note", children: say('tickAFieldToSee') });
|
|
298
|
+
if (!preview)
|
|
299
|
+
return _jsx("p", { className: "loading", children: running ? say('running') : say('building') });
|
|
300
|
+
const total = preview.total ?? preview.rows.length;
|
|
301
|
+
const byName = new Map(preview.resolved.map((c) => [c.name, c]));
|
|
302
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "result-head", children: [_jsx("h2", { className: "result-title", children: draft.name || draft.base }), _jsx("span", { className: "stat", children: preview.total !== undefined && preview.total > preview.rows.length
|
|
303
|
+
? say('rowsOfTotal', { shown: formatNumber(preview.rows.length), total: say('rows', { count: preview.total }) })
|
|
304
|
+
: say('rows', { count: total }) }), _jsx("span", { className: "stat", children: say('msMs', { ms: preview.ms }) }), _jsx("span", { className: "stat", children: say('joins', { count: preview.joinCount ?? preview.joins?.length ?? 0 }) }), running ? _jsx("span", { className: "stat", children: "\u2026" }) : null] }), _jsxs("div", { className: "table-wrap", children: [!preview.rows.length ? (_jsx("p", { className: "note", children: say('noRowsMatch') })) : (_jsxs("table", { children: [_jsx("thead", { children: _jsx("tr", { children: preview.columns.map((name) => {
|
|
305
|
+
const meta = byName.get(name);
|
|
306
|
+
const sorted = (draft.orderBy ?? []).find((o) => o.path === (meta ? meta.path : name));
|
|
307
|
+
const summary = meta?.aggregate;
|
|
308
|
+
const shown = meta && meta.name !== meta.path
|
|
309
|
+
? meta.name
|
|
310
|
+
: summary
|
|
311
|
+
? meta.column === '*'
|
|
312
|
+
? ''
|
|
313
|
+
: meta.column
|
|
314
|
+
: meta
|
|
315
|
+
? meta.column
|
|
316
|
+
: name;
|
|
317
|
+
return (_jsxs("th", { title: summary
|
|
318
|
+
? say('overOneValuePer', { aggregate: meta.aggregate ?? '', shortTable: shortTable(meta.table) })
|
|
319
|
+
: meta
|
|
320
|
+
? `${meta.path} · ${meta.type}`
|
|
321
|
+
: name, className: `${sorted ? `sorted-${sorted.direction}` : ''}${summary ? ' is-summary' : ''}`.trim() || undefined,
|
|
322
|
+
/* A summary is a subquery; sorting by one would need it repeated in ORDER BY. Left unsortable rather than sortable-but-broken. */
|
|
323
|
+
onClick: summary ? undefined : () => act.sortByPath(meta ? meta.path : name), children: [meta && (meta.hops || summary) ? (_jsx("span", { className: "composer-th-table", children: `${summary ? `${meta.aggregate} ` : ''}${shortTable(meta.table)} ` })) : null, shown, sorted ? _jsx("span", { className: "composer-th-sort", children: sorted.direction === 'desc' ? ' ↓' : ' ↑' }) : null, _jsx("button", { className: "composer-th-rename", type: "button", title: say('renameThisColumn'), "aria-label": say('rename', { name }), onClick: (e) => {
|
|
324
|
+
e.stopPropagation();
|
|
325
|
+
void act.renameColumn(meta, name);
|
|
326
|
+
}, children: "\u270E" })] }, name));
|
|
327
|
+
}) }) }), _jsx("tbody", { children: preview.rows.map((row, i) => (_jsx("tr", { children: preview.columns.map((name) => {
|
|
328
|
+
const value = row[name];
|
|
329
|
+
return value === null || value === undefined ? (_jsx("td", { className: "null", children: "null" }, name)) : (_jsx("td", { className: "mono", title: String(value).length > 40 ? String(value) : undefined, children: String(value) }, name));
|
|
330
|
+
}) }, i))) })] })), preview.rows.length && preview.more ? _jsx("p", { className: "note", children: say('moreRowsMatchThan') }) : null] })] }));
|
|
331
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { KnownPage } from './WorkPanel.js';
|
|
2
|
+
export declare function setKnownPages(pages: KnownPage[]): void;
|
|
3
|
+
export declare function noticeOnContent(text: string): void;
|
|
4
|
+
export declare function holdHome(held: boolean): void;
|
|
5
|
+
export declare function homeIsHeld(): boolean;
|
|
6
|
+
export declare function Content({ onHome }: {
|
|
7
|
+
onHome: () => void;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The content pane: what is on screen, decided by the walk.
|
|
4
|
+
*
|
|
5
|
+
* Mounted once on `#content` and subscribed to the walk. Nothing on the
|
|
6
|
+
* stack is a landing — the app's screen or its home card, the workbench's
|
|
7
|
+
* shape of the database; otherwise the trail, then the room the top entry
|
|
8
|
+
* names. Each kind is named explicitly: a dispatch whose last branch is
|
|
9
|
+
* "or else a row" turns every kind it has not heard of into a record view
|
|
10
|
+
* asking for a key nobody supplied.
|
|
11
|
+
*
|
|
12
|
+
* Three ticks drive it. Every `render()` is a paint: the address bar is
|
|
13
|
+
* written. The room is keyed by the room tick (core.js `roomVersion`), which
|
|
14
|
+
* moves on nearly every paint, so the room's state and its fetches start
|
|
15
|
+
* over the way a repaint always did — except for a refinement of the table
|
|
16
|
+
* room on screen (a page, a page size, a header's sort or filter), which
|
|
17
|
+
* keeps the room and lets its Query re-ask in place — in an App's list as in
|
|
18
|
+
* the Workbench's table. A crumb correction
|
|
19
|
+
* (`renderCrumbs`) ticks the walk alone: the trail re-reads its labels and
|
|
20
|
+
* the room is left be, because re-fetching the row that just resolved its
|
|
21
|
+
* own label would loop.
|
|
22
|
+
*/
|
|
23
|
+
import { Fragment, useLayoutEffect } from 'react';
|
|
24
|
+
import { currentEntry, paintVersion, renderCrumbs, roomVersion } from '../core.js';
|
|
25
|
+
import { shell } from '../shellMode.js';
|
|
26
|
+
import { syncHash } from '../url.js';
|
|
27
|
+
import { appListFor } from './appListModel.js';
|
|
28
|
+
import { ASSISTANT_PAGE, INBOX_PAGE, dashPageId, dashViewKey, formViewKey, homeRoom } from './appRooms.js';
|
|
29
|
+
import { onDemand } from './onDemand.js';
|
|
30
|
+
import { crumbBarShown, Crumbs } from './Crumbs.js';
|
|
31
|
+
import { LoadErrorNote, NothingGranted, WorkbenchLanding } from './Landing.js';
|
|
32
|
+
import { PageRoom } from './PageRoom.js';
|
|
33
|
+
import { AppListRoom, DashboardRoom, RowRoom } from './Rooms.js';
|
|
34
|
+
import { SavedViewsSection } from './SavedViews.js';
|
|
35
|
+
import { TableRoom } from './TableRoom.js';
|
|
36
|
+
import { useWalk } from './walk.js';
|
|
37
|
+
import { AppFooter } from './AppFooter.js';
|
|
38
|
+
import { documentAt } from '../documents.js';
|
|
39
|
+
import { ErrorBoundary } from './ErrorBoundary.js';
|
|
40
|
+
/* A breakdown is the query language at work, loaded when one is first asked. */
|
|
41
|
+
const BreakdownRoom = onDemand(() => import('./BreakdownRoom.js'), 'BreakdownRoom');
|
|
42
|
+
/* An App's own rooms — its home, a form, the inbox, the assistant, a record's document — are the App
|
|
43
|
+
framework's, drawn through the shell's rooms slot (shellMode.ts `rooms`); this pane names none of them. */
|
|
44
|
+
/* The pages this connection has, as the last read left them. Synchronous,
|
|
45
|
+
because the landing is drawn before anything is fetched — the shell fills
|
|
46
|
+
this once the pages are known, and a first visit has none to show. */
|
|
47
|
+
let knownPages = [];
|
|
48
|
+
export function setKnownPages(pages) {
|
|
49
|
+
knownPages = pages;
|
|
50
|
+
}
|
|
51
|
+
/* A sentence above the landing — the link that could not be followed, and
|
|
52
|
+
the way forward — shown until the next paint takes it away. */
|
|
53
|
+
let notice = null;
|
|
54
|
+
export function noticeOnContent(text) {
|
|
55
|
+
notice = { text, paint: paintVersion() };
|
|
56
|
+
renderCrumbs();
|
|
57
|
+
}
|
|
58
|
+
/* Set by boot while an address it has not applied yet names somewhere: the
|
|
59
|
+
walk is still empty then, and an empty walk is home. Drawn in that gap,
|
|
60
|
+
the home dashboard mounted and fired every tile's query — fourteen
|
|
61
|
+
requests on a warm-tab deep link to a list — for a room nobody asked
|
|
62
|
+
for, replaced a moment later. Released the moment the address is
|
|
63
|
+
applied (app.js boot, switchAndRestore), and the paint that follows
|
|
64
|
+
draws the room the address names. */
|
|
65
|
+
let homeHeld = false;
|
|
66
|
+
export function holdHome(held) {
|
|
67
|
+
homeHeld = held;
|
|
68
|
+
}
|
|
69
|
+
export function homeIsHeld() {
|
|
70
|
+
return homeHeld;
|
|
71
|
+
}
|
|
72
|
+
export function Content({ onHome }) {
|
|
73
|
+
useWalk();
|
|
74
|
+
const frame = shell().inApp() ? shell().app()?.ui.shell : undefined;
|
|
75
|
+
const body = _jsx(ContentBody, { onHome: onHome });
|
|
76
|
+
/* The frame draws the content's width, gutter and title. Placement, the
|
|
77
|
+
menu, search and breadcrumbs are drawn elsewhere and need no frame. */
|
|
78
|
+
const framed = frame !== undefined && (frame.width !== undefined || frame.gutter !== undefined || frame.heading === false);
|
|
79
|
+
/* The App's footer belongs to every room, so it is drawn here rather than
|
|
80
|
+
by each room — and inside the frame, so it takes the content's width
|
|
81
|
+
rather than the window's. A landing standing alone draws its own (LandingSurface); one drawn as this
|
|
82
|
+
pane's home is told not to (PublicHome), so there is one footer either way. */
|
|
83
|
+
const footer = shell().inApp() ? shell().app()?.ui.footer : undefined;
|
|
84
|
+
const withFooter = footer ? (_jsxs(_Fragment, { children: [body, _jsx(AppFooter, { footer: footer })] })) : (body);
|
|
85
|
+
return framed ? (_jsx("div", { className: `app-content-frame${frame?.heading === false ? ' app-content-no-title' : ''}`, "data-width": frame?.width, "data-gutter": frame?.gutter, children: withFooter })) : (withFooter);
|
|
86
|
+
}
|
|
87
|
+
function ContentBody({ onHome }) {
|
|
88
|
+
const walked = useWalk();
|
|
89
|
+
const paint = paintVersion();
|
|
90
|
+
const entry = currentEntry();
|
|
91
|
+
/* Every paint is a state change worth linking to, so the address bar is
|
|
92
|
+
written here rather than at each of the dozen places that call go(). */
|
|
93
|
+
useLayoutEffect(() => {
|
|
94
|
+
syncHash();
|
|
95
|
+
}, [paint]);
|
|
96
|
+
const said = notice && notice.paint === paint ? _jsx("p", { className: "note", children: notice.text }) : null;
|
|
97
|
+
const app = shell().inApp() ? shell().app() : null;
|
|
98
|
+
/* Where this visitor starts is the server's answer (the payload's `home`),
|
|
99
|
+
followed and never worked out here: one of the App's rooms, or — when
|
|
100
|
+
it names none — a public view (AppHome.tsx). */
|
|
101
|
+
const home = app ? homeRoom(app) : undefined;
|
|
102
|
+
const homeDash = home && 'sections' in home ? home : undefined;
|
|
103
|
+
const homeEntry = entry?.kind === 'page' && entry.tab === 'home' && homeDash && entry.pageId === dashPageId(homeDash.id)
|
|
104
|
+
? entry
|
|
105
|
+
: undefined;
|
|
106
|
+
if (!entry && homeHeld)
|
|
107
|
+
return null;
|
|
108
|
+
if (!entry || homeEntry) {
|
|
109
|
+
/* In an app, home is the app: where its work starts and what is waiting,
|
|
110
|
+
not the anatomy of the database it happens to run on. The schema
|
|
111
|
+
summary and diagram still exist — they are the workbench's landing,
|
|
112
|
+
one "All tables" flip away. */
|
|
113
|
+
if (shell().inApp()) {
|
|
114
|
+
const Home = shell().rooms.Home;
|
|
115
|
+
return Home ? _jsx(Home, { paint: paint, said: said, entry: homeEntry, pages: knownPages }) : null;
|
|
116
|
+
}
|
|
117
|
+
// An App is served, and this account's roles read none of it.
|
|
118
|
+
if (shell().app())
|
|
119
|
+
return (_jsxs(_Fragment, { children: [said, _jsx(NothingGranted, {})] }));
|
|
120
|
+
return (_jsxs(_Fragment, { children: [said, _jsx(WorkbenchLanding, { pages: knownPages })] }));
|
|
121
|
+
}
|
|
122
|
+
const loadError = shell().inApp() ? shell().loadError() : '';
|
|
123
|
+
/* Spelled apart, so a room in one mode is never taken for the same room
|
|
124
|
+
in the other when the mode changes under the same key. An App's list
|
|
125
|
+
keeps its room through a refinement too (a header's sort, a page): it
|
|
126
|
+
was keyed by the paint, so a sort threw the whole grid away and built
|
|
127
|
+
it again inside the click, the slowest interaction measured on a list
|
|
128
|
+
(test/built-client-vitals.mjs). */
|
|
129
|
+
const room = shell().inApp() ? `app:${roomVersion()}` : `room:${roomVersion()}`;
|
|
130
|
+
return (_jsxs(_Fragment, { children: [crumbBarShown(walked) && (_jsx("div", { className: "crumbs-host", children: _jsx(Crumbs, { onHome: onHome }) })), _jsx(LoadErrorNote, { error: loadError }), said, _jsx(Fragment, { children: _jsx(ErrorBoundary, { scope: "room", children: _jsx(Room, { entry: entry }) }) }, room)] }));
|
|
131
|
+
}
|
|
132
|
+
function Room({ entry }) {
|
|
133
|
+
if (entry.kind === 'table') {
|
|
134
|
+
const table = entry;
|
|
135
|
+
/* In app mode every table renders as an app list page — one of the
|
|
136
|
+
App's views when it has one, a synthesized one (humanized name,
|
|
137
|
+
derived filters) when a drill from a page lands outside them. Same
|
|
138
|
+
entry, same URL; which room you are in decides the dress. */
|
|
139
|
+
const appList = shell().inApp() ? appListFor(table.table, table.query) : null;
|
|
140
|
+
if (appList)
|
|
141
|
+
return _jsx(AppListRoom, { entry: table, spec: appList });
|
|
142
|
+
/* Saved filters sit above the view tabs and below the trail: they are a
|
|
143
|
+
property of the table you are on, not of the walk that got you here. */
|
|
144
|
+
return (_jsxs(_Fragment, { children: [_jsx(SavedViewsSection, { entry: table }), _jsx(TableRoom, { entry: table })] }));
|
|
145
|
+
}
|
|
146
|
+
if (entry.kind === 'breakdown')
|
|
147
|
+
return _jsx(BreakdownRoom, { entry: entry });
|
|
148
|
+
/* A record's document is said where its tab would be (`/orders/12/invoice`): the record's room yields to the sheet. */
|
|
149
|
+
const document = entry.kind === 'page' || entry.kind === 'row' ? documentAt(entry) : undefined;
|
|
150
|
+
const rooms = shell().rooms;
|
|
151
|
+
if (document)
|
|
152
|
+
return rooms.Document ? _jsx(rooms.Document, { entry: entry, document: document }) : null;
|
|
153
|
+
if (entry.kind === 'page') {
|
|
154
|
+
const page = entry;
|
|
155
|
+
/* A dashboard rides the page token with a reserved id space: saved pages
|
|
156
|
+
say `saved:`, config pages `config-`, suggestions `suggested:` —
|
|
157
|
+
`dash-` and `form-` are the app's own screens, and branching here
|
|
158
|
+
costs the URL machinery nothing. */
|
|
159
|
+
if (shell().inApp() && dashViewKey(page.pageId) !== undefined)
|
|
160
|
+
return _jsx(DashboardRoom, { entry: page });
|
|
161
|
+
if (shell().inApp() && formViewKey(page.pageId) !== undefined)
|
|
162
|
+
return rooms.Form ? _jsx(rooms.Form, { entry: page }) : null;
|
|
163
|
+
if (shell().inApp() && page.pageId === INBOX_PAGE)
|
|
164
|
+
return rooms.Inbox ? _jsx(rooms.Inbox, {}) : null;
|
|
165
|
+
if (shell().inApp() && page.pageId === ASSISTANT_PAGE)
|
|
166
|
+
return rooms.Assistant ? _jsx(rooms.Assistant, { conversation: page.tab }) : null;
|
|
167
|
+
return _jsx(PageRoom, { entry: page });
|
|
168
|
+
}
|
|
169
|
+
return _jsx(RowRoom, { entry: entry });
|
|
170
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import IntlMessageFormat from 'intl-messageformat';
|
|
2
|
+
type MessageFormatElement = Exclude<ConstructorParameters<typeof IntlMessageFormat>[0], string>[number];
|
|
3
|
+
/** A counting label as the server sends it: the message parsed in the reader's locale. */
|
|
4
|
+
export type CountedMessage = readonly MessageFormatElement[];
|
|
5
|
+
export declare function CountedLabel({ message, count, locale }: {
|
|
6
|
+
message: CountedMessage;
|
|
7
|
+
count: number;
|
|
8
|
+
locale: string;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* An App action's label said for the records it takes, in the reader's
|
|
4
|
+
* language: the server parsed it (server appMessages.ts countedLabels), and
|
|
5
|
+
* this says it with `{count}`. The formatter (intl-messageformat) comes with
|
|
6
|
+
* this part, loaded on demand the first time a selection needs it
|
|
7
|
+
* (onDemand.tsx), so no first page carries it; until then the words the
|
|
8
|
+
* server said for one record stand in.
|
|
9
|
+
*/
|
|
10
|
+
import { useMemo } from 'react';
|
|
11
|
+
import IntlMessageFormat from 'intl-messageformat';
|
|
12
|
+
/** Built once per message and locale: a selection re-renders on every tick of its box. */
|
|
13
|
+
const kept = new WeakMap();
|
|
14
|
+
function formatter(message, locale) {
|
|
15
|
+
let byLocale = kept.get(message);
|
|
16
|
+
if (!byLocale)
|
|
17
|
+
kept.set(message, (byLocale = new Map()));
|
|
18
|
+
let format = byLocale.get(locale);
|
|
19
|
+
if (!format)
|
|
20
|
+
byLocale.set(locale, (format = new IntlMessageFormat(message, locale)));
|
|
21
|
+
return format;
|
|
22
|
+
}
|
|
23
|
+
export function CountedLabel({ message, count, locale }) {
|
|
24
|
+
const said = useMemo(() => String(formatter(message, locale).format({ count })), [message, locale, count]);
|
|
25
|
+
return _jsx(_Fragment, { children: said });
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type WalkEntry } from './walk.js';
|
|
2
|
+
/**
|
|
3
|
+
* Whether the bar is drawn over this walk. Read from the walk itself, in the same render that draws the room, so a
|
|
4
|
+
* list knows on its first paint whether its title goes in the bar or in its own heading row (crumbSlot.ts): decided
|
|
5
|
+
* any later, the heading moved after the paint and every row under it jumped. A room is deeper than the menu once
|
|
6
|
+
* the walk has a second step, or when it is a record however it was reached (a link straight to one).
|
|
7
|
+
*/
|
|
8
|
+
export declare function crumbBarShown(walked: WalkEntry[]): boolean;
|
|
9
|
+
export declare function Crumbs({ onHome }: {
|
|
10
|
+
onHome: () => void;
|
|
11
|
+
}): import("react").JSX.Element;
|