@mistriwork/kit 1.0.0-rc.11 → 1.0.0-rc.13
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 +29 -0
- package/dist/client/components/FieldArranger.js +83 -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 +14 -0
- package/dist/client/connectionList.js +149 -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 +327 -0
- package/dist/client/core.js +1082 -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 +19 -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 +38 -0
- package/dist/client/palette.js +360 -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 +27 -0
- package/dist/client/savedPages.js +135 -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 +103 -0
- package/dist/client/write.js +885 -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 +136 -3
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The table view around the grid: the result's head, the grid, the pager —
|
|
4
|
+
* and, in the workbench, the tab strip above them.
|
|
5
|
+
*
|
|
6
|
+
* The fetch is not here: TableRoom asks, keyed by the question, and hands
|
|
7
|
+
* the answer in. A page, a page size or a header's sort re-asks in place
|
|
8
|
+
* (core.js `refine`), so this stays mounted while the previous answer stays
|
|
9
|
+
* on screen; `at` says which page that answer is, and `busy` that the next
|
|
10
|
+
* is on its way. What this draws is the answer.
|
|
11
|
+
*/
|
|
12
|
+
import { PresentationSwitch } from './PresentationSwitch.js';
|
|
13
|
+
import { createPortal } from 'react-dom';
|
|
14
|
+
import { useCrumbSlots, verbsAt } from './crumbSlot.js';
|
|
15
|
+
import { PAGE_SIZES, beginNavigation, currentEntry, findTable, go, keyOf, pageSize, pageView, prefersPages, refine, render, setPageSize, state, } from '../core.js';
|
|
16
|
+
import { explicitLimit, sortCount, sortDirection } from '../clauses.js';
|
|
17
|
+
import { NewRowButton } from './NewRecordButton.js';
|
|
18
|
+
import { copyListView } from '../filterbar.js';
|
|
19
|
+
import { pagesFor } from '../page.js';
|
|
20
|
+
import { sortBy } from '../thmenu.js';
|
|
21
|
+
import { primaryKey } from '@mistriwork/engine/shared/schema.js';
|
|
22
|
+
import { Dropdown } from './Dropdown.js';
|
|
23
|
+
import { stepList, takePageStep } from './pageStep.js';
|
|
24
|
+
import { formatApprox, formatNumber } from '../locale.js';
|
|
25
|
+
import { ExportControl } from './ExportHold.js';
|
|
26
|
+
import { Grid } from './Grid.js';
|
|
27
|
+
import { trailListFor } from '../recordTrail.js';
|
|
28
|
+
import { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
29
|
+
import { BesideDetail } from './besideDetail.js';
|
|
30
|
+
import { editableCells } from './gridCellModel.js';
|
|
31
|
+
import { canEditRow } from '../rowEditing.js';
|
|
32
|
+
import { RecordSummaries, tableSaysMore } from './RecordSummaries.js';
|
|
33
|
+
import { canUseDatabaseTools } from '../connectionScope.js';
|
|
34
|
+
import { shell } from '../shellMode.js';
|
|
35
|
+
import { onDemand, useArrived } from './onDemand.js';
|
|
36
|
+
import { RowHosts, RowTrailHosts } from './RowHost.js';
|
|
37
|
+
import { RowActions } from './RowActions.js';
|
|
38
|
+
import { GridSelection } from './GridSelection.js';
|
|
39
|
+
import { offeredBulk } from './useBulkSelection.js';
|
|
40
|
+
import { GridOrder } from './useListOrder.js';
|
|
41
|
+
import { say } from '../copy/lists/components/TableView.js';
|
|
42
|
+
import { Icon } from './Icon.js';
|
|
43
|
+
/** A grid draws a selection column only for a reader offered a bulk action — or "Set field…" — on keyed rows. */
|
|
44
|
+
function selectableGrid(table, actions, interactive, editable) {
|
|
45
|
+
if (!interactive || (!actions.length && !editable.length) || !primaryKey(table).length)
|
|
46
|
+
return false;
|
|
47
|
+
const offered = offeredBulk(table, actions, interactive, undefined, undefined, editable);
|
|
48
|
+
return offered.bulk.length > 0 || offered.commands.length > 0 || offered.fields.length > 0;
|
|
49
|
+
}
|
|
50
|
+
/* A cell's editor, fetched the first time a list that edits in place is
|
|
51
|
+
drawn. The list waits for it (TableRoom.tsx, Rows) as it waits for its rows,
|
|
52
|
+
so a click on a cell never opens the row for want of the editor. */
|
|
53
|
+
export const GridCellEdit = onDemand(() => import('./GridCellEditor.js'), 'GridCellEdit', { quiet: true });
|
|
54
|
+
/** Whether the connection on screen is an API (adapters/http), whose tables get the API tab (ApiOperations.tsx). */
|
|
55
|
+
export function isApiConnection() {
|
|
56
|
+
return state.schema?.dialect === 'http';
|
|
57
|
+
}
|
|
58
|
+
/** Open this table's page: the configured one if there is one, else the suggested. */
|
|
59
|
+
async function openPageFor(tableId) {
|
|
60
|
+
const isCurrent = beginNavigation();
|
|
61
|
+
let pageId = `suggested:${tableId}`;
|
|
62
|
+
try {
|
|
63
|
+
const [configured] = await pagesFor(tableId);
|
|
64
|
+
if (configured && !configured.error)
|
|
65
|
+
pageId = configured.id;
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
// No config pages to read is not a reason to refuse the suggested one.
|
|
69
|
+
}
|
|
70
|
+
if (isCurrent())
|
|
71
|
+
go(pageView(pageId, tableId), 'push');
|
|
72
|
+
}
|
|
73
|
+
/** The explorer's tabs over a table: rows, definition, diagram — and the doors beside them. */
|
|
74
|
+
export function ViewTabs({ entry }) {
|
|
75
|
+
return (_jsxs("div", { className: "tabs", "data-scrolls": "", children: [_jsx("div", { className: "tabs-list", role: "tablist", "aria-label": say('tableViews'), children: (isApiConnection()
|
|
76
|
+
? [
|
|
77
|
+
['rows', say('rows')],
|
|
78
|
+
['api', 'API'],
|
|
79
|
+
['diagram', say('diagram')],
|
|
80
|
+
]
|
|
81
|
+
: [
|
|
82
|
+
['rows', say('rows')],
|
|
83
|
+
['ddl', say('definition')],
|
|
84
|
+
['diagram', say('diagram')],
|
|
85
|
+
])
|
|
86
|
+
.filter(([id]) => (id !== 'ddl' && id !== 'api') || canUseDatabaseTools())
|
|
87
|
+
.map(([id, label]) => (_jsx("button", { type: "button", role: "tab", className: "tab", "aria-selected": (entry.tab ?? 'rows') === id, onClick: () => go({ ...entry, tab: id }, 'replace'), children: label }, id))) }), _jsx("button", { type: "button", className: "tab tab-page", title: say('aPageAboutOne'), onClick: () => void openPageFor(entry.table), children: say('page') }), _jsx("button", { type: "button", className: "tab tab-copy-entry", title: say('copyThisListAsAnApp'), onClick: () => void copyListView(entry), children: say('copyAppEntry') })] }));
|
|
88
|
+
}
|
|
89
|
+
function ResultHead({ entry, data, chrome, interactive, exportOn, at, headRef, inCrumbs = false, }) {
|
|
90
|
+
const tools = verbsAt(useCrumbSlots());
|
|
91
|
+
/* The page's own list says its count in the crumb bar (or its heading row,
|
|
92
|
+
where no bar is drawn) and its range in the pager; Export joins New at
|
|
93
|
+
that row's end, and no stats row is drawn. */
|
|
94
|
+
if (inCrumbs && tools) {
|
|
95
|
+
return (_jsx("div", { className: "result-head-anchor", ref: headRef, children: exportOn && createPortal(_jsx(ExportControl, { entry: entry, data: data }), tools) }));
|
|
96
|
+
}
|
|
97
|
+
/* Any other App list (one drawn inside a record or a dashboard) names its
|
|
98
|
+
count in its own title: "2 rows" and "sorted by id ↓" under it were the
|
|
99
|
+
Workbench's instruments, which stay in the Workbench. */
|
|
100
|
+
if (shell().inApp() && !chrome) {
|
|
101
|
+
const own = findTable(data.table);
|
|
102
|
+
return (_jsxs("div", { className: "result-head result-head-app", ref: headRef, children: [!prefersPages() && own && _jsx(NewRowButton, { table: own }), exportOn && _jsx(ExportControl, { entry: entry, data: data })] }));
|
|
103
|
+
}
|
|
104
|
+
const first = at.page * at.size + 1;
|
|
105
|
+
const shown = at.page * at.size + data.rows.length;
|
|
106
|
+
const total = data.total;
|
|
107
|
+
/* The range on screen. "60 of 907" on page three read as sixty rows
|
|
108
|
+
shown, and the last page's bare total read as a table that fits. It is
|
|
109
|
+
the answer's own page: while the next one is fetched, these are still
|
|
110
|
+
the rows in front of the reader. */
|
|
111
|
+
const range = at.page > 0 || (total !== undefined && total > shown) ? `${formatNumber(first)}–${formatNumber(shown)}` : null;
|
|
112
|
+
const table = findTable(data.table);
|
|
113
|
+
return (_jsxs("div", { className: "result-head", ref: headRef, children: [chrome && _jsx("h1", { className: "result-title", children: data.table }), total === undefined ? (_jsx("span", { className: "stat", children: range && data.rows.length > 0
|
|
114
|
+
? say('rowsShown', { range })
|
|
115
|
+
: say('countShown', { rows: say('common.rows2', { count: data.rows.length }) }) })) : data.exactTotal === false ? (_jsx("button", { type: "button", className: "stat stat-estimate", title: say('roughlyFromTheDatabases'), onClick: () => go({ ...entry, exactCount: true }, 'replace'), children: range ? say('rowsRangeOfAbout', { range, total: formatApprox(total) }) : say('aboutTotalRows', { total: formatApprox(total) }) })) : data.cappedTotal ? (_jsx("button", { type: "button", className: "stat stat-estimate", title: say('countingStoppedHereClick'), onClick: () => go({ ...entry, exactCount: true }, 'replace'), children: range ? say('rowsRangeOfAtLeast', { range, total: formatNumber(total) }) : say('totalRows', { total: formatNumber(total) }) })) : (_jsx("span", { className: "stat", children: range ? say('rowsRangeOfTotal', { range, total: formatNumber(total) }) : say('common.rows2', { count: total }) })), !shell().inApp() && _jsx("span", { className: "stat", children: say('ms', { ms: data.ms }) }), interactive && data.order?.implicit && data.order.order.length > 0 && (_jsxs("button", { type: "button", className: "stat stat-order", title: say('rowsHaveToCome'), onClick: () => sortBy(data.order.order[0].column, data.order.order[0].direction), children: [say('sortedBy', { column: data.order.order[0].column }), data.order.order[0].direction === 'desc' ? ' ↓' : ' ↑'] })), !prefersPages() && table && _jsx(NewRowButton, { table: table }), exportOn && _jsx(ExportControl, { entry: entry, data: data })] }));
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Paging, for a table somebody might actually reach the end of. The size
|
|
119
|
+
* control sits on the left whether or not there is a second page; "Last"
|
|
120
|
+
* and the page box appear only when the total is a real count.
|
|
121
|
+
*
|
|
122
|
+
* The controls say where the reader asked to be (`state.page`), at once;
|
|
123
|
+
* the rows follow when they land. Every move is a refinement (core.js
|
|
124
|
+
* `refine`): the room is re-asked in place rather than started over.
|
|
125
|
+
*/
|
|
126
|
+
function Pager({ entry, data, at, range = false }) {
|
|
127
|
+
if (data.total === 0 && state.page === 0)
|
|
128
|
+
return null;
|
|
129
|
+
const app = shell().inApp();
|
|
130
|
+
// A query that names its own limit defines the whole result.
|
|
131
|
+
if (explicitLimit(entry.query))
|
|
132
|
+
return app ? null : _jsx("div", { className: "pager" });
|
|
133
|
+
const size = pageSize();
|
|
134
|
+
const shown = state.page * size + data.rows.length;
|
|
135
|
+
/* An estimated total cannot decide whether there is a next page; a full
|
|
136
|
+
page returned is the honest signal. */
|
|
137
|
+
const full = data.rows.length >= size;
|
|
138
|
+
const total = data.total;
|
|
139
|
+
// A bounded total says "at least", which cannot name the last page either.
|
|
140
|
+
const counted = data.exactTotal !== false && !data.cappedTotal && typeof total === 'number';
|
|
141
|
+
const more = counted ? total > shown : full;
|
|
142
|
+
const lastPage = counted ? Math.max(0, Math.ceil(total / size) - 1) : null;
|
|
143
|
+
/* An App's list that fits one page draws no pager at all: twelve rows
|
|
144
|
+
under "« First ← Previous Page [1] of 1 Next → Last »" was five
|
|
145
|
+
controls that could do nothing. */
|
|
146
|
+
if (app && state.page === 0 && !more)
|
|
147
|
+
return null;
|
|
148
|
+
/* Next, Previous and Last step from the rows on screen (pageStep.ts), so a
|
|
149
|
+
deep page is read by key and costs what the first does; a number typed
|
|
150
|
+
in the box, and First, are read by offset. */
|
|
151
|
+
const list = stepList(state.activeConnection ?? '', entry.table, entry.query, size);
|
|
152
|
+
const goTo = (page, how) => {
|
|
153
|
+
const wanted = Math.max(0, lastPage === null ? page : Math.min(page, lastPage));
|
|
154
|
+
if (wanted === state.page)
|
|
155
|
+
return;
|
|
156
|
+
/* Only the page the pager is on can be stepped from: while the next one
|
|
157
|
+
is fetched the rows on screen are the last answer's, and a second
|
|
158
|
+
click would step from them to the page already being read. */
|
|
159
|
+
const bounds = at.page === state.page && at.size === size ? data.bounds : undefined;
|
|
160
|
+
if (how === 'last' && counted)
|
|
161
|
+
takePageStep(list, wanted, { end: true }, total - wanted * size);
|
|
162
|
+
else if (how === 'next' && bounds)
|
|
163
|
+
takePageStep(list, wanted, { after: bounds.last });
|
|
164
|
+
else if (how === 'previous' && bounds && wanted > 0)
|
|
165
|
+
takePageStep(list, wanted, { before: bounds.first });
|
|
166
|
+
else
|
|
167
|
+
takePageStep(list, wanted);
|
|
168
|
+
refine(() => {
|
|
169
|
+
state.page = wanted;
|
|
170
|
+
render();
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
const step = (text, label, to, enabled, how) => (_jsxs("button", { type: "button", className: "step-button", "aria-label": label, disabled: !enabled, onClick: () => goTo(to, how), children: [how !== 'next' && how !== 'last' && _jsx(Icon, { name: "caret-left", size: 16 }), _jsx("span", { className: "step-label", children: text }), (how === 'next' || how === 'last') && _jsx(Icon, { name: "caret-right", size: 16 })] }));
|
|
174
|
+
const sizes = (_jsxs("div", { className: "pager-size", children: [_jsx("span", { children: say('rows') }), _jsx(Dropdown, { ariaLabel: say('rowsPerPage'), value: String(size), items: PAGE_SIZES.map((n) => ({ value: String(n), label: String(n) })), onChange: (n) => refine(() => {
|
|
175
|
+
setPageSize(Number(n));
|
|
176
|
+
render();
|
|
177
|
+
}) })] }));
|
|
178
|
+
const said = data.rows.length > 0 && (_jsxs("span", { className: `pager-range${app ? ' step-position' : ''}`, children: [formatNumber(state.page * size + 1), "\u2013", formatNumber(shown), counted ? say('common.ofTotal', { total: formatNumber(total) }) : ''] }));
|
|
179
|
+
/* An App's reader pages on: where they are, then Previous and Next. First,
|
|
180
|
+
Last and the page box are the Workbench's, where a table is walked. */
|
|
181
|
+
if (app) {
|
|
182
|
+
return (_jsxs("div", { className: "pager pager-app", children: [!shell().publicVisitor() && sizes, _jsxs("div", { className: "pager-steps step-control", children: [step(say('previous'), say('previousPage'), state.page - 1, state.page > 0, 'previous'), said, step(say('next'), say('nextPage'), state.page + 1, more, 'next')] })] }));
|
|
183
|
+
}
|
|
184
|
+
return (_jsxs("div", { className: "pager", children: [sizes, range && said, _jsxs("div", { className: "pager-steps pager-workbench step-control", children: [step(say('first'), say('firstPage'), 0, state.page > 0), step(say('previous'), say('previousPage'), state.page - 1, state.page > 0, 'previous'), counted ? (_jsxs("span", { className: "page-label step-position", children: [_jsx("span", { children: say('common.page') }), _jsx(PageBox, { page: state.page, last: lastPage, onGo: goTo }), _jsx("span", { children: say('ofPages', { count: formatNumber(lastPage + 1) }) })] })) : (_jsx("span", { className: "page-label step-position", children: say('pagePage', { page: formatNumber(state.page + 1) }) })), step(say('next'), say('nextPage'), state.page + 1, more, 'next'), counted && step(say('last'), say('lastPage'), lastPage, state.page < lastPage, 'last')] })] }));
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* The page box. It used to be uncontrolled and was reset by the repaint
|
|
188
|
+
* that followed every move; the pager is kept now, so the box follows the
|
|
189
|
+
* page it is on. What is typed stays typed while it names no page yet (an
|
|
190
|
+
* emptied box on the way to another number), and goes on leaving the box.
|
|
191
|
+
*/
|
|
192
|
+
function PageBox({ page, last, onGo }) {
|
|
193
|
+
const [typed, setTyped] = useState(null);
|
|
194
|
+
return (_jsx("input", { className: "page-input", type: "number", min: 1, max: last + 1, value: typed ?? String(page + 1), "aria-label": say('pageNumber'), onBlur: () => setTyped(null), onChange: (e) => {
|
|
195
|
+
const text = e.target.value;
|
|
196
|
+
if (text === '') {
|
|
197
|
+
setTyped('');
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
setTyped(null);
|
|
201
|
+
const asked = Number(text);
|
|
202
|
+
if (Number.isFinite(asked))
|
|
203
|
+
onGo(Math.round(asked) - 1);
|
|
204
|
+
} }));
|
|
205
|
+
}
|
|
206
|
+
export function TableView({ entry, data, chrome, interactive, hide, labels, referenceLabels, totals, density, rowActions, editable, inCrumbs, sizing, export: exportOn = true, summaries = false, embedded = false, presentation, present, actions, listLabel, order, recordNavigation = false, at: given, busy = false, }) {
|
|
207
|
+
/* Records or table: how a narrow screen shows the rows, the reader's pick. The page's own list draws the switch at
|
|
208
|
+
the end of its control strip (AppList), beside the tabs; anywhere else, over the rows. */
|
|
209
|
+
const [layout, setLayout] = useState('records');
|
|
210
|
+
const { controls } = useCrumbSlots();
|
|
211
|
+
const presentationSwitch = (element) => (inCrumbs && controls ? createPortal(element, controls) : element);
|
|
212
|
+
const table = findTable(data.table);
|
|
213
|
+
/* The cells this reader may edit in place: the view's `editable` over the
|
|
214
|
+
columns drawn, each still asked of the row (canEditRow) when drawn. */
|
|
215
|
+
const shownColumns = (data.columns ?? []).filter((name) => !hide?.includes(name));
|
|
216
|
+
const cells = interactive && !embedded && !presentation ? editableCells(table, editable, shownColumns) : new Map();
|
|
217
|
+
/* A dashboard's list that works as its room (embedded, interactive) offers its selection's "Set field…"
|
|
218
|
+
over the same columns, and edits no cell in place: a dashboard is not where a cell is typed into. */
|
|
219
|
+
const editing = [...new Set((interactive && embedded && !presentation ? editableCells(table, editable, shownColumns) : cells).values())];
|
|
220
|
+
const cellsKey = [...cells].join('\n');
|
|
221
|
+
const editorHere = useArrived(GridCellEdit, cells.size > 0);
|
|
222
|
+
/* The shell's marks in empty cells (a suggestion waiting on one); the slot is the shell's for its whole life, so the hook's place is fixed. */
|
|
223
|
+
const adornCell = shell().slots.useCellMarks?.(table, data?.rows ?? []);
|
|
224
|
+
const editCell = useMemo(() => {
|
|
225
|
+
if (!table || !cells.size || !editorHere)
|
|
226
|
+
return undefined;
|
|
227
|
+
return (row, drawn, draw, drawnLabel) => {
|
|
228
|
+
const column = cells.get(drawn);
|
|
229
|
+
const key = keyOf(table, row);
|
|
230
|
+
const meta = column === undefined ? undefined : table.columns.find((c) => c.name === column);
|
|
231
|
+
// A reference drawn by name is edited only when its key rode along with the row (appListModel's showClause).
|
|
232
|
+
if (!key || !meta || !Object.hasOwn(row, meta.name) || !canEditRow(table, key))
|
|
233
|
+
return undefined;
|
|
234
|
+
/* The name the cell already says — its label, or the path it draws by name — so the editor opens on it. */
|
|
235
|
+
const named = drawn !== meta.name ? row[drawn] : drawnLabel;
|
|
236
|
+
return (_jsx(GridCellEdit, { table: table, row: row, column: meta, recordKey: key, draw: draw, byName: drawn !== meta.name, ...(named === null || named === undefined || named === '' ? {} : { valueLabel: String(named) }) }));
|
|
237
|
+
};
|
|
238
|
+
}, [table, cellsKey, editorHere]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
239
|
+
const at = given ?? { page: state.page, size: pageSize() };
|
|
240
|
+
/* Beside a split's detail pane the grid keeps to its width, as an embedded one does. */
|
|
241
|
+
const beside = useContext(BesideDetail);
|
|
242
|
+
const hasSummaries = (summaries || embedded) &&
|
|
243
|
+
table &&
|
|
244
|
+
data.rows.length > 0 &&
|
|
245
|
+
primaryKey(table).length > 0 &&
|
|
246
|
+
primaryKey(table).every((c) => data.columns?.includes(c));
|
|
247
|
+
/* Records and Table are a choice only where the table says more than the records do; a list whose records say it all
|
|
248
|
+
has one reading, and two tabs for it are a decision with nothing to decide. */
|
|
249
|
+
const choice = hasSummaries &&
|
|
250
|
+
tableSaysMore(table, (data.columns ?? []).filter((name) => !hide?.includes(name)), data.rows, entry.query, referenceLabels);
|
|
251
|
+
const firstRow = explicitLimit(currentEntry()?.query ?? '') ? 0 : at.page * at.size;
|
|
252
|
+
/* A new page is read from its top. When every page was a repaint the room
|
|
253
|
+
emptied while the next one loaded and the pane fell back to the top by
|
|
254
|
+
itself; the room is kept now, so the head is brought back into view on
|
|
255
|
+
purpose, once the new page has landed and only if it had scrolled away.
|
|
256
|
+
Not for a sort: the header under the pointer is where the reader is. */
|
|
257
|
+
const head = useRef(null);
|
|
258
|
+
const turned = useRef(`${at.page}:${at.size}`);
|
|
259
|
+
useEffect(() => {
|
|
260
|
+
const now = `${at.page}:${at.size}`;
|
|
261
|
+
if (turned.current === now)
|
|
262
|
+
return;
|
|
263
|
+
turned.current = now;
|
|
264
|
+
head.current?.scrollIntoView({ block: 'nearest' });
|
|
265
|
+
}, [at.page, at.size]);
|
|
266
|
+
/* A presentation stands in for the grid only when the answer carries every
|
|
267
|
+
column it reads; an advanced query that dropped one keeps the grid. */
|
|
268
|
+
/* The list these rows are a page of, for every presentation of it: a
|
|
269
|
+
record opened from the grid, a card, a queue or a checklist steps past
|
|
270
|
+
the page with the same question (recordTrail.ts). A query that names its
|
|
271
|
+
own limit is the whole list, so no page follows this one. */
|
|
272
|
+
const list = explicitLimit(entry.query) ? undefined : trailListFor(entry.query, data);
|
|
273
|
+
/* The record beside this list — a split's detail — marked in it and kept
|
|
274
|
+
in view while J and K step (Rooms.tsx). */
|
|
275
|
+
const top = currentEntry();
|
|
276
|
+
const current = top?.kind === 'row' && top.table === entry.table ? top.key : undefined;
|
|
277
|
+
/* A view's hand order is live only while the question reads in it — its
|
|
278
|
+
sort is that column, ascending, and nothing else. A header, a tab's own
|
|
279
|
+
sort or the Sort menu reads the rows another way, and the handles go
|
|
280
|
+
until the order is back. */
|
|
281
|
+
const listOrder = order
|
|
282
|
+
? {
|
|
283
|
+
column: order,
|
|
284
|
+
active: sortCount(entry.query) === 1 && sortDirection(entry.query, order) === 'asc',
|
|
285
|
+
partial: at.page > 0 || (typeof data.total === 'number' ? data.total > data.rows.length : data.rows.length >= at.size),
|
|
286
|
+
}
|
|
287
|
+
: undefined;
|
|
288
|
+
const presented = presentation && present
|
|
289
|
+
? present({
|
|
290
|
+
presentation,
|
|
291
|
+
table,
|
|
292
|
+
data,
|
|
293
|
+
entry,
|
|
294
|
+
actions,
|
|
295
|
+
listLabel,
|
|
296
|
+
referenceLabels,
|
|
297
|
+
interactive,
|
|
298
|
+
recordNavigation,
|
|
299
|
+
list,
|
|
300
|
+
current,
|
|
301
|
+
order: listOrder,
|
|
302
|
+
at,
|
|
303
|
+
})
|
|
304
|
+
: null;
|
|
305
|
+
if (presented?.whole)
|
|
306
|
+
return presented.element;
|
|
307
|
+
if (presented)
|
|
308
|
+
return (_jsxs(_Fragment, { children: [data.rows.length ? presented.element : _jsx("p", { className: "checklist-empty", children: say('nothingHereRightNow') }), chrome && data.rows.length > 0 && (_jsx("p", { className: "checklist-count", children: typeof data.total === 'number' && data.exactTotal !== false && data.total > data.rows.length
|
|
309
|
+
? say('shownOfTotal', { shown: data.rows.length, total: `${data.total}${data.cappedTotal ? '+' : ''}` })
|
|
310
|
+
: say('shown', { rowsCount: data.rows.length }) })), presented.pages && (chrome ? state.page > 0 || data.rows.length >= pageSize() : shell().inApp()) && (_jsx(Pager, { entry: entry, data: data, at: at }))] }));
|
|
311
|
+
/* The grid, then what decorates its rows from outside: a checkbox in the
|
|
312
|
+
leading cell for a reader offered bulk actions, a grip there for a view
|
|
313
|
+
kept in hand order, a ⋯ at the end of each row when the view asks for
|
|
314
|
+
row menus. */
|
|
315
|
+
const gridOf = (rows) => (_jsx(Grid, { table: table, data: rows === data.rows ? data : { ...data, rows }, hide: hide, labels: labels, referenceLabels: referenceLabels, totals: totals, density: density, sizing: sizing, interactive: interactive, firstRow: firstRow, list: list, current: current, dropColumns: embedded || beside, editCell: editCell, ...(adornCell ? { adornCell } : {}) }));
|
|
316
|
+
const hasOrder = Boolean(listOrder && table);
|
|
317
|
+
const ordered = hasOrder && listOrder && table ? (_jsx(GridOrder, { table: table, rows: data.rows, order: listOrder, interactive: interactive, children: gridOf })) : (gridOf(data.rows));
|
|
318
|
+
const selected = table && selectableGrid(table, actions ?? [], interactive, editing) ? (_jsxs(RowHosts, { children: [_jsx(GridSelection, { table: table, rows: data.rows, actions: actions ?? [], interactive: interactive, editable: editing }), ordered] })) : !hasOrder ? (ordered) : (_jsx(RowHosts, { children: ordered }));
|
|
319
|
+
// A row's menu draws what the record's bar draws, so an action kept out of it (`header: false`) is no reason for a ⋯.
|
|
320
|
+
const tableGrid = rowActions && (interactive || embedded) && table && actions?.some((action) => action.header !== false) && primaryKey(table).length ? (_jsxs(RowTrailHosts, { children: [_jsx(RowActions, { table: table, rows: data.rows, actions: actions, onDone: () => render() }), selected] })) : (selected);
|
|
321
|
+
return (_jsxs(_Fragment, { children: [_jsx(ResultHead, { entry: entry, data: data, chrome: chrome, interactive: interactive, exportOn: exportOn, at: at, headRef: head, inCrumbs: inCrumbs }), _jsxs("div", { className: hasSummaries ? `responsive-results show-${embedded || !choice ? 'records' : layout}` : undefined, children: [hasSummaries && (_jsxs(_Fragment, { children: [!embedded &&
|
|
322
|
+
choice &&
|
|
323
|
+
presentationSwitch(_jsx(PresentationSwitch, { layout: layout, onChange: setLayout, label: say('common.listPresentation'), records: say('common.records'), table: say('common.table') })), _jsx(RecordSummaries, { table: table, data: data, columns: (data.columns ?? []).filter((name) => !hide?.includes(name)), labels: labels, referenceLabels: referenceLabels, list: list, query: entry.query, ...(adornCell ? { adornFact: (row, column) => adornCell(row, column, 'summary') } : {}) })] })), _jsx("div", { className: "result-table", "aria-busy": busy || undefined, children: tableGrid })] }), _jsx(Pager, { entry: entry, data: data, at: at, range: inCrumbs })] }));
|
|
324
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
2
|
+
export type Kind = 'boolean' | 'date' | 'number' | 'text' | string;
|
|
3
|
+
type Row = Record<string, unknown>;
|
|
4
|
+
export interface Typed {
|
|
5
|
+
label: string;
|
|
6
|
+
build: (value: string) => string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
type: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Offer {
|
|
11
|
+
options: Array<[string, string]>;
|
|
12
|
+
typed: Typed[];
|
|
13
|
+
ranges: Array<[string, string, string]>;
|
|
14
|
+
asStamp: (v: string) => string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* What the menu offers a column of this kind, given a sample of its rows.
|
|
18
|
+
* Dates get ranges, not equality; sampled values only where the column
|
|
19
|
+
* repeats; typed conditions always, because on a key the sample is a list
|
|
20
|
+
* of arbitrary values and the thing wanted is to name one.
|
|
21
|
+
*/
|
|
22
|
+
export declare function offersFor(name: string, kind: Kind, dateish: boolean, rows: Row[], metaType?: string): Offer;
|
|
23
|
+
interface FilterMenuProps {
|
|
24
|
+
anchor: HTMLElement;
|
|
25
|
+
name: string;
|
|
26
|
+
kind: Kind;
|
|
27
|
+
metaType?: string;
|
|
28
|
+
dateish: boolean;
|
|
29
|
+
rows: Row[];
|
|
30
|
+
table: TableMeta | undefined;
|
|
31
|
+
/** The columns as drawn, for the pin store's order. */
|
|
32
|
+
columns: string[];
|
|
33
|
+
entry: {
|
|
34
|
+
table: string;
|
|
35
|
+
query: string;
|
|
36
|
+
} | null;
|
|
37
|
+
onClose: () => void;
|
|
38
|
+
}
|
|
39
|
+
export declare function FilterMenu({ anchor, name, kind, metaType, dateish, rows, table, columns, entry, onClose }: FilterMenuProps): import("react").JSX.Element;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The column header's ⌄ menu: pin, sort, and a filter built from what the
|
|
4
|
+
* column holds — sampled values where the column repeats, typed conditions
|
|
5
|
+
* always, ranges where a range means anything. The sampling round trip
|
|
6
|
+
* stays in `thmenu.js`; this is the menu, and the rule for what it offers.
|
|
7
|
+
*/
|
|
8
|
+
import { Menu } from '@base-ui/react/menu';
|
|
9
|
+
import { layoutViewport, zoomAnchor } from '@mistriwork/ui/internal/anchor.js';
|
|
10
|
+
import { go, quote, refine, render, tableView } from '../core.js';
|
|
11
|
+
import { addSort, nextSort, sortCount, sortDirection } from '../clauses.js';
|
|
12
|
+
import { SORT_SCAN_BELOW } from '../columns.js';
|
|
13
|
+
import { composeFilter } from '../compose.js';
|
|
14
|
+
import { promptFor, promptForRange } from '../prompt.js';
|
|
15
|
+
import { pinnedFor, togglePin } from '../pins.js';
|
|
16
|
+
import { formatNumber } from '../locale.js';
|
|
17
|
+
import { say } from '../copy/columnMenu/components/ThMenu.js';
|
|
18
|
+
import { popupContainer } from '../shellHost.js';
|
|
19
|
+
/** Quote a typed value only when the grammar needs it. Trimmed, then handed to the one quoter. */
|
|
20
|
+
const quoteValue = (text) => quote(String(text).trim());
|
|
21
|
+
/**
|
|
22
|
+
* What the menu offers a column of this kind, given a sample of its rows.
|
|
23
|
+
* Dates get ranges, not equality; sampled values only where the column
|
|
24
|
+
* repeats; typed conditions always, because on a key the sample is a list
|
|
25
|
+
* of arbitrary values and the thing wanted is to name one.
|
|
26
|
+
*/
|
|
27
|
+
export function offersFor(name, kind, dateish, rows, metaType) {
|
|
28
|
+
const options = [];
|
|
29
|
+
if (kind === 'boolean') {
|
|
30
|
+
options.push(['is true', `${name} = true`], ['is false', `${name} = false`]);
|
|
31
|
+
}
|
|
32
|
+
else if (kind === 'date' || dateish) {
|
|
33
|
+
for (const phrase of ['today', 'last 7 days', 'last 30 days', 'this month', 'last month', 'this year'])
|
|
34
|
+
options.push([phrase, `${name} = ${phrase}`]);
|
|
35
|
+
}
|
|
36
|
+
else if (kind === 'number') {
|
|
37
|
+
const values = rows.map((r) => Number(r[name])).filter((n) => Number.isFinite(n));
|
|
38
|
+
if (values.length) {
|
|
39
|
+
const mid = Math.round((Math.min(...values) + Math.max(...values)) / 2);
|
|
40
|
+
options.push([say('greaterThan', { mid: formatNumber(mid) }), `${name} > ${mid}`], [say('lessThan', { mid: formatNumber(mid) }), `${name} < ${mid}`]);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const counts = new Map();
|
|
44
|
+
for (const row of rows) {
|
|
45
|
+
const value = row[name];
|
|
46
|
+
if (value === null || value === undefined)
|
|
47
|
+
continue;
|
|
48
|
+
counts.set(value, (counts.get(value) ?? 0) + 1);
|
|
49
|
+
}
|
|
50
|
+
const distinct = [...counts.entries()].sort((a, b) => b[1] - a[1]);
|
|
51
|
+
if (distinct.length && distinct.length <= Math.max(3, rows.length / 2)) {
|
|
52
|
+
/* The counts are honest about their sample: bare numbers read as table totals. */
|
|
53
|
+
const sampled = rows.length >= 400 ? say('ofTheFirst', { rowsCount: rows.length }) : say('ofHere', { rowsCount: rows.length });
|
|
54
|
+
for (const [value, count] of distinct.slice(0, 8)) {
|
|
55
|
+
const text = String(value);
|
|
56
|
+
const quoted = /^[\w.-]+$/.test(text) ? text : `"${text.replace(/"/g, '')}"`;
|
|
57
|
+
options.push([`${text} · ${count} ${sampled}`, `${name} = ${quoted}`]);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
options.push(['is empty', `${name} is empty`], ['is not empty', `${name} is not empty`]);
|
|
61
|
+
/* A timestamp gets a time in its picker and a date does not, read off the declared type so the answer is the same before the table has rows. */
|
|
62
|
+
const hasTime = /time|timestamp/i.test(metaType ?? '');
|
|
63
|
+
const dateInput = hasTime ? 'datetime-local' : 'date';
|
|
64
|
+
/* `2026-01-01T09:30` is what the control hands back and not what any of these databases write. */
|
|
65
|
+
const asStamp = (v) => String(v).replace('T', ' ');
|
|
66
|
+
const typed = kind === 'number'
|
|
67
|
+
? [
|
|
68
|
+
{ label: say('equalsAValue'), build: (v) => `${name} = ${v}`, placeholder: say('value'), type: 'text' },
|
|
69
|
+
{ label: say('greaterThanMore'), build: (v) => `${name} > ${v}`, placeholder: say('minimum'), type: 'text' },
|
|
70
|
+
{ label: say('lessThanMore'), build: (v) => `${name} < ${v}`, placeholder: say('maximum'), type: 'text' },
|
|
71
|
+
]
|
|
72
|
+
: kind === 'date'
|
|
73
|
+
? [
|
|
74
|
+
{ label: say('onOrAfter'), build: (v) => `${name} >= ${quoteValue(asStamp(v))}`, placeholder: say('date'), type: dateInput },
|
|
75
|
+
{ label: say('before'), build: (v) => `${name} < ${quoteValue(asStamp(v))}`, placeholder: say('date'), type: dateInput },
|
|
76
|
+
]
|
|
77
|
+
: [
|
|
78
|
+
{ label: say('equalsAValue'), build: (v) => `${name} = ${quoteValue(v)}`, placeholder: say('value'), type: 'text' },
|
|
79
|
+
{ label: say('contains'), build: (v) => `${name} contains ${quoteValue(v)}`, placeholder: say('textToLook'), type: 'text' },
|
|
80
|
+
{ label: say('starts'), build: (v) => `${name} startswith ${quoteValue(v)}`, placeholder: say('prefix'), type: 'text' },
|
|
81
|
+
/* The escape hatch from the three above, which all escape `%`. Here the wildcards are the question. */
|
|
82
|
+
{
|
|
83
|
+
label: say('matchesAPattern'),
|
|
84
|
+
build: (v) => `${name} like ${quoteValue(v)}`,
|
|
85
|
+
placeholder: say('common.patternEGWh'),
|
|
86
|
+
type: 'text',
|
|
87
|
+
},
|
|
88
|
+
];
|
|
89
|
+
const ranges = kind === 'date' ? [[say('between'), dateInput, say('date')]] : kind === 'number' ? [[say('between'), 'text', say('value')]] : [];
|
|
90
|
+
return { options, typed, ranges, asStamp };
|
|
91
|
+
}
|
|
92
|
+
export function FilterMenu({ anchor, name, kind, metaType, dateish, rows, table, columns, entry, onClose }) {
|
|
93
|
+
const offer = offersFor(name, kind, dateish, rows, metaType);
|
|
94
|
+
const pinned = table ? pinnedFor(table, columns) : [];
|
|
95
|
+
/* Sort and filter from a header refine the room on screen rather than
|
|
96
|
+
starting it over (core.js `refine`): the grid is re-asked in place. */
|
|
97
|
+
const apply = (condition) => {
|
|
98
|
+
if (entry)
|
|
99
|
+
refine(() => go(tableView(entry.table, composeFilter(entry.query, entry.table, name, condition)), 'replace'));
|
|
100
|
+
};
|
|
101
|
+
const add = (condition) => {
|
|
102
|
+
apply(condition);
|
|
103
|
+
onClose();
|
|
104
|
+
};
|
|
105
|
+
/* Sorting always offered, whatever the index says, and the cost stated rather than the action withheld. */
|
|
106
|
+
const indexLeads = !table?.indexed || table.indexed.includes(name);
|
|
107
|
+
const bigTable = table?.approxRows != null &&
|
|
108
|
+
table.approxRows >= SORT_SCAN_BELOW;
|
|
109
|
+
const sortsAlready = Boolean(entry) && sortCount(entry.query) > 0 && sortDirection(entry.query, name) === null;
|
|
110
|
+
const sortItem = (label, direction, append = false) => entry ? (_jsxs(Item, { onClick: () => {
|
|
111
|
+
refine(() => go(tableView(entry.table, (append ? addSort : nextSort)(entry.query, name, direction)), 'replace'));
|
|
112
|
+
onClose();
|
|
113
|
+
}, children: [_jsx("span", { className: "th-menu-label", children: label }), _jsx("span", { className: "th-menu-cond", children: indexLeads || !bigTable ? `sort ${name}` : say('noIndexAFull') })] }, label)) : null;
|
|
114
|
+
const ask = async (typed) => {
|
|
115
|
+
onClose();
|
|
116
|
+
const value = await promptFor({
|
|
117
|
+
title: say('filter', { name }),
|
|
118
|
+
label: typed.label,
|
|
119
|
+
placeholder: typed.placeholder,
|
|
120
|
+
type: typed.type,
|
|
121
|
+
confirmLabel: say('common.apply'),
|
|
122
|
+
hint: say('addsAConditionToTheQuery'),
|
|
123
|
+
});
|
|
124
|
+
if (value)
|
|
125
|
+
apply(typed.build(value));
|
|
126
|
+
};
|
|
127
|
+
const askRange = async ([, inputType, fieldLabel]) => {
|
|
128
|
+
onClose();
|
|
129
|
+
const range = await promptForRange({
|
|
130
|
+
title: say('filter', { name }),
|
|
131
|
+
fromLabel: say('fieldFrom', { fieldLabel }),
|
|
132
|
+
toLabel: say('fieldTo', { fieldLabel }),
|
|
133
|
+
type: inputType,
|
|
134
|
+
hint: say('bothEndsAreIncluded'),
|
|
135
|
+
placeholder: undefined,
|
|
136
|
+
});
|
|
137
|
+
if (range)
|
|
138
|
+
apply(`${name} between ${quoteValue(offer.asStamp(range.from))} and ${quoteValue(offer.asStamp(range.to))}`);
|
|
139
|
+
};
|
|
140
|
+
/* Base UI owns the menu's keyboard and its dismissal: focus moves in on
|
|
141
|
+
open, arrows walk the items, Escape and a click outside close only this
|
|
142
|
+
layer, and focus goes back to the ⌄ that opened it. Placed under the
|
|
143
|
+
header on the zoom-aware ruler, flipped or shifted when it would run
|
|
144
|
+
off an edge — which happens constantly on a wide table scrolled to the end. */
|
|
145
|
+
return (_jsx(Menu.Root, { open: true, onOpenChange: (next) => {
|
|
146
|
+
if (next)
|
|
147
|
+
return;
|
|
148
|
+
/* Dismissed rather than used: the keyboard goes back to the ⌄. */
|
|
149
|
+
if (anchor.isConnected)
|
|
150
|
+
anchor.focus();
|
|
151
|
+
onClose();
|
|
152
|
+
}, children: _jsx(Menu.Portal, { container: popupContainer(), children: _jsx(Menu.Positioner, { anchor: () => zoomAnchor(anchor), positionMethod: "fixed", side: "bottom", align: "start", sideOffset: 4, collisionBoundary: layoutViewport(), collisionPadding: 12, style: { zIndex: 40 }, children: _jsxs(Menu.Popup, { className: "th-menu", finalFocus: () => (anchor.isConnected ? anchor : false), children: [table ? (_jsxs(Item, { onClick: () => {
|
|
153
|
+
togglePin(table, columns, name);
|
|
154
|
+
onClose();
|
|
155
|
+
render();
|
|
156
|
+
}, children: [_jsx("span", { className: "th-menu-label", children: pinned.includes(name) ? say('unpinThisColumn') : say('pinThisColumn') }), _jsx("span", { className: "th-menu-cond", children: pinned.includes(name) ? say('letItScrollAway') : say('keepItInView') })] })) : null, sortItem(say('sortAscending'), 'asc'), sortItem(say('sortDescending'), 'desc'), sortsAlready ? sortItem(say('thenByAscending'), 'asc', true) : null, sortsAlready ? sortItem(say('thenByDescending'), 'desc', true) : null, table ? _jsx(Menu.Separator, { className: "th-menu-sep" }) : null, offer.typed.map((typed) => (_jsx(Item, { className: "th-menu-item th-menu-typed", onClick: () => void ask(typed), children: _jsx("span", { className: "th-menu-label", children: typed.label }) }, typed.label))), offer.ranges.map((range) => (_jsx(Item, { className: "th-menu-item th-menu-typed", onClick: () => void askRange(range), children: _jsx("span", { className: "th-menu-label", children: range[0] }) }, range[0]))), offer.typed.length ? _jsx(Menu.Separator, { className: "th-menu-sep" }) : null, offer.options.map(([label, condition]) => (_jsxs(Item, { onClick: () => add(condition), children: [_jsx("span", { className: "th-menu-label", children: label }), _jsx("span", { className: "th-menu-cond", children: condition })] }, condition + label)))] }) }) }) }));
|
|
157
|
+
}
|
|
158
|
+
/** One row of the menu, drawn as the button it always was. */
|
|
159
|
+
function Item({ className = 'th-menu-item', onClick, children }) {
|
|
160
|
+
/* The handlers close the menu themselves (onClose unmounts it), so the
|
|
161
|
+
item does not also ask Base UI to — that told the caller twice. */
|
|
162
|
+
return (_jsx(Menu.Item, { render: _jsx("button", { type: "button", className: className }), nativeButton: true, closeOnClick: false, onClick: onClick, children: children }));
|
|
163
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { Modal } from '@mistriwork/ui/Modal.js';
|
|
4
|
+
import { Dropdown } from './Dropdown.js';
|
|
5
|
+
import { DonutChart, LineChart } from './Chart.js';
|
|
6
|
+
import { GridSkeleton } from './Skeleton.js';
|
|
7
|
+
import { setTheme, themeChoice } from '../theme.js';
|
|
8
|
+
import { setVisualPalette, visualPaletteChoice, visualPaletteOptions, setVisualTheme, visualThemeChoice, visualThemeOptions, VISUAL_THEME_EVENT, VISUAL_THEME_REGISTRY_EVENT, } from '../visualTheme.js';
|
|
9
|
+
import { say } from '../copy/workbench/components/ThemeLab.js';
|
|
10
|
+
import { addHostListener, removeHostListener } from '../shellHost.js';
|
|
11
|
+
const SERIES = [
|
|
12
|
+
{ key: '2026-01', value: 12 },
|
|
13
|
+
{ key: '2026-02', value: 19 },
|
|
14
|
+
{ key: '2026-03', value: 16 },
|
|
15
|
+
{ key: '2026-04', value: 28 },
|
|
16
|
+
];
|
|
17
|
+
/** Shared controls and deterministic sample data; no business API requests. */
|
|
18
|
+
export function ThemeLab({ onDone }) {
|
|
19
|
+
const modal = useRef(null);
|
|
20
|
+
const chart = useRef(null);
|
|
21
|
+
const [chartWidth, setChartWidth] = useState(480);
|
|
22
|
+
const [, refresh] = useState(0);
|
|
23
|
+
const [name, setName] = useState('Northwind');
|
|
24
|
+
const [status, setStatus] = useState('active');
|
|
25
|
+
const [confirmation, setConfirmation] = useState(false);
|
|
26
|
+
const after = (write) => {
|
|
27
|
+
write();
|
|
28
|
+
refresh((n) => n + 1);
|
|
29
|
+
};
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
const node = chart.current;
|
|
32
|
+
if (!node)
|
|
33
|
+
return;
|
|
34
|
+
const measure = () => setChartWidth(Math.max(120, node.clientWidth));
|
|
35
|
+
const observer = new ResizeObserver(measure);
|
|
36
|
+
observer.observe(node);
|
|
37
|
+
measure();
|
|
38
|
+
return () => observer.disconnect();
|
|
39
|
+
}, []);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
const update = () => refresh((n) => n + 1);
|
|
42
|
+
addHostListener(window, VISUAL_THEME_REGISTRY_EVENT, update);
|
|
43
|
+
addHostListener(window, VISUAL_THEME_EVENT, update);
|
|
44
|
+
return () => {
|
|
45
|
+
removeHostListener(window, VISUAL_THEME_REGISTRY_EVENT, update);
|
|
46
|
+
removeHostListener(window, VISUAL_THEME_EVENT, update);
|
|
47
|
+
};
|
|
48
|
+
}, []);
|
|
49
|
+
return (_jsxs(Modal, { className: "theme-lab", ariaLabel: say('themeLab'), ref: modal, onClose: onDone, children: [_jsxs("header", { className: "theme-lab-head", children: [_jsx("h2", { children: say('themeLab') }), _jsx("button", { type: "button", className: "ghost", onClick: () => modal.current?.close(), children: say('common.close') })] }), _jsxs("div", { className: "theme-lab-controls", children: [_jsxs("label", { children: [say('preferences.visualTheme'), _jsx(Dropdown, { ariaLabel: say('preferences.visualTheme'), value: visualThemeChoice(), items: visualThemeOptions().map((item) => ({ ...item, swatches: [...item.swatches] })), onChange: (value) => after(() => setVisualTheme(value)) })] }), visualPaletteOptions().length > 1 && (_jsxs("label", { children: [say('preferences.palette'), _jsx(Dropdown, { ariaLabel: say('preferences.palette'), value: visualPaletteChoice(), items: visualPaletteOptions().map((item) => ({ ...item, swatches: [...item.swatches] })), onChange: (value) => after(() => setVisualPalette(value)) })] })), _jsxs("label", { children: [say('preferences.colorMode'), _jsx(Dropdown, { ariaLabel: say('preferences.colorMode'), value: themeChoice(), items: [
|
|
50
|
+
{ value: 'system', label: say('preferences.system') },
|
|
51
|
+
{ value: 'light', label: say('preferences.light') },
|
|
52
|
+
{ value: 'dark', label: say('preferences.dark') },
|
|
53
|
+
], onChange: (value) => after(() => setTheme(value)) })] })] }), _jsxs("div", { className: "theme-lab-grid", children: [_jsxs("section", { className: "theme-lab-section", children: [_jsx("h3", { children: say('fieldsHeading') }), _jsxs("div", { className: "theme-lab-fields", children: [_jsxs("label", { children: [say('common.name'), _jsx("input", { className: "cell-edit", value: name, onChange: (event) => setName(event.target.value), "aria-invalid": !name.trim(), "aria-describedby": !name.trim() ? 'theme-lab-name-error' : undefined })] }), !name.trim() && (_jsx("span", { id: "theme-lab-name-error", role: "alert", children: say('nameIsRequired') })), _jsxs("label", { children: [say('common.status'), _jsx(Dropdown, { ariaLabel: say('sampleStatus'), value: status, onChange: setStatus, items: [
|
|
54
|
+
{ value: 'active', label: say('active') },
|
|
55
|
+
{ value: 'pending', label: say('pending') },
|
|
56
|
+
{ value: 'closed', label: say('closed') },
|
|
57
|
+
] })] }), _jsxs("label", { children: [say('amount'), _jsx("input", { className: "cell-edit", type: "number", defaultValue: 1250, min: 0, step: 50 })] }), _jsxs("label", { children: [say('reference'), _jsx("input", { value: "INV-1042", disabled: true })] })] }), _jsxs("div", { className: "theme-lab-actions", children: [_jsxs("label", { children: [_jsx("input", { type: "checkbox", defaultChecked: true }), " ", say('active')] }), _jsx("button", { type: "button", onClick: () => setConfirmation(true), children: say('confirmSample') }), _jsx("button", { type: "button", disabled: true, children: say('unavailable') })] })] }), _jsxs("section", { className: "theme-lab-section", children: [_jsx("h3", { children: say('common.records') }), _jsx("div", { className: "theme-lab-table", children: _jsxs("table", { children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: say('invoice') }), _jsx("th", { children: say('amount') }), _jsx("th", { children: say('common.status') })] }) }), _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", { children: "INV-1042" }), _jsx("td", { children: "$1,250.00" }), _jsx("td", { children: _jsx("span", { className: "tone tone-good", children: say('paid') }) })] }), _jsxs("tr", { children: [_jsx("td", { children: "INV-1043" }), _jsx("td", { children: "$875.50" }), _jsx("td", { children: _jsx("span", { className: "tone tone-warn", children: say('pending') }) })] }), _jsxs("tr", { children: [_jsx("td", { children: "INV-1044" }), _jsx("td", { children: "$320.00" }), _jsx("td", { children: _jsx("span", { className: "tone tone-bad", children: say('overdue') }) })] })] })] }) }), _jsx("ul", { className: "theme-lab-colors", children: [
|
|
58
|
+
[say('accent'), '--accent'],
|
|
59
|
+
[say('positive'), '--status-good'],
|
|
60
|
+
[say('warning'), '--status-warning'],
|
|
61
|
+
[say('negative'), '--status-critical'],
|
|
62
|
+
].map(([label, token]) => (_jsxs("li", { children: [_jsx("span", { className: "theme-lab-swatch", style: { background: `var(${token})` } }), label] }, token))) }), _jsx("pre", { tabIndex: 0, children: _jsx("code", { children: 'invoice status = paid\nshow reference, total\nsort total desc' }) })] }), _jsxs("section", { className: "theme-lab-section", children: [_jsx("h3", { children: say('revenue') }), _jsx("div", { ref: chart, children: _jsx(LineChart, { rows: SERIES, wide: chartWidth }) })] }), _jsxs("section", { className: "theme-lab-section", children: [_jsx("h3", { children: say('sources') }), _jsx(DonutChart, { rows: [
|
|
63
|
+
{ key: 'Direct', value: 42 },
|
|
64
|
+
{ key: 'Referral', value: 31 },
|
|
65
|
+
{ key: 'Partner', value: 27 },
|
|
66
|
+
] })] }), _jsxs("section", { className: "theme-lab-section", children: [_jsx("h3", { children: say('loading') }), _jsx(GridSkeleton, { columns: 3, rows: 3 })] }), _jsxs("section", { className: "theme-lab-section", children: [_jsx("h3", { children: say('empty') }), _jsx(DonutChart, { rows: [] })] })] }), confirmation && (_jsxs(Modal, { className: "confirm", ariaLabel: say('confirmSample'), onClose: () => setConfirmation(false), children: [_jsx("h2", { children: say('confirmSample') }), _jsx("p", { children: name || say('common.untitled') }), _jsxs("div", { className: "theme-lab-actions", children: [_jsx("button", { type: "button", onClick: () => setConfirmation(false), children: say('common.cancel') }), _jsx("button", { type: "button", onClick: () => setConfirmation(false), children: say('confirm') })] })] }))] }));
|
|
67
|
+
}
|