@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.
Files changed (266) hide show
  1. package/README.md +1 -0
  2. package/dist/assets/invert-worker-CFNPVgCi.js +1 -0
  3. package/dist/assets/json-parser-worker-DtJw0BTZ.js +1 -0
  4. package/dist/assets/offscreen-worker-DL5yJmAw.js +1 -0
  5. package/dist/assets/parse-worker-Dzai8qsE.js +5 -0
  6. package/dist/favicon.ico +0 -0
  7. package/dist/index.cjs.js +2613 -0
  8. package/dist/index.css +1 -0
  9. package/dist/index.es.js +179547 -0
  10. package/dist/monaco-editor-CHfVLkob.js +103874 -0
  11. package/dist/monaco-editor-Df8eM8W1.js +802 -0
  12. package/dist/monaco-editor.css +1 -0
  13. package/dist/rolldown-runtime-BETGA6I9.js +23 -0
  14. package/dist/rolldown-runtime-D_0Db6FZ.js +1 -0
  15. package/dist/src/index.d.ts +1 -0
  16. package/dist/src/lib/components/alert-info/block.d.ts +16 -0
  17. package/dist/src/lib/components/alert-info/index.d.ts +11 -0
  18. package/dist/src/lib/components/audio-animation/index.d.ts +16 -0
  19. package/dist/src/lib/components/audio-player/audio-element.d.ts +3 -0
  20. package/dist/src/lib/components/audio-player/config/type.d.ts +25 -0
  21. package/dist/src/lib/components/audio-player/index.d.ts +14 -0
  22. package/dist/src/lib/components/audio-player/raw-audio-player.d.ts +4 -0
  23. package/dist/src/lib/components/audio-player/simple-audio.d.ts +16 -0
  24. package/dist/src/lib/components/auto-image/index.d.ts +10 -0
  25. package/dist/src/lib/components/auto-image/single-image.d.ts +26 -0
  26. package/dist/src/lib/components/auto-tooltip/index.d.ts +18 -0
  27. package/dist/src/lib/components/auto-tooltip/title-tip.d.ts +9 -0
  28. package/dist/src/lib/components/bibtex-viewer/index.d.ts +5 -0
  29. package/dist/src/lib/components/card-wrapper/index.d.ts +2 -0
  30. package/dist/src/lib/components/card-wrapper/simple-card.d.ts +20 -0
  31. package/dist/src/lib/components/check-buttons/index.d.ts +10 -0
  32. package/dist/src/lib/components/collapse-container/headless-collapse.d.ts +9 -0
  33. package/dist/src/lib/components/collapse-container/index.d.ts +24 -0
  34. package/dist/src/lib/components/collapse-panel/index.d.ts +11 -0
  35. package/dist/src/lib/components/column-settings/index.d.ts +21 -0
  36. package/dist/src/lib/components/column-wrapper/index.d.ts +13 -0
  37. package/dist/src/lib/components/column-wrapper/use-wrapper-context.d.ts +17 -0
  38. package/dist/src/lib/components/command-viewer/index.d.ts +14 -0
  39. package/dist/src/lib/components/content-wrapper/index.d.ts +8 -0
  40. package/dist/src/lib/components/copy-button/index.d.ts +15 -0
  41. package/dist/src/lib/components/delete-modal/index.d.ts +2 -0
  42. package/dist/src/lib/components/divider-line/index.d.ts +2 -0
  43. package/dist/src/lib/components/doc-link/index.d.ts +6 -0
  44. package/dist/src/lib/components/drop-down-actions/index.d.ts +4 -0
  45. package/dist/src/lib/components/drop-down-buttons/index.d.ts +18 -0
  46. package/dist/src/lib/components/dynamic-form/components/field-item.d.ts +9 -0
  47. package/dist/src/lib/components/dynamic-form/components/form-widget.d.ts +6 -0
  48. package/dist/src/lib/components/dynamic-form/components/list-map.d.ts +17 -0
  49. package/dist/src/lib/components/dynamic-form/config/types.d.ts +39 -0
  50. package/dist/src/lib/components/dynamic-form/hooks/use-parse-fields.d.ts +7 -0
  51. package/dist/src/lib/components/dynamic-form/hooks/use-validate-fields.d.ts +10 -0
  52. package/dist/src/lib/components/dynamic-form/index.d.ts +8 -0
  53. package/dist/src/lib/components/echarts/bar-chart.d.ts +4 -0
  54. package/dist/src/lib/components/echarts/chart-tooltip.d.ts +7 -0
  55. package/dist/src/lib/components/echarts/chart.d.ts +10 -0
  56. package/dist/src/lib/components/echarts/config.d.ts +178 -0
  57. package/dist/src/lib/components/echarts/gauge.d.ts +4 -0
  58. package/dist/src/lib/components/echarts/h-bar.d.ts +6 -0
  59. package/dist/src/lib/components/echarts/index.d.ts +7 -0
  60. package/dist/src/lib/components/echarts/line-chart.d.ts +4 -0
  61. package/dist/src/lib/components/echarts/mix-line-bar.d.ts +9 -0
  62. package/dist/src/lib/components/echarts/scatter.d.ts +7 -0
  63. package/dist/src/lib/components/echarts/types.d.ts +44 -0
  64. package/dist/src/lib/components/editor-wrap/index.d.ts +14 -0
  65. package/dist/src/lib/components/empty-data/index.d.ts +6 -0
  66. package/dist/src/lib/components/error-message-content/index.d.ts +4 -0
  67. package/dist/src/lib/components/filter-form/index.d.ts +17 -0
  68. package/dist/src/lib/components/footer/index.d.ts +6 -0
  69. package/dist/src/lib/components/form/auto-complete.d.ts +9 -0
  70. package/dist/src/lib/components/form/base/select.d.ts +7 -0
  71. package/dist/src/lib/components/form/cascader.d.ts +10 -0
  72. package/dist/src/lib/components/form/checkbox-field.d.ts +10 -0
  73. package/dist/src/lib/components/form/checkbox.d.ts +7 -0
  74. package/dist/src/lib/components/form/components/label-info.d.ts +9 -0
  75. package/dist/src/lib/components/form/components/not-found-content.d.ts +7 -0
  76. package/dist/src/lib/components/form/config/components.d.ts +17 -0
  77. package/dist/src/lib/components/form/config/index.d.ts +7 -0
  78. package/dist/src/lib/components/form/field-component.d.ts +4 -0
  79. package/dist/src/lib/components/form/hooks/use-select-render.d.ts +11 -0
  80. package/dist/src/lib/components/form/input-number.d.ts +5 -0
  81. package/dist/src/lib/components/form/input-search.d.ts +5 -0
  82. package/dist/src/lib/components/form/input.d.ts +7 -0
  83. package/dist/src/lib/components/form/multiple-select.d.ts +7 -0
  84. package/dist/src/lib/components/form/password.d.ts +6 -0
  85. package/dist/src/lib/components/form/row-textarea.d.ts +36 -0
  86. package/dist/src/lib/components/form/select.d.ts +8 -0
  87. package/dist/src/lib/components/form/simple-select.d.ts +7 -0
  88. package/dist/src/lib/components/form/slider.d.ts +13 -0
  89. package/dist/src/lib/components/form/switch-input.d.ts +15 -0
  90. package/dist/src/lib/components/form/switch.d.ts +12 -0
  91. package/dist/src/lib/components/form/textarea.d.ts +9 -0
  92. package/dist/src/lib/components/form/types.d.ts +14 -0
  93. package/dist/src/lib/components/form/wrapper/auto-complete-label.d.ts +2 -0
  94. package/dist/src/lib/components/form/wrapper/index.d.ts +32 -0
  95. package/dist/src/lib/components/form/wrapper/input.d.ts +2 -0
  96. package/dist/src/lib/components/form/wrapper/select.d.ts +2 -0
  97. package/dist/src/lib/components/form/wrapper/slider.d.ts +2 -0
  98. package/dist/src/lib/components/form-buttons/index.d.ts +11 -0
  99. package/dist/src/lib/components/form-drawer/index.d.ts +13 -0
  100. package/dist/src/lib/components/grafana-icon/index.d.ts +6 -0
  101. package/dist/src/lib/components/highlight-code/code-viewer-dark.d.ts +13 -0
  102. package/dist/src/lib/components/highlight-code/code-viewer-light.d.ts +13 -0
  103. package/dist/src/lib/components/highlight-code/code-viewer.d.ts +14 -0
  104. package/dist/src/lib/components/highlight-code/index.d.ts +13 -0
  105. package/dist/src/lib/components/highlight-code/utils.d.ts +1 -0
  106. package/dist/src/lib/components/icon-font/icons.d.ts +153 -0
  107. package/dist/src/lib/components/icon-font/index.d.ts +7 -0
  108. package/dist/src/lib/components/image-editor/extract-image-colors.d.ts +10 -0
  109. package/dist/src/lib/components/image-editor/hooks/use-drawing.d.ts +66 -0
  110. package/dist/src/lib/components/image-editor/hooks/use-zoom.d.ts +21 -0
  111. package/dist/src/lib/components/image-editor/index.d.ts +30 -0
  112. package/dist/src/lib/components/image-editor/invert-worker.d.ts +1 -0
  113. package/dist/src/lib/components/image-editor/offscreen-worker.d.ts +1 -0
  114. package/dist/src/lib/components/image-editor/tools-bar.d.ts +28 -0
  115. package/dist/src/lib/components/index.d.ts +127 -0
  116. package/dist/src/lib/components/infinite-scroller/index.d.ts +6 -0
  117. package/dist/src/lib/components/infinite-scroller/infinite-scroller-provider.d.ts +7 -0
  118. package/dist/src/lib/components/infinite-scroller/use-infinite-scroll.d.ts +12 -0
  119. package/dist/src/lib/components/infinite-scroller/use-scroller-context.d.ts +10 -0
  120. package/dist/src/lib/components/label-cell/index.d.ts +6 -0
  121. package/dist/src/lib/components/label-selector/autocomplete-item.d.ts +27 -0
  122. package/dist/src/lib/components/label-selector/context.d.ts +15 -0
  123. package/dist/src/lib/components/label-selector/index.d.ts +15 -0
  124. package/dist/src/lib/components/label-selector/inner.d.ts +23 -0
  125. package/dist/src/lib/components/label-selector/label-item.d.ts +26 -0
  126. package/dist/src/lib/components/label-selector/label-selector-provider.d.ts +6 -0
  127. package/dist/src/lib/components/label-selector/wrapper.d.ts +17 -0
  128. package/dist/src/lib/components/list-input/hint-input.d.ts +13 -0
  129. package/dist/src/lib/components/list-input/index.d.ts +25 -0
  130. package/dist/src/lib/components/list-input/list-item.d.ts +21 -0
  131. package/dist/src/lib/components/logs-viewer/config.d.ts +4 -0
  132. package/dist/src/lib/components/logs-viewer/index.d.ts +14 -0
  133. package/dist/src/lib/components/logs-viewer/logs-list.d.ts +14 -0
  134. package/dist/src/lib/components/logs-viewer/logs-pagination.d.ts +12 -0
  135. package/dist/src/lib/components/logs-viewer/parse-worker.d.ts +1 -0
  136. package/dist/src/lib/components/logs-viewer/use-logs-pagination.d.ts +11 -0
  137. package/dist/src/lib/components/logs-viewer/use-size.d.ts +5 -0
  138. package/dist/src/lib/components/logs-viewer/xterm-viewer.d.ts +9 -0
  139. package/dist/src/lib/components/markdown-viewer/full-markdown.d.ts +7 -0
  140. package/dist/src/lib/components/markdown-viewer/index.d.ts +9 -0
  141. package/dist/src/lib/components/markdown-viewer/utils.d.ts +4 -0
  142. package/dist/src/lib/components/metadata-list/index.d.ts +16 -0
  143. package/dist/src/lib/components/modal-footer/index.d.ts +22 -0
  144. package/dist/src/lib/components/more-button/index.d.ts +8 -0
  145. package/dist/src/lib/components/no-result/index.d.ts +14 -0
  146. package/dist/src/lib/components/overlay-scroller/index.d.ts +26 -0
  147. package/dist/src/lib/components/page-breadcrumb/index.d.ts +4 -0
  148. package/dist/src/lib/components/page-tools/index.d.ts +56 -0
  149. package/dist/src/lib/components/popover/index.d.ts +3 -0
  150. package/dist/src/lib/components/progress-bar/index.d.ts +11 -0
  151. package/dist/src/lib/components/radio-buttons/index.d.ts +12 -0
  152. package/dist/src/lib/components/resize-container/index.d.ts +8 -0
  153. package/dist/src/lib/components/scroll-spy-tabs/index.d.ts +36 -0
  154. package/dist/src/lib/components/scroll-spy-tabs/use-field-scroll.d.ts +27 -0
  155. package/dist/src/lib/components/scroll-spy-tabs/use-finish-failed.d.ts +14 -0
  156. package/dist/src/lib/components/scroll-spy-tabs/use-scroll-active-change.d.ts +12 -0
  157. package/dist/src/lib/components/scroller-modal/gs-drawer.d.ts +9 -0
  158. package/dist/src/lib/components/scroller-modal/index.d.ts +5 -0
  159. package/dist/src/lib/components/scroller-modal/use-scroller-context.d.ts +6 -0
  160. package/dist/src/lib/components/segment-line/index.d.ts +9 -0
  161. package/dist/src/lib/components/select-panel/index.d.ts +15 -0
  162. package/dist/src/lib/components/select-panel/list.d.ts +16 -0
  163. package/dist/src/lib/components/select-panel/selected-list.d.ts +14 -0
  164. package/dist/src/lib/components/shortcut/index.d.ts +17 -0
  165. package/dist/src/lib/components/shortcut/keymap.d.ts +6 -0
  166. package/dist/src/lib/components/simple-overlay/index.d.ts +10 -0
  167. package/dist/src/lib/components/simple-table/header.d.ts +9 -0
  168. package/dist/src/lib/components/simple-table/index.d.ts +39 -0
  169. package/dist/src/lib/components/simple-table/info-column.d.ts +13 -0
  170. package/dist/src/lib/components/simple-table/row.d.ts +8 -0
  171. package/dist/src/lib/components/small-close-button/index.d.ts +5 -0
  172. package/dist/src/lib/components/speech-content/audio-player.d.ts +19 -0
  173. package/dist/src/lib/components/speech-content/index.d.ts +16 -0
  174. package/dist/src/lib/components/speech-content/speech-item.d.ts +20 -0
  175. package/dist/src/lib/components/status-icon/error.d.ts +4 -0
  176. package/dist/src/lib/components/status-tag/index.d.ts +33 -0
  177. package/dist/src/lib/components/table/components/cell-content.d.ts +4 -0
  178. package/dist/src/lib/components/table/components/header-prefix.d.ts +14 -0
  179. package/dist/src/lib/components/table/components/header.d.ts +11 -0
  180. package/dist/src/lib/components/table/components/layout.d.ts +21 -0
  181. package/dist/src/lib/components/table/components/pagination.d.ts +3 -0
  182. package/dist/src/lib/components/table/components/row-children.d.ts +2 -0
  183. package/dist/src/lib/components/table/components/row-prefix.d.ts +12 -0
  184. package/dist/src/lib/components/table/components/table-body.d.ts +21 -0
  185. package/dist/src/lib/components/table/components/table-cell.d.ts +4 -0
  186. package/dist/src/lib/components/table/components/table-header.d.ts +4 -0
  187. package/dist/src/lib/components/table/components/table-row.d.ts +4 -0
  188. package/dist/src/lib/components/table/components/table-skeleton.d.ts +3 -0
  189. package/dist/src/lib/components/table/index.d.ts +7 -0
  190. package/dist/src/lib/components/table/row-context.d.ts +11 -0
  191. package/dist/src/lib/components/table/table-context.d.ts +3 -0
  192. package/dist/src/lib/components/table/table-provider.d.ts +9 -0
  193. package/dist/src/lib/components/table/table-row-provider.d.ts +6 -0
  194. package/dist/src/lib/components/table/types.d.ts +106 -0
  195. package/dist/src/lib/components/table/use-sorter.d.ts +11 -0
  196. package/dist/src/lib/components/tags-wrapper/index.d.ts +8 -0
  197. package/dist/src/lib/components/tags-wrapper/more-dropdown.d.ts +6 -0
  198. package/dist/src/lib/components/tags-wrapper/theme-tag.d.ts +6 -0
  199. package/dist/src/lib/components/templates/card-list.d.ts +12 -0
  200. package/dist/src/lib/components/templates/card-skeleton.d.ts +7 -0
  201. package/dist/src/lib/components/templates/card.d.ts +17 -0
  202. package/dist/src/lib/components/terminal-tabs/index.d.ts +11 -0
  203. package/dist/src/lib/components/terminal-tabs/resize-container.d.ts +15 -0
  204. package/dist/src/lib/components/terminal-tabs/tabs.d.ts +9 -0
  205. package/dist/src/lib/components/terminal-tabs/types.d.ts +4 -0
  206. package/dist/src/lib/components/thumb-image/index.d.ts +20 -0
  207. package/dist/src/lib/components/tooltip-list/index.d.ts +9 -0
  208. package/dist/src/lib/components/transfer/index.d.ts +14 -0
  209. package/dist/src/lib/components/transition/index.d.ts +10 -0
  210. package/dist/src/lib/components/upload-audio/index.d.ts +16 -0
  211. package/dist/src/lib/components/upload-image/index.d.ts +20 -0
  212. package/dist/src/lib/components/viewer-editor/index.d.ts +15 -0
  213. package/dist/src/lib/components/x-terminal/index.d.ts +8 -0
  214. package/dist/src/lib/components/yaml-editor/editor.d.ts +15 -0
  215. package/dist/src/lib/components/yaml-editor/index.d.ts +17 -0
  216. package/dist/src/lib/config/hotkeys.d.ts +40 -0
  217. package/dist/src/lib/config/index.d.ts +20 -0
  218. package/dist/src/lib/constants/index.d.ts +6 -0
  219. package/dist/src/lib/context/CoreUIContext.d.ts +83 -0
  220. package/dist/src/lib/context/CoreUIProvider.d.ts +4 -0
  221. package/dist/src/lib/hooks/index.d.ts +23 -0
  222. package/dist/src/lib/hooks/json-parser-worker.d.ts +1 -0
  223. package/dist/src/lib/hooks/use-actions.d.ts +11 -0
  224. package/dist/src/lib/hooks/use-add-image.d.ts +15 -0
  225. package/dist/src/lib/hooks/use-app-utils.d.ts +6 -0
  226. package/dist/src/lib/hooks/use-body-scroll.d.ts +5 -0
  227. package/dist/src/lib/hooks/use-chunk-fetch.d.ts +20 -0
  228. package/dist/src/lib/hooks/use-chunk-request.d.ts +20 -0
  229. package/dist/src/lib/hooks/use-container-scroll.d.ts +7 -0
  230. package/dist/src/lib/hooks/use-deferred-request.d.ts +1 -0
  231. package/dist/src/lib/hooks/use-download-logs.d.ts +8 -0
  232. package/dist/src/lib/hooks/use-download-stream.d.ts +12 -0
  233. package/dist/src/lib/hooks/use-esc-hint.d.ts +7 -0
  234. package/dist/src/lib/hooks/use-expanded-row-keys.d.ts +10 -0
  235. package/dist/src/lib/hooks/use-overlay-scroller.d.ts +45 -0
  236. package/dist/src/lib/hooks/use-query-data-list.d.ts +35 -0
  237. package/dist/src/lib/hooks/use-request-token.d.ts +13 -0
  238. package/dist/src/lib/hooks/use-responsive.d.ts +10 -0
  239. package/dist/src/lib/hooks/use-stream-core/buffer-queue.d.ts +8 -0
  240. package/dist/src/lib/hooks/use-stream-core/fetch-stream.d.ts +1 -0
  241. package/dist/src/lib/hooks/use-stream-core/speed-monitor.d.ts +8 -0
  242. package/dist/src/lib/hooks/use-stream-core/stream-processor.d.ts +18 -0
  243. package/dist/src/lib/hooks/use-stream-core/use-chunk-fetch.d.ts +7 -0
  244. package/dist/src/lib/hooks/use-table-row-selection.d.ts +12 -0
  245. package/dist/src/lib/hooks/use-table-sort.d.ts +17 -0
  246. package/dist/src/lib/hooks/use-update-chunk-list.d.ts +26 -0
  247. package/dist/src/lib/hooks/use-watch-list.d.ts +4 -0
  248. package/dist/src/lib/hooks/use-window-resize.d.ts +10 -0
  249. package/dist/src/lib/hooks/useCoreUIContext.d.ts +2 -0
  250. package/dist/src/lib/hooks/useIntl.d.ts +7 -0
  251. package/dist/src/lib/index.d.ts +6 -0
  252. package/dist/src/lib/types/index.d.ts +40 -0
  253. package/dist/src/lib/types/table-fetch.d.ts +71 -0
  254. package/dist/src/lib/utils/download-stream.d.ts +1 -0
  255. package/dist/src/lib/utils/epub-reader.d.ts +1 -0
  256. package/dist/src/lib/utils/excel-reader.d.ts +19 -0
  257. package/dist/src/lib/utils/fetch-chunk-data.d.ts +55 -0
  258. package/dist/src/lib/utils/index.d.ts +52 -0
  259. package/dist/src/lib/utils/load-audio-file.d.ts +14 -0
  260. package/dist/src/lib/utils/pcm-to-wav.d.ts +9 -0
  261. package/dist/src/lib/utils/pdf-reader.d.ts +2 -0
  262. package/dist/src/lib/utils/pptx-reader.d.ts +2 -0
  263. package/dist/src/lib/utils/read-html.d.ts +1 -0
  264. package/dist/src/lib/utils/watch-request.d.ts +18 -0
  265. package/dist/src/lib/utils/word-reader.d.ts +1 -0
  266. package/package.json +138 -0
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ interface ListInputProps {
3
+ required?: boolean;
4
+ dataList: string[];
5
+ label?: React.ReactNode;
6
+ description?: React.ReactNode;
7
+ btnText?: string;
8
+ options?: Global.HintOptions[];
9
+ placeholder?: string;
10
+ labelExtra?: React.ReactNode;
11
+ trim?: boolean;
12
+ styles?: {
13
+ wrapper?: React.CSSProperties;
14
+ item?: React.CSSProperties;
15
+ };
16
+ onChange: (data: string[]) => void;
17
+ onBlur?: (e: any, index: number) => void;
18
+ onDelete?: (index: number) => void;
19
+ renderItem?: (data: any, props: {
20
+ onChange: (value: string) => void;
21
+ onBlur?: (e: any) => void;
22
+ }) => React.ReactNode;
23
+ }
24
+ declare const ListInput: React.FC<ListInputProps>;
25
+ export default ListInput;
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ interface LabelItemProps {
3
+ onRemove: () => void;
4
+ onChange: (value: string) => void;
5
+ onBlur?: (e: any) => void;
6
+ onPaste?: (e: any) => void;
7
+ renderItem?: (data: any, props: {
8
+ onChange: (value: string) => void;
9
+ onBlur?: (e: any) => void;
10
+ onPaste?: (e: any) => void;
11
+ }) => React.ReactNode;
12
+ value: string;
13
+ label?: string;
14
+ placeholder?: string;
15
+ options?: Global.HintOptions[];
16
+ trim?: boolean;
17
+ data?: any;
18
+ required?: boolean;
19
+ }
20
+ declare const ListItem: React.FC<LabelItemProps>;
21
+ export default ListItem;
@@ -0,0 +1,4 @@
1
+ export declare const controlSeqRegex: RegExp;
2
+ export declare const replaceLineRegex: RegExp;
3
+ export declare const PageSize = 1000;
4
+ export declare const throttle: <T extends (...args: any[]) => void>(func: T, wait: number) => ((this: ThisParameterType<T>, ...args: Parameters<T>) => void);
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ interface LogsViewerProps {
3
+ height?: number;
4
+ content?: string;
5
+ url: string;
6
+ params?: object;
7
+ ref?: any;
8
+ tail?: number;
9
+ enableScorllLoad?: boolean;
10
+ diffHeight?: number;
11
+ isDownloading?: boolean;
12
+ }
13
+ declare const LogsViewer: React.FC<LogsViewerProps>;
14
+ export default LogsViewer;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ interface LogsListProps {
3
+ dataList: any[];
4
+ height?: number;
5
+ onScroll?: (data: {
6
+ isTop: boolean;
7
+ isBottom: boolean;
8
+ }) => void;
9
+ diffHeight?: number;
10
+ showNum?: boolean;
11
+ ref?: any;
12
+ }
13
+ declare const _default: React.NamedExoticComponent<LogsListProps>;
14
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ interface LogsPaginationProps {
3
+ page: number;
4
+ total: number;
5
+ pageSize?: number;
6
+ onPrev?: () => void;
7
+ onNext?: () => void;
8
+ onBackend?: () => void;
9
+ onToFirst?: () => void;
10
+ }
11
+ declare const LogsPagination: React.FC<LogsPaginationProps>;
12
+ export default LogsPagination;
@@ -0,0 +1,11 @@
1
+ declare const useLogsPagination: () => {
2
+ nextPage: () => void;
3
+ resetPage: () => void;
4
+ prePage: () => void;
5
+ setPage: import('react').Dispatch<import('react').SetStateAction<number>>;
6
+ pageSize: number;
7
+ setTotalPage: (total: number) => void;
8
+ page: number;
9
+ totalPage: number;
10
+ };
11
+ export default useLogsPagination;
@@ -0,0 +1,5 @@
1
+ export declare const useResizeObserver: (ref: React.RefObject<HTMLElement>) => {
2
+ width: number;
3
+ height: number;
4
+ };
5
+ export default useResizeObserver;
@@ -0,0 +1,9 @@
1
+ interface LogsViewerProps {
2
+ height: number;
3
+ content?: string;
4
+ url: string;
5
+ ref?: any;
6
+ params?: object;
7
+ }
8
+ declare const LogsViewer: React.FC<LogsViewerProps>;
9
+ export default LogsViewer;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface FullMarkdownProps {
3
+ content: string;
4
+ theme?: 'light' | 'dark';
5
+ }
6
+ declare const FullMarkdown: React.FC<FullMarkdownProps>;
7
+ export default FullMarkdown;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface MarkdownViewerProps {
3
+ content: string;
4
+ height?: string;
5
+ theme?: 'light' | 'dark';
6
+ generateImgLink?: (src: string) => string;
7
+ }
8
+ declare const _default: React.NamedExoticComponent<MarkdownViewerProps>;
9
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const unescape: (str?: string) => string;
2
+ export declare function escapeDollarNumber(text: string): string;
3
+ export declare function escapeBrackets(text: string): string;
4
+ export declare function escapeMhchem(text: string): string;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ interface MetadataListProps {
3
+ dataList: any[];
4
+ label: React.ReactNode;
5
+ description?: React.ReactNode;
6
+ disabled?: boolean;
7
+ btnText?: string;
8
+ styles?: {
9
+ wrapper?: React.CSSProperties;
10
+ };
11
+ onAdd?: () => void;
12
+ onDelete?: (index: number, item: any) => void;
13
+ children?: (item: any, index: number) => React.ReactNode;
14
+ }
15
+ declare const MetadataList: React.FC<MetadataListProps>;
16
+ export default MetadataList;
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ type ModalFooterProps = {
3
+ onOk?: () => void;
4
+ onCancel?: () => void;
5
+ cancelText?: string;
6
+ okText?: string;
7
+ htmlType?: 'button' | 'submit';
8
+ okBtnProps?: any;
9
+ cancelBtnProps?: any;
10
+ loading?: boolean;
11
+ style?: React.CSSProperties;
12
+ showOkBtn?: boolean;
13
+ showCancelBtn?: boolean;
14
+ extra?: React.ReactNode;
15
+ form?: any;
16
+ description?: React.ReactNode;
17
+ styles?: {
18
+ wrapper?: React.CSSProperties;
19
+ };
20
+ };
21
+ declare const ModalFooter: React.FC<ModalFooterProps>;
22
+ export default ModalFooter;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface MoreButtonProps {
3
+ show: boolean;
4
+ loadMore: () => void;
5
+ loading?: boolean;
6
+ }
7
+ declare const MoreButton: React.FC<MoreButtonProps>;
8
+ export default MoreButton;
@@ -0,0 +1,14 @@
1
+ import { EmptyProps } from 'antd';
2
+ import { default as React } from 'react';
3
+ declare const NoResult: React.FC<EmptyProps & {
4
+ title?: React.ReactNode;
5
+ subTitle?: React.ReactNode;
6
+ noFoundText?: React.ReactNode;
7
+ filters?: Record<string, any>;
8
+ loading?: boolean;
9
+ loadend?: boolean;
10
+ dataSource?: any[];
11
+ buttonText?: React.ReactNode;
12
+ onClick?: () => void;
13
+ }>;
14
+ export default NoResult;
@@ -0,0 +1,26 @@
1
+ import { TooltipProps } from 'antd';
2
+ import { default as React } from 'react';
3
+ import { OverlayScrollerOptions } from '../../../lib/hooks/use-overlay-scroller';
4
+ export type { OverlayScrollerOptions };
5
+ export declare const OverlayScroller: React.FC<OverlayScrollerOptions & {
6
+ maxHeight?: number | string;
7
+ style?: React.CSSProperties;
8
+ styles?: {
9
+ wrapper?: React.CSSProperties;
10
+ };
11
+ children: React.ReactNode;
12
+ onScroll?: (e: React.UIEvent<HTMLDivElement, UIEvent>) => void;
13
+ }>;
14
+ /**
15
+ *
16
+ * @param maxHeight: use for scrollbars
17
+ * @param theme: because this component is used for tooltip, so the default theme always is light
18
+ * @returns
19
+ */
20
+ export declare const TooltipOverlayScroller: React.FC<OverlayScrollerOptions & {
21
+ maxHeight?: number;
22
+ title?: React.ReactNode;
23
+ children: React.ReactNode;
24
+ toolTipProps?: TooltipProps;
25
+ }>;
26
+ export default OverlayScroller;
@@ -0,0 +1,4 @@
1
+ import { BreadcrumbProps } from 'antd';
2
+ import { default as React } from 'react';
3
+ declare const App: React.FC<BreadcrumbProps>;
4
+ export default App;
@@ -0,0 +1,56 @@
1
+ import { default as React } from 'react';
2
+ type PageToolsProps = {
3
+ left?: React.ReactNode;
4
+ right?: React.ReactNode;
5
+ marginBottom?: number;
6
+ marginTop?: number;
7
+ style?: React.CSSProperties;
8
+ };
9
+ export declare const FiltersButton: ({ onClick, onClear, count }: {
10
+ onClick: () => void;
11
+ onClear: () => void;
12
+ count?: number;
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ declare const PageTools: React.FC<PageToolsProps>;
15
+ interface ActionItem {
16
+ label: string;
17
+ locale: boolean;
18
+ value: string;
19
+ key: string;
20
+ icon: React.ReactNode;
21
+ [key: string]: any;
22
+ }
23
+ interface FilterBarProps {
24
+ handleInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
25
+ handleSelectChange?: (value: any) => void;
26
+ handleSearch: () => void;
27
+ handleDeleteByBatch?: () => void;
28
+ handleClickPrimary?: (item: any) => void;
29
+ rowSelection?: any;
30
+ actionItems?: ActionItem[];
31
+ selectOptions?: Global.BaseOption<string | number>[];
32
+ showSelect?: boolean;
33
+ buttonText?: string;
34
+ buttonIcon?: React.ReactNode;
35
+ marginBottom?: number;
36
+ marginTop?: number;
37
+ inputHolder?: string;
38
+ selectHolder?: string;
39
+ actionType?: 'dropdown' | 'button';
40
+ showPrimaryButton?: boolean;
41
+ showDeleteButton?: boolean;
42
+ right?: React.ReactNode;
43
+ left?: React.ReactNode;
44
+ filtersButtonProps?: {
45
+ show: boolean;
46
+ count: number;
47
+ onClick: () => void;
48
+ onClear: () => void;
49
+ };
50
+ widths?: {
51
+ input?: number;
52
+ select?: number;
53
+ };
54
+ }
55
+ export declare const FilterBar: React.FC<FilterBarProps>;
56
+ export default PageTools;
@@ -0,0 +1,3 @@
1
+ import { PopoverProps } from 'antd/lib/popover';
2
+ declare const CPopover: React.FC<PopoverProps>;
3
+ export default CPopover;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ declare const RenderProgress: React.MemoExoticComponent<(props: {
3
+ defaultOpen?: boolean;
4
+ percent: number;
5
+ steps?: number;
6
+ download?: boolean;
7
+ label?: React.ReactNode;
8
+ successPercent?: number;
9
+ successColor?: string;
10
+ }) => import("react/jsx-runtime").JSX.Element>;
11
+ export default RenderProgress;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ interface RadioButtonsProps {
3
+ options: {
4
+ value: any;
5
+ label: React.ReactNode;
6
+ }[];
7
+ value: string;
8
+ gap?: number;
9
+ onChange: (value: string) => void;
10
+ }
11
+ declare const RadioButtons: React.FC<RadioButtonsProps>;
12
+ export default RadioButtons;
@@ -0,0 +1,8 @@
1
+ interface ResizeObserverContainerProps {
2
+ dataList: any[];
3
+ renderItem: (data: any) => React.ReactNode;
4
+ defaultSpan?: number;
5
+ resizable?: boolean;
6
+ }
7
+ declare const ResizeContainer: React.FC<ResizeObserverContainerProps>;
8
+ export default ResizeContainer;
@@ -0,0 +1,36 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * ScrollSpyTabs component
4
+ * defaultTarget: The default active target tab
5
+ * segmentedTop: { // Mostlty, It's always a constants.
6
+ * top: number; // The top offset for the sticky header
7
+ * offsetTop: number; // The offset top for the target
8
+ * }
9
+ * getScrollElementScrollableHeight: function to get the scrollable height of the scroll element
10
+ * segmentOptions.field: The target data-field={segmentOptions.field} to scroll to
11
+ * activeKey: The current active keys for collapsible sections
12
+ * setActiveKey: The function to set active keys for collapsible sections
13
+ */
14
+ interface ScrollSpyTabsProps {
15
+ ref?: any;
16
+ children?: React.ReactNode;
17
+ defaultTarget?: string;
18
+ segmentedTop: {
19
+ top: number;
20
+ offsetTop: number;
21
+ };
22
+ activeKey: string[];
23
+ setActiveKey: (keys: string[]) => void;
24
+ getScrollElementScrollableHeight?: () => {
25
+ scrollHeight: number;
26
+ scrollTop: number;
27
+ };
28
+ segmentOptions: {
29
+ label: string;
30
+ value: string;
31
+ icon?: React.ReactNode;
32
+ field: string;
33
+ }[];
34
+ }
35
+ declare const ScrollSpyTabs: React.FC<ScrollSpyTabsProps>;
36
+ export default ScrollSpyTabs;
@@ -0,0 +1,27 @@
1
+ interface ScrollOptions {
2
+ wait?: number;
3
+ behavior?: 'smooth' | 'auto';
4
+ block?: 'start' | 'end' | 'center';
5
+ offsetTop?: number;
6
+ }
7
+ export default function useScrollAfterExpand({ activeKey, setActiveKey, segmentOptions, defaultWait, segmentedTop, getScrollElementScrollableHeight }: {
8
+ activeKey: string[];
9
+ setActiveKey: (keys: string[]) => void;
10
+ segmentOptions: {
11
+ value: string;
12
+ field: string;
13
+ }[];
14
+ getScrollElementScrollableHeight?: () => {
15
+ scrollHeight: number;
16
+ scrollTop: number;
17
+ };
18
+ defaultWait?: number;
19
+ segmentedTop: {
20
+ top: number;
21
+ offsetTop: number;
22
+ };
23
+ }): {
24
+ scrollToSegment: (this: unknown, val: string, options?: ScrollOptions | undefined) => Promise<void>;
25
+ holderHeight: number;
26
+ };
27
+ export {};
@@ -0,0 +1,14 @@
1
+ interface FinishFailedOptions {
2
+ requiredFields: {
3
+ [tab: string]: {
4
+ sort: number;
5
+ fields: string[];
6
+ };
7
+ };
8
+ onTargetChange: (key: string) => void;
9
+ updateActiveKey: (key: string[]) => void;
10
+ }
11
+ declare const useFinishFailed: (options: FinishFailedOptions) => {
12
+ handleOnFinishFailed: (errorInfo: any) => void;
13
+ };
14
+ export default useFinishFailed;
@@ -0,0 +1,12 @@
1
+ declare const useScrollActiveChange: (options: {
2
+ initalActiveKeys: string[];
3
+ initialCollapseKeys?: string[];
4
+ }) => {
5
+ activeKey: string[];
6
+ collapseKeys: string[];
7
+ setCollapseKeys: import('react').Dispatch<import('react').SetStateAction<string[]>>;
8
+ handleActiveChange: (key: string[]) => void;
9
+ handleOnCollapseChange: (keys: string | string[]) => void;
10
+ updateActiveKey: (keys: string[]) => void;
11
+ };
12
+ export default useScrollActiveChange;
@@ -0,0 +1,9 @@
1
+ import { DrawerProps } from 'antd';
2
+ /**
3
+ * use ColumnWrapper to wrap content in Drawer with scroller
4
+ * 57px is the height of header
5
+ * @param props
6
+ * @returns
7
+ */
8
+ declare const ScrollerModal: (props: DrawerProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default ScrollerModal;
@@ -0,0 +1,5 @@
1
+ import { ModalProps } from 'antd';
2
+ declare const ScrollerModal: (props: ModalProps & {
3
+ maxContentHeight?: number | string;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default ScrollerModal;
@@ -0,0 +1,6 @@
1
+ interface ScrollerContextProps {
2
+ scrollToBottom: () => void;
3
+ }
4
+ export declare const ScrollerContext: import('react').Context<ScrollerContextProps>;
5
+ export declare const useScrollerContext: () => ScrollerContextProps;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import { SegmentedProps } from 'antd';
2
+ import { default as React } from 'react';
3
+ interface SegmentLineProps extends SegmentedProps {
4
+ height?: number;
5
+ theme?: 'dark' | 'light';
6
+ showTitle?: boolean;
7
+ }
8
+ declare const SegmentLine: React.FC<SegmentLineProps>;
9
+ export default SegmentLine;
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ interface SelectPanelProps {
3
+ searchPlaceholder?: string;
4
+ height?: number;
5
+ leftWidth?: number;
6
+ options: Array<{
7
+ key: string;
8
+ title: string;
9
+ }>;
10
+ selectedKeys: string[];
11
+ notFoundContent?: React.ReactNode;
12
+ onSelectChange: (selectedKeys: string[]) => void;
13
+ }
14
+ declare const SelectPanel: React.FC<SelectPanelProps>;
15
+ export default SelectPanel;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ interface ListProps {
3
+ maxHeight?: number;
4
+ dataList: Array<{
5
+ key: string;
6
+ title: string;
7
+ }>;
8
+ selectedKeys: string[];
9
+ renderTitle?: (item: {
10
+ key: string;
11
+ title: string;
12
+ }) => React.ReactNode;
13
+ onSelectChange: (selectedKeys: string[]) => void;
14
+ }
15
+ declare const List: React.FC<ListProps>;
16
+ export default List;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ interface SelectedProps {
3
+ maxHeight?: number;
4
+ selectedList: {
5
+ key: string;
6
+ title: string;
7
+ }[];
8
+ onUnselect: (key: string, newSelectedKeys: {
9
+ key: string;
10
+ title: string;
11
+ }[]) => void;
12
+ }
13
+ declare const SelectedList: React.FC<SelectedProps>;
14
+ export default SelectedList;
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ declare const ShortCuts: React.FC<{
3
+ intl: any;
4
+ }>;
5
+ export declare const modalConfig: {
6
+ icon: null;
7
+ centered: boolean;
8
+ mask: {
9
+ closeable: boolean;
10
+ };
11
+ footer: null;
12
+ style: {
13
+ top: string;
14
+ };
15
+ width: number;
16
+ };
17
+ export default ShortCuts;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ scope: string;
3
+ command: string;
4
+ keybinding: string;
5
+ }[];
6
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface SimpleOverlayProps {
3
+ height?: string | number;
4
+ children?: React.ReactNode;
5
+ style?: React.CSSProperties;
6
+ onScrollEnd?: (e: React.UIEvent<HTMLDivElement>) => void;
7
+ disableTrigger?: boolean;
8
+ }
9
+ declare const SimpleOverlay: React.FC<SimpleOverlayProps>;
10
+ export default SimpleOverlay;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface TableHeaderProps {
3
+ columns: any[];
4
+ }
5
+ interface TableHeaderProps {
6
+ columns: any[];
7
+ }
8
+ declare const _default: React.MemoExoticComponent<({ columns }: TableHeaderProps) => import("react/jsx-runtime").JSX.Element>;
9
+ export default _default;
@@ -0,0 +1,39 @@
1
+ import { default as React } from 'react';
2
+ export interface ColumnProps {
3
+ title: string;
4
+ key: string;
5
+ width?: string | number;
6
+ style?: React.CSSProperties;
7
+ render?: (data: {
8
+ dataIndex: string;
9
+ dataList?: any[];
10
+ row: any;
11
+ rowIndex?: number;
12
+ colIndex?: number;
13
+ }) => any;
14
+ locale?: boolean;
15
+ colSpan?: (params: {
16
+ row: any;
17
+ rowIndex: number;
18
+ colIndex: number;
19
+ dataIndex: string;
20
+ dataList: any[];
21
+ }) => number;
22
+ rowSpan?: (params: {
23
+ row: any;
24
+ rowIndex: number;
25
+ colIndex: number;
26
+ dataIndex: string;
27
+ dataList: any[];
28
+ }) => number;
29
+ }
30
+ interface SimpleTableProps {
31
+ theme?: 'dark' | 'light';
32
+ maxHeight?: number | string;
33
+ columns: ColumnProps[];
34
+ dataSource: any[];
35
+ bordered?: boolean;
36
+ rowKey: string;
37
+ }
38
+ declare const SimpleTabel: React.FC<SimpleTableProps>;
39
+ export default SimpleTabel;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ interface InfoColumnProps {
3
+ fieldList: {
4
+ label: string;
5
+ key: string;
6
+ locale?: boolean;
7
+ render?: (val: any, data: any) => any;
8
+ }[];
9
+ style?: React.CSSProperties;
10
+ data: Record<string, any>;
11
+ }
12
+ declare const InfoColumn: React.FC<InfoColumnProps>;
13
+ export default InfoColumn;
@@ -0,0 +1,8 @@
1
+ interface TableRowProps {
2
+ row: any;
3
+ columns: any;
4
+ rowIndex: number;
5
+ dataList: any[];
6
+ }
7
+ declare const TableRow: ({ row, columns, rowIndex, dataList }: TableRowProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default TableRow;
@@ -0,0 +1,5 @@
1
+ interface SmallCloseButtonProps {
2
+ onClick?: () => void;
3
+ }
4
+ declare const SmallCloseButton: React.FC<SmallCloseButtonProps>;
5
+ export default SmallCloseButton;