@gpustack/core-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/assets/invert-worker-CFNPVgCi.js +1 -0
- package/dist/assets/json-parser-worker-DtJw0BTZ.js +1 -0
- package/dist/assets/offscreen-worker-DL5yJmAw.js +1 -0
- package/dist/assets/parse-worker-Dzai8qsE.js +5 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.cjs.js +2613 -0
- package/dist/index.css +1 -0
- package/dist/index.es.js +179547 -0
- package/dist/monaco-editor-CHfVLkob.js +103874 -0
- package/dist/monaco-editor-Df8eM8W1.js +802 -0
- package/dist/monaco-editor.css +1 -0
- package/dist/rolldown-runtime-BETGA6I9.js +23 -0
- package/dist/rolldown-runtime-D_0Db6FZ.js +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lib/components/alert-info/block.d.ts +16 -0
- package/dist/src/lib/components/alert-info/index.d.ts +11 -0
- package/dist/src/lib/components/audio-animation/index.d.ts +16 -0
- package/dist/src/lib/components/audio-player/audio-element.d.ts +3 -0
- package/dist/src/lib/components/audio-player/config/type.d.ts +25 -0
- package/dist/src/lib/components/audio-player/index.d.ts +14 -0
- package/dist/src/lib/components/audio-player/raw-audio-player.d.ts +4 -0
- package/dist/src/lib/components/audio-player/simple-audio.d.ts +16 -0
- package/dist/src/lib/components/auto-image/index.d.ts +10 -0
- package/dist/src/lib/components/auto-image/single-image.d.ts +26 -0
- package/dist/src/lib/components/auto-tooltip/index.d.ts +18 -0
- package/dist/src/lib/components/auto-tooltip/title-tip.d.ts +9 -0
- package/dist/src/lib/components/bibtex-viewer/index.d.ts +5 -0
- package/dist/src/lib/components/card-wrapper/index.d.ts +2 -0
- package/dist/src/lib/components/card-wrapper/simple-card.d.ts +20 -0
- package/dist/src/lib/components/check-buttons/index.d.ts +10 -0
- package/dist/src/lib/components/collapse-container/headless-collapse.d.ts +9 -0
- package/dist/src/lib/components/collapse-container/index.d.ts +24 -0
- package/dist/src/lib/components/collapse-panel/index.d.ts +11 -0
- package/dist/src/lib/components/column-settings/index.d.ts +21 -0
- package/dist/src/lib/components/column-wrapper/index.d.ts +13 -0
- package/dist/src/lib/components/column-wrapper/use-wrapper-context.d.ts +17 -0
- package/dist/src/lib/components/command-viewer/index.d.ts +14 -0
- package/dist/src/lib/components/content-wrapper/index.d.ts +8 -0
- package/dist/src/lib/components/copy-button/index.d.ts +15 -0
- package/dist/src/lib/components/delete-modal/index.d.ts +2 -0
- package/dist/src/lib/components/divider-line/index.d.ts +2 -0
- package/dist/src/lib/components/doc-link/index.d.ts +6 -0
- package/dist/src/lib/components/drop-down-actions/index.d.ts +4 -0
- package/dist/src/lib/components/drop-down-buttons/index.d.ts +18 -0
- package/dist/src/lib/components/dynamic-form/components/field-item.d.ts +9 -0
- package/dist/src/lib/components/dynamic-form/components/form-widget.d.ts +6 -0
- package/dist/src/lib/components/dynamic-form/components/list-map.d.ts +17 -0
- package/dist/src/lib/components/dynamic-form/config/types.d.ts +39 -0
- package/dist/src/lib/components/dynamic-form/hooks/use-parse-fields.d.ts +7 -0
- package/dist/src/lib/components/dynamic-form/hooks/use-validate-fields.d.ts +10 -0
- package/dist/src/lib/components/dynamic-form/index.d.ts +8 -0
- package/dist/src/lib/components/echarts/bar-chart.d.ts +4 -0
- package/dist/src/lib/components/echarts/chart-tooltip.d.ts +7 -0
- package/dist/src/lib/components/echarts/chart.d.ts +10 -0
- package/dist/src/lib/components/echarts/config.d.ts +178 -0
- package/dist/src/lib/components/echarts/gauge.d.ts +4 -0
- package/dist/src/lib/components/echarts/h-bar.d.ts +6 -0
- package/dist/src/lib/components/echarts/index.d.ts +7 -0
- package/dist/src/lib/components/echarts/line-chart.d.ts +4 -0
- package/dist/src/lib/components/echarts/mix-line-bar.d.ts +9 -0
- package/dist/src/lib/components/echarts/scatter.d.ts +7 -0
- package/dist/src/lib/components/echarts/types.d.ts +44 -0
- package/dist/src/lib/components/editor-wrap/index.d.ts +14 -0
- package/dist/src/lib/components/empty-data/index.d.ts +6 -0
- package/dist/src/lib/components/error-message-content/index.d.ts +4 -0
- package/dist/src/lib/components/filter-form/index.d.ts +17 -0
- package/dist/src/lib/components/footer/index.d.ts +6 -0
- package/dist/src/lib/components/form/auto-complete.d.ts +9 -0
- package/dist/src/lib/components/form/base/select.d.ts +7 -0
- package/dist/src/lib/components/form/cascader.d.ts +10 -0
- package/dist/src/lib/components/form/checkbox-field.d.ts +10 -0
- package/dist/src/lib/components/form/checkbox.d.ts +7 -0
- package/dist/src/lib/components/form/components/label-info.d.ts +9 -0
- package/dist/src/lib/components/form/components/not-found-content.d.ts +7 -0
- package/dist/src/lib/components/form/config/components.d.ts +17 -0
- package/dist/src/lib/components/form/config/index.d.ts +7 -0
- package/dist/src/lib/components/form/field-component.d.ts +4 -0
- package/dist/src/lib/components/form/hooks/use-select-render.d.ts +11 -0
- package/dist/src/lib/components/form/input-number.d.ts +5 -0
- package/dist/src/lib/components/form/input-search.d.ts +5 -0
- package/dist/src/lib/components/form/input.d.ts +7 -0
- package/dist/src/lib/components/form/multiple-select.d.ts +7 -0
- package/dist/src/lib/components/form/password.d.ts +6 -0
- package/dist/src/lib/components/form/row-textarea.d.ts +36 -0
- package/dist/src/lib/components/form/select.d.ts +8 -0
- package/dist/src/lib/components/form/simple-select.d.ts +7 -0
- package/dist/src/lib/components/form/slider.d.ts +13 -0
- package/dist/src/lib/components/form/switch-input.d.ts +15 -0
- package/dist/src/lib/components/form/switch.d.ts +12 -0
- package/dist/src/lib/components/form/textarea.d.ts +9 -0
- package/dist/src/lib/components/form/types.d.ts +14 -0
- package/dist/src/lib/components/form/wrapper/auto-complete-label.d.ts +2 -0
- package/dist/src/lib/components/form/wrapper/index.d.ts +32 -0
- package/dist/src/lib/components/form/wrapper/input.d.ts +2 -0
- package/dist/src/lib/components/form/wrapper/select.d.ts +2 -0
- package/dist/src/lib/components/form/wrapper/slider.d.ts +2 -0
- package/dist/src/lib/components/form-buttons/index.d.ts +11 -0
- package/dist/src/lib/components/form-drawer/index.d.ts +13 -0
- package/dist/src/lib/components/grafana-icon/index.d.ts +6 -0
- package/dist/src/lib/components/highlight-code/code-viewer-dark.d.ts +13 -0
- package/dist/src/lib/components/highlight-code/code-viewer-light.d.ts +13 -0
- package/dist/src/lib/components/highlight-code/code-viewer.d.ts +14 -0
- package/dist/src/lib/components/highlight-code/index.d.ts +13 -0
- package/dist/src/lib/components/highlight-code/utils.d.ts +1 -0
- package/dist/src/lib/components/icon-font/icons.d.ts +153 -0
- package/dist/src/lib/components/icon-font/index.d.ts +7 -0
- package/dist/src/lib/components/image-editor/extract-image-colors.d.ts +10 -0
- package/dist/src/lib/components/image-editor/hooks/use-drawing.d.ts +66 -0
- package/dist/src/lib/components/image-editor/hooks/use-zoom.d.ts +21 -0
- package/dist/src/lib/components/image-editor/index.d.ts +30 -0
- package/dist/src/lib/components/image-editor/invert-worker.d.ts +1 -0
- package/dist/src/lib/components/image-editor/offscreen-worker.d.ts +1 -0
- package/dist/src/lib/components/image-editor/tools-bar.d.ts +28 -0
- package/dist/src/lib/components/index.d.ts +127 -0
- package/dist/src/lib/components/infinite-scroller/index.d.ts +6 -0
- package/dist/src/lib/components/infinite-scroller/infinite-scroller-provider.d.ts +7 -0
- package/dist/src/lib/components/infinite-scroller/use-infinite-scroll.d.ts +12 -0
- package/dist/src/lib/components/infinite-scroller/use-scroller-context.d.ts +10 -0
- package/dist/src/lib/components/label-cell/index.d.ts +6 -0
- package/dist/src/lib/components/label-selector/autocomplete-item.d.ts +27 -0
- package/dist/src/lib/components/label-selector/context.d.ts +15 -0
- package/dist/src/lib/components/label-selector/index.d.ts +15 -0
- package/dist/src/lib/components/label-selector/inner.d.ts +23 -0
- package/dist/src/lib/components/label-selector/label-item.d.ts +26 -0
- package/dist/src/lib/components/label-selector/label-selector-provider.d.ts +6 -0
- package/dist/src/lib/components/label-selector/wrapper.d.ts +17 -0
- package/dist/src/lib/components/list-input/hint-input.d.ts +13 -0
- package/dist/src/lib/components/list-input/index.d.ts +25 -0
- package/dist/src/lib/components/list-input/list-item.d.ts +21 -0
- package/dist/src/lib/components/logs-viewer/config.d.ts +4 -0
- package/dist/src/lib/components/logs-viewer/index.d.ts +14 -0
- package/dist/src/lib/components/logs-viewer/logs-list.d.ts +14 -0
- package/dist/src/lib/components/logs-viewer/logs-pagination.d.ts +12 -0
- package/dist/src/lib/components/logs-viewer/parse-worker.d.ts +1 -0
- package/dist/src/lib/components/logs-viewer/use-logs-pagination.d.ts +11 -0
- package/dist/src/lib/components/logs-viewer/use-size.d.ts +5 -0
- package/dist/src/lib/components/logs-viewer/xterm-viewer.d.ts +9 -0
- package/dist/src/lib/components/markdown-viewer/full-markdown.d.ts +7 -0
- package/dist/src/lib/components/markdown-viewer/index.d.ts +9 -0
- package/dist/src/lib/components/markdown-viewer/utils.d.ts +4 -0
- package/dist/src/lib/components/metadata-list/index.d.ts +16 -0
- package/dist/src/lib/components/modal-footer/index.d.ts +22 -0
- package/dist/src/lib/components/more-button/index.d.ts +8 -0
- package/dist/src/lib/components/no-result/index.d.ts +14 -0
- package/dist/src/lib/components/overlay-scroller/index.d.ts +26 -0
- package/dist/src/lib/components/page-breadcrumb/index.d.ts +4 -0
- package/dist/src/lib/components/page-tools/index.d.ts +56 -0
- package/dist/src/lib/components/popover/index.d.ts +3 -0
- package/dist/src/lib/components/progress-bar/index.d.ts +11 -0
- package/dist/src/lib/components/radio-buttons/index.d.ts +12 -0
- package/dist/src/lib/components/resize-container/index.d.ts +8 -0
- package/dist/src/lib/components/scroll-spy-tabs/index.d.ts +36 -0
- package/dist/src/lib/components/scroll-spy-tabs/use-field-scroll.d.ts +27 -0
- package/dist/src/lib/components/scroll-spy-tabs/use-finish-failed.d.ts +14 -0
- package/dist/src/lib/components/scroll-spy-tabs/use-scroll-active-change.d.ts +12 -0
- package/dist/src/lib/components/scroller-modal/gs-drawer.d.ts +9 -0
- package/dist/src/lib/components/scroller-modal/index.d.ts +5 -0
- package/dist/src/lib/components/scroller-modal/use-scroller-context.d.ts +6 -0
- package/dist/src/lib/components/segment-line/index.d.ts +9 -0
- package/dist/src/lib/components/select-panel/index.d.ts +15 -0
- package/dist/src/lib/components/select-panel/list.d.ts +16 -0
- package/dist/src/lib/components/select-panel/selected-list.d.ts +14 -0
- package/dist/src/lib/components/shortcut/index.d.ts +17 -0
- package/dist/src/lib/components/shortcut/keymap.d.ts +6 -0
- package/dist/src/lib/components/simple-overlay/index.d.ts +10 -0
- package/dist/src/lib/components/simple-table/header.d.ts +9 -0
- package/dist/src/lib/components/simple-table/index.d.ts +39 -0
- package/dist/src/lib/components/simple-table/info-column.d.ts +13 -0
- package/dist/src/lib/components/simple-table/row.d.ts +8 -0
- package/dist/src/lib/components/small-close-button/index.d.ts +5 -0
- package/dist/src/lib/components/speech-content/audio-player.d.ts +19 -0
- package/dist/src/lib/components/speech-content/index.d.ts +16 -0
- package/dist/src/lib/components/speech-content/speech-item.d.ts +20 -0
- package/dist/src/lib/components/status-icon/error.d.ts +4 -0
- package/dist/src/lib/components/status-tag/index.d.ts +33 -0
- package/dist/src/lib/components/table/components/cell-content.d.ts +4 -0
- package/dist/src/lib/components/table/components/header-prefix.d.ts +14 -0
- package/dist/src/lib/components/table/components/header.d.ts +11 -0
- package/dist/src/lib/components/table/components/layout.d.ts +21 -0
- package/dist/src/lib/components/table/components/pagination.d.ts +3 -0
- package/dist/src/lib/components/table/components/row-children.d.ts +2 -0
- package/dist/src/lib/components/table/components/row-prefix.d.ts +12 -0
- package/dist/src/lib/components/table/components/table-body.d.ts +21 -0
- package/dist/src/lib/components/table/components/table-cell.d.ts +4 -0
- package/dist/src/lib/components/table/components/table-header.d.ts +4 -0
- package/dist/src/lib/components/table/components/table-row.d.ts +4 -0
- package/dist/src/lib/components/table/components/table-skeleton.d.ts +3 -0
- package/dist/src/lib/components/table/index.d.ts +7 -0
- package/dist/src/lib/components/table/row-context.d.ts +11 -0
- package/dist/src/lib/components/table/table-context.d.ts +3 -0
- package/dist/src/lib/components/table/table-provider.d.ts +9 -0
- package/dist/src/lib/components/table/table-row-provider.d.ts +6 -0
- package/dist/src/lib/components/table/types.d.ts +106 -0
- package/dist/src/lib/components/table/use-sorter.d.ts +11 -0
- package/dist/src/lib/components/tags-wrapper/index.d.ts +8 -0
- package/dist/src/lib/components/tags-wrapper/more-dropdown.d.ts +6 -0
- package/dist/src/lib/components/tags-wrapper/theme-tag.d.ts +6 -0
- package/dist/src/lib/components/templates/card-list.d.ts +12 -0
- package/dist/src/lib/components/templates/card-skeleton.d.ts +7 -0
- package/dist/src/lib/components/templates/card.d.ts +17 -0
- package/dist/src/lib/components/terminal-tabs/index.d.ts +11 -0
- package/dist/src/lib/components/terminal-tabs/resize-container.d.ts +15 -0
- package/dist/src/lib/components/terminal-tabs/tabs.d.ts +9 -0
- package/dist/src/lib/components/terminal-tabs/types.d.ts +4 -0
- package/dist/src/lib/components/thumb-image/index.d.ts +20 -0
- package/dist/src/lib/components/tooltip-list/index.d.ts +9 -0
- package/dist/src/lib/components/transfer/index.d.ts +14 -0
- package/dist/src/lib/components/transition/index.d.ts +10 -0
- package/dist/src/lib/components/upload-audio/index.d.ts +16 -0
- package/dist/src/lib/components/upload-image/index.d.ts +20 -0
- package/dist/src/lib/components/viewer-editor/index.d.ts +15 -0
- package/dist/src/lib/components/x-terminal/index.d.ts +8 -0
- package/dist/src/lib/components/yaml-editor/editor.d.ts +15 -0
- package/dist/src/lib/components/yaml-editor/index.d.ts +17 -0
- package/dist/src/lib/config/hotkeys.d.ts +40 -0
- package/dist/src/lib/config/index.d.ts +20 -0
- package/dist/src/lib/constants/index.d.ts +6 -0
- package/dist/src/lib/context/CoreUIContext.d.ts +83 -0
- package/dist/src/lib/context/CoreUIProvider.d.ts +4 -0
- package/dist/src/lib/hooks/index.d.ts +23 -0
- package/dist/src/lib/hooks/json-parser-worker.d.ts +1 -0
- package/dist/src/lib/hooks/use-actions.d.ts +11 -0
- package/dist/src/lib/hooks/use-add-image.d.ts +15 -0
- package/dist/src/lib/hooks/use-app-utils.d.ts +6 -0
- package/dist/src/lib/hooks/use-body-scroll.d.ts +5 -0
- package/dist/src/lib/hooks/use-chunk-fetch.d.ts +20 -0
- package/dist/src/lib/hooks/use-chunk-request.d.ts +20 -0
- package/dist/src/lib/hooks/use-container-scroll.d.ts +7 -0
- package/dist/src/lib/hooks/use-deferred-request.d.ts +1 -0
- package/dist/src/lib/hooks/use-download-logs.d.ts +8 -0
- package/dist/src/lib/hooks/use-download-stream.d.ts +12 -0
- package/dist/src/lib/hooks/use-esc-hint.d.ts +7 -0
- package/dist/src/lib/hooks/use-expanded-row-keys.d.ts +10 -0
- package/dist/src/lib/hooks/use-overlay-scroller.d.ts +45 -0
- package/dist/src/lib/hooks/use-query-data-list.d.ts +35 -0
- package/dist/src/lib/hooks/use-request-token.d.ts +13 -0
- package/dist/src/lib/hooks/use-responsive.d.ts +10 -0
- package/dist/src/lib/hooks/use-stream-core/buffer-queue.d.ts +8 -0
- package/dist/src/lib/hooks/use-stream-core/fetch-stream.d.ts +1 -0
- package/dist/src/lib/hooks/use-stream-core/speed-monitor.d.ts +8 -0
- package/dist/src/lib/hooks/use-stream-core/stream-processor.d.ts +18 -0
- package/dist/src/lib/hooks/use-stream-core/use-chunk-fetch.d.ts +7 -0
- package/dist/src/lib/hooks/use-table-row-selection.d.ts +12 -0
- package/dist/src/lib/hooks/use-table-sort.d.ts +17 -0
- package/dist/src/lib/hooks/use-update-chunk-list.d.ts +26 -0
- package/dist/src/lib/hooks/use-watch-list.d.ts +4 -0
- package/dist/src/lib/hooks/use-window-resize.d.ts +10 -0
- package/dist/src/lib/hooks/useCoreUIContext.d.ts +2 -0
- package/dist/src/lib/hooks/useIntl.d.ts +7 -0
- package/dist/src/lib/index.d.ts +6 -0
- package/dist/src/lib/types/index.d.ts +40 -0
- package/dist/src/lib/types/table-fetch.d.ts +71 -0
- package/dist/src/lib/utils/download-stream.d.ts +1 -0
- package/dist/src/lib/utils/epub-reader.d.ts +1 -0
- package/dist/src/lib/utils/excel-reader.d.ts +19 -0
- package/dist/src/lib/utils/fetch-chunk-data.d.ts +55 -0
- package/dist/src/lib/utils/index.d.ts +52 -0
- package/dist/src/lib/utils/load-audio-file.d.ts +14 -0
- package/dist/src/lib/utils/pcm-to-wav.d.ts +9 -0
- package/dist/src/lib/utils/pdf-reader.d.ts +2 -0
- package/dist/src/lib/utils/pptx-reader.d.ts +2 -0
- package/dist/src/lib/utils/read-html.d.ts +1 -0
- package/dist/src/lib/utils/watch-request.d.ts +18 -0
- package/dist/src/lib/utils/word-reader.d.ts +1 -0
- package/package.json +138 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const SimpleCardItem: React.FC<{
|
|
3
|
+
title?: string;
|
|
4
|
+
content?: React.ReactNode;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
bordered?: boolean;
|
|
7
|
+
color?: string;
|
|
8
|
+
iconType?: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const SimpleCard: React.FC<{
|
|
11
|
+
dataList: {
|
|
12
|
+
label: string;
|
|
13
|
+
value: React.ReactNode;
|
|
14
|
+
color: string;
|
|
15
|
+
iconType: string;
|
|
16
|
+
}[];
|
|
17
|
+
height?: string | number;
|
|
18
|
+
bordered?: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
export default SimpleCard;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface CheckButtonsProps {
|
|
3
|
+
options: Global.BaseOption<string | number>[];
|
|
4
|
+
onChange: (value: string | number) => void;
|
|
5
|
+
cancelable?: boolean;
|
|
6
|
+
size?: 'small' | 'middle' | 'large';
|
|
7
|
+
type?: 'text' | 'primary' | 'default' | 'dashed' | 'link' | undefined;
|
|
8
|
+
}
|
|
9
|
+
declare const CheckButtons: React.FC<CheckButtonsProps>;
|
|
10
|
+
export default CheckButtons;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface CollapseProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
duration?: number;
|
|
6
|
+
minHeight?: number;
|
|
7
|
+
}
|
|
8
|
+
export default function Collapse({ open, children, minHeight, duration }: CollapseProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface CollapseContainerProps {
|
|
3
|
+
title?: React.ReactNode;
|
|
4
|
+
subtitle?: React.ReactNode;
|
|
5
|
+
right?: React.ReactNode;
|
|
6
|
+
deleteBtn?: React.ReactNode;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
collapsible?: boolean;
|
|
10
|
+
showExpandIcon?: boolean;
|
|
11
|
+
onToggle?: (open: boolean) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
variant?: 'outlined' | 'borderless' | undefined;
|
|
14
|
+
iconPlacement?: 'left' | 'right';
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
styles?: {
|
|
18
|
+
root?: React.CSSProperties;
|
|
19
|
+
body?: React.CSSProperties;
|
|
20
|
+
header?: React.CSSProperties;
|
|
21
|
+
content?: React.CSSProperties;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export default function CollapsibleContainer({ title, subtitle, right, deleteBtn, defaultOpen, open, onToggle, disabled, showExpandIcon, variant, className, collapsible, iconPlacement, styles: cardStyles, children }: CollapsibleContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CollapseProps } from 'antd';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
declare const CollapsePanel: React.FC<{
|
|
4
|
+
items: CollapseProps['items'];
|
|
5
|
+
activeKey: string | string[];
|
|
6
|
+
accordion?: boolean;
|
|
7
|
+
defaultActiveKey?: string | string[];
|
|
8
|
+
onChange?: (key: string | string[]) => void;
|
|
9
|
+
styles?: Record<string, React.CSSProperties>;
|
|
10
|
+
}>;
|
|
11
|
+
export default CollapsePanel;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const ColumnSettings: React.FC<{
|
|
3
|
+
width?: number;
|
|
4
|
+
fixedColumns?: string[];
|
|
5
|
+
tableName: string;
|
|
6
|
+
contentHeight: number;
|
|
7
|
+
columns: {
|
|
8
|
+
title: React.ReactNode;
|
|
9
|
+
dataIndex?: string;
|
|
10
|
+
children?: {
|
|
11
|
+
title: React.ReactNode;
|
|
12
|
+
dataIndex?: string;
|
|
13
|
+
}[];
|
|
14
|
+
}[];
|
|
15
|
+
selectedColumns?: string[];
|
|
16
|
+
defaultSelectedColumns?: string[];
|
|
17
|
+
grouped?: boolean;
|
|
18
|
+
onReset?: () => void;
|
|
19
|
+
onChange?: (selectedColumns: string[]) => void;
|
|
20
|
+
}>;
|
|
21
|
+
export default ColumnSettings;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ColumnWrapperProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
footer?: React.ReactNode;
|
|
5
|
+
maxHeight?: string | number;
|
|
6
|
+
paddingBottom?: number;
|
|
7
|
+
styles?: {
|
|
8
|
+
wrapper?: React.CSSProperties;
|
|
9
|
+
container?: React.CSSProperties;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
declare const ColumnWrapper: React.FC<ColumnWrapperProps>;
|
|
13
|
+
export default ColumnWrapper;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface WrapperContextProps {
|
|
2
|
+
osInstance?: any;
|
|
3
|
+
scroller?: any;
|
|
4
|
+
scrollEventElement?: any;
|
|
5
|
+
scrollToBottom?: () => void;
|
|
6
|
+
scrollToTop?: () => void;
|
|
7
|
+
getScrollElementScrollableHeight?: () => {
|
|
8
|
+
scrollHeight: number;
|
|
9
|
+
scrollTop: number;
|
|
10
|
+
};
|
|
11
|
+
scrollToTarget?: (target: any, offset?: number) => void;
|
|
12
|
+
getScrollElement?: () => HTMLElement | null;
|
|
13
|
+
setSScrollContentPaddingBottom?: (padding: number) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const WrapperContext: import('react').Context<WrapperContextProps>;
|
|
16
|
+
export declare const useWrapperContext: () => WrapperContextProps;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ViewerProps {
|
|
3
|
+
code: string;
|
|
4
|
+
copyText?: string;
|
|
5
|
+
options?: Global.BaseOption<string>[];
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
headerHeight?: number;
|
|
8
|
+
showTitle?: boolean;
|
|
9
|
+
height?: number;
|
|
10
|
+
lang?: string;
|
|
11
|
+
onChange?: (value: string | number) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const CommandViewer: React.FC<ViewerProps>;
|
|
14
|
+
export default CommandViewer;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type CopyButtonProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
text: string;
|
|
5
|
+
fontSize?: string;
|
|
6
|
+
type?: 'text' | 'primary' | 'dashed' | 'link' | 'default';
|
|
7
|
+
size?: 'small' | 'middle' | 'large';
|
|
8
|
+
shape?: 'circle' | 'round' | 'default';
|
|
9
|
+
tips?: string;
|
|
10
|
+
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
11
|
+
btnStyle?: React.CSSProperties;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
};
|
|
14
|
+
declare const CopyButton: React.FC<CopyButtonProps>;
|
|
15
|
+
export default CopyButton;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MenuProps } from 'antd';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Trigger = 'click' | 'hover';
|
|
4
|
+
interface DropdownButtonsProps {
|
|
5
|
+
items: MenuProps['items'];
|
|
6
|
+
size?: 'small' | 'middle' | 'large';
|
|
7
|
+
trigger?: Trigger[];
|
|
8
|
+
showText?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
variant?: 'filled' | 'outlined';
|
|
11
|
+
color?: string;
|
|
12
|
+
extra?: React.ReactNode;
|
|
13
|
+
onSelect: (val: any, item?: any) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const DropdownButtons: React.FC<DropdownButtonsProps & {
|
|
16
|
+
items: MenuProps['items'];
|
|
17
|
+
}>;
|
|
18
|
+
export default DropdownButtons;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as ComponentsMap } from '../../../../lib/components/form/config/components';
|
|
3
|
+
import { SealFormItemProps } from '../../../../lib/components/form/types';
|
|
4
|
+
interface FieldItemProps extends SealFormItemProps {
|
|
5
|
+
widget: keyof typeof ComponentsMap;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
declare const FieldItem: React.FC<FieldItemProps>;
|
|
9
|
+
export default FieldItem;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { statusType } from '../config/types';
|
|
3
|
+
interface ListMapProps {
|
|
4
|
+
minItems?: number;
|
|
5
|
+
dataList: any[];
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
btnText?: string;
|
|
8
|
+
requiredFields?: string[];
|
|
9
|
+
validateStatusList?: Record<string, statusType>[];
|
|
10
|
+
properties: Record<string, any>;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onAdd?: (data: any[]) => void;
|
|
13
|
+
onDelete?: (deletedItem: any, data: any[]) => void;
|
|
14
|
+
onChange?: (data: any) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const ListMap: React.FC<ListMapProps>;
|
|
17
|
+
export default ListMap;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface FieldSchema {
|
|
3
|
+
type: 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
4
|
+
title?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
properties?: Record<string, FieldSchema>;
|
|
8
|
+
default?: any;
|
|
9
|
+
enum?: string[];
|
|
10
|
+
minItems?: number;
|
|
11
|
+
maxItems?: number;
|
|
12
|
+
items?: FieldSchema[];
|
|
13
|
+
widget?: string;
|
|
14
|
+
min?: number;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
required?: string[];
|
|
17
|
+
}
|
|
18
|
+
export type statusType = 'error' | 'warning' | '' | undefined;
|
|
19
|
+
export interface FormWidgetProps {
|
|
20
|
+
status?: statusType;
|
|
21
|
+
isInFormItems?: boolean;
|
|
22
|
+
widget: 'Input' | 'Select' | 'Checkbox' | 'InputNumber';
|
|
23
|
+
name: string;
|
|
24
|
+
title?: string;
|
|
25
|
+
required?: boolean;
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
readOnly?: boolean;
|
|
28
|
+
options?: {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string | number;
|
|
31
|
+
}[];
|
|
32
|
+
description?: string;
|
|
33
|
+
enum?: (string | number)[];
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
value?: any;
|
|
36
|
+
checked?: boolean;
|
|
37
|
+
min?: number;
|
|
38
|
+
max?: number;
|
|
39
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { statusType } from '../config/types';
|
|
2
|
+
export default function useValidateFields(params: {
|
|
3
|
+
requiredFields?: string[];
|
|
4
|
+
setValidateStatusList: (statusList: {
|
|
5
|
+
[key: string]: statusType;
|
|
6
|
+
}[]) => void;
|
|
7
|
+
}): {
|
|
8
|
+
listMapValidator: (_: any, valueList: any) => Promise<void>;
|
|
9
|
+
toggleValidation: (enabled: boolean) => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FieldSchema } from './config/types';
|
|
3
|
+
interface DynamicFormProps {
|
|
4
|
+
schema: FieldSchema;
|
|
5
|
+
onSubmit: (values: any) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const DynamicForm: React.FC<DynamicFormProps>;
|
|
8
|
+
export default DynamicForm;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
export declare const grid: {
|
|
2
|
+
left: number;
|
|
3
|
+
right: number;
|
|
4
|
+
bottom: number;
|
|
5
|
+
containLabel: boolean;
|
|
6
|
+
};
|
|
7
|
+
export default function useChartConfig(): {
|
|
8
|
+
token: import('antd').GlobalToken;
|
|
9
|
+
tooltip: {
|
|
10
|
+
trigger: string;
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
formatter(params: any, callback?: (val: any) => any): string;
|
|
14
|
+
};
|
|
15
|
+
grid: {
|
|
16
|
+
left: number;
|
|
17
|
+
right: number;
|
|
18
|
+
bottom: number;
|
|
19
|
+
containLabel: boolean;
|
|
20
|
+
};
|
|
21
|
+
legend: {
|
|
22
|
+
itemWidth: number;
|
|
23
|
+
itemHeight: number;
|
|
24
|
+
itemGap: number;
|
|
25
|
+
textStyle: {
|
|
26
|
+
color: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
xAxis: {
|
|
30
|
+
type: string;
|
|
31
|
+
axisTick: {
|
|
32
|
+
show: boolean;
|
|
33
|
+
lineStyle: {
|
|
34
|
+
color: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
axisLabel: {
|
|
38
|
+
color: string;
|
|
39
|
+
fontSize: number;
|
|
40
|
+
};
|
|
41
|
+
axisLine: {
|
|
42
|
+
show: boolean;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
yAxis: {
|
|
46
|
+
nameTextStyle: {
|
|
47
|
+
padding: number[];
|
|
48
|
+
};
|
|
49
|
+
splitLine: {
|
|
50
|
+
show: boolean;
|
|
51
|
+
lineStyle: {
|
|
52
|
+
type: string;
|
|
53
|
+
color: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
axisLabel: {
|
|
57
|
+
color: string;
|
|
58
|
+
fontSize: number;
|
|
59
|
+
formatter: (value: number) => string | number;
|
|
60
|
+
};
|
|
61
|
+
axisTick: {
|
|
62
|
+
show: boolean;
|
|
63
|
+
};
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
title: {
|
|
67
|
+
show: boolean;
|
|
68
|
+
left: string;
|
|
69
|
+
textStyle: {
|
|
70
|
+
fontSize: number;
|
|
71
|
+
color: string;
|
|
72
|
+
};
|
|
73
|
+
text: string;
|
|
74
|
+
};
|
|
75
|
+
chartColorMap: {
|
|
76
|
+
titleColor: string;
|
|
77
|
+
splitLineColor: string;
|
|
78
|
+
tickLineColor: string;
|
|
79
|
+
axislabelColor: string;
|
|
80
|
+
colorSecondary: string;
|
|
81
|
+
colorTertiary: string;
|
|
82
|
+
gaugeBgColor: string;
|
|
83
|
+
gaugeSplitLineColor: string;
|
|
84
|
+
gaugeSplitLineColor2: string;
|
|
85
|
+
colorBgContainerHover: string;
|
|
86
|
+
};
|
|
87
|
+
barItemConfig: {
|
|
88
|
+
type: string;
|
|
89
|
+
barMaxWidth: number;
|
|
90
|
+
barMinWidth: number;
|
|
91
|
+
barGap: string;
|
|
92
|
+
barCategoryGap: string;
|
|
93
|
+
};
|
|
94
|
+
lineItemConfig: {
|
|
95
|
+
type: string;
|
|
96
|
+
smooth: boolean;
|
|
97
|
+
showSymbol: boolean;
|
|
98
|
+
itemStyle: {};
|
|
99
|
+
lineStyle: {
|
|
100
|
+
width: number;
|
|
101
|
+
opacity: number;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
gaugeItemConfig: {
|
|
105
|
+
type: string;
|
|
106
|
+
radius: string;
|
|
107
|
+
center: string[];
|
|
108
|
+
startAngle: number;
|
|
109
|
+
endAngle: number;
|
|
110
|
+
min: number;
|
|
111
|
+
max: number;
|
|
112
|
+
splitNumber: number;
|
|
113
|
+
progress: {
|
|
114
|
+
show: boolean;
|
|
115
|
+
roundCap: boolean;
|
|
116
|
+
width: number;
|
|
117
|
+
};
|
|
118
|
+
pointer: {
|
|
119
|
+
length: string;
|
|
120
|
+
width: number;
|
|
121
|
+
itemStyle: {
|
|
122
|
+
color: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
axisLine: {
|
|
126
|
+
roundCap: boolean;
|
|
127
|
+
lineStyle: {
|
|
128
|
+
width: number;
|
|
129
|
+
color: (string | number)[][];
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
axisTick: {
|
|
133
|
+
distance: number;
|
|
134
|
+
length: number;
|
|
135
|
+
splitNumber: number;
|
|
136
|
+
lineStyle: {
|
|
137
|
+
width: number;
|
|
138
|
+
color: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
splitLine: {
|
|
142
|
+
distance: number;
|
|
143
|
+
length: number;
|
|
144
|
+
lineStyle: {
|
|
145
|
+
width: number;
|
|
146
|
+
color: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
axisLabel: {
|
|
150
|
+
distance: number;
|
|
151
|
+
color: string;
|
|
152
|
+
fontSize: number;
|
|
153
|
+
};
|
|
154
|
+
detail: {
|
|
155
|
+
lineHeight: number;
|
|
156
|
+
height: number;
|
|
157
|
+
offsetCenter: number[];
|
|
158
|
+
valueAnimation: boolean;
|
|
159
|
+
fontSize: number;
|
|
160
|
+
color: string;
|
|
161
|
+
formatter(value: any): string;
|
|
162
|
+
rich: {
|
|
163
|
+
value: {
|
|
164
|
+
fontSize: number;
|
|
165
|
+
fontWeight: number;
|
|
166
|
+
color: string;
|
|
167
|
+
};
|
|
168
|
+
unit: {
|
|
169
|
+
fontSize: number;
|
|
170
|
+
color: string;
|
|
171
|
+
fontWeight: number;
|
|
172
|
+
padding: number[];
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
isDark: boolean | undefined;
|
|
178
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BarSeriesOption, GaugeSeriesOption, LineSeriesOption, ScatterSeriesOption } from 'echarts/charts';
|
|
2
|
+
import { DatasetComponentOption, GridComponentOption, TitleComponentOption, TooltipComponentOption } from 'echarts/components';
|
|
3
|
+
import { ComposeOption } from 'echarts/core';
|
|
4
|
+
import * as echarts from 'echarts/core';
|
|
5
|
+
type ECOption = ComposeOption<BarSeriesOption | LineSeriesOption | TitleComponentOption | TooltipComponentOption | GridComponentOption | DatasetComponentOption | GaugeSeriesOption | ScatterSeriesOption>;
|
|
6
|
+
export type { ECOption };
|
|
7
|
+
export default echarts;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { LegendComponentOption, TitleComponentOption } from 'echarts/components';
|
|
2
|
+
export interface ChartProps {
|
|
3
|
+
seriesData: any[];
|
|
4
|
+
showEmpty?: boolean;
|
|
5
|
+
showArea?: boolean;
|
|
6
|
+
xAxisData: string[];
|
|
7
|
+
legendData?: LegendComponentOption['data'];
|
|
8
|
+
legendOptions?: {
|
|
9
|
+
[K in keyof LegendComponentOption]?: LegendComponentOption[K];
|
|
10
|
+
};
|
|
11
|
+
gridOptions?: {
|
|
12
|
+
left?: string | number;
|
|
13
|
+
right?: string | number;
|
|
14
|
+
top?: string | number;
|
|
15
|
+
bottom?: string | number;
|
|
16
|
+
};
|
|
17
|
+
labelFormatter?: (val?: any, index?: number) => string;
|
|
18
|
+
tooltipValueFormatter?: (val: any) => string;
|
|
19
|
+
height: string | number;
|
|
20
|
+
width?: string | number;
|
|
21
|
+
title?: string | TitleComponentOption;
|
|
22
|
+
titleOptions?: {
|
|
23
|
+
[K in keyof TitleComponentOption]?: TitleComponentOption[K];
|
|
24
|
+
};
|
|
25
|
+
value?: number;
|
|
26
|
+
smooth?: boolean;
|
|
27
|
+
color?: string;
|
|
28
|
+
yAxisName?: string;
|
|
29
|
+
gaugeConfig?: {
|
|
30
|
+
radius?: string;
|
|
31
|
+
center?: string[];
|
|
32
|
+
startAngle?: number;
|
|
33
|
+
endAngle?: number;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export interface AreaChartItemProps {
|
|
37
|
+
name: string;
|
|
38
|
+
color: string;
|
|
39
|
+
areaStyle: any;
|
|
40
|
+
data: {
|
|
41
|
+
time: string;
|
|
42
|
+
value: number;
|
|
43
|
+
}[];
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface EditorwrapProps {
|
|
3
|
+
headerHeight?: number;
|
|
4
|
+
header?: React.ReactNode;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
variant?: 'bordered' | 'borderless';
|
|
7
|
+
styles?: {
|
|
8
|
+
wrapper?: React.CSSProperties;
|
|
9
|
+
header?: React.CSSProperties;
|
|
10
|
+
content?: React.CSSProperties;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
declare const EditorWrap: React.FC<EditorwrapProps>;
|
|
14
|
+
export default EditorWrap;
|