@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,193 @@
|
|
|
1
|
+
/* A component's own rules, brought with it: after the base, before any look (style.css names the order). */
|
|
2
|
+
@layer components {
|
|
3
|
+
/* A flow drawn: quiet boxes on hairlines, each with its kind's mark, the
|
|
4
|
+
step's words in the text colors, a branch's other way dashed under the
|
|
5
|
+
lanes so it reads as the road not taken. A run's walk is said as the
|
|
6
|
+
workflow strip says it (docs/design.md): the way walked in the ink, the
|
|
7
|
+
current step in the accent, what is ahead dim, meaning a dot and its word.
|
|
8
|
+
Here, not in page.css: the section is a part loaded on demand, so its
|
|
9
|
+
rules arrive with it and no first page carries them.
|
|
10
|
+
|
|
11
|
+
Every length is fixed here, not measured off the page: a box is as tall as
|
|
12
|
+
its kind, two lines of title and the meta lines the drawing needs
|
|
13
|
+
(--flow-lines, said by the component), so the line the way runs along,
|
|
14
|
+
the legs of a branch and the arrowheads all land where they should on the
|
|
15
|
+
first paint. */
|
|
16
|
+
.flow-diagram {
|
|
17
|
+
--flow-gap: 40px;
|
|
18
|
+
--flow-head: 22px;
|
|
19
|
+
--flow-lane-gap: 10px;
|
|
20
|
+
--flow-meta: 20px;
|
|
21
|
+
--flow-box: calc(76px + var(--flow-lines, 0) * (var(--flow-meta) + 4px));
|
|
22
|
+
--flow-way: 26px;
|
|
23
|
+
--flow-end: 18px;
|
|
24
|
+
--flow-line: var(--line-strong);
|
|
25
|
+
margin-top: var(--space-2h);
|
|
26
|
+
}
|
|
27
|
+
/* A run's line above its drawing: the flow it follows, its state, when it began. */
|
|
28
|
+
.flow-diagram-run { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-4h); font-size: var(--text-base); }
|
|
29
|
+
.flow-diagram-run-name { color: var(--ink); font-weight: 600; }
|
|
30
|
+
.flow-diagram-run-when { color: var(--ink-muted); font-size: var(--text-sm); }
|
|
31
|
+
|
|
32
|
+
/* The width each column has decides the layout, and a container query reads
|
|
33
|
+
it without a measurement: this box is the drawing's width divided by its
|
|
34
|
+
columns, and the drawing inside it is that width times its columns again
|
|
35
|
+
— the whole width, laid out by a query on one column's share. */
|
|
36
|
+
.flow-diagram-fit { container: flow-column / inline-size; width: calc(100% / var(--flow-n, 1)); }
|
|
37
|
+
.flow-diagram-body { width: calc(100% * var(--flow-n, 1)); }
|
|
38
|
+
|
|
39
|
+
/* Each column is two halves and a gap: the line between the halves is its
|
|
40
|
+
middle, which a branch's way lands on, so a way spans middle to middle. */
|
|
41
|
+
.flow-diagram-flow, .flow-diagram-ways {
|
|
42
|
+
display: grid;
|
|
43
|
+
grid-template-columns:
|
|
44
|
+
repeat(var(--flow-n, 1), minmax(0, 1fr) minmax(0, 1fr) var(--flow-gap))
|
|
45
|
+
calc(var(--flow-end) / 2 + 1px) calc(var(--flow-end) / 2 + 1px);
|
|
46
|
+
}
|
|
47
|
+
.flow-diagram-flow { margin: 0; padding: 0; list-style: none; }
|
|
48
|
+
.flow-diagram-position { position: relative; min-width: 0; padding-top: var(--flow-head); }
|
|
49
|
+
.flow-diagram-number {
|
|
50
|
+
position: absolute; top: 0; left: 0;
|
|
51
|
+
color: var(--ink-subtle); font-size: var(--text-xs); line-height: 14px; font-variant-numeric: tabular-nums; white-space: nowrap;
|
|
52
|
+
}
|
|
53
|
+
.flow-diagram-end .flow-diagram-number { left: 50%; transform: translateX(-50%); }
|
|
54
|
+
.flow-diagram-lanes {
|
|
55
|
+
position: relative; isolation: isolate;
|
|
56
|
+
display: flex; flex-direction: column; gap: var(--flow-lane-gap);
|
|
57
|
+
margin: 0; padding: 0; list-style: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* A step: its kind's mark and word, its title over two lines at most, then
|
|
61
|
+
the branch's test and where the run stands. */
|
|
62
|
+
.flow-diagram-step {
|
|
63
|
+
position: relative; box-sizing: border-box; height: var(--flow-box);
|
|
64
|
+
display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3h) var(--space-4);
|
|
65
|
+
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
|
|
66
|
+
}
|
|
67
|
+
.flow-diagram-kind { display: flex; align-items: center; gap: var(--space-2h); min-width: 0; height: 16px; color: var(--ink-muted); }
|
|
68
|
+
.flow-diagram-kind > .tw-icon { flex: none; }
|
|
69
|
+
.flow-diagram-kind-word {
|
|
70
|
+
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
71
|
+
font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase;
|
|
72
|
+
}
|
|
73
|
+
/* A branch's mark is the decision diamond: a square on its corner, in the kind's ink. */
|
|
74
|
+
.flow-diagram-diamond { flex: none; box-sizing: border-box; width: 9px; height: 9px; margin: 0 var(--space-1); border: 1.5px solid currentColor; transform: rotate(45deg); }
|
|
75
|
+
.flow-diagram-name {
|
|
76
|
+
display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
|
|
77
|
+
color: var(--ink); font-size: var(--text-base); font-weight: 500; line-height: 17px; overflow-wrap: anywhere;
|
|
78
|
+
}
|
|
79
|
+
.flow-diagram-test, .flow-diagram-state {
|
|
80
|
+
margin-top: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
81
|
+
font-size: var(--text-sm); line-height: var(--flow-meta); color: var(--ink-muted);
|
|
82
|
+
}
|
|
83
|
+
.flow-diagram-test { font-family: var(--code); font-size: var(--text-xs); }
|
|
84
|
+
.flow-diagram-test + .flow-diagram-state { margin-top: 0; }
|
|
85
|
+
/* A branch's other way is drawn under the lanes at a desk; said in words where the flow runs down the page. */
|
|
86
|
+
.flow-diagram-otherwise {
|
|
87
|
+
position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* The way from one column to the next, along the first lane's middle: a
|
|
91
|
+
hairline and its head, ending at the bar where lanes start together. */
|
|
92
|
+
.flow-diagram-position + .flow-diagram-position::before,
|
|
93
|
+
.flow-diagram-position + .flow-diagram-position::after { content: ''; position: absolute; }
|
|
94
|
+
.flow-diagram-position + .flow-diagram-position::before {
|
|
95
|
+
top: calc(var(--flow-head) + var(--flow-box) / 2); left: calc(-1 * var(--flow-gap));
|
|
96
|
+
width: calc(var(--flow-gap) - var(--flow-in, 0px) - 6px); height: 1px; background: var(--flow-line);
|
|
97
|
+
}
|
|
98
|
+
.flow-diagram-position + .flow-diagram-position::after {
|
|
99
|
+
top: calc(var(--flow-head) + var(--flow-box) / 2 - 4px); left: calc(-1 * var(--flow-in, 0px) - 7px);
|
|
100
|
+
border-left: 7px solid var(--flow-line); border-block: 4px solid transparent;
|
|
101
|
+
}
|
|
102
|
+
/* Lanes that start together: a bar each side the ways meet at, a stub to each lane. */
|
|
103
|
+
.flow-diagram-position[data-together] { --flow-in: 8px; }
|
|
104
|
+
.flow-diagram-position[data-together] .flow-diagram-lanes::after {
|
|
105
|
+
content: ''; position: absolute; z-index: -1;
|
|
106
|
+
top: calc(var(--flow-box) / 2); bottom: calc(var(--flow-box) / 2); left: -8px; right: -8px;
|
|
107
|
+
border-inline: 1px solid var(--flow-line);
|
|
108
|
+
}
|
|
109
|
+
.flow-diagram-position[data-together] .flow-diagram-step::before {
|
|
110
|
+
content: ''; position: absolute; z-index: -1; top: 50%; left: -9px; right: -9px; height: 1px; background: var(--flow-line);
|
|
111
|
+
}
|
|
112
|
+
.flow-diagram-end-mark {
|
|
113
|
+
display: block; box-sizing: border-box; width: var(--flow-end); height: var(--flow-end);
|
|
114
|
+
margin: calc(var(--flow-box) / 2 - var(--flow-end) / 2) auto 0;
|
|
115
|
+
border: 1.5px solid var(--ink-muted); border-radius: 50%;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* A branch's other way: a dashed leg down from the branch, along its row
|
|
119
|
+
under the lanes, and up into the column it lands on, its word on a chip
|
|
120
|
+
that knocks the line out behind it. */
|
|
121
|
+
.flow-diagram-leg {
|
|
122
|
+
position: absolute; left: calc(50% - 0.5px); bottom: 0;
|
|
123
|
+
top: calc(var(--flow-head) + var(--flow-lanes, 1) * (var(--flow-box) + var(--flow-lane-gap)) - var(--flow-lane-gap));
|
|
124
|
+
border-left: 1px dashed var(--flow-line);
|
|
125
|
+
}
|
|
126
|
+
.flow-diagram-end .flow-diagram-leg { top: calc(var(--flow-head) + var(--flow-box) / 2 + var(--flow-end) / 2); }
|
|
127
|
+
.flow-diagram-leg[data-in]::before {
|
|
128
|
+
content: ''; position: absolute; top: 0; left: -4.5px;
|
|
129
|
+
border-bottom: 7px solid var(--flow-line); border-inline: 4px solid transparent;
|
|
130
|
+
}
|
|
131
|
+
.flow-diagram-ways { height: calc(var(--flow-ways, 0) * var(--flow-way) + 12px); }
|
|
132
|
+
.flow-diagram-way {
|
|
133
|
+
position: relative; grid-row: 1; align-self: start; box-sizing: border-box;
|
|
134
|
+
height: calc((var(--flow-way-row, 0) + 1) * var(--flow-way)); margin-right: -1px;
|
|
135
|
+
border: 1px dashed var(--flow-line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
|
|
136
|
+
}
|
|
137
|
+
.flow-diagram-way-label {
|
|
138
|
+
position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
|
|
139
|
+
padding: 0 var(--space-3); white-space: nowrap;
|
|
140
|
+
color: var(--ink-muted); font-size: var(--text-xs); line-height: 17px;
|
|
141
|
+
background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* A run over the drawing (docs/design.md, the workflow strip): the way it
|
|
145
|
+
walked in the ink, the step it is at in the accent, a step it stopped on in
|
|
146
|
+
the danger ink, what it jumped over dashed and faint, what is ahead dim. */
|
|
147
|
+
.flow-diagram-position[data-reached]::before { background: var(--ink); }
|
|
148
|
+
.flow-diagram-position[data-reached]::after { border-left-color: var(--ink); }
|
|
149
|
+
.flow-diagram-end[data-reached] .flow-diagram-end-mark { border-color: var(--ink); background: var(--ink); }
|
|
150
|
+
.flow-diagram-step[data-state='done'] { border-color: var(--line-strong); }
|
|
151
|
+
.flow-diagram-step[data-state='current'] {
|
|
152
|
+
border-color: var(--current-ink, var(--accent));
|
|
153
|
+
box-shadow: inset 0 0 0 1px var(--current-ink, var(--accent));
|
|
154
|
+
background: color-mix(in srgb, var(--current-ink, var(--accent)) 6%, var(--surface));
|
|
155
|
+
}
|
|
156
|
+
.flow-diagram-step[data-state='current'] .flow-diagram-kind { color: var(--current-ink, var(--accent)); }
|
|
157
|
+
.flow-diagram-step[data-state='stopped'] { border-color: var(--status-critical); }
|
|
158
|
+
.flow-diagram-step[data-state='skipped'] { border-style: dashed; background: transparent; }
|
|
159
|
+
.flow-diagram-step:is([data-state='skipped'], [data-state='ahead']) .flow-diagram-name { color: var(--ink-muted); }
|
|
160
|
+
.flow-diagram-way[data-taken] { border-color: var(--ink); border-style: solid; }
|
|
161
|
+
.flow-diagram-way[data-taken] .flow-diagram-way-label { color: var(--ink); border-color: var(--line-strong); }
|
|
162
|
+
.flow-diagram-state { display: flex; align-items: center; gap: var(--space-2h); }
|
|
163
|
+
.flow-diagram-state .tone { flex: none; font-size: var(--text-sm); }
|
|
164
|
+
.flow-diagram-when { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
|
|
165
|
+
|
|
166
|
+
/* Under the width a column needs, the flow runs down the page: one step
|
|
167
|
+
under the other, the way between them a hairline down the left, a box as
|
|
168
|
+
tall as its words, and a branch's other way said in the box. */
|
|
169
|
+
@container flow-column (max-width: 199.98px) {
|
|
170
|
+
.flow-diagram-flow { display: flex; flex-direction: column; gap: var(--space-6); }
|
|
171
|
+
.flow-diagram-ways, .flow-diagram-leg { display: none; }
|
|
172
|
+
.flow-diagram-number, .flow-diagram-end .flow-diagram-number { left: 34px; transform: none; }
|
|
173
|
+
.flow-diagram-step { height: auto; min-height: 0; }
|
|
174
|
+
.flow-diagram-name { display: block; overflow: visible; }
|
|
175
|
+
.flow-diagram-test, .flow-diagram-state { margin-top: 0; }
|
|
176
|
+
.flow-diagram-otherwise {
|
|
177
|
+
position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal;
|
|
178
|
+
color: var(--ink-muted); font-size: var(--text-sm); line-height: 18px;
|
|
179
|
+
}
|
|
180
|
+
.flow-diagram-position + .flow-diagram-position::before {
|
|
181
|
+
top: -26px; left: 20px; width: 1px; height: calc(26px + var(--flow-head) - 6px);
|
|
182
|
+
}
|
|
183
|
+
.flow-diagram-position + .flow-diagram-position::after {
|
|
184
|
+
top: calc(var(--flow-head) - 7px); left: 16.5px;
|
|
185
|
+
border-left: 0; border-top: 7px solid var(--flow-line); border-inline: 4px solid transparent; border-bottom: 0;
|
|
186
|
+
}
|
|
187
|
+
.flow-diagram-position[data-reached]::after { border-top-color: var(--ink); }
|
|
188
|
+
.flow-diagram-position[data-together] .flow-diagram-lanes { padding-left: 28px; }
|
|
189
|
+
.flow-diagram-position[data-together] .flow-diagram-lanes::after { top: 0; bottom: 22px; left: 20px; right: auto; border-inline: 0; border-left: 1px solid var(--flow-line); }
|
|
190
|
+
.flow-diagram-position[data-together] .flow-diagram-step::before { top: 22px; left: -8px; right: auto; width: 8px; }
|
|
191
|
+
.flow-diagram-end-mark { margin: 0 0 0 calc(20.5px - var(--flow-end) / 2); }
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A page's diagram section: a flow drawn from its step rows. Each
|
|
3
|
+
* position is a column, left to right in the order a run takes them; the
|
|
4
|
+
* steps that share a position are its lanes, stacked, since they start
|
|
5
|
+
* together; and a branch, which goes on when its condition holds, has a
|
|
6
|
+
* second way for when it does not — to its `goto`, or to the end of the run.
|
|
7
|
+
*
|
|
8
|
+
* On a flow's own page it draws the flow. On the page of a record that runs
|
|
9
|
+
* flows it draws the record's run — its live one, else its newest — over the
|
|
10
|
+
* steps of the flow that run follows: what is done and when, where the run
|
|
11
|
+
* stands, and what it has not reached. A record with no run says so.
|
|
12
|
+
*
|
|
13
|
+
* The steps are read as the reader's rows through the page's own reads, so a
|
|
14
|
+
* step a row policy hides from them is not drawn: the diagram never says more
|
|
15
|
+
* than the steps table would. It draws what the rows say, not whether a run
|
|
16
|
+
* could take them; a row the form refused is the form's to say.
|
|
17
|
+
*
|
|
18
|
+
* It is HTML on a grid, not a picture: a title wraps to two lines in its
|
|
19
|
+
* box, the columns share the section's width, and where a column's share is
|
|
20
|
+
* too narrow for a box (a phone, a narrow panel, a long flow) it turns to run
|
|
21
|
+
* top to bottom — a container query on that share, so nothing is measured,
|
|
22
|
+
* the drawing neither waits a frame nor shifts once painted, and nothing is
|
|
23
|
+
* cut off or scrolls sideways. Being a list, it
|
|
24
|
+
* is its own text alternative: the steps in order, each with its kind, its
|
|
25
|
+
* words and where the run stands at it.
|
|
26
|
+
*
|
|
27
|
+
* The page hands it its reads, its frame and the steps table (PageSections.tsx),
|
|
28
|
+
* as it does the flows section, so this module does not join the page's import cycle.
|
|
29
|
+
*/
|
|
30
|
+
import type { ReactNode } from 'react';
|
|
31
|
+
import type { ServedFlowDiagram } from '@mistriwork/engine/shared/servedApp.js';
|
|
32
|
+
import type { TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
33
|
+
import type { FlowRun, FlowsApi } from './PageFlows.js';
|
|
34
|
+
import './PageFlowDiagram.css';
|
|
35
|
+
interface DiagramStep {
|
|
36
|
+
id: string;
|
|
37
|
+
position: number;
|
|
38
|
+
kind: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
goto?: number;
|
|
41
|
+
condition?: string;
|
|
42
|
+
}
|
|
43
|
+
/** Where a run stands at a step: walked, at it now, stopped on it, jumped over by a branch, or not reached. */
|
|
44
|
+
type StepState = 'done' | 'current' | 'stopped' | 'skipped' | 'ahead';
|
|
45
|
+
interface StepRun {
|
|
46
|
+
state: StepState;
|
|
47
|
+
/** When it was done: the latest moment of its run steps. */
|
|
48
|
+
at?: string;
|
|
49
|
+
}
|
|
50
|
+
interface DiagramProps {
|
|
51
|
+
base: TableMeta;
|
|
52
|
+
recordKey: Record<string, unknown>;
|
|
53
|
+
/** The binding as the App serves it for this page's table (shared/app.ts); none where it does not run here. */
|
|
54
|
+
diagram: ServedFlowDiagram | undefined;
|
|
55
|
+
/** The binding's steps table, as this reader's catalog has it; none where they cannot read it. */
|
|
56
|
+
steps: TableMeta | undefined;
|
|
57
|
+
api: FlowsApi;
|
|
58
|
+
/** An authoring preview has no flow to read: the section shows its shape. */
|
|
59
|
+
preview?: boolean;
|
|
60
|
+
frame: (body: ReactNode, broken?: string) => ReactNode;
|
|
61
|
+
loading: ReactNode;
|
|
62
|
+
}
|
|
63
|
+
/** The rows as steps, in the order a run takes them; a row with no position or kind is not a step a run could take. */
|
|
64
|
+
export declare function diagramSteps(rows: readonly Record<string, unknown>[]): DiagramStep[];
|
|
65
|
+
interface Column {
|
|
66
|
+
position: number;
|
|
67
|
+
/** Its place left to right, from 0. */
|
|
68
|
+
index: number;
|
|
69
|
+
lanes: DiagramStep[];
|
|
70
|
+
}
|
|
71
|
+
interface Way {
|
|
72
|
+
from: DiagramStep;
|
|
73
|
+
/** The column it leaves from, and the one it lands on: `columns.length` is the end. */
|
|
74
|
+
fromIndex: number;
|
|
75
|
+
toIndex: number;
|
|
76
|
+
to: number | 'end';
|
|
77
|
+
/** Its row under the lanes: each way after the first runs one lower, so two never draw over each other. */
|
|
78
|
+
row: number;
|
|
79
|
+
}
|
|
80
|
+
interface Layout {
|
|
81
|
+
columns: Column[];
|
|
82
|
+
ways: Way[];
|
|
83
|
+
}
|
|
84
|
+
/** Where everything goes: a column per position, and a branch's other way to the first column at or past its goto, else the end. */
|
|
85
|
+
export declare function layoutDiagram(steps: readonly DiagramStep[]): Layout;
|
|
86
|
+
/**
|
|
87
|
+
* Where the run stands at each step. The furthest position it has touched is
|
|
88
|
+
* where a live run is; a stopped run stopped there. Before it, a step it took
|
|
89
|
+
* is done and one it did not was jumped over by a branch; past it, nothing is
|
|
90
|
+
* reached — unless the run completed, when nothing more ever will be.
|
|
91
|
+
*/
|
|
92
|
+
export declare function runStates(steps: readonly DiagramStep[], run: FlowRun): Map<string, StepRun>;
|
|
93
|
+
/** The flow's steps, drawn: on a record's page, over its run. */
|
|
94
|
+
export declare function FlowDiagram({ base, recordKey, diagram, steps, api, preview, frame, loading }: DiagramProps): ReactNode;
|
|
95
|
+
export {};
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery } from '@tanstack/react-query';
|
|
3
|
+
import { formatDateTime } from '../locale.js';
|
|
4
|
+
import { Empty } from './Notes.js';
|
|
5
|
+
import { Icon } from './Icon.js';
|
|
6
|
+
import { say } from '../copy/record/components/PageFlowDiagram.js';
|
|
7
|
+
import './PageFlowDiagram.css';
|
|
8
|
+
/** The most steps one flow runs (shared/appFlows.ts): a flow with more runs none, so more are never drawn. */
|
|
9
|
+
const STEPS_MOST = 100;
|
|
10
|
+
/** The columns a step is drawn from, read where the table has them. */
|
|
11
|
+
const DRAWN = ['id', 'position', 'kind', 'title', 'goto', 'condition'];
|
|
12
|
+
const whole = (value) => {
|
|
13
|
+
const n = typeof value === 'number' ? value : typeof value === 'string' && value.trim() ? Number(value) : NaN;
|
|
14
|
+
return Number.isInteger(n) ? n : undefined;
|
|
15
|
+
};
|
|
16
|
+
const text = (value) => typeof value === 'string' && value.trim() ? value.trim() : typeof value === 'number' ? String(value) : undefined;
|
|
17
|
+
/** The rows as steps, in the order a run takes them; a row with no position or kind is not a step a run could take. */
|
|
18
|
+
export function diagramSteps(rows) {
|
|
19
|
+
const steps = [];
|
|
20
|
+
for (const row of rows) {
|
|
21
|
+
const position = whole(row.position);
|
|
22
|
+
const kind = text(row.kind);
|
|
23
|
+
if (position === undefined || kind === undefined)
|
|
24
|
+
continue;
|
|
25
|
+
const title = text(row.title);
|
|
26
|
+
const goto = whole(row.goto);
|
|
27
|
+
const condition = text(row.condition);
|
|
28
|
+
steps.push({
|
|
29
|
+
id: String(row.id ?? `${position}:${kind}`),
|
|
30
|
+
position,
|
|
31
|
+
kind,
|
|
32
|
+
...(title ? { title } : {}),
|
|
33
|
+
...(goto === undefined ? {} : { goto }),
|
|
34
|
+
...(condition ? { condition } : {}),
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
// As flowPlan orders them (shared/appFlows.ts), so a lane holds the place a run's step is named by.
|
|
38
|
+
return steps.sort((a, b) => a.position - b.position || a.id.localeCompare(b.id));
|
|
39
|
+
}
|
|
40
|
+
/** Where everything goes: a column per position, and a branch's other way to the first column at or past its goto, else the end. */
|
|
41
|
+
export function layoutDiagram(steps) {
|
|
42
|
+
const byPosition = new Map();
|
|
43
|
+
for (const step of steps)
|
|
44
|
+
byPosition.set(step.position, [...(byPosition.get(step.position) ?? []), step]);
|
|
45
|
+
const columns = [...byPosition.entries()].map(([position, lanes], index) => ({ position, index, lanes }));
|
|
46
|
+
const ways = columns
|
|
47
|
+
.flatMap((column) => column.lanes.filter((step) => step.kind === 'branch').map((step) => ({ step, column })))
|
|
48
|
+
.map(({ step, column }, row) => {
|
|
49
|
+
const goto = step.goto;
|
|
50
|
+
const target = goto === undefined ? undefined : columns.find((each) => each.position >= goto);
|
|
51
|
+
return {
|
|
52
|
+
from: step,
|
|
53
|
+
fromIndex: column.index,
|
|
54
|
+
toIndex: target ? target.index : columns.length,
|
|
55
|
+
to: target ? target.position : 'end',
|
|
56
|
+
row,
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
return { columns, ways };
|
|
60
|
+
}
|
|
61
|
+
/* A run step's name places it (server/recordFlows.ts): its position, and its lane where several share one. */
|
|
62
|
+
const laneOf = (step, columns) => columns.find((column) => column.position === step.position).lanes.indexOf(step) + 1;
|
|
63
|
+
/**
|
|
64
|
+
* Where the run stands at each step. The furthest position it has touched is
|
|
65
|
+
* where a live run is; a stopped run stopped there. Before it, a step it took
|
|
66
|
+
* is done and one it did not was jumped over by a branch; past it, nothing is
|
|
67
|
+
* reached — unless the run completed, when nothing more ever will be.
|
|
68
|
+
*/
|
|
69
|
+
export function runStates(steps, run) {
|
|
70
|
+
const { columns } = layoutDiagram(steps);
|
|
71
|
+
const placed = run.steps.filter((step) => typeof step.position === 'number');
|
|
72
|
+
const furthest = placed.length ? Math.max(...placed.map((step) => step.position)) : undefined;
|
|
73
|
+
const live = run.state === 'running' || run.state === 'waiting';
|
|
74
|
+
const states = new Map();
|
|
75
|
+
for (const step of steps) {
|
|
76
|
+
const lane = laneOf(step, columns);
|
|
77
|
+
const own = placed.filter((each) => each.position === step.position && (each.member ?? 1) === lane);
|
|
78
|
+
const at = own
|
|
79
|
+
.map((each) => each.at)
|
|
80
|
+
.sort()
|
|
81
|
+
.at(-1);
|
|
82
|
+
const finished = own.length > 0 && own.every((each) => each.status === 'completed');
|
|
83
|
+
let state;
|
|
84
|
+
if (own.some((each) => each.status === 'failed' || each.status === 'refused'))
|
|
85
|
+
state = 'stopped';
|
|
86
|
+
else if (furthest === undefined)
|
|
87
|
+
state = live && step.position === columns[0]?.position ? 'current' : 'ahead';
|
|
88
|
+
else if (step.position < furthest)
|
|
89
|
+
state = own.length ? 'done' : 'skipped';
|
|
90
|
+
else if (step.position > furthest)
|
|
91
|
+
state = run.state === 'completed' ? 'skipped' : 'ahead';
|
|
92
|
+
else if (live) {
|
|
93
|
+
// Lanes that start together: one already done while another is still out is done.
|
|
94
|
+
const others = placed.filter((each) => each.position === furthest && (each.member ?? 1) !== lane);
|
|
95
|
+
state = finished && others.some((each) => each.status === 'pending') ? 'done' : 'current';
|
|
96
|
+
}
|
|
97
|
+
else if (run.state === 'completed')
|
|
98
|
+
state = own.length ? 'done' : 'skipped';
|
|
99
|
+
else
|
|
100
|
+
state = finished ? 'done' : own.length ? 'stopped' : 'ahead';
|
|
101
|
+
states.set(step.id, state === 'done' && at ? { state, at } : { state });
|
|
102
|
+
}
|
|
103
|
+
return states;
|
|
104
|
+
}
|
|
105
|
+
/** The record's run the diagram draws: its live one, else its newest. */
|
|
106
|
+
const runToDraw = (runs) => runs.find((run) => run.state === 'running' || run.state === 'waiting') ?? runs[0];
|
|
107
|
+
/** The flow's steps, drawn: on a record's page, over its run. */
|
|
108
|
+
export function FlowDiagram({ base, recordKey, diagram, steps, api, preview, frame, loading }) {
|
|
109
|
+
const onRecord = diagram?.run === true;
|
|
110
|
+
const runs = useQuery({
|
|
111
|
+
queryKey: ['page-flows', base.id, recordKey],
|
|
112
|
+
queryFn: async () => (await api('/api/record-flows', { table: base.id, key: recordKey })),
|
|
113
|
+
enabled: !preview && onRecord,
|
|
114
|
+
staleTime: 0,
|
|
115
|
+
});
|
|
116
|
+
const run = onRecord ? runToDraw(runs.data?.runs ?? []) : undefined;
|
|
117
|
+
const flow = onRecord ? run?.flow : recordKey.id;
|
|
118
|
+
const readable = !preview && steps !== undefined && flow !== undefined && flow !== null;
|
|
119
|
+
const rows = useQuery({
|
|
120
|
+
queryKey: ['page-flow-diagram', base.id, steps?.id, flow],
|
|
121
|
+
enabled: readable,
|
|
122
|
+
queryFn: async () => {
|
|
123
|
+
const columns = DRAWN.filter((name) => steps.columns.some((column) => column.name === name));
|
|
124
|
+
const data = (await api('/api/query', {
|
|
125
|
+
table: steps.id,
|
|
126
|
+
columns,
|
|
127
|
+
filter: { groups: [[{ column: 'flow_id', op: '=', value: flow }]] },
|
|
128
|
+
limit: STEPS_MOST,
|
|
129
|
+
offset: 0,
|
|
130
|
+
}));
|
|
131
|
+
return data.rows ?? [];
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
if (preview)
|
|
135
|
+
return frame(_jsx(Empty, { text: say('stepsOfThisFlow') }));
|
|
136
|
+
if (onRecord) {
|
|
137
|
+
if (runs.isPending)
|
|
138
|
+
return loading;
|
|
139
|
+
if (runs.isError)
|
|
140
|
+
return frame(null, runs.error.message);
|
|
141
|
+
if (!run)
|
|
142
|
+
return frame(_jsx(Empty, { text: say('noRun') }));
|
|
143
|
+
}
|
|
144
|
+
if (!readable)
|
|
145
|
+
return frame(_jsx(Empty, { text: say('noSteps') }));
|
|
146
|
+
if (rows.isPending)
|
|
147
|
+
return loading;
|
|
148
|
+
if (rows.isError)
|
|
149
|
+
return frame(null, rows.error.message);
|
|
150
|
+
const drawn = diagramSteps(rows.data);
|
|
151
|
+
if (!drawn.length)
|
|
152
|
+
return frame(_jsx(Empty, { text: say('noSteps') }));
|
|
153
|
+
return frame(_jsx(Diagram, { steps: drawn, kinds: diagram?.kinds, run: run }));
|
|
154
|
+
}
|
|
155
|
+
const RUN_STATE = {
|
|
156
|
+
running: () => say('runRunning'),
|
|
157
|
+
waiting: () => say('runWaiting'),
|
|
158
|
+
completed: () => say('runCompleted'),
|
|
159
|
+
failed: () => say('runFailed'),
|
|
160
|
+
cancelled: () => say('runCancelled'),
|
|
161
|
+
diverged: () => say('runDiverged'),
|
|
162
|
+
};
|
|
163
|
+
/** A run's state as its dot says it: done is good news, a live one is under way, a stopped one is bad news. */
|
|
164
|
+
const RUN_TONE = {
|
|
165
|
+
completed: 'good',
|
|
166
|
+
running: 'info',
|
|
167
|
+
waiting: 'info',
|
|
168
|
+
failed: 'bad',
|
|
169
|
+
diverged: 'bad',
|
|
170
|
+
cancelled: 'neutral',
|
|
171
|
+
};
|
|
172
|
+
const moment = (iso) => {
|
|
173
|
+
const when = new Date(iso);
|
|
174
|
+
return Number.isNaN(when.getTime()) ? iso : formatDateTime(when, { month: 'short', day: 'numeric', hour: 'numeric', minute: '2-digit' });
|
|
175
|
+
};
|
|
176
|
+
/** A step's moment in the room a box has: its time today, its day before that; the whole moment is its tooltip. */
|
|
177
|
+
const briefly = (iso) => {
|
|
178
|
+
const when = new Date(iso);
|
|
179
|
+
if (Number.isNaN(when.getTime()))
|
|
180
|
+
return iso;
|
|
181
|
+
return when.toDateString() === new Date().toDateString()
|
|
182
|
+
? formatDateTime(when, { hour: 'numeric', minute: '2-digit' })
|
|
183
|
+
: formatDateTime(when, { month: 'short', day: 'numeric' });
|
|
184
|
+
};
|
|
185
|
+
function Diagram({ steps, kinds, run }) {
|
|
186
|
+
const { columns, ways } = layoutDiagram(steps);
|
|
187
|
+
const states = run ? runStates(steps, run) : undefined;
|
|
188
|
+
const stateOf = (step) => states?.get(step.id)?.state;
|
|
189
|
+
// A column the run has reached: the way into it is drawn in the ink, as the workflow strip's is (docs/design.md).
|
|
190
|
+
const reached = (column) => column.lanes.some((step) => ['done', 'current', 'stopped'].includes(stateOf(step) ?? ''));
|
|
191
|
+
const ended = run?.state === 'completed';
|
|
192
|
+
// Each column's way down, out of a branch or into its goto: both meet the ways' rows under the lanes.
|
|
193
|
+
const legs = new Map();
|
|
194
|
+
for (const way of ways) {
|
|
195
|
+
legs.set(way.fromIndex, { ...legs.get(way.fromIndex), out: true });
|
|
196
|
+
legs.set(way.toIndex, { ...legs.get(way.toIndex), in: true });
|
|
197
|
+
}
|
|
198
|
+
const most = Math.max(...columns.map((column) => column.lanes.length));
|
|
199
|
+
/* Every box is as tall as the fullest needs — a branch's test under its title, a run's word under that — so the
|
|
200
|
+
boxes of a row line up on the one line the way runs along, and the height is known before anything is drawn. */
|
|
201
|
+
const lines = (steps.some((step) => step.kind === 'branch' && step.title && step.condition) ? 1 : 0) + (run ? 1 : 0);
|
|
202
|
+
const style = { '--flow-n': columns.length, '--flow-most': most, '--flow-lines': lines, '--flow-ways': ways.length };
|
|
203
|
+
return (_jsxs("div", { className: "flow-diagram", "data-run": run ? run.state : undefined, style: style, children: [run && (_jsxs("p", { className: "flow-diagram-run", children: [_jsx("span", { className: "flow-diagram-run-name", children: run.name }), _jsx("span", { className: `tone tone-${RUN_TONE[run.state] ?? 'neutral'}`, children: RUN_STATE[run.state]?.() ?? run.state }), _jsx("time", { className: "flow-diagram-run-when", dateTime: run.startedAt, children: say('runStarted', { when: moment(run.startedAt) }) })] })), _jsx("div", { className: "flow-diagram-fit", children: _jsxs("div", { className: "flow-diagram-body", children: [_jsxs("ol", { className: "flow-diagram-flow", "aria-label": say('diagram'), children: [columns.map((column) => {
|
|
204
|
+
const together = column.lanes.length > 1;
|
|
205
|
+
const leg = legs.get(column.index);
|
|
206
|
+
return (_jsxs("li", { className: "flow-diagram-position", "data-position": column.position, "data-reached": reached(column) ? '' : undefined, "data-together": together ? '' : undefined, style: { '--flow-lanes': column.lanes.length, gridColumn: `${column.index * 3 + 1} / span 2` }, children: [_jsx("span", { className: "flow-diagram-number", children: say('position', { position: column.position }) }), _jsx("ul", { className: "flow-diagram-lanes", "aria-label": together ? say('together', { count: column.lanes.length }) : undefined, children: column.lanes.map((step) => (_jsx(StepBox, { step: step, kinds: kinds, run: states?.get(step.id), waiting: run?.state === 'waiting', way: ways.find((way) => way.from === step) }, step.id))) }), leg && _jsx("span", { className: "flow-diagram-leg", "aria-hidden": "true", "data-in": leg.in ? '' : undefined })] }, column.position));
|
|
207
|
+
}), _jsxs("li", { className: "flow-diagram-position flow-diagram-end", "data-position": "end", "data-reached": ended ? '' : undefined, style: { '--flow-lanes': 1, gridColumn: `${columns.length * 3 + 1} / span 2` }, children: [_jsx("span", { className: "flow-diagram-number", children: say('end') }), _jsx("span", { className: "flow-diagram-end-mark", "aria-hidden": "true" }), legs.get(columns.length) && _jsx("span", { className: "flow-diagram-leg", "aria-hidden": "true", "data-in": "" })] })] }), ways.length > 0 && (_jsx("div", { className: "flow-diagram-ways", "aria-hidden": "true", children: ways.map((way) => {
|
|
208
|
+
const [left, right] = [way.fromIndex, way.toIndex].sort((a, b) => a - b);
|
|
209
|
+
// Taken where the run went its other way: every step between was jumped over.
|
|
210
|
+
const between = steps.filter((step) => step.position > way.from.position && (way.to === 'end' || step.position < way.to));
|
|
211
|
+
const taken = Boolean(states) &&
|
|
212
|
+
stateOf(way.from) === 'done' &&
|
|
213
|
+
between.length > 0 &&
|
|
214
|
+
between.every((step) => stateOf(step) === 'skipped');
|
|
215
|
+
return (_jsx("span", { className: "flow-diagram-way", "data-branch": way.from.position, "data-to": way.to, "data-taken": taken ? '' : undefined, "data-back": way.toIndex < way.fromIndex ? '' : undefined, style: { gridColumn: `${left * 3 + 2} / ${right * 3 + 2}`, '--flow-way-row': way.row }, children: _jsx("span", { className: "flow-diagram-way-label", children: say('otherwise') }) }, way.from.id));
|
|
216
|
+
}) }))] }) })] }));
|
|
217
|
+
}
|
|
218
|
+
/** A step kind in words: the platform's own by name, an App's as its name reads ("sendOrder" is "Send order"). */
|
|
219
|
+
function kindWord(kind) {
|
|
220
|
+
switch (kind) {
|
|
221
|
+
case 'branch':
|
|
222
|
+
return say('kindBranch');
|
|
223
|
+
case 'wait':
|
|
224
|
+
return say('kindWait');
|
|
225
|
+
case 'until':
|
|
226
|
+
return say('kindUntil');
|
|
227
|
+
case 'waitFor':
|
|
228
|
+
return say('kindWaitFor');
|
|
229
|
+
case 'set':
|
|
230
|
+
return say('kindSet');
|
|
231
|
+
case 'notify':
|
|
232
|
+
return say('kindNotify');
|
|
233
|
+
default: {
|
|
234
|
+
const words = kind
|
|
235
|
+
.replace(/([a-z0-9])([A-Z])/g, '$1 $2')
|
|
236
|
+
.replace(/[_-]+/g, ' ')
|
|
237
|
+
.toLowerCase();
|
|
238
|
+
return words.charAt(0).toUpperCase() + words.slice(1);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
/* A quiet mark per kind, from the App icon set: a person's word for a kind that waits for one (an approval), a
|
|
243
|
+
spark for one that only runs a command, a branch drawn as the decision diamond flow charts have always used. */
|
|
244
|
+
const KIND_ICON = {
|
|
245
|
+
wait: 'hourglass',
|
|
246
|
+
until: 'calendar',
|
|
247
|
+
waitFor: 'bell',
|
|
248
|
+
set: 'pencil-simple',
|
|
249
|
+
notify: 'envelope',
|
|
250
|
+
};
|
|
251
|
+
const iconOf = (kind, kinds) => KIND_ICON[kind] ?? (kinds?.[kind] === 'asks' ? 'user-circle' : kinds?.[kind] === 'runs' ? 'lightning' : 'circle-dashed');
|
|
252
|
+
function stateWords(run, waiting) {
|
|
253
|
+
switch (run.state) {
|
|
254
|
+
case 'done':
|
|
255
|
+
return say('stateDone');
|
|
256
|
+
case 'current':
|
|
257
|
+
return waiting ? say('stateWaiting') : say('stateRunning');
|
|
258
|
+
case 'stopped':
|
|
259
|
+
return say('stateStopped');
|
|
260
|
+
case 'skipped':
|
|
261
|
+
return say('stateSkipped');
|
|
262
|
+
default:
|
|
263
|
+
return say('stateAhead');
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
const STATE_TONE = { done: 'good', current: 'info', stopped: 'bad' };
|
|
267
|
+
function StepBox({ step, kinds, run, waiting, way, }) {
|
|
268
|
+
const branch = step.kind === 'branch';
|
|
269
|
+
const kind = kindWord(step.kind);
|
|
270
|
+
const name = step.title ?? (branch && step.condition ? say('ifHolds', { condition: step.condition }) : kind);
|
|
271
|
+
// A branch says what it tests under its title; any other step says its kind above it.
|
|
272
|
+
const under = branch && step.title && step.condition ? say('ifHolds', { condition: step.condition }) : undefined;
|
|
273
|
+
const tone = run && STATE_TONE[run.state];
|
|
274
|
+
const otherwise = way && say('ifNot', { to: way.to === 'end' ? say('toEnd') : say('toStep', { position: way.to }) });
|
|
275
|
+
return (_jsxs("li", { className: "flow-diagram-step", "data-step": step.id, "data-kind": step.kind, "data-state": run?.state, title: [name, under, otherwise].filter(Boolean).join('\n'), children: [_jsxs("span", { className: "flow-diagram-kind", children: [branch ? _jsx("span", { className: "flow-diagram-diamond", "aria-hidden": "true" }) : _jsx(Icon, { name: iconOf(step.kind, kinds), size: 14 }), _jsx("span", { className: "flow-diagram-kind-word", children: kind })] }), _jsx("span", { className: "flow-diagram-name", children: name }), under && _jsx("span", { className: "flow-diagram-test", children: under }), run && (_jsxs("span", { className: "flow-diagram-state", children: [tone ? _jsx("span", { className: `tone tone-${tone}`, children: stateWords(run, waiting) }) : stateWords(run, waiting), run.at && (_jsxs(_Fragment, { children: [' ', _jsx("time", { className: "flow-diagram-when", dateTime: run.at, title: moment(run.at), children: briefly(run.at) })] }))] })), otherwise && _jsx("span", { className: "flow-diagram-otherwise", children: otherwise })] }));
|
|
276
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* A component's own rules, brought with it: after the base, before any look (style.css names the order). */
|
|
2
|
+
@layer components {
|
|
3
|
+
/* A record's flow runs: ruled like the history, one run per entry,
|
|
4
|
+
its steps a quiet list. A failed run's problem takes the danger colour.
|
|
5
|
+
Here, not in page.css: the section is a part loaded on demand, so its rules
|
|
6
|
+
arrive with it and no first page carries them. */
|
|
7
|
+
.flows { max-width: 46rem; margin-top: var(--space-2h); }
|
|
8
|
+
.flows-note { margin: 0; font-size: var(--text-base); color: var(--ink-muted); }
|
|
9
|
+
.flows-runs, .flows-steps { list-style: none; margin: 0; padding: 0; }
|
|
10
|
+
.flows-run { padding: var(--space-3) 0; border-top: 1px solid var(--line); }
|
|
11
|
+
.flows-run:first-child { border-top: 0; padding-top: var(--space-1); }
|
|
12
|
+
.flows-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); font-size: var(--text-base); line-height: 1.5; cursor: pointer; }
|
|
13
|
+
.flows-name { color: var(--ink); font-weight: 500; }
|
|
14
|
+
.flows-state { color: var(--ink-muted); }
|
|
15
|
+
.flows-state-failed { color: var(--status-critical); }
|
|
16
|
+
.flows-when { margin-left: auto; font: var(--text-xs) var(--mono); color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
|
|
17
|
+
.flows-wait { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--ink-muted); }
|
|
18
|
+
.flows-problem { margin: var(--space-2) 0 0; font-size: var(--text-base); color: var(--status-critical); }
|
|
19
|
+
.flows-steps { margin-top: var(--space-2h); }
|
|
20
|
+
.flows-step { display: flex; gap: var(--space-3); font-size: var(--text-sm); line-height: 1.6; }
|
|
21
|
+
.flows-step-label { color: var(--ink-muted); }
|
|
22
|
+
.flows-step-status { color: var(--ink-subtle); }
|
|
23
|
+
.flows-step-status::before { content: "· "; }
|
|
24
|
+
.flows-step-failed { color: var(--status-critical); }
|
|
25
|
+
.flows-start { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2h); padding-top: var(--space-3); }
|
|
26
|
+
.flows-start .flows-problem { margin: 0; flex-basis: 100%; }
|
|
27
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A page's flows section: the record's row-driven flow runs,
|
|
3
|
+
* newest first — each run's state, what it waits for, the problem a failed
|
|
4
|
+
* one stopped on, and its steps — and a button for each manual flow this
|
|
5
|
+
* reader may start. The server answers for this reader (server/recordFlows.ts):
|
|
6
|
+
* a record they cannot read has no runs for them, and a flow or step they
|
|
7
|
+
* cannot read is named by its number. This module only says what it was handed.
|
|
8
|
+
*
|
|
9
|
+
* `running: false` says the server has no `--jobs` host: the runs below
|
|
10
|
+
* would never move, so the section says how to get one rather than an
|
|
11
|
+
* empty list that reads as "nothing happened".
|
|
12
|
+
*
|
|
13
|
+
* The page hands it its reads and its frame (PageSections.tsx), as it does
|
|
14
|
+
* the history, so this module does not join the page's import cycle.
|
|
15
|
+
*/
|
|
16
|
+
import { type ReactNode } from 'react';
|
|
17
|
+
import type { TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
18
|
+
import './PageFlows.css';
|
|
19
|
+
export interface FlowRunStep {
|
|
20
|
+
label: string;
|
|
21
|
+
status: string;
|
|
22
|
+
at: string;
|
|
23
|
+
/** Where it stands in its flow, where its name says: the position, and its lane where several share one. */
|
|
24
|
+
position?: number;
|
|
25
|
+
member?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface FlowRun {
|
|
28
|
+
id: string;
|
|
29
|
+
flow: string;
|
|
30
|
+
name: string;
|
|
31
|
+
state: string;
|
|
32
|
+
waitingFor: string | null;
|
|
33
|
+
wakeAt: string | null;
|
|
34
|
+
problem: string | null;
|
|
35
|
+
startedAt: string;
|
|
36
|
+
updatedAt: string;
|
|
37
|
+
steps: FlowRunStep[];
|
|
38
|
+
}
|
|
39
|
+
/** A request through the page's connection, as `usePageApi` makes one. */
|
|
40
|
+
export type FlowsApi = (path: string, body: Record<string, unknown>) => Promise<unknown>;
|
|
41
|
+
interface FlowsProps {
|
|
42
|
+
base: TableMeta;
|
|
43
|
+
recordKey: Record<string, unknown>;
|
|
44
|
+
api: FlowsApi;
|
|
45
|
+
/** An authoring preview has no record to read: the section shows its shape. */
|
|
46
|
+
preview?: boolean;
|
|
47
|
+
/** The section's frame: its heading around `body`, or its heading and a problem where the read failed. */
|
|
48
|
+
frame: (body: ReactNode, broken?: string) => ReactNode;
|
|
49
|
+
/** What stands in the section while the first read is out. */
|
|
50
|
+
loading: ReactNode;
|
|
51
|
+
}
|
|
52
|
+
/** The record's flow runs, with a Start for each manual flow the reader may begin. */
|
|
53
|
+
export declare function RecordFlows({ base, recordKey, api, preview, frame, loading }: FlowsProps): ReactNode;
|
|
54
|
+
export {};
|