@mistriwork/kit 1.0.0-rc.10 → 1.0.0-rc.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/actionGrants.d.ts +21 -0
- package/dist/client/actionGrants.js +24 -0
- package/dist/client/addressMount.d.ts +67 -0
- package/dist/client/addressMount.js +136 -0
- package/dist/client/app.d.ts +10 -0
- package/dist/client/app.js +976 -0
- package/dist/client/boot.d.ts +1 -0
- package/dist/client/boot.js +37 -0
- package/dist/client/brandLook.css +125 -0
- package/dist/client/breakdownBatch.d.ts +34 -0
- package/dist/client/breakdownBatch.js +115 -0
- package/dist/client/bulkActions.d.ts +66 -0
- package/dist/client/bulkActions.js +171 -0
- package/dist/client/chart.d.ts +20 -0
- package/dist/client/chart.js +80 -0
- package/dist/client/clauses.d.ts +121 -0
- package/dist/client/clauses.js +276 -0
- package/dist/client/columns.d.ts +77 -0
- package/dist/client/columns.js +102 -0
- package/dist/client/components/Accordion.d.ts +26 -0
- package/dist/client/components/Accordion.js +44 -0
- package/dist/client/components/ApiOperations.d.ts +3 -0
- package/dist/client/components/ApiOperations.js +162 -0
- package/dist/client/components/AppColumnMenu.d.ts +66 -0
- package/dist/client/components/AppColumnMenu.js +59 -0
- package/dist/client/components/AppColumnMenuPopups.d.ts +21 -0
- package/dist/client/components/AppColumnMenuPopups.js +92 -0
- package/dist/client/components/AppFooter.css +17 -0
- package/dist/client/components/AppFooter.d.ts +23 -0
- package/dist/client/components/AppFooter.js +12 -0
- package/dist/client/components/AppIssues.d.ts +4 -0
- package/dist/client/components/AppIssues.js +18 -0
- package/dist/client/components/AppList.d.ts +20 -0
- package/dist/client/components/AppList.js +696 -0
- package/dist/client/components/AttachmentList.d.ts +45 -0
- package/dist/client/components/AttachmentList.js +178 -0
- package/dist/client/components/BoardList.css +9 -0
- package/dist/client/components/Breakdown.d.ts +11 -0
- package/dist/client/components/Breakdown.js +157 -0
- package/dist/client/components/BreakdownRoom.d.ts +4 -0
- package/dist/client/components/BreakdownRoom.js +48 -0
- package/dist/client/components/CardsList.d.ts +23 -0
- package/dist/client/components/CardsList.js +209 -0
- package/dist/client/components/Chart.css +165 -0
- package/dist/client/components/Chart.d.ts +194 -0
- package/dist/client/components/Chart.js +801 -0
- package/dist/client/components/ChartFigure.d.ts +82 -0
- package/dist/client/components/ChartFigure.js +102 -0
- package/dist/client/components/ChartShapes.css +213 -0
- package/dist/client/components/ChartShapes.d.ts +63 -0
- package/dist/client/components/ChartShapes.js +393 -0
- package/dist/client/components/Checklist.css +16 -0
- package/dist/client/components/Composer.d.ts +1 -0
- package/dist/client/components/Composer.js +331 -0
- package/dist/client/components/Content.d.ts +8 -0
- package/dist/client/components/Content.js +170 -0
- package/dist/client/components/CountedLabel.d.ts +10 -0
- package/dist/client/components/CountedLabel.js +26 -0
- package/dist/client/components/Crumbs.d.ts +11 -0
- package/dist/client/components/Crumbs.js +142 -0
- package/dist/client/components/DashboardList.css +7 -0
- package/dist/client/components/DashboardList.d.ts +9 -0
- package/dist/client/components/DashboardList.js +46 -0
- package/dist/client/components/DashboardNote.d.ts +21 -0
- package/dist/client/components/DashboardNote.js +22 -0
- package/dist/client/components/DateField.css +6 -0
- package/dist/client/components/DateField.d.ts +7 -0
- package/dist/client/components/DateField.js +27 -0
- package/dist/client/components/DefinedFields.d.ts +50 -0
- package/dist/client/components/DefinedFields.js +186 -0
- package/dist/client/components/DeleteButton.d.ts +30 -0
- package/dist/client/components/DeleteButton.js +198 -0
- package/dist/client/components/Diagram.d.ts +7 -0
- package/dist/client/components/Diagram.js +320 -0
- package/dist/client/components/Dressed.d.ts +31 -0
- package/dist/client/components/Dressed.js +138 -0
- package/dist/client/components/Dropdown.d.ts +14 -0
- package/dist/client/components/Dropdown.js +20 -0
- package/dist/client/components/EditLayoutButton.d.ts +13 -0
- package/dist/client/components/EditLayoutButton.js +7 -0
- package/dist/client/components/Editable.d.ts +47 -0
- package/dist/client/components/Editable.js +422 -0
- package/dist/client/components/ErrorBoundary.d.ts +40 -0
- package/dist/client/components/ErrorBoundary.js +41 -0
- package/dist/client/components/Export.d.ts +15 -0
- package/dist/client/components/Export.js +151 -0
- package/dist/client/components/ExportHold.d.ts +18 -0
- package/dist/client/components/ExportHold.js +30 -0
- package/dist/client/components/FavoriteStar.d.ts +5 -0
- package/dist/client/components/FavoriteStar.js +14 -0
- package/dist/client/components/FieldArranger.d.ts +28 -0
- package/dist/client/components/FieldArranger.js +82 -0
- package/dist/client/components/FilePreview.css +20 -0
- package/dist/client/components/FilePreview.d.ts +26 -0
- package/dist/client/components/FilePreview.js +170 -0
- package/dist/client/components/FilterBoxes.d.ts +76 -0
- package/dist/client/components/FilterBoxes.js +294 -0
- package/dist/client/components/FilterRail.css +100 -0
- package/dist/client/components/FilterRail.d.ts +61 -0
- package/dist/client/components/FilterRail.js +559 -0
- package/dist/client/components/Gallery.d.ts +11 -0
- package/dist/client/components/Gallery.js +53 -0
- package/dist/client/components/Grid.d.ts +122 -0
- package/dist/client/components/Grid.js +1115 -0
- package/dist/client/components/GridCellEditor.d.ts +35 -0
- package/dist/client/components/GridCellEditor.js +291 -0
- package/dist/client/components/GridSelection.d.ts +16 -0
- package/dist/client/components/GridSelection.js +28 -0
- package/dist/client/components/HelpPanel.d.ts +5 -0
- package/dist/client/components/HelpPanel.js +92 -0
- package/dist/client/components/History.d.ts +10 -0
- package/dist/client/components/History.js +22 -0
- package/dist/client/components/Icon.d.ts +31 -0
- package/dist/client/components/Icon.js +20 -0
- package/dist/client/components/JsonPreview.d.ts +5 -0
- package/dist/client/components/JsonPreview.js +25 -0
- package/dist/client/components/JsonValue.d.ts +4 -0
- package/dist/client/components/JsonValue.js +3 -0
- package/dist/client/components/JsonView.css +109 -0
- package/dist/client/components/JsonView.d.ts +3 -0
- package/dist/client/components/JsonView.js +118 -0
- package/dist/client/components/Landing.d.ts +19 -0
- package/dist/client/components/Landing.js +55 -0
- package/dist/client/components/LandingSurface.css +177 -0
- package/dist/client/components/LandingSurface.d.ts +42 -0
- package/dist/client/components/LandingSurface.js +108 -0
- package/dist/client/components/LayoutBuilder.d.ts +36 -0
- package/dist/client/components/LayoutBuilder.js +104 -0
- package/dist/client/components/Lightbox.d.ts +29 -0
- package/dist/client/components/Lightbox.js +62 -0
- package/dist/client/components/ListEmpty.css +13 -0
- package/dist/client/components/ListEmpty.d.ts +10 -0
- package/dist/client/components/ListEmpty.js +8 -0
- package/dist/client/components/ListFilterBar.css +76 -0
- package/dist/client/components/ListFilterBar.d.ts +52 -0
- package/dist/client/components/ListFilterBar.js +304 -0
- package/dist/client/components/LiveNotices.css +105 -0
- package/dist/client/components/LiveNotices.d.ts +26 -0
- package/dist/client/components/LiveNotices.js +211 -0
- package/dist/client/components/MinorMoneyInput.d.ts +26 -0
- package/dist/client/components/MinorMoneyInput.js +50 -0
- package/dist/client/components/Modal.css +3 -0
- package/dist/client/components/MultiStepForm.css +122 -0
- package/dist/client/components/MultiStepForm.d.ts +59 -0
- package/dist/client/components/MultiStepForm.js +216 -0
- package/dist/client/components/NavGlyph.d.ts +14 -0
- package/dist/client/components/NavGlyph.js +27 -0
- package/dist/client/components/Nested.d.ts +21 -0
- package/dist/client/components/Nested.js +86 -0
- package/dist/client/components/NewRecord.d.ts +89 -0
- package/dist/client/components/NewRecord.js +897 -0
- package/dist/client/components/NewRecordButton.d.ts +13 -0
- package/dist/client/components/NewRecordButton.js +28 -0
- package/dist/client/components/Notes.css +39 -0
- package/dist/client/components/Notes.d.ts +59 -0
- package/dist/client/components/Notes.js +96 -0
- package/dist/client/components/OverflowMenu.d.ts +3 -0
- package/dist/client/components/OverflowMenu.js +60 -0
- package/dist/client/components/Page.d.ts +52 -0
- package/dist/client/components/Page.js +237 -0
- package/dist/client/components/PageCurrent.d.ts +38 -0
- package/dist/client/components/PageCurrent.js +27 -0
- package/dist/client/components/PageEmptyRun.d.ts +18 -0
- package/dist/client/components/PageEmptyRun.js +118 -0
- package/dist/client/components/PageFields.d.ts +3 -0
- package/dist/client/components/PageFields.js +294 -0
- package/dist/client/components/PageFlowDiagram.css +193 -0
- package/dist/client/components/PageFlowDiagram.d.ts +95 -0
- package/dist/client/components/PageFlowDiagram.js +276 -0
- package/dist/client/components/PageFlows.css +27 -0
- package/dist/client/components/PageFlows.d.ts +54 -0
- package/dist/client/components/PageFlows.js +92 -0
- package/dist/client/components/PageGroups.d.ts +43 -0
- package/dist/client/components/PageGroups.js +123 -0
- package/dist/client/components/PageHead.d.ts +28 -0
- package/dist/client/components/PageHead.js +279 -0
- package/dist/client/components/PageHeadline.d.ts +23 -0
- package/dist/client/components/PageHeadline.js +101 -0
- package/dist/client/components/PageHistory.d.ts +62 -0
- package/dist/client/components/PageHistory.js +160 -0
- package/dist/client/components/PageLayout.d.ts +22 -0
- package/dist/client/components/PageLayout.js +13 -0
- package/dist/client/components/PageMetrics.d.ts +11 -0
- package/dist/client/components/PageMetrics.js +252 -0
- package/dist/client/components/PageRelated.d.ts +70 -0
- package/dist/client/components/PageRelated.js +667 -0
- package/dist/client/components/PageRoom.d.ts +37 -0
- package/dist/client/components/PageRoom.js +277 -0
- package/dist/client/components/PageSectionBox.d.ts +28 -0
- package/dist/client/components/PageSectionBox.js +65 -0
- package/dist/client/components/PageSections.d.ts +38 -0
- package/dist/client/components/PageSections.js +352 -0
- package/dist/client/components/PageSkeleton.css +17 -0
- package/dist/client/components/PageSkeleton.d.ts +11 -0
- package/dist/client/components/PageSkeleton.js +25 -0
- package/dist/client/components/PageTimeline.d.ts +2 -0
- package/dist/client/components/PageTimeline.js +273 -0
- package/dist/client/components/Palette.d.ts +4 -0
- package/dist/client/components/Palette.js +176 -0
- package/dist/client/components/Peek.d.ts +1 -0
- package/dist/client/components/Peek.js +158 -0
- package/dist/client/components/PeekPanel.d.ts +16 -0
- package/dist/client/components/PeekPanel.js +120 -0
- package/dist/client/components/Picker.d.ts +13 -0
- package/dist/client/components/Picker.js +33 -0
- package/dist/client/components/Prefs.d.ts +3 -0
- package/dist/client/components/Prefs.js +121 -0
- package/dist/client/components/PresentationSwitch.d.ts +13 -0
- package/dist/client/components/PresentationSwitch.js +10 -0
- package/dist/client/components/Prompt.d.ts +35 -0
- package/dist/client/components/Prompt.js +114 -0
- package/dist/client/components/QrCode.css +11 -0
- package/dist/client/components/QrCode.d.ts +4 -0
- package/dist/client/components/QrCode.js +57 -0
- package/dist/client/components/QueueList.css +122 -0
- package/dist/client/components/QuickAdd.css +18 -0
- package/dist/client/components/QuickAdd.d.ts +11 -0
- package/dist/client/components/QuickAdd.js +53 -0
- package/dist/client/components/QuickAddOnDemand.d.ts +4 -0
- package/dist/client/components/QuickAddOnDemand.js +10 -0
- package/dist/client/components/Record.d.ts +36 -0
- package/dist/client/components/Record.js +385 -0
- package/dist/client/components/RecordGone.d.ts +7 -0
- package/dist/client/components/RecordGone.js +22 -0
- package/dist/client/components/RecordPicker.d.ts +59 -0
- package/dist/client/components/RecordPicker.js +299 -0
- package/dist/client/components/RecordSummaries.d.ts +55 -0
- package/dist/client/components/RecordSummaries.js +151 -0
- package/dist/client/components/RecordTags.d.ts +6 -0
- package/dist/client/components/RecordTags.js +119 -0
- package/dist/client/components/RecordTrailNav.d.ts +25 -0
- package/dist/client/components/RecordTrailNav.js +110 -0
- package/dist/client/components/RichText.d.ts +7 -0
- package/dist/client/components/RichText.js +82 -0
- package/dist/client/components/RichTextEditor.css +202 -0
- package/dist/client/components/RichTextEditor.d.ts +33 -0
- package/dist/client/components/RichTextEditor.js +348 -0
- package/dist/client/components/RichTextField.d.ts +26 -0
- package/dist/client/components/RichTextField.js +71 -0
- package/dist/client/components/Rooms.d.ts +35 -0
- package/dist/client/components/Rooms.js +276 -0
- package/dist/client/components/RowActions.d.ts +8 -0
- package/dist/client/components/RowActions.js +49 -0
- package/dist/client/components/RowHost.d.ts +110 -0
- package/dist/client/components/RowHost.js +212 -0
- package/dist/client/components/SavedViews.d.ts +25 -0
- package/dist/client/components/SavedViews.js +35 -0
- package/dist/client/components/SchemaExport.d.ts +15 -0
- package/dist/client/components/SchemaExport.js +42 -0
- package/dist/client/components/SectionPeriod.css +14 -0
- package/dist/client/components/SectionPeriod.d.ts +7 -0
- package/dist/client/components/SectionPeriod.js +14 -0
- package/dist/client/components/SetFieldDialog.d.ts +12 -0
- package/dist/client/components/SetFieldDialog.js +51 -0
- package/dist/client/components/Sidebar.d.ts +34 -0
- package/dist/client/components/Sidebar.js +398 -0
- package/dist/client/components/Skeleton.d.ts +35 -0
- package/dist/client/components/Skeleton.js +49 -0
- package/dist/client/components/SortMenu.d.ts +20 -0
- package/dist/client/components/SortMenu.js +45 -0
- package/dist/client/components/SplitListDetail.css +119 -0
- package/dist/client/components/SuggestBox.d.ts +29 -0
- package/dist/client/components/SuggestBox.js +60 -0
- package/dist/client/components/Summary.d.ts +14 -0
- package/dist/client/components/Summary.js +93 -0
- package/dist/client/components/TableRoom.d.ts +88 -0
- package/dist/client/components/TableRoom.js +246 -0
- package/dist/client/components/TableView.d.ts +111 -0
- package/dist/client/components/TableView.js +324 -0
- package/dist/client/components/ThMenu.d.ts +40 -0
- package/dist/client/components/ThMenu.js +163 -0
- package/dist/client/components/ThemeLab.d.ts +4 -0
- package/dist/client/components/ThemeLab.js +67 -0
- package/dist/client/components/TimelineSides.css +23 -0
- package/dist/client/components/TimelineSides.d.ts +7 -0
- package/dist/client/components/TimelineSides.js +9 -0
- package/dist/client/components/Tour.d.ts +12 -0
- package/dist/client/components/Tour.js +131 -0
- package/dist/client/components/Value.d.ts +38 -0
- package/dist/client/components/Value.js +172 -0
- package/dist/client/components/WorkPanel.d.ts +9 -0
- package/dist/client/components/WorkPanel.js +43 -0
- package/dist/client/components/WorkflowStatus.d.ts +6 -0
- package/dist/client/components/WorkflowStatus.js +44 -0
- package/dist/client/components/WriteConfirm.d.ts +4 -0
- package/dist/client/components/WriteConfirm.js +27 -0
- package/dist/client/components/appColumnMenuModel.d.ts +46 -0
- package/dist/client/components/appColumnMenuModel.js +51 -0
- package/dist/client/components/appListModel.d.ts +179 -0
- package/dist/client/components/appListModel.js +421 -0
- package/dist/client/components/appRooms.d.ts +106 -0
- package/dist/client/components/appRooms.js +133 -0
- package/dist/client/components/autoChart.d.ts +33 -0
- package/dist/client/components/autoChart.js +107 -0
- package/dist/client/components/avatarPhotos.d.ts +45 -0
- package/dist/client/components/avatarPhotos.js +93 -0
- package/dist/client/components/besideDetail.d.ts +1 -0
- package/dist/client/components/besideDetail.js +10 -0
- package/dist/client/components/boardNew.d.ts +2 -0
- package/dist/client/components/boardNew.js +8 -0
- package/dist/client/components/cardsModel.d.ts +11 -0
- package/dist/client/components/cardsModel.js +24 -0
- package/dist/client/components/chromeIcons.d.ts +16 -0
- package/dist/client/components/chromeIcons.js +16 -0
- package/dist/client/components/columnPresentation.d.ts +8 -0
- package/dist/client/components/columnPresentation.js +47 -0
- package/dist/client/components/componentSlot.d.ts +31 -0
- package/dist/client/components/componentSlot.js +76 -0
- package/dist/client/components/composerDraft.d.ts +16 -0
- package/dist/client/components/composerDraft.js +16 -0
- package/dist/client/components/conditionText.d.ts +14 -0
- package/dist/client/components/conditionText.js +45 -0
- package/dist/client/components/conditionWords.d.ts +37 -0
- package/dist/client/components/conditionWords.js +382 -0
- package/dist/client/components/crumbSlot.d.ts +14 -0
- package/dist/client/components/crumbSlot.js +49 -0
- package/dist/client/components/dashboardModel.d.ts +283 -0
- package/dist/client/components/dashboardModel.js +415 -0
- package/dist/client/components/dashboardParts.d.ts +9 -0
- package/dist/client/components/dashboardParts.js +18 -0
- package/dist/client/components/diagramModel.d.ts +83 -0
- package/dist/client/components/diagramModel.js +211 -0
- package/dist/client/components/dueOpen.d.ts +1 -0
- package/dist/client/components/dueOpen.js +23 -0
- package/dist/client/components/editInteraction.d.ts +20 -0
- package/dist/client/components/editInteraction.js +178 -0
- package/dist/client/components/favoriteNav.d.ts +6 -0
- package/dist/client/components/favoriteNav.js +31 -0
- package/dist/client/components/favorites.d.ts +23 -0
- package/dist/client/components/favorites.js +86 -0
- package/dist/client/components/filePreviewModel.d.ts +18 -0
- package/dist/client/components/filePreviewModel.js +21 -0
- package/dist/client/components/filterRailModel.d.ts +93 -0
- package/dist/client/components/filterRailModel.js +302 -0
- package/dist/client/components/formControlsStyle.d.ts +1 -0
- package/dist/client/components/formControlsStyle.js +3 -0
- package/dist/client/components/formDefaults.d.ts +17 -0
- package/dist/client/components/formDefaults.js +128 -0
- package/dist/client/components/gridArrange.d.ts +33 -0
- package/dist/client/components/gridArrange.js +62 -0
- package/dist/client/components/gridCellModel.d.ts +32 -0
- package/dist/client/components/gridCellModel.js +42 -0
- package/dist/client/components/gridSizing.d.ts +89 -0
- package/dist/client/components/gridSizing.js +295 -0
- package/dist/client/components/groupMoves.d.ts +44 -0
- package/dist/client/components/groupMoves.js +295 -0
- package/dist/client/components/groupOrder.d.ts +43 -0
- package/dist/client/components/groupOrder.js +63 -0
- package/dist/client/components/inputRenderers.d.ts +48 -0
- package/dist/client/components/inputRenderers.js +37 -0
- package/dist/client/components/intakeStyle.d.ts +2 -0
- package/dist/client/components/intakeStyle.js +6 -0
- package/dist/client/components/jsonModel.d.ts +98 -0
- package/dist/client/components/jsonModel.js +264 -0
- package/dist/client/components/listColumn.d.ts +20 -0
- package/dist/client/components/listColumn.js +31 -0
- package/dist/client/components/listNavigation.d.ts +16 -0
- package/dist/client/components/listNavigation.js +14 -0
- package/dist/client/components/mentionRows.d.ts +5 -0
- package/dist/client/components/mentionRows.js +62 -0
- package/dist/client/components/mount.d.ts +55 -0
- package/dist/client/components/mount.js +155 -0
- package/dist/client/components/myViews.d.ts +54 -0
- package/dist/client/components/myViews.js +82 -0
- package/dist/client/components/navCounts.d.ts +84 -0
- package/dist/client/components/navCounts.js +194 -0
- package/dist/client/components/navigationTree.d.ts +52 -0
- package/dist/client/components/navigationTree.js +49 -0
- package/dist/client/components/newMenuModel.d.ts +27 -0
- package/dist/client/components/newMenuModel.js +58 -0
- package/dist/client/components/newRecordModel.d.ts +58 -0
- package/dist/client/components/newRecordModel.js +232 -0
- package/dist/client/components/onDemand.d.ts +30 -0
- package/dist/client/components/onDemand.js +121 -0
- package/dist/client/components/optimisticMoves.d.ts +21 -0
- package/dist/client/components/optimisticMoves.js +145 -0
- package/dist/client/components/pageContext.d.ts +154 -0
- package/dist/client/components/pageContext.js +47 -0
- package/dist/client/components/pageFieldsRead.d.ts +67 -0
- package/dist/client/components/pageFieldsRead.js +55 -0
- package/dist/client/components/pageModel.d.ts +203 -0
- package/dist/client/components/pageModel.js +67 -0
- package/dist/client/components/pageStep.d.ts +31 -0
- package/dist/client/components/pageStep.js +15 -0
- package/dist/client/components/paletteModel.d.ts +9 -0
- package/dist/client/components/paletteModel.js +46 -0
- package/dist/client/components/pickerStaleness.d.ts +32 -0
- package/dist/client/components/pickerStaleness.js +27 -0
- package/dist/client/components/placeOrder.d.ts +47 -0
- package/dist/client/components/placeOrder.js +71 -0
- package/dist/client/components/pointerDrag.d.ts +54 -0
- package/dist/client/components/pointerDrag.js +95 -0
- package/dist/client/components/presentationFit.d.ts +19 -0
- package/dist/client/components/presentationFit.js +32 -0
- package/dist/client/components/recordKeys.d.ts +2 -0
- package/dist/client/components/recordKeys.js +8 -0
- package/dist/client/components/recordSearch.d.ts +31 -0
- package/dist/client/components/recordSearch.js +80 -0
- package/dist/client/components/recordSurface.d.ts +86 -0
- package/dist/client/components/recordSurface.js +267 -0
- package/dist/client/components/rowOpens.d.ts +19 -0
- package/dist/client/components/rowOpens.js +25 -0
- package/dist/client/components/sidebarModel.d.ts +152 -0
- package/dist/client/components/sidebarModel.js +372 -0
- package/dist/client/components/suggestModel.d.ts +22 -0
- package/dist/client/components/suggestModel.js +49 -0
- package/dist/client/components/suggestPart.d.ts +4 -0
- package/dist/client/components/suggestPart.js +4 -0
- package/dist/client/components/textMeasure.d.ts +2 -0
- package/dist/client/components/textMeasure.js +35 -0
- package/dist/client/components/unknownIcon.d.ts +8 -0
- package/dist/client/components/unknownIcon.js +32 -0
- package/dist/client/components/useBulkSelection.d.ts +30 -0
- package/dist/client/components/useBulkSelection.js +360 -0
- package/dist/client/components/useConditionWords.d.ts +17 -0
- package/dist/client/components/useConditionWords.js +104 -0
- package/dist/client/components/useGridKeyboard.d.ts +32 -0
- package/dist/client/components/useGridKeyboard.js +223 -0
- package/dist/client/components/useListOrder.d.ts +94 -0
- package/dist/client/components/useListOrder.js +294 -0
- package/dist/client/components/useMediaQuery.d.ts +10 -0
- package/dist/client/components/useMediaQuery.js +45 -0
- package/dist/client/components/useMessageLanguage.d.ts +1 -0
- package/dist/client/components/useMessageLanguage.js +6 -0
- package/dist/client/components/usePins.d.ts +20 -0
- package/dist/client/components/usePins.js +66 -0
- package/dist/client/components/usePointerDrag.d.ts +72 -0
- package/dist/client/components/usePointerDrag.js +553 -0
- package/dist/client/components/useRecordInsert.d.ts +42 -0
- package/dist/client/components/useRecordInsert.js +145 -0
- package/dist/client/components/useRowWindow.d.ts +35 -0
- package/dist/client/components/useRowWindow.js +149 -0
- package/dist/client/components/useStickyHead.d.ts +17 -0
- package/dist/client/components/useStickyHead.js +65 -0
- package/dist/client/components/useTabFold.d.ts +32 -0
- package/dist/client/components/useTabFold.js +145 -0
- package/dist/client/components/valueModel.d.ts +300 -0
- package/dist/client/components/valueModel.js +560 -0
- package/dist/client/components/valueRenderers.d.ts +36 -0
- package/dist/client/components/valueRenderers.js +13 -0
- package/dist/client/components/viewLink.d.ts +27 -0
- package/dist/client/components/viewLink.js +79 -0
- package/dist/client/components/walk.d.ts +14 -0
- package/dist/client/components/walk.js +16 -0
- package/dist/client/compose.d.ts +8 -0
- package/dist/client/compose.js +163 -0
- package/dist/client/composedHook.d.ts +20 -0
- package/dist/client/composedHook.js +12 -0
- package/dist/client/composedReads.d.ts +26 -0
- package/dist/client/composedReads.js +183 -0
- package/dist/client/composer.css +499 -0
- package/dist/client/composer.d.ts +121 -0
- package/dist/client/composer.js +1079 -0
- package/dist/client/composerEntry.d.ts +1 -0
- package/dist/client/composerEntry.js +58 -0
- package/dist/client/composerTab.d.ts +6 -0
- package/dist/client/composerTab.js +20 -0
- package/dist/client/conditions.d.ts +46 -0
- package/dist/client/conditions.js +150 -0
- package/dist/client/connectionList.d.ts +11 -0
- package/dist/client/connectionList.js +146 -0
- package/dist/client/connectionScope.d.ts +6 -0
- package/dist/client/connectionScope.js +14 -0
- package/dist/client/connectionTransition.d.ts +12 -0
- package/dist/client/connectionTransition.js +41 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenu.d.ts +4 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenu.js +6 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenuPopups.d.ts +4 -0
- package/dist/client/copy/columnMenu/components/AppColumnMenuPopups.js +6 -0
- package/dist/client/copy/columnMenu/components/ThMenu.d.ts +35 -0
- package/dist/client/copy/columnMenu/components/ThMenu.js +37 -0
- package/dist/client/copy/columnMenu/components/appColumnMenuModel.d.ts +10 -0
- package/dist/client/copy/columnMenu/components/appColumnMenuModel.js +12 -0
- package/dist/client/copy/dashboards/breakdownBatch.d.ts +3 -0
- package/dist/client/copy/dashboards/breakdownBatch.js +5 -0
- package/dist/client/copy/dashboards/components/Breakdown.d.ts +32 -0
- package/dist/client/copy/dashboards/components/Breakdown.js +25 -0
- package/dist/client/copy/dashboards/components/BreakdownRoom.d.ts +3 -0
- package/dist/client/copy/dashboards/components/BreakdownRoom.js +5 -0
- package/dist/client/copy/dashboards/components/Chart.d.ts +26 -0
- package/dist/client/copy/dashboards/components/Chart.js +19 -0
- package/dist/client/copy/dashboards/components/ChartShapes.d.ts +16 -0
- package/dist/client/copy/dashboards/components/ChartShapes.js +12 -0
- package/dist/client/copy/dashboards/components/PageMetrics.d.ts +21 -0
- package/dist/client/copy/dashboards/components/PageMetrics.js +20 -0
- package/dist/client/copy/dashboards/components/SectionPeriod.d.ts +4 -0
- package/dist/client/copy/dashboards/components/SectionPeriod.js +6 -0
- package/dist/client/copy/dashboards/components/dashboardModel.d.ts +3 -0
- package/dist/client/copy/dashboards/components/dashboardModel.js +5 -0
- package/dist/client/copy/es.d.ts +11 -0
- package/dist/client/copy/es.js +60 -0
- package/dist/client/copy/filters/components/FilterBoxes.d.ts +10 -0
- package/dist/client/copy/filters/components/FilterBoxes.js +12 -0
- package/dist/client/copy/filters/components/FilterRail.d.ts +16 -0
- package/dist/client/copy/filters/components/FilterRail.js +18 -0
- package/dist/client/copy/filters/components/ListFilterBar.d.ts +9 -0
- package/dist/client/copy/filters/components/ListFilterBar.js +11 -0
- package/dist/client/copy/filters/components/conditionWords.d.ts +46 -0
- package/dist/client/copy/filters/components/conditionWords.js +95 -0
- package/dist/client/copy/filters/components/filterRailModel.d.ts +12 -0
- package/dist/client/copy/filters/components/filterRailModel.js +14 -0
- package/dist/client/copy/forms/components/DateField.d.ts +13 -0
- package/dist/client/copy/forms/components/DateField.js +15 -0
- package/dist/client/copy/forms/components/MinorMoneyInput.d.ts +4 -0
- package/dist/client/copy/forms/components/MinorMoneyInput.js +6 -0
- package/dist/client/copy/forms/components/MultiStepForm.d.ts +10 -0
- package/dist/client/copy/forms/components/MultiStepForm.js +12 -0
- package/dist/client/copy/forms/components/NewRecord.d.ts +29 -0
- package/dist/client/copy/forms/components/NewRecord.js +31 -0
- package/dist/client/copy/forms/components/NewRecordButton.d.ts +6 -0
- package/dist/client/copy/forms/components/NewRecordButton.js +8 -0
- package/dist/client/copy/forms/components/Picker.d.ts +4 -0
- package/dist/client/copy/forms/components/Picker.js +6 -0
- package/dist/client/copy/forms/components/QuickAdd.d.ts +3 -0
- package/dist/client/copy/forms/components/QuickAdd.js +5 -0
- package/dist/client/copy/forms/components/RecordPicker.d.ts +6 -0
- package/dist/client/copy/forms/components/RecordPicker.js +8 -0
- package/dist/client/copy/forms/components/RichTextEditor.d.ts +36 -0
- package/dist/client/copy/forms/components/RichTextEditor.js +40 -0
- package/dist/client/copy/forms/components/RichTextField.d.ts +3 -0
- package/dist/client/copy/forms/components/RichTextField.js +5 -0
- package/dist/client/copy/forms/components/SetFieldDialog.d.ts +10 -0
- package/dist/client/copy/forms/components/SetFieldDialog.js +9 -0
- package/dist/client/copy/forms/components/useRecordInsert.d.ts +7 -0
- package/dist/client/copy/forms/components/useRecordInsert.js +9 -0
- package/dist/client/copy/help/helpContent.d.ts +71 -0
- package/dist/client/copy/help/helpContent.js +73 -0
- package/dist/client/copy/lists/bulkActions.d.ts +12 -0
- package/dist/client/copy/lists/bulkActions.js +14 -0
- package/dist/client/copy/lists/components/AppList.d.ts +28 -0
- package/dist/client/copy/lists/components/AppList.js +30 -0
- package/dist/client/copy/lists/components/CardsList.d.ts +3 -0
- package/dist/client/copy/lists/components/CardsList.js +5 -0
- package/dist/client/copy/lists/components/Gallery.d.ts +7 -0
- package/dist/client/copy/lists/components/Gallery.js +9 -0
- package/dist/client/copy/lists/components/Grid.d.ts +30 -0
- package/dist/client/copy/lists/components/Grid.js +29 -0
- package/dist/client/copy/lists/components/GridCellEditor.d.ts +5 -0
- package/dist/client/copy/lists/components/GridCellEditor.js +7 -0
- package/dist/client/copy/lists/components/GridSelection.d.ts +4 -0
- package/dist/client/copy/lists/components/GridSelection.js +6 -0
- package/dist/client/copy/lists/components/Nested.d.ts +7 -0
- package/dist/client/copy/lists/components/Nested.js +9 -0
- package/dist/client/copy/lists/components/RowActions.d.ts +1 -0
- package/dist/client/copy/lists/components/RowActions.js +3 -0
- package/dist/client/copy/lists/components/SavedViews.d.ts +5 -0
- package/dist/client/copy/lists/components/SavedViews.js +7 -0
- package/dist/client/copy/lists/components/SortMenu.d.ts +5 -0
- package/dist/client/copy/lists/components/SortMenu.js +7 -0
- package/dist/client/copy/lists/components/TableRoom.d.ts +12 -0
- package/dist/client/copy/lists/components/TableRoom.js +14 -0
- package/dist/client/copy/lists/components/TableView.d.ts +37 -0
- package/dist/client/copy/lists/components/TableView.js +39 -0
- package/dist/client/copy/lists/components/appListModel.d.ts +6 -0
- package/dist/client/copy/lists/components/appListModel.js +5 -0
- package/dist/client/copy/lists/components/myViews.d.ts +4 -0
- package/dist/client/copy/lists/components/myViews.js +6 -0
- package/dist/client/copy/lists/components/placeOrder.d.ts +4 -0
- package/dist/client/copy/lists/components/placeOrder.js +6 -0
- package/dist/client/copy/lists/components/useBulkSelection.d.ts +20 -0
- package/dist/client/copy/lists/components/useBulkSelection.js +16 -0
- package/dist/client/copy/lists/components/useListOrder.d.ts +7 -0
- package/dist/client/copy/lists/components/useListOrder.js +9 -0
- package/dist/client/copy/public/components/appRooms.d.ts +3 -0
- package/dist/client/copy/public/components/appRooms.js +5 -0
- package/dist/client/copy/record/components/Actions.d.ts +13 -0
- package/dist/client/copy/record/components/Actions.js +15 -0
- package/dist/client/copy/record/components/AttachmentList.d.ts +23 -0
- package/dist/client/copy/record/components/AttachmentList.js +22 -0
- package/dist/client/copy/record/components/DeleteButton.d.ts +22 -0
- package/dist/client/copy/record/components/DeleteButton.js +24 -0
- package/dist/client/copy/record/components/Dressed.d.ts +5 -0
- package/dist/client/copy/record/components/Dressed.js +7 -0
- package/dist/client/copy/record/components/EditLayoutButton.d.ts +5 -0
- package/dist/client/copy/record/components/EditLayoutButton.js +7 -0
- package/dist/client/copy/record/components/Editable.d.ts +25 -0
- package/dist/client/copy/record/components/Editable.js +24 -0
- package/dist/client/copy/record/components/FieldArranger.d.ts +15 -0
- package/dist/client/copy/record/components/FieldArranger.js +17 -0
- package/dist/client/copy/record/components/FilePreview.d.ts +13 -0
- package/dist/client/copy/record/components/FilePreview.js +15 -0
- package/dist/client/copy/record/components/JsonPreview.d.ts +3 -0
- package/dist/client/copy/record/components/JsonPreview.js +5 -0
- package/dist/client/copy/record/components/JsonView.d.ts +12 -0
- package/dist/client/copy/record/components/JsonView.js +14 -0
- package/dist/client/copy/record/components/LayoutBuilder.d.ts +23 -0
- package/dist/client/copy/record/components/LayoutBuilder.js +25 -0
- package/dist/client/copy/record/components/Lightbox.d.ts +5 -0
- package/dist/client/copy/record/components/Lightbox.js +7 -0
- package/dist/client/copy/record/components/LiveNotices.d.ts +33 -0
- package/dist/client/copy/record/components/LiveNotices.js +29 -0
- package/dist/client/copy/record/components/PageCurrent.d.ts +1 -0
- package/dist/client/copy/record/components/PageCurrent.js +3 -0
- package/dist/client/copy/record/components/PageEmptyRun.d.ts +3 -0
- package/dist/client/copy/record/components/PageEmptyRun.js +5 -0
- package/dist/client/copy/record/components/PageFields.d.ts +5 -0
- package/dist/client/copy/record/components/PageFields.js +7 -0
- package/dist/client/copy/record/components/PageFlowDiagram.d.ts +33 -0
- package/dist/client/copy/record/components/PageFlowDiagram.js +37 -0
- package/dist/client/copy/record/components/PageFlows.d.ts +20 -0
- package/dist/client/copy/record/components/PageFlows.js +22 -0
- package/dist/client/copy/record/components/PageGroups.d.ts +12 -0
- package/dist/client/copy/record/components/PageGroups.js +14 -0
- package/dist/client/copy/record/components/PageHead.d.ts +8 -0
- package/dist/client/copy/record/components/PageHead.js +10 -0
- package/dist/client/copy/record/components/PageHistory.d.ts +18 -0
- package/dist/client/copy/record/components/PageHistory.js +20 -0
- package/dist/client/copy/record/components/PageLayout.d.ts +5 -0
- package/dist/client/copy/record/components/PageLayout.js +7 -0
- package/dist/client/copy/record/components/PageRelated.d.ts +24 -0
- package/dist/client/copy/record/components/PageRelated.js +26 -0
- package/dist/client/copy/record/components/PageRoom.d.ts +4 -0
- package/dist/client/copy/record/components/PageRoom.js +6 -0
- package/dist/client/copy/record/components/PageSectionBox.d.ts +6 -0
- package/dist/client/copy/record/components/PageSectionBox.js +10 -0
- package/dist/client/copy/record/components/PageTimeline.d.ts +9 -0
- package/dist/client/copy/record/components/PageTimeline.js +8 -0
- package/dist/client/copy/record/components/Peek.d.ts +3 -0
- package/dist/client/copy/record/components/Peek.js +5 -0
- package/dist/client/copy/record/components/PeekPanel.d.ts +5 -0
- package/dist/client/copy/record/components/PeekPanel.js +7 -0
- package/dist/client/copy/record/components/QrCode.d.ts +3 -0
- package/dist/client/copy/record/components/QrCode.js +5 -0
- package/dist/client/copy/record/components/Record.d.ts +19 -0
- package/dist/client/copy/record/components/Record.js +21 -0
- package/dist/client/copy/record/components/RecordGone.d.ts +4 -0
- package/dist/client/copy/record/components/RecordGone.js +6 -0
- package/dist/client/copy/record/components/RecordSummaries.d.ts +1 -0
- package/dist/client/copy/record/components/RecordSummaries.js +3 -0
- package/dist/client/copy/record/components/RecordTags.d.ts +9 -0
- package/dist/client/copy/record/components/RecordTags.js +11 -0
- package/dist/client/copy/record/components/RecordTrailNav.d.ts +8 -0
- package/dist/client/copy/record/components/RecordTrailNav.js +10 -0
- package/dist/client/copy/record/components/RichText.d.ts +4 -0
- package/dist/client/copy/record/components/RichText.js +6 -0
- package/dist/client/copy/record/components/Value.d.ts +4 -0
- package/dist/client/copy/record/components/Value.js +6 -0
- package/dist/client/copy/record/components/WorkflowStatus.d.ts +7 -0
- package/dist/client/copy/record/components/WorkflowStatus.js +9 -0
- package/dist/client/copy/record/components/WriteConfirm.d.ts +11 -0
- package/dist/client/copy/record/components/WriteConfirm.js +13 -0
- package/dist/client/copy/record/components/groupMoves.d.ts +7 -0
- package/dist/client/copy/record/components/groupMoves.js +9 -0
- package/dist/client/copy/record/components/jsonModel.d.ts +3 -0
- package/dist/client/copy/record/components/jsonModel.js +5 -0
- package/dist/client/copy/record/components/pageModel.d.ts +5 -0
- package/dist/client/copy/record/components/pageModel.js +7 -0
- package/dist/client/copy/record/components/recordSurface.d.ts +6 -0
- package/dist/client/copy/record/components/recordSurface.js +8 -0
- package/dist/client/copy/record/components/valueModel.d.ts +5 -0
- package/dist/client/copy/record/components/valueModel.js +7 -0
- package/dist/client/copy/record/fileSource.d.ts +3 -0
- package/dist/client/copy/record/fileSource.js +5 -0
- package/dist/client/copy/record/insert.d.ts +6 -0
- package/dist/client/copy/record/insert.js +8 -0
- package/dist/client/copy/record/page.d.ts +4 -0
- package/dist/client/copy/record/page.js +6 -0
- package/dist/client/copy/record/recordEditValidation.d.ts +4 -0
- package/dist/client/copy/record/recordEditValidation.js +6 -0
- package/dist/client/copy/record/savedPages.d.ts +4 -0
- package/dist/client/copy/record/savedPages.js +6 -0
- package/dist/client/copy/record/template.d.ts +9 -0
- package/dist/client/copy/record/template.js +11 -0
- package/dist/client/copy/record/write.d.ts +30 -0
- package/dist/client/copy/record/write.js +26 -0
- package/dist/client/copy/shell/app.d.ts +27 -0
- package/dist/client/copy/shell/app.js +43 -0
- package/dist/client/copy/shell/components/AppIssues.d.ts +10 -0
- package/dist/client/copy/shell/components/AppIssues.js +9 -0
- package/dist/client/copy/shell/components/Crumbs.d.ts +7 -0
- package/dist/client/copy/shell/components/Crumbs.js +17 -0
- package/dist/client/copy/shell/components/Dropdown.d.ts +3 -0
- package/dist/client/copy/shell/components/Dropdown.js +5 -0
- package/dist/client/copy/shell/components/ErrorBoundary.d.ts +4 -0
- package/dist/client/copy/shell/components/ErrorBoundary.js +6 -0
- package/dist/client/copy/shell/components/FavoriteStar.d.ts +4 -0
- package/dist/client/copy/shell/components/FavoriteStar.js +6 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.d.ts +4 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.js +12 -0
- package/dist/client/copy/shell/components/OverflowMenu.d.ts +3 -0
- package/dist/client/copy/shell/components/OverflowMenu.js +10 -0
- package/dist/client/copy/shell/components/Palette.d.ts +15 -0
- package/dist/client/copy/shell/components/Palette.js +18 -0
- package/dist/client/copy/shell/components/Prefs.d.ts +4 -0
- package/dist/client/copy/shell/components/Prefs.js +11 -0
- package/dist/client/copy/shell/components/Prompt.d.ts +1 -0
- package/dist/client/copy/shell/components/Prompt.js +3 -0
- package/dist/client/copy/shell/components/Rooms.d.ts +6 -0
- package/dist/client/copy/shell/components/Rooms.js +8 -0
- package/dist/client/copy/shell/components/Sidebar.d.ts +7 -0
- package/dist/client/copy/shell/components/Sidebar.js +9 -0
- package/dist/client/copy/shell/components/Skeleton.d.ts +5 -0
- package/dist/client/copy/shell/components/Skeleton.js +7 -0
- package/dist/client/copy/shell/components/TopNav.d.ts +4 -0
- package/dist/client/copy/shell/components/TopNav.js +12 -0
- package/dist/client/copy/shell/components/Tour.d.ts +4 -0
- package/dist/client/copy/shell/components/Tour.js +6 -0
- package/dist/client/copy/shell/components/newMenuModel.d.ts +3 -0
- package/dist/client/copy/shell/components/newMenuModel.js +5 -0
- package/dist/client/copy/shell/components/onDemand.d.ts +3 -0
- package/dist/client/copy/shell/components/onDemand.js +5 -0
- package/dist/client/copy/shell/components/sidebarModel.d.ts +3 -0
- package/dist/client/copy/shell/components/sidebarModel.js +5 -0
- package/dist/client/copy/shell/connectionList.d.ts +6 -0
- package/dist/client/copy/shell/connectionList.js +8 -0
- package/dist/client/copy/shell/core.d.ts +16 -0
- package/dist/client/copy/shell/core.js +18 -0
- package/dist/client/copy/shell/palette.d.ts +6 -0
- package/dist/client/copy/shell/palette.js +8 -0
- package/dist/client/copy/shell/prompt.d.ts +1 -0
- package/dist/client/copy/shell/prompt.js +3 -0
- package/dist/client/copy/shell/requestIdentity.d.ts +9 -0
- package/dist/client/copy/shell/requestIdentity.js +11 -0
- package/dist/client/copy/shell/resourceRequests.d.ts +4 -0
- package/dist/client/copy/shell/resourceRequests.js +6 -0
- package/dist/client/copy/shell/sessionIdentity.d.ts +11 -0
- package/dist/client/copy/shell/sessionIdentity.js +13 -0
- package/dist/client/copy/shell/sessionLifecycle.d.ts +5 -0
- package/dist/client/copy/shell/sessionLifecycle.js +7 -0
- package/dist/client/copy/shell/startup.d.ts +5 -0
- package/dist/client/copy/shell/startup.js +7 -0
- package/dist/client/copy/shell/theme.d.ts +5 -0
- package/dist/client/copy/shell/theme.js +14 -0
- package/dist/client/copy/shell/toast.d.ts +3 -0
- package/dist/client/copy/shell/toast.js +5 -0
- package/dist/client/copy/shell/updateAttempts.d.ts +6 -0
- package/dist/client/copy/shell/updateAttempts.js +8 -0
- package/dist/client/copy/shell/visualTheme.d.ts +4 -0
- package/dist/client/copy/shell/visualTheme.js +6 -0
- package/dist/client/copy/workbench/clauses.d.ts +3 -0
- package/dist/client/copy/workbench/clauses.js +5 -0
- package/dist/client/copy/workbench/components/ApiOperations.d.ts +21 -0
- package/dist/client/copy/workbench/components/ApiOperations.js +23 -0
- package/dist/client/copy/workbench/components/Composer.d.ts +105 -0
- package/dist/client/copy/workbench/components/Composer.js +92 -0
- package/dist/client/copy/workbench/components/Diagram.d.ts +56 -0
- package/dist/client/copy/workbench/components/Diagram.js +46 -0
- package/dist/client/copy/workbench/components/Export.d.ts +26 -0
- package/dist/client/copy/workbench/components/Export.js +25 -0
- package/dist/client/copy/workbench/components/HelpPanel.d.ts +10 -0
- package/dist/client/copy/workbench/components/HelpPanel.js +12 -0
- package/dist/client/copy/workbench/components/History.d.ts +11 -0
- package/dist/client/copy/workbench/components/History.js +10 -0
- package/dist/client/copy/workbench/components/Landing.d.ts +5 -0
- package/dist/client/copy/workbench/components/Landing.js +7 -0
- package/dist/client/copy/workbench/components/SchemaExport.d.ts +24 -0
- package/dist/client/copy/workbench/components/SchemaExport.js +20 -0
- package/dist/client/copy/workbench/components/Summary.d.ts +28 -0
- package/dist/client/copy/workbench/components/Summary.js +24 -0
- package/dist/client/copy/workbench/components/ThemeLab.d.ts +25 -0
- package/dist/client/copy/workbench/components/ThemeLab.js +27 -0
- package/dist/client/copy/workbench/components/WorkPanel.d.ts +12 -0
- package/dist/client/copy/workbench/components/WorkPanel.js +14 -0
- package/dist/client/copy/workbench/composer.d.ts +36 -0
- package/dist/client/copy/workbench/composer.js +32 -0
- package/dist/client/copy/workbench/composerEntry.d.ts +4 -0
- package/dist/client/copy/workbench/composerEntry.js +6 -0
- package/dist/client/copy/workbench/export.d.ts +8 -0
- package/dist/client/copy/workbench/export.js +7 -0
- package/dist/client/copy/workbench/filterbar.d.ts +6 -0
- package/dist/client/copy/workbench/filterbar.js +8 -0
- package/dist/client/copy/workbench/handoff.d.ts +20 -0
- package/dist/client/copy/workbench/handoff.js +19 -0
- package/dist/client/copy/workbench/help.d.ts +6 -0
- package/dist/client/copy/workbench/help.js +8 -0
- package/dist/client/copy/workbench/history.d.ts +3 -0
- package/dist/client/copy/workbench/history.js +5 -0
- package/dist/client/copy/workbench/schemaexport.d.ts +5 -0
- package/dist/client/copy/workbench/schemaexport.js +7 -0
- package/dist/client/copy/workbench/tour.d.ts +22 -0
- package/dist/client/copy/workbench/tour.js +24 -0
- package/dist/client/copy/workbench/views.d.ts +6 -0
- package/dist/client/copy/workbench/views.js +8 -0
- package/dist/client/core.d.ts +312 -0
- package/dist/client/core.js +1067 -0
- package/dist/client/customThemes.css +43 -0
- package/dist/client/dashboard.d.ts +16 -0
- package/dist/client/dashboard.js +35 -0
- package/dist/client/deeplink.d.ts +64 -0
- package/dist/client/deeplink.js +384 -0
- package/dist/client/delete.d.ts +8 -0
- package/dist/client/delete.js +35 -0
- package/dist/client/density.d.ts +8 -0
- package/dist/client/density.js +102 -0
- package/dist/client/devtoolsEventClient.d.ts +27 -0
- package/dist/client/devtoolsEventClient.js +32 -0
- package/dist/client/documents.d.ts +9 -0
- package/dist/client/documents.js +23 -0
- package/dist/client/dom.d.ts +36 -0
- package/dist/client/dom.js +232 -0
- package/dist/client/draftRecovery.d.ts +16 -0
- package/dist/client/draftRecovery.js +56 -0
- package/dist/client/export.d.ts +59 -0
- package/dist/client/export.js +217 -0
- package/dist/client/features.css +2187 -0
- package/dist/client/fieldErrors.d.ts +27 -0
- package/dist/client/fieldErrors.js +20 -0
- package/dist/client/fileSource.d.ts +10 -0
- package/dist/client/fileSource.js +115 -0
- package/dist/client/filterbar.d.ts +87 -0
- package/dist/client/filterbar.js +168 -0
- package/dist/client/firstPaint.d.ts +26 -0
- package/dist/client/firstPaint.js +102 -0
- package/dist/client/fonts/Barlow-OFL.txt +125 -0
- package/dist/client/fonts/IBMPlexMono-OFL.txt +104 -0
- package/dist/client/fonts/Inter-OFL.txt +92 -0
- package/dist/client/fonts/barlow-400.woff2 +0 -0
- package/dist/client/fonts/barlow-600.woff2 +0 -0
- package/dist/client/fonts/barlow-semi-condensed-700.woff2 +0 -0
- package/dist/client/fonts/ibm-plex-mono-400.woff2 +0 -0
- package/dist/client/fonts/ibm-plex-mono-500.woff2 +0 -0
- package/dist/client/fonts/inter-latin.woff2 +0 -0
- package/dist/client/formControls.css +5 -0
- package/dist/client/handoff.d.ts +47 -0
- package/dist/client/handoff.js +138 -0
- package/dist/client/help.css +151 -0
- package/dist/client/help.d.ts +20 -0
- package/dist/client/help.js +103 -0
- package/dist/client/helpContent.d.ts +95 -0
- package/dist/client/helpContent.js +661 -0
- package/dist/client/history.d.ts +10 -0
- package/dist/client/history.js +181 -0
- package/dist/client/historyToken.d.ts +18 -0
- package/dist/client/historyToken.js +27 -0
- package/dist/client/iconWeight.d.ts +16 -0
- package/dist/client/iconWeight.js +44 -0
- package/dist/client/index.html +244 -0
- package/dist/client/insert.d.ts +50 -0
- package/dist/client/insert.js +269 -0
- package/dist/client/kit.d.ts +7 -0
- package/dist/client/kit.js +1 -0
- package/dist/client/layoutDraftRecovery.d.ts +8 -0
- package/dist/client/layoutDraftRecovery.js +33 -0
- package/dist/client/ledgerLook.css +32 -0
- package/dist/client/liveReads.d.ts +23 -0
- package/dist/client/liveReads.js +38 -0
- package/dist/client/liveState.d.ts +94 -0
- package/dist/client/liveState.js +212 -0
- package/dist/client/locale.d.ts +141 -0
- package/dist/client/locale.js +0 -0
- package/dist/client/lumenLook.css +1867 -0
- package/dist/client/menu.d.ts +49 -0
- package/dist/client/menu.js +131 -0
- package/dist/client/menuScope.d.ts +6 -0
- package/dist/client/menuScope.js +4 -0
- package/dist/client/messages.d.ts +240 -0
- package/dist/client/messages.js +370 -0
- package/dist/client/motionStill.d.ts +1 -0
- package/dist/client/motionStill.js +17 -0
- package/dist/client/navigationHold.d.ts +37 -0
- package/dist/client/navigationHold.js +503 -0
- package/dist/client/nested.d.ts +8 -0
- package/dist/client/nested.js +26 -0
- package/dist/client/ownWrites.d.ts +33 -0
- package/dist/client/ownWrites.js +76 -0
- package/dist/client/page.css +4052 -0
- package/dist/client/page.d.ts +21 -0
- package/dist/client/page.js +187 -0
- package/dist/client/pagemarks.d.ts +32 -0
- package/dist/client/pagemarks.js +98 -0
- package/dist/client/palette.d.ts +35 -0
- package/dist/client/palette.js +357 -0
- package/dist/client/partsLook.css +1047 -0
- package/dist/client/peek.d.ts +11 -0
- package/dist/client/peek.js +51 -0
- package/dist/client/peekpanel.d.ts +26 -0
- package/dist/client/peekpanel.js +121 -0
- package/dist/client/pendingWork.d.ts +19 -0
- package/dist/client/pendingWork.js +36 -0
- package/dist/client/pins.d.ts +24 -0
- package/dist/client/pins.js +97 -0
- package/dist/client/prefs.d.ts +3 -0
- package/dist/client/prefs.js +32 -0
- package/dist/client/prompt.d.ts +27 -0
- package/dist/client/prompt.js +61 -0
- package/dist/client/readGathering.d.ts +4 -0
- package/dist/client/readGathering.js +23 -0
- package/dist/client/recordCompose.d.ts +11 -0
- package/dist/client/recordCompose.js +69 -0
- package/dist/client/recordDrafts.d.ts +40 -0
- package/dist/client/recordDrafts.js +57 -0
- package/dist/client/recordEditValidation.d.ts +12 -0
- package/dist/client/recordEditValidation.js +52 -0
- package/dist/client/recordIntent.d.ts +6 -0
- package/dist/client/recordIntent.js +15 -0
- package/dist/client/recordPress.d.ts +12 -0
- package/dist/client/recordPress.js +84 -0
- package/dist/client/recordSource.d.ts +6 -0
- package/dist/client/recordSource.js +15 -0
- package/dist/client/recordTrail.d.ts +77 -0
- package/dist/client/recordTrail.js +101 -0
- package/dist/client/recordWriteRefresh.d.ts +74 -0
- package/dist/client/recordWriteRefresh.js +284 -0
- package/dist/client/relatedRows.d.ts +4 -0
- package/dist/client/relatedRows.js +24 -0
- package/dist/client/requestIdentity.d.ts +36 -0
- package/dist/client/requestIdentity.js +97 -0
- package/dist/client/resourceRequests.d.ts +7 -0
- package/dist/client/resourceRequests.js +32 -0
- package/dist/client/roleLabels.d.ts +7 -0
- package/dist/client/roleLabels.js +24 -0
- package/dist/client/rowEditing.d.ts +15 -0
- package/dist/client/rowEditing.js +36 -0
- package/dist/client/sageLook.css +242 -0
- package/dist/client/savedPages.d.ts +15 -0
- package/dist/client/savedPages.js +123 -0
- package/dist/client/schemaexport.d.ts +14 -0
- package/dist/client/schemaexport.js +182 -0
- package/dist/client/sessionIdentity.d.ts +39 -0
- package/dist/client/sessionIdentity.js +255 -0
- package/dist/client/sessionLifecycle.d.ts +33 -0
- package/dist/client/sessionLifecycle.js +276 -0
- package/dist/client/shellHost.d.ts +70 -0
- package/dist/client/shellHost.js +92 -0
- package/dist/client/shellMain.d.ts +8 -0
- package/dist/client/shellMode.d.ts +433 -0
- package/dist/client/shellMode.js +68 -0
- package/dist/client/shellStart.d.ts +5 -0
- package/dist/client/shellStart.js +54 -0
- package/dist/client/shells.d.ts +123 -0
- package/dist/client/shells.js +1 -0
- package/dist/client/sql.css +139 -0
- package/dist/client/startup.d.ts +8 -0
- package/dist/client/startup.js +85 -0
- package/dist/client/startupHold.d.ts +10 -0
- package/dist/client/startupHold.js +73 -0
- package/dist/client/structure.css +1296 -0
- package/dist/client/style.css +3526 -0
- package/dist/client/styleImports.d.ts +3 -0
- package/dist/client/surfaces.d.ts +18 -0
- package/dist/client/surfaces.js +27 -0
- package/dist/client/surfacesLook.css +88 -0
- package/dist/client/template.d.ts +75 -0
- package/dist/client/template.js +403 -0
- package/dist/client/theme.d.ts +14 -0
- package/dist/client/theme.js +112 -0
- package/dist/client/themeFamilies.css +788 -0
- package/dist/client/thmenu.d.ts +12 -0
- package/dist/client/thmenu.js +94 -0
- package/dist/client/toast.d.ts +7 -0
- package/dist/client/toast.js +117 -0
- package/dist/client/tour.d.ts +8 -0
- package/dist/client/tour.js +176 -0
- package/dist/client/transport.d.ts +2 -0
- package/dist/client/transport.js +13 -0
- package/dist/client/typography.d.ts +4 -0
- package/dist/client/typography.js +51 -0
- package/dist/client/uiBridge.d.ts +57 -0
- package/dist/client/uiBridge.js +30 -0
- package/dist/client/updateAttempts.d.ts +46 -0
- package/dist/client/updateAttempts.js +131 -0
- package/dist/client/url.d.ts +74 -0
- package/dist/client/url.js +388 -0
- package/dist/client/views.d.ts +19 -0
- package/dist/client/views.js +133 -0
- package/dist/client/visualTheme.d.ts +62 -0
- package/dist/client/visualTheme.js +502 -0
- package/dist/client/visualThemes.css +421 -0
- package/dist/client/workshopLook.css +126 -0
- package/dist/client/write.d.ts +100 -0
- package/dist/client/write.js +882 -0
- package/dist/client/writePaths.d.ts +16 -0
- package/dist/client/writePaths.js +35 -0
- package/dist/client/yesNoRule.d.ts +12 -0
- package/dist/client/yesNoRule.js +39 -0
- package/dist/clientFiles.d.ts +11 -4
- package/dist/clientFiles.js +16 -12
- package/dist/vite.d.ts +136 -0
- package/dist/vite.js +571 -0
- package/package.json +130 -3
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
2
|
+
import { type CellDraw, type EditColumn } from './gridCellModel.js';
|
|
3
|
+
/**
|
|
4
|
+
* The control a record form draws for a column, over a text value (`null`
|
|
5
|
+
* for none). Shared by a cell and the selection's "Set field…".
|
|
6
|
+
*/
|
|
7
|
+
export declare function ValueControl(props: {
|
|
8
|
+
table: TableMeta;
|
|
9
|
+
column: EditColumn;
|
|
10
|
+
value: string | null;
|
|
11
|
+
onChange: (value: string | null) => void;
|
|
12
|
+
label: string;
|
|
13
|
+
id?: string;
|
|
14
|
+
row?: Record<string, unknown>;
|
|
15
|
+
/** The name of the reference `value` holds, where the caller already has it drawn. */
|
|
16
|
+
valueLabel?: string;
|
|
17
|
+
/** A reference's search text is not a value until one is chosen. */
|
|
18
|
+
onPickerState?: (state: {
|
|
19
|
+
unresolvedReference: boolean;
|
|
20
|
+
open: boolean;
|
|
21
|
+
}) => void;
|
|
22
|
+
describedBy?: string;
|
|
23
|
+
invalid?: boolean;
|
|
24
|
+
}): import("react").JSX.Element;
|
|
25
|
+
export declare function GridCellEdit({ table, row, column, recordKey, draw, byName, valueLabel, }: {
|
|
26
|
+
table: TableMeta;
|
|
27
|
+
row: Record<string, unknown>;
|
|
28
|
+
column: EditColumn;
|
|
29
|
+
recordKey: Record<string, unknown>;
|
|
30
|
+
draw: CellDraw;
|
|
31
|
+
/** The cell draws the reference's record by name (`owner_id.name`), not the key it holds. */
|
|
32
|
+
byName?: boolean;
|
|
33
|
+
/** The stored reference's name as the cell draws it: the picker opens on it, never on the bare key. */
|
|
34
|
+
valueLabel?: string;
|
|
35
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A grid's cell edited in place, for a list view that says `editable`.
|
|
4
|
+
*
|
|
5
|
+
* A spreadsheet's contract, on the record form's rules. Enter or F2 on the
|
|
6
|
+
* cell (or a click on it) opens its editor; Enter saves, Esc puts the value
|
|
7
|
+
* back, Tab saves and moves to the row's next editable cell, and leaving the
|
|
8
|
+
* cell saves. The editor is the one a record form draws for the column: a
|
|
9
|
+
* picker for a reference, a list for a vocabulary or a flag, the calendar for
|
|
10
|
+
* a date, a box for the rest.
|
|
11
|
+
*
|
|
12
|
+
* The save is the record form's own request — `/api/update` with the one
|
|
13
|
+
* value and what it replaces as `expected` — so the server judges it as it
|
|
14
|
+
* judges a Save: the reader's grants on the resource and the field, the
|
|
15
|
+
* row policy and tenancy, the resource's validation, its transitions and
|
|
16
|
+
* stamps, and history. Nothing here is a permission; a cell is offered only
|
|
17
|
+
* where that request could succeed.
|
|
18
|
+
*
|
|
19
|
+
* Optimistic, as the board's and the hand order's moves are: the new value
|
|
20
|
+
* is drawn at once, and a refusal puts the stored one back and says why in
|
|
21
|
+
* the same toast those lists use. An unconfirmed write stays drawn and is
|
|
22
|
+
* said as unconfirmed, because the record may hold it. A write that lands
|
|
23
|
+
* offers Undo beside its confirmation, as the Workbench's save does.
|
|
24
|
+
*
|
|
25
|
+
* Not the record form's staged draft: that holds one record's several fields
|
|
26
|
+
* until Save, and a grid's cell is one field saved when it is left. Keeping
|
|
27
|
+
* them apart means a half-typed record form on another tab of the walk is
|
|
28
|
+
* never saved by a cell.
|
|
29
|
+
*/
|
|
30
|
+
import { useEffect, useId, useLayoutEffect, useRef, useState } from 'react';
|
|
31
|
+
import { useQueryClient } from '@tanstack/react-query';
|
|
32
|
+
import { api, columnDisplay, columnLabel, findTable, state, toast } from '../core.js';
|
|
33
|
+
import { ownedBy } from '../requestIdentity.js';
|
|
34
|
+
import { columnKind } from '@mistriwork/engine/shared/schema.js';
|
|
35
|
+
import { humanName, vocabularyWord } from '@mistriwork/engine/shared/model.js';
|
|
36
|
+
import { booleanChoices, canEditRow } from '../rowEditing.js';
|
|
37
|
+
import { updateAttempts } from '../updateAttempts.js';
|
|
38
|
+
import { recordKey as wireKey } from '../resourceRequests.js';
|
|
39
|
+
import { validateRecordEdits } from '../recordEditValidation.js';
|
|
40
|
+
import { shell } from '../shellMode.js';
|
|
41
|
+
import { sessionIdentity } from '../sessionIdentity.js';
|
|
42
|
+
import { defaultCurrency, formatLocale, formatTimezone } from '../locale.js';
|
|
43
|
+
import { rowCurrency } from '@mistriwork/engine/shared/money.js';
|
|
44
|
+
import { MinorMoneyInput } from './MinorMoneyInput.js';
|
|
45
|
+
import { Dropdown } from './Dropdown.js';
|
|
46
|
+
import { RecordPicker } from './RecordPicker.js';
|
|
47
|
+
import { DateField } from './DateField.js';
|
|
48
|
+
import { booleanWords } from './valueModel.js';
|
|
49
|
+
import { singleReference } from './gridCellModel.js';
|
|
50
|
+
import { InputSlot, columnInput } from './inputRenderers.js';
|
|
51
|
+
import { say } from '../copy/lists/components/GridCellEditor.js';
|
|
52
|
+
const said = (value) => (value === null || value === undefined ? null : String(value));
|
|
53
|
+
/**
|
|
54
|
+
* The control a record form draws for a column, over a text value (`null`
|
|
55
|
+
* for none). Shared by a cell and the selection's "Set field…".
|
|
56
|
+
*/
|
|
57
|
+
export function ValueControl(props) {
|
|
58
|
+
const inputId = useId();
|
|
59
|
+
/* The App's own input for this column, where it names one (`resources.<name>.inputs`): the
|
|
60
|
+
editor still keeps, checks and saves the value it hands back, as text like every control here. */
|
|
61
|
+
const custom = columnInput(props.table.id, props.column.name);
|
|
62
|
+
if (!custom)
|
|
63
|
+
return _jsx(PlatformControl, { ...props });
|
|
64
|
+
return (_jsx(InputSlot, { component: custom, fallback: _jsx(PlatformControl, { ...props }), value: props.value, onChange: (next) => props.onChange(next === null || next === '' ? (props.column.nullable ? null : '') : String(next)), id: props.id ?? inputId, describedBy: props.describedBy, invalid: props.invalid === true, disabled: false, required: props.column.nullable === false, label: props.label, field: { name: props.column.name, resource: props.table.id }, context: "edit" }));
|
|
65
|
+
}
|
|
66
|
+
function PlatformControl({ table, column, value, onChange, label, id, row, onPickerState, describedBy, invalid, valueLabel, }) {
|
|
67
|
+
const dateId = useId();
|
|
68
|
+
const change = (next) => onChange(next === '' && column.nullable ? null : next);
|
|
69
|
+
const target = column.references && singleReference(table, column) ? findTable(column.references.table) : undefined;
|
|
70
|
+
if (target) {
|
|
71
|
+
return (_jsx(RecordPicker, { table: target, valueColumn: column.references.column, value: value ?? '', onChange: change, ariaLabel: label, app: true, ...(valueLabel && value ? { known: { value, label: valueLabel } } : {}), editing: { onStateChange: (next) => onPickerState?.(next) } }));
|
|
72
|
+
}
|
|
73
|
+
const choices = booleanChoices(column, row);
|
|
74
|
+
if (column.allowed?.length || choices) {
|
|
75
|
+
const words = choices ? booleanWords(columnDisplay(table.id, column.name), choices) : {};
|
|
76
|
+
const items = column.allowed?.length
|
|
77
|
+
? column.allowed.map((v) => ({ value: v, label: vocabularyWord(v) || humanName(v) }))
|
|
78
|
+
: [
|
|
79
|
+
{ value: choices.yes, label: words.yes ?? say('common.yes') },
|
|
80
|
+
{ value: choices.no, label: words.no ?? say('common.no') },
|
|
81
|
+
];
|
|
82
|
+
if (value !== null && !items.some((item) => item.value === value))
|
|
83
|
+
items.unshift({ value, label: value });
|
|
84
|
+
return (_jsx(Dropdown, { ariaLabel: label, id: id, value: value ?? '', ariaInvalid: invalid, ariaDescribedBy: describedBy, items: [...(column.nullable ? [{ value: '', label: say('common.noValue') }] : []), ...items], onChange: change }));
|
|
85
|
+
}
|
|
86
|
+
if (columnKind(column.type) === 'date' && !/time/i.test(column.type)) {
|
|
87
|
+
return (_jsx(DateField, { id: id ?? dateId, value: value ?? '', onChange: change, "aria-label": label, "aria-invalid": invalid || undefined, "aria-describedby": describedBy, locale: formatLocale(), timezone: formatTimezone() }));
|
|
88
|
+
}
|
|
89
|
+
/* Money kept as minor units is typed as the figure it is ("19.99") and held as what is stored (1999). */
|
|
90
|
+
const rule = columnDisplay(table.id, column.name);
|
|
91
|
+
if (rule?.format === 'money' && rule.minor)
|
|
92
|
+
return (_jsx(MinorMoneyInput, { value: value ?? '', currency: rowCurrency(rule, row, rule.currency || defaultCurrency()), onChange: change, children: (text, typed) => (_jsx("input", { id: id, type: "text", inputMode: "decimal", className: "cell-edit", "aria-label": label, "aria-invalid": invalid || undefined, "aria-describedby": describedBy, value: text, "data-null": String(value === null), onChange: (event) => typed(event.target.value) })) }));
|
|
93
|
+
return (_jsx("input", { id: id, type: "text", className: "cell-edit", "aria-label": label, "aria-invalid": invalid || undefined, "aria-describedby": describedBy, value: value ?? '', "data-null": String(value === null), onChange: (event) => change(event.target.value), title: column.allowed?.length ? say('one', { allowed: column.allowed.join(', ') }) : undefined }));
|
|
94
|
+
}
|
|
95
|
+
/** The row's next (or previous) editable cell after this one, opened. */
|
|
96
|
+
function openNeighbor(from, backward) {
|
|
97
|
+
const cell = from?.closest('td');
|
|
98
|
+
const row = cell?.closest('tr');
|
|
99
|
+
if (!cell || !row)
|
|
100
|
+
return false;
|
|
101
|
+
const cells = [...row.querySelectorAll(':scope > td.cell-editable')];
|
|
102
|
+
const next = cells[cells.indexOf(cell) + (backward ? -1 : 1)];
|
|
103
|
+
next?.querySelector('[data-cell-edits]')?.click();
|
|
104
|
+
return Boolean(next);
|
|
105
|
+
}
|
|
106
|
+
export function GridCellEdit({ table, row, column, recordKey, draw, byName = false, valueLabel, }) {
|
|
107
|
+
const client = useQueryClient();
|
|
108
|
+
const errorId = useId();
|
|
109
|
+
const label = columnLabel(table.id, column.name) ?? humanName(column.name);
|
|
110
|
+
const stored = said(row[column.name]);
|
|
111
|
+
const [editing, setEditing] = useState(false);
|
|
112
|
+
const [draft, setDraft] = useState(stored);
|
|
113
|
+
const [problem, setProblem] = useState('');
|
|
114
|
+
/* What the reader saved, drawn until the list's own answer carries it. */
|
|
115
|
+
const [shown, setShown] = useState(null);
|
|
116
|
+
const surface = useRef(null);
|
|
117
|
+
const launcher = useRef(null);
|
|
118
|
+
const unresolved = useRef(false);
|
|
119
|
+
const pickerOpen = useRef(false);
|
|
120
|
+
/* Where focus goes once the editor closes: back to the cell, unless Tab sent it on. */
|
|
121
|
+
const refocus = useRef(false);
|
|
122
|
+
const alive = useRef(true);
|
|
123
|
+
useEffect(() => {
|
|
124
|
+
alive.current = true;
|
|
125
|
+
return () => {
|
|
126
|
+
alive.current = false;
|
|
127
|
+
};
|
|
128
|
+
}, []);
|
|
129
|
+
// A refetch that carries a new stored value is the answer; the optimistic drawing yields to it.
|
|
130
|
+
useEffect(() => {
|
|
131
|
+
if (shown && shown.from !== row[column.name])
|
|
132
|
+
setShown(null);
|
|
133
|
+
}, [row, column.name, shown]);
|
|
134
|
+
useLayoutEffect(() => {
|
|
135
|
+
if (!editing) {
|
|
136
|
+
if (refocus.current) {
|
|
137
|
+
refocus.current = false;
|
|
138
|
+
launcher.current?.closest('td')?.focus();
|
|
139
|
+
}
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
const node = surface.current;
|
|
143
|
+
node?.querySelector('input, .dd-button, button')?.focus();
|
|
144
|
+
}, [editing]);
|
|
145
|
+
const open = () => {
|
|
146
|
+
if (!canEditRow(table, recordKey) ||
|
|
147
|
+
updateAttempts.get({ connection: state.activeConnection ?? null, table: table.id, key: recordKey }))
|
|
148
|
+
return;
|
|
149
|
+
setDraft(said(shown ? shown.value : row[column.name]));
|
|
150
|
+
setProblem('');
|
|
151
|
+
unresolved.current = false;
|
|
152
|
+
setEditing(true);
|
|
153
|
+
};
|
|
154
|
+
const close = (focusCell) => {
|
|
155
|
+
refocus.current = focusCell;
|
|
156
|
+
setProblem('');
|
|
157
|
+
setEditing(false);
|
|
158
|
+
};
|
|
159
|
+
/** Close the editor and send the value; false while the value is not one to send (the editor stays, saying why). */
|
|
160
|
+
const commit = (value, focusCell, labelText) => {
|
|
161
|
+
const original = shown ? said(shown.value) : stored;
|
|
162
|
+
if (value === original) {
|
|
163
|
+
close(focusCell);
|
|
164
|
+
return true;
|
|
165
|
+
}
|
|
166
|
+
const values = { [column.name]: value };
|
|
167
|
+
const refused = validateRecordEdits(table, values, unresolved.current ? { [column.name]: { unresolvedReference: true } } : {});
|
|
168
|
+
if (refused[column.name]) {
|
|
169
|
+
setProblem(refused[column.name]);
|
|
170
|
+
return false;
|
|
171
|
+
}
|
|
172
|
+
let key;
|
|
173
|
+
try {
|
|
174
|
+
key = wireKey(recordKey);
|
|
175
|
+
}
|
|
176
|
+
catch (error) {
|
|
177
|
+
setProblem(error.message);
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
if (!canEditRow(table, recordKey)) {
|
|
181
|
+
close(focusCell);
|
|
182
|
+
return true;
|
|
183
|
+
}
|
|
184
|
+
// Drawn at once; put back below if the server says no.
|
|
185
|
+
setShown({ value, label: labelText, from: row[column.name] });
|
|
186
|
+
close(focusCell);
|
|
187
|
+
void send(values, original, key);
|
|
188
|
+
return true;
|
|
189
|
+
};
|
|
190
|
+
const send = async (values, original, key) => {
|
|
191
|
+
const connection = state.activeConnection ?? null;
|
|
192
|
+
const identity = sessionIdentity();
|
|
193
|
+
const outcome = await updateAttempts.run({ connection, table: table.id, key: recordKey }, values, () => api('/api/update', { ...ownedBy(connection), table: table.id, key, values, expected: { [column.name]: original } }));
|
|
194
|
+
if (identity !== sessionIdentity())
|
|
195
|
+
return;
|
|
196
|
+
if (outcome.kind === 'applied') {
|
|
197
|
+
void shell().undo.refresh();
|
|
198
|
+
void client.invalidateQueries({ queryKey: ['run', connection] });
|
|
199
|
+
void client.invalidateQueries({ queryKey: ['count', connection] });
|
|
200
|
+
toast(say('saved', { label }), 'ok', !identity.tenantRequired && outcome.undoId
|
|
201
|
+
? {
|
|
202
|
+
label: say('common.undo'),
|
|
203
|
+
run: () => {
|
|
204
|
+
if (identity === sessionIdentity() && connection === (state.activeConnection ?? null))
|
|
205
|
+
void shell().undo.last(outcome.undoId);
|
|
206
|
+
},
|
|
207
|
+
}
|
|
208
|
+
: undefined);
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
// A refusal is the stored value's to keep; an unconfirmed write may have landed, so it stays drawn.
|
|
212
|
+
if (outcome.kind !== 'uncertain' && alive.current)
|
|
213
|
+
setShown(null);
|
|
214
|
+
toast(outcome.message, 'error');
|
|
215
|
+
};
|
|
216
|
+
const pickedLabel = () => (column.references ? surface.current?.querySelector('input')?.value : undefined);
|
|
217
|
+
const onKey = (event) => {
|
|
218
|
+
if (event.key === 'Escape') {
|
|
219
|
+
// A picker or a list closes its own popup first; the next Escape puts the value back.
|
|
220
|
+
if (pickerOpen.current || event.target.closest('[aria-expanded="true"]'))
|
|
221
|
+
return;
|
|
222
|
+
event.preventDefault();
|
|
223
|
+
event.stopPropagation();
|
|
224
|
+
close(true);
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
if (event.key === 'Enter' && event.target instanceof HTMLInputElement && !pickerOpen.current) {
|
|
228
|
+
event.preventDefault();
|
|
229
|
+
event.stopPropagation();
|
|
230
|
+
commit(draft, true, pickedLabel());
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
if (event.key === 'Tab') {
|
|
234
|
+
event.preventDefault();
|
|
235
|
+
event.stopPropagation();
|
|
236
|
+
const cell = surface.current?.closest('td');
|
|
237
|
+
const backward = event.shiftKey;
|
|
238
|
+
// Moving on is the save; a value that cannot be sent keeps the reader here.
|
|
239
|
+
if (commit(draft, false, pickedLabel())) {
|
|
240
|
+
requestAnimationFrame(() => {
|
|
241
|
+
if (!openNeighbor(cell, backward))
|
|
242
|
+
cell?.focus();
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
/* Leaving the cell saves it, as a spreadsheet's does. A popup the editor
|
|
248
|
+
opened (a picker's list, a calendar) is still the editor. */
|
|
249
|
+
const onBlur = () => {
|
|
250
|
+
requestAnimationFrame(() => {
|
|
251
|
+
const node = surface.current;
|
|
252
|
+
const active = document.activeElement;
|
|
253
|
+
if (!alive.current || !node || !editing)
|
|
254
|
+
return;
|
|
255
|
+
if (active && (node.contains(active) || active.closest('[role="listbox"], [role="dialog"], .dd-popup, .date-field-popup')))
|
|
256
|
+
return;
|
|
257
|
+
void commit(draft, false, pickedLabel());
|
|
258
|
+
});
|
|
259
|
+
};
|
|
260
|
+
if (!editing) {
|
|
261
|
+
const body = !shown
|
|
262
|
+
? draw()
|
|
263
|
+
: byName
|
|
264
|
+
? draw({ value: shown.value === null ? null : (shown.label ?? shown.value) })
|
|
265
|
+
: draw({ value: shown.value, label: shown.label });
|
|
266
|
+
/* The cell's value is the button: a click edits it rather than opening
|
|
267
|
+
the row, and the grid's Enter and F2 press it (useGridKeyboard). */
|
|
268
|
+
return (_jsx("button", { ref: launcher, type: "button", className: "cell-edit-launch", "aria-label": say('edit', { label }), "data-cell-opens": "", "data-cell-edits": "", onClick: (event) => {
|
|
269
|
+
event.stopPropagation();
|
|
270
|
+
open();
|
|
271
|
+
}, children: body }));
|
|
272
|
+
}
|
|
273
|
+
const change = (next) => {
|
|
274
|
+
setDraft(next);
|
|
275
|
+
setProblem('');
|
|
276
|
+
/* Choosing from a list or a picker is the whole edit: nothing left to
|
|
277
|
+
type. A picker reports a choice as its value; a cleared one waits for
|
|
278
|
+
Enter, since clearing may be the start of a new search. */
|
|
279
|
+
if (column.references && next !== null && next !== '')
|
|
280
|
+
unresolved.current = false;
|
|
281
|
+
if (column.references ? next !== null && next !== '' : Boolean(column.allowed?.length || booleanChoices(column, row))) {
|
|
282
|
+
requestAnimationFrame(() => {
|
|
283
|
+
void commit(next, true, pickedLabel());
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
return (_jsxs("div", { ref: surface, className: "cell-edit-surface", "data-edit-field": "", onKeyDownCapture: onKey, onBlur: onBlur, onClick: (event) => event.stopPropagation(), onMouseDown: (event) => event.stopPropagation(), children: [_jsx(ValueControl, { table: table, column: column, value: draft, onChange: change, label: label, row: row, valueLabel: shown ? (typeof shown.label === 'string' ? shown.label : undefined) : valueLabel, describedBy: problem ? errorId : undefined, invalid: Boolean(problem), onPickerState: (next) => {
|
|
288
|
+
unresolved.current = next.unresolvedReference;
|
|
289
|
+
pickerOpen.current = next.open;
|
|
290
|
+
} }), problem && (_jsx("span", { id: errorId, className: "edit-field-error", role: "alert", children: problem }))] }));
|
|
291
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The queue's selection on a grid: a checkbox in each row's leading cell —
|
|
3
|
+
* the row host, so the grid is not told about it — one in the header row's
|
|
4
|
+
* for every row at once, and the same bulk bar, the same keys and the same
|
|
5
|
+
* per-record writes as a queue over the resource.
|
|
6
|
+
*/
|
|
7
|
+
import type { TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
8
|
+
import type { AppAction } from '@mistriwork/engine/schema/model.js';
|
|
9
|
+
export declare function GridSelection({ table, rows, actions, interactive, editable, }: {
|
|
10
|
+
table: TableMeta;
|
|
11
|
+
rows: Array<Record<string, unknown>>;
|
|
12
|
+
actions: AppAction[];
|
|
13
|
+
interactive: boolean;
|
|
14
|
+
/** The list's editable columns: the selection offers "Set field…" over them. */
|
|
15
|
+
editable?: readonly string[];
|
|
16
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { keyOf, rowLabel } from '../core.js';
|
|
3
|
+
import { shell } from '../shellMode.js';
|
|
4
|
+
import { bulkKey } from '../bulkActions.js';
|
|
5
|
+
import { resourceOf } from './appRooms.js';
|
|
6
|
+
import { RowDecoration, RowHeadDecoration } from './RowHost.js';
|
|
7
|
+
import { useBulkSelection } from './useBulkSelection.js';
|
|
8
|
+
import { say } from '../copy/lists/components/GridSelection.js';
|
|
9
|
+
export function GridSelection({ table, rows, actions, interactive, editable = [], }) {
|
|
10
|
+
const keyed = rows.flatMap((row) => {
|
|
11
|
+
const key = keyOf(table, row);
|
|
12
|
+
return key ? [{ id: bulkKey(table, key), key, label: String(rowLabel(table, row) ?? say('common.untitled')), row }] : [];
|
|
13
|
+
});
|
|
14
|
+
const { offered, selection, change, bar, dialogs } = useBulkSelection({ table, keyed, actions, interactive, editable });
|
|
15
|
+
if (!offered)
|
|
16
|
+
return null;
|
|
17
|
+
const chosen = new Set(selection);
|
|
18
|
+
const every = keyed.length > 0 && selection.length === keyed.length;
|
|
19
|
+
const partly = selection.length > 0 && !every;
|
|
20
|
+
/* The box every table has in its header row: no label and no count, since
|
|
21
|
+
the column says what it is. Its name says what "all" takes — the rows
|
|
22
|
+
loaded here, as before — in the resource's own word where it has one. */
|
|
23
|
+
const noun = resourceOf(shell().app(), table.id)?.noun?.many ?? 'rows';
|
|
24
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "grid-select-bar", children: bar }), keyed.length > 0 && (_jsx(RowHeadDecoration, { children: _jsx("input", { type: "checkbox", className: "row-select", "aria-label": say('selectAll', { noun }), checked: every, ref: (box) => {
|
|
25
|
+
if (box)
|
|
26
|
+
box.indeterminate = partly;
|
|
27
|
+
}, onChange: () => change(every ? [] : keyed.map((record) => record.id)) }) })), keyed.map((record) => (_jsx(RowDecoration, { rowKey: record.id, children: _jsx("input", { type: "checkbox", className: "row-select", "aria-label": say('select', { label: record.label }), checked: chosen.has(record.id), onClick: (event) => event.stopPropagation(), onChange: (event) => change(event.target.checked ? [...selection, record.id] : selection.filter((id) => id !== record.id)) }) }, record.id))), dialogs] }));
|
|
28
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The query language, written down inside the tool that speaks it:
|
|
4
|
+
* grammar on the left and working examples on the right, every example
|
|
5
|
+
* built from the *connected* schema so clicking one returns rows. The
|
|
6
|
+
* generator (`buildExamples`), the sections' text and the sample fetch
|
|
7
|
+
* stay in `helpContent.js`; this is the panel.
|
|
8
|
+
*
|
|
9
|
+
* The keys for the room the reader is in come first, marked as this page's;
|
|
10
|
+
* an App's reader gets the keys alone (`keysOnly`), with no query language
|
|
11
|
+
* to learn and no examples to fetch.
|
|
12
|
+
*/
|
|
13
|
+
import { useEffect, useRef, useState } from 'react';
|
|
14
|
+
import { currentEntry, state, trapFocus } from '../core.js';
|
|
15
|
+
import { SECTIONS, buildExamples, runExample, sampleRows } from '../helpContent.js';
|
|
16
|
+
import { say } from '../copy/workbench/components/HelpPanel.js';
|
|
17
|
+
import '../help.css';
|
|
18
|
+
import { addHostListener, removeHostListener } from '../shellHost.js';
|
|
19
|
+
/**
|
|
20
|
+
* Draw with what is known now, then again when the sample arrives. The
|
|
21
|
+
* first pass is a complete set of examples that all run, built from the
|
|
22
|
+
* schema alone; the second only makes them better. Keys alone need neither.
|
|
23
|
+
*/
|
|
24
|
+
function useExamples(enabled) {
|
|
25
|
+
const schema = state.schema;
|
|
26
|
+
const [built, setBuilt] = useState(() => (enabled ? buildExamples(schema, {}) : { examples: {} }));
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (!enabled)
|
|
29
|
+
return;
|
|
30
|
+
const first = buildExamples(schema, {});
|
|
31
|
+
setBuilt(first);
|
|
32
|
+
if (!first.sampleTable)
|
|
33
|
+
return;
|
|
34
|
+
let live = true;
|
|
35
|
+
void sampleRows(first.sampleTable).then((rows) => {
|
|
36
|
+
/* The connection can change while the request is in flight; rows from the database you have just left must not land beside this schema's names. */
|
|
37
|
+
if (!live || !rows.length || state.schema !== schema)
|
|
38
|
+
return;
|
|
39
|
+
setBuilt(buildExamples(schema, { [first.sampleTable]: rows }));
|
|
40
|
+
});
|
|
41
|
+
return () => {
|
|
42
|
+
live = false;
|
|
43
|
+
};
|
|
44
|
+
}, [schema, enabled]);
|
|
45
|
+
return built;
|
|
46
|
+
}
|
|
47
|
+
export function HelpPanel({ onClose, keysOnly = false }) {
|
|
48
|
+
const backdrop = useRef(null);
|
|
49
|
+
const close = useRef(null);
|
|
50
|
+
const built = useExamples(!keysOnly);
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
const release = trapFocus(backdrop.current);
|
|
53
|
+
close.current?.focus();
|
|
54
|
+
return () => release?.();
|
|
55
|
+
}, []);
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
const onKey = (e) => {
|
|
58
|
+
if (e.key === 'Escape' || e.key === '?') {
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
e.stopPropagation();
|
|
61
|
+
onClose();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
/* The panel swallows the single-key shortcuts underneath it; modified keys are left alone so ⌘K and ⌘B still work from here. */
|
|
65
|
+
if (e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey)
|
|
66
|
+
e.stopPropagation();
|
|
67
|
+
};
|
|
68
|
+
addHostListener(document, 'keydown', onKey, true);
|
|
69
|
+
return () => removeHostListener(document, 'keydown', onKey, true);
|
|
70
|
+
}, [onClose]);
|
|
71
|
+
const label = state.schema?.label ?? say('thisDatabase');
|
|
72
|
+
/* The room the panel was opened over: its keys first, the rest in their order. */
|
|
73
|
+
const here = currentEntry()?.kind;
|
|
74
|
+
const offered = SECTIONS.filter((spec) => !keysOnly || spec.app);
|
|
75
|
+
const ordered = [
|
|
76
|
+
...offered.filter((spec) => here && spec.rooms?.includes(here)),
|
|
77
|
+
...offered.filter((spec) => !(here && spec.rooms?.includes(here))),
|
|
78
|
+
];
|
|
79
|
+
const title = keysOnly ? say('keyboard') : say('queryLanguage');
|
|
80
|
+
return (_jsx("div", { ref: backdrop, className: "help-backdrop", onPointerDown: (e) => {
|
|
81
|
+
if (e.target === e.currentTarget)
|
|
82
|
+
onClose();
|
|
83
|
+
}, children: _jsxs("div", { className: "help-panel", role: "dialog", "aria-modal": "true", "aria-label": title, children: [_jsxs("header", { className: "help-head", children: [_jsxs("div", { children: [_jsx("h2", { className: "help-title", children: title }), _jsx("p", { className: "help-sub", children: keysOnly ? say('theKeysThisPage') : say('everyExampleBelowRuns', { label }) })] }), _jsx("button", { ref: close, type: "button", className: "help-close", "aria-label": say('common.close'), title: say('closeParenEsc'), onClick: onClose, children: _jsx("span", { "aria-hidden": "true", children: "\u00D7" }) })] }), _jsx("div", { className: "help-body", children: ordered.map((spec) => (_jsx(Section, { spec: spec, examples: built.examples, onRun: onClose, here: Boolean(here && spec.rooms?.includes(here)) }, spec.title))) })] }) }));
|
|
84
|
+
}
|
|
85
|
+
function Section({ spec, examples, onRun, here, }) {
|
|
86
|
+
/* A section with no `keys` is static reference and must not reach for examples it never claimed. */
|
|
87
|
+
const found = (spec.keys ?? []).map((key) => examples[key]).filter(Boolean);
|
|
88
|
+
return (_jsxs("section", { className: `help-section${here ? ' is-here' : ''}`, children: [_jsxs("h3", { className: "help-section-title", children: [spec.title, here && _jsxs("span", { className: "help-here", children: [" ", say('thisPage')] })] }), _jsx("p", { className: "help-note", children: spec.note }), _jsx("dl", { className: "help-grammar", children: spec.grammar.map(([syntax, meaning]) => (_jsxs("div", { children: [_jsx("dt", { children: _jsx("code", { children: syntax }) }), _jsx("dd", { children: meaning })] }, syntax))) }), found.length ? (_jsx("div", { className: "help-examples", children: found.map((example) => (_jsxs("button", { type: "button", className: "help-example", title: say('runThisQuery'), onClick: () => {
|
|
89
|
+
onRun();
|
|
90
|
+
runExample(example.query);
|
|
91
|
+
}, children: [_jsx("code", { className: "help-query", children: example.query }), _jsx("span", { className: "help-caption", children: example.caption })] }, example.query))) })) : spec.absent ? (_jsx("p", { className: "help-absent", children: spec.absent })) : null] }));
|
|
92
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The query history panel: what ran, how long ago, and one button to
|
|
4
|
+
* forget it all. The store, the ↑/↓ stepping and the panel's open state
|
|
5
|
+
* stay in `history.js`, which draws this into the panel it owns.
|
|
6
|
+
*/
|
|
7
|
+
import { say } from '../copy/workbench/components/History.js';
|
|
8
|
+
function ago(at) {
|
|
9
|
+
const seconds = Math.max(0, Math.round((Date.now() - at) / 1000));
|
|
10
|
+
if (seconds < 60)
|
|
11
|
+
return say('justNow');
|
|
12
|
+
if (seconds < 3600)
|
|
13
|
+
return say('minutesAgo', { minutes: Math.round(seconds / 60) });
|
|
14
|
+
if (seconds < 86400)
|
|
15
|
+
return say('hoursAgo', { hours: Math.round(seconds / 3600) });
|
|
16
|
+
return say('daysAgo', { days: Math.round(seconds / 86400) });
|
|
17
|
+
}
|
|
18
|
+
export function HistoryPanel({ entries, onRun, onClear }) {
|
|
19
|
+
if (!entries.length)
|
|
20
|
+
return _jsx("p", { className: "history-empty", children: say('nothingYetQueriesAppear') });
|
|
21
|
+
return (_jsxs(_Fragment, { children: [_jsx("ul", { className: "history-list", children: entries.map((entry) => (_jsx("li", { children: _jsxs("button", { type: "button", className: "history-item", onClick: () => onRun(entry.q), children: [_jsx("span", { className: "history-q", children: entry.q }), _jsx("span", { className: "history-age", children: ago(entry.at ?? Date.now()) })] }) }, entry.q))) }), _jsx("button", { type: "button", className: "history-clear", onClick: onClear, children: say('clearQueries', { count: entries.length }) })] }));
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An icon: a Phosphor glyph (Phosphor Icons, MIT), drawn from path data by
|
|
3
|
+
* @mistriwork/ui's Icon with the glyphs this module lends it.
|
|
4
|
+
*
|
|
5
|
+
* The glyphs are data rather than one component per icon
|
|
6
|
+
* (scripts/generate-icons.mjs says why): each of `@phosphor-icons/react`'s
|
|
7
|
+
* modules carried six weights to draw one, and all 69 of them sat in every
|
|
8
|
+
* first page. Two kinds are known here:
|
|
9
|
+
*
|
|
10
|
+
* - the chrome's own few (chromeIcons.ts) — a caret, the menu, the gear —
|
|
11
|
+
* bundled, because every page draws some of them;
|
|
12
|
+
* - an App's, which the server sends with whatever names them (the App
|
|
13
|
+
* payload, a look before sign-in) and `registerIcons` adds. An App uses
|
|
14
|
+
* a handful of the 65 it may name, and the payload carries just those.
|
|
15
|
+
*
|
|
16
|
+
* A name asked for before its glyph is known loads the whole App set once,
|
|
17
|
+
* on demand, and every icon waiting on it draws when it lands; the icon
|
|
18
|
+
* keeps its box meanwhile, so nothing moves.
|
|
19
|
+
*/
|
|
20
|
+
import type { JSX } from 'react';
|
|
21
|
+
import type { AppIconName } from '@mistriwork/engine/shared/appIcons.js';
|
|
22
|
+
import { registerIcons, type IconProps, type IconWeight } from '@mistriwork/ui/Icon.js';
|
|
23
|
+
import { CHROME_ICON_GLYPHS } from './chromeIcons.js';
|
|
24
|
+
export type IconName = keyof typeof CHROME_ICON_GLYPHS | AppIconName;
|
|
25
|
+
export { registerIcons, type IconWeight };
|
|
26
|
+
/** While an App is being written (`mistri dev`, grade), a name that names no icon is said once in the console with
|
|
27
|
+
the nearest one (unknownIcon.ts, loaded only then) and drawn as a house, so the miss is seen; served, it keeps
|
|
28
|
+
its empty box. A typed name cannot miss: a custom component's or a free-form page's string can. */
|
|
29
|
+
export declare function sayUnknownIcons(authoring: () => boolean): void;
|
|
30
|
+
/** An icon the kit knows by name: the chrome's, and the 65 an App may name. */
|
|
31
|
+
export declare const Icon: (props: IconProps<IconName>) => JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Icon as Drawn, loadIconsWith, onUnknownIcon, registerIcons, weighIconsWith, } from '@mistriwork/ui/Icon.js';
|
|
2
|
+
import { CHROME_ICON_GLYPHS } from './chromeIcons.js';
|
|
3
|
+
import { iconWeight, iconWeightVersion, subscribeIconWeight, weightedDrawing } from '../iconWeight.js';
|
|
4
|
+
export { registerIcons };
|
|
5
|
+
registerIcons(CHROME_ICON_GLYPHS);
|
|
6
|
+
loadIconsWith(() => import('@mistriwork/engine/shared/iconGlyphs.js').then((module) => module.APP_ICON_GLYPHS));
|
|
7
|
+
weighIconsWith({ weight: iconWeight, drawing: weightedDrawing, subscribe: subscribeIconWeight, version: iconWeightVersion });
|
|
8
|
+
/** While an App is being written (`mistri dev`, grade), a name that names no icon is said once in the console with
|
|
9
|
+
the nearest one (unknownIcon.ts, loaded only then) and drawn as a house, so the miss is seen; served, it keeps
|
|
10
|
+
its empty box. A typed name cannot miss: a custom component's or a free-form page's string can. */
|
|
11
|
+
export function sayUnknownIcons(authoring) {
|
|
12
|
+
onUnknownIcon((name, names) => {
|
|
13
|
+
if (!authoring())
|
|
14
|
+
return undefined;
|
|
15
|
+
void import('./unknownIcon.js').then((said) => said.sayUnknownIcon(name, names));
|
|
16
|
+
return 'house';
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/** An icon the kit knows by name: the chrome's, and the 65 an App may name. */
|
|
20
|
+
export const Icon = Drawn;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A JSON document in a grid cell: one line that says its shape, and the
|
|
4
|
+
* whole document laid out in an overlay, on a click or on Enter.
|
|
5
|
+
*
|
|
6
|
+
* The line is a button, so a click on it opens the document rather than
|
|
7
|
+
* the row. It is out of the tab order because the grid is one tab stop:
|
|
8
|
+
* the cell cursor's Enter presses it instead (`data-cell-opens`, read by
|
|
9
|
+
* useGridKeyboard), and the row is a cell away.
|
|
10
|
+
*/
|
|
11
|
+
import { useRef, useState } from 'react';
|
|
12
|
+
import { Modal } from '@mistriwork/ui/Modal.js';
|
|
13
|
+
import { JsonValue as JsonView } from './JsonValue.js';
|
|
14
|
+
import { useArrived } from './onDemand.js';
|
|
15
|
+
import { previewOf } from './jsonModel.js';
|
|
16
|
+
import { say } from '../copy/record/components/JsonPreview.js';
|
|
17
|
+
export function JsonPreview({ value, name, type }) {
|
|
18
|
+
const [open, setOpen] = useState(false);
|
|
19
|
+
const here = useArrived(JsonView, open);
|
|
20
|
+
const modal = useRef(null);
|
|
21
|
+
return (_jsxs(_Fragment, { children: [_jsx("button", { type: "button", className: "json-preview", "data-cell-opens": "", tabIndex: -1, "aria-haspopup": "dialog", title: say('openName', { name }), onClick: (e) => {
|
|
22
|
+
e.stopPropagation();
|
|
23
|
+
setOpen(true);
|
|
24
|
+
}, children: previewOf(value) }), open && here && (_jsxs(Modal, { ref: modal, className: "confirm json-overlay", ariaLabel: `${name} (JSON)`, onClose: () => setOpen(false), children: [_jsxs("header", { className: "json-overlay-head", children: [_jsx("h2", { children: name }), type && _jsx("span", { className: "json-overlay-type", children: type.toLowerCase() }), _jsx("button", { type: "button", className: "ghost json-overlay-close", onClick: () => modal.current?.close(), children: say('common.close') })] }), _jsx(JsonView, { value: value })] }))] }));
|
|
25
|
+
}
|