@canvas-components/react-components 0.3.13 → 0.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3719 -3401
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -1
- package/dist/index.d.ts +52 -1
- package/dist/index.js +3715 -3402
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -440,6 +440,57 @@ interface ReactModalProps {
|
|
|
440
440
|
*/
|
|
441
441
|
declare function ReactModal(props: ReactModalProps): react.ReactPortal | null;
|
|
442
442
|
|
|
443
|
+
interface ReactScrollbarSettings {
|
|
444
|
+
mode?: "scrollbar" | "button";
|
|
445
|
+
visible?: boolean;
|
|
446
|
+
thickness?: number;
|
|
447
|
+
horizontal?: ReactScrollbarAxisSettings | false;
|
|
448
|
+
vertical?: ReactScrollbarAxisSettings | false;
|
|
449
|
+
thumbColor?: string;
|
|
450
|
+
trackColor?: string;
|
|
451
|
+
buttonColor?: string;
|
|
452
|
+
buttonBackgroundColor?: string;
|
|
453
|
+
buttonHoverBackgroundColor?: string;
|
|
454
|
+
buttonPressedBackgroundColor?: string;
|
|
455
|
+
thumbRadius?: number;
|
|
456
|
+
maxScrollSpeed?: number;
|
|
457
|
+
}
|
|
458
|
+
interface ReactScrollbarAxisSettings {
|
|
459
|
+
mode?: "scrollbar" | "button";
|
|
460
|
+
visible?: boolean;
|
|
461
|
+
width?: number;
|
|
462
|
+
height?: number;
|
|
463
|
+
maxScrollSpeed?: number;
|
|
464
|
+
buttonBackgroundColor?: string;
|
|
465
|
+
buttonHoverBackgroundColor?: string;
|
|
466
|
+
buttonPressedBackgroundColor?: string;
|
|
467
|
+
}
|
|
468
|
+
/** 同时供列表与透视表使用的滚动条配置弹窗。 */
|
|
469
|
+
declare function ReactScrollbarSettingsDialog(props: {
|
|
470
|
+
value?: ReactScrollbarSettings;
|
|
471
|
+
onConfirm: (value: ReactScrollbarSettings) => void;
|
|
472
|
+
onClose: () => void;
|
|
473
|
+
}): react.JSX.Element;
|
|
474
|
+
/** 输入从 1 开始的行列序号,空项保持当前滚动位置。 */
|
|
475
|
+
declare function ReactScrollbarPositionDialog(props: {
|
|
476
|
+
rowCount: number;
|
|
477
|
+
columnCount: number;
|
|
478
|
+
onConfirm: (row?: number, column?: number) => void;
|
|
479
|
+
onClose: () => void;
|
|
480
|
+
}): react.JSX.Element;
|
|
481
|
+
|
|
482
|
+
/** 跨 ListTable 与 PivotTable 共享的滚动条设置快照。 */
|
|
483
|
+
interface SharedScrollbarSettings {
|
|
484
|
+
shared: boolean;
|
|
485
|
+
value?: ReactScrollbarSettings;
|
|
486
|
+
}
|
|
487
|
+
/** 获取当前全局滚动条配置。 */
|
|
488
|
+
declare function getSharedScrollbarSettings(): SharedScrollbarSettings;
|
|
489
|
+
/** 订阅全局滚动条配置变更。 */
|
|
490
|
+
declare function subscribeSharedScrollbarSettings(listener: () => void): () => void;
|
|
491
|
+
/** 更新全局滚动条配置并持久化。 */
|
|
492
|
+
declare function setSharedScrollbarSettings(next: SharedScrollbarSettings): void;
|
|
493
|
+
|
|
443
494
|
interface ReactInputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue" | "onChange" | "min" | "max" | "step" | "prefix"> {
|
|
444
495
|
/**
|
|
445
496
|
* 当前值。
|
|
@@ -1357,4 +1408,4 @@ declare function useReactContentScale(): ReactContentScaleValue;
|
|
|
1357
1408
|
*/
|
|
1358
1409
|
declare const REACT_COMPONENT_PREFIX = "canvas-react";
|
|
1359
1410
|
|
|
1360
|
-
export { type CascaderCheckedStrategy, type CascaderPath, REACT_COMPONENT_PREFIX, ReactAutoComplete, type ReactAutoCompleteProps, ReactButton, type ReactButtonProps, ReactCascader, type ReactCascaderChangeInfo, type ReactCascaderOption, type ReactCascaderProps, ReactCheckbox, type ReactCheckboxProps, type ReactCheckboxRef, ReactCol, type ReactColProps, ReactColorPicker, type ReactColorPickerProps, ReactContentScaleProvider, type ReactContentScaleValue, ReactDatePicker, type ReactDatePickerProps, ReactDateRangePicker, type ReactDateRangePickerProps, ReactDateTimePicker, type ReactDateTimePickerProps, ReactDateTimeRangePicker, type ReactDateTimeRangePickerProps, type ReactFilterConditionOperator, ReactFilterPanel, type ReactFilterPanelCondition, type ReactFilterPanelOption, type ReactFilterPanelRequest, type ReactFilterPanelTexts, type ReactFilterPanelValue, ReactFlex, type ReactFlexProps, ReactForm, type ReactFormInstance, type ReactFormItemProps, type ReactFormProps, type ReactFormRule, type ReactFormRuleConfig, type ReactFormValues, ReactImagePreview, type ReactImagePreviewProps, ReactInput, ReactInputNumber, type ReactInputNumberProps, type ReactInputProps, ReactInputRange, type ReactInputRangeProps, type ReactInputRangeValue, type ReactMessageType, ReactModal, type ReactModalButtonProps, type ReactModalCancelEvent, type ReactModalProps, ReactMonthPicker, type ReactMonthPickerProps, ReactNumberInput, type ReactNumberInputProps, ReactPagination, type ReactPaginationProps, type ReactPaginationStyles, ReactPopconfirm, type ReactPopconfirmButtonProps, type ReactPopconfirmPlacement, type ReactPopconfirmProps, ReactPopup, type ReactPopupProps, ReactQuarterPicker, type ReactQuarterPickerProps, ReactRadio, type ReactRadioGroupProps, type ReactRadioProps, type ReactResizablePanel, type ReactResizablePanelSizes, ReactResizablePanels, type ReactResizablePanelsDirection, type ReactResizablePanelsProps, type ReactResizablePanelsResizeInfo, ReactRow, type ReactRowProps, ReactSelect, type ReactSelectChangeInfo, type ReactSelectFilterOption, type ReactSelectOption, type ReactSelectProps, ReactTextArea, type ReactTextAreaProps, ReactTimePicker, type ReactTimePickerProps, ReactTimeRangePicker, type ReactTimeRangePickerProps, ReactTooltip, type ReactTooltipProps, ReactTransition, type ReactTransitionDuration, type ReactTransitionOptions, type ReactTransitionPhase, type ReactTransitionProps, type ReactTransitionState, ReactTreeSelect, type ReactTreeSelectChangeInfo, type TreeSelectNode as ReactTreeSelectNode, type ReactTreeSelectProps, type ReactTreeSelectValue, ReactVirtualList, type ReactVirtualListProps, type ReactVirtualListRef, ReactYearPicker, type ReactYearPickerProps, reactMessage, resolveResizablePanelSizes, useReactContentScale, useReactForm, useReactFormWatch, useReactTransition };
|
|
1411
|
+
export { type CascaderCheckedStrategy, type CascaderPath, REACT_COMPONENT_PREFIX, ReactAutoComplete, type ReactAutoCompleteProps, ReactButton, type ReactButtonProps, ReactCascader, type ReactCascaderChangeInfo, type ReactCascaderOption, type ReactCascaderProps, ReactCheckbox, type ReactCheckboxProps, type ReactCheckboxRef, ReactCol, type ReactColProps, ReactColorPicker, type ReactColorPickerProps, ReactContentScaleProvider, type ReactContentScaleValue, ReactDatePicker, type ReactDatePickerProps, ReactDateRangePicker, type ReactDateRangePickerProps, ReactDateTimePicker, type ReactDateTimePickerProps, ReactDateTimeRangePicker, type ReactDateTimeRangePickerProps, type ReactFilterConditionOperator, ReactFilterPanel, type ReactFilterPanelCondition, type ReactFilterPanelOption, type ReactFilterPanelRequest, type ReactFilterPanelTexts, type ReactFilterPanelValue, ReactFlex, type ReactFlexProps, ReactForm, type ReactFormInstance, type ReactFormItemProps, type ReactFormProps, type ReactFormRule, type ReactFormRuleConfig, type ReactFormValues, ReactImagePreview, type ReactImagePreviewProps, ReactInput, ReactInputNumber, type ReactInputNumberProps, type ReactInputProps, ReactInputRange, type ReactInputRangeProps, type ReactInputRangeValue, type ReactMessageType, ReactModal, type ReactModalButtonProps, type ReactModalCancelEvent, type ReactModalProps, ReactMonthPicker, type ReactMonthPickerProps, ReactNumberInput, type ReactNumberInputProps, ReactPagination, type ReactPaginationProps, type ReactPaginationStyles, ReactPopconfirm, type ReactPopconfirmButtonProps, type ReactPopconfirmPlacement, type ReactPopconfirmProps, ReactPopup, type ReactPopupProps, ReactQuarterPicker, type ReactQuarterPickerProps, ReactRadio, type ReactRadioGroupProps, type ReactRadioProps, type ReactResizablePanel, type ReactResizablePanelSizes, ReactResizablePanels, type ReactResizablePanelsDirection, type ReactResizablePanelsProps, type ReactResizablePanelsResizeInfo, ReactRow, type ReactRowProps, ReactScrollbarPositionDialog, type ReactScrollbarSettings, ReactScrollbarSettingsDialog, ReactSelect, type ReactSelectChangeInfo, type ReactSelectFilterOption, type ReactSelectOption, type ReactSelectProps, ReactTextArea, type ReactTextAreaProps, ReactTimePicker, type ReactTimePickerProps, ReactTimeRangePicker, type ReactTimeRangePickerProps, ReactTooltip, type ReactTooltipProps, ReactTransition, type ReactTransitionDuration, type ReactTransitionOptions, type ReactTransitionPhase, type ReactTransitionProps, type ReactTransitionState, ReactTreeSelect, type ReactTreeSelectChangeInfo, type TreeSelectNode as ReactTreeSelectNode, type ReactTreeSelectProps, type ReactTreeSelectValue, ReactVirtualList, type ReactVirtualListProps, type ReactVirtualListRef, ReactYearPicker, type ReactYearPickerProps, type SharedScrollbarSettings, getSharedScrollbarSettings, reactMessage, resolveResizablePanelSizes, setSharedScrollbarSettings, subscribeSharedScrollbarSettings, useReactContentScale, useReactForm, useReactFormWatch, useReactTransition };
|
package/dist/index.d.ts
CHANGED
|
@@ -440,6 +440,57 @@ interface ReactModalProps {
|
|
|
440
440
|
*/
|
|
441
441
|
declare function ReactModal(props: ReactModalProps): react.ReactPortal | null;
|
|
442
442
|
|
|
443
|
+
interface ReactScrollbarSettings {
|
|
444
|
+
mode?: "scrollbar" | "button";
|
|
445
|
+
visible?: boolean;
|
|
446
|
+
thickness?: number;
|
|
447
|
+
horizontal?: ReactScrollbarAxisSettings | false;
|
|
448
|
+
vertical?: ReactScrollbarAxisSettings | false;
|
|
449
|
+
thumbColor?: string;
|
|
450
|
+
trackColor?: string;
|
|
451
|
+
buttonColor?: string;
|
|
452
|
+
buttonBackgroundColor?: string;
|
|
453
|
+
buttonHoverBackgroundColor?: string;
|
|
454
|
+
buttonPressedBackgroundColor?: string;
|
|
455
|
+
thumbRadius?: number;
|
|
456
|
+
maxScrollSpeed?: number;
|
|
457
|
+
}
|
|
458
|
+
interface ReactScrollbarAxisSettings {
|
|
459
|
+
mode?: "scrollbar" | "button";
|
|
460
|
+
visible?: boolean;
|
|
461
|
+
width?: number;
|
|
462
|
+
height?: number;
|
|
463
|
+
maxScrollSpeed?: number;
|
|
464
|
+
buttonBackgroundColor?: string;
|
|
465
|
+
buttonHoverBackgroundColor?: string;
|
|
466
|
+
buttonPressedBackgroundColor?: string;
|
|
467
|
+
}
|
|
468
|
+
/** 同时供列表与透视表使用的滚动条配置弹窗。 */
|
|
469
|
+
declare function ReactScrollbarSettingsDialog(props: {
|
|
470
|
+
value?: ReactScrollbarSettings;
|
|
471
|
+
onConfirm: (value: ReactScrollbarSettings) => void;
|
|
472
|
+
onClose: () => void;
|
|
473
|
+
}): react.JSX.Element;
|
|
474
|
+
/** 输入从 1 开始的行列序号,空项保持当前滚动位置。 */
|
|
475
|
+
declare function ReactScrollbarPositionDialog(props: {
|
|
476
|
+
rowCount: number;
|
|
477
|
+
columnCount: number;
|
|
478
|
+
onConfirm: (row?: number, column?: number) => void;
|
|
479
|
+
onClose: () => void;
|
|
480
|
+
}): react.JSX.Element;
|
|
481
|
+
|
|
482
|
+
/** 跨 ListTable 与 PivotTable 共享的滚动条设置快照。 */
|
|
483
|
+
interface SharedScrollbarSettings {
|
|
484
|
+
shared: boolean;
|
|
485
|
+
value?: ReactScrollbarSettings;
|
|
486
|
+
}
|
|
487
|
+
/** 获取当前全局滚动条配置。 */
|
|
488
|
+
declare function getSharedScrollbarSettings(): SharedScrollbarSettings;
|
|
489
|
+
/** 订阅全局滚动条配置变更。 */
|
|
490
|
+
declare function subscribeSharedScrollbarSettings(listener: () => void): () => void;
|
|
491
|
+
/** 更新全局滚动条配置并持久化。 */
|
|
492
|
+
declare function setSharedScrollbarSettings(next: SharedScrollbarSettings): void;
|
|
493
|
+
|
|
443
494
|
interface ReactInputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue" | "onChange" | "min" | "max" | "step" | "prefix"> {
|
|
444
495
|
/**
|
|
445
496
|
* 当前值。
|
|
@@ -1357,4 +1408,4 @@ declare function useReactContentScale(): ReactContentScaleValue;
|
|
|
1357
1408
|
*/
|
|
1358
1409
|
declare const REACT_COMPONENT_PREFIX = "canvas-react";
|
|
1359
1410
|
|
|
1360
|
-
export { type CascaderCheckedStrategy, type CascaderPath, REACT_COMPONENT_PREFIX, ReactAutoComplete, type ReactAutoCompleteProps, ReactButton, type ReactButtonProps, ReactCascader, type ReactCascaderChangeInfo, type ReactCascaderOption, type ReactCascaderProps, ReactCheckbox, type ReactCheckboxProps, type ReactCheckboxRef, ReactCol, type ReactColProps, ReactColorPicker, type ReactColorPickerProps, ReactContentScaleProvider, type ReactContentScaleValue, ReactDatePicker, type ReactDatePickerProps, ReactDateRangePicker, type ReactDateRangePickerProps, ReactDateTimePicker, type ReactDateTimePickerProps, ReactDateTimeRangePicker, type ReactDateTimeRangePickerProps, type ReactFilterConditionOperator, ReactFilterPanel, type ReactFilterPanelCondition, type ReactFilterPanelOption, type ReactFilterPanelRequest, type ReactFilterPanelTexts, type ReactFilterPanelValue, ReactFlex, type ReactFlexProps, ReactForm, type ReactFormInstance, type ReactFormItemProps, type ReactFormProps, type ReactFormRule, type ReactFormRuleConfig, type ReactFormValues, ReactImagePreview, type ReactImagePreviewProps, ReactInput, ReactInputNumber, type ReactInputNumberProps, type ReactInputProps, ReactInputRange, type ReactInputRangeProps, type ReactInputRangeValue, type ReactMessageType, ReactModal, type ReactModalButtonProps, type ReactModalCancelEvent, type ReactModalProps, ReactMonthPicker, type ReactMonthPickerProps, ReactNumberInput, type ReactNumberInputProps, ReactPagination, type ReactPaginationProps, type ReactPaginationStyles, ReactPopconfirm, type ReactPopconfirmButtonProps, type ReactPopconfirmPlacement, type ReactPopconfirmProps, ReactPopup, type ReactPopupProps, ReactQuarterPicker, type ReactQuarterPickerProps, ReactRadio, type ReactRadioGroupProps, type ReactRadioProps, type ReactResizablePanel, type ReactResizablePanelSizes, ReactResizablePanels, type ReactResizablePanelsDirection, type ReactResizablePanelsProps, type ReactResizablePanelsResizeInfo, ReactRow, type ReactRowProps, ReactSelect, type ReactSelectChangeInfo, type ReactSelectFilterOption, type ReactSelectOption, type ReactSelectProps, ReactTextArea, type ReactTextAreaProps, ReactTimePicker, type ReactTimePickerProps, ReactTimeRangePicker, type ReactTimeRangePickerProps, ReactTooltip, type ReactTooltipProps, ReactTransition, type ReactTransitionDuration, type ReactTransitionOptions, type ReactTransitionPhase, type ReactTransitionProps, type ReactTransitionState, ReactTreeSelect, type ReactTreeSelectChangeInfo, type TreeSelectNode as ReactTreeSelectNode, type ReactTreeSelectProps, type ReactTreeSelectValue, ReactVirtualList, type ReactVirtualListProps, type ReactVirtualListRef, ReactYearPicker, type ReactYearPickerProps, reactMessage, resolveResizablePanelSizes, useReactContentScale, useReactForm, useReactFormWatch, useReactTransition };
|
|
1411
|
+
export { type CascaderCheckedStrategy, type CascaderPath, REACT_COMPONENT_PREFIX, ReactAutoComplete, type ReactAutoCompleteProps, ReactButton, type ReactButtonProps, ReactCascader, type ReactCascaderChangeInfo, type ReactCascaderOption, type ReactCascaderProps, ReactCheckbox, type ReactCheckboxProps, type ReactCheckboxRef, ReactCol, type ReactColProps, ReactColorPicker, type ReactColorPickerProps, ReactContentScaleProvider, type ReactContentScaleValue, ReactDatePicker, type ReactDatePickerProps, ReactDateRangePicker, type ReactDateRangePickerProps, ReactDateTimePicker, type ReactDateTimePickerProps, ReactDateTimeRangePicker, type ReactDateTimeRangePickerProps, type ReactFilterConditionOperator, ReactFilterPanel, type ReactFilterPanelCondition, type ReactFilterPanelOption, type ReactFilterPanelRequest, type ReactFilterPanelTexts, type ReactFilterPanelValue, ReactFlex, type ReactFlexProps, ReactForm, type ReactFormInstance, type ReactFormItemProps, type ReactFormProps, type ReactFormRule, type ReactFormRuleConfig, type ReactFormValues, ReactImagePreview, type ReactImagePreviewProps, ReactInput, ReactInputNumber, type ReactInputNumberProps, type ReactInputProps, ReactInputRange, type ReactInputRangeProps, type ReactInputRangeValue, type ReactMessageType, ReactModal, type ReactModalButtonProps, type ReactModalCancelEvent, type ReactModalProps, ReactMonthPicker, type ReactMonthPickerProps, ReactNumberInput, type ReactNumberInputProps, ReactPagination, type ReactPaginationProps, type ReactPaginationStyles, ReactPopconfirm, type ReactPopconfirmButtonProps, type ReactPopconfirmPlacement, type ReactPopconfirmProps, ReactPopup, type ReactPopupProps, ReactQuarterPicker, type ReactQuarterPickerProps, ReactRadio, type ReactRadioGroupProps, type ReactRadioProps, type ReactResizablePanel, type ReactResizablePanelSizes, ReactResizablePanels, type ReactResizablePanelsDirection, type ReactResizablePanelsProps, type ReactResizablePanelsResizeInfo, ReactRow, type ReactRowProps, ReactScrollbarPositionDialog, type ReactScrollbarSettings, ReactScrollbarSettingsDialog, ReactSelect, type ReactSelectChangeInfo, type ReactSelectFilterOption, type ReactSelectOption, type ReactSelectProps, ReactTextArea, type ReactTextAreaProps, ReactTimePicker, type ReactTimePickerProps, ReactTimeRangePicker, type ReactTimeRangePickerProps, ReactTooltip, type ReactTooltipProps, ReactTransition, type ReactTransitionDuration, type ReactTransitionOptions, type ReactTransitionPhase, type ReactTransitionProps, type ReactTransitionState, ReactTreeSelect, type ReactTreeSelectChangeInfo, type TreeSelectNode as ReactTreeSelectNode, type ReactTreeSelectProps, type ReactTreeSelectValue, ReactVirtualList, type ReactVirtualListProps, type ReactVirtualListRef, ReactYearPicker, type ReactYearPickerProps, type SharedScrollbarSettings, getSharedScrollbarSettings, reactMessage, resolveResizablePanelSizes, setSharedScrollbarSettings, subscribeSharedScrollbarSettings, useReactContentScale, useReactForm, useReactFormWatch, useReactTransition };
|