@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,696 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* An app's list page: the table through the app's own words.
|
|
4
|
+
*
|
|
5
|
+
* This is the middle of the shape an app is made of — filters → lists →
|
|
6
|
+
* detail pages — and it is deliberately the *real* table view underneath:
|
|
7
|
+
* the vanilla grid with the explorer chrome off, drawn into a host, not a
|
|
8
|
+
* lesser grid. Sorting, the header filter menus, the pager all still work;
|
|
9
|
+
* what changes is the dressing: the app's heading, its filter tabs with live
|
|
10
|
+
* counts, the reader's own views after them, and a filter bar in place of
|
|
11
|
+
* the hidden query bar — a search, a picker per filter and the applied
|
|
12
|
+
* filters said as chips in the same row (ListFilterBar.tsx) — or, where the
|
|
13
|
+
* view says `filterBar: 'rail'`, a rail of facets beside the rows
|
|
14
|
+
* (FilterRail.tsx), a sheet on a phone.
|
|
15
|
+
*
|
|
16
|
+
* The counts and the saved views are Queries: a tab's badge is a minute's
|
|
17
|
+
* cache shared by every list on the connection, and a saved view
|
|
18
|
+
* (myViews.ts) is written through a fresh read of the server's list — never
|
|
19
|
+
* a stale cache — so what is shown is what the server agreed to. Each view is
|
|
20
|
+
* the list's question as text, so opening one is the ordinary list address.
|
|
21
|
+
*/
|
|
22
|
+
import { filterLabel } from '@mistriwork/engine/shared/listFilters.js';
|
|
23
|
+
import { BoardNewForm } from './boardNew.js';
|
|
24
|
+
import { useMessageLanguage } from './useMessageLanguage.js';
|
|
25
|
+
import { createPortal } from 'react-dom';
|
|
26
|
+
import { listControlsRef, listHeadRef, useCrumbSlots } from './crumbSlot.js';
|
|
27
|
+
import { FavoriteStar } from './FavoriteStar.js';
|
|
28
|
+
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
29
|
+
import { useMutation, useQueries, useQuery, useQueryClient } from '@tanstack/react-query';
|
|
30
|
+
import { api, columnLabel, labelPath, pageSize, recordLabel, state as walk, toast } from '../core.js';
|
|
31
|
+
import { say } from '../copy/lists/components/AppList.js';
|
|
32
|
+
/* The walk's state, with the field core.js's JSDoc does not declare. */
|
|
33
|
+
const state = walk;
|
|
34
|
+
import { mayRunAny } from '../actionGrants.js';
|
|
35
|
+
import { shell } from '../shellMode.js';
|
|
36
|
+
import { splitConditions, splitQuery } from '../clauses.js';
|
|
37
|
+
import { promptFor } from '../prompt.js';
|
|
38
|
+
import { canonicalize, conditionTail, deriveFilterNames, mentionsColumn, ownedTails, squeeze, withCondition } from '../filterbar.js';
|
|
39
|
+
import { exportOffered } from '@mistriwork/engine/shared/listPresentations.js';
|
|
40
|
+
import { humanName } from '@mistriwork/engine/shared/model.js';
|
|
41
|
+
import { pluralOf, recordNoun } from '@mistriwork/engine/shared/appNoun.js';
|
|
42
|
+
import { primaryKey } from '@mistriwork/engine/shared/schema.js';
|
|
43
|
+
import { findTable } from '../core.js';
|
|
44
|
+
import { sameReads } from '../liveReads.js';
|
|
45
|
+
import { appListQuery, litTabFor, residueOf, searchColumn, shownTabs, visibleQuestion, wholeQuery, subtitleColumns, editedReferences, listReferenceNames, } from './appListModel.js';
|
|
46
|
+
import { boxTail, boxesFor } from './FilterBoxes.js';
|
|
47
|
+
import { onDemand } from './onDemand.js';
|
|
48
|
+
const DefinedBoxes = onDemand(() => import('./DefinedFields.js'), 'DefinedBoxes', { quiet: true });
|
|
49
|
+
/* A list's single `per` value (`category_id = 3`), which picks the fields a row-defined column's boxes are. */
|
|
50
|
+
function oneValue(tail) {
|
|
51
|
+
const match = /^=\s*(?:"([^"]*)"|'([^']*)'|(\S+))$/.exec(tail.trim());
|
|
52
|
+
return match ? (match[1] ?? match[2] ?? match[3]) : undefined;
|
|
53
|
+
}
|
|
54
|
+
import { useConditionWords } from './useConditionWords.js';
|
|
55
|
+
import { message } from '../messages.js';
|
|
56
|
+
import { useTabFold } from './useTabFold.js';
|
|
57
|
+
import { DropGroup, DropItem, DropMenu } from '@mistriwork/ui/DropMenu.js';
|
|
58
|
+
import { FilterRail, FilterSheet } from './FilterRail.js';
|
|
59
|
+
import { clearFacets, facetActive } from './filterRailModel.js';
|
|
60
|
+
import { FilterPicker, ListFilterBar } from './ListFilterBar.js';
|
|
61
|
+
import { AppColumnMenuContext, returnFocusTo } from './AppColumnMenu.js';
|
|
62
|
+
import { resourceOf } from './appRooms.js';
|
|
63
|
+
import { renamedView, useSavedViews, withView, withoutView, writeSavedViews } from './myViews.js';
|
|
64
|
+
import { PHONE_QUERY, RAIL_QUERY, useMediaQuery } from './useMediaQuery.js';
|
|
65
|
+
import { TableRoom } from './TableRoom.js';
|
|
66
|
+
import { RowOpensContext } from './rowOpens.js';
|
|
67
|
+
import { ListEmpty } from './ListEmpty.js';
|
|
68
|
+
import { Empty } from './Notes.js';
|
|
69
|
+
import { Button } from '@mistriwork/ui/Button.js';
|
|
70
|
+
import { SortMenu } from './SortMenu.js';
|
|
71
|
+
import { QuickAdd } from './QuickAddOnDemand.js';
|
|
72
|
+
import { defaultCurrency, formatLocale, formatNumber } from '../locale.js';
|
|
73
|
+
/* What the next paint should hand focus back to. The redraw replaces the
|
|
74
|
+
control the person just used and focus fell to <body> — twenty Tab stops
|
|
75
|
+
from where they were — so the box or tab that spoke is remembered, and
|
|
76
|
+
the next list puts focus back on its twin. */
|
|
77
|
+
let refocus = null;
|
|
78
|
+
/**
|
|
79
|
+
* Every tab's badge, asked in one request (`/api/counts`) and counted in one
|
|
80
|
+
* statement where the server can: a list with six tabs was six requests, each
|
|
81
|
+
* running the whole list's read — joins, sort, a page of rows — to use its
|
|
82
|
+
* count. Each is bounded as a list's total is ("10,000+"). A minute's cache,
|
|
83
|
+
* shared by every list on the connection that shows the same tabs. A server
|
|
84
|
+
* that refuses the batch is asked tab by tab, as before.
|
|
85
|
+
*/
|
|
86
|
+
function useTabCounts(questions) {
|
|
87
|
+
const items = [...new Set(questions)].sort();
|
|
88
|
+
const client = useQueryClient();
|
|
89
|
+
return useQuery({
|
|
90
|
+
queryKey: ['count', state.activeConnection ?? '', 'tabs', items],
|
|
91
|
+
/* While a new batch is on the way each badge says what it last said — a batch's answer, or the grid's total
|
|
92
|
+
when its tab was on screen (gridCount) — so swapping tabs never empties the badges and shifts the row. */
|
|
93
|
+
placeholderData: () => knownCounts(client),
|
|
94
|
+
queryFn: async () => {
|
|
95
|
+
const said = (data) => data && !data.errors?.length && typeof data.total === 'number' ? { total: data.total, capped: data.cappedTotal === true } : null;
|
|
96
|
+
try {
|
|
97
|
+
const data = (await api('/api/counts', { items }));
|
|
98
|
+
if (!Array.isArray(data.results) || data.results.length !== items.length)
|
|
99
|
+
throw new Error(say('theCountsCameBack'));
|
|
100
|
+
return sameReads(new Map(items.map((q, i) => [q, said(data.results[i])])), data);
|
|
101
|
+
}
|
|
102
|
+
catch {
|
|
103
|
+
return new Map(await Promise.all(items.map(async (q) => {
|
|
104
|
+
try {
|
|
105
|
+
return [
|
|
106
|
+
q,
|
|
107
|
+
said((await api('/api/run', { q, limit: 1 }))),
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
catch {
|
|
111
|
+
return [q, null];
|
|
112
|
+
}
|
|
113
|
+
})));
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
enabled: items.length > 0,
|
|
117
|
+
staleTime: 60_000,
|
|
118
|
+
}).data;
|
|
119
|
+
}
|
|
120
|
+
/* The last placeholder handed out, handed out again while it says the same. Query asks for a placeholder on
|
|
121
|
+
every render of a batch not yet answered — and of one never asked, a list with no tabs — and a fresh Map each
|
|
122
|
+
time is a new result: the list rendered again, which asked again, every frame for as long as it stood. Each
|
|
123
|
+
render woke the navigation hold, which then held every list to its 1.5 s cap (navigationHold.ts). */
|
|
124
|
+
let lastKnown;
|
|
125
|
+
const sameCount = (a, b) => a === b || (a != null && b != null && a.total === b.total && a.capped === b.capped);
|
|
126
|
+
/** Every count this connection's badges have been told, newest last: the placeholder for a batch on the way. */
|
|
127
|
+
function knownCounts(client) {
|
|
128
|
+
const known = new Map();
|
|
129
|
+
for (const [, data] of client.getQueriesData({ queryKey: ['count', state.activeConnection ?? ''] }))
|
|
130
|
+
if (data instanceof Map)
|
|
131
|
+
for (const [question, counted] of data)
|
|
132
|
+
known.set(question, counted);
|
|
133
|
+
if (!known.size)
|
|
134
|
+
return undefined;
|
|
135
|
+
const last = lastKnown;
|
|
136
|
+
if (last &&
|
|
137
|
+
last.size === known.size &&
|
|
138
|
+
[...known].every(([question, counted]) => last.has(question) && sameCount(last.get(question), counted)))
|
|
139
|
+
return last;
|
|
140
|
+
lastKnown = known;
|
|
141
|
+
return known;
|
|
142
|
+
}
|
|
143
|
+
/** A tab's badge: its count from the batch, or the grid's own total when the tab is the one on screen. */
|
|
144
|
+
function TabCount({ counted }) {
|
|
145
|
+
// null is a current result with no count, not permission to show an older one.
|
|
146
|
+
const said = counted == null ? '' : `${formatNumber(counted.total)}${counted.capped ? '+' : ''}`;
|
|
147
|
+
/* The number in a box of its own, over the room a tab keeps for it (features.css). */
|
|
148
|
+
return _jsx("span", { className: "tab-count", children: said && _jsx("span", { children: said }) });
|
|
149
|
+
}
|
|
150
|
+
export function AppList({ entry, spec, navigate, embedded = false, newButton, inDashboard = false, onTotal }) {
|
|
151
|
+
useMessageLanguage();
|
|
152
|
+
const caption = spec.label;
|
|
153
|
+
const client = useQueryClient();
|
|
154
|
+
const table = findTable(entry.table);
|
|
155
|
+
const tabs = shownTabs(spec);
|
|
156
|
+
const refinement = visibleQuestion(spec, entry.query);
|
|
157
|
+
// The name column's box, where one can be drawn (appListModel.ts).
|
|
158
|
+
const naming = searchColumn(table);
|
|
159
|
+
const declared = [...new Set([...(naming ? [naming] : []), ...(spec.filters ?? (table ? deriveFilterNames(table) : []))])];
|
|
160
|
+
/* A row-defined column among the filters is its fields' boxes, once its definitions are read (DefinedFields.tsx). */
|
|
161
|
+
const bound = table ? resourceOf(shell().app(), table.id)?.defined : undefined;
|
|
162
|
+
const boundNames = bound ? declared.filter((name) => Object.hasOwn(bound, name)) : [];
|
|
163
|
+
const [definedBoxes, setDefinedBoxes] = useState({});
|
|
164
|
+
const onDefinedBoxes = useCallback((column, next) => setDefinedBoxes((previous) => ({ ...previous, [column]: next })), []);
|
|
165
|
+
const names = declared.flatMap((name) => (boundNames.includes(name) ? (definedBoxes[name] ?? []).map((box) => box.column) : [name]));
|
|
166
|
+
/* The resource's caption, through the label source every surface reads (appLabels.ts). */
|
|
167
|
+
const captionOf = (name) => columnLabel(spec.table, name) ?? humanName(name);
|
|
168
|
+
const near = [...declared, ...(table?.columns.map((column) => column.name) ?? [])];
|
|
169
|
+
const labelOf = (name) => filterLabel(name, captionOf, near);
|
|
170
|
+
const form = useRef(null);
|
|
171
|
+
const filter = useRef(null);
|
|
172
|
+
const head = useRef(null);
|
|
173
|
+
const crumbs = useCrumbSlots();
|
|
174
|
+
const ownList = !embedded && !inDashboard;
|
|
175
|
+
/* The page's own list names itself in the crumb bar where one is drawn over it; where none is (a room reached
|
|
176
|
+
from the menu, `shell.breadcrumbs`), in its own heading row, whose end holds the same verbs. Either way its
|
|
177
|
+
New and Export stand together at the end of the row with its title, and its range is said in the pager. */
|
|
178
|
+
const inBar = ownList && Boolean(crumbs.note && crumbs.tools);
|
|
179
|
+
const inCrumbs = inBar || (ownList && Boolean(crumbs.head));
|
|
180
|
+
const [gridResult, setGridResult] = useState();
|
|
181
|
+
const connection = state.activeConnection;
|
|
182
|
+
const gridCurrent = gridResult?.query === entry.query && gridResult.connection === connection ? gridResult : undefined;
|
|
183
|
+
const gridTotal = gridCurrent?.total;
|
|
184
|
+
const gridCapped = gridCurrent?.capped === true;
|
|
185
|
+
const [advancedOpen, setAdvanced] = useState(false);
|
|
186
|
+
const rail = useRef(null);
|
|
187
|
+
const phone = useMediaQuery(PHONE_QUERY);
|
|
188
|
+
/* The rail needs more room than a phone query describes: see RAIL_QUERY. */
|
|
189
|
+
const railNarrow = useMediaQuery(RAIL_QUERY);
|
|
190
|
+
/* An embedded list is a page's chooser, too narrow for a rail: it keeps the bar. */
|
|
191
|
+
const railed = spec.filterBar === 'rail' && !embedded && !inDashboard;
|
|
192
|
+
const [sheet, setSheet] = useState(false);
|
|
193
|
+
/* What the person set by hand, box by box, since this question was
|
|
194
|
+
drawn. Only a touched box speaks on submit — in the bar, that is the
|
|
195
|
+
search box; every picker applies itself. */
|
|
196
|
+
const boxes = useMemo(() => table
|
|
197
|
+
? declared
|
|
198
|
+
.flatMap((name) => (boundNames.includes(name) ? (definedBoxes[name] ?? []) : boxesFor(table, [name], labelOf)))
|
|
199
|
+
.map((box) => (box.kind === 'text' && spec.suggest?.[box.column] ? { ...box, suggest: spec.suggest[box.column] } : box))
|
|
200
|
+
: [], [table, names.join(','), spec, definedBoxes]);
|
|
201
|
+
const [edits, setEdits] = useState({});
|
|
202
|
+
const editsNow = useRef(edits);
|
|
203
|
+
editsNow.current = edits;
|
|
204
|
+
const touched = (column) => column in editsNow.current;
|
|
205
|
+
const tailOf = (box) => boxTail(box, editsNow.current[box.column], conditionTail(refinement, box.column));
|
|
206
|
+
const litTab = litTabFor(tabs, refinement, names);
|
|
207
|
+
/* The name column's box is the bar's search; every other box is a picker. */
|
|
208
|
+
const searchBox = boxes.find((box) => box.column === naming && box.kind === 'text');
|
|
209
|
+
/* The saved views of this list, by the view's key: two views over one
|
|
210
|
+
table are two lists with their own working sets. The server says whose
|
|
211
|
+
they are — the App's shared list, or the signed-in account's own — or
|
|
212
|
+
that this reader cannot save (a row policy, a tenant, signed out). */
|
|
213
|
+
const viewKey = spec.id ?? `table:${entry.table}`;
|
|
214
|
+
const saved = useSavedViews(viewKey);
|
|
215
|
+
// A dashboard's list keeps the dashboard's question: views are the list room's to save.
|
|
216
|
+
const yours = inDashboard ? [] : saved.views;
|
|
217
|
+
const store = saved.store;
|
|
218
|
+
const savable = !inDashboard && (store === 'shared' || store === 'account');
|
|
219
|
+
const yourLit = yours.findIndex((f) => canonicalize(f.query) === canonicalize(refinement));
|
|
220
|
+
/* The strip fits its row (useTabFold.ts): the list's tabs by their place, then the saved views' heading, then each
|
|
221
|
+
saved view; what does not fit is under More, and the lit one never is. */
|
|
222
|
+
const savedAt = tabs.length + 1;
|
|
223
|
+
const { strip: tabStrip, folded } = useTabFold(tabs.length + (yours.length ? yours.length + 1 : 0), yourLit === -1 ? litTab : savedAt + yourLit);
|
|
224
|
+
const foldMark = (at) => ({
|
|
225
|
+
'data-fold': at,
|
|
226
|
+
'data-folded': folded.has(at) ? '' : undefined,
|
|
227
|
+
'aria-hidden': folded.has(at) || undefined,
|
|
228
|
+
});
|
|
229
|
+
const writeViews = useMutation({
|
|
230
|
+
mutationFn: (change) => writeSavedViews(client, viewKey, change),
|
|
231
|
+
onError: (err) => toast(err.message, 'error'),
|
|
232
|
+
});
|
|
233
|
+
/* Every control funnels here: one composition, one navigation. A control
|
|
234
|
+
that knows where the focus belongs next — a picker in a popover, a chip's
|
|
235
|
+
way out — says which column's control takes it. */
|
|
236
|
+
const apply = (typed, focus) => {
|
|
237
|
+
const active = document.activeElement;
|
|
238
|
+
const boxHome = active?.closest?.('[data-column]');
|
|
239
|
+
refocus = focus
|
|
240
|
+
? { column: focus }
|
|
241
|
+
: boxHome
|
|
242
|
+
? { column: boxHome.dataset.column, value: active?.dataset?.value }
|
|
243
|
+
: active?.getAttribute?.('role') === 'tab'
|
|
244
|
+
? { tab: active.textContent ?? '' }
|
|
245
|
+
: null;
|
|
246
|
+
state.page = 0;
|
|
247
|
+
navigate(wholeQuery(spec, typed));
|
|
248
|
+
};
|
|
249
|
+
const currentText = () => filter.current?.value ?? refinement;
|
|
250
|
+
/* Everything applied, as chips — each condition with its own way out, and
|
|
251
|
+
the leftover clauses (a sort, a hand-written group) as one chip
|
|
252
|
+
when no tab explains them. The bar says them in its own row
|
|
253
|
+
(ListFilterBar.tsx); a list without one says them here. */
|
|
254
|
+
const residue = litTab === -1 ? residueOf(refinement, names) : '';
|
|
255
|
+
/* Said in the App's words — the column's label, the rule's word for a
|
|
256
|
+
value — never the language the controls wrote (conditionWords.ts). */
|
|
257
|
+
const { speaker, andWords, sayCondition, sayFilter, sayQuestion, sayTails } = useConditionWords(table, [
|
|
258
|
+
refinement,
|
|
259
|
+
...yours.map((view) => view.query),
|
|
260
|
+
]);
|
|
261
|
+
const residueChip = residue
|
|
262
|
+
? {
|
|
263
|
+
text: andWords(sayQuestion(speaker, residue)),
|
|
264
|
+
remove: () => {
|
|
265
|
+
let text = '';
|
|
266
|
+
for (const box of boxes)
|
|
267
|
+
text = withCondition(text, box.column, tailOf(box));
|
|
268
|
+
apply(text);
|
|
269
|
+
},
|
|
270
|
+
}
|
|
271
|
+
: undefined;
|
|
272
|
+
const chips = [];
|
|
273
|
+
for (const box of boxes) {
|
|
274
|
+
const tails = ownedTails(refinement, box.column);
|
|
275
|
+
if (!tails.length)
|
|
276
|
+
continue;
|
|
277
|
+
// The lit tab already says its own conditions; a chip would repeat it.
|
|
278
|
+
if (litTab >= 0 && mentionsColumn(tabs[litTab].query ?? '', box.column))
|
|
279
|
+
continue;
|
|
280
|
+
chips.push({
|
|
281
|
+
text: sayTails(speaker, box.column, tails),
|
|
282
|
+
remove: () => apply(withCondition(currentText(), box.column, '')),
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
if (residueChip)
|
|
286
|
+
chips.push(residueChip);
|
|
287
|
+
const chipList = chips.map((c) => (_jsxs("span", { className: "applist-chip", children: [_jsx("span", { className: "applist-chip-text", children: c.text }), _jsx("button", { type: "button", className: "applist-chip-x", "aria-label": say('common.remove2', { text: c.text }), onClick: c.remove, children: "\u00D7" })] }, c.text)));
|
|
288
|
+
const isDefault = canonicalize(entry.query) === canonicalize(appListQuery(spec, 0));
|
|
289
|
+
const exactTab = litTab >= 0 && canonicalize(refinement) === canonicalize(tabs[litTab].query ?? '');
|
|
290
|
+
const offerSave = savable && !(isDefault || exactTab || yourLit >= 0 || !refinement);
|
|
291
|
+
const gridTab = tabs.findIndex((_, i) => squeeze(appListQuery(spec, i)) === squeeze(entry.query));
|
|
292
|
+
/* The badges not already on screen: the grid's own total answers the tab
|
|
293
|
+
it shows, so that one is never asked twice (and a list whose grid is
|
|
294
|
+
still loading does not ask again once it lands). */
|
|
295
|
+
const tabCounts = useTabCounts(tabs.length > 1 || yours.length > 0
|
|
296
|
+
? [
|
|
297
|
+
...tabs.flatMap((_, i) => (i === gridTab ? [] : [appListQuery(spec, i)])),
|
|
298
|
+
...yours.map((f) => squeeze(`${entry.table} ${f.query}`)),
|
|
299
|
+
]
|
|
300
|
+
: []);
|
|
301
|
+
/* The grid's own total is a count its tab's badge said: kept with the batches, for the placeholder. */
|
|
302
|
+
useEffect(() => {
|
|
303
|
+
if (typeof gridTotal !== 'number' || gridTab < 0)
|
|
304
|
+
return;
|
|
305
|
+
const question = appListQuery(spec, gridTab);
|
|
306
|
+
client.setQueryData(['count', connection ?? '', 'grid', question], new Map([[question, { total: gridTotal, capped: gridCapped }]]));
|
|
307
|
+
}, [gridTotal, gridCapped, gridTab, connection]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
308
|
+
/* A tab's count: the grid's own total for the tab it shows, else the counts read for the strip. While the grid of
|
|
309
|
+
the tab just chosen is on its way, its badge says what it last said, as every other badge does while its batch
|
|
310
|
+
is: the strip's batch leaves that tab out, and once it was answered the badge stood empty until the rows came.
|
|
311
|
+
An emptied badge is a narrower tab, and a strip at the edge of its fold took its last tab out of More for those
|
|
312
|
+
few frames and put it back, on every visit to the list and every switch to a tab (a service-desk App's Inbox
|
|
313
|
+
flickered at a desk); where nothing folds, the search box beside the strip jumped instead. */
|
|
314
|
+
const countOf = (i) => {
|
|
315
|
+
const question = appListQuery(spec, i);
|
|
316
|
+
if (i !== gridTab)
|
|
317
|
+
return tabCounts?.get(question);
|
|
318
|
+
if (typeof gridTotal === 'number')
|
|
319
|
+
return { total: gridTotal, capped: gridCapped };
|
|
320
|
+
if (gridCurrent)
|
|
321
|
+
return null;
|
|
322
|
+
return tabCounts?.has(question) ? tabCounts.get(question) : knownCounts(client)?.get(question);
|
|
323
|
+
};
|
|
324
|
+
const pickTab = (i) => {
|
|
325
|
+
if (i === litTab)
|
|
326
|
+
return;
|
|
327
|
+
state.page = 0;
|
|
328
|
+
/* Swapping tabs swaps the tab's clause and keeps the boxes: the reader
|
|
329
|
+
who narrowed to one customer and flips from Open to Done is asking
|
|
330
|
+
about the same customer. Only what the person set by hand travels;
|
|
331
|
+
and the tab wins over a box for its own columns. */
|
|
332
|
+
let text = tabs[i].query ?? '';
|
|
333
|
+
for (const box of boxes) {
|
|
334
|
+
if (!touched(box.column))
|
|
335
|
+
continue;
|
|
336
|
+
if (mentionsColumn(text, box.column))
|
|
337
|
+
continue;
|
|
338
|
+
text = withCondition(text, box.column, tailOf(box));
|
|
339
|
+
}
|
|
340
|
+
apply(text);
|
|
341
|
+
};
|
|
342
|
+
const submit = (e) => {
|
|
343
|
+
e.preventDefault();
|
|
344
|
+
/* Touched boxes fold into the text on the way out; untouched ones stay
|
|
345
|
+
silent — the text already says what they would. */
|
|
346
|
+
let text = currentText();
|
|
347
|
+
for (const box of boxes) {
|
|
348
|
+
if (touched(box.column))
|
|
349
|
+
text = withCondition(text, box.column, tailOf(box));
|
|
350
|
+
}
|
|
351
|
+
apply(text);
|
|
352
|
+
};
|
|
353
|
+
/* A view is the question on screen — tab, filters and sort — as text. */
|
|
354
|
+
/* A view's name starts as what it asks, in the reader's words: "Status is Open and Owner is me". */
|
|
355
|
+
const viewWords = (query) => {
|
|
356
|
+
const conditions = sayFilter(speaker, splitQuery(`rows ${query}`).filter);
|
|
357
|
+
return andWords(conditions.length ? conditions : sayQuestion(speaker, query));
|
|
358
|
+
};
|
|
359
|
+
const save = async () => {
|
|
360
|
+
const name = await promptFor({
|
|
361
|
+
title: say('saveThisView'),
|
|
362
|
+
label: say('common.name'),
|
|
363
|
+
value: viewWords(refinement),
|
|
364
|
+
placeholder: say('mineDueThisWeek'),
|
|
365
|
+
});
|
|
366
|
+
if (!name || !String(name).trim())
|
|
367
|
+
return;
|
|
368
|
+
writeViews.mutate((views) => withView(views, String(name), refinement));
|
|
369
|
+
};
|
|
370
|
+
const rename = async (view) => {
|
|
371
|
+
const name = await promptFor({
|
|
372
|
+
title: say('renameThisView'),
|
|
373
|
+
label: say('common.name'),
|
|
374
|
+
value: view.name,
|
|
375
|
+
hint: viewWords(view.query),
|
|
376
|
+
confirmLabel: say('common.rename'),
|
|
377
|
+
});
|
|
378
|
+
if (!name || !String(name).trim())
|
|
379
|
+
return;
|
|
380
|
+
writeViews.mutate((views) => renamedView(views, view.name, String(name)));
|
|
381
|
+
};
|
|
382
|
+
/* The paint that replaced the one this person was using: put focus back
|
|
383
|
+
on the twin of the control they used — in a rail, the very value. */
|
|
384
|
+
useEffect(() => {
|
|
385
|
+
if (!refocus)
|
|
386
|
+
return;
|
|
387
|
+
const root = form.current?.parentElement;
|
|
388
|
+
if (refocus.column) {
|
|
389
|
+
const at = `[data-column="${CSS.escape(refocus.column)}"]`;
|
|
390
|
+
const exact = refocus.value ? `${at} input[data-value="${CSS.escape(refocus.value)}"]` : '';
|
|
391
|
+
for (const home of [rail.current, root]) {
|
|
392
|
+
const twin = (exact && home?.querySelector(exact)) || home?.querySelector(`${at} input, ${at} button`);
|
|
393
|
+
if (twin) {
|
|
394
|
+
twin.focus();
|
|
395
|
+
break;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
else if (refocus.tab && root) {
|
|
400
|
+
for (const t of root.querySelectorAll('[role="tab"]')) {
|
|
401
|
+
if ((t.textContent ?? '') === refocus.tab) {
|
|
402
|
+
t.focus();
|
|
403
|
+
break;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
refocus = null;
|
|
408
|
+
}, []);
|
|
409
|
+
/* The grid: rows only — an entry can carry a workbench tab (diagram,
|
|
410
|
+
definition) across the mode flip, and the diagram under the app's
|
|
411
|
+
filter boxes was a surface those controls cannot filter. The keys the
|
|
412
|
+
app did not choose to show ride along hidden. */
|
|
413
|
+
const chosen = new Set(spec.show ?? []);
|
|
414
|
+
/* A reference is drawn by its record's name, read beside it (appListModel's referenceNames). */
|
|
415
|
+
const referenceLabels = useMemo(() => listReferenceNames(spec), [spec]);
|
|
416
|
+
const named = Object.values(referenceLabels).filter((name) => !chosen.has(name));
|
|
417
|
+
const hide = chosen.size && table
|
|
418
|
+
? [
|
|
419
|
+
...new Set([
|
|
420
|
+
...primaryKey(table),
|
|
421
|
+
...(recordLabel(table) && labelPath(table) ? [labelPath(table)] : []),
|
|
422
|
+
...(spec.order ? [spec.order] : []),
|
|
423
|
+
...subtitleColumns(entry.table, [...chosen]),
|
|
424
|
+
...editedReferences(spec),
|
|
425
|
+
...(spec.opens ? [spec.opens] : []),
|
|
426
|
+
...named,
|
|
427
|
+
]),
|
|
428
|
+
].filter((name) => !chosen.has(name))
|
|
429
|
+
: named;
|
|
430
|
+
/* A join table's list opens what each row is about, by its name where the list shows it. */
|
|
431
|
+
const rowOpens = useMemo(() => spec.opens
|
|
432
|
+
? {
|
|
433
|
+
column: spec.opens,
|
|
434
|
+
label: referenceLabels[spec.opens] ??
|
|
435
|
+
spec.show?.find((name) => name.startsWith(`${spec.opens}.`) && !name.slice(spec.opens.length + 1).includes('.')),
|
|
436
|
+
}
|
|
437
|
+
: null, [spec.opens, spec.show, referenceLabels]);
|
|
438
|
+
const gridEntry = useMemo(() => ({ kind: 'table', table: entry.table, query: entry.query }), [entry.table, entry.query]);
|
|
439
|
+
/* Totals are over everything the conditions match, not the page: one
|
|
440
|
+
measure per column, asked in the list's own query family so a write
|
|
441
|
+
that refreshes the rows refreshes the sums too. */
|
|
442
|
+
// The conditions alone: a sort, a column list or a limit is the page's, not the sum's.
|
|
443
|
+
const totalText = (column) => [entry.table, splitQuery(entry.query).filter, `sum ${column}`].filter(Boolean).join(' ');
|
|
444
|
+
const totalAnswers = useQueries({
|
|
445
|
+
queries: (spec.presentation ? [] : (spec.totals ?? [])).map((column) => ({
|
|
446
|
+
queryKey: ['run', connection ?? '', 'total', totalText(column)],
|
|
447
|
+
queryFn: async () => {
|
|
448
|
+
const data = (await api('/api/breakdown', {
|
|
449
|
+
text: totalText(column),
|
|
450
|
+
limit: 1,
|
|
451
|
+
}));
|
|
452
|
+
const row = data.rows?.[0];
|
|
453
|
+
return row ? row[Object.keys(row)[0]] : null;
|
|
454
|
+
},
|
|
455
|
+
})),
|
|
456
|
+
});
|
|
457
|
+
const totals = spec.totals?.length && !spec.presentation
|
|
458
|
+
? Object.fromEntries(spec.totals.map((column, i) => [column, totalAnswers[i]?.data]))
|
|
459
|
+
: undefined;
|
|
460
|
+
const onGrid = (result) => {
|
|
461
|
+
setGridResult({
|
|
462
|
+
query: entry.query,
|
|
463
|
+
connection,
|
|
464
|
+
total: typeof result.total === 'number' ? result.total : null,
|
|
465
|
+
capped: 'cappedTotal' in result && result.cappedTotal === true,
|
|
466
|
+
});
|
|
467
|
+
onTotal?.(typeof result.total === 'number' ? result.total : undefined);
|
|
468
|
+
/* "Fix the query above" must not point at a control the redraw hid. */
|
|
469
|
+
if (result.errors?.length)
|
|
470
|
+
setAdvanced(true);
|
|
471
|
+
};
|
|
472
|
+
// A failed query can still expose its recovery editor; ordinary browsing is opt-in.
|
|
473
|
+
const showAdvanced = advancedOpen || (spec.advancedFilters === true && !boxes.length);
|
|
474
|
+
const tabQuery = litTab >= 0 ? (tabs[litTab].query ?? '') : '';
|
|
475
|
+
/* A range's figures in the App's own dress: the resource's currency before them (the App's
|
|
476
|
+
`ui.currency` when the rule names none, as every other money figure), its unit after. */
|
|
477
|
+
const display = resourceOf(shell().app(), entry.table)?.display ?? {};
|
|
478
|
+
const unitOf = (column) => {
|
|
479
|
+
const rule = display[column];
|
|
480
|
+
if (rule?.format === 'money')
|
|
481
|
+
return {
|
|
482
|
+
currency: rule.currency ?? defaultCurrency(),
|
|
483
|
+
...(rule.unit ? { unit: rule.unit } : {}),
|
|
484
|
+
};
|
|
485
|
+
return rule?.unit ? { unit: rule.unit } : undefined;
|
|
486
|
+
};
|
|
487
|
+
/* The view's own `query` is its standing condition: hidden from the reader's question, but every facet count stands on it. */
|
|
488
|
+
const railProps = table ? { table, boxes, refinement, tabQuery, standing: spec.query ?? '', unitOf } : undefined;
|
|
489
|
+
/* Beside the rows, the chips head the results — where the eye is on the
|
|
490
|
+
rows, with the Sort and one Clear all — not under the heading, a column
|
|
491
|
+
away from the facets that set them. The phone's sheet keeps them above. */
|
|
492
|
+
const beside = railed && !railNarrow && Boolean(railProps);
|
|
493
|
+
/* The rail stays beside the rows as they scroll while it fits the room; taller, it scrolls with them (`data-long`,
|
|
494
|
+
FilterRail.css), so the room is the one box that scrolls. A rail held to the window's height and scrolling on its
|
|
495
|
+
own was a second scroller in every room it was taller than: 900px under a 50px bar, so the room scrolled for it
|
|
496
|
+
too (grade's double-scroll on Compass's tasks). */
|
|
497
|
+
useLayoutEffect(() => {
|
|
498
|
+
const box = rail.current;
|
|
499
|
+
const room = box?.closest('.content');
|
|
500
|
+
if (!box || !room)
|
|
501
|
+
return;
|
|
502
|
+
/* Its own top (Lumen stands it 12px down) is room it does not have. */
|
|
503
|
+
const fit = () => box.toggleAttribute('data-long', box.offsetHeight + (parseFloat(getComputedStyle(box).top) || 0) > room.clientHeight);
|
|
504
|
+
fit();
|
|
505
|
+
if (typeof ResizeObserver === 'undefined')
|
|
506
|
+
return;
|
|
507
|
+
const watch = new ResizeObserver(fit);
|
|
508
|
+
watch.observe(box);
|
|
509
|
+
watch.observe(room);
|
|
510
|
+
return () => watch.disconnect();
|
|
511
|
+
}, [beside]);
|
|
512
|
+
/* The bar says what is applied in its own row, where it was set. */
|
|
513
|
+
const chipsInBar = spec.filterBar !== 'none' && !railed && Boolean(table);
|
|
514
|
+
const narrowed = boxes.filter((box) => facetActive(refinement, box.column, tabQuery)).length;
|
|
515
|
+
/* What the grid's column menus write through (AppColumnMenu.tsx): read when
|
|
516
|
+
a menu is used, so the grid is not redrawn each time it changes. */
|
|
517
|
+
const menuHost = useRef(null);
|
|
518
|
+
menuHost.current = table
|
|
519
|
+
? {
|
|
520
|
+
table,
|
|
521
|
+
query: entry.query,
|
|
522
|
+
refinement,
|
|
523
|
+
tabQuery,
|
|
524
|
+
standing: spec.query ?? '',
|
|
525
|
+
listKey: viewKey,
|
|
526
|
+
unitOf,
|
|
527
|
+
Picker: FilterPicker,
|
|
528
|
+
boxFor: (column) => boxes.find((box) => box.column === column && box.meta) ?? boxesFor(table, [column], labelOf).find((box) => box.meta),
|
|
529
|
+
apply: (text, column) => {
|
|
530
|
+
refocus = null;
|
|
531
|
+
returnFocusTo(column);
|
|
532
|
+
state.page = 0;
|
|
533
|
+
navigate(wholeQuery(spec, text));
|
|
534
|
+
},
|
|
535
|
+
navigate: (query, column) => {
|
|
536
|
+
refocus = null;
|
|
537
|
+
returnFocusTo(column);
|
|
538
|
+
state.page = 0;
|
|
539
|
+
navigate(query);
|
|
540
|
+
},
|
|
541
|
+
/* Beside the rows the rail already shows the column's control: the menu goes there rather than drawing a second one. */
|
|
542
|
+
railFacet: (column) => beside ? (rail.current?.querySelector(`.facet[data-column="${CSS.escape(column)}"]`) ?? null) : null,
|
|
543
|
+
}
|
|
544
|
+
: null;
|
|
545
|
+
const matched = typeof gridTotal === 'number'
|
|
546
|
+
? say('match', {
|
|
547
|
+
gridTotal: new Intl.NumberFormat(formatLocale()).format(gridTotal),
|
|
548
|
+
})
|
|
549
|
+
: undefined;
|
|
550
|
+
/* Narrowed past the tab — a search, a filter — to nothing: said as that,
|
|
551
|
+
with the way back beside it. "No rows match." alone left the reader to
|
|
552
|
+
find each chip's × (or the rail's Clear all) to see the list again.
|
|
553
|
+
Clear keeps the tab and the order and drops the rest. */
|
|
554
|
+
const refinedFilter = splitQuery(`rows ${refinement}`);
|
|
555
|
+
/* The tab the conditions stand under, read without the order: a sort from
|
|
556
|
+
the Sort menu lights no tab, and Clear must not drop the tab with it. */
|
|
557
|
+
/* Each tab read without its order too: a tab carries its sort (`on_notice sort available_on`), and held against a
|
|
558
|
+
filter with the order taken out it lit no tab, so a tab with no rows was said as a search that matched nothing,
|
|
559
|
+
its own condition named as what narrowed it, with a Clear that left the tab. */
|
|
560
|
+
const tabFilters = tabs.map((tab) => ({ ...tab, query: splitQuery(`rows ${tab.query ?? ''}`).filter }));
|
|
561
|
+
const filterTab = litTabFor(tabFilters, refinedFilter.filter, names);
|
|
562
|
+
const filterTabQuery = filterTab >= 0 ? (tabFilters[filterTab].query ?? '') : '';
|
|
563
|
+
const narrowedPast = Boolean(refinedFilter.filter.trim()) &&
|
|
564
|
+
canonicalize(refinedFilter.filter) !== canonicalize(splitQuery(`rows ${filterTabQuery}`).filter);
|
|
565
|
+
const clearTo = [filterTabQuery, refinedFilter.sort].filter(Boolean).join(' ');
|
|
566
|
+
const applyNow = useRef(apply);
|
|
567
|
+
applyNow.current = apply;
|
|
568
|
+
/* Kept while its words and target are unchanged, so the rows below (kept by
|
|
569
|
+
`grid`) are not redrawn for a keystroke. */
|
|
570
|
+
/* What narrowed it, said as the chips say it: the conditions past the tab's own. */
|
|
571
|
+
const tabConditions = new Set(splitConditions(splitQuery(`rows ${filterTabQuery}`).filter).map((c) => canonicalize(c)));
|
|
572
|
+
const pastTab = splitConditions(refinedFilter.filter).filter((c) => !tabConditions.has(canonicalize(c)));
|
|
573
|
+
/* Said by the records' own noun where the resource names one ("No homes match"), not the list's caption, which may
|
|
574
|
+
name a ledger ("No rent roll match"). */
|
|
575
|
+
const listNoun = table ? resourceOf(shell().app(), entry.table)?.noun : undefined;
|
|
576
|
+
const things = listNoun?.many ?? caption.toLowerCase();
|
|
577
|
+
const narrowedBy = pastTab.length ? andWords(pastTab.map((c) => sayCondition(speaker, c))) : '';
|
|
578
|
+
const noMatchText = narrowedBy
|
|
579
|
+
? message('filter.noMatches', { things, conditions: narrowedBy })
|
|
580
|
+
: message('filter.noMatchesPlain', { things });
|
|
581
|
+
const noMatches = useMemo(() => (_jsx(Empty, { className: "list-empty list-no-matches", text: _jsx("span", { className: "empty-note-title", children: say('noMatches') }), detail: noMatchText, action: _jsx(Button, { size: "compact", onClick: () => applyNow.current(clearTo), children: say('common.clear') }) })), [noMatchText, clearTo]);
|
|
582
|
+
/* The page's own list names itself in the crumb bar — title, count, star —
|
|
583
|
+
with New at the bar's end, instead of a heading band of its own. An
|
|
584
|
+
embedded list, or a list with no bar over it, keeps the heading row. */
|
|
585
|
+
/* The rows, kept as one element for as long as what they are drawn from is
|
|
586
|
+
unchanged. The search box is this room's state, so each character typed
|
|
587
|
+
redrew the room and, with it, the whole grid under the box; now a
|
|
588
|
+
keystroke redraws the box and the chips, and the rows are left alone. */
|
|
589
|
+
const hideKey = hide.join('\n');
|
|
590
|
+
const keptHide = useMemo(() => hide, [hideKey]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
591
|
+
const totalsKey = totals ? JSON.stringify(totals) : '';
|
|
592
|
+
const keptTotals = useMemo(() => totals, [totalsKey]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
593
|
+
const onGridNow = useRef(onGrid);
|
|
594
|
+
onGridNow.current = onGrid;
|
|
595
|
+
const keptOnGrid = useCallback((result) => onGridNow.current(result), []);
|
|
596
|
+
const unrefined = !splitQuery(`rows ${refinement}`).filter.trim();
|
|
597
|
+
/* The words an empty tab says when nothing narrows it past its own condition: the tab's own, else on the first
|
|
598
|
+
tab (where the list opens) the list's, so a list whose first tab is "Open" no longer said its authored empty
|
|
599
|
+
only after the reader took the tab away. Other tabs fall back to "No {things} in {tab}". */
|
|
600
|
+
const tabOwnEmpty = filterTab >= 0 ? tabs[filterTab].empty : undefined;
|
|
601
|
+
const authoredEmpty = embedded || narrowedPast ? undefined : (tabOwnEmpty ?? (unrefined || filterTab === 0 ? spec.empty : undefined));
|
|
602
|
+
/* A list that says nothing of its own empty state says what belongs in it, by its noun, and offers New where the
|
|
603
|
+
room does: "No work orders yet. Use New to add the first work order." A narrowed list keeps its own words. */
|
|
604
|
+
const noun = resourceOf(shell().app(), entry.table)?.noun;
|
|
605
|
+
const nothingYet = !embedded && !spec.empty && unrefined && table ? (_jsx(ListEmpty, { spec: {
|
|
606
|
+
title: message('common.noYet', { things: noun?.many ?? pluralOf(recordNoun(noun, table.name)) }),
|
|
607
|
+
...(newButton && !inDashboard ? { description: say('addTheFirst', { thing: recordNoun(noun, table.name) }) } : {}),
|
|
608
|
+
} })) : undefined;
|
|
609
|
+
/* A tab with nothing under it is not a search that missed: it says the tab is empty, by the records' noun and the
|
|
610
|
+
tab's own word, with nothing to clear. Left to the grid, it said nothing at all. */
|
|
611
|
+
const tabEmpty = !embedded && !unrefined && !narrowedPast && filterTab >= 0 && table ? (_jsx(Empty, { className: "list-empty", text: say('noneInTab', { things: noun?.many ?? pluralOf(recordNoun(noun, table.name)), tab: tabs[filterTab].label ?? '' }) })) : undefined;
|
|
612
|
+
const exportOff = !exportOffered(shell().app(), entry.table);
|
|
613
|
+
/* A board's lanes offer New where the room does (BoardList): a boolean, so the room's fresh button each render does
|
|
614
|
+
not redraw the rows. */
|
|
615
|
+
const offersNew = Boolean(newButton) && !embedded && !inDashboard;
|
|
616
|
+
const gridPage = state.page, gridSize = pageSize();
|
|
617
|
+
const grid = useMemo(() => (_jsxs("div", { className: `applist-grid${embedded ? '' : ' applist-room'}`, children: [spec.quickAdd && table && !embedded && !inDashboard && (_jsx("div", { className: "grid-inset", children: _jsx(QuickAdd, { table: table, form: spec.form, onAdded: () => {
|
|
618
|
+
void client.invalidateQueries({
|
|
619
|
+
queryKey: ['run', connection ?? ''],
|
|
620
|
+
});
|
|
621
|
+
void client.invalidateQueries({
|
|
622
|
+
queryKey: ['count', connection ?? ''],
|
|
623
|
+
});
|
|
624
|
+
} }) })), _jsx(BoardNewForm.Provider, { value: offersNew ? (spec.form ?? {}) : null, children: _jsx(RowOpensContext.Provider, { value: rowOpens, children: _jsx(TableRoom, { entry: gridEntry, sizing: spec.sizing, chrome: false, summaries: true, inset: !inDashboard, embedded: inDashboard, hide: keptHide, referenceLabels: referenceLabels, totals: keptTotals, density: spec.density,
|
|
625
|
+
/* A ⋯ with nothing a reader may run is a dead control and a reserved column; the App payload already says what they may run. */
|
|
626
|
+
rowActions: Boolean(spec.rowActions && !spec.presentation && !embedded && mayRunAny(shell().app(), entry.table, spec.actions ?? [])), editable: spec.presentation || embedded ? undefined : spec.editable, inCrumbs: inCrumbs, onResult: keptOnGrid, presentation: embedded ? undefined : spec.presentation, present: shell().present ?? undefined, empty: embedded ? undefined : narrowedPast ? (noMatches) : authoredEmpty ? (_jsx(ListEmpty, { spec: authoredEmpty })) : ((nothingYet ?? tabEmpty)), actions: embedded ? undefined : spec.actions, listLabel: caption, order: embedded ? undefined : spec.order, export: exportOff ? false : undefined, interactive: embedded ? false : undefined }) }) })] })), [
|
|
627
|
+
gridPage,
|
|
628
|
+
gridSize,
|
|
629
|
+
embedded,
|
|
630
|
+
inDashboard,
|
|
631
|
+
spec,
|
|
632
|
+
table,
|
|
633
|
+
client,
|
|
634
|
+
connection,
|
|
635
|
+
gridEntry,
|
|
636
|
+
keptHide,
|
|
637
|
+
referenceLabels,
|
|
638
|
+
keptTotals,
|
|
639
|
+
inCrumbs,
|
|
640
|
+
keptOnGrid,
|
|
641
|
+
authoredEmpty,
|
|
642
|
+
narrowedPast,
|
|
643
|
+
noMatches,
|
|
644
|
+
filterTab,
|
|
645
|
+
caption,
|
|
646
|
+
exportOff,
|
|
647
|
+
offersNew,
|
|
648
|
+
rowOpens,
|
|
649
|
+
]);
|
|
650
|
+
/* A signed-out visitor reads the storefront, not the tool (docs/design.md,
|
|
651
|
+
public pages): a match count chip and a favourites star are an
|
|
652
|
+
operator's furniture there. */
|
|
653
|
+
const visitor = shell().publicVisitor();
|
|
654
|
+
const title = (_jsxs(_Fragment, { children: [_jsx("h1", { className: `applist-title${spec.heading === false ? ' visually-hidden' : ''}`, children: caption }), typeof gridTotal === 'number' && !visitor && spec.heading !== false && (_jsxs("span", { className: "applist-count", title: say('rowsTheTabAndFilters'), children: [formatNumber(gridTotal), gridCapped ? '+' : ''] })), spec.favorite && spec.id && !visitor && _jsx(FavoriteStar, { favorite: { kind: 'view', view: spec.id, label: caption }, name: caption })] }));
|
|
655
|
+
return (_jsxs(_Fragment, { children: [boundNames.map((name) => (_jsx(DefinedBoxes, { column: name, binding: bound[name], per: bound[name].per ? oneValue(conditionTail(refinement, bound[name].per)) : undefined, onBoxes: onDefinedBoxes }, name))), inBar && createPortal(title, crumbs.note), inCrumbs && !spec.quickAdd && newButton && createPortal(newButton, (crumbs.tools ?? crumbs.head)), _jsxs("div", { className: `applist-head${inBar ? ' in-crumbs' : ''}`, children: [!inBar && !inDashboard && (_jsxs("div", { className: "applist-head-row", ref: head, children: [title, ownList ? _jsx("div", { className: "applist-head-tools", ref: listHeadRef }) : !spec.quickAdd && newButton] })), !beside && !chipsInBar && _jsx("div", { className: "applist-chips", children: chipList })] }), _jsxs("div", { className: "applist-controls", role: "group", "aria-label": say('listControls', { caption }), children: [(tabs.length > 1 || yours.length > 0) && (_jsxs("div", { className: "tabs folds", ref: tabStrip, children: [_jsxs("div", { className: "tabs-row", role: "tablist", children: [tabs.map((tab, i) => (_jsxs("button", { type: "button", role: "tab", className: "tab", "aria-selected": i === litTab && yourLit === -1, onClick: () => pickTab(i), ...foldMark(i), children: [_jsx("span", { children: tab.label }), _jsx(TabCount, { counted: countOf(i) })] }, tab.label))), yours.length > 0 && (_jsxs("span", { className: "tab-group", ...foldMark(tabs.length), "aria-hidden": "true", children: [tabs.length > 1 && _jsx("span", { className: "tab-divider" }), _jsx("span", { className: "tab-group-label", children: store === 'account' ? say('myViews') : say('savedViews') })] })), yours.map((f, i) => (_jsxs("span", { className: "tab-wrap", role: "presentation", ...foldMark(savedAt + i), children: [_jsxs("button", { type: "button", role: "tab", className: "tab tab-yours", "aria-selected": i === yourLit, title: `${viewWords(f.query) || say('everything')} — ${store === 'account' ? say('yourView') : say('aSavedView')}`, onClick: () => {
|
|
656
|
+
if (i !== yourLit) {
|
|
657
|
+
state.page = 0;
|
|
658
|
+
apply(f.query);
|
|
659
|
+
}
|
|
660
|
+
}, children: [_jsx("span", { children: f.name }), _jsx(TabCount, { counted: tabCounts?.get(squeeze(`${entry.table} ${f.query}`)) })] }), savable && (_jsx("button", { type: "button", className: "tab-x", title: say('common.removeName', { name: f.name }), "aria-label": say('removeTheView', { name: f.name }), onClick: () => writeViews.mutate((views) => withoutView(views, f.name)), children: "\u00D7" }))] }, f.name)))] }), _jsx("div", { className: "tab-more", "data-fold-more": "", "data-folded": folded.size ? undefined : '', "aria-hidden": !folded.size || undefined, children: _jsxs(DropMenu, { className: "tab-more-menu", triggerClassName: "tab", label: message('common.more'), popupClassName: "page-actions-popup", align: "end", children: [tabs.map((tab, i) => folded.has(i) ? (_jsxs(DropItem, { className: "page-actions-item", onClick: () => pickTab(i), children: [_jsx("span", { children: tab.label }), _jsx(TabCount, { counted: countOf(i) })] }, tab.label)) : null), yours.some((_, i) => folded.has(savedAt + i)) && (_jsx(DropGroup, { labelClassName: "more-group-label", label: store === 'account' ? say('myViews') : say('savedViews'), children: yours.map((f, i) => folded.has(savedAt + i) ? (_jsx(DropItem, { className: "page-actions-item", onClick: () => {
|
|
661
|
+
state.page = 0;
|
|
662
|
+
apply(f.query);
|
|
663
|
+
}, children: f.name }, f.name)) : null) }))] }) })] })), spec.filterBar !== 'none' && (_jsxs("form", { className: "applist-filterbar", ref: form, onSubmit: submit, children: [_jsxs("div", { className: "applist-fields", children: [chipsInBar && table && (_jsx(ListFilterBar, { table: table, boxes: boxes, search: searchBox, refinement: refinement, tabQuery: tabQuery, standing: spec.query ?? '', unitOf: unitOf, typed: searchBox ? edits[searchBox.column]?.raw : undefined, onType: (raw) => {
|
|
664
|
+
if (!searchBox)
|
|
665
|
+
return;
|
|
666
|
+
/* Now, not on the next paint: the search field's own × asks in the same event. */
|
|
667
|
+
editsNow.current = {
|
|
668
|
+
...editsNow.current,
|
|
669
|
+
[searchBox.column]: { raw },
|
|
670
|
+
};
|
|
671
|
+
setEdits(editsNow.current);
|
|
672
|
+
}, onSearch: () => form.current?.requestSubmit(), apply: apply, current: currentText, residue: residueChip, listLabel: caption, phone: phone, onSheet: () => setSheet(true) })), spec.sorts?.length && !beside ? (_jsx(SortMenu, { sorts: spec.sorts, sort: spec.sort, query: entry.query, onPick: (query) => {
|
|
673
|
+
walk.page = 0;
|
|
674
|
+
navigate(query);
|
|
675
|
+
} })) : null, _jsxs("div", { className: "applist-actions", children: [railed && railNarrow && railProps && boxes.length > 0 && (_jsx("button", { type: "button", className: "applist-toggle", "aria-haspopup": "dialog", onClick: () => setSheet(true), children: narrowed ? say('common.filters', { narrowed }) : say('common.filtersButton') })), spec.advancedFilters === true && boxes.length > 0 && (_jsx("button", { type: "button", className: "applist-toggle", "aria-expanded": showAdvanced, onClick: () => {
|
|
676
|
+
setAdvanced(!showAdvanced);
|
|
677
|
+
// Opening an inline editor must not scroll its toggle beneath
|
|
678
|
+
// the sticky trail, leaving the same control impossible to close.
|
|
679
|
+
if (!showAdvanced)
|
|
680
|
+
setTimeout(() => filter.current?.focus({ preventScroll: true }), 0);
|
|
681
|
+
}, children: say('advanced') })), offerSave && (_jsx("button", { type: "button", className: "applist-toggle", title: store === 'account' ? say('keepThisTabIts') : say('keepThisTabItsFilters'), onClick: () => void save(), children: say('saveView') })), savable && yourLit >= 0 && (_jsx("button", { type: "button", className: "applist-toggle", onClick: () => void rename(yours[yourLit]), children: say('renameView') }))] })] }), _jsx("div", { className: "applist-advanced", hidden: !showAdvanced, children: _jsx("input", { ref: filter, type: "text", className: "applist-filter", defaultValue: refinement, placeholder: naming ? say('contains', { naming }) : say('filterRecords'), "aria-label": say('filter', { caption }),
|
|
682
|
+
/* The form has no submit button and, beside the search box, two
|
|
683
|
+
fields, so Enter submits by hand rather than by implicit submission. */
|
|
684
|
+
onKeyDown: (e) => {
|
|
685
|
+
if (e.key === 'Enter' && !e.nativeEvent.isComposing) {
|
|
686
|
+
e.preventDefault();
|
|
687
|
+
form.current?.requestSubmit();
|
|
688
|
+
}
|
|
689
|
+
} }) })] })), inCrumbs && _jsx("span", { className: "applist-presentation", ref: listControlsRef })] }), beside && railProps ? (_jsxs("div", { className: "applist-body has-rail", children: [_jsx("aside", { className: "filter-rail", ref: rail, "aria-label": say('captionFilters', { caption }), children: _jsx(FilterRail, { ...railProps, clearAll: false, onChange: apply, status: matched }) }), _jsxs("div", { className: "applist-results", children: [_jsxs("div", { className: "applist-results-head", children: [_jsxs("div", { className: "applist-chips", role: "group", "aria-label": say('filtersApplied', { caption }), children: [chipList, narrowed > 0 && (_jsx("button", { type: "button", className: "applist-chips-clear", onClick: () => apply(clearFacets(refinement, boxes.map((box) => box.column), tabQuery)), children: say('list.clearAll') }))] }), spec.sorts?.length ? (_jsx(SortMenu, { sorts: spec.sorts, sort: spec.sort, query: entry.query, onPick: (query) => {
|
|
690
|
+
walk.page = 0;
|
|
691
|
+
navigate(query);
|
|
692
|
+
} })) : null] }), _jsx(AppColumnMenuContext.Provider, { value: menuHost, children: grid })] })] })) : (_jsx(AppColumnMenuContext.Provider, { value: menuHost, children: grid })), sheet && railProps && (_jsx(FilterSheet, { ...railProps, boxes: railed ? boxes : boxes.filter((box) => box !== searchBox), onClose: () => setSheet(false), onApply: (text) => {
|
|
693
|
+
setSheet(false);
|
|
694
|
+
apply(text);
|
|
695
|
+
} }))] }));
|
|
696
|
+
}
|