@dcs-tech/ui 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -6
- package/dist/ChartImageMenu-HILSfn5A.js +1115 -0
- package/dist/ChartView-Cehrcr05.js +1703 -0
- package/dist/SummaryChart-y27q_BBN.js +29 -0
- package/dist/SummaryImage-DDNEEu_K.js +18 -0
- package/dist/SummarySeeAll-0dX-_LFe.js +101 -0
- package/dist/defaults-DL745PK1.js +708 -0
- package/dist/exportContext-CdpsOzE8.js +235 -0
- package/dist/exportEngine-DL-jEXFU.js +890 -0
- package/dist/geometry-CG2nOEnw.js +1796 -0
- package/dist/index.js +23238 -15993
- package/dist/scrollArea-CkPGDYH2.js +210 -0
- package/dist/style.css +1 -1
- package/dist/summaryChartData-Djo73zb8.js +81 -0
- package/dist/types/components/AppBar/AppBar.d.ts +16 -0
- package/dist/types/components/ArrowKeyFocus/useArrowKeyFocus.d.ts +10 -0
- package/dist/types/components/Avatar/Avatar.d.ts +22 -0
- package/dist/types/{shared-web-ui/src → components}/Badge/Badge.d.ts +0 -11
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/types/{shared-web-ui/src → components}/Button/Button.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Button/ButtonGroup.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Button/ButtonGroupContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Button/index.d.ts +1 -1
- package/dist/types/components/Card/Card.d.ts +17 -0
- package/dist/types/components/Charts/AnchoredMenu.d.ts +17 -0
- package/dist/types/components/Charts/BarList.d.ts +12 -0
- package/dist/types/components/Charts/CalendarHeatmap.d.ts +17 -0
- package/dist/types/components/Charts/Chart.d.ts +20 -0
- package/dist/types/components/Charts/ChartIcon.d.ts +5 -0
- package/dist/types/components/Charts/ChartImageMenu.d.ts +4 -0
- package/dist/types/components/Charts/ChartTable.d.ts +8 -0
- package/dist/types/components/Charts/ChartTooltip.d.ts +58 -0
- package/dist/types/components/Charts/ChartView.d.ts +15 -0
- package/dist/types/components/Charts/ColumnChart.d.ts +15 -0
- package/dist/types/components/Charts/Donut.d.ts +14 -0
- package/dist/types/components/Charts/Funnel.d.ts +10 -0
- package/dist/types/components/Charts/Gauge.d.ts +15 -0
- package/dist/types/components/Charts/Legend.d.ts +6 -0
- package/dist/types/components/Charts/LineChart.d.ts +13 -0
- package/dist/types/components/Charts/NumberTrend.d.ts +21 -0
- package/dist/types/components/Charts/Progress.d.ts +12 -0
- package/dist/types/components/Charts/StackedBar.d.ts +11 -0
- package/dist/types/components/Charts/Treemap.d.ts +12 -0
- package/dist/types/components/Charts/chartData.d.ts +69 -0
- package/dist/types/components/Charts/chartImage.d.ts +121 -0
- package/dist/types/components/Charts/geometry.d.ts +180 -0
- package/dist/types/components/Charts/index.d.ts +32 -0
- package/dist/types/components/Charts/labels.d.ts +46 -0
- package/dist/types/components/Charts/menuPlacement.d.ts +25 -0
- package/dist/types/components/Charts/palette.d.ts +81 -0
- package/dist/types/components/Charts/parts.d.ts +25 -0
- package/dist/types/components/Charts/pointer.d.ts +41 -0
- package/dist/types/components/Charts/types.d.ts +51 -0
- package/dist/types/components/Charts/ui.d.ts +3 -0
- package/dist/types/components/Charts/useBoxSize.d.ts +6 -0
- package/dist/types/components/Charts/useLegendFit.d.ts +1 -0
- package/dist/types/components/Charts/useUiScale.d.ts +1 -0
- package/dist/types/{shared-web-ui/src → components}/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Checkbox/CheckboxGroupContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Checkbox/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/ChipInput/ChipInput.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/ChipInput/index.d.ts +2 -2
- package/dist/types/{shared-web-ui/src → components}/ChipInput/useChipSuggestions.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Collapsible/Collapsible.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Collapsible/CollapsibleContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Collapsible/CollapsibleItem.d.ts +1 -3
- package/dist/types/{shared-web-ui/src → components}/Collapsible/index.d.ts +1 -1
- package/dist/types/components/ColorSchemeSelect/ColorSchemeSelect.d.ts +11 -0
- package/dist/types/components/CommandPalette/CommandPalette.d.ts +25 -0
- package/dist/types/components/DataTable/DataTable.d.ts +16 -0
- package/dist/types/components/DataTable/DataTable.storyData.d.ts +23 -0
- package/dist/types/components/DataTable/DisplayPopover.d.ts +22 -0
- package/dist/types/components/DataTable/HeaderMenu.d.ts +31 -0
- package/dist/types/components/DataTable/ManageModal.d.ts +31 -0
- package/dist/types/components/DataTable/PressButton.d.ts +2 -0
- package/dist/types/components/DataTable/SingleRowView.d.ts +9 -0
- package/dist/types/components/DataTable/SortModal.d.ts +16 -0
- package/dist/types/components/DataTable/StatusRow.d.ts +49 -0
- package/dist/types/components/DataTable/TableColumnModal.d.ts +18 -0
- package/dist/types/components/DataTable/TableControls.d.ts +48 -0
- package/dist/types/components/DataTable/TablePagination.d.ts +38 -0
- package/dist/types/components/DataTable/TableScrollStrip.d.ts +2 -0
- package/dist/types/components/DataTable/TableToolbar.d.ts +69 -0
- package/dist/types/components/DataTable/TableView.d.ts +61 -0
- package/dist/types/components/DataTable/bulk/BulkConfirmDialog.d.ts +13 -0
- package/dist/types/components/DataTable/bulk/TableToast.d.ts +13 -0
- package/dist/types/components/DataTable/bulk/bulkActions.d.ts +23 -0
- package/dist/types/components/DataTable/cards/CardFieldsEditor.d.ts +16 -0
- package/dist/types/components/DataTable/cards/CardView.d.ts +50 -0
- package/dist/types/components/DataTable/cards/cardFields.d.ts +32 -0
- package/dist/types/components/DataTable/cards/rowParts.d.ts +38 -0
- package/dist/types/components/DataTable/data/useServerData.d.ts +28 -0
- package/dist/types/components/DataTable/defaults.d.ts +18 -0
- package/dist/types/components/DataTable/detail/BuiltInDetail.d.ts +10 -0
- package/dist/types/components/DataTable/detail/DetailHost.d.ts +13 -0
- package/dist/types/components/DataTable/export/ExportPopover.d.ts +18 -0
- package/dist/types/components/DataTable/export/ExportPreviewModal.d.ts +11 -0
- package/dist/types/components/DataTable/export/ExportSettingsModal.d.ts +31 -0
- package/dist/types/components/DataTable/export/ExportTemplateCards.d.ts +19 -0
- package/dist/types/components/DataTable/export/exportContext.d.ts +10 -0
- package/dist/types/components/DataTable/export/exportEngine.d.ts +77 -0
- package/dist/types/components/DataTable/export/exportRows.d.ts +10 -0
- package/dist/types/components/DataTable/export/templateDisplay.d.ts +7 -0
- package/dist/types/components/DataTable/export/templateOptions.d.ts +6 -0
- package/dist/types/components/DataTable/export/useTableExport.d.ts +53 -0
- package/dist/types/components/DataTable/filters/ColumnFilterPopover.d.ts +14 -0
- package/dist/types/components/DataTable/filters/FilterChips.d.ts +9 -0
- package/dist/types/components/DataTable/filters/FilterConditionRow.d.ts +11 -0
- package/dist/types/components/DataTable/filters/FilterGroup.d.ts +12 -0
- package/dist/types/components/DataTable/filters/FilterModal.d.ts +14 -0
- package/dist/types/components/DataTable/filters/FilterRow.d.ts +20 -0
- package/dist/types/components/DataTable/filters/columnFilterModel.d.ts +29 -0
- package/dist/types/components/DataTable/filters/filterEngine.d.ts +16 -0
- package/dist/types/components/DataTable/filters/filterRowModel.d.ts +28 -0
- package/dist/types/components/DataTable/filters/quickFilterMatch.d.ts +3 -0
- package/dist/types/components/DataTable/grouping/GroupUi.d.ts +36 -0
- package/dist/types/components/DataTable/grouping/groupModel.d.ts +82 -0
- package/dist/types/components/DataTable/grouping/useGrouping.d.ts +39 -0
- package/dist/types/components/DataTable/host.d.ts +14 -0
- package/dist/types/components/DataTable/index.d.ts +18 -0
- package/dist/types/components/DataTable/keyboard/ShortcutsDialog.d.ts +14 -0
- package/dist/types/components/DataTable/keyboard/shortcuts.d.ts +22 -0
- package/dist/types/components/DataTable/keyboard/useGridKeyboard.d.ts +48 -0
- package/dist/types/components/DataTable/labels.d.ts +618 -0
- package/dist/types/components/DataTable/layout/LayoutSwitcher.d.ts +9 -0
- package/dist/types/components/DataTable/layout/layouts.d.ts +20 -0
- package/dist/types/components/DataTable/layout/scrollArea.d.ts +2 -0
- package/dist/types/components/DataTable/layout/useFillHeight.d.ts +11 -0
- package/dist/types/components/DataTable/menu/RowMenu.d.ts +56 -0
- package/dist/types/components/DataTable/menu/buildRowMenu.d.ts +35 -0
- package/dist/types/components/DataTable/menu/clipboard.d.ts +4 -0
- package/dist/types/components/DataTable/menu/layers.d.ts +1 -0
- package/dist/types/components/DataTable/menu/valueFilter.d.ts +15 -0
- package/dist/types/components/DataTable/motion/useRowMotion.d.ts +32 -0
- package/dist/types/components/DataTable/persistence/adapters.d.ts +6 -0
- package/dist/types/components/DataTable/persistence/reconcile.d.ts +64 -0
- package/dist/types/components/DataTable/persistence/useColumnPersistence.d.ts +51 -0
- package/dist/types/components/DataTable/persistence/useManagePrefs.d.ts +23 -0
- package/dist/types/components/DataTable/persistence/useOrphanPrefs.d.ts +3 -0
- package/dist/types/components/DataTable/pinning.d.ts +10 -0
- package/dist/types/components/DataTable/rows/PressRow.d.ts +7 -0
- package/dist/types/components/DataTable/rows/RowActions.d.ts +15 -0
- package/dist/types/components/DataTable/rows/rowPress.d.ts +35 -0
- package/dist/types/components/DataTable/sharing/Sharing.d.ts +21 -0
- package/dist/types/components/DataTable/split/SplitView.d.ts +29 -0
- package/dist/types/components/DataTable/summary/ManageSummaryCards.d.ts +18 -0
- package/dist/types/components/DataTable/summary/SummaryChart.d.ts +11 -0
- package/dist/types/components/DataTable/summary/SummaryControls.d.ts +33 -0
- package/dist/types/components/DataTable/summary/SummaryImage.d.ts +12 -0
- package/dist/types/components/DataTable/summary/SummarySeeAll.d.ts +17 -0
- package/dist/types/components/DataTable/summary/TableSummary.d.ts +34 -0
- package/dist/types/components/DataTable/summary/summaryCatalogue.d.ts +64 -0
- package/dist/types/components/DataTable/summary/summaryChartData.d.ts +9 -0
- package/dist/types/components/DataTable/summary/summaryModel.d.ts +152 -0
- package/dist/types/components/DataTable/summary/summaryWidth.d.ts +22 -0
- package/dist/types/components/DataTable/summary/useTableSummary.d.ts +18 -0
- package/dist/types/components/DataTable/types.d.ts +1145 -0
- package/dist/types/components/DataTable/ui-local/AutoHeight.d.ts +9 -0
- package/dist/types/components/DataTable/ui-local/DateRangePicker.d.ts +16 -0
- package/dist/types/components/DataTable/ui-local/DragAndDropList/DragAndDropList.d.ts +4 -0
- package/dist/types/components/DataTable/ui-local/DragAndDropList/index.d.ts +3 -0
- package/dist/types/components/DataTable/ui-local/DragAndDropList/types.d.ts +70 -0
- package/dist/types/components/DataTable/ui-local/ReactModal.d.ts +20 -0
- package/dist/types/components/DataTable/ui-local/scrollLock.d.ts +1 -0
- package/dist/types/components/DataTable/ui.d.ts +13 -0
- package/dist/types/components/DataTable/useDataChangeTracker.d.ts +11 -0
- package/dist/types/components/DataTable/useTable.d.ts +12 -0
- package/dist/types/components/DataTable/vendor/columnOrder.d.ts +1 -0
- package/dist/types/components/DataTable/vendor/diff.d.ts +5 -0
- package/dist/types/components/DataTable/vendor/fileActions.d.ts +19 -0
- package/dist/types/components/DataTable/vendor/index.d.ts +3 -0
- package/dist/types/components/DataTable/virtual/useVirtualLines.d.ts +27 -0
- package/dist/types/components/DatePicker/Calendar.d.ts +14 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +5 -0
- package/dist/types/components/DatePicker/TimeField.d.ts +16 -0
- package/dist/types/components/DatePicker/index.d.ts +4 -0
- package/dist/types/components/DatePicker/useOneMonthPane.d.ts +2 -0
- package/dist/types/components/Dialog/Dialog.d.ts +56 -0
- package/dist/types/components/Dialog/DialogHost.d.ts +44 -0
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +49 -0
- package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTable.d.ts +1 -6
- package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTableActions.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/EditableTable/EditableTableCell.d.ts +2 -20
- package/dist/types/components/EditableTable/EditableTableRow.d.ts +14 -0
- package/dist/types/components/EditableTable/EditableTableSummary.d.ts +11 -0
- package/dist/types/{shared-web-ui/src → components}/EditableTable/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/EditableTable/useEditableTable.d.ts +3 -3
- package/dist/types/components/EditableTable/useRowAnimation.d.ts +12 -0
- package/dist/types/components/FieldContext/FieldContext.d.ts +3 -0
- package/dist/types/components/FieldContext/FieldProvider.d.ts +4 -0
- package/dist/types/{shared-web-ui/src → components}/FieldContext/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/FieldContext/useField.d.ts +2 -29
- package/dist/types/components/FieldContext/useFieldSurface.d.ts +34 -0
- package/dist/types/{shared-web-ui/src → components}/FieldContext/useFormKeyboard.d.ts +1 -4
- package/dist/types/{shared-web-ui/src → components}/FieldWrapper/FieldWrapper.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/FieldWrapper/index.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/Field.d.ts +1 -1
- package/dist/types/components/Fields/FieldButton.d.ts +17 -0
- package/dist/types/{shared-web-ui/src → components}/Fields/Fields.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldBlur.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldChange.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldCondition.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldDisabled.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldRender.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldSelect.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldValidation.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/hooks/useFieldValue.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Fields/index.d.ts +1 -1
- package/dist/types/components/Floating/index.d.ts +3 -0
- package/dist/types/components/Floating/layers.d.ts +4 -0
- package/dist/types/components/Floating/scrollLock.d.ts +2 -0
- package/dist/types/components/Floating/useFloatingLayer.d.ts +20 -0
- package/dist/types/{shared-web-ui/src → components}/Form/Form.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Form/index.d.ts +1 -1
- package/dist/types/components/Image/ImagePicker.d.ts +23 -0
- package/dist/types/components/Image/ImageStrip.d.ts +13 -0
- package/dist/types/components/Image/ImageViewer.d.ts +16 -0
- package/dist/types/components/Image/index.d.ts +8 -0
- package/dist/types/components/Image/prepareImage.d.ts +19 -0
- package/dist/types/{shared-web-ui/src → components}/Input/Input.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Input/index.d.ts +1 -1
- package/dist/types/components/Popover/Popover.d.ts +25 -0
- package/dist/types/components/Popover/floatingPosition.d.ts +17 -0
- package/dist/types/components/Press/index.d.ts +2 -0
- package/dist/types/components/Press/usePress.d.ts +9 -0
- package/dist/types/{shared-web-ui/src → components}/Radio/Radio.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Radio/RadioGroup.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Radio/RadioGroupContext.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Radio/index.d.ts +1 -1
- package/dist/types/components/Scroll/ScrollRule.d.ts +2 -0
- package/dist/types/components/Scroll/ScrollStrip.d.ts +9 -0
- package/dist/types/components/Scroll/index.d.ts +4 -0
- package/dist/types/components/Scroll/labels.d.ts +5 -0
- package/dist/types/components/Scroll/scrollActivity.d.ts +14 -0
- package/dist/types/components/Scroll/ui.d.ts +1 -0
- package/dist/types/{shared-web-ui/src → components}/Select/Select.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Select/index.d.ts +1 -1
- package/dist/types/components/Select/useSelect.d.ts +2 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +24 -0
- package/dist/types/components/Skeleton/Skeleton.d.ts +18 -0
- package/dist/types/components/Stepper/Stepper.d.ts +17 -0
- package/dist/types/components/Stepper/index.d.ts +2 -0
- package/dist/types/{shared-web-ui/src → components}/Suggest/Suggest.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Suggest/SuggestionList.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Suggest/index.d.ts +2 -2
- package/dist/types/{shared-web-ui/src → components}/Suggest/searchFilters.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Suggest/useSuggest.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Switch/Switch.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Switch/index.d.ts +1 -1
- package/dist/types/components/Tabs/Tabs.d.ts +36 -0
- package/dist/types/components/Toast/ToastHost.d.ts +8 -0
- package/dist/types/components/Toast/ToastItem.d.ts +10 -0
- package/dist/types/{shared-web-ui/src → components}/Toast/toast.types.d.ts +0 -13
- package/dist/types/components/Tooltip/Tooltip.d.ts +9 -0
- package/dist/types/components/Tooltip/useTooltip.d.ts +15 -0
- package/dist/types/{shared-web-ui/src → components}/Typography/Typography.d.ts +1 -1
- package/dist/types/{shared-web-ui/src → components}/Typography/index.d.ts +1 -1
- package/dist/types/components/UIProvider/UIPortalContext.d.ts +2 -0
- package/dist/types/components/UIProvider/UIProvider.d.ts +13 -0
- package/dist/types/components/UIProvider/UIThemeContext.d.ts +9 -0
- package/dist/types/core/hooks/index.d.ts +3 -0
- package/dist/types/core/hooks/useDebounced.d.ts +7 -0
- package/dist/types/core/hooks/usePresence.d.ts +5 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/button.logic.d.ts +1 -1
- package/dist/types/core/logic/cellRules.logic.d.ts +32 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/chipinput.logic.d.ts +1 -13
- package/dist/types/{shared-logic/src/ui → core/logic}/collapsible.logic.d.ts +1 -8
- package/dist/types/{shared-logic/src/ui → core/logic}/colorScheme.d.ts +0 -14
- package/dist/types/core/logic/columnOrder.logic.d.ts +1 -0
- package/dist/types/core/logic/datePicker.logic.d.ts +136 -0
- package/dist/types/core/logic/displayOrder.logic.d.ts +4 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/editableTable.logic.d.ts +5 -28
- package/dist/types/core/logic/fieldControl.logic.d.ts +12 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/fieldWrapper.logic.d.ts +1 -1
- package/dist/types/{shared-logic/src/ui → core/logic}/fields.logic.d.ts +1 -1
- package/dist/types/{shared-logic/src/ui → core/logic}/form.logic.d.ts +0 -8
- package/dist/types/core/logic/index.d.ts +33 -0
- package/dist/types/core/logic/keyboard.logic.d.ts +12 -0
- package/dist/types/core/logic/motion.logic.d.ts +1 -0
- package/dist/types/core/logic/navigation.logic.d.ts +6 -0
- package/dist/types/core/logic/popover.logic.d.ts +59 -0
- package/dist/types/core/logic/popupList.logic.d.ts +19 -0
- package/dist/types/core/logic/press.logic.d.ts +14 -0
- package/dist/types/core/logic/quickAddGrid.logic.d.ts +183 -0
- package/dist/types/core/logic/select.logic.d.ts +17 -0
- package/dist/types/core/logic/stepper.logic.d.ts +6 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/suggest.logic.d.ts +1 -1
- package/dist/types/core/logic/tableLayout.logic.d.ts +13 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/tableSummary.logic.d.ts +1 -20
- package/dist/types/core/logic/timeField.logic.d.ts +26 -0
- package/dist/types/core/logic/tooltip.logic.d.ts +11 -0
- package/dist/types/{shared-logic/src/ui → core/logic}/typography.logic.d.ts +1 -1
- package/dist/types/core/logic/uiScale.logic.d.ts +1 -0
- package/dist/types/core/logic/useMergeRefs.d.ts +2 -0
- package/dist/types/{shared-types/src/ui → core/types}/button.types.d.ts +1 -11
- package/dist/types/{shared-types/src/ui → core/types}/checkbox.types.d.ts +0 -4
- package/dist/types/{shared-types/src/ui → core/types}/chipinput.types.d.ts +0 -10
- package/dist/types/{shared-types/src/ui → core/types}/collapsible.types.d.ts +0 -18
- package/dist/types/core/types/common.types.d.ts +3 -0
- package/dist/types/core/types/control.types.d.ts +36 -0
- package/dist/types/core/types/datePicker.types.d.ts +46 -0
- package/dist/types/{shared-types/src/ui → core/types}/editableTable.types.d.ts +0 -79
- package/dist/types/core/types/field.types.d.ts +80 -0
- package/dist/types/{shared-types/src/ui → core/types}/fieldWrapper.types.d.ts +0 -10
- package/dist/types/{shared-types/src/ui → core/types}/fields.types.d.ts +0 -45
- package/dist/types/{shared-types/src/ui → core/types}/form.types.d.ts +0 -30
- package/dist/types/core/types/index.d.ts +22 -0
- package/dist/types/{shared-types/src/ui → core/types}/input.types.d.ts +0 -4
- package/dist/types/core/types/keyboard.types.d.ts +48 -0
- package/dist/types/core/types/navigation.types.d.ts +13 -0
- package/dist/types/{shared-types/src/ui → core/types}/radio.types.d.ts +0 -6
- package/dist/types/{shared-types/src/ui → core/types}/select.types.d.ts +0 -41
- package/dist/types/{shared-types/src/ui → core/types}/suggest.types.d.ts +1 -10
- package/dist/types/{shared-types/src/ui → core/types}/switch.types.d.ts +0 -4
- package/dist/types/{shared-types/src/ui → core/types}/table.types.d.ts +0 -59
- package/dist/types/core/types/tooltip.types.d.ts +43 -0
- package/dist/types/{shared-types/src/ui → core/types}/typography.types.d.ts +0 -4
- package/dist/types/index.d.ts +86 -0
- package/package.json +27 -26
- package/dist/types/published/dcs-ui/src/index.d.ts +0 -32
- package/dist/types/published/dcs-ui/src/publicLogic.d.ts +0 -35
- package/dist/types/published/dcs-ui/src/publicTypes.d.ts +0 -14
- package/dist/types/shared-logic/src/report/aggregate.d.ts +0 -29
- package/dist/types/shared-logic/src/report/canvas.d.ts +0 -106
- package/dist/types/shared-logic/src/report/conditions.d.ts +0 -18
- package/dist/types/shared-logic/src/report/constants.d.ts +0 -46
- package/dist/types/shared-logic/src/report/dataset.d.ts +0 -49
- package/dist/types/shared-logic/src/report/edit.d.ts +0 -188
- package/dist/types/shared-logic/src/report/fields.d.ts +0 -80
- package/dist/types/shared-logic/src/report/format.d.ts +0 -27
- package/dist/types/shared-logic/src/report/fromColumns.d.ts +0 -61
- package/dist/types/shared-logic/src/report/index.d.ts +0 -19
- package/dist/types/shared-logic/src/report/layout.d.ts +0 -85
- package/dist/types/shared-logic/src/report/metrics.d.ts +0 -62
- package/dist/types/shared-logic/src/report/migrate.d.ts +0 -77
- package/dist/types/shared-logic/src/report/paginate.d.ts +0 -40
- package/dist/types/shared-logic/src/report/renderers/html.d.ts +0 -29
- package/dist/types/shared-logic/src/report/renderers/pdfmake.d.ts +0 -45
- package/dist/types/shared-logic/src/report/resolve.d.ts +0 -40
- package/dist/types/shared-logic/src/report/scope.d.ts +0 -52
- package/dist/types/shared-logic/src/report/storage.d.ts +0 -112
- package/dist/types/shared-logic/src/report/validate.d.ts +0 -28
- package/dist/types/shared-logic/src/ui/cellRules.logic.d.ts +0 -67
- package/dist/types/shared-logic/src/ui/columnOrder.logic.d.ts +0 -12
- package/dist/types/shared-logic/src/ui/fieldControl.logic.d.ts +0 -24
- package/dist/types/shared-logic/src/ui/index.d.ts +0 -55
- package/dist/types/shared-logic/src/ui/keyboard.logic.d.ts +0 -72
- package/dist/types/shared-logic/src/ui/navigation.logic.d.ts +0 -30
- package/dist/types/shared-logic/src/ui/popover.logic.d.ts +0 -57
- package/dist/types/shared-logic/src/ui/popupList.logic.d.ts +0 -54
- package/dist/types/shared-logic/src/ui/select.logic.d.ts +0 -31
- package/dist/types/shared-logic/src/ui/tableLayout.logic.d.ts +0 -47
- package/dist/types/shared-logic/src/ui/tooltip.logic.d.ts +0 -35
- package/dist/types/shared-logic/src/ui/useMergeRefs.d.ts +0 -10
- package/dist/types/shared-types/src/report/bands.d.ts +0 -32
- package/dist/types/shared-types/src/report/blocks.d.ts +0 -181
- package/dist/types/shared-types/src/report/conditions.d.ts +0 -24
- package/dist/types/shared-types/src/report/dataset.d.ts +0 -106
- package/dist/types/shared-types/src/report/document.d.ts +0 -201
- package/dist/types/shared-types/src/report/index.d.ts +0 -9
- package/dist/types/shared-types/src/report/primitives.d.ts +0 -109
- package/dist/types/shared-types/src/report/registry.d.ts +0 -85
- package/dist/types/shared-types/src/report/storage.d.ts +0 -41
- package/dist/types/shared-types/src/report/template.d.ts +0 -92
- package/dist/types/shared-types/src/ui/common.types.d.ts +0 -14
- package/dist/types/shared-types/src/ui/control.types.d.ts +0 -133
- package/dist/types/shared-types/src/ui/field.types.d.ts +0 -200
- package/dist/types/shared-types/src/ui/index.d.ts +0 -37
- package/dist/types/shared-types/src/ui/keyboard.types.d.ts +0 -155
- package/dist/types/shared-types/src/ui/navigation.types.d.ts +0 -35
- package/dist/types/shared-types/src/ui/tooltip.types.d.ts +0 -68
- package/dist/types/shared-web-ui/src/AppBar/AppBar.d.ts +0 -25
- package/dist/types/shared-web-ui/src/ArrowKeyFocus/useArrowKeyFocus.d.ts +0 -29
- package/dist/types/shared-web-ui/src/Avatar/Avatar.d.ts +0 -36
- package/dist/types/shared-web-ui/src/Breadcrumbs/Breadcrumbs.d.ts +0 -70
- package/dist/types/shared-web-ui/src/Card/Card.d.ts +0 -33
- package/dist/types/shared-web-ui/src/ColorSchemeSelect/ColorSchemeSelect.d.ts +0 -26
- package/dist/types/shared-web-ui/src/CommandPalette/CommandPalette.d.ts +0 -52
- package/dist/types/shared-web-ui/src/Dialog/Dialog.d.ts +0 -101
- package/dist/types/shared-web-ui/src/Dialog/DialogHost.d.ts +0 -80
- package/dist/types/shared-web-ui/src/DropdownMenu/DropdownMenu.d.ts +0 -49
- package/dist/types/shared-web-ui/src/EditableTable/EditableTableRow.d.ts +0 -25
- package/dist/types/shared-web-ui/src/EditableTable/EditableTableSummary.d.ts +0 -22
- package/dist/types/shared-web-ui/src/EditableTable/useRowAnimation.d.ts +0 -44
- package/dist/types/shared-web-ui/src/FieldContext/FieldContext.d.ts +0 -18
- package/dist/types/shared-web-ui/src/FieldContext/FieldProvider.d.ts +0 -13
- package/dist/types/shared-web-ui/src/FieldContext/useFieldSurface.d.ts +0 -57
- package/dist/types/shared-web-ui/src/Fields/FieldButton.d.ts +0 -32
- package/dist/types/shared-web-ui/src/Popover/Popover.d.ts +0 -44
- package/dist/types/shared-web-ui/src/ReportDesigner/AlignedRowsEditor.d.ts +0 -4
- package/dist/types/shared-web-ui/src/ReportDesigner/BandList.d.ts +0 -26
- package/dist/types/shared-web-ui/src/ReportDesigner/BlockEditor.d.ts +0 -44
- package/dist/types/shared-web-ui/src/ReportDesigner/ColumnEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/ConditionEditor.d.ts +0 -7
- package/dist/types/shared-web-ui/src/ReportDesigner/FieldPicker.d.ts +0 -25
- package/dist/types/shared-web-ui/src/ReportDesigner/FieldSelect.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/FormatEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/Inspector.d.ts +0 -14
- package/dist/types/shared-web-ui/src/ReportDesigner/OptionsEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/ReportDesigner.d.ts +0 -34
- package/dist/types/shared-web-ui/src/ReportDesigner/StyleEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/TableEditor.d.ts +0 -10
- package/dist/types/shared-web-ui/src/ReportDesigner/WatermarkEditor.d.ts +0 -2
- package/dist/types/shared-web-ui/src/ReportDesigner/chipSources.d.ts +0 -6
- package/dist/types/shared-web-ui/src/ReportDesigner/icons.d.ts +0 -21
- package/dist/types/shared-web-ui/src/ReportDesigner/index.d.ts +0 -16
- package/dist/types/shared-web-ui/src/ReportDesigner/labels.d.ts +0 -34
- package/dist/types/shared-web-ui/src/ReportDesigner/parts.d.ts +0 -63
- package/dist/types/shared-web-ui/src/ReportDesigner/types.d.ts +0 -106
- package/dist/types/shared-web-ui/src/ReportPreview/ReportPreview.d.ts +0 -44
- package/dist/types/shared-web-ui/src/ReportPreview/index.d.ts +0 -1
- package/dist/types/shared-web-ui/src/Select/useSelect.d.ts +0 -2
- package/dist/types/shared-web-ui/src/Sidebar/Sidebar.d.ts +0 -55
- package/dist/types/shared-web-ui/src/Skeleton/Skeleton.d.ts +0 -33
- package/dist/types/shared-web-ui/src/Tabs/Tabs.d.ts +0 -79
- package/dist/types/shared-web-ui/src/Toast/ToastHost.d.ts +0 -22
- package/dist/types/shared-web-ui/src/Toast/ToastItem.d.ts +0 -19
- package/dist/types/shared-web-ui/src/Tooltip/Tooltip.d.ts +0 -25
- package/dist/types/shared-web-ui/src/Tooltip/useTooltip.d.ts +0 -24
- package/dist/types/shared-web-ui/src/UIProvider/UIPortalContext.d.ts +0 -16
- package/dist/types/shared-web-ui/src/UIProvider/UIProvider.d.ts +0 -54
- package/dist/types/shared-web-ui/src/UIProvider/UIThemeContext.d.ts +0 -17
- package/dist/types/shared-web-ui/src/index.d.ts +0 -78
- /package/dist/types/{shared-web-ui/src → components}/AppBar/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Avatar/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Badge/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Breadcrumbs/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Card/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/ColorSchemeSelect/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/CommandPalette/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Dialog/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/DropdownMenu/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Popover/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Sidebar/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Skeleton/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Suggest/fuseSearch.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Tabs/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Toast/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/Tooltip/index.d.ts +0 -0
- /package/dist/types/{shared-web-ui/src → components}/UIProvider/index.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/checkbox.logic.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/input.logic.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/radio.logic.d.ts +0 -0
- /package/dist/types/{shared-logic/src/ui → core/logic}/switch.logic.d.ts +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { ControlLayout, ControlSize, ControlVariant, ToggleVariant } from '../../../published/dcs-ui/src/publicTypes';
|
|
2
|
-
export interface FieldSurfaceInput {
|
|
3
|
-
size?: ControlSize;
|
|
4
|
-
variant?: ControlVariant;
|
|
5
|
-
layout?: ControlLayout;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
readOnly?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface FieldSurfaceDefaults {
|
|
10
|
-
variant?: ControlVariant;
|
|
11
|
-
layout?: ControlLayout;
|
|
12
|
-
}
|
|
13
|
-
export interface ResolvedFieldSurface {
|
|
14
|
-
size: ControlSize;
|
|
15
|
-
variant: ControlVariant;
|
|
16
|
-
layout: ControlLayout;
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
readOnly: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Resolves the four settings every field shares, in one place and one order:
|
|
22
|
-
* **own prop → enclosing FieldContext → the component's default**.
|
|
23
|
-
*
|
|
24
|
-
* Each field used to bake this into its destructuring defaults, which is how
|
|
25
|
-
* the size scale drifted apart — nothing forced the six components to agree,
|
|
26
|
-
* and nothing let a container override them at all.
|
|
27
|
-
*
|
|
28
|
-
* `disabled` deliberately lets an explicit prop win over the container rather
|
|
29
|
-
* than OR-ing the two, so a single always-enabled control inside a disabled
|
|
30
|
-
* form is expressible. A container that means "everything, no exceptions"
|
|
31
|
-
* should render a `<fieldset disabled>`, which the DOM enforces.
|
|
32
|
-
*/
|
|
33
|
-
export declare function useFieldSurface(own: FieldSurfaceInput, defaults?: FieldSurfaceDefaults): ResolvedFieldSurface;
|
|
34
|
-
export interface ResolvedToggleSurface {
|
|
35
|
-
size: ControlSize;
|
|
36
|
-
variant: ToggleVariant;
|
|
37
|
-
disabled: boolean;
|
|
38
|
-
readOnly: boolean;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* The toggle counterpart. Checkbox and Radio take `ToggleVariant`, a subset —
|
|
42
|
-
* they have no text line, so `underlined` has no styling behind it and would
|
|
43
|
-
* render a box with neither border nor fill.
|
|
44
|
-
*
|
|
45
|
-
* An inherited `underlined` is therefore **dropped rather than passed through**,
|
|
46
|
-
* and the toggle keeps its own default. Without that, `<Form variant="underlined">`
|
|
47
|
-
* would silently erase every checkbox in the form — the exact bug §3 of the
|
|
48
|
-
* handoff doc records from over-unifying `variant` the first time.
|
|
49
|
-
*/
|
|
50
|
-
export declare function useToggleSurface(own: {
|
|
51
|
-
size?: ControlSize;
|
|
52
|
-
variant?: ToggleVariant;
|
|
53
|
-
disabled?: boolean;
|
|
54
|
-
readOnly?: boolean;
|
|
55
|
-
}, defaults?: {
|
|
56
|
-
variant?: ToggleVariant;
|
|
57
|
-
}): ResolvedToggleSurface;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ButtonCellContext, ButtonProps, EditableTableCellActions, FieldHandle } from '../../../published/dcs-ui/src/publicTypes';
|
|
3
|
-
/**
|
|
4
|
-
* A button that is a grid CELL.
|
|
5
|
-
*
|
|
6
|
-
* `Field` used to render a bare `<Button>` for a `button` column. It never went through
|
|
7
|
-
* `useField`, so it registered no cell handle — the arrows tried to land on it and the
|
|
8
|
-
* cursor simply stalled, because `focusCellInRow` had nothing to focus. It also had no way
|
|
9
|
-
* to know which row it was in: `fprop.onClick` received the DOM event and nothing else.
|
|
10
|
-
*
|
|
11
|
-
* Both are fixed here rather than in `Button`, which has no rest-prop spread and should not
|
|
12
|
-
* learn about tables: the wrapper owns the cell wiring, `Button` stays a button.
|
|
13
|
-
*
|
|
14
|
-
* The keyboard needs no special case — `widget: 'button'` resolves Space to the browser
|
|
15
|
-
* (which presses it) and leaves Enter with the grid's one meaning, walk on.
|
|
16
|
-
*/
|
|
17
|
-
export interface FieldButtonProps<T> {
|
|
18
|
-
fprop?: Partial<ButtonProps>;
|
|
19
|
-
/** The column-level handler, which takes the row/cell context instead of the event. */
|
|
20
|
-
onColumnClick?: (context: ButtonCellContext<T>) => void;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
value?: any;
|
|
23
|
-
rowIndex?: number;
|
|
24
|
-
cellindex?: number;
|
|
25
|
-
rowData?: any;
|
|
26
|
-
tableData?: any[];
|
|
27
|
-
actions?: EditableTableCellActions;
|
|
28
|
-
onCellFocus?: (rowIndex: number, cellindex: number) => void;
|
|
29
|
-
registerCellRef?: (rowIndex: number, cellindex: number, ref: FieldHandle | HTMLElement | null) => void;
|
|
30
|
-
}
|
|
31
|
-
export declare function FieldButton<T>({ fprop, onColumnClick, disabled, value, rowIndex, cellindex, rowData, tableData, actions, onCellFocus, registerCellRef, }: FieldButtonProps<T>): React.JSX.Element;
|
|
32
|
-
export default FieldButton;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type PopoverPlacement } from '../../../published/dcs-ui/src/publicLogic';
|
|
3
|
-
export interface PopoverProps {
|
|
4
|
-
/** Controlled. The caller owns open state — a primitive shouldn't guess. */
|
|
5
|
-
open: boolean;
|
|
6
|
-
/** The element to position against. */
|
|
7
|
-
anchorEl: HTMLElement | null;
|
|
8
|
-
/** Fired for outside click, Escape, or scroll-away. Not called on internal clicks. */
|
|
9
|
-
onClose?: () => void;
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
placement?: PopoverPlacement;
|
|
12
|
-
/** Gap between anchor and content, px. Default 4. */
|
|
13
|
-
offset?: number;
|
|
14
|
-
/** Force the content to the anchor's width — what a select-style dropdown wants. */
|
|
15
|
-
matchAnchorWidth?: boolean;
|
|
16
|
-
/** Default padding inside the surface. Off for menus and lists, which pad their own rows. */
|
|
17
|
-
padded?: boolean;
|
|
18
|
-
closeOnOutsideClick?: boolean;
|
|
19
|
-
closeOnEscape?: boolean;
|
|
20
|
-
/** Move focus into the popover when it opens. Default true. */
|
|
21
|
-
autoFocus?: boolean;
|
|
22
|
-
/** Return focus to the anchor on close. Default true. */
|
|
23
|
-
returnFocus?: boolean;
|
|
24
|
-
className?: string;
|
|
25
|
-
style?: React.CSSProperties;
|
|
26
|
-
/** Announced role. `dialog` for forms, `menu` when it holds menu items. */
|
|
27
|
-
role?: 'dialog' | 'menu' | 'listbox' | 'none';
|
|
28
|
-
'aria-label'?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* A positioned floating surface.
|
|
32
|
-
*
|
|
33
|
-
* Geometry comes from `computePopoverPosition` in shared-logic — the same function Select
|
|
34
|
-
* uses, so "below the trigger" means one thing across the library rather than two.
|
|
35
|
-
*
|
|
36
|
-
* Positioning runs in two passes: render hidden to measure the content, then place it. That is
|
|
37
|
-
* what makes `flip` and `shift` possible at all — neither can be decided without knowing how
|
|
38
|
-
* big the box is. The first pass is `visibility: hidden`, so nothing appears at the wrong
|
|
39
|
-
* coordinates in between.
|
|
40
|
-
*
|
|
41
|
-
* Portals into the `UIProvider` container when one is mounted, `document.body` otherwise.
|
|
42
|
-
*/
|
|
43
|
-
declare const Popover: React.FC<PopoverProps>;
|
|
44
|
-
export default Popover;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { TableBlock } from '../../../published/dcs-ui/src/publicTypes';
|
|
2
|
-
import type { AlignedRowsEditorProps } from './types';
|
|
3
|
-
export declare const columnName: (column: TableBlock["columns"][number]) => string;
|
|
4
|
-
export declare const AlignedRowsEditor: (props: AlignedRowsEditorProps) => import("react").JSX.Element;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { BandKind, ReportRegistry, ReportTemplate } from '../../../published/dcs-ui/src/publicTypes';
|
|
2
|
-
import type { DesignerSelection } from '../../../published/dcs-ui/src/publicLogic';
|
|
3
|
-
import { BAND_KINDS } from './labels';
|
|
4
|
-
export { BAND_KINDS };
|
|
5
|
-
/**
|
|
6
|
-
* Quoin — the document's structure, as a tree.
|
|
7
|
-
*
|
|
8
|
-
* The page and its print options first, then the bands in print order, each with its blocks, and
|
|
9
|
-
* each table with its columns. One row is selected at a time and the inspector edits exactly that
|
|
10
|
-
* row; a click on the page selects the same way. Anything carrying a condition says so in its hint,
|
|
11
|
-
* so nothing prints — or disappears — for a reason the tree does not show.
|
|
12
|
-
*/
|
|
13
|
-
export interface BandListProps {
|
|
14
|
-
template: ReportTemplate;
|
|
15
|
-
registry: ReportRegistry;
|
|
16
|
-
selection: DesignerSelection;
|
|
17
|
-
onSelect: (selection: DesignerSelection) => void;
|
|
18
|
-
onAddBand: (kind: BandKind) => void;
|
|
19
|
-
onAddBlock: (bandId: string, choice: string) => void;
|
|
20
|
-
onRemoveBand: (bandId: string) => void;
|
|
21
|
-
onMoveBand: (bandId: string, toIndex: number) => void;
|
|
22
|
-
onDuplicateBand: (bandId: string) => void;
|
|
23
|
-
onMoveBlock: (bandId: string, blockId: string, toIndex: number) => void;
|
|
24
|
-
onRemoveBlock: (bandId: string, blockId: string) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare const BandList: ({ template, registry, selection, onSelect, onAddBand, onAddBlock, onRemoveBand, onMoveBand, onDuplicateBand, onMoveBlock, onRemoveBlock, }: BandListProps) => import("react").JSX.Element;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import type { Band, ReportConditionGroup, ReportRegistry, ReportTemplate, TextBlock, TextCell, TextRow } from '../../../published/dcs-ui/src/publicTypes';
|
|
3
|
-
import { type DesignerSelection, type FieldPlace } from '../../../published/dcs-ui/src/publicLogic';
|
|
4
|
-
import type { BlockEditorProps, TemplateEdit } from './types';
|
|
5
|
-
/** A badge saying when something prints; a click opens the rules. */
|
|
6
|
-
export declare const ConditionToggle: ({ registry, template, value, onChange, what, }: {
|
|
7
|
-
registry: ReportRegistry;
|
|
8
|
-
template: ReportTemplate;
|
|
9
|
-
/** Where the guarded thing sits. Conditions read fields as conditions do, wherever that is. */
|
|
10
|
-
place?: FieldPlace;
|
|
11
|
-
value?: ReportConditionGroup;
|
|
12
|
-
onChange: (group: ReportConditionGroup | null) => void;
|
|
13
|
-
what?: string;
|
|
14
|
-
}) => import("react").JSX.Element;
|
|
15
|
-
/** Where a block's text is being written, so only fields that resolve there are offered. */
|
|
16
|
-
export declare const placeOf: (band: Band) => FieldPlace;
|
|
17
|
-
interface TextProps {
|
|
18
|
-
template: ReportTemplate;
|
|
19
|
-
registry: ReportRegistry;
|
|
20
|
-
edit: TemplateEdit;
|
|
21
|
-
bandId: string;
|
|
22
|
-
block: TextBlock;
|
|
23
|
-
place: FieldPlace;
|
|
24
|
-
/** Rows and columns are places to go to, not things to unfold in situ. */
|
|
25
|
-
onSelect: (selection: DesignerSelection) => void;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* One row of a text block: what it is, and the columns in it.
|
|
29
|
-
*
|
|
30
|
-
* Its columns are listed, not unfolded — opening one puts it in the panel on its own, with a path
|
|
31
|
-
* above it saying where it came from.
|
|
32
|
-
*/
|
|
33
|
-
export declare const TextRowPanel: (props: TextProps & {
|
|
34
|
-
row: TextRow;
|
|
35
|
-
index: number;
|
|
36
|
-
}) => import("react").JSX.Element;
|
|
37
|
-
/** One column of one row of a text block: how wide it is, and the lines it prints. */
|
|
38
|
-
export declare const TextCellPanel: (props: TextProps & {
|
|
39
|
-
row: TextRow;
|
|
40
|
-
cell: TextCell;
|
|
41
|
-
index: number;
|
|
42
|
-
}) => import("react").JSX.Element;
|
|
43
|
-
export declare const BlockEditor: ({ template, registry, edit, bandId, blockId, onSelect, panelTab, setPanelTab, }: BlockEditorProps) => ReactNode;
|
|
44
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ReportConditionGroup, ReportRegistry } from '../../../published/dcs-ui/src/publicTypes';
|
|
2
|
-
import type { ConditionEditorProps } from './types';
|
|
3
|
-
/** A field path in the author's words, without needing to know where it sits. */
|
|
4
|
-
export declare const fieldLabel: (path: string, registry: ReportRegistry) => string;
|
|
5
|
-
/** One sentence for a condition: "Only when Interstate (IGST) is Yes". Empty when there is none. */
|
|
6
|
-
export declare const conditionSummary: (group: ReportConditionGroup | undefined, registry: ReportRegistry) => string;
|
|
7
|
-
export declare const ConditionEditor: ({ registry, template, table, place, value, onChange, label, }: ConditionEditorProps) => import("react").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ReportRegistry, TableBlock, TemplateOption } from '../../../published/dcs-ui/src/publicTypes';
|
|
2
|
-
import { type FieldPlace } from '../../../published/dcs-ui/src/publicLogic';
|
|
3
|
-
/**
|
|
4
|
-
* Quoin — pick a field instead of typing one.
|
|
5
|
-
*
|
|
6
|
-
* A template author must never type `%party.mobil%` and discover it on a printed invoice, so the
|
|
7
|
-
* whole vocabulary is offered as a list. What appears depends on where it will be inserted — row
|
|
8
|
-
* fields only in a table, group values only where a table groups, totals only where they cover
|
|
9
|
-
* something — and `scopeFor` decides, the same rule the validator enforces on Save.
|
|
10
|
-
*/
|
|
11
|
-
export interface FieldPickerProps {
|
|
12
|
-
registry: ReportRegistry;
|
|
13
|
-
/** Where the field will be inserted. */
|
|
14
|
-
place: FieldPlace;
|
|
15
|
-
/** The table it sits in, when it does. */
|
|
16
|
-
table?: Pick<TableBlock, 'data'>;
|
|
17
|
-
/** The template's print options, offered as fields. */
|
|
18
|
-
templateOptions?: TemplateOption[];
|
|
19
|
-
/** Called with the text to insert, e.g. `%party.name%`. */
|
|
20
|
-
onInsert: (insert: string) => void;
|
|
21
|
-
/** Shown when nothing matches the search. */
|
|
22
|
-
emptyLabel?: string;
|
|
23
|
-
maxHeight?: number;
|
|
24
|
-
}
|
|
25
|
-
export declare const FieldPicker: ({ registry, place, table, templateOptions, onInsert, emptyLabel, maxHeight, }: FieldPickerProps) => import("react").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type DesignerSelection } from '../../../published/dcs-ui/src/publicLogic';
|
|
2
|
-
import type { EditorContext } from './types';
|
|
3
|
-
export type { TemplateEdit } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* Quoin — the inspector: settings for exactly what is selected, and nothing else.
|
|
6
|
-
*
|
|
7
|
-
* One selection, one panel — the page, the print options, a band, a block, or one column of a table.
|
|
8
|
-
* Every panel ends with what decides whether the thing prints at all, so a line that "never shows"
|
|
9
|
-
* always has its reason on screen.
|
|
10
|
-
*/
|
|
11
|
-
export interface InspectorProps extends EditorContext {
|
|
12
|
-
selection: DesignerSelection;
|
|
13
|
-
}
|
|
14
|
-
export declare const Inspector: ({ template, registry, selection, edit, onSelect, panelTab, setPanelTab }: InspectorProps) => import("react").JSX.Element;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import type { ReportContext, ReportRegistry, ReportTemplate } from '../../../published/dcs-ui/src/publicTypes';
|
|
3
|
-
/**
|
|
4
|
-
* Quoin — the designer.
|
|
5
|
-
*
|
|
6
|
-
* Laid out the way the Receipt Designer proved works: a toolbar across the top, then structure on
|
|
7
|
-
* the left, the real page in the middle and an inspector on the right, each scrolling on its own.
|
|
8
|
-
* One thing is selected at a time — from the tree or by clicking the page — it is outlined on the
|
|
9
|
-
* page, and the inspector edits exactly that.
|
|
10
|
-
*
|
|
11
|
-
* Every change goes through `applyTemplateEdit`, so undo is a property of the design rather than
|
|
12
|
-
* something each control has to remember, and the preview is the real engine — what is on screen
|
|
13
|
-
* is what will print.
|
|
14
|
-
*
|
|
15
|
-
* Save is gated on validation, not on every intermediate state being valid: a template is malformed
|
|
16
|
-
* for most of the time it is being edited, and refusing those states makes an editor unusable.
|
|
17
|
-
* Where a saved template goes is the app's business — this hands a valid one to `onSave`.
|
|
18
|
-
*/
|
|
19
|
-
export interface ReportDesignerProps {
|
|
20
|
-
/** Starting point — usually a shipped seed template. */
|
|
21
|
-
template: ReportTemplate;
|
|
22
|
-
registry: ReportRegistry;
|
|
23
|
-
/** Sample data. Real data makes the preview worth looking at; a stub makes it a wireframe. */
|
|
24
|
-
context: ReportContext;
|
|
25
|
-
/** Called with a valid template. Absent hides the Save button. */
|
|
26
|
-
onSave?: (template: ReportTemplate) => void;
|
|
27
|
-
/** Absent hides the Close button. */
|
|
28
|
-
onCancel?: () => void;
|
|
29
|
-
/** Reflects every change, for a caller that wants to persist a draft. */
|
|
30
|
-
onChange?: (template: ReportTemplate) => void;
|
|
31
|
-
/** Shown in the toolbar. Defaults to the template's name. */
|
|
32
|
-
title?: ReactNode;
|
|
33
|
-
}
|
|
34
|
-
export declare const ReportDesigner: ({ template: initial, registry, context, onSave, onCancel, onChange, title, }: ReportDesignerProps) => import("react").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { TableEditorProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* A table's settings, in three tabs.
|
|
4
|
-
*
|
|
5
|
-
* All seven sections at once came to nearly eight screens of scrolling for one table, which is not
|
|
6
|
-
* a form anyone reads — the question "where do the rows come from" sat six screens above the answer
|
|
7
|
-
* to "why is this column empty". They are grouped the way a report is built: the data first, then
|
|
8
|
-
* the columns that show it, then how the whole thing is laid out on the page.
|
|
9
|
-
*/
|
|
10
|
-
export declare const TableEditor: (props: TableEditorProps) => import("react").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ChipSources, ReportRegistry, TableBlock, TemplateOption } from '../../../published/dcs-ui/src/publicTypes';
|
|
2
|
-
import { type FieldOption, type FieldPlace } from '../../../published/dcs-ui/src/publicLogic';
|
|
3
|
-
export declare const chipSourcesFromFields: (fields: FieldOption[]) => ChipSources;
|
|
4
|
-
/** Chips for one place in a template — a column value, a group line, a closing row, a page band. */
|
|
5
|
-
export declare const chipSourcesFor: (registry: ReportRegistry, place: FieldPlace, table?: Pick<TableBlock, "data">, templateOptions?: TemplateOption[]) => ChipSources;
|
|
6
|
-
export declare const useChipSources: (registry: ReportRegistry, place: FieldPlace, table?: Pick<TableBlock, "data">, templateOptions?: TemplateOption[]) => ChipSources;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const UndoIcon: () => import("react").JSX.Element;
|
|
2
|
-
export declare const RedoIcon: () => import("react").JSX.Element;
|
|
3
|
-
export declare const UpIcon: () => import("react").JSX.Element;
|
|
4
|
-
export declare const DownIcon: () => import("react").JSX.Element;
|
|
5
|
-
export declare const LeftIcon: () => import("react").JSX.Element;
|
|
6
|
-
export declare const RightIcon: () => import("react").JSX.Element;
|
|
7
|
-
export declare const CopyIcon: () => import("react").JSX.Element;
|
|
8
|
-
export declare const TrashIcon: () => import("react").JSX.Element;
|
|
9
|
-
export declare const PlusIcon: () => import("react").JSX.Element;
|
|
10
|
-
export declare const MoreIcon: () => import("react").JSX.Element;
|
|
11
|
-
export declare const MinusIcon: () => import("react").JSX.Element;
|
|
12
|
-
export declare const BoldIcon: () => import("react").JSX.Element;
|
|
13
|
-
export declare const PageIcon: () => import("react").JSX.Element;
|
|
14
|
-
export declare const RowsIcon: () => import("react").JSX.Element;
|
|
15
|
-
export declare const GridIcon: () => import("react").JSX.Element;
|
|
16
|
-
export declare const BandIcon: () => import("react").JSX.Element;
|
|
17
|
-
export declare const TextIcon: () => import("react").JSX.Element;
|
|
18
|
-
export declare const SpaceIcon: () => import("react").JSX.Element;
|
|
19
|
-
export declare const LineIcon: () => import("react").JSX.Element;
|
|
20
|
-
export declare const ImageIcon: () => import("react").JSX.Element;
|
|
21
|
-
export declare const TableIcon: () => import("react").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { ReportDesigner, type ReportDesignerProps } from './ReportDesigner';
|
|
2
|
-
export { BandList, BAND_KINDS, type BandListProps } from './BandList';
|
|
3
|
-
export { Inspector, type InspectorProps } from './Inspector';
|
|
4
|
-
export { BlockEditor } from './BlockEditor';
|
|
5
|
-
export { TableEditor } from './TableEditor';
|
|
6
|
-
export { ColumnEditor } from './ColumnEditor';
|
|
7
|
-
export { AlignedRowsEditor } from './AlignedRowsEditor';
|
|
8
|
-
export { ConditionEditor, conditionSummary } from './ConditionEditor';
|
|
9
|
-
export { StyleEditor } from './StyleEditor';
|
|
10
|
-
export { FormatEditor } from './FormatEditor';
|
|
11
|
-
export { FieldSelect } from './FieldSelect';
|
|
12
|
-
export { FieldPicker } from './FieldPicker';
|
|
13
|
-
export { OptionsEditor } from './OptionsEditor';
|
|
14
|
-
export { WatermarkEditor } from './WatermarkEditor';
|
|
15
|
-
export { chipSourcesFor, chipSourcesFromFields, useChipSources } from './chipSources';
|
|
16
|
-
export type { TemplateEdit, EditorContext, TableAddress, BlockEditorProps, TableEditorProps, ColumnEditorProps, AlignedRowsEditorProps, ConditionEditorProps, StyleEditorProps, StyleControl, FormatEditorProps, FieldSelectProps, FieldSetProps, OptionsEditorProps, WatermarkEditorProps, } from './types';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { Band, BandKind, Block, ReportRegistry, TextCell, TextRow } from '../../../published/dcs-ui/src/publicTypes';
|
|
3
|
-
/**
|
|
4
|
-
* How the designer names things — always in the author's terms ("Top of every page"), never the
|
|
5
|
-
* model's (`pageHeader`).
|
|
6
|
-
*/
|
|
7
|
-
export declare const BAND_LABELS: Record<BandKind, string>;
|
|
8
|
-
export declare const BAND_HINTS: Record<BandKind, string>;
|
|
9
|
-
/** Offered in print order, so the menu reads the way the document does. */
|
|
10
|
-
export declare const BAND_KINDS: BandKind[];
|
|
11
|
-
export declare const bandTitle: (band: Band) => string;
|
|
12
|
-
export interface BlockChoice {
|
|
13
|
-
value: string;
|
|
14
|
-
label: string;
|
|
15
|
-
description: string;
|
|
16
|
-
make: () => Omit<Block, 'id'>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* What an author can add to a band. A table is offered once per dataset the app passes, so "Table
|
|
20
|
-
* of Items" and "Table of Tax summary" are one click each, already showing their first fields.
|
|
21
|
-
*/
|
|
22
|
-
export declare const blockChoices: (registry: ReportRegistry) => BlockChoice[];
|
|
23
|
-
export declare const blockTitle: (block: Block) => string;
|
|
24
|
-
/** One line saying what the block holds, for the tree and a band's contents. */
|
|
25
|
-
export declare const blockSummary: (block: Block, registry?: ReportRegistry) => string;
|
|
26
|
-
/** The text a row or a column of a text block prints, for naming it in a crumb or a list. */
|
|
27
|
-
export declare const textOfCell: (cell: TextCell) => string;
|
|
28
|
-
export declare const textRowTitle: (row: TextRow, index: number) => string;
|
|
29
|
-
export declare const textRowSummary: (row: TextRow) => string;
|
|
30
|
-
export declare const textCellTitle: (cell: TextCell, index: number) => string;
|
|
31
|
-
export declare const textCellSummary: (cell: TextCell) => string;
|
|
32
|
-
export declare const blockIcon: (block: Block) => ReactNode;
|
|
33
|
-
/** Joins class names, dropping the ones a condition switched off. */
|
|
34
|
-
export declare const cx: (...names: Array<string | false | null | undefined>) => string;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import type { FieldSetProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Quoin designer — the pieces every inspector panel is laid out with, so every panel reads alike:
|
|
5
|
-
* a sticky header naming what is selected, then titled sections.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Section: ({ title, action, children }: {
|
|
8
|
-
title: string;
|
|
9
|
-
action?: ReactNode;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}) => import("react").JSX.Element;
|
|
12
|
-
export declare const Header: ({ title, hint, back, path }: {
|
|
13
|
-
title: string;
|
|
14
|
-
hint?: string;
|
|
15
|
-
back?: ReactNode;
|
|
16
|
-
/** Where this thing sits, root first. Each crumb goes there. */
|
|
17
|
-
path?: ReactNode;
|
|
18
|
-
}) => import("react").JSX.Element;
|
|
19
|
-
export interface Crumb {
|
|
20
|
-
key: string;
|
|
21
|
-
label: string;
|
|
22
|
-
onClick: () => void;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Where you are, and the way back to anywhere above it.
|
|
26
|
-
*
|
|
27
|
-
* A single "back" button only answers "what is my parent", one step at a time, and says nothing
|
|
28
|
-
* about how deep you are — go band › table › column and the panel is titled "Column", with the
|
|
29
|
-
* band four levels up unnamed. Every crumb here is a destination, so no level is more than one
|
|
30
|
-
* click away from any other.
|
|
31
|
-
*/
|
|
32
|
-
export declare const Path: ({ crumbs }: {
|
|
33
|
-
crumbs: Crumb[];
|
|
34
|
-
}) => import("react").JSX.Element | null;
|
|
35
|
-
/** A short explanation under a control. */
|
|
36
|
-
export declare const Hint: ({ children }: {
|
|
37
|
-
children: ReactNode;
|
|
38
|
-
}) => import("react").JSX.Element;
|
|
39
|
-
/**
|
|
40
|
-
* One thing in a list, which opens when clicked.
|
|
41
|
-
*
|
|
42
|
-
* The designer had three of these written by hand — a band's contents, a table's columns, a text
|
|
43
|
-
* block's rows — each with its own markup, its own actions and its own idea of whether clicking it
|
|
44
|
-
* did anything. They are the same gesture: "this is one of several; open it". Opening a thing
|
|
45
|
-
* rather than expanding it in place is what keeps a panel one level deep.
|
|
46
|
-
*/
|
|
47
|
-
export declare const DrillRow: ({ icon, title, summary, badges, actions, onOpen }: {
|
|
48
|
-
icon?: ReactNode;
|
|
49
|
-
title: string;
|
|
50
|
-
summary?: string;
|
|
51
|
-
badges?: ReactNode;
|
|
52
|
-
actions?: ReactNode;
|
|
53
|
-
onOpen: () => void;
|
|
54
|
-
}) => import("react").JSX.Element;
|
|
55
|
-
/**
|
|
56
|
-
* A set of field keys, chosen.
|
|
57
|
-
*
|
|
58
|
-
* Drawn as what IS chosen, with the choosing behind a button. A checkbox per field is fine for six
|
|
59
|
-
* or eight; the invoice item data has sixty-one, which filled a third of the panel with boxes nobody
|
|
60
|
-
* ticks and buried the six that were ticked among them. Here the answer is always on screen and the
|
|
61
|
-
* question is one click away, searchable, and sorted into the registry's own groups.
|
|
62
|
-
*/
|
|
63
|
-
export declare const FieldSet: ({ label, hint, fields, selected, onChange }: FieldSetProps) => import("react").JSX.Element;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Quoin designer — the contracts its editors are built against.
|
|
3
|
-
*
|
|
4
|
-
* Every editor receives the template, the registry, and ONE way to change the template: `edit`,
|
|
5
|
-
* which runs a pure operation from `shared-logic/report/edit` through the designer's undo history.
|
|
6
|
-
* No editor keeps its own copy of the template or writes to it any other way — that is what makes
|
|
7
|
-
* undo, the live preview and the Save gate properties of the designer rather than of each control.
|
|
8
|
-
*/
|
|
9
|
-
import type { FieldType, PlaceholderFormat, ReportConditionGroup, ReportRegistry, ReportTemplate, TableBlock, TextStyle } from '../../../published/dcs-ui/src/publicTypes';
|
|
10
|
-
import type { AlignedRowsTarget, DesignerSelection, FieldPlace } from '../../../published/dcs-ui/src/publicLogic';
|
|
11
|
-
/** `coalesceKey` groups a run of keystrokes on one thing into a single undo step. */
|
|
12
|
-
export type TemplateEdit = (change: (t: ReportTemplate) => ReportTemplate, coalesceKey?: string) => void;
|
|
13
|
-
export interface EditorContext {
|
|
14
|
-
template: ReportTemplate;
|
|
15
|
-
registry: ReportRegistry;
|
|
16
|
-
edit: TemplateEdit;
|
|
17
|
-
onSelect: (selection: DesignerSelection) => void;
|
|
18
|
-
/**
|
|
19
|
-
* Which tab a panel was left on, kept OUTSIDE the panel.
|
|
20
|
-
*
|
|
21
|
-
* Panel state used to live in the panel, so returning from a column re-mounted the table editor
|
|
22
|
-
* on its first tab — you left from Columns and came back to Data, with the column you were
|
|
23
|
-
* editing off screen behind a tab you had to find again. Held here, leaving and coming back
|
|
24
|
-
* lands where you were.
|
|
25
|
-
*/
|
|
26
|
-
panelTab?: (key: string, fallback: string) => string;
|
|
27
|
-
setPanelTab?: (key: string, value: string) => void;
|
|
28
|
-
}
|
|
29
|
-
/** Where a table-scoped editor points. */
|
|
30
|
-
export interface TableAddress {
|
|
31
|
-
bandId: string;
|
|
32
|
-
blockId: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* "Print this only when …" — a list of rules matched all/any. Offers only the fields that resolve
|
|
36
|
-
* where the condition sits (`place`, and `table` when inside one). `null` removes the condition.
|
|
37
|
-
*/
|
|
38
|
-
export interface ConditionEditorProps {
|
|
39
|
-
registry: ReportRegistry;
|
|
40
|
-
template: ReportTemplate;
|
|
41
|
-
table?: Pick<TableBlock, 'data'>;
|
|
42
|
-
/** Defaults to `condition`. */
|
|
43
|
-
place?: FieldPlace;
|
|
44
|
-
value?: ReportConditionGroup;
|
|
45
|
-
onChange: (group: ReportConditionGroup | null) => void;
|
|
46
|
-
/** Heading shown above the rules. Defaults to "Show only when". */
|
|
47
|
-
label?: string;
|
|
48
|
-
}
|
|
49
|
-
export type StyleControl = 'bold' | 'italic' | 'underline' | 'fontSize' | 'textCase' | 'color' | 'fill';
|
|
50
|
-
/** A compact row of style toggles and inputs. `undefined` means "no style of its own". */
|
|
51
|
-
export interface StyleEditorProps {
|
|
52
|
-
value?: TextStyle;
|
|
53
|
-
onChange: (style: TextStyle | undefined) => void;
|
|
54
|
-
/** Defaults to bold, italic, underline, font size and text case. */
|
|
55
|
-
controls?: StyleControl[];
|
|
56
|
-
}
|
|
57
|
-
/** How a value prints: number decimals/grouping/sign, date pattern, prefix, suffix, empty text. */
|
|
58
|
-
export interface FormatEditorProps {
|
|
59
|
-
value?: PlaceholderFormat;
|
|
60
|
-
/** Picks the sensible first choice of format type. */
|
|
61
|
-
fieldType?: FieldType;
|
|
62
|
-
onChange: (format: PlaceholderFormat | undefined) => void;
|
|
63
|
-
}
|
|
64
|
-
/** One field of a row set, as a Select. */
|
|
65
|
-
export interface FieldSelectProps {
|
|
66
|
-
registry: ReportRegistry;
|
|
67
|
-
rowSet?: string;
|
|
68
|
-
value?: string;
|
|
69
|
-
onChange: (key: string | undefined) => void;
|
|
70
|
-
label?: string;
|
|
71
|
-
/** When set, a first option meaning "none", with this label. */
|
|
72
|
-
noneLabel?: string;
|
|
73
|
-
/** Narrow the fields offered. */
|
|
74
|
-
only?: 'aggregatable' | 'number';
|
|
75
|
-
}
|
|
76
|
-
/** Several fields of a row set, as checkboxes. */
|
|
77
|
-
export interface FieldSetProps {
|
|
78
|
-
label: string;
|
|
79
|
-
hint?: string;
|
|
80
|
-
/** `group` sorts the chooser into named blocks; the group `Internal` is hidden until asked for. */
|
|
81
|
-
fields: Array<{
|
|
82
|
-
key: string;
|
|
83
|
-
label: string;
|
|
84
|
-
group?: string;
|
|
85
|
-
}>;
|
|
86
|
-
selected: string[];
|
|
87
|
-
onChange: (keys: string[]) => void;
|
|
88
|
-
}
|
|
89
|
-
/** A table block: its data, heading, sections, closing rows, look, and the list of its columns. */
|
|
90
|
-
export interface TableEditorProps extends EditorContext, TableAddress {
|
|
91
|
-
}
|
|
92
|
-
/** One column of a table. */
|
|
93
|
-
export interface ColumnEditorProps extends EditorContext, TableAddress {
|
|
94
|
-
columnId: string;
|
|
95
|
-
}
|
|
96
|
-
/** Rows aligned to a table's columns: its closing rows, or its sections' heading or subtotal rows. */
|
|
97
|
-
export interface AlignedRowsEditorProps extends EditorContext, TableAddress {
|
|
98
|
-
target: AlignedRowsTarget;
|
|
99
|
-
}
|
|
100
|
-
/** Any block that is not a table: text, image, QR, barcode, line, space — plus the settings every block has. */
|
|
101
|
-
export interface BlockEditorProps extends EditorContext, TableAddress {
|
|
102
|
-
}
|
|
103
|
-
/** The template's print options. */
|
|
104
|
-
export type OptionsEditorProps = EditorContext;
|
|
105
|
-
/** The page watermark. */
|
|
106
|
-
export type WatermarkEditorProps = EditorContext;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { ReportContext, ReportRegistry, ReportTemplate } from '../../../published/dcs-ui/src/publicTypes';
|
|
2
|
-
import { type CanvasHighlight, type CanvasTarget, type ValidationIssue } from '../../../published/dcs-ui/src/publicLogic';
|
|
3
|
-
/**
|
|
4
|
-
* Quoin — a live preview of a template.
|
|
5
|
-
*
|
|
6
|
-
* This is the designer's canvas, built before the designer. It renders through the HTML renderer
|
|
7
|
-
* rather than pdfmake, which means no PDF toolchain in a shared package, redraw on every
|
|
8
|
-
* keystroke, and — because the engine owns the layout — the same page boxes, column widths and
|
|
9
|
-
* line breaks the PDF will have.
|
|
10
|
-
*
|
|
11
|
-
* It never throws. A template being edited is malformed most of the time; a preview that blanks
|
|
12
|
-
* or crashes while someone is halfway through typing a field name is useless. Errors are shown
|
|
13
|
-
* beside the pages, and whatever still renders is rendered.
|
|
14
|
-
*
|
|
15
|
-
* With `onTargetClick` it is also a surface to select from: the renderer tags every band and block
|
|
16
|
-
* with its id, a click reports the nearest ones, and `highlight` outlines the current selection.
|
|
17
|
-
* The outline is CSS added beside the pages rather than a change to the rendered HTML, so selecting
|
|
18
|
-
* something never re-runs layout.
|
|
19
|
-
*/
|
|
20
|
-
export interface ReportPreviewProps {
|
|
21
|
-
template: ReportTemplate;
|
|
22
|
-
context: ReportContext;
|
|
23
|
-
registry: ReportRegistry;
|
|
24
|
-
/** Page edges and shadow. Off when embedding for print. */
|
|
25
|
-
pageChrome?: boolean;
|
|
26
|
-
/** Hide the issue list even when there are issues — the designer may show them elsewhere. */
|
|
27
|
-
hideIssues?: boolean;
|
|
28
|
-
/** Scale the pages, so a full A4 fits a panel. 1 = actual size. */
|
|
29
|
-
zoom?: number;
|
|
30
|
-
className?: string;
|
|
31
|
-
/** Called after each render with what validation found and how many pages resulted. */
|
|
32
|
-
onRender?: (info: {
|
|
33
|
-
issues: ValidationIssue[];
|
|
34
|
-
pageCount: number;
|
|
35
|
-
error?: string;
|
|
36
|
-
}) => void;
|
|
37
|
-
/** Elements to outline as selected — see `canvasHighlight` in shared-logic. */
|
|
38
|
-
highlight?: CanvasHighlight[];
|
|
39
|
-
/** A click on the pages, as the ids of the band and block under the pointer. */
|
|
40
|
-
onTargetClick?: (target: CanvasTarget) => void;
|
|
41
|
-
}
|
|
42
|
-
export declare const ReportPreview: ({ template, context, registry, pageChrome, hideIssues, zoom, className, onRender, highlight, onTargetClick, }: ReportPreviewProps) => import("react").JSX.Element;
|
|
43
|
-
/** Whether a template is safe to save, for a designer's Save button. */
|
|
44
|
-
export declare const canSaveTemplate: (template: ReportTemplate, registry: ReportRegistry) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ReportPreview, canSaveTemplate, type ReportPreviewProps } from './ReportPreview';
|