@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,43 @@
|
|
|
1
|
+
/* Custom themes' token machinery, under every look (style.css names the order). */
|
|
2
|
+
@layer kit {
|
|
3
|
+
/* Public theme slots override the base style, without changing its layout. */
|
|
4
|
+
:root[data-custom-theme] :is(button, input:not([role=switch]), select, textarea, .tn-search, .dd-button) { border-radius: var(--radius); }
|
|
5
|
+
/* Round controls (`shape.radius.control: 'round'`) are pills; a check box, a radio and a slider keep their own
|
|
6
|
+
shape, and a form's field keeps the field's corner (the rule below outranks this one). A look that corners its
|
|
7
|
+
own controls (the dashboard's window and filters, a list's search and toggles) reads --control-radius there, unset
|
|
8
|
+
in every built-in look; a card that is a button keeps the look's panel corner. */
|
|
9
|
+
:root[data-control-radius] :is(button, input:not([role=switch], [type=checkbox], [type=radio], [type=range]), select, .tn-search, .dd-button) { border-radius: var(--control-radius); }
|
|
10
|
+
:root[data-custom-theme] :is(.applist-title, .root-current, .page-section-title) { font-family: var(--heading-font, var(--sans)); }
|
|
11
|
+
:root[data-custom-theme] .page-field-edit :is(.cell-edit, .record-picker-trigger),
|
|
12
|
+
:root[data-custom-theme] .insert-field :is(input:not([role=switch]), textarea, .dd-button, .record-picker-trigger) { border-radius: var(--field-radius, 2px); }
|
|
13
|
+
|
|
14
|
+
.theme-lab {
|
|
15
|
+
width: min(72rem, 94%); max-height: 90%; overflow: auto;
|
|
16
|
+
border: 1px solid var(--line-strong); border-radius: var(--radius);
|
|
17
|
+
background: var(--surface); color: var(--ink); box-shadow: var(--shadow-modal);
|
|
18
|
+
}
|
|
19
|
+
.theme-lab-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
|
|
20
|
+
.theme-lab-head h2 { margin: 0; font: 600 var(--text-xl)/1.3 var(--heading-font, var(--sans)); }
|
|
21
|
+
.theme-lab-controls { display: flex; flex-wrap: wrap; gap: var(--space-4); padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
|
|
22
|
+
.theme-lab-controls label { display: grid; gap: var(--space-2h); min-width: 10rem; }
|
|
23
|
+
.theme-lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
|
|
24
|
+
.theme-lab-section { min-width: 0; padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
|
|
25
|
+
.theme-lab-section h3 { margin: 0 0 var(--space-5); font: 600 var(--text-md) var(--sans); }
|
|
26
|
+
.theme-lab-fields { display: grid; gap: var(--space-4); }
|
|
27
|
+
.theme-lab-fields label { display: grid; gap: var(--space-2); }
|
|
28
|
+
.theme-lab-fields input { width: 100%; min-height: 34px; padding: var(--space-2h) var(--space-3); font: var(--text-base) var(--mono); border: 1px solid var(--line-control); background: var(--surface); color: var(--ink); }
|
|
29
|
+
.theme-lab-fields input[aria-invalid="true"] { border-color: var(--status-critical); }
|
|
30
|
+
.theme-lab-fields input:disabled { opacity: 0.6; }
|
|
31
|
+
.theme-lab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
|
|
32
|
+
.theme-lab-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
|
|
33
|
+
.theme-lab-fields [role="alert"] { color: var(--status-critical); }
|
|
34
|
+
.theme-lab-section pre { overflow: auto; font-family: var(--code); }
|
|
35
|
+
.theme-lab-table { overflow-x: auto; }
|
|
36
|
+
.theme-lab-colors { display: flex; flex-wrap: wrap; gap: var(--space-4); list-style: none; padding: 0; }
|
|
37
|
+
.theme-lab-colors li { display: flex; align-items: center; gap: var(--space-2h); font: var(--text-sm) var(--sans); }
|
|
38
|
+
.theme-lab-swatch { display: inline-block; width: 18px; height: 18px; border: 1px solid var(--line-strong); }
|
|
39
|
+
@media (max-width: 700px) {
|
|
40
|
+
.theme-lab-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
|
|
41
|
+
.theme-lab-controls > label { flex: 1 1 100%; min-width: 0; }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** The dashboard behind a `dash-<view key>` page id, or null. */
|
|
2
|
+
export declare function dashboardFor(pageId: any): import("@mistriwork/engine/shared/servedApp.js").ServedDashboardView & {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* The dashboard route with a window, picks and sections' own periods in its slot. The optional home
|
|
7
|
+
* view preserves the landing shell when controls are used there.
|
|
8
|
+
*/
|
|
9
|
+
export declare function dashboardEntry(dashboard: any, windowNow: any, picks: any, home?: boolean, periods?: {}): {
|
|
10
|
+
kind: string;
|
|
11
|
+
pageId: string;
|
|
12
|
+
table: any;
|
|
13
|
+
label: any;
|
|
14
|
+
rootBody: string;
|
|
15
|
+
tab?: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A dashboard, as the vanilla client reaches it.
|
|
3
|
+
*
|
|
4
|
+
* The screen is a component (components/Dashboard.tsx) and its pure parts are
|
|
5
|
+
* components/dashboardModel.ts; what stays here is the walk's business — which
|
|
6
|
+
* dashboard a page id names, how the reader's window and picks ride the
|
|
7
|
+
* address, the crumb — and the route itself.
|
|
8
|
+
*/
|
|
9
|
+
import { createElement } from 'react';
|
|
10
|
+
import { currentEntry, el, renderCrumbs, state } from './core.js';
|
|
11
|
+
import { syncHash } from './url.js';
|
|
12
|
+
import { shell } from './shellMode.js';
|
|
13
|
+
import { element } from './components/mount.js';
|
|
14
|
+
import { parseRootSlot, rootSlot, windowSlug } from './components/dashboardModel.js';
|
|
15
|
+
import { dashPageId, dashboardAt } from './components/appRooms.js';
|
|
16
|
+
/** The dashboard behind a `dash-<view key>` page id, or null. */
|
|
17
|
+
export function dashboardFor(pageId) {
|
|
18
|
+
const app = shell().app();
|
|
19
|
+
return (app && dashboardAt(app, pageId)) ?? null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The dashboard route with a window, picks and sections' own periods in its slot. The optional home
|
|
23
|
+
* view preserves the landing shell when controls are used there.
|
|
24
|
+
*/
|
|
25
|
+
export function dashboardEntry(dashboard, windowNow, picks, home = false, periods = {}) {
|
|
26
|
+
const body = rootSlot(windowNow, picks, periods, dashboard.window);
|
|
27
|
+
return {
|
|
28
|
+
kind: 'page',
|
|
29
|
+
pageId: dashPageId(dashboard.id),
|
|
30
|
+
table: undefined,
|
|
31
|
+
label: dashboard.label,
|
|
32
|
+
rootBody: body || undefined,
|
|
33
|
+
...(home ? { tab: 'home' } : {}),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deep links: the pure half.
|
|
3
|
+
*
|
|
4
|
+
* No DOM and no state, so it can be tested directly. The stateful half —
|
|
5
|
+
* reading `window.location`, deciding when to write it — lives in url.js.
|
|
6
|
+
*
|
|
7
|
+
* The design decision that matters: **the trail goes in the URL, not just the
|
|
8
|
+
* current position.** A link to a row you reached by walking should arrive
|
|
9
|
+
* with the walk intact, so whoever you send it to can go back the way you
|
|
10
|
+
* came. That is the tool's whole idea, and a link that dropped it would hand
|
|
11
|
+
* them a dead end.
|
|
12
|
+
*
|
|
13
|
+
* The hash is used rather than the path because tablewalk serves a static
|
|
14
|
+
* client from a small server with no router. A path-based URL would need the
|
|
15
|
+
* server to know every route; a hash never reaches it.
|
|
16
|
+
*
|
|
17
|
+
* Compactness matters, because these get pasted into chat. A table view is
|
|
18
|
+
* its query text, already short and human-readable; a row is its key:
|
|
19
|
+
*
|
|
20
|
+
* /demo/customer/~4/invoice%20customer_id%20=%204/~1004
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Serialise a connection id and a stack into a hash.
|
|
24
|
+
*
|
|
25
|
+
* `pageToken` turns a page's id into the text a link should carry — its name,
|
|
26
|
+
* where that names it unambiguously. Passed in rather than imported: this
|
|
27
|
+
* module deliberately depends on nothing, which is what lets the link format
|
|
28
|
+
* be tested without a browser, and the page list it would need to consult
|
|
29
|
+
* lives three modules away. The default writes the id, which is what every
|
|
30
|
+
* link did before and still resolves.
|
|
31
|
+
*
|
|
32
|
+
* `listParams` says a list one of the App's views opened in words — its key,
|
|
33
|
+
* its question as the address's parameters (publicAddress.ts) — and answers
|
|
34
|
+
* undefined for a list it cannot say that way, which is written as ever. The
|
|
35
|
+
* default says none, which is what the Workbench writes.
|
|
36
|
+
*/
|
|
37
|
+
export declare function hashFor(connectionId: any, stack: any, options?: {}): string;
|
|
38
|
+
/**
|
|
39
|
+
* The address a public visitor sees: the one thing on screen, not the walk
|
|
40
|
+
* that reached it.
|
|
41
|
+
*
|
|
42
|
+
* The walk is the tool's idea of a link, and it is right for the people who
|
|
43
|
+
* work in it; a marketplace's visitor shares a car, and a car's address that
|
|
44
|
+
* carried `vehicles:vehicle status != sold and body_type = Sedan show title,
|
|
45
|
+
* price…` before it leaked the list's plumbing into every message it was
|
|
46
|
+
* pasted in. So a page is its own segment alone, and a list the App names is
|
|
47
|
+
* its view key with its question as address parameters — `listParams`
|
|
48
|
+
* returns them, '' for the view as it stands, or undefined when the question
|
|
49
|
+
* cannot be said that way, and then the list is written as ever — hashFor's
|
|
50
|
+
* words, for a walk of one. The walk itself rides in history state (url.js),
|
|
51
|
+
* so Back and the crumbs still know it.
|
|
52
|
+
*/
|
|
53
|
+
export declare function publicPathFor(connectionId: any, stack: any, options?: {}): string;
|
|
54
|
+
export declare function connectionFromHash(hash: any): any;
|
|
55
|
+
/**
|
|
56
|
+
* Parse a hash into a stack. Returns null when there is nothing to restore.
|
|
57
|
+
*
|
|
58
|
+
* Rows need the table they belong to, which is the entry before them — so a
|
|
59
|
+
* row segment that opens the trail is dropped rather than guessed at.
|
|
60
|
+
*/
|
|
61
|
+
export declare function fromHash(hash: any, findTableById: any, options?: {}): {
|
|
62
|
+
connection: any;
|
|
63
|
+
stack: any[];
|
|
64
|
+
};
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deep links: the pure half.
|
|
3
|
+
*
|
|
4
|
+
* No DOM and no state, so it can be tested directly. The stateful half —
|
|
5
|
+
* reading `window.location`, deciding when to write it — lives in url.js.
|
|
6
|
+
*
|
|
7
|
+
* The design decision that matters: **the trail goes in the URL, not just the
|
|
8
|
+
* current position.** A link to a row you reached by walking should arrive
|
|
9
|
+
* with the walk intact, so whoever you send it to can go back the way you
|
|
10
|
+
* came. That is the tool's whole idea, and a link that dropped it would hand
|
|
11
|
+
* them a dead end.
|
|
12
|
+
*
|
|
13
|
+
* The hash is used rather than the path because tablewalk serves a static
|
|
14
|
+
* client from a small server with no router. A path-based URL would need the
|
|
15
|
+
* server to know every route; a hash never reaches it.
|
|
16
|
+
*
|
|
17
|
+
* Compactness matters, because these get pasted into chat. A table view is
|
|
18
|
+
* its query text, already short and human-readable; a row is its key:
|
|
19
|
+
*
|
|
20
|
+
* /demo/customer/~4/invoice%20customer_id%20=%204/~1004
|
|
21
|
+
*/
|
|
22
|
+
/** A table view. Mirrors core.js — kept here so this module imports nothing. */
|
|
23
|
+
/* The tabs a table view can be on — see the tab strip in table.js — and
|
|
24
|
+
`new`, which is not a tab of the grid but the app's New drawer open over
|
|
25
|
+
the list; it rides the same slot so a half-filled form survives a reload.
|
|
26
|
+
A segment ends in one of these or it does not end in a tab at all. */
|
|
27
|
+
const TABS = new Set(['rows', 'ddl', 'api', 'diagram', 'new']);
|
|
28
|
+
/* A composer session is a tab too (composerTab.js): a bare `view`, a saved
|
|
29
|
+
one as `view:<id>`, an unsaved one as `view+<its text, encoded>`. */
|
|
30
|
+
const isTableTab = (suffix) => TABS.has(suffix) || suffix === 'view' || /^view[:+]./.test(suffix);
|
|
31
|
+
/**
|
|
32
|
+
* A query, safe to put after a `!` separator.
|
|
33
|
+
*
|
|
34
|
+
* `encodeURIComponent` leaves `!` alone — it is an unreserved character — so
|
|
35
|
+
* a query containing `!=` wrote a second separator into its own segment.
|
|
36
|
+
*/
|
|
37
|
+
function encodeQuery(query) {
|
|
38
|
+
return encodeURIComponent(query).replace(/!/g, '%21');
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A key, as it appears in a link.
|
|
42
|
+
*
|
|
43
|
+
* Single-column keys — nearly all of them — are just the value, so the common
|
|
44
|
+
* case stays readable; composite keys name their columns, because position
|
|
45
|
+
* alone would not survive a column being added.
|
|
46
|
+
*
|
|
47
|
+
* Shared by rows and pages so the two cannot spell the same key differently.
|
|
48
|
+
*/
|
|
49
|
+
function keyBody(key) {
|
|
50
|
+
const columns = Object.keys(key);
|
|
51
|
+
return columns.length === 1 ? String(key[columns[0]]) : columns.map((c) => `${c}=${key[c]}`).join(',');
|
|
52
|
+
}
|
|
53
|
+
function tableView(tableId, query, tab, view) {
|
|
54
|
+
return { kind: 'table', table: tableId, query: query ?? tableId, tab: tab ?? 'rows', ...(view ? { view } : {}) };
|
|
55
|
+
}
|
|
56
|
+
/* A view's key — the letters a view key allows. Only these ride a
|
|
57
|
+
link as `{id}:` before a list's question, which keeps the prefix
|
|
58
|
+
decidable: an encoded query never carries a raw `:`, and no table's name
|
|
59
|
+
is followed by one. */
|
|
60
|
+
const VIEW_KEY = /^[a-z0-9][a-z0-9-]*$/;
|
|
61
|
+
/**
|
|
62
|
+
* Serialise a connection id and a stack into a hash.
|
|
63
|
+
*
|
|
64
|
+
* `pageToken` turns a page's id into the text a link should carry — its name,
|
|
65
|
+
* where that names it unambiguously. Passed in rather than imported: this
|
|
66
|
+
* module deliberately depends on nothing, which is what lets the link format
|
|
67
|
+
* be tested without a browser, and the page list it would need to consult
|
|
68
|
+
* lives three modules away. The default writes the id, which is what every
|
|
69
|
+
* link did before and still resolves.
|
|
70
|
+
*
|
|
71
|
+
* `listParams` says a list one of the App's views opened in words — its key,
|
|
72
|
+
* its question as the address's parameters (publicAddress.ts) — and answers
|
|
73
|
+
* undefined for a list it cannot say that way, which is written as ever. The
|
|
74
|
+
* default says none, which is what the Workbench writes.
|
|
75
|
+
*/
|
|
76
|
+
export function hashFor(connectionId, stack, options = {}) {
|
|
77
|
+
const pageToken = options.pageToken ?? ((id) => id);
|
|
78
|
+
const listParams = options.listParams ?? (() => undefined);
|
|
79
|
+
const parts = [encodeURIComponent(connectionId ?? '')];
|
|
80
|
+
/* The lists said in words, and the one whose parameters are the search:
|
|
81
|
+
an address has one search, so it is the last such list's, and an earlier
|
|
82
|
+
list is said in words only where it stands as authored. */
|
|
83
|
+
const said = stack.map((entry) => (entry.kind === 'table' && VIEW_KEY.test(entry.view ?? '') ? listParams(entry) : undefined));
|
|
84
|
+
let asks = -1;
|
|
85
|
+
said.forEach((params, index) => {
|
|
86
|
+
if (params !== undefined)
|
|
87
|
+
asks = index;
|
|
88
|
+
});
|
|
89
|
+
let search = '';
|
|
90
|
+
stack.forEach((entry, index) => {
|
|
91
|
+
if (entry.kind === 'page') {
|
|
92
|
+
/* `@page-id` for the page, and the root — when one has been chosen —
|
|
93
|
+
written exactly as a row's key is, so the two agree about composite
|
|
94
|
+
keys instead of inventing a second spelling for them. A page with no
|
|
95
|
+
root is a link to the front door, which is a real place to send
|
|
96
|
+
someone: "open the customer page and pick one". */
|
|
97
|
+
/* `rootBody` is the unresolved form a link arrives with, and it is
|
|
98
|
+
written back when the key has not been resolved yet. Boot renders —
|
|
99
|
+
and stamps the hash — before the page has looked up which column a
|
|
100
|
+
bare key belongs to, so without this the first paint dropped the root
|
|
101
|
+
out of the address bar and the reader lost it by reloading. */
|
|
102
|
+
const body = entry.key ? keyBody(entry.key) : (entry.rootBody ?? '');
|
|
103
|
+
/* The open tab rides with the page rather than after the key: a key is
|
|
104
|
+
arbitrary text and may contain a `!`, while a page token is a slug or
|
|
105
|
+
an id and never does. "Look at the parts tab" is a thing people send
|
|
106
|
+
each other, and a link that always lands on the first tab loses the
|
|
107
|
+
point of sending it. */
|
|
108
|
+
const tab = entry.tab ? `!${encodeURIComponent(entry.tab)}` : '';
|
|
109
|
+
parts.push(`@${encodeURIComponent(pageToken(entry.pageId))}${tab}${body ? `~${encodeURIComponent(body)}` : ''}`);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (entry.kind === 'table' || entry.kind === 'breakdown') {
|
|
113
|
+
/* A list in words: its key — `/thread/board`, the New drawer after it
|
|
114
|
+
as ever, `/crm/leads!new` — and its question in the search. */
|
|
115
|
+
const params = said[index];
|
|
116
|
+
if (params !== undefined && (index === asks || params === '')) {
|
|
117
|
+
const suffix = entry.tab && entry.tab !== 'rows' ? `!${entry.tab}` : '';
|
|
118
|
+
parts.push(`${entry.view}${suffix}`);
|
|
119
|
+
if (index === asks)
|
|
120
|
+
search = params;
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
/* A breakdown carries no tab — it has none — and is otherwise the same
|
|
124
|
+
segment as a table query, because it is the same language. Which kind
|
|
125
|
+
it comes back as is decided by `isBreakdown` in `fromHash`. */
|
|
126
|
+
const tab = entry.kind === 'table' && entry.tab && entry.tab !== 'rows' ? `!${entry.tab}` : '';
|
|
127
|
+
/* Which of the App's views opened the list, by its key: `inbox:issue…`.
|
|
128
|
+
Two views over one table — a plain list and a split — ask the same
|
|
129
|
+
question of the same rows, so the text alone cannot say which room
|
|
130
|
+
to draw. A row after it inherits the view and writes nothing.
|
|
131
|
+
Absent, the view is found by table and query, as every link written
|
|
132
|
+
before keys existed still is. */
|
|
133
|
+
const view = entry.kind === 'table' && VIEW_KEY.test(entry.view ?? '') ? `${entry.view}:` : '';
|
|
134
|
+
parts.push(view + encodeQuery(entry.query) + tab);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
/* A row is `~` plus its key. Single-column keys — nearly all of them —
|
|
138
|
+
are just the value, so the common case stays readable; composite keys
|
|
139
|
+
name their columns because position alone would not survive a schema
|
|
140
|
+
change.
|
|
141
|
+
|
|
142
|
+
The table is named whenever it differs from the entry before, which
|
|
143
|
+
is exactly what following a foreign key from one row to another does.
|
|
144
|
+
Without it `work_order/~8/~636` claims 636 is a work_order when it is
|
|
145
|
+
a customer, and the link restores the wrong row — or no row. */
|
|
146
|
+
const body = keyBody(entry.key);
|
|
147
|
+
const previous = stack[index - 1];
|
|
148
|
+
const prefix = previous && previous.table === entry.table ? '' : `${entry.table}:`;
|
|
149
|
+
/* And which related table is open, if one is — the record view's rail
|
|
150
|
+
is a tablist, and "look at its notes" is as worth linking to on a
|
|
151
|
+
record as it is on a page. `!` is escaped inside the key for the
|
|
152
|
+
same reason the query encoder escapes it: it is an unreserved
|
|
153
|
+
character that `encodeURIComponent` leaves alone, so a value
|
|
154
|
+
containing one would otherwise write a second separator. */
|
|
155
|
+
const tab = entry.tab ? `!${encodeURIComponent(entry.tab)}` : '';
|
|
156
|
+
parts.push(`~${encodeQuery(prefix + body)}${tab}`);
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
return `/${parts.join('/')}${search ? `?${search}` : ''}`;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* The address a public visitor sees: the one thing on screen, not the walk
|
|
163
|
+
* that reached it.
|
|
164
|
+
*
|
|
165
|
+
* The walk is the tool's idea of a link, and it is right for the people who
|
|
166
|
+
* work in it; a marketplace's visitor shares a car, and a car's address that
|
|
167
|
+
* carried `vehicles:vehicle status != sold and body_type = Sedan show title,
|
|
168
|
+
* price…` before it leaked the list's plumbing into every message it was
|
|
169
|
+
* pasted in. So a page is its own segment alone, and a list the App names is
|
|
170
|
+
* its view key with its question as address parameters — `listParams`
|
|
171
|
+
* returns them, '' for the view as it stands, or undefined when the question
|
|
172
|
+
* cannot be said that way, and then the list is written as ever — hashFor's
|
|
173
|
+
* words, for a walk of one. The walk itself rides in history state (url.js),
|
|
174
|
+
* so Back and the crumbs still know it.
|
|
175
|
+
*/
|
|
176
|
+
export function publicPathFor(connectionId, stack, options = {}) {
|
|
177
|
+
const last = stack[stack.length - 1];
|
|
178
|
+
if (!last)
|
|
179
|
+
return `/${encodeURIComponent(connectionId ?? '')}`;
|
|
180
|
+
return hashFor(connectionId, [last], options);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* The connection a hash names, without parsing the rest of it.
|
|
184
|
+
*
|
|
185
|
+
* Needed because parsing the trail requires the *right* schema: a link into
|
|
186
|
+
* another database mentions tables the current one has never heard of, so
|
|
187
|
+
* every row segment fails to resolve and is dropped. The connection has to be
|
|
188
|
+
* switched before the rest can be read.
|
|
189
|
+
*/
|
|
190
|
+
/**
|
|
191
|
+
* Take the leading `/` off a link — or the leading `#/` off one written
|
|
192
|
+
* before these were paths.
|
|
193
|
+
*
|
|
194
|
+
* Both spellings are read for as long as it costs one regex to do so. A link
|
|
195
|
+
* is the thing people paste into a ticket and come back to a year later, and
|
|
196
|
+
* the day the old ones stop resolving should not be the day this changed.
|
|
197
|
+
*/
|
|
198
|
+
function stripPrefix(link) {
|
|
199
|
+
return String(link ?? '')
|
|
200
|
+
.replace(/^#/, '')
|
|
201
|
+
.replace(/^\//, '');
|
|
202
|
+
}
|
|
203
|
+
/* A segment as the person typed it. A link pasted through a mailer or a linkifier arrives with a lone `%` or a cut
|
|
204
|
+
escape (`%zz`, `%E0%A4%A`), and `decodeURIComponent` throws on those: at boot that stops the App from starting at
|
|
205
|
+
all, and in a click it kills the navigation. The raw segment is returned instead, which names nothing and so lands on
|
|
206
|
+
the same not-found as any other address nobody made. */
|
|
207
|
+
function unescapeSegment(segment) {
|
|
208
|
+
try {
|
|
209
|
+
return decodeURIComponent(segment);
|
|
210
|
+
}
|
|
211
|
+
catch {
|
|
212
|
+
return segment;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
export function connectionFromHash(hash) {
|
|
216
|
+
// A public list's address carries its question after `?`; the connection is before it.
|
|
217
|
+
const raw = stripPrefix(hash).split('?')[0];
|
|
218
|
+
if (!raw)
|
|
219
|
+
return null;
|
|
220
|
+
const first = raw.split('/').filter(Boolean)[0];
|
|
221
|
+
return first ? unescapeSegment(first) : null;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Parse a hash into a stack. Returns null when there is nothing to restore.
|
|
225
|
+
*
|
|
226
|
+
* Rows need the table they belong to, which is the entry before them — so a
|
|
227
|
+
* row segment that opens the trail is dropped rather than guessed at.
|
|
228
|
+
*/
|
|
229
|
+
export function fromHash(hash, findTableById, options = {}) {
|
|
230
|
+
/* Read off `options` rather than destructured with a default in the
|
|
231
|
+
signature: `check-client-imports` cannot see a parameter list once a
|
|
232
|
+
default inside it has parentheses of its own, and reads every name in it
|
|
233
|
+
as undefined. The tool is right that this file must import nothing, so it
|
|
234
|
+
is the signature that gives way. */
|
|
235
|
+
const isBreakdown = options.isBreakdown ?? (() => false);
|
|
236
|
+
/* A view the App names, as a public address spells it — its key, its
|
|
237
|
+
question as parameters — is resolved by the caller, which knows the
|
|
238
|
+
App's views: this module imports nothing. */
|
|
239
|
+
const viewEntry = options.viewEntry ?? (() => null);
|
|
240
|
+
const [raw, search = ''] = stripPrefix(hash).split(/\?(.*)/s);
|
|
241
|
+
if (!raw)
|
|
242
|
+
return null;
|
|
243
|
+
const segments = raw.split('/').filter(Boolean);
|
|
244
|
+
if (!segments.length)
|
|
245
|
+
return null;
|
|
246
|
+
const connection = unescapeSegment(segments[0]);
|
|
247
|
+
const stack = [];
|
|
248
|
+
/* A bare view key — a list said in words, its key and the New drawer if
|
|
249
|
+
it is open — is the caller's to read. A table of that name wins, so no
|
|
250
|
+
link written before this means something new. The search is the last
|
|
251
|
+
such list's, as hashFor writes it. */
|
|
252
|
+
const bareView = (segment) => {
|
|
253
|
+
const m = /^([a-z0-9][a-z0-9-]*)(?:!([a-z]+))?$/.exec(segment);
|
|
254
|
+
return m && !findTableById(m[1]) && (!m[2] || TABS.has(m[2])) ? { key: m[1], tab: m[2] } : null;
|
|
255
|
+
};
|
|
256
|
+
let asked = -1;
|
|
257
|
+
segments.forEach((segment, index) => {
|
|
258
|
+
if (index > 0 && bareView(segment))
|
|
259
|
+
asked = index;
|
|
260
|
+
});
|
|
261
|
+
for (let index = 1; index < segments.length; index += 1) {
|
|
262
|
+
let segment = segments[index];
|
|
263
|
+
if (segment.startsWith('@')) {
|
|
264
|
+
/* A page, and its root if the link has one. The base table is not in
|
|
265
|
+
the link: a page names it, and putting it in the URL as well would be
|
|
266
|
+
a second copy to disagree with the config file the day someone
|
|
267
|
+
re-points a page at another table. It is filled in when the page
|
|
268
|
+
loads. */
|
|
269
|
+
const [head, keyPart] = segment.slice(1).split('~');
|
|
270
|
+
/* Page first, then the tab: split on the first `!`, which a page token
|
|
271
|
+
cannot contain and a tab name is encoded past. */
|
|
272
|
+
const bang = head.indexOf('!');
|
|
273
|
+
const pageId = unescapeSegment(bang === -1 ? head : head.slice(0, bang));
|
|
274
|
+
const tab = bang === -1 ? undefined : unescapeSegment(head.slice(bang + 1)) || undefined;
|
|
275
|
+
if (!pageId)
|
|
276
|
+
continue;
|
|
277
|
+
const body = keyPart === undefined ? undefined : unescapeSegment(keyPart);
|
|
278
|
+
/* Carried as text, not resolved here. A single-column key is written as
|
|
279
|
+
a bare value, and turning `1181` back into `{ id: 1181 }` needs the
|
|
280
|
+
page's base table — which the link deliberately does not name, since
|
|
281
|
+
the page already does and two copies would disagree the day someone
|
|
282
|
+
re-points it. The page resolves it when it knows its own base. */
|
|
283
|
+
stack.push({ kind: 'page', pageId, table: undefined, rootBody: body, label: body, tab });
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
if (segment.startsWith('~')) {
|
|
287
|
+
const rest = segment.slice(1);
|
|
288
|
+
const bang = rest.indexOf('!');
|
|
289
|
+
const tab = bang === -1 ? undefined : unescapeSegment(rest.slice(bang + 1)) || undefined;
|
|
290
|
+
let body = unescapeSegment(bang === -1 ? rest : rest.slice(0, bang));
|
|
291
|
+
/* An explicit `table:` prefix wins. It is only written when the table
|
|
292
|
+
changed, so its absence means "same as the entry before". The colon
|
|
293
|
+
is found from the left and only counts before any `=`, so a composite
|
|
294
|
+
key like `a=1,b=2` is never mistaken for a table prefix. */
|
|
295
|
+
let tableId = null;
|
|
296
|
+
const colon = body.indexOf(':');
|
|
297
|
+
if (colon > 0 && (body.indexOf('=') === -1 || colon < body.indexOf('='))) {
|
|
298
|
+
/* Only if it actually names a table. A key value can contain a colon
|
|
299
|
+
— a time like `12:30`, a URN, a namespaced id — and treating that
|
|
300
|
+
as a table prefix would drop the row entirely. Checking against the
|
|
301
|
+
schema makes the ambiguity decidable instead of guessed. */
|
|
302
|
+
const candidate = body.slice(0, colon);
|
|
303
|
+
if (findTableById(candidate)) {
|
|
304
|
+
tableId = candidate;
|
|
305
|
+
body = body.slice(colon + 1);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
const previous = stack[stack.length - 1];
|
|
309
|
+
if (!tableId && !previous)
|
|
310
|
+
continue; // a row with no table means nothing
|
|
311
|
+
const resolvedId = tableId ?? previous.table;
|
|
312
|
+
const table = findTableById(resolvedId);
|
|
313
|
+
if (!table)
|
|
314
|
+
continue;
|
|
315
|
+
const key = {};
|
|
316
|
+
if (body.includes('=')) {
|
|
317
|
+
for (const pair of body.split(',')) {
|
|
318
|
+
const [column, ...rest] = pair.split('=');
|
|
319
|
+
key[column] = rest.join('=');
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
const pk = table.columns.filter((c) => c.primaryKey).map((c) => c.name);
|
|
324
|
+
if (!pk.length)
|
|
325
|
+
continue;
|
|
326
|
+
key[pk[0]] = body;
|
|
327
|
+
}
|
|
328
|
+
/* A row read beside the list it was chosen from belongs to the same
|
|
329
|
+
view; the link wrote it once, on the list. */
|
|
330
|
+
const inherited = previous?.view && previous.table === table.id ? { view: previous.view } : {};
|
|
331
|
+
stack.push({ kind: 'row', table: table.id, key, label: labelFor(body), tab, ...inherited });
|
|
332
|
+
continue;
|
|
333
|
+
}
|
|
334
|
+
/* A bare view key, as an App's address writes a list: the caller reads
|
|
335
|
+
the address's parameters into the list's question. */
|
|
336
|
+
const bare = bareView(segment);
|
|
337
|
+
if (bare) {
|
|
338
|
+
const entry = viewEntry(bare.key, index === asked ? search : '');
|
|
339
|
+
if (entry) {
|
|
340
|
+
stack.push(bare.tab ? { ...entry, tab: bare.tab } : entry);
|
|
341
|
+
continue;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
/* `{view key}:` before a list's question names the view that opened
|
|
345
|
+
it. Only when what follows starts with a table: a hand-typed query is
|
|
346
|
+
never mistaken for a prefix, the way a row's `table:` is checked. */
|
|
347
|
+
let view;
|
|
348
|
+
const marked = /^([a-z0-9][a-z0-9-]*):(.+)$/.exec(segment);
|
|
349
|
+
if (marked && findTableById(unescapeSegment(marked[2].split('!')[0]).trim().split(/\s+/)[0])) {
|
|
350
|
+
view = marked[1];
|
|
351
|
+
segment = marked[2];
|
|
352
|
+
}
|
|
353
|
+
/* Only a real tab name ends a segment.
|
|
354
|
+
|
|
355
|
+
`lastIndexOf('!')` alone read the `!` of `!=` as the separator, so
|
|
356
|
+
`invoice total != 0` came back as `invoice total ` with a tab of
|
|
357
|
+
`%3D 0` — the condition silently gone, and a shared "unpaid invoices"
|
|
358
|
+
link showing every invoice. Encoding fixes it going forward; checking
|
|
359
|
+
the suffix against the tabs that exist also rescues every link already
|
|
360
|
+
written and every one this app did not write. */
|
|
361
|
+
const bang = segment.lastIndexOf('!');
|
|
362
|
+
const suffix = bang > 0 ? segment.slice(bang + 1) : '';
|
|
363
|
+
const hasTab = isTableTab(suffix);
|
|
364
|
+
const tab = hasTab ? suffix : 'rows';
|
|
365
|
+
const query = unescapeSegment(hasTab ? segment.slice(0, bang) : segment);
|
|
366
|
+
const name = query.trim().split(/\s+/)[0];
|
|
367
|
+
const table = findTableById(name);
|
|
368
|
+
/* A breakdown is written into the link exactly as a table query is — it is
|
|
369
|
+
the same language and the same text — so which kind it is on the way back
|
|
370
|
+
is read off the text itself. The rule is supplied rather than imported:
|
|
371
|
+
this module deliberately depends on nothing, which is what lets the link
|
|
372
|
+
format be tested without a browser, and it is the same arrangement
|
|
373
|
+
`pageToken` uses on the way out. */
|
|
374
|
+
stack.push(isBreakdown(query)
|
|
375
|
+
? { kind: 'breakdown', table: table ? table.id : name, query }
|
|
376
|
+
: tableView(table ? table.id : name, query, tab, view));
|
|
377
|
+
}
|
|
378
|
+
return { connection, stack };
|
|
379
|
+
}
|
|
380
|
+
function labelFor(body) {
|
|
381
|
+
// The real label needs the row, which has not been fetched yet. The key is
|
|
382
|
+
// a truthful placeholder and gets replaced by resolveLabels below.
|
|
383
|
+
return body.length > 24 ? `${body.slice(0, 23)}…` : body;
|
|
384
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether this connection will accept a delete at all.
|
|
3
|
+
*
|
|
4
|
+
* Asked of the server's own answer rather than inferred: `writable` is on the
|
|
5
|
+
* connection list precisely so the interface does not offer a button the server
|
|
6
|
+
* would refuse.
|
|
7
|
+
*/
|
|
8
|
+
export declare function canDelete(table: any): boolean;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deleting a row, having first said what that would do.
|
|
3
|
+
*
|
|
4
|
+
* This is the one destructive action in tablewalk, and it is also the one place
|
|
5
|
+
* the tool has a genuine advantage over every other database client — not
|
|
6
|
+
* through cleverness, but because of what it already knows. It counts what
|
|
7
|
+
* points at a row in order to draw the Related panel; the same counts answer
|
|
8
|
+
* "what breaks if this goes" *before* the delete rather than as a constraint
|
|
9
|
+
* violation afterwards.
|
|
10
|
+
*
|
|
11
|
+
* The count alone is not the answer, which is the part most tools would get
|
|
12
|
+
* wrong if they tried. Three rows pointing at this one means three rows
|
|
13
|
+
* deleted under `cascade`, three rows left holding a null under `set null`, and
|
|
14
|
+
* a delete that simply fails under `restrict`. Three outcomes behind one
|
|
15
|
+
* number. So the dialog leads with the *rule*, and a rule the adapter could not
|
|
16
|
+
* determine says so rather than being quietly rendered as harmless.
|
|
17
|
+
*
|
|
18
|
+
* The button and its dialog are a component (components/DeleteButton.tsx); what
|
|
19
|
+
* stays here is the gate every write affordance shares.
|
|
20
|
+
*/
|
|
21
|
+
import { state, writeAllowed } from './core.js';
|
|
22
|
+
/**
|
|
23
|
+
* Whether this connection will accept a delete at all.
|
|
24
|
+
*
|
|
25
|
+
* Asked of the server's own answer rather than inferred: `writable` is on the
|
|
26
|
+
* connection list precisely so the interface does not offer a button the server
|
|
27
|
+
* would refuse.
|
|
28
|
+
*/
|
|
29
|
+
export function canDelete(table) {
|
|
30
|
+
if (!state.canWrite || !table || table.isView || table.deletable === false)
|
|
31
|
+
return false;
|
|
32
|
+
if (!writeAllowed(table.id))
|
|
33
|
+
return false;
|
|
34
|
+
return Boolean(state.connections?.find((c) => c.id === state.activeConnection)?.writable);
|
|
35
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type Density = 'compact' | 'comfortable' | 'spacious';
|
|
2
|
+
/** The theme's density, for a reader with no choice of their own; applied at once when it changes.
|
|
3
|
+
@param {unknown} choice */
|
|
4
|
+
export declare function setDensityDefault(choice: unknown): void;
|
|
5
|
+
export declare function densityChoice(): Density;
|
|
6
|
+
export declare function applyDensity(): void;
|
|
7
|
+
/** Keep a choice and apply it. Anything unrecognised means comfortable. */
|
|
8
|
+
export declare function setDensity(choice: any): void;
|