synos-helena 21.14.0-beta.0 → 21.14.3-beta.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/CHANGELOG.md +779 -0
- package/lib/helena.css.map +1 -1
- package/lib/icons/exception.svg +1 -0
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +59 -9
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/light.css.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -60,9 +60,9 @@ import { DividerProps } from 'antd/lib/divider';
|
|
|
60
60
|
import { DrawerProps } from 'antd/lib/drawer';
|
|
61
61
|
import { DropDownProps } from 'antd/lib/dropdown';
|
|
62
62
|
import { TableProps } from 'antd';
|
|
63
|
+
import { ReactNode } from 'react';
|
|
63
64
|
import { Form } from 'antd';
|
|
64
65
|
import React, { ReactNode } from 'react';
|
|
65
|
-
import { ReactNode } from 'react';
|
|
66
66
|
import { HLHeaderButtonPropTypes } from 'src/HLHeaderButton';
|
|
67
67
|
import { HLHeaderSearchPropTypes } from 'src/HLHeaderSearch';
|
|
68
68
|
import HLHealthCheck from 'src/HLHealthCheck/HLHealthCheck';
|
|
@@ -119,7 +119,7 @@ export interface HLCardPropTypes {
|
|
|
119
119
|
extra?: string | React.ReactNode;
|
|
120
120
|
loading?: boolean;
|
|
121
121
|
size?: 'default' | 'small';
|
|
122
|
-
type?: 'inner' | 'button';
|
|
122
|
+
type?: 'inner' | 'button' | 'hover';
|
|
123
123
|
cover?: React.ReactNode;
|
|
124
124
|
actions?: React.ReactNode[];
|
|
125
125
|
tabList?: CardTabListType[];
|
|
@@ -341,11 +341,41 @@ export interface HLDropdownButtonPropTypes {
|
|
|
341
341
|
export const HLDropdownButton: React.FC<HLDropdownButtonPropTypes>;
|
|
342
342
|
|
|
343
343
|
|
|
344
|
+
interface GenericAction {
|
|
345
|
+
name: string;
|
|
346
|
+
icon: any;
|
|
347
|
+
onClick?: (params: unknown) => any;
|
|
348
|
+
disabled?: boolean;
|
|
349
|
+
permission?: {
|
|
350
|
+
proxy: React.ReactElement;
|
|
351
|
+
resourceId: string;
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
|
|
344
355
|
export type HLEditTablePropTypes = TableProps & {
|
|
345
356
|
handleSave: (row: any) => void;
|
|
357
|
+
enableSelectVisualization?: boolean;
|
|
358
|
+
dataLimit?: number;
|
|
359
|
+
enableDownload?: boolean;
|
|
360
|
+
batchActions?: GenericAction[];
|
|
361
|
+
primaryAction?: Omit<GenericAction, 'permission'>;
|
|
362
|
+
secundaryActions?: Omit<GenericAction, 'permission'>[];
|
|
363
|
+
additionalActions?: React.ReactNode[];
|
|
364
|
+
autosaveOptions?: boolean;
|
|
365
|
+
context?: string;
|
|
346
366
|
};
|
|
347
367
|
export const HLEditTable: React.FC<HLEditTablePropTypes>;
|
|
348
368
|
|
|
369
|
+
|
|
370
|
+
export interface ErrorPropTypes {
|
|
371
|
+
size?: 'small' | 'big' | 'page' | string;
|
|
372
|
+
gray?: boolean;
|
|
373
|
+
content?: ReactNode;
|
|
374
|
+
icon?: ReactNode;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export const Error: React.FC<ErrorPropTypes>;
|
|
378
|
+
|
|
349
379
|
export interface Page500PropTypes {
|
|
350
380
|
supportPhone: string;
|
|
351
381
|
}
|
|
@@ -365,7 +395,7 @@ export interface HLFromToProps<L, R, T> {
|
|
|
365
395
|
onDisassociate: (to?: T | T[]) => void;
|
|
366
396
|
disabledAssociate?: (fromL?: L | L[], fromR?: R | R[], customL?: string, customR?: string) => boolean;
|
|
367
397
|
disabledDisassociate?: (to?: T | T[]) => boolean;
|
|
368
|
-
permissions?:
|
|
398
|
+
permissions?: PermissionsType;
|
|
369
399
|
}
|
|
370
400
|
|
|
371
401
|
export type HLFromToPanelTypes<P> = {
|
|
@@ -585,9 +615,9 @@ interface ContextInfo {
|
|
|
585
615
|
}
|
|
586
616
|
|
|
587
617
|
interface Path {
|
|
588
|
-
link
|
|
618
|
+
link?: string;
|
|
589
619
|
title: string;
|
|
590
|
-
icon
|
|
620
|
+
icon?: string;
|
|
591
621
|
}
|
|
592
622
|
|
|
593
623
|
interface BreadcrumbPath {
|
|
@@ -918,7 +948,7 @@ export interface HLCardPropTypes {
|
|
|
918
948
|
extra?: string | React.ReactNode;
|
|
919
949
|
loading?: boolean;
|
|
920
950
|
size?: 'default' | 'small';
|
|
921
|
-
type?: 'inner' | 'button';
|
|
951
|
+
type?: 'inner' | 'button' | 'hover';
|
|
922
952
|
cover?: React.ReactNode;
|
|
923
953
|
actions?: React.ReactNode[];
|
|
924
954
|
tabList?: CardTabListType[];
|
|
@@ -1068,8 +1098,28 @@ export interface HLDropdownButtonPropTypes {
|
|
|
1068
1098
|
export const HLDropdownButton: React.FC<HLDropdownButtonPropTypes>;
|
|
1069
1099
|
|
|
1070
1100
|
|
|
1101
|
+
interface GenericAction {
|
|
1102
|
+
name: string;
|
|
1103
|
+
icon: any;
|
|
1104
|
+
onClick?: (params: unknown) => any;
|
|
1105
|
+
disabled?: boolean;
|
|
1106
|
+
permission?: {
|
|
1107
|
+
proxy: React.ReactElement;
|
|
1108
|
+
resourceId: string;
|
|
1109
|
+
};
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1071
1112
|
export type HLEditTablePropTypes = TableProps & {
|
|
1072
1113
|
handleSave: (row: any) => void;
|
|
1114
|
+
enableSelectVisualization?: boolean;
|
|
1115
|
+
dataLimit?: number;
|
|
1116
|
+
enableDownload?: boolean;
|
|
1117
|
+
batchActions?: GenericAction[];
|
|
1118
|
+
primaryAction?: Omit<GenericAction, 'permission'>;
|
|
1119
|
+
secundaryActions?: Omit<GenericAction, 'permission'>[];
|
|
1120
|
+
additionalActions?: React.ReactNode[];
|
|
1121
|
+
autosaveOptions?: boolean;
|
|
1122
|
+
context?: string;
|
|
1073
1123
|
};
|
|
1074
1124
|
export const HLEditTable: React.FC<HLEditTablePropTypes>;
|
|
1075
1125
|
|
|
@@ -1086,7 +1136,7 @@ export interface HLFromToProps<L, R, T> {
|
|
|
1086
1136
|
onDisassociate: (to?: T | T[]) => void;
|
|
1087
1137
|
disabledAssociate?: (fromL?: L | L[], fromR?: R | R[], customL?: string, customR?: string) => boolean;
|
|
1088
1138
|
disabledDisassociate?: (to?: T | T[]) => boolean;
|
|
1089
|
-
permissions?:
|
|
1139
|
+
permissions?: PermissionsType;
|
|
1090
1140
|
}
|
|
1091
1141
|
|
|
1092
1142
|
export type HLFromToPanelTypes<P> = {
|
|
@@ -1180,9 +1230,9 @@ interface ContextInfo {
|
|
|
1180
1230
|
}
|
|
1181
1231
|
|
|
1182
1232
|
interface Path {
|
|
1183
|
-
link
|
|
1233
|
+
link?: string;
|
|
1184
1234
|
title: string;
|
|
1185
|
-
icon
|
|
1235
|
+
icon?: string;
|
|
1186
1236
|
}
|
|
1187
1237
|
|
|
1188
1238
|
interface BreadcrumbPath {
|