@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,23 @@
|
|
|
1
|
+
/* A conversation's other side (a timeline's `side`), fetched with TimelineSides.tsx the first time a section with sides
|
|
2
|
+
draws, so a first page carries none of it. In the base layer, beside the rest of the timeline in page.css. */
|
|
3
|
+
@layer base {
|
|
4
|
+
/* The other party (a timeline's `side`): against the far edge on the second surface, square, its mark on that side; a
|
|
5
|
+
run of one author's messages names them once. A phone keeps every row full width, the surface alone telling them apart. */
|
|
6
|
+
.timeline-row.is-other {
|
|
7
|
+
width: fit-content; min-width: min(100%, 16rem); max-width: 80%; margin-inline-start: auto; padding: var(--space-3) var(--space-3h); background: var(--raised);
|
|
8
|
+
grid-template-columns: minmax(0, 1fr) 24px;
|
|
9
|
+
}
|
|
10
|
+
.timeline-row.is-other > .timeline-avatar { grid-column: 2; grid-row: 1 / span 2; }
|
|
11
|
+
.timeline-rows > .is-continued { margin-top: var(--space-1h); }
|
|
12
|
+
/* A run's later message is one line shorter: its kind and time at the end of its words' first line, not a head of their own. */
|
|
13
|
+
.timeline-row.is-continued { grid-template-columns: 24px minmax(0, 1fr) auto; align-items: baseline; }
|
|
14
|
+
.timeline-row.is-continued > .timeline-avatar { grid-row: 1; }
|
|
15
|
+
.timeline-row.is-continued > .timeline-text { grid-column: 2; grid-row: 1; }
|
|
16
|
+
.timeline-row.is-continued > .timeline-head { grid-column: 3; grid-row: 1; min-height: 0; }
|
|
17
|
+
.timeline-row.is-other.is-continued { grid-template-columns: minmax(0, 1fr) auto 24px; }
|
|
18
|
+
.timeline-row.is-other.is-continued > .timeline-text { grid-column: 1; }
|
|
19
|
+
.timeline-row.is-other.is-continued > .timeline-head { grid-column: 2; }
|
|
20
|
+
.timeline-row.is-other.is-continued > .timeline-avatar { grid-column: 3; }
|
|
21
|
+
@media (max-width: 600px) { .timeline-row.is-other { width: auto; max-width: none; margin-inline-start: 0; } }
|
|
22
|
+
@container record-host (max-width: 600px) { .timeline-row.is-other { width: auto; max-width: none; margin-inline-start: 0; } }
|
|
23
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The dress of a conversation's other side, as a part of its own: a timeline with a `side` waits for it before its rows
|
|
3
|
+
* draw (PageTimeline.tsx), so they never move when it arrives, and a page with no sides never fetches it.
|
|
4
|
+
*/
|
|
5
|
+
import './TimelineSides.css';
|
|
6
|
+
/** Draws nothing: what it brings is its stylesheet. */
|
|
7
|
+
export declare function TimelineSides(): any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The dress of a conversation's other side, as a part of its own: a timeline with a `side` waits for it before its rows
|
|
3
|
+
* draw (PageTimeline.tsx), so they never move when it arrives, and a page with no sides never fetches it.
|
|
4
|
+
*/
|
|
5
|
+
import './TimelineSides.css';
|
|
6
|
+
/** Draws nothing: what it brings is its stylesheet. */
|
|
7
|
+
export function TimelineSides() {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface Stop {
|
|
2
|
+
anchor: string | string[] | null;
|
|
3
|
+
title: string;
|
|
4
|
+
body: string;
|
|
5
|
+
code?: string;
|
|
6
|
+
}
|
|
7
|
+
/** The first spelling of the anchor that is on screen at all; `undefined` when none is. */
|
|
8
|
+
export declare function anchorFor(anchor: Stop['anchor']): HTMLElement | null | undefined;
|
|
9
|
+
export declare function Tour({ stops, onEnd }: {
|
|
10
|
+
stops: Stop[];
|
|
11
|
+
onEnd: () => void;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A short walk around the interface, once: a ring on the control, a card
|
|
4
|
+
* beside it, a scrim over everything else. The stops and the memory of
|
|
5
|
+
* having seen it stay in `tour.js`; this is the card.
|
|
6
|
+
*/
|
|
7
|
+
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
8
|
+
import { trapFocus, viewportBox, viewportSize } from '../core.js';
|
|
9
|
+
import { say } from '../copy/shell/components/Tour.js';
|
|
10
|
+
import { addHostListener, removeHostListener, shellQuery } from '../shellHost.js';
|
|
11
|
+
/** The first spelling of the anchor that is on screen at all; `undefined` when none is. */
|
|
12
|
+
export function anchorFor(anchor) {
|
|
13
|
+
if (!anchor)
|
|
14
|
+
return null;
|
|
15
|
+
for (const selector of [anchor].flat()) {
|
|
16
|
+
const node = shellQuery(selector);
|
|
17
|
+
if (!node)
|
|
18
|
+
continue;
|
|
19
|
+
// screen-px: only asks "is it drawn at all", never where.
|
|
20
|
+
const box = node.getBoundingClientRect();
|
|
21
|
+
/* Zero-sized covers `display: none`, a collapsed sidebar, and a button the toolbar has dropped at this width. */
|
|
22
|
+
if (box.width > 0 && box.height > 0)
|
|
23
|
+
return node;
|
|
24
|
+
}
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
export function Tour({ stops, onEnd }) {
|
|
28
|
+
const [at, setAt] = useState(0);
|
|
29
|
+
const scrim = useRef(null);
|
|
30
|
+
const ring = useRef(null);
|
|
31
|
+
const card = useRef(null);
|
|
32
|
+
const next = useRef(null);
|
|
33
|
+
const stop = stops[at];
|
|
34
|
+
const last = at === stops.length - 1;
|
|
35
|
+
const go = (delta) => {
|
|
36
|
+
const to = at + delta;
|
|
37
|
+
if (to < 0)
|
|
38
|
+
return;
|
|
39
|
+
if (to >= stops.length) {
|
|
40
|
+
onEnd();
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
setAt(to);
|
|
44
|
+
};
|
|
45
|
+
/* The scrim already blocks the mouse; without the trap the keyboard walked straight past it into the table underneath. */
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
const release = trapFocus(card.current);
|
|
48
|
+
return () => release?.();
|
|
49
|
+
}, []);
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
const onKey = (e) => {
|
|
52
|
+
if (e.key === 'Escape') {
|
|
53
|
+
e.preventDefault();
|
|
54
|
+
onEnd();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (e.key === 'ArrowRight') {
|
|
58
|
+
e.preventDefault();
|
|
59
|
+
go(1);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (e.key === 'ArrowLeft') {
|
|
63
|
+
e.preventDefault();
|
|
64
|
+
go(-1);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
addHostListener(document, 'keydown', onKey, true);
|
|
68
|
+
return () => removeHostListener(document, 'keydown', onKey, true);
|
|
69
|
+
});
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
next.current?.focus();
|
|
72
|
+
}, [at]);
|
|
73
|
+
/* Put the ring on the anchor and the card beside it. Four sides, tried in
|
|
74
|
+
order of preference, and the first that fits wins: beside is what a tall
|
|
75
|
+
anchor wants, below is what a wide one wants, so both are offered and
|
|
76
|
+
the geometry decides. Capturing scroll, because the thing that scrolls
|
|
77
|
+
is a pane inside the page. */
|
|
78
|
+
useLayoutEffect(() => {
|
|
79
|
+
const place = () => {
|
|
80
|
+
const cardNode = card.current;
|
|
81
|
+
const ringNode = ring.current;
|
|
82
|
+
const scrimNode = scrim.current;
|
|
83
|
+
if (!cardNode || !ringNode || !scrimNode)
|
|
84
|
+
return;
|
|
85
|
+
const node = stop.anchor ? anchorFor(stop.anchor) : null;
|
|
86
|
+
if (!node) {
|
|
87
|
+
/* The anchorless stop, and the fallback if an anchor vanished mid-tour. Centred, with no ring, which is honest about pointing at nothing. */
|
|
88
|
+
ringNode.hidden = true;
|
|
89
|
+
scrimNode.classList.add('dim');
|
|
90
|
+
cardNode.style.top = '50%';
|
|
91
|
+
cardNode.style.left = '50%';
|
|
92
|
+
cardNode.style.transform = 'translate(-50%, -50%)';
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
cardNode.style.transform = '';
|
|
96
|
+
scrimNode.classList.remove('dim');
|
|
97
|
+
const box = viewportBox(node);
|
|
98
|
+
const pad = 6;
|
|
99
|
+
ringNode.hidden = false;
|
|
100
|
+
ringNode.style.top = `${box.top - pad}px`;
|
|
101
|
+
ringNode.style.left = `${box.left - pad}px`;
|
|
102
|
+
ringNode.style.width = `${box.width + pad * 2}px`;
|
|
103
|
+
ringNode.style.height = `${box.height + pad * 2}px`;
|
|
104
|
+
const gap = 14;
|
|
105
|
+
const edge = 8;
|
|
106
|
+
const size = viewportBox(cardNode);
|
|
107
|
+
const { width: vw, height: vh } = viewportSize();
|
|
108
|
+
const centreX = () => box.left + box.width / 2 - size.width / 2;
|
|
109
|
+
const centreY = () => box.top + box.height / 2 - size.height / 2;
|
|
110
|
+
const sides = [
|
|
111
|
+
{ fits: vh - box.bottom - gap >= size.height + edge, top: box.bottom + gap, left: centreX() },
|
|
112
|
+
{ fits: vw - box.right - gap >= size.width + edge, top: centreY(), left: box.right + gap },
|
|
113
|
+
{ fits: box.top - gap >= size.height + edge, top: box.top - gap - size.height, left: centreX() },
|
|
114
|
+
{ fits: box.left - gap >= size.width + edge, top: centreY(), left: box.left - gap - size.width },
|
|
115
|
+
];
|
|
116
|
+
/* Nothing fits — centred is the least bad answer. */
|
|
117
|
+
const chosen = sides.find((s) => s.fits) ?? { top: centreY(), left: centreX() };
|
|
118
|
+
const clamp = (value, max) => Math.min(Math.max(edge, value), Math.max(edge, max - edge));
|
|
119
|
+
cardNode.style.top = `${clamp(chosen.top, vh - size.height)}px`;
|
|
120
|
+
cardNode.style.left = `${clamp(chosen.left, vw - size.width)}px`;
|
|
121
|
+
};
|
|
122
|
+
place();
|
|
123
|
+
addHostListener(window, 'resize', place);
|
|
124
|
+
addHostListener(window, 'scroll', place, true);
|
|
125
|
+
return () => {
|
|
126
|
+
removeHostListener(window, 'resize', place);
|
|
127
|
+
removeHostListener(window, 'scroll', place, true);
|
|
128
|
+
};
|
|
129
|
+
}, [stop]);
|
|
130
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { ref: scrim, className: "tour-scrim", onClick: onEnd }), _jsx("div", { ref: ring, className: "tour-ring", "aria-hidden": "true" }), _jsxs("div", { ref: card, className: "tour-card", role: "dialog", "aria-modal": "true", "aria-labelledby": "tour-title", children: [_jsx("p", { className: "tour-step", children: say('tourStep', { step: at + 1, count: stops.length }) }), _jsx("h2", { id: "tour-title", className: "tour-title", children: stop.title }), stop.code ? _jsx("code", { className: "tour-code", children: stop.code }) : null, _jsx("p", { className: "tour-body", children: stop.body }), _jsxs("div", { className: "tour-actions", children: [_jsx("button", { type: "button", className: "ghost tour-skip", hidden: last, onClick: onEnd, children: say('skip') }), _jsx("button", { type: "button", className: "ghost", hidden: at === 0, onClick: () => go(-1), children: say('common.back') }), _jsx("button", { ref: next, type: "button", className: "tour-next", onClick: () => (last ? onEnd() : go(1)), children: last ? say('common.done') : say('common.next') })] })] })] }));
|
|
131
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ColumnMeta, TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
2
|
+
import { AvatarText, Dressed } from './Dressed.js';
|
|
3
|
+
export { AvatarText, Dressed };
|
|
4
|
+
interface ValueProps {
|
|
5
|
+
col: ColumnMeta | undefined;
|
|
6
|
+
value: unknown;
|
|
7
|
+
/** The table the value belongs to, for the app's dress. Absent in the workbench's raw readings. */
|
|
8
|
+
tableId?: string;
|
|
9
|
+
/** Keep long text inline in constrained previews; full fields retain their prose layout. */
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
/** Whether an address, a number or a page may be a link. Not where the value
|
|
12
|
+
stands inside a target of its own — a card, a row that opens — since a
|
|
13
|
+
link inside a button is neither; a compact value is one of those unless
|
|
14
|
+
its caller says. */
|
|
15
|
+
links?: boolean;
|
|
16
|
+
/** Formatted text drawn whole even where the value is compact: a conversation's message is read, not glanced at. */
|
|
17
|
+
wholeText?: boolean;
|
|
18
|
+
/** The record the value is of, where a money rule reads its currency from another of its columns (money.ts). */
|
|
19
|
+
row?: Readonly<Record<string, unknown>>;
|
|
20
|
+
}
|
|
21
|
+
/** A value as the record and the page show it: dressed when the app says, plain otherwise. */
|
|
22
|
+
export declare function Value(props: ValueProps): import("react").JSX.Element;
|
|
23
|
+
interface RefJumpProps {
|
|
24
|
+
references: {
|
|
25
|
+
table: string;
|
|
26
|
+
column: string;
|
|
27
|
+
};
|
|
28
|
+
value: unknown;
|
|
29
|
+
/** The referenced record's name, when the page fetched it; the id stays in the tooltip. */
|
|
30
|
+
label?: unknown;
|
|
31
|
+
table?: TableMeta;
|
|
32
|
+
column?: string;
|
|
33
|
+
row?: Record<string, unknown>;
|
|
34
|
+
/** A card's title or its "View dealer" foot: the same jump, said and dressed as the card needs. */
|
|
35
|
+
className?: string;
|
|
36
|
+
text?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function RefJump(props: RefJumpProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* One value, rendered by what it is — shared by every view that shows fields.
|
|
4
|
+
*
|
|
5
|
+
* `Dressed` is the app's dress when a display rule reaches the value: a
|
|
6
|
+
* currency, a percent with its bar, a toned pill, a relative day. `Value`
|
|
7
|
+
* is the plain rendering by the grid's planner. `RefJump` is a foreign key
|
|
8
|
+
* as the walk it is: the value, the table it points at, a hover that shows
|
|
9
|
+
* the row, a click that goes there.
|
|
10
|
+
*/
|
|
11
|
+
import { Fragment } from 'react';
|
|
12
|
+
import { api, columnDisplay, emptyWord, findTable, openRecord, refsFrom, state } from '../core.js';
|
|
13
|
+
import { opensRecord } from '../recordIntent.js';
|
|
14
|
+
import { dressFor, linkFor, maskedText, ruleSays } from './valueModel.js';
|
|
15
|
+
import { rowCurrency } from '@mistriwork/engine/shared/money.js';
|
|
16
|
+
import { dueOpen } from './dueOpen.js';
|
|
17
|
+
import { JsonValue } from './JsonValue.js';
|
|
18
|
+
import { jsonValueOf, previewOf } from './jsonModel.js';
|
|
19
|
+
import { TAGS_TYPE, tagChips } from '@mistriwork/engine/shared/tagLists.js';
|
|
20
|
+
import { AvatarText, Dressed, Said } from './Dressed.js';
|
|
21
|
+
import { ValueSlot } from './valueRenderers.js';
|
|
22
|
+
import { say } from '../copy/record/components/Value.js';
|
|
23
|
+
import { shellBody } from '../shellHost.js';
|
|
24
|
+
/* Drawn here and in the grid; the rules that draw them read no global (Dressed.tsx). */
|
|
25
|
+
export { AvatarText, Dressed };
|
|
26
|
+
/** A value that is a link: mail, a call, or a web page, which opens beside the App rather than in place of it. */
|
|
27
|
+
function ValueLink({ link }) {
|
|
28
|
+
const text = breakable(link.text);
|
|
29
|
+
/* The break points are not words: the link is named by its text whole. */
|
|
30
|
+
const named = { title: link.text, ...(typeof text === 'string' ? {} : { 'aria-label': link.text }) };
|
|
31
|
+
return link.kind === 'url' ? (_jsx("a", { className: "value-link", href: link.href, target: "_blank", rel: "noopener noreferrer", ...named, children: text })) : (_jsx("a", { className: "value-link", href: link.href, ...named, children: text }));
|
|
32
|
+
}
|
|
33
|
+
/* An address has no spaces, so where a value wraps it would break mid-word.
|
|
34
|
+
It may break after an @ or a slash and before a dot, a hyphen or a query's
|
|
35
|
+
marks — where a reader sees the parts — and nowhere else unless one part
|
|
36
|
+
alone is wider than its column (overflow-wrap). The text is unchanged. */
|
|
37
|
+
function breakable(text) {
|
|
38
|
+
const parts = text.split(/(?<=[@/])|(?=[.\-_?#&=])/);
|
|
39
|
+
if (parts.length < 2)
|
|
40
|
+
return text;
|
|
41
|
+
return parts.map((part, index) => (_jsxs(Fragment, { children: [index > 0 && _jsx("wbr", {}), part] }, index)));
|
|
42
|
+
}
|
|
43
|
+
/** A value as the record and the page show it: dressed when the app says, plain otherwise. */
|
|
44
|
+
export function Value(props) {
|
|
45
|
+
const { col, value, tableId, compact = false } = props;
|
|
46
|
+
const rule = tableId === undefined ? null : columnDisplay(tableId, col?.name ?? '');
|
|
47
|
+
/* The App's own renderer, where its display rule names one: the value drawn
|
|
48
|
+
the platform's way until it has arrived, and whenever it cannot draw. An
|
|
49
|
+
empty value is the platform's to say, as it is in a grid cell. */
|
|
50
|
+
const renderer = rule?.component?.id;
|
|
51
|
+
if (renderer &&
|
|
52
|
+
tableId !== undefined &&
|
|
53
|
+
maskedText(rule, value) === undefined &&
|
|
54
|
+
value !== null &&
|
|
55
|
+
value !== undefined &&
|
|
56
|
+
shellBody().classList.contains('app-mode')) {
|
|
57
|
+
const { component: _component, ...rest } = rule;
|
|
58
|
+
return (_jsx(ValueSlot, { id: renderer, value: value, column: { name: col?.name ?? '', resource: tableId }, context: "record", compact: compact, ...ruleSays(rest, value), fallback: _jsx(PlatformValue, { ...props }) }));
|
|
59
|
+
}
|
|
60
|
+
/* A rule's `face` sets the column's values in that face; the wrapper exists only then. */
|
|
61
|
+
return rule?.face ? (_jsx("span", { className: `face-${rule.face}`, children: _jsx(PlatformValue, { ...props }) })) : (_jsx(PlatformValue, { ...props }));
|
|
62
|
+
}
|
|
63
|
+
function PlatformValue({ col, value, tableId, compact = false, links = !compact, wholeText = false, row }) {
|
|
64
|
+
if (value === null || value === undefined)
|
|
65
|
+
return (_jsx("span", { className: "null", title: "null", children: emptyWord() }));
|
|
66
|
+
/* A record's tags (tagLists.ts) are chips wherever a value is drawn: a phone's row cards said Thread's as the
|
|
67
|
+
JSON the database answered. */
|
|
68
|
+
if (col?.type === TAGS_TYPE) {
|
|
69
|
+
const chips = tagChips(value);
|
|
70
|
+
if (!chips.length)
|
|
71
|
+
return (_jsx("span", { className: "null", title: "null", children: emptyWord() }));
|
|
72
|
+
return (_jsx("span", { className: "value-tags", children: chips.map((chip) => (_jsx("span", { className: `record-tag tone tone-${chip.tone ?? 'neutral'}`, children: chip.label }, chip.label))) }));
|
|
73
|
+
}
|
|
74
|
+
const json = jsonValueOf(col, value);
|
|
75
|
+
if (json)
|
|
76
|
+
return compact ? _jsx("span", { className: "json-preview-text", children: previewOf(json.value) }) : _jsx(JsonValue, { value: json.value });
|
|
77
|
+
const declared = tableId === undefined ? null : columnDisplay(tableId, col?.name ?? '');
|
|
78
|
+
/* A money column whose currency is the record's own: the code its row holds. */
|
|
79
|
+
const owned = declared?.currencyColumn && row
|
|
80
|
+
? { ...declared, currency: rowCurrency(declared, row, declared.currency ?? '') || undefined }
|
|
81
|
+
: declared;
|
|
82
|
+
/* A due date passed on a row still open is drawn in the warning tone (dueOpen.ts). */
|
|
83
|
+
const rule = owned?.format === 'relative' && dueOpen(tableId, col?.name ?? '', row) ? { ...owned, open: true } : owned;
|
|
84
|
+
/* An address, a number or a page is something to act on: in an App it is
|
|
85
|
+
a link (by its rule, or by a column named for it); the Workbench shows
|
|
86
|
+
the data as it is. */
|
|
87
|
+
/* A masked value is the placeholder before it is anything else: not a link to the value, not the author's renderer. */
|
|
88
|
+
const mask = tableId === undefined ? undefined : maskedText(rule, value);
|
|
89
|
+
if (mask !== undefined)
|
|
90
|
+
return _jsx(Dressed, { dress: { kind: 'masked', text: mask }, compact: compact });
|
|
91
|
+
const link = tableId === undefined || !links ? null : linkFor(col?.name, value, rule, shellBody().classList.contains('app-mode'));
|
|
92
|
+
if (link)
|
|
93
|
+
return _jsx(ValueLink, { link: link });
|
|
94
|
+
const dress = tableId === undefined ? null : dressFor(rule, value);
|
|
95
|
+
if (dress)
|
|
96
|
+
return _jsx(Dressed, { dress: dress, compact: compact && !(wholeText && dress.kind === 'richText') });
|
|
97
|
+
/* In an App a vocabulary's value is a word, as its chip says it ("On hold"
|
|
98
|
+
for `on_hold`); the Workbench shows the data exactly. */
|
|
99
|
+
return _jsx(Said, { col: col, value: value, compact: compact, app: shellBody().classList.contains('app-mode') });
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The whole key a composite reference names, read off the row it sits in:
|
|
103
|
+
* a chip that opened with only its own column carried half a key.
|
|
104
|
+
*/
|
|
105
|
+
function referenceKey(table, columnName, row, targetTable) {
|
|
106
|
+
const fk = (state.schema ? refsFrom(table.id) : []).find((f) => f.to.table === targetTable && f.from.columns.length > 1 && f.from.columns.includes(columnName));
|
|
107
|
+
if (!fk)
|
|
108
|
+
return null;
|
|
109
|
+
const values = fk.from.columns.map((c) => row[c]);
|
|
110
|
+
if (values.some((v) => v === null || v === undefined))
|
|
111
|
+
return null;
|
|
112
|
+
return Object.fromEntries(fk.to.columns.map((c, i) => [c, values[i]]));
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The record a reference names, by the key its address is made of. A real
|
|
116
|
+
* foreign key names the primary key already; an App's declared reference
|
|
117
|
+
* (a soft key, `product_sku` → `product.sku`) names another unique column,
|
|
118
|
+
* so the primary key is read once, through the reader's own grants. A value
|
|
119
|
+
* nothing matches opens nothing, as a dangling key would.
|
|
120
|
+
*/
|
|
121
|
+
async function byPrimaryKey(target, column, value) {
|
|
122
|
+
const keys = target.columns.filter((item) => item.primaryKey).map((item) => item.name);
|
|
123
|
+
if (!keys.length || (keys.length === 1 && keys[0] === column))
|
|
124
|
+
return { [column]: value };
|
|
125
|
+
try {
|
|
126
|
+
const data = (await api('/api/query', {
|
|
127
|
+
table: target.id,
|
|
128
|
+
columns: keys,
|
|
129
|
+
filter: { groups: [[{ column, op: '=', value: value }]] },
|
|
130
|
+
limit: 1,
|
|
131
|
+
offset: 0,
|
|
132
|
+
}));
|
|
133
|
+
const row = data.rows?.[0];
|
|
134
|
+
return row ? Object.fromEntries(keys.map((name) => [name, row[name]])) : null;
|
|
135
|
+
}
|
|
136
|
+
catch {
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/* A signature points at the file row its picture is kept in: the record shows the picture, not a link to the file. */
|
|
141
|
+
export function RefJump(props) {
|
|
142
|
+
const { table, column, value } = props;
|
|
143
|
+
const rule = table && column ? columnDisplay(table.id, column) : null;
|
|
144
|
+
if (rule?.signature && typeof rule.signature === 'object' && value !== null && value !== undefined && value !== '')
|
|
145
|
+
return _jsx(Value, { col: { name: column }, value: value, tableId: table.id });
|
|
146
|
+
return _jsx(RefJumpLink, { ...props });
|
|
147
|
+
}
|
|
148
|
+
function RefJumpLink({ references, value, label, table, column, row, className, text }) {
|
|
149
|
+
const target = findTable(references.table);
|
|
150
|
+
const key = table && column && row ? referenceKey(table, column, row, references.table) : null;
|
|
151
|
+
const named = label !== undefined && label !== null && String(label) !== '';
|
|
152
|
+
const peek = value !== null && value !== undefined && value !== ''
|
|
153
|
+
? { 'data-ref-table': references.table, 'data-ref-column': references.column, 'data-ref-value': String(value) }
|
|
154
|
+
: {};
|
|
155
|
+
return (_jsxs("button", { type: "button", className: className ? `ref-jump ${className}` : 'ref-jump', title: named
|
|
156
|
+
? say('openReference', { label: String(label), table: references.table, key: String(value) })
|
|
157
|
+
: say('openTableKey', { table: references.table, key: String(value) }), ...peek, "data-opens": target && key ? opensRecord(target.id, key) : undefined, onClick: () => {
|
|
158
|
+
if (!target)
|
|
159
|
+
return;
|
|
160
|
+
/* In the view the walk is already in: a reference followed from a page
|
|
161
|
+
opens the referenced record as a page. */
|
|
162
|
+
const title = `${references.table} ${String(value)}`;
|
|
163
|
+
if (key) {
|
|
164
|
+
void openRecord(target.id, key, title);
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
void byPrimaryKey(target, references.column, value).then((found) => {
|
|
168
|
+
if (found)
|
|
169
|
+
void openRecord(target.id, found, title);
|
|
170
|
+
});
|
|
171
|
+
}, children: [_jsx("span", { className: "ref-jump-value", children: text ?? (named ? String(label) : String(value)) }), !named && text === undefined && _jsx("span", { className: "ref-jump-table", children: references.table })] }));
|
|
172
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Everything you already did, in one card.
|
|
4
|
+
*
|
|
5
|
+
* Three questions in the order they are asked: what am I coming back to
|
|
6
|
+
* (pinned), where was I (a page *and* the record), and what else is there
|
|
7
|
+
* (saved filters, then every page, behind a filter box because a database
|
|
8
|
+
* with forty pages is one where finding a page matters more than seeing
|
|
9
|
+
* them all). A link, not a card, for each: a dim label says which
|
|
10
|
+
* question, the links are the answer, and there is one box on the screen
|
|
11
|
+
* instead of eleven.
|
|
12
|
+
*
|
|
13
|
+
* Absent entirely when nothing is saved — an empty "Saved" heading above a
|
|
14
|
+
* schema diagram is a promise the tool has not kept yet.
|
|
15
|
+
*/
|
|
16
|
+
import { useState } from 'react';
|
|
17
|
+
import { go, pageView, tableView } from '../core.js';
|
|
18
|
+
import { pinnedPages, recentVisits } from '../pagemarks.js';
|
|
19
|
+
import { allSavedFilters } from '../views.js';
|
|
20
|
+
import { say } from '../copy/workbench/components/WorkPanel.js';
|
|
21
|
+
function Link({ name, detail, title, onClick }) {
|
|
22
|
+
return (_jsxs("button", { type: "button", className: "landing-link", title: title, onClick: onClick, children: [_jsx("span", { className: "landing-link-name", children: name }), detail ? _jsx("span", { className: "landing-link-detail", children: detail }) : null] }));
|
|
23
|
+
}
|
|
24
|
+
function Line({ label, className = 'landing-links', children }) {
|
|
25
|
+
return (_jsxs("li", { className: "shape-line", children: [_jsx("span", { className: "shape-label", children: label }), _jsx("span", { className: className, children: children })] }));
|
|
26
|
+
}
|
|
27
|
+
export function WorkPanel({ pages }) {
|
|
28
|
+
const [needle, setNeedle] = useState('');
|
|
29
|
+
const byId = new Map(pages.map((p) => [p.id, p]));
|
|
30
|
+
const openPage = (pageId, base, key, label) => go(pageView(pageId, byId.get(pageId)?.base ?? base, key, label), 'reset');
|
|
31
|
+
const pinned = pinnedPages();
|
|
32
|
+
/* A position, not a page: the record is what makes it worth going back
|
|
33
|
+
to, and a list of page names would send you to the chooser you already
|
|
34
|
+
got past. */
|
|
35
|
+
const positions = recentVisits().filter((v) => v.label);
|
|
36
|
+
const saved = allSavedFilters();
|
|
37
|
+
const shown = pages.filter((p) => `${p.name} ${p.base}`.toLowerCase().includes(needle));
|
|
38
|
+
/* Nothing to resume is not an empty card: on a database nobody has worked
|
|
39
|
+
in yet, the schema below really is the most useful thing on screen. */
|
|
40
|
+
if (!pinned.length && !positions.length && !saved.length && !pages.length)
|
|
41
|
+
return null;
|
|
42
|
+
return (_jsxs("section", { className: "landing-pages shape", children: [_jsx("h2", { className: "landing-heading", children: say('yourWork') }), _jsxs("ul", { className: "shape-lines", children: [pinned.length ? (_jsx(Line, { label: say('pinned'), children: pinned.map((page) => (_jsx(Link, { name: page.name, detail: page.base, title: say('aPageAboutOne', { base: page.base }), onClick: () => openPage(page.id, page.base) }, page.id))) })) : null, positions.length ? (_jsx(Line, { label: say('common.where'), className: "landing-links landing-rows", children: positions.slice(0, 6).map((visit, i) => (_jsx(Link, { name: visit.label ?? '', detail: visit.name, title: `${visit.name} — ${visit.label}`, onClick: () => openPage(visit.pageId, visit.base, visit.key, visit.label) }, i))) })) : null, saved.length ? (_jsx(Line, { label: say('common.savedFilters'), children: saved.map((view, i) => (_jsx(Link, { name: view.name, detail: view.table, title: view.query, onClick: () => go(tableView(view.table, view.query), 'reset') }, i))) })) : null, pages.length ? (_jsxs("li", { className: "shape-line landing-all", children: [_jsx("span", { className: "shape-label", children: say('allPages', { pagesCount: pages.length }) }), _jsxs("div", { children: [_jsx("input", { type: "search", className: "landing-page-filter", placeholder: say('filterPages'), "aria-label": say('filterPagesLabel'), value: needle, onChange: (e) => setNeedle(e.target.value.trim().toLowerCase()) }), _jsx("div", { className: "landing-page-list", children: shown.length ? (shown.map((page) => (_jsxs("button", { type: "button", className: "landing-page", onClick: () => openPage(page.id, page.base), children: [_jsx("span", { className: "landing-page-name", children: page.name }), _jsx("span", { className: "landing-page-base", children: page.base }), _jsx("span", { className: "landing-page-source", children: say(page.source === 'config' ? 'sourceConfig' : page.source === 'saved' ? 'sourceYours' : 'sourceSuggested') })] }, page.id)))) : (_jsx("p", { className: "note", children: say('noPageOfThatName') })) })] })] })) : null] })] }));
|
|
43
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ResolvedWorkflowStatus as WorkflowDefinition } from '@mistriwork/engine/shared/pageModel.js';
|
|
2
|
+
export declare function WorkflowStatus({ definition, value, reachable, }: {
|
|
3
|
+
definition: WorkflowDefinition;
|
|
4
|
+
value: unknown;
|
|
5
|
+
reachable?: ReadonlySet<string>;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The workflow strip: where a record stands in its status vocabulary. Only
|
|
4
|
+
* the current state is known. Where the author says the steps are an order
|
|
5
|
+
* (`ordered`), the steps before it are drawn as passed — the order written
|
|
6
|
+
* down, not a history of the record — and a state outside the steps passes
|
|
7
|
+
* none. A step one of the record's own edits can move it to now is marked
|
|
8
|
+
* as reachable; the strip still moves nothing, the record's actions do.
|
|
9
|
+
*
|
|
10
|
+
* An ordered strip reads as a way travelled: a passed step's mark is filled
|
|
11
|
+
* in the ink, the current one in the accent, the steps ahead hollow, and a
|
|
12
|
+
* hairline joins each step to the next — in the ink where it has been walked.
|
|
13
|
+
*/
|
|
14
|
+
import { useLayoutEffect, useRef } from 'react';
|
|
15
|
+
import { workflowLabel } from '@mistriwork/engine/shared/pageModel.js';
|
|
16
|
+
import { say } from '../copy/record/components/WorkflowStatus.js';
|
|
17
|
+
export function WorkflowStatus({ definition, value, reachable, }) {
|
|
18
|
+
const current = definition.steps.findIndex((step) => step.value === value);
|
|
19
|
+
const known = current !== -1;
|
|
20
|
+
/* On a narrow screen the strip is one line that scrolls sideways (page.css); the current step is brought into
|
|
21
|
+
view by moving the strip alone, never the page, so a record opened at "Negotiation" shows Negotiation. */
|
|
22
|
+
const strip = useRef(null);
|
|
23
|
+
useLayoutEffect(() => {
|
|
24
|
+
const ol = strip.current;
|
|
25
|
+
const step = ol?.querySelector('[aria-current="step"]');
|
|
26
|
+
if (!ol || !step || ol.scrollWidth <= ol.clientWidth)
|
|
27
|
+
return;
|
|
28
|
+
/* The strip starts at the step before the current one, whole, so the way in reads "Proposal — Negotiation"
|
|
29
|
+
rather than from the middle of a word. */
|
|
30
|
+
const from = step.previousElementSibling ?? step;
|
|
31
|
+
ol.scrollLeft = Math.max(0, from.offsetLeft - ol.offsetLeft);
|
|
32
|
+
edges(ol);
|
|
33
|
+
}, [current]);
|
|
34
|
+
return (_jsxs("div", { className: "workflow-status", children: [_jsx("ol", { ref: strip, onScroll: (event) => edges(event.currentTarget), "aria-label": say('workflowStatus'), className: "workflow-steps", "data-scrolls": "", "data-ordered": definition.ordered === true || undefined, children: definition.steps.map((step, index) => {
|
|
35
|
+
const passed = definition.ordered === true && known && index < current;
|
|
36
|
+
const next = index !== current && reachable?.has(String(step.value)) === true;
|
|
37
|
+
return (_jsxs("li", { "aria-current": index === current ? 'step' : undefined, "data-passed": passed || undefined, "data-reachable": next || undefined, children: [_jsx("span", { className: "workflow-marker", "aria-hidden": "true" }), step.label, passed && _jsxs("span", { className: "visually-hidden", children: [" ", say('passed')] }), next && _jsxs("span", { className: "visually-hidden", children: [" ", say('availableFromHere')] })] }, step.value));
|
|
38
|
+
}) }), !known && (_jsxs("p", { className: "workflow-unmapped", role: "status", children: [say('currentState'), " ", value === null || value === undefined || value === '' ? say('notSet') : workflowLabel(String(value))] }))] }));
|
|
39
|
+
}
|
|
40
|
+
/* Which ends of a scrolling strip have more beyond them, for its fade (page.css). */
|
|
41
|
+
function edges(ol) {
|
|
42
|
+
ol.toggleAttribute('data-more-before', ol.scrollLeft > 1);
|
|
43
|
+
ol.toggleAttribute('data-more-after', ol.scrollLeft + ol.clientWidth < ol.scrollWidth - 1);
|
|
44
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A real confirmation before write mode, naming the database. "Are you
|
|
4
|
+
* sure?" teaches nothing; the name of the thing you are about to be able to
|
|
5
|
+
* change does, and so do the terms.
|
|
6
|
+
*/
|
|
7
|
+
import { useRef } from 'react';
|
|
8
|
+
import { Button } from '@mistriwork/ui/Button.js';
|
|
9
|
+
import { Modal } from '@mistriwork/ui/Modal.js';
|
|
10
|
+
import { say } from '../copy/record/components/WriteConfirm.js';
|
|
11
|
+
export function WriteConfirmDialog({ label, onDone }) {
|
|
12
|
+
const dialog = useRef(null);
|
|
13
|
+
const settled = useRef(false);
|
|
14
|
+
const finish = (ok) => {
|
|
15
|
+
if (settled.current)
|
|
16
|
+
return;
|
|
17
|
+
settled.current = true;
|
|
18
|
+
onDone(ok);
|
|
19
|
+
};
|
|
20
|
+
return (_jsxs(Modal, { className: "confirm", ref: dialog, onClose: () => finish(false), ariaLabel: say('enableWriteMode'), children: [_jsx("h2", { children: say('enableWriteMode') }), _jsxs("p", { children: [say('enableEditingOfExisting'), " ", _jsx("strong", { children: label }), "?"] }), _jsxs("ul", { className: "confirm-terms", children: [_jsx("li", { children: say('fieldChangesStayPending') }), _jsx("li", { children: say('theReviewNamesTheRecord') }), _jsx("li", { children: say('anUpdateThatWould') }), _jsx("li", { children: say('writeModeStaysOnForThisDatabase') }), _jsx("li", { children: say('itAppliesToThisDatabase') })] }), _jsxs("div", { className: "confirm-actions", children: [_jsx(Button, { onClick: () => {
|
|
21
|
+
finish(false);
|
|
22
|
+
dialog.current?.close();
|
|
23
|
+
}, children: say('keepViewing') }), _jsx(Button, { intent: "primary", onClick: () => {
|
|
24
|
+
finish(true);
|
|
25
|
+
dialog.current?.close();
|
|
26
|
+
}, children: say('enableWriteModeButton') })] })] }));
|
|
27
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What an App list's column menu offers, before anything is drawn.
|
|
3
|
+
*
|
|
4
|
+
* The Workbench's header menu (ThMenu.tsx) is a power tool: every condition
|
|
5
|
+
* the language has, sampled values, the language itself beside each entry.
|
|
6
|
+
* In an App that was a dozen entries and a scrollbar under a reader who
|
|
7
|
+
* wanted the column sorted or narrowed. So an App's menu has at most five:
|
|
8
|
+
* the two sorts, worded by what the column holds; one Filter… that opens the
|
|
9
|
+
* rail's own control for the column; Clear filter while there is one; and
|
|
10
|
+
* Pin column, last. Pure, so the menu and its tests read one rule.
|
|
11
|
+
*/
|
|
12
|
+
import { type ColumnMeta } from '@mistriwork/engine/shared/schema.js';
|
|
13
|
+
export type AppMenuKey = 'asc' | 'desc' | 'filter' | 'clear' | 'pin';
|
|
14
|
+
interface AppMenuEntry {
|
|
15
|
+
key: AppMenuKey;
|
|
16
|
+
label: string;
|
|
17
|
+
detail?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The words the two sorts say, fitted to what the column holds: text reads
|
|
21
|
+
* A → Z, a figure Low → high, a date Oldest first. A flag and a vocabulary
|
|
22
|
+
* name their ends — `No → Yes`, `New → Lost` — in the words the list shows
|
|
23
|
+
* them by: a vocabulary sorts in the order it was declared, a native enum by
|
|
24
|
+
* the engine and one over text through the read's ORDER BY (schema.ts
|
|
25
|
+
* `declaredOrder`), so a pipeline reads as one rather than A → Z.
|
|
26
|
+
*/
|
|
27
|
+
export declare function sortWords(kind: string, meta: (Pick<ColumnMeta, 'type'> & {
|
|
28
|
+
allowed?: readonly string[];
|
|
29
|
+
}) | undefined, say?: (value: string) => string): readonly [asc: string, desc: string];
|
|
30
|
+
interface EntryInput {
|
|
31
|
+
words: readonly [string, string];
|
|
32
|
+
/** Whether the header may sort this column at all (an index, a small table, an API's `sortable`). */
|
|
33
|
+
sortable: boolean;
|
|
34
|
+
/** The order the list is in on this column now, explicit or the default one. */
|
|
35
|
+
current: 'asc' | 'desc' | null;
|
|
36
|
+
/** Whether the column takes a filter (a real column; over an API, one it documents). */
|
|
37
|
+
filterable: boolean;
|
|
38
|
+
/** Whether the reader's question narrows this column beyond the lit tab. */
|
|
39
|
+
filtered: boolean;
|
|
40
|
+
/** What Clear filter takes off, in the reader's words: "Status is not Done". */
|
|
41
|
+
cleared?: string;
|
|
42
|
+
pinned: boolean;
|
|
43
|
+
}
|
|
44
|
+
/** The menu, in order. An entry that repeats the current sort is dropped: it would do nothing. */
|
|
45
|
+
export declare function appMenuEntries({ words, sortable, current, filterable, filtered, cleared, pinned }: EntryInput): AppMenuEntry[];
|
|
46
|
+
export {};
|