@mistriwork/kit 1.0.0-rc.11 → 1.0.0-rc.13
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 +29 -0
- package/dist/client/components/FieldArranger.js +83 -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 +14 -0
- package/dist/client/connectionList.js +149 -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 +327 -0
- package/dist/client/core.js +1082 -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 +19 -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 +38 -0
- package/dist/client/palette.js +360 -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 +27 -0
- package/dist/client/savedPages.js +135 -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 +103 -0
- package/dist/client/write.js +885 -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 +136 -3
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A page's flows section: the record's row-driven flow runs,
|
|
4
|
+
* newest first — each run's state, what it waits for, the problem a failed
|
|
5
|
+
* one stopped on, and its steps — and a button for each manual flow this
|
|
6
|
+
* reader may start. The server answers for this reader (server/recordFlows.ts):
|
|
7
|
+
* a record they cannot read has no runs for them, and a flow or step they
|
|
8
|
+
* cannot read is named by its number. This module only says what it was handed.
|
|
9
|
+
*
|
|
10
|
+
* `running: false` says the server has no `--jobs` host: the runs below
|
|
11
|
+
* would never move, so the section says how to get one rather than an
|
|
12
|
+
* empty list that reads as "nothing happened".
|
|
13
|
+
*
|
|
14
|
+
* The page hands it its reads and its frame (PageSections.tsx), as it does
|
|
15
|
+
* the history, so this module does not join the page's import cycle.
|
|
16
|
+
*/
|
|
17
|
+
import { useState } from 'react';
|
|
18
|
+
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
|
19
|
+
import { formatDateTime } from '../locale.js';
|
|
20
|
+
import { Empty } from './Notes.js';
|
|
21
|
+
import { DropItem, DropMenu } from '@mistriwork/ui/DropMenu.js';
|
|
22
|
+
import { say } from '../copy/record/components/PageFlows.js';
|
|
23
|
+
import './PageFlows.css';
|
|
24
|
+
/** A run's state in a word; a state this build does not know is said as the server named it. */
|
|
25
|
+
function sayState(state) {
|
|
26
|
+
switch (state) {
|
|
27
|
+
case 'running':
|
|
28
|
+
return say('running');
|
|
29
|
+
case 'waiting':
|
|
30
|
+
return say('waiting');
|
|
31
|
+
case 'completed':
|
|
32
|
+
return say('completed');
|
|
33
|
+
case 'failed':
|
|
34
|
+
return say('failed');
|
|
35
|
+
case 'cancelled':
|
|
36
|
+
return say('cancelled');
|
|
37
|
+
case 'diverged':
|
|
38
|
+
return say('diverged');
|
|
39
|
+
default:
|
|
40
|
+
return state.charAt(0).toUpperCase() + state.slice(1);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const sayStatus = (status) => (status === 'completed' ? say('stepDone') : status);
|
|
44
|
+
function moment(iso) {
|
|
45
|
+
const when = new Date(iso);
|
|
46
|
+
return Number.isNaN(when.getTime()) ? iso : formatDateTime(when);
|
|
47
|
+
}
|
|
48
|
+
/** The record's flow runs, with a Start for each manual flow the reader may begin. */
|
|
49
|
+
export function RecordFlows({ base, recordKey, api, preview, frame, loading }) {
|
|
50
|
+
const client = useQueryClient();
|
|
51
|
+
const queryKey = ['page-flows', base.id, recordKey];
|
|
52
|
+
const flows = useQuery({
|
|
53
|
+
queryKey,
|
|
54
|
+
queryFn: async () => (await api('/api/record-flows', { table: base.id, key: recordKey })),
|
|
55
|
+
enabled: !preview,
|
|
56
|
+
staleTime: 0,
|
|
57
|
+
});
|
|
58
|
+
const [refusal, setRefusal] = useState();
|
|
59
|
+
const start = useMutation({
|
|
60
|
+
mutationFn: async (flow) => {
|
|
61
|
+
setRefusal(undefined);
|
|
62
|
+
try {
|
|
63
|
+
await api('/api/record-flows/start', { table: base.id, key: recordKey, flow: flow.id });
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
setRefusal(say('couldNotStart', { name: flow.name, reason: error.message }));
|
|
67
|
+
throw error;
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
// The run appears a moment after the start: ask again once it is accepted.
|
|
71
|
+
onSuccess: () => client.invalidateQueries({ queryKey }),
|
|
72
|
+
});
|
|
73
|
+
if (preview)
|
|
74
|
+
return frame(_jsx(Empty, { text: say('flowsOnThisRecord') }));
|
|
75
|
+
if (flows.isPending)
|
|
76
|
+
return loading;
|
|
77
|
+
if (flows.isError)
|
|
78
|
+
return frame(null, flows.error.message);
|
|
79
|
+
const { running, runs, manual } = flows.data;
|
|
80
|
+
const pending = start.isPending ? start.variables?.id : undefined;
|
|
81
|
+
return frame(_jsxs("div", { className: "flows", children: [!running && _jsx("p", { className: "flows-note", children: say('notRunning') }), running && !runs.length && _jsx("p", { className: "flows-note", children: say('noRuns') }), runs.length > 0 && (_jsx("ol", { className: "flows-runs", children: runs.map((run, i) => (_jsx(FlowRunItem, { run: run, open: i === 0 }, run.id))) })), manual.length > 0 && (_jsxs("div", { className: "flows-start", children: [manual.length > 2 ? (_jsx(DropMenu, { className: "page-actions-menu", triggerClassName: "ghost page-action", label: start.isPending ? say('starting') : say('startAFlow'), popupClassName: "page-actions-popup", align: "start", children: manual.map((flow) => (_jsx(DropItem, { className: "page-actions-item", disabled: start.isPending, onClick: () => start.mutate(flow), children: say('start', { name: flow.name }) }, flow.id))) })) : (manual.map((flow) => (_jsx("button", { type: "button", className: "ghost page-action", disabled: start.isPending, onClick: () => start.mutate(flow), children: pending === flow.id ? say('starting') : say('start', { name: flow.name }) }, flow.id)))), refusal && (_jsx("p", { className: "flows-problem", role: "alert", children: refusal }))] }))] }));
|
|
82
|
+
}
|
|
83
|
+
function FlowRunItem({ run, open }) {
|
|
84
|
+
const waiting = run.state === 'waiting'
|
|
85
|
+
? run.waitingFor
|
|
86
|
+
? say('waitingFor', { what: run.waitingFor })
|
|
87
|
+
: run.wakeAt
|
|
88
|
+
? say('until', { when: moment(run.wakeAt) })
|
|
89
|
+
: null
|
|
90
|
+
: null;
|
|
91
|
+
return (_jsx("li", { className: "flows-run", children: _jsxs("details", { open: open, children: [_jsxs("summary", { className: "flows-head", children: [_jsx("span", { className: "flows-name", children: run.name }), _jsx("span", { className: `flows-state flows-state-${run.state}`, children: sayState(run.state) }), _jsx("time", { className: "flows-when", dateTime: run.startedAt, title: run.startedAt, children: say('started', { when: moment(run.startedAt) }) })] }), waiting && _jsx("p", { className: "flows-wait", children: waiting }), run.problem && (_jsx("p", { className: "flows-problem", role: "alert", children: run.problem })), run.steps.length > 0 && (_jsx("ol", { className: "flows-steps", "aria-label": say('steps'), children: run.steps.map((step, i) => (_jsxs("li", { className: "flows-step", children: [_jsx("span", { className: "flows-step-label", children: step.label }), _jsx("span", { className: `flows-step-status flows-step-${step.status}`, children: sayStatus(step.status) })] }, `${step.at}-${i}`))) }))] }) }));
|
|
92
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A related list read as groups: a header for each record its rows share (an estimate, over its financing options),
|
|
3
|
+
* that group's rows under it, and a page of groups at a time. The groups are one breakdown of the same rows; each
|
|
4
|
+
* group's rows are one list read narrowed to its key, asked once the groups are in. The header's facts are columns of
|
|
5
|
+
* the grouped record read through the rows (`estimate_id.total`), so a header costs no read of its own, and the
|
|
6
|
+
* parent's name comes with the groups (the breakdown names a reference's keys).
|
|
7
|
+
*
|
|
8
|
+
* Where the list says how (`moves`, groupMoves.tsx), a row is dragged into another group, or to its place in a
|
|
9
|
+
* ranked one, and Alt and ↑/↓ do the same from the keyboard; the move is drawn at once and read back once.
|
|
10
|
+
*
|
|
11
|
+
* Nothing here moves a page that is already drawn: a page of groups turned, or a group opened, keeps what stood until
|
|
12
|
+
* the answer is in (`keepPreviousData`), and a group's rows hold their height as one place.
|
|
13
|
+
*/
|
|
14
|
+
import { type ReactNode } from 'react';
|
|
15
|
+
import type { ResourceClientReply } from '@mistriwork/engine/shared/resourceHttp.js';
|
|
16
|
+
import type { HttpViewDefinition } from '@mistriwork/engine/shared/resourceHttp.js';
|
|
17
|
+
import type { GridData } from './Grid.js';
|
|
18
|
+
import { type SlotProps } from './pageContext.js';
|
|
19
|
+
import { type GroupMoves } from './groupMoves.js';
|
|
20
|
+
/** The groups as the breakdown route answers them, without the failure it may answer instead. */
|
|
21
|
+
export type Groups = Exclude<ResourceClientReply<'/api/breakdown'>, {
|
|
22
|
+
errors: unknown;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function GroupedBody({ section, groups, offset, perPage, onOffset, view, labelColumns, rowsPerGroup, grid, overall, moves, }: {
|
|
25
|
+
section: SlotProps['section'];
|
|
26
|
+
groups: Groups;
|
|
27
|
+
offset: number;
|
|
28
|
+
perPage: number;
|
|
29
|
+
onOffset: (offset: number) => void;
|
|
30
|
+
/** The list's own planned view, labels and keys added (PageRelated's `presentation`). */
|
|
31
|
+
view: HttpViewDefinition;
|
|
32
|
+
labelColumns: Record<string, string>;
|
|
33
|
+
rowsPerGroup: number;
|
|
34
|
+
/** One group's rows as the list draws its table: with the subtotal row and the words under it, when there are some. */
|
|
35
|
+
grid: (data: GridData, totals?: Record<string, unknown>, totalsLabel?: string) => ReactNode;
|
|
36
|
+
/** Every row's sums, for the foot of the whole list: the words, and each column's figure. */
|
|
37
|
+
overall?: {
|
|
38
|
+
label: string;
|
|
39
|
+
sums: Record<string, unknown>;
|
|
40
|
+
};
|
|
41
|
+
/** How a row moves to another group or its place in one; absent, the rows stay where they are. */
|
|
42
|
+
moves?: GroupMoves;
|
|
43
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A related list read as groups: a header for each record its rows share (an estimate, over its financing options),
|
|
4
|
+
* that group's rows under it, and a page of groups at a time. The groups are one breakdown of the same rows; each
|
|
5
|
+
* group's rows are one list read narrowed to its key, asked once the groups are in. The header's facts are columns of
|
|
6
|
+
* the grouped record read through the rows (`estimate_id.total`), so a header costs no read of its own, and the
|
|
7
|
+
* parent's name comes with the groups (the breakdown names a reference's keys).
|
|
8
|
+
*
|
|
9
|
+
* Where the list says how (`moves`, groupMoves.tsx), a row is dragged into another group, or to its place in a
|
|
10
|
+
* ranked one, and Alt and ↑/↓ do the same from the keyboard; the move is drawn at once and read back once.
|
|
11
|
+
*
|
|
12
|
+
* Nothing here moves a page that is already drawn: a page of groups turned, or a group opened, keeps what stood until
|
|
13
|
+
* the answer is in (`keepPreviousData`), and a group's rows hold their height as one place.
|
|
14
|
+
*/
|
|
15
|
+
import { Fragment, useId, useState } from 'react';
|
|
16
|
+
import { keepPreviousData, useQueries } from '@tanstack/react-query';
|
|
17
|
+
import { columnDisplay, columnLabel, findTable, openRecord, state } from '../core.js';
|
|
18
|
+
import { humanName } from '@mistriwork/engine/shared/model.js';
|
|
19
|
+
import { formatNumber } from '../locale.js';
|
|
20
|
+
import { GROUP_ROWS_MOST } from '@mistriwork/engine/shared/pageModel.js';
|
|
21
|
+
import { primaryKey } from '@mistriwork/engine/shared/schema.js';
|
|
22
|
+
import { groupFactPaths, groupTable } from '@mistriwork/engine/shared/pagePaths.js';
|
|
23
|
+
import { Icon } from './Icon.js';
|
|
24
|
+
import { Empty } from './Notes.js';
|
|
25
|
+
import { Value } from './Value.js';
|
|
26
|
+
import { usePageApi } from './pageContext.js';
|
|
27
|
+
import { namedGroups } from './dashboardModel.js';
|
|
28
|
+
import { presentationColumns } from './columnPresentation.js';
|
|
29
|
+
import { groupLabel } from './valueModel.js';
|
|
30
|
+
import { say } from '../copy/record/components/PageGroups.js';
|
|
31
|
+
import { RANK, useGroupMoves } from './groupMoves.js';
|
|
32
|
+
/** The list's own conditions with one more on every alternative: the rows of this group. */
|
|
33
|
+
function groupView(view, by, key, limit) {
|
|
34
|
+
const held = (view.filter?.groups?.length ? view.filter.groups : [[]]);
|
|
35
|
+
const condition = key === null || key === undefined ? { path: by, op: 'isNull' } : { path: by, op: '=', value: key };
|
|
36
|
+
return { ...view, filter: { groups: held.map((group) => [...group, condition]) }, limit };
|
|
37
|
+
}
|
|
38
|
+
export function GroupedBody({ section, groups, offset, perPage, onOffset, view, labelColumns, rowsPerGroup, grid, overall, moves, }) {
|
|
39
|
+
const api = usePageApi();
|
|
40
|
+
const group = section.group;
|
|
41
|
+
const heading = useId();
|
|
42
|
+
const [open, setOpen] = useState({});
|
|
43
|
+
const from = findTable(section.from ?? '');
|
|
44
|
+
const parent = state.schema
|
|
45
|
+
? groupTable(state.schema, { from: section.from ?? '', group: section.group })
|
|
46
|
+
: undefined;
|
|
47
|
+
const [keyName] = groups.columns;
|
|
48
|
+
const keyOf = (row) => row[keyName];
|
|
49
|
+
const keyText = (row) => String(keyOf(row) ?? '');
|
|
50
|
+
const rows = groups.rows;
|
|
51
|
+
const facts = groupFactPaths(section);
|
|
52
|
+
const allowed = parent ? undefined : presentationColumns(state.schema, from, [group.by]).get(group.by)?.allowed;
|
|
53
|
+
/* "No sprint": the column's caption in its sentence, an acronym kept as it is (the board's rule, BoardList's `none`). */
|
|
54
|
+
const caption = columnLabel(section.from ?? '', group.by) ?? humanName(group.by.split('.').pop().replace(/_id$/, ''));
|
|
55
|
+
const noValue = group.empty ?? say('noGroupValue', { caption: /^[A-Z][a-z]/.test(caption) ? caption[0].toLowerCase() + caption.slice(1) : caption });
|
|
56
|
+
const named = namedGroups(groups, keyName, (key) => key === null || key === undefined
|
|
57
|
+
? noValue
|
|
58
|
+
: groupLabel(columnDisplay(section.from ?? '', group.by), key, allowed));
|
|
59
|
+
const asked = useQueries({
|
|
60
|
+
queries: rows.map((row) => {
|
|
61
|
+
const limit = open[keyText(row)] ? GROUP_ROWS_MOST : rowsPerGroup;
|
|
62
|
+
/* A ranked list reads each row's place, shown or not, for the number a moved row takes. */
|
|
63
|
+
const ranked = moves?.rank && !view.columns?.some((column) => column.path === moves.rank.column)
|
|
64
|
+
? { ...view, columns: [...(view.columns ?? []), { path: moves.rank.column, alias: RANK }] }
|
|
65
|
+
: view;
|
|
66
|
+
const narrowed = groupView(ranked, group.by, keyOf(row), limit);
|
|
67
|
+
return {
|
|
68
|
+
queryKey: ['page-list', narrowed, 0],
|
|
69
|
+
queryFn: () => api('/api/view/run', { view: narrowed, offset: 0, count: 'none' }),
|
|
70
|
+
staleTime: 0,
|
|
71
|
+
placeholderData: keepPreviousData,
|
|
72
|
+
};
|
|
73
|
+
}),
|
|
74
|
+
});
|
|
75
|
+
const answers = asked.map((each) => each.data && 'view' in each.data ? each.data : undefined);
|
|
76
|
+
const shownColumns = answers.find((answer) => answer?.columns)?.columns ?? [];
|
|
77
|
+
const moving = useGroupMoves({ moves, groups: rows.map(keyOf), answers, columns: shownColumns, label: named });
|
|
78
|
+
const things = (section.title ?? from?.name ?? '').toLocaleLowerCase();
|
|
79
|
+
const first = offset + 1;
|
|
80
|
+
const last = offset + rows.length;
|
|
81
|
+
const more = typeof groups.total === 'number' ? offset + rows.length < groups.total : rows.length >= perPage;
|
|
82
|
+
return (_jsxs("div", { className: "page-groups", children: [rows.length === 0 ? (_jsx(Empty, { className: "page-group-empty", text: say('nothingToGroup') })) : (rows.map((row, i) => {
|
|
83
|
+
const key = keyOf(row);
|
|
84
|
+
const id = `${heading}-${i}`;
|
|
85
|
+
const count = (Number(row.group_rows) || 0) + moving.drift(i);
|
|
86
|
+
const answer = asked[i].data;
|
|
87
|
+
const drawn = answer && 'view' in answer ? answer : undefined;
|
|
88
|
+
const body = (moving.movable ? moving.bodies[i] : (drawn?.rows ?? []));
|
|
89
|
+
const columns = drawn?.columns ?? [];
|
|
90
|
+
const expanded = Boolean(open[keyText(row)]);
|
|
91
|
+
const label = named(key);
|
|
92
|
+
const capped = Math.min(count, expanded ? GROUP_ROWS_MOST : rowsPerGroup);
|
|
93
|
+
/* A subtotal sums every row of the group, not only the ones drawn, and says so when they are fewer. */
|
|
94
|
+
const subtotals = section.totals?.length
|
|
95
|
+
? Object.fromEntries(section.totals.map((column, n) => [column, row[`total_${n}`] ?? 0]))
|
|
96
|
+
: undefined;
|
|
97
|
+
const partial = count > body.length;
|
|
98
|
+
const recordKey = parent && key !== null && key !== undefined && primaryKey(parent).length === 1
|
|
99
|
+
? { [primaryKey(parent)[0]]: key }
|
|
100
|
+
: null;
|
|
101
|
+
const lead = body[0];
|
|
102
|
+
return (_jsxs("div", { className: "page-group", role: "group", "aria-labelledby": id, children: [_jsxs("header", { className: "page-group-head", children: [_jsx("h3", { id: id, className: "page-group-name", children: recordKey && parent ? (_jsx("button", { type: "button", className: "page-group-link", onClick: () => void openRecord(parent.id, recordKey, label), children: label })) : (label) }), lead && facts.length > 0 && parent && (_jsx("span", { className: "page-group-facts", children: group.show.map((column, n) => {
|
|
103
|
+
const path = facts[n];
|
|
104
|
+
const said = labelColumns[path] ? lead[labelColumns[path]] : undefined;
|
|
105
|
+
const meta = parent.columns.find((c) => c.name === column);
|
|
106
|
+
const value = lead[path];
|
|
107
|
+
if (value === null || value === undefined || value === '')
|
|
108
|
+
return null;
|
|
109
|
+
return (_jsx(Fragment, { children: _jsx("span", { className: "page-group-fact", children: typeof said === 'string' && said !== '' ? (said) : (_jsx(Value, { col: meta, value: value, tableId: parent.id, links: false, compact: true })) }) }, column));
|
|
110
|
+
}) })), _jsx("span", { className: "page-group-count", children: say('groupCount', { shown: formatNumber(capped), count: formatNumber(count) }) }), (group.sum ?? []).map((column, n) => {
|
|
111
|
+
const figure = row[`group_sum_${n}`];
|
|
112
|
+
if (figure === null || figure === undefined)
|
|
113
|
+
return null;
|
|
114
|
+
return (_jsx("span", { className: "page-group-sum", children: _jsx(Value, { col: from?.columns.find((c) => c.name === column), value: figure, tableId: section.from, links: false, compact: true }) }, column));
|
|
115
|
+
})] }), _jsx("div", { className: "result-table", id: `${id}-rows`, ...moving.zone(i), children: drawn
|
|
116
|
+
? grid({ ...drawn, rows: body, columns }, subtotals && body.length ? subtotals : undefined, partial ? say('totalOfCount', { count: formatNumber(count) }) : undefined)
|
|
117
|
+
: null }), count > rowsPerGroup && (_jsx("button", { type: "button", className: "ghost page-group-more", "aria-expanded": expanded, "aria-controls": `${id}-rows`, "aria-label": expanded
|
|
118
|
+
? say('showFewerOf', { count: formatNumber(rowsPerGroup), things, group: label })
|
|
119
|
+
: say('showAllOf', { count: formatNumber(count), things, group: label }), onClick: () => setOpen((held) => expanded
|
|
120
|
+
? Object.fromEntries(Object.entries(held).filter(([k]) => k !== keyText(row)))
|
|
121
|
+
: { ...held, [keyText(row)]: true }), children: expanded ? say('showFewer', { count: formatNumber(rowsPerGroup) }) : say('showAll', { count: formatNumber(count) }) }))] }, keyText(row) || `none-${i}`));
|
|
122
|
+
})), moving.live, overall && from && (_jsxs("p", { className: "page-group-total", children: [_jsx("span", { className: "page-group-total-label", children: overall.label }), Object.entries(overall.sums).map(([column, figure]) => (_jsxs("span", { className: "page-group-total-figure", children: [_jsx("span", { className: "page-group-total-caption", children: columnLabel(from.id, column) ?? humanName(column) }), _jsx(Value, { col: from.columns.find((c) => c.name === column), value: figure, tableId: from.id, links: false, compact: true })] }, column)))] })), (offset > 0 || more) && (_jsx("div", { className: "page-pager", children: _jsxs("span", { className: "step-control", children: [_jsx("button", { type: "button", className: "step-button", "aria-label": say('previousGroups'), disabled: offset === 0, onClick: () => onOffset(Math.max(0, offset - perPage)), children: _jsx(Icon, { name: "caret-left", size: 16 }) }), _jsx("span", { className: "page-range step-position", children: `${formatNumber(first)}–${formatNumber(last)}${typeof groups.total === 'number' ? say('common.ofTotal', { total: formatNumber(groups.total) }) : ''}` }), _jsx("button", { type: "button", className: "step-button", "aria-label": say('moreGroups'), disabled: !more, onClick: () => onOffset(offset + perPage), children: _jsx(Icon, { name: "caret-right", size: 16 }) })] }) }))] }));
|
|
123
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { AppAction } from '@mistriwork/engine/schema/model.js';
|
|
3
|
+
import { type PageSection } from './pageModel.js';
|
|
4
|
+
import type { PageProps } from './Page.js';
|
|
5
|
+
export declare function PageHead({ entry, page, base, others, onLayout, actions, host, onPending, title, gone, header, onSectionLabel, onTitleEditor, titleOwner, }: PageProps & {
|
|
6
|
+
onPending: (opts?: {
|
|
7
|
+
inPlace?: boolean;
|
|
8
|
+
}) => void;
|
|
9
|
+
title?: () => ReactNode;
|
|
10
|
+
gone?: boolean;
|
|
11
|
+
/** The page's record header (useRecordHeader, below), drawn here wherever it is written. */
|
|
12
|
+
header?: {
|
|
13
|
+
section: PageSection;
|
|
14
|
+
index: number;
|
|
15
|
+
};
|
|
16
|
+
onSectionLabel?: (index: number, label: string | undefined) => void;
|
|
17
|
+
onTitleEditor?: (index: number, render: (() => ReactNode) | undefined) => void;
|
|
18
|
+
titleOwner?: number;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
20
|
+
type Tones = Record<string, Record<string, string> | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Whether a verb takes something away: named (by id) in the header's `destructive`,
|
|
23
|
+
* or an update that asks to be confirmed, or one that sets a value its
|
|
24
|
+
* column's display tones call bad ("Mark lost" → `lost: 'bad'`). A command
|
|
25
|
+
* says nothing of what it writes, so only its name makes it one.
|
|
26
|
+
*/
|
|
27
|
+
export declare function isDestructive(action: AppAction, named: readonly string[] | undefined, tones: Tones): boolean;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A page's head: the page's name (a picker among the table's other pages
|
|
4
|
+
* while authoring), pin and layout, and, once a record is chosen, the
|
|
5
|
+
* record's name as the room's heading with its star, trail, actions,
|
|
6
|
+
* Delete, tags and pending bar. Everything that acts on the whole record
|
|
7
|
+
* sits here, above the sections.
|
|
8
|
+
*/
|
|
9
|
+
import { PHONE_QUERY, useMediaQuery } from './useMediaQuery.js';
|
|
10
|
+
import { useContext, useEffect, useState, useSyncExternalStore } from 'react';
|
|
11
|
+
import { createPortal } from 'react-dom';
|
|
12
|
+
import { useQuery } from '@tanstack/react-query';
|
|
13
|
+
import { Button } from '@mistriwork/ui/Button.js';
|
|
14
|
+
import { columnDisplay, columnLabel, go, labelPath, rowLabel, state } from '../core.js';
|
|
15
|
+
import { readRecordSource, shareRecordSource } from '../recordSource.js';
|
|
16
|
+
import { pathEqualityFilter } from '../resourceRequests.js';
|
|
17
|
+
import { canEditRow, pendingCount, sameRow, stagedVersion, subscribeStaged } from '../write.js';
|
|
18
|
+
import { humanName } from '@mistriwork/engine/shared/model.js';
|
|
19
|
+
import { factWord } from '@mistriwork/engine/shared/appCards.js';
|
|
20
|
+
import { shell } from '../shellMode.js';
|
|
21
|
+
import { isPinned, togglePinned } from '../pagemarks.js';
|
|
22
|
+
import { Editable, PendingBar } from './Editable.js';
|
|
23
|
+
import { RefJump, Value } from './Value.js';
|
|
24
|
+
import { headerColumns } from '@mistriwork/engine/shared/recordReads.js';
|
|
25
|
+
import { presentationColumns } from './columnPresentation.js';
|
|
26
|
+
import { useDelete } from './DeleteButton.js';
|
|
27
|
+
import { DropItem } from '@mistriwork/ui/DropMenu.js';
|
|
28
|
+
import { FavoriteStar } from './FavoriteStar.js';
|
|
29
|
+
import { relabelFavorite } from './favorites.js';
|
|
30
|
+
import { Dropdown } from './Dropdown.js';
|
|
31
|
+
import { RecordTags } from './RecordTags.js';
|
|
32
|
+
import { RecordTrailNav } from './RecordTrailNav.js';
|
|
33
|
+
import { useWalk } from './walk.js';
|
|
34
|
+
import { rootLabel, sourceOf } from './pageModel.js';
|
|
35
|
+
import { PageRenderContext, recordReadNames, spoken, usePageApi } from './pageContext.js';
|
|
36
|
+
import { hueOf, initialsOf } from './valueModel.js';
|
|
37
|
+
import { useAvatarPhotos } from './avatarPhotos.js';
|
|
38
|
+
import { primaryKey } from '@mistriwork/engine/shared/schema.js';
|
|
39
|
+
import { documentsOf } from '../documents.js';
|
|
40
|
+
import { useMessageLanguage } from './useMessageLanguage.js';
|
|
41
|
+
import { say } from '../copy/record/components/PageHead.js';
|
|
42
|
+
import { recordNotFound } from './RecordGone.js';
|
|
43
|
+
import { drawnLayout } from '@mistriwork/engine/shared/pageLayouts.js';
|
|
44
|
+
import { useCrumbSlots } from './crumbSlot.js';
|
|
45
|
+
import { onDemand } from './onDemand.js';
|
|
46
|
+
import { liveKeyText, useLiveActive, useRecentChange } from '../liveState.js';
|
|
47
|
+
/* "Updated by Ana just now", once another person's change to this record has been told (liveState.ts). */
|
|
48
|
+
const LiveUpdatedLine = onDemand(() => import('./LiveNotices.js'), 'LiveUpdatedLine', { quiet: true });
|
|
49
|
+
export function PageHead({ entry, page, base, others, onLayout, actions, host, onPending, title, gone = false, header, onSectionLabel, onTitleEditor, titleOwner, }) {
|
|
50
|
+
useMessageLanguage();
|
|
51
|
+
useWalk();
|
|
52
|
+
const { isCurrent } = useContext(PageRenderContext);
|
|
53
|
+
const authoring = !shell().inApp() && !host;
|
|
54
|
+
const key = entry.key;
|
|
55
|
+
const changedElsewhere = useRecentChange(base.id, key ? liveKeyText(key) : '');
|
|
56
|
+
/* A draft of this record under live sync: the notice that may come over it has its row reserved from the first
|
|
57
|
+
edit, so its arrival moves nothing (LiveNotices.css). */
|
|
58
|
+
useSyncExternalStore(subscribeStaged, stagedVersion, stagedVersion);
|
|
59
|
+
const liveDraft = useLiveActive(base.id) && Boolean(key) && sameRow(base.id, key) && pendingCount() > 0;
|
|
60
|
+
const [pinned, setPinned] = useState(() => isPinned(page.id));
|
|
61
|
+
const suggested = { id: `suggested:${page.base}`, name: `${page.base} (default)`, source: 'suggested' };
|
|
62
|
+
const items = [...others, ...(others.some((p) => p.id === suggested.id) ? [] : [suggested])].filter((p) => p.id !== page.id);
|
|
63
|
+
const sayPage = (p) => (p.source === 'suggested' ? spoken(p.name) : p.name);
|
|
64
|
+
/* A record that is gone has no name any more: the one the link carried is the last it was known by, and
|
|
65
|
+
as the page's heading it says the record exists. The crumb trail keeps it, as where the reader came from. */
|
|
66
|
+
const label = gone ? recordNotFound(spoken(base.name)) : (entry.label ?? (key ? rootLabel(key) : ''));
|
|
67
|
+
const phone = useMediaQuery(PHONE_QUERY);
|
|
68
|
+
/* A record page's verbs stand at the end of the crumb bar, as a list's New
|
|
69
|
+
does: the bar stays at the top of the pane however long the page, so the
|
|
70
|
+
record's next step is always in reach, and the name beneath it is free to
|
|
71
|
+
take its line. A room drawn inside another (a split's detail, a dialog)
|
|
72
|
+
and a phone keep them in the head; a phone holds them at the foot of the
|
|
73
|
+
screen (page.css). */
|
|
74
|
+
const { tools: crumbTools } = useCrumbSlots();
|
|
75
|
+
const actionsInBar = Boolean(crumbTools && !host && !phone && shell().inApp());
|
|
76
|
+
const said = useRecordHeader({
|
|
77
|
+
page,
|
|
78
|
+
base,
|
|
79
|
+
recordKey: key,
|
|
80
|
+
header: gone ? undefined : header,
|
|
81
|
+
onSectionLabel,
|
|
82
|
+
onTitleEditor,
|
|
83
|
+
titleOwner,
|
|
84
|
+
onEdit: onPending,
|
|
85
|
+
});
|
|
86
|
+
/* Which verbs take something away is read on every App record page, with
|
|
87
|
+
or without a header: its first verb is the filled one, and a confirmed
|
|
88
|
+
or bad-toned one first would fill the button that ends the record. */
|
|
89
|
+
const named = header?.section.destructive;
|
|
90
|
+
const destructive = header || shell().inApp()
|
|
91
|
+
? (() => {
|
|
92
|
+
const tones = tonesOf(base.id);
|
|
93
|
+
return (action) => isDestructive(action, named, tones);
|
|
94
|
+
})()
|
|
95
|
+
: undefined;
|
|
96
|
+
const deleting = useDelete({
|
|
97
|
+
table: base,
|
|
98
|
+
recordKey: key ?? {},
|
|
99
|
+
label,
|
|
100
|
+
host: host
|
|
101
|
+
? {
|
|
102
|
+
isCurrent: isCurrent,
|
|
103
|
+
onDeleted: host.onDeleted,
|
|
104
|
+
onStateChange: host.onDeleteStateChange,
|
|
105
|
+
}
|
|
106
|
+
: undefined,
|
|
107
|
+
});
|
|
108
|
+
/* A star only where the App offers one (`favorite: true` on the resource). */
|
|
109
|
+
const starred = key && shell().inApp() && shell().app()?.resources[base.id]?.favorite
|
|
110
|
+
? { kind: 'record', table: base.id, key, label, pageId: page.id }
|
|
111
|
+
: undefined;
|
|
112
|
+
const starredId = starred ? JSON.stringify([starred.table, starred.key]) : '';
|
|
113
|
+
/* Tags where the App gives the resource some (`tags`): chips under the title. */
|
|
114
|
+
const tagRule = key && shell().inApp() ? shell().app()?.resources[base.id]?.tags : undefined;
|
|
115
|
+
/* A record avatar is presentation of the label already loaded for this
|
|
116
|
+
heading. It is deliberately limited to an explicit local display rule:
|
|
117
|
+
composite labels and key fallbacks must not invent an identity mark or
|
|
118
|
+
trigger another read. */
|
|
119
|
+
const recordLabelPath = key && shell().inApp() ? labelPath(base) : undefined;
|
|
120
|
+
/* Whether the resource gives its records an avatar is the App's to say, known before the name arrives: a head
|
|
121
|
+
that stands it large beside the name (recipes.header 'hero', themeFamilies.css) keeps its room from the first paint. */
|
|
122
|
+
const avatarDeclared = Boolean(!gone && recordLabelPath && !recordLabelPath.includes('.') && shell().app()?.resources[base.id]?.display?.[recordLabelPath]?.avatar);
|
|
123
|
+
const recordAvatar = avatarDeclared && Boolean(entry.label);
|
|
124
|
+
/* A person whose avatar is their photo (`avatar: { from, whose }`) wears it
|
|
125
|
+
here too, as in every list that names them; the initials stand in where
|
|
126
|
+
there is none, or the reader may not read it. */
|
|
127
|
+
const avatarRule = recordAvatar ? shell().app()?.resources[base.id]?.display?.[recordLabelPath] : undefined;
|
|
128
|
+
const ownKey = primaryKey(base);
|
|
129
|
+
const photos = useAvatarPhotos(recordAvatar && ownKey.length === 1 ? [{ name: recordLabelPath, display: avatarRule, photoOwner: ownKey[0] }] : [], recordAvatar && key ? [key] : []);
|
|
130
|
+
const photo = recordAvatar && key && ownKey.length === 1 ? photos(recordLabelPath, key[ownKey[0]]) : undefined;
|
|
131
|
+
const [brokenPhoto, setBrokenPhoto] = useState(undefined);
|
|
132
|
+
useEffect(() => {
|
|
133
|
+
if (starred)
|
|
134
|
+
relabelFavorite(starred);
|
|
135
|
+
}, [starredId, label]);
|
|
136
|
+
/* The record put on paper — its invoice, its packing slip — is a verb on it, in More, before Delete: reading, not changing. */
|
|
137
|
+
const documents = key && !gone ? documentsOf(base.id) : [];
|
|
138
|
+
/* A record that is gone has nothing to be done to it: no verbs, no Delete. */
|
|
139
|
+
/* The verbs, the documents and Delete stand in the App's bar (Actions.tsx), drawn through the shell's slot. */
|
|
140
|
+
const { ActionBar } = shell().slots;
|
|
141
|
+
const toolbar = ActionBar && key && !gone && (actions || deleting.available || documents.length) ? (_jsx("div", { className: "page-head-actions", children: _jsx(ActionBar, { tableId: base.id, actions: actions?.list ?? [], recordKey: key, label: label, matches: actions?.matches ?? (async () => false), queryScope: actions?.queryScope, isCurrent: isCurrent, compact: phone, destructive: destructive, primary: header?.section.primary, only: header?.section.headerActions, canUpdate: actions?.canUpdate, grantedCommands: actions?.grantedCommands, grantedActions: actions?.grantedActions, menuTail: documents.length || deleting.available ? (_jsxs(_Fragment, { children: [documents.map((document) => (_jsx(DropItem, { className: "page-actions-item", onClick: () => go({ kind: 'page', pageId: page.id, table: base.id, key, label, tab: document.id }), children: document.label }, document.id))), deleting.available && (_jsx(DropItem, { className: "page-actions-item is-danger", disabled: deleting.blocked, onClick: deleting.ask, children: say('common.delete') }))] })) : undefined, onDone: () => {
|
|
142
|
+
if (host) {
|
|
143
|
+
if (isCurrent?.())
|
|
144
|
+
host.onActionDone();
|
|
145
|
+
}
|
|
146
|
+
else
|
|
147
|
+
onPending({ inPlace: false });
|
|
148
|
+
} }) })) : null;
|
|
149
|
+
return (_jsxs("div", { className: `page-head${key ? ' has-record' : ''}${!host && shell().inApp() ? ' is-room' : ''}${avatarDeclared ? ' has-avatar' : ''}`, "data-layout": drawnLayout(page), children: [_jsxs("div", { className: "page-head-top", children: [authoring && items.length ? (_jsx("div", { className: "page-title-pick", children: _jsx(Dropdown, { ariaLabel: say('common.page'), value: page.id, items: [
|
|
150
|
+
{ value: page.id, label: sayPage(page), detail: sourceOf(page) },
|
|
151
|
+
...items.map((p) => ({ value: p.id, label: sayPage(p), detail: sourceOf(p) })),
|
|
152
|
+
], onChange: (id) => {
|
|
153
|
+
if (id !== page.id)
|
|
154
|
+
go({ ...entry, pageId: id }, 'replace');
|
|
155
|
+
}, valueClassName: "page-title" }) })) : key ? (
|
|
156
|
+
/* Over a record's name its kind is a label for someone who works
|
|
157
|
+
across tables; a public reader came for the car, not "VEHICLE". */
|
|
158
|
+
shell().publicVisitor() ? null : (_jsx("span", { className: "page-title", children: sayPage(page) }))) : (_jsx("h1", { className: "page-title", children: sayPage(page) })), !shell().inApp() && (_jsx("button", { type: "button", className: `ghost page-pin${pinned ? ' is-pinned' : ''}`, "aria-pressed": pinned, title: pinned ? say('isPinnedToTheHome', { name: page.name }) : say('pinToTheHome', { name: page.name }), "aria-label": pinned ? say('isPinnedToTheHome', { name: page.name }) : say('pinToTheHome', { name: page.name }), onClick: () => setPinned(togglePinned(page)), children: pinned ? '★' : '☆' })), key && changedElsewhere && !gone && _jsx(LiveUpdatedLine, { table: base, recordKey: key }), authoring && (_jsx(Button, { size: "compact", className: "page-edit", title: page.source === 'saved' ? say('addRemoveAndReorder') : say('thisPageBelongsToTheFile'), onClick: onLayout, children: page.source === 'saved' ? say('layout') : say('copyLayout') }))] }), key && (_jsxs("div", { className: "root-bar", children: [recordAvatar &&
|
|
159
|
+
(photo && photo !== brokenPhoto ? (_jsx("img", { className: `page-record-avatar avatar avatar-photo avatar-c${hueOf(label)}`, src: photo, alt: "", decoding: "async", onError: () => setBrokenPhoto(photo) })) : (_jsx("span", { className: `page-record-avatar avatar avatar-c${hueOf(label)}`, "aria-hidden": "true", children: initialsOf(label) }))), title ? (_jsx("div", { className: "root-current", role: "heading", "aria-level": 1, "aria-label": label, children: title() })) : (_jsx("h1", { className: "root-current", children: _jsx("span", { title: label, children: label }) })), starred && _jsx(FavoriteStar, { favorite: starred, name: label }), said.status, _jsx(RecordTrailNav, { entry: entry })] })), toolbar && actionsInBar ? createPortal(toolbar, crumbTools, 'record-actions') : toolbar, key && said.facts, key && tagRule && _jsx(RecordTags, { rule: tagRule, recordKey: key, isCurrent: isCurrent }), deleting.dialog, key && (_jsx("div", { className: `page-pending${liveDraft ? ' has-live-draft' : ''}`, children: _jsx(PendingBar, { table: base, recordKey: key, placement: host?.pendingBar, isCurrent: isCurrent, onDone: (done) => onPending(host ? done : (done ?? { inPlace: true })) }) }))] }));
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Whether a verb takes something away: named (by id) in the header's `destructive`,
|
|
163
|
+
* or an update that asks to be confirmed, or one that sets a value its
|
|
164
|
+
* column's display tones call bad ("Mark lost" → `lost: 'bad'`). A command
|
|
165
|
+
* says nothing of what it writes, so only its name makes it one.
|
|
166
|
+
*/
|
|
167
|
+
export function isDestructive(action, named, tones) {
|
|
168
|
+
if (named?.includes(action.id))
|
|
169
|
+
return true;
|
|
170
|
+
if (action.command)
|
|
171
|
+
return false;
|
|
172
|
+
if (action.confirm)
|
|
173
|
+
return true;
|
|
174
|
+
return Object.entries(action.set ?? {}).some(([column, value]) => typeof value === 'string' && tones[column]?.[value] === 'bad');
|
|
175
|
+
}
|
|
176
|
+
/** The display tones of a table's columns in the App, by column. */
|
|
177
|
+
function tonesOf(tableId) {
|
|
178
|
+
const display = shell().app()?.resources?.[tableId]?.display ?? {};
|
|
179
|
+
return Object.fromEntries(Object.entries(display).map(([column, rule]) => [column, rule?.tone]));
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* The header's row and what the head draws from it. Called by the head on
|
|
183
|
+
* every render; with no header it reads nothing and draws nothing.
|
|
184
|
+
*/
|
|
185
|
+
function useRecordHeader({ page, base, recordKey: key, header, onSectionLabel, onTitleEditor, titleOwner, onEdit, }) {
|
|
186
|
+
const api = usePageApi();
|
|
187
|
+
const { preview, isCurrent, adorn, adornHeld } = useContext(PageRenderContext);
|
|
188
|
+
const section = header?.section;
|
|
189
|
+
const index = header?.index ?? -1;
|
|
190
|
+
const facts = section?.paths ?? [];
|
|
191
|
+
const status = section?.status;
|
|
192
|
+
const namePath = labelPath(base);
|
|
193
|
+
/* Built as the server builds it for the page's compose (shared/recordReads.ts). */
|
|
194
|
+
const { fetched, labels: refLabels } = headerColumns(recordReadNames(), base, section ?? { kind: 'fields' });
|
|
195
|
+
const data = useQuery({
|
|
196
|
+
queryKey: ['page-fields', page.id, base.id, key, fetched],
|
|
197
|
+
structuralSharing: shareRecordSource,
|
|
198
|
+
queryFn: () => readRecordSource(() => api('/api/view/run', {
|
|
199
|
+
count: 'none',
|
|
200
|
+
view: {
|
|
201
|
+
id: `page:${page.id}:header`,
|
|
202
|
+
name: base.name,
|
|
203
|
+
base: base.id,
|
|
204
|
+
columns: fetched.map((path) => ({ path })),
|
|
205
|
+
filter: pathEqualityFilter(Object.fromEntries(primaryKey(base).map((column) => [column, key[column]]))),
|
|
206
|
+
limit: 1,
|
|
207
|
+
},
|
|
208
|
+
})),
|
|
209
|
+
enabled: Boolean(section && key),
|
|
210
|
+
staleTime: 0,
|
|
211
|
+
});
|
|
212
|
+
const got = data.data && 'view' in data.data ? data.data : undefined;
|
|
213
|
+
const row = got?.rows[0];
|
|
214
|
+
/* The header names the record for the head, first of every section. */
|
|
215
|
+
useEffect(() => {
|
|
216
|
+
if (row && header)
|
|
217
|
+
onSectionLabel?.(index, rowLabel(base, row));
|
|
218
|
+
}, [row, index]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
219
|
+
useEffect(() => () => {
|
|
220
|
+
if (header)
|
|
221
|
+
onSectionLabel?.(index, undefined);
|
|
222
|
+
}, [index]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
223
|
+
const titleColumn = header && titleOwner === index && shell().inApp() && !preview && namePath && !namePath.includes('.')
|
|
224
|
+
? base.columns.find((c) => c.name === namePath)
|
|
225
|
+
: undefined;
|
|
226
|
+
const titleEditable = Boolean(key && titleColumn && !titleColumn.primaryKey && titleColumn.writable !== false && canEditRow(base, key));
|
|
227
|
+
useEffect(() => {
|
|
228
|
+
if (!onTitleEditor || !header)
|
|
229
|
+
return;
|
|
230
|
+
if (!row || !titleEditable || !titleColumn) {
|
|
231
|
+
onTitleEditor(index, undefined);
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
onTitleEditor(index, () => (_jsx(Editable, { table: base, row: row, column: titleColumn, recordKey: key, onSaved: onEdit ?? (() => { }), isCurrent: isCurrent, app: true, display: (next) => _jsx("span", { children: next === null || next === undefined || String(next) === '' ? rowLabel(base, row) : String(next) }) })));
|
|
235
|
+
}, [row, titleEditable, index]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
236
|
+
useEffect(() => () => {
|
|
237
|
+
if (header)
|
|
238
|
+
onTitleEditor?.(index, undefined);
|
|
239
|
+
}, [index]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
240
|
+
/* The facts' line is held while the row is on its way: under the name it
|
|
241
|
+
pushed the whole page down when it came (test/built-client-vitals.mjs). So is it while the host's adornments are
|
|
242
|
+
asked about one of its empty facts: an empty fact is left out, and one the host adorns would join the line late. */
|
|
243
|
+
const waitsOnHost = Boolean(row && adornHeld?.length) && facts.some((path) => adornHeld.includes(path) && (row[path] ?? '') === '');
|
|
244
|
+
if (section && ((!row && data.isPending) || waitsOnHost) && facts.length)
|
|
245
|
+
return {
|
|
246
|
+
status: null,
|
|
247
|
+
facts: (_jsx("ul", { className: "page-facts page-head-facts", "aria-hidden": "true", style: { visibility: 'hidden' }, children: _jsx("li", { className: "page-fact", children: "\u00A0" }) })),
|
|
248
|
+
};
|
|
249
|
+
if (!section || !row)
|
|
250
|
+
return { status: null, facts: null };
|
|
251
|
+
const presented = presentationColumns(state.schema, base, [...(status ? [status] : []), ...facts]);
|
|
252
|
+
const byPath = new Map((got?.resolved ?? []).map((c) => [c.path, c]));
|
|
253
|
+
const columnAt = (path) => (base.columns.find((c) => c.name === path) ?? presented.get(path) ?? byPath.get(path));
|
|
254
|
+
const filled = (path) => row[path] !== null && row[path] !== undefined && row[path] !== '';
|
|
255
|
+
const captionOf = (path) => columnLabel(base.id, path) ?? humanName(path.split('.').pop() ?? path);
|
|
256
|
+
const said = (path) => {
|
|
257
|
+
const column = columnAt(path);
|
|
258
|
+
const labelAt = refLabels.get(path);
|
|
259
|
+
return column?.references ? (_jsx(RefJump, { references: column.references, value: row[path], label: labelAt ? row[labelAt] : undefined, table: base, column: path, row: row })) : (_jsx(Value, { col: column, value: row[path], tableId: base.id, compact: true }));
|
|
260
|
+
};
|
|
261
|
+
/* What the host draws at an own column: beside a filled fact's value, or as an empty fact's whole value. */
|
|
262
|
+
const adornedAt = (path) => adorn && key && !preview && !path.includes('.') && base.columns.some((c) => c.name === path)
|
|
263
|
+
? adorn({ table: base.id, column: path, key, filled: filled(path) })
|
|
264
|
+
: undefined;
|
|
265
|
+
const adornments = new Map(facts.map((path) => [path, adornedAt(path)]));
|
|
266
|
+
const shown = facts.filter((path) => filled(path) || adornments.get(path));
|
|
267
|
+
return {
|
|
268
|
+
/* Its caption is heard, not seen: beside the name a chip is its own word. */
|
|
269
|
+
status: status && filled(status) ? (_jsxs("span", { className: "page-head-status", children: [_jsxs("span", { className: "visually-hidden", children: [captionOf(status), ": "] }), said(status)] })) : null,
|
|
270
|
+
facts: shown.length ? (_jsx("ul", { className: "page-facts page-head-facts", "aria-label": say('common.keyFacts'), children: shown.map((path) => {
|
|
271
|
+
const labels = section.factLabels;
|
|
272
|
+
const word = labels && Object.hasOwn(labels, path)
|
|
273
|
+
? factWord(labels[path], row[path], columnDisplay(base.id, path))
|
|
274
|
+
: undefined;
|
|
275
|
+
const before = word !== undefined && labels[path].position === 'before';
|
|
276
|
+
return (_jsxs("li", { className: "page-fact", children: [word === undefined && (_jsxs("span", { className: "page-fact-caption", children: [captionOf(path), _jsx("span", { className: "visually-hidden", children: ": " })] })), before && _jsxs("span", { className: "page-fact-word", children: [word, " "] }), filled(path) && said(path), word !== undefined && !before && _jsxs("span", { className: "page-fact-word", children: [" ", word] }), adornments.get(path)] }, path));
|
|
277
|
+
}) })) : null,
|
|
278
|
+
};
|
|
279
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ColumnMeta } from '@mistriwork/engine/shared/schema.js';
|
|
2
|
+
import type { PageHeadlineAction } from '@mistriwork/engine/shared/pageModel.js';
|
|
3
|
+
import { type ViewLink } from './viewLink.js';
|
|
4
|
+
interface PageHeadlineProps {
|
|
5
|
+
tableId: string;
|
|
6
|
+
row: Record<string, unknown>;
|
|
7
|
+
/** The figure first, then the facts. */
|
|
8
|
+
paths: readonly string[];
|
|
9
|
+
column: (path: string) => ColumnMeta | undefined;
|
|
10
|
+
actions: ReadonlyArray<PageHeadlineAction>;
|
|
11
|
+
/** A second figure under the first. */
|
|
12
|
+
subfigure?: string;
|
|
13
|
+
/** The figure's earlier value, struck through beside it when it is set and higher. */
|
|
14
|
+
was?: string;
|
|
15
|
+
/** Small print under the actions. */
|
|
16
|
+
note?: string;
|
|
17
|
+
}
|
|
18
|
+
/** A public form's address with the inputs the action fills: the record's own values, then the author's words. */
|
|
19
|
+
export declare function prefilledFormLink(link: ViewLink, action: PageHeadlineAction, row: Record<string, unknown>): ViewLink;
|
|
20
|
+
/** The earlier value is said only where it is a figure above the one in hand: a reduction, never a rise or a repeat. */
|
|
21
|
+
export declare function wasShown(row: Record<string, unknown>, figure: string | undefined, was: string | undefined): boolean;
|
|
22
|
+
export declare function PageHeadline({ tableId, row, paths, column, actions, subfigure, was, note }: PageHeadlineProps): import("react").JSX.Element;
|
|
23
|
+
export {};
|