@archbase/components 4.0.19 → 4.0.20
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/archbase-components-4.0.20.tgz +0 -0
- package/dist/datagrid/ag-grid/ag-grid-locale-ptbr.d.ts +7 -0
- package/dist/datagrid/ag-grid/ag-grid-mantine-theme.d.ts +24 -0
- package/dist/datagrid/ag-grid/archbase-data-grid-ag-formatters.d.ts +88 -0
- package/dist/datagrid/ag-grid/archbase-data-grid-ag-types.d.ts +329 -0
- package/dist/datagrid/ag-grid/archbase-data-grid-ag-utils.d.ts +71 -0
- package/dist/datagrid/ag-grid/archbase-data-grid-ag.d.ts +14 -0
- package/dist/datagrid/ag-grid/index.d.ts +14 -0
- package/dist/datagrid/index.d.ts +9 -1
- package/dist/index.js +11175 -10592
- package/package.json +6 -4
- package/src/datagrid/ag-grid/ag-grid-locale-ptbr.ts +432 -0
- package/src/datagrid/ag-grid/ag-grid-mantine-theme.ts +176 -0
- package/src/datagrid/ag-grid/archbase-data-grid-ag-formatters.tsx +470 -0
- package/src/datagrid/ag-grid/archbase-data-grid-ag-types.tsx +413 -0
- package/src/datagrid/ag-grid/archbase-data-grid-ag-utils.ts +394 -0
- package/src/datagrid/ag-grid/archbase-data-grid-ag.tsx +1241 -0
- package/src/datagrid/ag-grid/index.tsx +84 -0
- package/src/datagrid/index.tsx +59 -8
- package/src/datagrid/main/archbase-data-grid-pagination.tsx +1 -2
- package/src/datagrid/main/archbase-data-grid-toolbar.tsx +1 -2
- package/src/editors/ArchbaseAsyncMultiSelect.tsx +2 -1
- package/src/editors/ArchbaseAsyncSelect.tsx +2 -1
- package/src/editors/ArchbaseAvatarEdit.tsx +1 -0
- package/src/editors/ArchbaseCheckbox.tsx +1 -0
- package/src/editors/ArchbaseChip.tsx +1 -0
- package/src/editors/ArchbaseChipGroup.tsx +1 -0
- package/src/editors/ArchbaseColorGradientPicker.tsx +2 -1
- package/src/editors/ArchbaseDatePickerEdit.tsx +1 -0
- package/src/editors/ArchbaseDateTimePickerEdit.tsx +1 -0
- package/src/editors/ArchbaseDualListbox.tsx +1 -0
- package/src/editors/ArchbaseEdit.tsx +1 -0
- package/src/editors/ArchbaseImageEdit.tsx +1 -0
- package/src/editors/ArchbaseJsonEdit.tsx +1 -0
- package/src/editors/ArchbaseLookupEdit.tsx +2 -1
- package/src/editors/ArchbaseLookupNumber.tsx +2 -1
- package/src/editors/ArchbaseLookupSelect.tsx +2 -1
- package/src/editors/ArchbaseMarkdownEdit.tsx +1 -0
- package/src/editors/ArchbaseMaskEdit.tsx +1 -0
- package/src/editors/ArchbaseMentionInput.tsx +1 -0
- package/src/editors/ArchbaseMultiEmail.tsx +1 -0
- package/src/editors/ArchbaseMultiSelect.tsx +2 -1
- package/src/editors/ArchbaseNumberEdit.tsx +1 -0
- package/src/editors/ArchbaseNumberStepper.tsx +2 -1
- package/src/editors/ArchbasePasswordEdit.tsx +1 -0
- package/src/editors/ArchbaseRadioGroup.tsx +1 -0
- package/src/editors/ArchbaseRating.tsx +1 -0
- package/src/editors/ArchbaseRichTextEdit.tsx +1 -0
- package/src/editors/ArchbaseSelect.tsx +2 -1
- package/src/editors/ArchbaseSignaturePad.tsx +1 -0
- package/src/editors/ArchbaseSwitch.tsx +1 -0
- package/src/editors/ArchbaseTagInputEdit.tsx +1 -0
- package/src/editors/ArchbaseTextArea.tsx +1 -0
- package/src/editors/ArchbaseTimeEdit.tsx +1 -0
- package/dist/archbase-components-4.0.19.tgz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archbase/components",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.20",
|
|
4
4
|
"description": "UI Components for Archbase React v3 - Form editors, data visualization, and business components",
|
|
5
5
|
"author": "Edson Martins <edsonmartins2005@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,6 +47,8 @@
|
|
|
47
47
|
"@pdfme/schemas": "^5.3.6",
|
|
48
48
|
"@pdfme/ui": "^5.3.6",
|
|
49
49
|
"@rehooks/component-size": "^1.0.3",
|
|
50
|
+
"ag-grid-community": "^35.3.0",
|
|
51
|
+
"ag-grid-react": "^35.3.0",
|
|
50
52
|
"ajv": "^8.16.0",
|
|
51
53
|
"cep-promise": "^4.4.0",
|
|
52
54
|
"chart.js": "^4.4.2",
|
|
@@ -120,9 +122,9 @@
|
|
|
120
122
|
"vis-timeline": "^7.7.3",
|
|
121
123
|
"xlsx": "^0.18.5",
|
|
122
124
|
"yet-another-react-lightbox": "^3.21.0",
|
|
123
|
-
"@archbase/core": "4.0.
|
|
124
|
-
"@archbase/data": "4.0.
|
|
125
|
-
"@archbase/layout": "4.0.
|
|
125
|
+
"@archbase/core": "4.0.20",
|
|
126
|
+
"@archbase/data": "4.0.20",
|
|
127
|
+
"@archbase/layout": "4.0.20"
|
|
126
128
|
},
|
|
127
129
|
"devDependencies": {
|
|
128
130
|
"@types/d3": "^7.4.3",
|
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AG Grid Portuguese (Brazil) Locale
|
|
3
|
+
*
|
|
4
|
+
* Complete translation for AG Grid Community in pt-BR
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export const AG_GRID_LOCALE_PTBR: Record<string, string> = {
|
|
8
|
+
// Set Filter
|
|
9
|
+
selectAll: '(Selecionar Todos)',
|
|
10
|
+
selectAllSearchResults: '(Selecionar Todos os Resultados)',
|
|
11
|
+
addCurrentSelectionToFilter: 'Adicionar seleção atual ao filtro',
|
|
12
|
+
searchOoo: 'Buscar...',
|
|
13
|
+
blanks: '(Vazios)',
|
|
14
|
+
noMatches: 'Sem correspondências',
|
|
15
|
+
|
|
16
|
+
// Number Filter & Text Filter
|
|
17
|
+
filterOoo: 'Filtrar...',
|
|
18
|
+
equals: 'Igual a',
|
|
19
|
+
notEqual: 'Diferente de',
|
|
20
|
+
blank: 'Vazio',
|
|
21
|
+
notBlank: 'Não vazio',
|
|
22
|
+
empty: 'Escolha um',
|
|
23
|
+
|
|
24
|
+
// Number Filter
|
|
25
|
+
lessThan: 'Menor que',
|
|
26
|
+
greaterThan: 'Maior que',
|
|
27
|
+
lessThanOrEqual: 'Menor ou igual a',
|
|
28
|
+
greaterThanOrEqual: 'Maior ou igual a',
|
|
29
|
+
inRange: 'No intervalo',
|
|
30
|
+
inRangeStart: 'De',
|
|
31
|
+
inRangeEnd: 'Até',
|
|
32
|
+
|
|
33
|
+
// Text Filter
|
|
34
|
+
contains: 'Contém',
|
|
35
|
+
notContains: 'Não contém',
|
|
36
|
+
startsWith: 'Começa com',
|
|
37
|
+
endsWith: 'Termina com',
|
|
38
|
+
|
|
39
|
+
// Date Filter
|
|
40
|
+
dateFormatOoo: 'dd/mm/aaaa',
|
|
41
|
+
before: 'Antes',
|
|
42
|
+
after: 'Depois',
|
|
43
|
+
|
|
44
|
+
// Filter Conditions
|
|
45
|
+
andCondition: 'E',
|
|
46
|
+
orCondition: 'OU',
|
|
47
|
+
|
|
48
|
+
// Filter Buttons
|
|
49
|
+
applyFilter: 'Aplicar',
|
|
50
|
+
resetFilter: 'Redefinir',
|
|
51
|
+
clearFilter: 'Limpar',
|
|
52
|
+
cancelFilter: 'Cancelar',
|
|
53
|
+
|
|
54
|
+
// Filter Titles
|
|
55
|
+
textFilter: 'Filtro de Texto',
|
|
56
|
+
numberFilter: 'Filtro Numérico',
|
|
57
|
+
dateFilter: 'Filtro de Data',
|
|
58
|
+
setFilter: 'Filtro de Conjunto',
|
|
59
|
+
|
|
60
|
+
// Group Column Filter
|
|
61
|
+
groupFilterSelect: 'Selecionar campo:',
|
|
62
|
+
|
|
63
|
+
// Advanced Filter
|
|
64
|
+
advancedFilterContains: 'contém',
|
|
65
|
+
advancedFilterNotContains: 'não contém',
|
|
66
|
+
advancedFilterTextEquals: 'igual a',
|
|
67
|
+
advancedFilterTextNotEqual: 'diferente de',
|
|
68
|
+
advancedFilterStartsWith: 'começa com',
|
|
69
|
+
advancedFilterEndsWith: 'termina com',
|
|
70
|
+
advancedFilterBlank: 'está vazio',
|
|
71
|
+
advancedFilterNotBlank: 'não está vazio',
|
|
72
|
+
advancedFilterEquals: '=',
|
|
73
|
+
advancedFilterNotEqual: '!=',
|
|
74
|
+
advancedFilterGreaterThan: '>',
|
|
75
|
+
advancedFilterGreaterThanOrEqual: '>=',
|
|
76
|
+
advancedFilterLessThan: '<',
|
|
77
|
+
advancedFilterLessThanOrEqual: '<=',
|
|
78
|
+
advancedFilterTrue: 'é verdadeiro',
|
|
79
|
+
advancedFilterFalse: 'é falso',
|
|
80
|
+
advancedFilterAnd: 'E',
|
|
81
|
+
advancedFilterOr: 'OU',
|
|
82
|
+
advancedFilterApply: 'Aplicar',
|
|
83
|
+
advancedFilterBuilder: 'Construtor',
|
|
84
|
+
advancedFilterValidationMissingColumn: 'Coluna ausente',
|
|
85
|
+
advancedFilterValidationMissingOption: 'Opção ausente',
|
|
86
|
+
advancedFilterValidationMissingValue: 'Valor ausente',
|
|
87
|
+
advancedFilterValidationInvalidColumn: 'Coluna não encontrada',
|
|
88
|
+
advancedFilterValidationInvalidOption: 'Opção não encontrada',
|
|
89
|
+
advancedFilterValidationMissingQuote: 'O valor está sem aspas de fechamento',
|
|
90
|
+
advancedFilterValidationNotANumber: 'O valor não é um número',
|
|
91
|
+
advancedFilterValidationInvalidDate: 'O valor não é uma data válida',
|
|
92
|
+
advancedFilterValidationMissingCondition: 'Condição ausente',
|
|
93
|
+
advancedFilterValidationJoinOperatorMismatch: 'Os operadores de junção em uma condição devem ser iguais',
|
|
94
|
+
advancedFilterValidationInvalidJoinOperator: 'Operador de junção não encontrado',
|
|
95
|
+
advancedFilterValidationMissingEndBracket: 'Falta o parêntese de fechamento',
|
|
96
|
+
advancedFilterValidationExtraEndBracket: 'Parênteses de fechamento em excesso',
|
|
97
|
+
advancedFilterValidationMessage: 'A expressão contém um erro. ${variable} - ${variable}.',
|
|
98
|
+
advancedFilterValidationMessageAtEnd: 'A expressão contém um erro. ${variable} no final da expressão.',
|
|
99
|
+
advancedFilterBuilderTitle: 'Filtro Avançado',
|
|
100
|
+
advancedFilterBuilderApply: 'Aplicar',
|
|
101
|
+
advancedFilterBuilderCancel: 'Cancelar',
|
|
102
|
+
advancedFilterBuilderAddButtonTooltip: 'Adicionar Filtro ou Grupo',
|
|
103
|
+
advancedFilterBuilderRemoveButtonTooltip: 'Remover',
|
|
104
|
+
advancedFilterBuilderMoveUpButtonTooltip: 'Mover para Cima',
|
|
105
|
+
advancedFilterBuilderMoveDownButtonTooltip: 'Mover para Baixo',
|
|
106
|
+
advancedFilterBuilderAddJoin: 'Adicionar Grupo',
|
|
107
|
+
advancedFilterBuilderAddCondition: 'Adicionar Filtro',
|
|
108
|
+
advancedFilterBuilderSelectColumn: 'Selecionar uma coluna',
|
|
109
|
+
advancedFilterBuilderSelectOption: 'Selecionar uma opção',
|
|
110
|
+
advancedFilterBuilderEnterValue: 'Inserir um valor...',
|
|
111
|
+
advancedFilterBuilderValidationAlreadyApplied: 'Filtro atual já aplicado.',
|
|
112
|
+
advancedFilterBuilderValidationIncomplete: 'Nem todas as condições estão completas.',
|
|
113
|
+
advancedFilterBuilderValidationSelectColumn: 'Deve selecionar uma coluna.',
|
|
114
|
+
advancedFilterBuilderValidationSelectOption: 'Deve selecionar uma opção.',
|
|
115
|
+
advancedFilterBuilderValidationEnterValue: 'Deve inserir um valor.',
|
|
116
|
+
|
|
117
|
+
// Side Bar
|
|
118
|
+
columns: 'Colunas',
|
|
119
|
+
filters: 'Filtros',
|
|
120
|
+
|
|
121
|
+
// columns tool panel
|
|
122
|
+
pivotMode: 'Modo Pivô',
|
|
123
|
+
groups: 'Grupos de Linhas',
|
|
124
|
+
rowGroupColumnsEmptyMessage: 'Arraste aqui para definir grupos de linhas',
|
|
125
|
+
values: 'Valores',
|
|
126
|
+
valueColumnsEmptyMessage: 'Arraste aqui para agregar',
|
|
127
|
+
pivots: 'Rótulos de Coluna',
|
|
128
|
+
pivotColumnsEmptyMessage: 'Arraste aqui para definir rótulos de coluna',
|
|
129
|
+
|
|
130
|
+
// Header of the Default Group Column
|
|
131
|
+
group: 'Grupo',
|
|
132
|
+
|
|
133
|
+
// Row Drag
|
|
134
|
+
rowDragRow: 'linha',
|
|
135
|
+
rowDragRows: 'linhas',
|
|
136
|
+
|
|
137
|
+
// Other
|
|
138
|
+
loadingOoo: 'Carregando...',
|
|
139
|
+
loadingError: 'ERR',
|
|
140
|
+
noRowsToShow: 'Nenhum registro para exibir',
|
|
141
|
+
enabled: 'Habilitado',
|
|
142
|
+
|
|
143
|
+
// Menu
|
|
144
|
+
pinColumn: 'Fixar Coluna',
|
|
145
|
+
pinLeft: 'Fixar à Esquerda',
|
|
146
|
+
pinRight: 'Fixar à Direita',
|
|
147
|
+
noPin: 'Não Fixar',
|
|
148
|
+
valueAggregation: 'Agregação de Valor',
|
|
149
|
+
noAggregation: 'Nenhuma',
|
|
150
|
+
autosizeThisColumn: 'Ajustar Esta Coluna',
|
|
151
|
+
autosizeAllColumns: 'Ajustar Todas as Colunas',
|
|
152
|
+
groupBy: 'Agrupar por',
|
|
153
|
+
ungroupBy: 'Desagrupar por',
|
|
154
|
+
ungroupAll: 'Desagrupar Todos',
|
|
155
|
+
addToValues: 'Adicionar ${variable} aos valores',
|
|
156
|
+
removeFromValues: 'Remover ${variable} dos valores',
|
|
157
|
+
addToLabels: 'Adicionar ${variable} aos rótulos',
|
|
158
|
+
removeFromLabels: 'Remover ${variable} dos rótulos',
|
|
159
|
+
resetColumns: 'Redefinir Colunas',
|
|
160
|
+
expandAll: 'Expandir Tudo',
|
|
161
|
+
collapseAll: 'Recolher Tudo',
|
|
162
|
+
copy: 'Copiar',
|
|
163
|
+
ctrlC: 'Ctrl+C',
|
|
164
|
+
ctrlX: 'Ctrl+X',
|
|
165
|
+
copyWithHeaders: 'Copiar com Cabeçalhos',
|
|
166
|
+
copyWithGroupHeaders: 'Copiar com Cabeçalhos de Grupo',
|
|
167
|
+
cut: 'Recortar',
|
|
168
|
+
paste: 'Colar',
|
|
169
|
+
ctrlV: 'Ctrl+V',
|
|
170
|
+
export: 'Exportar',
|
|
171
|
+
csvExport: 'Exportar CSV',
|
|
172
|
+
excelExport: 'Exportar Excel',
|
|
173
|
+
|
|
174
|
+
// Enterprise Menu Aggregation and Status Bar
|
|
175
|
+
sum: 'Soma',
|
|
176
|
+
first: 'Primeiro',
|
|
177
|
+
last: 'Último',
|
|
178
|
+
min: 'Mín',
|
|
179
|
+
max: 'Máx',
|
|
180
|
+
none: 'Nenhum',
|
|
181
|
+
count: 'Contagem',
|
|
182
|
+
avg: 'Média',
|
|
183
|
+
filteredRows: 'Filtrados',
|
|
184
|
+
selectedRows: 'Selecionados',
|
|
185
|
+
totalRows: 'Total de Linhas',
|
|
186
|
+
totalAndFilteredRows: 'Linhas',
|
|
187
|
+
more: 'Mais',
|
|
188
|
+
to: 'até',
|
|
189
|
+
of: 'de',
|
|
190
|
+
page: 'Página',
|
|
191
|
+
pageLastRowUnknown: '?',
|
|
192
|
+
nextPage: 'Próxima Página',
|
|
193
|
+
lastPage: 'Última Página',
|
|
194
|
+
firstPage: 'Primeira Página',
|
|
195
|
+
previousPage: 'Página Anterior',
|
|
196
|
+
pageSizeSelectorLabel: 'Tamanho da Página:',
|
|
197
|
+
footerTotal: 'Total',
|
|
198
|
+
|
|
199
|
+
// Pivoting
|
|
200
|
+
pivotColumnGroupTotals: 'Total',
|
|
201
|
+
|
|
202
|
+
// Enterprise Menu (Clipboard)
|
|
203
|
+
toolPanelButton: 'Painel de Ferramentas',
|
|
204
|
+
|
|
205
|
+
// Enterprise Menu (Columns)
|
|
206
|
+
columnSelectAll: 'Selecionar Tudo',
|
|
207
|
+
columnSelectNone: 'Desmarcar Tudo',
|
|
208
|
+
|
|
209
|
+
// Enterprise Menu (Charts)
|
|
210
|
+
pivotChartAndPivotMode: 'Gráfico Dinâmico e Modo Pivô',
|
|
211
|
+
pivotChart: 'Gráfico Dinâmico',
|
|
212
|
+
chartRange: 'Intervalo do Gráfico',
|
|
213
|
+
|
|
214
|
+
columnChart: 'Coluna',
|
|
215
|
+
groupedColumn: 'Agrupado',
|
|
216
|
+
stackedColumn: 'Empilhado',
|
|
217
|
+
normalizedColumn: '100% Empilhado',
|
|
218
|
+
|
|
219
|
+
barChart: 'Barra',
|
|
220
|
+
groupedBar: 'Agrupado',
|
|
221
|
+
stackedBar: 'Empilhado',
|
|
222
|
+
normalizedBar: '100% Empilhado',
|
|
223
|
+
|
|
224
|
+
pieChart: 'Pizza',
|
|
225
|
+
pie: 'Pizza',
|
|
226
|
+
doughnut: 'Rosca',
|
|
227
|
+
|
|
228
|
+
line: 'Linha',
|
|
229
|
+
|
|
230
|
+
xyChart: 'X Y (Dispersão)',
|
|
231
|
+
scatter: 'Dispersão',
|
|
232
|
+
bubble: 'Bolha',
|
|
233
|
+
|
|
234
|
+
areaChart: 'Área',
|
|
235
|
+
area: 'Área',
|
|
236
|
+
stackedArea: 'Empilhado',
|
|
237
|
+
normalizedArea: '100% Empilhado',
|
|
238
|
+
|
|
239
|
+
histogramChart: 'Histograma',
|
|
240
|
+
|
|
241
|
+
combinationChart: 'Combinação',
|
|
242
|
+
columnLineCombo: 'Coluna e Linha',
|
|
243
|
+
AreaColumnCombo: 'Área e Coluna',
|
|
244
|
+
|
|
245
|
+
// Charts
|
|
246
|
+
pivotChartTitle: 'Gráfico Dinâmico',
|
|
247
|
+
rangeChartTitle: 'Gráfico de Intervalo',
|
|
248
|
+
settings: 'Configurações',
|
|
249
|
+
data: 'Dados',
|
|
250
|
+
format: 'Formato',
|
|
251
|
+
categories: 'Categorias',
|
|
252
|
+
defaultCategory: '(Nenhuma)',
|
|
253
|
+
series: 'Séries',
|
|
254
|
+
xyValues: 'Valores X Y',
|
|
255
|
+
paired: 'Modo Pareado',
|
|
256
|
+
axis: 'Eixo',
|
|
257
|
+
navigator: 'Navegador',
|
|
258
|
+
color: 'Cor',
|
|
259
|
+
thickness: 'Espessura',
|
|
260
|
+
xType: 'Tipo X',
|
|
261
|
+
automatic: 'Automático',
|
|
262
|
+
category: 'Categoria',
|
|
263
|
+
number: 'Número',
|
|
264
|
+
time: 'Tempo',
|
|
265
|
+
autoRotate: 'Rotação Automática',
|
|
266
|
+
xRotation: 'Rotação X',
|
|
267
|
+
yRotation: 'Rotação Y',
|
|
268
|
+
ticks: 'Marcas',
|
|
269
|
+
width: 'Largura',
|
|
270
|
+
height: 'Altura',
|
|
271
|
+
length: 'Comprimento',
|
|
272
|
+
padding: 'Preenchimento',
|
|
273
|
+
spacing: 'Espaçamento',
|
|
274
|
+
chart: 'Gráfico',
|
|
275
|
+
title: 'Título',
|
|
276
|
+
titlePlaceholder: 'Título do gráfico - clique duas vezes para editar',
|
|
277
|
+
background: 'Fundo',
|
|
278
|
+
font: 'Fonte',
|
|
279
|
+
top: 'Topo',
|
|
280
|
+
right: 'Direita',
|
|
281
|
+
bottom: 'Inferior',
|
|
282
|
+
left: 'Esquerda',
|
|
283
|
+
labels: 'Rótulos',
|
|
284
|
+
size: 'Tamanho',
|
|
285
|
+
minSize: 'Tamanho Mínimo',
|
|
286
|
+
maxSize: 'Tamanho Máximo',
|
|
287
|
+
legend: 'Legenda',
|
|
288
|
+
position: 'Posição',
|
|
289
|
+
markerSize: 'Tamanho do Marcador',
|
|
290
|
+
markerStroke: 'Traço do Marcador',
|
|
291
|
+
markerPadding: 'Preenchimento do Marcador',
|
|
292
|
+
itemSpacing: 'Espaçamento do Item',
|
|
293
|
+
itemPaddingX: 'Preenchimento X do Item',
|
|
294
|
+
itemPaddingY: 'Preenchimento Y do Item',
|
|
295
|
+
layoutHorizontalSpacing: 'Espaçamento Horizontal',
|
|
296
|
+
layoutVerticalSpacing: 'Espaçamento Vertical',
|
|
297
|
+
strokeWidth: 'Largura do Traço',
|
|
298
|
+
lineDash: 'Traço da Linha',
|
|
299
|
+
offset: 'Deslocamento',
|
|
300
|
+
offsets: 'Deslocamentos',
|
|
301
|
+
tooltips: 'Dicas',
|
|
302
|
+
callout: 'Chamada',
|
|
303
|
+
markers: 'Marcadores',
|
|
304
|
+
shadow: 'Sombra',
|
|
305
|
+
blur: 'Desfoque',
|
|
306
|
+
xOffset: 'Deslocamento X',
|
|
307
|
+
yOffset: 'Deslocamento Y',
|
|
308
|
+
lineWidth: 'Largura da Linha',
|
|
309
|
+
normal: 'Normal',
|
|
310
|
+
bold: 'Negrito',
|
|
311
|
+
italic: 'Itálico',
|
|
312
|
+
boldItalic: 'Negrito Itálico',
|
|
313
|
+
predefined: 'Predefinido',
|
|
314
|
+
fillOpacity: 'Opacidade de Preenchimento',
|
|
315
|
+
strokeOpacity: 'Opacidade do Traço',
|
|
316
|
+
histogramBinCount: 'Contagem de Bins',
|
|
317
|
+
columnGroup: 'Coluna',
|
|
318
|
+
barGroup: 'Barra',
|
|
319
|
+
pieGroup: 'Pizza',
|
|
320
|
+
lineGroup: 'Linha',
|
|
321
|
+
scatterGroup: 'X Y (Dispersão)',
|
|
322
|
+
areaGroup: 'Área',
|
|
323
|
+
histogramGroup: 'Histograma',
|
|
324
|
+
combinationGroup: 'Combinação',
|
|
325
|
+
groupedColumnTooltip: 'Agrupado',
|
|
326
|
+
stackedColumnTooltip: 'Empilhado',
|
|
327
|
+
normalizedColumnTooltip: '100% Empilhado',
|
|
328
|
+
groupedBarTooltip: 'Agrupado',
|
|
329
|
+
stackedBarTooltip: 'Empilhado',
|
|
330
|
+
normalizedBarTooltip: '100% Empilhado',
|
|
331
|
+
pieTooltip: 'Pizza',
|
|
332
|
+
doughnutTooltip: 'Rosca',
|
|
333
|
+
lineTooltip: 'Linha',
|
|
334
|
+
groupedAreaTooltip: 'Área',
|
|
335
|
+
stackedAreaTooltip: 'Empilhado',
|
|
336
|
+
normalizedAreaTooltip: '100% Empilhado',
|
|
337
|
+
scatterTooltip: 'Dispersão',
|
|
338
|
+
bubbleTooltip: 'Bolha',
|
|
339
|
+
histogramTooltip: 'Histograma',
|
|
340
|
+
columnLineComboTooltip: 'Coluna e Linha',
|
|
341
|
+
areaColumnComboTooltip: 'Área e Coluna',
|
|
342
|
+
customComboTooltip: 'Combinação Personalizada',
|
|
343
|
+
noDataToChart: 'Não há dados disponíveis para gráfico.',
|
|
344
|
+
pivotChartRequiresPivotMode: 'O Gráfico Dinâmico requer que o Modo Pivô esteja ativado.',
|
|
345
|
+
chartSettingsToolbarTooltip: 'Menu',
|
|
346
|
+
chartLinkToolbarTooltip: 'Vinculado à Grade',
|
|
347
|
+
chartUnlinkToolbarTooltip: 'Desvinculado da Grade',
|
|
348
|
+
chartDownloadToolbarTooltip: 'Baixar Gráfico',
|
|
349
|
+
seriesChartType: 'Tipo de Gráfico da Série',
|
|
350
|
+
seriesType: 'Tipo de Série',
|
|
351
|
+
secondaryAxis: 'Eixo Secundário',
|
|
352
|
+
|
|
353
|
+
// ARIA
|
|
354
|
+
ariaChecked: 'marcado',
|
|
355
|
+
ariaColumn: 'Coluna',
|
|
356
|
+
ariaColumnGroup: 'Grupo de Colunas',
|
|
357
|
+
ariaColumnList: 'Lista de Colunas',
|
|
358
|
+
ariaColumnSelectAll: 'Alternar Seleção de Todas as Colunas',
|
|
359
|
+
ariaDateFilterInput: 'Entrada de Filtro de Data',
|
|
360
|
+
ariaDefaultListName: 'Lista',
|
|
361
|
+
ariaFilterColumnsInput: 'Entrada de Filtro de Colunas',
|
|
362
|
+
ariaFilterFromValue: 'Filtrar do valor',
|
|
363
|
+
ariaFilterInput: 'Entrada de Filtro',
|
|
364
|
+
ariaFilterList: 'Lista de Filtros',
|
|
365
|
+
ariaFilterToValue: 'Filtrar até o valor',
|
|
366
|
+
ariaFilterValue: 'Valor do Filtro',
|
|
367
|
+
ariaFilterMenuOpen: 'Abrir Menu de Filtro',
|
|
368
|
+
ariaFilteringOperator: 'Operador de Filtragem',
|
|
369
|
+
ariaHidden: 'oculto',
|
|
370
|
+
ariaIndeterminate: 'indeterminado',
|
|
371
|
+
ariaInputEditor: 'Editor de Entrada',
|
|
372
|
+
ariaMenuColumn: 'Pressione CTRL ENTER para abrir o menu da coluna.',
|
|
373
|
+
ariaRowDeselect: 'Pressione ESPAÇO para desmarcar esta linha',
|
|
374
|
+
ariaRowSelectAll: 'Pressione Espaço para alternar a seleção de todas as linhas',
|
|
375
|
+
ariaRowToggleSelection: 'Pressione Espaço para alternar a seleção da linha',
|
|
376
|
+
ariaRowSelect: 'Pressione ESPAÇO para selecionar esta linha',
|
|
377
|
+
ariaSearch: 'Buscar',
|
|
378
|
+
ariaSortableColumn: 'Pressione ENTER para ordenar',
|
|
379
|
+
ariaToggleVisibility: 'Pressione ESPAÇO para alternar visibilidade',
|
|
380
|
+
ariaToggleCellValue: 'Pressione ESPAÇO para alternar o valor da célula',
|
|
381
|
+
ariaUnchecked: 'desmarcado',
|
|
382
|
+
ariaVisible: 'visível',
|
|
383
|
+
ariaSearchFilterValues: 'Buscar valores do filtro',
|
|
384
|
+
ariaPageSizeSelectorLabel: 'Tamanho da Página',
|
|
385
|
+
|
|
386
|
+
// ARIA Labels for Drop Zones
|
|
387
|
+
ariaRowGroupDropZonePanelLabel: 'Grupos de Linhas',
|
|
388
|
+
ariaValuesDropZonePanelLabel: 'Valores',
|
|
389
|
+
ariaPivotDropZonePanelLabel: 'Rótulos de Coluna',
|
|
390
|
+
ariaDropZoneColumnComponentDescription: 'Pressione DELETE para remover',
|
|
391
|
+
ariaDropZoneColumnValueItemDescription: 'Pressione ENTER para alterar o tipo de agregação',
|
|
392
|
+
ariaDropZoneColumnGroupItemDescription: 'Pressione ENTER para ordenar',
|
|
393
|
+
|
|
394
|
+
// ARIA Labels for Dialogs
|
|
395
|
+
ariaLabelColumnMenu: 'Menu da Coluna',
|
|
396
|
+
ariaLabelCellEditor: 'Editor de Célula',
|
|
397
|
+
ariaLabelDialog: 'Diálogo',
|
|
398
|
+
ariaLabelSelectField: 'Selecionar Campo',
|
|
399
|
+
ariaLabelTooltip: 'Dica',
|
|
400
|
+
ariaLabelContextMenu: 'Menu de Contexto',
|
|
401
|
+
ariaLabelSubMenu: 'Submenu',
|
|
402
|
+
ariaLabelAggregationFunction: 'Função de Agregação',
|
|
403
|
+
ariaLabelAdvancedFilterAutocomplete: 'Autocompletar Filtro Avançado',
|
|
404
|
+
ariaLabelAdvancedFilterBuilderAddField: 'Adicionar Campo ao Construtor de Filtro Avançado',
|
|
405
|
+
ariaLabelAdvancedFilterBuilderColumnSelectField: 'Selecionar Coluna no Construtor de Filtro Avançado',
|
|
406
|
+
ariaLabelAdvancedFilterBuilderOptionSelectField: 'Selecionar Opção no Construtor de Filtro Avançado',
|
|
407
|
+
ariaLabelAdvancedFilterBuilderJoinSelectField: 'Selecionar Operador de Junção no Construtor de Filtro Avançado',
|
|
408
|
+
|
|
409
|
+
// Number Format (Pagination Panel)
|
|
410
|
+
thousandSeparator: '.',
|
|
411
|
+
decimalSeparator: ',',
|
|
412
|
+
|
|
413
|
+
// Data types
|
|
414
|
+
true: 'Verdadeiro',
|
|
415
|
+
false: 'Falso',
|
|
416
|
+
invalidDate: 'Data Inválida',
|
|
417
|
+
invalidNumber: 'Número Inválido',
|
|
418
|
+
january: 'Janeiro',
|
|
419
|
+
february: 'Fevereiro',
|
|
420
|
+
march: 'Março',
|
|
421
|
+
april: 'Abril',
|
|
422
|
+
may: 'Maio',
|
|
423
|
+
june: 'Junho',
|
|
424
|
+
july: 'Julho',
|
|
425
|
+
august: 'Agosto',
|
|
426
|
+
september: 'Setembro',
|
|
427
|
+
october: 'Outubro',
|
|
428
|
+
november: 'Novembro',
|
|
429
|
+
december: 'Dezembro',
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
export default AG_GRID_LOCALE_PTBR;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AG Grid Mantine Theme Integration
|
|
3
|
+
*
|
|
4
|
+
* Creates a Quartz-based theme that integrates with Mantine's theme system,
|
|
5
|
+
* supporting both light and dark color schemes.
|
|
6
|
+
*/
|
|
7
|
+
import { themeQuartz, type Theme } from 'ag-grid-community';
|
|
8
|
+
import type { MantineTheme } from '@mantine/core';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Options for creating AG Grid theme
|
|
12
|
+
*/
|
|
13
|
+
export interface ArchbaseAgGridThemeOptions {
|
|
14
|
+
headerFontWeight?: number | 'normal' | 'bold';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Creates an AG Grid theme integrated with Mantine's theming system
|
|
19
|
+
*/
|
|
20
|
+
export const createArchbaseAgGridTheme = (
|
|
21
|
+
theme: MantineTheme,
|
|
22
|
+
colorScheme: 'light' | 'dark',
|
|
23
|
+
options?: ArchbaseAgGridThemeOptions
|
|
24
|
+
): Theme => {
|
|
25
|
+
const isDark = colorScheme === 'dark';
|
|
26
|
+
const fontWeight = options?.headerFontWeight === 'normal' ? 400
|
|
27
|
+
: options?.headerFontWeight === 'bold' ? 700
|
|
28
|
+
: options?.headerFontWeight ?? 600;
|
|
29
|
+
|
|
30
|
+
return themeQuartz.withParams({
|
|
31
|
+
// Background colors
|
|
32
|
+
backgroundColor: isDark ? theme.colors.dark[6] : theme.white,
|
|
33
|
+
foregroundColor: isDark ? theme.colors.gray[0] : theme.colors.dark[9],
|
|
34
|
+
|
|
35
|
+
// Header styling
|
|
36
|
+
headerBackgroundColor: isDark ? theme.colors.dark[7] : theme.white,
|
|
37
|
+
headerFontWeight: fontWeight,
|
|
38
|
+
headerTextColor: isDark ? theme.colors.gray[0] : theme.colors.dark[9],
|
|
39
|
+
|
|
40
|
+
// Accent/Primary color
|
|
41
|
+
accentColor: theme.colors[theme.primaryColor][6],
|
|
42
|
+
|
|
43
|
+
// Row hover
|
|
44
|
+
rowHoverColor: isDark ? theme.colors.dark[5] : theme.colors.gray[1],
|
|
45
|
+
|
|
46
|
+
// Selection colors
|
|
47
|
+
selectedRowBackgroundColor: isDark
|
|
48
|
+
? `rgba(${hexToRgb(theme.colors[theme.primaryColor][9])}, 0.3)`
|
|
49
|
+
: `rgba(${hexToRgb(theme.colors[theme.primaryColor][1])}, 0.5)`,
|
|
50
|
+
|
|
51
|
+
// Borders
|
|
52
|
+
borderColor: isDark ? theme.colors.dark[4] : theme.colors.gray[3],
|
|
53
|
+
borderRadius: parseInt(String(theme.radius.sm)) || 4,
|
|
54
|
+
|
|
55
|
+
// Typography
|
|
56
|
+
fontFamily: theme.fontFamily || 'inherit',
|
|
57
|
+
fontSize: parseInt(String(theme.fontSizes.sm)) || 14,
|
|
58
|
+
|
|
59
|
+
// Cell styling
|
|
60
|
+
cellTextColor: isDark ? theme.colors.gray[0] : theme.colors.dark[9],
|
|
61
|
+
|
|
62
|
+
// Odd row (striped) - subtle alternating
|
|
63
|
+
oddRowBackgroundColor: isDark ? theme.colors.dark[5] : theme.colors.gray[0],
|
|
64
|
+
|
|
65
|
+
// Checkbox
|
|
66
|
+
checkboxCheckedBackgroundColor: theme.colors[theme.primaryColor][6],
|
|
67
|
+
checkboxCheckedBorderColor: theme.colors[theme.primaryColor][6],
|
|
68
|
+
checkboxUncheckedBackgroundColor: 'transparent',
|
|
69
|
+
checkboxUncheckedBorderColor: isDark ? theme.colors.gray[5] : theme.colors.gray[4],
|
|
70
|
+
|
|
71
|
+
// Column separator
|
|
72
|
+
columnBorder: true,
|
|
73
|
+
|
|
74
|
+
// Wrapper border - disabled since container already has border
|
|
75
|
+
wrapperBorder: false,
|
|
76
|
+
wrapperBorderRadius: 0,
|
|
77
|
+
|
|
78
|
+
// Spacing
|
|
79
|
+
cellHorizontalPadding: 8,
|
|
80
|
+
headerHeight: 40,
|
|
81
|
+
rowHeight: 40,
|
|
82
|
+
|
|
83
|
+
// Icons
|
|
84
|
+
iconSize: 16,
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Helper function to convert hex color to RGB values
|
|
90
|
+
*/
|
|
91
|
+
const hexToRgb = (hex: string): string => {
|
|
92
|
+
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
93
|
+
if (!result) {
|
|
94
|
+
return '0, 0, 0';
|
|
95
|
+
}
|
|
96
|
+
return `${parseInt(result[1], 16)}, ${parseInt(result[2], 16)}, ${parseInt(result[3], 16)}`;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Get CSS variables for additional styling not covered by theme params
|
|
101
|
+
*/
|
|
102
|
+
export const getAgGridMantineCssVars = (
|
|
103
|
+
theme: MantineTheme,
|
|
104
|
+
colorScheme: 'light' | 'dark'
|
|
105
|
+
): Record<string, string> => {
|
|
106
|
+
const isDark = colorScheme === 'dark';
|
|
107
|
+
|
|
108
|
+
// Cell focus background color
|
|
109
|
+
const cellFocusBgColor = isDark
|
|
110
|
+
? `rgba(${hexToRgb(theme.colors[theme.primaryColor][7])}, 0.3)`
|
|
111
|
+
: `rgba(${hexToRgb(theme.colors[theme.primaryColor][4])}, 0.25)`;
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
'--ag-background-color': isDark ? theme.colors.dark[6] : theme.white,
|
|
115
|
+
'--ag-foreground-color': isDark ? theme.colors.gray[0] : theme.colors.dark[9],
|
|
116
|
+
'--ag-header-background-color': isDark ? theme.colors.dark[7] : theme.white,
|
|
117
|
+
'--ag-header-foreground-color': isDark ? theme.colors.gray[0] : theme.colors.dark[9],
|
|
118
|
+
'--ag-border-color': isDark ? theme.colors.dark[4] : theme.colors.gray[3],
|
|
119
|
+
'--ag-row-hover-color': isDark ? theme.colors.dark[5] : theme.colors.gray[1],
|
|
120
|
+
'--ag-selected-row-background-color': isDark
|
|
121
|
+
? `rgba(${hexToRgb(theme.colors[theme.primaryColor][9])}, 0.3)`
|
|
122
|
+
: `rgba(${hexToRgb(theme.colors[theme.primaryColor][1])}, 0.5)`,
|
|
123
|
+
'--ag-odd-row-background-color': isDark ? theme.colors.dark[5] : theme.colors.gray[0],
|
|
124
|
+
'--ag-font-family': theme.fontFamily || 'inherit',
|
|
125
|
+
'--ag-font-size': `${theme.fontSizes.sm}`,
|
|
126
|
+
'--ag-grid-size': '4px',
|
|
127
|
+
'--ag-icon-size': '16px',
|
|
128
|
+
'--ag-cell-horizontal-padding': '8px',
|
|
129
|
+
'--ag-checkbox-checked-color': theme.colors[theme.primaryColor][6],
|
|
130
|
+
'--ag-checkbox-unchecked-color': isDark ? theme.colors.gray[5] : theme.colors.gray[4],
|
|
131
|
+
'--ag-input-focus-border-color': theme.colors[theme.primaryColor][6],
|
|
132
|
+
// Cell selection/range - background color instead of border
|
|
133
|
+
'--ag-range-selection-border-color': 'transparent',
|
|
134
|
+
'--ag-range-selection-background-color': isDark
|
|
135
|
+
? `rgba(${hexToRgb(theme.colors[theme.primaryColor][7])}, 0.4)`
|
|
136
|
+
: `rgba(${hexToRgb(theme.colors[theme.primaryColor][4])}, 0.3)`,
|
|
137
|
+
'--ag-range-selection-highlight-color': isDark
|
|
138
|
+
? `rgba(${hexToRgb(theme.colors[theme.primaryColor][7])}, 0.4)`
|
|
139
|
+
: `rgba(${hexToRgb(theme.colors[theme.primaryColor][4])}, 0.3)`,
|
|
140
|
+
// Cell focus - custom variable for focused cell background
|
|
141
|
+
'--ag-input-focus-box-shadow': 'none',
|
|
142
|
+
'--archbase-cell-focus-bg': cellFocusBgColor,
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Get custom CSS styles for AG Grid cell focus
|
|
148
|
+
*/
|
|
149
|
+
export const getAgGridCustomStyles = (
|
|
150
|
+
theme: MantineTheme,
|
|
151
|
+
colorScheme: 'light' | 'dark'
|
|
152
|
+
): string => {
|
|
153
|
+
const isDark = colorScheme === 'dark';
|
|
154
|
+
const cellFocusBgColor = isDark
|
|
155
|
+
? `rgba(${hexToRgb(theme.colors[theme.primaryColor][7])}, 0.3)`
|
|
156
|
+
: `rgba(${hexToRgb(theme.colors[theme.primaryColor][4])}, 0.25)`;
|
|
157
|
+
|
|
158
|
+
return `
|
|
159
|
+
.ag-cell-focus:not(.ag-cell-range-selected) {
|
|
160
|
+
background-color: ${cellFocusBgColor} !important;
|
|
161
|
+
border: none !important;
|
|
162
|
+
outline: none !important;
|
|
163
|
+
}
|
|
164
|
+
.ag-cell-focus.ag-cell-range-selected {
|
|
165
|
+
background-color: ${cellFocusBgColor} !important;
|
|
166
|
+
}
|
|
167
|
+
.ag-row-selected .ag-cell-focus {
|
|
168
|
+
background-color: ${cellFocusBgColor} !important;
|
|
169
|
+
}
|
|
170
|
+
`;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Default export for convenience
|
|
175
|
+
*/
|
|
176
|
+
export default createArchbaseAgGridTheme;
|