@qn-pandora/pandora-component 4.4.5 → 4.4.6
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/es/components/AutoComplete/index.d.ts +3 -2
- package/es/components/Breadcrumb/index.d.ts +1 -1
- package/es/components/Button/index.d.ts +1 -1
- package/es/components/Card/RowExtra/index.d.ts +1 -1
- package/es/components/Card/SearchInput/index.d.ts +2 -2
- package/es/components/Card/index.d.ts +1 -1
- package/es/components/CheckTransformList/Item/index.d.ts +2 -2
- package/es/components/CheckTransformList/index.d.ts +2 -2
- package/es/components/Checkbox/index.d.ts +2 -2
- package/es/components/CheckboxList/index.d.ts +1 -1
- package/es/components/Collapse/Panel/index.d.ts +2 -2
- package/es/components/Collapse/index.d.ts +2 -2
- package/es/components/Collapse/index.js +10 -8
- package/es/components/CollapsiblePanel/PanelContent/index.d.ts +1 -1
- package/es/components/CollapsiblePanel/PanelContent/index.js +2 -2
- package/es/components/CollapsiblePanel/PanelHeader/index.d.ts +1 -1
- package/es/components/CollapsiblePanel/PanelHeader/index.js +1 -1
- package/es/components/CollapsiblePanel/index.d.ts +1 -1
- package/es/components/CollapsiblePanel/index.js +1 -1
- package/es/components/ConfigProvider/context.d.ts +1 -1
- package/es/components/ConfigProvider/index.d.ts +2 -2
- package/es/components/DateTimePicker/Base/index.d.ts +4 -4
- package/es/components/DateTimePicker/Base/index.js +7 -7
- package/es/components/DateTimePicker/Base/relativeTimePicker.d.ts +1 -1
- package/es/components/DateTimePicker/Base/relativeTimePicker.js +1 -1
- package/es/components/DateTimePicker/BaseMobile/Absolute/index.d.ts +1 -1
- package/es/components/DateTimePicker/BaseMobile/Absolute/index.js +4 -4
- package/es/components/DateTimePicker/BaseMobile/CustomButton/index.d.ts +2 -2
- package/es/components/DateTimePicker/BaseMobile/index.d.ts +2 -2
- package/es/components/DateTimePicker/BaseMobile/index.js +1 -1
- package/es/components/DateTimePicker/Collapse/Panel/index.d.ts +1 -1
- package/es/components/DateTimePicker/Collapse/index.d.ts +1 -1
- package/es/components/DateTimePicker/DisplayInput/index.d.ts +1 -1
- package/es/components/DateTimePicker/DisplayInput/index.js +1 -1
- package/es/components/DateTimePicker/index.d.ts +1 -1
- package/es/components/DateTimePicker/index.js +1 -1
- package/es/components/Drawer/index.d.ts +5 -5
- package/es/components/Drawer/index.js +3 -3
- package/es/components/FileResumable/constants.js +1 -0
- package/es/components/FileResumable/index.d.ts +2 -2
- package/es/components/Input/Password/index.d.ts +2 -2
- package/es/components/Input/TextArea/index.d.ts +2 -2
- package/es/components/Input/index.d.ts +4 -4
- package/es/components/InputNumberWithUnit/index.d.ts +1 -1
- package/es/components/KeyValuePair/index.d.ts +2 -2
- package/es/components/KeyValuePair/index.js +10 -3
- package/es/components/Measure/index.d.ts +2 -2
- package/es/components/Menu/Option.d.ts +1 -1
- package/es/components/Menu/index.d.ts +1 -1
- package/es/components/Modal/index.d.ts +1 -1
- package/es/components/Modal/index.js +1 -1
- package/es/components/NameExplainTooltip/index.d.ts +2 -2
- package/es/components/NameLimiter/index.d.ts +1 -1
- package/es/components/OptionList/InlineOptionList/index.d.ts +2 -2
- package/es/components/OptionList/OptionItem/index.d.ts +2 -2
- package/es/components/OptionList/PopoverOptionList/index.d.ts +1 -1
- package/es/components/OptionList/index.d.ts +1 -1
- package/es/components/RadioGroup/index.d.ts +1 -1
- package/es/components/RangeInput/index.d.ts +1 -1
- package/es/components/ReactSortable/index.d.ts +23 -0
- package/es/components/ReactSortable/index.js +171 -0
- package/es/components/RemarkName/index.d.ts +2 -2
- package/es/components/Selector/SelectorWidthChildren.d.ts +1 -1
- package/es/components/Selector/index.d.ts +1 -1
- package/es/components/Selector/index.js +1 -1
- package/es/components/SolidRadioGroup/index.d.ts +1 -1
- package/es/components/Spin/LoadingSVG.d.ts +2 -2
- package/es/components/Spin/index.d.ts +1 -1
- package/es/components/Steps/ControlButton/index.d.ts +1 -1
- package/es/components/Steps/Step/index.d.ts +2 -2
- package/es/components/Steps/index.d.ts +2 -2
- package/es/components/Style/index.d.ts +1 -1
- package/es/components/Style/index.js +1 -1
- package/es/components/Table/ColumnSetting/index.d.ts +1 -1
- package/es/components/Table/ColumnSetting/index.js +1 -1
- package/es/components/Table/ColumnTag/ColumnTag.d.ts +2 -2
- package/es/components/Table/ResizableTitle/index.d.ts +2 -2
- package/es/components/Table/constant.d.ts +7 -1
- package/es/components/Table/constant.js +6 -0
- package/es/components/Table/index.d.ts +6 -5
- package/es/components/Table/index.js +38 -11
- package/es/components/Tabs/index.d.ts +1 -1
- package/es/components/TagList/Tag/index.d.ts +1 -1
- package/es/components/TagList/TagSwitch/index.d.ts +1 -1
- package/es/components/TagList/index.d.ts +1 -1
- package/es/components/TagList/index.js +1 -1
- package/es/components/Timeline/TimelineItem/index.d.ts +1 -1
- package/es/components/Timeline/index.d.ts +1 -1
- package/es/components/Transfer/List/index.d.ts +2 -2
- package/es/components/Transfer/ListBody/index.d.ts +2 -2
- package/es/components/Transfer/constants.js +1 -0
- package/es/components/Transfer/index.d.ts +2 -2
- package/es/components/TreeSelector/index.d.ts +1 -1
- package/es/hoc/debounce.d.ts +1 -1
- package/es/hoc/modalPopupContainer.d.ts +1 -1
- package/es/index.css +4411 -4411
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/index.less +16 -16
- package/es/models/index.js +1 -0
- package/es/style/theme.less +4 -3
- package/lib/components/AutoComplete/index.d.ts +3 -2
- package/lib/components/AutoComplete/index.js +20 -7
- package/lib/components/Breadcrumb/index.d.ts +1 -1
- package/lib/components/Breadcrumb/index.js +14 -2
- package/lib/components/Button/index.d.ts +1 -1
- package/lib/components/Button/index.js +19 -7
- package/lib/components/Card/RowExtra/index.d.ts +1 -1
- package/lib/components/Card/RowExtra/index.js +14 -2
- package/lib/components/Card/SearchInput/index.d.ts +2 -2
- package/lib/components/Card/SearchInput/index.js +19 -7
- package/lib/components/Card/index.d.ts +1 -1
- package/lib/components/Card/index.js +19 -7
- package/lib/components/CheckTransformList/Item/index.d.ts +2 -2
- package/lib/components/CheckTransformList/Item/index.js +14 -2
- package/lib/components/CheckTransformList/index.d.ts +2 -2
- package/lib/components/CheckTransformList/index.js +19 -7
- package/lib/components/Checkbox/index.d.ts +2 -2
- package/lib/components/Checkbox/index.js +19 -7
- package/lib/components/CheckboxList/index.d.ts +1 -1
- package/lib/components/CheckboxList/index.js +14 -2
- package/lib/components/Collapse/Panel/index.d.ts +2 -2
- package/lib/components/Collapse/Panel/index.js +20 -7
- package/lib/components/Collapse/index.d.ts +2 -2
- package/lib/components/Collapse/index.js +30 -15
- package/lib/components/CollapsiblePanel/PanelContent/index.d.ts +1 -1
- package/lib/components/CollapsiblePanel/PanelContent/index.js +2 -2
- package/lib/components/CollapsiblePanel/PanelHeader/index.d.ts +1 -1
- package/lib/components/CollapsiblePanel/PanelHeader/index.js +1 -1
- package/lib/components/CollapsiblePanel/index.d.ts +1 -1
- package/lib/components/CollapsiblePanel/index.js +1 -1
- package/lib/components/ConfigProvider/context.d.ts +1 -1
- package/lib/components/ConfigProvider/context.js +20 -7
- package/lib/components/ConfigProvider/index.d.ts +2 -2
- package/lib/components/DateTimePicker/Base/constants.js +1 -0
- package/lib/components/DateTimePicker/Base/index.d.ts +4 -4
- package/lib/components/DateTimePicker/Base/index.js +25 -12
- package/lib/components/DateTimePicker/Base/relativeTimePicker.d.ts +1 -1
- package/lib/components/DateTimePicker/Base/relativeTimePicker.js +15 -3
- package/lib/components/DateTimePicker/BaseMobile/Absolute/constants.js +1 -0
- package/lib/components/DateTimePicker/BaseMobile/Absolute/index.d.ts +1 -1
- package/lib/components/DateTimePicker/BaseMobile/Absolute/index.js +4 -4
- package/lib/components/DateTimePicker/BaseMobile/CustomButton/index.d.ts +2 -2
- package/lib/components/DateTimePicker/BaseMobile/constants.js +1 -0
- package/lib/components/DateTimePicker/BaseMobile/index.d.ts +2 -2
- package/lib/components/DateTimePicker/BaseMobile/index.js +3 -2
- package/lib/components/DateTimePicker/Collapse/Panel/index.d.ts +1 -1
- package/lib/components/DateTimePicker/Collapse/Panel/index.js +19 -7
- package/lib/components/DateTimePicker/Collapse/index.d.ts +1 -1
- package/lib/components/DateTimePicker/Collapse/index.js +14 -2
- package/lib/components/DateTimePicker/DisplayInput/index.d.ts +1 -1
- package/lib/components/DateTimePicker/DisplayInput/index.js +20 -8
- package/lib/components/DateTimePicker/constants.js +1 -0
- package/lib/components/DateTimePicker/index.d.ts +1 -1
- package/lib/components/DateTimePicker/index.js +22 -9
- package/lib/components/DateTimePicker/transform.js +1 -0
- package/lib/components/Descriptions/index.js +19 -7
- package/lib/components/Drawer/CloseIcon/index.js +17 -3
- package/lib/components/Drawer/index.d.ts +5 -5
- package/lib/components/Drawer/index.js +4 -3
- package/lib/components/FileResumable/index.d.ts +2 -2
- package/lib/components/FileResumable/index.js +19 -7
- package/lib/components/FileResumable/utils.js +3 -1
- package/lib/components/Input/Password/index.d.ts +2 -2
- package/lib/components/Input/Password/index.js +20 -7
- package/lib/components/Input/TextArea/index.d.ts +2 -2
- package/lib/components/Input/TextArea/index.js +20 -7
- package/lib/components/Input/index.d.ts +4 -4
- package/lib/components/Input/index.js +19 -7
- package/lib/components/InputNumberWithUnit/index.d.ts +1 -1
- package/lib/components/InputNumberWithUnit/index.js +19 -7
- package/lib/components/KeyValuePair/index.d.ts +2 -2
- package/lib/components/KeyValuePair/index.js +27 -8
- package/lib/components/Measure/index.d.ts +2 -2
- package/lib/components/Menu/Option.d.ts +1 -1
- package/lib/components/Menu/Option.js +14 -2
- package/lib/components/Menu/index.d.ts +1 -1
- package/lib/components/Menu/index.js +20 -7
- package/lib/components/Modal/index.d.ts +1 -1
- package/lib/components/Modal/index.js +20 -8
- package/lib/components/NameExplainTooltip/index.d.ts +2 -2
- package/lib/components/NameExplainTooltip/index.js +19 -7
- package/lib/components/NameLimiter/index.d.ts +1 -1
- package/lib/components/NameLimiter/index.js +19 -7
- package/lib/components/OptionList/InlineOptionList/index.d.ts +2 -2
- package/lib/components/OptionList/InlineOptionList/index.js +14 -2
- package/lib/components/OptionList/OptionItem/index.d.ts +2 -2
- package/lib/components/OptionList/OptionItem/index.js +14 -2
- package/lib/components/OptionList/PopoverOptionList/index.d.ts +1 -1
- package/lib/components/OptionList/PopoverOptionList/index.js +19 -7
- package/lib/components/OptionList/constants.js +1 -0
- package/lib/components/OptionList/index.d.ts +1 -1
- package/lib/components/OptionList/index.js +23 -11
- package/lib/components/RadioGroup/index.d.ts +1 -1
- package/lib/components/RadioGroup/index.js +14 -2
- package/lib/components/RangeInput/index.d.ts +1 -1
- package/lib/components/RangeInput/index.js +19 -7
- package/lib/components/RangeInput/utils.js +1 -0
- package/lib/components/ReactSortable/index.d.ts +23 -0
- package/lib/components/ReactSortable/index.js +195 -0
- package/lib/components/RemarkName/index.d.ts +2 -2
- package/lib/components/RemarkName/index.js +15 -2
- package/lib/components/Selector/SelectorWidthChildren.d.ts +1 -1
- package/lib/components/Selector/SelectorWidthChildren.js +19 -7
- package/lib/components/Selector/index.d.ts +1 -1
- package/lib/components/Selector/index.js +20 -8
- package/lib/components/SolidRadioGroup/index.d.ts +1 -1
- package/lib/components/SolidRadioGroup/index.js +14 -2
- package/lib/components/Spin/LoadingSVG.d.ts +2 -2
- package/lib/components/Spin/index.d.ts +1 -1
- package/lib/components/Spin/index.js +1 -0
- package/lib/components/Steps/ControlButton/index.d.ts +1 -1
- package/lib/components/Steps/ControlButton/index.js +14 -2
- package/lib/components/Steps/Step/index.d.ts +2 -2
- package/lib/components/Steps/Step/index.js +14 -2
- package/lib/components/Steps/context.js +15 -2
- package/lib/components/Steps/index.d.ts +2 -2
- package/lib/components/Steps/index.js +19 -7
- package/lib/components/Style/index.d.ts +1 -1
- package/lib/components/Style/index.js +18 -6
- package/lib/components/Table/ColumnSetting/index.d.ts +1 -1
- package/lib/components/Table/ColumnSetting/index.js +22 -9
- package/lib/components/Table/ColumnTag/ColumnTag.d.ts +2 -2
- package/lib/components/Table/ColumnTag/ColumnTag.js +15 -2
- package/lib/components/Table/ResizableTitle/index.d.ts +2 -2
- package/lib/components/Table/constant.d.ts +7 -1
- package/lib/components/Table/constant.js +7 -0
- package/lib/components/Table/index.d.ts +6 -5
- package/lib/components/Table/index.js +58 -18
- package/lib/components/Tabs/index.d.ts +1 -1
- package/lib/components/Tabs/index.js +1 -0
- package/lib/components/TagList/Tag/index.d.ts +1 -1
- package/lib/components/TagList/Tag/index.js +19 -7
- package/lib/components/TagList/TagSwitch/index.d.ts +1 -1
- package/lib/components/TagList/TagSwitch/index.js +14 -2
- package/lib/components/TagList/index.d.ts +1 -1
- package/lib/components/TagList/index.js +20 -8
- package/lib/components/Timeline/TimelineItem/index.d.ts +1 -1
- package/lib/components/Timeline/TimelineItem/index.js +14 -2
- package/lib/components/Timeline/index.d.ts +1 -1
- package/lib/components/Timeline/index.js +15 -2
- package/lib/components/Transfer/List/index.d.ts +2 -2
- package/lib/components/Transfer/List/index.js +19 -7
- package/lib/components/Transfer/ListBody/index.d.ts +2 -2
- package/lib/components/Transfer/index.d.ts +2 -2
- package/lib/components/TreeSelector/index.d.ts +1 -1
- package/lib/components/TreeSelector/index.js +20 -7
- package/lib/constants/language/check_transform_list/en.js +1 -0
- package/lib/constants/language/check_transform_list/type.js +1 -0
- package/lib/constants/language/check_transform_list/zh.js +1 -0
- package/lib/constants/language/datetime/en.js +1 -0
- package/lib/constants/language/datetime/type.js +1 -0
- package/lib/constants/language/datetime/zh.js +1 -0
- package/lib/constants/language/en.js +1 -0
- package/lib/constants/language/modal/en.js +1 -0
- package/lib/constants/language/modal/type.js +1 -0
- package/lib/constants/language/modal/zh.js +1 -0
- package/lib/constants/language/range_input/en.js +1 -0
- package/lib/constants/language/range_input/type.js +1 -0
- package/lib/constants/language/range_input/zh.js +1 -0
- package/lib/constants/language/steps/en.js +1 -0
- package/lib/constants/language/steps/type.js +1 -0
- package/lib/constants/language/steps/zh.js +1 -0
- package/lib/constants/language/table/en.js +1 -0
- package/lib/constants/language/table/type.js +1 -0
- package/lib/constants/language/table/zh.js +1 -0
- package/lib/constants/language/transfer/en.js +1 -0
- package/lib/constants/language/transfer/type.js +1 -0
- package/lib/constants/language/transfer/zh.js +1 -0
- package/lib/constants/language/type.js +1 -0
- package/lib/constants/language/upload/type.js +1 -0
- package/lib/constants/language/zh.js +1 -0
- package/lib/constants/locale.js +1 -0
- package/lib/constants/style.js +1 -0
- package/lib/constants/time.js +1 -0
- package/lib/hoc/debounce.d.ts +1 -1
- package/lib/hoc/debounce.js +19 -7
- package/lib/hoc/modalPopupContainer.d.ts +1 -1
- package/lib/hoc/modalPopupContainer.js +19 -7
- package/lib/index.css +4726 -4726
- package/lib/index.d.ts +1 -0
- package/lib/index.js +67 -54
- package/lib/index.less +16 -16
- package/lib/style/theme.less +4 -3
- package/lib/utils/dom.js +1 -0
- package/lib/utils/env.js +1 -0
- package/lib/utils/language.js +1 -0
- package/lib/utils/languageLocale.js +1 -0
- package/lib/utils/time.js +17 -3
- package/package.json +17 -15
- package/CHANGELOG.json +0 -689
- package/CHANGELOG.md +0 -242
@@ -1,17 +1,17 @@
|
|
1
|
-
|
1
|
+
import * as React from 'react';
|
2
2
|
import { InputProps } from 'antd/es/input';
|
3
3
|
export declare type TInputProps = Omit<InputProps, 'value' | 'onChange'> & {
|
4
4
|
value?: string;
|
5
5
|
onChange?: (value: string) => void;
|
6
6
|
};
|
7
|
-
declare function Input(props: TInputProps): JSX.Element;
|
7
|
+
declare function Input(props: TInputProps): React.JSX.Element;
|
8
8
|
declare namespace Input {
|
9
|
-
var DebounceInput: (props: Pick<InputProps, "type" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "
|
9
|
+
var DebounceInput: (props: Pick<InputProps, "type" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "list" | "step" | "size" | "prefixCls" | "pattern" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "width" | "onPressEnter" | "addonBefore" | "addonAfter" | "suffix" | "allowClear" | "bordered" | "htmlSize"> & {
|
10
10
|
value?: string | undefined;
|
11
11
|
onChange?: ((value: string) => void) | undefined;
|
12
12
|
} & {
|
13
13
|
debounce?: number | undefined;
|
14
|
-
}) => JSX.Element;
|
14
|
+
}) => React.JSX.Element;
|
15
15
|
var Password: typeof import("./Password").Password;
|
16
16
|
var TextArea: typeof import("./TextArea").TextArea;
|
17
17
|
}
|
@@ -17,5 +17,5 @@ interface IInputNumberWithUnitProps {
|
|
17
17
|
min?: number;
|
18
18
|
max?: number;
|
19
19
|
}
|
20
|
-
declare function InputNumberWithUnit(props: IInputNumberWithUnitProps): JSX.Element;
|
20
|
+
declare function InputNumberWithUnit(props: IInputNumberWithUnitProps): React.JSX.Element;
|
21
21
|
export default InputNumberWithUnit;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import React from 'react';
|
2
2
|
export interface IKeyValuePairProps {
|
3
3
|
/**
|
4
4
|
* 键值对的key
|
@@ -25,4 +25,4 @@ export interface IKeyValuePairProps {
|
|
25
25
|
*/
|
26
26
|
htmlContent?: boolean;
|
27
27
|
}
|
28
|
-
export default function KeyValuePair(props: IKeyValuePairProps): JSX.Element;
|
28
|
+
export default function KeyValuePair(props: IKeyValuePairProps): React.JSX.Element;
|
@@ -1,11 +1,18 @@
|
|
1
|
-
import
|
1
|
+
import React, { useMemo } from 'react';
|
2
2
|
import classnames from 'classnames';
|
3
|
+
import DOMPurify from 'dompurify';
|
3
4
|
import { SDK_PREFIX } from '../../constants/style';
|
4
5
|
export default function KeyValuePair(props) {
|
5
6
|
var label = props.label, value = props.value, labelClassName = props.labelClassName, valueClassName = props.valueClassName, htmlContent = props.htmlContent;
|
7
|
+
var text = useMemo(function () {
|
8
|
+
if (htmlContent) {
|
9
|
+
return DOMPurify.sanitize(value || '');
|
10
|
+
}
|
11
|
+
return value;
|
12
|
+
}, [value, htmlContent]);
|
6
13
|
return (React.createElement("div", { className: classnames(props.className) },
|
7
14
|
React.createElement("span", { className: classnames(SDK_PREFIX + "-key-value-label", !!htmlContent && SDK_PREFIX + "-key-value-label-top", labelClassName) }, label),
|
8
15
|
htmlContent ? (React.createElement("span", { className: classnames(SDK_PREFIX + "-key-value-value", valueClassName), dangerouslySetInnerHTML: {
|
9
|
-
__html:
|
10
|
-
} })) : (React.createElement("span", { className: classnames(SDK_PREFIX + "-key-value-value", valueClassName) },
|
16
|
+
__html: text
|
17
|
+
} })) : (React.createElement("span", { className: classnames(SDK_PREFIX + "-key-value-value", valueClassName) }, text))));
|
11
18
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import React from 'react';
|
2
2
|
import { Rect, BoundingRect, Margin } from 'react-measure';
|
3
3
|
interface IMeasureProps {
|
4
4
|
/**
|
@@ -28,5 +28,5 @@ interface IMeasureProps {
|
|
28
28
|
children?: any;
|
29
29
|
[key: string]: any;
|
30
30
|
}
|
31
|
-
export default function Measure(props: IMeasureProps): JSX.Element;
|
31
|
+
export default function Measure(props: IMeasureProps): React.JSX.Element;
|
32
32
|
export {};
|
@@ -11,7 +11,7 @@ export interface IMenuProps extends Omit<MenuProps, 'options' | 'mode'> {
|
|
11
11
|
*/
|
12
12
|
mode?: MenuMode;
|
13
13
|
}
|
14
|
-
export declare function Menue(props: React.PropsWithChildren<IMenuProps>): JSX.Element;
|
14
|
+
export declare function Menue(props: React.PropsWithChildren<IMenuProps>): React.JSX.Element;
|
15
15
|
export declare namespace Menue {
|
16
16
|
var Divider: React.FC<import("antd/lib/menu").MenuDividerProps>;
|
17
17
|
var Item: typeof import("antd/lib/menu/MenuItem").default;
|
@@ -2,7 +2,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
2
2
|
var extendStatics = function (d, b) {
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
5
|
-
function (d, b) { for (var p in b) if (
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
6
6
|
return extendStatics(d, b);
|
7
7
|
};
|
8
8
|
return function (d, b) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import * as React from 'react';
|
2
2
|
import { TooltipProps } from 'antd/es/tooltip';
|
3
3
|
export declare type INameExplainTooltip = TooltipProps & {
|
4
4
|
/**
|
@@ -13,4 +13,4 @@ export declare type INameExplainTooltip = TooltipProps & {
|
|
13
13
|
/**
|
14
14
|
* 名词解释ToolTip,用法和ToolTip一致,加了统一的className
|
15
15
|
*/
|
16
|
-
export default function NameExplainTooltip(props: INameExplainTooltip): JSX.Element;
|
16
|
+
export default function NameExplainTooltip(props: INameExplainTooltip): React.JSX.Element;
|
@@ -11,4 +11,4 @@ export interface INameLimiterProps {
|
|
11
11
|
placement?: TooltipPlacement;
|
12
12
|
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
13
13
|
}
|
14
|
-
export default function NameLimiter({ name, title, placement, getPopupContainer }: INameLimiterProps): JSX.Element;
|
14
|
+
export default function NameLimiter({ name, title, placement, getPopupContainer }: INameLimiterProps): React.JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import * as React from 'react';
|
2
2
|
import { IOptionItem } from '../constants';
|
3
3
|
export interface IInlineOptionListProps {
|
4
4
|
/**
|
@@ -13,4 +13,4 @@ export interface IInlineOptionListProps {
|
|
13
13
|
/**
|
14
14
|
* 资源列表页面表格中操作列表
|
15
15
|
*/
|
16
|
-
export default function InlineOptionList(props: IInlineOptionListProps): JSX.Element;
|
16
|
+
export default function InlineOptionList(props: IInlineOptionListProps): React.JSX.Element;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
|
1
|
+
import * as React from 'react';
|
2
2
|
import { IOptionItem } from '../constants';
|
3
3
|
interface IOptionItemProps extends IOptionItem {
|
4
4
|
className?: string;
|
5
5
|
afterClick?: (item: IOptionItem) => void;
|
6
6
|
getPopupContainer?: () => HTMLElement;
|
7
7
|
}
|
8
|
-
export default function OptionItem(props: IOptionItemProps): JSX.Element | null;
|
8
|
+
export default function OptionItem(props: IOptionItemProps): React.JSX.Element | null;
|
9
9
|
export {};
|
@@ -22,4 +22,4 @@ export interface IPopoverOptionListProps {
|
|
22
22
|
/**
|
23
23
|
* 资源列表页面表格中操作列表
|
24
24
|
*/
|
25
|
-
export default function PopoverOptionList(props: React.PropsWithChildren<IPopoverOptionListProps>): JSX.Element;
|
25
|
+
export default function PopoverOptionList(props: React.PropsWithChildren<IPopoverOptionListProps>): React.JSX.Element;
|
@@ -31,7 +31,7 @@ export interface IOptionListProps {
|
|
31
31
|
/**
|
32
32
|
* 资源列表页面表格中操作列表
|
33
33
|
*/
|
34
|
-
declare function OptionList(props: React.PropsWithChildren<IOptionListProps>): JSX.Element;
|
34
|
+
declare function OptionList(props: React.PropsWithChildren<IOptionListProps>): React.JSX.Element;
|
35
35
|
declare namespace OptionList {
|
36
36
|
var EShowMode: typeof import("./constants").EShowMode;
|
37
37
|
var InlineOptionList: typeof import("./InlineOptionList").default;
|
@@ -49,5 +49,5 @@ export interface IRadioGroupProps<T = BasicType> {
|
|
49
49
|
optionType?: 'button' | 'default';
|
50
50
|
children?: any;
|
51
51
|
}
|
52
|
-
export default function RadioGroup(props: IRadioGroupProps): JSX.Element;
|
52
|
+
export default function RadioGroup(props: IRadioGroupProps): React.JSX.Element;
|
53
53
|
export {};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import PropTypes from 'prop-types';
|
2
|
+
import React, { Component } from 'react';
|
3
|
+
declare class Sortable extends Component<any> {
|
4
|
+
static propTypes: {
|
5
|
+
options: PropTypes.Requireable<object>;
|
6
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
7
|
+
tag: PropTypes.Requireable<string | ((...args: any[]) => any)>;
|
8
|
+
style: PropTypes.Requireable<object>;
|
9
|
+
};
|
10
|
+
static defaultProps: {
|
11
|
+
options: {};
|
12
|
+
tag: string;
|
13
|
+
style: {};
|
14
|
+
};
|
15
|
+
sortable: any;
|
16
|
+
node: any;
|
17
|
+
componentDidMount(): void;
|
18
|
+
shouldComponentUpdate(nextProps: any): boolean;
|
19
|
+
componentDidUpdate(prevProps: any): void;
|
20
|
+
componentWillUnmount(): void;
|
21
|
+
render(): React.JSX.Element;
|
22
|
+
}
|
23
|
+
export default Sortable;
|
@@ -0,0 +1,171 @@
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
2
|
+
var extendStatics = function (d, b) {
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
6
|
+
return extendStatics(d, b);
|
7
|
+
};
|
8
|
+
return function (d, b) {
|
9
|
+
extendStatics(d, b);
|
10
|
+
function __() { this.constructor = d; }
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
12
|
+
};
|
13
|
+
})();
|
14
|
+
var __assign = (this && this.__assign) || function () {
|
15
|
+
__assign = Object.assign || function(t) {
|
16
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
17
|
+
s = arguments[i];
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
19
|
+
t[p] = s[p];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
return __assign.apply(this, arguments);
|
24
|
+
};
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
26
|
+
var t = {};
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
28
|
+
t[p] = s[p];
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
32
|
+
t[p[i]] = s[p[i]];
|
33
|
+
}
|
34
|
+
return t;
|
35
|
+
};
|
36
|
+
var __read = (this && this.__read) || function (o, n) {
|
37
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
38
|
+
if (!m) return o;
|
39
|
+
var i = m.call(o), r, ar = [], e;
|
40
|
+
try {
|
41
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
42
|
+
}
|
43
|
+
catch (error) { e = { error: error }; }
|
44
|
+
finally {
|
45
|
+
try {
|
46
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
47
|
+
}
|
48
|
+
finally { if (e) throw e.error; }
|
49
|
+
}
|
50
|
+
return ar;
|
51
|
+
};
|
52
|
+
/* eslint consistent-return: 0 */
|
53
|
+
import PropTypes from 'prop-types';
|
54
|
+
import React, { Component } from 'react';
|
55
|
+
import SortableJS from 'sortablejs';
|
56
|
+
var store = {
|
57
|
+
nextSibling: null,
|
58
|
+
activeComponent: null
|
59
|
+
};
|
60
|
+
var Sortable = /** @class */ (function (_super) {
|
61
|
+
__extends(Sortable, _super);
|
62
|
+
function Sortable() {
|
63
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
64
|
+
_this.sortable = null;
|
65
|
+
_this.node = null;
|
66
|
+
return _this;
|
67
|
+
}
|
68
|
+
Sortable.prototype.componentDidMount = function () {
|
69
|
+
var _this = this;
|
70
|
+
var options = __assign({}, this.props.options);
|
71
|
+
[
|
72
|
+
'onChoose',
|
73
|
+
'onStart',
|
74
|
+
'onEnd',
|
75
|
+
'onAdd',
|
76
|
+
'onUpdate',
|
77
|
+
'onSort',
|
78
|
+
'onRemove',
|
79
|
+
'onFilter',
|
80
|
+
'onMove',
|
81
|
+
'onClone'
|
82
|
+
].forEach(function (name) {
|
83
|
+
var eventHandler = options[name];
|
84
|
+
options[name] = function () {
|
85
|
+
var _a, _b, _c, _d;
|
86
|
+
var params = [];
|
87
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
88
|
+
params[_i] = arguments[_i];
|
89
|
+
}
|
90
|
+
var _e = __read(params, 1), evt = _e[0];
|
91
|
+
if (name === 'onChoose') {
|
92
|
+
store.nextSibling = evt.item.nextElementSibling;
|
93
|
+
store.activeComponent = _this;
|
94
|
+
}
|
95
|
+
else if ((name === 'onAdd' || name === 'onUpdate') &&
|
96
|
+
_this.props.onChange) {
|
97
|
+
var items = _this.sortable.toArray();
|
98
|
+
var remote = store.activeComponent;
|
99
|
+
var remoteItems = remote.sortable.toArray();
|
100
|
+
var referenceNode = store.nextSibling && store.nextSibling.parentNode !== null
|
101
|
+
? store.nextSibling
|
102
|
+
: null;
|
103
|
+
evt.from.insertBefore(evt.item, referenceNode);
|
104
|
+
if (remote !== _this) {
|
105
|
+
var remoteOptions = remote.props.options || {};
|
106
|
+
if (typeof remoteOptions.group === 'object' &&
|
107
|
+
remoteOptions.group.pull === 'clone') {
|
108
|
+
// Remove the node with the same data-reactid
|
109
|
+
evt.item.parentNode.removeChild(evt.item);
|
110
|
+
}
|
111
|
+
(_b = (_a = remote.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, remoteItems, remote.sortable, evt);
|
112
|
+
}
|
113
|
+
(_d = (_c = _this.props).onChange) === null || _d === void 0 ? void 0 : _d.call(_c, items, _this.sortable, evt);
|
114
|
+
}
|
115
|
+
if (evt.type === 'move') {
|
116
|
+
var _f = __read(params, 2), evt_1 = _f[0], originalEvent = _f[1];
|
117
|
+
var canMove = eventHandler ? eventHandler(evt_1, originalEvent) : true;
|
118
|
+
return canMove;
|
119
|
+
}
|
120
|
+
setTimeout(function () {
|
121
|
+
eventHandler === null || eventHandler === void 0 ? void 0 : eventHandler(evt);
|
122
|
+
}, 0);
|
123
|
+
};
|
124
|
+
});
|
125
|
+
this.sortable = SortableJS.create(this.node, options);
|
126
|
+
};
|
127
|
+
Sortable.prototype.shouldComponentUpdate = function (nextProps) {
|
128
|
+
// If onChange is null, it is an UnControlled component
|
129
|
+
// Don't let React re-render it by setting return to false
|
130
|
+
if (!nextProps.onChange) {
|
131
|
+
return false;
|
132
|
+
}
|
133
|
+
return true;
|
134
|
+
};
|
135
|
+
Sortable.prototype.componentDidUpdate = function (prevProps) {
|
136
|
+
var _a, _b, _c;
|
137
|
+
// 官方源码,只更新了disabled属性,其它属性暂时没有更新
|
138
|
+
if (((_a = prevProps.options) === null || _a === void 0 ? void 0 : _a.disabled) !== ((_b = this.props.options) === null || _b === void 0 ? void 0 : _b.disabled) &&
|
139
|
+
this.sortable) {
|
140
|
+
this.sortable.option('disabled', (_c = this.props.options) === null || _c === void 0 ? void 0 : _c.disabled);
|
141
|
+
}
|
142
|
+
};
|
143
|
+
Sortable.prototype.componentWillUnmount = function () {
|
144
|
+
if (this.sortable) {
|
145
|
+
this.sortable.destroy();
|
146
|
+
this.sortable = null;
|
147
|
+
}
|
148
|
+
};
|
149
|
+
Sortable.prototype.render = function () {
|
150
|
+
var _this = this;
|
151
|
+
var _a = this.props, Component = _a.tag, options = _a.options, // eslint-disable-line
|
152
|
+
onChange = _a.onChange, // eslint-disable-line
|
153
|
+
props = __rest(_a, ["tag", "options", "onChange"]);
|
154
|
+
return (React.createElement(Component, __assign({}, props, { ref: function (node) {
|
155
|
+
_this.node = node;
|
156
|
+
} })));
|
157
|
+
};
|
158
|
+
Sortable.propTypes = {
|
159
|
+
options: PropTypes.object,
|
160
|
+
onChange: PropTypes.func,
|
161
|
+
tag: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
162
|
+
style: PropTypes.object
|
163
|
+
};
|
164
|
+
Sortable.defaultProps = {
|
165
|
+
options: {},
|
166
|
+
tag: 'div',
|
167
|
+
style: {}
|
168
|
+
};
|
169
|
+
return Sortable;
|
170
|
+
}(Component));
|
171
|
+
export default Sortable;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import * as React from 'react';
|
2
2
|
export interface IRemarkName {
|
3
3
|
/** 资源名称 */
|
4
4
|
name: string;
|
@@ -9,4 +9,4 @@ export declare const IgnoreDesString = "\u7531logkit";
|
|
9
9
|
/**
|
10
10
|
* 资源名称展示位'名称(备注)'
|
11
11
|
*/
|
12
|
-
export default function RemarkName(props: IRemarkName): JSX.Element;
|
12
|
+
export default function RemarkName(props: IRemarkName): React.JSX.Element;
|
@@ -11,5 +11,5 @@ export interface ISelectorOption {
|
|
11
11
|
export interface ISelectorWidthChildrenProps<VT> extends ISelectorProps<VT> {
|
12
12
|
options?: ISelectorOption[];
|
13
13
|
}
|
14
|
-
export default function SelectorWidthChildren<VT extends SelectValue>(props: ISelectorWidthChildrenProps<VT>): JSX.Element;
|
14
|
+
export default function SelectorWidthChildren<VT extends SelectValue>(props: ISelectorWidthChildrenProps<VT>): React.JSX.Element;
|
15
15
|
export {};
|
@@ -2,7 +2,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
2
2
|
var extendStatics = function (d, b) {
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
5
|
-
function (d, b) { for (var p in b) if (
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
6
6
|
return extendStatics(d, b);
|
7
7
|
};
|
8
8
|
return function (d, b) {
|
@@ -3,7 +3,7 @@ import { IRadioGroupProps, IOption } from '../RadioGroup';
|
|
3
3
|
export { IOption };
|
4
4
|
export interface ISolidRadioGroupProps<T = any> extends Omit<IRadioGroupProps<T>, 'optionType'> {
|
5
5
|
}
|
6
|
-
declare function SolidRadioGroup(props: ISolidRadioGroupProps): JSX.Element;
|
6
|
+
declare function SolidRadioGroup(props: ISolidRadioGroupProps): React.JSX.Element;
|
7
7
|
declare namespace SolidRadioGroup {
|
8
8
|
var Button: React.ForwardRefExoticComponent<import("antd/es/radio/radioButton").RadioButtonProps & React.RefAttributes<any>>;
|
9
9
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
import React from 'react';
|
2
2
|
interface ILoadingSvgProps {
|
3
3
|
className?: string;
|
4
4
|
}
|
5
|
-
export default function LoadingSvg(props: ILoadingSvgProps): JSX.Element;
|
5
|
+
export default function LoadingSvg(props: ILoadingSvgProps): React.JSX.Element;
|
6
6
|
export {};
|
@@ -27,5 +27,5 @@ export interface ISpinProps extends SpinProps {
|
|
27
27
|
minHeight?: string;
|
28
28
|
children?: React.ReactNode;
|
29
29
|
}
|
30
|
-
export declare function Spin(props: ISpinProps): JSX.Element;
|
30
|
+
export declare function Spin(props: ISpinProps): React.JSX.Element;
|
31
31
|
export default Spin;
|
@@ -17,6 +17,6 @@ export interface IControlButtonProps {
|
|
17
17
|
*/
|
18
18
|
onStepLast?: () => void;
|
19
19
|
}
|
20
|
-
declare function ControlButton(props: IControlButtonProps): JSX.Element;
|
20
|
+
declare function ControlButton(props: IControlButtonProps): React.JSX.Element;
|
21
21
|
declare const _default: React.MemoExoticComponent<typeof ControlButton>;
|
22
22
|
export default _default;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
1
|
+
import React from 'react';
|
2
2
|
import { StepProps } from 'antd/es/steps';
|
3
|
-
export default function Step(props: StepProps): JSX.Element;
|
3
|
+
export default function Step(props: StepProps): React.JSX.Element;
|
@@ -6,9 +6,9 @@ interface IStepsProps extends StepsProps {
|
|
6
6
|
*/
|
7
7
|
steps?: StepProps[];
|
8
8
|
}
|
9
|
-
declare function Steps(props: React.PropsWithChildren<IStepsProps>): JSX.Element;
|
9
|
+
declare function Steps(props: React.PropsWithChildren<IStepsProps>): React.JSX.Element;
|
10
10
|
declare namespace Steps {
|
11
11
|
var Step: typeof import("./Step").default;
|
12
|
-
var ControlButton: React.MemoExoticComponent<(props: import("./ControlButton").IControlButtonProps) => JSX.Element>;
|
12
|
+
var ControlButton: React.MemoExoticComponent<(props: import("./ControlButton").IControlButtonProps) => React.JSX.Element>;
|
13
13
|
}
|
14
14
|
export default Steps;
|
@@ -2,7 +2,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
2
2
|
var extendStatics = function (d, b) {
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
5
|
-
function (d, b) { for (var p in b) if (
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
6
6
|
return extendStatics(d, b);
|
7
7
|
};
|
8
8
|
return function (d, b) {
|
@@ -12,6 +12,6 @@ export interface ISettingBtnProps {
|
|
12
12
|
options?: IOption[];
|
13
13
|
loading?: boolean;
|
14
14
|
}
|
15
|
-
export declare function ColumnSetting(props: ISettingBtnProps): JSX.Element;
|
15
|
+
export declare function ColumnSetting(props: ISettingBtnProps): React.JSX.Element;
|
16
16
|
declare const _default: React.MemoExoticComponent<typeof ColumnSetting>;
|
17
17
|
export default _default;
|
@@ -21,10 +21,10 @@ var __spread = (this && this.__spread) || function () {
|
|
21
21
|
import React, { useMemo, useCallback, useState, useContext } from 'react';
|
22
22
|
import classnames from 'classnames';
|
23
23
|
import { includes } from 'lodash';
|
24
|
-
import ReactSortable from 'react-sortablejs';
|
25
24
|
import { Popover, Checkbox, Spin } from 'antd';
|
26
25
|
import { HolderOutlined, SettingOutlined } from '@ant-design/icons';
|
27
26
|
import { ConfigContext } from 'antd/es/config-provider';
|
27
|
+
import ReactSortable from '../../ReactSortable';
|
28
28
|
import { formatString } from '../../../utils/language';
|
29
29
|
import { TableLocale } from '../../../constants/language/table/type';
|
30
30
|
import { SDK_PREFIX } from '../../../constants/style';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import * as React from 'react';
|
2
2
|
/**
|
3
3
|
* 在表格的cell里显示多个标签, 每行只显示三个, 若总数大于三个, 则点击提示按钮显示全部
|
4
4
|
*/
|
@@ -6,4 +6,4 @@ export declare const ColumnTag: (props: {
|
|
6
6
|
tags: any[];
|
7
7
|
title?: string | undefined;
|
8
8
|
tagClassName?: string | undefined;
|
9
|
-
}) => JSX.Element;
|
9
|
+
}) => React.JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
declare const ResizableTitle: (props: any) => JSX.Element;
|
1
|
+
import React from 'react';
|
2
|
+
declare const ResizableTitle: (props: any) => React.JSX.Element;
|
3
3
|
export default ResizableTitle;
|
@@ -8,6 +8,7 @@ export declare enum ETableDragSaveKey {
|
|
8
8
|
/** Apm */
|
9
9
|
ApmMq = "Keta_drag_table_apm_mq",
|
10
10
|
ApmTrace = "Keta_drag_table_apm_trace",
|
11
|
+
ApmAggreTrace = "Keta_drag_table_apm_aggre_trace",
|
11
12
|
ApmTraceCall = "Keta_drag_table_apm_trace_call",
|
12
13
|
ApmServiceOption = "Keta_drag_table_apm_service_option",
|
13
14
|
/** 告警 */
|
@@ -18,5 +19,10 @@ export declare enum ETableDragSaveKey {
|
|
18
19
|
/** 采集任务 */
|
19
20
|
CollectionTask = "Keta_drag_collection_task",
|
20
21
|
/** 北冥事件 */
|
21
|
-
NeuralertEvent = "Keta_drag_neuralert_event"
|
22
|
+
NeuralertEvent = "Keta_drag_neuralert_event",
|
23
|
+
/** 北冥变更事件 */
|
24
|
+
NeuralertChangeEvent = "Keta_drag_neuralert_change_event",
|
25
|
+
/** 归档 */
|
26
|
+
/** 历史数据归档 */
|
27
|
+
BackUpFileArchiveTaskHistory = "backup_file_archive_task_history"
|
22
28
|
}
|
@@ -10,6 +10,7 @@ export var ETableDragSaveKey;
|
|
10
10
|
/** Apm */
|
11
11
|
ETableDragSaveKey["ApmMq"] = "Keta_drag_table_apm_mq";
|
12
12
|
ETableDragSaveKey["ApmTrace"] = "Keta_drag_table_apm_trace";
|
13
|
+
ETableDragSaveKey["ApmAggreTrace"] = "Keta_drag_table_apm_aggre_trace";
|
13
14
|
ETableDragSaveKey["ApmTraceCall"] = "Keta_drag_table_apm_trace_call";
|
14
15
|
ETableDragSaveKey["ApmServiceOption"] = "Keta_drag_table_apm_service_option";
|
15
16
|
/** 告警 */
|
@@ -21,4 +22,9 @@ export var ETableDragSaveKey;
|
|
21
22
|
ETableDragSaveKey["CollectionTask"] = "Keta_drag_collection_task";
|
22
23
|
/** 北冥事件 */
|
23
24
|
ETableDragSaveKey["NeuralertEvent"] = "Keta_drag_neuralert_event";
|
25
|
+
/** 北冥变更事件 */
|
26
|
+
ETableDragSaveKey["NeuralertChangeEvent"] = "Keta_drag_neuralert_change_event";
|
27
|
+
/** 归档 */
|
28
|
+
/** 历史数据归档 */
|
29
|
+
ETableDragSaveKey["BackUpFileArchiveTaskHistory"] = "backup_file_archive_task_history";
|
24
30
|
})(ETableDragSaveKey || (ETableDragSaveKey = {}));
|