@dcs-tech/ui 0.3.0 → 0.6.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 +1 -6
- package/dist/ChartImageMenu-CuuFnW9q.js +1481 -0
- package/dist/ChartView-nS4f4EU_.js +1703 -0
- package/dist/{SummaryChart-D4jcOv-K.js → SummaryChart-CVg6i2mx.js} +8 -10
- package/dist/{SummaryImage-BSbatHym.js → SummaryImage-CoEFzMl6.js} +3 -4
- package/dist/{SummarySeeAll-vnaL3pdy.js → SummarySeeAll-C_OUs3kn.js} +24 -20
- package/dist/assets/fileTask.worker-FQSUtwcz.js +1 -0
- package/dist/columnValue-K98ElfJc.js +610 -0
- package/dist/exportContext-CJaIv8R-.js +166 -0
- package/dist/{exportEngine-C4n1MiOw.js → exportEngine-CDLYHH0d.js} +142 -139
- package/dist/fileActions-KSaVGnaE.js +144 -0
- package/dist/geometry-ChwYB45B.js +1732 -0
- package/dist/index.js +14895 -17391
- package/dist/{defaults-BbLB8QmD.js → labels-CnqqTrne.js} +4 -81
- package/dist/runFileTask-BClLQjmv.js +109 -0
- package/dist/scrollArea-DAlVT5U7.js +214 -0
- package/dist/style.css +1 -1
- package/dist/{summaryChartData-CU_W5ocv.js → summaryChartData-pNvzaEHp.js} +2 -3
- package/dist/types/{shared-web-ui/src → components}/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- 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/{shared-web-ui/src → components}/Charts/ChartTooltip.d.ts +17 -3
- package/dist/types/{shared-web-ui/src → components}/Charts/geometry.d.ts +5 -3
- package/dist/types/{shared-web-ui/src → components}/Charts/parts.d.ts +2 -1
- package/dist/types/{shared-web-ui/src → components}/Charts/ui.d.ts +1 -1
- 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 -1
- package/dist/types/{shared-web-ui/src → components}/Collapsible/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/ColorSchemeSelect/ColorSchemeSelect.d.ts +2 -2
- package/dist/types/{shared-web-ui/src → components}/DataTable/DataTable.d.ts +1 -1
- package/dist/types/components/DataTable/DataTable.storyData.d.ts +23 -0
- package/dist/types/components/DataTable/PressButton.d.ts +2 -0
- package/dist/types/{shared-web-ui/src → components}/DataTable/cards/cardFields.d.ts +2 -4
- package/dist/types/components/DataTable/columnValue.d.ts +19 -0
- package/dist/types/components/DataTable/export/exportCells.d.ts +13 -0
- package/dist/types/{shared-web-ui/src → components}/DataTable/export/exportEngine.d.ts +2 -0
- package/dist/types/{shared-web-ui/src → components}/DataTable/export/useTableExport.d.ts +2 -0
- package/dist/types/components/DataTable/filters/FilterChips.d.ts +9 -0
- package/dist/types/{shared-web-ui/src → components}/DataTable/host.d.ts +2 -0
- package/dist/types/components/DataTable/index.d.ts +18 -0
- package/dist/types/{shared-web-ui/src → components}/DataTable/labels.d.ts +2 -0
- package/dist/types/components/DataTable/menu/layers.d.ts +1 -0
- package/dist/types/components/DataTable/rows/PressRow.d.ts +7 -0
- package/dist/types/{shared-web-ui/src → components}/DataTable/summary/summaryWidth.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/DataTable/types.d.ts +11 -0
- package/dist/types/components/DataTable/ui-local/scrollLock.d.ts +1 -0
- package/dist/types/{shared-web-ui/src → components}/DataTable/useTable.d.ts +4 -1
- package/dist/types/{shared-web-ui/src → components}/DataTable/vendor/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/DatePicker/Calendar.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/DatePicker/DatePicker.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/DatePicker/TimeField.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/DatePicker/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Dialog/DialogHost.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTable.d.ts +1 -1
- 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 +3 -3
- package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTableRow.d.ts +3 -3
- package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTableSummary.d.ts +2 -2
- 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/{shared-web-ui/src → components}/FieldContext/FieldContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/FieldContext/FieldProvider.d.ts +1 -1
- 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 -2
- package/dist/types/{shared-web-ui/src → components}/FieldContext/useFieldSurface.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/FieldContext/useFormKeyboard.d.ts +1 -1
- 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/{shared-web-ui/src → components}/Fields/FieldButton.d.ts +1 -1
- 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/FileEngine/FileEngineContext.d.ts +17 -0
- package/dist/types/components/FileEngine/FileEngineProvider.d.ts +12 -0
- package/dist/types/components/FileEngine/FileJobsTray.d.ts +10 -0
- package/dist/types/components/FileEngine/index.d.ts +8 -0
- package/dist/types/components/FileEngine/labels.d.ts +29 -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/{shared-web-ui/src → components}/Popover/Popover.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Popover/floatingPosition.d.ts +1 -1
- 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/{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/{shared-web-ui/src → components}/Sidebar/Sidebar.d.ts +1 -1
- 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/{shared-web-ui/src → components}/Toast/ToastHost.d.ts +1 -0
- package/dist/types/{shared-web-ui/src → components}/Tooltip/Tooltip.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Tooltip/useTooltip.d.ts +1 -1
- 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/UIFormatContext.d.ts +7 -0
- package/dist/types/components/UIProvider/UILabelsContext.d.ts +116 -0
- package/dist/types/{shared-web-ui/src → components}/UIProvider/UIProvider.d.ts +7 -2
- package/dist/types/{shared-web-ui/src → components}/UIProvider/index.d.ts +4 -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/{shared-logic/src/ui → core/logic}/cellRules.logic.d.ts +1 -1
- package/dist/types/{shared-logic/src/ui → core/logic}/chipinput.logic.d.ts +1 -1
- package/dist/types/{shared-logic/src/ui → core/logic}/collapsible.logic.d.ts +6 -1
- package/dist/types/{shared-logic/src/ui → core/logic}/datePicker.logic.d.ts +6 -1
- 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 -1
- package/dist/types/core/logic/exportSafety.logic.d.ts +1 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/fieldControl.logic.d.ts +1 -1
- 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/core/logic/fileQueue.logic.d.ts +28 -0
- package/dist/types/core/logic/format.logic.d.ts +4 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/index.d.ts +8 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/keyboard.logic.d.ts +1 -1
- package/dist/types/core/logic/motion.logic.d.ts +1 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/navigation.logic.d.ts +1 -1
- package/dist/types/{shared-logic/src/ui → core/logic}/popupList.logic.d.ts +1 -1
- package/dist/types/core/logic/press.logic.d.ts +14 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/quickAddGrid.logic.d.ts +1 -1
- package/dist/types/{shared-logic/src/ui → core/logic}/select.logic.d.ts +1 -1
- 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/tableDate.logic.d.ts +7 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/tableLayout.logic.d.ts +1 -1
- package/dist/types/{shared-logic/src/ui → core/logic}/tableSummary.logic.d.ts +3 -3
- package/dist/types/{shared-logic/src/ui → core/logic}/tooltip.logic.d.ts +1 -1
- 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/{shared-types/src/ui → core/types}/button.types.d.ts +1 -0
- package/dist/types/{shared-types/src/ui → core/types}/collapsible.types.d.ts +4 -16
- package/dist/types/core/types/fileEngine.types.d.ts +65 -0
- package/dist/types/core/types/format.types.d.ts +15 -0
- package/dist/types/{shared-types/src/ui → core/types}/index.d.ts +2 -0
- package/dist/types/{shared-types/src/ui → core/types}/suggest.types.d.ts +1 -0
- package/dist/types/{shared-types/src/ui → core/types}/table.types.d.ts +1 -0
- package/dist/types/{shared-web-ui/src/DataTable/vendor → file}/fileActions.d.ts +17 -7
- package/dist/types/file/fileEngine.d.ts +48 -0
- package/dist/types/file/tasks/fileTask.worker.d.ts +1 -0
- package/dist/types/file/tasks/runFileTask.d.ts +6 -0
- package/dist/types/file/workerPool.d.ts +17 -0
- package/dist/types/index.d.ts +93 -0
- package/package.json +27 -28
- package/dist/ChartImageMenu-gvNAYVkY.js +0 -2938
- package/dist/Charts-COljjy0x.js +0 -1759
- package/dist/exportContext-CAX8VPrP.js +0 -243
- package/dist/fuseSearch-vLQR3O5a.js +0 -37
- package/dist/types/published/dcs-ui/src/index.d.ts +0 -4
- package/dist/types/published/dcs-ui/src/publicLogic.d.ts +0 -2
- package/dist/types/published/dcs-ui/src/publicTypes.d.ts +0 -2
- package/dist/types/shared-logic/src/report/aggregate.d.ts +0 -8
- package/dist/types/shared-logic/src/report/canvas.d.ts +0 -51
- package/dist/types/shared-logic/src/report/conditions.d.ts +0 -4
- package/dist/types/shared-logic/src/report/constants.d.ts +0 -7
- package/dist/types/shared-logic/src/report/dataset.d.ts +0 -23
- package/dist/types/shared-logic/src/report/edit.d.ts +0 -126
- package/dist/types/shared-logic/src/report/fields.d.ts +0 -29
- package/dist/types/shared-logic/src/report/format.d.ts +0 -5
- package/dist/types/shared-logic/src/report/fromColumns.d.ts +0 -31
- package/dist/types/shared-logic/src/report/index.d.ts +0 -19
- package/dist/types/shared-logic/src/report/layout.d.ts +0 -31
- package/dist/types/shared-logic/src/report/metrics.d.ts +0 -17
- package/dist/types/shared-logic/src/report/migrate.d.ts +0 -17
- package/dist/types/shared-logic/src/report/paginate.d.ts +0 -8
- package/dist/types/shared-logic/src/report/renderers/html.d.ts +0 -8
- package/dist/types/shared-logic/src/report/renderers/pdfmake.d.ts +0 -18
- package/dist/types/shared-logic/src/report/resolve.d.ts +0 -11
- package/dist/types/shared-logic/src/report/scope.d.ts +0 -24
- package/dist/types/shared-logic/src/report/storage.d.ts +0 -36
- package/dist/types/shared-logic/src/report/validate.d.ts +0 -10
- package/dist/types/shared-types/src/report/bands.d.ts +0 -12
- package/dist/types/shared-types/src/report/blocks.d.ts +0 -122
- package/dist/types/shared-types/src/report/conditions.d.ts +0 -11
- package/dist/types/shared-types/src/report/dataset.d.ts +0 -53
- package/dist/types/shared-types/src/report/document.d.ts +0 -121
- package/dist/types/shared-types/src/report/index.d.ts +0 -9
- package/dist/types/shared-types/src/report/primitives.d.ts +0 -69
- package/dist/types/shared-types/src/report/registry.d.ts +0 -39
- package/dist/types/shared-types/src/report/storage.d.ts +0 -10
- package/dist/types/shared-types/src/report/template.d.ts +0 -32
- package/dist/types/shared-web-ui/src/DataTable/index.d.ts +0 -18
- 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 -18
- package/dist/types/shared-web-ui/src/ReportDesigner/BlockEditor.d.ts +0 -33
- 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 -5
- package/dist/types/shared-web-ui/src/ReportDesigner/FieldPicker.d.ts +0 -12
- 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 -7
- 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 -12
- 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 -2
- 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 -5
- 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 -22
- package/dist/types/shared-web-ui/src/ReportDesigner/parts.d.ts +0 -33
- package/dist/types/shared-web-ui/src/ReportDesigner/types.d.ts +0 -67
- package/dist/types/shared-web-ui/src/ReportPreview/ReportPreview.d.ts +0 -20
- 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/index.d.ts +0 -83
- package/dist/ui-DJFwpPdX.js +0 -4997
- /package/dist/types/{shared-web-ui/src → components}/AppBar/AppBar.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/AppBar/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/ArrowKeyFocus/useArrowKeyFocus.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Avatar/Avatar.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/Badge.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/Card.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}/Charts/AnchoredMenu.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/BarList.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/CalendarHeatmap.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/Chart.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/ChartIcon.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/ChartImageMenu.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/ChartTable.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/ChartView.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/ColumnChart.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/Donut.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/Funnel.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/Gauge.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/Legend.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/LineChart.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/NumberTrend.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/Progress.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/StackedBar.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/Treemap.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/chartData.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/chartImage.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/labels.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/menuPlacement.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/palette.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/pointer.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/types.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/useBoxSize.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Charts/useLegendFit.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/CommandPalette.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}/DataTable/DisplayPopover.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/HeaderMenu.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/ManageModal.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/SingleRowView.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/SortModal.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/StatusRow.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/TableColumnModal.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/TableControls.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/TablePagination.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/TableScrollStrip.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/TableToolbar.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/TableView.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/bulk/BulkConfirmDialog.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/bulk/TableToast.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/bulk/bulkActions.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/cards/CardFieldsEditor.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/cards/CardView.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/cards/rowParts.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/data/useServerData.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/defaults.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/detail/BuiltInDetail.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/detail/DetailHost.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/export/ExportPopover.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/export/ExportPreviewModal.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/export/ExportSettingsModal.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/export/ExportTemplateCards.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/export/exportContext.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/export/exportRows.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/export/templateDisplay.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/export/templateOptions.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/filters/ColumnFilterPopover.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/filters/FilterConditionRow.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/filters/FilterGroup.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/filters/FilterModal.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/filters/FilterRow.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/filters/columnFilterModel.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/filters/filterEngine.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/filters/filterRowModel.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/filters/quickFilterMatch.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/grouping/GroupUi.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/grouping/groupModel.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/grouping/useGrouping.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/keyboard/ShortcutsDialog.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/keyboard/shortcuts.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/keyboard/useGridKeyboard.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/layout/LayoutSwitcher.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/layout/layouts.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/layout/scrollArea.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/layout/useFillHeight.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/menu/RowMenu.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/menu/buildRowMenu.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/menu/clipboard.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/menu/valueFilter.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/motion/useRowMotion.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/persistence/adapters.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/persistence/reconcile.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/persistence/useColumnPersistence.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/persistence/useManagePrefs.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/persistence/useOrphanPrefs.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/pinning.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/rows/RowActions.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/rows/rowPress.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/sharing/Sharing.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/split/SplitView.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/summary/ManageSummaryCards.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/summary/SummaryChart.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/summary/SummaryControls.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/summary/SummaryImage.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/summary/SummarySeeAll.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/summary/TableSummary.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/summary/summaryCatalogue.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/summary/summaryChartData.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/summary/summaryModel.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/summary/useTableSummary.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/ui-local/AutoHeight.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/ui-local/DateRangePicker.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/ui-local/DragAndDropList/DragAndDropList.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/ui-local/DragAndDropList/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/ui-local/DragAndDropList/types.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/ui-local/ReactModal.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/ui.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/useDataChangeTracker.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/vendor/columnOrder.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/vendor/diff.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DataTable/virtual/useVirtualLines.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DatePicker/useOneMonthPane.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Dialog/Dialog.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}/EditableTable/useRowAnimation.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Floating/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Floating/layers.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Floating/scrollLock.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Floating/useFloatingLayer.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}/Scroll/ScrollRule.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Scroll/ScrollStrip.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Scroll/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Scroll/labels.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Scroll/scrollActivity.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Scroll/ui.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/Skeleton.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/Tabs.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/ToastItem.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}/Toast/toast.types.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/UIPortalContext.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/UIProvider/UIThemeContext.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}/colorScheme.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/columnOrder.logic.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/form.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}/popover.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
- /package/dist/types/{shared-logic/src/ui → core/logic}/timeField.logic.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/useMergeRefs.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/checkbox.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/chipinput.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/common.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/control.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/datePicker.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/editableTable.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/field.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/fieldWrapper.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/fields.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/form.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/input.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/keyboard.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/navigation.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/radio.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/select.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/switch.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/tooltip.types.d.ts +0 -0
- /package/dist/types/{shared-types/src/ui → core/types}/typography.types.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { Tt as e, U as t } from "./geometry-ChwYB45B.js";
|
|
3
|
+
// src/components/DataTable/summary/summaryChartData.ts
|
|
4
4
|
function n(e, t) {
|
|
5
5
|
return {
|
|
6
6
|
type: "values",
|
|
@@ -78,5 +78,4 @@ function r(e) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
var i = (t) => e(t.card), a = (e, n) => t(r(e), i(e), n);
|
|
81
|
-
//#endregion
|
|
82
81
|
export { a as n, i as r, n as t };
|
|
@@ -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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type KeyboardEvent, type PointerEvent, type ReactNode } from 'react';
|
|
1
|
+
import { type FocusEvent, type KeyboardEvent, type PointerEvent, type ReactNode } from 'react';
|
|
2
2
|
import { type ChartRect } from './pointer';
|
|
3
3
|
type Steps = Partial<Record<'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown', number>>;
|
|
4
4
|
export interface ChartPointerOptions {
|
|
@@ -8,12 +8,20 @@ export interface ChartPointerOptions {
|
|
|
8
8
|
keys?: Steps;
|
|
9
9
|
start?: number | null;
|
|
10
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;
|
|
11
19
|
}
|
|
12
20
|
export interface ChartPointer {
|
|
13
21
|
active: number | null;
|
|
14
22
|
plotProps: {
|
|
15
23
|
ref: (el: HTMLElement | null) => void;
|
|
16
|
-
tabIndex
|
|
24
|
+
tabIndex?: 0;
|
|
17
25
|
'data-chart-plot': '';
|
|
18
26
|
onPointerDown: (e: PointerEvent) => void;
|
|
19
27
|
onPointerMove: (e: PointerEvent) => void;
|
|
@@ -24,8 +32,14 @@ export interface ChartPointer {
|
|
|
24
32
|
clientY: number;
|
|
25
33
|
}) => void;
|
|
26
34
|
onKeyDown: (e: KeyboardEvent) => void;
|
|
27
|
-
|
|
35
|
+
onFocus: (e: FocusEvent) => void;
|
|
36
|
+
onBlur: (e: FocusEvent) => void;
|
|
28
37
|
};
|
|
38
|
+
pickable: boolean;
|
|
39
|
+
item: (index: number, state?: {
|
|
40
|
+
pressed?: boolean;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
}) => ChartItemProps;
|
|
29
43
|
tooltip: (content: ReactNode) => ReactNode;
|
|
30
44
|
}
|
|
31
45
|
export declare function useChartPointer(options: ChartPointerOptions): ChartPointer;
|
|
@@ -91,10 +91,12 @@ export interface CalendarCellSize {
|
|
|
91
91
|
gap: number;
|
|
92
92
|
weekdays: boolean;
|
|
93
93
|
}
|
|
94
|
-
export declare function calendarCellSize(width: number, weeks: number, max?: number): CalendarCellSize;
|
|
94
|
+
export declare function calendarCellSize(width: number, weeks: number, max?: number, scale?: number): CalendarCellSize;
|
|
95
|
+
export declare const calendarWeekdaysWidth: (scale?: number) => number;
|
|
96
|
+
export declare const calendarMonthRoom: (scale?: number) => number;
|
|
95
97
|
export declare function calendarMonthLabels<M extends {
|
|
96
98
|
week: number;
|
|
97
|
-
}>(months: readonly M[], pitch: number): M[];
|
|
99
|
+
}>(months: readonly M[], pitch: number, scale?: number): M[];
|
|
98
100
|
export interface Rect {
|
|
99
101
|
x: number;
|
|
100
102
|
y: number;
|
|
@@ -122,7 +124,7 @@ export declare const TREEMAP_LABEL_MIN: {
|
|
|
122
124
|
};
|
|
123
125
|
export declare const TREEMAP_HEADER = 16;
|
|
124
126
|
export declare const TREEMAP_GAP = 2;
|
|
125
|
-
export declare function treemapLayout(nodes: readonly TreemapNode[], width: number, height: number): TreemapTile[];
|
|
127
|
+
export declare function treemapLayout(nodes: readonly TreemapNode[], width: number, height: number, scale?: number): TreemapTile[];
|
|
126
128
|
export declare const childOpacity: (index: number) => number;
|
|
127
129
|
export interface FunnelRow<T extends {
|
|
128
130
|
value: number;
|
|
@@ -9,7 +9,7 @@ export declare function Titled({ title, children }: {
|
|
|
9
9
|
}): import("react").JSX.Element;
|
|
10
10
|
export declare function formatPercent(p: number): string;
|
|
11
11
|
export declare const funnelDropText: (drop: number) => string;
|
|
12
|
-
export declare function useChartFormat({ locale, format, labels }: ChartFormatProps): {
|
|
12
|
+
export declare function useChartFormat({ locale: localeProp, format, labels }: ChartFormatProps): {
|
|
13
13
|
nf: (n: number) => string;
|
|
14
14
|
L: ChartLabels;
|
|
15
15
|
};
|
|
@@ -19,6 +19,7 @@ export declare function ChartEmpty({ ariaLabel, text, compact }: {
|
|
|
19
19
|
compact: boolean;
|
|
20
20
|
}): import("react").JSX.Element;
|
|
21
21
|
export declare function roveIndex(key: string, index: number | null, count: number, steps?: Partial<Record<'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown', number>>): number | null;
|
|
22
|
+
export declare function roveControls(key: string, index: number | null, count: number, steps?: Partial<Record<'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown', number>>, has?: (index: number) => boolean): number | null;
|
|
22
23
|
export declare function ChartLive({ text }: {
|
|
23
24
|
text: string;
|
|
24
25
|
}): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useUiScale(): [(el: HTMLElement | null) => void, number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CheckboxProps, FieldHandle } from '
|
|
2
|
+
import { CheckboxProps, FieldHandle } from '../../core/types';
|
|
3
3
|
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<FieldHandle>>;
|
|
4
4
|
export default Checkbox;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CheckboxGroupContextValue } from '
|
|
1
|
+
import { CheckboxGroupContextValue } from '../../core/types';
|
|
2
2
|
export declare const CheckboxGroupCtx: import("react").Context<CheckboxGroupContextValue | null>;
|
|
3
3
|
export declare function useCheckboxGroup(): CheckboxGroupContextValue | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Checkbox } from './Checkbox';
|
|
2
2
|
export { default as CheckboxGroup } from './CheckboxGroup';
|
|
3
|
-
export type { CheckboxProps, CheckboxGroupProps, CheckboxVariant, CheckboxSize, CheckboxLabelPosition, CheckboxColor, CheckboxGroupContextValue, } from '
|
|
3
|
+
export type { CheckboxProps, CheckboxGroupProps, CheckboxVariant, CheckboxSize, CheckboxLabelPosition, CheckboxColor, CheckboxGroupContextValue, } from '../../core/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ChipInputProps, FieldHandle } from '
|
|
2
|
+
import type { ChipInputProps, FieldHandle } from '../../core/types';
|
|
3
3
|
declare const ChipInput: React.ForwardRefExoticComponent<ChipInputProps & React.RefAttributes<FieldHandle>>;
|
|
4
4
|
export { ChipInput };
|
|
5
5
|
export default ChipInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ChipInput } from './ChipInput';
|
|
2
2
|
export { default } from './ChipInput';
|
|
3
3
|
export { useChipSuggestions } from './useChipSuggestions';
|
|
4
|
-
export { parseFormat, resolveFormat, extractPlaceholders, validateFormat, } from '
|
|
5
|
-
export type { ChipInputProps, ChipInputSize, ChipInputLayout, ChipKey, ChipSource, ChipSources, ChipSuggestionItem, GroupedSuggestions, ParsedSegment, ResolveOptions, ExtractedPlaceholder, FormatValidationResult, UseChipSuggestionsOptions, UseChipSuggestionsReturn, } from '
|
|
4
|
+
export { parseFormat, resolveFormat, extractPlaceholders, validateFormat, } from '../../core/logic';
|
|
5
|
+
export type { ChipInputProps, ChipInputSize, ChipInputLayout, ChipKey, ChipSource, ChipSources, ChipSuggestionItem, GroupedSuggestions, ParsedSegment, ResolveOptions, ExtractedPlaceholder, FormatValidationResult, UseChipSuggestionsOptions, UseChipSuggestionsReturn, } from '../../core/types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { UseChipSuggestionsOptions, UseChipSuggestionsReturn } from '
|
|
1
|
+
import type { UseChipSuggestionsOptions, UseChipSuggestionsReturn } from '../../core/types';
|
|
2
2
|
export declare function useChipSuggestions({ sources, searchTerm, syntax, }: UseChipSuggestionsOptions): UseChipSuggestionsReturn;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CollapsibleContextValue } from '
|
|
1
|
+
import { CollapsibleContextValue } from '../../core/types';
|
|
2
2
|
export declare const CollapsibleContext: import("react").Context<CollapsibleContextValue | null>;
|
|
3
3
|
export declare const useCollapsibleContext: () => CollapsibleContextValue;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CollapsibleItemProps } from '
|
|
2
|
+
import { CollapsibleItemProps } from '../../core/types';
|
|
3
3
|
export declare const TRIGGER_ATTR = "data-collapsible-trigger";
|
|
4
4
|
export declare const ROOT_ATTR = "data-collapsible-root";
|
|
5
5
|
export declare const CollapsibleItem: React.FC<CollapsibleItemProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as Collapsible } from './Collapsible';
|
|
2
2
|
export { CollapsibleItem } from './CollapsibleItem';
|
|
3
3
|
export { CollapsibleContext, useCollapsibleContext } from './CollapsibleContext';
|
|
4
|
-
export type { CollapsibleProps, CollapsibleItemProps, CollapsibleContextValue, CollapsibleVariant, CollapsibleSize, CollapsibleColor, CollapsibleIconPosition, CollapsibleExpansionMode, CollapsibleAuthorize, } from '
|
|
4
|
+
export type { CollapsibleProps, CollapsibleItemProps, CollapsibleContextValue, CollapsibleVariant, CollapsibleSize, CollapsibleColor, CollapsibleIconPosition, CollapsibleExpansionMode, CollapsibleAuthorize, CollapsibleDisclosure, CollapsibleTone, CollapsibleHeadingLevel, } from '../../core/types';
|
package/dist/types/{shared-web-ui/src → components}/ColorSchemeSelect/ColorSchemeSelect.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SelectProps } from '
|
|
3
|
-
import { ColorScheme } from '
|
|
2
|
+
import { SelectProps } from '../../core/types';
|
|
3
|
+
import { ColorScheme } from '../../core/logic';
|
|
4
4
|
export interface ColorSchemeSelectProps extends Omit<SelectProps, 'options' | 'renderOption' | 'renderSelectedValue'> {
|
|
5
5
|
schemes: ColorScheme[];
|
|
6
6
|
sampleTitle?: string;
|
|
@@ -12,5 +12,5 @@ export declare function sameSorting(a: Array<{
|
|
|
12
12
|
id: string;
|
|
13
13
|
desc: boolean;
|
|
14
14
|
}>): boolean;
|
|
15
|
-
declare function DataTable<TData = any>({ data: dataProp, views, tableId, className, dataSource, persistence: persistenceProp, authorize, exportOptions, initialState: initialStateProp, onStateChange, onRowsChange, apiRef, bulkActions: tableBulkActions, labels: labelsProp, locale, renderDetail: tableRenderDetail, detailBar, openRowId: openRowIdProp, onOpenRowChange, shortcuts: tableShortcutsProp, sharing, renamedViews, prefsVersion, migratePrefs, title, }: DataTableProps<TData>): React.JSX.Element;
|
|
15
|
+
declare function DataTable<TData = any>({ data: dataProp, views, tableId, className, dataSource, persistence: persistenceProp, authorize, exportOptions, initialState: initialStateProp, onStateChange, onRowsChange, apiRef, bulkActions: tableBulkActions, labels: labelsProp, locale: localeProp, renderDetail: tableRenderDetail, detailBar, openRowId: openRowIdProp, onOpenRowChange, shortcuts: tableShortcutsProp, sharing, renamedViews, prefsVersion, migratePrefs, title, }: DataTableProps<TData>): React.JSX.Element;
|
|
16
16
|
export default DataTable;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type DataTableColumn, type DataTableDataSource, type DataTableSummaryCard } from './types';
|
|
2
|
+
export interface Order {
|
|
3
|
+
id: string;
|
|
4
|
+
number: string;
|
|
5
|
+
customer: string;
|
|
6
|
+
product: string;
|
|
7
|
+
category: 'Furniture' | 'Lighting' | 'Kitchen' | 'Garden' | 'Office';
|
|
8
|
+
region: 'North' | 'South' | 'East' | 'West';
|
|
9
|
+
status: 'New' | 'Packed' | 'Shipped' | 'Delivered' | 'Returned';
|
|
10
|
+
qty: number;
|
|
11
|
+
amount: number;
|
|
12
|
+
paid: boolean;
|
|
13
|
+
ordered: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function makeOrders(count?: number, seed?: number): Order[];
|
|
16
|
+
export declare const ORDERS: Order[];
|
|
17
|
+
export declare const money: (n: number) => string;
|
|
18
|
+
export declare const orderColumns: DataTableColumn<Order>[];
|
|
19
|
+
export declare const orderSummaryCards: DataTableSummaryCard<Order>[];
|
|
20
|
+
export declare function fakeOrderServer(rows?: Order[], opts?: {
|
|
21
|
+
latency?: number;
|
|
22
|
+
fail?: boolean;
|
|
23
|
+
}): DataTableDataSource<Order>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ColumnTextContext } from '../columnValue';
|
|
1
2
|
import { type DataTableCardField, type DataTableCardFields, type DataTableColumn, type DataTableListField, type DataTableListFields } from '../types';
|
|
2
3
|
export interface FieldSet<K extends string> {
|
|
3
4
|
kind: 'card' | 'list';
|
|
@@ -22,10 +23,7 @@ export declare function defaultCardFields(columns: DataTableColumn[], configured
|
|
|
22
23
|
export declare const isListFields: (value: unknown) => value is Partial<DataTableListFields>;
|
|
23
24
|
export declare const normalizeListFields: (raw: Partial<DataTableListFields> | undefined, columns: DataTableColumn[]) => DataTableListFields;
|
|
24
25
|
export declare function defaultListFields(columns: DataTableColumn[], configured: Partial<DataTableListFields> | undefined, card: DataTableCardFields): DataTableListFields;
|
|
25
|
-
export
|
|
26
|
-
yes: string;
|
|
27
|
-
no: string;
|
|
28
|
-
}
|
|
26
|
+
export type CellTextLabels = ColumnTextContext;
|
|
29
27
|
export declare function cellText(column: DataTableColumn, row: unknown, labels: CellTextLabels): string;
|
|
30
28
|
export declare function valueText(column: DataTableColumn, value: unknown, labels: CellTextLabels): string;
|
|
31
29
|
export declare function initialsOf(text: string): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DateDisplayFormat, UIFormat } from '../../core/types';
|
|
2
|
+
import { type TableDate } from '../../core/logic';
|
|
3
|
+
import type { DataTableColumn } from './types';
|
|
4
|
+
export declare const DEFAULT_TABLE_DATE_FORMAT: DateDisplayFormat;
|
|
5
|
+
export declare function columnValueOf<T>(col: DataTableColumn<T>, row: T): unknown;
|
|
6
|
+
export declare function columnDateOf<T>(col: DataTableColumn<T>, value: unknown, row?: T): TableDate | null;
|
|
7
|
+
export declare const columnDate: <T>(col: DataTableColumn<T>, row: T) => TableDate | null;
|
|
8
|
+
export declare function filterDateOf<T>(col: DataTableColumn<T>, value: unknown, row?: T): TableDate | null;
|
|
9
|
+
export declare function dateCellText<T>(col: DataTableColumn<T>, value: unknown, row?: T): string;
|
|
10
|
+
export interface ColumnTextContext {
|
|
11
|
+
yes: string;
|
|
12
|
+
no: string;
|
|
13
|
+
fmt?: UIFormat;
|
|
14
|
+
}
|
|
15
|
+
export declare function valueText<T>(col: DataTableColumn<T>, value: unknown, ctx: ColumnTextContext, row?: T): string;
|
|
16
|
+
export declare const columnText: <T>(col: DataTableColumn<T>, row: T, ctx: ColumnTextContext) => string;
|
|
17
|
+
export declare function searchTextOf<T>(col: DataTableColumn<T>, row: T, ctx: ColumnTextContext): string;
|
|
18
|
+
export declare function sortKeyOf<T>(col: DataTableColumn<T>, value: unknown, row: T, ctx: ColumnTextContext): unknown;
|
|
19
|
+
export declare function compareSortKeys(a: unknown, b: unknown): number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DataTableCellStyle, DataTableColumn, DataTableExportFormat } from '../types';
|
|
2
|
+
import { type ColumnTextContext } from '../columnValue';
|
|
3
|
+
import type { ColumnMeta } from './exportEngine';
|
|
4
|
+
export interface ExportRowsForFormat {
|
|
5
|
+
headers: string[];
|
|
6
|
+
rows: Record<string, any>[];
|
|
7
|
+
exportColumns: DataTableColumn[];
|
|
8
|
+
cellStyles?: Record<string, DataTableCellStyle>[];
|
|
9
|
+
columnMeta: ColumnMeta[];
|
|
10
|
+
totals: Record<string, any> | null;
|
|
11
|
+
}
|
|
12
|
+
export declare function uniqueHeaders(names: string[]): string[];
|
|
13
|
+
export declare function exportRowsFor<TData>(format: DataTableExportFormat, data: TData[], columns: DataTableColumn<TData>[], visibleKeys: string[], ctx: ColumnTextContext, totalKeys?: string[], totalLabel?: string): ExportRowsForFormat;
|
|
@@ -8,6 +8,7 @@ export interface ColumnMeta {
|
|
|
8
8
|
type?: 'string' | 'number' | 'date' | 'boolean' | 'select' | 'array';
|
|
9
9
|
width?: number;
|
|
10
10
|
format?: 'text' | 'number' | 'currency' | 'date' | 'percentage';
|
|
11
|
+
numFmt?: string;
|
|
11
12
|
cellStyle?: (value: any, row: any) => DataTableCellStyle | undefined;
|
|
12
13
|
}
|
|
13
14
|
export declare function buildColumnMeta(columns: DataTableColumn[], headers: string[]): ColumnMeta[];
|
|
@@ -68,6 +69,7 @@ export declare function buildExportBlob(format: DataTableExportFormat, headers:
|
|
|
68
69
|
};
|
|
69
70
|
totalKeys?: string[];
|
|
70
71
|
columns?: DataTableColumn[];
|
|
72
|
+
columnMeta?: ColumnMeta[];
|
|
71
73
|
cellStyles?: Record<string, DataTableCellStyle>[];
|
|
72
74
|
metadata?: DataTableExportMetadata;
|
|
73
75
|
branding?: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type DataTableColumn, type DataTableExportTemplate, type DataTableExportFormat, type DataTableExportAction, type DataTableExportSettings, type DataTableActiveFilter, type DataTableExportResult, type DataTableExportConfig, type DataTablePdfConfig, type DataTableExportSummary, type DataTableExportTemplatePrefs, type DataTableExportOptions, type DataTableAllRowsResult, type DataTableAuthorize, type DataTableSelection } from '../types';
|
|
2
2
|
import type { DataTableExportOptionValues } from '../types';
|
|
3
|
+
import type { ColumnTextContext } from '../columnValue';
|
|
3
4
|
import { type DataTableLabels } from '../labels';
|
|
4
5
|
interface UseTableExportOptions<TData> {
|
|
5
6
|
columns: DataTableColumn<TData>[];
|
|
@@ -25,6 +26,7 @@ interface UseTableExportOptions<TData> {
|
|
|
25
26
|
loadAllRows?: (format: DataTableExportFormat, action: DataTableExportAction, params?: Record<string, unknown>) => Promise<DataTableAllRowsResult<TData>>;
|
|
26
27
|
labels?: DataTableLabels;
|
|
27
28
|
locale?: string;
|
|
29
|
+
text?: ColumnTextContext;
|
|
28
30
|
}
|
|
29
31
|
interface UseTableExportReturn {
|
|
30
32
|
hasExport: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DataTableActiveFilter } from '../types';
|
|
3
|
+
interface FilterChipsProps {
|
|
4
|
+
filters: DataTableActiveFilter[];
|
|
5
|
+
onRemove: (id: string) => void;
|
|
6
|
+
onClearAll: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const FilterChips: React.FC<FilterChipsProps>;
|
|
9
|
+
export default FilterChips;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ColumnTextContext } from './columnValue';
|
|
1
2
|
import type { DataTableAuthorize, DataTableExportOptions, DataTableGate } from './types';
|
|
2
3
|
import { type TableFormat, type DataTableLabels } from './labels';
|
|
3
4
|
export interface TableHost {
|
|
@@ -7,6 +8,7 @@ export interface TableHost {
|
|
|
7
8
|
operators?: readonly string[];
|
|
8
9
|
labels: DataTableLabels;
|
|
9
10
|
format: TableFormat;
|
|
11
|
+
text: ColumnTextContext;
|
|
10
12
|
}
|
|
11
13
|
export declare const TableHostContext: import("react").Context<TableHost>;
|
|
12
14
|
export declare function useTableHost(): TableHost;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { default as DataTable } from './DataTable';
|
|
2
|
+
export type { DataTableProps, DataTableView, DataTableColumn, DataTableColumnType, DataTableNumberFormat, DataTableComponentProps, DataTableRowAction, DataTableFilterGroup, DataTableFilterCondition, DataTableActiveFilter, DataTableSingleRowView, DataTableSingleRowField, DataTableSingleRowAction, DataTableSelectionConfig, DataTableSelectionShow, DataTablePaginationConfig, DataTableSortingConfig, DataTableFilteringConfig, DataTableQuickFilter, DataTableQuickFilterMode, DataTableSavedFilter, DataTableSavedFilterIssue, DataTableViewPrefs, DataTableExportFormat, DataTableExportAction, DataTableExportTemplate, DataTableQuickExport, DataTableExportConfig, DataTableXlsxStyle, DataTablePdfConfig, DataTableExportGenerator, DataTableExportResult, DataTableExportResultStatus, DataTableExportGeneratorResult, DataTableFilenameContext, DataTableExportMeta, DataTableExportContext, DataTableExportSettings, DataTableExportPrefs, DataTableExportMetadata, DataTableExportSummary, DataTableExportSummaryTable, DataTableExportOptions, DataTableFileNameAs, DataTablePdfFonts, DataTablePdfPageSize, DataTablePdfOrientation, DataTablePdfFontSize, DataTablePdfMargins, DataTableSummaryConfig, DataTableSummaryCard, DataTableSummaryValueCard, DataTableSummaryRatioCard, DataTableSummaryBreakdownCard, DataTableSummaryTrendCard, DataTableSummaryFunnelCard, DataTableSummaryFunnelStep, DataTableSummaryValueTrend, DataTableSummaryPeriod, DataTableSummaryTrendChart, DataTableSummaryValueChart, DataTableSummaryRatioChart, DataTableSummaryAnyChart, DataTableSummaryCardRequest, DataTableSummaryPeriodCount, DataTableSummaryFigure, DataTableSummarySubline, DataTableSummaryStrip, DataTableSummaryChart, DataTableSummaryWidth, DataTableSummaryShow, DataTableSummaryPart, DataTableSummaryUserCard, DataTableSummaryPrefs, DataTableExportSummaryMode, DataTableSummaryPlacement, DataTableSummaryRequest, DataTableSummaryBucket, DataTableSummaryBreakdown, DataTableSummaryFigures, DataTableLicense, DataTableFlashColor, DataTableFlashColors, DataTableCellFlashStyle, DataTableCellStyle, DataTableLayout, DataTableCardFields, DataTableCardField, DataTableListFields, DataTableListField, DataTableRowMenuConfig, DataTableRowMenuItem, DataTableRowMenuBuiltIn, DataTableRowMenuIconAction, DataTableDetailMode, DataTableDetailContext, DataTableDetailRenderer, DataTableDisplayPrefs, DataTableDensity, DataTableFontSize, DataTableColumnWidth, DataTableActionDisplay, DataTableQuery, DataTableDataSource, DataTableRowsResult, DataTableAllRowsResult, DataTableCounts, DataTableInitialState, DataTableApi, DataTablePersistence, DataTableGate, DataTableAuthorize, DataTableManagePrefs, DataTableManageList, DataTableViewsPrefs, DataTableExportTemplatePrefs, DataTableBulkAction, DataTableBulkActionContext, DataTableBulkActionResult, DataTableBulkConfirm, DataTableSelection, DataTableColumnPinning, DataTablePinningConfig, DataTableKeyboardConfig, DataTableShortcut, DataTableVirtualizeConfig, DataTableGroupingConfig, DataTableGroupPathItem, DataTableGroupResult, DataTableGroupSummaryContext, DataTableViewState, DataTableSharedView, DataTableShareAudience, DataTableSharing, } from './types';
|
|
3
|
+
export { isFilterGroup, CARD_FIELD_LIMITS, LIST_FIELD_LIMITS, SUMMARY_PLACEMENTS_MAX, SUMMARY_SHOWS, SUMMARY_STRIPS, SUMMARY_TREND_COUNTS, SUMMARY_TREND_COUNT_BOUNDS, SUMMARY_KIND_CHARTS, SUMMARY_USER_CARDS_MAX, SUMMARY_WIDTHS } from './types';
|
|
4
|
+
export { DEFAULT_DATA_TABLE_LABELS } from './labels';
|
|
5
|
+
export type { DataTableLabels, DataTableLabelKey } from './labels';
|
|
6
|
+
export { localStorageAdapter, memoryAdapter } from './persistence/adapters';
|
|
7
|
+
export { evaluateCondition, evaluateGroup, flattenActiveFilters, getOperatorsForType, operatorLabel, hasActiveConditions, removeConditionById } from './filters/filterEngine';
|
|
8
|
+
export { createEmptyFilterGroup, generateId, getNestedValue } from './defaults';
|
|
9
|
+
export { prepareExportRows, autoFormatValue } from './export/exportRows';
|
|
10
|
+
export { defaultCardFields, normalizeCardFields, isCardFields, defaultListFields, normalizeListFields, isListFields } from './cards/cardFields';
|
|
11
|
+
export { applyValueFilter, cellFilterValues, valueFilterKinds } from './menu/valueFilter';
|
|
12
|
+
export type { DataTableCellFilterValue, DataTableValueFilterKind } from './menu/valueFilter';
|
|
13
|
+
export { copyText, rowsToTsv } from './menu/clipboard';
|
|
14
|
+
export { parseShortcut, formatShortcut, duplicateShortcuts, isTypingTarget } from './keyboard/shortcuts';
|
|
15
|
+
export { groupConditions, withGroupFilter, groupableColumns, DEFAULT_GROUP_DEPTH } from './grouping/groupModel';
|
|
16
|
+
export { SUMMARY_CONDITION_PREFIX, SUMMARY_PART_TOP, chartOf as summaryChartOf, summaryChartsFor, summaryConditionId, summaryRequest } from './summary/summaryModel';
|
|
17
|
+
export { formatContextLine, formatMetadataLines, type ContextLineOptions } from './export/exportContext';
|
|
18
|
+
export { quickFiltersStillOn } from './filters/quickFilterMatch';
|
|
@@ -459,6 +459,8 @@ export declare const DEFAULT_DATA_TABLE_LABELS: {
|
|
|
459
459
|
exportPreviewLoadFailed: string;
|
|
460
460
|
exportLoadFailed: string;
|
|
461
461
|
exportGenerationFailed: string;
|
|
462
|
+
exportCancelled: (title: string) => string;
|
|
463
|
+
exportAwaitingClick: (title: string) => string;
|
|
462
464
|
exportValidationFailed: string;
|
|
463
465
|
exportCapped: (shown: string, total: string) => string;
|
|
464
466
|
exportBusiness: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { isTopLayer, ownsFocus, LAYER_ATTR } from '../../Floating';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface PressRowProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
as: 'tr' | 'div';
|
|
4
|
+
pressable: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const PressRow: React.ForwardRefExoticComponent<PressRowProps & React.RefAttributes<HTMLElement>>;
|
|
7
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DataTableColumn, DataTableSummaryCard, DataTableSummaryWidth } from '../types';
|
|
2
2
|
export type SummaryFixedWidth = Exclude<DataTableSummaryWidth, 'auto'>;
|
|
3
3
|
export declare const STRIP_FOUR_MIN = 1000;
|
|
4
|
-
export declare function stripColumns(width: number): 1 | 2 | 4;
|
|
4
|
+
export declare function stripColumns(width: number, uiScale?: number): 1 | 2 | 4;
|
|
5
5
|
export declare const WIDTH_ORDER: readonly SummaryFixedWidth[];
|
|
6
6
|
export declare const spanOf: (width: SummaryFixedWidth, columns: number) => number;
|
|
7
7
|
export declare function bestWidth(card: DataTableSummaryCard, values?: number): SummaryFixedWidth;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ComponentType, type ReactNode } from 'react';
|
|
2
2
|
import type { ChartProgressColor, ChartSlot, TrendGood } from '../Charts';
|
|
3
3
|
import type { DataTableLabels } from './labels';
|
|
4
|
+
import type { DateDisplayFormat } from '../../core/types';
|
|
4
5
|
export type DataTableFlashColor = 'green' | 'red' | 'amber' | 'blue' | 'purple' | 'teal' | 'orange' | 'pink';
|
|
5
6
|
export interface DataTableFlashColors {
|
|
6
7
|
up?: DataTableFlashColor;
|
|
@@ -33,6 +34,7 @@ export interface DataTableCellStyle {
|
|
|
33
34
|
fontSize?: number;
|
|
34
35
|
align?: 'left' | 'center' | 'right';
|
|
35
36
|
}
|
|
37
|
+
export type DataTableNumberFormat = 'integer' | 'amount' | 'currency' | 'percent';
|
|
36
38
|
export interface DataTableColumn<TData = any> {
|
|
37
39
|
key: string;
|
|
38
40
|
header: string;
|
|
@@ -52,6 +54,15 @@ export interface DataTableColumn<TData = any> {
|
|
|
52
54
|
value: any;
|
|
53
55
|
}>;
|
|
54
56
|
filterAccessor?: (value: any) => any;
|
|
57
|
+
parse?: DateDisplayFormat | ((value: any, row: TData) => unknown);
|
|
58
|
+
dateFormat?: DateDisplayFormat;
|
|
59
|
+
value?: (row: TData) => unknown;
|
|
60
|
+
format?: (value: any, row: TData) => string;
|
|
61
|
+
numberFormat?: DataTableNumberFormat;
|
|
62
|
+
sortValue?: (value: any, row: TData) => unknown;
|
|
63
|
+
compare?: (a: any, b: any) => number;
|
|
64
|
+
searchText?: (value: any, row: TData) => string;
|
|
65
|
+
groupValue?: (value: any, row: TData) => string | number | boolean | null;
|
|
55
66
|
field?: string;
|
|
56
67
|
groupable?: boolean;
|
|
57
68
|
authorized?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { lockScroll, useScrollLock } from '../../Floating';
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import type { UIFormat } from '../../core/types';
|
|
2
|
+
import { type ColumnTextContext } from './columnValue';
|
|
1
3
|
import { type DataTableView, type DataTableColumn, type UseTableReturn, type DataTableInitialState } from './types';
|
|
2
4
|
import { type DataTableLabels } from './labels';
|
|
3
|
-
export declare function rowMatchesSearch<TData>(row: TData, columns: DataTableColumn<TData>[], search: string): boolean;
|
|
5
|
+
export declare function rowMatchesSearch<TData>(row: TData, columns: DataTableColumn<TData>[], search: string, ctx?: ColumnTextContext): boolean;
|
|
4
6
|
export interface UseTableOptions {
|
|
5
7
|
serverMode?: boolean;
|
|
6
8
|
rowCount?: number;
|
|
7
9
|
initialState?: DataTableInitialState;
|
|
8
10
|
defaultPageSize?: number;
|
|
9
11
|
labels?: DataTableLabels;
|
|
12
|
+
format?: UIFormat;
|
|
10
13
|
customPaging?: boolean;
|
|
11
14
|
}
|
|
12
15
|
export declare function useTable<TData = any>(data: TData[], config: DataTableView<TData>, options?: UseTableOptions): UseTableReturn<TData>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { mergeColumnOrder } from './columnOrder';
|
|
2
2
|
export { extractDifferences, applyDifferences, type DeepPartial } from './diff';
|
|
3
|
-
export { createPdfBlob, rawDataToBlob, downloadBlob, shareFile, openPreview, executeFileAction, getExtension, getFormatLabel, safeFileName, safeFileBaseName, EXTENSION_MAP, MIME_MAP, type FileFormat, type FileAction, } from '
|
|
3
|
+
export { createPdfBlob, rawDataToBlob, downloadBlob, shareFile, openPreview, executeFileAction, getExtension, getFormatLabel, safeFileName, safeFileBaseName, EXTENSION_MAP, MIME_MAP, type FileFormat, type FileAction, } from '../../../file/fileActions';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CalendarView, IsoDay } from '
|
|
2
|
+
import type { CalendarView, IsoDay } from '../../core/logic';
|
|
3
3
|
export type CalendarOutside = 'all' | 'leading' | 'trailing' | 'none';
|
|
4
4
|
export interface CalendarProps {
|
|
5
5
|
view: CalendarView;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { DatePickerProps, FieldHandle } from '
|
|
2
|
+
import type { DatePickerProps, FieldHandle } from '../../core/types';
|
|
3
3
|
export declare const TYPING_SETTLE_MS = 250;
|
|
4
4
|
declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<FieldHandle>>;
|
|
5
5
|
export default DatePicker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as DatePicker } from './DatePicker';
|
|
2
2
|
export { default as Calendar } from './Calendar';
|
|
3
3
|
export type { CalendarProps } from './Calendar';
|
|
4
|
-
export type { DatePickerProps, DatePickerBaseProps, DatePickerSingleProps, DatePickerRangeProps, DateRangeValue, DateDisplayFormat, DateTextOrder, } from '
|
|
4
|
+
export type { DatePickerProps, DatePickerBaseProps, DatePickerSingleProps, DatePickerRangeProps, DateRangeValue, DateDisplayFormat, DateTextOrder, } from '../../core/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ButtonProps } from '
|
|
2
|
+
import type { ButtonProps } from '../../core/types';
|
|
3
3
|
export type DialogActionProps = Omit<ButtonProps, 'onClick' | 'loading' | 'children'>;
|
|
4
4
|
export interface DialogChoice extends DialogActionProps {
|
|
5
5
|
value: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PopoverPlacement } from '
|
|
2
|
+
import type { PopoverPlacement } from '../../core/logic';
|
|
3
3
|
import type { FloatingAnchor } from '../Popover/floatingPosition';
|
|
4
4
|
export interface DropdownMenuItem {
|
|
5
5
|
value: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { EditableTableMethods, EditableTableProps } from '
|
|
2
|
+
import type { EditableTableMethods, EditableTableProps } from '../../core/types';
|
|
3
3
|
declare const EditableTable: <T extends Record<string, any>>(props: EditableTableProps<T> & {
|
|
4
4
|
ref?: React.Ref<EditableTableMethods<T>>;
|
|
5
5
|
}) => React.ReactElement | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { EditableTableActionsProps } from '
|
|
2
|
+
import type { EditableTableActionsProps } from '../../core/types';
|
|
3
3
|
declare const _default: React.MemoExoticComponent<(<T extends Record<string, any>>({ currentRowIndex, currentRowData, tableData, totalRows, fixedRows, copyConfig, onAddRow, onCopyRow, onDeleteRow, addIcon, copyIcon, deleteIcon, }: EditableTableActionsProps<T>) => React.JSX.Element)>;
|
|
4
4
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ChangeContext, ColumnAlign, EditableTableColumnDefinition, FieldComponentRegistry, FieldTooltipProps, ResolvedColumnLayout } from '
|
|
3
|
-
import type { ResolvedRule } from '
|
|
2
|
+
import type { ChangeContext, ColumnAlign, EditableTableColumnDefinition, FieldComponentRegistry, FieldTooltipProps, ResolvedColumnLayout } from '../../core/types';
|
|
3
|
+
import type { ResolvedRule } from '../../core/logic';
|
|
4
4
|
export declare function frameProps(layout: ResolvedColumnLayout): {
|
|
5
5
|
'data-align': ColumnAlign;
|
|
6
6
|
'data-sticky'?: 'left' | 'right';
|
|
7
7
|
'data-sticky-edge'?: '';
|
|
8
8
|
style: React.CSSProperties;
|
|
9
9
|
};
|
|
10
|
-
export declare function formatReadOnlyValue(value: unknown): string;
|
|
10
|
+
export declare function formatReadOnlyValue(value: unknown, locale?: string): string;
|
|
11
11
|
export interface EditableTableCellProps<T> {
|
|
12
12
|
rule?: ResolvedRule;
|
|
13
13
|
landed?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { EditableTableRowProps, ResolvedColumnLayout } from '
|
|
3
|
-
import type { EditableTableCellActions } from '
|
|
4
|
-
import type { ResolvedRule } from '
|
|
2
|
+
import type { EditableTableRowProps, ResolvedColumnLayout } from '../../core/types';
|
|
3
|
+
import type { EditableTableCellActions } from '../../core/types';
|
|
4
|
+
import type { ResolvedRule } from '../../core/logic';
|
|
5
5
|
export interface EditableTableRowRenderProps<T> extends EditableTableRowProps<T> {
|
|
6
6
|
columnLayouts: ResolvedColumnLayout[];
|
|
7
7
|
getCellRule?: (rowIndex: number, cellindex: number) => ResolvedRule;
|