@mistriwork/kit 1.0.0-rc.11 → 1.0.0-rc.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/actionGrants.d.ts +21 -0
- package/dist/client/actionGrants.js +24 -0
- package/dist/client/addressMount.d.ts +67 -0
- package/dist/client/addressMount.js +136 -0
- package/dist/client/app.d.ts +10 -0
- package/dist/client/app.js +976 -0
- package/dist/client/boot.d.ts +1 -0
- package/dist/client/boot.js +37 -0
- package/dist/client/brandLook.css +125 -0
- package/dist/client/breakdownBatch.d.ts +34 -0
- package/dist/client/breakdownBatch.js +115 -0
- package/dist/client/bulkActions.d.ts +66 -0
- package/dist/client/bulkActions.js +171 -0
- package/dist/client/chart.d.ts +20 -0
- package/dist/client/chart.js +80 -0
- package/dist/client/clauses.d.ts +121 -0
- package/dist/client/clauses.js +276 -0
- package/dist/client/columns.d.ts +77 -0
- package/dist/client/columns.js +102 -0
- package/dist/client/components/Accordion.d.ts +26 -0
- package/dist/client/components/Accordion.js +44 -0
- package/dist/client/components/ApiOperations.d.ts +3 -0
- package/dist/client/components/ApiOperations.js +162 -0
- package/dist/client/components/AppColumnMenu.d.ts +66 -0
- package/dist/client/components/AppColumnMenu.js +59 -0
- package/dist/client/components/AppColumnMenuPopups.d.ts +21 -0
- package/dist/client/components/AppColumnMenuPopups.js +92 -0
- package/dist/client/components/AppFooter.css +17 -0
- package/dist/client/components/AppFooter.d.ts +23 -0
- package/dist/client/components/AppFooter.js +12 -0
- package/dist/client/components/AppIssues.d.ts +4 -0
- package/dist/client/components/AppIssues.js +18 -0
- package/dist/client/components/AppList.d.ts +20 -0
- package/dist/client/components/AppList.js +696 -0
- package/dist/client/components/AttachmentList.d.ts +45 -0
- package/dist/client/components/AttachmentList.js +178 -0
- package/dist/client/components/BoardList.css +9 -0
- package/dist/client/components/Breakdown.d.ts +11 -0
- package/dist/client/components/Breakdown.js +157 -0
- package/dist/client/components/BreakdownRoom.d.ts +4 -0
- package/dist/client/components/BreakdownRoom.js +48 -0
- package/dist/client/components/CardsList.d.ts +23 -0
- package/dist/client/components/CardsList.js +209 -0
- package/dist/client/components/Chart.css +165 -0
- package/dist/client/components/Chart.d.ts +194 -0
- package/dist/client/components/Chart.js +801 -0
- package/dist/client/components/ChartFigure.d.ts +82 -0
- package/dist/client/components/ChartFigure.js +102 -0
- package/dist/client/components/ChartShapes.css +213 -0
- package/dist/client/components/ChartShapes.d.ts +63 -0
- package/dist/client/components/ChartShapes.js +393 -0
- package/dist/client/components/Checklist.css +16 -0
- package/dist/client/components/Composer.d.ts +1 -0
- package/dist/client/components/Composer.js +331 -0
- package/dist/client/components/Content.d.ts +8 -0
- package/dist/client/components/Content.js +170 -0
- package/dist/client/components/CountedLabel.d.ts +10 -0
- package/dist/client/components/CountedLabel.js +26 -0
- package/dist/client/components/Crumbs.d.ts +11 -0
- package/dist/client/components/Crumbs.js +142 -0
- package/dist/client/components/DashboardList.css +7 -0
- package/dist/client/components/DashboardList.d.ts +9 -0
- package/dist/client/components/DashboardList.js +46 -0
- package/dist/client/components/DashboardNote.d.ts +21 -0
- package/dist/client/components/DashboardNote.js +22 -0
- package/dist/client/components/DateField.css +6 -0
- package/dist/client/components/DateField.d.ts +7 -0
- package/dist/client/components/DateField.js +27 -0
- package/dist/client/components/DefinedFields.d.ts +50 -0
- package/dist/client/components/DefinedFields.js +186 -0
- package/dist/client/components/DeleteButton.d.ts +30 -0
- package/dist/client/components/DeleteButton.js +198 -0
- package/dist/client/components/Diagram.d.ts +7 -0
- package/dist/client/components/Diagram.js +320 -0
- package/dist/client/components/Dressed.d.ts +31 -0
- package/dist/client/components/Dressed.js +138 -0
- package/dist/client/components/Dropdown.d.ts +14 -0
- package/dist/client/components/Dropdown.js +20 -0
- package/dist/client/components/EditLayoutButton.d.ts +13 -0
- package/dist/client/components/EditLayoutButton.js +7 -0
- package/dist/client/components/Editable.d.ts +47 -0
- package/dist/client/components/Editable.js +422 -0
- package/dist/client/components/ErrorBoundary.d.ts +40 -0
- package/dist/client/components/ErrorBoundary.js +41 -0
- package/dist/client/components/Export.d.ts +15 -0
- package/dist/client/components/Export.js +151 -0
- package/dist/client/components/ExportHold.d.ts +18 -0
- package/dist/client/components/ExportHold.js +30 -0
- package/dist/client/components/FavoriteStar.d.ts +5 -0
- package/dist/client/components/FavoriteStar.js +14 -0
- package/dist/client/components/FieldArranger.d.ts +28 -0
- package/dist/client/components/FieldArranger.js +82 -0
- package/dist/client/components/FilePreview.css +20 -0
- package/dist/client/components/FilePreview.d.ts +26 -0
- package/dist/client/components/FilePreview.js +170 -0
- package/dist/client/components/FilterBoxes.d.ts +76 -0
- package/dist/client/components/FilterBoxes.js +294 -0
- package/dist/client/components/FilterRail.css +100 -0
- package/dist/client/components/FilterRail.d.ts +61 -0
- package/dist/client/components/FilterRail.js +559 -0
- package/dist/client/components/Gallery.d.ts +11 -0
- package/dist/client/components/Gallery.js +53 -0
- package/dist/client/components/Grid.d.ts +122 -0
- package/dist/client/components/Grid.js +1115 -0
- package/dist/client/components/GridCellEditor.d.ts +35 -0
- package/dist/client/components/GridCellEditor.js +291 -0
- package/dist/client/components/GridSelection.d.ts +16 -0
- package/dist/client/components/GridSelection.js +28 -0
- package/dist/client/components/HelpPanel.d.ts +5 -0
- package/dist/client/components/HelpPanel.js +92 -0
- package/dist/client/components/History.d.ts +10 -0
- package/dist/client/components/History.js +22 -0
- package/dist/client/components/Icon.d.ts +31 -0
- package/dist/client/components/Icon.js +20 -0
- package/dist/client/components/JsonPreview.d.ts +5 -0
- package/dist/client/components/JsonPreview.js +25 -0
- package/dist/client/components/JsonValue.d.ts +4 -0
- package/dist/client/components/JsonValue.js +3 -0
- package/dist/client/components/JsonView.css +109 -0
- package/dist/client/components/JsonView.d.ts +3 -0
- package/dist/client/components/JsonView.js +118 -0
- package/dist/client/components/Landing.d.ts +19 -0
- package/dist/client/components/Landing.js +55 -0
- package/dist/client/components/LandingSurface.css +177 -0
- package/dist/client/components/LandingSurface.d.ts +42 -0
- package/dist/client/components/LandingSurface.js +108 -0
- package/dist/client/components/LayoutBuilder.d.ts +36 -0
- package/dist/client/components/LayoutBuilder.js +104 -0
- package/dist/client/components/Lightbox.d.ts +29 -0
- package/dist/client/components/Lightbox.js +62 -0
- package/dist/client/components/ListEmpty.css +13 -0
- package/dist/client/components/ListEmpty.d.ts +10 -0
- package/dist/client/components/ListEmpty.js +8 -0
- package/dist/client/components/ListFilterBar.css +76 -0
- package/dist/client/components/ListFilterBar.d.ts +52 -0
- package/dist/client/components/ListFilterBar.js +304 -0
- package/dist/client/components/LiveNotices.css +105 -0
- package/dist/client/components/LiveNotices.d.ts +26 -0
- package/dist/client/components/LiveNotices.js +211 -0
- package/dist/client/components/MinorMoneyInput.d.ts +26 -0
- package/dist/client/components/MinorMoneyInput.js +50 -0
- package/dist/client/components/Modal.css +3 -0
- package/dist/client/components/MultiStepForm.css +122 -0
- package/dist/client/components/MultiStepForm.d.ts +59 -0
- package/dist/client/components/MultiStepForm.js +216 -0
- package/dist/client/components/NavGlyph.d.ts +14 -0
- package/dist/client/components/NavGlyph.js +27 -0
- package/dist/client/components/Nested.d.ts +21 -0
- package/dist/client/components/Nested.js +86 -0
- package/dist/client/components/NewRecord.d.ts +89 -0
- package/dist/client/components/NewRecord.js +897 -0
- package/dist/client/components/NewRecordButton.d.ts +13 -0
- package/dist/client/components/NewRecordButton.js +28 -0
- package/dist/client/components/Notes.css +39 -0
- package/dist/client/components/Notes.d.ts +59 -0
- package/dist/client/components/Notes.js +96 -0
- package/dist/client/components/OverflowMenu.d.ts +3 -0
- package/dist/client/components/OverflowMenu.js +60 -0
- package/dist/client/components/Page.d.ts +52 -0
- package/dist/client/components/Page.js +237 -0
- package/dist/client/components/PageCurrent.d.ts +38 -0
- package/dist/client/components/PageCurrent.js +27 -0
- package/dist/client/components/PageEmptyRun.d.ts +18 -0
- package/dist/client/components/PageEmptyRun.js +118 -0
- package/dist/client/components/PageFields.d.ts +3 -0
- package/dist/client/components/PageFields.js +294 -0
- package/dist/client/components/PageFlowDiagram.css +193 -0
- package/dist/client/components/PageFlowDiagram.d.ts +95 -0
- package/dist/client/components/PageFlowDiagram.js +276 -0
- package/dist/client/components/PageFlows.css +27 -0
- package/dist/client/components/PageFlows.d.ts +54 -0
- package/dist/client/components/PageFlows.js +92 -0
- package/dist/client/components/PageGroups.d.ts +43 -0
- package/dist/client/components/PageGroups.js +123 -0
- package/dist/client/components/PageHead.d.ts +28 -0
- package/dist/client/components/PageHead.js +279 -0
- package/dist/client/components/PageHeadline.d.ts +23 -0
- package/dist/client/components/PageHeadline.js +101 -0
- package/dist/client/components/PageHistory.d.ts +62 -0
- package/dist/client/components/PageHistory.js +160 -0
- package/dist/client/components/PageLayout.d.ts +22 -0
- package/dist/client/components/PageLayout.js +13 -0
- package/dist/client/components/PageMetrics.d.ts +11 -0
- package/dist/client/components/PageMetrics.js +252 -0
- package/dist/client/components/PageRelated.d.ts +70 -0
- package/dist/client/components/PageRelated.js +667 -0
- package/dist/client/components/PageRoom.d.ts +37 -0
- package/dist/client/components/PageRoom.js +277 -0
- package/dist/client/components/PageSectionBox.d.ts +28 -0
- package/dist/client/components/PageSectionBox.js +65 -0
- package/dist/client/components/PageSections.d.ts +38 -0
- package/dist/client/components/PageSections.js +352 -0
- package/dist/client/components/PageSkeleton.css +17 -0
- package/dist/client/components/PageSkeleton.d.ts +11 -0
- package/dist/client/components/PageSkeleton.js +25 -0
- package/dist/client/components/PageTimeline.d.ts +2 -0
- package/dist/client/components/PageTimeline.js +273 -0
- package/dist/client/components/Palette.d.ts +4 -0
- package/dist/client/components/Palette.js +176 -0
- package/dist/client/components/Peek.d.ts +1 -0
- package/dist/client/components/Peek.js +158 -0
- package/dist/client/components/PeekPanel.d.ts +16 -0
- package/dist/client/components/PeekPanel.js +120 -0
- package/dist/client/components/Picker.d.ts +13 -0
- package/dist/client/components/Picker.js +33 -0
- package/dist/client/components/Prefs.d.ts +3 -0
- package/dist/client/components/Prefs.js +121 -0
- package/dist/client/components/PresentationSwitch.d.ts +13 -0
- package/dist/client/components/PresentationSwitch.js +10 -0
- package/dist/client/components/Prompt.d.ts +35 -0
- package/dist/client/components/Prompt.js +114 -0
- package/dist/client/components/QrCode.css +11 -0
- package/dist/client/components/QrCode.d.ts +4 -0
- package/dist/client/components/QrCode.js +57 -0
- package/dist/client/components/QueueList.css +122 -0
- package/dist/client/components/QuickAdd.css +18 -0
- package/dist/client/components/QuickAdd.d.ts +11 -0
- package/dist/client/components/QuickAdd.js +53 -0
- package/dist/client/components/QuickAddOnDemand.d.ts +4 -0
- package/dist/client/components/QuickAddOnDemand.js +10 -0
- package/dist/client/components/Record.d.ts +36 -0
- package/dist/client/components/Record.js +385 -0
- package/dist/client/components/RecordGone.d.ts +7 -0
- package/dist/client/components/RecordGone.js +22 -0
- package/dist/client/components/RecordPicker.d.ts +59 -0
- package/dist/client/components/RecordPicker.js +299 -0
- package/dist/client/components/RecordSummaries.d.ts +55 -0
- package/dist/client/components/RecordSummaries.js +151 -0
- package/dist/client/components/RecordTags.d.ts +6 -0
- package/dist/client/components/RecordTags.js +119 -0
- package/dist/client/components/RecordTrailNav.d.ts +25 -0
- package/dist/client/components/RecordTrailNav.js +110 -0
- package/dist/client/components/RichText.d.ts +7 -0
- package/dist/client/components/RichText.js +82 -0
- package/dist/client/components/RichTextEditor.css +202 -0
- package/dist/client/components/RichTextEditor.d.ts +33 -0
- package/dist/client/components/RichTextEditor.js +348 -0
- package/dist/client/components/RichTextField.d.ts +26 -0
- package/dist/client/components/RichTextField.js +71 -0
- package/dist/client/components/Rooms.d.ts +35 -0
- package/dist/client/components/Rooms.js +276 -0
- package/dist/client/components/RowActions.d.ts +8 -0
- package/dist/client/components/RowActions.js +49 -0
- package/dist/client/components/RowHost.d.ts +110 -0
- package/dist/client/components/RowHost.js +212 -0
- package/dist/client/components/SavedViews.d.ts +25 -0
- package/dist/client/components/SavedViews.js +35 -0
- package/dist/client/components/SchemaExport.d.ts +15 -0
- package/dist/client/components/SchemaExport.js +42 -0
- package/dist/client/components/SectionPeriod.css +14 -0
- package/dist/client/components/SectionPeriod.d.ts +7 -0
- package/dist/client/components/SectionPeriod.js +14 -0
- package/dist/client/components/SetFieldDialog.d.ts +12 -0
- package/dist/client/components/SetFieldDialog.js +51 -0
- package/dist/client/components/Sidebar.d.ts +34 -0
- package/dist/client/components/Sidebar.js +398 -0
- package/dist/client/components/Skeleton.d.ts +35 -0
- package/dist/client/components/Skeleton.js +49 -0
- package/dist/client/components/SortMenu.d.ts +20 -0
- package/dist/client/components/SortMenu.js +45 -0
- package/dist/client/components/SplitListDetail.css +119 -0
- package/dist/client/components/SuggestBox.d.ts +29 -0
- package/dist/client/components/SuggestBox.js +60 -0
- package/dist/client/components/Summary.d.ts +14 -0
- package/dist/client/components/Summary.js +93 -0
- package/dist/client/components/TableRoom.d.ts +88 -0
- package/dist/client/components/TableRoom.js +246 -0
- package/dist/client/components/TableView.d.ts +111 -0
- package/dist/client/components/TableView.js +324 -0
- package/dist/client/components/ThMenu.d.ts +40 -0
- package/dist/client/components/ThMenu.js +163 -0
- package/dist/client/components/ThemeLab.d.ts +4 -0
- package/dist/client/components/ThemeLab.js +67 -0
- package/dist/client/components/TimelineSides.css +23 -0
- package/dist/client/components/TimelineSides.d.ts +7 -0
- package/dist/client/components/TimelineSides.js +9 -0
- package/dist/client/components/Tour.d.ts +12 -0
- package/dist/client/components/Tour.js +131 -0
- package/dist/client/components/Value.d.ts +38 -0
- package/dist/client/components/Value.js +172 -0
- package/dist/client/components/WorkPanel.d.ts +9 -0
- package/dist/client/components/WorkPanel.js +43 -0
- package/dist/client/components/WorkflowStatus.d.ts +6 -0
- package/dist/client/components/WorkflowStatus.js +44 -0
- package/dist/client/components/WriteConfirm.d.ts +4 -0
- package/dist/client/components/WriteConfirm.js +27 -0
- package/dist/client/components/appColumnMenuModel.d.ts +46 -0
- package/dist/client/components/appColumnMenuModel.js +51 -0
- package/dist/client/components/appListModel.d.ts +179 -0
- package/dist/client/components/appListModel.js +421 -0
- package/dist/client/components/appRooms.d.ts +106 -0
- package/dist/client/components/appRooms.js +133 -0
- package/dist/client/components/autoChart.d.ts +33 -0
- package/dist/client/components/autoChart.js +107 -0
- package/dist/client/components/avatarPhotos.d.ts +45 -0
- package/dist/client/components/avatarPhotos.js +93 -0
- package/dist/client/components/besideDetail.d.ts +1 -0
- package/dist/client/components/besideDetail.js +10 -0
- package/dist/client/components/boardNew.d.ts +2 -0
- package/dist/client/components/boardNew.js +8 -0
- package/dist/client/components/cardsModel.d.ts +11 -0
- package/dist/client/components/cardsModel.js +24 -0
- package/dist/client/components/chromeIcons.d.ts +16 -0
- package/dist/client/components/chromeIcons.js +16 -0
- package/dist/client/components/columnPresentation.d.ts +8 -0
- package/dist/client/components/columnPresentation.js +47 -0
- package/dist/client/components/componentSlot.d.ts +31 -0
- package/dist/client/components/componentSlot.js +76 -0
- package/dist/client/components/composerDraft.d.ts +16 -0
- package/dist/client/components/composerDraft.js +16 -0
- package/dist/client/components/conditionText.d.ts +14 -0
- package/dist/client/components/conditionText.js +45 -0
- package/dist/client/components/conditionWords.d.ts +37 -0
- package/dist/client/components/conditionWords.js +382 -0
- package/dist/client/components/crumbSlot.d.ts +14 -0
- package/dist/client/components/crumbSlot.js +49 -0
- package/dist/client/components/dashboardModel.d.ts +283 -0
- package/dist/client/components/dashboardModel.js +415 -0
- package/dist/client/components/dashboardParts.d.ts +9 -0
- package/dist/client/components/dashboardParts.js +18 -0
- package/dist/client/components/diagramModel.d.ts +83 -0
- package/dist/client/components/diagramModel.js +211 -0
- package/dist/client/components/dueOpen.d.ts +1 -0
- package/dist/client/components/dueOpen.js +23 -0
- package/dist/client/components/editInteraction.d.ts +20 -0
- package/dist/client/components/editInteraction.js +178 -0
- package/dist/client/components/favoriteNav.d.ts +6 -0
- package/dist/client/components/favoriteNav.js +31 -0
- package/dist/client/components/favorites.d.ts +23 -0
- package/dist/client/components/favorites.js +86 -0
- package/dist/client/components/filePreviewModel.d.ts +18 -0
- package/dist/client/components/filePreviewModel.js +21 -0
- package/dist/client/components/filterRailModel.d.ts +93 -0
- package/dist/client/components/filterRailModel.js +302 -0
- package/dist/client/components/formControlsStyle.d.ts +1 -0
- package/dist/client/components/formControlsStyle.js +3 -0
- package/dist/client/components/formDefaults.d.ts +17 -0
- package/dist/client/components/formDefaults.js +128 -0
- package/dist/client/components/gridArrange.d.ts +33 -0
- package/dist/client/components/gridArrange.js +62 -0
- package/dist/client/components/gridCellModel.d.ts +32 -0
- package/dist/client/components/gridCellModel.js +42 -0
- package/dist/client/components/gridSizing.d.ts +89 -0
- package/dist/client/components/gridSizing.js +295 -0
- package/dist/client/components/groupMoves.d.ts +44 -0
- package/dist/client/components/groupMoves.js +295 -0
- package/dist/client/components/groupOrder.d.ts +43 -0
- package/dist/client/components/groupOrder.js +63 -0
- package/dist/client/components/inputRenderers.d.ts +48 -0
- package/dist/client/components/inputRenderers.js +37 -0
- package/dist/client/components/intakeStyle.d.ts +2 -0
- package/dist/client/components/intakeStyle.js +6 -0
- package/dist/client/components/jsonModel.d.ts +98 -0
- package/dist/client/components/jsonModel.js +264 -0
- package/dist/client/components/listColumn.d.ts +20 -0
- package/dist/client/components/listColumn.js +31 -0
- package/dist/client/components/listNavigation.d.ts +16 -0
- package/dist/client/components/listNavigation.js +14 -0
- package/dist/client/components/mentionRows.d.ts +5 -0
- package/dist/client/components/mentionRows.js +62 -0
- package/dist/client/components/mount.d.ts +55 -0
- package/dist/client/components/mount.js +155 -0
- package/dist/client/components/myViews.d.ts +54 -0
- package/dist/client/components/myViews.js +82 -0
- package/dist/client/components/navCounts.d.ts +84 -0
- package/dist/client/components/navCounts.js +194 -0
- package/dist/client/components/navigationTree.d.ts +52 -0
- package/dist/client/components/navigationTree.js +49 -0
- package/dist/client/components/newMenuModel.d.ts +27 -0
- package/dist/client/components/newMenuModel.js +58 -0
- package/dist/client/components/newRecordModel.d.ts +58 -0
- package/dist/client/components/newRecordModel.js +232 -0
- package/dist/client/components/onDemand.d.ts +30 -0
- package/dist/client/components/onDemand.js +121 -0
- package/dist/client/components/optimisticMoves.d.ts +21 -0
- package/dist/client/components/optimisticMoves.js +145 -0
- package/dist/client/components/pageContext.d.ts +154 -0
- package/dist/client/components/pageContext.js +47 -0
- package/dist/client/components/pageFieldsRead.d.ts +67 -0
- package/dist/client/components/pageFieldsRead.js +55 -0
- package/dist/client/components/pageModel.d.ts +203 -0
- package/dist/client/components/pageModel.js +67 -0
- package/dist/client/components/pageStep.d.ts +31 -0
- package/dist/client/components/pageStep.js +15 -0
- package/dist/client/components/paletteModel.d.ts +9 -0
- package/dist/client/components/paletteModel.js +46 -0
- package/dist/client/components/pickerStaleness.d.ts +32 -0
- package/dist/client/components/pickerStaleness.js +27 -0
- package/dist/client/components/placeOrder.d.ts +47 -0
- package/dist/client/components/placeOrder.js +71 -0
- package/dist/client/components/pointerDrag.d.ts +54 -0
- package/dist/client/components/pointerDrag.js +95 -0
- package/dist/client/components/presentationFit.d.ts +19 -0
- package/dist/client/components/presentationFit.js +32 -0
- package/dist/client/components/recordKeys.d.ts +2 -0
- package/dist/client/components/recordKeys.js +8 -0
- package/dist/client/components/recordSearch.d.ts +31 -0
- package/dist/client/components/recordSearch.js +80 -0
- package/dist/client/components/recordSurface.d.ts +86 -0
- package/dist/client/components/recordSurface.js +267 -0
- package/dist/client/components/rowOpens.d.ts +19 -0
- package/dist/client/components/rowOpens.js +25 -0
- package/dist/client/components/sidebarModel.d.ts +152 -0
- package/dist/client/components/sidebarModel.js +372 -0
- package/dist/client/components/suggestModel.d.ts +22 -0
- package/dist/client/components/suggestModel.js +49 -0
- package/dist/client/components/suggestPart.d.ts +4 -0
- package/dist/client/components/suggestPart.js +4 -0
- package/dist/client/components/textMeasure.d.ts +2 -0
- package/dist/client/components/textMeasure.js +35 -0
- package/dist/client/components/unknownIcon.d.ts +8 -0
- package/dist/client/components/unknownIcon.js +32 -0
- package/dist/client/components/useBulkSelection.d.ts +30 -0
- package/dist/client/components/useBulkSelection.js +360 -0
- package/dist/client/components/useConditionWords.d.ts +17 -0
- package/dist/client/components/useConditionWords.js +104 -0
- package/dist/client/components/useGridKeyboard.d.ts +32 -0
- package/dist/client/components/useGridKeyboard.js +223 -0
- package/dist/client/components/useListOrder.d.ts +94 -0
- package/dist/client/components/useListOrder.js +294 -0
- package/dist/client/components/useMediaQuery.d.ts +10 -0
- package/dist/client/components/useMediaQuery.js +45 -0
- package/dist/client/components/useMessageLanguage.d.ts +1 -0
- package/dist/client/components/useMessageLanguage.js +6 -0
- package/dist/client/components/usePins.d.ts +20 -0
- package/dist/client/components/usePins.js +66 -0
- package/dist/client/components/usePointerDrag.d.ts +72 -0
- package/dist/client/components/usePointerDrag.js +553 -0
- package/dist/client/components/useRecordInsert.d.ts +42 -0
- package/dist/client/components/useRecordInsert.js +145 -0
- package/dist/client/components/useRowWindow.d.ts +35 -0
- package/dist/client/components/useRowWindow.js +149 -0
- package/dist/client/components/useStickyHead.d.ts +17 -0
- package/dist/client/components/useStickyHead.js +65 -0
- package/dist/client/components/useTabFold.d.ts +32 -0
- package/dist/client/components/useTabFold.js +145 -0
- package/dist/client/components/valueModel.d.ts +300 -0
- package/dist/client/components/valueModel.js +560 -0
- package/dist/client/components/valueRenderers.d.ts +36 -0
- package/dist/client/components/valueRenderers.js +13 -0
- package/dist/client/components/viewLink.d.ts +27 -0
- package/dist/client/components/viewLink.js +79 -0
- package/dist/client/components/walk.d.ts +14 -0
- package/dist/client/components/walk.js +16 -0
- package/dist/client/compose.d.ts +8 -0
- package/dist/client/compose.js +163 -0
- package/dist/client/composedHook.d.ts +20 -0
- package/dist/client/composedHook.js +12 -0
- package/dist/client/composedReads.d.ts +26 -0
- package/dist/client/composedReads.js +183 -0
- package/dist/client/composer.css +499 -0
- package/dist/client/composer.d.ts +121 -0
- package/dist/client/composer.js +1079 -0
- package/dist/client/composerEntry.d.ts +1 -0
- package/dist/client/composerEntry.js +58 -0
- package/dist/client/composerTab.d.ts +6 -0
- package/dist/client/composerTab.js +20 -0
- package/dist/client/conditions.d.ts +46 -0
- package/dist/client/conditions.js +150 -0
- package/dist/client/connectionList.d.ts +11 -0
- package/dist/client/connectionList.js +146 -0
- package/dist/client/connectionScope.d.ts +6 -0
- package/dist/client/connectionScope.js +14 -0
- package/dist/client/connectionTransition.d.ts +12 -0
- package/dist/client/connectionTransition.js +41 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenu.d.ts +4 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenu.js +6 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenuPopups.d.ts +4 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenuPopups.js +6 -0
- package/dist/client/copy/columnMenu/components/ThMenu.d.ts +35 -0
- package/dist/client/copy/columnMenu/components/ThMenu.js +37 -0
- package/dist/client/copy/columnMenu/components/appColumnMenuModel.d.ts +10 -0
- package/dist/client/copy/columnMenu/components/appColumnMenuModel.js +12 -0
- package/dist/client/copy/dashboards/breakdownBatch.d.ts +3 -0
- package/dist/client/copy/dashboards/breakdownBatch.js +5 -0
- package/dist/client/copy/dashboards/components/Breakdown.d.ts +32 -0
- package/dist/client/copy/dashboards/components/Breakdown.js +25 -0
- package/dist/client/copy/dashboards/components/BreakdownRoom.d.ts +3 -0
- package/dist/client/copy/dashboards/components/BreakdownRoom.js +5 -0
- package/dist/client/copy/dashboards/components/Chart.d.ts +26 -0
- package/dist/client/copy/dashboards/components/Chart.js +19 -0
- package/dist/client/copy/dashboards/components/ChartShapes.d.ts +16 -0
- package/dist/client/copy/dashboards/components/ChartShapes.js +12 -0
- package/dist/client/copy/dashboards/components/PageMetrics.d.ts +21 -0
- package/dist/client/copy/dashboards/components/PageMetrics.js +20 -0
- package/dist/client/copy/dashboards/components/SectionPeriod.d.ts +4 -0
- package/dist/client/copy/dashboards/components/SectionPeriod.js +6 -0
- package/dist/client/copy/dashboards/components/dashboardModel.d.ts +3 -0
- package/dist/client/copy/dashboards/components/dashboardModel.js +5 -0
- package/dist/client/copy/es.d.ts +11 -0
- package/dist/client/copy/es.js +60 -0
- package/dist/client/copy/filters/components/FilterBoxes.d.ts +10 -0
- package/dist/client/copy/filters/components/FilterBoxes.js +12 -0
- package/dist/client/copy/filters/components/FilterRail.d.ts +16 -0
- package/dist/client/copy/filters/components/FilterRail.js +18 -0
- package/dist/client/copy/filters/components/ListFilterBar.d.ts +9 -0
- package/dist/client/copy/filters/components/ListFilterBar.js +11 -0
- package/dist/client/copy/filters/components/conditionWords.d.ts +46 -0
- package/dist/client/copy/filters/components/conditionWords.js +95 -0
- package/dist/client/copy/filters/components/filterRailModel.d.ts +12 -0
- package/dist/client/copy/filters/components/filterRailModel.js +14 -0
- package/dist/client/copy/forms/components/DateField.d.ts +13 -0
- package/dist/client/copy/forms/components/DateField.js +15 -0
- package/dist/client/copy/forms/components/MinorMoneyInput.d.ts +4 -0
- package/dist/client/copy/forms/components/MinorMoneyInput.js +6 -0
- package/dist/client/copy/forms/components/MultiStepForm.d.ts +10 -0
- package/dist/client/copy/forms/components/MultiStepForm.js +12 -0
- package/dist/client/copy/forms/components/NewRecord.d.ts +29 -0
- package/dist/client/copy/forms/components/NewRecord.js +31 -0
- package/dist/client/copy/forms/components/NewRecordButton.d.ts +6 -0
- package/dist/client/copy/forms/components/NewRecordButton.js +8 -0
- package/dist/client/copy/forms/components/Picker.d.ts +4 -0
- package/dist/client/copy/forms/components/Picker.js +6 -0
- package/dist/client/copy/forms/components/QuickAdd.d.ts +3 -0
- package/dist/client/copy/forms/components/QuickAdd.js +5 -0
- package/dist/client/copy/forms/components/RecordPicker.d.ts +6 -0
- package/dist/client/copy/forms/components/RecordPicker.js +8 -0
- package/dist/client/copy/forms/components/RichTextEditor.d.ts +36 -0
- package/dist/client/copy/forms/components/RichTextEditor.js +40 -0
- package/dist/client/copy/forms/components/RichTextField.d.ts +3 -0
- package/dist/client/copy/forms/components/RichTextField.js +5 -0
- package/dist/client/copy/forms/components/SetFieldDialog.d.ts +10 -0
- package/dist/client/copy/forms/components/SetFieldDialog.js +9 -0
- package/dist/client/copy/forms/components/useRecordInsert.d.ts +7 -0
- package/dist/client/copy/forms/components/useRecordInsert.js +9 -0
- package/dist/client/copy/help/helpContent.d.ts +71 -0
- package/dist/client/copy/help/helpContent.js +73 -0
- package/dist/client/copy/lists/bulkActions.d.ts +12 -0
- package/dist/client/copy/lists/bulkActions.js +14 -0
- package/dist/client/copy/lists/components/AppList.d.ts +28 -0
- package/dist/client/copy/lists/components/AppList.js +30 -0
- package/dist/client/copy/lists/components/CardsList.d.ts +3 -0
- package/dist/client/copy/lists/components/CardsList.js +5 -0
- package/dist/client/copy/lists/components/Gallery.d.ts +7 -0
- package/dist/client/copy/lists/components/Gallery.js +9 -0
- package/dist/client/copy/lists/components/Grid.d.ts +30 -0
- package/dist/client/copy/lists/components/Grid.js +29 -0
- package/dist/client/copy/lists/components/GridCellEditor.d.ts +5 -0
- package/dist/client/copy/lists/components/GridCellEditor.js +7 -0
- package/dist/client/copy/lists/components/GridSelection.d.ts +4 -0
- package/dist/client/copy/lists/components/GridSelection.js +6 -0
- package/dist/client/copy/lists/components/Nested.d.ts +7 -0
- package/dist/client/copy/lists/components/Nested.js +9 -0
- package/dist/client/copy/lists/components/RowActions.d.ts +1 -0
- package/dist/client/copy/lists/components/RowActions.js +3 -0
- package/dist/client/copy/lists/components/SavedViews.d.ts +5 -0
- package/dist/client/copy/lists/components/SavedViews.js +7 -0
- package/dist/client/copy/lists/components/SortMenu.d.ts +5 -0
- package/dist/client/copy/lists/components/SortMenu.js +7 -0
- package/dist/client/copy/lists/components/TableRoom.d.ts +12 -0
- package/dist/client/copy/lists/components/TableRoom.js +14 -0
- package/dist/client/copy/lists/components/TableView.d.ts +37 -0
- package/dist/client/copy/lists/components/TableView.js +39 -0
- package/dist/client/copy/lists/components/appListModel.d.ts +6 -0
- package/dist/client/copy/lists/components/appListModel.js +5 -0
- package/dist/client/copy/lists/components/myViews.d.ts +4 -0
- package/dist/client/copy/lists/components/myViews.js +6 -0
- package/dist/client/copy/lists/components/placeOrder.d.ts +4 -0
- package/dist/client/copy/lists/components/placeOrder.js +6 -0
- package/dist/client/copy/lists/components/useBulkSelection.d.ts +20 -0
- package/dist/client/copy/lists/components/useBulkSelection.js +16 -0
- package/dist/client/copy/lists/components/useListOrder.d.ts +7 -0
- package/dist/client/copy/lists/components/useListOrder.js +9 -0
- package/dist/client/copy/public/components/appRooms.d.ts +3 -0
- package/dist/client/copy/public/components/appRooms.js +5 -0
- package/dist/client/copy/record/components/Actions.d.ts +13 -0
- package/dist/client/copy/record/components/Actions.js +15 -0
- package/dist/client/copy/record/components/AttachmentList.d.ts +23 -0
- package/dist/client/copy/record/components/AttachmentList.js +22 -0
- package/dist/client/copy/record/components/DeleteButton.d.ts +22 -0
- package/dist/client/copy/record/components/DeleteButton.js +24 -0
- package/dist/client/copy/record/components/Dressed.d.ts +5 -0
- package/dist/client/copy/record/components/Dressed.js +7 -0
- package/dist/client/copy/record/components/EditLayoutButton.d.ts +5 -0
- package/dist/client/copy/record/components/EditLayoutButton.js +7 -0
- package/dist/client/copy/record/components/Editable.d.ts +25 -0
- package/dist/client/copy/record/components/Editable.js +24 -0
- package/dist/client/copy/record/components/FieldArranger.d.ts +15 -0
- package/dist/client/copy/record/components/FieldArranger.js +17 -0
- package/dist/client/copy/record/components/FilePreview.d.ts +13 -0
- package/dist/client/copy/record/components/FilePreview.js +15 -0
- package/dist/client/copy/record/components/JsonPreview.d.ts +3 -0
- package/dist/client/copy/record/components/JsonPreview.js +5 -0
- package/dist/client/copy/record/components/JsonView.d.ts +12 -0
- package/dist/client/copy/record/components/JsonView.js +14 -0
- package/dist/client/copy/record/components/LayoutBuilder.d.ts +23 -0
- package/dist/client/copy/record/components/LayoutBuilder.js +25 -0
- package/dist/client/copy/record/components/Lightbox.d.ts +5 -0
- package/dist/client/copy/record/components/Lightbox.js +7 -0
- package/dist/client/copy/record/components/LiveNotices.d.ts +33 -0
- package/dist/client/copy/record/components/LiveNotices.js +29 -0
- package/dist/client/copy/record/components/PageCurrent.d.ts +1 -0
- package/dist/client/copy/record/components/PageCurrent.js +3 -0
- package/dist/client/copy/record/components/PageEmptyRun.d.ts +3 -0
- package/dist/client/copy/record/components/PageEmptyRun.js +5 -0
- package/dist/client/copy/record/components/PageFields.d.ts +5 -0
- package/dist/client/copy/record/components/PageFields.js +7 -0
- package/dist/client/copy/record/components/PageFlowDiagram.d.ts +33 -0
- package/dist/client/copy/record/components/PageFlowDiagram.js +37 -0
- package/dist/client/copy/record/components/PageFlows.d.ts +20 -0
- package/dist/client/copy/record/components/PageFlows.js +22 -0
- package/dist/client/copy/record/components/PageGroups.d.ts +12 -0
- package/dist/client/copy/record/components/PageGroups.js +14 -0
- package/dist/client/copy/record/components/PageHead.d.ts +8 -0
- package/dist/client/copy/record/components/PageHead.js +10 -0
- package/dist/client/copy/record/components/PageHistory.d.ts +18 -0
- package/dist/client/copy/record/components/PageHistory.js +20 -0
- package/dist/client/copy/record/components/PageLayout.d.ts +5 -0
- package/dist/client/copy/record/components/PageLayout.js +7 -0
- package/dist/client/copy/record/components/PageRelated.d.ts +24 -0
- package/dist/client/copy/record/components/PageRelated.js +26 -0
- package/dist/client/copy/record/components/PageRoom.d.ts +4 -0
- package/dist/client/copy/record/components/PageRoom.js +6 -0
- package/dist/client/copy/record/components/PageSectionBox.d.ts +6 -0
- package/dist/client/copy/record/components/PageSectionBox.js +10 -0
- package/dist/client/copy/record/components/PageTimeline.d.ts +9 -0
- package/dist/client/copy/record/components/PageTimeline.js +8 -0
- package/dist/client/copy/record/components/Peek.d.ts +3 -0
- package/dist/client/copy/record/components/Peek.js +5 -0
- package/dist/client/copy/record/components/PeekPanel.d.ts +5 -0
- package/dist/client/copy/record/components/PeekPanel.js +7 -0
- package/dist/client/copy/record/components/QrCode.d.ts +3 -0
- package/dist/client/copy/record/components/QrCode.js +5 -0
- package/dist/client/copy/record/components/Record.d.ts +19 -0
- package/dist/client/copy/record/components/Record.js +21 -0
- package/dist/client/copy/record/components/RecordGone.d.ts +4 -0
- package/dist/client/copy/record/components/RecordGone.js +6 -0
- package/dist/client/copy/record/components/RecordSummaries.d.ts +1 -0
- package/dist/client/copy/record/components/RecordSummaries.js +3 -0
- package/dist/client/copy/record/components/RecordTags.d.ts +9 -0
- package/dist/client/copy/record/components/RecordTags.js +11 -0
- package/dist/client/copy/record/components/RecordTrailNav.d.ts +8 -0
- package/dist/client/copy/record/components/RecordTrailNav.js +10 -0
- package/dist/client/copy/record/components/RichText.d.ts +4 -0
- package/dist/client/copy/record/components/RichText.js +6 -0
- package/dist/client/copy/record/components/Value.d.ts +4 -0
- package/dist/client/copy/record/components/Value.js +6 -0
- package/dist/client/copy/record/components/WorkflowStatus.d.ts +7 -0
- package/dist/client/copy/record/components/WorkflowStatus.js +9 -0
- package/dist/client/copy/record/components/WriteConfirm.d.ts +11 -0
- package/dist/client/copy/record/components/WriteConfirm.js +13 -0
- package/dist/client/copy/record/components/groupMoves.d.ts +7 -0
- package/dist/client/copy/record/components/groupMoves.js +9 -0
- package/dist/client/copy/record/components/jsonModel.d.ts +3 -0
- package/dist/client/copy/record/components/jsonModel.js +5 -0
- package/dist/client/copy/record/components/pageModel.d.ts +5 -0
- package/dist/client/copy/record/components/pageModel.js +7 -0
- package/dist/client/copy/record/components/recordSurface.d.ts +6 -0
- package/dist/client/copy/record/components/recordSurface.js +8 -0
- package/dist/client/copy/record/components/valueModel.d.ts +5 -0
- package/dist/client/copy/record/components/valueModel.js +7 -0
- package/dist/client/copy/record/fileSource.d.ts +3 -0
- package/dist/client/copy/record/fileSource.js +5 -0
- package/dist/client/copy/record/insert.d.ts +6 -0
- package/dist/client/copy/record/insert.js +8 -0
- package/dist/client/copy/record/page.d.ts +4 -0
- package/dist/client/copy/record/page.js +6 -0
- package/dist/client/copy/record/recordEditValidation.d.ts +4 -0
- package/dist/client/copy/record/recordEditValidation.js +6 -0
- package/dist/client/copy/record/savedPages.d.ts +4 -0
- package/dist/client/copy/record/savedPages.js +6 -0
- package/dist/client/copy/record/template.d.ts +9 -0
- package/dist/client/copy/record/template.js +11 -0
- package/dist/client/copy/record/write.d.ts +30 -0
- package/dist/client/copy/record/write.js +26 -0
- package/dist/client/copy/shell/app.d.ts +27 -0
- package/dist/client/copy/shell/app.js +43 -0
- package/dist/client/copy/shell/components/AppIssues.d.ts +10 -0
- package/dist/client/copy/shell/components/AppIssues.js +9 -0
- package/dist/client/copy/shell/components/Crumbs.d.ts +7 -0
- package/dist/client/copy/shell/components/Crumbs.js +17 -0
- package/dist/client/copy/shell/components/Dropdown.d.ts +3 -0
- package/dist/client/copy/shell/components/Dropdown.js +5 -0
- package/dist/client/copy/shell/components/ErrorBoundary.d.ts +4 -0
- package/dist/client/copy/shell/components/ErrorBoundary.js +6 -0
- package/dist/client/copy/shell/components/FavoriteStar.d.ts +4 -0
- package/dist/client/copy/shell/components/FavoriteStar.js +6 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.d.ts +4 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.js +12 -0
- package/dist/client/copy/shell/components/OverflowMenu.d.ts +3 -0
- package/dist/client/copy/shell/components/OverflowMenu.js +10 -0
- package/dist/client/copy/shell/components/Palette.d.ts +15 -0
- package/dist/client/copy/shell/components/Palette.js +18 -0
- package/dist/client/copy/shell/components/Prefs.d.ts +4 -0
- package/dist/client/copy/shell/components/Prefs.js +11 -0
- package/dist/client/copy/shell/components/Prompt.d.ts +1 -0
- package/dist/client/copy/shell/components/Prompt.js +3 -0
- package/dist/client/copy/shell/components/Rooms.d.ts +6 -0
- package/dist/client/copy/shell/components/Rooms.js +8 -0
- package/dist/client/copy/shell/components/Sidebar.d.ts +7 -0
- package/dist/client/copy/shell/components/Sidebar.js +9 -0
- package/dist/client/copy/shell/components/Skeleton.d.ts +5 -0
- package/dist/client/copy/shell/components/Skeleton.js +7 -0
- package/dist/client/copy/shell/components/TopNav.d.ts +4 -0
- package/dist/client/copy/shell/components/TopNav.js +12 -0
- package/dist/client/copy/shell/components/Tour.d.ts +4 -0
- package/dist/client/copy/shell/components/Tour.js +6 -0
- package/dist/client/copy/shell/components/newMenuModel.d.ts +3 -0
- package/dist/client/copy/shell/components/newMenuModel.js +5 -0
- package/dist/client/copy/shell/components/onDemand.d.ts +3 -0
- package/dist/client/copy/shell/components/onDemand.js +5 -0
- package/dist/client/copy/shell/components/sidebarModel.d.ts +3 -0
- package/dist/client/copy/shell/components/sidebarModel.js +5 -0
- package/dist/client/copy/shell/connectionList.d.ts +6 -0
- package/dist/client/copy/shell/connectionList.js +8 -0
- package/dist/client/copy/shell/core.d.ts +16 -0
- package/dist/client/copy/shell/core.js +18 -0
- package/dist/client/copy/shell/palette.d.ts +6 -0
- package/dist/client/copy/shell/palette.js +8 -0
- package/dist/client/copy/shell/prompt.d.ts +1 -0
- package/dist/client/copy/shell/prompt.js +3 -0
- package/dist/client/copy/shell/requestIdentity.d.ts +9 -0
- package/dist/client/copy/shell/requestIdentity.js +11 -0
- package/dist/client/copy/shell/resourceRequests.d.ts +4 -0
- package/dist/client/copy/shell/resourceRequests.js +6 -0
- package/dist/client/copy/shell/sessionIdentity.d.ts +11 -0
- package/dist/client/copy/shell/sessionIdentity.js +13 -0
- package/dist/client/copy/shell/sessionLifecycle.d.ts +5 -0
- package/dist/client/copy/shell/sessionLifecycle.js +7 -0
- package/dist/client/copy/shell/startup.d.ts +5 -0
- package/dist/client/copy/shell/startup.js +7 -0
- package/dist/client/copy/shell/theme.d.ts +5 -0
- package/dist/client/copy/shell/theme.js +14 -0
- package/dist/client/copy/shell/toast.d.ts +3 -0
- package/dist/client/copy/shell/toast.js +5 -0
- package/dist/client/copy/shell/updateAttempts.d.ts +6 -0
- package/dist/client/copy/shell/updateAttempts.js +8 -0
- package/dist/client/copy/shell/visualTheme.d.ts +4 -0
- package/dist/client/copy/shell/visualTheme.js +6 -0
- package/dist/client/copy/workbench/clauses.d.ts +3 -0
- package/dist/client/copy/workbench/clauses.js +5 -0
- package/dist/client/copy/workbench/components/ApiOperations.d.ts +21 -0
- package/dist/client/copy/workbench/components/ApiOperations.js +23 -0
- package/dist/client/copy/workbench/components/Composer.d.ts +105 -0
- package/dist/client/copy/workbench/components/Composer.js +92 -0
- package/dist/client/copy/workbench/components/Diagram.d.ts +56 -0
- package/dist/client/copy/workbench/components/Diagram.js +46 -0
- package/dist/client/copy/workbench/components/Export.d.ts +26 -0
- package/dist/client/copy/workbench/components/Export.js +25 -0
- package/dist/client/copy/workbench/components/HelpPanel.d.ts +10 -0
- package/dist/client/copy/workbench/components/HelpPanel.js +12 -0
- package/dist/client/copy/workbench/components/History.d.ts +11 -0
- package/dist/client/copy/workbench/components/History.js +10 -0
- package/dist/client/copy/workbench/components/Landing.d.ts +5 -0
- package/dist/client/copy/workbench/components/Landing.js +7 -0
- package/dist/client/copy/workbench/components/SchemaExport.d.ts +24 -0
- package/dist/client/copy/workbench/components/SchemaExport.js +20 -0
- package/dist/client/copy/workbench/components/Summary.d.ts +28 -0
- package/dist/client/copy/workbench/components/Summary.js +24 -0
- package/dist/client/copy/workbench/components/ThemeLab.d.ts +25 -0
- package/dist/client/copy/workbench/components/ThemeLab.js +27 -0
- package/dist/client/copy/workbench/components/WorkPanel.d.ts +12 -0
- package/dist/client/copy/workbench/components/WorkPanel.js +14 -0
- package/dist/client/copy/workbench/composer.d.ts +36 -0
- package/dist/client/copy/workbench/composer.js +32 -0
- package/dist/client/copy/workbench/composerEntry.d.ts +4 -0
- package/dist/client/copy/workbench/composerEntry.js +6 -0
- package/dist/client/copy/workbench/export.d.ts +8 -0
- package/dist/client/copy/workbench/export.js +7 -0
- package/dist/client/copy/workbench/filterbar.d.ts +6 -0
- package/dist/client/copy/workbench/filterbar.js +8 -0
- package/dist/client/copy/workbench/handoff.d.ts +20 -0
- package/dist/client/copy/workbench/handoff.js +19 -0
- package/dist/client/copy/workbench/help.d.ts +6 -0
- package/dist/client/copy/workbench/help.js +8 -0
- package/dist/client/copy/workbench/history.d.ts +3 -0
- package/dist/client/copy/workbench/history.js +5 -0
- package/dist/client/copy/workbench/schemaexport.d.ts +5 -0
- package/dist/client/copy/workbench/schemaexport.js +7 -0
- package/dist/client/copy/workbench/tour.d.ts +22 -0
- package/dist/client/copy/workbench/tour.js +24 -0
- package/dist/client/copy/workbench/views.d.ts +6 -0
- package/dist/client/copy/workbench/views.js +8 -0
- package/dist/client/core.d.ts +312 -0
- package/dist/client/core.js +1067 -0
- package/dist/client/customThemes.css +43 -0
- package/dist/client/dashboard.d.ts +16 -0
- package/dist/client/dashboard.js +35 -0
- package/dist/client/deeplink.d.ts +64 -0
- package/dist/client/deeplink.js +384 -0
- package/dist/client/delete.d.ts +8 -0
- package/dist/client/delete.js +35 -0
- package/dist/client/density.d.ts +8 -0
- package/dist/client/density.js +102 -0
- package/dist/client/devtoolsEventClient.d.ts +27 -0
- package/dist/client/devtoolsEventClient.js +32 -0
- package/dist/client/documents.d.ts +9 -0
- package/dist/client/documents.js +23 -0
- package/dist/client/dom.d.ts +36 -0
- package/dist/client/dom.js +232 -0
- package/dist/client/draftRecovery.d.ts +16 -0
- package/dist/client/draftRecovery.js +56 -0
- package/dist/client/export.d.ts +59 -0
- package/dist/client/export.js +217 -0
- package/dist/client/features.css +2187 -0
- package/dist/client/fieldErrors.d.ts +27 -0
- package/dist/client/fieldErrors.js +20 -0
- package/dist/client/fileSource.d.ts +10 -0
- package/dist/client/fileSource.js +115 -0
- package/dist/client/filterbar.d.ts +87 -0
- package/dist/client/filterbar.js +168 -0
- package/dist/client/firstPaint.d.ts +26 -0
- package/dist/client/firstPaint.js +102 -0
- package/dist/client/fonts/Barlow-OFL.txt +125 -0
- package/dist/client/fonts/IBMPlexMono-OFL.txt +104 -0
- package/dist/client/fonts/Inter-OFL.txt +92 -0
- package/dist/client/fonts/barlow-400.woff2 +0 -0
- package/dist/client/fonts/barlow-600.woff2 +0 -0
- package/dist/client/fonts/barlow-semi-condensed-700.woff2 +0 -0
- package/dist/client/fonts/ibm-plex-mono-400.woff2 +0 -0
- package/dist/client/fonts/ibm-plex-mono-500.woff2 +0 -0
- package/dist/client/fonts/inter-latin.woff2 +0 -0
- package/dist/client/formControls.css +5 -0
- package/dist/client/handoff.d.ts +47 -0
- package/dist/client/handoff.js +138 -0
- package/dist/client/help.css +151 -0
- package/dist/client/help.d.ts +20 -0
- package/dist/client/help.js +103 -0
- package/dist/client/helpContent.d.ts +95 -0
- package/dist/client/helpContent.js +661 -0
- package/dist/client/history.d.ts +10 -0
- package/dist/client/history.js +181 -0
- package/dist/client/historyToken.d.ts +18 -0
- package/dist/client/historyToken.js +27 -0
- package/dist/client/iconWeight.d.ts +16 -0
- package/dist/client/iconWeight.js +44 -0
- package/dist/client/index.html +244 -0
- package/dist/client/insert.d.ts +50 -0
- package/dist/client/insert.js +269 -0
- package/dist/client/kit.d.ts +7 -0
- package/dist/client/kit.js +1 -0
- package/dist/client/layoutDraftRecovery.d.ts +8 -0
- package/dist/client/layoutDraftRecovery.js +33 -0
- package/dist/client/ledgerLook.css +32 -0
- package/dist/client/liveReads.d.ts +23 -0
- package/dist/client/liveReads.js +38 -0
- package/dist/client/liveState.d.ts +94 -0
- package/dist/client/liveState.js +212 -0
- package/dist/client/locale.d.ts +141 -0
- package/dist/client/locale.js +0 -0
- package/dist/client/lumenLook.css +1867 -0
- package/dist/client/menu.d.ts +49 -0
- package/dist/client/menu.js +131 -0
- package/dist/client/menuScope.d.ts +6 -0
- package/dist/client/menuScope.js +4 -0
- package/dist/client/messages.d.ts +240 -0
- package/dist/client/messages.js +370 -0
- package/dist/client/motionStill.d.ts +1 -0
- package/dist/client/motionStill.js +17 -0
- package/dist/client/navigationHold.d.ts +37 -0
- package/dist/client/navigationHold.js +503 -0
- package/dist/client/nested.d.ts +8 -0
- package/dist/client/nested.js +26 -0
- package/dist/client/ownWrites.d.ts +33 -0
- package/dist/client/ownWrites.js +76 -0
- package/dist/client/page.css +4052 -0
- package/dist/client/page.d.ts +21 -0
- package/dist/client/page.js +187 -0
- package/dist/client/pagemarks.d.ts +32 -0
- package/dist/client/pagemarks.js +98 -0
- package/dist/client/palette.d.ts +35 -0
- package/dist/client/palette.js +357 -0
- package/dist/client/partsLook.css +1047 -0
- package/dist/client/peek.d.ts +11 -0
- package/dist/client/peek.js +51 -0
- package/dist/client/peekpanel.d.ts +26 -0
- package/dist/client/peekpanel.js +121 -0
- package/dist/client/pendingWork.d.ts +19 -0
- package/dist/client/pendingWork.js +36 -0
- package/dist/client/pins.d.ts +24 -0
- package/dist/client/pins.js +97 -0
- package/dist/client/prefs.d.ts +3 -0
- package/dist/client/prefs.js +32 -0
- package/dist/client/prompt.d.ts +27 -0
- package/dist/client/prompt.js +61 -0
- package/dist/client/readGathering.d.ts +4 -0
- package/dist/client/readGathering.js +23 -0
- package/dist/client/recordCompose.d.ts +11 -0
- package/dist/client/recordCompose.js +69 -0
- package/dist/client/recordDrafts.d.ts +40 -0
- package/dist/client/recordDrafts.js +57 -0
- package/dist/client/recordEditValidation.d.ts +12 -0
- package/dist/client/recordEditValidation.js +52 -0
- package/dist/client/recordIntent.d.ts +6 -0
- package/dist/client/recordIntent.js +15 -0
- package/dist/client/recordPress.d.ts +12 -0
- package/dist/client/recordPress.js +84 -0
- package/dist/client/recordSource.d.ts +6 -0
- package/dist/client/recordSource.js +15 -0
- package/dist/client/recordTrail.d.ts +77 -0
- package/dist/client/recordTrail.js +101 -0
- package/dist/client/recordWriteRefresh.d.ts +74 -0
- package/dist/client/recordWriteRefresh.js +284 -0
- package/dist/client/relatedRows.d.ts +4 -0
- package/dist/client/relatedRows.js +24 -0
- package/dist/client/requestIdentity.d.ts +36 -0
- package/dist/client/requestIdentity.js +97 -0
- package/dist/client/resourceRequests.d.ts +7 -0
- package/dist/client/resourceRequests.js +32 -0
- package/dist/client/roleLabels.d.ts +7 -0
- package/dist/client/roleLabels.js +24 -0
- package/dist/client/rowEditing.d.ts +15 -0
- package/dist/client/rowEditing.js +36 -0
- package/dist/client/sageLook.css +242 -0
- package/dist/client/savedPages.d.ts +15 -0
- package/dist/client/savedPages.js +123 -0
- package/dist/client/schemaexport.d.ts +14 -0
- package/dist/client/schemaexport.js +182 -0
- package/dist/client/sessionIdentity.d.ts +39 -0
- package/dist/client/sessionIdentity.js +255 -0
- package/dist/client/sessionLifecycle.d.ts +33 -0
- package/dist/client/sessionLifecycle.js +276 -0
- package/dist/client/shellHost.d.ts +70 -0
- package/dist/client/shellHost.js +92 -0
- package/dist/client/shellMain.d.ts +8 -0
- package/dist/client/shellMode.d.ts +433 -0
- package/dist/client/shellMode.js +68 -0
- package/dist/client/shellStart.d.ts +5 -0
- package/dist/client/shellStart.js +54 -0
- package/dist/client/shells.d.ts +123 -0
- package/dist/client/shells.js +1 -0
- package/dist/client/sql.css +139 -0
- package/dist/client/startup.d.ts +8 -0
- package/dist/client/startup.js +85 -0
- package/dist/client/startupHold.d.ts +10 -0
- package/dist/client/startupHold.js +73 -0
- package/dist/client/structure.css +1296 -0
- package/dist/client/style.css +3526 -0
- package/dist/client/styleImports.d.ts +3 -0
- package/dist/client/surfaces.d.ts +18 -0
- package/dist/client/surfaces.js +27 -0
- package/dist/client/surfacesLook.css +88 -0
- package/dist/client/template.d.ts +75 -0
- package/dist/client/template.js +403 -0
- package/dist/client/theme.d.ts +14 -0
- package/dist/client/theme.js +112 -0
- package/dist/client/themeFamilies.css +788 -0
- package/dist/client/thmenu.d.ts +12 -0
- package/dist/client/thmenu.js +94 -0
- package/dist/client/toast.d.ts +7 -0
- package/dist/client/toast.js +117 -0
- package/dist/client/tour.d.ts +8 -0
- package/dist/client/tour.js +176 -0
- package/dist/client/transport.d.ts +2 -0
- package/dist/client/transport.js +13 -0
- package/dist/client/typography.d.ts +4 -0
- package/dist/client/typography.js +51 -0
- package/dist/client/uiBridge.d.ts +57 -0
- package/dist/client/uiBridge.js +30 -0
- package/dist/client/updateAttempts.d.ts +46 -0
- package/dist/client/updateAttempts.js +131 -0
- package/dist/client/url.d.ts +74 -0
- package/dist/client/url.js +388 -0
- package/dist/client/views.d.ts +19 -0
- package/dist/client/views.js +133 -0
- package/dist/client/visualTheme.d.ts +62 -0
- package/dist/client/visualTheme.js +502 -0
- package/dist/client/visualThemes.css +421 -0
- package/dist/client/workshopLook.css +126 -0
- package/dist/client/write.d.ts +100 -0
- package/dist/client/write.js +882 -0
- package/dist/client/writePaths.d.ts +16 -0
- package/dist/client/writePaths.js +35 -0
- package/dist/client/yesNoRule.d.ts +12 -0
- package/dist/client/yesNoRule.js +39 -0
- package/dist/clientFiles.d.ts +11 -4
- package/dist/clientFiles.js +16 -12
- package/dist/vite.d.ts +136 -0
- package/dist/vite.js +571 -0
- package/package.json +130 -3
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { state } from './core.js';
|
|
2
|
+
import { connectionGeneration } from './connectionTransition.js';
|
|
3
|
+
import { captureSessionIdentity, sessionIdentity } from './sessionIdentity.js';
|
|
4
|
+
import { queryClient } from './components/mount.js';
|
|
5
|
+
import { composedEpoch } from './composedReads.js';
|
|
6
|
+
import { canonicalText } from '@mistriwork/engine/shared/recordReadKeys.js';
|
|
7
|
+
import { setOwnWriteMarker } from './ownWrites.js';
|
|
8
|
+
import { gatherReads } from './readGathering.js';
|
|
9
|
+
function sameKey(value, key) {
|
|
10
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
11
|
+
return false;
|
|
12
|
+
const candidate = value;
|
|
13
|
+
return (Object.keys(candidate).length === Object.keys(key).length &&
|
|
14
|
+
Object.keys(key).every((name) => Object.hasOwn(candidate, name) && Object.is(candidate[name], key[name])));
|
|
15
|
+
}
|
|
16
|
+
/** Existing query families are not uniformly connection-qualified. Only inspect
|
|
17
|
+
* them while their captured schema/connection/session is still the current owner.
|
|
18
|
+
* No `key` is any key of the table (live sync's `many`), and `same` is how a query's
|
|
19
|
+
* key is judged to be it: exactly, for a confirmed write; as text, for a change the
|
|
20
|
+
* server announces, whose ids past 2^53 are strings (liveInvalidate.ts). */
|
|
21
|
+
export function queryTouches(query, connection, table, key, primary, same = sameKey) {
|
|
22
|
+
const is = (value) => key === undefined || same(value, key);
|
|
23
|
+
switch (query[0]) {
|
|
24
|
+
case 'record':
|
|
25
|
+
case 'references':
|
|
26
|
+
return query[1] === table && is(query[2]);
|
|
27
|
+
case 'page-fields':
|
|
28
|
+
return query[2] === table && is(query[3]);
|
|
29
|
+
case 'run':
|
|
30
|
+
// TableRoom includes connection; Dashboard's three-part key does not.
|
|
31
|
+
// Text queries may include joins, so invalidate their owner's list family.
|
|
32
|
+
return ((query.length > 3 && query[1] === connection) ||
|
|
33
|
+
(query.length === 3 && typeof query[1] === 'string' && typeof query[2] === 'number'));
|
|
34
|
+
case 'count':
|
|
35
|
+
return query[1] === connection;
|
|
36
|
+
case 'page-list':
|
|
37
|
+
return !!query[1] && typeof query[1] === 'object' && query[1].base === table;
|
|
38
|
+
case 'peek':
|
|
39
|
+
return (query[1] === connection &&
|
|
40
|
+
query[2] === table &&
|
|
41
|
+
(key === undefined || (typeof query[3] === 'string' && Object.hasOwn(key, query[3]) && same({ v: query[4] }, { v: key[query[3]] }))));
|
|
42
|
+
case 'peekpanel': {
|
|
43
|
+
const values = query[3];
|
|
44
|
+
return (query[1] === connection &&
|
|
45
|
+
query[2] === table &&
|
|
46
|
+
primary.length > 0 &&
|
|
47
|
+
Array.isArray(values) &&
|
|
48
|
+
values.length === primary.length &&
|
|
49
|
+
(key === undefined || primary.every((name, index) => Object.hasOwn(key, name) && same({ v: values[index] }, { v: key[name] }))));
|
|
50
|
+
}
|
|
51
|
+
case 'picker':
|
|
52
|
+
case 'picker-labels':
|
|
53
|
+
return query[1] === connection && query[2] === table;
|
|
54
|
+
default:
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/** Capture before dispatch; invoke only after a confirmed acknowledgement.
|
|
59
|
+
* Stale reads are cancelled before invalidation. Mounted editors retain their
|
|
60
|
+
* confirmed overlay/caret; lists can refresh and records read fresh on remount.
|
|
61
|
+
* Cache failures cannot turn an acknowledged write into a rejected operation. */
|
|
62
|
+
export function captureRecordWriteRefresh(table, inputKey) {
|
|
63
|
+
const identity = captureSessionIdentity(), schema = state.schema;
|
|
64
|
+
const connection = state.activeConnection ?? '', generation = connectionGeneration();
|
|
65
|
+
const key = Object.freeze({ ...inputKey });
|
|
66
|
+
const primary = (schema?.tables?.find((candidate) => candidate.id === table)?.columns ?? [])
|
|
67
|
+
.filter((column) => column.primaryKey)
|
|
68
|
+
.map((column) => column.name);
|
|
69
|
+
const owns = () => identity === sessionIdentity() &&
|
|
70
|
+
schema === state.schema &&
|
|
71
|
+
connection === (state.activeConnection ?? '') &&
|
|
72
|
+
generation === connectionGeneration();
|
|
73
|
+
let acknowledged = false;
|
|
74
|
+
return () => {
|
|
75
|
+
if (acknowledged || !owns())
|
|
76
|
+
return;
|
|
77
|
+
acknowledged = true;
|
|
78
|
+
try {
|
|
79
|
+
const cache = queryClient.getQueryCache();
|
|
80
|
+
const matches = cache.getAll().filter((query) => queryTouches(query.queryKey, connection, table, key, primary));
|
|
81
|
+
// Query object identity also fences a cleared/replaced cache during await.
|
|
82
|
+
const current = (query) => owns() && matches.includes(query) && cache.get(query.queryHash) === query;
|
|
83
|
+
void queryClient
|
|
84
|
+
.cancelQueries({ predicate: current })
|
|
85
|
+
.then(async () => {
|
|
86
|
+
if (!owns())
|
|
87
|
+
return;
|
|
88
|
+
await queryClient.invalidateQueries({ predicate: current, refetchType: 'none' });
|
|
89
|
+
if (!owns())
|
|
90
|
+
return;
|
|
91
|
+
await queryClient.refetchQueries({
|
|
92
|
+
type: 'active',
|
|
93
|
+
predicate: (query) => current(query) && !['record', 'page-fields', 'references'].includes(String(query.queryKey[0])),
|
|
94
|
+
});
|
|
95
|
+
})
|
|
96
|
+
.catch(() => {
|
|
97
|
+
/* Read reconciliation has no authority over the write outcome. */
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
catch {
|
|
101
|
+
/* A disposed cache does not invalidate a confirmed mutation. */
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* A write landed on the record on screen — a command, a Save that asked for a
|
|
107
|
+
* repaint, a reply posted from its timeline — so its page re-reads where it
|
|
108
|
+
* stands: every read on it asks again and keeps what it shows until the new
|
|
109
|
+
* answer lands. A routed page used to repaint by replacing its walk entry,
|
|
110
|
+
* which started the room over; its reads, kept only while the room is up,
|
|
111
|
+
* went with it, and the record page stood blank until every one of them had
|
|
112
|
+
* been asked again and the page composed (about 8 s for a tenant's ticket).
|
|
113
|
+
* Dialogs and split panes always refreshed this way.
|
|
114
|
+
*
|
|
115
|
+
* Asked once per write: a command's receipt refreshes the record, and the
|
|
116
|
+
* form's Done (or a one-click verb's end) asks the same of the host a moment
|
|
117
|
+
* later. With no write sent or answered between them (composedReads.ts
|
|
118
|
+
* composedEpoch), the second has nothing new to read, and asking it cancelled
|
|
119
|
+
* the first's reads mid-flight and composed the page a second time (G173).
|
|
120
|
+
* A second ask for the same record in the same moment of the writes from
|
|
121
|
+
* another surface — its own scope, its connection spelled its own way — joins
|
|
122
|
+
* what the first began instead: it never cancels it, and asks only what the
|
|
123
|
+
* first did not (a field report: a save on a record page set off its compose,
|
|
124
|
+
* lists and counts twice, the first set cancelled mid-flight).
|
|
125
|
+
*/
|
|
126
|
+
export function refreshRecordInPlace(client, record, fields,
|
|
127
|
+
/** A change another person made, which no write of this page's sits between: asked again though nothing was sent since
|
|
128
|
+
the last ask. With `since` (liveMark), no read already out is cancelled: one that began before the change is let
|
|
129
|
+
land and asked once more, one that began since is joined (askAgain). */
|
|
130
|
+
again = false, since) {
|
|
131
|
+
const asked = canonicalText([record.connection, record.table, record.key, record.queryScope ?? null, fields]);
|
|
132
|
+
const epoch = composedEpoch(), id = canonicalText([record.table, record.key]);
|
|
133
|
+
const last = refreshed.get(client);
|
|
134
|
+
if (!again && last?.epoch === epoch && last.record === id) {
|
|
135
|
+
if (last.asked.has(asked))
|
|
136
|
+
return Promise.resolve();
|
|
137
|
+
last.asked.add(asked);
|
|
138
|
+
/* Measured from the first ask: what it began since is joined, what has landed since is left. */
|
|
139
|
+
again = true;
|
|
140
|
+
since = last.mark;
|
|
141
|
+
}
|
|
142
|
+
else
|
|
143
|
+
refreshed.set(client, { record: id, epoch, asked: new Set([asked]), mark: since ?? liveMark(client) });
|
|
144
|
+
/* The page, its lists, its counts and its verbs are asked in this moment: a transport that can, sends them as one. */
|
|
145
|
+
gatherReads();
|
|
146
|
+
/* A write of this page's asks its table's lists and counts again here. A change pushed by someone else does not:
|
|
147
|
+
live sync has already asked each read that change touches, by the tables it names (liveInvalidate.ts), and this
|
|
148
|
+
asked every list and count on the connection once more on top, cancelling those it had just begun. */
|
|
149
|
+
if (since === undefined)
|
|
150
|
+
captureRecordWriteRefresh(record.table, record.key)();
|
|
151
|
+
/* A write of this page's cancels what was out, since it began before the write; a change pushed by another
|
|
152
|
+
person's write never does, or a steady stream of them starves every read (G211). */
|
|
153
|
+
const ask = (predicate, refetch = 'active') => since === undefined ? client.invalidateQueries({ predicate, refetchType: refetch }) : askAgain(client, predicate, since, refetch);
|
|
154
|
+
const planned = ask((query) => ['page-root', 'page-plan'].includes(String(query.queryKey[0])) &&
|
|
155
|
+
query.queryKey[1] === record.connection &&
|
|
156
|
+
(record.queryScope === undefined || query.queryKey.at(-1) === record.queryScope));
|
|
157
|
+
const asking = [planned];
|
|
158
|
+
/* Every page that shows the record's fields, by the record, not by one page's id: a command's receipt does
|
|
159
|
+
not know which page it was run from. */
|
|
160
|
+
if (fields)
|
|
161
|
+
asking.push(ask((query) => query.queryKey[0] === 'page-fields' && query.queryKey[2] === record.table && sameKey(query.queryKey[3], record.key)));
|
|
162
|
+
/* With the lists' invalidation above, in the same moment: the verbs' availability follows both as one
|
|
163
|
+
(commandAvailability.ts), and waits for the compose that answers it. */
|
|
164
|
+
asking.push(ask((query) => query.queryKey[0] === 'when' && query.queryKey[1] === record.table));
|
|
165
|
+
/* Every section's read asks again, as the remount did: the write may have
|
|
166
|
+
added a history entry, a timeline row, a flow step or a related row. They
|
|
167
|
+
are marked now and asked once the page's compose is back, which brings
|
|
168
|
+
their answers with it (composedReads.ts): asked beside it, each went out
|
|
169
|
+
on its own (G173). One a new plan has already asked anew is no longer
|
|
170
|
+
stale, so it is not asked twice. */
|
|
171
|
+
const section = (query) => pageSectionRead(query.queryKey, record.table, record.key);
|
|
172
|
+
/* Marked as a pushed change marks: one that has landed since the change already shows it, and is left fresh. */
|
|
173
|
+
void (since === undefined
|
|
174
|
+
? client.invalidateQueries({ predicate: section, refetchType: 'none' })
|
|
175
|
+
: askAgain(client, section, since, 'none'));
|
|
176
|
+
asking.push(planned
|
|
177
|
+
.catch(() => { })
|
|
178
|
+
.then(() => {
|
|
179
|
+
gatherReads();
|
|
180
|
+
const stale = (query) => section(query) && query.state.isInvalidated;
|
|
181
|
+
return since === undefined ? client.refetchQueries({ type: 'active', predicate: stale }) : askAgain(client, stale, since);
|
|
182
|
+
}));
|
|
183
|
+
return Promise.allSettled(asking).then(() => { });
|
|
184
|
+
}
|
|
185
|
+
/* ---------- a change another person made: asked again, never cancelled ---------- */
|
|
186
|
+
/* One order for the moments that matter here: a change arriving (liveMark) and a read beginning. A read that began
|
|
187
|
+
after a change was marked was answered after its commit, so it already shows it. */
|
|
188
|
+
let sequence = 0;
|
|
189
|
+
const begun = new WeakMap();
|
|
190
|
+
function readsBegun(client) {
|
|
191
|
+
let known = begun.get(client);
|
|
192
|
+
if (known)
|
|
193
|
+
return known;
|
|
194
|
+
const marks = (known = new WeakMap());
|
|
195
|
+
begun.set(client, marks);
|
|
196
|
+
client.getQueryCache().subscribe((event) => {
|
|
197
|
+
if (event.type !== 'updated')
|
|
198
|
+
return;
|
|
199
|
+
/* A read that failed, or was cancelled and put back as it was (a revert is a setState), showed nothing new: it is
|
|
200
|
+
no longer one that began since, so the change still asks it again. */
|
|
201
|
+
const type = event.action.type;
|
|
202
|
+
if (type === 'fetch')
|
|
203
|
+
marks.set(event.query, ++sequence);
|
|
204
|
+
else if (type === 'error' || type === 'setState')
|
|
205
|
+
marks.delete(event.query);
|
|
206
|
+
});
|
|
207
|
+
return known;
|
|
208
|
+
}
|
|
209
|
+
/** The moment a pushed change arrived, in the order reads begin in; reads of `client` are followed from now on. */
|
|
210
|
+
export function liveMark(client) {
|
|
211
|
+
readsBegun(client);
|
|
212
|
+
return ++sequence;
|
|
213
|
+
}
|
|
214
|
+
/* A write of this page's is marked as it is answered: its echo on the live stream is measured from there (ownWrites.ts). */
|
|
215
|
+
setOwnWriteMarker(() => liveMark(queryClient));
|
|
216
|
+
/**
|
|
217
|
+
* Ask the reads `predicate` matches again for a change marked at `since` (liveMark), never cancelling one already out:
|
|
218
|
+
* a read that began before the change is let land and then asked once more, a read that began since is joined, and a
|
|
219
|
+
* read that has landed since is left as it is. Inactive reads are only marked stale. Invalidating instead cancelled
|
|
220
|
+
* and restarted every read in flight, so while changes kept coming faster than a read took, none ever landed (G211).
|
|
221
|
+
*/
|
|
222
|
+
export async function askAgain(client, predicate, since, refetch = 'active') {
|
|
223
|
+
const marks = readsBegun(client);
|
|
224
|
+
const after = (query) => (marks.get(query) ?? 0) > since;
|
|
225
|
+
const landedSince = (query) => after(query) && query.state.fetchStatus !== 'fetching';
|
|
226
|
+
const matched = client
|
|
227
|
+
.getQueryCache()
|
|
228
|
+
.findAll({ predicate })
|
|
229
|
+
.filter((query) => !landedSince(query));
|
|
230
|
+
if (!matched.length)
|
|
231
|
+
return;
|
|
232
|
+
await client.invalidateQueries({ predicate: (query) => matched.includes(query), refetchType: 'none' });
|
|
233
|
+
if (refetch === 'none')
|
|
234
|
+
return;
|
|
235
|
+
const active = matched.filter((query) => query.isActive());
|
|
236
|
+
const behind = active.filter((query) => query.state.fetchStatus === 'fetching' && !after(query));
|
|
237
|
+
/* Joined, not cancelled: each settles as it would have, and is then asked once more. */
|
|
238
|
+
if (behind.length)
|
|
239
|
+
await client.refetchQueries({ predicate: (query) => behind.includes(query) }, { cancelRefetch: false });
|
|
240
|
+
const asking = active.filter((query) => !landedSince(query));
|
|
241
|
+
if (asking.length)
|
|
242
|
+
await client.refetchQueries({ predicate: (query) => asking.includes(query) }, { cancelRefetch: false });
|
|
243
|
+
}
|
|
244
|
+
/* Per cache, the record last asked again and where the writes stood then. */
|
|
245
|
+
const refreshed = new WeakMap();
|
|
246
|
+
/**
|
|
247
|
+
* A command applied to the record on screen. What it changed is that record —
|
|
248
|
+
* its fields, its sections, the verbs its state allows — and the lists and
|
|
249
|
+
* counts it stands in, so those are asked again now. Every other read is only
|
|
250
|
+
* marked stale, to be asked when next shown: refetching the whole cache on a
|
|
251
|
+
* receipt (the shell, other rooms kept in memory) was most of the two dozen
|
|
252
|
+
* requests one command cost a tenant's ticket page (G173).
|
|
253
|
+
*/
|
|
254
|
+
export function refreshAfterCommand(client, record) {
|
|
255
|
+
void client.invalidateQueries({ predicate: (query) => query.getObserversCount() === 0, refetchType: 'none' });
|
|
256
|
+
refreshRecordInPlace(client, record, true);
|
|
257
|
+
}
|
|
258
|
+
/* The record page's section reads. Those keyed by the record are matched by
|
|
259
|
+
it; those keyed by the plan the server composed for this record (a related
|
|
260
|
+
list, a timeline, a metric) carry no key of their own, so the whole family
|
|
261
|
+
is marked stale and only what is on screen asks again. */
|
|
262
|
+
export const KEYED_SECTION_READS = {
|
|
263
|
+
'page-history': { table: 1, key: 2 },
|
|
264
|
+
'page-flows': { table: 1, key: 2 },
|
|
265
|
+
'page-link-fields': { table: 3, key: 4 },
|
|
266
|
+
'record-children': { table: 1, key: 2 },
|
|
267
|
+
'record-children-page': { table: 1, key: 2 },
|
|
268
|
+
};
|
|
269
|
+
export const PLANNED_SECTION_READS = new Set(['page-list', 'page-timeline', 'page-metric', 'page-metric-measure', 'page-breakdown']);
|
|
270
|
+
function pageSectionRead(query, table, key, same = sameKey) {
|
|
271
|
+
const family = String(query[0]);
|
|
272
|
+
if (PLANNED_SECTION_READS.has(family))
|
|
273
|
+
return true;
|
|
274
|
+
if (family === 'page-custom')
|
|
275
|
+
return query[1] === 'reads' || (query[3] === table && (key === undefined || same(query[4], key)));
|
|
276
|
+
/* What a custom component asked for itself (sdk/hooks.ts useRecord, useRows, useBreakdown) is keyed by a
|
|
277
|
+
resource's name, not the table, and may be a roll-up of the record's own rows, so the family is marked as
|
|
278
|
+
the declared reads are and only what is on screen asks again. Left out, a section drew the status from
|
|
279
|
+
before its page's action until a reload. */
|
|
280
|
+
if (family === 'mistri-ui')
|
|
281
|
+
return true;
|
|
282
|
+
const at = KEYED_SECTION_READS[family];
|
|
283
|
+
return !!at && query[at.table] === table && (key === undefined || same(query[at.key], key));
|
|
284
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { loadJson, saveJson } from './core.js';
|
|
2
|
+
const KEY = 'mistri.related-rows';
|
|
3
|
+
export const RELATED_SIZES = [5, 10, 20, 50];
|
|
4
|
+
let current;
|
|
5
|
+
const listeners = new Set();
|
|
6
|
+
export function relatedRows() {
|
|
7
|
+
if (current === undefined) {
|
|
8
|
+
const stored = Number(loadJson(KEY, 10));
|
|
9
|
+
current = RELATED_SIZES.includes(stored) ? stored : 10;
|
|
10
|
+
}
|
|
11
|
+
return current;
|
|
12
|
+
}
|
|
13
|
+
export function setRelatedRows(value) {
|
|
14
|
+
current = RELATED_SIZES.includes(value) ? value : 10;
|
|
15
|
+
saveJson(KEY, current);
|
|
16
|
+
for (const listener of listeners)
|
|
17
|
+
listener();
|
|
18
|
+
}
|
|
19
|
+
export function subscribeRelatedRows(listener) {
|
|
20
|
+
listeners.add(listener);
|
|
21
|
+
return () => {
|
|
22
|
+
listeners.delete(listener);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** An invalid server contract is a startup failure, not an offline database. */
|
|
2
|
+
export declare class RuntimeMetadataError extends Error {
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The address names no App this server serves: `/helpdesk` on a server whose
|
|
7
|
+
* one App is at `/help-desk`. A reader's typo or a stale link, not an outage —
|
|
8
|
+
* the screen says which Apps are here rather than blaming the database.
|
|
9
|
+
*/
|
|
10
|
+
export declare class UnknownAppError extends Error {
|
|
11
|
+
readonly requested: string;
|
|
12
|
+
readonly apps: ReadonlyArray<{
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
}>;
|
|
16
|
+
constructor(requested: string, apps: ReadonlyArray<{
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
}>);
|
|
20
|
+
}
|
|
21
|
+
/** Listener identity, independent of the App/Workbench presentation toggle. */
|
|
22
|
+
export declare function setAppRequestScope(configured: boolean | null): void;
|
|
23
|
+
export declare const appRequestScope: () => boolean | null;
|
|
24
|
+
export declare function setPublicPlacement(via: string | null): void;
|
|
25
|
+
/**
|
|
26
|
+
* A request's owner, under the selector the listener reads. Callers capture
|
|
27
|
+
* the owner when their work starts — an App ID on an App listener, a registry
|
|
28
|
+
* ID in the explorer — so an async draft, preview or cached read stays with
|
|
29
|
+
* the source it began on. An absent owner leaves the active one to the
|
|
30
|
+
* transport.
|
|
31
|
+
*/
|
|
32
|
+
export declare function ownedBy(owner: string | null | undefined): Record<string, string>;
|
|
33
|
+
export declare function scopeApiRequest(path: string, body: Record<string, unknown> | undefined, active: string | null | undefined): {
|
|
34
|
+
url: string;
|
|
35
|
+
payload: Record<string, unknown> | undefined;
|
|
36
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { shell } from './shellMode.js';
|
|
2
|
+
import { say } from './copy/shell/requestIdentity.js';
|
|
3
|
+
let appConfigured = false;
|
|
4
|
+
/** An invalid server contract is a startup failure, not an offline database. */
|
|
5
|
+
export class RuntimeMetadataError extends Error {
|
|
6
|
+
constructor(message) {
|
|
7
|
+
super(message);
|
|
8
|
+
this.name = 'RuntimeMetadataError';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The address names no App this server serves: `/helpdesk` on a server whose
|
|
13
|
+
* one App is at `/help-desk`. A reader's typo or a stale link, not an outage —
|
|
14
|
+
* the screen says which Apps are here rather than blaming the database.
|
|
15
|
+
*/
|
|
16
|
+
export class UnknownAppError extends Error {
|
|
17
|
+
requested;
|
|
18
|
+
apps;
|
|
19
|
+
constructor(requested, apps) {
|
|
20
|
+
super(say('noApp', { requested }));
|
|
21
|
+
this.requested = requested;
|
|
22
|
+
this.apps = apps;
|
|
23
|
+
this.name = 'UnknownAppError';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/** Listener identity, independent of the App/Workbench presentation toggle. */
|
|
27
|
+
export function setAppRequestScope(configured) {
|
|
28
|
+
appConfigured = configured;
|
|
29
|
+
}
|
|
30
|
+
export const appRequestScope = () => appConfigured;
|
|
31
|
+
/* A tenant App's visitor's public address (addressMount.js keepPlacement): every
|
|
32
|
+
request carries it, for it alone places the visitor's reads with a tenant. */
|
|
33
|
+
let placement = null;
|
|
34
|
+
export function setPublicPlacement(via) {
|
|
35
|
+
placement = via;
|
|
36
|
+
}
|
|
37
|
+
/** The one selector this listener's server reads: `app` on an App server, `conn` in the explorer. */
|
|
38
|
+
const ownerField = () => (appConfigured ? 'app' : 'conn');
|
|
39
|
+
/**
|
|
40
|
+
* A request's owner, under the selector the listener reads. Callers capture
|
|
41
|
+
* the owner when their work starts — an App ID on an App listener, a registry
|
|
42
|
+
* ID in the explorer — so an async draft, preview or cached read stays with
|
|
43
|
+
* the source it began on. An absent owner leaves the active one to the
|
|
44
|
+
* transport.
|
|
45
|
+
*/
|
|
46
|
+
export function ownedBy(owner) {
|
|
47
|
+
return owner == null ? {} : { [ownerField()]: owner };
|
|
48
|
+
}
|
|
49
|
+
export function scopeApiRequest(path, body, active) {
|
|
50
|
+
const url = new URL(path, 'http://mistri.invalid');
|
|
51
|
+
if (url.pathname === '/api/whoami') {
|
|
52
|
+
if (url.searchParams.getAll('app').length > 1 ||
|
|
53
|
+
url.searchParams.getAll('via').length > 1 ||
|
|
54
|
+
[...url.searchParams.keys()].some((key) => key !== 'app' && key !== 'via'))
|
|
55
|
+
throw new Error(say('invalidAuthenticationRequestIdentity'));
|
|
56
|
+
return { url: `${url.pathname}${url.search}`, payload: body };
|
|
57
|
+
}
|
|
58
|
+
if (url.pathname === '/api/runtime')
|
|
59
|
+
return { url: placement ? `${url.pathname}?via=${encodeURIComponent(placement)}` : url.pathname, payload: body };
|
|
60
|
+
if (/^\/api\/connections(?:\/|$)/.test(url.pathname)) {
|
|
61
|
+
if (appConfigured !== false)
|
|
62
|
+
throw new Error(say('databaseConnectionManagementIsUnavailable'));
|
|
63
|
+
return { url: path, payload: body };
|
|
64
|
+
}
|
|
65
|
+
if (appConfigured === null)
|
|
66
|
+
throw new Error(say('common.applicationRuntimeIsUnavailable'));
|
|
67
|
+
const field = ownerField();
|
|
68
|
+
// As the server does: an App request names an app, never a connection.
|
|
69
|
+
if (appConfigured && (url.searchParams.has('conn') || body?.conn !== undefined))
|
|
70
|
+
throw new Error(say('applicationRequestsIdentifyAnApp'));
|
|
71
|
+
const owners = [...url.searchParams.getAll(field), ...(body?.[field] == null ? [] : [body[field]])];
|
|
72
|
+
if (owners.some((owner) => typeof owner !== 'string' || !owner.trim()))
|
|
73
|
+
throw new Error(say('invalidRequestIdentity', { field }));
|
|
74
|
+
const distinct = [...new Set(owners)];
|
|
75
|
+
if (distinct.length > 1)
|
|
76
|
+
throw new Error(say(appConfigured ? 'twoDifferentApplications' : 'twoDifferentConnections'));
|
|
77
|
+
const owner = distinct[0] ?? active;
|
|
78
|
+
let payload = body;
|
|
79
|
+
if (owner) {
|
|
80
|
+
// Commands fingerprint a strict envelope; routing identity belongs to the URL.
|
|
81
|
+
if (appConfigured && url.pathname.startsWith('/api/commands/')) {
|
|
82
|
+
url.searchParams.set('app', owner);
|
|
83
|
+
if (payload) {
|
|
84
|
+
const { app: _app, ...envelope } = payload;
|
|
85
|
+
payload = envelope;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
else if (payload)
|
|
89
|
+
payload = { ...payload, [field]: owner };
|
|
90
|
+
else
|
|
91
|
+
url.searchParams.set(field, owner);
|
|
92
|
+
}
|
|
93
|
+
// Only on a visitor's read, as the shell names them: every other API route refuses an address (server tenantAuthenticatedHttp.ts).
|
|
94
|
+
if (placement && shell().publicRead(url.pathname))
|
|
95
|
+
url.searchParams.set('via', placement);
|
|
96
|
+
return { url: `${url.pathname}${url.search}${url.hash}`, payload };
|
|
97
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HttpFilter, HttpRecordKey, HttpValues } from '@mistriwork/engine/shared/resourceHttp.js';
|
|
2
|
+
/** Preserve string IDs (including integers above 2^53). Never coerce keys to
|
|
3
|
+
* numbers or let a missing record key become an unfiltered write request. */
|
|
4
|
+
export declare function recordKey(value: unknown): HttpRecordKey;
|
|
5
|
+
export declare function equalityFilter(values: Record<string, unknown>): HttpFilter;
|
|
6
|
+
export declare function writeValues(values: Record<string, unknown>): HttpValues;
|
|
7
|
+
export declare function pathEqualityFilter(values: Record<string, unknown>): HttpFilter<'path'>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { say } from './copy/shell/resourceRequests.js';
|
|
2
|
+
function scalar(value) {
|
|
3
|
+
if (value === null)
|
|
4
|
+
return null;
|
|
5
|
+
if (typeof value === 'string' || typeof value === 'boolean' || (typeof value === 'number' && Number.isFinite(value)))
|
|
6
|
+
return value;
|
|
7
|
+
throw new Error(say('thisRecordContainsAValue'));
|
|
8
|
+
}
|
|
9
|
+
/** Preserve string IDs (including integers above 2^53). Never coerce keys to
|
|
10
|
+
* numbers or let a missing record key become an unfiltered write request. */
|
|
11
|
+
export function recordKey(value) {
|
|
12
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
13
|
+
throw new Error(say('thisRecordHasNoUsable'));
|
|
14
|
+
const entries = Object.entries(value);
|
|
15
|
+
if (!entries.length)
|
|
16
|
+
throw new Error(say('thisRecordHasNoUsable'));
|
|
17
|
+
return Object.fromEntries(entries.map(([column, item]) => {
|
|
18
|
+
if (!column || (typeof item !== 'string' && !(typeof item === 'number' && Number.isFinite(item)))) {
|
|
19
|
+
throw new Error(say('thisRecordHasNoUsable'));
|
|
20
|
+
}
|
|
21
|
+
return [column, item];
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
export function equalityFilter(values) {
|
|
25
|
+
return { groups: [Object.entries(values).map(([column, value]) => ({ column, op: '=', value: scalar(value) }))] };
|
|
26
|
+
}
|
|
27
|
+
export function writeValues(values) {
|
|
28
|
+
return Object.fromEntries(Object.entries(values).map(([column, value]) => [column, scalar(value)]));
|
|
29
|
+
}
|
|
30
|
+
export function pathEqualityFilter(values) {
|
|
31
|
+
return { groups: [Object.entries(values).map(([path, value]) => ({ path, op: '=', value: scalar(value) }))] };
|
|
32
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** The labels from `/api/whoami`'s `roleLabels`; anything else there is ignored, and the previous App's go. */
|
|
2
|
+
export declare function setRoleLabels(value: unknown): void;
|
|
3
|
+
/** From `/api/whoami`'s `hasRoles`: whether the App names roles at all. */
|
|
4
|
+
export declare function setAppKeepsRoles(value: unknown): void;
|
|
5
|
+
export declare const appKeepsRoles: () => boolean;
|
|
6
|
+
/** The App's own name for a role, where it gave one. */
|
|
7
|
+
export declare const roleLabel: (role: string) => string | undefined;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What this App calls its roles (`auth.roles.<id>.label`), as the sign-in
|
|
3
|
+
* answer said them. Words for a person only: every choice and request still
|
|
4
|
+
* names the id, so a missing or odd label never changes what is granted.
|
|
5
|
+
*/
|
|
6
|
+
const labels = new Map();
|
|
7
|
+
const isLabel = (value) => typeof value === 'string' && value.length > 0 && value.length <= 60 && value.trim() === value && !/\p{Cc}/u.test(value);
|
|
8
|
+
/** The labels from `/api/whoami`'s `roleLabels`; anything else there is ignored, and the previous App's go. */
|
|
9
|
+
export function setRoleLabels(value) {
|
|
10
|
+
labels.clear();
|
|
11
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
12
|
+
return;
|
|
13
|
+
for (const [role, label] of Object.entries(value))
|
|
14
|
+
if (isLabel(label))
|
|
15
|
+
labels.set(role, label);
|
|
16
|
+
}
|
|
17
|
+
let kept = false;
|
|
18
|
+
/** From `/api/whoami`'s `hasRoles`: whether the App names roles at all. */
|
|
19
|
+
export function setAppKeepsRoles(value) {
|
|
20
|
+
kept = value === true;
|
|
21
|
+
}
|
|
22
|
+
export const appKeepsRoles = () => kept;
|
|
23
|
+
/** The App's own name for a role, where it gave one. */
|
|
24
|
+
export const roleLabel = (role) => labels.get(role);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two values a boolean column actually holds, or null if it is not one.
|
|
3
|
+
*
|
|
4
|
+
* SQLite has no boolean and keeps
|
|
5
|
+
* 0 and 1 in an INTEGER, so the pair depends on the column rather than on a
|
|
6
|
+
* type name. Written back exactly as it was read, which is what stops an
|
|
7
|
+
* edit to a *different* field of the same row from rewriting `1` to `true`
|
|
8
|
+
* on the way past. The grid's own rule, not a second one.
|
|
9
|
+
*/
|
|
10
|
+
export declare function booleanChoices(column: any, row: any): {
|
|
11
|
+
yes: string;
|
|
12
|
+
no: string;
|
|
13
|
+
};
|
|
14
|
+
/** True when this row can be edited at all: write mode on, and a full key. */
|
|
15
|
+
export declare function canEditRow(table: any, key: any): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a row may be edited here, and the two values a flag column holds:
|
|
3
|
+
* the questions every editor asks before it draws, kept apart from the
|
|
4
|
+
* record draft's store (write.js) so a grid's cell (GridCellEditor.tsx) can
|
|
5
|
+
* ask them without loading the draft machinery and its boot-time wiring.
|
|
6
|
+
* write.js re-exports both; the rules are these, once.
|
|
7
|
+
*/
|
|
8
|
+
import { prefersPages, state, writeAllowed } from './core.js';
|
|
9
|
+
import { planColumn } from './columns.js';
|
|
10
|
+
const writableConnection = () => Boolean(state.connections?.find((c) => c.id === state.activeConnection)?.writable);
|
|
11
|
+
/**
|
|
12
|
+
* The two values a boolean column actually holds, or null if it is not one.
|
|
13
|
+
*
|
|
14
|
+
* SQLite has no boolean and keeps
|
|
15
|
+
* 0 and 1 in an INTEGER, so the pair depends on the column rather than on a
|
|
16
|
+
* type name. Written back exactly as it was read, which is what stops an
|
|
17
|
+
* edit to a *different* field of the same row from rewriting `1` to `true`
|
|
18
|
+
* on the way past. The grid's own rule, not a second one.
|
|
19
|
+
*/
|
|
20
|
+
export function booleanChoices(column, row) {
|
|
21
|
+
const plan = planColumn(column, column?.name ?? '', row ? [row] : []);
|
|
22
|
+
if (plan.kind !== 'boolean')
|
|
23
|
+
return null;
|
|
24
|
+
return /bool/i.test(column?.type ?? '') ? { yes: 'true', no: 'false' } : { yes: '1', no: '0' };
|
|
25
|
+
}
|
|
26
|
+
/** True when this row can be edited at all: write mode on, and a full key. */
|
|
27
|
+
export function canEditRow(table, key) {
|
|
28
|
+
if (!state.canWrite || !table || table.isView)
|
|
29
|
+
return false;
|
|
30
|
+
if (prefersPages() && !writableConnection())
|
|
31
|
+
return false;
|
|
32
|
+
if (!writeAllowed(table.id))
|
|
33
|
+
return false;
|
|
34
|
+
const pk = table.columns.filter((c) => c.primaryKey).map((c) => c.name);
|
|
35
|
+
return pk.length > 0 && pk.every((c) => key[c] !== undefined && key[c] !== null);
|
|
36
|
+
}
|