@data-c/ui 0.1.41 → 0.1.43
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/dist/empty-data-NII6PKG2.svg +423 -0
- package/dist/error-GAPOPG36.svg +1 -0
- package/dist/index.d.ts +253 -46
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as _mui_material from '@mui/material';
|
|
3
|
-
import { ButtonProps as ButtonProps$
|
|
3
|
+
import { ButtonProps as ButtonProps$3, StackProps, CheckboxProps as CheckboxProps$1, DialogProps as DialogProps$1, IconButtonProps, DrawerProps, TypographyProps, ToolbarProps as ToolbarProps$1, TextFieldProps, FilterOptionsState, TooltipProps as TooltipProps$2, BoxProps, PaperProps, SvgIconProps, IconProps, InputBaseProps, ChipProps, Breakpoint, TableFooterProps } from '@mui/material';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { ReactNode, ComponentType } from 'react';
|
|
6
6
|
import { MUIDataTableProps } from 'mui-datatables';
|
|
7
|
-
import { PaginationProps, TransportableDataTableProps, CredentialsConfigsInterface, AmbienteDataInterface } from '@data-c/hooks';
|
|
7
|
+
import { PaginationProps as PaginationProps$1, TransportableDataTableProps, CredentialsConfigsInterface, AmbienteDataInterface } from '@data-c/hooks';
|
|
8
8
|
import * as _mui_material_styles from '@mui/material/styles';
|
|
9
9
|
import { AvatarProps } from '@mui/material/Avatar';
|
|
10
10
|
import { DialogComponent, DialogProps as DialogProps$2 } from '@toolpad/core/useDialogs';
|
|
11
|
+
import { GridActionsCellItemProps, GridColDef as GridColDef$1, DataGridProps, GridRowsProp, GridRowSelectionModel, GridCallbackDetails } from '@mui/x-data-grid';
|
|
11
12
|
|
|
12
|
-
interface ButtonProps$
|
|
13
|
+
interface ButtonProps$2 extends ButtonProps$3 {
|
|
13
14
|
isLoading?: boolean;
|
|
14
15
|
}
|
|
15
|
-
declare const Button: (props: ButtonProps$
|
|
16
|
+
declare const Button: (props: ButtonProps$2) => react_jsx_runtime.JSX.Element;
|
|
16
17
|
|
|
17
18
|
declare function ButtonContainer(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
18
19
|
|
|
@@ -67,12 +68,12 @@ interface DataTableProps extends Omit<MUIDataTableProps, 'title'> {
|
|
|
67
68
|
isLoading?: boolean;
|
|
68
69
|
isFetching?: boolean;
|
|
69
70
|
tableTitle?: string;
|
|
70
|
-
pagination?: PaginationProps;
|
|
71
|
+
pagination?: PaginationProps$1;
|
|
71
72
|
changePage?: (page: number) => void;
|
|
72
73
|
changePageSize?: (pageSize: number) => void;
|
|
73
74
|
changeSort?: (column: string, direction: string) => void;
|
|
74
75
|
}
|
|
75
|
-
declare const DataTable: (props: DataTableProps) => react_jsx_runtime.JSX.Element;
|
|
76
|
+
declare const DataTable$1: (props: DataTableProps) => react_jsx_runtime.JSX.Element;
|
|
76
77
|
|
|
77
78
|
interface TooltipProps$1 {
|
|
78
79
|
type: 'warning' | 'info';
|
|
@@ -132,7 +133,7 @@ interface FilterProps {
|
|
|
132
133
|
children: ReactNode;
|
|
133
134
|
triggerButton?: 'none' | React__default.ReactNode;
|
|
134
135
|
triggerButtonLabel?: string;
|
|
135
|
-
triggerButtonProps?: ButtonProps$
|
|
136
|
+
triggerButtonProps?: ButtonProps$3;
|
|
136
137
|
title?: string;
|
|
137
138
|
onApplyFilters?: (filters: any) => void;
|
|
138
139
|
renderLabel?: (filterLabel: string, filterValue: any) => React__default.ReactNode;
|
|
@@ -140,8 +141,8 @@ interface FilterProps {
|
|
|
140
141
|
disableFilterControl?: Boolean;
|
|
141
142
|
drawerProps?: DrawerProps;
|
|
142
143
|
}
|
|
143
|
-
declare function FilterContainer(props: FilterProps): react_jsx_runtime.JSX.Element;
|
|
144
|
-
declare namespace FilterContainer {
|
|
144
|
+
declare function FilterContainer$1(props: FilterProps): react_jsx_runtime.JSX.Element;
|
|
145
|
+
declare namespace FilterContainer$1 {
|
|
145
146
|
var defaultProps: {
|
|
146
147
|
triggerButtonLabel: string;
|
|
147
148
|
triggerButtonProps: {
|
|
@@ -163,7 +164,7 @@ interface FormContainerProps {
|
|
|
163
164
|
onSubmitForm?: (formValues: any) => void;
|
|
164
165
|
view?: 'dialog' | 'plain';
|
|
165
166
|
triggerButton?: 'none' | React__default.ReactNode;
|
|
166
|
-
triggerButtonProps?: ButtonProps$
|
|
167
|
+
triggerButtonProps?: ButtonProps$3;
|
|
167
168
|
triggerButtonLabel?: string;
|
|
168
169
|
confirmButtonLabel?: string;
|
|
169
170
|
actions?: ReactNode;
|
|
@@ -187,7 +188,7 @@ declare function LabelValue(props: LabelValueProps): react_jsx_runtime.JSX.Eleme
|
|
|
187
188
|
interface PageTitleProps {
|
|
188
189
|
title: string;
|
|
189
190
|
children?: ReactNode;
|
|
190
|
-
toolbarProps?: ToolbarProps;
|
|
191
|
+
toolbarProps?: ToolbarProps$1;
|
|
191
192
|
onBack?: () => void;
|
|
192
193
|
onClose?: () => void;
|
|
193
194
|
onUpdate?: (value?: string) => void;
|
|
@@ -288,7 +289,7 @@ declare function Editable(props: EditableProps): react_jsx_runtime.JSX.Element;
|
|
|
288
289
|
|
|
289
290
|
interface ContentProps extends BoxProps {
|
|
290
291
|
}
|
|
291
|
-
declare function Content(props: ContentProps): react_jsx_runtime.JSX.Element;
|
|
292
|
+
declare function Content$1(props: ContentProps): react_jsx_runtime.JSX.Element;
|
|
292
293
|
|
|
293
294
|
declare function Surface(props: PaperProps): react_jsx_runtime.JSX.Element;
|
|
294
295
|
|
|
@@ -319,6 +320,10 @@ declare const Header: {
|
|
|
319
320
|
ToggleMenu: typeof HeaderToggleMenu;
|
|
320
321
|
};
|
|
321
322
|
|
|
323
|
+
declare function IconBarCode(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
324
|
+
|
|
325
|
+
declare function IconBlock$1(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
326
|
+
|
|
322
327
|
declare function IconCadastro(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
323
328
|
|
|
324
329
|
declare function IconChevronDown(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
@@ -327,8 +332,14 @@ declare function IconCircle(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
|
327
332
|
|
|
328
333
|
declare function IconClientes(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
329
334
|
|
|
335
|
+
declare function IconClosePanel(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
336
|
+
|
|
337
|
+
declare function IconConfigs(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
338
|
+
|
|
330
339
|
declare function IconDashboard(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
331
340
|
|
|
341
|
+
declare function IconDocs(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
342
|
+
|
|
332
343
|
declare function IconDown(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
333
344
|
|
|
334
345
|
declare function IconErease(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
@@ -343,49 +354,57 @@ declare function IconExpandable(props: IconExpandableProps): react_jsx_runtime.J
|
|
|
343
354
|
|
|
344
355
|
declare function IconFilter(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
345
356
|
|
|
346
|
-
declare function
|
|
357
|
+
declare function IconHandShake(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
347
358
|
|
|
348
|
-
declare function
|
|
359
|
+
declare function IconHelp(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
349
360
|
|
|
350
|
-
declare function
|
|
361
|
+
declare function IconHistory(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
351
362
|
|
|
352
|
-
declare function
|
|
363
|
+
declare function IconKanban(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
353
364
|
|
|
354
|
-
declare function
|
|
365
|
+
declare function IconLogout(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
355
366
|
|
|
356
|
-
declare function
|
|
367
|
+
declare function IconMapPin(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
357
368
|
|
|
358
|
-
declare function
|
|
369
|
+
declare function IconMaps(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
359
370
|
|
|
360
371
|
declare function IconMenu(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
361
372
|
|
|
362
|
-
declare function
|
|
373
|
+
declare function IconNegociacao(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
363
374
|
|
|
364
|
-
declare function
|
|
375
|
+
declare function IconOpenPanel(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
365
376
|
|
|
366
377
|
declare function IconPasswords(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
367
378
|
|
|
368
|
-
declare function
|
|
379
|
+
declare function IconSearch(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
369
380
|
|
|
370
|
-
declare function
|
|
381
|
+
declare function IconStore(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
371
382
|
|
|
372
|
-
declare function
|
|
383
|
+
declare function IconTextCursor(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
373
384
|
|
|
374
|
-
declare function
|
|
385
|
+
declare function IconUsers(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
375
386
|
|
|
376
387
|
declare function IconVideo(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
377
388
|
|
|
378
389
|
declare function IconBlock(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
379
390
|
|
|
380
|
-
declare function
|
|
391
|
+
declare function IconContaBancaria(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
381
392
|
|
|
382
|
-
declare function
|
|
393
|
+
declare function IconGrupoLancamento(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
383
394
|
|
|
384
|
-
declare function
|
|
395
|
+
declare function IconHistoricoPadrao(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
385
396
|
|
|
386
|
-
declare function
|
|
397
|
+
declare function IconImovel(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
387
398
|
|
|
388
|
-
declare function
|
|
399
|
+
declare function Iconlancamento(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
400
|
+
|
|
401
|
+
declare function ChevronLeft(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
402
|
+
|
|
403
|
+
declare function ChevronRight(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
404
|
+
|
|
405
|
+
declare function IconCalendar(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
406
|
+
|
|
407
|
+
declare function IconSave(props: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
389
408
|
|
|
390
409
|
declare const Icon: {
|
|
391
410
|
Circle: typeof IconCircle;
|
|
@@ -405,20 +424,29 @@ declare const Icon: {
|
|
|
405
424
|
OpenPanel: typeof IconOpenPanel;
|
|
406
425
|
ClosePanel: typeof IconClosePanel;
|
|
407
426
|
Menu: typeof IconMenu;
|
|
408
|
-
Configs: typeof IconConfigs
|
|
409
|
-
Users: typeof IconUsers
|
|
427
|
+
Configs: typeof IconConfigs;
|
|
428
|
+
Users: typeof IconUsers;
|
|
410
429
|
Password: typeof IconPasswords;
|
|
411
430
|
Logout: typeof IconLogout;
|
|
412
431
|
History: typeof IconHistory;
|
|
413
432
|
Help: typeof IconHelp;
|
|
414
433
|
Video: typeof IconVideo;
|
|
415
434
|
Docs: typeof IconDocs;
|
|
416
|
-
Block: typeof IconBlock;
|
|
435
|
+
Block: typeof IconBlock$1;
|
|
417
436
|
Maps: typeof IconMaps;
|
|
418
437
|
MapPin: typeof IconMapPin;
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
438
|
+
HandShake: typeof IconHandShake;
|
|
439
|
+
Store: typeof IconStore;
|
|
440
|
+
Download: typeof IconBlock;
|
|
441
|
+
ContaBancaria: typeof IconContaBancaria;
|
|
442
|
+
GrupoLancamento: typeof IconGrupoLancamento;
|
|
443
|
+
HistoricoPadrao: typeof IconHistoricoPadrao;
|
|
444
|
+
Imovel: typeof IconImovel;
|
|
445
|
+
Lancamento: typeof Iconlancamento;
|
|
446
|
+
ChevronLeft: typeof ChevronLeft;
|
|
447
|
+
ChevronRight: typeof ChevronRight;
|
|
448
|
+
Calendar: typeof IconCalendar;
|
|
449
|
+
Save: typeof IconSave;
|
|
422
450
|
};
|
|
423
451
|
|
|
424
452
|
interface MenuItemProps {
|
|
@@ -481,7 +509,7 @@ interface DialogProviderProps {
|
|
|
481
509
|
}
|
|
482
510
|
declare function DialogProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
|
|
483
511
|
|
|
484
|
-
interface DialogAdicionarButtonProps<T> extends Omit<ButtonProps$
|
|
512
|
+
interface DialogAdicionarButtonProps<T> extends Omit<ButtonProps$3, 'onClick'> {
|
|
485
513
|
dialogComponent: DialogComponent<any, any>;
|
|
486
514
|
payload: T;
|
|
487
515
|
label?: string;
|
|
@@ -490,7 +518,7 @@ declare function DialogAdicionarButton<T>(props: DialogAdicionarButtonProps<T>):
|
|
|
490
518
|
|
|
491
519
|
declare function DialogHeader(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
492
520
|
|
|
493
|
-
declare function Title(props: TypographyProps): react_jsx_runtime.JSX.Element;
|
|
521
|
+
declare function Title$1(props: TypographyProps): react_jsx_runtime.JSX.Element;
|
|
494
522
|
|
|
495
523
|
interface DialogActionCloseProps {
|
|
496
524
|
onClose: (result?: any) => Promise<void>;
|
|
@@ -499,17 +527,17 @@ declare function DialogActionClose({ onClose }: DialogActionCloseProps): react_j
|
|
|
499
527
|
|
|
500
528
|
declare function DialogContent({ children, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
|
|
501
529
|
|
|
502
|
-
declare function Footer(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
530
|
+
declare function Footer$1(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
503
531
|
|
|
504
532
|
declare function DialogActions(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
505
533
|
|
|
506
|
-
declare function DialogActionCancelar$1({ children, ...rest }: ButtonProps$
|
|
534
|
+
declare function DialogActionCancelar$1({ children, ...rest }: ButtonProps$3): react_jsx_runtime.JSX.Element;
|
|
507
535
|
|
|
508
|
-
type ButtonProps = {
|
|
536
|
+
type ButtonProps$1 = {
|
|
509
537
|
isLoading: boolean;
|
|
510
538
|
label?: string;
|
|
511
|
-
} & ButtonProps$
|
|
512
|
-
declare function DialogActionCancelar({ children, label, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
539
|
+
} & ButtonProps$3;
|
|
540
|
+
declare function DialogActionCancelar({ children, label, ...rest }: ButtonProps$1): react_jsx_runtime.JSX.Element;
|
|
513
541
|
|
|
514
542
|
declare function DialogConfirmDelete({ open, onClose, payload, }: DialogProps$2<{
|
|
515
543
|
identificador: any;
|
|
@@ -521,14 +549,193 @@ declare const Dialog: {
|
|
|
521
549
|
Provider: typeof DialogProvider;
|
|
522
550
|
AdicionarButton: typeof DialogAdicionarButton;
|
|
523
551
|
Header: typeof DialogHeader;
|
|
524
|
-
Title: typeof Title;
|
|
552
|
+
Title: typeof Title$1;
|
|
525
553
|
ActionClose: typeof DialogActionClose;
|
|
526
554
|
Content: typeof DialogContent;
|
|
527
|
-
Footer: typeof Footer;
|
|
555
|
+
Footer: typeof Footer$1;
|
|
528
556
|
Actions: typeof DialogActions;
|
|
529
557
|
ActionCancelar: typeof DialogActionCancelar$1;
|
|
530
558
|
ActionSalvar: typeof DialogActionCancelar;
|
|
531
559
|
ConfirmDelete: typeof DialogConfirmDelete;
|
|
532
560
|
};
|
|
533
561
|
|
|
534
|
-
|
|
562
|
+
declare function FilterAdvancedButton(): react_jsx_runtime.JSX.Element;
|
|
563
|
+
|
|
564
|
+
interface FilterAdvancedContainerProps {
|
|
565
|
+
children: ReactNode;
|
|
566
|
+
}
|
|
567
|
+
declare function FilterAdvancedContainer(props: FilterAdvancedContainerProps): react_jsx_runtime.JSX.Element;
|
|
568
|
+
|
|
569
|
+
declare function FilterContainer({ children }: {
|
|
570
|
+
children: ReactNode;
|
|
571
|
+
}): react_jsx_runtime.JSX.Element;
|
|
572
|
+
|
|
573
|
+
interface FilterProviderProps<T = any> {
|
|
574
|
+
children: ReactNode;
|
|
575
|
+
filterValues?: T;
|
|
576
|
+
storagePath?: string;
|
|
577
|
+
}
|
|
578
|
+
declare function FilterProvider<T>(props: FilterProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
579
|
+
|
|
580
|
+
interface FilterRootProps {
|
|
581
|
+
children: ReactNode;
|
|
582
|
+
}
|
|
583
|
+
declare function FilterRoot(props: FilterRootProps): react_jsx_runtime.JSX.Element;
|
|
584
|
+
|
|
585
|
+
interface FilterSearchTextFieldProps extends Omit<InputBaseProps, 'onChange'> {
|
|
586
|
+
onChange: (query: string) => void;
|
|
587
|
+
}
|
|
588
|
+
declare function FilterSearchTextField(props: FilterSearchTextFieldProps): react_jsx_runtime.JSX.Element;
|
|
589
|
+
|
|
590
|
+
declare function ApplyButton(): react_jsx_runtime.JSX.Element;
|
|
591
|
+
|
|
592
|
+
declare function ResetButton(): react_jsx_runtime.JSX.Element;
|
|
593
|
+
|
|
594
|
+
interface FilterAdvancedActionsContainerProps {
|
|
595
|
+
children: React__default.ReactNode;
|
|
596
|
+
}
|
|
597
|
+
declare function FilterAdvancedActionsContainer({ children, }: FilterAdvancedActionsContainerProps): react_jsx_runtime.JSX.Element;
|
|
598
|
+
|
|
599
|
+
interface FilterChipsProps {
|
|
600
|
+
children: ReactNode;
|
|
601
|
+
}
|
|
602
|
+
declare function FilterChips({ children: childrenProp, }: FilterChipsProps): react_jsx_runtime.JSX.Element;
|
|
603
|
+
|
|
604
|
+
interface FiltrerChipProps extends Omit<ChipProps, 'children'> {
|
|
605
|
+
children?: ReactNode;
|
|
606
|
+
name: string;
|
|
607
|
+
disabledDelete?: boolean;
|
|
608
|
+
}
|
|
609
|
+
declare function FiltrerChip(props: FiltrerChipProps): react_jsx_runtime.JSX.Element;
|
|
610
|
+
|
|
611
|
+
declare const Filter: {
|
|
612
|
+
Root: typeof FilterRoot;
|
|
613
|
+
SearchTextField: typeof FilterSearchTextField;
|
|
614
|
+
Container: typeof FilterContainer;
|
|
615
|
+
AdvancedContainer: typeof FilterAdvancedContainer;
|
|
616
|
+
AdvancedActionsContainer: typeof FilterAdvancedActionsContainer;
|
|
617
|
+
AdvancedButton: typeof FilterAdvancedButton;
|
|
618
|
+
Provider: typeof FilterProvider;
|
|
619
|
+
ApplyButton: typeof ApplyButton;
|
|
620
|
+
ResetButton: typeof ResetButton;
|
|
621
|
+
Chips: typeof FilterChips;
|
|
622
|
+
Chip: typeof FiltrerChip;
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
interface CellActionTransportProps {
|
|
626
|
+
disabled?: boolean;
|
|
627
|
+
title?: string;
|
|
628
|
+
onClick?: (event: 'transport') => void;
|
|
629
|
+
}
|
|
630
|
+
declare function CellActionTransport({ onClick, ...rest }: CellActionTransportProps): react_jsx_runtime.JSX.Element;
|
|
631
|
+
|
|
632
|
+
interface SelectionCounterProps {
|
|
633
|
+
countTitle?: string;
|
|
634
|
+
gender?: 'masculino' | 'feminino';
|
|
635
|
+
}
|
|
636
|
+
declare function SelectionCounter(props: SelectionCounterProps): react_jsx_runtime.JSX.Element;
|
|
637
|
+
|
|
638
|
+
interface CellActionDeleteProps {
|
|
639
|
+
onClick?: (event: 'delete') => void;
|
|
640
|
+
disabled?: boolean;
|
|
641
|
+
title?: string;
|
|
642
|
+
}
|
|
643
|
+
declare function CellActionDelete({ onClick, ...rest }: CellActionDeleteProps): react_jsx_runtime.JSX.Element;
|
|
644
|
+
|
|
645
|
+
declare function ExportCsvButton(): react_jsx_runtime.JSX.Element;
|
|
646
|
+
|
|
647
|
+
interface CellActionEditProps {
|
|
648
|
+
disabled?: boolean;
|
|
649
|
+
title?: string;
|
|
650
|
+
onClick?: (event: 'edit') => void;
|
|
651
|
+
}
|
|
652
|
+
declare function CellActionEdit({ onClick, ...rest }: CellActionEditProps): react_jsx_runtime.JSX.Element;
|
|
653
|
+
|
|
654
|
+
interface CellActionsProps {
|
|
655
|
+
children: ReactNode;
|
|
656
|
+
onClick: (event: 'edit' | 'delete') => void;
|
|
657
|
+
}
|
|
658
|
+
declare function CellActions(props: CellActionsProps): react_jsx_runtime.JSX.Element;
|
|
659
|
+
|
|
660
|
+
type CellActionProps = {
|
|
661
|
+
event?: string;
|
|
662
|
+
onClick?: (event?: string) => void;
|
|
663
|
+
} & GridActionsCellItemProps;
|
|
664
|
+
declare function CellAction(props: CellActionProps): react_jsx_runtime.JSX.Element;
|
|
665
|
+
|
|
666
|
+
interface PaginationProps {
|
|
667
|
+
pagination?: PaginationProps$1;
|
|
668
|
+
rowsPerPageOptions?: number[];
|
|
669
|
+
onChangePage?: (currentPage: number) => void;
|
|
670
|
+
onChangePageSize?: (numberOfRows: number) => void;
|
|
671
|
+
}
|
|
672
|
+
declare function Pagination(props: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
673
|
+
|
|
674
|
+
interface ActionsProps {
|
|
675
|
+
breakpoints?: Breakpoint | number;
|
|
676
|
+
children: ReactNode;
|
|
677
|
+
}
|
|
678
|
+
declare function Actions({ children, breakpoints }: ActionsProps): react_jsx_runtime.JSX.Element;
|
|
679
|
+
|
|
680
|
+
interface ToolbarProps {
|
|
681
|
+
children?: ReactNode;
|
|
682
|
+
}
|
|
683
|
+
declare function Toolbar({ children }: ToolbarProps): react_jsx_runtime.JSX.Element;
|
|
684
|
+
|
|
685
|
+
declare function Content(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
686
|
+
|
|
687
|
+
type ButtonProps = {
|
|
688
|
+
isLoading?: boolean;
|
|
689
|
+
} & ButtonProps$3;
|
|
690
|
+
declare function DataTableButton(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
691
|
+
|
|
692
|
+
declare function Footer(props: TableFooterProps): react_jsx_runtime.JSX.Element;
|
|
693
|
+
|
|
694
|
+
type GridColDef = GridColDef$1 & {
|
|
695
|
+
enableStickyColumns?: boolean;
|
|
696
|
+
};
|
|
697
|
+
interface TableProps<T> extends Omit<DataGridProps, 'onCellKeyDown' | 'onRowDoubleClick'> {
|
|
698
|
+
data?: GridRowsProp<{
|
|
699
|
+
[key: string | symbol]: any;
|
|
700
|
+
}>;
|
|
701
|
+
columns: GridColDef[];
|
|
702
|
+
error?: string;
|
|
703
|
+
isLoading?: boolean;
|
|
704
|
+
isFetching?: boolean;
|
|
705
|
+
stackProps?: StackProps;
|
|
706
|
+
controlledRowsSelectedId?: GridRowSelectionModel;
|
|
707
|
+
onCellKeyDown?: (event: 'edit' | 'delete', id: number | string) => void;
|
|
708
|
+
onRowDoubleClick?: (event: 'edit' | 'delete', id: number | string) => void;
|
|
709
|
+
onClearRowsSelectedId?: (rowsSelectedId: GridRowSelectionModel) => void;
|
|
710
|
+
onRowSelectionChange?: (rowSelectionModel: GridRowSelectionModel, details: GridCallbackDetails) => void;
|
|
711
|
+
}
|
|
712
|
+
declare function Table<T>(props: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
713
|
+
|
|
714
|
+
interface TitleProps {
|
|
715
|
+
titleDivider?: boolean;
|
|
716
|
+
children: string;
|
|
717
|
+
}
|
|
718
|
+
declare function Title({ children, titleDivider }: TitleProps): react_jsx_runtime.JSX.Element;
|
|
719
|
+
|
|
720
|
+
declare function Root({ children, height, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
|
|
721
|
+
|
|
722
|
+
declare const DataTable: {
|
|
723
|
+
CellActionTransport: typeof CellActionTransport;
|
|
724
|
+
SelectionCounter: typeof SelectionCounter;
|
|
725
|
+
CellActionDelete: typeof CellActionDelete;
|
|
726
|
+
ExportCsvButton: typeof ExportCsvButton;
|
|
727
|
+
CellActionEdit: typeof CellActionEdit;
|
|
728
|
+
CellActions: typeof CellActions;
|
|
729
|
+
CellAction: typeof CellAction;
|
|
730
|
+
Pagination: typeof Pagination;
|
|
731
|
+
Actions: typeof Actions;
|
|
732
|
+
Toolbar: typeof Toolbar;
|
|
733
|
+
Content: typeof Content;
|
|
734
|
+
Button: typeof DataTableButton;
|
|
735
|
+
Footer: typeof Footer;
|
|
736
|
+
Table: typeof Table;
|
|
737
|
+
Title: typeof Title;
|
|
738
|
+
Root: typeof Root;
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
export { AlterarSenha, AlterarSenhaProps, Avatar, Breadcrumbs, BreadcrumbsItem, BreadcrumbsProps, Button, ButtonContainer, Checkbox, CheckboxProps, ColorsGrid, Content$1 as Content, ContentProps, ContentTitle, CurrencyCellStyle, CurrencyTextField, DataTable$1 as DataTable, DataTableOptions, DataTableOptionsProps, DataTableProps, DataTable as DataTableV2, DeleteContainer, DeleteContainerProps, Dialog$1 as Dialog, DialogProps, Dialog as DialogV2, DrawerMenu, DrawerMenuProps, Editable, EditableProps, Filter, FilterContainer$1 as FilterContainer, FilterControl, FilterProps, Flag, FormContainer, FormContainerProps, GridColDef, Header, Icon, LabelValue, LabelValueProps, Menu, MenuItemProps$1 as MenuItemProps, MioAuth, MioAuthProps, OptionStyles, PageTitle, PasswordTextField, Profile, ProfileProps, SearchTextField, Surface, Tooltip, TooltipProps, Transporter, TransporterProps, renderMenuItems, theme };
|