@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,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What an App list's column menu offers, before anything is drawn.
|
|
3
|
+
*
|
|
4
|
+
* The Workbench's header menu (ThMenu.tsx) is a power tool: every condition
|
|
5
|
+
* the language has, sampled values, the language itself beside each entry.
|
|
6
|
+
* In an App that was a dozen entries and a scrollbar under a reader who
|
|
7
|
+
* wanted the column sorted or narrowed. So an App's menu has at most five:
|
|
8
|
+
* the two sorts, worded by what the column holds; one Filter… that opens the
|
|
9
|
+
* rail's own control for the column; Clear filter while there is one; and
|
|
10
|
+
* Pin column, last. Pure, so the menu and its tests read one rule.
|
|
11
|
+
*/
|
|
12
|
+
import { columnKind } from '@mistriwork/engine/shared/schema.js';
|
|
13
|
+
import { say as sayCopy } from '../copy/columnMenu/components/appColumnMenuModel.js';
|
|
14
|
+
/**
|
|
15
|
+
* The words the two sorts say, fitted to what the column holds: text reads
|
|
16
|
+
* A → Z, a figure Low → high, a date Oldest first. A flag and a vocabulary
|
|
17
|
+
* name their ends — `No → Yes`, `New → Lost` — in the words the list shows
|
|
18
|
+
* them by: a vocabulary sorts in the order it was declared, a native enum by
|
|
19
|
+
* the engine and one over text through the read's ORDER BY (schema.ts
|
|
20
|
+
* `declaredOrder`), so a pipeline reads as one rather than A → Z.
|
|
21
|
+
*/
|
|
22
|
+
export function sortWords(kind, meta, say = (value) => value) {
|
|
23
|
+
const allowed = meta?.allowed;
|
|
24
|
+
if (allowed && allowed.length > 1) {
|
|
25
|
+
const [first, last] = [say(allowed[0]), say(allowed[allowed.length - 1])];
|
|
26
|
+
return [`${first} → ${last}`, `${last} → ${first}`];
|
|
27
|
+
}
|
|
28
|
+
if (kind === 'boolean') {
|
|
29
|
+
const [no, yes] = [say('false'), say('true')];
|
|
30
|
+
return [`${no} → ${yes}`, `${yes} → ${no}`];
|
|
31
|
+
}
|
|
32
|
+
if (kind === 'date')
|
|
33
|
+
return [sayCopy('oldestFirst'), sayCopy('newestFirst')];
|
|
34
|
+
if (kind === 'number' || (meta && columnKind(meta.type) === 'number'))
|
|
35
|
+
return [sayCopy('lowHigh'), sayCopy('highLow')];
|
|
36
|
+
return ['A → Z', 'Z → A'];
|
|
37
|
+
}
|
|
38
|
+
/** The menu, in order. An entry that repeats the current sort is dropped: it would do nothing. */
|
|
39
|
+
export function appMenuEntries({ words, sortable, current, filterable, filtered, cleared, pinned }) {
|
|
40
|
+
const entries = [];
|
|
41
|
+
if (sortable && current !== 'asc')
|
|
42
|
+
entries.push({ key: 'asc', label: words[0] });
|
|
43
|
+
if (sortable && current !== 'desc')
|
|
44
|
+
entries.push({ key: 'desc', label: words[1] });
|
|
45
|
+
if (filterable)
|
|
46
|
+
entries.push({ key: 'filter', label: sayCopy('filterMore') });
|
|
47
|
+
if (filterable && filtered)
|
|
48
|
+
entries.push({ key: 'clear', label: sayCopy('clearFilter'), ...(cleared ? { detail: cleared } : {}) });
|
|
49
|
+
entries.push({ key: 'pin', label: pinned ? sayCopy('unpinColumn') : sayCopy('pinColumn') });
|
|
50
|
+
return entries;
|
|
51
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { type AppNoun } from '@mistriwork/engine/shared/model.js';
|
|
2
|
+
import { type DatabaseSchema, type TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
3
|
+
import { type ListTab } from '@mistriwork/engine/shared/listQuestion.js';
|
|
4
|
+
import type { AppAction } from '@mistriwork/engine/schema/model.js';
|
|
5
|
+
import type { AppForm } from '@mistriwork/engine/shared/servedApp.js';
|
|
6
|
+
import type { AppListPresentation, AppSplitListDetail } from '@mistriwork/engine/shared/listPresentations.js';
|
|
7
|
+
/** One of the App's list views, with what its resource lets it offer — or the stand-in for a table it has no view of. */
|
|
8
|
+
export interface ListSpec {
|
|
9
|
+
/** The view's key, when the App has a view of this list: which view
|
|
10
|
+
opened a room rides the walk as `view` and wins over table and query. */
|
|
11
|
+
id?: string;
|
|
12
|
+
/** How the rows are drawn; a `split` is the list/detail workspace. */
|
|
13
|
+
presentation?: AppListPresentation;
|
|
14
|
+
empty?: import('@mistriwork/engine/shared/listPresentations.js').AppListEmpty;
|
|
15
|
+
quickAdd?: true;
|
|
16
|
+
/** The view carries a Favorites star. */
|
|
17
|
+
favorite?: true;
|
|
18
|
+
/** The menu's mark for the view, one of the App icons. */
|
|
19
|
+
icon?: string;
|
|
20
|
+
/** Columns summed in the grid's footer, over the whole query. */
|
|
21
|
+
totals?: string[];
|
|
22
|
+
/** Row height; 'comfortable' is the default. */
|
|
23
|
+
density?: 'comfortable' | 'compact';
|
|
24
|
+
/** A ⋯ menu at the end of each row with the record's own actions. */
|
|
25
|
+
rowActions?: true;
|
|
26
|
+
/** Cells edited in place, and a selection's "Set field…": every shown writable column, or those named. */
|
|
27
|
+
editable?: true | string[];
|
|
28
|
+
/** 'none' hides the filter form; 'rail' draws the filters as facets beside the rows. */
|
|
29
|
+
filterBar?: import('@mistriwork/engine/shared/listPresentations.js').FilterBar;
|
|
30
|
+
/** A text filter's suggestions: the columns whose values it offers as the reader types. */
|
|
31
|
+
suggest?: Record<string, readonly string[]>;
|
|
32
|
+
advancedFilters?: boolean;
|
|
33
|
+
/** A split's single keys: a key → the id of an action of the picked record. */
|
|
34
|
+
keys?: Record<string, string>;
|
|
35
|
+
/** false draws the list without its title; it stays for a screen reader. */
|
|
36
|
+
heading?: false;
|
|
37
|
+
sizing?: import('@mistriwork/engine/shared/tableSizing.js').TableSizing;
|
|
38
|
+
table: string;
|
|
39
|
+
/** The list's own name, its heading. The menu may call it something else. */
|
|
40
|
+
label: string;
|
|
41
|
+
query?: string;
|
|
42
|
+
tabs?: ListTab[];
|
|
43
|
+
/** The server's word for what the menu counts, where it is not `query`: a saved form's drafts left out. */
|
|
44
|
+
countQuery?: string;
|
|
45
|
+
/** The author's say on the menu's count, over the rule (shared/menuCounts.ts). */
|
|
46
|
+
count?: boolean;
|
|
47
|
+
/** Columns or label paths the list shows, in order. */
|
|
48
|
+
show?: string[];
|
|
49
|
+
filters?: string[];
|
|
50
|
+
/** The orders a reader may choose from the list's Sort menu. */
|
|
51
|
+
sorts?: Array<{
|
|
52
|
+
label: string;
|
|
53
|
+
sort: string;
|
|
54
|
+
}>;
|
|
55
|
+
/** The order the list reads in when nothing else says one: the view's, kept out of the bar as `order` is. */
|
|
56
|
+
sort?: string;
|
|
57
|
+
/** The numeric column holding each row's place: the list reads in it, and an editor puts rows in place (useListOrder.tsx). */
|
|
58
|
+
order?: string;
|
|
59
|
+
/** The resource's New form. */
|
|
60
|
+
form?: AppForm<string>;
|
|
61
|
+
/** What the list offers: its resource's actions, narrowed by a queue's or a board's selector. */
|
|
62
|
+
actions?: AppAction[];
|
|
63
|
+
/** What one of its records is called, and several: its resource's noun. */
|
|
64
|
+
noun?: AppNoun;
|
|
65
|
+
error?: string;
|
|
66
|
+
open?: 'page' | 'drawer' | 'modal';
|
|
67
|
+
/** A reference column whose record a row opens instead of the row (rowOpens.ts). */
|
|
68
|
+
opens?: string;
|
|
69
|
+
/** A split list's authored page size: the view's, like its show clause —
|
|
70
|
+
written into its question, never offered back as a filter. */
|
|
71
|
+
limit?: number;
|
|
72
|
+
}
|
|
73
|
+
/** The split workspace a list's presentation is, or undefined. */
|
|
74
|
+
export declare const splitOf: (spec: Pick<ListSpec, 'presentation'> | undefined) => AppSplitListDetail | undefined;
|
|
75
|
+
/** The list half of a split workspace: the view's own list, at the split's page size.
|
|
76
|
+
The presentation stays: a split that chose its rows draws them, and one that did not is the plain grid.
|
|
77
|
+
Here rather than beside the room, because an address says the list's question too. */
|
|
78
|
+
export declare function splitListSpec(spec: ListSpec): ListSpec;
|
|
79
|
+
/** A list on the walk. `view` is the key of the view that opened it. */
|
|
80
|
+
export interface ListEntry {
|
|
81
|
+
table: string;
|
|
82
|
+
query: string;
|
|
83
|
+
tab?: string;
|
|
84
|
+
view?: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The app's list spec behind a table: one of its views when the app has
|
|
88
|
+
* one, and a synthesized stand-in — the humanized name, derived filter
|
|
89
|
+
* boxes, no tabs, the resource's form and actions — when it does not.
|
|
90
|
+
* Tables without a view used to fall through to the explorer's grid, but
|
|
91
|
+
* every drill from a page lands on one, and each landing swapped the room's
|
|
92
|
+
* dress for raw chrome. The dress is a property of the mode, not of being listed.
|
|
93
|
+
*
|
|
94
|
+
* A table may have several views — the plain list and its modules ("Work
|
|
95
|
+
* orders", "Urgent orders"). The view the room was opened from says which,
|
|
96
|
+
* when the walk carries its key (`view`): a split beside a plain list asks
|
|
97
|
+
* the same question of the same rows, and nothing else can tell them apart;
|
|
98
|
+
* and a list view only a dashboard embeds is reached by its key alone.
|
|
99
|
+
* Without one the walk's own query decides among the rooms the App lists,
|
|
100
|
+
* as it always did: the view one of whose tabs *is* this query, else the
|
|
101
|
+
* module whose standing conditions lead it, else the plain list, else the
|
|
102
|
+
* first.
|
|
103
|
+
*/
|
|
104
|
+
export declare function appListFor(tableId: string, query?: string, view?: string): ListSpec;
|
|
105
|
+
/** Only synthesized lists use these defaults; authored projections remain authoritative. */
|
|
106
|
+
export declare function defaultListShow(schema: DatabaseSchema, base: TableMeta): string[];
|
|
107
|
+
/**
|
|
108
|
+
* The references among a list's columns, each with the path its record's
|
|
109
|
+
* name is read from (shared/listQuestion.ts): the name rides the row,
|
|
110
|
+
* fetched in the list's own statement, and the key stays the column's value.
|
|
111
|
+
*/
|
|
112
|
+
export declare function referenceNames(tableId: string, names: readonly string[]): Record<string, string>;
|
|
113
|
+
export declare const specTabs: (spec: ListSpec) => ListTab[];
|
|
114
|
+
/** The columns a shown column's second line reads: fetched with the row, drawn under it. */
|
|
115
|
+
export declare function subtitleColumns(tableId: string, shown: readonly string[]): string[];
|
|
116
|
+
/** The references an editable list shows by name (`owner_id.name`): their keys ride along
|
|
117
|
+
with the row, so a cell edits the reference and says what it replaces (GridCellEditor.tsx). */
|
|
118
|
+
export declare function editedReferences(spec: Pick<ListSpec, 'table' | 'show' | 'editable' | 'presentation'>): string[];
|
|
119
|
+
/** The column a list's search box searches: the one its records are named by,
|
|
120
|
+
where a filter box can read it — not a templated name (`$label`), which is
|
|
121
|
+
computed, nor a column an API cannot filter by. The list draws that box and
|
|
122
|
+
its address says it as `search=` (publicAddress.ts), by this one rule. */
|
|
123
|
+
export declare function searchColumn(t: TableMeta | undefined): string | undefined;
|
|
124
|
+
/** The references a list draws — its `show`, its presentation's columns, or every column — by the path each is named from (referenceNames). */
|
|
125
|
+
export declare function listReferenceNames(spec: Pick<ListSpec, 'table' | 'show' | 'presentation'>): Record<string, string>;
|
|
126
|
+
/** The full query text one of the app's tabs stands for. A module's
|
|
127
|
+
standing conditions come first; a tab refines on top of them. */
|
|
128
|
+
export declare function appListQuery(spec: ListSpec, index?: number): string;
|
|
129
|
+
/** The tabs as the bar reads them: each tab's question as the list asks it, less what the view always asks — its
|
|
130
|
+
standing conditions, its show, and its order. A tab whose own sort is the view's order is said without it, as
|
|
131
|
+
the question it opens is, so it lights on arrival and is never a chip ("Offered is Offered"). */
|
|
132
|
+
export declare function shownTabs(spec: ListSpec): ListTab[];
|
|
133
|
+
/** What the breadcrumb calls this list: the app's label, with the tab or
|
|
134
|
+
what the refinement narrows to — never the raw query text. */
|
|
135
|
+
export declare function appCrumbLabel(entry: ListEntry): string;
|
|
136
|
+
/**
|
|
137
|
+
* A refinement as the crumb says it: the values it narrows to — "Sedan,
|
|
138
|
+
* Toyota" — when every condition is a plain equality, up to three; the first
|
|
139
|
+
* two and how many more when some are; the number of filters when none are.
|
|
140
|
+
* A sort or a column list narrows nothing and says nothing. "· filtered" told
|
|
141
|
+
* a reader that something was hidden and not what.
|
|
142
|
+
*/
|
|
143
|
+
export declare function refinementWords(refinement: string): string;
|
|
144
|
+
/**
|
|
145
|
+
* The bar shows the question without the table name — the heading already
|
|
146
|
+
* says which table this is — and without the app's show clause, which is
|
|
147
|
+
* plumbing, not part of anyone's question.
|
|
148
|
+
*/
|
|
149
|
+
export declare function visibleQuestion(spec: ListSpec, query: string): string;
|
|
150
|
+
/** A tab's question as the bar reads it: the whole question it opens (appListQuery), less the view's plumbing. */
|
|
151
|
+
export declare const tabQuestion: (spec: ListSpec, index: number) => string;
|
|
152
|
+
/** The plumbing folded back in on the way out — unless the reader wrote a
|
|
153
|
+
show of their own, which wins and stays visible. */
|
|
154
|
+
export declare function wholeQuery(spec: ListSpec, typed: string): string;
|
|
155
|
+
/**
|
|
156
|
+
* Which tab the state is, boxes aside. A box column can also be a tab's
|
|
157
|
+
* own dimension — status is both, on many lists — so each tab is compared
|
|
158
|
+
* with only the *other* box columns stripped: the tab's own condition
|
|
159
|
+
* keeps its value, and "Open" does not light up for a state that says
|
|
160
|
+
* in_progress. Canonical on both sides: narrowing an or-tab wrapped its
|
|
161
|
+
* group in parens, and `(a or b)` still *is* the "a or b" tab.
|
|
162
|
+
*/
|
|
163
|
+
export declare function litTabFor(tabs: ListTab[], refinement: string, boxColumns: string[]): number;
|
|
164
|
+
/** The refinement with every box column's conditions taken out. */
|
|
165
|
+
export declare function residueOf(refinement: string, boxColumns: string[]): string;
|
|
166
|
+
/** What the New button makes: one of the table's records, by its resource's
|
|
167
|
+
noun ("New issue", "New update"), else by the table's own name. Never the
|
|
168
|
+
list's label, which may name a layout ("Task calendar") or a workspace
|
|
169
|
+
("Inbox"), and never a label singularised by rule ("Statuses" made
|
|
170
|
+
"New statuse"). */
|
|
171
|
+
export declare function newRecordNoun(spec: Pick<ListSpec, 'noun'>, tableName: string): string;
|
|
172
|
+
/**
|
|
173
|
+
* Which menu entry over a table the walk is on — the row to light. A table
|
|
174
|
+
* may sit in the menu more than once, the plain list and its modules: the
|
|
175
|
+
* view whose standing conditions lead the query wins, preferring the most
|
|
176
|
+
* specific; a bare table query lights the plain list. -1 for none. The
|
|
177
|
+
* view the walk says opened the room (`view`) wins over all of that.
|
|
178
|
+
*/
|
|
179
|
+
export declare function currentNavIndex(entries: Array<Pick<ListSpec, 'table' | 'query' | 'id'>>, tableId: string, query: string, view?: string): number;
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What an app's list page is, before anything is drawn.
|
|
3
|
+
*
|
|
4
|
+
* Which spec dresses a table, the query text each tab stands for, which
|
|
5
|
+
* tab a query text *is*, what the breadcrumb calls it, and how the app's
|
|
6
|
+
* plumbing (the show clause that fetches its columns and the keys a row
|
|
7
|
+
* needs to open) is folded out of the visible question and back in on the
|
|
8
|
+
* way out. Pure, so the component and the walk read one rule.
|
|
9
|
+
*
|
|
10
|
+
* There is one source of truth for what the list is showing: the entry's
|
|
11
|
+
* query text, exactly as in DB mode. A tab click writes the tab's query
|
|
12
|
+
* into it; the boxes edit it; a header menu appends to it; the URL carries
|
|
13
|
+
* it. Which tab is lit is *derived* from the text, so a refined tab
|
|
14
|
+
* honestly shows as a filter rather than pretending to still be the tab
|
|
15
|
+
* it started from.
|
|
16
|
+
*/
|
|
17
|
+
import { andQuery, expandSegments, splitClauseTail } from '@mistriwork/engine/shared/query.js';
|
|
18
|
+
import { humanName } from '@mistriwork/engine/shared/model.js';
|
|
19
|
+
import { recordNoun } from '@mistriwork/engine/shared/appNoun.js';
|
|
20
|
+
import { labelColumn, labelPath as schemaLabelPath } from '@mistriwork/engine/shared/schema.js';
|
|
21
|
+
import { findTable, labelPath, recordLabel, state } from '../core.js';
|
|
22
|
+
import { referenceProjection } from '@mistriwork/engine/shared/referenceModel.js';
|
|
23
|
+
import { LABEL_SEGMENT } from '@mistriwork/engine/shared/recordLabel.js';
|
|
24
|
+
import { appListQuery as sharedAppListQuery, editedReferences as sharedEditedReferences, limitClause, listReferenceNames as sharedListReferenceNames, orderClause, referenceNames as sharedReferenceNames, showClause as sharedShowClause, subtitleColumns as sharedSubtitleColumns, withOrder, } from '@mistriwork/engine/shared/listQuestion.js';
|
|
25
|
+
import { shell } from '../shellMode.js';
|
|
26
|
+
import { canonicalize, conditionTail, hasShowClause, squeeze, stripCondition } from '../filterbar.js';
|
|
27
|
+
import { maskQuoted, splitConditions, splitQuery } from '../clauses.js';
|
|
28
|
+
import { appRooms, isListRoom, offeredBy, resourceOf, viewRoom } from './appRooms.js';
|
|
29
|
+
import { say } from '../copy/lists/components/appListModel.js';
|
|
30
|
+
/* The question's rules live in shared/listQuestion.ts, where a first page's
|
|
31
|
+
is built by the server too; these read them over the App on screen. */
|
|
32
|
+
const rules = () => (state.schema ? { schema: state.schema, resources: shell().app()?.resources ?? {} } : undefined);
|
|
33
|
+
/** The split workspace a list's presentation is, or undefined. */
|
|
34
|
+
export const splitOf = (spec) => spec?.presentation?.kind === 'split' ? spec.presentation : undefined;
|
|
35
|
+
/** The list half of a split workspace: the view's own list, at the split's page size.
|
|
36
|
+
The presentation stays: a split that chose its rows draws them, and one that did not is the plain grid.
|
|
37
|
+
Here rather than beside the room, because an address says the list's question too. */
|
|
38
|
+
export function splitListSpec(spec) {
|
|
39
|
+
const limit = splitOf(spec)?.limit;
|
|
40
|
+
return { ...spec, ...(limit ? { limit } : {}) };
|
|
41
|
+
}
|
|
42
|
+
const table = (id) => findTable(id);
|
|
43
|
+
/**
|
|
44
|
+
* The app's list spec behind a table: one of its views when the app has
|
|
45
|
+
* one, and a synthesized stand-in — the humanized name, derived filter
|
|
46
|
+
* boxes, no tabs, the resource's form and actions — when it does not.
|
|
47
|
+
* Tables without a view used to fall through to the explorer's grid, but
|
|
48
|
+
* every drill from a page lands on one, and each landing swapped the room's
|
|
49
|
+
* dress for raw chrome. The dress is a property of the mode, not of being listed.
|
|
50
|
+
*
|
|
51
|
+
* A table may have several views — the plain list and its modules ("Work
|
|
52
|
+
* orders", "Urgent orders"). The view the room was opened from says which,
|
|
53
|
+
* when the walk carries its key (`view`): a split beside a plain list asks
|
|
54
|
+
* the same question of the same rows, and nothing else can tell them apart;
|
|
55
|
+
* and a list view only a dashboard embeds is reached by its key alone.
|
|
56
|
+
* Without one the walk's own query decides among the rooms the App lists,
|
|
57
|
+
* as it always did: the view one of whose tabs *is* this query, else the
|
|
58
|
+
* module whose standing conditions lead it, else the plain list, else the
|
|
59
|
+
* first.
|
|
60
|
+
*/
|
|
61
|
+
export function appListFor(tableId, query, view) {
|
|
62
|
+
const app = shell().app();
|
|
63
|
+
/* A key that names no view over this table — a link from before a view
|
|
64
|
+
was renamed or removed — falls back rather than failing. */
|
|
65
|
+
const own = app && view ? viewRoom(app, view) : undefined;
|
|
66
|
+
if (own && isListRoom(own) && own.table === tableId && !own.error)
|
|
67
|
+
return own;
|
|
68
|
+
const candidates = (app ? appRooms(app) : []).filter((e) => isListRoom(e) && e.table === tableId && !e.error);
|
|
69
|
+
if (candidates.length) {
|
|
70
|
+
if (query !== undefined) {
|
|
71
|
+
const exact = candidates.find((e) => activeTab(e, query) >= 0);
|
|
72
|
+
if (exact)
|
|
73
|
+
return exact;
|
|
74
|
+
const want = squeeze(query);
|
|
75
|
+
const leads = candidates.find((e) => e.query && want.startsWith(squeeze(`${e.table} ${e.query}`)));
|
|
76
|
+
if (leads)
|
|
77
|
+
return leads;
|
|
78
|
+
}
|
|
79
|
+
return candidates.find((e) => !e.query) ?? candidates[0];
|
|
80
|
+
}
|
|
81
|
+
const base = table(tableId);
|
|
82
|
+
const name = base?.name ?? tableId;
|
|
83
|
+
return {
|
|
84
|
+
table: tableId,
|
|
85
|
+
label: humanName(name) || name,
|
|
86
|
+
...(base ? { show: defaultListShow(state.schema, base) } : {}),
|
|
87
|
+
...offeredBy(resourceOf(app, tableId)),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/** Only synthesized lists use these defaults; authored projections remain authoritative. */
|
|
91
|
+
export function defaultListShow(schema, base) {
|
|
92
|
+
const paths = base.columns.map((column) => column.name);
|
|
93
|
+
const { labels } = referenceProjection(schema, base, paths, true, (target) => schemaLabelPath(schema, target, recordLabel(target)));
|
|
94
|
+
return base.columns.map((column) => (column.primaryKey ? column.name : (labels.get(column.name) ?? column.name)));
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The references among a list's columns, each with the path its record's
|
|
98
|
+
* name is read from (shared/listQuestion.ts): the name rides the row,
|
|
99
|
+
* fetched in the list's own statement, and the key stays the column's value.
|
|
100
|
+
*/
|
|
101
|
+
export function referenceNames(tableId, names) {
|
|
102
|
+
const over = rules();
|
|
103
|
+
return over ? sharedReferenceNames(over, tableId, names) : {};
|
|
104
|
+
}
|
|
105
|
+
export const specTabs = (spec) => (spec.tabs?.length ? spec.tabs : [{ label: say('common.all') }]);
|
|
106
|
+
/** The columns a shown column's second line reads: fetched with the row, drawn under it. */
|
|
107
|
+
export function subtitleColumns(tableId, shown) {
|
|
108
|
+
const over = rules();
|
|
109
|
+
return over ? sharedSubtitleColumns(over, tableId, shown) : [];
|
|
110
|
+
}
|
|
111
|
+
/** The references an editable list shows by name (`owner_id.name`): their keys ride along
|
|
112
|
+
with the row, so a cell edits the reference and says what it replaces (GridCellEditor.tsx). */
|
|
113
|
+
export function editedReferences(spec) {
|
|
114
|
+
const over = rules();
|
|
115
|
+
return over ? sharedEditedReferences(over, spec) : [];
|
|
116
|
+
}
|
|
117
|
+
/** The column a list's search box searches: the one its records are named by,
|
|
118
|
+
where a filter box can read it — not a templated name (`$label`), which is
|
|
119
|
+
computed, nor a column an API cannot filter by. The list draws that box and
|
|
120
|
+
its address says it as `search=` (publicAddress.ts), by this one rule. */
|
|
121
|
+
export function searchColumn(t) {
|
|
122
|
+
if (!t)
|
|
123
|
+
return undefined;
|
|
124
|
+
const label = recordLabel(t) === undefined ? labelColumn(t) : labelPath(t);
|
|
125
|
+
return label && label !== LABEL_SEGMENT && (!t.filterable || t.filterable.includes(label)) ? label : undefined;
|
|
126
|
+
}
|
|
127
|
+
/** The show clause that fetches the app's columns plus the keys a row needs to open. */
|
|
128
|
+
function showClause(spec) {
|
|
129
|
+
const over = rules();
|
|
130
|
+
return over ? sharedShowClause(over, spec) : '';
|
|
131
|
+
}
|
|
132
|
+
/** The references a list draws — its `show`, its presentation's columns, or every column — by the path each is named from (referenceNames). */
|
|
133
|
+
export function listReferenceNames(spec) {
|
|
134
|
+
const over = rules();
|
|
135
|
+
return over ? sharedListReferenceNames(over, spec) : {};
|
|
136
|
+
}
|
|
137
|
+
/** The full query text one of the app's tabs stands for. A module's
|
|
138
|
+
standing conditions come first; a tab refines on top of them. */
|
|
139
|
+
export function appListQuery(spec, index = 0) {
|
|
140
|
+
const over = rules();
|
|
141
|
+
return over
|
|
142
|
+
? sharedAppListQuery(over, spec, index)
|
|
143
|
+
: [spec.table, withOrder(spec, andQuery(spec.query, specTabs(spec)[index]?.query) ?? ''), limitClause(spec)].filter(Boolean).join(' ');
|
|
144
|
+
}
|
|
145
|
+
/** The tabs as the bar reads them: each tab's question as the list asks it, less what the view always asks — its
|
|
146
|
+
standing conditions, its show, and its order. A tab whose own sort is the view's order is said without it, as
|
|
147
|
+
the question it opens is, so it lights on arrival and is never a chip ("Offered is Offered"). */
|
|
148
|
+
export function shownTabs(spec) {
|
|
149
|
+
return specTabs(spec).map((tab, i) => {
|
|
150
|
+
const query = tabQuestion(spec, i);
|
|
151
|
+
const { query: _authored, ...rest } = tab;
|
|
152
|
+
return query ? { ...rest, query } : rest;
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/** Which tab the entry's query text is, or -1 when refined away. Canonical on
|
|
156
|
+
both sides, as the tabs light (litTabFor): a tab clicked asks its `a or b`
|
|
157
|
+
bare, and its question as composed brackets it, `(a or b)` — the same tab,
|
|
158
|
+
which the crumb called by its query instead of its name. */
|
|
159
|
+
function activeTab(spec, query) {
|
|
160
|
+
/* The question hides the view's standing conditions, so a query that never
|
|
161
|
+
asked them (the bare table) reads as empty, as an untabbed view's own
|
|
162
|
+
does: without this, a table's plain address was the first filtered view
|
|
163
|
+
over it (Urgent orders for work_order), its conditions and all. */
|
|
164
|
+
const standing = standingHead(spec);
|
|
165
|
+
if (standing && !unplumbed(spec, query).startsWith(standing))
|
|
166
|
+
return -1;
|
|
167
|
+
const want = canonicalize(visibleQuestion(spec, query));
|
|
168
|
+
return specTabs(spec).findIndex((_, i) => kept(spec, `\u0001${i}`, () => canonicalize(tabQuestion(spec, i))) === want);
|
|
169
|
+
}
|
|
170
|
+
/** What the breadcrumb calls this list: the app's label, with the tab or
|
|
171
|
+
what the refinement narrows to — never the raw query text. */
|
|
172
|
+
export function appCrumbLabel(entry) {
|
|
173
|
+
const spec = appListFor(entry.table, entry.query, entry.view);
|
|
174
|
+
if (squeeze(entry.query) === entry.table)
|
|
175
|
+
return spec.label;
|
|
176
|
+
const tab = activeTab(spec, entry.query);
|
|
177
|
+
if (tab === 0)
|
|
178
|
+
return spec.label;
|
|
179
|
+
if (tab > 0)
|
|
180
|
+
return `${spec.label} · ${specTabs(spec)[tab].label}`;
|
|
181
|
+
const words = refinementWords(visibleQuestion(spec, entry.query));
|
|
182
|
+
return words ? `${spec.label} · ${words}` : spec.label;
|
|
183
|
+
}
|
|
184
|
+
const unquoted = (value) => {
|
|
185
|
+
const text = value.trim();
|
|
186
|
+
return /^(["']).*\1$/.test(text) ? text.slice(1, -1) : text;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* A refinement as the crumb says it: the values it narrows to — "Sedan,
|
|
190
|
+
* Toyota" — when every condition is a plain equality, up to three; the first
|
|
191
|
+
* two and how many more when some are; the number of filters when none are.
|
|
192
|
+
* A sort or a column list narrows nothing and says nothing. "· filtered" told
|
|
193
|
+
* a reader that something was hidden and not what.
|
|
194
|
+
*/
|
|
195
|
+
export function refinementWords(refinement) {
|
|
196
|
+
const { filter } = splitQuery(`list ${refinement}`);
|
|
197
|
+
const conditions = splitConditions(filter).map(squeeze).filter(Boolean);
|
|
198
|
+
if (!conditions.length)
|
|
199
|
+
return '';
|
|
200
|
+
/* A word says itself ("Sedan"); a number alone says nothing, so it
|
|
201
|
+
carries its column's name ("Priority 2"). */
|
|
202
|
+
const plain = conditions.flatMap((condition) => {
|
|
203
|
+
const m = /^([A-Za-z_][\w.]*)\s*=\s*(.+)$/.exec(condition);
|
|
204
|
+
// An either-or is no one value: "a or status = b" is the query, not a word.
|
|
205
|
+
if (!m || /\sor\s/i.test(maskQuoted(condition)))
|
|
206
|
+
return [];
|
|
207
|
+
const value = unquoted(m[2]);
|
|
208
|
+
return [/^-?\d+(?:\.\d+)?$/.test(value) ? `${humanName(m[1].split('.').pop() ?? m[1])} ${value}` : value];
|
|
209
|
+
});
|
|
210
|
+
if (plain.length === conditions.length && plain.length <= 3)
|
|
211
|
+
return plain.join(', ');
|
|
212
|
+
if (plain.length) {
|
|
213
|
+
const said = plain.slice(0, 2);
|
|
214
|
+
return `${said.join(', ')} +${conditions.length - said.length}`;
|
|
215
|
+
}
|
|
216
|
+
return say('filtersCount', { count: conditions.length });
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* The bar shows the question without the table name — the heading already
|
|
220
|
+
* says which table this is — and without the app's show clause, which is
|
|
221
|
+
* plumbing, not part of anyone's question.
|
|
222
|
+
*/
|
|
223
|
+
export function visibleQuestion(spec, query) {
|
|
224
|
+
return kept(spec, query, () => inTabWords(spec, standingless(spec, query)));
|
|
225
|
+
}
|
|
226
|
+
/** A tab's question as the bar reads it: the whole question it opens (appListQuery), less the view's plumbing. */
|
|
227
|
+
export const tabQuestion = (spec, index) => kept(spec, `\u0000${index}`, () => visibleQuestion(spec, appListQuery(spec, index)));
|
|
228
|
+
/* A view's questions as read, kept per view while the schema and the App stand: both are replaced when they change,
|
|
229
|
+
never edited in place. The list, its crumb, its room, its address and the nav each ask them several times a paint,
|
|
230
|
+
every tab's composed and read again for each; a sort asked them all again inside its click
|
|
231
|
+
(test/built-client-vitals.mjs). */
|
|
232
|
+
let read = new WeakMap();
|
|
233
|
+
let readOver = [];
|
|
234
|
+
function kept(spec, key, ask) {
|
|
235
|
+
const over = [state.schema, shell().app()];
|
|
236
|
+
if (over[0] !== readOver[0] || over[1] !== readOver[1])
|
|
237
|
+
[read, readOver] = [new WeakMap(), over];
|
|
238
|
+
const said = read.get(spec) ?? new Map();
|
|
239
|
+
read.set(spec, said);
|
|
240
|
+
if (!said.has(key)) {
|
|
241
|
+
if (said.size > 99)
|
|
242
|
+
said.clear();
|
|
243
|
+
said.set(key, ask());
|
|
244
|
+
}
|
|
245
|
+
return said.get(key);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* A question that spells out a tab's segment, said in the tab's word: a dashboard's drill into Incidents asks
|
|
249
|
+
* `status != resolved and status != closed and priority = critical`, which is the Active tab (`active`) and the
|
|
250
|
+
* priority's box. A tab names its segment (appSegments.ts), so without this the drill lit no tab and its address
|
|
251
|
+
* was the whole question; where several tabs fit, the one that accounts for the most conditions.
|
|
252
|
+
*/
|
|
253
|
+
function inTabWords(spec, question) {
|
|
254
|
+
const segments = findTable(spec.table)?.segments;
|
|
255
|
+
if (!segments || !question)
|
|
256
|
+
return question;
|
|
257
|
+
const { head, tail } = splitClauseTail(question);
|
|
258
|
+
const said = splitConditions(head);
|
|
259
|
+
if (!said.length)
|
|
260
|
+
return question;
|
|
261
|
+
const heard = said.map((condition) => canonicalize(condition));
|
|
262
|
+
let best;
|
|
263
|
+
for (const tab of specTabs(spec)) {
|
|
264
|
+
const word = tab.query?.trim();
|
|
265
|
+
if (!word || !Object.hasOwn(segments, word))
|
|
266
|
+
continue;
|
|
267
|
+
const own = splitConditions(unwrapped(expandSegments(segments[word], segments).text));
|
|
268
|
+
const taken = new Set();
|
|
269
|
+
for (const condition of own) {
|
|
270
|
+
const at = heard.findIndex((candidate, i) => !taken.has(i) && candidate === canonicalize(condition));
|
|
271
|
+
if (at < 0)
|
|
272
|
+
break;
|
|
273
|
+
taken.add(at);
|
|
274
|
+
}
|
|
275
|
+
if (own.length && taken.size === own.length && (!best || taken.size > best.taken.size))
|
|
276
|
+
best = { word, taken };
|
|
277
|
+
}
|
|
278
|
+
if (!best)
|
|
279
|
+
return question;
|
|
280
|
+
const filter = [best.word, ...said.filter((_, i) => !best.taken.has(i))].join(' and ');
|
|
281
|
+
return tail ? `${filter} ${tail}` : filter;
|
|
282
|
+
}
|
|
283
|
+
/** A condition text without the parentheses a segment's expansion stands in. */
|
|
284
|
+
function unwrapped(text) {
|
|
285
|
+
const trimmed = text.trim();
|
|
286
|
+
if (!trimmed.startsWith('(') || !trimmed.endsWith(')'))
|
|
287
|
+
return trimmed;
|
|
288
|
+
let depth = 0;
|
|
289
|
+
for (let i = 0; i < trimmed.length; i++) {
|
|
290
|
+
if (trimmed[i] === '(')
|
|
291
|
+
depth++;
|
|
292
|
+
else if (trimmed[i] === ')' && --depth === 0 && i < trimmed.length - 1)
|
|
293
|
+
return trimmed;
|
|
294
|
+
}
|
|
295
|
+
return trimmed.slice(1, -1).trim();
|
|
296
|
+
}
|
|
297
|
+
function standingless(spec, query) {
|
|
298
|
+
const asked = unplumbed(spec, query);
|
|
299
|
+
/* A view's standing condition leads every question it asks (appListQuery).
|
|
300
|
+
It is the view's, not the reader's: the bar, the tabs and the chips see
|
|
301
|
+
only what follows it, and wholeQuery puts it back. A link that arrives
|
|
302
|
+
without it shows the whole of what it asks. */
|
|
303
|
+
const standing = standingHead(spec);
|
|
304
|
+
if (!standing || !asked.startsWith(standing))
|
|
305
|
+
return asked;
|
|
306
|
+
const rest = asked.slice(standing.length).trim();
|
|
307
|
+
if (!rest)
|
|
308
|
+
return '';
|
|
309
|
+
if (rest.startsWith('and '))
|
|
310
|
+
return rest.slice(4).trim();
|
|
311
|
+
return splitClauseTail(rest).head ? asked : rest;
|
|
312
|
+
}
|
|
313
|
+
/** The query without the table name and the view's own show, page size and order. */
|
|
314
|
+
function unplumbed(spec, query) {
|
|
315
|
+
const plumbing = squeeze(showClause(spec));
|
|
316
|
+
const whole = squeeze(query);
|
|
317
|
+
const bare = whole.startsWith(spec.table) ? whole.slice(spec.table.length).trim() : whole;
|
|
318
|
+
const shown = plumbing && bare.includes(plumbing) ? squeeze(bare.replace(plumbing, ' ')) : bare;
|
|
319
|
+
/* The authored page size is the view's too: "limit 25" was a chip with a ×
|
|
320
|
+
on every split list, a filter nobody had set. */
|
|
321
|
+
const paged = limitClause(spec);
|
|
322
|
+
const limited = paged && new RegExp(`(^|\\s)${paged}$`).test(shown) ? squeeze(shown.slice(0, -paged.length)) : shown;
|
|
323
|
+
const order = orderClause(spec);
|
|
324
|
+
return order && new RegExp(`(^|\\s)${order.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}$`).test(limited)
|
|
325
|
+
? squeeze(limited.slice(0, -order.length))
|
|
326
|
+
: limited;
|
|
327
|
+
}
|
|
328
|
+
/** The conditions a view always asks, as appListQuery writes them first. */
|
|
329
|
+
function standingHead(spec) {
|
|
330
|
+
const head = spec.query ? splitClauseTail(spec.query).head : '';
|
|
331
|
+
return head ? squeeze(andQuery(head)) : '';
|
|
332
|
+
}
|
|
333
|
+
/** The plumbing folded back in on the way out — unless the reader wrote a
|
|
334
|
+
show of their own, which wins and stays visible. */
|
|
335
|
+
export function wholeQuery(spec, typed) {
|
|
336
|
+
const plumbing = squeeze(showClause(spec));
|
|
337
|
+
// The view's hand order, unless the reader sorts the list another way.
|
|
338
|
+
const kept = withOrder(spec, squeeze(typed));
|
|
339
|
+
const shown = plumbing && !hasShowClause(typed) ? `${kept} ${plumbing}` : kept;
|
|
340
|
+
// The authored page size goes back on too, unless the reader wrote a limit of their own.
|
|
341
|
+
const paged = limitClause(spec);
|
|
342
|
+
const question = paged && !/(^|\s)limit\s+\d+/.test(squeeze(typed)) ? `${shown} ${paged}` : shown;
|
|
343
|
+
// The view's standing condition first, unless the reader wrote it out themselves.
|
|
344
|
+
const standing = standingHead(spec);
|
|
345
|
+
const asked = standing && !squeeze(typed).startsWith(standing) ? andQuery(spec.query, question) : question;
|
|
346
|
+
return squeeze(`${spec.table} ${asked}`);
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Which tab the state is, boxes aside. A box column can also be a tab's
|
|
350
|
+
* own dimension — status is both, on many lists — so each tab is compared
|
|
351
|
+
* with only the *other* box columns stripped: the tab's own condition
|
|
352
|
+
* keeps its value, and "Open" does not light up for a state that says
|
|
353
|
+
* in_progress. Canonical on both sides: narrowing an or-tab wrapped its
|
|
354
|
+
* group in parens, and `(a or b)` still *is* the "a or b" tab.
|
|
355
|
+
*/
|
|
356
|
+
export function litTabFor(tabs, refinement, boxColumns) {
|
|
357
|
+
/* Several tabs can match once box columns are stripped — an "All" tab
|
|
358
|
+
with no conditions matches anything the boxes account for — so the
|
|
359
|
+
most specific match wins: the tab that says the most itself. "Open"
|
|
360
|
+
lights for `status = open and priority = 2` even where status is also
|
|
361
|
+
a box, and "All" only when no other tab explains the text. */
|
|
362
|
+
let best = -1;
|
|
363
|
+
let said = -1;
|
|
364
|
+
tabs.forEach((tab, i) => {
|
|
365
|
+
const tq = canonicalize(tab.query ?? '');
|
|
366
|
+
let r = refinement;
|
|
367
|
+
for (const name of boxColumns) {
|
|
368
|
+
if (!conditionTail(tab.query ?? '', name))
|
|
369
|
+
r = stripCondition(r, name);
|
|
370
|
+
}
|
|
371
|
+
if (canonicalize(r) !== tq)
|
|
372
|
+
return;
|
|
373
|
+
if (tq.length > said) {
|
|
374
|
+
best = i;
|
|
375
|
+
said = tq.length;
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
return best;
|
|
379
|
+
}
|
|
380
|
+
/** The refinement with every box column's conditions taken out. */
|
|
381
|
+
export function residueOf(refinement, boxColumns) {
|
|
382
|
+
return boxColumns.reduce((out, name) => stripCondition(out, name), squeeze(refinement));
|
|
383
|
+
}
|
|
384
|
+
/** What the New button makes: one of the table's records, by its resource's
|
|
385
|
+
noun ("New issue", "New update"), else by the table's own name. Never the
|
|
386
|
+
list's label, which may name a layout ("Task calendar") or a workspace
|
|
387
|
+
("Inbox"), and never a label singularised by rule ("Statuses" made
|
|
388
|
+
"New statuse"). */
|
|
389
|
+
export function newRecordNoun(spec, tableName) {
|
|
390
|
+
return recordNoun(spec.noun, tableName);
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Which menu entry over a table the walk is on — the row to light. A table
|
|
394
|
+
* may sit in the menu more than once, the plain list and its modules: the
|
|
395
|
+
* view whose standing conditions lead the query wins, preferring the most
|
|
396
|
+
* specific; a bare table query lights the plain list. -1 for none. The
|
|
397
|
+
* view the walk says opened the room (`view`) wins over all of that.
|
|
398
|
+
*/
|
|
399
|
+
export function currentNavIndex(entries, tableId, query, view) {
|
|
400
|
+
if (view) {
|
|
401
|
+
const own = entries.findIndex((entry) => entry.table === tableId && entry.id === view);
|
|
402
|
+
if (own >= 0)
|
|
403
|
+
return own;
|
|
404
|
+
}
|
|
405
|
+
const want = query.replace(/\s+/g, ' ').trim();
|
|
406
|
+
let best = -1;
|
|
407
|
+
let bestLen = -1;
|
|
408
|
+
entries.forEach((entry, i) => {
|
|
409
|
+
if (entry.table !== tableId)
|
|
410
|
+
return;
|
|
411
|
+
const navq = entry.query ?? '';
|
|
412
|
+
const base = navq ? `${tableId} ${navq}`.replace(/\s+/g, ' ') : tableId;
|
|
413
|
+
const leads = navq ? want === base || want.startsWith(`${base} `) : true;
|
|
414
|
+
const len = navq ? base.length : 0;
|
|
415
|
+
if (leads && len > bestLen) {
|
|
416
|
+
best = i;
|
|
417
|
+
bestLen = len;
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
return best;
|
|
421
|
+
}
|