synos-helena 21.13.1 → 21.14.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/CHANGELOG.md +25 -1
- package/lib/dark.css.map +1 -1
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +54 -12
- 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
|
@@ -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,8 +341,28 @@ 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
|
|
|
@@ -365,6 +385,7 @@ export interface HLFromToProps<L, R, T> {
|
|
|
365
385
|
onDisassociate: (to?: T | T[]) => void;
|
|
366
386
|
disabledAssociate?: (fromL?: L | L[], fromR?: R | R[], customL?: string, customR?: string) => boolean;
|
|
367
387
|
disabledDisassociate?: (to?: T | T[]) => boolean;
|
|
388
|
+
permissions?: PermissionsType;
|
|
368
389
|
}
|
|
369
390
|
|
|
370
391
|
export type HLFromToPanelTypes<P> = {
|
|
@@ -584,9 +605,9 @@ interface ContextInfo {
|
|
|
584
605
|
}
|
|
585
606
|
|
|
586
607
|
interface Path {
|
|
587
|
-
link
|
|
608
|
+
link?: string;
|
|
588
609
|
title: string;
|
|
589
|
-
icon
|
|
610
|
+
icon?: string;
|
|
590
611
|
}
|
|
591
612
|
|
|
592
613
|
interface BreadcrumbPath {
|
|
@@ -673,7 +694,7 @@ export type HLSideMenuItem = {
|
|
|
673
694
|
subpages?: string[];
|
|
674
695
|
insideMenu?: boolean;
|
|
675
696
|
links?: HLSideMenuItem[];
|
|
676
|
-
|
|
697
|
+
resourceId?: string;
|
|
677
698
|
showOnWelcomePage?: boolean;
|
|
678
699
|
description?: string;
|
|
679
700
|
undeveloped?: boolean;
|
|
@@ -685,8 +706,8 @@ export interface HLSideMenuPropTypes {
|
|
|
685
706
|
subMenus: HLSideMenuItem[];
|
|
686
707
|
changeOpenKeys: (unknown) => unknown;
|
|
687
708
|
onOpenChange: (unknown) => unknown;
|
|
688
|
-
generateLink: (unknown, unknown, unknown) => any;
|
|
689
|
-
|
|
709
|
+
generateLink: (unknown, unknown, unknown, unknown) => any;
|
|
710
|
+
allowsAccessByResourceId: (unknown) => unknown;
|
|
690
711
|
changeCollapsedState: (unknown) => unknown;
|
|
691
712
|
openKeys: any[];
|
|
692
713
|
baseboardLogoPath?: string;
|
|
@@ -917,7 +938,7 @@ export interface HLCardPropTypes {
|
|
|
917
938
|
extra?: string | React.ReactNode;
|
|
918
939
|
loading?: boolean;
|
|
919
940
|
size?: 'default' | 'small';
|
|
920
|
-
type?: 'inner' | 'button';
|
|
941
|
+
type?: 'inner' | 'button' | 'hover';
|
|
921
942
|
cover?: React.ReactNode;
|
|
922
943
|
actions?: React.ReactNode[];
|
|
923
944
|
tabList?: CardTabListType[];
|
|
@@ -1067,8 +1088,28 @@ export interface HLDropdownButtonPropTypes {
|
|
|
1067
1088
|
export const HLDropdownButton: React.FC<HLDropdownButtonPropTypes>;
|
|
1068
1089
|
|
|
1069
1090
|
|
|
1091
|
+
interface GenericAction {
|
|
1092
|
+
name: string;
|
|
1093
|
+
icon: any;
|
|
1094
|
+
onClick?: (params: unknown) => any;
|
|
1095
|
+
disabled?: boolean;
|
|
1096
|
+
permission?: {
|
|
1097
|
+
proxy: React.ReactElement;
|
|
1098
|
+
resourceId: string;
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1070
1102
|
export type HLEditTablePropTypes = TableProps & {
|
|
1071
1103
|
handleSave: (row: any) => void;
|
|
1104
|
+
enableSelectVisualization?: boolean;
|
|
1105
|
+
dataLimit?: number;
|
|
1106
|
+
enableDownload?: boolean;
|
|
1107
|
+
batchActions?: GenericAction[];
|
|
1108
|
+
primaryAction?: Omit<GenericAction, 'permission'>;
|
|
1109
|
+
secundaryActions?: Omit<GenericAction, 'permission'>[];
|
|
1110
|
+
additionalActions?: React.ReactNode[];
|
|
1111
|
+
autosaveOptions?: boolean;
|
|
1112
|
+
context?: string;
|
|
1072
1113
|
};
|
|
1073
1114
|
export const HLEditTable: React.FC<HLEditTablePropTypes>;
|
|
1074
1115
|
|
|
@@ -1085,6 +1126,7 @@ export interface HLFromToProps<L, R, T> {
|
|
|
1085
1126
|
onDisassociate: (to?: T | T[]) => void;
|
|
1086
1127
|
disabledAssociate?: (fromL?: L | L[], fromR?: R | R[], customL?: string, customR?: string) => boolean;
|
|
1087
1128
|
disabledDisassociate?: (to?: T | T[]) => boolean;
|
|
1129
|
+
permissions?: PermissionsType;
|
|
1088
1130
|
}
|
|
1089
1131
|
|
|
1090
1132
|
export type HLFromToPanelTypes<P> = {
|
|
@@ -1178,9 +1220,9 @@ interface ContextInfo {
|
|
|
1178
1220
|
}
|
|
1179
1221
|
|
|
1180
1222
|
interface Path {
|
|
1181
|
-
link
|
|
1223
|
+
link?: string;
|
|
1182
1224
|
title: string;
|
|
1183
|
-
icon
|
|
1225
|
+
icon?: string;
|
|
1184
1226
|
}
|
|
1185
1227
|
|
|
1186
1228
|
interface BreadcrumbPath {
|
|
@@ -1267,7 +1309,7 @@ export type HLSideMenuItem = {
|
|
|
1267
1309
|
subpages?: string[];
|
|
1268
1310
|
insideMenu?: boolean;
|
|
1269
1311
|
links?: HLSideMenuItem[];
|
|
1270
|
-
|
|
1312
|
+
resourceId?: string;
|
|
1271
1313
|
showOnWelcomePage?: boolean;
|
|
1272
1314
|
description?: string;
|
|
1273
1315
|
undeveloped?: boolean;
|
|
@@ -1279,8 +1321,8 @@ export interface HLSideMenuPropTypes {
|
|
|
1279
1321
|
subMenus: HLSideMenuItem[];
|
|
1280
1322
|
changeOpenKeys: (unknown) => unknown;
|
|
1281
1323
|
onOpenChange: (unknown) => unknown;
|
|
1282
|
-
generateLink: (unknown, unknown, unknown) => any;
|
|
1283
|
-
|
|
1324
|
+
generateLink: (unknown, unknown, unknown, unknown) => any;
|
|
1325
|
+
allowsAccessByResourceId: (unknown) => unknown;
|
|
1284
1326
|
changeCollapsedState: (unknown) => unknown;
|
|
1285
1327
|
openKeys: any[];
|
|
1286
1328
|
baseboardLogoPath?: string;
|