ydb-ui-components 5.0.0 → 5.1.1
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/build/cjs/components/NavigationTree/NavigationTreeNode.js +3 -1
- package/build/cjs/components/NavigationTree/types.d.ts +1 -1
- package/build/cjs/components/icons/Transfer.js +2 -1
- package/build/esm/components/NavigationTree/NavigationTreeNode.js +3 -1
- package/build/esm/components/NavigationTree/types.d.ts +1 -1
- package/build/esm/components/icons/Transfer.js +2 -1
- package/package.json +2 -1
|
@@ -36,6 +36,7 @@ function renderIcon(type, collapsed) {
|
|
|
36
36
|
return (0, jsx_runtime_1.jsx)(Index_1.IndexIcon, { height: 16 });
|
|
37
37
|
case 'table':
|
|
38
38
|
case 'index_table':
|
|
39
|
+
case 'system_table':
|
|
39
40
|
return (0, jsx_runtime_1.jsx)(Table_1.TableIcon, { height: 16 });
|
|
40
41
|
case 'column_table':
|
|
41
42
|
return (0, jsx_runtime_1.jsx)(ColumnTable_1.ColumnTableIcon, { height: 16 });
|
|
@@ -66,7 +67,7 @@ function NavigationTreeNode({ path, fetchPath, activePath, state, level, dispatc
|
|
|
66
67
|
}
|
|
67
68
|
return;
|
|
68
69
|
}
|
|
69
|
-
if (nodeState.loaded || nodeState.loading) {
|
|
70
|
+
if (nodeState.loaded || nodeState.loading || nodeState.error) {
|
|
70
71
|
return;
|
|
71
72
|
}
|
|
72
73
|
dispatch({
|
|
@@ -94,6 +95,7 @@ function NavigationTreeNode({ path, fetchPath, activePath, state, level, dispatc
|
|
|
94
95
|
nodeState.collapsed,
|
|
95
96
|
nodeState.loaded,
|
|
96
97
|
nodeState.loading,
|
|
98
|
+
nodeState.error,
|
|
97
99
|
path,
|
|
98
100
|
]);
|
|
99
101
|
const handleClick = react_1.default.useCallback(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DropdownMenuItemMixed } from '@gravity-ui/uikit';
|
|
3
|
-
export type NavigationTreeNodeType = 'async_replication' | 'column_table' | 'resource_pool' | 'database' | 'directory' | 'external_data_source' | 'external_table' | 'index_table' | 'index' | 'stream' | 'table' | 'topic' | 'transfer' | 'view';
|
|
3
|
+
export type NavigationTreeNodeType = 'async_replication' | 'column_table' | 'resource_pool' | 'database' | 'directory' | 'external_data_source' | 'external_table' | 'index_table' | 'index' | 'stream' | 'system_table' | 'table' | 'topic' | 'transfer' | 'view';
|
|
4
4
|
export interface NavigationTreeDataItem<M = unknown> {
|
|
5
5
|
name: string;
|
|
6
6
|
type: NavigationTreeNodeType;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransferIcon = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const icons_1 = require("@gravity-ui/icons");
|
|
5
6
|
function TransferIcon(props) {
|
|
6
|
-
return (
|
|
7
|
+
return (0, jsx_runtime_1.jsx)(icons_1.FileArrowRightOut, Object.assign({}, props));
|
|
7
8
|
}
|
|
8
9
|
exports.TransferIcon = TransferIcon;
|
|
@@ -30,6 +30,7 @@ function renderIcon(type, collapsed) {
|
|
|
30
30
|
return _jsx(IndexIcon, { height: 16 });
|
|
31
31
|
case 'table':
|
|
32
32
|
case 'index_table':
|
|
33
|
+
case 'system_table':
|
|
33
34
|
return _jsx(TableIcon, { height: 16 });
|
|
34
35
|
case 'column_table':
|
|
35
36
|
return _jsx(ColumnTableIcon, { height: 16 });
|
|
@@ -60,7 +61,7 @@ export function NavigationTreeNode({ path, fetchPath, activePath, state, level,
|
|
|
60
61
|
}
|
|
61
62
|
return;
|
|
62
63
|
}
|
|
63
|
-
if (nodeState.loaded || nodeState.loading) {
|
|
64
|
+
if (nodeState.loaded || nodeState.loading || nodeState.error) {
|
|
64
65
|
return;
|
|
65
66
|
}
|
|
66
67
|
dispatch({
|
|
@@ -88,6 +89,7 @@ export function NavigationTreeNode({ path, fetchPath, activePath, state, level,
|
|
|
88
89
|
nodeState.collapsed,
|
|
89
90
|
nodeState.loaded,
|
|
90
91
|
nodeState.loading,
|
|
92
|
+
nodeState.error,
|
|
91
93
|
path,
|
|
92
94
|
]);
|
|
93
95
|
const handleClick = React.useCallback(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DropdownMenuItemMixed } from '@gravity-ui/uikit';
|
|
3
|
-
export type NavigationTreeNodeType = 'async_replication' | 'column_table' | 'resource_pool' | 'database' | 'directory' | 'external_data_source' | 'external_table' | 'index_table' | 'index' | 'stream' | 'table' | 'topic' | 'transfer' | 'view';
|
|
3
|
+
export type NavigationTreeNodeType = 'async_replication' | 'column_table' | 'resource_pool' | 'database' | 'directory' | 'external_data_source' | 'external_table' | 'index_table' | 'index' | 'stream' | 'system_table' | 'table' | 'topic' | 'transfer' | 'view';
|
|
4
4
|
export interface NavigationTreeDataItem<M = unknown> {
|
|
5
5
|
name: string;
|
|
6
6
|
type: NavigationTreeNodeType;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { FileArrowRightOut } from '@gravity-ui/icons';
|
|
3
4
|
export function TransferIcon(props) {
|
|
4
|
-
return
|
|
5
|
+
return _jsx(FileArrowRightOut, Object.assign({}, props));
|
|
5
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ydb-ui-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"exports": {
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@commitlint/cli": "^19.0.3",
|
|
55
55
|
"@commitlint/config-conventional": "^19.0.3",
|
|
56
56
|
"@gravity-ui/eslint-config": "^3.1.1",
|
|
57
|
+
"@gravity-ui/icons": "^2.16.0",
|
|
57
58
|
"@gravity-ui/prettier-config": "^1.1.0",
|
|
58
59
|
"@gravity-ui/stylelint-config": "^4.0.1",
|
|
59
60
|
"@gravity-ui/tsconfig": "^1.0.0",
|