@cdmx/wappler_ag_grid 1.3.4 → 1.3.6
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/README.md +1 -1
- package/app_connect/components.hjson +9 -8
- package/dmx-ag-grid.js +5 -2
- package/he.js +1 -1
- package/package.json +1 -3
- package/pt.js +268 -0
- package/ru.js +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ With the update to AG Grid v31, a built-in page limit dropdown feature has been
|
|
|
19
19
|
- "Quartz"
|
|
20
20
|
- "Custom"
|
|
21
21
|
5. **Dark Mode** (Default: false)
|
|
22
|
-
6. **Locale**: Select the locale for the grid. Currently supported locales: English (EN), Russian (RU)
|
|
22
|
+
6. **Locale**: Select the locale for the grid. Currently supported locales: English (EN), Russian (RU), Hebrew (HE) and Portuguese (PT). (Default: EN)
|
|
23
23
|
|
|
24
24
|
**Note for Custom Theme:**
|
|
25
25
|
When you select the "Custom" theme option, you have the flexibility to define your own unique styling for the ag-Grid components.
|
|
@@ -118,7 +118,8 @@
|
|
|
118
118
|
"values": [
|
|
119
119
|
{title: 'English', value: 'EN'},
|
|
120
120
|
{title: 'Hebrew', value: 'HE'},
|
|
121
|
-
{title: 'Russian', value: 'RU'}
|
|
121
|
+
{title: 'Russian', value: 'RU'},
|
|
122
|
+
{title: 'Portuguese', value: 'PT'}
|
|
122
123
|
],
|
|
123
124
|
"help": "Select locale for the Grid, Currently Supproted Hebrew (HE), Russian (RU) and English (EN) locale"
|
|
124
125
|
}
|
|
@@ -2298,10 +2299,6 @@
|
|
|
2298
2299
|
"src": "../../../node_modules/ag-grid-community/styles/ag-theme-quartz.css",
|
|
2299
2300
|
"dst": "css/ag-theme-quartz.css"
|
|
2300
2301
|
},
|
|
2301
|
-
{
|
|
2302
|
-
"src": "../../../node_modules/moment/min/moment.min.js",
|
|
2303
|
-
"dst": "js/moment.min.js"
|
|
2304
|
-
},
|
|
2305
2302
|
{
|
|
2306
2303
|
"src": "switch-toggle-slider.css",
|
|
2307
2304
|
"dst": "css/switch-toggle-slider.css"
|
|
@@ -2317,6 +2314,10 @@
|
|
|
2317
2314
|
{
|
|
2318
2315
|
"src": "ru.js",
|
|
2319
2316
|
"dst": "js/locale/ru.js"
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
"src": "pt.js",
|
|
2320
|
+
"dst": "js/locale/pt.js"
|
|
2320
2321
|
}
|
|
2321
2322
|
],
|
|
2322
2323
|
"linkFiles": [
|
|
@@ -2341,17 +2342,17 @@
|
|
|
2341
2342
|
"defer": true
|
|
2342
2343
|
},
|
|
2343
2344
|
{
|
|
2344
|
-
"src": "js/
|
|
2345
|
+
"src": "js/locale/he.js",
|
|
2345
2346
|
"type": "js",
|
|
2346
2347
|
"defer": true
|
|
2347
2348
|
},
|
|
2348
2349
|
{
|
|
2349
|
-
"src": "js/locale/
|
|
2350
|
+
"src": "js/locale/ru.js",
|
|
2350
2351
|
"type": "js",
|
|
2351
2352
|
"defer": true
|
|
2352
2353
|
},
|
|
2353
2354
|
{
|
|
2354
|
-
"src": "js/locale/
|
|
2355
|
+
"src": "js/locale/pt.js",
|
|
2355
2356
|
"type": "js",
|
|
2356
2357
|
"defer": true
|
|
2357
2358
|
},
|
package/dmx-ag-grid.js
CHANGED
|
@@ -593,7 +593,7 @@ dmx.Component('ag-grid', {
|
|
|
593
593
|
operators.push(part);
|
|
594
594
|
} else {
|
|
595
595
|
const [left, operator, right] = extractConditionParts(part);
|
|
596
|
-
const result = evaluateCondition(params.data[left], operator, right);
|
|
596
|
+
const result = params.data[left] !== null ? evaluateCondition(params.data[left], operator, right) : false;
|
|
597
597
|
results.push(result);
|
|
598
598
|
}
|
|
599
599
|
}
|
|
@@ -1001,7 +1001,7 @@ dmx.Component('ag-grid', {
|
|
|
1001
1001
|
const [left, operator, right] = extractConditionParts(condition);
|
|
1002
1002
|
if (
|
|
1003
1003
|
params.data.hasOwnProperty(left) &&
|
|
1004
|
-
evaluateCondition(params.data[left], operator, right)
|
|
1004
|
+
(params.data[left] !== null ? evaluateCondition(params.data[left], operator, right) : false)
|
|
1005
1005
|
) {
|
|
1006
1006
|
if (area === 'text') {
|
|
1007
1007
|
return { color: customColor, fontStyle: font, fontWeight: (font==='bold'?'bold':null) };
|
|
@@ -1245,6 +1245,9 @@ dmx.Component('ag-grid', {
|
|
|
1245
1245
|
else if (options.locale_text == 'RU') {
|
|
1246
1246
|
localeText = AG_GRID_LOCALE_RU
|
|
1247
1247
|
}
|
|
1248
|
+
else if (options.locale_text == 'PT') {
|
|
1249
|
+
localeText = AG_GRID_LOCALE_PT
|
|
1250
|
+
}
|
|
1248
1251
|
const gridOptions = {
|
|
1249
1252
|
columnDefs: (groupedColumnDefs && groupedColumnDefs.length > 0) ? groupedColumnDefs : columnDefs,
|
|
1250
1253
|
localeText: localeText,
|
package/he.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdmx/wappler_ag_grid",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "App Connect module for AG Grid Table Generation.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"ag-grid-community": "31.0.x",
|
|
18
18
|
"exceljs": "4.4.x",
|
|
19
|
-
"moment": "2.29.x",
|
|
20
19
|
"papaparse": "5.4.x"
|
|
21
20
|
},
|
|
22
21
|
"scripts": {
|
|
@@ -24,4 +23,3 @@
|
|
|
24
23
|
"publish-dry-run": "npm publish ./dist --access public --dry-run"
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
|
-
|
package/pt.js
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
const AG_GRID_LOCALE_PT = {
|
|
2
|
+
// Seleção do filtro
|
|
3
|
+
selectAll: '(Destacar tudo)',
|
|
4
|
+
selectAllSearchResults: '(Destacar todos os resultados da pesquisa)',
|
|
5
|
+
searchOoo: 'Pesquisar...',
|
|
6
|
+
blanks: '(Espaços em branco)',
|
|
7
|
+
noMatches: 'Nenhuma correspondência',
|
|
8
|
+
|
|
9
|
+
// Filtro numérico e filtro de texto
|
|
10
|
+
filterOoo: 'Filtragem...',
|
|
11
|
+
equals: 'Igual',
|
|
12
|
+
notEqual: 'Diferente',
|
|
13
|
+
empty: 'Vazio',
|
|
14
|
+
|
|
15
|
+
// Filtro numérico
|
|
16
|
+
lessThan: 'Menos de',
|
|
17
|
+
greaterThan: 'Mais de',
|
|
18
|
+
lessThanOrEqual: 'Menor ou igual a',
|
|
19
|
+
greaterThanOrEqual: 'Maior ou igual a',
|
|
20
|
+
inRange: 'Entre',
|
|
21
|
+
inRangeStart: 'De',
|
|
22
|
+
inRangeEnd: 'Até',
|
|
23
|
+
|
|
24
|
+
// Filtro de texto
|
|
25
|
+
contains: 'Contém',
|
|
26
|
+
notContains: 'Não contém',
|
|
27
|
+
startsWith: 'Começa com',
|
|
28
|
+
endsWith: 'Termina em',
|
|
29
|
+
|
|
30
|
+
// Filtro de data
|
|
31
|
+
dateFormatOoo: 'dd-mm-yyyy',
|
|
32
|
+
|
|
33
|
+
// Condições de filtragem
|
|
34
|
+
andCondition: 'E',
|
|
35
|
+
orCondition: 'OU',
|
|
36
|
+
|
|
37
|
+
// Botões de filtro
|
|
38
|
+
applyFilter: 'Aplicar filtro',
|
|
39
|
+
resetFilter: 'Reiniciar filtro',
|
|
40
|
+
clearFilter: 'Limpar filtro',
|
|
41
|
+
cancelFilter: 'Cancelar',
|
|
42
|
+
|
|
43
|
+
// Cabeçalhos de filtro
|
|
44
|
+
textFilter: 'Filtro de texto',
|
|
45
|
+
numberFilter: 'Filtro numérico',
|
|
46
|
+
dateFilter: 'Filtrar por data',
|
|
47
|
+
setFilter: 'Selecionar filtro',
|
|
48
|
+
|
|
49
|
+
// Painel lateral
|
|
50
|
+
columns: 'Colunas',
|
|
51
|
+
filters: 'Filtros',
|
|
52
|
+
|
|
53
|
+
// Barra de ferramentas da coluna
|
|
54
|
+
pivotMode: 'Modo de quadro resumo',
|
|
55
|
+
groups: 'Grupos de linhas',
|
|
56
|
+
rowGroupColumnsEmptyMessage: 'Arrastar e largar aqui para agrupar por linhas',
|
|
57
|
+
values: 'Valores',
|
|
58
|
+
valueColumnsEmptyMessage: 'Arrastar e largar aqui para agregação',
|
|
59
|
+
pivots: 'Títulos de coluna',
|
|
60
|
+
pivotColumnsEmptyMessage: 'Arrastar e largar aqui para definir os títulos das colunas',
|
|
61
|
+
|
|
62
|
+
// Cabeçalho de grupo de colunas por defeito
|
|
63
|
+
group: 'Grupo',
|
|
64
|
+
|
|
65
|
+
// Outros
|
|
66
|
+
loadingOoo: 'A carregar...',
|
|
67
|
+
noRowsToShow: 'Sem dados',
|
|
68
|
+
enabled: 'Incluído',
|
|
69
|
+
|
|
70
|
+
// Menu
|
|
71
|
+
pinColumn: 'Fixar a coluna',
|
|
72
|
+
pinLeft: 'Fixar à esquerda',
|
|
73
|
+
pinRight: 'Fixar à direita',
|
|
74
|
+
noPin: 'Não fixar',
|
|
75
|
+
valueAggregation: 'Agregação por valor',
|
|
76
|
+
autosizeThiscolumn: 'Define automaticamente o tamanho desta coluna',
|
|
77
|
+
autosizeAllColumns: 'Dimensionar automaticamente todas as colunas',
|
|
78
|
+
groupBy: 'Agrupar por',
|
|
79
|
+
ungroupBy: 'Desagrupar por',
|
|
80
|
+
resetColumns: 'Repor colunas',
|
|
81
|
+
expandAll: 'Expandir tudo',
|
|
82
|
+
collapseAll: 'Recolher tudo',
|
|
83
|
+
copy: 'Copiar',
|
|
84
|
+
ctrlC: 'Ctrl+C',
|
|
85
|
+
copyWithHeaders: 'Copiar com cabeçalhos',
|
|
86
|
+
paste: 'Colar',
|
|
87
|
+
ctrlV: 'Ctrl+V',
|
|
88
|
+
export: 'Exportar',
|
|
89
|
+
csvExport: 'Exportar para CSV (.csv)',
|
|
90
|
+
excelExport: 'Exportar para Excel (.xlsx)',
|
|
91
|
+
excelXmlExport: 'Exportar para XML (.xml)',
|
|
92
|
+
|
|
93
|
+
// Agregação do menu corporativo e da barra de estado
|
|
94
|
+
sum: 'Soma',
|
|
95
|
+
min: 'Mínimo',
|
|
96
|
+
max: 'Máximo',
|
|
97
|
+
none: 'Nenhum',
|
|
98
|
+
count: 'Contar',
|
|
99
|
+
avg: 'Média',
|
|
100
|
+
filteredRows: 'Linhas filtradas',
|
|
101
|
+
selectedRows: 'Linhas selecionadas',
|
|
102
|
+
totalRows: 'Total de linhas',
|
|
103
|
+
totalAndFilteredRows: 'Linhas totais e filtradas',
|
|
104
|
+
more: 'Mais',
|
|
105
|
+
to: 'até',
|
|
106
|
+
of: 'de',
|
|
107
|
+
page: 'Página',
|
|
108
|
+
nextPage: 'Página seguinte',
|
|
109
|
+
lastPage: 'Última página',
|
|
110
|
+
firstPage: 'Primeira página',
|
|
111
|
+
previousPage: 'Página anterior',
|
|
112
|
+
pageSizeSelectorLabel: 'Tamanho da página:',
|
|
113
|
+
// Menu empresarial (gráficos)
|
|
114
|
+
pivotChartAndPivotMode: 'Gráfico de resumo e modo de resumo',
|
|
115
|
+
pivotChart: 'Pivot chart',
|
|
116
|
+
chartRange: 'Chart range',
|
|
117
|
+
|
|
118
|
+
columnChart: 'Column chart',
|
|
119
|
+
groupedColumn: 'Grouped column',
|
|
120
|
+
stackedColumn: 'Stacked column',
|
|
121
|
+
normalizedColumn: 'Normalized column',
|
|
122
|
+
|
|
123
|
+
barChart: 'Bar chart',
|
|
124
|
+
groupedBar: 'Grouped bar',
|
|
125
|
+
stackedBar: 'Stacked bar',
|
|
126
|
+
normalizedBar: 'Normalized bar',
|
|
127
|
+
|
|
128
|
+
pieChart: 'Pie chart',
|
|
129
|
+
pie: 'Pie',
|
|
130
|
+
doughnut: 'Donuts',
|
|
131
|
+
|
|
132
|
+
line: 'Line',
|
|
133
|
+
|
|
134
|
+
xyChart: 'XY chart',
|
|
135
|
+
scatter: 'Scatter',
|
|
136
|
+
bubble: 'Bubble',
|
|
137
|
+
|
|
138
|
+
areaChart: 'Area chart',
|
|
139
|
+
area: 'Area',
|
|
140
|
+
stackedArea: 'Stacked area',
|
|
141
|
+
normalizedArea: 'Normalized area',
|
|
142
|
+
|
|
143
|
+
histogramChart: 'Histogram chart',
|
|
144
|
+
|
|
145
|
+
// Gráficos
|
|
146
|
+
pivotChartTitle: 'Título do gráfico',
|
|
147
|
+
rangeChartTitle: 'Título do gráfico',
|
|
148
|
+
settings: 'Definições',
|
|
149
|
+
data: 'Dados',
|
|
150
|
+
format: 'formato',
|
|
151
|
+
categories: 'Categorias',
|
|
152
|
+
defaultCategory: '(Categoria predefinida)',
|
|
153
|
+
series: 'Series',
|
|
154
|
+
xyValues: 'X Y Valores',
|
|
155
|
+
paired: 'Emparelhado',
|
|
156
|
+
axis: 'axis',
|
|
157
|
+
navigator: 'Navegação',
|
|
158
|
+
color: 'Cor',
|
|
159
|
+
thickness: 'Espessura',
|
|
160
|
+
xType: 'X Tipo',
|
|
161
|
+
automatic: 'Automaticamente',
|
|
162
|
+
category: 'Categoria',
|
|
163
|
+
number: 'Número',
|
|
164
|
+
time: 'Tempo',
|
|
165
|
+
xRotation: 'Rotação X',
|
|
166
|
+
yRotation: 'Rotação Y',
|
|
167
|
+
ticks: 'Marcas',
|
|
168
|
+
width: 'Largura',
|
|
169
|
+
height: 'Altura',
|
|
170
|
+
length: 'Comprimento',
|
|
171
|
+
padding: 'Preenchimento',
|
|
172
|
+
spacing: 'Espaçamento',
|
|
173
|
+
chart: 'Gráfico',
|
|
174
|
+
title: 'Título',
|
|
175
|
+
titlePlaceholder: 'Título do gráfico - clique duas vezes para editar',
|
|
176
|
+
background: 'Fundo',
|
|
177
|
+
font: 'Fonte',
|
|
178
|
+
top: 'Topo',
|
|
179
|
+
right: 'Direita',
|
|
180
|
+
bottom: 'Fundo',
|
|
181
|
+
left: 'Esquerda',
|
|
182
|
+
labels: 'Etiquetas',
|
|
183
|
+
size: 'Tamanho',
|
|
184
|
+
minSize: 'Tamanho mínimo',
|
|
185
|
+
maxSize: 'Tamanho máximo',
|
|
186
|
+
legend: 'Legenda',
|
|
187
|
+
position: 'Posição',
|
|
188
|
+
markerSize: 'Tamanho do marcador',
|
|
189
|
+
markerStroke: 'Traço do marcador',
|
|
190
|
+
markerPadding: 'Preenchimento do marcador',
|
|
191
|
+
itemSpacing: 'Distância entre itens',
|
|
192
|
+
itemPaddingX: 'Preenchimento de item X',
|
|
193
|
+
itemPaddingY: 'Preenchimento de item Y',
|
|
194
|
+
layoutHorizontalSpacing: 'Espaçamento horizontal',
|
|
195
|
+
layoutVerticalSpacing: 'Espaçamento vertical',
|
|
196
|
+
strokeWidth: 'Largura do marcador',
|
|
197
|
+
offset: 'Offset',
|
|
198
|
+
offsets: 'Offsets',
|
|
199
|
+
tooltips: 'Dicas',
|
|
200
|
+
callout: 'Desafio',
|
|
201
|
+
markers: 'Marcadores',
|
|
202
|
+
shadow: 'Sombra',
|
|
203
|
+
blur: 'Desfocagem',
|
|
204
|
+
xOffset: 'Offset по X',
|
|
205
|
+
yOffset: 'Offset по Y',
|
|
206
|
+
lineWidth: 'Largura da linha',
|
|
207
|
+
normal: 'Normal',
|
|
208
|
+
bold: 'Negrito',
|
|
209
|
+
italic: 'Itálico',
|
|
210
|
+
boldItalic: 'Negrito itálico',
|
|
211
|
+
predefined: 'Pré-definido',
|
|
212
|
+
fillOpacity: 'Opacidade do preenchimento',
|
|
213
|
+
strokeOpacity: 'Opacidade do marcador',
|
|
214
|
+
histogramBinCount: 'Número de segmentos',
|
|
215
|
+
columnGroup: 'Column group',
|
|
216
|
+
barGroup: 'Bar group',
|
|
217
|
+
pieGroup: 'Pie group',
|
|
218
|
+
lineGroup: 'Line group',
|
|
219
|
+
scatterGroup: 'Scatter group',
|
|
220
|
+
areaGroup: 'Area group',
|
|
221
|
+
histogramGroup: 'Histogram group',
|
|
222
|
+
groupedColumnTooltip: 'Grouped column tooltip',
|
|
223
|
+
stackedColumnTooltip: 'Stacked column tooltip',
|
|
224
|
+
normalizedColumnTooltip: 'Normalized column Tooltip',
|
|
225
|
+
groupedBarTooltip: 'GroupedBar tooltip',
|
|
226
|
+
stackedBarTooltip: 'StackedBar tooltip',
|
|
227
|
+
normalizedBarTooltip: 'NormalizedBar tooltip',
|
|
228
|
+
pieTooltip: 'Pie tooltip',
|
|
229
|
+
doughnutTooltip: 'doughnut tooltip',
|
|
230
|
+
lineTooltip: 'Line tooltip',
|
|
231
|
+
groupedAreaTooltip: 'Grouped area tooltip',
|
|
232
|
+
stackedAreaTooltip: 'Stacked area tooltip',
|
|
233
|
+
normalizedAreaTooltip: 'Normalized area tooltip',
|
|
234
|
+
scatterTooltip: 'Scatter tooltip',
|
|
235
|
+
bubbleTooltip: 'Bubble tooltip',
|
|
236
|
+
histogramTooltip: 'Histogram tooltip',
|
|
237
|
+
noDataToChart: 'Não há dados para apresentar no gráfico.',
|
|
238
|
+
pivotChartRequiresPivotMode: 'Para um gráfico de resumo, é necessário ativar o modo de gráfico de resumo.',
|
|
239
|
+
chartSettingsToolbarTooltip: 'Chart settings toolbar tooltip',
|
|
240
|
+
chartLinkToolbarTooltip: 'Chart link toolbar tooltip',
|
|
241
|
+
chartUnlinkToolbarTooltip: 'Chart unlink toolbar tooltip',
|
|
242
|
+
chartDownloadToolbarTooltip: 'Chart download toolbar tooltip',
|
|
243
|
+
|
|
244
|
+
// ARIA
|
|
245
|
+
ariaHidden: 'Oculto',
|
|
246
|
+
ariaVisible: 'Visível',
|
|
247
|
+
ariaChecked: 'Verificado',
|
|
248
|
+
ariaUnchecked: 'Não verificado',
|
|
249
|
+
ariaIndeterminate: 'Indeterminado',
|
|
250
|
+
ariaColumnSelectAll: 'Mudar para a seleção de todas as colunas',
|
|
251
|
+
ariaInputEditor: 'Editor de entradas',
|
|
252
|
+
ariaDateFilterInput: 'Introduzir um filtro de data',
|
|
253
|
+
ariaFilterInput: 'Entrada do filtro',
|
|
254
|
+
ariaFilterColumnsInput: 'Introduzir um filtro de coluna',
|
|
255
|
+
ariaFilterValue: 'Valor do filtro',
|
|
256
|
+
ariaFilterFromValue: 'Filtrar a partir do valor',
|
|
257
|
+
ariaFilterToValue: 'Filtrar para um valor',
|
|
258
|
+
ariaFilteringOperator: 'Operador de filtro',
|
|
259
|
+
ariaColumnToggleVisibility: 'Alternar a visibilidade da coluna',
|
|
260
|
+
ariaColumnGroupToggleVisibility: 'Alternar a visibilidade de um grupo de colunas',
|
|
261
|
+
ariaRowSelect: 'Prima a tecla ESPAÇO para realçar esta linha',
|
|
262
|
+
ariaRowDeselect: 'Prima ESPAÇO para anular a seleção desta linha',
|
|
263
|
+
ariaRowToggleSelection: 'Prima ESPAÇO para alternar a seleção de linha',
|
|
264
|
+
ariaRowSelectAll: 'Prima ESPAÇO para alternar a seleção de todas as linhas',
|
|
265
|
+
ariaSearch: 'Pesquisar',
|
|
266
|
+
ariaSearchFilterValues: 'Pesquisa de valores por filtro',
|
|
267
|
+
}
|
|
268
|
+
|
package/ru.js
CHANGED
|
@@ -109,7 +109,7 @@ const AG_GRID_LOCALE_RU = {
|
|
|
109
109
|
lastPage: 'Последняя страница',
|
|
110
110
|
firstPage: 'Первая страница',
|
|
111
111
|
previousPage: 'Предыдущая страница',
|
|
112
|
-
|
|
112
|
+
pageSizeSelectorLabel: 'Размер страницы:',
|
|
113
113
|
// Корпоративное меню (графики)
|
|
114
114
|
pivotChartAndPivotMode: 'Сводная диаграмма & режим сведения',
|
|
115
115
|
pivotChart: 'Сводная диаграмма',
|