@dcs-tech/ui 0.2.0 → 0.4.0
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/README.md +32 -6
- package/dist/ChartImageMenu-HILSfn5A.js +1115 -0
- package/dist/ChartView-Cehrcr05.js +1703 -0
- package/dist/SummaryChart-y27q_BBN.js +29 -0
- package/dist/SummaryImage-DDNEEu_K.js +18 -0
- package/dist/SummarySeeAll-0dX-_LFe.js +101 -0
- package/dist/defaults-DL745PK1.js +708 -0
- package/dist/exportContext-CdpsOzE8.js +235 -0
- package/dist/exportEngine-DL-jEXFU.js +890 -0
- package/dist/geometry-CG2nOEnw.js +1796 -0
- package/dist/index.js +23238 -15993
- package/dist/scrollArea-CkPGDYH2.js +210 -0
- package/dist/style.css +1 -1
- package/dist/summaryChartData-Djo73zb8.js +81 -0
- package/dist/types/components/AppBar/AppBar.d.ts +16 -0
- package/dist/types/components/ArrowKeyFocus/useArrowKeyFocus.d.ts +10 -0
- package/dist/types/components/Avatar/Avatar.d.ts +22 -0
- package/dist/types/{shared-web-ui/src → components}/Badge/Badge.d.ts +0 -11
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/types/{shared-web-ui/src → components}/Button/Button.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Button/ButtonGroup.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Button/ButtonGroupContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Button/index.d.ts +1 -1
- package/dist/types/components/Card/Card.d.ts +17 -0
- package/dist/types/components/Charts/AnchoredMenu.d.ts +17 -0
- package/dist/types/components/Charts/BarList.d.ts +12 -0
- package/dist/types/components/Charts/CalendarHeatmap.d.ts +17 -0
- package/dist/types/components/Charts/Chart.d.ts +20 -0
- package/dist/types/components/Charts/ChartIcon.d.ts +5 -0
- package/dist/types/components/Charts/ChartImageMenu.d.ts +4 -0
- package/dist/types/components/Charts/ChartTable.d.ts +8 -0
- package/dist/types/components/Charts/ChartTooltip.d.ts +58 -0
- package/dist/types/components/Charts/ChartView.d.ts +15 -0
- package/dist/types/components/Charts/ColumnChart.d.ts +15 -0
- package/dist/types/components/Charts/Donut.d.ts +14 -0
- package/dist/types/components/Charts/Funnel.d.ts +10 -0
- package/dist/types/components/Charts/Gauge.d.ts +15 -0
- package/dist/types/components/Charts/Legend.d.ts +6 -0
- package/dist/types/components/Charts/LineChart.d.ts +13 -0
- package/dist/types/components/Charts/NumberTrend.d.ts +21 -0
- package/dist/types/components/Charts/Progress.d.ts +12 -0
- package/dist/types/components/Charts/StackedBar.d.ts +11 -0
- package/dist/types/components/Charts/Treemap.d.ts +12 -0
- package/dist/types/components/Charts/chartData.d.ts +69 -0
- package/dist/types/components/Charts/chartImage.d.ts +121 -0
- package/dist/types/components/Charts/geometry.d.ts +180 -0
- package/dist/types/components/Charts/index.d.ts +32 -0
- package/dist/types/components/Charts/labels.d.ts +46 -0
- package/dist/types/components/Charts/menuPlacement.d.ts +25 -0
- package/dist/types/components/Charts/palette.d.ts +81 -0
- package/dist/types/components/Charts/parts.d.ts +25 -0
- package/dist/types/components/Charts/pointer.d.ts +41 -0
- package/dist/types/components/Charts/types.d.ts +51 -0
- package/dist/types/components/Charts/ui.d.ts +3 -0
- package/dist/types/components/Charts/useBoxSize.d.ts +6 -0
- package/dist/types/components/Charts/useLegendFit.d.ts +1 -0
- package/dist/types/components/Charts/useUiScale.d.ts +1 -0
- package/dist/types/{shared-web-ui/src → components}/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Checkbox/CheckboxGroupContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Checkbox/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/ChipInput/ChipInput.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/ChipInput/index.d.ts +2 -2
- package/dist/types/{shared-web-ui/src → components}/ChipInput/useChipSuggestions.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Collapsible/Collapsible.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Collapsible/CollapsibleContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Collapsible/CollapsibleItem.d.ts +1 -3
- package/dist/types/{shared-web-ui/src → components}/Collapsible/index.d.ts +1 -1
- package/dist/types/components/ColorSchemeSelect/ColorSchemeSelect.d.ts +11 -0
- package/dist/types/components/CommandPalette/CommandPalette.d.ts +25 -0
- package/dist/types/components/DataTable/DataTable.d.ts +16 -0
- package/dist/types/components/DataTable/DataTable.storyData.d.ts +23 -0
- package/dist/types/components/DataTable/DisplayPopover.d.ts +22 -0
- package/dist/types/components/DataTable/HeaderMenu.d.ts +31 -0
- package/dist/types/components/DataTable/ManageModal.d.ts +31 -0
- package/dist/types/components/DataTable/PressButton.d.ts +2 -0
- package/dist/types/components/DataTable/SingleRowView.d.ts +9 -0
- package/dist/types/components/DataTable/SortModal.d.ts +16 -0
- package/dist/types/components/DataTable/StatusRow.d.ts +49 -0
- package/dist/types/components/DataTable/TableColumnModal.d.ts +18 -0
- package/dist/types/components/DataTable/TableControls.d.ts +48 -0
- package/dist/types/components/DataTable/TablePagination.d.ts +38 -0
- package/dist/types/components/DataTable/TableScrollStrip.d.ts +2 -0
- package/dist/types/components/DataTable/TableToolbar.d.ts +69 -0
- package/dist/types/components/DataTable/TableView.d.ts +61 -0
- package/dist/types/components/DataTable/bulk/BulkConfirmDialog.d.ts +13 -0
- package/dist/types/components/DataTable/bulk/TableToast.d.ts +13 -0
- package/dist/types/components/DataTable/bulk/bulkActions.d.ts +23 -0
- package/dist/types/components/DataTable/cards/CardFieldsEditor.d.ts +16 -0
- package/dist/types/components/DataTable/cards/CardView.d.ts +50 -0
- package/dist/types/components/DataTable/cards/cardFields.d.ts +32 -0
- package/dist/types/components/DataTable/cards/rowParts.d.ts +38 -0
- package/dist/types/components/DataTable/data/useServerData.d.ts +28 -0
- package/dist/types/components/DataTable/defaults.d.ts +18 -0
- package/dist/types/components/DataTable/detail/BuiltInDetail.d.ts +10 -0
- package/dist/types/components/DataTable/detail/DetailHost.d.ts +13 -0
- package/dist/types/components/DataTable/export/ExportPopover.d.ts +18 -0
- package/dist/types/components/DataTable/export/ExportPreviewModal.d.ts +11 -0
- package/dist/types/components/DataTable/export/ExportSettingsModal.d.ts +31 -0
- package/dist/types/components/DataTable/export/ExportTemplateCards.d.ts +19 -0
- package/dist/types/components/DataTable/export/exportContext.d.ts +10 -0
- package/dist/types/components/DataTable/export/exportEngine.d.ts +77 -0
- package/dist/types/components/DataTable/export/exportRows.d.ts +10 -0
- package/dist/types/components/DataTable/export/templateDisplay.d.ts +7 -0
- package/dist/types/components/DataTable/export/templateOptions.d.ts +6 -0
- package/dist/types/components/DataTable/export/useTableExport.d.ts +53 -0
- package/dist/types/components/DataTable/filters/ColumnFilterPopover.d.ts +14 -0
- package/dist/types/components/DataTable/filters/FilterChips.d.ts +9 -0
- package/dist/types/components/DataTable/filters/FilterConditionRow.d.ts +11 -0
- package/dist/types/components/DataTable/filters/FilterGroup.d.ts +12 -0
- package/dist/types/components/DataTable/filters/FilterModal.d.ts +14 -0
- package/dist/types/components/DataTable/filters/FilterRow.d.ts +20 -0
- package/dist/types/components/DataTable/filters/columnFilterModel.d.ts +29 -0
- package/dist/types/components/DataTable/filters/filterEngine.d.ts +16 -0
- package/dist/types/components/DataTable/filters/filterRowModel.d.ts +28 -0
- package/dist/types/components/DataTable/filters/quickFilterMatch.d.ts +3 -0
- package/dist/types/components/DataTable/grouping/GroupUi.d.ts +36 -0
- package/dist/types/components/DataTable/grouping/groupModel.d.ts +82 -0
- package/dist/types/components/DataTable/grouping/useGrouping.d.ts +39 -0
- package/dist/types/components/DataTable/host.d.ts +14 -0
- package/dist/types/components/DataTable/index.d.ts +18 -0
- package/dist/types/components/DataTable/keyboard/ShortcutsDialog.d.ts +14 -0
- package/dist/types/components/DataTable/keyboard/shortcuts.d.ts +22 -0
- package/dist/types/components/DataTable/keyboard/useGridKeyboard.d.ts +48 -0
- package/dist/types/components/DataTable/labels.d.ts +618 -0
- package/dist/types/components/DataTable/layout/LayoutSwitcher.d.ts +9 -0
- package/dist/types/components/DataTable/layout/layouts.d.ts +20 -0
- package/dist/types/components/DataTable/layout/scrollArea.d.ts +2 -0
- package/dist/types/components/DataTable/layout/useFillHeight.d.ts +11 -0
- package/dist/types/components/DataTable/menu/RowMenu.d.ts +56 -0
- package/dist/types/components/DataTable/menu/buildRowMenu.d.ts +35 -0
- package/dist/types/components/DataTable/menu/clipboard.d.ts +4 -0
- package/dist/types/components/DataTable/menu/layers.d.ts +1 -0
- package/dist/types/components/DataTable/menu/valueFilter.d.ts +15 -0
- package/dist/types/components/DataTable/motion/useRowMotion.d.ts +32 -0
- package/dist/types/components/DataTable/persistence/adapters.d.ts +6 -0
- package/dist/types/components/DataTable/persistence/reconcile.d.ts +64 -0
- package/dist/types/components/DataTable/persistence/useColumnPersistence.d.ts +51 -0
- package/dist/types/components/DataTable/persistence/useManagePrefs.d.ts +23 -0
- package/dist/types/components/DataTable/persistence/useOrphanPrefs.d.ts +3 -0
- package/dist/types/components/DataTable/pinning.d.ts +10 -0
- package/dist/types/components/DataTable/rows/PressRow.d.ts +7 -0
- package/dist/types/components/DataTable/rows/RowActions.d.ts +15 -0
- package/dist/types/components/DataTable/rows/rowPress.d.ts +35 -0
- package/dist/types/components/DataTable/sharing/Sharing.d.ts +21 -0
- package/dist/types/components/DataTable/split/SplitView.d.ts +29 -0
- package/dist/types/components/DataTable/summary/ManageSummaryCards.d.ts +18 -0
- package/dist/types/components/DataTable/summary/SummaryChart.d.ts +11 -0
- package/dist/types/components/DataTable/summary/SummaryControls.d.ts +33 -0
- package/dist/types/components/DataTable/summary/SummaryImage.d.ts +12 -0
- package/dist/types/components/DataTable/summary/SummarySeeAll.d.ts +17 -0
- package/dist/types/components/DataTable/summary/TableSummary.d.ts +34 -0
- package/dist/types/components/DataTable/summary/summaryCatalogue.d.ts +64 -0
- package/dist/types/components/DataTable/summary/summaryChartData.d.ts +9 -0
- package/dist/types/components/DataTable/summary/summaryModel.d.ts +152 -0
- package/dist/types/components/DataTable/summary/summaryWidth.d.ts +22 -0
- package/dist/types/components/DataTable/summary/useTableSummary.d.ts +18 -0
- package/dist/types/components/DataTable/types.d.ts +1145 -0
- package/dist/types/components/DataTable/ui-local/AutoHeight.d.ts +9 -0
- package/dist/types/components/DataTable/ui-local/DateRangePicker.d.ts +16 -0
- package/dist/types/components/DataTable/ui-local/DragAndDropList/DragAndDropList.d.ts +4 -0
- package/dist/types/components/DataTable/ui-local/DragAndDropList/index.d.ts +3 -0
- package/dist/types/components/DataTable/ui-local/DragAndDropList/types.d.ts +70 -0
- package/dist/types/components/DataTable/ui-local/ReactModal.d.ts +20 -0
- package/dist/types/components/DataTable/ui-local/scrollLock.d.ts +1 -0
- package/dist/types/components/DataTable/ui.d.ts +13 -0
- package/dist/types/components/DataTable/useDataChangeTracker.d.ts +11 -0
- package/dist/types/components/DataTable/useTable.d.ts +12 -0
- package/dist/types/components/DataTable/vendor/columnOrder.d.ts +1 -0
- package/dist/types/components/DataTable/vendor/diff.d.ts +5 -0
- package/dist/types/components/DataTable/vendor/fileActions.d.ts +19 -0
- package/dist/types/components/DataTable/vendor/index.d.ts +3 -0
- package/dist/types/components/DataTable/virtual/useVirtualLines.d.ts +27 -0
- package/dist/types/components/DatePicker/Calendar.d.ts +14 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +5 -0
- package/dist/types/components/DatePicker/TimeField.d.ts +16 -0
- package/dist/types/components/DatePicker/index.d.ts +4 -0
- package/dist/types/components/DatePicker/useOneMonthPane.d.ts +2 -0
- package/dist/types/components/Dialog/Dialog.d.ts +56 -0
- package/dist/types/components/Dialog/DialogHost.d.ts +44 -0
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +49 -0
- package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTable.d.ts +1 -6
- package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTableActions.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTableCell.d.ts +2 -20
- package/dist/types/components/EditableTable/EditableTableRow.d.ts +14 -0
- package/dist/types/components/EditableTable/EditableTableSummary.d.ts +11 -0
- package/dist/types/{shared-web-ui/src → components}/EditableTable/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/EditableTable/useEditableTable.d.ts +3 -3
- package/dist/types/components/EditableTable/useRowAnimation.d.ts +12 -0
- package/dist/types/components/FieldContext/FieldContext.d.ts +3 -0
- package/dist/types/components/FieldContext/FieldProvider.d.ts +4 -0
- package/dist/types/{shared-web-ui/src → components}/FieldContext/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/FieldContext/useField.d.ts +2 -29
- package/dist/types/components/FieldContext/useFieldSurface.d.ts +34 -0
- package/dist/types/{shared-web-ui/src → components}/FieldContext/useFormKeyboard.d.ts +1 -4
- package/dist/types/{shared-web-ui/src → components}/FieldWrapper/FieldWrapper.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/FieldWrapper/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/Field.d.ts +1 -1
- package/dist/types/components/Fields/FieldButton.d.ts +17 -0
- package/dist/types/{shared-web-ui/src → components}/Fields/Fields.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldBlur.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldChange.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldCondition.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldDisabled.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldRender.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldSelect.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldValidation.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldValue.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/index.d.ts +1 -1
- package/dist/types/components/Floating/index.d.ts +3 -0
- package/dist/types/components/Floating/layers.d.ts +4 -0
- package/dist/types/components/Floating/scrollLock.d.ts +2 -0
- package/dist/types/components/Floating/useFloatingLayer.d.ts +20 -0
- package/dist/types/{shared-web-ui/src → components}/Form/Form.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Form/index.d.ts +1 -1
- package/dist/types/components/Image/ImagePicker.d.ts +23 -0
- package/dist/types/components/Image/ImageStrip.d.ts +13 -0
- package/dist/types/components/Image/ImageViewer.d.ts +16 -0
- package/dist/types/components/Image/index.d.ts +8 -0
- package/dist/types/components/Image/prepareImage.d.ts +19 -0
- package/dist/types/{shared-web-ui/src → components}/Input/Input.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Input/index.d.ts +1 -1
- package/dist/types/components/Popover/Popover.d.ts +25 -0
- package/dist/types/components/Popover/floatingPosition.d.ts +17 -0
- package/dist/types/components/Press/index.d.ts +2 -0
- package/dist/types/components/Press/usePress.d.ts +9 -0
- package/dist/types/{shared-web-ui/src → components}/Radio/Radio.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Radio/RadioGroup.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Radio/RadioGroupContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Radio/index.d.ts +1 -1
- package/dist/types/components/Scroll/ScrollRule.d.ts +2 -0
- package/dist/types/components/Scroll/ScrollStrip.d.ts +9 -0
- package/dist/types/components/Scroll/index.d.ts +4 -0
- package/dist/types/components/Scroll/labels.d.ts +5 -0
- package/dist/types/components/Scroll/scrollActivity.d.ts +14 -0
- package/dist/types/components/Scroll/ui.d.ts +1 -0
- package/dist/types/{shared-web-ui/src → components}/Select/Select.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Select/index.d.ts +1 -1
- package/dist/types/components/Select/useSelect.d.ts +2 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +24 -0
- package/dist/types/components/Skeleton/Skeleton.d.ts +18 -0
- package/dist/types/components/Stepper/Stepper.d.ts +17 -0
- package/dist/types/components/Stepper/index.d.ts +2 -0
- package/dist/types/{shared-web-ui/src → components}/Suggest/Suggest.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Suggest/SuggestionList.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Suggest/index.d.ts +2 -2
- package/dist/types/{shared-web-ui/src → components}/Suggest/searchFilters.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Suggest/useSuggest.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Switch/Switch.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Switch/index.d.ts +1 -1
- package/dist/types/components/Tabs/Tabs.d.ts +36 -0
- package/dist/types/components/Toast/ToastHost.d.ts +8 -0
- package/dist/types/components/Toast/ToastItem.d.ts +10 -0
- package/dist/types/{shared-web-ui/src → components}/Toast/toast.types.d.ts +0 -13
- package/dist/types/components/Tooltip/Tooltip.d.ts +9 -0
- package/dist/types/components/Tooltip/useTooltip.d.ts +15 -0
- package/dist/types/{shared-web-ui/src → components}/Typography/Typography.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Typography/index.d.ts +1 -1
- package/dist/types/components/UIProvider/UIPortalContext.d.ts +2 -0
- package/dist/types/components/UIProvider/UIProvider.d.ts +13 -0
- package/dist/types/components/UIProvider/UIThemeContext.d.ts +9 -0
- package/dist/types/core/hooks/index.d.ts +3 -0
- package/dist/types/core/hooks/useDebounced.d.ts +7 -0
- package/dist/types/core/hooks/usePresence.d.ts +5 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/button.logic.d.ts +1 -1
- package/dist/types/core/logic/cellRules.logic.d.ts +32 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/chipinput.logic.d.ts +1 -13
- package/dist/types/{shared-logic/src/ui → core/logic}/collapsible.logic.d.ts +1 -8
- package/dist/types/{shared-logic/src/ui → core/logic}/colorScheme.d.ts +0 -14
- package/dist/types/core/logic/columnOrder.logic.d.ts +1 -0
- package/dist/types/core/logic/datePicker.logic.d.ts +136 -0
- package/dist/types/core/logic/displayOrder.logic.d.ts +4 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/editableTable.logic.d.ts +5 -28
- package/dist/types/core/logic/fieldControl.logic.d.ts +12 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/fieldWrapper.logic.d.ts +1 -1
- package/dist/types/{shared-logic/src/ui → core/logic}/fields.logic.d.ts +1 -1
- package/dist/types/{shared-logic/src/ui → core/logic}/form.logic.d.ts +0 -8
- package/dist/types/core/logic/index.d.ts +33 -0
- package/dist/types/core/logic/keyboard.logic.d.ts +12 -0
- package/dist/types/core/logic/motion.logic.d.ts +1 -0
- package/dist/types/core/logic/navigation.logic.d.ts +6 -0
- package/dist/types/core/logic/popover.logic.d.ts +59 -0
- package/dist/types/core/logic/popupList.logic.d.ts +19 -0
- package/dist/types/core/logic/press.logic.d.ts +14 -0
- package/dist/types/core/logic/quickAddGrid.logic.d.ts +183 -0
- package/dist/types/core/logic/select.logic.d.ts +17 -0
- package/dist/types/core/logic/stepper.logic.d.ts +6 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/suggest.logic.d.ts +1 -1
- package/dist/types/core/logic/tableLayout.logic.d.ts +13 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/tableSummary.logic.d.ts +1 -20
- package/dist/types/core/logic/timeField.logic.d.ts +26 -0
- package/dist/types/core/logic/tooltip.logic.d.ts +11 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/typography.logic.d.ts +1 -1
- package/dist/types/core/logic/uiScale.logic.d.ts +1 -0
- package/dist/types/core/logic/useMergeRefs.d.ts +2 -0
- package/dist/types/{shared-types/src/ui → core/types}/button.types.d.ts +1 -11
- package/dist/types/{shared-types/src/ui → core/types}/checkbox.types.d.ts +0 -4
- package/dist/types/{shared-types/src/ui → core/types}/chipinput.types.d.ts +0 -10
- package/dist/types/{shared-types/src/ui → core/types}/collapsible.types.d.ts +0 -18
- package/dist/types/core/types/common.types.d.ts +3 -0
- package/dist/types/core/types/control.types.d.ts +36 -0
- package/dist/types/core/types/datePicker.types.d.ts +46 -0
- package/dist/types/{shared-types/src/ui → core/types}/editableTable.types.d.ts +0 -79
- package/dist/types/core/types/field.types.d.ts +80 -0
- package/dist/types/{shared-types/src/ui → core/types}/fieldWrapper.types.d.ts +0 -10
- package/dist/types/{shared-types/src/ui → core/types}/fields.types.d.ts +0 -45
- package/dist/types/{shared-types/src/ui → core/types}/form.types.d.ts +0 -30
- package/dist/types/core/types/index.d.ts +22 -0
- package/dist/types/{shared-types/src/ui → core/types}/input.types.d.ts +0 -4
- package/dist/types/core/types/keyboard.types.d.ts +48 -0
- package/dist/types/core/types/navigation.types.d.ts +13 -0
- package/dist/types/{shared-types/src/ui → core/types}/radio.types.d.ts +0 -6
- package/dist/types/{shared-types/src/ui → core/types}/select.types.d.ts +0 -41
- package/dist/types/{shared-types/src/ui → core/types}/suggest.types.d.ts +1 -10
- package/dist/types/{shared-types/src/ui → core/types}/switch.types.d.ts +0 -4
- package/dist/types/{shared-types/src/ui → core/types}/table.types.d.ts +0 -59
- package/dist/types/core/types/tooltip.types.d.ts +43 -0
- package/dist/types/{shared-types/src/ui → core/types}/typography.types.d.ts +0 -4
- package/dist/types/index.d.ts +86 -0
- package/package.json +27 -26
- package/dist/types/published/dcs-ui/src/index.d.ts +0 -32
- package/dist/types/published/dcs-ui/src/publicLogic.d.ts +0 -35
- package/dist/types/published/dcs-ui/src/publicTypes.d.ts +0 -14
- package/dist/types/shared-logic/src/report/aggregate.d.ts +0 -29
- package/dist/types/shared-logic/src/report/canvas.d.ts +0 -106
- package/dist/types/shared-logic/src/report/conditions.d.ts +0 -18
- package/dist/types/shared-logic/src/report/constants.d.ts +0 -46
- package/dist/types/shared-logic/src/report/dataset.d.ts +0 -49
- package/dist/types/shared-logic/src/report/edit.d.ts +0 -188
- package/dist/types/shared-logic/src/report/fields.d.ts +0 -80
- package/dist/types/shared-logic/src/report/format.d.ts +0 -27
- package/dist/types/shared-logic/src/report/fromColumns.d.ts +0 -61
- package/dist/types/shared-logic/src/report/index.d.ts +0 -19
- package/dist/types/shared-logic/src/report/layout.d.ts +0 -85
- package/dist/types/shared-logic/src/report/metrics.d.ts +0 -62
- package/dist/types/shared-logic/src/report/migrate.d.ts +0 -77
- package/dist/types/shared-logic/src/report/paginate.d.ts +0 -40
- package/dist/types/shared-logic/src/report/renderers/html.d.ts +0 -29
- package/dist/types/shared-logic/src/report/renderers/pdfmake.d.ts +0 -45
- package/dist/types/shared-logic/src/report/resolve.d.ts +0 -40
- package/dist/types/shared-logic/src/report/scope.d.ts +0 -52
- package/dist/types/shared-logic/src/report/storage.d.ts +0 -112
- package/dist/types/shared-logic/src/report/validate.d.ts +0 -28
- package/dist/types/shared-logic/src/ui/cellRules.logic.d.ts +0 -67
- package/dist/types/shared-logic/src/ui/columnOrder.logic.d.ts +0 -12
- package/dist/types/shared-logic/src/ui/fieldControl.logic.d.ts +0 -24
- package/dist/types/shared-logic/src/ui/index.d.ts +0 -55
- package/dist/types/shared-logic/src/ui/keyboard.logic.d.ts +0 -72
- package/dist/types/shared-logic/src/ui/navigation.logic.d.ts +0 -30
- package/dist/types/shared-logic/src/ui/popover.logic.d.ts +0 -57
- package/dist/types/shared-logic/src/ui/popupList.logic.d.ts +0 -54
- package/dist/types/shared-logic/src/ui/select.logic.d.ts +0 -31
- package/dist/types/shared-logic/src/ui/tableLayout.logic.d.ts +0 -47
- package/dist/types/shared-logic/src/ui/tooltip.logic.d.ts +0 -35
- package/dist/types/shared-logic/src/ui/useMergeRefs.d.ts +0 -10
- package/dist/types/shared-types/src/report/bands.d.ts +0 -32
- package/dist/types/shared-types/src/report/blocks.d.ts +0 -181
- package/dist/types/shared-types/src/report/conditions.d.ts +0 -24
- package/dist/types/shared-types/src/report/dataset.d.ts +0 -106
- package/dist/types/shared-types/src/report/document.d.ts +0 -201
- package/dist/types/shared-types/src/report/index.d.ts +0 -9
- package/dist/types/shared-types/src/report/primitives.d.ts +0 -109
- package/dist/types/shared-types/src/report/registry.d.ts +0 -85
- package/dist/types/shared-types/src/report/storage.d.ts +0 -41
- package/dist/types/shared-types/src/report/template.d.ts +0 -92
- package/dist/types/shared-types/src/ui/common.types.d.ts +0 -14
- package/dist/types/shared-types/src/ui/control.types.d.ts +0 -133
- package/dist/types/shared-types/src/ui/field.types.d.ts +0 -200
- package/dist/types/shared-types/src/ui/index.d.ts +0 -37
- package/dist/types/shared-types/src/ui/keyboard.types.d.ts +0 -155
- package/dist/types/shared-types/src/ui/navigation.types.d.ts +0 -35
- package/dist/types/shared-types/src/ui/tooltip.types.d.ts +0 -68
- package/dist/types/shared-web-ui/src/AppBar/AppBar.d.ts +0 -25
- package/dist/types/shared-web-ui/src/ArrowKeyFocus/useArrowKeyFocus.d.ts +0 -29
- package/dist/types/shared-web-ui/src/Avatar/Avatar.d.ts +0 -36
- package/dist/types/shared-web-ui/src/Breadcrumbs/Breadcrumbs.d.ts +0 -70
- package/dist/types/shared-web-ui/src/Card/Card.d.ts +0 -33
- package/dist/types/shared-web-ui/src/ColorSchemeSelect/ColorSchemeSelect.d.ts +0 -26
- package/dist/types/shared-web-ui/src/CommandPalette/CommandPalette.d.ts +0 -52
- package/dist/types/shared-web-ui/src/Dialog/Dialog.d.ts +0 -101
- package/dist/types/shared-web-ui/src/Dialog/DialogHost.d.ts +0 -80
- package/dist/types/shared-web-ui/src/DropdownMenu/DropdownMenu.d.ts +0 -49
- package/dist/types/shared-web-ui/src/EditableTable/EditableTableRow.d.ts +0 -25
- package/dist/types/shared-web-ui/src/EditableTable/EditableTableSummary.d.ts +0 -22
- package/dist/types/shared-web-ui/src/EditableTable/useRowAnimation.d.ts +0 -44
- package/dist/types/shared-web-ui/src/FieldContext/FieldContext.d.ts +0 -18
- package/dist/types/shared-web-ui/src/FieldContext/FieldProvider.d.ts +0 -13
- package/dist/types/shared-web-ui/src/FieldContext/useFieldSurface.d.ts +0 -57
- package/dist/types/shared-web-ui/src/Fields/FieldButton.d.ts +0 -32
- package/dist/types/shared-web-ui/src/Popover/Popover.d.ts +0 -44
- package/dist/types/shared-web-ui/src/ReportDesigner/AlignedRowsEditor.d.ts +0 -4
- package/dist/types/shared-web-ui/src/ReportDesigner/BandList.d.ts +0 -26
- package/dist/types/shared-web-ui/src/ReportDesigner/BlockEditor.d.ts +0 -44
- package/dist/types/shared-web-ui/src/ReportDesigner/ColumnEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/ConditionEditor.d.ts +0 -7
- package/dist/types/shared-web-ui/src/ReportDesigner/FieldPicker.d.ts +0 -25
- package/dist/types/shared-web-ui/src/ReportDesigner/FieldSelect.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/FormatEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/Inspector.d.ts +0 -14
- package/dist/types/shared-web-ui/src/ReportDesigner/OptionsEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/ReportDesigner.d.ts +0 -34
- package/dist/types/shared-web-ui/src/ReportDesigner/StyleEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/TableEditor.d.ts +0 -10
- package/dist/types/shared-web-ui/src/ReportDesigner/WatermarkEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/chipSources.d.ts +0 -6
- package/dist/types/shared-web-ui/src/ReportDesigner/icons.d.ts +0 -21
- package/dist/types/shared-web-ui/src/ReportDesigner/index.d.ts +0 -16
- package/dist/types/shared-web-ui/src/ReportDesigner/labels.d.ts +0 -34
- package/dist/types/shared-web-ui/src/ReportDesigner/parts.d.ts +0 -63
- package/dist/types/shared-web-ui/src/ReportDesigner/types.d.ts +0 -106
- package/dist/types/shared-web-ui/src/ReportPreview/ReportPreview.d.ts +0 -44
- package/dist/types/shared-web-ui/src/ReportPreview/index.d.ts +0 -1
- package/dist/types/shared-web-ui/src/Select/useSelect.d.ts +0 -2
- package/dist/types/shared-web-ui/src/Sidebar/Sidebar.d.ts +0 -55
- package/dist/types/shared-web-ui/src/Skeleton/Skeleton.d.ts +0 -33
- package/dist/types/shared-web-ui/src/Tabs/Tabs.d.ts +0 -79
- package/dist/types/shared-web-ui/src/Toast/ToastHost.d.ts +0 -22
- package/dist/types/shared-web-ui/src/Toast/ToastItem.d.ts +0 -19
- package/dist/types/shared-web-ui/src/Tooltip/Tooltip.d.ts +0 -25
- package/dist/types/shared-web-ui/src/Tooltip/useTooltip.d.ts +0 -24
- package/dist/types/shared-web-ui/src/UIProvider/UIPortalContext.d.ts +0 -16
- package/dist/types/shared-web-ui/src/UIProvider/UIProvider.d.ts +0 -54
- package/dist/types/shared-web-ui/src/UIProvider/UIThemeContext.d.ts +0 -17
- package/dist/types/shared-web-ui/src/index.d.ts +0 -78
- /package/dist/types/{shared-web-ui/src → components}/AppBar/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Avatar/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Badge/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Breadcrumbs/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Card/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/ColorSchemeSelect/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/CommandPalette/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Dialog/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DropdownMenu/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Popover/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Sidebar/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Skeleton/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Suggest/fuseSearch.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Tabs/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Toast/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Tooltip/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/UIProvider/index.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/checkbox.logic.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/input.logic.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/radio.logic.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/switch.logic.d.ts +0 -0
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface ArrowKeyFocusOptions {
|
|
2
|
-
/**
|
|
3
|
-
* Which arrows move. `both` (default) suits a button row: it wraps to a second line on a
|
|
4
|
-
* narrow screen, and there the user reaches for Up/Down.
|
|
5
|
-
*/
|
|
6
|
-
orientation?: 'horizontal' | 'vertical' | 'both';
|
|
7
|
-
/** Stepping past the last item lands on the first, and vice versa. Default true. */
|
|
8
|
-
wrap?: boolean;
|
|
9
|
-
/** Home / End jump to the first / last item. Default true. */
|
|
10
|
-
homeEnd?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface ArrowKeyFocusHandlers {
|
|
13
|
-
/** Spread onto the element that CONTAINS the group (not onto each item). */
|
|
14
|
-
onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Arrow keys move focus between the focusable items inside one container — a dialog's
|
|
18
|
-
* button row, a toolbar, a segmented control. Tab and Shift+Tab are untouched: every item
|
|
19
|
-
* stays an ordinary tab stop, the arrows are an addition, not a roving-tabindex replacement.
|
|
20
|
-
*
|
|
21
|
-
* Reads the items from the DOM on each key, so nothing per item has to be registered and
|
|
22
|
-
* the group can be any mix of components (a client `SmartButton` next to a library `Button`).
|
|
23
|
-
* A disabled or hidden item is skipped; a text field inside the group keeps its arrows.
|
|
24
|
-
*
|
|
25
|
-
* const { onKeyDown } = useArrowKeyFocus();
|
|
26
|
-
* <div onKeyDown={onKeyDown}>{buttons}</div>
|
|
27
|
-
*/
|
|
28
|
-
export declare function useArrowKeyFocus({ orientation, wrap, homeEnd, }?: ArrowKeyFocusOptions): ArrowKeyFocusHandlers;
|
|
29
|
-
export default useArrowKeyFocus;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type AvatarSize = 'xs' | 'small' | 'medium' | 'large';
|
|
3
|
-
export type AvatarShape = 'circle' | 'rounded' | 'square';
|
|
4
|
-
export interface AvatarProps {
|
|
5
|
-
/** Image URL. Falls back to initials, then to `children`. */
|
|
6
|
-
src?: string;
|
|
7
|
-
/** Used for the image's alt text and to derive initials when there is no `src`. */
|
|
8
|
-
name?: string;
|
|
9
|
-
/** Override the derived initials. */
|
|
10
|
-
initials?: string;
|
|
11
|
-
size?: AvatarSize;
|
|
12
|
-
shape?: AvatarShape;
|
|
13
|
-
/**
|
|
14
|
-
* Give the avatar a stable tint derived from `name`. Two people rarely collide, and the
|
|
15
|
-
* same person is always the same colour across screens.
|
|
16
|
-
*/
|
|
17
|
-
tinted?: boolean;
|
|
18
|
-
children?: React.ReactNode;
|
|
19
|
-
className?: string;
|
|
20
|
-
style?: React.CSSProperties;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* A person or entity marker: image, initials, or custom content.
|
|
24
|
-
*
|
|
25
|
-
* Hookless, so it renders identically on a server. Sizes track the field heights, which is
|
|
26
|
-
* what makes an avatar line up with an input or button placed beside it.
|
|
27
|
-
*/
|
|
28
|
-
declare const Avatar: React.FC<AvatarProps>;
|
|
29
|
-
export interface AvatarGroupProps {
|
|
30
|
-
children?: React.ReactNode;
|
|
31
|
-
className?: string;
|
|
32
|
-
style?: React.CSSProperties;
|
|
33
|
-
}
|
|
34
|
-
/** Overlapping stack. Each disc is ringed in the page ground so they stay distinct. */
|
|
35
|
-
export declare const AvatarGroup: React.FC<AvatarGroupProps>;
|
|
36
|
-
export default Avatar;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { NavItem } from '../../../published/dcs-ui/src/publicTypes';
|
|
3
|
-
export interface BreadcrumbsProps {
|
|
4
|
-
/**
|
|
5
|
-
* Root → current. Pass `findNavTrail(items, activeId)` from shared-logic and the crumbs are
|
|
6
|
-
* the same path the Sidebar highlights, by construction. The home crumb is NOT part of this.
|
|
7
|
-
*/
|
|
8
|
-
items: NavItem[];
|
|
9
|
-
/** Element for the linked crumbs — `Link`, `NavLink`, `a`. */
|
|
10
|
-
as?: React.ElementType;
|
|
11
|
-
onSelect?: (item: NavItem) => void;
|
|
12
|
-
/**
|
|
13
|
-
* The root crumb, rendered before the trail and never truncated. Defaults to a home icon
|
|
14
|
-
* linking to `/`; pass a `NavItem` to change the target, or `false` to drop it.
|
|
15
|
-
*
|
|
16
|
-
* It is on by DEFAULT because it does two jobs: a trail that starts mid-app has no visible
|
|
17
|
-
* way back to the top, and — since the switcher lives in the separator — without a crumb in
|
|
18
|
-
* front of it the FIRST real crumb has no separator and so no way to reach its siblings.
|
|
19
|
-
*/
|
|
20
|
-
home?: NavItem | false;
|
|
21
|
-
/**
|
|
22
|
-
* Render each crumb's `icon`. **Off by default.** The same `NavItem` tree feeds the Sidebar,
|
|
23
|
-
* where an icon per row earns its place, and the trail, where a row of little glyphs beside
|
|
24
|
-
* the home icon is noise — the labels already say it. Nothing to strip from the registry:
|
|
25
|
-
* the surface decides.
|
|
26
|
-
*/
|
|
27
|
-
showIcons?: boolean;
|
|
28
|
-
/** Default a chevron. */
|
|
29
|
-
separator?: React.ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* Standalone row: own padding, min-height and bottom rule. Off by default, which is the
|
|
32
|
-
* inline form that sits in an `AppBar`. Turn it on where the trail is its own strip under
|
|
33
|
-
* the bar — the layout the client uses on mobile.
|
|
34
|
-
*/
|
|
35
|
-
bar?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Collapse the middle into a menu past this many crumbs. First and last are always kept.
|
|
38
|
-
* `0` disables. Default 4.
|
|
39
|
-
*/
|
|
40
|
-
maxItems?: number;
|
|
41
|
-
/**
|
|
42
|
-
* Alternatives for a crumb. Return some and the separator BEFORE that crumb becomes a
|
|
43
|
-
* button opening them, so you can move sideways at any level instead of going back up and
|
|
44
|
-
* down again. With a `NavItem` tree it is the parent's `children`.
|
|
45
|
-
*
|
|
46
|
-
* `index` is the crumb's position in `items`; the home crumb is not counted, so index 0 is
|
|
47
|
-
* the first real crumb and its siblings are the top-level sections.
|
|
48
|
-
*/
|
|
49
|
-
siblingsOf?: (item: NavItem, index: number) => NavItem[];
|
|
50
|
-
className?: string;
|
|
51
|
-
style?: React.CSSProperties;
|
|
52
|
-
'aria-label'?: string;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* The path to the current page, over the shared `NavItem` shape.
|
|
56
|
-
*
|
|
57
|
-
* Fed by `findNavTrail` — the same function the Sidebar uses for the active trail — so the two
|
|
58
|
-
* cannot disagree about where you are.
|
|
59
|
-
*
|
|
60
|
-
* **The separator IS the sibling switcher.** It sits BEFORE each crumb and, where that crumb
|
|
61
|
-
* has alternatives, is a button that opens them. One chevron per gap doing both jobs: a
|
|
62
|
-
* separate switcher control next to each label puts two arrows between every pair of crumbs,
|
|
63
|
-
* and a separator rendered AFTER each crumb leaves a dangling arrow past the last one.
|
|
64
|
-
*
|
|
65
|
-
* Long paths collapse in the MIDDLE, never the end: the first crumb (where am I in the app)
|
|
66
|
-
* and the last (where am I now) carry the meaning, and truncating the tail would hide the very
|
|
67
|
-
* crumb the user is looking at.
|
|
68
|
-
*/
|
|
69
|
-
declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
|
|
70
|
-
export default Breadcrumbs;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type CardVariant = 'outlined' | 'elevated' | 'flat';
|
|
3
|
-
export type CardPadding = 'none' | 'small' | 'medium';
|
|
4
|
-
export interface CardProps {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
/** Default `'outlined'`. */
|
|
7
|
-
variant?: CardVariant;
|
|
8
|
-
/** Applied to the bands, not the root — see below. Default `'medium'`. */
|
|
9
|
-
padding?: CardPadding;
|
|
10
|
-
title?: React.ReactNode;
|
|
11
|
-
subtitle?: React.ReactNode;
|
|
12
|
-
/** Trailing header content — a Badge, a menu button. */
|
|
13
|
-
action?: React.ReactNode;
|
|
14
|
-
/** Footer band, right-aligned. */
|
|
15
|
-
footer?: React.ReactNode;
|
|
16
|
-
/** Makes the whole card a button: hover, focus ring, keyboard activation. */
|
|
17
|
-
onClick?: () => void;
|
|
18
|
-
className?: string;
|
|
19
|
-
style?: React.CSSProperties;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* A surface with optional header and footer bands.
|
|
23
|
-
*
|
|
24
|
-
* Padding lives on the BANDS, not the root, so a full-bleed child — a table, an image, an
|
|
25
|
-
* embedded report — can sit flush between a padded header and footer without fighting the
|
|
26
|
-
* card's own inset. `padding="none"` gives a bare surface.
|
|
27
|
-
*
|
|
28
|
-
* Hookless, so it renders identically on a server. With `onClick` it becomes a real
|
|
29
|
-
* `<button>` rather than a div with a handler, which is what gets it keyboard activation and
|
|
30
|
-
* a focus ring for free.
|
|
31
|
-
*/
|
|
32
|
-
declare const Card: React.FC<CardProps>;
|
|
33
|
-
export default Card;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SelectProps } from '../../../published/dcs-ui/src/publicTypes';
|
|
3
|
-
import { ColorScheme } from '../../../published/dcs-ui/src/publicLogic';
|
|
4
|
-
export interface ColorSchemeSelectProps extends Omit<SelectProps, 'options' | 'renderOption' | 'renderSelectedValue'> {
|
|
5
|
-
/**
|
|
6
|
-
* The schemes to offer. Passed IN on purpose — this component never imports a palette.
|
|
7
|
-
* That keeps it generic (any app, any palette) and keeps domain palettes out of the
|
|
8
|
-
* published surface, since shared-web-ui is re-exported wholesale by @dcs-tech/ui.
|
|
9
|
-
*/
|
|
10
|
-
schemes: ColorScheme[];
|
|
11
|
-
/** Text of the sample's title word. Default 'Title'. */
|
|
12
|
-
sampleTitle?: string;
|
|
13
|
-
/** Text inside the sample's band. Default 'Label'. */
|
|
14
|
-
sampleLabel?: string;
|
|
15
|
-
/** Row shown for "no scheme"; omit to require a choice. */
|
|
16
|
-
noneLabel?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A Select whose options preview themselves.
|
|
20
|
-
*
|
|
21
|
-
* Each row renders the scheme's three real roles — title colour, band, and the text on the
|
|
22
|
-
* band — so the choice is judged by eye rather than read as a name. The sample is drawn on a
|
|
23
|
-
* fixed light ground so every row is comparable, independent of the viewer's theme.
|
|
24
|
-
*/
|
|
25
|
-
declare const ColorSchemeSelect: React.FC<ColorSchemeSelectProps>;
|
|
26
|
-
export default ColorSchemeSelect;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface CommandPaletteItem {
|
|
3
|
-
id: string;
|
|
4
|
-
label: React.ReactNode;
|
|
5
|
-
/** Plain text used for searching — set when `label` is a node. */
|
|
6
|
-
searchText?: string;
|
|
7
|
-
/** Extra terms to match on: synonyms, the old name for a screen. */
|
|
8
|
-
keywords?: string;
|
|
9
|
-
/** Group heading. Items keep the order they arrive in within a group. */
|
|
10
|
-
section?: string;
|
|
11
|
-
icon?: React.ReactNode;
|
|
12
|
-
/** Trailing hint — a shortcut, a route. */
|
|
13
|
-
hint?: React.ReactNode;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface CommandPaletteProps {
|
|
17
|
-
/** Already filtered and authorised by the caller — this component renders, it does not decide. */
|
|
18
|
-
items: CommandPaletteItem[];
|
|
19
|
-
open: boolean;
|
|
20
|
-
onOpenChange: (open: boolean) => void;
|
|
21
|
-
onSelect: (item: CommandPaletteItem) => void;
|
|
22
|
-
/**
|
|
23
|
-
* Global shortcut, matched case-insensitively with ctrl OR meta. `null` disables it so the
|
|
24
|
-
* host can own the binding. Default `'k'`.
|
|
25
|
-
*/
|
|
26
|
-
hotkey?: string | null;
|
|
27
|
-
placeholder?: string;
|
|
28
|
-
emptyMessage?: React.ReactNode;
|
|
29
|
-
/** Shown before anything is typed. Omit to show all items. */
|
|
30
|
-
initialItems?: CommandPaletteItem[];
|
|
31
|
-
/** Cap on rendered results. Default 50. */
|
|
32
|
-
maxResults?: number;
|
|
33
|
-
'aria-label'?: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* The generic half of a command palette: the shortcut, the dialog, the search box, a grouped
|
|
37
|
-
* result list and its keyboard model. **It decides nothing about what is in the list** —
|
|
38
|
-
* building items from a route registry and filtering them by permission is app logic and stays
|
|
39
|
-
* in the app.
|
|
40
|
-
*
|
|
41
|
-
* Built on pieces that already exist rather than a new dependency:
|
|
42
|
-
* - `Dialog` for the overlay, focus trap, Escape and top-layer stacking.
|
|
43
|
-
* - `popupList.module.css` for rows and group headings, so a palette row and a Select option
|
|
44
|
-
* are the same object visually.
|
|
45
|
-
* - `fuseSearch`, already used by Suggest, so fuzzy matching behaves the same across the
|
|
46
|
-
* library and `fuse.js` — already a declared dependency — is the only cost.
|
|
47
|
-
*
|
|
48
|
-
* This is what replaced `cmdk` in the client's version: a fourth list implementation with its
|
|
49
|
-
* own dependency, its own styling and its own keyboard behaviour.
|
|
50
|
-
*/
|
|
51
|
-
declare const CommandPalette: React.FC<CommandPaletteProps>;
|
|
52
|
-
export default CommandPalette;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type DialogPlacement = 'center' | 'right' | 'left' | 'top' | 'bottom';
|
|
3
|
-
export type DialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
4
|
-
export interface DialogClassNames {
|
|
5
|
-
root?: string;
|
|
6
|
-
panel?: string;
|
|
7
|
-
header?: string;
|
|
8
|
-
body?: string;
|
|
9
|
-
footer?: string;
|
|
10
|
-
closeButton?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface DialogStyles {
|
|
13
|
-
root?: React.CSSProperties;
|
|
14
|
-
panel?: React.CSSProperties;
|
|
15
|
-
header?: React.CSSProperties;
|
|
16
|
-
body?: React.CSSProperties;
|
|
17
|
-
footer?: React.CSSProperties;
|
|
18
|
-
closeButton?: React.CSSProperties;
|
|
19
|
-
}
|
|
20
|
-
export interface DialogProps {
|
|
21
|
-
open: boolean;
|
|
22
|
-
/** Fired for the close button, backdrop, Escape, or a programmatic close. */
|
|
23
|
-
onClose?: () => void;
|
|
24
|
-
/**
|
|
25
|
-
* Veto a close by returning false — a dirty-form guard. Runs for EVERY route out,
|
|
26
|
-
* including Escape and the backdrop, so there is no way around it.
|
|
27
|
-
*/
|
|
28
|
-
onBeforeClose?: () => boolean;
|
|
29
|
-
/** Fired when Escape is pressed, before the close is decided. */
|
|
30
|
-
onEscKeyDown?: (event: Event) => void;
|
|
31
|
-
/** Fired when the backdrop is clicked, before the close is decided. */
|
|
32
|
-
onOverlayClick?: (event: React.PointerEvent) => void;
|
|
33
|
-
/** Fired after the exit animation finishes and the dialog has left the DOM. */
|
|
34
|
-
onAnimationEnd?: () => void;
|
|
35
|
-
children?: React.ReactNode;
|
|
36
|
-
title?: React.ReactNode;
|
|
37
|
-
subtitle?: React.ReactNode;
|
|
38
|
-
/** Footer band, right-aligned. */
|
|
39
|
-
footer?: React.ReactNode;
|
|
40
|
-
/**
|
|
41
|
-
* Blocks the page behind it and dims it. **Default true** — what most people mean by
|
|
42
|
-
* "a modal". `false` opens a non-blocking panel and, because it uses `show()` rather than
|
|
43
|
-
* `showModal()`, does not trap focus.
|
|
44
|
-
*/
|
|
45
|
-
modal?: boolean;
|
|
46
|
-
/** `center` is a dialog; `right` / `left` / `bottom` / `top` are what a "Sheet" is. */
|
|
47
|
-
placement?: DialogPlacement;
|
|
48
|
-
size?: DialogSize;
|
|
49
|
-
closeOnBackdrop?: boolean;
|
|
50
|
-
closeOnEscape?: boolean;
|
|
51
|
-
showCloseButton?: boolean;
|
|
52
|
-
/** Replace the built-in ✕. */
|
|
53
|
-
closeIcon?: React.ReactNode;
|
|
54
|
-
closeIconId?: string;
|
|
55
|
-
/** Lock page scroll while open. Default true. */
|
|
56
|
-
blockScroll?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Pad the body by the scrollbar width when locking, so the page doesn't jump sideways as
|
|
59
|
-
* the scrollbar disappears. Default true. No-op where scrollbars are overlaid (macOS).
|
|
60
|
-
*/
|
|
61
|
-
reserveScrollBarGap?: boolean;
|
|
62
|
-
/** Focus this when it opens, instead of the first focusable child. */
|
|
63
|
-
initialFocusRef?: React.RefObject<HTMLElement | null>;
|
|
64
|
-
/** Where to render. Defaults to `document.body`. */
|
|
65
|
-
container?: Element | null;
|
|
66
|
-
/** Enter/exit animation length in ms. Default 200. `0` disables. */
|
|
67
|
-
animationDuration?: number;
|
|
68
|
-
/** Body padding. Off for a full-bleed child — a table, an embedded report. */
|
|
69
|
-
padded?: boolean;
|
|
70
|
-
classNames?: DialogClassNames;
|
|
71
|
-
styleSlots?: DialogStyles;
|
|
72
|
-
className?: string;
|
|
73
|
-
style?: React.CSSProperties;
|
|
74
|
-
role?: string;
|
|
75
|
-
id?: string;
|
|
76
|
-
'aria-label'?: string;
|
|
77
|
-
'aria-labelledby'?: string;
|
|
78
|
-
'aria-describedby'?: string;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* A dialog, on the native `<dialog>` element.
|
|
82
|
-
*
|
|
83
|
-
* Why the platform element rather than a div in a portal:
|
|
84
|
-
*
|
|
85
|
-
* - **`showModal()` puts it in the browser's TOP LAYER**, outside the z-index system entirely.
|
|
86
|
-
* Nothing on the page can cover it — not a `z-index: 9999` loading overlay, which is the
|
|
87
|
-
* exact failure that once locked this app behind an unreachable confirm.
|
|
88
|
-
* - Focus trapping, `Escape`, an inert background, `::backdrop` and correct stacking of nested
|
|
89
|
-
* dialogs come from the platform rather than being re-implemented.
|
|
90
|
-
* - No dependency reaches consumers of the published package.
|
|
91
|
-
*
|
|
92
|
-
* The catch is the inverse of the win: because the dialog is in the top layer, a Popover
|
|
93
|
-
* portalled to `<body>` would render BEHIND it. So the dialog publishes itself as the portal
|
|
94
|
-
* container for its own subtree (`UIPortalContext`) — any Select, Suggest or Popover inside
|
|
95
|
-
* renders into the dialog and therefore above it.
|
|
96
|
-
*
|
|
97
|
-
* Padding lives on the bands, not the panel, so a full-bleed child sits flush between a padded
|
|
98
|
-
* header and footer. Same rule as Card.
|
|
99
|
-
*/
|
|
100
|
-
declare const Dialog: React.FC<DialogProps>;
|
|
101
|
-
export default Dialog;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ButtonProps } from '../../../published/dcs-ui/src/publicTypes';
|
|
3
|
-
/** Everything a Button takes, minus what the host drives itself. */
|
|
4
|
-
export type DialogActionProps = Omit<ButtonProps, 'onClick' | 'loading' | 'children'>;
|
|
5
|
-
export interface DialogChoice extends DialogActionProps {
|
|
6
|
-
/** What `choose()` resolves to. Also the React key. */
|
|
7
|
-
value: string;
|
|
8
|
-
label: NonNullable<ButtonProps['label']>;
|
|
9
|
-
/** Run when picked. May be async — the button shows loading until it settles. */
|
|
10
|
-
action?: (...args: any[]) => unknown;
|
|
11
|
-
args?: unknown[];
|
|
12
|
-
}
|
|
13
|
-
interface BaseOptions {
|
|
14
|
-
title?: string;
|
|
15
|
-
/** Newlines are preserved, so a multi-line message reads as written. */
|
|
16
|
-
message: React.ReactNode;
|
|
17
|
-
/** Cancel renders LAST. `null` drops it; Escape and the backdrop still cancel. */
|
|
18
|
-
cancelLabel?: string | null;
|
|
19
|
-
cancelButton?: DialogActionProps;
|
|
20
|
-
}
|
|
21
|
-
export interface ConfirmOptions extends BaseOptions {
|
|
22
|
-
confirmLabel?: string;
|
|
23
|
-
/** `danger` colours the confirm button `error`. */
|
|
24
|
-
tone?: 'primary' | 'danger';
|
|
25
|
-
confirmButton?: DialogActionProps;
|
|
26
|
-
action?: (...args: any[]) => unknown;
|
|
27
|
-
args?: unknown[];
|
|
28
|
-
/**
|
|
29
|
-
* Which button holds focus when the dialog opens, so Enter answers it. Default `confirm`;
|
|
30
|
-
* pass `cancel` for a destructive question. Arrows move between the buttons either way.
|
|
31
|
-
*/
|
|
32
|
-
focus?: 'confirm' | 'cancel';
|
|
33
|
-
}
|
|
34
|
-
export interface ChooseOptions extends BaseOptions {
|
|
35
|
-
/** Two or more, rendered left-to-right before Cancel. */
|
|
36
|
-
choices: DialogChoice[];
|
|
37
|
-
/**
|
|
38
|
-
* The `value` of the choice that holds focus when the dialog opens, or `'cancel'`.
|
|
39
|
-
* Default: the first choice. Arrows move between the buttons either way.
|
|
40
|
-
*/
|
|
41
|
-
focus?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface AlertOptions {
|
|
44
|
-
title?: string;
|
|
45
|
-
message: React.ReactNode;
|
|
46
|
-
okLabel?: string;
|
|
47
|
-
tone?: 'primary' | 'danger';
|
|
48
|
-
okButton?: DialogActionProps;
|
|
49
|
-
}
|
|
50
|
-
export interface DialogApi {
|
|
51
|
-
/** Yes / no. Resolves `false` on cancel, Escape or backdrop. */
|
|
52
|
-
confirm: (opts: ConfirmOptions) => Promise<boolean>;
|
|
53
|
-
/** N options. Resolves the chosen `value`, or `null` if dismissed. */
|
|
54
|
-
choose: (opts: ChooseOptions) => Promise<string | null>;
|
|
55
|
-
/** Acknowledge-only. */
|
|
56
|
-
alert: (opts: AlertOptions) => Promise<void>;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* The imperative dialog API.
|
|
60
|
-
*
|
|
61
|
-
* Throws outside a `UIProvider` rather than returning no-ops: an `await confirm()` that
|
|
62
|
-
* silently resolved `false` would look like the user clicking Cancel, and the calling code
|
|
63
|
-
* would quietly do nothing. A dialog needs a host, so this is the one place the provider is
|
|
64
|
-
* genuinely required.
|
|
65
|
-
*/
|
|
66
|
-
export declare const useDialog: () => DialogApi;
|
|
67
|
-
/**
|
|
68
|
-
* Rendered once by `UIProvider`. Owns the single dialog instance the imperative API drives.
|
|
69
|
-
*
|
|
70
|
-
* This is the reason the API is worth moving into the library: the previous hook returned a
|
|
71
|
-
* `confirmHost` ELEMENT that every call site had to remember to render, with a warning in its
|
|
72
|
-
* own docstring that returning a component instead remounted the subtree and broke a form
|
|
73
|
-
* mid-edit. Hosting centrally removes the whole class of mistake.
|
|
74
|
-
*
|
|
75
|
-
* Renders through `<Dialog>` rather than beside it, so there is one dialog implementation.
|
|
76
|
-
*/
|
|
77
|
-
export declare const DialogHost: React.FC<{
|
|
78
|
-
children?: React.ReactNode;
|
|
79
|
-
}>;
|
|
80
|
-
export {};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PopoverPlacement } from '../../../published/dcs-ui/src/publicLogic';
|
|
3
|
-
export interface DropdownMenuItem {
|
|
4
|
-
/** Returned by `onSelect`. Also the React key. */
|
|
5
|
-
value: string;
|
|
6
|
-
label: React.ReactNode;
|
|
7
|
-
/** Secondary line under the label. */
|
|
8
|
-
description?: React.ReactNode;
|
|
9
|
-
icon?: React.ReactNode;
|
|
10
|
-
/** Trailing hint — a shortcut, a count. */
|
|
11
|
-
hint?: React.ReactNode;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
/** Renders in the destructive colour. */
|
|
14
|
-
danger?: boolean;
|
|
15
|
-
/** Non-selectable heading above this item. */
|
|
16
|
-
groupLabel?: string;
|
|
17
|
-
/** Separator line above this item. */
|
|
18
|
-
divider?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface DropdownMenuProps {
|
|
21
|
-
/** Element that opens the menu. Cloned to attach the ref, click and ARIA wiring. */
|
|
22
|
-
trigger: React.ReactElement;
|
|
23
|
-
items: DropdownMenuItem[];
|
|
24
|
-
onSelect?: (value: string, item: DropdownMenuItem) => void;
|
|
25
|
-
placement?: PopoverPlacement;
|
|
26
|
-
/** Force the menu to the trigger's width. */
|
|
27
|
-
matchTriggerWidth?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Row density. Drives the shared popup list's `size_*` class, which is what DEFINES
|
|
30
|
-
* `--popup-row-pad-y` / `--popup-pad-x` / the font steps. Without one the rows render
|
|
31
|
-
* with no padding at all, because `.row` reads custom properties nothing declared.
|
|
32
|
-
*/
|
|
33
|
-
size?: 'xxs' | 'xs' | 'small' | 'medium' | 'large' | 'xl';
|
|
34
|
-
/** Keep it open after a selection — for a menu of toggles. Default false. */
|
|
35
|
-
closeOnSelect?: boolean;
|
|
36
|
-
'aria-label'?: string;
|
|
37
|
-
className?: string;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* A menu on top of `Popover` — no second positioning implementation, and the rows reuse the
|
|
41
|
-
* same `popupList` module Select and Suggest render, so a menu row and an option row are the
|
|
42
|
-
* same object visually.
|
|
43
|
-
*
|
|
44
|
-
* Keyboard follows the menu pattern rather than the listbox one: arrows move a roving cursor,
|
|
45
|
-
* Home/End jump, Enter or Space activates, Escape closes and returns focus to the trigger.
|
|
46
|
-
* Disabled items are skipped rather than focused-and-ignored.
|
|
47
|
-
*/
|
|
48
|
-
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
49
|
-
export default DropdownMenu;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EditableTableRowProps, ResolvedColumnLayout } from '../../../published/dcs-ui/src/publicTypes';
|
|
3
|
-
import type { EditableTableCellActions } from '../../../published/dcs-ui/src/publicTypes';
|
|
4
|
-
import type { ResolvedRule } from '../../../published/dcs-ui/src/publicLogic';
|
|
5
|
-
export interface EditableTableRowRenderProps<T> extends EditableTableRowProps<T> {
|
|
6
|
-
/** One resolved frame per column, from `resolveTableLayout`. */
|
|
7
|
-
columnLayouts: ResolvedColumnLayout[];
|
|
8
|
-
/** Per-cell validation, resolved by the table (pure `resolveColumnRules` underneath). */
|
|
9
|
-
getCellRule?: (rowIndex: number, cellindex: number) => ResolvedRule;
|
|
10
|
-
/** The table's row operations, for cells that ACT — a button column's `onClick`. */
|
|
11
|
-
cellActions?: EditableTableCellActions;
|
|
12
|
-
/** `'entering'` | `'exiting'` while this row is animating — see `useRowAnimation`. */
|
|
13
|
-
rowState?: 'entering' | 'exiting';
|
|
14
|
-
/** The column focus landed on after a row operation, flashed once so it can be seen. */
|
|
15
|
-
landedCellIndex?: number | null;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A row is just its cells. It used to hand the whole column list to `Fields`, which
|
|
19
|
-
* wrapped each field in a bare `<td>` it had no way to size, align or pin — so the
|
|
20
|
-
* row could not own its frame. Each column now renders through `EditableTableCell`,
|
|
21
|
-
* which does.
|
|
22
|
-
*/
|
|
23
|
-
declare const EditableTableRow: <T extends Record<string, any>>({ defaultData, rowIndex, rowData, columnFields, columnLayouts, getCellRule, cellActions, rowState, landedCellIndex, editableTableData, onChange, onKeyDown, onSelect, onCellFocus, registerCellRef, focusedRowIndex, isFocusedRow, focusedCellIndex, tableDataKey, renderAuthorize, renderTooltip, componentRegistry, }: EditableTableRowRenderProps<T>) => React.JSX.Element;
|
|
24
|
-
declare const _default: typeof EditableTableRow;
|
|
25
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ResolvedTableSummary } from '../../../published/dcs-ui/src/publicLogic';
|
|
3
|
-
import type { EditableTableProps, EditableTableSummaryContext, SummaryLicenseConfig } from '../../../published/dcs-ui/src/publicTypes';
|
|
4
|
-
/**
|
|
5
|
-
* The area under the table (D4) — everything that is not a column total.
|
|
6
|
-
*
|
|
7
|
-
* Two forms, one prop:
|
|
8
|
-
* - **config** — the client Table's `TableSummaryConfig`, unchanged, resolved by the
|
|
9
|
-
* same pure logic, so a summary written for a report table renders here as-is;
|
|
10
|
-
* - **render function** — handed the rows, the resolved column totals and the row
|
|
11
|
-
* actions, for custom figures and action buttons the table knows nothing about.
|
|
12
|
-
*
|
|
13
|
-
* Rendered below the scroll container, so it is always visible without sticking.
|
|
14
|
-
*/
|
|
15
|
-
interface EditableTableSummaryProps<T> {
|
|
16
|
-
summary: NonNullable<EditableTableProps<T>['summary']>;
|
|
17
|
-
resolved: ResolvedTableSummary;
|
|
18
|
-
context: EditableTableSummaryContext<T>;
|
|
19
|
-
renderLicense?: (license: SummaryLicenseConfig, children: React.ReactNode) => React.ReactNode;
|
|
20
|
-
}
|
|
21
|
-
declare function EditableTableSummary<T>({ summary, resolved, context, renderLicense }: EditableTableSummaryProps<T>): React.JSX.Element | null;
|
|
22
|
-
export default EditableTableSummary;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Row enter/exit feedback for the grid.
|
|
3
|
-
*
|
|
4
|
-
* GK: *"on click remove, dont know it is removed or not, also dont know from where the focus
|
|
5
|
-
* is shifted."* Both halves matter. A row that vanishes between two frames reads as "nothing
|
|
6
|
-
* happened", and after a delete the grid focuses the row ABOVE the one that went — useful, but
|
|
7
|
-
* invisible, so the cursor appears to teleport.
|
|
8
|
-
*
|
|
9
|
-
* Three pieces, and each is deliberately small:
|
|
10
|
-
*
|
|
11
|
-
* - **entering** — keys present now that were absent last render. Detected by DIFFING the keys
|
|
12
|
-
* rather than by hooking the add path, so it covers every way a row arrives: Enter at the
|
|
13
|
-
* last cell (which happens inside `useEditableTable`, out of the renderer's reach), the
|
|
14
|
-
* toolbar, a button cell's `actions.addRow`, or the consumer setting state itself.
|
|
15
|
-
* - **exiting** — a delete has to be DEFERRED for the row to be animated at all; React cannot
|
|
16
|
-
* animate a row it has already unmounted. The delay is short and the focus move is not
|
|
17
|
-
* waited on, so the keyboard flow is unchanged.
|
|
18
|
-
* - **landed** — the cell focus ends up in, flashed briefly, which is the half that answers
|
|
19
|
-
* "where did it go".
|
|
20
|
-
*
|
|
21
|
-
* `prefers-reduced-motion` switches all of it off, including the deferral: someone who asked
|
|
22
|
-
* for no animation should not also get a slower delete.
|
|
23
|
-
*/
|
|
24
|
-
/**
|
|
25
|
-
* Kept in step with the durations in `EditableTable.module.css` — `etRowExitCell` and
|
|
26
|
-
* `etRowEnterCell`. If this is SHORTER than the CSS, React unmounts the row mid-collapse and
|
|
27
|
-
* the rows below snap up, which is the whole thing the animation exists to prevent.
|
|
28
|
-
*/
|
|
29
|
-
export declare const ROW_EXIT_MS = 280;
|
|
30
|
-
export interface RowAnimation {
|
|
31
|
-
/** `'entering' | 'exiting' | undefined` for a row key — rendered as a data attribute. */
|
|
32
|
-
rowState: (rowKey: string) => 'entering' | 'exiting' | undefined;
|
|
33
|
-
/** The cell that focus landed on after a row operation, flashed so it can be seen. */
|
|
34
|
-
landedCell: {
|
|
35
|
-
rowKey: string;
|
|
36
|
-
cellindex: number;
|
|
37
|
-
} | null;
|
|
38
|
-
/** Runs `remove` after the exit animation — immediately when animation is off. */
|
|
39
|
-
removeRow: (rowKey: string | undefined, remove: () => void) => void;
|
|
40
|
-
/** Called once focus has settled after an add or a delete. */
|
|
41
|
-
noteLanding: (rowKey: string | undefined, cellindex: number) => void;
|
|
42
|
-
enabled: boolean;
|
|
43
|
-
}
|
|
44
|
-
export declare function useRowAnimation(rowKeys: string[], animate?: boolean): RowAnimation;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { FieldContextValue } from '../../../published/dcs-ui/src/publicTypes';
|
|
2
|
-
/**
|
|
3
|
-
* The surface settings a container hands down to every field inside it.
|
|
4
|
-
*
|
|
5
|
-
* Before this existed, `<Form size="large">` styled the form's own chrome and
|
|
6
|
-
* its action buttons and nothing else — the fields inside kept their own
|
|
7
|
-
* defaults, which were `small` for Input/Select/Suggest and `medium` for
|
|
8
|
-
* Checkbox/Radio/Switch. So a form had three densities in it and no single
|
|
9
|
-
* prop could change them.
|
|
10
|
-
*
|
|
11
|
-
* Empty by default rather than pre-filled: a context that already carried
|
|
12
|
-
* `size: 'small'` would be indistinguishable from a container that had
|
|
13
|
-
* deliberately asked for small, and a field could no longer tell "nobody said"
|
|
14
|
-
* from "someone said small". Resolution is always
|
|
15
|
-
* `own prop → context → DEFAULT_CONTROL_SIZE`.
|
|
16
|
-
*/
|
|
17
|
-
export declare const FieldContext: import("react").Context<FieldContextValue>;
|
|
18
|
-
export declare const useFieldContext: () => FieldContextValue;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { FieldProviderProps } from '../../../published/dcs-ui/src/publicTypes';
|
|
3
|
-
/**
|
|
4
|
-
* Supplies surface defaults to every field beneath it.
|
|
5
|
-
*
|
|
6
|
-
* Providers nest: an inner one overrides only the settings it names, so a
|
|
7
|
-
* `<FieldProvider size="xs">` inside a `<Form variant="filled">` gives dense
|
|
8
|
-
* filled fields rather than dense outlined ones. That is what makes the
|
|
9
|
-
* editable-table row work — the grid sets `size` per table without having to
|
|
10
|
-
* know or restate the variant the surrounding form chose.
|
|
11
|
-
*/
|
|
12
|
-
declare const FieldProvider: React.FC<FieldProviderProps>;
|
|
13
|
-
export default FieldProvider;
|