@mistriwork/kit 1.0.0-rc.10 → 1.0.0-rc.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/actionGrants.d.ts +21 -0
- package/dist/client/actionGrants.js +24 -0
- package/dist/client/addressMount.d.ts +67 -0
- package/dist/client/addressMount.js +136 -0
- package/dist/client/app.d.ts +10 -0
- package/dist/client/app.js +976 -0
- package/dist/client/boot.d.ts +1 -0
- package/dist/client/boot.js +37 -0
- package/dist/client/brandLook.css +125 -0
- package/dist/client/breakdownBatch.d.ts +34 -0
- package/dist/client/breakdownBatch.js +115 -0
- package/dist/client/bulkActions.d.ts +66 -0
- package/dist/client/bulkActions.js +171 -0
- package/dist/client/chart.d.ts +20 -0
- package/dist/client/chart.js +80 -0
- package/dist/client/clauses.d.ts +121 -0
- package/dist/client/clauses.js +276 -0
- package/dist/client/columns.d.ts +77 -0
- package/dist/client/columns.js +102 -0
- package/dist/client/components/Accordion.d.ts +26 -0
- package/dist/client/components/Accordion.js +44 -0
- package/dist/client/components/ApiOperations.d.ts +3 -0
- package/dist/client/components/ApiOperations.js +162 -0
- package/dist/client/components/AppColumnMenu.d.ts +66 -0
- package/dist/client/components/AppColumnMenu.js +59 -0
- package/dist/client/components/AppColumnMenuPopups.d.ts +21 -0
- package/dist/client/components/AppColumnMenuPopups.js +92 -0
- package/dist/client/components/AppFooter.css +17 -0
- package/dist/client/components/AppFooter.d.ts +23 -0
- package/dist/client/components/AppFooter.js +12 -0
- package/dist/client/components/AppIssues.d.ts +4 -0
- package/dist/client/components/AppIssues.js +18 -0
- package/dist/client/components/AppList.d.ts +20 -0
- package/dist/client/components/AppList.js +696 -0
- package/dist/client/components/AttachmentList.d.ts +45 -0
- package/dist/client/components/AttachmentList.js +178 -0
- package/dist/client/components/BoardList.css +9 -0
- package/dist/client/components/Breakdown.d.ts +11 -0
- package/dist/client/components/Breakdown.js +157 -0
- package/dist/client/components/BreakdownRoom.d.ts +4 -0
- package/dist/client/components/BreakdownRoom.js +48 -0
- package/dist/client/components/CardsList.d.ts +23 -0
- package/dist/client/components/CardsList.js +209 -0
- package/dist/client/components/Chart.css +165 -0
- package/dist/client/components/Chart.d.ts +194 -0
- package/dist/client/components/Chart.js +801 -0
- package/dist/client/components/ChartFigure.d.ts +82 -0
- package/dist/client/components/ChartFigure.js +102 -0
- package/dist/client/components/ChartShapes.css +213 -0
- package/dist/client/components/ChartShapes.d.ts +63 -0
- package/dist/client/components/ChartShapes.js +393 -0
- package/dist/client/components/Checklist.css +16 -0
- package/dist/client/components/Composer.d.ts +1 -0
- package/dist/client/components/Composer.js +331 -0
- package/dist/client/components/Content.d.ts +8 -0
- package/dist/client/components/Content.js +170 -0
- package/dist/client/components/CountedLabel.d.ts +10 -0
- package/dist/client/components/CountedLabel.js +26 -0
- package/dist/client/components/Crumbs.d.ts +11 -0
- package/dist/client/components/Crumbs.js +142 -0
- package/dist/client/components/DashboardList.css +7 -0
- package/dist/client/components/DashboardList.d.ts +9 -0
- package/dist/client/components/DashboardList.js +46 -0
- package/dist/client/components/DashboardNote.d.ts +21 -0
- package/dist/client/components/DashboardNote.js +22 -0
- package/dist/client/components/DateField.css +6 -0
- package/dist/client/components/DateField.d.ts +7 -0
- package/dist/client/components/DateField.js +27 -0
- package/dist/client/components/DefinedFields.d.ts +50 -0
- package/dist/client/components/DefinedFields.js +186 -0
- package/dist/client/components/DeleteButton.d.ts +30 -0
- package/dist/client/components/DeleteButton.js +198 -0
- package/dist/client/components/Diagram.d.ts +7 -0
- package/dist/client/components/Diagram.js +320 -0
- package/dist/client/components/Dressed.d.ts +31 -0
- package/dist/client/components/Dressed.js +138 -0
- package/dist/client/components/Dropdown.d.ts +14 -0
- package/dist/client/components/Dropdown.js +20 -0
- package/dist/client/components/EditLayoutButton.d.ts +13 -0
- package/dist/client/components/EditLayoutButton.js +7 -0
- package/dist/client/components/Editable.d.ts +47 -0
- package/dist/client/components/Editable.js +422 -0
- package/dist/client/components/ErrorBoundary.d.ts +40 -0
- package/dist/client/components/ErrorBoundary.js +41 -0
- package/dist/client/components/Export.d.ts +15 -0
- package/dist/client/components/Export.js +151 -0
- package/dist/client/components/ExportHold.d.ts +18 -0
- package/dist/client/components/ExportHold.js +30 -0
- package/dist/client/components/FavoriteStar.d.ts +5 -0
- package/dist/client/components/FavoriteStar.js +14 -0
- package/dist/client/components/FieldArranger.d.ts +28 -0
- package/dist/client/components/FieldArranger.js +82 -0
- package/dist/client/components/FilePreview.css +20 -0
- package/dist/client/components/FilePreview.d.ts +26 -0
- package/dist/client/components/FilePreview.js +170 -0
- package/dist/client/components/FilterBoxes.d.ts +76 -0
- package/dist/client/components/FilterBoxes.js +294 -0
- package/dist/client/components/FilterRail.css +100 -0
- package/dist/client/components/FilterRail.d.ts +61 -0
- package/dist/client/components/FilterRail.js +559 -0
- package/dist/client/components/Gallery.d.ts +11 -0
- package/dist/client/components/Gallery.js +53 -0
- package/dist/client/components/Grid.d.ts +122 -0
- package/dist/client/components/Grid.js +1115 -0
- package/dist/client/components/GridCellEditor.d.ts +35 -0
- package/dist/client/components/GridCellEditor.js +291 -0
- package/dist/client/components/GridSelection.d.ts +16 -0
- package/dist/client/components/GridSelection.js +28 -0
- package/dist/client/components/HelpPanel.d.ts +5 -0
- package/dist/client/components/HelpPanel.js +92 -0
- package/dist/client/components/History.d.ts +10 -0
- package/dist/client/components/History.js +22 -0
- package/dist/client/components/Icon.d.ts +31 -0
- package/dist/client/components/Icon.js +20 -0
- package/dist/client/components/JsonPreview.d.ts +5 -0
- package/dist/client/components/JsonPreview.js +25 -0
- package/dist/client/components/JsonValue.d.ts +4 -0
- package/dist/client/components/JsonValue.js +3 -0
- package/dist/client/components/JsonView.css +109 -0
- package/dist/client/components/JsonView.d.ts +3 -0
- package/dist/client/components/JsonView.js +118 -0
- package/dist/client/components/Landing.d.ts +19 -0
- package/dist/client/components/Landing.js +55 -0
- package/dist/client/components/LandingSurface.css +177 -0
- package/dist/client/components/LandingSurface.d.ts +42 -0
- package/dist/client/components/LandingSurface.js +108 -0
- package/dist/client/components/LayoutBuilder.d.ts +36 -0
- package/dist/client/components/LayoutBuilder.js +104 -0
- package/dist/client/components/Lightbox.d.ts +29 -0
- package/dist/client/components/Lightbox.js +62 -0
- package/dist/client/components/ListEmpty.css +13 -0
- package/dist/client/components/ListEmpty.d.ts +10 -0
- package/dist/client/components/ListEmpty.js +8 -0
- package/dist/client/components/ListFilterBar.css +76 -0
- package/dist/client/components/ListFilterBar.d.ts +52 -0
- package/dist/client/components/ListFilterBar.js +304 -0
- package/dist/client/components/LiveNotices.css +105 -0
- package/dist/client/components/LiveNotices.d.ts +26 -0
- package/dist/client/components/LiveNotices.js +211 -0
- package/dist/client/components/MinorMoneyInput.d.ts +26 -0
- package/dist/client/components/MinorMoneyInput.js +50 -0
- package/dist/client/components/Modal.css +3 -0
- package/dist/client/components/MultiStepForm.css +122 -0
- package/dist/client/components/MultiStepForm.d.ts +59 -0
- package/dist/client/components/MultiStepForm.js +216 -0
- package/dist/client/components/NavGlyph.d.ts +14 -0
- package/dist/client/components/NavGlyph.js +27 -0
- package/dist/client/components/Nested.d.ts +21 -0
- package/dist/client/components/Nested.js +86 -0
- package/dist/client/components/NewRecord.d.ts +89 -0
- package/dist/client/components/NewRecord.js +897 -0
- package/dist/client/components/NewRecordButton.d.ts +13 -0
- package/dist/client/components/NewRecordButton.js +28 -0
- package/dist/client/components/Notes.css +39 -0
- package/dist/client/components/Notes.d.ts +59 -0
- package/dist/client/components/Notes.js +96 -0
- package/dist/client/components/OverflowMenu.d.ts +3 -0
- package/dist/client/components/OverflowMenu.js +60 -0
- package/dist/client/components/Page.d.ts +52 -0
- package/dist/client/components/Page.js +237 -0
- package/dist/client/components/PageCurrent.d.ts +38 -0
- package/dist/client/components/PageCurrent.js +27 -0
- package/dist/client/components/PageEmptyRun.d.ts +18 -0
- package/dist/client/components/PageEmptyRun.js +118 -0
- package/dist/client/components/PageFields.d.ts +3 -0
- package/dist/client/components/PageFields.js +294 -0
- package/dist/client/components/PageFlowDiagram.css +193 -0
- package/dist/client/components/PageFlowDiagram.d.ts +95 -0
- package/dist/client/components/PageFlowDiagram.js +276 -0
- package/dist/client/components/PageFlows.css +27 -0
- package/dist/client/components/PageFlows.d.ts +54 -0
- package/dist/client/components/PageFlows.js +92 -0
- package/dist/client/components/PageGroups.d.ts +43 -0
- package/dist/client/components/PageGroups.js +123 -0
- package/dist/client/components/PageHead.d.ts +28 -0
- package/dist/client/components/PageHead.js +279 -0
- package/dist/client/components/PageHeadline.d.ts +23 -0
- package/dist/client/components/PageHeadline.js +101 -0
- package/dist/client/components/PageHistory.d.ts +62 -0
- package/dist/client/components/PageHistory.js +160 -0
- package/dist/client/components/PageLayout.d.ts +22 -0
- package/dist/client/components/PageLayout.js +13 -0
- package/dist/client/components/PageMetrics.d.ts +11 -0
- package/dist/client/components/PageMetrics.js +252 -0
- package/dist/client/components/PageRelated.d.ts +70 -0
- package/dist/client/components/PageRelated.js +667 -0
- package/dist/client/components/PageRoom.d.ts +37 -0
- package/dist/client/components/PageRoom.js +277 -0
- package/dist/client/components/PageSectionBox.d.ts +28 -0
- package/dist/client/components/PageSectionBox.js +65 -0
- package/dist/client/components/PageSections.d.ts +38 -0
- package/dist/client/components/PageSections.js +352 -0
- package/dist/client/components/PageSkeleton.css +17 -0
- package/dist/client/components/PageSkeleton.d.ts +11 -0
- package/dist/client/components/PageSkeleton.js +25 -0
- package/dist/client/components/PageTimeline.d.ts +2 -0
- package/dist/client/components/PageTimeline.js +273 -0
- package/dist/client/components/Palette.d.ts +4 -0
- package/dist/client/components/Palette.js +176 -0
- package/dist/client/components/Peek.d.ts +1 -0
- package/dist/client/components/Peek.js +158 -0
- package/dist/client/components/PeekPanel.d.ts +16 -0
- package/dist/client/components/PeekPanel.js +120 -0
- package/dist/client/components/Picker.d.ts +13 -0
- package/dist/client/components/Picker.js +33 -0
- package/dist/client/components/Prefs.d.ts +3 -0
- package/dist/client/components/Prefs.js +121 -0
- package/dist/client/components/PresentationSwitch.d.ts +13 -0
- package/dist/client/components/PresentationSwitch.js +10 -0
- package/dist/client/components/Prompt.d.ts +35 -0
- package/dist/client/components/Prompt.js +114 -0
- package/dist/client/components/QrCode.css +11 -0
- package/dist/client/components/QrCode.d.ts +4 -0
- package/dist/client/components/QrCode.js +57 -0
- package/dist/client/components/QueueList.css +122 -0
- package/dist/client/components/QuickAdd.css +18 -0
- package/dist/client/components/QuickAdd.d.ts +11 -0
- package/dist/client/components/QuickAdd.js +53 -0
- package/dist/client/components/QuickAddOnDemand.d.ts +4 -0
- package/dist/client/components/QuickAddOnDemand.js +10 -0
- package/dist/client/components/Record.d.ts +36 -0
- package/dist/client/components/Record.js +385 -0
- package/dist/client/components/RecordGone.d.ts +7 -0
- package/dist/client/components/RecordGone.js +22 -0
- package/dist/client/components/RecordPicker.d.ts +59 -0
- package/dist/client/components/RecordPicker.js +299 -0
- package/dist/client/components/RecordSummaries.d.ts +55 -0
- package/dist/client/components/RecordSummaries.js +151 -0
- package/dist/client/components/RecordTags.d.ts +6 -0
- package/dist/client/components/RecordTags.js +119 -0
- package/dist/client/components/RecordTrailNav.d.ts +25 -0
- package/dist/client/components/RecordTrailNav.js +110 -0
- package/dist/client/components/RichText.d.ts +7 -0
- package/dist/client/components/RichText.js +82 -0
- package/dist/client/components/RichTextEditor.css +202 -0
- package/dist/client/components/RichTextEditor.d.ts +33 -0
- package/dist/client/components/RichTextEditor.js +348 -0
- package/dist/client/components/RichTextField.d.ts +26 -0
- package/dist/client/components/RichTextField.js +71 -0
- package/dist/client/components/Rooms.d.ts +35 -0
- package/dist/client/components/Rooms.js +276 -0
- package/dist/client/components/RowActions.d.ts +8 -0
- package/dist/client/components/RowActions.js +49 -0
- package/dist/client/components/RowHost.d.ts +110 -0
- package/dist/client/components/RowHost.js +212 -0
- package/dist/client/components/SavedViews.d.ts +25 -0
- package/dist/client/components/SavedViews.js +35 -0
- package/dist/client/components/SchemaExport.d.ts +15 -0
- package/dist/client/components/SchemaExport.js +42 -0
- package/dist/client/components/SectionPeriod.css +14 -0
- package/dist/client/components/SectionPeriod.d.ts +7 -0
- package/dist/client/components/SectionPeriod.js +14 -0
- package/dist/client/components/SetFieldDialog.d.ts +12 -0
- package/dist/client/components/SetFieldDialog.js +51 -0
- package/dist/client/components/Sidebar.d.ts +34 -0
- package/dist/client/components/Sidebar.js +398 -0
- package/dist/client/components/Skeleton.d.ts +35 -0
- package/dist/client/components/Skeleton.js +49 -0
- package/dist/client/components/SortMenu.d.ts +20 -0
- package/dist/client/components/SortMenu.js +45 -0
- package/dist/client/components/SplitListDetail.css +119 -0
- package/dist/client/components/SuggestBox.d.ts +29 -0
- package/dist/client/components/SuggestBox.js +60 -0
- package/dist/client/components/Summary.d.ts +14 -0
- package/dist/client/components/Summary.js +93 -0
- package/dist/client/components/TableRoom.d.ts +88 -0
- package/dist/client/components/TableRoom.js +246 -0
- package/dist/client/components/TableView.d.ts +111 -0
- package/dist/client/components/TableView.js +324 -0
- package/dist/client/components/ThMenu.d.ts +40 -0
- package/dist/client/components/ThMenu.js +163 -0
- package/dist/client/components/ThemeLab.d.ts +4 -0
- package/dist/client/components/ThemeLab.js +67 -0
- package/dist/client/components/TimelineSides.css +23 -0
- package/dist/client/components/TimelineSides.d.ts +7 -0
- package/dist/client/components/TimelineSides.js +9 -0
- package/dist/client/components/Tour.d.ts +12 -0
- package/dist/client/components/Tour.js +131 -0
- package/dist/client/components/Value.d.ts +38 -0
- package/dist/client/components/Value.js +172 -0
- package/dist/client/components/WorkPanel.d.ts +9 -0
- package/dist/client/components/WorkPanel.js +43 -0
- package/dist/client/components/WorkflowStatus.d.ts +6 -0
- package/dist/client/components/WorkflowStatus.js +44 -0
- package/dist/client/components/WriteConfirm.d.ts +4 -0
- package/dist/client/components/WriteConfirm.js +27 -0
- package/dist/client/components/appColumnMenuModel.d.ts +46 -0
- package/dist/client/components/appColumnMenuModel.js +51 -0
- package/dist/client/components/appListModel.d.ts +179 -0
- package/dist/client/components/appListModel.js +421 -0
- package/dist/client/components/appRooms.d.ts +106 -0
- package/dist/client/components/appRooms.js +133 -0
- package/dist/client/components/autoChart.d.ts +33 -0
- package/dist/client/components/autoChart.js +107 -0
- package/dist/client/components/avatarPhotos.d.ts +45 -0
- package/dist/client/components/avatarPhotos.js +93 -0
- package/dist/client/components/besideDetail.d.ts +1 -0
- package/dist/client/components/besideDetail.js +10 -0
- package/dist/client/components/boardNew.d.ts +2 -0
- package/dist/client/components/boardNew.js +8 -0
- package/dist/client/components/cardsModel.d.ts +11 -0
- package/dist/client/components/cardsModel.js +24 -0
- package/dist/client/components/chromeIcons.d.ts +16 -0
- package/dist/client/components/chromeIcons.js +16 -0
- package/dist/client/components/columnPresentation.d.ts +8 -0
- package/dist/client/components/columnPresentation.js +47 -0
- package/dist/client/components/componentSlot.d.ts +31 -0
- package/dist/client/components/componentSlot.js +76 -0
- package/dist/client/components/composerDraft.d.ts +16 -0
- package/dist/client/components/composerDraft.js +16 -0
- package/dist/client/components/conditionText.d.ts +14 -0
- package/dist/client/components/conditionText.js +45 -0
- package/dist/client/components/conditionWords.d.ts +37 -0
- package/dist/client/components/conditionWords.js +382 -0
- package/dist/client/components/crumbSlot.d.ts +14 -0
- package/dist/client/components/crumbSlot.js +49 -0
- package/dist/client/components/dashboardModel.d.ts +283 -0
- package/dist/client/components/dashboardModel.js +415 -0
- package/dist/client/components/dashboardParts.d.ts +9 -0
- package/dist/client/components/dashboardParts.js +18 -0
- package/dist/client/components/diagramModel.d.ts +83 -0
- package/dist/client/components/diagramModel.js +211 -0
- package/dist/client/components/dueOpen.d.ts +1 -0
- package/dist/client/components/dueOpen.js +23 -0
- package/dist/client/components/editInteraction.d.ts +20 -0
- package/dist/client/components/editInteraction.js +178 -0
- package/dist/client/components/favoriteNav.d.ts +6 -0
- package/dist/client/components/favoriteNav.js +31 -0
- package/dist/client/components/favorites.d.ts +23 -0
- package/dist/client/components/favorites.js +86 -0
- package/dist/client/components/filePreviewModel.d.ts +18 -0
- package/dist/client/components/filePreviewModel.js +21 -0
- package/dist/client/components/filterRailModel.d.ts +93 -0
- package/dist/client/components/filterRailModel.js +302 -0
- package/dist/client/components/formControlsStyle.d.ts +1 -0
- package/dist/client/components/formControlsStyle.js +3 -0
- package/dist/client/components/formDefaults.d.ts +17 -0
- package/dist/client/components/formDefaults.js +128 -0
- package/dist/client/components/gridArrange.d.ts +33 -0
- package/dist/client/components/gridArrange.js +62 -0
- package/dist/client/components/gridCellModel.d.ts +32 -0
- package/dist/client/components/gridCellModel.js +42 -0
- package/dist/client/components/gridSizing.d.ts +89 -0
- package/dist/client/components/gridSizing.js +295 -0
- package/dist/client/components/groupMoves.d.ts +44 -0
- package/dist/client/components/groupMoves.js +295 -0
- package/dist/client/components/groupOrder.d.ts +43 -0
- package/dist/client/components/groupOrder.js +63 -0
- package/dist/client/components/inputRenderers.d.ts +48 -0
- package/dist/client/components/inputRenderers.js +37 -0
- package/dist/client/components/intakeStyle.d.ts +2 -0
- package/dist/client/components/intakeStyle.js +6 -0
- package/dist/client/components/jsonModel.d.ts +98 -0
- package/dist/client/components/jsonModel.js +264 -0
- package/dist/client/components/listColumn.d.ts +20 -0
- package/dist/client/components/listColumn.js +31 -0
- package/dist/client/components/listNavigation.d.ts +16 -0
- package/dist/client/components/listNavigation.js +14 -0
- package/dist/client/components/mentionRows.d.ts +5 -0
- package/dist/client/components/mentionRows.js +62 -0
- package/dist/client/components/mount.d.ts +55 -0
- package/dist/client/components/mount.js +155 -0
- package/dist/client/components/myViews.d.ts +54 -0
- package/dist/client/components/myViews.js +82 -0
- package/dist/client/components/navCounts.d.ts +84 -0
- package/dist/client/components/navCounts.js +194 -0
- package/dist/client/components/navigationTree.d.ts +52 -0
- package/dist/client/components/navigationTree.js +49 -0
- package/dist/client/components/newMenuModel.d.ts +27 -0
- package/dist/client/components/newMenuModel.js +58 -0
- package/dist/client/components/newRecordModel.d.ts +58 -0
- package/dist/client/components/newRecordModel.js +232 -0
- package/dist/client/components/onDemand.d.ts +30 -0
- package/dist/client/components/onDemand.js +121 -0
- package/dist/client/components/optimisticMoves.d.ts +21 -0
- package/dist/client/components/optimisticMoves.js +145 -0
- package/dist/client/components/pageContext.d.ts +154 -0
- package/dist/client/components/pageContext.js +47 -0
- package/dist/client/components/pageFieldsRead.d.ts +67 -0
- package/dist/client/components/pageFieldsRead.js +55 -0
- package/dist/client/components/pageModel.d.ts +203 -0
- package/dist/client/components/pageModel.js +67 -0
- package/dist/client/components/pageStep.d.ts +31 -0
- package/dist/client/components/pageStep.js +15 -0
- package/dist/client/components/paletteModel.d.ts +9 -0
- package/dist/client/components/paletteModel.js +46 -0
- package/dist/client/components/pickerStaleness.d.ts +32 -0
- package/dist/client/components/pickerStaleness.js +27 -0
- package/dist/client/components/placeOrder.d.ts +47 -0
- package/dist/client/components/placeOrder.js +71 -0
- package/dist/client/components/pointerDrag.d.ts +54 -0
- package/dist/client/components/pointerDrag.js +95 -0
- package/dist/client/components/presentationFit.d.ts +19 -0
- package/dist/client/components/presentationFit.js +32 -0
- package/dist/client/components/recordKeys.d.ts +2 -0
- package/dist/client/components/recordKeys.js +8 -0
- package/dist/client/components/recordSearch.d.ts +31 -0
- package/dist/client/components/recordSearch.js +80 -0
- package/dist/client/components/recordSurface.d.ts +86 -0
- package/dist/client/components/recordSurface.js +267 -0
- package/dist/client/components/rowOpens.d.ts +19 -0
- package/dist/client/components/rowOpens.js +25 -0
- package/dist/client/components/sidebarModel.d.ts +152 -0
- package/dist/client/components/sidebarModel.js +372 -0
- package/dist/client/components/suggestModel.d.ts +22 -0
- package/dist/client/components/suggestModel.js +49 -0
- package/dist/client/components/suggestPart.d.ts +4 -0
- package/dist/client/components/suggestPart.js +4 -0
- package/dist/client/components/textMeasure.d.ts +2 -0
- package/dist/client/components/textMeasure.js +35 -0
- package/dist/client/components/unknownIcon.d.ts +8 -0
- package/dist/client/components/unknownIcon.js +32 -0
- package/dist/client/components/useBulkSelection.d.ts +30 -0
- package/dist/client/components/useBulkSelection.js +360 -0
- package/dist/client/components/useConditionWords.d.ts +17 -0
- package/dist/client/components/useConditionWords.js +104 -0
- package/dist/client/components/useGridKeyboard.d.ts +32 -0
- package/dist/client/components/useGridKeyboard.js +223 -0
- package/dist/client/components/useListOrder.d.ts +94 -0
- package/dist/client/components/useListOrder.js +294 -0
- package/dist/client/components/useMediaQuery.d.ts +10 -0
- package/dist/client/components/useMediaQuery.js +45 -0
- package/dist/client/components/useMessageLanguage.d.ts +1 -0
- package/dist/client/components/useMessageLanguage.js +6 -0
- package/dist/client/components/usePins.d.ts +20 -0
- package/dist/client/components/usePins.js +66 -0
- package/dist/client/components/usePointerDrag.d.ts +72 -0
- package/dist/client/components/usePointerDrag.js +553 -0
- package/dist/client/components/useRecordInsert.d.ts +42 -0
- package/dist/client/components/useRecordInsert.js +145 -0
- package/dist/client/components/useRowWindow.d.ts +35 -0
- package/dist/client/components/useRowWindow.js +149 -0
- package/dist/client/components/useStickyHead.d.ts +17 -0
- package/dist/client/components/useStickyHead.js +65 -0
- package/dist/client/components/useTabFold.d.ts +32 -0
- package/dist/client/components/useTabFold.js +145 -0
- package/dist/client/components/valueModel.d.ts +300 -0
- package/dist/client/components/valueModel.js +560 -0
- package/dist/client/components/valueRenderers.d.ts +36 -0
- package/dist/client/components/valueRenderers.js +13 -0
- package/dist/client/components/viewLink.d.ts +27 -0
- package/dist/client/components/viewLink.js +79 -0
- package/dist/client/components/walk.d.ts +14 -0
- package/dist/client/components/walk.js +16 -0
- package/dist/client/compose.d.ts +8 -0
- package/dist/client/compose.js +163 -0
- package/dist/client/composedHook.d.ts +20 -0
- package/dist/client/composedHook.js +12 -0
- package/dist/client/composedReads.d.ts +26 -0
- package/dist/client/composedReads.js +183 -0
- package/dist/client/composer.css +499 -0
- package/dist/client/composer.d.ts +121 -0
- package/dist/client/composer.js +1079 -0
- package/dist/client/composerEntry.d.ts +1 -0
- package/dist/client/composerEntry.js +58 -0
- package/dist/client/composerTab.d.ts +6 -0
- package/dist/client/composerTab.js +20 -0
- package/dist/client/conditions.d.ts +46 -0
- package/dist/client/conditions.js +150 -0
- package/dist/client/connectionList.d.ts +11 -0
- package/dist/client/connectionList.js +146 -0
- package/dist/client/connectionScope.d.ts +6 -0
- package/dist/client/connectionScope.js +14 -0
- package/dist/client/connectionTransition.d.ts +12 -0
- package/dist/client/connectionTransition.js +41 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenu.d.ts +4 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenu.js +6 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenuPopups.d.ts +4 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenuPopups.js +6 -0
- package/dist/client/copy/columnMenu/components/ThMenu.d.ts +35 -0
- package/dist/client/copy/columnMenu/components/ThMenu.js +37 -0
- package/dist/client/copy/columnMenu/components/appColumnMenuModel.d.ts +10 -0
- package/dist/client/copy/columnMenu/components/appColumnMenuModel.js +12 -0
- package/dist/client/copy/dashboards/breakdownBatch.d.ts +3 -0
- package/dist/client/copy/dashboards/breakdownBatch.js +5 -0
- package/dist/client/copy/dashboards/components/Breakdown.d.ts +32 -0
- package/dist/client/copy/dashboards/components/Breakdown.js +25 -0
- package/dist/client/copy/dashboards/components/BreakdownRoom.d.ts +3 -0
- package/dist/client/copy/dashboards/components/BreakdownRoom.js +5 -0
- package/dist/client/copy/dashboards/components/Chart.d.ts +26 -0
- package/dist/client/copy/dashboards/components/Chart.js +19 -0
- package/dist/client/copy/dashboards/components/ChartShapes.d.ts +16 -0
- package/dist/client/copy/dashboards/components/ChartShapes.js +12 -0
- package/dist/client/copy/dashboards/components/PageMetrics.d.ts +21 -0
- package/dist/client/copy/dashboards/components/PageMetrics.js +20 -0
- package/dist/client/copy/dashboards/components/SectionPeriod.d.ts +4 -0
- package/dist/client/copy/dashboards/components/SectionPeriod.js +6 -0
- package/dist/client/copy/dashboards/components/dashboardModel.d.ts +3 -0
- package/dist/client/copy/dashboards/components/dashboardModel.js +5 -0
- package/dist/client/copy/es.d.ts +11 -0
- package/dist/client/copy/es.js +60 -0
- package/dist/client/copy/filters/components/FilterBoxes.d.ts +10 -0
- package/dist/client/copy/filters/components/FilterBoxes.js +12 -0
- package/dist/client/copy/filters/components/FilterRail.d.ts +16 -0
- package/dist/client/copy/filters/components/FilterRail.js +18 -0
- package/dist/client/copy/filters/components/ListFilterBar.d.ts +9 -0
- package/dist/client/copy/filters/components/ListFilterBar.js +11 -0
- package/dist/client/copy/filters/components/conditionWords.d.ts +46 -0
- package/dist/client/copy/filters/components/conditionWords.js +95 -0
- package/dist/client/copy/filters/components/filterRailModel.d.ts +12 -0
- package/dist/client/copy/filters/components/filterRailModel.js +14 -0
- package/dist/client/copy/forms/components/DateField.d.ts +13 -0
- package/dist/client/copy/forms/components/DateField.js +15 -0
- package/dist/client/copy/forms/components/MinorMoneyInput.d.ts +4 -0
- package/dist/client/copy/forms/components/MinorMoneyInput.js +6 -0
- package/dist/client/copy/forms/components/MultiStepForm.d.ts +10 -0
- package/dist/client/copy/forms/components/MultiStepForm.js +12 -0
- package/dist/client/copy/forms/components/NewRecord.d.ts +29 -0
- package/dist/client/copy/forms/components/NewRecord.js +31 -0
- package/dist/client/copy/forms/components/NewRecordButton.d.ts +6 -0
- package/dist/client/copy/forms/components/NewRecordButton.js +8 -0
- package/dist/client/copy/forms/components/Picker.d.ts +4 -0
- package/dist/client/copy/forms/components/Picker.js +6 -0
- package/dist/client/copy/forms/components/QuickAdd.d.ts +3 -0
- package/dist/client/copy/forms/components/QuickAdd.js +5 -0
- package/dist/client/copy/forms/components/RecordPicker.d.ts +6 -0
- package/dist/client/copy/forms/components/RecordPicker.js +8 -0
- package/dist/client/copy/forms/components/RichTextEditor.d.ts +36 -0
- package/dist/client/copy/forms/components/RichTextEditor.js +40 -0
- package/dist/client/copy/forms/components/RichTextField.d.ts +3 -0
- package/dist/client/copy/forms/components/RichTextField.js +5 -0
- package/dist/client/copy/forms/components/SetFieldDialog.d.ts +10 -0
- package/dist/client/copy/forms/components/SetFieldDialog.js +9 -0
- package/dist/client/copy/forms/components/useRecordInsert.d.ts +7 -0
- package/dist/client/copy/forms/components/useRecordInsert.js +9 -0
- package/dist/client/copy/help/helpContent.d.ts +71 -0
- package/dist/client/copy/help/helpContent.js +73 -0
- package/dist/client/copy/lists/bulkActions.d.ts +12 -0
- package/dist/client/copy/lists/bulkActions.js +14 -0
- package/dist/client/copy/lists/components/AppList.d.ts +28 -0
- package/dist/client/copy/lists/components/AppList.js +30 -0
- package/dist/client/copy/lists/components/CardsList.d.ts +3 -0
- package/dist/client/copy/lists/components/CardsList.js +5 -0
- package/dist/client/copy/lists/components/Gallery.d.ts +7 -0
- package/dist/client/copy/lists/components/Gallery.js +9 -0
- package/dist/client/copy/lists/components/Grid.d.ts +30 -0
- package/dist/client/copy/lists/components/Grid.js +29 -0
- package/dist/client/copy/lists/components/GridCellEditor.d.ts +5 -0
- package/dist/client/copy/lists/components/GridCellEditor.js +7 -0
- package/dist/client/copy/lists/components/GridSelection.d.ts +4 -0
- package/dist/client/copy/lists/components/GridSelection.js +6 -0
- package/dist/client/copy/lists/components/Nested.d.ts +7 -0
- package/dist/client/copy/lists/components/Nested.js +9 -0
- package/dist/client/copy/lists/components/RowActions.d.ts +1 -0
- package/dist/client/copy/lists/components/RowActions.js +3 -0
- package/dist/client/copy/lists/components/SavedViews.d.ts +5 -0
- package/dist/client/copy/lists/components/SavedViews.js +7 -0
- package/dist/client/copy/lists/components/SortMenu.d.ts +5 -0
- package/dist/client/copy/lists/components/SortMenu.js +7 -0
- package/dist/client/copy/lists/components/TableRoom.d.ts +12 -0
- package/dist/client/copy/lists/components/TableRoom.js +14 -0
- package/dist/client/copy/lists/components/TableView.d.ts +37 -0
- package/dist/client/copy/lists/components/TableView.js +39 -0
- package/dist/client/copy/lists/components/appListModel.d.ts +6 -0
- package/dist/client/copy/lists/components/appListModel.js +5 -0
- package/dist/client/copy/lists/components/myViews.d.ts +4 -0
- package/dist/client/copy/lists/components/myViews.js +6 -0
- package/dist/client/copy/lists/components/placeOrder.d.ts +4 -0
- package/dist/client/copy/lists/components/placeOrder.js +6 -0
- package/dist/client/copy/lists/components/useBulkSelection.d.ts +20 -0
- package/dist/client/copy/lists/components/useBulkSelection.js +16 -0
- package/dist/client/copy/lists/components/useListOrder.d.ts +7 -0
- package/dist/client/copy/lists/components/useListOrder.js +9 -0
- package/dist/client/copy/public/components/appRooms.d.ts +3 -0
- package/dist/client/copy/public/components/appRooms.js +5 -0
- package/dist/client/copy/record/components/Actions.d.ts +13 -0
- package/dist/client/copy/record/components/Actions.js +15 -0
- package/dist/client/copy/record/components/AttachmentList.d.ts +23 -0
- package/dist/client/copy/record/components/AttachmentList.js +22 -0
- package/dist/client/copy/record/components/DeleteButton.d.ts +22 -0
- package/dist/client/copy/record/components/DeleteButton.js +24 -0
- package/dist/client/copy/record/components/Dressed.d.ts +5 -0
- package/dist/client/copy/record/components/Dressed.js +7 -0
- package/dist/client/copy/record/components/EditLayoutButton.d.ts +5 -0
- package/dist/client/copy/record/components/EditLayoutButton.js +7 -0
- package/dist/client/copy/record/components/Editable.d.ts +25 -0
- package/dist/client/copy/record/components/Editable.js +24 -0
- package/dist/client/copy/record/components/FieldArranger.d.ts +15 -0
- package/dist/client/copy/record/components/FieldArranger.js +17 -0
- package/dist/client/copy/record/components/FilePreview.d.ts +13 -0
- package/dist/client/copy/record/components/FilePreview.js +15 -0
- package/dist/client/copy/record/components/JsonPreview.d.ts +3 -0
- package/dist/client/copy/record/components/JsonPreview.js +5 -0
- package/dist/client/copy/record/components/JsonView.d.ts +12 -0
- package/dist/client/copy/record/components/JsonView.js +14 -0
- package/dist/client/copy/record/components/LayoutBuilder.d.ts +23 -0
- package/dist/client/copy/record/components/LayoutBuilder.js +25 -0
- package/dist/client/copy/record/components/Lightbox.d.ts +5 -0
- package/dist/client/copy/record/components/Lightbox.js +7 -0
- package/dist/client/copy/record/components/LiveNotices.d.ts +33 -0
- package/dist/client/copy/record/components/LiveNotices.js +29 -0
- package/dist/client/copy/record/components/PageCurrent.d.ts +1 -0
- package/dist/client/copy/record/components/PageCurrent.js +3 -0
- package/dist/client/copy/record/components/PageEmptyRun.d.ts +3 -0
- package/dist/client/copy/record/components/PageEmptyRun.js +5 -0
- package/dist/client/copy/record/components/PageFields.d.ts +5 -0
- package/dist/client/copy/record/components/PageFields.js +7 -0
- package/dist/client/copy/record/components/PageFlowDiagram.d.ts +33 -0
- package/dist/client/copy/record/components/PageFlowDiagram.js +37 -0
- package/dist/client/copy/record/components/PageFlows.d.ts +20 -0
- package/dist/client/copy/record/components/PageFlows.js +22 -0
- package/dist/client/copy/record/components/PageGroups.d.ts +12 -0
- package/dist/client/copy/record/components/PageGroups.js +14 -0
- package/dist/client/copy/record/components/PageHead.d.ts +8 -0
- package/dist/client/copy/record/components/PageHead.js +10 -0
- package/dist/client/copy/record/components/PageHistory.d.ts +18 -0
- package/dist/client/copy/record/components/PageHistory.js +20 -0
- package/dist/client/copy/record/components/PageLayout.d.ts +5 -0
- package/dist/client/copy/record/components/PageLayout.js +7 -0
- package/dist/client/copy/record/components/PageRelated.d.ts +24 -0
- package/dist/client/copy/record/components/PageRelated.js +26 -0
- package/dist/client/copy/record/components/PageRoom.d.ts +4 -0
- package/dist/client/copy/record/components/PageRoom.js +6 -0
- package/dist/client/copy/record/components/PageSectionBox.d.ts +6 -0
- package/dist/client/copy/record/components/PageSectionBox.js +10 -0
- package/dist/client/copy/record/components/PageTimeline.d.ts +9 -0
- package/dist/client/copy/record/components/PageTimeline.js +8 -0
- package/dist/client/copy/record/components/Peek.d.ts +3 -0
- package/dist/client/copy/record/components/Peek.js +5 -0
- package/dist/client/copy/record/components/PeekPanel.d.ts +5 -0
- package/dist/client/copy/record/components/PeekPanel.js +7 -0
- package/dist/client/copy/record/components/QrCode.d.ts +3 -0
- package/dist/client/copy/record/components/QrCode.js +5 -0
- package/dist/client/copy/record/components/Record.d.ts +19 -0
- package/dist/client/copy/record/components/Record.js +21 -0
- package/dist/client/copy/record/components/RecordGone.d.ts +4 -0
- package/dist/client/copy/record/components/RecordGone.js +6 -0
- package/dist/client/copy/record/components/RecordSummaries.d.ts +1 -0
- package/dist/client/copy/record/components/RecordSummaries.js +3 -0
- package/dist/client/copy/record/components/RecordTags.d.ts +9 -0
- package/dist/client/copy/record/components/RecordTags.js +11 -0
- package/dist/client/copy/record/components/RecordTrailNav.d.ts +8 -0
- package/dist/client/copy/record/components/RecordTrailNav.js +10 -0
- package/dist/client/copy/record/components/RichText.d.ts +4 -0
- package/dist/client/copy/record/components/RichText.js +6 -0
- package/dist/client/copy/record/components/Value.d.ts +4 -0
- package/dist/client/copy/record/components/Value.js +6 -0
- package/dist/client/copy/record/components/WorkflowStatus.d.ts +7 -0
- package/dist/client/copy/record/components/WorkflowStatus.js +9 -0
- package/dist/client/copy/record/components/WriteConfirm.d.ts +11 -0
- package/dist/client/copy/record/components/WriteConfirm.js +13 -0
- package/dist/client/copy/record/components/groupMoves.d.ts +7 -0
- package/dist/client/copy/record/components/groupMoves.js +9 -0
- package/dist/client/copy/record/components/jsonModel.d.ts +3 -0
- package/dist/client/copy/record/components/jsonModel.js +5 -0
- package/dist/client/copy/record/components/pageModel.d.ts +5 -0
- package/dist/client/copy/record/components/pageModel.js +7 -0
- package/dist/client/copy/record/components/recordSurface.d.ts +6 -0
- package/dist/client/copy/record/components/recordSurface.js +8 -0
- package/dist/client/copy/record/components/valueModel.d.ts +5 -0
- package/dist/client/copy/record/components/valueModel.js +7 -0
- package/dist/client/copy/record/fileSource.d.ts +3 -0
- package/dist/client/copy/record/fileSource.js +5 -0
- package/dist/client/copy/record/insert.d.ts +6 -0
- package/dist/client/copy/record/insert.js +8 -0
- package/dist/client/copy/record/page.d.ts +4 -0
- package/dist/client/copy/record/page.js +6 -0
- package/dist/client/copy/record/recordEditValidation.d.ts +4 -0
- package/dist/client/copy/record/recordEditValidation.js +6 -0
- package/dist/client/copy/record/savedPages.d.ts +4 -0
- package/dist/client/copy/record/savedPages.js +6 -0
- package/dist/client/copy/record/template.d.ts +9 -0
- package/dist/client/copy/record/template.js +11 -0
- package/dist/client/copy/record/write.d.ts +30 -0
- package/dist/client/copy/record/write.js +26 -0
- package/dist/client/copy/shell/app.d.ts +27 -0
- package/dist/client/copy/shell/app.js +43 -0
- package/dist/client/copy/shell/components/AppIssues.d.ts +10 -0
- package/dist/client/copy/shell/components/AppIssues.js +9 -0
- package/dist/client/copy/shell/components/Crumbs.d.ts +7 -0
- package/dist/client/copy/shell/components/Crumbs.js +17 -0
- package/dist/client/copy/shell/components/Dropdown.d.ts +3 -0
- package/dist/client/copy/shell/components/Dropdown.js +5 -0
- package/dist/client/copy/shell/components/ErrorBoundary.d.ts +4 -0
- package/dist/client/copy/shell/components/ErrorBoundary.js +6 -0
- package/dist/client/copy/shell/components/FavoriteStar.d.ts +4 -0
- package/dist/client/copy/shell/components/FavoriteStar.js +6 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.d.ts +4 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.js +12 -0
- package/dist/client/copy/shell/components/OverflowMenu.d.ts +3 -0
- package/dist/client/copy/shell/components/OverflowMenu.js +10 -0
- package/dist/client/copy/shell/components/Palette.d.ts +15 -0
- package/dist/client/copy/shell/components/Palette.js +18 -0
- package/dist/client/copy/shell/components/Prefs.d.ts +4 -0
- package/dist/client/copy/shell/components/Prefs.js +11 -0
- package/dist/client/copy/shell/components/Prompt.d.ts +1 -0
- package/dist/client/copy/shell/components/Prompt.js +3 -0
- package/dist/client/copy/shell/components/Rooms.d.ts +6 -0
- package/dist/client/copy/shell/components/Rooms.js +8 -0
- package/dist/client/copy/shell/components/Sidebar.d.ts +7 -0
- package/dist/client/copy/shell/components/Sidebar.js +9 -0
- package/dist/client/copy/shell/components/Skeleton.d.ts +5 -0
- package/dist/client/copy/shell/components/Skeleton.js +7 -0
- package/dist/client/copy/shell/components/TopNav.d.ts +4 -0
- package/dist/client/copy/shell/components/TopNav.js +12 -0
- package/dist/client/copy/shell/components/Tour.d.ts +4 -0
- package/dist/client/copy/shell/components/Tour.js +6 -0
- package/dist/client/copy/shell/components/newMenuModel.d.ts +3 -0
- package/dist/client/copy/shell/components/newMenuModel.js +5 -0
- package/dist/client/copy/shell/components/onDemand.d.ts +3 -0
- package/dist/client/copy/shell/components/onDemand.js +5 -0
- package/dist/client/copy/shell/components/sidebarModel.d.ts +3 -0
- package/dist/client/copy/shell/components/sidebarModel.js +5 -0
- package/dist/client/copy/shell/connectionList.d.ts +6 -0
- package/dist/client/copy/shell/connectionList.js +8 -0
- package/dist/client/copy/shell/core.d.ts +16 -0
- package/dist/client/copy/shell/core.js +18 -0
- package/dist/client/copy/shell/palette.d.ts +6 -0
- package/dist/client/copy/shell/palette.js +8 -0
- package/dist/client/copy/shell/prompt.d.ts +1 -0
- package/dist/client/copy/shell/prompt.js +3 -0
- package/dist/client/copy/shell/requestIdentity.d.ts +9 -0
- package/dist/client/copy/shell/requestIdentity.js +11 -0
- package/dist/client/copy/shell/resourceRequests.d.ts +4 -0
- package/dist/client/copy/shell/resourceRequests.js +6 -0
- package/dist/client/copy/shell/sessionIdentity.d.ts +11 -0
- package/dist/client/copy/shell/sessionIdentity.js +13 -0
- package/dist/client/copy/shell/sessionLifecycle.d.ts +5 -0
- package/dist/client/copy/shell/sessionLifecycle.js +7 -0
- package/dist/client/copy/shell/startup.d.ts +5 -0
- package/dist/client/copy/shell/startup.js +7 -0
- package/dist/client/copy/shell/theme.d.ts +5 -0
- package/dist/client/copy/shell/theme.js +14 -0
- package/dist/client/copy/shell/toast.d.ts +3 -0
- package/dist/client/copy/shell/toast.js +5 -0
- package/dist/client/copy/shell/updateAttempts.d.ts +6 -0
- package/dist/client/copy/shell/updateAttempts.js +8 -0
- package/dist/client/copy/shell/visualTheme.d.ts +4 -0
- package/dist/client/copy/shell/visualTheme.js +6 -0
- package/dist/client/copy/workbench/clauses.d.ts +3 -0
- package/dist/client/copy/workbench/clauses.js +5 -0
- package/dist/client/copy/workbench/components/ApiOperations.d.ts +21 -0
- package/dist/client/copy/workbench/components/ApiOperations.js +23 -0
- package/dist/client/copy/workbench/components/Composer.d.ts +105 -0
- package/dist/client/copy/workbench/components/Composer.js +92 -0
- package/dist/client/copy/workbench/components/Diagram.d.ts +56 -0
- package/dist/client/copy/workbench/components/Diagram.js +46 -0
- package/dist/client/copy/workbench/components/Export.d.ts +26 -0
- package/dist/client/copy/workbench/components/Export.js +25 -0
- package/dist/client/copy/workbench/components/HelpPanel.d.ts +10 -0
- package/dist/client/copy/workbench/components/HelpPanel.js +12 -0
- package/dist/client/copy/workbench/components/History.d.ts +11 -0
- package/dist/client/copy/workbench/components/History.js +10 -0
- package/dist/client/copy/workbench/components/Landing.d.ts +5 -0
- package/dist/client/copy/workbench/components/Landing.js +7 -0
- package/dist/client/copy/workbench/components/SchemaExport.d.ts +24 -0
- package/dist/client/copy/workbench/components/SchemaExport.js +20 -0
- package/dist/client/copy/workbench/components/Summary.d.ts +28 -0
- package/dist/client/copy/workbench/components/Summary.js +24 -0
- package/dist/client/copy/workbench/components/ThemeLab.d.ts +25 -0
- package/dist/client/copy/workbench/components/ThemeLab.js +27 -0
- package/dist/client/copy/workbench/components/WorkPanel.d.ts +12 -0
- package/dist/client/copy/workbench/components/WorkPanel.js +14 -0
- package/dist/client/copy/workbench/composer.d.ts +36 -0
- package/dist/client/copy/workbench/composer.js +32 -0
- package/dist/client/copy/workbench/composerEntry.d.ts +4 -0
- package/dist/client/copy/workbench/composerEntry.js +6 -0
- package/dist/client/copy/workbench/export.d.ts +8 -0
- package/dist/client/copy/workbench/export.js +7 -0
- package/dist/client/copy/workbench/filterbar.d.ts +6 -0
- package/dist/client/copy/workbench/filterbar.js +8 -0
- package/dist/client/copy/workbench/handoff.d.ts +20 -0
- package/dist/client/copy/workbench/handoff.js +19 -0
- package/dist/client/copy/workbench/help.d.ts +6 -0
- package/dist/client/copy/workbench/help.js +8 -0
- package/dist/client/copy/workbench/history.d.ts +3 -0
- package/dist/client/copy/workbench/history.js +5 -0
- package/dist/client/copy/workbench/schemaexport.d.ts +5 -0
- package/dist/client/copy/workbench/schemaexport.js +7 -0
- package/dist/client/copy/workbench/tour.d.ts +22 -0
- package/dist/client/copy/workbench/tour.js +24 -0
- package/dist/client/copy/workbench/views.d.ts +6 -0
- package/dist/client/copy/workbench/views.js +8 -0
- package/dist/client/core.d.ts +312 -0
- package/dist/client/core.js +1067 -0
- package/dist/client/customThemes.css +43 -0
- package/dist/client/dashboard.d.ts +16 -0
- package/dist/client/dashboard.js +35 -0
- package/dist/client/deeplink.d.ts +64 -0
- package/dist/client/deeplink.js +384 -0
- package/dist/client/delete.d.ts +8 -0
- package/dist/client/delete.js +35 -0
- package/dist/client/density.d.ts +8 -0
- package/dist/client/density.js +102 -0
- package/dist/client/devtoolsEventClient.d.ts +27 -0
- package/dist/client/devtoolsEventClient.js +32 -0
- package/dist/client/documents.d.ts +9 -0
- package/dist/client/documents.js +23 -0
- package/dist/client/dom.d.ts +36 -0
- package/dist/client/dom.js +232 -0
- package/dist/client/draftRecovery.d.ts +16 -0
- package/dist/client/draftRecovery.js +56 -0
- package/dist/client/export.d.ts +59 -0
- package/dist/client/export.js +217 -0
- package/dist/client/features.css +2187 -0
- package/dist/client/fieldErrors.d.ts +27 -0
- package/dist/client/fieldErrors.js +20 -0
- package/dist/client/fileSource.d.ts +10 -0
- package/dist/client/fileSource.js +115 -0
- package/dist/client/filterbar.d.ts +87 -0
- package/dist/client/filterbar.js +168 -0
- package/dist/client/firstPaint.d.ts +26 -0
- package/dist/client/firstPaint.js +102 -0
- package/dist/client/fonts/Barlow-OFL.txt +125 -0
- package/dist/client/fonts/IBMPlexMono-OFL.txt +104 -0
- package/dist/client/fonts/Inter-OFL.txt +92 -0
- package/dist/client/fonts/barlow-400.woff2 +0 -0
- package/dist/client/fonts/barlow-600.woff2 +0 -0
- package/dist/client/fonts/barlow-semi-condensed-700.woff2 +0 -0
- package/dist/client/fonts/ibm-plex-mono-400.woff2 +0 -0
- package/dist/client/fonts/ibm-plex-mono-500.woff2 +0 -0
- package/dist/client/fonts/inter-latin.woff2 +0 -0
- package/dist/client/formControls.css +5 -0
- package/dist/client/handoff.d.ts +47 -0
- package/dist/client/handoff.js +138 -0
- package/dist/client/help.css +151 -0
- package/dist/client/help.d.ts +20 -0
- package/dist/client/help.js +103 -0
- package/dist/client/helpContent.d.ts +95 -0
- package/dist/client/helpContent.js +661 -0
- package/dist/client/history.d.ts +10 -0
- package/dist/client/history.js +181 -0
- package/dist/client/historyToken.d.ts +18 -0
- package/dist/client/historyToken.js +27 -0
- package/dist/client/iconWeight.d.ts +16 -0
- package/dist/client/iconWeight.js +44 -0
- package/dist/client/index.html +244 -0
- package/dist/client/insert.d.ts +50 -0
- package/dist/client/insert.js +269 -0
- package/dist/client/kit.d.ts +7 -0
- package/dist/client/kit.js +1 -0
- package/dist/client/layoutDraftRecovery.d.ts +8 -0
- package/dist/client/layoutDraftRecovery.js +33 -0
- package/dist/client/ledgerLook.css +32 -0
- package/dist/client/liveReads.d.ts +23 -0
- package/dist/client/liveReads.js +38 -0
- package/dist/client/liveState.d.ts +94 -0
- package/dist/client/liveState.js +212 -0
- package/dist/client/locale.d.ts +141 -0
- package/dist/client/locale.js +0 -0
- package/dist/client/lumenLook.css +1867 -0
- package/dist/client/menu.d.ts +49 -0
- package/dist/client/menu.js +131 -0
- package/dist/client/menuScope.d.ts +6 -0
- package/dist/client/menuScope.js +4 -0
- package/dist/client/messages.d.ts +240 -0
- package/dist/client/messages.js +370 -0
- package/dist/client/motionStill.d.ts +1 -0
- package/dist/client/motionStill.js +17 -0
- package/dist/client/navigationHold.d.ts +37 -0
- package/dist/client/navigationHold.js +503 -0
- package/dist/client/nested.d.ts +8 -0
- package/dist/client/nested.js +26 -0
- package/dist/client/ownWrites.d.ts +33 -0
- package/dist/client/ownWrites.js +76 -0
- package/dist/client/page.css +4052 -0
- package/dist/client/page.d.ts +21 -0
- package/dist/client/page.js +187 -0
- package/dist/client/pagemarks.d.ts +32 -0
- package/dist/client/pagemarks.js +98 -0
- package/dist/client/palette.d.ts +35 -0
- package/dist/client/palette.js +357 -0
- package/dist/client/partsLook.css +1047 -0
- package/dist/client/peek.d.ts +11 -0
- package/dist/client/peek.js +51 -0
- package/dist/client/peekpanel.d.ts +26 -0
- package/dist/client/peekpanel.js +121 -0
- package/dist/client/pendingWork.d.ts +19 -0
- package/dist/client/pendingWork.js +36 -0
- package/dist/client/pins.d.ts +24 -0
- package/dist/client/pins.js +97 -0
- package/dist/client/prefs.d.ts +3 -0
- package/dist/client/prefs.js +32 -0
- package/dist/client/prompt.d.ts +27 -0
- package/dist/client/prompt.js +61 -0
- package/dist/client/readGathering.d.ts +4 -0
- package/dist/client/readGathering.js +23 -0
- package/dist/client/recordCompose.d.ts +11 -0
- package/dist/client/recordCompose.js +69 -0
- package/dist/client/recordDrafts.d.ts +40 -0
- package/dist/client/recordDrafts.js +57 -0
- package/dist/client/recordEditValidation.d.ts +12 -0
- package/dist/client/recordEditValidation.js +52 -0
- package/dist/client/recordIntent.d.ts +6 -0
- package/dist/client/recordIntent.js +15 -0
- package/dist/client/recordPress.d.ts +12 -0
- package/dist/client/recordPress.js +84 -0
- package/dist/client/recordSource.d.ts +6 -0
- package/dist/client/recordSource.js +15 -0
- package/dist/client/recordTrail.d.ts +77 -0
- package/dist/client/recordTrail.js +101 -0
- package/dist/client/recordWriteRefresh.d.ts +74 -0
- package/dist/client/recordWriteRefresh.js +284 -0
- package/dist/client/relatedRows.d.ts +4 -0
- package/dist/client/relatedRows.js +24 -0
- package/dist/client/requestIdentity.d.ts +36 -0
- package/dist/client/requestIdentity.js +97 -0
- package/dist/client/resourceRequests.d.ts +7 -0
- package/dist/client/resourceRequests.js +32 -0
- package/dist/client/roleLabels.d.ts +7 -0
- package/dist/client/roleLabels.js +24 -0
- package/dist/client/rowEditing.d.ts +15 -0
- package/dist/client/rowEditing.js +36 -0
- package/dist/client/sageLook.css +242 -0
- package/dist/client/savedPages.d.ts +15 -0
- package/dist/client/savedPages.js +123 -0
- package/dist/client/schemaexport.d.ts +14 -0
- package/dist/client/schemaexport.js +182 -0
- package/dist/client/sessionIdentity.d.ts +39 -0
- package/dist/client/sessionIdentity.js +255 -0
- package/dist/client/sessionLifecycle.d.ts +33 -0
- package/dist/client/sessionLifecycle.js +276 -0
- package/dist/client/shellHost.d.ts +70 -0
- package/dist/client/shellHost.js +92 -0
- package/dist/client/shellMain.d.ts +8 -0
- package/dist/client/shellMode.d.ts +433 -0
- package/dist/client/shellMode.js +68 -0
- package/dist/client/shellStart.d.ts +5 -0
- package/dist/client/shellStart.js +54 -0
- package/dist/client/shells.d.ts +123 -0
- package/dist/client/shells.js +1 -0
- package/dist/client/sql.css +139 -0
- package/dist/client/startup.d.ts +8 -0
- package/dist/client/startup.js +85 -0
- package/dist/client/startupHold.d.ts +10 -0
- package/dist/client/startupHold.js +73 -0
- package/dist/client/structure.css +1296 -0
- package/dist/client/style.css +3526 -0
- package/dist/client/styleImports.d.ts +3 -0
- package/dist/client/surfaces.d.ts +18 -0
- package/dist/client/surfaces.js +27 -0
- package/dist/client/surfacesLook.css +88 -0
- package/dist/client/template.d.ts +75 -0
- package/dist/client/template.js +403 -0
- package/dist/client/theme.d.ts +14 -0
- package/dist/client/theme.js +112 -0
- package/dist/client/themeFamilies.css +788 -0
- package/dist/client/thmenu.d.ts +12 -0
- package/dist/client/thmenu.js +94 -0
- package/dist/client/toast.d.ts +7 -0
- package/dist/client/toast.js +117 -0
- package/dist/client/tour.d.ts +8 -0
- package/dist/client/tour.js +176 -0
- package/dist/client/transport.d.ts +2 -0
- package/dist/client/transport.js +13 -0
- package/dist/client/typography.d.ts +4 -0
- package/dist/client/typography.js +51 -0
- package/dist/client/uiBridge.d.ts +57 -0
- package/dist/client/uiBridge.js +30 -0
- package/dist/client/updateAttempts.d.ts +46 -0
- package/dist/client/updateAttempts.js +131 -0
- package/dist/client/url.d.ts +74 -0
- package/dist/client/url.js +388 -0
- package/dist/client/views.d.ts +19 -0
- package/dist/client/views.js +133 -0
- package/dist/client/visualTheme.d.ts +62 -0
- package/dist/client/visualTheme.js +502 -0
- package/dist/client/visualThemes.css +421 -0
- package/dist/client/workshopLook.css +126 -0
- package/dist/client/write.d.ts +100 -0
- package/dist/client/write.js +882 -0
- package/dist/client/writePaths.d.ts +16 -0
- package/dist/client/writePaths.js +35 -0
- package/dist/client/yesNoRule.d.ts +12 -0
- package/dist/client/yesNoRule.js +39 -0
- package/dist/clientFiles.d.ts +11 -4
- package/dist/clientFiles.js +16 -12
- package/dist/vite.d.ts +136 -0
- package/dist/vite.js +571 -0
- package/package.json +130 -3
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A navigation swaps finished screens (docs/design.md, motion rule 9).
|
|
3
|
+
*
|
|
4
|
+
* Every paint that starts a room over used to take the room it left off the
|
|
5
|
+
* screen at once and draw the new one as its answers came in: an empty pane
|
|
6
|
+
* for a frame, then a skeleton, then the header, the sections, the aside and
|
|
7
|
+
* the related lists one by one, each pushing the next down. Measured on
|
|
8
|
+
* Compass and on the Keystone lender App, list → record painted in four to
|
|
9
|
+
* eight steps over 100–450 ms, with a layout shift at each.
|
|
10
|
+
*
|
|
11
|
+
* So the screen being left is held — a still copy of it, standing where it
|
|
12
|
+
* stood — while the room that replaces it is drawn underneath, laid out but
|
|
13
|
+
* not shown, and asks for what it needs. When nothing asked since the
|
|
14
|
+
* navigation began is still out (pendingWork.ts, and the room's reads), the
|
|
15
|
+
* copy goes and the new room is there, complete. Most rooms are complete
|
|
16
|
+
* well inside BUDGET ms, and the reader sees one screen replace another.
|
|
17
|
+
* Past it the copy is dimmed, still, so the wait is said without anything
|
|
18
|
+
* moving; and a room still not complete at CAP ms is shown as it stands, its
|
|
19
|
+
* own placeholders saying the rest is coming — a server that slow should not
|
|
20
|
+
* keep the reader looking at a screen they left.
|
|
21
|
+
*
|
|
22
|
+
* The copy is a picture and nothing else: drawn in a closed shadow root,
|
|
23
|
+
* under the page's own stylesheets and a twin of every element the pane
|
|
24
|
+
* stands in, so it looks exactly as the screen did — and no lookup by id,
|
|
25
|
+
* no selector, no test's locator and no assistive technology finds a second
|
|
26
|
+
* record title, a second radio group or a second field in it. The room
|
|
27
|
+
* beneath is the only one there is: laid out and focusable, only not yet
|
|
28
|
+
* painted. Any input — a press, a key, a wheel — ends the hold at once, so
|
|
29
|
+
* nothing waits on it (motion rule 7).
|
|
30
|
+
*
|
|
31
|
+
* A step to a new place starts at the top; Back and Forward return to where
|
|
32
|
+
* the reader was on that screen; a refinement of the place on screen (a
|
|
33
|
+
* sort, a tab, a write that repaints) keeps the scroll it had. A step to a
|
|
34
|
+
* new place taken with the pointer may enter with 160 ms of opacity and a
|
|
35
|
+
* few pixels of settle, once the screen is complete; a key, a refinement or
|
|
36
|
+
* Back animates nothing, and reduced motion silences the enter in the
|
|
37
|
+
* stylesheet.
|
|
38
|
+
*/
|
|
39
|
+
import { motionStill } from './motionStill.js';
|
|
40
|
+
import { workMark, workSince } from './pendingWork.js';
|
|
41
|
+
import { addHostListener, onNavigate, shellRoot } from './shellHost.js';
|
|
42
|
+
import { herePath, hereSearch } from './addressMount.js';
|
|
43
|
+
/** How long a navigation holds the screen it left without saying so, in ms. */
|
|
44
|
+
export const BUDGET = 300;
|
|
45
|
+
/** The longest it holds it at all, in ms. */
|
|
46
|
+
export const CAP = 1500;
|
|
47
|
+
/* Quiet frames, counted from the frame after the paint: a Query that answers
|
|
48
|
+
enables the next one in the render after it, and React draws that render
|
|
49
|
+
in slices between frames, so a frame or two with nothing out can sit
|
|
50
|
+
between two asks. Anything drawn into the room counts as not quiet. */
|
|
51
|
+
const QUIET_FRAMES = 3;
|
|
52
|
+
/* Scroll positions to return to, by address; bounded, as a walk is. */
|
|
53
|
+
const REMEMBERED = 100;
|
|
54
|
+
const ENTER_CLASS = 'nav-enter';
|
|
55
|
+
let content = null;
|
|
56
|
+
let probe = { busy: () => false, watch: () => () => { } };
|
|
57
|
+
let stirred = false;
|
|
58
|
+
let hold = null;
|
|
59
|
+
let shown = null;
|
|
60
|
+
/* When the last Back or Forward came. A traversal the shell refuses (a
|
|
61
|
+
change still pending) paints nothing, so the mark is read only by a paint
|
|
62
|
+
that follows it closely, and only once. */
|
|
63
|
+
let traversedAt = -Infinity;
|
|
64
|
+
const TRAVERSAL_WINDOW = 1000;
|
|
65
|
+
let lastInput = { pointer: false, at: 0 };
|
|
66
|
+
const scrollAt = new Map();
|
|
67
|
+
let restoring = null;
|
|
68
|
+
const address = () => herePath() + hereSearch();
|
|
69
|
+
const placeOf = (entry) => entry ? JSON.stringify([entry.kind, entry.table, entry.pageId, entry.view, entry.key ?? null]) : '';
|
|
70
|
+
/* Whether the entry names another thing altogether, not another look at this one. */
|
|
71
|
+
const sameThing = (a, b) => (a?.kind ?? '') === (b?.kind ?? '') && (a?.table ?? '') === (b?.table ?? '') && (a?.pageId ?? '') === (b?.pageId ?? '');
|
|
72
|
+
/**
|
|
73
|
+
* Start listening. Once, from the shell: Back and Forward are told apart from
|
|
74
|
+
* a click by the `popstate` that precedes their paint, and the hold ends on
|
|
75
|
+
* the reader's first input.
|
|
76
|
+
*/
|
|
77
|
+
export function installNavigationHold(host, reads) {
|
|
78
|
+
const first = content === null;
|
|
79
|
+
content = host;
|
|
80
|
+
if (!first)
|
|
81
|
+
return;
|
|
82
|
+
if (reads)
|
|
83
|
+
probe = reads;
|
|
84
|
+
/* A read that answers enables the next in the render after it, with
|
|
85
|
+
nothing out between the two: any change to a read starts the quiet
|
|
86
|
+
count again. */
|
|
87
|
+
probe.watch(() => {
|
|
88
|
+
if (hold)
|
|
89
|
+
stirred = true;
|
|
90
|
+
});
|
|
91
|
+
/* And a room still drawing itself is still arriving: a commit into the pane
|
|
92
|
+
(not the picture, whose own drawing is in its shadow root) stirs too. */
|
|
93
|
+
if (typeof MutationObserver === 'function') {
|
|
94
|
+
new MutationObserver((records) => {
|
|
95
|
+
if (hold && records.some((record) => record.target !== hold.copy))
|
|
96
|
+
stirred = true;
|
|
97
|
+
}).observe(host, { childList: true, subtree: true, characterData: true, attributes: true });
|
|
98
|
+
}
|
|
99
|
+
/* Registered before the shell's own listener, which paints: the mark is set when the paint comes. */
|
|
100
|
+
onNavigate(() => {
|
|
101
|
+
traversedAt = performance.now();
|
|
102
|
+
}, true);
|
|
103
|
+
/* The page's stylesheets, read for the picture before the first navigation
|
|
104
|
+
needs them — when the page is idle, so starting up never waits on it. */
|
|
105
|
+
const warm = () => {
|
|
106
|
+
mirrorSheets();
|
|
107
|
+
};
|
|
108
|
+
if (typeof requestIdleCallback === 'function')
|
|
109
|
+
requestIdleCallback(warm, { timeout: 3000 });
|
|
110
|
+
else
|
|
111
|
+
setTimeout(warm, 1000);
|
|
112
|
+
/* And each one a part brings when it loads, as it arrives. The published
|
|
113
|
+
client links a part's stylesheet when the part is first drawn (a record's
|
|
114
|
+
sections, the related lists); read only at the next navigation, it was
|
|
115
|
+
still on its way then, and that navigation went unheld — the related
|
|
116
|
+
record painted into an empty pane. Under Vite every sheet is a style
|
|
117
|
+
element, whose text is there at once, so only the bundle showed it. */
|
|
118
|
+
if (typeof MutationObserver === 'function') {
|
|
119
|
+
new MutationObserver((records) => {
|
|
120
|
+
for (const record of records)
|
|
121
|
+
for (const node of Array.from(record.addedNodes)) {
|
|
122
|
+
if (!(node instanceof HTMLLinkElement) || !/\bstylesheet\b/i.test(node.rel) || !node.href)
|
|
123
|
+
continue;
|
|
124
|
+
if (node.sheet)
|
|
125
|
+
readLinked(node.href);
|
|
126
|
+
else
|
|
127
|
+
node.addEventListener('load', () => readLinked(node.href), { once: true });
|
|
128
|
+
}
|
|
129
|
+
}).observe(document.head, { childList: true });
|
|
130
|
+
}
|
|
131
|
+
const input = (pointer) => (event) => {
|
|
132
|
+
lastInput = { pointer, at: performance.now(), target: event.target };
|
|
133
|
+
if (hold)
|
|
134
|
+
release();
|
|
135
|
+
restoring = null;
|
|
136
|
+
};
|
|
137
|
+
addHostListener(window, 'pointerdown', input(true), true);
|
|
138
|
+
addHostListener(window, 'keydown', input(false), true);
|
|
139
|
+
const moved = () => {
|
|
140
|
+
if (hold)
|
|
141
|
+
release();
|
|
142
|
+
restoring = null;
|
|
143
|
+
};
|
|
144
|
+
addHostListener(window, 'wheel', moved, { capture: true, passive: true });
|
|
145
|
+
addHostListener(window, 'touchmove', moved, { capture: true, passive: true });
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Before a paint: hold the screen on show when the paint starts the room over.
|
|
149
|
+
* `room` is whether the room is new; `entry` and `depth` are the walk's top
|
|
150
|
+
* entry and length as the paint will draw them.
|
|
151
|
+
*/
|
|
152
|
+
export function beforePaint(room, entry, depth) {
|
|
153
|
+
const pane = content;
|
|
154
|
+
const traversal = performance.now() - traversedAt < TRAVERSAL_WINDOW;
|
|
155
|
+
traversedAt = -Infinity;
|
|
156
|
+
if (!pane || !pane.isConnected || !shown)
|
|
157
|
+
return;
|
|
158
|
+
if (!hold)
|
|
159
|
+
scrollAt.set(shown.address, pane.scrollTop);
|
|
160
|
+
if (scrollAt.size > REMEMBERED)
|
|
161
|
+
scrollAt.delete(scrollAt.keys().next().value);
|
|
162
|
+
if (!room)
|
|
163
|
+
return;
|
|
164
|
+
const again = entry === shown.entry;
|
|
165
|
+
const scroll = traversal ? 'restore' : again || placeOf(entry) === shown.place ? 'keep' : 'top';
|
|
166
|
+
if (hold) {
|
|
167
|
+
/* A room that redirects as it opens (a bare list to its first tab, a row
|
|
168
|
+
to its page) is still the same navigation: the copy stays, the budget
|
|
169
|
+
runs on, and a step it began is not undone by a replace it made. */
|
|
170
|
+
if (hold.scroll === 'keep')
|
|
171
|
+
hold.scroll = scroll;
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
if (!pane.firstElementChild)
|
|
175
|
+
return;
|
|
176
|
+
const recent = performance.now() - lastInput.at < 1000;
|
|
177
|
+
const enter = !traversal &&
|
|
178
|
+
!again &&
|
|
179
|
+
lastInput.pointer &&
|
|
180
|
+
recent &&
|
|
181
|
+
!motionStill() &&
|
|
182
|
+
(!sameThing(entry, shown.entry) || depth !== shown.depth);
|
|
183
|
+
/* The focus leaves the room it stands in now, while nothing on the page waits to be restyled. Taken away with the
|
|
184
|
+
room, it went in the middle of the paint, and Chrome brought the whole pane's style up to date to let it go: the
|
|
185
|
+
picture and the room being left, restyled only to be removed, 60 ms of a tab's click on the vitals' slowed CPU.
|
|
186
|
+
The blur is the one removal sends (Chrome sends it), sent first; the room puts the focus back where it belongs.
|
|
187
|
+
Only where the focus is what was just clicked: a search narrowing the list as it is typed into a rail's box,
|
|
188
|
+
arriving while the pointer goes down on one of the box's suggestions, leaves the focus in the box, which the
|
|
189
|
+
suggestion still needs. */
|
|
190
|
+
const focused = document.activeElement;
|
|
191
|
+
if (lastInput.pointer &&
|
|
192
|
+
recent &&
|
|
193
|
+
focused &&
|
|
194
|
+
pane.contains(focused) &&
|
|
195
|
+
lastInput.target instanceof Node &&
|
|
196
|
+
focused.contains(lastInput.target))
|
|
197
|
+
focused.blur();
|
|
198
|
+
const made = picture(pane);
|
|
199
|
+
/* Nothing to draw the picture with (no constructable stylesheets): the paint is only a paint, as it was. */
|
|
200
|
+
if (!made)
|
|
201
|
+
return;
|
|
202
|
+
const { copy } = made;
|
|
203
|
+
pane.append(copy);
|
|
204
|
+
/* Written only where there is a scroll to copy: writing it lays the whole
|
|
205
|
+
picture out inside the click, before the room's own render, and a
|
|
206
|
+
screen left at its top — most of them — has nothing to copy. */
|
|
207
|
+
if (made.scrolled)
|
|
208
|
+
made.picture.scrollTop = made.scrolled;
|
|
209
|
+
/* A room reached from the keyboard, or a refinement of the room on screen,
|
|
210
|
+
puts the focus back where the reader's hands are (a tab, a filter, the
|
|
211
|
+
first row) the moment it is drawn: under the picture it is transparent,
|
|
212
|
+
so it can take it. A step to a new place taken with the pointer, and Back,
|
|
213
|
+
move no focus into the room, and there it is hidden outright, so nothing
|
|
214
|
+
it does while arriving is a layout shift. */
|
|
215
|
+
const focusable = !traversal && (scroll === 'keep' || (recent && !lastInput.pointer));
|
|
216
|
+
pane.classList.add('nav-holding');
|
|
217
|
+
pane.classList.toggle('nav-holding-focusable', focusable);
|
|
218
|
+
pane.classList.remove(ENTER_CLASS);
|
|
219
|
+
hold = {
|
|
220
|
+
copy,
|
|
221
|
+
picture: made.picture,
|
|
222
|
+
mark: workMark(),
|
|
223
|
+
quiet: 0,
|
|
224
|
+
frame: 0,
|
|
225
|
+
scroll,
|
|
226
|
+
enter,
|
|
227
|
+
timers: [
|
|
228
|
+
setTimeout(() => {
|
|
229
|
+
copy.classList.add('nav-held-waiting');
|
|
230
|
+
pane.setAttribute('aria-busy', 'true');
|
|
231
|
+
}, BUDGET),
|
|
232
|
+
setTimeout(release, CAP),
|
|
233
|
+
],
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
/** After the paint: the address is the new one; start watching for the room to be complete. */
|
|
237
|
+
export function afterPaint(entry, depth) {
|
|
238
|
+
shown = { entry, place: placeOf(entry), depth, address: address() };
|
|
239
|
+
if (!hold)
|
|
240
|
+
return;
|
|
241
|
+
hold.quiet = 0;
|
|
242
|
+
/* The frame this paint lands in is not counted: the room's effects, which
|
|
243
|
+
ask for what it needs, run after it. */
|
|
244
|
+
if (!hold.frame)
|
|
245
|
+
hold.frame = requestAnimationFrame(() => {
|
|
246
|
+
if (hold)
|
|
247
|
+
hold.frame = requestAnimationFrame(watch);
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
function watch() {
|
|
251
|
+
if (!hold)
|
|
252
|
+
return;
|
|
253
|
+
const busy = stirred || workSince(hold.mark) || probe.busy();
|
|
254
|
+
stirred = false;
|
|
255
|
+
hold.quiet = busy ? 0 : hold.quiet + 1;
|
|
256
|
+
if (hold.quiet >= QUIET_FRAMES) {
|
|
257
|
+
release();
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
hold.frame = requestAnimationFrame(watch);
|
|
261
|
+
}
|
|
262
|
+
/** The room underneath is shown, and the copy of the one it replaced goes. */
|
|
263
|
+
function release() {
|
|
264
|
+
const ending = hold;
|
|
265
|
+
if (!ending)
|
|
266
|
+
return;
|
|
267
|
+
hold = null;
|
|
268
|
+
ending.timers.forEach(clearTimeout);
|
|
269
|
+
if (ending.frame)
|
|
270
|
+
cancelAnimationFrame(ending.frame);
|
|
271
|
+
const pane = content;
|
|
272
|
+
ending.copy.remove();
|
|
273
|
+
if (!pane)
|
|
274
|
+
return;
|
|
275
|
+
pane.classList.remove('nav-holding', 'nav-holding-focusable');
|
|
276
|
+
pane.removeAttribute('aria-busy');
|
|
277
|
+
if (ending.scroll === 'top')
|
|
278
|
+
pane.scrollTop = 0;
|
|
279
|
+
else if (ending.scroll === 'restore')
|
|
280
|
+
restoreScroll(pane, scrollAt.get(address()) ?? 0);
|
|
281
|
+
if (ending.enter) {
|
|
282
|
+
pane.classList.add(ENTER_CLASS);
|
|
283
|
+
/* Off again once it has run, so nothing is left transformed under a popup. */
|
|
284
|
+
setTimeout(() => pane.classList.remove(ENTER_CLASS), 400);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Back to where the reader was. A room past its budget may still be growing
|
|
289
|
+
* toward that point, so the position is asked again each frame for a moment,
|
|
290
|
+
* until it can be reached or the reader moves.
|
|
291
|
+
*/
|
|
292
|
+
function restoreScroll(pane, top) {
|
|
293
|
+
pane.scrollTop = top;
|
|
294
|
+
if (pane.scrollTop >= top - 1) {
|
|
295
|
+
restoring = null;
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
restoring = { top, until: performance.now() + 1500 };
|
|
299
|
+
const again = () => {
|
|
300
|
+
if (!restoring || performance.now() > restoring.until) {
|
|
301
|
+
restoring = null;
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
pane.scrollTop = restoring.top;
|
|
305
|
+
if (pane.scrollTop >= restoring.top - 1) {
|
|
306
|
+
restoring = null;
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
requestAnimationFrame(again);
|
|
310
|
+
};
|
|
311
|
+
requestAnimationFrame(again);
|
|
312
|
+
}
|
|
313
|
+
/* ---------- the picture ---------- */
|
|
314
|
+
/* The page's stylesheets, one constructed twin of each, for the picture's
|
|
315
|
+
shadow root to adopt. Read from each sheet's source — a style element's
|
|
316
|
+
text, a linked file's — because the CSS object model does not give it
|
|
317
|
+
back whole: Chrome serializes `font: 500 12px/1.5 var(--sans)` followed by
|
|
318
|
+
a `font-variant-numeric` as nothing at all, and the picture's list count
|
|
319
|
+
came out in the wrong weight and size. `:root` is read as the root's twin,
|
|
320
|
+
by a class of the same weight (as `html` it weighed less than a
|
|
321
|
+
pseudo-class and lost rules it had won on the page). A sheet switched off
|
|
322
|
+
is left out and a sheet under media keeps it. Another origin's sheet is
|
|
323
|
+
left out: it can only hold font faces, and those are the document's. The
|
|
324
|
+
twins of the pane's ancestors draw no box — they are there for the
|
|
325
|
+
selectors (`body.app-mode .content`, a look's `[data-visual-theme]`) and
|
|
326
|
+
for what inherits — and the root's zoom is not applied twice. */
|
|
327
|
+
const TWIN = 'nav-held-twin';
|
|
328
|
+
const ROOT_TWIN = 'nav-held-root';
|
|
329
|
+
const built = new WeakMap();
|
|
330
|
+
/* A linked sheet's text: undefined while it is read, null for one that cannot be (another origin's). */
|
|
331
|
+
const linked = new Map();
|
|
332
|
+
let twins = null;
|
|
333
|
+
function readLinked(href) {
|
|
334
|
+
if (linked.has(href))
|
|
335
|
+
return;
|
|
336
|
+
let url;
|
|
337
|
+
try {
|
|
338
|
+
url = new URL(href, document.baseURI);
|
|
339
|
+
}
|
|
340
|
+
catch {
|
|
341
|
+
linked.set(href, null);
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
if (url.origin !== window.location.origin) {
|
|
345
|
+
linked.set(href, null);
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
linked.set(href, undefined);
|
|
349
|
+
/* The file the page already loaded, asked for as the page asked for it (a
|
|
350
|
+
server that answers a script to a plain fetch of a stylesheet — Vite's,
|
|
351
|
+
under development — answers the stylesheet): the cache answers. */
|
|
352
|
+
void fetch(url, { credentials: 'same-origin', headers: { accept: 'text/css,*/*;q=0.1' } })
|
|
353
|
+
.then((reply) => (reply.ok ? reply.text() : null), () => null)
|
|
354
|
+
.then((text) => {
|
|
355
|
+
linked.set(href, text);
|
|
356
|
+
/* And its twin built now, while nothing waits: left to the next navigation, the App's own sheet (390 KB),
|
|
357
|
+
still on its way when the page was first idle, was built in the click that opened a record or a tab, 35 ms
|
|
358
|
+
of it on the vitals' slowed CPU (test/built-client-vitals.mjs). */
|
|
359
|
+
mirrorSheets();
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
/** A sheet's own text, null to leave it out, or undefined while it is still being read. */
|
|
363
|
+
function sourceOf(sheet) {
|
|
364
|
+
const owner = sheet.ownerNode;
|
|
365
|
+
if (owner instanceof HTMLStyleElement)
|
|
366
|
+
return owner.textContent ?? '';
|
|
367
|
+
if (!sheet.href)
|
|
368
|
+
return null;
|
|
369
|
+
if (!linked.has(sheet.href))
|
|
370
|
+
readLinked(sheet.href);
|
|
371
|
+
return linked.get(sheet.href);
|
|
372
|
+
}
|
|
373
|
+
function mirrorSheets() {
|
|
374
|
+
try {
|
|
375
|
+
const sheets = [];
|
|
376
|
+
let unread = false;
|
|
377
|
+
for (const sheet of Array.from(document.styleSheets)) {
|
|
378
|
+
if (sheet.disabled)
|
|
379
|
+
continue;
|
|
380
|
+
const text = sourceOf(sheet);
|
|
381
|
+
if (text === undefined) {
|
|
382
|
+
unread = true;
|
|
383
|
+
continue;
|
|
384
|
+
}
|
|
385
|
+
if (text === null)
|
|
386
|
+
continue;
|
|
387
|
+
const media = sheet.media?.mediaText ?? '';
|
|
388
|
+
let twin = built.get(sheet);
|
|
389
|
+
if (!twin || twin.text !== text || twin.media !== media) {
|
|
390
|
+
const made = new CSSStyleSheet({ baseURL: sheet.href ?? document.baseURI, ...(media ? { media } : {}) });
|
|
391
|
+
made.replaceSync(text.replace(/:root\b/g, `.${ROOT_TWIN}`));
|
|
392
|
+
twin = { text, media, sheet: made };
|
|
393
|
+
built.set(sheet, twin);
|
|
394
|
+
}
|
|
395
|
+
sheets.push(twin.sheet);
|
|
396
|
+
}
|
|
397
|
+
/* A sheet not read yet would draw a picture that differs from the screen: this navigation goes unheld. */
|
|
398
|
+
if (unread)
|
|
399
|
+
return null;
|
|
400
|
+
if (!twins) {
|
|
401
|
+
twins = new CSSStyleSheet();
|
|
402
|
+
twins.replaceSync(`.${TWIN}{display:contents!important;zoom:1!important}`);
|
|
403
|
+
}
|
|
404
|
+
return [...sheets, ...(document.adoptedStyleSheets ?? []), twins];
|
|
405
|
+
}
|
|
406
|
+
catch {
|
|
407
|
+
return null;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* The picture of the pane as it stands: a host in the pane's scroll content,
|
|
412
|
+
* over exactly the part the reader sees, holding in a closed shadow root a
|
|
413
|
+
* twin of every ancestor, the pane's own twin scrolled to where the pane is,
|
|
414
|
+
* and a still copy of what the pane holds.
|
|
415
|
+
*/
|
|
416
|
+
function picture(pane) {
|
|
417
|
+
const sheets = mirrorSheets();
|
|
418
|
+
if (!sheets || typeof pane.attachShadow !== 'function')
|
|
419
|
+
return null;
|
|
420
|
+
const copy = document.createElement('div');
|
|
421
|
+
copy.className = 'nav-held';
|
|
422
|
+
copy.setAttribute('aria-hidden', 'true');
|
|
423
|
+
copy.inert = true;
|
|
424
|
+
/* Scroll offsets and a pane's client height are layout pixels, the ruler `top` speaks. */
|
|
425
|
+
copy.style.top = `${pane.scrollTop}px`;
|
|
426
|
+
copy.style.height = `${pane.clientHeight}px`;
|
|
427
|
+
const root = copy.attachShadow({ mode: 'closed' });
|
|
428
|
+
try {
|
|
429
|
+
root.adoptedStyleSheets = sheets;
|
|
430
|
+
}
|
|
431
|
+
catch {
|
|
432
|
+
return null;
|
|
433
|
+
}
|
|
434
|
+
let inner = root;
|
|
435
|
+
const chain = [];
|
|
436
|
+
for (let at = pane.parentElement; at; at = at.parentElement)
|
|
437
|
+
chain.unshift(at);
|
|
438
|
+
for (const ancestor of chain) {
|
|
439
|
+
const twin = document.createElement(ancestor.tagName.toLowerCase());
|
|
440
|
+
for (const { name, value } of Array.from(ancestor.attributes))
|
|
441
|
+
twin.setAttribute(name, value);
|
|
442
|
+
twin.classList.add(TWIN);
|
|
443
|
+
if (ancestor === shellRoot())
|
|
444
|
+
twin.classList.add(ROOT_TWIN);
|
|
445
|
+
inner.append(twin);
|
|
446
|
+
inner = twin;
|
|
447
|
+
}
|
|
448
|
+
const twin = pane.cloneNode(false);
|
|
449
|
+
twin.classList.remove('nav-holding', ENTER_CLASS);
|
|
450
|
+
twin.removeAttribute('aria-busy');
|
|
451
|
+
twin.style.height = '100%';
|
|
452
|
+
twin.style.overflow = 'hidden';
|
|
453
|
+
for (const child of Array.from(pane.children)) {
|
|
454
|
+
if (child instanceof HTMLElement && !child.classList.contains('nav-held'))
|
|
455
|
+
twin.append(still(child));
|
|
456
|
+
}
|
|
457
|
+
inner.append(twin);
|
|
458
|
+
return { copy, picture: twin, scrolled: pane.scrollTop };
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* A still copy of a part of the screen: what it looks like, and nothing it
|
|
462
|
+
* does. The names of form controls go (a radio copied into the picture must
|
|
463
|
+
* not join a group), and so does autofocus; a canvas is copied as its
|
|
464
|
+
* picture, and a field as the value typed into it.
|
|
465
|
+
*/
|
|
466
|
+
function still(node) {
|
|
467
|
+
const copy = node.cloneNode(true);
|
|
468
|
+
for (const element of [copy, ...Array.from(copy.querySelectorAll('[name], [autofocus]'))]) {
|
|
469
|
+
element.removeAttribute('name');
|
|
470
|
+
element.removeAttribute('autofocus');
|
|
471
|
+
}
|
|
472
|
+
const from = node.querySelectorAll('canvas');
|
|
473
|
+
if (from.length) {
|
|
474
|
+
const to = copy.querySelectorAll('canvas');
|
|
475
|
+
from.forEach((canvas, i) => {
|
|
476
|
+
try {
|
|
477
|
+
to[i]?.getContext('2d')?.drawImage(canvas, 0, 0);
|
|
478
|
+
}
|
|
479
|
+
catch {
|
|
480
|
+
/* A tainted or empty canvas is left blank. */
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
/* Values typed into fields are state, not attributes: carried over so the picture matches. */
|
|
485
|
+
const fields = node.querySelectorAll('input, textarea, select');
|
|
486
|
+
if (fields.length) {
|
|
487
|
+
const copies = copy.querySelectorAll('input, textarea, select');
|
|
488
|
+
fields.forEach((field, i) => {
|
|
489
|
+
const twin = copies[i];
|
|
490
|
+
if (!twin)
|
|
491
|
+
return;
|
|
492
|
+
if (field instanceof HTMLInputElement && (field.type === 'checkbox' || field.type === 'radio'))
|
|
493
|
+
twin.checked = field.checked;
|
|
494
|
+
else
|
|
495
|
+
twin.value = field.value;
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
return copy;
|
|
499
|
+
}
|
|
500
|
+
/** Whether a navigation is holding the screen it left; for tests and the shell. */
|
|
501
|
+
export const holding = () => hold !== null;
|
|
502
|
+
/** The picture being held, which only its shadow root reaches; for tests. */
|
|
503
|
+
export const heldPicture = () => hold?.picture ?? null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** A new result means new rows; answers cached against the old ones are
|
|
2
|
+
answers to a question nobody is asking any more. A row still open on
|
|
3
|
+
screen is still asking — a sort or a page re-asks the table in place and
|
|
4
|
+
keeps it open — so its answer is refreshed where it stands rather than
|
|
5
|
+
pulled from under it. */
|
|
6
|
+
export declare function resetNested(): void;
|
|
7
|
+
/** Whether expanding would show anything at all. */
|
|
8
|
+
export declare const hasChildren: (table: any) => boolean;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A row's children, opened in place — the vanilla client's view of it.
|
|
3
|
+
*
|
|
4
|
+
* The expander and the detail row are components (components/Nested.tsx) and
|
|
5
|
+
* their answers live in the Query cache; what stays here is what the rest
|
|
6
|
+
* of the client asks: whether a table has children at all, and the reset a
|
|
7
|
+
* new result calls for.
|
|
8
|
+
*/
|
|
9
|
+
import { refsTo } from './core.js';
|
|
10
|
+
import { queryClient } from './components/mount.js';
|
|
11
|
+
/** A new result means new rows; answers cached against the old ones are
|
|
12
|
+
answers to a question nobody is asking any more. A row still open on
|
|
13
|
+
screen is still asking — a sort or a page re-asks the table in place and
|
|
14
|
+
keeps it open — so its answer is refreshed where it stands rather than
|
|
15
|
+
pulled from under it. */
|
|
16
|
+
export function resetNested() {
|
|
17
|
+
const cache = queryClient.getQueryCache();
|
|
18
|
+
for (const query of cache.findAll({ queryKey: ['nested'] })) {
|
|
19
|
+
if (query.getObserversCount() > 0)
|
|
20
|
+
void queryClient.invalidateQueries({ queryKey: query.queryKey, exact: true });
|
|
21
|
+
else
|
|
22
|
+
cache.remove(query);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/** Whether expanding would show anything at all. */
|
|
26
|
+
export const hasChildren = (table) => Boolean(table) && refsTo(table.id).length > 0;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This page's own writes, for the live stream that echoes them back.
|
|
3
|
+
*
|
|
4
|
+
* Every write the page sends is answered, and its caller then asks again what
|
|
5
|
+
* it changed (recordWriteRefresh.ts). The same write then comes back on the
|
|
6
|
+
* live stream, marked `self` (the reader's own account), a few hundred
|
|
7
|
+
* milliseconds later. Taken as a change someone else made, it asked every read
|
|
8
|
+
* the write's own refresh had just begun once more: a read that began before
|
|
9
|
+
* the echo arrived had, by live sync's rule, begun before the change, so the
|
|
10
|
+
* record page composed twice and every list and count on it was read twice,
|
|
11
|
+
* and the composed answers were forgotten as a write's are, so each section
|
|
12
|
+
* then asked on its own (a field report: 65 to 112 requests after one write).
|
|
13
|
+
*
|
|
14
|
+
* A change is in a read that began after it committed. The page's own write
|
|
15
|
+
* had committed by the time it was answered, so its echo is measured from that
|
|
16
|
+
* moment instead (liveInvalidate.ts): a read begun since already shows it and
|
|
17
|
+
* is left alone, and only a read that began before it (one the write's own
|
|
18
|
+
* refresh did not reach) is asked again. An echo that arrives while a write of
|
|
19
|
+
* the page's is still out waits for its answer, so its refresh and the echo
|
|
20
|
+
* agree on which reads are fresh.
|
|
21
|
+
*/
|
|
22
|
+
/** Where an answered write stands among the reads (recordWriteRefresh.ts installs it). */
|
|
23
|
+
export declare function setOwnWriteMarker(mark: () => number): void;
|
|
24
|
+
/** A write is going out: call what this returns once it is answered, or has failed. */
|
|
25
|
+
export declare function ownWriteSent(): () => void;
|
|
26
|
+
/** Whether a write of this page's is still out. */
|
|
27
|
+
export declare const ownWritesOut: () => boolean;
|
|
28
|
+
/** Once every write of this page's that is out has been answered, or ECHO_WAIT_MS has passed. */
|
|
29
|
+
export declare function ownWritesAnswered(): Promise<void>;
|
|
30
|
+
/** Where the page's last write was answered, when that was a moment ago; undefined when no write of the page's is that recent. */
|
|
31
|
+
export declare function ownWriteMark(): number | undefined;
|
|
32
|
+
/** Forget every write: the session or connection ended. */
|
|
33
|
+
export declare function forgetOwnWrites(): void;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This page's own writes, for the live stream that echoes them back.
|
|
3
|
+
*
|
|
4
|
+
* Every write the page sends is answered, and its caller then asks again what
|
|
5
|
+
* it changed (recordWriteRefresh.ts). The same write then comes back on the
|
|
6
|
+
* live stream, marked `self` (the reader's own account), a few hundred
|
|
7
|
+
* milliseconds later. Taken as a change someone else made, it asked every read
|
|
8
|
+
* the write's own refresh had just begun once more: a read that began before
|
|
9
|
+
* the echo arrived had, by live sync's rule, begun before the change, so the
|
|
10
|
+
* record page composed twice and every list and count on it was read twice,
|
|
11
|
+
* and the composed answers were forgotten as a write's are, so each section
|
|
12
|
+
* then asked on its own (a field report: 65 to 112 requests after one write).
|
|
13
|
+
*
|
|
14
|
+
* A change is in a read that began after it committed. The page's own write
|
|
15
|
+
* had committed by the time it was answered, so its echo is measured from that
|
|
16
|
+
* moment instead (liveInvalidate.ts): a read begun since already shows it and
|
|
17
|
+
* is left alone, and only a read that began before it (one the write's own
|
|
18
|
+
* refresh did not reach) is asked again. An echo that arrives while a write of
|
|
19
|
+
* the page's is still out waits for its answer, so its refresh and the echo
|
|
20
|
+
* agree on which reads are fresh.
|
|
21
|
+
*/
|
|
22
|
+
/** How long after the page's own write a `self` change is taken to be that write's echo. Short, since the same
|
|
23
|
+
account writing in another tab within it would have its change taken for this page's: a read this page began
|
|
24
|
+
between the two would not be asked again for it (the next change, focus or the counts' clock asks it). */
|
|
25
|
+
const ECHO_WINDOW_MS = 3_000;
|
|
26
|
+
/** The longest an echo waits for the page's writes still out to be answered. */
|
|
27
|
+
const ECHO_WAIT_MS = 10_000;
|
|
28
|
+
let out = 0;
|
|
29
|
+
let answered;
|
|
30
|
+
let waiting = [];
|
|
31
|
+
/* The moment a write was answered, in the order reads begin in (recordWriteRefresh.ts liveMark). */
|
|
32
|
+
let marker = () => 0;
|
|
33
|
+
/** Where an answered write stands among the reads (recordWriteRefresh.ts installs it). */
|
|
34
|
+
export function setOwnWriteMarker(mark) {
|
|
35
|
+
marker = mark;
|
|
36
|
+
}
|
|
37
|
+
/** A write is going out: call what this returns once it is answered, or has failed. */
|
|
38
|
+
export function ownWriteSent() {
|
|
39
|
+
out++;
|
|
40
|
+
let done = false;
|
|
41
|
+
return () => {
|
|
42
|
+
if (done)
|
|
43
|
+
return;
|
|
44
|
+
done = true;
|
|
45
|
+
out--;
|
|
46
|
+
answered = { at: Date.now(), mark: marker() };
|
|
47
|
+
if (out > 0)
|
|
48
|
+
return;
|
|
49
|
+
const ready = waiting;
|
|
50
|
+
waiting = [];
|
|
51
|
+
for (const resume of ready)
|
|
52
|
+
resume();
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/** Whether a write of this page's is still out. */
|
|
56
|
+
export const ownWritesOut = () => out > 0;
|
|
57
|
+
/** Once every write of this page's that is out has been answered, or ECHO_WAIT_MS has passed. */
|
|
58
|
+
export function ownWritesAnswered() {
|
|
59
|
+
if (out === 0)
|
|
60
|
+
return Promise.resolve();
|
|
61
|
+
return new Promise((resolve) => {
|
|
62
|
+
const timer = setTimeout(resolve, ECHO_WAIT_MS);
|
|
63
|
+
waiting.push(() => {
|
|
64
|
+
clearTimeout(timer);
|
|
65
|
+
resolve();
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/** Where the page's last write was answered, when that was a moment ago; undefined when no write of the page's is that recent. */
|
|
70
|
+
export function ownWriteMark() {
|
|
71
|
+
return answered && Date.now() - answered.at < ECHO_WINDOW_MS ? answered.mark : undefined;
|
|
72
|
+
}
|
|
73
|
+
/** Forget every write: the session or connection ended. */
|
|
74
|
+
export function forgetOwnWrites() {
|
|
75
|
+
answered = undefined;
|
|
76
|
+
}
|