@mistriwork/kit 1.0.0-rc.10 → 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,13 @@
|
|
|
1
|
+
import type { TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
2
|
+
export interface FormSpec {
|
|
3
|
+
show?: string[];
|
|
4
|
+
defaults?: Record<string, unknown>;
|
|
5
|
+
}
|
|
6
|
+
export declare function NewRowButton({ table }: {
|
|
7
|
+
table: TableMeta;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
export declare function NewRecordButton({ table, label, form }: {
|
|
10
|
+
table: TableMeta | undefined;
|
|
11
|
+
label?: string;
|
|
12
|
+
form?: FormSpec;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The two New buttons.
|
|
4
|
+
*
|
|
5
|
+
* The workbench's "+ New row" behind the same gate every write affordance
|
|
6
|
+
* uses: writable, write mode on, a table. The app list's "New": offered
|
|
7
|
+
* whenever the connection accepts writes, whether or not editing is on — an
|
|
8
|
+
* app's reader does not know the padlock exists, and a primary action that
|
|
9
|
+
* only appears after finding it is not a primary action. Creating a record
|
|
10
|
+
* does not change the editing mode for existing records. Absent on a read-only connection, where the server would
|
|
11
|
+
* refuse the row anyway.
|
|
12
|
+
*/
|
|
13
|
+
import { canInsert, openInsert, openNewRecord } from '../insert.js';
|
|
14
|
+
import { say } from '../copy/forms/components/NewRecordButton.js';
|
|
15
|
+
export function NewRowButton({ table }) {
|
|
16
|
+
if (!canInsert(table))
|
|
17
|
+
return null;
|
|
18
|
+
return (_jsx("button", { type: "button", className: "ghost table-new-row", title: say('addARow', { name: table.name }), onClick: () => openInsert(table), children: say('newRow') }));
|
|
19
|
+
}
|
|
20
|
+
export function NewRecordButton({ table, label, form }) {
|
|
21
|
+
/* The one rule every New entry point follows (insert.js): a table the reader's `create` grant leaves out is
|
|
22
|
+
`insertable: false` in their catalog, and offering its form only to have the server refuse is a dead end. */
|
|
23
|
+
if (!table || !canInsert(table, true))
|
|
24
|
+
return null;
|
|
25
|
+
return (_jsxs("button", { type: "button", className: "ghost table-new-row applist-new", title: say('create', { label: label ?? table.name }), onClick: () => {
|
|
26
|
+
openNewRecord(table, form);
|
|
27
|
+
}, children: [say('plusNew'), " ", _jsx("span", { className: "applist-new-noun", children: label ?? table.name })] }));
|
|
28
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* Imported by features.css: part of the tool's own rules (style.css names the order). */
|
|
2
|
+
@layer base {
|
|
3
|
+
/* The two sentences a place says instead of its content (Notes.tsx). Both
|
|
4
|
+
start on the section's own edge, at body size: an empty place is quieter
|
|
5
|
+
than the section's title, never louder, and a problem is said as plainly
|
|
6
|
+
as a value, with its warn mark and the way to try again beside it. */
|
|
7
|
+
.empty-note { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-3h); align-items: start; margin: 0; padding: var(--space-3h) 0; max-width: 42rem; }
|
|
8
|
+
.empty-note > :not(.empty-note-mark) { grid-column: 2; }
|
|
9
|
+
.empty-note:not(:has(> .empty-note-mark)) { display: block; }
|
|
10
|
+
/* The mark sits on the first line's centre, quiet: a place's state is not a decoration. */
|
|
11
|
+
.empty-note-mark { grid-column: 1; grid-row: 1; margin-top: calc((1.5em - 1em) / 2); font-size: var(--text-lg); color: var(--ink-subtle); }
|
|
12
|
+
.empty-note-detail { display: block; }
|
|
13
|
+
/* A refusal stands where a room's content would: on the room's edge, as the bare note it replaces did. */
|
|
14
|
+
.empty-note.is-refused { padding: var(--space-4h) var(--room-inset, 12px); }
|
|
15
|
+
.empty-note-text { margin: 0; color: var(--ink-muted); font-size: var(--text-md); line-height: 1.5; }
|
|
16
|
+
.empty-note-detail { color: var(--ink-muted); }
|
|
17
|
+
/* An authored title leads in the text ink at the same size: the sentence is what it says, not a heading. */
|
|
18
|
+
.empty-note-title { color: var(--ink); }
|
|
19
|
+
.empty-note-action { margin-top: var(--space-3); }
|
|
20
|
+
/* Empty related lists said once (PageEmptyRun.tsx): their Adds stand under the sentence from its own edge, not at the
|
|
21
|
+
far end of a section bar, and take the touch target on a phone. */
|
|
22
|
+
.page-empty-run .empty-note-action { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); }
|
|
23
|
+
.page-empty-run .page-related-create { justify-content: flex-start; padding-block: 0; }
|
|
24
|
+
@media (pointer: coarse) { .page-empty-run .page-related-create button { min-height: 44px; } }
|
|
25
|
+
|
|
26
|
+
/* A problem is the empty block's shape (mark, sentence, then the one action under it from the sentence's edge), so an
|
|
27
|
+
empty place and a broken one read alike. Try again beside the sentence stood a control's height against a line's,
|
|
28
|
+
its label off the sentence's baseline. */
|
|
29
|
+
.problem { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-3h); align-items: start; margin: 0; padding: var(--space-3h) 0; max-width: 46rem; font-size: var(--text-md); line-height: 1.5; color: var(--ink); }
|
|
30
|
+
.problem > :not(.problem-mark) { grid-column: 2; }
|
|
31
|
+
/* The mark sits on the sentence's first line, in the warning ink, never the danger red: nothing was lost. */
|
|
32
|
+
.problem-mark { grid-column: 1; grid-row: 1; margin-top: calc((1.5em - 1em) / 2); color: var(--status-warning); font-size: var(--text-lg); }
|
|
33
|
+
.problem-text { margin: 0; min-width: 0; overflow-wrap: anywhere; }
|
|
34
|
+
.problem-retry { justify-self: start; margin-top: var(--space-3); }
|
|
35
|
+
.problem-repeat { display: block; color: var(--ink-muted); }
|
|
36
|
+
/* A card of a stat strip that could not be drawn keeps the card's place. */
|
|
37
|
+
.home-card.home-card-broken { cursor: default; }
|
|
38
|
+
.home-card-broken .problem { padding: 0; font-size: var(--text-base); }
|
|
39
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two sentences a part of a screen says instead of its content: that
|
|
3
|
+
* there is nothing here yet (`Empty`), and that it could not be shown
|
|
4
|
+
* (`Problem`). Every section, list, lane and dashboard card says them this
|
|
5
|
+
* way, so an empty place and a broken one read the same wherever they are.
|
|
6
|
+
*
|
|
7
|
+
* Both sit on the section's own edge at body size. An empty place is a
|
|
8
|
+
* plain sentence with, at most, the one thing to do next; it is not a
|
|
9
|
+
* heading louder than the section it is in. A problem is a warn mark, the
|
|
10
|
+
* reader's sentence and Try again — never a dead end that only a reload
|
|
11
|
+
* gets out of. Offline is said as offline, because it is the one cause the
|
|
12
|
+
* reader can see and fix.
|
|
13
|
+
*
|
|
14
|
+
* A page that fails one way fails in several places at once — each of a
|
|
15
|
+
* record's sections asks for the same row — and five copies of one sentence
|
|
16
|
+
* read as five problems. Inside a `ProblemScope` the first place to say a
|
|
17
|
+
* sentence says it in full; the rest say only that they are not loaded, for
|
|
18
|
+
* that reason. Try again asks every failed question on the screen again,
|
|
19
|
+
* not only its own, so the one full note can speak for all of them.
|
|
20
|
+
*/
|
|
21
|
+
import { type ReactNode } from 'react';
|
|
22
|
+
/** A fresh scope for one screen; a scope outlives none of its places. */
|
|
23
|
+
export declare function ProblemScopeProvider({ children }: {
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
}): import("react").JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* A part of the screen that could not be shown. `retry` is for what is not
|
|
28
|
+
* a question — a boundary putting its section back; the failed questions
|
|
29
|
+
* on the screen are asked again either way. `crashed` marks a part that
|
|
30
|
+
* threw while drawing (`data-section-error`): a bug, not a refusal, and the
|
|
31
|
+
* browser suites fail on it, since a caught error raises no page error.
|
|
32
|
+
*/
|
|
33
|
+
export declare function Problem({ text, retry, crashed }: {
|
|
34
|
+
text: string;
|
|
35
|
+
retry?: () => void;
|
|
36
|
+
crashed?: boolean;
|
|
37
|
+
}): import("react").JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* A place with nothing in it yet: one sentence at body size, a second one
|
|
40
|
+
* that says what belongs here when there is one, and the way to add it.
|
|
41
|
+
*/
|
|
42
|
+
export declare function Empty({ text, detail, action, className, mark, }: {
|
|
43
|
+
text: ReactNode;
|
|
44
|
+
detail?: ReactNode;
|
|
45
|
+
action?: ReactNode;
|
|
46
|
+
className?: string;
|
|
47
|
+
/** The block's mark; none where the place is too small to carry one. */
|
|
48
|
+
mark?: 'tray' | null;
|
|
49
|
+
}): import("react").JSX.Element;
|
|
50
|
+
/**
|
|
51
|
+
* A place the reader may not see: the same block under a lock, said as a status. What it says is the view's own
|
|
52
|
+
* title and the noun it is (a page, a form, a record, a list), never a bare line.
|
|
53
|
+
*/
|
|
54
|
+
export declare function Refused({ text, detail, action, className, }: {
|
|
55
|
+
text: ReactNode;
|
|
56
|
+
detail?: ReactNode;
|
|
57
|
+
action?: ReactNode;
|
|
58
|
+
className?: string;
|
|
59
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The two sentences a part of a screen says instead of its content: that
|
|
4
|
+
* there is nothing here yet (`Empty`), and that it could not be shown
|
|
5
|
+
* (`Problem`). Every section, list, lane and dashboard card says them this
|
|
6
|
+
* way, so an empty place and a broken one read the same wherever they are.
|
|
7
|
+
*
|
|
8
|
+
* Both sit on the section's own edge at body size. An empty place is a
|
|
9
|
+
* plain sentence with, at most, the one thing to do next; it is not a
|
|
10
|
+
* heading louder than the section it is in. A problem is a warn mark, the
|
|
11
|
+
* reader's sentence and Try again — never a dead end that only a reload
|
|
12
|
+
* gets out of. Offline is said as offline, because it is the one cause the
|
|
13
|
+
* reader can see and fix.
|
|
14
|
+
*
|
|
15
|
+
* A page that fails one way fails in several places at once — each of a
|
|
16
|
+
* record's sections asks for the same row — and five copies of one sentence
|
|
17
|
+
* read as five problems. Inside a `ProblemScope` the first place to say a
|
|
18
|
+
* sentence says it in full; the rest say only that they are not loaded, for
|
|
19
|
+
* that reason. Try again asks every failed question on the screen again,
|
|
20
|
+
* not only its own, so the one full note can speak for all of them.
|
|
21
|
+
*/
|
|
22
|
+
import { createContext, useContext, useEffect, useId, useState, useSyncExternalStore } from 'react';
|
|
23
|
+
import { QueryClientContext } from '@tanstack/react-query';
|
|
24
|
+
import { message } from '../messages.js';
|
|
25
|
+
import { Button } from '@mistriwork/ui/Button.js';
|
|
26
|
+
import { Icon } from './Icon.js';
|
|
27
|
+
import { useMessageLanguage } from './useMessageLanguage.js';
|
|
28
|
+
import { addHostListener, removeHostListener } from '../shellHost.js';
|
|
29
|
+
/** Which place first said each sentence, for the places that follow it. */
|
|
30
|
+
const ProblemScope = createContext(null);
|
|
31
|
+
/** A fresh scope for one screen; a scope outlives none of its places. */
|
|
32
|
+
export function ProblemScopeProvider({ children }) {
|
|
33
|
+
const [owners] = useState(() => new Map());
|
|
34
|
+
return _jsx(ProblemScope.Provider, { value: owners, children: children });
|
|
35
|
+
}
|
|
36
|
+
function subscribeOnline(listener) {
|
|
37
|
+
addHostListener(window, 'online', listener);
|
|
38
|
+
addHostListener(window, 'offline', listener);
|
|
39
|
+
return () => {
|
|
40
|
+
removeHostListener(window, 'online', listener);
|
|
41
|
+
removeHostListener(window, 'offline', listener);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
const online = () => typeof navigator === 'undefined' || navigator.onLine !== false;
|
|
45
|
+
/**
|
|
46
|
+
* A part of the screen that could not be shown. `retry` is for what is not
|
|
47
|
+
* a question — a boundary putting its section back; the failed questions
|
|
48
|
+
* on the screen are asked again either way. `crashed` marks a part that
|
|
49
|
+
* threw while drawing (`data-section-error`): a bug, not a refusal, and the
|
|
50
|
+
* browser suites fail on it, since a caught error raises no page error.
|
|
51
|
+
*/
|
|
52
|
+
export function Problem({ text, retry, crashed = false }) {
|
|
53
|
+
useMessageLanguage();
|
|
54
|
+
const isOnline = useSyncExternalStore(subscribeOnline, online, () => true);
|
|
55
|
+
const client = useContext(QueryClientContext);
|
|
56
|
+
const scope = useContext(ProblemScope);
|
|
57
|
+
const id = useId();
|
|
58
|
+
/* Offline outranks whatever the request said: it is why, and the reader can act on it. */
|
|
59
|
+
const said = !crashed && !isOnline ? message('problem.offline') : text;
|
|
60
|
+
if (scope && !scope.has(said))
|
|
61
|
+
scope.set(said, id);
|
|
62
|
+
const first = !scope || scope.get(said) === id;
|
|
63
|
+
useEffect(() => () => {
|
|
64
|
+
if (scope?.get(said) === id)
|
|
65
|
+
scope.delete(said);
|
|
66
|
+
}, [scope, said, id]);
|
|
67
|
+
if (!first && !crashed)
|
|
68
|
+
return _jsx("p", { className: "problem problem-repeat", children: message('problem.sameAbove') });
|
|
69
|
+
const again = () => {
|
|
70
|
+
retry?.();
|
|
71
|
+
void client?.refetchQueries({ type: 'active', predicate: (query) => query.state.status === 'error' });
|
|
72
|
+
};
|
|
73
|
+
return (_jsxs("div", { className: "problem", role: "alert", ...(crashed ? { 'data-section-error': '' } : {}), children: [_jsx(Icon, { name: "warning", className: "problem-mark" }), _jsx("p", { className: "problem-text", children: said }), _jsx(Button, { size: "compact", className: "problem-retry", onClick: again, children: message('problem.retry') })] }));
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The state block, one shape for three states (`Empty`, `Refused`, and `Problem` above): a mark, one line at body
|
|
77
|
+
* size, an optional muted second line, and at most one compact action. It stands on the section's own edge; a
|
|
78
|
+
* look dresses it through the tokens it already sets (ink, line, the warning ink for a failure).
|
|
79
|
+
*/
|
|
80
|
+
function StateBlock({ mark, text, detail, action, className, role, }) {
|
|
81
|
+
return (_jsxs("div", { className: className, ...(role ? { role } : {}), children: [mark ? _jsx(Icon, { name: mark, className: "empty-note-mark" }) : null, _jsxs("p", { className: "empty-note-text", children: [text, detail ? (_jsxs(_Fragment, { children: [' ', _jsx("span", { className: "empty-note-detail", children: detail })] })) : null] }), action ? _jsx("div", { className: "empty-note-action", children: action }) : null] }));
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* A place with nothing in it yet: one sentence at body size, a second one
|
|
85
|
+
* that says what belongs here when there is one, and the way to add it.
|
|
86
|
+
*/
|
|
87
|
+
export function Empty({ text, detail, action, className = '', mark = 'tray', }) {
|
|
88
|
+
return _jsx(StateBlock, { mark: mark, text: text, detail: detail, action: action, className: `empty-note${className ? ` ${className}` : ''}` });
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* A place the reader may not see: the same block under a lock, said as a status. What it says is the view's own
|
|
92
|
+
* title and the noun it is (a page, a form, a record, a list), never a bare line.
|
|
93
|
+
*/
|
|
94
|
+
export function Refused({ text, detail, action, className = '', }) {
|
|
95
|
+
return (_jsx(StateBlock, { mark: "lock", role: "status", text: text, detail: detail, action: action, className: `empty-note is-refused${className ? ` ${className}` : ''}` }));
|
|
96
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The header's ··· menu — in an App, its settings gear — over Base UI's Menu.
|
|
4
|
+
*
|
|
5
|
+
* The registry behind it is menu.js's: modules add their commands there,
|
|
6
|
+
* the palette lists the same commands, and this draws them when the menu
|
|
7
|
+
* opens — read at open, not at registration, so a detail that describes
|
|
8
|
+
* current state ("credit_limit on customer 4") is the state now, and a
|
|
9
|
+
* `checked` item reflects the toggle as it stands. Base UI owns what a
|
|
10
|
+
* menu owes the keyboard — arrows, Home/End, typeahead, Escape back to the
|
|
11
|
+
* trigger, outside click — and the roles and `aria-expanded` that go with
|
|
12
|
+
* them. The open state is held here so the shell can be told about it.
|
|
13
|
+
*/
|
|
14
|
+
import { useRef, useState, useSyncExternalStore } from 'react';
|
|
15
|
+
import { Menu } from '@base-ui/react/menu';
|
|
16
|
+
import { detailOf, menuItems, menuMode, menuVersion, settingsInAccount, whenMenuChanges } from '../menu.js';
|
|
17
|
+
import { layoutViewport, zoomAnchor } from '@mistriwork/ui/internal/anchor.js';
|
|
18
|
+
import { Icon } from './Icon.js';
|
|
19
|
+
import { say } from '../copy/shell/components/OverflowMenu.js';
|
|
20
|
+
import { popupContainer } from '../shellHost.js';
|
|
21
|
+
import { useMessageLanguage } from './useMessageLanguage.js';
|
|
22
|
+
/** The registry's items, grouped by category, for whichever menu holds them (this one, or the account's). */
|
|
23
|
+
export function MenuRegistryItems() {
|
|
24
|
+
useSyncExternalStore(whenMenuChanges, menuVersion, menuVersion);
|
|
25
|
+
const items = menuItems();
|
|
26
|
+
const groups = new Map();
|
|
27
|
+
for (const item of items) {
|
|
28
|
+
const category = item.category ?? say('tools');
|
|
29
|
+
const entries = groups.get(category) ?? [];
|
|
30
|
+
entries.push(item);
|
|
31
|
+
groups.set(category, entries);
|
|
32
|
+
}
|
|
33
|
+
return (_jsx(_Fragment, { children: [...groups].map(([category, entries]) => (_jsxs(Menu.Group, { children: [!(entries.length === 1 &&
|
|
34
|
+
entries[0].label
|
|
35
|
+
.replace(/[….]+$/, '')
|
|
36
|
+
.trim()
|
|
37
|
+
.toLowerCase() === category.trim().toLowerCase()) && _jsx(Menu.GroupLabel, { className: "more-group-label", children: category }), entries.map((item, i) => {
|
|
38
|
+
const ticks = entries.some((entry) => entry.checked?.() != null);
|
|
39
|
+
const checked = item.checked?.() ?? null;
|
|
40
|
+
const body = (_jsxs(_Fragment, { children: [ticks && (_jsx("span", { className: "more-tick", "aria-hidden": "true", children: checked ? '✓' : '' })), _jsx("span", { className: "more-label", children: item.label }), detailOf(item) ? _jsx("span", { className: "more-detail", children: detailOf(item) }) : null] }));
|
|
41
|
+
return checked === null ? (_jsx(Menu.Item, { className: ticks ? 'more-item' : 'more-item no-tick', onClick: () => item.onSelect(), children: body }, `${item.group ?? ''}|${item.label}|${i}`)) : (_jsx(Menu.CheckboxItem, { className: checked ? 'more-item checked' : 'more-item', checked: checked, closeOnClick: true, onCheckedChange: () => item.onSelect(), children: body }, `${item.group ?? ''}|${item.label}|${i}`));
|
|
42
|
+
})] }, category))) }));
|
|
43
|
+
}
|
|
44
|
+
export function OverflowMenu() {
|
|
45
|
+
const [open, setOpen] = useState(false);
|
|
46
|
+
useSyncExternalStore(whenMenuChanges, menuVersion, menuVersion);
|
|
47
|
+
/* Its label is said again when a visitor's language arrives with the App. */
|
|
48
|
+
useMessageLanguage();
|
|
49
|
+
const trigger = useRef(null);
|
|
50
|
+
/* In an App what the menu holds is the reader's settings — Preferences and the
|
|
51
|
+
dark mode — so it wears the settings mark and
|
|
52
|
+
says "Settings": an unlabelled "···" beside the account menu was a second
|
|
53
|
+
menu nobody could tell from the first. Signed in, the settings are the
|
|
54
|
+
account menu's (SignIn.tsx) and the gear goes: one menu at the bar's end,
|
|
55
|
+
not two side by side. The Workbench's menu is its tools, and keeps "···". */
|
|
56
|
+
const app = menuMode() === 'app';
|
|
57
|
+
if (app && settingsInAccount())
|
|
58
|
+
return null;
|
|
59
|
+
return (_jsxs(Menu.Root, { open: open, onOpenChange: setOpen, children: [_jsx(Menu.Trigger, { render: _jsx("button", { type: "button", id: "more-button", className: app ? 'icon-button more-settings' : 'icon-button', title: app ? say('common.settings') : say('common.more'), "aria-label": app ? say('common.settings') : say('common.more'), ref: trigger }), children: app ? _jsx(Icon, { name: "gear", className: "more-settings-icon" }) : _jsx("span", { "aria-hidden": "true", children: "\u00B7\u00B7\u00B7" }) }), _jsx(Menu.Portal, { container: popupContainer(), children: _jsx(Menu.Positioner, { anchor: () => (trigger.current ? zoomAnchor(trigger.current) : null), positionMethod: "fixed", side: "bottom", align: "end", sideOffset: 6, collisionBoundary: layoutViewport(), collisionPadding: 8, style: { zIndex: 70 }, children: _jsx(Menu.Popup, { className: "more-list", children: _jsx(MenuRegistryItems, {}) }) }) })] }));
|
|
60
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
3
|
+
import type { PendingBarPlacement } from './Editable.js';
|
|
4
|
+
import type { DeleteButtonHost } from './DeleteButton.js';
|
|
5
|
+
import type { RecordSurfaceOwner } from './recordSurface.js';
|
|
6
|
+
import { type PageDef, type PageEntry, type SectionPlan } from './pageModel.js';
|
|
7
|
+
import { type RecordActions } from './pageContext.js';
|
|
8
|
+
/** One explicitly owned, non-route editor (never a second active draft). Keep owner stable through lease
|
|
9
|
+
* renewal and ordinary refresh; replace it on close/reopen or another entry.
|
|
10
|
+
* The host owns navigation and must retain pending/uncertain deletion status
|
|
11
|
+
* synchronously, blocking voluntary close/replacement until reconciled. */
|
|
12
|
+
export interface PageViewHost {
|
|
13
|
+
owner: RecordSurfaceOwner;
|
|
14
|
+
pendingBar: PendingBarPlacement;
|
|
15
|
+
/** undefined is staging/discard, NOT acknowledgement; true is confirmed
|
|
16
|
+
* Save/Undo, false requests refresh. Refresh this surface without remounting
|
|
17
|
+
* its editor or replacing dirty fields. */
|
|
18
|
+
onRecordChange: (opts?: {
|
|
19
|
+
inPlace?: boolean;
|
|
20
|
+
}) => void;
|
|
21
|
+
/** Includes both authored fixed actions and separately granted commands. */
|
|
22
|
+
onActionDone: () => void;
|
|
23
|
+
onDeleted: () => void;
|
|
24
|
+
onDeleteStateChange: DeleteButtonHost['onStateChange'];
|
|
25
|
+
}
|
|
26
|
+
export interface PageProps {
|
|
27
|
+
entry: PageEntry;
|
|
28
|
+
page: PageDef;
|
|
29
|
+
base: TableMeta;
|
|
30
|
+
plans: SectionPlan[];
|
|
31
|
+
/** With no record chosen, the list *is* the chooser, drawn into the body. */
|
|
32
|
+
chooser?: ReactNode;
|
|
33
|
+
/** The other pages this table has, for the title's picker. */
|
|
34
|
+
others: Array<{
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
source: string;
|
|
38
|
+
}>;
|
|
39
|
+
onLabel: (label: string) => void;
|
|
40
|
+
onTab: (tab: string | undefined) => void;
|
|
41
|
+
onLayout: () => void;
|
|
42
|
+
/** Fixed edits and separately granted business commands. */
|
|
43
|
+
actions?: RecordActions;
|
|
44
|
+
/** Authoring preview: no write/navigation leaves, with reads pinned to the editor's connection. */
|
|
45
|
+
preview?: {
|
|
46
|
+
connection: string;
|
|
47
|
+
};
|
|
48
|
+
host?: PageViewHost;
|
|
49
|
+
/** No head: the sections alone, as a free-form page's block places them (RecordPageBody's `only`). */
|
|
50
|
+
bare?: boolean;
|
|
51
|
+
}
|
|
52
|
+
export declare function PageView(props: PageProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A page: one record, and everything around it at once.
|
|
4
|
+
*
|
|
5
|
+
* Sections are Queries started together that land as they arrive, each in
|
|
6
|
+
* its own place: a page with a count over a large child table should not
|
|
7
|
+
* hold up the record's own name. A section with a `when` is shown only
|
|
8
|
+
* while the root satisfies it; a run of metrics is one strip; a run of
|
|
9
|
+
* lists is a tab strip whose tabs are fetched when opened, which is the
|
|
10
|
+
* whole reason six lists as tabs are cheaper than six lists down a page.
|
|
11
|
+
* One bad section is named in place and does not take the page with it.
|
|
12
|
+
*
|
|
13
|
+
* The leaves — a value in its dress, a reference chip, an editable field,
|
|
14
|
+
* the pending bar, Delete, the layout builder — are the vanilla client's
|
|
15
|
+
* still, drawn into place.
|
|
16
|
+
*
|
|
17
|
+
* This module is the page itself: which surface it belongs to, which
|
|
18
|
+
* section names the record, and the related New form a host keeps open
|
|
19
|
+
* across refreshes. The head is PageHead.tsx and the sections' layout
|
|
20
|
+
* PageSections.tsx; each kind draws in its own module (PageFields,
|
|
21
|
+
* PageMetrics, PageTimeline, PageRelated) through one box (PageSectionBox),
|
|
22
|
+
* reading the page around it from pageContext.ts.
|
|
23
|
+
*/
|
|
24
|
+
import { ErrorBoundary } from './ErrorBoundary.js';
|
|
25
|
+
import { ProblemScopeProvider } from './Notes.js';
|
|
26
|
+
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
27
|
+
import { useQueryClient } from '@tanstack/react-query';
|
|
28
|
+
import { columnLabel, registerSurfaceMutationPendingProbe, state } from '../core.js';
|
|
29
|
+
import { refreshRecordInPlace } from '../recordWriteRefresh.js';
|
|
30
|
+
import { openRelatedRecord } from '../insert.js';
|
|
31
|
+
import { onDemand } from './onDemand.js';
|
|
32
|
+
import { RecordGone } from './RecordGone.js';
|
|
33
|
+
import { headerOf, rootLabel } from './pageModel.js';
|
|
34
|
+
import { PageRenderContext, spoken } from './pageContext.js';
|
|
35
|
+
import { shell } from '../shellMode.js';
|
|
36
|
+
import { PageHead } from './PageHead.js';
|
|
37
|
+
import { Sections } from './PageSections.js';
|
|
38
|
+
import { PageLayout } from './PageLayout.js';
|
|
39
|
+
import { drawnLayout, showcaseIndex } from '@mistriwork/engine/shared/pageLayouts.js';
|
|
40
|
+
import { humanName } from '@mistriwork/engine/shared/model.js';
|
|
41
|
+
/* The form and its field library load when a related New first opens. */
|
|
42
|
+
const NewRecordDialog = onDemand(() => import('./NewRecord.js'), 'NewRecordDialog', { quiet: true });
|
|
43
|
+
/* ---------- the page ---------- */
|
|
44
|
+
export function PageView(props) {
|
|
45
|
+
const { entry, page, base, plans, chooser, host } = props;
|
|
46
|
+
const queries = useQueryClient();
|
|
47
|
+
const keyText = JSON.stringify(entry.key);
|
|
48
|
+
const surface = useMemo(() => (host ? { owner: host.owner, pageId: entry.pageId, table: base.id, keyText } : undefined), [host?.owner, entry.pageId, base.id, keyText]);
|
|
49
|
+
const activeSurface = useRef(surface);
|
|
50
|
+
activeSurface.current = surface;
|
|
51
|
+
const activeEntry = useRef(entry);
|
|
52
|
+
activeEntry.current = entry;
|
|
53
|
+
const mounted = useRef(true);
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
mounted.current = true;
|
|
56
|
+
return () => {
|
|
57
|
+
mounted.current = false;
|
|
58
|
+
};
|
|
59
|
+
}, []);
|
|
60
|
+
const isCurrent = useCallback(() => !surface ||
|
|
61
|
+
(mounted.current &&
|
|
62
|
+
activeSurface.current === surface &&
|
|
63
|
+
surface.owner.isCurrent() &&
|
|
64
|
+
activeEntry.current.pageId === surface.pageId &&
|
|
65
|
+
JSON.stringify(activeEntry.current.key) === surface.keyText), [surface]);
|
|
66
|
+
const [related, setRelated] = useState(null);
|
|
67
|
+
const activeRelated = useRef(null);
|
|
68
|
+
const relatedAnchor = useRef(null);
|
|
69
|
+
useLayoutEffect(() => {
|
|
70
|
+
if (!surface)
|
|
71
|
+
return;
|
|
72
|
+
return registerSurfaceMutationPendingProbe(() => isCurrent() && activeRelated.current?.surface === surface && activeRelated.current.unresolved);
|
|
73
|
+
}, [surface, isCurrent]);
|
|
74
|
+
const openRelated = (table, form, onAdded) => {
|
|
75
|
+
if (!surface || !isCurrent() || !relatedAnchor.current || activeRelated.current?.surface === surface)
|
|
76
|
+
return;
|
|
77
|
+
const child = {
|
|
78
|
+
surface,
|
|
79
|
+
unresolved: false,
|
|
80
|
+
changed: (value) => {
|
|
81
|
+
if (isCurrent() && activeRelated.current === child)
|
|
82
|
+
child.unresolved = value;
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
activeRelated.current = child;
|
|
86
|
+
const current = () => isCurrent() && activeRelated.current === child;
|
|
87
|
+
openRelatedRecord(table, form, onAdded, {
|
|
88
|
+
host: relatedAnchor.current,
|
|
89
|
+
isCurrent: current,
|
|
90
|
+
close: () => {
|
|
91
|
+
if (current()) {
|
|
92
|
+
activeRelated.current = null;
|
|
93
|
+
setRelated(null);
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
render: (props) => {
|
|
97
|
+
if (current()) {
|
|
98
|
+
child.props = props;
|
|
99
|
+
setRelated(child);
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
if (!child.props && activeRelated.current === child)
|
|
104
|
+
activeRelated.current = null;
|
|
105
|
+
};
|
|
106
|
+
const onLabel = (label) => {
|
|
107
|
+
if (isCurrent())
|
|
108
|
+
props.onLabel(label);
|
|
109
|
+
};
|
|
110
|
+
const onTab = (tab) => {
|
|
111
|
+
if (isCurrent())
|
|
112
|
+
props.onTab(tab);
|
|
113
|
+
};
|
|
114
|
+
const hasAside = page.sections.some((section) => section.region === 'aside' && !section.hidden);
|
|
115
|
+
/* An aside that says something of the record's surroundings — an offer, a reference's card, the one current row —
|
|
116
|
+
is woven into the main column where the columns stack (page.css). Said from the page, as the archetype is, rather
|
|
117
|
+
than asked of the drawn sections with :has(), which restyled the whole page each time an element came or went
|
|
118
|
+
in it (test/built-client-vitals.mjs). */
|
|
119
|
+
const leads = page.sections.some((section) => section.region === 'aside' && !section.hidden && (section.presentation === 'headline' || section.presentation === 'card'));
|
|
120
|
+
const [labelOwner, setLabelOwner] = useState(undefined);
|
|
121
|
+
const [titleEditor, setTitleEditor] = useState(null);
|
|
122
|
+
const onTitleEditor = useCallback((index, render) => {
|
|
123
|
+
setTitleEditor((current) => (render ? { index, render } : current?.index === index ? null : current));
|
|
124
|
+
}, []);
|
|
125
|
+
/* A record header names the record first: it is the head. */
|
|
126
|
+
const header = useMemo(() => headerOf(page), [page]);
|
|
127
|
+
/* A verb a related list draws in its own head (`actions`) is that list's, not the record's head's — unless the
|
|
128
|
+
record's header names it too. */
|
|
129
|
+
const headActions = useMemo(() => {
|
|
130
|
+
const placed = new Set(page.sections.flatMap((section) => section.listActions ?? []));
|
|
131
|
+
for (const id of header?.section.headerActions ?? [])
|
|
132
|
+
placed.delete(id);
|
|
133
|
+
const all = props.actions;
|
|
134
|
+
return all && placed.size ? { ...all, list: all.list.filter((action) => !placed.has(action.id)) } : all;
|
|
135
|
+
}, [page, header, props.actions]);
|
|
136
|
+
const labelOrder = useMemo(() => {
|
|
137
|
+
const fields = page.sections
|
|
138
|
+
.map((section, index) => ({ section, index }))
|
|
139
|
+
.filter(({ section }) => section.kind === 'fields' && !section.hidden);
|
|
140
|
+
const heads = fields.filter(({ section }) => section.presentation === 'header');
|
|
141
|
+
const rest = fields.filter(({ section }) => section.presentation !== 'header');
|
|
142
|
+
return [
|
|
143
|
+
...heads,
|
|
144
|
+
...rest.filter(({ section }) => section.region !== 'aside'),
|
|
145
|
+
...rest.filter(({ section }) => section.region === 'aside'),
|
|
146
|
+
];
|
|
147
|
+
}, [page]);
|
|
148
|
+
const titleOwner = hasAside ? labelOwner : labelOrder[0]?.index;
|
|
149
|
+
// Keyed on what identifies the record and its page, not on object identity:
|
|
150
|
+
// a host that rebuilds its props per render must not restart label ownership.
|
|
151
|
+
const labels = useMemo(() => ({ values: new Map(), published: undefined }), [page.id, keyText]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
152
|
+
const activeLabels = useRef(labels);
|
|
153
|
+
activeLabels.current = labels;
|
|
154
|
+
const publishLabel = useRef(onLabel);
|
|
155
|
+
publishLabel.current = onLabel;
|
|
156
|
+
const onSectionLabel = useCallback((index, label) => {
|
|
157
|
+
// Cleanup from an old page must not publish into its replacement.
|
|
158
|
+
if (activeLabels.current !== labels || !isCurrent())
|
|
159
|
+
return;
|
|
160
|
+
if (label === undefined)
|
|
161
|
+
labels.values.delete(index);
|
|
162
|
+
else
|
|
163
|
+
labels.values.set(index, label);
|
|
164
|
+
// A gated or slow main section must not prevent an already-loaded section
|
|
165
|
+
// from naming the record; an aside can never supersede a loaded main label.
|
|
166
|
+
const owner = labelOrder.find((item) => labels.values.has(item.index));
|
|
167
|
+
setLabelOwner(owner?.index);
|
|
168
|
+
const chosen = owner && labels.values.get(owner.index);
|
|
169
|
+
if (chosen !== undefined && chosen !== labels.published) {
|
|
170
|
+
labels.published = chosen;
|
|
171
|
+
publishLabel.current(chosen);
|
|
172
|
+
}
|
|
173
|
+
}, [labels, labelOrder, isCurrent]);
|
|
174
|
+
/* A write that landed in place needs no repaint — the bar reads the
|
|
175
|
+
store and the fields confirm themselves; one that asked for it gets one. */
|
|
176
|
+
const refreshInPlace = () => {
|
|
177
|
+
if (!entry.key)
|
|
178
|
+
return;
|
|
179
|
+
refreshRecordInPlace(queries, { connection: state.activeConnection ?? '', table: base.id, key: entry.key, queryScope: props.actions?.queryScope }, true);
|
|
180
|
+
};
|
|
181
|
+
/* What the shell draws at the record's own fields (a suggestion waiting on one): asked by every record page, routed
|
|
182
|
+
or in a dialog, never by a preview. The slot is the shell's for its whole life, so the hook's place is fixed. A
|
|
183
|
+
suggestion that landed wrote to the record, so it is read again as any write asks. */
|
|
184
|
+
const landed = useRef(() => { });
|
|
185
|
+
const adornment = shell().slots.useFieldAdornment?.(host?.owner.connection ?? state.activeConnection ?? '', base.id, props.preview ? undefined : entry.key, () => landed.current());
|
|
186
|
+
const onPending = (opts) => {
|
|
187
|
+
if (host) {
|
|
188
|
+
if (isCurrent())
|
|
189
|
+
host.onRecordChange(opts);
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
/* Re-read in place, never by replacing the walk entry: that started the
|
|
193
|
+
room over and blanked the record until every read had answered again
|
|
194
|
+
(recordWriteRefresh.ts, refreshRecordInPlace). */
|
|
195
|
+
if (opts && opts.inPlace === false)
|
|
196
|
+
refreshInPlace();
|
|
197
|
+
else if (opts?.inPlace && page.sections.some((section) => section.workflow))
|
|
198
|
+
void queries.invalidateQueries({ queryKey: ['page-fields', page.id, base.id, entry.key] });
|
|
199
|
+
};
|
|
200
|
+
/* A record that is gone — deleted under an open page, or a link to one
|
|
201
|
+
that never was — fails every section at once. It is said once, in the
|
|
202
|
+
words the room uses for a missing record (PageRoom.tsx), and the head
|
|
203
|
+
offers no verbs for it: each section repeating a 404 beside Start work
|
|
204
|
+
and Mark done was a page still open for business. */
|
|
205
|
+
landed.current = () => onPending({ inPlace: false });
|
|
206
|
+
const [goneKey, setGone] = useState(null);
|
|
207
|
+
const gone = goneKey === keyText;
|
|
208
|
+
const onGone = useCallback(() => setGone(keyText), [keyText]);
|
|
209
|
+
if (host && !isCurrent())
|
|
210
|
+
return null;
|
|
211
|
+
/* The archetype (shared/pageLayouts.ts) is on the page the payload carries, so its columns are drawn on the first
|
|
212
|
+
render, before any section has answered. */
|
|
213
|
+
const layout = drawnLayout(page);
|
|
214
|
+
const showcase = showcaseIndex(page);
|
|
215
|
+
const sectionsOf = (region, only) => entry.key ? (_jsx(Sections, { page: page, base: base, recordKey: entry.key, plans: plans, entry: entry, onLabel: onLabel, onEdit: onPending, onTab: onTab, region: region, onSectionLabel: onSectionLabel, titleOwner: titleOwner, onTitleEditor: onTitleEditor, only: only })) : null;
|
|
216
|
+
/* A showcase's panel is named by what it offers, "Home: Asking rent", where a record's aside is its context. */
|
|
217
|
+
const offer = layout === 'showcase' ? page.sections.find((section) => section.region === 'aside' && section.presentation === 'headline') : undefined;
|
|
218
|
+
const figure = offer?.paths?.[0];
|
|
219
|
+
const panel = layout === 'showcase'
|
|
220
|
+
? {
|
|
221
|
+
noun: page.name,
|
|
222
|
+
figure: figure ? (columnLabel(base.id, figure) ?? humanName(figure.split('.').pop() ?? figure)) : undefined,
|
|
223
|
+
}
|
|
224
|
+
: undefined;
|
|
225
|
+
return (_jsx(PageRenderContext.Provider, { value: {
|
|
226
|
+
...(adornment?.adorn && !props.preview ? { adorn: adornment.adorn } : {}),
|
|
227
|
+
...(adornment?.held.length && !props.preview ? { adornHeld: adornment.held } : {}),
|
|
228
|
+
preview: Boolean(props.preview),
|
|
229
|
+
connection: props.preview?.connection ?? host?.owner.connection,
|
|
230
|
+
isCurrent: host ? isCurrent : undefined,
|
|
231
|
+
openRelated: host ? openRelated : undefined,
|
|
232
|
+
actions: props.preview || gone ? undefined : props.actions,
|
|
233
|
+
onGone,
|
|
234
|
+
recordName: entry.label,
|
|
235
|
+
...(host ? { onActionDone: host.onActionDone } : {}),
|
|
236
|
+
}, children: _jsxs(ProblemScopeProvider, { children: [props.preview ? (_jsxs("div", { className: "page-head", children: [_jsx("h2", { className: "page-title", children: page.name }), _jsx("div", { className: "root-bar", children: _jsx("h1", { className: "root-current", children: entry.label ?? (entry.key ? rootLabel(entry.key) : '') }) })] })) : props.bare ? null : (_jsx(ErrorBoundary, { children: _jsx(PageHead, { ...props, actions: gone ? undefined : headActions, gone: gone, onPending: onPending, title: titleEditor && titleEditor.index === titleOwner ? titleEditor.render : undefined, header: header, onSectionLabel: onSectionLabel, onTitleEditor: onTitleEditor, titleOwner: titleOwner }) })), gone && entry.key ? (_jsx(PageLayout, { children: _jsx(RecordGone, { base: base, spoken: spoken(base.name), className: "page-gone" }) })) : entry.key ? (showcase !== undefined ? (_jsx(PageLayout, { layout: layout, panel: panel, aside: hasAside ? sectionsOf('aside') : undefined, below: sectionsOf(hasAside ? 'main' : undefined, (index) => index !== showcase), children: sectionsOf(hasAside ? 'main' : undefined, (index) => index === showcase) })) : (_jsx(PageLayout, { layout: layout, leads: leads, aside: hasAside ? sectionsOf('aside') : undefined, children: sectionsOf(hasAside ? 'main' : undefined) }))) : (_jsx(PageLayout, { children: chooser })), host && _jsx("span", { hidden: true, ref: relatedAnchor }), related?.props && related.surface === surface && (_jsx(NewRecordDialog, { ...related.props, retainUncertain: true, onUnresolvedChange: related.changed }))] }) }));
|
|
237
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A current card (`current(title, from, whose, { query, sort })`, a related
|
|
3
|
+
* list with presentation 'card'): the one row the query and the sort choose —
|
|
4
|
+
* the active lease of a unit, the latest visit — as the record-card a
|
|
5
|
+
* reference draws (PageFields.tsx), captioned by the section's title. The
|
|
6
|
+
* row's name is its title and opens it — said without the page record's own
|
|
7
|
+
* name, as a child list says it ("Telehealth", not "Noah Fischer ·
|
|
8
|
+
* telehealth" on Noah's page); the columns its `show` names are the facts,
|
|
9
|
+
* in that order, each dressed by its display rule, and nothing else the read
|
|
10
|
+
* carried to name or open the row; "View lease" says so again at the foot.
|
|
11
|
+
* With no such row the card says what that means, in the author's words
|
|
12
|
+
* where there are some.
|
|
13
|
+
*/
|
|
14
|
+
import type { ReactNode } from 'react';
|
|
15
|
+
import { type TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
16
|
+
export declare function CurrentCard({ table, caption, row, columns, show, labels, referenceLabels, record, title, noun, empty, }: {
|
|
17
|
+
table: TableMeta;
|
|
18
|
+
/** The section's title: what the card is ("Current lease"). */
|
|
19
|
+
caption?: string;
|
|
20
|
+
row: Record<string, unknown> | undefined;
|
|
21
|
+
/** The row's shown columns, the list's private projection already left out. */
|
|
22
|
+
columns: string[];
|
|
23
|
+
/** The section's `show`: the facts, in its order. Without one, every shown column but the name and the key. */
|
|
24
|
+
show?: readonly string[];
|
|
25
|
+
labels?: Record<string, string>;
|
|
26
|
+
/** Column → the joined column naming the record it references. */
|
|
27
|
+
referenceLabels?: Record<string, string>;
|
|
28
|
+
record: {
|
|
29
|
+
key: Record<string, unknown> | null;
|
|
30
|
+
label: string;
|
|
31
|
+
} | undefined;
|
|
32
|
+
/** The name the card is titled by, where it says less than the record's own (its parent's name left out);
|
|
33
|
+
null where it is the page's own name, which the heading already says. */
|
|
34
|
+
title?: string | null;
|
|
35
|
+
/** What one row is called, for the foot's "View …". */
|
|
36
|
+
noun: string;
|
|
37
|
+
empty: ReactNode;
|
|
38
|
+
}): import("react").JSX.Element;
|