synos-helena 21.11.1 → 21.12.7-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 +24 -0
- package/lib/dark.css +984 -519
- package/lib/dark.css.map +1 -1
- package/lib/dark.js.map +1 -1
- package/lib/helena.css +988 -523
- package/lib/helena.css.map +1 -1
- package/lib/helena.js.map +1 -1
- package/lib/index.css +39 -37
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +72 -30
- package/lib/index.js +1 -1
- package/lib/index.js.LICENSE.txt +0 -6
- package/lib/index.js.map +1 -1
- package/lib/light.css +984 -519
- package/lib/light.css.map +1 -1
- package/lib/light.js.map +1 -1
- package/package.json +10 -6
package/lib/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ import { CheckboxChangeEvent } from 'antd/lib/checkbox';
|
|
|
44
44
|
import { SyntaxHighlighterProps } from 'react-syntax-highlighter';
|
|
45
45
|
import { CollapseProps } from 'antd/lib/collapse';
|
|
46
46
|
import { CollapsePanelProps } from 'antd/lib/collapse';
|
|
47
|
+
import React from 'react';
|
|
47
48
|
import { DATE_TIME, DATE } from 'src/util/constants';
|
|
48
49
|
import { HLInputPropTypes } from 'src/HLInput';
|
|
49
50
|
import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
@@ -55,7 +56,7 @@ import { DescriptionsProps } from 'antd/lib/descriptions';
|
|
|
55
56
|
import { DividerProps } from 'antd/lib/divider';
|
|
56
57
|
import { DrawerProps } from 'antd/lib/drawer';
|
|
57
58
|
import { DropDownProps } from 'antd/lib/dropdown';
|
|
58
|
-
import { TableProps } from
|
|
59
|
+
import { TableProps } from 'antd';
|
|
59
60
|
import { Form } from 'antd';
|
|
60
61
|
import { ReactNode } from 'react';
|
|
61
62
|
import { HLHeaderButtonPropTypes } from 'src/HLHeaderButton';
|
|
@@ -102,6 +103,7 @@ export type HLButtonPropTypes = ButtonProps & {
|
|
|
102
103
|
premium?: boolean;
|
|
103
104
|
tooltip?: string;
|
|
104
105
|
borderless?: boolean;
|
|
106
|
+
'data-cy'?: string;
|
|
105
107
|
};
|
|
106
108
|
|
|
107
109
|
export const HLButton: React.FC<HLButtonPropTypes>;
|
|
@@ -194,7 +196,7 @@ export interface HLContextPropTypes {
|
|
|
194
196
|
serie?: Record<string, any>;
|
|
195
197
|
series?: any[];
|
|
196
198
|
format?: string;
|
|
197
|
-
onApply?:
|
|
199
|
+
onApply?: (estabelecimento: any, format: 'YYYY-MM-DDTHH:mm:ss' | 'YYYY-MM-DD' | null, serie: any) => any | undefined;
|
|
198
200
|
periodo?: number;
|
|
199
201
|
width?: any;
|
|
200
202
|
useISOFormat: 'YYYY-MM-DDTHH:mm:ss' | 'YYYY-MM-DD';
|
|
@@ -218,15 +220,15 @@ export type DatePickerProps = {
|
|
|
218
220
|
} & PickerProps<Dayjs | Moment>;
|
|
219
221
|
|
|
220
222
|
export type HLDatePickerPropTypes = DatePickerProps & {
|
|
221
|
-
disableDateAfterThan?:
|
|
222
|
-
disableDateBeforeThan?:
|
|
223
|
+
disableDateAfterThan?: Record<string, unknown>;
|
|
224
|
+
disableDateBeforeThan?: Record<string, unknown>;
|
|
223
225
|
disableDateRange?: any[];
|
|
224
226
|
disabled?: boolean;
|
|
225
227
|
form?: any;
|
|
226
228
|
initialValue?: any;
|
|
227
229
|
domainAttribute: string;
|
|
228
230
|
label?: string;
|
|
229
|
-
onChange?:
|
|
231
|
+
onChange?: (date: moment, dateString: string) => void;
|
|
230
232
|
placeholder?: string;
|
|
231
233
|
rules?: any[];
|
|
232
234
|
size?: SizeType;
|
|
@@ -250,7 +252,7 @@ export type HLMonthPickerProps = DatePickerProps & {
|
|
|
250
252
|
domainAttribute: string;
|
|
251
253
|
form?: Record<string, any>;
|
|
252
254
|
label?: string;
|
|
253
|
-
onChange?:
|
|
255
|
+
onChange?: (value: Dayjs | moment.Moment | null, dateString: string) => void;
|
|
254
256
|
rules?: any[];
|
|
255
257
|
key?: any;
|
|
256
258
|
format?: string;
|
|
@@ -268,7 +270,7 @@ export type HLRangePickerProps = RangeDatePickerProps & {
|
|
|
268
270
|
domainAttribute: string;
|
|
269
271
|
form?: any;
|
|
270
272
|
label?: string;
|
|
271
|
-
onChange?:
|
|
273
|
+
onChange?: (value: Dayjs | moment.Moment | null, dateString: string) => void;
|
|
272
274
|
rules?: any[];
|
|
273
275
|
key?: any;
|
|
274
276
|
format?: string;
|
|
@@ -303,13 +305,14 @@ export type HLDropdownPropTypes = DropDownProps & {
|
|
|
303
305
|
|
|
304
306
|
export const HLDropdown: React.FC<HLDropdownPropTypes>;
|
|
305
307
|
|
|
308
|
+
|
|
306
309
|
interface Menu {
|
|
307
310
|
divider?: boolean;
|
|
308
311
|
label?: string;
|
|
309
312
|
link?: string;
|
|
310
313
|
disabled?: boolean;
|
|
311
314
|
query?: string;
|
|
312
|
-
onClick?:
|
|
315
|
+
onClick?: React.MouseEvent<HTMLElement>;
|
|
313
316
|
}
|
|
314
317
|
export interface HLDropdownButtonPropTypes {
|
|
315
318
|
menus: Menu[];
|
|
@@ -324,7 +327,7 @@ export const HLDropdownButton: React.FC<HLDropdownButtonPropTypes>;
|
|
|
324
327
|
|
|
325
328
|
export type HLEditTablePropTypes = TableProps & {
|
|
326
329
|
handleSave: (row: any) => void;
|
|
327
|
-
}
|
|
330
|
+
};
|
|
328
331
|
export const HLEditTable: React.FC<HLEditTablePropTypes>;
|
|
329
332
|
|
|
330
333
|
export interface Page500PropTypes {
|
|
@@ -357,13 +360,13 @@ export type HLFromToPanelTypes<P> = {
|
|
|
357
360
|
};
|
|
358
361
|
table?: {
|
|
359
362
|
loading?: boolean;
|
|
360
|
-
columns:
|
|
361
|
-
dataSource:
|
|
362
|
-
loadMore?:
|
|
363
|
+
columns: Record<string, unknown>;
|
|
364
|
+
dataSource: Record<string, unknown>[];
|
|
365
|
+
loadMore?: Record<string, unknown>;
|
|
363
366
|
onSelect?: (selectedRows?: P | P[]) => void;
|
|
364
367
|
};
|
|
365
368
|
powerSearch?: {
|
|
366
|
-
columns:
|
|
369
|
+
columns: Record<string, unknown>;
|
|
367
370
|
onSubmit: (params) => void;
|
|
368
371
|
};
|
|
369
372
|
custom?: {
|
|
@@ -377,7 +380,7 @@ export type HLFromToPanelTypes<P> = {
|
|
|
377
380
|
export interface HLHeaderPropTypes {
|
|
378
381
|
children: ReactNode;
|
|
379
382
|
collapsed: boolean;
|
|
380
|
-
collapsedClick:
|
|
383
|
+
collapsedClick: () => unknown;
|
|
381
384
|
headerSearch?: HLHeaderSearchPropTypes;
|
|
382
385
|
moduleName: string;
|
|
383
386
|
modulesMenu?: HLModulesMenuPropTypes;
|
|
@@ -399,7 +402,7 @@ export interface HLHeaderButtonPropTypes {
|
|
|
399
402
|
export const HLHeaderButton: React.FC<HLHeaderButtonPropTypes>;
|
|
400
403
|
|
|
401
404
|
export interface HLHeaderSearchPropTypes {
|
|
402
|
-
onSubmit:
|
|
405
|
+
onSubmit: (unknown) => unknown;
|
|
403
406
|
}
|
|
404
407
|
|
|
405
408
|
export const HLHeaderSearch: React.FC<HLHeaderSearchPropTypes>;
|
|
@@ -410,6 +413,7 @@ export interface HLInputPropTypes {
|
|
|
410
413
|
label?: string;
|
|
411
414
|
disabled?: boolean;
|
|
412
415
|
domainAttribute: string;
|
|
416
|
+
'data-cy'?: string;
|
|
413
417
|
form?: Record<string, any>;
|
|
414
418
|
initialValue?: string | number;
|
|
415
419
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -419,8 +423,12 @@ export interface HLInputPropTypes {
|
|
|
419
423
|
maxLength?: number;
|
|
420
424
|
onPressEnter?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
421
425
|
ref?: ((instance: Input | null) => void) | React.RefObject<Input> | null;
|
|
422
|
-
onValueFromEvent?:
|
|
426
|
+
onValueFromEvent?: (unknown) => unknown;
|
|
423
427
|
style?: React.CSSProperties;
|
|
428
|
+
autoComplete?: string;
|
|
429
|
+
readOnly?: boolean;
|
|
430
|
+
onFocus?: (unknown) => unknown | undefined;
|
|
431
|
+
onBlur?: (unknown) => unknown | undefined;
|
|
424
432
|
}
|
|
425
433
|
|
|
426
434
|
interface HLInputChildren {
|
|
@@ -487,19 +495,33 @@ export interface HLModulesMenuPropTypes {
|
|
|
487
495
|
export const HLModulesMenu: React.FC<HLModulesMenuPropTypes>;
|
|
488
496
|
|
|
489
497
|
|
|
498
|
+
interface DateObject {
|
|
499
|
+
chronology: any;
|
|
500
|
+
dayOfMonth: number;
|
|
501
|
+
dayOfWeek: string;
|
|
502
|
+
dayOfYear: number;
|
|
503
|
+
hour: number;
|
|
504
|
+
minute: number;
|
|
505
|
+
month: string;
|
|
506
|
+
monthValue: number;
|
|
507
|
+
nano: number;
|
|
508
|
+
second: number;
|
|
509
|
+
year: number;
|
|
510
|
+
}
|
|
511
|
+
|
|
490
512
|
interface Notification {
|
|
491
513
|
title: string;
|
|
492
514
|
description: string;
|
|
493
515
|
type: string;
|
|
494
|
-
date:
|
|
516
|
+
date: DateObject | string;
|
|
495
517
|
isVisualized: boolean;
|
|
496
518
|
link?: string;
|
|
497
|
-
onClick?:
|
|
519
|
+
onClick?: React.MouseEvent<HTMLElement>;
|
|
498
520
|
}
|
|
499
521
|
|
|
500
522
|
export interface HLNotificationPropTypes {
|
|
501
523
|
buttonLabel?: string;
|
|
502
|
-
onClearNotification?:
|
|
524
|
+
onClearNotification?: () => any;
|
|
503
525
|
title?: string;
|
|
504
526
|
placement?:
|
|
505
527
|
| 'bottom'
|
|
@@ -516,6 +538,7 @@ export interface HLNotificationPropTypes {
|
|
|
516
538
|
| 'rightBottom';
|
|
517
539
|
Link?: Link;
|
|
518
540
|
notifications?: Notification[];
|
|
541
|
+
markAsReadCallback: (notification: Record<string, string>) => void;
|
|
519
542
|
fetchNewNotifications: () => void;
|
|
520
543
|
showFormat: string;
|
|
521
544
|
refreshInterval: number;
|
|
@@ -524,19 +547,33 @@ export interface HLNotificationPropTypes {
|
|
|
524
547
|
export const HLNotification: React.FC<HLNotificationPropTypes>;
|
|
525
548
|
|
|
526
549
|
|
|
550
|
+
interface DateObject {
|
|
551
|
+
chronology: any;
|
|
552
|
+
dayOfMonth: number;
|
|
553
|
+
dayOfWeek: string;
|
|
554
|
+
dayOfYear: number;
|
|
555
|
+
hour: number;
|
|
556
|
+
minute: number;
|
|
557
|
+
month: string;
|
|
558
|
+
monthValue: number;
|
|
559
|
+
nano: number;
|
|
560
|
+
second: number;
|
|
561
|
+
year: number;
|
|
562
|
+
}
|
|
563
|
+
|
|
527
564
|
interface Notification {
|
|
528
565
|
title: string;
|
|
529
566
|
description: string;
|
|
530
567
|
type: string;
|
|
531
|
-
date:
|
|
568
|
+
date: DateObject | string;
|
|
532
569
|
isVisualized: boolean;
|
|
533
570
|
link?: string;
|
|
534
|
-
onClick?:
|
|
571
|
+
onClick?: React.MouseEvent<HTMLElement>;
|
|
535
572
|
}
|
|
536
573
|
|
|
537
574
|
export interface NotificationListPropTypes {
|
|
538
575
|
Link?: Link;
|
|
539
|
-
onClickNotification
|
|
576
|
+
onClickNotification: (notification: Record<string, string>) => void;
|
|
540
577
|
notifications?: Notification[];
|
|
541
578
|
useDayjs?: boolean;
|
|
542
579
|
}
|
|
@@ -547,7 +584,7 @@ export const NotificationList: React.FC<NotificationListPropTypes>;
|
|
|
547
584
|
interface Context {
|
|
548
585
|
label: string;
|
|
549
586
|
value?: any;
|
|
550
|
-
render?:
|
|
587
|
+
render?: (unknown) => unknown;
|
|
551
588
|
}
|
|
552
589
|
|
|
553
590
|
interface ContextInfo {
|
|
@@ -633,11 +670,11 @@ export interface HLSideMenuPropTypes {
|
|
|
633
670
|
collapsed: boolean;
|
|
634
671
|
location: any;
|
|
635
672
|
subMenus: any[];
|
|
636
|
-
changeOpenKeys:
|
|
637
|
-
onOpenChange:
|
|
638
|
-
generateLink:
|
|
639
|
-
allowsAccessByUrl:
|
|
640
|
-
changeCollapsedState:
|
|
673
|
+
changeOpenKeys: (unknown) => unknown;
|
|
674
|
+
onOpenChange: (unknown) => unknown;
|
|
675
|
+
generateLink: (unknown, unknown, unknown) => any;
|
|
676
|
+
allowsAccessByUrl: (unknown) => unknown;
|
|
677
|
+
changeCollapsedState: (unknown) => unknown;
|
|
641
678
|
openKeys: any[];
|
|
642
679
|
baseboardLogoPath?: string;
|
|
643
680
|
baseboardText?: string;
|
|
@@ -707,7 +744,7 @@ interface User {
|
|
|
707
744
|
export interface HLUserBoxPropTypes {
|
|
708
745
|
options?: any[];
|
|
709
746
|
user?: User;
|
|
710
|
-
logout?:
|
|
747
|
+
logout?: (unknown) => unknown;
|
|
711
748
|
tenant?: string;
|
|
712
749
|
moduleInfo?: ModuleInfo;
|
|
713
750
|
sysStatus?: any;
|
|
@@ -774,6 +811,7 @@ export interface HLInputPropTypes {
|
|
|
774
811
|
label?: string;
|
|
775
812
|
disabled?: boolean;
|
|
776
813
|
domainAttribute: string;
|
|
814
|
+
'data-cy'?: string;
|
|
777
815
|
form?: Record<string, any>;
|
|
778
816
|
initialValue?: string | number;
|
|
779
817
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -783,8 +821,12 @@ export interface HLInputPropTypes {
|
|
|
783
821
|
maxLength?: number;
|
|
784
822
|
onPressEnter?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
785
823
|
ref?: ((instance: Input | null) => void) | React.RefObject<Input> | null;
|
|
786
|
-
onValueFromEvent?:
|
|
824
|
+
onValueFromEvent?: (unknown) => unknown;
|
|
787
825
|
style?: React.CSSProperties;
|
|
826
|
+
autoComplete?: string;
|
|
827
|
+
readOnly?: boolean;
|
|
828
|
+
onFocus?: (unknown) => unknown | undefined;
|
|
829
|
+
onBlur?: (unknown) => unknown | undefined;
|
|
788
830
|
}
|
|
789
831
|
|
|
790
832
|
interface HLInputChildren {
|