@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,108 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The public landing: an App's front page for someone who is not signed in.
|
|
4
|
+
* No sidebar, no query bar, no session — a headline, the calls to action,
|
|
5
|
+
* the author's sections and a footer, in the App's name and dress. Every
|
|
6
|
+
* string the author wrote is drawn as React text, so markup in it is shown
|
|
7
|
+
* and never run; the links were held to https:, mailto: and tel: when the
|
|
8
|
+
* App loaded, and are held to them again here before they become an href.
|
|
9
|
+
*/
|
|
10
|
+
import { useId } from 'react';
|
|
11
|
+
import { Accordion, AccordionItem } from './Accordion.js';
|
|
12
|
+
import './LandingSurface.css';
|
|
13
|
+
import { shown } from '../addressMount.js';
|
|
14
|
+
import { imageSources, imageFallbackSet, MEDIA_IMAGE_SIZES } from '@mistriwork/engine/shared/imageWidths.js';
|
|
15
|
+
import { Icon } from './Icon.js';
|
|
16
|
+
import { Badge, IconRows, PhotoTiles } from '@mistriwork/ui/HeroBlocks.js';
|
|
17
|
+
/**
|
|
18
|
+
* The top of the page. With a photo it is laid out `split` — the words and
|
|
19
|
+
* the photo side by side — or `overlay` — the photo behind the words under
|
|
20
|
+
* the photo stage's scrim, whose ink keeps its contrast whatever the
|
|
21
|
+
* picture and the theme. The photo's box has its size before the photo
|
|
22
|
+
* arrives, so nothing moves; on a phone it sits above the words. A search
|
|
23
|
+
* inside the hero is the search section's panel; the highlights are one
|
|
24
|
+
* quiet line under the actions, and the points are rows of an icon and a
|
|
25
|
+
* line. Tiles are two to four photos in a mosaic where the one photo would
|
|
26
|
+
* stand, sized before they arrive as it is; a badge is a pill over the
|
|
27
|
+
* heading.
|
|
28
|
+
*/
|
|
29
|
+
function Hero({ landing, app, id, host }) {
|
|
30
|
+
const hero = landing.hero;
|
|
31
|
+
const src = hero.image ? host.imageSrc?.(hero.image) : undefined;
|
|
32
|
+
/* Tiles are drawn only when every one of them has its address: a mosaic with a hole in it reads as broken. */
|
|
33
|
+
const tiles = hero.tiles?.map((tile) => ({ tile, src: host.imageSrc?.(tile) }));
|
|
34
|
+
const tiled = tiles?.every((each) => each.src) ? tiles : undefined;
|
|
35
|
+
const layout = src ? (hero.layout ?? 'split') : tiled ? 'split' : undefined;
|
|
36
|
+
const search = hero.search ? host.renderSection?.({ kind: 'search', ...hero.search }) : null;
|
|
37
|
+
/* With no photo to stand beside the words, a desk sets the points there instead (LandingSurface.css): a column
|
|
38
|
+
of reasons opposite the headline, not a list trailing under the button. On a phone they follow the actions,
|
|
39
|
+
where they always were. */
|
|
40
|
+
const points = hero.points?.length ? (_jsx(IconRows, { rows: hero.points.map((point) => ({ icon: _jsx(Icon, { name: point.icon, size: 18 }), text: point.text })) })) : null;
|
|
41
|
+
const beside = !layout && points !== null;
|
|
42
|
+
return (_jsxs("section", { className: `front-hero${layout ? ` front-hero-${layout}` : beside ? ' front-hero-beside' : ''}`, "aria-labelledby": `${id}-headline`, children: [src && (_jsx("div", { className: "front-hero-media", children: _jsxs("picture", { children: [imageSources(src).map((source) => (_jsx("source", { type: source.type, srcSet: source.srcSet, sizes: MEDIA_IMAGE_SIZES }, source.type))), _jsx("img", { src: src, srcSet: imageFallbackSet(src), sizes: MEDIA_IMAGE_SIZES, alt: hero.image.alt, decoding: "async", fetchPriority: "high" })] }) })), tiled && (_jsx(PhotoTiles, { tiles: tiled.map(({ tile, src: at }) => ({ src: at, srcSet: imageFallbackSet(at), sizes: MEDIA_IMAGE_SIZES, alt: tile.alt })) })), _jsxs("div", { className: "front-hero-text", children: [hero.badge && _jsx(Badge, { icon: hero.badge.icon && _jsx(Icon, { name: hero.badge.icon, size: 14 }), children: hero.badge.text }), _jsx("h1", { id: `${id}-headline`, children: hero.heading }), hero.description && _jsx(Prose, { text: hero.description, className: "front-lede" }), _jsx(Actions, { appId: app.id, actions: hero.actions, openView: host.openView }), hero.highlights?.length ? (_jsx("ul", { className: "front-highlights", children: hero.highlights.map((item) => (_jsx("li", { children: item }, item))) })) : null, beside ? null : points] }), beside ? _jsx("div", { className: "front-hero-points", children: points }) : null, search ? _jsx("div", { className: "front-hero-search", children: search }) : null] }));
|
|
43
|
+
}
|
|
44
|
+
/** Where a call to action goes when the App says nothing better: the public form's own page, or staff sign-in. */
|
|
45
|
+
export function actionHref(appId, action) {
|
|
46
|
+
const app = `/${encodeURIComponent(appId)}`;
|
|
47
|
+
return shown('view' in action ? `${app}/form/${encodeURIComponent(action.view)}` : `${app}/sign-in`);
|
|
48
|
+
}
|
|
49
|
+
/** The parser's rule, said again at the last moment an href can do harm. */
|
|
50
|
+
export function safeHref(href) {
|
|
51
|
+
return /^(?:https:\/\/|mailto:|tel:)/i.test(href) ? href : undefined;
|
|
52
|
+
}
|
|
53
|
+
/** A blank line starts a paragraph; that is the whole of the formatting. */
|
|
54
|
+
function Prose({ text, className }) {
|
|
55
|
+
return (_jsx(_Fragment, { children: text.split(/\n\s*\n/).map((paragraph, index) => (_jsx("p", { className: className, children: paragraph.trim() }, index))) }));
|
|
56
|
+
}
|
|
57
|
+
function Actions({ appId, actions, openView }) {
|
|
58
|
+
return (_jsx("div", { className: "front-actions", children: actions.map((action, index) => {
|
|
59
|
+
const kind = action.intent ?? (index === 0 ? 'primary' : 'secondary');
|
|
60
|
+
const link = 'view' in action ? openView?.(action.view) : undefined;
|
|
61
|
+
return (_jsx("a", { className: `front-action front-action-${kind}`, href: link?.href ?? actionHref(appId, action), onClick: link?.onClick, children: action.label }, index));
|
|
62
|
+
}) }));
|
|
63
|
+
}
|
|
64
|
+
function Link({ link }) {
|
|
65
|
+
const href = safeHref(link.href);
|
|
66
|
+
return href ? _jsx("a", { href: href, children: link.label }) : _jsx("span", { children: link.label });
|
|
67
|
+
}
|
|
68
|
+
/* A section's heading is an h2; an item's is an h3 under it, or an h2 when
|
|
69
|
+
the section has no title of its own — so the outline never skips a level. */
|
|
70
|
+
function Section({ section, appId, id, host }) {
|
|
71
|
+
const headingId = `${id}-title`;
|
|
72
|
+
const Item = section.title ? 'h3' : 'h2';
|
|
73
|
+
const heading = section.title ? _jsx("h2", { id: headingId, children: section.title }) : null;
|
|
74
|
+
const labelled = section.title ? headingId : undefined;
|
|
75
|
+
const className = `front-section front-${section.kind}`;
|
|
76
|
+
switch (section.kind) {
|
|
77
|
+
case 'features':
|
|
78
|
+
case 'steps': {
|
|
79
|
+
const List = section.kind === 'steps' ? 'ol' : 'ul';
|
|
80
|
+
return (_jsxs("section", { className: className, "aria-labelledby": labelled, children: [heading, _jsx(List, { className: "front-items", children: section.items.map((item, index) => (_jsxs("li", { children: [_jsx(Item, { children: item.title }), _jsx(Prose, { text: item.description })] }, index))) })] }));
|
|
81
|
+
}
|
|
82
|
+
case 'faq':
|
|
83
|
+
return (_jsxs("section", { className: className, "aria-labelledby": labelled, children: [heading, _jsx("div", { className: "front-questions", children: _jsx(Accordion, { children: section.items.map((item, index) => (_jsx(AccordionItem, { title: item.question, level: section.title ? 3 : 2, children: _jsx("div", { className: "front-answer", children: _jsx(Prose, { text: item.answer }) }) }, index))) }) })] }));
|
|
84
|
+
case 'view':
|
|
85
|
+
case 'search': {
|
|
86
|
+
/* Rows are the App's to draw; without it there is nothing to show, and no heading over nothing. */
|
|
87
|
+
const body = host.renderSection?.(section);
|
|
88
|
+
if (!body)
|
|
89
|
+
return null;
|
|
90
|
+
return (_jsxs("section", { className: className, "aria-labelledby": labelled, children: [heading, body] }));
|
|
91
|
+
}
|
|
92
|
+
case 'text':
|
|
93
|
+
return (_jsxs("section", { className: className, "aria-labelledby": labelled, children: [heading, _jsx("div", { className: "front-prose", children: _jsx(Prose, { text: section.text }) })] }));
|
|
94
|
+
case 'callToAction':
|
|
95
|
+
return (_jsxs("section", { className: className, "aria-labelledby": headingId, children: [_jsx("h2", { id: headingId, children: section.title }), section.description && _jsx(Prose, { text: section.description }), _jsx(Actions, { appId: appId, actions: section.actions, openView: host.openView })] }));
|
|
96
|
+
case 'contact':
|
|
97
|
+
return (_jsxs("section", { className: className, "aria-labelledby": labelled, children: [heading, _jsx("ul", { className: "front-links", children: section.items.map((link, index) => (_jsx("li", { children: _jsx(Link, { link: link }) }, index))) })] }));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export function LandingSurface({ landing, app, renderSection, openView, imageSrc, footer: drawsFooter = true, }) {
|
|
101
|
+
const host = { renderSection, openView, imageSrc };
|
|
102
|
+
const id = useId();
|
|
103
|
+
/* A landing is served the App's footer (landingRoutes),
|
|
104
|
+
so there is one footer per App rather than a front page whose small print
|
|
105
|
+
disagrees with every other room's. */
|
|
106
|
+
const footer = drawsFooter ? landing.footer : undefined;
|
|
107
|
+
return (_jsxs("div", { className: "front", children: [_jsx(Hero, { landing: landing, app: app, id: id, host: host }), (landing.sections ?? []).map((section, index) => (_jsx(Section, { section: section, appId: app.id, id: `${id}-s${index}`, host: host }, index))), footer && (_jsxs("footer", { className: "front-footer", children: [footer.text && _jsx(Prose, { text: footer.text }), footer.links?.length ? (_jsx("ul", { className: "front-links", children: footer.links.map((link, index) => (_jsx("li", { children: _jsx(Link, { link: link }) }, index))) })) : null] }))] }));
|
|
108
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
2
|
+
import type { RecoveryStatus } from '../draftRecovery.js';
|
|
3
|
+
export interface Section {
|
|
4
|
+
kind: 'fields' | 'list';
|
|
5
|
+
title?: string;
|
|
6
|
+
off?: boolean;
|
|
7
|
+
paths: string[];
|
|
8
|
+
via?: string;
|
|
9
|
+
columns: string[];
|
|
10
|
+
limit?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface Template {
|
|
13
|
+
id: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
base: string;
|
|
16
|
+
sections: Section[];
|
|
17
|
+
}
|
|
18
|
+
export interface LayoutBuilderProps {
|
|
19
|
+
draft: Template;
|
|
20
|
+
table: TableMeta;
|
|
21
|
+
/** The record beside the builder redraws, a beat later. */
|
|
22
|
+
onPreview: () => void;
|
|
23
|
+
/** Both redraw now. */
|
|
24
|
+
onApplied: () => void;
|
|
25
|
+
onReset: () => void;
|
|
26
|
+
onCancel: () => void;
|
|
27
|
+
onSave: () => void;
|
|
28
|
+
saving?: boolean;
|
|
29
|
+
error?: string;
|
|
30
|
+
recoveryStatus?: RecoveryStatus;
|
|
31
|
+
hasRecovery?: boolean;
|
|
32
|
+
recoverySourceChanged?: boolean;
|
|
33
|
+
onRecover?: (restore: boolean) => void;
|
|
34
|
+
canEdit?: () => boolean;
|
|
35
|
+
}
|
|
36
|
+
export declare function LayoutBuilder({ draft, table, onPreview, onApplied, onReset, onCancel, onSave, saving, error, recoveryStatus, hasRecovery, recoverySourceChanged, onRecover, canEdit, }: LayoutBuilderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The record layout editor: the sections of a record, each on or off,
|
|
4
|
+
* reordered, renamed, and its fields arranged — with the record beside it
|
|
5
|
+
* updating as you change it. The draft is one mutable object the record
|
|
6
|
+
* view also reads (`template.js` holds it), so a change here is a mutation
|
|
7
|
+
* and a redraw, not a copy.
|
|
8
|
+
*/
|
|
9
|
+
import { useState } from 'react';
|
|
10
|
+
import { findTable, state, tableAtPrefix } from '../core.js';
|
|
11
|
+
import { promptFor } from '../prompt.js';
|
|
12
|
+
import { DEFAULT_LIST_LIMIT } from '@mistriwork/engine/shared/recordview.js';
|
|
13
|
+
import { FieldArranger } from './FieldArranger.js';
|
|
14
|
+
import { say } from '../copy/record/components/LayoutBuilder.js';
|
|
15
|
+
function childOf(section) {
|
|
16
|
+
const fk = state.schema.foreignKeys.find((f) => f.name === section.via);
|
|
17
|
+
return fk ? (findTable(fk.from.table) ?? null) : null;
|
|
18
|
+
}
|
|
19
|
+
export function LayoutBuilder({ draft, table, onPreview, onApplied, onReset, onCancel, onSave, saving = false, error, recoveryStatus, hasRecovery = false, recoverySourceChanged, onRecover, canEdit = () => true, }) {
|
|
20
|
+
const [, bump] = useState(0);
|
|
21
|
+
const applied = () => {
|
|
22
|
+
bump((n) => n + 1);
|
|
23
|
+
onApplied();
|
|
24
|
+
};
|
|
25
|
+
const preview = () => {
|
|
26
|
+
bump((n) => n + 1);
|
|
27
|
+
onPreview();
|
|
28
|
+
};
|
|
29
|
+
const move = (index, delta) => {
|
|
30
|
+
if (!canEdit())
|
|
31
|
+
return;
|
|
32
|
+
const next = index + delta;
|
|
33
|
+
if (next < 0 || next >= draft.sections.length)
|
|
34
|
+
return;
|
|
35
|
+
const [section] = draft.sections.splice(index, 1);
|
|
36
|
+
draft.sections.splice(next, 0, section);
|
|
37
|
+
applied();
|
|
38
|
+
};
|
|
39
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "tpl-head", children: [_jsxs("div", { className: "tpl-title", children: [_jsx("span", { className: "tpl-eyebrow", children: say('recordLayout') }), _jsx("input", { type: "text", className: "tpl-name", value: draft.name ?? '', disabled: saving || hasRecovery, "aria-label": say('layoutName'), placeholder: say('defaultLayout'), spellCheck: false, onChange: (e) => {
|
|
40
|
+
if (canEdit()) {
|
|
41
|
+
draft.name = e.currentTarget.value;
|
|
42
|
+
preview();
|
|
43
|
+
}
|
|
44
|
+
} }), _jsx("span", { className: "tpl-for", children: say('for', { name: table.name }) })] }), hasRecovery ? (_jsxs("div", { className: "tpl-recovery", role: "status", children: [_jsx("p", { children: recoverySourceChanged ? say('anUnsavedDraftIsAvailable') : say('anUnsavedLayoutDraft') }), _jsxs("div", { className: "tpl-head-actions", children: [_jsx("button", { type: "button", onClick: () => onRecover?.(true), children: say('restoreDraft') }), _jsx("button", { type: "button", className: "ghost", onClick: () => onRecover?.(false), children: say('discardDraft') })] })] })) : null, recoveryStatus === 'unavailable' || recoveryStatus === 'conflict' ? (_jsx("p", { className: "tpl-error", role: "alert", children: recoveryStatus === 'conflict' ? say('anotherEditorChangedTheRecovery') : say('browserRecoveryIsUnavailable') })) : null, error ? (_jsx("p", { className: "tpl-error", role: "alert", children: error })) : null, _jsxs("div", { className: "tpl-head-actions", children: [_jsx("button", { type: "button", className: "ghost", disabled: saving || hasRecovery, onClick: onReset, children: say('resetToDefault') }), _jsx("button", { type: "button", className: "ghost", disabled: saving, onClick: onCancel, children: say('common.cancel') }), _jsx("button", { type: "button", disabled: saving || hasRecovery, onClick: onSave, children: saving ? 'Saving...' : say('saveLayout') })] })] }), _jsx("div", { className: "tpl-body", inert: saving || hasRecovery, "aria-busy": saving, children: draft.sections.map((section, index) => (_jsx(SectionCard, { section: section, index: index, count: draft.sections.length, draft: draft, table: table, onMove: (delta) => move(index, delta), applied: applied, preview: preview, canEdit: canEdit }, `${section.kind}:${section.via ?? ''}:${index}`))) })] }));
|
|
45
|
+
}
|
|
46
|
+
function SectionCard({ section, index, count, draft, table, onMove, applied, preview, canEdit, }) {
|
|
47
|
+
const isList = section.kind === 'list';
|
|
48
|
+
const child = isList ? childOf(section) : null;
|
|
49
|
+
const rename = async () => {
|
|
50
|
+
const name = await promptFor({
|
|
51
|
+
title: say('renameSection'),
|
|
52
|
+
label: say('heading'),
|
|
53
|
+
value: section.title ?? '',
|
|
54
|
+
confirmLabel: say('common.rename'),
|
|
55
|
+
hint: undefined,
|
|
56
|
+
placeholder: undefined,
|
|
57
|
+
});
|
|
58
|
+
if (name === null || !canEdit())
|
|
59
|
+
return;
|
|
60
|
+
section.title = name.trim() || undefined;
|
|
61
|
+
applied();
|
|
62
|
+
};
|
|
63
|
+
return (_jsxs("section", { className: `tpl-section${section.off ? ' off' : ''}`, children: [_jsxs("div", { className: "tpl-section-head", children: [_jsxs("label", { className: "tpl-toggle", children: [_jsx("input", { type: "checkbox", checked: !section.off, onChange: (e) => {
|
|
64
|
+
section.off = !e.currentTarget.checked;
|
|
65
|
+
applied();
|
|
66
|
+
} }), _jsx("span", { className: "tpl-section-name", children: section.title ?? say('fields') })] }), _jsx("span", { className: "tpl-section-kind", children: isList ? say('tableNamed', { table: (child ? child.name : section.via) ?? '' }) : say('fieldsKind') }), _jsxs("div", { className: "tpl-section-actions", children: [_jsx("button", { type: "button", className: "tpl-move", title: say('common.moveUp'), "aria-label": say('common.moveUp'), disabled: index === 0, onClick: () => onMove(-1), children: "\u2191" }), _jsx("button", { type: "button", className: "tpl-move", title: say('common.moveDown'), "aria-label": say('common.moveDown'), disabled: index === count - 1, onClick: () => onMove(1), children: "\u2193" }), _jsx("button", { type: "button", className: "tpl-move", title: say('common.rename'), "aria-label": say('renameSection'), onClick: () => void rename(), children: "\u270E" })] })] }), section.off ? null : isList ? (_jsx(ListChoices, { section: section, child: child, applied: applied, preview: preview })) : (_jsx(FieldChoices, { section: section, draft: draft, table: table, applied: applied, preview: preview }))] }));
|
|
67
|
+
}
|
|
68
|
+
function FieldChoices({ section, draft, table, applied, preview, }) {
|
|
69
|
+
/* The candidates are the columns of whichever table the section's paths point into. */
|
|
70
|
+
const prefix = section.paths[0]?.includes('.') ? section.paths[0].slice(0, section.paths[0].lastIndexOf('.')) : '';
|
|
71
|
+
const source = (prefix ? tableAtPrefix(table.id, prefix) : table);
|
|
72
|
+
if (!source)
|
|
73
|
+
return _jsx("p", { className: "note", children: say('thatReferenceIsNoLonger') });
|
|
74
|
+
const qualify = (name) => (prefix ? `${prefix}.${name}` : name);
|
|
75
|
+
const types = new Map(source.columns.map((c) => [qualify(c.name), c.type.toLowerCase()]));
|
|
76
|
+
const others = draft.sections
|
|
77
|
+
.map((s, i) => ({ s, i }))
|
|
78
|
+
.filter(({ s }) => s.kind === 'fields' && s !== section && !s.off)
|
|
79
|
+
.map(({ s, i }) => ({
|
|
80
|
+
title: s.title || say('block', { i: i + 1 }),
|
|
81
|
+
receive: (name) => {
|
|
82
|
+
if (!s.paths.includes(name))
|
|
83
|
+
s.paths = [...s.paths, name];
|
|
84
|
+
},
|
|
85
|
+
}));
|
|
86
|
+
return (_jsx(FieldArranger, { all: source.columns.map((c) => qualify(c.name)), chosen: section.paths,
|
|
87
|
+
/* No label of its own: the card this sits in is headed with the block's name. */
|
|
88
|
+
heading: null, label: (path) => (prefix && path.startsWith(`${prefix}.`) ? path.slice(prefix.length + 1) : path), typeOf: (path) => types.get(path) ?? '', owner: section, onChange: (next) => {
|
|
89
|
+
section.paths = next;
|
|
90
|
+
preview();
|
|
91
|
+
}, others: others, onSend: applied }));
|
|
92
|
+
}
|
|
93
|
+
function ListChoices({ section, child, applied, preview, }) {
|
|
94
|
+
if (!child)
|
|
95
|
+
return _jsx("p", { className: "note", children: say('thatRelationshipIsNoLonger') });
|
|
96
|
+
const types = new Map(child.columns.map((c) => [c.name, c.type.toLowerCase()]));
|
|
97
|
+
return (_jsxs("div", { children: [_jsx(FieldArranger, { heading: say('common.columns'), all: child.columns.map((c) => c.name), chosen: section.columns, typeOf: (name) => types.get(name) ?? '', owner: section, onChange: (next) => {
|
|
98
|
+
section.columns = next;
|
|
99
|
+
preview();
|
|
100
|
+
} }), _jsxs("label", { className: "tpl-rows", children: [_jsx("span", { children: say('rowsOnThePage') }), _jsx("input", { type: "number", min: 1, max: 50, defaultValue: String(section.limit ?? DEFAULT_LIST_LIMIT), onChange: (e) => {
|
|
101
|
+
section.limit = Math.max(1, Math.min(50, Number(e.currentTarget.value) || 8));
|
|
102
|
+
applied();
|
|
103
|
+
} })] })] }));
|
|
104
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Photos one at a time, as large as the screen allows: the image fitted to
|
|
3
|
+
* the viewport, Previous and Next, "3 of 8", the caption. The arrow keys
|
|
4
|
+
* step, Escape closes (the house Modal's), a sideways swipe steps on touch,
|
|
5
|
+
* and the neighbours are fetched ahead so a step shows a photo, not a wait.
|
|
6
|
+
* Closing hands focus back to what opened it, and tells the opener which
|
|
7
|
+
* photo was last in view.
|
|
8
|
+
*
|
|
9
|
+
* A step swaps a finished photo for a finished photo: nothing slides, since
|
|
10
|
+
* stepping is the frequent gesture here. The box itself enters with the
|
|
11
|
+
* popover's fade, and only where motion is welcome.
|
|
12
|
+
*/
|
|
13
|
+
import { type RefObject } from 'react';
|
|
14
|
+
export interface LightboxImage {
|
|
15
|
+
src: string;
|
|
16
|
+
alt: string;
|
|
17
|
+
caption?: string;
|
|
18
|
+
}
|
|
19
|
+
interface LightboxProps {
|
|
20
|
+
images: LightboxImage[];
|
|
21
|
+
start: number;
|
|
22
|
+
/** Told once, with the photo that was in view. */
|
|
23
|
+
onClose: (index: number) => void;
|
|
24
|
+
/** What the dialog is called: "Photos of 2021 Toyota Corolla". */
|
|
25
|
+
label: string;
|
|
26
|
+
finalFocus?: RefObject<HTMLElement | null>;
|
|
27
|
+
}
|
|
28
|
+
export declare function Lightbox({ images, start, onClose, label, finalFocus }: LightboxProps): import("react").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Photos one at a time, as large as the screen allows: the image fitted to
|
|
4
|
+
* the viewport, Previous and Next, "3 of 8", the caption. The arrow keys
|
|
5
|
+
* step, Escape closes (the house Modal's), a sideways swipe steps on touch,
|
|
6
|
+
* and the neighbours are fetched ahead so a step shows a photo, not a wait.
|
|
7
|
+
* Closing hands focus back to what opened it, and tells the opener which
|
|
8
|
+
* photo was last in view.
|
|
9
|
+
*
|
|
10
|
+
* A step swaps a finished photo for a finished photo: nothing slides, since
|
|
11
|
+
* stepping is the frequent gesture here. The box itself enters with the
|
|
12
|
+
* popover's fade, and only where motion is welcome.
|
|
13
|
+
*/
|
|
14
|
+
import { useEffect, useRef, useState } from 'react';
|
|
15
|
+
import { Modal } from '@mistriwork/ui/Modal.js';
|
|
16
|
+
import { say } from '../copy/record/components/Lightbox.js';
|
|
17
|
+
/** How far a finger travels sideways before it means "the next one". */
|
|
18
|
+
const SWIPE = 40;
|
|
19
|
+
export function Lightbox({ images, start, onClose, label, finalFocus }) {
|
|
20
|
+
const count = images.length;
|
|
21
|
+
const [index, setIndex] = useState(() => Math.max(0, Math.min(start, count - 1)));
|
|
22
|
+
const shown = useRef(index);
|
|
23
|
+
shown.current = index;
|
|
24
|
+
const modal = useRef(null);
|
|
25
|
+
const closer = useRef(null);
|
|
26
|
+
const touch = useRef(null);
|
|
27
|
+
const step = (by) => setIndex((current) => (current + by + count) % count);
|
|
28
|
+
/* The photos either side, asked for now, so the next step is already here. */
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
if (count < 2)
|
|
31
|
+
return;
|
|
32
|
+
for (const at of [index + 1, index - 1]) {
|
|
33
|
+
const image = new Image();
|
|
34
|
+
image.decoding = 'async';
|
|
35
|
+
image.src = images[(at + count) % count].src;
|
|
36
|
+
}
|
|
37
|
+
}, [index, count, images]);
|
|
38
|
+
const onPointerDown = (event) => {
|
|
39
|
+
if (event.pointerType !== 'mouse')
|
|
40
|
+
touch.current = { x: event.clientX, y: event.clientY, id: event.pointerId };
|
|
41
|
+
};
|
|
42
|
+
const onPointerUp = (event) => {
|
|
43
|
+
const from = touch.current;
|
|
44
|
+
touch.current = null;
|
|
45
|
+
if (!from || from.id !== event.pointerId || count < 2)
|
|
46
|
+
return;
|
|
47
|
+
const dx = event.clientX - from.x;
|
|
48
|
+
if (Math.abs(dx) >= SWIPE && Math.abs(dx) > Math.abs(event.clientY - from.y))
|
|
49
|
+
step(dx < 0 ? 1 : -1);
|
|
50
|
+
};
|
|
51
|
+
const photo = images[index];
|
|
52
|
+
return (_jsx(Modal, { className: "lightbox", plain: true, ref: modal, ariaLabel: label, initialFocus: closer, onClose: () => onClose(shown.current), ...(finalFocus ? { finalFocus } : {}), children: _jsxs("div", { className: "lightbox-body", onKeyDown: (event) => {
|
|
53
|
+
if (count < 2 || event.altKey || event.ctrlKey || event.metaKey)
|
|
54
|
+
return;
|
|
55
|
+
if (event.key === 'ArrowRight' || event.key === 'ArrowLeft') {
|
|
56
|
+
event.preventDefault();
|
|
57
|
+
step(event.key === 'ArrowRight' ? 1 : -1);
|
|
58
|
+
}
|
|
59
|
+
}, children: [_jsxs("div", { className: "lightbox-bar", children: [_jsxs("span", { className: "lightbox-count", "aria-live": "polite", children: [index + 1, " ", say('of', { count })] }), _jsx("button", { type: "button", ref: closer, className: "lightbox-close", onClick: () => modal.current?.close(), children: say('common.close') })] }), _jsxs("div", { className: "lightbox-stage", onPointerDown: onPointerDown, onPointerUp: onPointerUp, onPointerCancel: () => {
|
|
60
|
+
touch.current = null;
|
|
61
|
+
}, children: [count > 1 && (_jsx("button", { type: "button", className: "lightbox-step lightbox-prev", "aria-label": say('previousPhoto'), onClick: () => step(-1), children: _jsx("svg", { viewBox: "0 0 20 20", width: "22", height: "22", "aria-hidden": "true", focusable: "false", children: _jsx("path", { d: "M12.5 4.5 7 10l5.5 5.5", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" }) }) })), _jsxs("figure", { className: "lightbox-figure", children: [_jsx("img", { className: "lightbox-image", src: photo.src, alt: photo.alt, draggable: false }), photo.caption && _jsx("figcaption", { className: "lightbox-caption", children: photo.caption })] }), count > 1 && (_jsx("button", { type: "button", className: "lightbox-step lightbox-next", "aria-label": say('nextPhoto'), onClick: () => step(1), children: _jsx("svg", { viewBox: "0 0 20 20", width: "22", height: "22", "aria-hidden": "true", focusable: "false", children: _jsx("path", { d: "M7.5 4.5 13 10l-5.5 5.5", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" }) }) }))] })] }) }));
|
|
62
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* Imported by features.css: part of the tool's own rules (style.css names the order). */
|
|
2
|
+
@layer base {
|
|
3
|
+
/* The empty block (Notes.css) on the list's own 14px inset, where its rows and its controls start. */
|
|
4
|
+
/* A list that could not be read stands where its empty block would, on the same inset. */
|
|
5
|
+
.list-empty.empty-note, .list-problem > .problem { padding: 20px var(--space-4h); }
|
|
6
|
+
.list-empty .empty-note-detail { display: block; }
|
|
7
|
+
.list-empty a { display: inline-flex; align-items: center; min-height: 36px; padding: var(--space-2h) var(--space-4h); border: 1px solid transparent; border-radius: var(--radius); background: var(--primary, var(--accent)); color: var(--on-primary, var(--on-accent)); font-size: var(--text-md); font-weight: 600; text-decoration: none; }
|
|
8
|
+
.list-empty a:hover { background: color-mix(in srgb, var(--primary, var(--accent)) 86%, var(--ink)); }
|
|
9
|
+
.list-empty a:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 2px; }
|
|
10
|
+
/* In a section the edge is the section's own: no list inset. */
|
|
11
|
+
.page-section .list-problem > .problem { padding-inline: 0; }
|
|
12
|
+
.page-section .list-empty.empty-note { padding-inline: 0; }
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A successful empty list explains what belongs here and offers an available
|
|
3
|
+
* next room — as the one empty block (Notes.tsx), at body size on the list's
|
|
4
|
+
* edge. It was a heading at the list title's size, louder than the section
|
|
5
|
+
* it stood in.
|
|
6
|
+
*/
|
|
7
|
+
import type { AppListEmpty } from '@mistriwork/engine/shared/listPresentations.js';
|
|
8
|
+
export declare function ListEmpty({ spec }: {
|
|
9
|
+
spec: AppListEmpty;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useListNavigation } from './listNavigation.js';
|
|
3
|
+
import { Empty } from './Notes.js';
|
|
4
|
+
export function ListEmpty({ spec }) {
|
|
5
|
+
const navigate = useListNavigation();
|
|
6
|
+
const link = spec.action ? navigate?.(spec.action.view, 'reset') : undefined;
|
|
7
|
+
return (_jsx(Empty, { className: "list-empty", text: _jsx("span", { className: "empty-note-title", children: spec.title }), detail: spec.description, action: spec.action && link ? _jsx("a", { ...link, children: spec.action.label }) : undefined }));
|
|
8
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* Imported by features.css: part of the tool's own rules (style.css names the order). */
|
|
2
|
+
@layer base {
|
|
3
|
+
/* An App list's filter bar (ListFilterBar.tsx): one search box, a quiet
|
|
4
|
+
"+ Status" per filter, and what is applied said as the list's own chips in
|
|
5
|
+
the same row. Only the search is a field, so only it wears the 3:1 edge;
|
|
6
|
+
the rest are buttons, quiet until they are pressed. */
|
|
7
|
+
.applist-search { display: inline-flex; flex: 0 1 17rem; min-width: 10rem; }
|
|
8
|
+
.applist-search-input {
|
|
9
|
+
box-sizing: border-box; width: 100%; min-height: 30px; margin: 0; padding: 0 var(--space-3h);
|
|
10
|
+
font: var(--text-base) var(--sans); color: var(--ink);
|
|
11
|
+
background: var(--ground);
|
|
12
|
+
border: 1px solid var(--line-control); border-radius: var(--radius);
|
|
13
|
+
}
|
|
14
|
+
/* In a look it is dressed as the look's other fields are (themeFamilies.css):
|
|
15
|
+
on the pane's surface, at the look's field radius — square where a look
|
|
16
|
+
names none, as Mono under an App's own radius. */
|
|
17
|
+
.applist-search-input::placeholder { color: var(--ink-subtle); opacity: 1; }
|
|
18
|
+
/* Focus is the house ring, never an edge colour alone (design.md, Access). */
|
|
19
|
+
.applist-search-input:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 1px; }
|
|
20
|
+
|
|
21
|
+
.applist-slot { display: inline-flex; }
|
|
22
|
+
/* A filter not yet asked for: its name behind a +, on a dashed hairline that
|
|
23
|
+
says "a place for a filter" without being a field. */
|
|
24
|
+
.applist-add {
|
|
25
|
+
display: inline-flex; align-items: center; gap: var(--space-2);
|
|
26
|
+
box-sizing: border-box; min-height: 30px; margin: 0; padding: 0 var(--space-3h);
|
|
27
|
+
font: var(--text-sm) var(--sans); color: var(--ink-muted); white-space: nowrap;
|
|
28
|
+
background: transparent; cursor: pointer;
|
|
29
|
+
border: 1px dashed var(--line-strong); border-radius: var(--radius);
|
|
30
|
+
}
|
|
31
|
+
.applist-add-mark { color: var(--ink-subtle); font-size: var(--text-md); line-height: 1; }
|
|
32
|
+
.applist-add:hover, .applist-add[aria-expanded="true"] { color: var(--ink); border-color: var(--ink-muted); }
|
|
33
|
+
/* The phone's one button for every picker is a control, not a place: a solid hairline. */
|
|
34
|
+
.applist-sheet-open { border-style: solid; color: var(--ink); }
|
|
35
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
36
|
+
.applist-add, .applist-chip-open { transition: color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out); }
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* The list's chips, at the height of the row they sit in; a chip's words open its picker. */
|
|
40
|
+
.applist-fields .applist-chip { box-sizing: border-box; min-height: 30px; padding: 0 var(--space-1) 0 0; gap: 0; font-size: var(--text-sm); }
|
|
41
|
+
.applist-fields .applist-chip > .applist-chip-text { padding: 0 var(--space-2h) 0 var(--space-3h); }
|
|
42
|
+
.applist-chip-open {
|
|
43
|
+
align-self: stretch; display: inline-flex; align-items: center; margin: 0;
|
|
44
|
+
border: 0; border-radius: var(--radius); background: none; color: inherit; font: inherit; cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
.applist-chip-open:hover { color: var(--accent-ink); }
|
|
47
|
+
.applist-fields .applist-chip-x { min-width: 24px; min-height: 24px; font-size: var(--text-md); }
|
|
48
|
+
.applist-bar-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2h); flex-basis: 100%; }
|
|
49
|
+
.applist-bar-chips:empty { display: none; }
|
|
50
|
+
/* On a phone the row's controls are the large size (a Button's 40px), the sort's with them: a thumb's target. */
|
|
51
|
+
@media (max-width: 600px) {
|
|
52
|
+
.applist-search { flex: 1 1 10rem; }
|
|
53
|
+
.applist-search-input, .applist-sheet-open, .applist-sort .dd-button { min-height: 40px; }
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* A picker: one box over the page, hairlines inside. */
|
|
57
|
+
.filter-pop {
|
|
58
|
+
box-sizing: border-box; width: max-content; min-width: 15rem; max-width: min(22rem, var(--available-width, 22rem));
|
|
59
|
+
background: var(--surface); color: var(--ink);
|
|
60
|
+
border: 1px solid var(--line-strong); border-radius: var(--radius);
|
|
61
|
+
box-shadow: var(--shadow-pop);
|
|
62
|
+
}
|
|
63
|
+
.filter-pop:focus, .filter-pop:focus-visible { outline: none; }
|
|
64
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
65
|
+
/* A fade and nothing else: a transform on the popup would make it the
|
|
66
|
+
containing block of the reference typeahead's fixed list, which would
|
|
67
|
+
land away from its box until the transform ended. */
|
|
68
|
+
.filter-pop { transition: opacity var(--t-popover) var(--ease-out); @starting-style { opacity: 0; } }
|
|
69
|
+
}
|
|
70
|
+
.filter-pop .facet { border-top: 0; padding: var(--space-4) var(--space-4h) var(--space-3h); }
|
|
71
|
+
.filter-pop .facet-clear { top: 12px; right: 14px; }
|
|
72
|
+
.filter-pop .facet-values { max-height: min(18rem, 50vh); overflow-y: auto; }
|
|
73
|
+
.filter-pop .applist-quick-text { box-sizing: border-box; width: 100%; min-height: 30px; }
|
|
74
|
+
.filter-pop-foot { display: flex; justify-content: flex-end; padding: var(--space-3h) var(--space-4h) var(--space-4); border-top: 1px solid var(--line); }
|
|
75
|
+
.filter-pop-foot .primary { min-height: 30px; }
|
|
76
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type TableMeta } from '@mistriwork/engine/shared/schema.js';
|
|
2
|
+
import { type Box } from './FilterBoxes.js';
|
|
3
|
+
import { type FacetUnit } from './FilterRail.js';
|
|
4
|
+
interface ListFilterBarProps {
|
|
5
|
+
table: TableMeta;
|
|
6
|
+
/** Every filter the view declares, the name column's first. */
|
|
7
|
+
boxes: Box[];
|
|
8
|
+
/** The name column's box, drawn as the search box; every other box is a picker. */
|
|
9
|
+
search?: Box;
|
|
10
|
+
/** The question the controls read, without the table or the plumbing. */
|
|
11
|
+
refinement: string;
|
|
12
|
+
/** The lit tab's own query: a column it speaks for is the tab's to say, not a chip's. */
|
|
13
|
+
tabQuery: string;
|
|
14
|
+
/** The view's standing condition, under every count a picker shows. */
|
|
15
|
+
standing: string;
|
|
16
|
+
unitOf: (column: string) => FacetUnit | undefined;
|
|
17
|
+
/** What is typed in the search box and not yet applied; undefined while untouched. */
|
|
18
|
+
typed: string | undefined;
|
|
19
|
+
onType: (raw: string) => void;
|
|
20
|
+
/** Enter, or the search field's own ×: the list's form folds the typed text in. */
|
|
21
|
+
onSearch: () => void;
|
|
22
|
+
/** Every change goes here, with the column whose control the redrawn list focuses. */
|
|
23
|
+
apply: (text: string, focus?: string) => void;
|
|
24
|
+
/** The text a chip's × edits: the query bar's, while a reader is typing in it. */
|
|
25
|
+
current: () => string;
|
|
26
|
+
/** A leftover clause no tab explains, said in words with its own way out. */
|
|
27
|
+
residue?: {
|
|
28
|
+
text: string;
|
|
29
|
+
remove: () => void;
|
|
30
|
+
};
|
|
31
|
+
/** The list's own name, for the search box's words: "Search issues…". */
|
|
32
|
+
listLabel: string;
|
|
33
|
+
phone: boolean;
|
|
34
|
+
/** The phone's pickers: the rail's sheet, over the list. */
|
|
35
|
+
onSheet: () => void;
|
|
36
|
+
}
|
|
37
|
+
export declare function ListFilterBar(props: ListFilterBarProps): import("react").JSX.Element;
|
|
38
|
+
/** What a column's picker needs: the bar's "+ Status" and an App column menu's Filter… open the same one. */
|
|
39
|
+
export interface FilterPickerProps {
|
|
40
|
+
box: Box;
|
|
41
|
+
table: TableMeta;
|
|
42
|
+
refinement: string;
|
|
43
|
+
standing: string;
|
|
44
|
+
unit?: FacetUnit;
|
|
45
|
+
/** The lit tab speaks for this column: the picker starts blank, and a choice replaces the tab's condition. */
|
|
46
|
+
owned: boolean;
|
|
47
|
+
apply: (text: string, focus?: string) => void;
|
|
48
|
+
close: () => void;
|
|
49
|
+
}
|
|
50
|
+
/** One column's picker: a reference's typeahead, or the rail's facet over a draft. */
|
|
51
|
+
export declare function FilterPicker(props: FilterPickerProps): import("react").JSX.Element;
|
|
52
|
+
export {};
|