@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,360 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A selection of loaded records and the bulk actions offered for exactly
|
|
4
|
+
* those keys — shared by the queue (a listbox) and the grid (a checkbox in
|
|
5
|
+
* each row's host), so the two are one contract: the exact keys of loaded
|
|
6
|
+
* records, never "everything matching"; a fixed update written per record
|
|
7
|
+
* through `applyBulk`, each answered on its own; a bulk command sent once
|
|
8
|
+
* for the group through its form.
|
|
9
|
+
*/
|
|
10
|
+
import { useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react';
|
|
11
|
+
import { useQueryClient } from '@tanstack/react-query';
|
|
12
|
+
import { expectedValues } from '@mistriwork/engine/shared/schema.js';
|
|
13
|
+
import { commandFieldsDeep, commandKeyText } from '@mistriwork/engine/shared/commandWire.js';
|
|
14
|
+
import { columnLabel, findTable, state, writeAllowed } from '../core.js';
|
|
15
|
+
import { humanName } from '@mistriwork/engine/shared/model.js';
|
|
16
|
+
import { onDemand, useArrived } from './onDemand.js';
|
|
17
|
+
import { messageLanguage, servedLanguage } from '../messages.js';
|
|
18
|
+
import { grantedActionIds } from '../actionGrants.js';
|
|
19
|
+
import { applyBulk, bulkCommandSummary, bulkKey, bulkSummary, countedLabel, matchingKeys, BULK_LIMIT, } from '../bulkActions.js';
|
|
20
|
+
import { sessionIdentity, subscribeSessionIdentity } from '../sessionIdentity.js';
|
|
21
|
+
import { updateAttempts } from '../updateAttempts.js';
|
|
22
|
+
import { shell } from '../shellMode.js';
|
|
23
|
+
import { Modal } from '@mistriwork/ui/Modal.js';
|
|
24
|
+
import { Button } from '@mistriwork/ui/Button.js';
|
|
25
|
+
import { formatLocale, formatNumber } from '../locale.js';
|
|
26
|
+
import { resourceOf } from './appRooms.js';
|
|
27
|
+
import { pluralOf, recordNoun } from '@mistriwork/engine/shared/appNoun.js';
|
|
28
|
+
import { say } from '../copy/lists/components/useBulkSelection.js';
|
|
29
|
+
/* A selection's App commands are the shell's (shellMode.ts `bulkCommands`): where it has none, a list offers none, and
|
|
30
|
+
these stand in so the hooks below are asked the same way in either shell. */
|
|
31
|
+
const NO_RUNS = { subscribe: () => () => { }, version: () => 0, unresolvedGroups: () => [] };
|
|
32
|
+
const NO_ANSWERS = [];
|
|
33
|
+
const noAvailability = () => NO_ANSWERS;
|
|
34
|
+
/* "Set field…" draws its own dialog, fetched the first time it is chosen. */
|
|
35
|
+
const SetFieldDialog = onDemand(() => import('./SetFieldDialog.js'), 'SetFieldDialog', { quiet: true });
|
|
36
|
+
const Counted = onDemand(() => import('./CountedLabel.js'), 'CountedLabel', { quiet: true });
|
|
37
|
+
/**
|
|
38
|
+
* An action's label for the selection. One whose App message counts (server
|
|
39
|
+
* appMessages.ts countedLabels) is said by the formatter, loaded the first
|
|
40
|
+
* time a selection of several needs it, the words for one record standing in
|
|
41
|
+
* meanwhile; any other is counted as English counts it (countedLabel), or not
|
|
42
|
+
* at all.
|
|
43
|
+
*/
|
|
44
|
+
function ActionLabel({ action, count, noun }) {
|
|
45
|
+
const message = action.counted;
|
|
46
|
+
const wanted = Boolean(message) && count > 1;
|
|
47
|
+
const here = useArrived(Counted, wanted);
|
|
48
|
+
if (message && wanted && here)
|
|
49
|
+
return _jsx(Counted, { message: message, count: count, locale: servedLanguage() ?? formatLocale() ?? messageLanguage() });
|
|
50
|
+
return _jsx(_Fragment, { children: !message && noun ? countedLabel(action.label, count, noun) : action.label });
|
|
51
|
+
}
|
|
52
|
+
const said = (v) => (v === null ? 'null' : String(v));
|
|
53
|
+
/* What the resource's records are called: its noun, else its table's name
|
|
54
|
+
as a person says it, made plural by rule unless it already reads so. */
|
|
55
|
+
function nounOf(table) {
|
|
56
|
+
const app = shell().app();
|
|
57
|
+
const authored = app?.resources ? resourceOf(app, table.id)?.noun : undefined;
|
|
58
|
+
if (authored)
|
|
59
|
+
return authored;
|
|
60
|
+
const one = recordNoun(undefined, table.name);
|
|
61
|
+
return { one, many: /[^s]s$/i.test(one) ? one : pluralOf(one) };
|
|
62
|
+
}
|
|
63
|
+
const setSummary = (action) => Object.entries(action.set)
|
|
64
|
+
.map(([c, v]) => `${c} → ${said(v)}`)
|
|
65
|
+
.join(', ');
|
|
66
|
+
const isUpdate = (action) => action.command === undefined;
|
|
67
|
+
const isCommand = (action) => action.command !== undefined;
|
|
68
|
+
const tally = (outcomes, stopped = false) => {
|
|
69
|
+
const counts = { applied: 0, rejected: 0, uncertain: 0, blocked: 0, skipped: 0 };
|
|
70
|
+
for (const outcome of outcomes)
|
|
71
|
+
counts[outcome.kind]++;
|
|
72
|
+
return { outcomes, counts, stopped };
|
|
73
|
+
};
|
|
74
|
+
/** The bulk updates and commands this reader may run over the resource now. */
|
|
75
|
+
export function offeredBulk(table, actions, interactive, identity = sessionIdentity(), connection = state.activeConnection ?? null, editable = []) {
|
|
76
|
+
const writable = () => {
|
|
77
|
+
const current = findTable(table.id);
|
|
78
|
+
return (interactive &&
|
|
79
|
+
writeAllowed(table.id) &&
|
|
80
|
+
Boolean(current) &&
|
|
81
|
+
!current.isView &&
|
|
82
|
+
!table.isView &&
|
|
83
|
+
Boolean(state.connections?.some((c) => c.id === connection && c.writable)));
|
|
84
|
+
};
|
|
85
|
+
const columnWritable = (action) => {
|
|
86
|
+
const current = findTable(table.id);
|
|
87
|
+
return Object.keys(action.set).every((name) => {
|
|
88
|
+
const column = current?.columns.find((c) => c.name === name);
|
|
89
|
+
return column && !column.primaryKey && column.writable !== false;
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
/* Or a fixed action a role of this reader runs without write: the server
|
|
93
|
+
admits it per record as that action and nothing else. */
|
|
94
|
+
const granted = (action) => interactive &&
|
|
95
|
+
grantedActionIds(shell().app(), table.id).includes(action.id) &&
|
|
96
|
+
!table.isView &&
|
|
97
|
+
Boolean(findTable(table.id)) &&
|
|
98
|
+
Boolean(state.connections?.some((c) => c.id === connection && c.writable));
|
|
99
|
+
const bulk = actions
|
|
100
|
+
.filter(isUpdate)
|
|
101
|
+
.filter((action) => action.bulk === true && ((writable() && columnWritable(action)) || granted(action)));
|
|
102
|
+
/* A command needs its own grant, not generic write: the manager who may
|
|
103
|
+
assign cannot edit the application, and that is the point. */
|
|
104
|
+
const grantedCommands = shell().app()?.grantedCommands ?? [];
|
|
105
|
+
const commandAllowed = (action) => interactive &&
|
|
106
|
+
action.bulk === true &&
|
|
107
|
+
action.command.targets === 'many' &&
|
|
108
|
+
identity.mode === 'authenticated' &&
|
|
109
|
+
identity.appId === connection &&
|
|
110
|
+
grantedCommands.includes(action.command.id) &&
|
|
111
|
+
action.command.target === table.id &&
|
|
112
|
+
Boolean(findTable(table.id)) &&
|
|
113
|
+
// Every type the form draws; a reference, at any depth, only over a resource this person reads.
|
|
114
|
+
[...commandFieldsDeep(action.command.input)].every(({ field }) => field.type !== 'reference' || Boolean(findTable(field.from)));
|
|
115
|
+
const commands = shell().slots.bulkCommands ? actions.filter(isCommand).filter(commandAllowed) : [];
|
|
116
|
+
/* "Set field…" writes one of the list's editable columns, under the same
|
|
117
|
+
gate as a fixed update: each still a writable column of this reader's. */
|
|
118
|
+
const fields = writable() ? editable.filter((name) => columnWritable({ id: `set:${name}`, label: name, set: { [name]: null } })) : [];
|
|
119
|
+
return { bulk, commands, fields };
|
|
120
|
+
}
|
|
121
|
+
export function useBulkSelection({ table, keyed, actions = [], interactive = true, editable = [], }) {
|
|
122
|
+
const client = useQueryClient();
|
|
123
|
+
const commanding = shell().slots.bulkCommands;
|
|
124
|
+
const commandOperations = commanding?.operations ?? NO_RUNS;
|
|
125
|
+
const useCommandAvailability = commanding?.useAvailability ?? noAvailability;
|
|
126
|
+
const CommandForm = commanding?.Form;
|
|
127
|
+
useSyncExternalStore(updateAttempts.subscribe, updateAttempts.version, updateAttempts.version);
|
|
128
|
+
useSyncExternalStore(commandOperations.subscribe, commandOperations.version, commandOperations.version);
|
|
129
|
+
const identity = useSyncExternalStore(subscribeSessionIdentity, sessionIdentity, sessionIdentity);
|
|
130
|
+
const [selected, setSelected] = useState([]);
|
|
131
|
+
const [capped, setCapped] = useState(false);
|
|
132
|
+
const [running, setRunning] = useState(null);
|
|
133
|
+
const [asking, setAsking] = useState(null);
|
|
134
|
+
const [reported, setReported] = useState(null);
|
|
135
|
+
const [commandRun, setCommandRun] = useState(null);
|
|
136
|
+
const resultRef = useRef(null);
|
|
137
|
+
/* Where a closing command form sends focus. The dialog resolves it while it
|
|
138
|
+
unmounts, before anything mounted in the same commit has a ref, so the
|
|
139
|
+
report region is always in the tree (hidden until it has a report) and
|
|
140
|
+
this points at it only when the close produces one; a Cancel with nothing
|
|
141
|
+
sent leaves it empty, and focus goes back to the toolbar button. */
|
|
142
|
+
const returnFocus = useRef(null);
|
|
143
|
+
const alive = useRef(true);
|
|
144
|
+
useEffect(() => {
|
|
145
|
+
alive.current = true;
|
|
146
|
+
return () => {
|
|
147
|
+
alive.current = false;
|
|
148
|
+
};
|
|
149
|
+
}, []);
|
|
150
|
+
const connection = state.activeConnection ?? null;
|
|
151
|
+
const byId = new Map(keyed.map((record) => [record.id, record]));
|
|
152
|
+
// A record that left the list leaves the selection; one that returns is not re-selected.
|
|
153
|
+
const present = keyed.map((record) => record.id).join('\n');
|
|
154
|
+
useEffect(() => {
|
|
155
|
+
const ids = new Set(present.split('\n'));
|
|
156
|
+
setSelected((current) => (current.every((id) => ids.has(id)) ? current : current.filter((id) => ids.has(id))));
|
|
157
|
+
}, [present]);
|
|
158
|
+
const selection = useMemo(() => selected.filter((id) => byId.has(id)), [selected, present]);
|
|
159
|
+
const { bulk, commands, fields } = offeredBulk(table, actions, interactive, identity, connection, editable);
|
|
160
|
+
const [setting, setSetting] = useState(false);
|
|
161
|
+
const selectedRecords = keyed.filter((record) => selection.includes(record.id));
|
|
162
|
+
const availability = useCommandAvailability(commands.flatMap((action) => selectedRecords.map((record) => ({
|
|
163
|
+
command: action.command.id,
|
|
164
|
+
commandVersion: action.command.version,
|
|
165
|
+
key: record.key,
|
|
166
|
+
}))), interactive);
|
|
167
|
+
const availableCommands = commands.filter((_action, index) => selectedRecords.length > 0 &&
|
|
168
|
+
selectedRecords.every((_record, offset) => availability[index * selectedRecords.length + offset] === true));
|
|
169
|
+
// Navigation can unmount the queue; coming back resumes an unconfirmed group.
|
|
170
|
+
const resumed = commandRun
|
|
171
|
+
? undefined
|
|
172
|
+
: commandOperations
|
|
173
|
+
.unresolvedGroups(connection ?? '', table.id)
|
|
174
|
+
.find((operation) => operation.identity === identity && operation.action && operation.owner.keys);
|
|
175
|
+
const commandForm = commandRun && commandRun.epoch === identity.epoch
|
|
176
|
+
? commandRun
|
|
177
|
+
: resumed
|
|
178
|
+
? {
|
|
179
|
+
action: resumed.action,
|
|
180
|
+
epoch: identity.epoch,
|
|
181
|
+
targets: resumed.owner.keys.map((key, index) => ({ key, label: resumed.owner.labels?.[index] ?? commandKeyText(key) })),
|
|
182
|
+
}
|
|
183
|
+
: null;
|
|
184
|
+
const groupOwner = (run) => ({
|
|
185
|
+
connection: connection ?? '',
|
|
186
|
+
target: run.action.command.target,
|
|
187
|
+
command: run.action.command.id,
|
|
188
|
+
commandVersion: run.action.command.version,
|
|
189
|
+
key: {},
|
|
190
|
+
keys: run.targets.map((target) => ({ ...target.key })),
|
|
191
|
+
labels: run.targets.map((target) => target.label),
|
|
192
|
+
});
|
|
193
|
+
const formEpoch = commandForm?.epoch;
|
|
194
|
+
const formCurrent = useCallback(() => alive.current && sessionIdentity().epoch === formEpoch && (state.activeConnection ?? null) === connection, [formEpoch, connection]);
|
|
195
|
+
const change = (keys) => {
|
|
196
|
+
const over = keys.length > BULK_LIMIT;
|
|
197
|
+
setCapped(over);
|
|
198
|
+
setSelected(over ? keys.slice(0, BULK_LIMIT) : keys);
|
|
199
|
+
};
|
|
200
|
+
const clear = () => {
|
|
201
|
+
setSelected([]);
|
|
202
|
+
setCapped(false);
|
|
203
|
+
setReported(null);
|
|
204
|
+
};
|
|
205
|
+
const run = (action) => (bulk.includes(action) ? write(action) : Promise.resolve());
|
|
206
|
+
/* "Set field…": one value for one column, written per record exactly as a
|
|
207
|
+
fixed update is — the dialog that chose it was the confirmation. */
|
|
208
|
+
const setField = (column, value) => {
|
|
209
|
+
setSetting(false);
|
|
210
|
+
if (!fields.includes(column))
|
|
211
|
+
return Promise.resolve();
|
|
212
|
+
return write({
|
|
213
|
+
id: `set:${column}`,
|
|
214
|
+
label: say('setColumn', { column: columnLabel(table.id, column) ?? humanName(column) }),
|
|
215
|
+
set: { [column]: value },
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
const write = async (action) => {
|
|
219
|
+
if (running || commandForm)
|
|
220
|
+
return;
|
|
221
|
+
const targets = keyed.filter((record) => selection.includes(record.id));
|
|
222
|
+
if (!targets.length)
|
|
223
|
+
return;
|
|
224
|
+
const epoch = sessionIdentity().epoch;
|
|
225
|
+
const current = () => alive.current && sessionIdentity().epoch === epoch && (state.activeConnection ?? null) === connection;
|
|
226
|
+
setReported(null);
|
|
227
|
+
setRunning({ label: action.label, done: 0, total: targets.length });
|
|
228
|
+
const matching = await matchingKeys(table, targets.map((record) => record.key), action.when, connection);
|
|
229
|
+
if (!current()) {
|
|
230
|
+
if (alive.current)
|
|
231
|
+
setRunning(null);
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
const applicable = targets.filter((record) => matching.has(record.id));
|
|
235
|
+
const skipped = new Map(targets
|
|
236
|
+
.filter((record) => !matching.has(record.id))
|
|
237
|
+
.map((record) => [
|
|
238
|
+
record.id,
|
|
239
|
+
{ key: record.key, label: record.label, kind: 'skipped', message: say('doesNotMatchNow', { when: action.when ?? '' }) },
|
|
240
|
+
]));
|
|
241
|
+
// Nothing to write needs no permission; the report says why.
|
|
242
|
+
if (action.confirm && applicable.length) {
|
|
243
|
+
const yes = await new Promise((answer) => setAsking({ action, count: applicable.length, skipped: skipped.size, answer }));
|
|
244
|
+
if (alive.current)
|
|
245
|
+
setAsking(null);
|
|
246
|
+
if (!yes || !current()) {
|
|
247
|
+
if (alive.current)
|
|
248
|
+
setRunning(null);
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
const applied = await applyBulk({ connection, table: table.id }, action.set, applicable.map(({ key, label, row }) => {
|
|
253
|
+
const expected = expectedValues(table, action.set, row);
|
|
254
|
+
return { key, label, ...(expected ? { expected } : {}) };
|
|
255
|
+
}), current, (done, total) => {
|
|
256
|
+
if (alive.current)
|
|
257
|
+
setRunning({ label: action.label, done, total });
|
|
258
|
+
});
|
|
259
|
+
if (!alive.current)
|
|
260
|
+
return;
|
|
261
|
+
setRunning(null);
|
|
262
|
+
const written = new Map(applied.outcomes.map((outcome) => [bulkKey(table, outcome.key), outcome]));
|
|
263
|
+
const result = tally(targets.map((record) => written.get(record.id) ?? skipped.get(record.id)), applied.stopped);
|
|
264
|
+
setReported({ label: action.label, result });
|
|
265
|
+
if (result.counts.applied && current()) {
|
|
266
|
+
void shell().undo.refresh();
|
|
267
|
+
void client.invalidateQueries({ queryKey: ['run', connection] });
|
|
268
|
+
void client.invalidateQueries({ queryKey: ['count', connection] });
|
|
269
|
+
void client.invalidateQueries({ queryKey: ['when', table.id] });
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
/* A bulk command prepares, asks and sends inside the command form. Its
|
|
273
|
+
records are the selection at the press, in list order; the form may
|
|
274
|
+
only narrow them (Deselect ineligible), never widen them. */
|
|
275
|
+
const openCommand = (action) => {
|
|
276
|
+
if (running || commandForm || !availableCommands.includes(action))
|
|
277
|
+
return;
|
|
278
|
+
const targets = keyed.filter((record) => selection.includes(record.id)).map(({ key, label }) => ({ key, label }));
|
|
279
|
+
if (!targets.length)
|
|
280
|
+
return;
|
|
281
|
+
setReported(null);
|
|
282
|
+
setCommandRun({ action, targets, epoch: identity.epoch });
|
|
283
|
+
};
|
|
284
|
+
const deselect = (keys) => {
|
|
285
|
+
const drop = new Set(keys.map(commandKeyText));
|
|
286
|
+
setSelected((current) => current.filter((id) => {
|
|
287
|
+
const record = byId.get(id);
|
|
288
|
+
return !record || !drop.has(commandKeyText(record.key));
|
|
289
|
+
}));
|
|
290
|
+
setCommandRun((current) => {
|
|
291
|
+
if (!current)
|
|
292
|
+
return current;
|
|
293
|
+
const targets = current.targets.filter((target) => !drop.has(commandKeyText(target.key)));
|
|
294
|
+
return targets.length ? { ...current, targets } : null;
|
|
295
|
+
});
|
|
296
|
+
};
|
|
297
|
+
// One outcome for the group; an unconfirmed one keeps the form open instead.
|
|
298
|
+
const closeCommand = (settled) => {
|
|
299
|
+
const finished = commandForm;
|
|
300
|
+
setCommandRun(null);
|
|
301
|
+
returnFocus.current = null;
|
|
302
|
+
if (!finished || !settled || !alive.current)
|
|
303
|
+
return;
|
|
304
|
+
if (settled.phase === 'success' || settled.phase === 'error')
|
|
305
|
+
returnFocus.current = resultRef.current;
|
|
306
|
+
const count = settled.owner.keys?.length ?? finished.targets.length;
|
|
307
|
+
if (settled.phase === 'success') {
|
|
308
|
+
setReported({
|
|
309
|
+
label: finished.action.label,
|
|
310
|
+
summary: bulkCommandSummary(finished.action.label, count, 'applied'),
|
|
311
|
+
result: tally(finished.targets.map((target) => ({ ...target, kind: 'applied', message: '' }))),
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
else if (settled.phase === 'error') {
|
|
315
|
+
const named = settled.refusedKey && finished.targets.find((target) => commandKeyText(target.key) === commandKeyText(settled.refusedKey));
|
|
316
|
+
const message = `${settled.message}${named ? ` (${named.label})` : ''}`;
|
|
317
|
+
setReported({
|
|
318
|
+
label: finished.action.label,
|
|
319
|
+
summary: bulkCommandSummary(finished.action.label, count, 'rejected', message),
|
|
320
|
+
result: tally(finished.targets.map((target) => ({ ...target, kind: 'rejected', message }))),
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
// The report is the answer to the press; a reader hears it where they are.
|
|
325
|
+
// After a command form the dialog hands focus here itself (`returnFocus`),
|
|
326
|
+
// once the page behind it is no longer inert.
|
|
327
|
+
useEffect(() => {
|
|
328
|
+
if (reported)
|
|
329
|
+
resultRef.current?.focus();
|
|
330
|
+
}, [reported]);
|
|
331
|
+
const failed = reported && (reported.result.counts.rejected > 0 || reported.result.counts.uncertain > 0);
|
|
332
|
+
const busy = Boolean(running) || Boolean(commandForm);
|
|
333
|
+
const bar = (_jsxs(_Fragment, { children: [(bulk.length > 0 || commands.length > 0 || fields.length > 0) && (selection.length > 0 || running) && (_jsxs("div", { role: "toolbar", "aria-label": say('selectedRecords'), className: "queue-bulk", "aria-busy": Boolean(running), children: [_jsx("span", { className: "queue-count", children: say('selected', { selectionCount: selection.length }) }), fields.length > 0 && (_jsx("button", { type: "button", className: "ghost", disabled: busy, onClick: () => {
|
|
334
|
+
setReported(null);
|
|
335
|
+
setSetting(true);
|
|
336
|
+
}, children: say('setField') })), bulk.map((action) => (_jsx("button", { type: "button", className: "ghost", title: setSummary(action), disabled: busy, onClick: () => {
|
|
337
|
+
void run(action);
|
|
338
|
+
}, children: _jsx(ActionLabel, { action: action, count: selection.length }) }, action.label))), availableCommands.map((action) => (_jsx("button", { type: "button", className: "ghost", title: say('oneRequestForTheWhole'), disabled: busy, onClick: () => openCommand(action), children: _jsx(ActionLabel, { action: action, count: selection.length, noun: nounOf(table) }) }, `command:${action.command.id}:${action.label}`))), _jsx("button", { type: "button", className: "ghost queue-clear", disabled: Boolean(running), onClick: clear, children: say('clearSelection') }), running && (_jsx("span", { className: "queue-progress", role: "status", children: say('applying', { done: running.done, total: running.total }) }))] })), capped && (_jsx("p", { className: "queue-status", role: "status", children: say('selectionIsLimitedToRecords', { max: BULK_LIMIT }) })), _jsxs("div", { className: "queue-report", children: [_jsxs("div", { className: "queue-result", role: failed ? 'alert' : 'status', tabIndex: -1, ref: resultRef, hidden: !reported, children: [reported && _jsx("p", { children: reported.summary ?? bulkSummary(reported.label, reported.result) }), reported && !reported.summary && reported.result.outcomes.some((outcome) => outcome.kind !== 'applied') && (_jsx("ul", { children: reported.result.outcomes
|
|
339
|
+
.filter((outcome) => outcome.kind !== 'applied')
|
|
340
|
+
.map((outcome) => (_jsxs("li", { children: [outcome.label, ": ", outcome.message] }, bulkKey(table, outcome.key)))) }))] }), reported && !running && (_jsx("button", { type: "button", className: "ghost queue-dismiss", onClick: clear, children: say('common.dismiss') }))] })] }));
|
|
341
|
+
const dialogs = (_jsxs(_Fragment, { children: [setting && (_jsx(SetFieldDialog, { table: table, columns: fields, count: selection.length, row: selectedRecords[0]?.row, onApply: (column, value) => {
|
|
342
|
+
void setField(column, value);
|
|
343
|
+
}, onClose: () => setSetting(false) })), asking && (_jsx(Confirm, { asking: asking, onAnswer: (yes) => {
|
|
344
|
+
setAsking(null);
|
|
345
|
+
asking.answer(yes);
|
|
346
|
+
} })), commandForm && CommandForm && (_jsx(CommandForm, { action: commandForm.action, owner: groupOwner(commandForm), targets: commandForm.targets, onDeselect: deselect, noun: nounOf(table), label: say('countSelectedRecords', { count: commandForm.targets.length }), onClose: closeCommand, onDone: () => { }, isCurrent: formCurrent, finalFocus: returnFocus }, `${commandForm.epoch}:${commandForm.action.command.id}`))] }));
|
|
347
|
+
return { offered: bulk.length > 0 || commands.length > 0 || fields.length > 0, selection, change, clear, byId, bar, dialogs };
|
|
348
|
+
}
|
|
349
|
+
/** Ask before writing the selection, in the page's own dialog. */
|
|
350
|
+
function Confirm({ asking, onAnswer }) {
|
|
351
|
+
const { action, count, skipped } = asking;
|
|
352
|
+
const answered = useRef(false);
|
|
353
|
+
const answer = (yes) => {
|
|
354
|
+
if (answered.current)
|
|
355
|
+
return;
|
|
356
|
+
answered.current = true;
|
|
357
|
+
onAnswer(yes);
|
|
358
|
+
};
|
|
359
|
+
return (_jsxs(Modal, { className: "confirm action-confirm", ariaLabel: `${action.label}?`, onClose: () => answer(false), children: [_jsxs("h2", { children: [action.label, "?"] }), _jsxs("p", { children: [say('applyToSelectedRecords', { count }), skipped ? say('willBeSkipped', { skipped: formatNumber(skipped) }) : '', "."] }), _jsx("p", { children: _jsx("strong", { children: setSummary(action) }) }), _jsxs("div", { className: "confirm-actions", children: [_jsx(Button, { intent: "secondary", onClick: () => answer(false), children: say('common.cancel') }), _jsx(Button, { intent: "primary", onClick: () => answer(true), children: action.label })] })] }));
|
|
360
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
2
|
+
import type { ConditionSpeaker } from './conditionWords.js';
|
|
3
|
+
/** What a surface says conditions with: the App's words once loaded, else the language as written. */
|
|
4
|
+
interface ConditionWords {
|
|
5
|
+
speaker: ConditionSpeaker | null;
|
|
6
|
+
sayTails(speaker: ConditionSpeaker | null, column: string, tails: readonly string[]): string;
|
|
7
|
+
sayCondition(speaker: ConditionSpeaker | null, condition: string): string;
|
|
8
|
+
sayFilter(speaker: ConditionSpeaker | null, filter: string): string[];
|
|
9
|
+
sayQuestion(speaker: ConditionSpeaker | null, text: string): string[];
|
|
10
|
+
andWords(said: string[]): string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The words for these texts — the conditions a surface is about to say —
|
|
14
|
+
* with every reference among them named once its record has been read.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useConditionWords(table: TableMeta | undefined, texts: readonly string[]): ConditionWords;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words an App list's surfaces say conditions in (conditionWords.ts),
|
|
3
|
+
* and the speaker they say them through: the table's columns as this reader
|
|
4
|
+
* is served them, their labels and display rules from the App, and the names
|
|
5
|
+
* of the records the conditions point at, read through the same query a
|
|
6
|
+
* reference box uses. Outside an App — the Workbench — there is no speaker,
|
|
7
|
+
* and the language is said as written.
|
|
8
|
+
*
|
|
9
|
+
* The words are loaded on demand, the first time an App's list has a
|
|
10
|
+
* condition to say: an unnarrowed list, the Workbench and every first page
|
|
11
|
+
* go without them. Until they arrive a condition is said as written
|
|
12
|
+
* (conditionText.ts), and each surface asking is drawn again when they do.
|
|
13
|
+
*/
|
|
14
|
+
import { useQueries } from '@tanstack/react-query';
|
|
15
|
+
import { useEffect, useState } from 'react';
|
|
16
|
+
import { columnDisplay, columnLabel, findTable, state } from '../core.js';
|
|
17
|
+
import { hasFilterOf } from '@mistriwork/engine/shared/listFilters.js';
|
|
18
|
+
import { presentationColumns } from './columnPresentation.js';
|
|
19
|
+
import { humanName } from '@mistriwork/engine/shared/model.js';
|
|
20
|
+
import { andWords, written } from './conditionText.js';
|
|
21
|
+
import { referenceNameQuery } from './FilterBoxes.js';
|
|
22
|
+
import { useMessageLanguage } from './useMessageLanguage.js';
|
|
23
|
+
/**
|
|
24
|
+
* The App's words for a table's columns, before any record is named; null
|
|
25
|
+
* outside an App. An App is where its words are registered (appnav's label
|
|
26
|
+
* source, which answers every column); the Workbench registers none. Asked
|
|
27
|
+
* of core rather than of appnav, so the grid that draws a column menu does
|
|
28
|
+
* not pull the App's shell in with it.
|
|
29
|
+
*/
|
|
30
|
+
function appSpeaker(table) {
|
|
31
|
+
if (!table?.columns.length || columnLabel(table.id, table.columns[0].name) == null)
|
|
32
|
+
return null;
|
|
33
|
+
return {
|
|
34
|
+
column: (name) => table.columns.find((column) => column.name === name) ?? acrossColumn(table, name),
|
|
35
|
+
label: (name) => columnLabel(table.id, name) ?? humanName(name),
|
|
36
|
+
rule: (name) => columnDisplay(table.id, name),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/* A list filter across its related tables (shared/listFilters.ts) said as the column it asks: a path's column as
|
|
40
|
+
it is served on the record it reaches, the column of the rows that point at the record, or — a segment of
|
|
41
|
+
theirs — a yes with no value. A path or rows this reader is not served are no column, and said as another. */
|
|
42
|
+
function acrossColumn(table, name) {
|
|
43
|
+
const has = hasFilterOf(name);
|
|
44
|
+
if (!has)
|
|
45
|
+
return name.includes('.') ? presentationColumns(state.schema, table, [name]).get(name) : undefined;
|
|
46
|
+
const child = (findTable(has.child) ?? state.schema?.tables.find((t) => t.name === has.child));
|
|
47
|
+
if (!child)
|
|
48
|
+
return undefined;
|
|
49
|
+
if (child.segments && Object.hasOwn(child.segments, has.asks))
|
|
50
|
+
return { name, type: 'BOOLEAN', nullable: false, primaryKey: false };
|
|
51
|
+
return presentationColumns(state.schema, child, [has.asks]).get(has.asks);
|
|
52
|
+
}
|
|
53
|
+
let words;
|
|
54
|
+
let arriving;
|
|
55
|
+
const load = () => (arriving ??= import('./conditionWords.js').then((module) => (words = module)));
|
|
56
|
+
const AS_WRITTEN = {
|
|
57
|
+
sayTails: (_, column, tails) => written.tails(column, tails),
|
|
58
|
+
sayCondition: (_, condition) => written.condition(condition),
|
|
59
|
+
sayFilter: (_, filter) => written.filter(filter),
|
|
60
|
+
sayQuestion: (_, text) => written.question(text),
|
|
61
|
+
andWords,
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* The words for these texts — the conditions a surface is about to say —
|
|
65
|
+
* with every reference among them named once its record has been read.
|
|
66
|
+
*/
|
|
67
|
+
export function useConditionWords(table, texts) {
|
|
68
|
+
// A change of language is a change of words.
|
|
69
|
+
useMessageLanguage();
|
|
70
|
+
const base = appSpeaker(table);
|
|
71
|
+
const asks = !!base && texts.some((text) => text.trim());
|
|
72
|
+
const [, arrived] = useState(0);
|
|
73
|
+
useEffect(() => {
|
|
74
|
+
if (!asks || words)
|
|
75
|
+
return;
|
|
76
|
+
let live = true;
|
|
77
|
+
void load().then(() => {
|
|
78
|
+
if (live)
|
|
79
|
+
arrived((n) => n + 1);
|
|
80
|
+
});
|
|
81
|
+
return () => {
|
|
82
|
+
live = false;
|
|
83
|
+
};
|
|
84
|
+
}, [asks]);
|
|
85
|
+
const loaded = base ? words : undefined;
|
|
86
|
+
const wanted = base && loaded
|
|
87
|
+
? [
|
|
88
|
+
...new Map(texts.flatMap((text) => [...loaded.referencedIds(base, text)].flatMap(([column, ids]) => ids.map((id) => [`${column}\n${id}`, { column, id }])))).values(),
|
|
89
|
+
]
|
|
90
|
+
: [];
|
|
91
|
+
const names = useQueries({ queries: wanted.map(({ column, id }) => referenceNameQuery(base?.column(column), id)) });
|
|
92
|
+
if (!base || !loaded)
|
|
93
|
+
return { speaker: null, ...AS_WRITTEN };
|
|
94
|
+
const known = new Map(wanted.map(({ column, id }, i) => [`${column}\n${id}`, names[i]?.data ?? undefined]));
|
|
95
|
+
const { sayTails, sayCondition, sayFilter, sayQuestion } = loaded;
|
|
96
|
+
return {
|
|
97
|
+
speaker: { ...base, recordName: (column, id) => known.get(`${column}\n${id}`) ?? undefined },
|
|
98
|
+
sayTails,
|
|
99
|
+
sayCondition,
|
|
100
|
+
sayFilter,
|
|
101
|
+
sayQuestion,
|
|
102
|
+
andWords,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moving around a result without a mouse.
|
|
3
|
+
*
|
|
4
|
+
* Arrow keys move a cell cursor, Enter opens the row's record — which is
|
|
5
|
+
* the walk, done from the keyboard. Everything else follows from those two
|
|
6
|
+
* and from the grid pattern people already know from a spreadsheet.
|
|
7
|
+
*
|
|
8
|
+
* The position is held as `(row, column)` indices, not elements. Above a
|
|
9
|
+
* few hundred rows the table is virtualised and the `<tr>` under the cursor
|
|
10
|
+
* is destroyed the moment it scrolls out of the window; indices survive
|
|
11
|
+
* that, the element is looked up again on every move, and when the row has
|
|
12
|
+
* not been painted yet the scroller is moved and the lookup retried.
|
|
13
|
+
*
|
|
14
|
+
* The hook version of grid.js: the same contract, with the listeners taken
|
|
15
|
+
* down when the table or its shape changes rather than stacked on the
|
|
16
|
+
* element by every repaint.
|
|
17
|
+
*/
|
|
18
|
+
import { type RefObject } from 'react';
|
|
19
|
+
interface GridKeyboardOptions {
|
|
20
|
+
rowCount: number;
|
|
21
|
+
columnCount: number;
|
|
22
|
+
/** Leading cells before the first data column (an expander). */
|
|
23
|
+
offset: number;
|
|
24
|
+
onOpen?: (index: number) => void;
|
|
25
|
+
/** Space: a glance at the row's record without leaving the list. */
|
|
26
|
+
onPeek?: (index: number) => void;
|
|
27
|
+
/** So a screen reader hears "of 63,010" rather than "of 20". */
|
|
28
|
+
totalRows?: number;
|
|
29
|
+
firstRow: number;
|
|
30
|
+
}
|
|
31
|
+
export declare function useGridKeyboard(tableRef: RefObject<HTMLTableElement | null>, wrapRef: RefObject<HTMLElement | null>, opts: GridKeyboardOptions): void;
|
|
32
|
+
export {};
|