@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
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Tt as e, U as t } from "./geometry-CG2nOEnw.js";
|
|
3
|
+
// src/components/DataTable/summary/summaryChartData.ts
|
|
4
|
+
function n(e, t) {
|
|
5
|
+
return {
|
|
6
|
+
type: "values",
|
|
7
|
+
values: t.map((t) => ({
|
|
8
|
+
key: t.key,
|
|
9
|
+
label: t.label,
|
|
10
|
+
count: t.count,
|
|
11
|
+
...t.others ? {
|
|
12
|
+
slot: "rest",
|
|
13
|
+
selectable: !1
|
|
14
|
+
} : e.card.slots?.[t.key] === void 0 ? {} : { slot: t.slot },
|
|
15
|
+
...t.children ? { children: t.children.map((e) => ({
|
|
16
|
+
key: e.key,
|
|
17
|
+
label: e.label,
|
|
18
|
+
count: e.count
|
|
19
|
+
})) } : {}
|
|
20
|
+
}))
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function r(e) {
|
|
24
|
+
switch (e.kind) {
|
|
25
|
+
case "unavailable": return {
|
|
26
|
+
type: "number",
|
|
27
|
+
value: 0
|
|
28
|
+
};
|
|
29
|
+
case "value": return {
|
|
30
|
+
type: "number",
|
|
31
|
+
value: e.value ?? 0,
|
|
32
|
+
...e.trend ? {
|
|
33
|
+
points: e.trend.points.map((e) => ({
|
|
34
|
+
key: e.key,
|
|
35
|
+
label: e.fullLabel,
|
|
36
|
+
value: e.count
|
|
37
|
+
})),
|
|
38
|
+
previous: e.trend.previous,
|
|
39
|
+
good: e.card.trend?.good
|
|
40
|
+
} : {}
|
|
41
|
+
};
|
|
42
|
+
case "ratio": return {
|
|
43
|
+
type: "part",
|
|
44
|
+
label: e.card.title,
|
|
45
|
+
value: e.value ?? 0,
|
|
46
|
+
total: e.total ?? 0,
|
|
47
|
+
color: e.card.color
|
|
48
|
+
};
|
|
49
|
+
case "trend": {
|
|
50
|
+
let t = e.periods ?? [], n = e.series.length > 0;
|
|
51
|
+
return {
|
|
52
|
+
type: "time",
|
|
53
|
+
period: e.card.period,
|
|
54
|
+
...n ? { series: e.series.map((e) => ({
|
|
55
|
+
key: e.key,
|
|
56
|
+
label: e.label,
|
|
57
|
+
slot: e.slot
|
|
58
|
+
})) } : {},
|
|
59
|
+
points: t.map((e) => ({
|
|
60
|
+
key: e.key,
|
|
61
|
+
label: e.label,
|
|
62
|
+
fullLabel: e.fullLabel,
|
|
63
|
+
...n ? { counts: e.split ?? {} } : { count: e.count }
|
|
64
|
+
}))
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
case "funnel": return {
|
|
68
|
+
type: "steps",
|
|
69
|
+
steps: (e.steps ?? []).map((e) => ({
|
|
70
|
+
key: e.key,
|
|
71
|
+
label: e.label,
|
|
72
|
+
count: e.count,
|
|
73
|
+
slot: e.slot,
|
|
74
|
+
selectable: e.selectable
|
|
75
|
+
}))
|
|
76
|
+
};
|
|
77
|
+
case "breakdown": return n(e, e.buckets ?? []);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
var i = (t) => e(t.card), a = (e, n) => t(r(e), i(e), n);
|
|
81
|
+
export { a as n, i as r, n as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type AppBarSize = 'small' | 'medium' | 'large';
|
|
3
|
+
export type AppBarVariant = 'default' | 'transparent' | 'elevated';
|
|
4
|
+
export interface AppBarProps {
|
|
5
|
+
brand?: React.ReactNode;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
actions?: React.ReactNode;
|
|
8
|
+
size?: AppBarSize;
|
|
9
|
+
variant?: AppBarVariant;
|
|
10
|
+
sticky?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
'aria-label'?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const AppBar: React.FC<AppBarProps>;
|
|
16
|
+
export default AppBar;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface ArrowKeyFocusOptions {
|
|
2
|
+
orientation?: 'horizontal' | 'vertical' | 'both';
|
|
3
|
+
wrap?: boolean;
|
|
4
|
+
homeEnd?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface ArrowKeyFocusHandlers {
|
|
7
|
+
onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function useArrowKeyFocus({ orientation, wrap, homeEnd, }?: ArrowKeyFocusOptions): ArrowKeyFocusHandlers;
|
|
10
|
+
export default useArrowKeyFocus;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
src?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
initials?: string;
|
|
8
|
+
size?: AvatarSize;
|
|
9
|
+
shape?: AvatarShape;
|
|
10
|
+
tinted?: boolean;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
declare const Avatar: React.FC<AvatarProps>;
|
|
16
|
+
export interface AvatarGroupProps {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: React.CSSProperties;
|
|
20
|
+
}
|
|
21
|
+
export declare const AvatarGroup: React.FC<AvatarGroupProps>;
|
|
22
|
+
export default Avatar;
|
|
@@ -4,25 +4,14 @@ export type BadgeVariant = 'tonal' | 'filled' | 'outlined';
|
|
|
4
4
|
export type BadgeSize = 'xs' | 'small' | 'medium';
|
|
5
5
|
export interface BadgeProps {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
-
/** Semantic colour. Default `'neutral'`. */
|
|
8
7
|
color?: BadgeColor;
|
|
9
|
-
/** Default `'tonal'` — tinted ground, coloured text. Readable in both themes. */
|
|
10
8
|
variant?: BadgeVariant;
|
|
11
9
|
size?: BadgeSize;
|
|
12
|
-
/** Fully rounded ends. */
|
|
13
10
|
pill?: boolean;
|
|
14
|
-
/** Leading status dot in the badge's own colour. */
|
|
15
11
|
dot?: boolean;
|
|
16
12
|
className?: string;
|
|
17
13
|
style?: React.CSSProperties;
|
|
18
14
|
title?: string;
|
|
19
15
|
}
|
|
20
|
-
/**
|
|
21
|
-
* A short status marker.
|
|
22
|
-
*
|
|
23
|
-
* Hookless — renders identically on a server, so it stays eligible for a server-safe entry
|
|
24
|
-
* point. Semantic colour comes from the shared tokens, so `error` here is the same red as an
|
|
25
|
-
* error toast or a field message.
|
|
26
|
-
*/
|
|
27
16
|
declare const Badge: React.FC<BadgeProps>;
|
|
28
17
|
export default Badge;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { NavItem } from '../../core/types';
|
|
3
|
+
export interface BreadcrumbsProps {
|
|
4
|
+
items: NavItem[];
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
onSelect?: (item: NavItem) => void;
|
|
7
|
+
home?: NavItem | false;
|
|
8
|
+
showIcons?: boolean;
|
|
9
|
+
separator?: React.ReactNode;
|
|
10
|
+
bar?: boolean;
|
|
11
|
+
maxItems?: number;
|
|
12
|
+
siblingsOf?: (item: NavItem, index: number) => NavItem[];
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
'aria-label'?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
|
|
18
|
+
export default Breadcrumbs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ButtonProps } from '
|
|
2
|
+
import type { ButtonProps } from '../../core/types';
|
|
3
3
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLElement>>;
|
|
4
4
|
export default Button;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ButtonGroupContextValue } from '
|
|
1
|
+
import type { ButtonGroupContextValue } from '../../core/types';
|
|
2
2
|
export declare const ButtonGroupCtx: import("react").Context<ButtonGroupContextValue | null>;
|
|
3
3
|
export declare function useButtonGroup(): ButtonGroupContextValue | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Button } from './Button';
|
|
2
2
|
export { default as ButtonGroup } from './ButtonGroup';
|
|
3
|
-
export type { ButtonProps, ButtonGroupProps, ButtonVariant, ButtonSize, ButtonColor, ButtonShape, LoadingPosition, GroupOrientation, ButtonGroupContextValue, } from '
|
|
3
|
+
export type { ButtonProps, ButtonGroupProps, ButtonVariant, ButtonSize, ButtonColor, ButtonShape, LoadingPosition, GroupOrientation, ButtonGroupContextValue, } from '../../core/types';
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
variant?: CardVariant;
|
|
7
|
+
padding?: CardPadding;
|
|
8
|
+
title?: React.ReactNode;
|
|
9
|
+
subtitle?: React.ReactNode;
|
|
10
|
+
action?: React.ReactNode;
|
|
11
|
+
footer?: React.ReactNode;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
}
|
|
16
|
+
declare const Card: React.FC<CardProps>;
|
|
17
|
+
export default Card;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type KeyboardEvent, type MouseEvent, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
export interface AnchoredMenuItem {
|
|
3
|
+
value: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface AnchoredMenuProps {
|
|
8
|
+
trigger: ReactElement<{
|
|
9
|
+
onClick?: (e: MouseEvent) => void;
|
|
10
|
+
onKeyDown?: (e: KeyboardEvent) => void;
|
|
11
|
+
}>;
|
|
12
|
+
items: AnchoredMenuItem[];
|
|
13
|
+
onSelect: (value: string) => void;
|
|
14
|
+
'aria-label': string;
|
|
15
|
+
align?: 'start' | 'end';
|
|
16
|
+
}
|
|
17
|
+
export declare function AnchoredMenu({ trigger, items, onSelect, align, 'aria-label': ariaLabel }: AnchoredMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartDatum, ChartFormatProps, ChartLinkComponent, ChartSelectProps, ChartSeries } from './types';
|
|
4
|
+
export interface BarListProps extends ChartFormatProps, ChartSelectProps<ChartDatum> {
|
|
5
|
+
data: ChartDatum[];
|
|
6
|
+
series: ChartSeries[];
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
linkAs?: ChartLinkComponent;
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function BarList({ data, series, ariaLabel, title, linkAs: LinkAs, compact, onSelect, selected, ...format }: BarListProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartFormatProps } from './types';
|
|
4
|
+
export interface CalendarDay {
|
|
5
|
+
day: string;
|
|
6
|
+
count: number;
|
|
7
|
+
}
|
|
8
|
+
export interface CalendarHeatmapProps extends ChartFormatProps {
|
|
9
|
+
days: CalendarDay[];
|
|
10
|
+
ariaLabel: string;
|
|
11
|
+
title?: ReactNode;
|
|
12
|
+
onSelect?: (day: CalendarDay) => void;
|
|
13
|
+
selected?: string | null;
|
|
14
|
+
compact?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const weekdayNames: (locale?: string) => string[];
|
|
17
|
+
export declare function CalendarHeatmap({ days, ariaLabel, title, onSelect, selected, compact, ...format }: CalendarHeatmapProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import { type ChartData, type ChartKind } from './chartData';
|
|
4
|
+
import type { ChartFormatProps, ChartLinkComponent } from './types';
|
|
5
|
+
export interface ChartProps extends ChartFormatProps {
|
|
6
|
+
data: ChartData;
|
|
7
|
+
as?: ChartKind;
|
|
8
|
+
offer?: readonly ChartKind[];
|
|
9
|
+
ariaLabel: string;
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
height?: number;
|
|
13
|
+
size?: number;
|
|
14
|
+
onSelect?: (key: string) => void;
|
|
15
|
+
selected?: string | null;
|
|
16
|
+
linkAs?: ChartLinkComponent;
|
|
17
|
+
legend?: boolean;
|
|
18
|
+
onChartChange?: (kind: ChartKind) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare function Chart({ data, as, offer, ariaLabel, title, compact, height, size, onSelect, selected, linkAs, onChartChange, legend, ...format }: ChartProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './Charts.css';
|
|
2
|
+
import type { ChartDatum, ChartFormatProps, ChartSeries } from './types';
|
|
3
|
+
export interface ChartTableProps extends Omit<ChartFormatProps, 'labels'> {
|
|
4
|
+
data: ChartDatum[];
|
|
5
|
+
series: ChartSeries[];
|
|
6
|
+
firstHeader: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function ChartTable({ data, series, firstHeader, ...format }: ChartTableProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type FocusEvent, type KeyboardEvent, type PointerEvent, type ReactNode } from 'react';
|
|
2
|
+
import { type ChartRect } from './pointer';
|
|
3
|
+
type Steps = Partial<Record<'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown', number>>;
|
|
4
|
+
export interface ChartPointerOptions {
|
|
5
|
+
count: number;
|
|
6
|
+
pick: (x: number, y: number, box: DOMRect, plot: HTMLElement) => number | null;
|
|
7
|
+
anchor?: (index: number, plot: HTMLElement) => ChartRect | null;
|
|
8
|
+
keys?: Steps;
|
|
9
|
+
start?: number | null;
|
|
10
|
+
onPick?: (index: number) => void;
|
|
11
|
+
focusable?: (index: number) => boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ChartItemProps {
|
|
14
|
+
'data-hit': number;
|
|
15
|
+
role?: 'button';
|
|
16
|
+
tabIndex?: 0 | -1;
|
|
17
|
+
'aria-pressed'?: boolean;
|
|
18
|
+
'aria-disabled'?: true;
|
|
19
|
+
}
|
|
20
|
+
export interface ChartPointer {
|
|
21
|
+
active: number | null;
|
|
22
|
+
plotProps: {
|
|
23
|
+
ref: (el: HTMLElement | null) => void;
|
|
24
|
+
tabIndex?: 0;
|
|
25
|
+
'data-chart-plot': '';
|
|
26
|
+
onPointerDown: (e: PointerEvent) => void;
|
|
27
|
+
onPointerMove: (e: PointerEvent) => void;
|
|
28
|
+
onPointerUp: () => void;
|
|
29
|
+
onPointerLeave: (e: PointerEvent) => void;
|
|
30
|
+
onClick: (e: {
|
|
31
|
+
clientX: number;
|
|
32
|
+
clientY: number;
|
|
33
|
+
}) => void;
|
|
34
|
+
onKeyDown: (e: KeyboardEvent) => void;
|
|
35
|
+
onFocus: (e: FocusEvent) => void;
|
|
36
|
+
onBlur: (e: FocusEvent) => void;
|
|
37
|
+
};
|
|
38
|
+
pickable: boolean;
|
|
39
|
+
item: (index: number, state?: {
|
|
40
|
+
pressed?: boolean;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
}) => ChartItemProps;
|
|
43
|
+
tooltip: (content: ReactNode) => ReactNode;
|
|
44
|
+
}
|
|
45
|
+
export declare function useChartPointer(options: ChartPointerOptions): ChartPointer;
|
|
46
|
+
export declare function hitRect(plot: HTMLElement, index: number): ChartRect | null;
|
|
47
|
+
export declare function hitRects(plot: HTMLElement): Array<ChartRect | null>;
|
|
48
|
+
export declare function TooltipBody({ title, rows, note }: {
|
|
49
|
+
title?: ReactNode;
|
|
50
|
+
rows?: Array<{
|
|
51
|
+
key: string;
|
|
52
|
+
color?: string;
|
|
53
|
+
label: ReactNode;
|
|
54
|
+
value: ReactNode;
|
|
55
|
+
}>;
|
|
56
|
+
note?: ReactNode;
|
|
57
|
+
}): import("react").JSX.Element;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ChartImageChart } from './chartImage';
|
|
2
|
+
import type { ChartFormatProps, ChartLinkComponent } from './types';
|
|
3
|
+
export interface ChartViewProps extends ChartFormatProps {
|
|
4
|
+
chart: ChartImageChart;
|
|
5
|
+
ariaLabel: string;
|
|
6
|
+
compact?: boolean;
|
|
7
|
+
height?: number;
|
|
8
|
+
size?: number;
|
|
9
|
+
onSelect?: (key: string) => void;
|
|
10
|
+
selected?: string | null;
|
|
11
|
+
linkAs?: ChartLinkComponent;
|
|
12
|
+
legend?: boolean;
|
|
13
|
+
onLegendCut?: (hidden: number) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function ChartView({ chart, ariaLabel, compact, height, size, onSelect, selected, linkAs, onLegendCut, legend, ...format }: ChartViewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import { type ColumnMode } from './geometry';
|
|
4
|
+
import type { ChartDatum, ChartFormatProps, ChartSelectProps, ChartSeries } from './types';
|
|
5
|
+
export interface ColumnChartProps extends ChartFormatProps, ChartSelectProps<ChartDatum> {
|
|
6
|
+
data: ChartDatum[];
|
|
7
|
+
series: ChartSeries[];
|
|
8
|
+
ariaLabel: string;
|
|
9
|
+
title?: ReactNode;
|
|
10
|
+
height?: number;
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
mode?: ColumnMode;
|
|
13
|
+
legend?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function ColumnChart({ data, series, ariaLabel, title, height, compact, mode, legend, onSelect, selected, ...format }: ColumnChartProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartFormatProps, ChartSelectProps, ChartSlice } from './types';
|
|
4
|
+
export interface DonutProps extends ChartFormatProps, ChartSelectProps<ChartSlice> {
|
|
5
|
+
slices: ChartSlice[];
|
|
6
|
+
ariaLabel: string;
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
size?: number;
|
|
9
|
+
compact?: boolean;
|
|
10
|
+
variant?: 'donut' | 'pie';
|
|
11
|
+
onLegendCut?: (hidden: number) => void;
|
|
12
|
+
legend?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function Donut({ slices, ariaLabel, title, size, compact, variant, onLegendCut, legend, onSelect, selected, ...format }: DonutProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartFormatProps, ChartSelectProps, ChartSlice } from './types';
|
|
4
|
+
export interface FunnelProps extends ChartFormatProps, ChartSelectProps<ChartSlice> {
|
|
5
|
+
steps: ChartSlice[];
|
|
6
|
+
ariaLabel: string;
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
compact?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function Funnel({ steps, ariaLabel, title, compact, onSelect, selected, ...format }: FunnelProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import { type GaugeVariant } from './geometry';
|
|
4
|
+
import type { ChartFormatProps, ChartProgressColor } from './types';
|
|
5
|
+
export interface GaugeProps extends ChartFormatProps {
|
|
6
|
+
value: number;
|
|
7
|
+
total: number;
|
|
8
|
+
ariaLabel: string;
|
|
9
|
+
label?: ReactNode;
|
|
10
|
+
variant?: GaugeVariant;
|
|
11
|
+
color?: ChartProgressColor;
|
|
12
|
+
size?: number;
|
|
13
|
+
compact?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function Gauge({ value, total, ariaLabel, label, variant, color, size, compact, ...format }: GaugeProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './Charts.css';
|
|
2
|
+
import type { ChartFormatProps, ChartSeries } from './types';
|
|
3
|
+
export interface LegendProps extends Pick<ChartFormatProps, 'labels'> {
|
|
4
|
+
series: ChartSeries[];
|
|
5
|
+
}
|
|
6
|
+
export declare function Legend({ series, labels }: LegendProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartDatum, ChartFormatProps, ChartSelectProps, ChartSeries } from './types';
|
|
4
|
+
export interface LineChartProps extends ChartFormatProps, ChartSelectProps<ChartDatum> {
|
|
5
|
+
data: ChartDatum[];
|
|
6
|
+
series: ChartSeries[];
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
area?: boolean;
|
|
10
|
+
height?: number;
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function LineChart({ data, series, ariaLabel, title, area, height, compact, onSelect, selected, ...format }: LineChartProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import { type TrendGood } from './geometry';
|
|
4
|
+
import type { ChartColor, ChartFormatProps } from './types';
|
|
5
|
+
export interface NumberTrendPoint {
|
|
6
|
+
key?: string;
|
|
7
|
+
label: string;
|
|
8
|
+
value: number;
|
|
9
|
+
}
|
|
10
|
+
export interface NumberTrendProps extends ChartFormatProps {
|
|
11
|
+
value: number;
|
|
12
|
+
ariaLabel: string;
|
|
13
|
+
title?: ReactNode;
|
|
14
|
+
points?: NumberTrendPoint[];
|
|
15
|
+
current?: number;
|
|
16
|
+
previous?: number;
|
|
17
|
+
good?: TrendGood;
|
|
18
|
+
slot?: ChartColor;
|
|
19
|
+
compact?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare function NumberTrend({ value, ariaLabel, title, points, current, previous, good, slot, compact, ...format }: NumberTrendProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartFormatProps, ChartProgressColor } from './types';
|
|
4
|
+
export interface ProgressProps extends ChartFormatProps {
|
|
5
|
+
value: number;
|
|
6
|
+
total: number;
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
color?: ChartProgressColor;
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function Progress({ value, total, ariaLabel, label, color, compact, ...format }: ProgressProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import type { ChartFormatProps, ChartSelectProps, ChartSlice } from './types';
|
|
4
|
+
export interface StackedBarProps extends ChartFormatProps, ChartSelectProps<ChartSlice> {
|
|
5
|
+
slices: ChartSlice[];
|
|
6
|
+
ariaLabel: string;
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
compact?: boolean;
|
|
9
|
+
onLegendCut?: (hidden: number) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function StackedBar({ slices, ariaLabel, title, compact, onLegendCut, onSelect, selected, ...format }: StackedBarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import './Charts.css';
|
|
3
|
+
import { type TreemapNode } from './geometry';
|
|
4
|
+
import type { ChartFormatProps, ChartSelectProps } from './types';
|
|
5
|
+
export interface TreemapProps extends ChartFormatProps, ChartSelectProps<TreemapNode> {
|
|
6
|
+
nodes: TreemapNode[];
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
height?: number;
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function Treemap({ nodes, ariaLabel, title, height, compact, onSelect, selected, ...format }: TreemapProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { ChartImageChart } from './chartImage';
|
|
2
|
+
import type { TrendGood } from './geometry';
|
|
3
|
+
import type { ChartLabels } from './labels';
|
|
4
|
+
import type { ChartColor, ChartProgressColor, ChartSeries } from './types';
|
|
5
|
+
export interface ChartValueCount {
|
|
6
|
+
key?: string;
|
|
7
|
+
label: string;
|
|
8
|
+
fullLabel?: string;
|
|
9
|
+
count?: number;
|
|
10
|
+
counts?: Record<string, number>;
|
|
11
|
+
slot?: ChartColor;
|
|
12
|
+
selectable?: boolean;
|
|
13
|
+
href?: string;
|
|
14
|
+
children?: Array<{
|
|
15
|
+
key?: string;
|
|
16
|
+
label: string;
|
|
17
|
+
count: number;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
export interface ChartPeriodCount {
|
|
21
|
+
key: string;
|
|
22
|
+
label: string;
|
|
23
|
+
fullLabel?: string;
|
|
24
|
+
count?: number;
|
|
25
|
+
counts?: Record<string, number>;
|
|
26
|
+
selectable?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface ChartStepCount {
|
|
29
|
+
key: string;
|
|
30
|
+
label: string;
|
|
31
|
+
count: number;
|
|
32
|
+
slot?: ChartColor;
|
|
33
|
+
selectable?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export type ChartData = {
|
|
36
|
+
type: 'values';
|
|
37
|
+
values: ChartValueCount[];
|
|
38
|
+
series?: ChartSeries[];
|
|
39
|
+
} | {
|
|
40
|
+
type: 'time';
|
|
41
|
+
period: 'day' | 'week' | 'month';
|
|
42
|
+
points: ChartPeriodCount[];
|
|
43
|
+
series?: ChartSeries[];
|
|
44
|
+
} | {
|
|
45
|
+
type: 'part';
|
|
46
|
+
label: string;
|
|
47
|
+
value: number;
|
|
48
|
+
total: number;
|
|
49
|
+
color?: ChartProgressColor;
|
|
50
|
+
} | {
|
|
51
|
+
type: 'steps';
|
|
52
|
+
steps: ChartStepCount[];
|
|
53
|
+
} | {
|
|
54
|
+
type: 'number';
|
|
55
|
+
value: number;
|
|
56
|
+
points?: Array<{
|
|
57
|
+
key?: string;
|
|
58
|
+
label: string;
|
|
59
|
+
value: number;
|
|
60
|
+
}>;
|
|
61
|
+
previous?: number;
|
|
62
|
+
good?: TrendGood;
|
|
63
|
+
};
|
|
64
|
+
export type ChartKind = 'donut' | 'pie' | 'bars' | 'stacked' | 'treemap' | 'columns' | 'line' | 'area' | 'grouped' | 'calendar' | 'bar' | 'gauge' | 'ring' | 'funnel' | 'number' | 'numberTrend';
|
|
65
|
+
export declare function chartsFor(data: ChartData): ChartKind[];
|
|
66
|
+
export declare function chartOfData(data: ChartData, as?: ChartKind, offer?: readonly ChartKind[]): ChartKind;
|
|
67
|
+
export type ChartDataWords = Pick<ChartLabels, 'count' | 'rest'>;
|
|
68
|
+
export declare const countSeries: (label: string) => ChartSeries[];
|
|
69
|
+
export declare function toChart(data: ChartData, as: ChartKind | undefined, words: ChartDataWords, offer?: readonly ChartKind[]): ChartImageChart;
|