@orangesix/react 2.4.0-beta.3 → 2.4.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/accordion/@types/index.d.ts +55 -55
- package/accordion/accordion/index.esm.js.map +1 -1
- package/api/@types/css.d.ts +91 -91
- package/api/@types/field.d.ts +161 -159
- package/api/@types/index.d.ts +29 -27
- package/api/input/index.esm.js.map +1 -1
- package/autocomplete/@types/index.d.ts +69 -67
- package/autocomplete/autocomplete/index.esm.js.map +1 -1
- package/autocomplete/core/core/index.esm.js.map +1 -1
- package/autocomplete/core/event/index.esm.js.map +1 -1
- package/box/@types/index.d.ts +28 -26
- package/box/_box.scss +56 -56
- package/box/box/index.esm.js.map +1 -1
- package/button/@types/index.d.ts +72 -70
- package/button/button/index.esm.js.map +1 -1
- package/button/package.json +5 -5
- package/calendar/@types/index.d.ts +27 -25
- package/calendar/calendar/index.esm.js.map +1 -1
- package/calendar/core/controlled/index.esm.js.map +1 -1
- package/calendar/core/handle/index.esm.js.map +1 -1
- package/calendar/core/hookForm/index.esm.js.map +1 -1
- package/calendar/core/locale/index.esm.js.map +1 -1
- package/calendar/package.json +5 -5
- package/editor/@types/index.d.ts +45 -43
- package/editor/_editor.scss +106 -106
- package/editor/const/index.esm.js.map +1 -1
- package/editor/core/bold/index.esm.js.map +1 -1
- package/editor/core/bulletlist/index.esm.js.map +1 -1
- package/editor/core/code/index.esm.js.map +1 -1
- package/editor/core/color/index.esm.js.map +1 -1
- package/editor/core/highlight/index.esm.js.map +1 -1
- package/editor/core/image/index.esm.js.map +1 -1
- package/editor/core/index/index.esm.js.map +1 -1
- package/editor/core/italic/index.esm.js.map +1 -1
- package/editor/core/link/index.esm.js.map +1 -1
- package/editor/core/orderlist/index.esm.js.map +1 -1
- package/editor/core/strike/index.esm.js.map +1 -1
- package/editor/core/text/index.esm.js.map +1 -1
- package/editor/core/underline/index.esm.js.map +1 -1
- package/editor/editor/index.esm.js.map +1 -1
- package/input/@types/index.d.ts +109 -107
- package/input/core/controlled/index.esm.js.map +1 -1
- package/input/core/hookForm/index.esm.js.map +1 -1
- package/input/input/index.esm.js.map +1 -1
- package/inputfilter/@types/autocomplete.d.ts +20 -20
- package/inputfilter/@types/index.d.ts +42 -40
- package/inputfilter/_inputfilter.scss +58 -58
- package/inputfilter/const/index.esm.js.map +1 -1
- package/inputfilter/core/autocomplete/index.esm.js.map +1 -1
- package/inputfilter/core/date/index.esm.js.map +1 -1
- package/inputfilter/core/number/index.esm.js.map +1 -1
- package/inputfilter/core/text/index.esm.js.map +1 -1
- package/inputfilter/function/handle/index.esm.js.map +1 -1
- package/inputfilter/function/validate/index.esm.js.map +1 -1
- package/inputfilter/inputfilter/index.esm.js.map +1 -1
- package/inputfilter/legend/index.esm.js.map +1 -1
- package/lightbox/@types/index.d.ts +12 -10
- package/lightbox/_lightbox.scss +6 -6
- package/lightbox/core/handle/index.esm.js.map +1 -1
- package/lightbox/lightbox/index.esm.js.map +1 -1
- package/lightbox/package.json +5 -5
- package/loading/@types/index.d.ts +44 -42
- package/loading/_loading.scss +10 -10
- package/loading/loading/index.esm.js.map +1 -1
- package/loading/package.json +5 -5
- package/message/@types/index.d.ts +102 -102
- package/message/core/modal/index.esm.js.map +1 -1
- package/message/message/index.esm.js.map +1 -1
- package/message/package.json +5 -5
- package/modal/@types/index.d.ts +63 -61
- package/modal/core/core/index.esm.js.map +1 -1
- package/modal/modal/index.esm.js.map +1 -1
- package/multiselect/@types/index.d.ts +77 -75
- package/multiselect/core/controlled/index.esm.js.map +1 -1
- package/multiselect/core/hookForm/index.esm.js.map +1 -1
- package/multiselect/multiselect/index.esm.js.map +1 -1
- package/multiselect/package.json +5 -5
- package/package.json +15 -15
- package/pdf/@types/index.d.ts +12 -10
- package/pdf/package.json +5 -5
- package/pdf/pdf/index.esm.js.map +1 -1
- package/pdf/style/pdf.css +53 -53
- package/picklist/@types/index.d.ts +41 -40
- package/picklist/core/core/index.esm.js.map +1 -1
- package/picklist/picklist/index.esm.js.map +1 -1
- package/picklist/types.d.ts +35 -33
- package/radio/@types/index.d.ts +41 -39
- package/radio/core/controlled/index.esm.js.map +1 -1
- package/radio/core/hookForm/index.esm.js.map +1 -1
- package/radio/radio/index.esm.js.map +1 -1
- package/select/@types/index.d.ts +46 -44
- package/select/core/controlled/index.esm.js.map +1 -1
- package/select/core/hookForm/index.esm.js.map +1 -1
- package/select/select/index.esm.js.map +1 -1
- package/style/scss/_variables.scss +929 -929
- package/style/scss/bootstrap.scss +33 -33
- package/style/scss/core/_reset.scss +75 -75
- package/switch/@types/index.d.ts +22 -20
- package/switch/core/controlled/index.esm.js.map +1 -1
- package/switch/core/hookForm/index.esm.js.map +1 -1
- package/switch/switch/index.esm.js.map +1 -1
- package/table/@types/click.d.ts +7 -5
- package/table/@types/column.d.ts +58 -56
- package/table/@types/edit.d.ts +5 -5
- package/table/@types/expand.d.ts +32 -32
- package/table/@types/group.d.ts +20 -20
- package/table/@types/index.d.ts +63 -61
- package/table/@types/pagination.d.ts +26 -26
- package/table/@types/reorder.d.ts +16 -16
- package/table/@types/selection.d.ts +15 -15
- package/table/@types/sort.d.ts +8 -6
- package/table/@types/style.d.ts +20 -20
- package/table/@types/template.d.ts +22 -20
- package/table/core/click/index.esm.js.map +1 -1
- package/table/core/core/index.esm.js.map +1 -1
- package/table/core/expand/index.esm.js.map +1 -1
- package/table/core/group/index.esm.js.map +1 -1
- package/table/core/pagination/index.esm.js.map +1 -1
- package/table/core/reorder/index.esm.js.map +1 -1
- package/table/core/selection/index.esm.js.map +1 -1
- package/table/core/sort/index.esm.js.map +1 -1
- package/table/styled/index.esm.js.map +1 -1
- package/table/table/index.esm.js.map +1 -1
- package/tablepivot/@types/index.d.ts +50 -50
- package/tablepivot/@types/webdatarocks.d.ts +166 -166
- package/tablepivot/_tablepivot.scss +84 -84
- package/tablepivot/function/handle/index.esm.js.map +1 -1
- package/tablepivot/lang/pt-br/index.esm.js.map +1 -1
- package/tablepivot/tablepivot/index.esm.js.map +1 -1
- package/tabview/@types/index.d.ts +61 -59
- package/tabview/_tabview.scss +25 -25
- package/tabview/tabview/index.esm.js.map +1 -1
- package/textarea/@types/index.d.ts +18 -16
- package/textarea/core/controlled/index.esm.js.map +1 -1
- package/textarea/core/hookForm/index.esm.js.map +1 -1
- package/textarea/textarea/index.esm.js.map +1 -1
- package/tooltip/@types/index.d.ts +59 -57
- package/tooltip/core/handle/index.esm.js.map +1 -1
- package/tooltip/package.json +5 -5
- package/tooltip/tooltip/index.esm.js.map +1 -1
- package/utils/@types/index.d.ts +2 -2
- package/utils/@types/message.d.ts +18 -16
- package/utils/@types/request.d.ts +22 -22
- package/utils/@types/response.d.ts +55 -55
- package/utils/const/index.esm.js.map +1 -1
- package/utils/handle/index.esm.js.map +1 -1
- package/utils/helper/index.esm.js.map +1 -1
- package/utils/message/index.esm.js.map +1 -1
- package/utils/request/index.esm.js.map +1 -1
- package/utils/response/index.esm.js.map +1 -1
package/table/@types/index.d.ts
CHANGED
|
@@ -11,65 +11,67 @@ import { TableTemplateProps } from './template';
|
|
|
11
11
|
import { SortOrder } from 'primereact/datatable';
|
|
12
12
|
import { TableSelectionProps } from './selection';
|
|
13
13
|
import { TablePaginationProps } from './pagination';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export type TableLazyProps = {
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Define qual campo vem com a ordernação padrão do back-end
|
|
20
|
+
*/
|
|
21
|
+
sortField?: string
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Define qual é o tipo de ordenação padrão do back-end
|
|
25
|
+
*/
|
|
26
|
+
sortOrder?: SortOrder
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Define qual é paginação inicial
|
|
30
|
+
*/
|
|
31
|
+
paginationPage?: number
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Define o número total de registro da tabela
|
|
35
|
+
*/
|
|
36
|
+
paginationTotal?: number
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export interface TableProps<T> extends ApiComponentProps,
|
|
40
|
+
TableSortProps,
|
|
41
|
+
TableEditProps,
|
|
42
|
+
TableStyleProps,
|
|
43
|
+
TableClickProps,
|
|
44
|
+
TableGroupProps,
|
|
45
|
+
TableExpandProps,
|
|
46
|
+
TableReorderProps,
|
|
47
|
+
TableTemplateProps,
|
|
48
|
+
TableSelectionProps,
|
|
49
|
+
TablePaginationProps {
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Uma matriz de objeto que renderiza o cabeçalho
|
|
53
|
+
*/
|
|
54
|
+
column: Array<TableColumnProps>
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Uma matriz de objetos a serem exibidos.
|
|
58
|
+
*/
|
|
59
|
+
data: Array<T>
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Texto a ser exibido quando não há dados.
|
|
63
|
+
*/
|
|
64
|
+
emptyMessage?: string
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Define se a gerenciamento da tabela vai ser manual ou dinamica
|
|
68
|
+
*/
|
|
69
|
+
lazy?: TableLazyProps
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Define se componente `Column` vai ser renderizado todas as vezes que mudar state do selection
|
|
73
|
+
*/
|
|
74
|
+
cellRender?: boolean
|
|
75
|
+
}
|
|
76
|
+
|
|
75
77
|
export * from './column';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export interface TablePaginationProps {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Define se tabela vai utilizar paginação de resultado
|
|
5
|
-
*/
|
|
6
|
-
paginator?: boolean
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Define o numero de elemento por página
|
|
10
|
-
*/
|
|
11
|
-
paginatorRow?: 5 | 10 | 15 | 20 | 25 | 50 | 100
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Define o alinhamento da paginação
|
|
15
|
-
*/
|
|
16
|
-
paginatorAlign?: "end" | "center" | "start"
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Define o texto da quantidade de registro na paginação
|
|
20
|
-
*/
|
|
21
|
-
paginatorTotalElementsLabel?: string
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Método para realizar paginação manual
|
|
25
|
-
*/
|
|
26
|
-
onPaginator?(number: number, elements: number): void
|
|
1
|
+
export interface TablePaginationProps {
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Define se tabela vai utilizar paginação de resultado
|
|
5
|
+
*/
|
|
6
|
+
paginator?: boolean
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Define o numero de elemento por página
|
|
10
|
+
*/
|
|
11
|
+
paginatorRow?: 5 | 10 | 15 | 20 | 25 | 50 | 100
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Define o alinhamento da paginação
|
|
15
|
+
*/
|
|
16
|
+
paginatorAlign?: "end" | "center" | "start"
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Define o texto da quantidade de registro na paginação
|
|
20
|
+
*/
|
|
21
|
+
paginatorTotalElementsLabel?: string
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Método para realizar paginação manual
|
|
25
|
+
*/
|
|
26
|
+
onPaginator?(number: number, elements: number): void
|
|
27
27
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export interface TableReorderProps {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Quando ativo, linhas e colunas podem ser reordenadas usando drag and drop.
|
|
5
|
-
*/
|
|
6
|
-
reorder?: "rows" | "columns" | "all"
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Define o atributo de ordenação
|
|
10
|
-
*/
|
|
11
|
-
reorderRowsAttr?: string
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Callback para atualizar nova ordem.
|
|
15
|
-
*/
|
|
16
|
-
onReorder?(data: Array<{ id: any, order: any }>): void;
|
|
1
|
+
export interface TableReorderProps {
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Quando ativo, linhas e colunas podem ser reordenadas usando drag and drop.
|
|
5
|
+
*/
|
|
6
|
+
reorder?: "rows" | "columns" | "all"
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Define o atributo de ordenação
|
|
10
|
+
*/
|
|
11
|
+
reorderRowsAttr?: string
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Callback para atualizar nova ordem.
|
|
15
|
+
*/
|
|
16
|
+
onReorder?(data: Array<{ id: any, order: any }>): void;
|
|
17
17
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface TableSelectionProps {
|
|
2
|
-
/**
|
|
3
|
-
* Objeto selecionando dentro da tabela
|
|
4
|
-
*/
|
|
5
|
-
selection?: any
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Define qual tipo de seleção
|
|
9
|
-
*/
|
|
10
|
-
selectionMode?: "single" | "checkbox"
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Realiza a seleção do element
|
|
14
|
-
*/
|
|
15
|
-
onSelection?(value: any): void
|
|
1
|
+
export interface TableSelectionProps {
|
|
2
|
+
/**
|
|
3
|
+
* Objeto selecionando dentro da tabela
|
|
4
|
+
*/
|
|
5
|
+
selection?: any
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Define qual tipo de seleção
|
|
9
|
+
*/
|
|
10
|
+
selectionMode?: "single" | "checkbox"
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Realiza a seleção do element
|
|
14
|
+
*/
|
|
15
|
+
onSelection?(value: any): void
|
|
16
16
|
}
|
package/table/@types/sort.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { SortOrder } from 'primereact/datatable';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export interface TableSortProps {
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Método para realizar ordernação manual
|
|
8
|
+
*/
|
|
9
|
+
onSort?(field: string, order: SortOrder): void
|
|
8
10
|
}
|
package/table/@types/style.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export interface TableStyleProps {
|
|
2
|
-
/**
|
|
3
|
-
* Define estilo da tabela como listrada
|
|
4
|
-
*/
|
|
5
|
-
styleStriped?: boolean
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Define se as coluna das tabela por ser redimensionadas
|
|
9
|
-
*/
|
|
10
|
-
styleResizable?: boolean
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Define estilo da tabela com bordar ou sem borda
|
|
14
|
-
*/
|
|
15
|
-
styleType?: "bordered"
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Define o tamanho da tabela.
|
|
19
|
-
*/
|
|
20
|
-
styleSize?: "small" | "normal" | "large"
|
|
1
|
+
export interface TableStyleProps {
|
|
2
|
+
/**
|
|
3
|
+
* Define estilo da tabela como listrada
|
|
4
|
+
*/
|
|
5
|
+
styleStriped?: boolean
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Define se as coluna das tabela por ser redimensionadas
|
|
9
|
+
*/
|
|
10
|
+
styleResizable?: boolean
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Define estilo da tabela com bordar ou sem borda
|
|
14
|
+
*/
|
|
15
|
+
styleType?: "bordered"
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Define o tamanho da tabela.
|
|
19
|
+
*/
|
|
20
|
+
styleSize?: "small" | "normal" | "large"
|
|
21
21
|
}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export interface TableTemplateProps {
|
|
5
|
+
/**
|
|
6
|
+
* Conteúdo do cabeçalho personalizado.
|
|
7
|
+
*/
|
|
8
|
+
templeteHeader?: React.ReactNode
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Conteúdo do rodapé personalizado.
|
|
12
|
+
*/
|
|
13
|
+
templateFooter?: React.ReactNode
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Contéudo personalizado do lado esquerdo do elemento de `paginação`
|
|
17
|
+
*/
|
|
18
|
+
templatePaginationLeft?: React.ReactNode
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Contéudo personalizado do lado direiro do elemento de `paginação`
|
|
22
|
+
*/
|
|
23
|
+
templatePaginationRight?: React.ReactNode
|
|
22
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/click.tsx"],"sourcesContent":["import { TableProps } from \"..\";\nimport { DataTableProps, DataTableRowClickEvent, DataTableSelectionSingleChangeEvent } from \"primereact/datatable\";\n\n/**\n * Componente - `Table`\n *\n * Define as configurações do modo de seleção de dados.\n */\nexport function tableClick(\n props: TableProps<any>\n): Partial<DataTableProps<any>> {\n\n function onDoubleClick(e: DataTableRowClickEvent) {\n if (props.onDoubleClick) {\n props.onDoubleClick(e);\n }\n }\n\n return {\n onRowDoubleClick: onDoubleClick\n };\n}"],"mappings":";AAQA,SAAgB,EACZ,GAC4B;CAE5B,SAAS,EAAc,GAA2B;EAC9C,AAAI,EAAM,iBACN,EAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/click.tsx"],"sourcesContent":["import { TableProps } from \"..\";\r\nimport { DataTableProps, DataTableRowClickEvent, DataTableSelectionSingleChangeEvent } from \"primereact/datatable\";\r\n\r\n/**\r\n * Componente - `Table`\r\n *\r\n * Define as configurações do modo de seleção de dados.\r\n */\r\nexport function tableClick(\r\n props: TableProps<any>\r\n): Partial<DataTableProps<any>> {\r\n\r\n function onDoubleClick(e: DataTableRowClickEvent) {\r\n if (props.onDoubleClick) {\r\n props.onDoubleClick(e);\r\n }\r\n }\r\n\r\n return {\r\n onRowDoubleClick: onDoubleClick\r\n };\r\n}"],"mappings":";AAQA,SAAgB,EACZ,GAC4B;CAE5B,SAAS,EAAc,GAA2B;EAC9C,AAAI,EAAM,iBACN,EAAM,cAAc,CAAC;CAE7B;CAEA,OAAO,EACH,kBAAkB,EACtB;AACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/core.tsx"],"sourcesContent":["import { TableProps } from \"..\";\nimport { DataTableBaseProps } from \"primereact/datatable\";\n\n/**\n * Componente - `Table`\n *\n * Define as configurações do modo principal da tabela.\n */\nexport function tableCore(\n props: TableProps<any>\n): Partial<DataTableBaseProps<any>> {\n\n const cellRender = (isRender?: boolean) => {\n return isRender === undefined ? {} : {\n cellMemo: props.cellRender ?? undefined\n };\n };\n\n return {\n dataKey: \"id\",\n value: props.data as any,\n lazy: props.lazy !== undefined,\n resizableColumns: props.styleResizable ?? false,\n columnResizeMode: \"expand\",\n emptyMessage: props.emptyMessage ?? \"Não há informações disponíveis no momento.\",\n header: props.templeteHeader,\n footer: props.templateFooter,\n stripedRows: props.styleStriped,\n size: props.styleSize,\n showGridlines: props.styleType === \"bordered\",\n ...cellRender(props.cellRender)\n };\n}"],"mappings":";AAQA,SAAgB,EACZ,GACgC;CAQhC,OAAO;EACH,SAAS;EACT,OAAO,EAAM;EACb,MAAM,EAAM,SAAS,KAAA;EACrB,kBAAkB,EAAM,kBAAkB;EAC1C,kBAAkB;EAClB,cAAc,EAAM,gBAAgB;EACpC,QAAQ,EAAM;EACd,QAAQ,EAAM;EACd,aAAa,EAAM;EACnB,MAAM,EAAM;EACZ,eAAe,EAAM,cAAc;EACnC,KAlBgB,MACT,MAAa,KAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/core.tsx"],"sourcesContent":["import { TableProps } from \"..\";\r\nimport { DataTableBaseProps } from \"primereact/datatable\";\r\n\r\n/**\r\n * Componente - `Table`\r\n *\r\n * Define as configurações do modo principal da tabela.\r\n */\r\nexport function tableCore(\r\n props: TableProps<any>\r\n): Partial<DataTableBaseProps<any>> {\r\n\r\n const cellRender = (isRender?: boolean) => {\r\n return isRender === undefined ? {} : {\r\n cellMemo: props.cellRender ?? undefined\r\n };\r\n };\r\n\r\n return {\r\n dataKey: \"id\",\r\n value: props.data as any,\r\n lazy: props.lazy !== undefined,\r\n resizableColumns: props.styleResizable ?? false,\r\n columnResizeMode: \"expand\",\r\n emptyMessage: props.emptyMessage ?? \"Não há informações disponíveis no momento.\",\r\n header: props.templeteHeader,\r\n footer: props.templateFooter,\r\n stripedRows: props.styleStriped,\r\n size: props.styleSize,\r\n showGridlines: props.styleType === \"bordered\",\r\n ...cellRender(props.cellRender)\r\n };\r\n}"],"mappings":";AAQA,SAAgB,EACZ,GACgC;CAQhC,OAAO;EACH,SAAS;EACT,OAAO,EAAM;EACb,MAAM,EAAM,SAAS,KAAA;EACrB,kBAAkB,EAAM,kBAAkB;EAC1C,kBAAkB;EAClB,cAAc,EAAM,gBAAgB;EACpC,QAAQ,EAAM;EACd,QAAQ,EAAM;EACd,aAAa,EAAM;EACnB,MAAM,EAAM;EACZ,eAAe,EAAM,cAAc;EACnC,KAlBgB,MACT,MAAa,KAAA,IAAY,CAAC,IAAI,EACjC,UAAU,EAAM,cAAc,KAAA,EAClC,GAec,EAAM,UAAU;CAClC;AACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/expand.tsx"],"sourcesContent":["import { TableProps } from \"..\";\nimport { DataTableBaseProps } from \"primereact/datatable\";\n\n/**\n * Componente - `Table`\n *\n * Define as configurações de expansão da tabela.\n */\nexport function tableExpand(\n props: TableProps<any>,\n): Partial<DataTableBaseProps<any>> {\n return {\n expandedRows: props.rowExpandable,\n expandableRowGroups: props.rowExpandable !== undefined && props.rowGroup !== undefined,\n rowExpansionTemplate: props.rowExpansionTemplate,\n onRowToggle: props.onRowExpandable,\n onRowExpand: props.onRowExpand,\n onRowCollapse: props.onRowCollapse,\n };\n}"],"mappings":";AAQA,SAAgB,EACZ,GACgC;CAChC,OAAO;EACH,cAAc,EAAM;EACpB,qBAAqB,EAAM,kBAAkB,KAAA,KAAa,EAAM,aAAa,KAAA;EAC7E,sBAAsB,EAAM;EAC5B,aAAa,EAAM;EACnB,aAAa,EAAM;EACnB,eAAe,EAAM;
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/expand.tsx"],"sourcesContent":["import { TableProps } from \"..\";\r\nimport { DataTableBaseProps } from \"primereact/datatable\";\r\n\r\n/**\r\n * Componente - `Table`\r\n *\r\n * Define as configurações de expansão da tabela.\r\n */\r\nexport function tableExpand(\r\n props: TableProps<any>,\r\n): Partial<DataTableBaseProps<any>> {\r\n return {\r\n expandedRows: props.rowExpandable,\r\n expandableRowGroups: props.rowExpandable !== undefined && props.rowGroup !== undefined,\r\n rowExpansionTemplate: props.rowExpansionTemplate,\r\n onRowToggle: props.onRowExpandable,\r\n onRowExpand: props.onRowExpand,\r\n onRowCollapse: props.onRowCollapse,\r\n };\r\n}"],"mappings":";AAQA,SAAgB,EACZ,GACgC;CAChC,OAAO;EACH,cAAc,EAAM;EACpB,qBAAqB,EAAM,kBAAkB,KAAA,KAAa,EAAM,aAAa,KAAA;EAC7E,sBAAsB,EAAM;EAC5B,aAAa,EAAM;EACnB,aAAa,EAAM;EACnB,eAAe,EAAM;CACzB;AACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/group.tsx"],"sourcesContent":["import { TableProps } from \"..\";\nimport { DataTableBaseProps } from \"primereact/datatable\";\n\n/**\n * Componente - `Table`\n *\n * Define as configurações de agrupamento da tabela.\n */\nexport function tableGroup(props: TableProps<any>): Partial<DataTableBaseProps<any>> {\n return {\n groupRowsBy: props.rowGroup,\n rowGroupMode: props.rowGroupMode,\n rowGroupHeaderTemplate: props.rowGroupHeaderTemplate,\n rowGroupFooterTemplate: props.rowGroupFooterTemplate,\n };\n}"],"mappings":";AAQA,SAAgB,EAAW,GAA0D;CACjF,OAAO;EACH,aAAa,EAAM;EACnB,cAAc,EAAM;EACpB,wBAAwB,EAAM;EAC9B,wBAAwB,EAAM;
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/group.tsx"],"sourcesContent":["import { TableProps } from \"..\";\r\nimport { DataTableBaseProps } from \"primereact/datatable\";\r\n\r\n/**\r\n * Componente - `Table`\r\n *\r\n * Define as configurações de agrupamento da tabela.\r\n */\r\nexport function tableGroup(props: TableProps<any>): Partial<DataTableBaseProps<any>> {\r\n return {\r\n groupRowsBy: props.rowGroup,\r\n rowGroupMode: props.rowGroupMode,\r\n rowGroupHeaderTemplate: props.rowGroupHeaderTemplate,\r\n rowGroupFooterTemplate: props.rowGroupFooterTemplate,\r\n };\r\n}"],"mappings":";AAQA,SAAgB,EAAW,GAA0D;CACjF,OAAO;EACH,aAAa,EAAM;EACnB,cAAc,EAAM;EACpB,wBAAwB,EAAM;EAC9B,wBAAwB,EAAM;CAClC;AACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/pagination.tsx"],"sourcesContent":["import React from \"react\";\nimport { TableProps } from \"..\";\nimport { DataTableBaseProps, DataTableStateEvent } from \"primereact/datatable\";\n\n/**\n * Componente - `Table`\n *\n * Define as configurações do modo de paginação de resultado.\n */\nexport function tablePagination(\n props: TableProps<any>\n): Partial<DataTableBaseProps<any>> {\n\n function onPage(event: DataTableStateEvent) {\n let paginationPage = event.first / (props.paginatorRow ?? 10);\n if (props.onPaginator) {\n props.onPaginator(paginationPage + 1, event.rows);\n }\n }\n\n return {\n paginator: props.paginator ?? false,\n totalRecords: props?.lazy?.paginationTotal ?? undefined,\n first: props?.lazy?.paginationPage === undefined ? 0 : ((props?.lazy?.paginationPage ?? 0) - 1) * (props.paginatorRow ?? 10),\n rows: props.paginator ? (props.paginatorRow ?? 10) : undefined,\n rowsPerPageOptions: [5, 10, 15, 20, 50, 100],\n paginatorTemplate: {\n layout: \"RowsPerPageDropdown FirstPageLink PageLinks LastPageLink CurrentPageReport\",\n CurrentPageReport: options => {\n return (\n <span\n className=\"ms-2\">{props.paginatorTotalElementsLabel ?? \"Total\"}: {options.totalRecords}</span>\n );\n },\n },\n paginatorDropdownAppendTo: \"self\",\n paginatorRight: props.templatePaginationRight,\n paginatorLeft: props.templatePaginationLeft,\n onPage: props.lazy !== undefined ? onPage : undefined,\n };\n}"],"mappings":";;;AASA,SAAgB,EACZ,GACgC;CAEhC,SAAS,EAAO,GAA4B;EACxC,IAAI,IAAiB,EAAM,SAAS,EAAM,gBAAgB;EAC1D,AAAI,EAAM,eACN,EAAM,YAAY,IAAiB,GAAG,EAAM,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/pagination.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { TableProps } from \"..\";\r\nimport { DataTableBaseProps, DataTableStateEvent } from \"primereact/datatable\";\r\n\r\n/**\r\n * Componente - `Table`\r\n *\r\n * Define as configurações do modo de paginação de resultado.\r\n */\r\nexport function tablePagination(\r\n props: TableProps<any>\r\n): Partial<DataTableBaseProps<any>> {\r\n\r\n function onPage(event: DataTableStateEvent) {\r\n let paginationPage = event.first / (props.paginatorRow ?? 10);\r\n if (props.onPaginator) {\r\n props.onPaginator(paginationPage + 1, event.rows);\r\n }\r\n }\r\n\r\n return {\r\n paginator: props.paginator ?? false,\r\n totalRecords: props?.lazy?.paginationTotal ?? undefined,\r\n first: props?.lazy?.paginationPage === undefined ? 0 : ((props?.lazy?.paginationPage ?? 0) - 1) * (props.paginatorRow ?? 10),\r\n rows: props.paginator ? (props.paginatorRow ?? 10) : undefined,\r\n rowsPerPageOptions: [5, 10, 15, 20, 50, 100],\r\n paginatorTemplate: {\r\n layout: \"RowsPerPageDropdown FirstPageLink PageLinks LastPageLink CurrentPageReport\",\r\n CurrentPageReport: options => {\r\n return (\r\n <span\r\n className=\"ms-2\">{props.paginatorTotalElementsLabel ?? \"Total\"}: {options.totalRecords}</span>\r\n );\r\n },\r\n },\r\n paginatorDropdownAppendTo: \"self\",\r\n paginatorRight: props.templatePaginationRight,\r\n paginatorLeft: props.templatePaginationLeft,\r\n onPage: props.lazy !== undefined ? onPage : undefined,\r\n };\r\n}"],"mappings":";;;AASA,SAAgB,EACZ,GACgC;CAEhC,SAAS,EAAO,GAA4B;EACxC,IAAI,IAAiB,EAAM,SAAS,EAAM,gBAAgB;EAC1D,AAAI,EAAM,eACN,EAAM,YAAY,IAAiB,GAAG,EAAM,IAAI;CAExD;CAEA,OAAO;EACH,WAAW,EAAM,aAAa;EAC9B,cAAc,GAAO,MAAM,mBAAmB,KAAA;EAC9C,OAAO,GAAO,MAAM,mBAAmB,KAAA,IAAY,MAAM,GAAO,MAAM,kBAAkB,KAAK,MAAM,EAAM,gBAAgB;EACzH,MAAM,EAAM,YAAa,EAAM,gBAAgB,KAAM,KAAA;EACrD,oBAAoB;GAAC;GAAG;GAAI;GAAI;GAAI;GAAI;EAAG;EAC3C,mBAAmB;GACf,QAAQ;GACR,oBAAmB,MAEX,kBAAC,QAAD;IACI,WAAU;cADd;KACsB,EAAM,+BAA+B;KAAQ;KAAG,EAAQ;IAAmB;;EAG7G;EACA,2BAA2B;EAC3B,gBAAgB,EAAM;EACtB,eAAe,EAAM;EACrB,QAAQ,EAAM,SAAS,KAAA,IAAqB,KAAA,IAAT;CACvC;AACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/reorder.tsx"],"sourcesContent":["import { TableProps } from \"..\";\nimport { DataTableProps, DataTableRowReorderEvent } from \"primereact/datatable\";\n\n/**\n * Componente - `Table`\n *\n * Define as configurações do modo de ordenação colunas e tabelas.\n */\nexport function tableReorder(\n props: TableProps<any>\n): Partial<DataTableProps<any>> {\n\n function onReorder(e: DataTableRowReorderEvent<any>) {\n if (props.onReorder) {\n let attr = props.reorderRowsAttr ?? \"order\";\n let data: any = [...e.value];\n\n data.forEach((item: any, index: number) => {\n item[attr] = index + 1;\n });\n\n return props.onReorder(data);\n }\n }\n\n return {\n reorderableColumns: props.reorder === \"all\" || props.reorder === \"columns\",\n reorderableRows: props.reorder === \"all\" || props.reorder === \"rows\",\n onRowReorder: onReorder\n };\n}\n"],"mappings":";AAQA,SAAgB,EACZ,GAC4B;CAE5B,SAAS,EAAU,GAAkC;EACjD,IAAI,EAAM,WAAW;GACjB,IAAI,IAAO,EAAM,mBAAmB,SAChC,IAAY,CAAC,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/reorder.tsx"],"sourcesContent":["import { TableProps } from \"..\";\r\nimport { DataTableProps, DataTableRowReorderEvent } from \"primereact/datatable\";\r\n\r\n/**\r\n * Componente - `Table`\r\n *\r\n * Define as configurações do modo de ordenação colunas e tabelas.\r\n */\r\nexport function tableReorder(\r\n props: TableProps<any>\r\n): Partial<DataTableProps<any>> {\r\n\r\n function onReorder(e: DataTableRowReorderEvent<any>) {\r\n if (props.onReorder) {\r\n let attr = props.reorderRowsAttr ?? \"order\";\r\n let data: any = [...e.value];\r\n\r\n data.forEach((item: any, index: number) => {\r\n item[attr] = index + 1;\r\n });\r\n\r\n return props.onReorder(data);\r\n }\r\n }\r\n\r\n return {\r\n reorderableColumns: props.reorder === \"all\" || props.reorder === \"columns\",\r\n reorderableRows: props.reorder === \"all\" || props.reorder === \"rows\",\r\n onRowReorder: onReorder\r\n };\r\n}\r\n"],"mappings":";AAQA,SAAgB,EACZ,GAC4B;CAE5B,SAAS,EAAU,GAAkC;EACjD,IAAI,EAAM,WAAW;GACjB,IAAI,IAAO,EAAM,mBAAmB,SAChC,IAAY,CAAC,GAAG,EAAE,KAAK;GAM3B,OAJA,EAAK,SAAS,GAAW,MAAkB;IACvC,EAAK,KAAQ,IAAQ;GACzB,CAAC,GAEM,EAAM,UAAU,CAAI;EAC/B;CACJ;CAEA,OAAO;EACH,oBAAoB,EAAM,YAAY,SAAS,EAAM,YAAY;EACjE,iBAAiB,EAAM,YAAY,SAAS,EAAM,YAAY;EAC9D,cAAc;CAClB;AACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/selection.tsx"],"sourcesContent":["import { TableProps } from \"..\";\nimport { DataTableProps, DataTableSelectionSingleChangeEvent } from \"primereact/datatable\";\n\n/**\n * Componente - `Table`\n *\n * Define as configurações do modo de seleção de dados.\n */\nexport function tableSelection(\n props: TableProps<any>\n): Partial<DataTableProps<any>> {\n\n function onSelect(e: DataTableSelectionSingleChangeEvent<any>) {\n if (props.onSelection) {\n props.onSelection(e.value);\n }\n }\n\n return {\n metaKeySelection: props.onSelection !== undefined,\n selection: props.selection,\n selectionMode: props.onSelection !== undefined ? (props.selectionMode as any ?? \"single\") : undefined,\n onSelectionChange: onSelect,\n };\n}"],"mappings":";AAQA,SAAgB,EACZ,GAC4B;CAE5B,SAAS,EAAS,GAA6C;EAC3D,AAAI,EAAM,eACN,EAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/selection.tsx"],"sourcesContent":["import { TableProps } from \"..\";\r\nimport { DataTableProps, DataTableSelectionSingleChangeEvent } from \"primereact/datatable\";\r\n\r\n/**\r\n * Componente - `Table`\r\n *\r\n * Define as configurações do modo de seleção de dados.\r\n */\r\nexport function tableSelection(\r\n props: TableProps<any>\r\n): Partial<DataTableProps<any>> {\r\n\r\n function onSelect(e: DataTableSelectionSingleChangeEvent<any>) {\r\n if (props.onSelection) {\r\n props.onSelection(e.value);\r\n }\r\n }\r\n\r\n return {\r\n metaKeySelection: props.onSelection !== undefined,\r\n selection: props.selection,\r\n selectionMode: props.onSelection !== undefined ? (props.selectionMode as any ?? \"single\") : undefined,\r\n onSelectionChange: onSelect,\r\n };\r\n}"],"mappings":";AAQA,SAAgB,EACZ,GAC4B;CAE5B,SAAS,EAAS,GAA6C;EAC3D,AAAI,EAAM,eACN,EAAM,YAAY,EAAE,KAAK;CAEjC;CAEA,OAAO;EACH,kBAAkB,EAAM,gBAAgB,KAAA;EACxC,WAAW,EAAM;EACjB,eAAe,EAAM,gBAAgB,KAAA,IAAuD,KAAA,IAA1C,EAAM,iBAAwB;EAChF,mBAAmB;CACvB;AACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/sort.tsx"],"sourcesContent":["import { TableProps } from \"..\";\nimport { DataTableProps, DataTableStateEvent } from \"primereact/datatable\";\n\n/**\n * Componente - `Table`\n *\n * Define as configurações do modo de ordenação de resultado.\n */\nexport function tableSort(\n props: TableProps<any>\n): Partial<DataTableProps<any>> {\n\n function onSort(event: DataTableStateEvent) {\n if (props.onSort) {\n props.onSort(event.sortField, event.sortOrder);\n }\n }\n\n return {\n sortField: props.lazy?.sortField,\n sortOrder: props.lazy?.sortOrder ?? null,\n onSort: props.lazy !== undefined ? onSort : undefined\n };\n}"],"mappings":";AAQA,SAAgB,EACZ,GAC4B;CAE5B,SAAS,EAAO,GAA4B;EACxC,AAAI,EAAM,UACN,EAAM,OAAO,EAAM,WAAW,EAAM,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/table/core/sort.tsx"],"sourcesContent":["import { TableProps } from \"..\";\r\nimport { DataTableProps, DataTableStateEvent } from \"primereact/datatable\";\r\n\r\n/**\r\n * Componente - `Table`\r\n *\r\n * Define as configurações do modo de ordenação de resultado.\r\n */\r\nexport function tableSort(\r\n props: TableProps<any>\r\n): Partial<DataTableProps<any>> {\r\n\r\n function onSort(event: DataTableStateEvent) {\r\n if (props.onSort) {\r\n props.onSort(event.sortField, event.sortOrder);\r\n }\r\n }\r\n\r\n return {\r\n sortField: props.lazy?.sortField,\r\n sortOrder: props.lazy?.sortOrder ?? null,\r\n onSort: props.lazy !== undefined ? onSort : undefined\r\n };\r\n}"],"mappings":";AAQA,SAAgB,EACZ,GAC4B;CAE5B,SAAS,EAAO,GAA4B;EACxC,AAAI,EAAM,UACN,EAAM,OAAO,EAAM,WAAW,EAAM,SAAS;CAErD;CAEA,OAAO;EACH,WAAW,EAAM,MAAM;EACvB,WAAW,EAAM,MAAM,aAAa;EACpC,QAAQ,EAAM,SAAS,KAAA,IAAqB,KAAA,IAAT;CACvC;AACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../src/table/styled.ts"],"sourcesContent":["import { TableProps } from \".\";\nimport { classNames } from \"primereact/utils\";\nimport { DataTablePassThroughOptions } from \"primereact/datatable\";\n\n/**\n * Realiza a personalização na TABLE\n */\nexport function bootstrapTableStyle(props: TableProps<any>): DataTablePassThroughOptions {\n return {\n paginator: {\n root: {\n className: classNames([\n `justify-content-${props.paginatorAlign ?? \"center\"}`\n ]),\n }\n }\n };\n}"],"mappings":";;AAOA,SAAgB,EAAoB,GAAqD;CACrF,OAAO,EACH,WAAW,EACP,MAAM,EACF,WAAW,EAAW,CAClB,mBAAmB,EAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../src/table/styled.ts"],"sourcesContent":["import { TableProps } from \".\";\r\nimport { classNames } from \"primereact/utils\";\r\nimport { DataTablePassThroughOptions } from \"primereact/datatable\";\r\n\r\n/**\r\n * Realiza a personalização na TABLE\r\n */\r\nexport function bootstrapTableStyle(props: TableProps<any>): DataTablePassThroughOptions {\r\n return {\r\n paginator: {\r\n root: {\r\n className: classNames([\r\n `justify-content-${props.paginatorAlign ?? \"center\"}`\r\n ]),\r\n }\r\n }\r\n };\r\n}"],"mappings":";;AAOA,SAAgB,EAAoB,GAAqD;CACrF,OAAO,EACH,WAAW,EACP,MAAM,EACF,WAAW,EAAW,CAClB,mBAAmB,EAAM,kBAAkB,UAC/C,CAAC,EACL,EACJ,EACJ;AACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../src/table/table.tsx"],"sourcesContent":["import React from \"react\";\nimport { Box } from \"../box\";\nimport { TableProps } from \".\";\nimport { tableCore } from \"./core/core\";\nimport { tableSort } from \"./core/sort\";\nimport { tableClick } from \"./core/click\";\nimport { tableGroup } from \"./core/group\";\nimport { Column } from \"primereact/column\";\nimport { tableExpand } from \"./core/expand\";\nimport { tableReorder } from \"./core/reorder\";\nimport { bootstrapTableStyle } from \"./styled\";\nimport { DataTable } from \"primereact/datatable\";\nimport { tableSelection } from \"./core/selection\";\nimport { tablePagination } from \"./core/pagination\";\n\n/**\n * Componente - `Table`\n *\n * Um componente versátil que pode ser utilizado para criar tabela de dados.\n * Permite personalizar o estilo e o conteúdo através de propriedades.\n */\nexport function Table<T = any>(props: TableProps<T>) {\n /*\n |------------------------------------------\n | render() - Renderização do componente\n |------------------------------------------\n */\n return (\n <Box className=\"p-0\"\n size={props.size ?? \"100\"}>\n {/*@ts-ignore*/}\n <DataTable<any>\n editMode={props.edit ? \"cell\" : undefined}\n pt={{ ...bootstrapTableStyle(props) }}\n tableClassName={props.className}\n {...tableCore(props)}\n {...tableGroup(props)}\n {...tableSort(props)}\n {...tableClick(props)}\n {...tableExpand(props)}\n {...tableReorder(props)}\n {...tableSelection(props)}\n {...tablePagination(props)}>\n {props.rowExpandable !== undefined && (\n <Column align=\"center\"\n columnKey=\"key-fixed-expand\"\n expander={data => data[props.rowExpandableAttr ?? \"\"] !== undefined}\n field=\"key-fixed-expand\"\n headerStyle={{ width: \"2.5rem\" }}\n key=\"key-fixed-expand\"/>)}\n {(props.reorder === \"all\" || props.reorder === \"rows\") && (\n <Column rowReorder\n align=\"center\"\n columnKey=\"key-fixed-reorder\"\n field=\"key-fixed-reorder\"\n headerStyle={{ width: \"2.5rem\" }}\n key=\"key-fixed-reorder\"/>)}\n {props.selectionMode === \"checkbox\"\n && <Column align=\"center\"\n columnKey=\"key-fixed-select\"\n field=\"key-fixed-select\"\n headerStyle={{ width: \"2.5rem\" }}\n key=\"key-fixed-select\"\n selectionMode=\"multiple\"/>}\n {props.column.map(obj => {\n return (\n <Column align={obj.align}\n alignFrozen={obj.frozen ? \"right\" : undefined}\n alignHeader={obj.alignHeader}\n body={obj.body}\n columnKey={obj.id}\n editor={obj.editor}\n field={obj.id}\n frozen={obj.frozen !== undefined}\n header={obj.header}\n key={obj.id}\n sortable={obj.sort ?? false}\n style={obj.style}\n onCellEditComplete={obj.onEditorComplete}/>\n );\n })}\n </DataTable>\n </Box>\n );\n}\n\nTable.displayName = \"Table\";"],"mappings":";;;;;;;;;;;;;;;;AAqBA,SAAgB,EAAe,GAAsB;CAMjD,OACI,kBAAC,GAAD;EAAK,WAAU;EACX,MAAM,EAAM,QAAQ;YAEpB,kBAAC,GAAD;GACI,UAAU,EAAM,OAAO,SAAS,KAAA;GAChC,IAAI,EAAE,GAAG,EAAoB,
|
|
1
|
+
{"version":3,"file":"index.esm.js","names":[],"sources":["../../../src/table/table.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { Box } from \"../box\";\r\nimport { TableProps } from \".\";\r\nimport { tableCore } from \"./core/core\";\r\nimport { tableSort } from \"./core/sort\";\r\nimport { tableClick } from \"./core/click\";\r\nimport { tableGroup } from \"./core/group\";\r\nimport { Column } from \"primereact/column\";\r\nimport { tableExpand } from \"./core/expand\";\r\nimport { tableReorder } from \"./core/reorder\";\r\nimport { bootstrapTableStyle } from \"./styled\";\r\nimport { DataTable } from \"primereact/datatable\";\r\nimport { tableSelection } from \"./core/selection\";\r\nimport { tablePagination } from \"./core/pagination\";\r\n\r\n/**\r\n * Componente - `Table`\r\n *\r\n * Um componente versátil que pode ser utilizado para criar tabela de dados.\r\n * Permite personalizar o estilo e o conteúdo através de propriedades.\r\n */\r\nexport function Table<T = any>(props: TableProps<T>) {\r\n /*\r\n |------------------------------------------\r\n | render() - Renderização do componente\r\n |------------------------------------------\r\n */\r\n return (\r\n <Box className=\"p-0\"\r\n size={props.size ?? \"100\"}>\r\n {/*@ts-ignore*/}\r\n <DataTable<any>\r\n editMode={props.edit ? \"cell\" : undefined}\r\n pt={{ ...bootstrapTableStyle(props) }}\r\n tableClassName={props.className}\r\n {...tableCore(props)}\r\n {...tableGroup(props)}\r\n {...tableSort(props)}\r\n {...tableClick(props)}\r\n {...tableExpand(props)}\r\n {...tableReorder(props)}\r\n {...tableSelection(props)}\r\n {...tablePagination(props)}>\r\n {props.rowExpandable !== undefined && (\r\n <Column align=\"center\"\r\n columnKey=\"key-fixed-expand\"\r\n expander={data => data[props.rowExpandableAttr ?? \"\"] !== undefined}\r\n field=\"key-fixed-expand\"\r\n headerStyle={{ width: \"2.5rem\" }}\r\n key=\"key-fixed-expand\"/>)}\r\n {(props.reorder === \"all\" || props.reorder === \"rows\") && (\r\n <Column rowReorder\r\n align=\"center\"\r\n columnKey=\"key-fixed-reorder\"\r\n field=\"key-fixed-reorder\"\r\n headerStyle={{ width: \"2.5rem\" }}\r\n key=\"key-fixed-reorder\"/>)}\r\n {props.selectionMode === \"checkbox\"\r\n && <Column align=\"center\"\r\n columnKey=\"key-fixed-select\"\r\n field=\"key-fixed-select\"\r\n headerStyle={{ width: \"2.5rem\" }}\r\n key=\"key-fixed-select\"\r\n selectionMode=\"multiple\"/>}\r\n {props.column.map(obj => {\r\n return (\r\n <Column align={obj.align}\r\n alignFrozen={obj.frozen ? \"right\" : undefined}\r\n alignHeader={obj.alignHeader}\r\n body={obj.body}\r\n columnKey={obj.id}\r\n editor={obj.editor}\r\n field={obj.id}\r\n frozen={obj.frozen !== undefined}\r\n header={obj.header}\r\n key={obj.id}\r\n sortable={obj.sort ?? false}\r\n style={obj.style}\r\n onCellEditComplete={obj.onEditorComplete}/>\r\n );\r\n })}\r\n </DataTable>\r\n </Box>\r\n );\r\n}\r\n\r\nTable.displayName = \"Table\";"],"mappings":";;;;;;;;;;;;;;;;AAqBA,SAAgB,EAAe,GAAsB;CAMjD,OACI,kBAAC,GAAD;EAAK,WAAU;EACX,MAAM,EAAM,QAAQ;YAEpB,kBAAC,GAAD;GACI,UAAU,EAAM,OAAO,SAAS,KAAA;GAChC,IAAI,EAAE,GAAG,EAAoB,CAAK,EAAE;GACpC,gBAAgB,EAAM;GACtB,GAAI,EAAU,CAAK;GACnB,GAAI,EAAW,CAAK;GACpB,GAAI,EAAU,CAAK;GACnB,GAAI,EAAW,CAAK;GACpB,GAAI,EAAY,CAAK;GACrB,GAAI,EAAa,CAAK;GACtB,GAAI,EAAe,CAAK;GACxB,GAAI,EAAgB,CAAK;aAX7B;IAYK,EAAM,kBAAkB,KAAA,KACrB,kBAAC,GAAD;KAAQ,OAAM;KACV,WAAU;KACV,WAAU,MAAQ,EAAK,EAAM,qBAAqB,QAAQ,KAAA;KAC1D,OAAM;KACN,aAAa,EAAE,OAAO,SAAS;IACR,GAAnB,kBAAmB;KAC7B,EAAM,YAAY,SAAS,EAAM,YAAY,WAC3C,kBAAC,GAAD;KAAQ,YAAA;KACJ,OAAM;KACN,WAAU;KACV,OAAM;KACN,aAAa,EAAE,OAAO,SAAS;IACP,GAApB,mBAAoB;IAC/B,EAAM,kBAAkB,cAClB,kBAAC,GAAD;KAAQ,OAAM;KACb,WAAU;KACV,OAAM;KACN,aAAa,EAAE,OAAO,SAAS;KAE/B,eAAc;IAAW,GADrB,kBACqB;IAChC,EAAM,OAAO,KAAI,MAEV,kBAAC,GAAD;KAAQ,OAAO,EAAI;KACf,aAAa,EAAI,SAAS,UAAU,KAAA;KACpC,aAAa,EAAI;KACjB,MAAM,EAAI;KACV,WAAW,EAAI;KACf,QAAQ,EAAI;KACZ,OAAO,EAAI;KACX,QAAQ,EAAI,WAAW,KAAA;KACvB,QAAQ,EAAI;KAEZ,UAAU,EAAI,QAAQ;KACtB,OAAO,EAAI;KACX,oBAAoB,EAAI;IAAkB,GAHrC,EAAI,EAGiC,CAErD;GACM;;CACV,CAAA;AAEb;AAEA,EAAM,cAAc"}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { ApiComponentProps } from '../../api';
|
|
2
|
-
import * as Webdatarocks from "./webdatarocks";
|
|
3
|
-
|
|
4
|
-
export interface TablePivotProps extends ApiComponentProps {
|
|
5
|
-
/**
|
|
6
|
-
* Define se vai ser exibido o cabeçalho de opções
|
|
7
|
-
*/
|
|
8
|
-
toolbar?: boolean
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Define as opções que será exibidas no cabeçalho de opções
|
|
12
|
-
*/
|
|
13
|
-
toolbarOptions?: {
|
|
14
|
-
connect?: boolean
|
|
15
|
-
open?: boolean
|
|
16
|
-
save?: boolean
|
|
17
|
-
export?: boolean
|
|
18
|
-
format?: boolean
|
|
19
|
-
options?: boolean
|
|
20
|
-
fields?: boolean
|
|
21
|
-
fullscreen?: boolean
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Define a altura do componente de pivot table
|
|
26
|
-
*/
|
|
27
|
-
height?: string | number
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Define a estrutura de dados do pivot table
|
|
31
|
-
*/
|
|
32
|
-
pivotDataSource?: object[]
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Define o comportamento do pivot table
|
|
36
|
-
*/
|
|
37
|
-
pivotOptions?: Webdatarocks.Options
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Define o comportamento das linhas e colunas do pivot table
|
|
41
|
-
*/
|
|
42
|
-
pivotSlice?: Webdatarocks.Slice
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Realiza a personalização visual dos dados do pivot table
|
|
46
|
-
*/
|
|
47
|
-
pivotCustomizeCell?: (cellBuilder: any, cellData: any) => void
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface TablePivotRefProps {
|
|
51
|
-
webdatarocks: Webdatarocks.Ref
|
|
2
|
+
import * as Webdatarocks from "./webdatarocks";
|
|
3
|
+
|
|
4
|
+
export interface TablePivotProps extends ApiComponentProps {
|
|
5
|
+
/**
|
|
6
|
+
* Define se vai ser exibido o cabeçalho de opções
|
|
7
|
+
*/
|
|
8
|
+
toolbar?: boolean
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Define as opções que será exibidas no cabeçalho de opções
|
|
12
|
+
*/
|
|
13
|
+
toolbarOptions?: {
|
|
14
|
+
connect?: boolean
|
|
15
|
+
open?: boolean
|
|
16
|
+
save?: boolean
|
|
17
|
+
export?: boolean
|
|
18
|
+
format?: boolean
|
|
19
|
+
options?: boolean
|
|
20
|
+
fields?: boolean
|
|
21
|
+
fullscreen?: boolean
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Define a altura do componente de pivot table
|
|
26
|
+
*/
|
|
27
|
+
height?: string | number
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Define a estrutura de dados do pivot table
|
|
31
|
+
*/
|
|
32
|
+
pivotDataSource?: object[]
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Define o comportamento do pivot table
|
|
36
|
+
*/
|
|
37
|
+
pivotOptions?: Webdatarocks.Options
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Define o comportamento das linhas e colunas do pivot table
|
|
41
|
+
*/
|
|
42
|
+
pivotSlice?: Webdatarocks.Slice
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Realiza a personalização visual dos dados do pivot table
|
|
46
|
+
*/
|
|
47
|
+
pivotCustomizeCell?: (cellBuilder: any, cellData: any) => void
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface TablePivotRefProps {
|
|
51
|
+
webdatarocks: Webdatarocks.Ref
|
|
52
52
|
}
|