@procore/data-table 14.28.0 → 14.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/legacy/index.cjs +80 -19
- package/dist/legacy/index.js +80 -19
- package/dist/modern/index.cjs +80 -19
- package/dist/modern/index.js +80 -19
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
package/dist/legacy/index.cjs
CHANGED
|
@@ -54966,6 +54966,7 @@ function ServerSideNumberFilterRenderer({
|
|
|
54966
54966
|
}
|
|
54967
54967
|
);
|
|
54968
54968
|
const prevValueRef = React80.useRef([]);
|
|
54969
|
+
const internalClearRef = React80.useRef(false);
|
|
54969
54970
|
const debounceTimerRef = React80.useRef(null);
|
|
54970
54971
|
React80.useEffect(() => {
|
|
54971
54972
|
return () => {
|
|
@@ -54975,9 +54976,10 @@ function ServerSideNumberFilterRenderer({
|
|
|
54975
54976
|
};
|
|
54976
54977
|
}, []);
|
|
54977
54978
|
React80.useEffect(() => {
|
|
54978
|
-
if (prevValueRef.current.length
|
|
54979
|
+
if (prevValueRef.current.length > 0 && value.length === 0 && !internalClearRef.current) {
|
|
54979
54980
|
setLocalFilter({});
|
|
54980
54981
|
}
|
|
54982
|
+
internalClearRef.current = false;
|
|
54981
54983
|
prevValueRef.current = value;
|
|
54982
54984
|
}, [value]);
|
|
54983
54985
|
const transformToFilterArray = (filter) => {
|
|
@@ -55063,12 +55065,19 @@ function ServerSideNumberFilterRenderer({
|
|
|
55063
55065
|
clearTimeout(debounceTimerRef.current);
|
|
55064
55066
|
}
|
|
55065
55067
|
debounceTimerRef.current = setTimeout(() => {
|
|
55066
|
-
|
|
55067
|
-
|
|
55068
|
-
|
|
55069
|
-
|
|
55070
|
-
}
|
|
55068
|
+
const { type, value: value2, valueTo } = next;
|
|
55069
|
+
if (!type) {
|
|
55070
|
+
onChange == null ? void 0 : onChange([]);
|
|
55071
|
+
return;
|
|
55072
|
+
}
|
|
55073
|
+
const isInRange = type === "inRange";
|
|
55074
|
+
const hasValues = isInRange ? value2 !== void 0 && valueTo !== void 0 : value2 !== void 0;
|
|
55075
|
+
if (hasValues) {
|
|
55071
55076
|
updateFilter(next);
|
|
55077
|
+
} else {
|
|
55078
|
+
internalClearRef.current = true;
|
|
55079
|
+
setLocalFilter(next);
|
|
55080
|
+
onChange == null ? void 0 : onChange([]);
|
|
55072
55081
|
}
|
|
55073
55082
|
}, DEBOUNCE_TIME);
|
|
55074
55083
|
},
|
|
@@ -55202,6 +55211,17 @@ function ServerSideMultiNumberFilterRenderer({
|
|
|
55202
55211
|
const [returnedFilter] = returnedFilterArray;
|
|
55203
55212
|
const next = returnedFilter ? { ...returnedFilter, operator: firstFilter.operator } : { operator: firstFilter.operator };
|
|
55204
55213
|
setFirstFilter(next);
|
|
55214
|
+
const isCleared = !returnedFilter || !isValidFilter(returnedFilter) && !returnedFilter.type;
|
|
55215
|
+
if (isCleared) {
|
|
55216
|
+
if (debounceTimerRef.current) {
|
|
55217
|
+
clearTimeout(debounceTimerRef.current);
|
|
55218
|
+
debounceTimerRef.current = null;
|
|
55219
|
+
}
|
|
55220
|
+
setFirstFilter({ operator: "and" });
|
|
55221
|
+
setSecondFilter({ operator: "and" });
|
|
55222
|
+
onChange == null ? void 0 : onChange([]);
|
|
55223
|
+
return;
|
|
55224
|
+
}
|
|
55205
55225
|
if (debounceTimerRef.current)
|
|
55206
55226
|
clearTimeout(debounceTimerRef.current);
|
|
55207
55227
|
debounceTimerRef.current = setTimeout(() => {
|
|
@@ -55220,20 +55240,12 @@ function ServerSideMultiNumberFilterRenderer({
|
|
|
55220
55240
|
};
|
|
55221
55241
|
const fireOnChange = React80.useCallback(
|
|
55222
55242
|
(f1, f2) => {
|
|
55223
|
-
if (!f1.type) {
|
|
55224
|
-
onChange == null ? void 0 : onChange([]);
|
|
55225
|
-
setFirstFilter({ operator: "and" });
|
|
55226
|
-
setSecondFilter({ operator: "and" });
|
|
55227
|
-
return;
|
|
55228
|
-
}
|
|
55229
55243
|
const f1Valid = isValidFilter(f1);
|
|
55230
55244
|
const f2Valid = isValidFilter(f2);
|
|
55231
55245
|
const values2 = [f1Valid ? f1 : null, f2Valid ? f2 : null].filter(
|
|
55232
55246
|
(value2) => value2 !== null
|
|
55233
55247
|
);
|
|
55234
|
-
|
|
55235
|
-
onChange == null ? void 0 : onChange(values2);
|
|
55236
|
-
}
|
|
55248
|
+
onChange == null ? void 0 : onChange(values2);
|
|
55237
55249
|
},
|
|
55238
55250
|
[onChange]
|
|
55239
55251
|
);
|
|
@@ -105779,6 +105791,9 @@ var de_DE_default = {
|
|
|
105779
105791
|
selectCell: {
|
|
105780
105792
|
placeholder: "{{label}} ausw\xE4hlen"
|
|
105781
105793
|
},
|
|
105794
|
+
multiSelectCell: {
|
|
105795
|
+
placeholder: "Werte ausw\xE4hlen"
|
|
105796
|
+
},
|
|
105782
105797
|
booleanCell: {
|
|
105783
105798
|
options: {
|
|
105784
105799
|
yes: "Ja",
|
|
@@ -105844,7 +105859,7 @@ var en_AU_default = {
|
|
|
105844
105859
|
close: "Close",
|
|
105845
105860
|
locationFilter: {
|
|
105846
105861
|
selectAll: "Select all",
|
|
105847
|
-
includeSublocations: "Include
|
|
105862
|
+
includeSublocations: "Include sub-locations",
|
|
105848
105863
|
searchLocations: "Search locations",
|
|
105849
105864
|
locations: "Locations"
|
|
105850
105865
|
},
|
|
@@ -105942,6 +105957,9 @@ var en_AU_default = {
|
|
|
105942
105957
|
selectCell: {
|
|
105943
105958
|
placeholder: "Select {{label}}"
|
|
105944
105959
|
},
|
|
105960
|
+
multiSelectCell: {
|
|
105961
|
+
placeholder: "Select values"
|
|
105962
|
+
},
|
|
105945
105963
|
booleanCell: {
|
|
105946
105964
|
options: {
|
|
105947
105965
|
yes: "Yes",
|
|
@@ -106105,6 +106123,9 @@ var en_CA_default = {
|
|
|
106105
106123
|
selectCell: {
|
|
106106
106124
|
placeholder: "Select {{label}}"
|
|
106107
106125
|
},
|
|
106126
|
+
multiSelectCell: {
|
|
106127
|
+
placeholder: "Select values"
|
|
106128
|
+
},
|
|
106108
106129
|
booleanCell: {
|
|
106109
106130
|
options: {
|
|
106110
106131
|
yes: "Yes",
|
|
@@ -106268,6 +106289,9 @@ var en_GB_default = {
|
|
|
106268
106289
|
selectCell: {
|
|
106269
106290
|
placeholder: "Select {{label}}"
|
|
106270
106291
|
},
|
|
106292
|
+
multiSelectCell: {
|
|
106293
|
+
placeholder: "Select values"
|
|
106294
|
+
},
|
|
106271
106295
|
booleanCell: {
|
|
106272
106296
|
options: {
|
|
106273
106297
|
yes: "Yes",
|
|
@@ -106597,6 +106621,9 @@ var es_ES_default = {
|
|
|
106597
106621
|
selectCell: {
|
|
106598
106622
|
placeholder: "Seleccionar {{label}}"
|
|
106599
106623
|
},
|
|
106624
|
+
multiSelectCell: {
|
|
106625
|
+
placeholder: "Seleccionar valores"
|
|
106626
|
+
},
|
|
106600
106627
|
booleanCell: {
|
|
106601
106628
|
options: {
|
|
106602
106629
|
yes: "S\xED",
|
|
@@ -106760,6 +106787,9 @@ var es_default = {
|
|
|
106760
106787
|
selectCell: {
|
|
106761
106788
|
placeholder: "Seleccionar {{label}}"
|
|
106762
106789
|
},
|
|
106790
|
+
multiSelectCell: {
|
|
106791
|
+
placeholder: "Seleccionar valores"
|
|
106792
|
+
},
|
|
106763
106793
|
booleanCell: {
|
|
106764
106794
|
options: {
|
|
106765
106795
|
yes: "S\xED",
|
|
@@ -106923,6 +106953,9 @@ var fr_CA_default = {
|
|
|
106923
106953
|
selectCell: {
|
|
106924
106954
|
placeholder: "S\xE9lectionner {{label}}"
|
|
106925
106955
|
},
|
|
106956
|
+
multiSelectCell: {
|
|
106957
|
+
placeholder: "S\xE9lectionner les valeurs"
|
|
106958
|
+
},
|
|
106926
106959
|
booleanCell: {
|
|
106927
106960
|
options: {
|
|
106928
106961
|
yes: "Oui",
|
|
@@ -107086,6 +107119,9 @@ var fr_FR_default = {
|
|
|
107086
107119
|
selectCell: {
|
|
107087
107120
|
placeholder: "S\xE9lectionner {{label}}"
|
|
107088
107121
|
},
|
|
107122
|
+
multiSelectCell: {
|
|
107123
|
+
placeholder: "S\xE9lectionner les valeurs"
|
|
107124
|
+
},
|
|
107089
107125
|
booleanCell: {
|
|
107090
107126
|
options: {
|
|
107091
107127
|
yes: "Oui",
|
|
@@ -107249,6 +107285,9 @@ var is_IS_default = {
|
|
|
107249
107285
|
selectCell: {
|
|
107250
107286
|
placeholder: "Veldu {{label}}"
|
|
107251
107287
|
},
|
|
107288
|
+
multiSelectCell: {
|
|
107289
|
+
placeholder: "Veldu Gildi"
|
|
107290
|
+
},
|
|
107252
107291
|
booleanCell: {
|
|
107253
107292
|
options: {
|
|
107254
107293
|
yes: "J\xE1",
|
|
@@ -107412,6 +107451,9 @@ var ja_JP_default = {
|
|
|
107412
107451
|
selectCell: {
|
|
107413
107452
|
placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
|
|
107414
107453
|
},
|
|
107454
|
+
multiSelectCell: {
|
|
107455
|
+
placeholder: "\u5024\u3092\u9078\u629E"
|
|
107456
|
+
},
|
|
107415
107457
|
booleanCell: {
|
|
107416
107458
|
options: {
|
|
107417
107459
|
yes: "\u306F\u3044",
|
|
@@ -107575,6 +107617,9 @@ var pl_PL_default = {
|
|
|
107575
107617
|
selectCell: {
|
|
107576
107618
|
placeholder: "Wybierz {{label}}"
|
|
107577
107619
|
},
|
|
107620
|
+
multiSelectCell: {
|
|
107621
|
+
placeholder: "Wybierz warto\u015Bci"
|
|
107622
|
+
},
|
|
107578
107623
|
booleanCell: {
|
|
107579
107624
|
options: {
|
|
107580
107625
|
yes: "Tak",
|
|
@@ -107777,8 +107822,8 @@ var pt_BR_default = {
|
|
|
107777
107822
|
description: "Depois que sua equipe criar esses itens, voc\xEA poder\xE1 acess\xE1-los aqui. ",
|
|
107778
107823
|
title: "N\xE3o H\xE1 Itens para Exibir Agora",
|
|
107779
107824
|
itemsTitle: "N\xE3o H\xE1 %{itemsLabel} para Exibir Agora",
|
|
107780
|
-
tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado assim que voc\xEA adicionar informa\xE7\xF5es
|
|
107781
|
-
searchTooltip: "A pesquisa ser\xE1 ativada assim que voc\xEA adicionar informa\xE7\xF5es \xE0
|
|
107825
|
+
tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado assim que voc\xEA adicionar informa\xE7\xF5es \xE0 %{tableName}",
|
|
107826
|
+
searchTooltip: "A pesquisa ser\xE1 ativada assim que voc\xEA adicionar informa\xE7\xF5es \xE0 %{tableName}",
|
|
107782
107827
|
featureFilter: "Filtrar",
|
|
107783
107828
|
featureQuickFilter: "Filtro r\xE1pido",
|
|
107784
107829
|
featureGroupBy: "Agrupar por",
|
|
@@ -107904,6 +107949,9 @@ var pt_BR_default = {
|
|
|
107904
107949
|
selectCell: {
|
|
107905
107950
|
placeholder: "Selecionar {{label}}"
|
|
107906
107951
|
},
|
|
107952
|
+
multiSelectCell: {
|
|
107953
|
+
placeholder: "Selecionar Valores"
|
|
107954
|
+
},
|
|
107907
107955
|
booleanCell: {
|
|
107908
107956
|
options: {
|
|
107909
107957
|
yes: "Sim",
|
|
@@ -108067,6 +108115,9 @@ var th_TH_default = {
|
|
|
108067
108115
|
selectCell: {
|
|
108068
108116
|
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01 {{label}}"
|
|
108069
108117
|
},
|
|
108118
|
+
multiSelectCell: {
|
|
108119
|
+
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E48\u0E32"
|
|
108120
|
+
},
|
|
108070
108121
|
booleanCell: {
|
|
108071
108122
|
options: {
|
|
108072
108123
|
yes: "\u0E43\u0E0A\u0E48",
|
|
@@ -108230,6 +108281,9 @@ var zh_SG_default = {
|
|
|
108230
108281
|
selectCell: {
|
|
108231
108282
|
placeholder: "\u9009\u62E9{{label}}"
|
|
108232
108283
|
},
|
|
108284
|
+
multiSelectCell: {
|
|
108285
|
+
placeholder: "\u9009\u62E9\u503C"
|
|
108286
|
+
},
|
|
108233
108287
|
booleanCell: {
|
|
108234
108288
|
options: {
|
|
108235
108289
|
yes: "\u662F",
|
|
@@ -109575,7 +109629,7 @@ var Table = (props) => {
|
|
|
109575
109629
|
const internalTableContext = useInternalTableContext();
|
|
109576
109630
|
const clientSideRowData = props.rows ? { rowData: props.rows } : {};
|
|
109577
109631
|
const serverSideInfiniteScroll = internalTableContext.onServerSideDataRequest ? { serverSideInfiniteScroll: true } : {};
|
|
109578
|
-
const { columnApi, getRowHeight, gridApi } = internalTableContext;
|
|
109632
|
+
const { columnApi, getRowHeight, gridApi, filterState } = internalTableContext;
|
|
109579
109633
|
const [viewportWidth, setViewportWidth] = React80__default.default.useState(0);
|
|
109580
109634
|
const rowActionsWidth = React80__default.default.useRef(0);
|
|
109581
109635
|
const [tableHeight, setTableHeight] = React80__default.default.useState(0);
|
|
@@ -109816,6 +109870,13 @@ var Table = (props) => {
|
|
|
109816
109870
|
setSiblingGroupsRowSelection(selectedGroupIndex, gridApi);
|
|
109817
109871
|
}
|
|
109818
109872
|
}, [internalTableContext.selectedGroupIndex]);
|
|
109873
|
+
React80__default.default.useEffect(() => {
|
|
109874
|
+
filterState.allAvailableFilters.forEach((filter) => {
|
|
109875
|
+
if (Array.isArray(filter.filterValues) && filter.filterValues.length === 0) {
|
|
109876
|
+
tableApi.removeFilter(filter.field);
|
|
109877
|
+
}
|
|
109878
|
+
});
|
|
109879
|
+
}, [filterState.allAvailableFilters]);
|
|
109819
109880
|
function footerValueGetter(params) {
|
|
109820
109881
|
if (props.getSubtotalLabel) {
|
|
109821
109882
|
return props.getSubtotalLabel(
|
package/dist/legacy/index.js
CHANGED
|
@@ -54953,6 +54953,7 @@ function ServerSideNumberFilterRenderer({
|
|
|
54953
54953
|
}
|
|
54954
54954
|
);
|
|
54955
54955
|
const prevValueRef = useRef([]);
|
|
54956
|
+
const internalClearRef = useRef(false);
|
|
54956
54957
|
const debounceTimerRef = useRef(null);
|
|
54957
54958
|
useEffect(() => {
|
|
54958
54959
|
return () => {
|
|
@@ -54962,9 +54963,10 @@ function ServerSideNumberFilterRenderer({
|
|
|
54962
54963
|
};
|
|
54963
54964
|
}, []);
|
|
54964
54965
|
useEffect(() => {
|
|
54965
|
-
if (prevValueRef.current.length
|
|
54966
|
+
if (prevValueRef.current.length > 0 && value.length === 0 && !internalClearRef.current) {
|
|
54966
54967
|
setLocalFilter({});
|
|
54967
54968
|
}
|
|
54969
|
+
internalClearRef.current = false;
|
|
54968
54970
|
prevValueRef.current = value;
|
|
54969
54971
|
}, [value]);
|
|
54970
54972
|
const transformToFilterArray = (filter) => {
|
|
@@ -55050,12 +55052,19 @@ function ServerSideNumberFilterRenderer({
|
|
|
55050
55052
|
clearTimeout(debounceTimerRef.current);
|
|
55051
55053
|
}
|
|
55052
55054
|
debounceTimerRef.current = setTimeout(() => {
|
|
55053
|
-
|
|
55054
|
-
|
|
55055
|
-
|
|
55056
|
-
|
|
55057
|
-
}
|
|
55055
|
+
const { type, value: value2, valueTo } = next;
|
|
55056
|
+
if (!type) {
|
|
55057
|
+
onChange == null ? void 0 : onChange([]);
|
|
55058
|
+
return;
|
|
55059
|
+
}
|
|
55060
|
+
const isInRange = type === "inRange";
|
|
55061
|
+
const hasValues = isInRange ? value2 !== void 0 && valueTo !== void 0 : value2 !== void 0;
|
|
55062
|
+
if (hasValues) {
|
|
55058
55063
|
updateFilter(next);
|
|
55064
|
+
} else {
|
|
55065
|
+
internalClearRef.current = true;
|
|
55066
|
+
setLocalFilter(next);
|
|
55067
|
+
onChange == null ? void 0 : onChange([]);
|
|
55059
55068
|
}
|
|
55060
55069
|
}, DEBOUNCE_TIME);
|
|
55061
55070
|
},
|
|
@@ -55189,6 +55198,17 @@ function ServerSideMultiNumberFilterRenderer({
|
|
|
55189
55198
|
const [returnedFilter] = returnedFilterArray;
|
|
55190
55199
|
const next = returnedFilter ? { ...returnedFilter, operator: firstFilter.operator } : { operator: firstFilter.operator };
|
|
55191
55200
|
setFirstFilter(next);
|
|
55201
|
+
const isCleared = !returnedFilter || !isValidFilter(returnedFilter) && !returnedFilter.type;
|
|
55202
|
+
if (isCleared) {
|
|
55203
|
+
if (debounceTimerRef.current) {
|
|
55204
|
+
clearTimeout(debounceTimerRef.current);
|
|
55205
|
+
debounceTimerRef.current = null;
|
|
55206
|
+
}
|
|
55207
|
+
setFirstFilter({ operator: "and" });
|
|
55208
|
+
setSecondFilter({ operator: "and" });
|
|
55209
|
+
onChange == null ? void 0 : onChange([]);
|
|
55210
|
+
return;
|
|
55211
|
+
}
|
|
55192
55212
|
if (debounceTimerRef.current)
|
|
55193
55213
|
clearTimeout(debounceTimerRef.current);
|
|
55194
55214
|
debounceTimerRef.current = setTimeout(() => {
|
|
@@ -55207,20 +55227,12 @@ function ServerSideMultiNumberFilterRenderer({
|
|
|
55207
55227
|
};
|
|
55208
55228
|
const fireOnChange = useCallback(
|
|
55209
55229
|
(f1, f2) => {
|
|
55210
|
-
if (!f1.type) {
|
|
55211
|
-
onChange == null ? void 0 : onChange([]);
|
|
55212
|
-
setFirstFilter({ operator: "and" });
|
|
55213
|
-
setSecondFilter({ operator: "and" });
|
|
55214
|
-
return;
|
|
55215
|
-
}
|
|
55216
55230
|
const f1Valid = isValidFilter(f1);
|
|
55217
55231
|
const f2Valid = isValidFilter(f2);
|
|
55218
55232
|
const values2 = [f1Valid ? f1 : null, f2Valid ? f2 : null].filter(
|
|
55219
55233
|
(value2) => value2 !== null
|
|
55220
55234
|
);
|
|
55221
|
-
|
|
55222
|
-
onChange == null ? void 0 : onChange(values2);
|
|
55223
|
-
}
|
|
55235
|
+
onChange == null ? void 0 : onChange(values2);
|
|
55224
55236
|
},
|
|
55225
55237
|
[onChange]
|
|
55226
55238
|
);
|
|
@@ -105766,6 +105778,9 @@ var de_DE_default = {
|
|
|
105766
105778
|
selectCell: {
|
|
105767
105779
|
placeholder: "{{label}} ausw\xE4hlen"
|
|
105768
105780
|
},
|
|
105781
|
+
multiSelectCell: {
|
|
105782
|
+
placeholder: "Werte ausw\xE4hlen"
|
|
105783
|
+
},
|
|
105769
105784
|
booleanCell: {
|
|
105770
105785
|
options: {
|
|
105771
105786
|
yes: "Ja",
|
|
@@ -105831,7 +105846,7 @@ var en_AU_default = {
|
|
|
105831
105846
|
close: "Close",
|
|
105832
105847
|
locationFilter: {
|
|
105833
105848
|
selectAll: "Select all",
|
|
105834
|
-
includeSublocations: "Include
|
|
105849
|
+
includeSublocations: "Include sub-locations",
|
|
105835
105850
|
searchLocations: "Search locations",
|
|
105836
105851
|
locations: "Locations"
|
|
105837
105852
|
},
|
|
@@ -105929,6 +105944,9 @@ var en_AU_default = {
|
|
|
105929
105944
|
selectCell: {
|
|
105930
105945
|
placeholder: "Select {{label}}"
|
|
105931
105946
|
},
|
|
105947
|
+
multiSelectCell: {
|
|
105948
|
+
placeholder: "Select values"
|
|
105949
|
+
},
|
|
105932
105950
|
booleanCell: {
|
|
105933
105951
|
options: {
|
|
105934
105952
|
yes: "Yes",
|
|
@@ -106092,6 +106110,9 @@ var en_CA_default = {
|
|
|
106092
106110
|
selectCell: {
|
|
106093
106111
|
placeholder: "Select {{label}}"
|
|
106094
106112
|
},
|
|
106113
|
+
multiSelectCell: {
|
|
106114
|
+
placeholder: "Select values"
|
|
106115
|
+
},
|
|
106095
106116
|
booleanCell: {
|
|
106096
106117
|
options: {
|
|
106097
106118
|
yes: "Yes",
|
|
@@ -106255,6 +106276,9 @@ var en_GB_default = {
|
|
|
106255
106276
|
selectCell: {
|
|
106256
106277
|
placeholder: "Select {{label}}"
|
|
106257
106278
|
},
|
|
106279
|
+
multiSelectCell: {
|
|
106280
|
+
placeholder: "Select values"
|
|
106281
|
+
},
|
|
106258
106282
|
booleanCell: {
|
|
106259
106283
|
options: {
|
|
106260
106284
|
yes: "Yes",
|
|
@@ -106584,6 +106608,9 @@ var es_ES_default = {
|
|
|
106584
106608
|
selectCell: {
|
|
106585
106609
|
placeholder: "Seleccionar {{label}}"
|
|
106586
106610
|
},
|
|
106611
|
+
multiSelectCell: {
|
|
106612
|
+
placeholder: "Seleccionar valores"
|
|
106613
|
+
},
|
|
106587
106614
|
booleanCell: {
|
|
106588
106615
|
options: {
|
|
106589
106616
|
yes: "S\xED",
|
|
@@ -106747,6 +106774,9 @@ var es_default = {
|
|
|
106747
106774
|
selectCell: {
|
|
106748
106775
|
placeholder: "Seleccionar {{label}}"
|
|
106749
106776
|
},
|
|
106777
|
+
multiSelectCell: {
|
|
106778
|
+
placeholder: "Seleccionar valores"
|
|
106779
|
+
},
|
|
106750
106780
|
booleanCell: {
|
|
106751
106781
|
options: {
|
|
106752
106782
|
yes: "S\xED",
|
|
@@ -106910,6 +106940,9 @@ var fr_CA_default = {
|
|
|
106910
106940
|
selectCell: {
|
|
106911
106941
|
placeholder: "S\xE9lectionner {{label}}"
|
|
106912
106942
|
},
|
|
106943
|
+
multiSelectCell: {
|
|
106944
|
+
placeholder: "S\xE9lectionner les valeurs"
|
|
106945
|
+
},
|
|
106913
106946
|
booleanCell: {
|
|
106914
106947
|
options: {
|
|
106915
106948
|
yes: "Oui",
|
|
@@ -107073,6 +107106,9 @@ var fr_FR_default = {
|
|
|
107073
107106
|
selectCell: {
|
|
107074
107107
|
placeholder: "S\xE9lectionner {{label}}"
|
|
107075
107108
|
},
|
|
107109
|
+
multiSelectCell: {
|
|
107110
|
+
placeholder: "S\xE9lectionner les valeurs"
|
|
107111
|
+
},
|
|
107076
107112
|
booleanCell: {
|
|
107077
107113
|
options: {
|
|
107078
107114
|
yes: "Oui",
|
|
@@ -107236,6 +107272,9 @@ var is_IS_default = {
|
|
|
107236
107272
|
selectCell: {
|
|
107237
107273
|
placeholder: "Veldu {{label}}"
|
|
107238
107274
|
},
|
|
107275
|
+
multiSelectCell: {
|
|
107276
|
+
placeholder: "Veldu Gildi"
|
|
107277
|
+
},
|
|
107239
107278
|
booleanCell: {
|
|
107240
107279
|
options: {
|
|
107241
107280
|
yes: "J\xE1",
|
|
@@ -107399,6 +107438,9 @@ var ja_JP_default = {
|
|
|
107399
107438
|
selectCell: {
|
|
107400
107439
|
placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
|
|
107401
107440
|
},
|
|
107441
|
+
multiSelectCell: {
|
|
107442
|
+
placeholder: "\u5024\u3092\u9078\u629E"
|
|
107443
|
+
},
|
|
107402
107444
|
booleanCell: {
|
|
107403
107445
|
options: {
|
|
107404
107446
|
yes: "\u306F\u3044",
|
|
@@ -107562,6 +107604,9 @@ var pl_PL_default = {
|
|
|
107562
107604
|
selectCell: {
|
|
107563
107605
|
placeholder: "Wybierz {{label}}"
|
|
107564
107606
|
},
|
|
107607
|
+
multiSelectCell: {
|
|
107608
|
+
placeholder: "Wybierz warto\u015Bci"
|
|
107609
|
+
},
|
|
107565
107610
|
booleanCell: {
|
|
107566
107611
|
options: {
|
|
107567
107612
|
yes: "Tak",
|
|
@@ -107764,8 +107809,8 @@ var pt_BR_default = {
|
|
|
107764
107809
|
description: "Depois que sua equipe criar esses itens, voc\xEA poder\xE1 acess\xE1-los aqui. ",
|
|
107765
107810
|
title: "N\xE3o H\xE1 Itens para Exibir Agora",
|
|
107766
107811
|
itemsTitle: "N\xE3o H\xE1 %{itemsLabel} para Exibir Agora",
|
|
107767
|
-
tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado assim que voc\xEA adicionar informa\xE7\xF5es
|
|
107768
|
-
searchTooltip: "A pesquisa ser\xE1 ativada assim que voc\xEA adicionar informa\xE7\xF5es \xE0
|
|
107812
|
+
tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado assim que voc\xEA adicionar informa\xE7\xF5es \xE0 %{tableName}",
|
|
107813
|
+
searchTooltip: "A pesquisa ser\xE1 ativada assim que voc\xEA adicionar informa\xE7\xF5es \xE0 %{tableName}",
|
|
107769
107814
|
featureFilter: "Filtrar",
|
|
107770
107815
|
featureQuickFilter: "Filtro r\xE1pido",
|
|
107771
107816
|
featureGroupBy: "Agrupar por",
|
|
@@ -107891,6 +107936,9 @@ var pt_BR_default = {
|
|
|
107891
107936
|
selectCell: {
|
|
107892
107937
|
placeholder: "Selecionar {{label}}"
|
|
107893
107938
|
},
|
|
107939
|
+
multiSelectCell: {
|
|
107940
|
+
placeholder: "Selecionar Valores"
|
|
107941
|
+
},
|
|
107894
107942
|
booleanCell: {
|
|
107895
107943
|
options: {
|
|
107896
107944
|
yes: "Sim",
|
|
@@ -108054,6 +108102,9 @@ var th_TH_default = {
|
|
|
108054
108102
|
selectCell: {
|
|
108055
108103
|
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01 {{label}}"
|
|
108056
108104
|
},
|
|
108105
|
+
multiSelectCell: {
|
|
108106
|
+
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E48\u0E32"
|
|
108107
|
+
},
|
|
108057
108108
|
booleanCell: {
|
|
108058
108109
|
options: {
|
|
108059
108110
|
yes: "\u0E43\u0E0A\u0E48",
|
|
@@ -108217,6 +108268,9 @@ var zh_SG_default = {
|
|
|
108217
108268
|
selectCell: {
|
|
108218
108269
|
placeholder: "\u9009\u62E9{{label}}"
|
|
108219
108270
|
},
|
|
108271
|
+
multiSelectCell: {
|
|
108272
|
+
placeholder: "\u9009\u62E9\u503C"
|
|
108273
|
+
},
|
|
108220
108274
|
booleanCell: {
|
|
108221
108275
|
options: {
|
|
108222
108276
|
yes: "\u662F",
|
|
@@ -109562,7 +109616,7 @@ var Table = (props) => {
|
|
|
109562
109616
|
const internalTableContext = useInternalTableContext();
|
|
109563
109617
|
const clientSideRowData = props.rows ? { rowData: props.rows } : {};
|
|
109564
109618
|
const serverSideInfiniteScroll = internalTableContext.onServerSideDataRequest ? { serverSideInfiniteScroll: true } : {};
|
|
109565
|
-
const { columnApi, getRowHeight, gridApi } = internalTableContext;
|
|
109619
|
+
const { columnApi, getRowHeight, gridApi, filterState } = internalTableContext;
|
|
109566
109620
|
const [viewportWidth, setViewportWidth] = React80.useState(0);
|
|
109567
109621
|
const rowActionsWidth = React80.useRef(0);
|
|
109568
109622
|
const [tableHeight, setTableHeight] = React80.useState(0);
|
|
@@ -109803,6 +109857,13 @@ var Table = (props) => {
|
|
|
109803
109857
|
setSiblingGroupsRowSelection(selectedGroupIndex, gridApi);
|
|
109804
109858
|
}
|
|
109805
109859
|
}, [internalTableContext.selectedGroupIndex]);
|
|
109860
|
+
React80.useEffect(() => {
|
|
109861
|
+
filterState.allAvailableFilters.forEach((filter) => {
|
|
109862
|
+
if (Array.isArray(filter.filterValues) && filter.filterValues.length === 0) {
|
|
109863
|
+
tableApi.removeFilter(filter.field);
|
|
109864
|
+
}
|
|
109865
|
+
});
|
|
109866
|
+
}, [filterState.allAvailableFilters]);
|
|
109806
109867
|
function footerValueGetter(params) {
|
|
109807
109868
|
if (props.getSubtotalLabel) {
|
|
109808
109869
|
return props.getSubtotalLabel(
|
package/dist/modern/index.cjs
CHANGED
|
@@ -54905,6 +54905,7 @@ function ServerSideNumberFilterRenderer({
|
|
|
54905
54905
|
}
|
|
54906
54906
|
);
|
|
54907
54907
|
const prevValueRef = React80.useRef([]);
|
|
54908
|
+
const internalClearRef = React80.useRef(false);
|
|
54908
54909
|
const debounceTimerRef = React80.useRef(null);
|
|
54909
54910
|
React80.useEffect(() => {
|
|
54910
54911
|
return () => {
|
|
@@ -54914,9 +54915,10 @@ function ServerSideNumberFilterRenderer({
|
|
|
54914
54915
|
};
|
|
54915
54916
|
}, []);
|
|
54916
54917
|
React80.useEffect(() => {
|
|
54917
|
-
if (prevValueRef.current.length
|
|
54918
|
+
if (prevValueRef.current.length > 0 && value.length === 0 && !internalClearRef.current) {
|
|
54918
54919
|
setLocalFilter({});
|
|
54919
54920
|
}
|
|
54921
|
+
internalClearRef.current = false;
|
|
54920
54922
|
prevValueRef.current = value;
|
|
54921
54923
|
}, [value]);
|
|
54922
54924
|
const transformToFilterArray = (filter) => {
|
|
@@ -55002,12 +55004,19 @@ function ServerSideNumberFilterRenderer({
|
|
|
55002
55004
|
clearTimeout(debounceTimerRef.current);
|
|
55003
55005
|
}
|
|
55004
55006
|
debounceTimerRef.current = setTimeout(() => {
|
|
55005
|
-
|
|
55006
|
-
|
|
55007
|
-
|
|
55008
|
-
|
|
55009
|
-
}
|
|
55007
|
+
const { type, value: value2, valueTo } = next;
|
|
55008
|
+
if (!type) {
|
|
55009
|
+
onChange?.([]);
|
|
55010
|
+
return;
|
|
55011
|
+
}
|
|
55012
|
+
const isInRange = type === "inRange";
|
|
55013
|
+
const hasValues = isInRange ? value2 !== void 0 && valueTo !== void 0 : value2 !== void 0;
|
|
55014
|
+
if (hasValues) {
|
|
55010
55015
|
updateFilter(next);
|
|
55016
|
+
} else {
|
|
55017
|
+
internalClearRef.current = true;
|
|
55018
|
+
setLocalFilter(next);
|
|
55019
|
+
onChange?.([]);
|
|
55011
55020
|
}
|
|
55012
55021
|
}, DEBOUNCE_TIME);
|
|
55013
55022
|
},
|
|
@@ -55140,6 +55149,17 @@ function ServerSideMultiNumberFilterRenderer({
|
|
|
55140
55149
|
const [returnedFilter] = returnedFilterArray;
|
|
55141
55150
|
const next = returnedFilter ? { ...returnedFilter, operator: firstFilter.operator } : { operator: firstFilter.operator };
|
|
55142
55151
|
setFirstFilter(next);
|
|
55152
|
+
const isCleared = !returnedFilter || !isValidFilter(returnedFilter) && !returnedFilter.type;
|
|
55153
|
+
if (isCleared) {
|
|
55154
|
+
if (debounceTimerRef.current) {
|
|
55155
|
+
clearTimeout(debounceTimerRef.current);
|
|
55156
|
+
debounceTimerRef.current = null;
|
|
55157
|
+
}
|
|
55158
|
+
setFirstFilter({ operator: "and" });
|
|
55159
|
+
setSecondFilter({ operator: "and" });
|
|
55160
|
+
onChange?.([]);
|
|
55161
|
+
return;
|
|
55162
|
+
}
|
|
55143
55163
|
if (debounceTimerRef.current)
|
|
55144
55164
|
clearTimeout(debounceTimerRef.current);
|
|
55145
55165
|
debounceTimerRef.current = setTimeout(() => {
|
|
@@ -55158,20 +55178,12 @@ function ServerSideMultiNumberFilterRenderer({
|
|
|
55158
55178
|
};
|
|
55159
55179
|
const fireOnChange = React80.useCallback(
|
|
55160
55180
|
(f1, f2) => {
|
|
55161
|
-
if (!f1.type) {
|
|
55162
|
-
onChange?.([]);
|
|
55163
|
-
setFirstFilter({ operator: "and" });
|
|
55164
|
-
setSecondFilter({ operator: "and" });
|
|
55165
|
-
return;
|
|
55166
|
-
}
|
|
55167
55181
|
const f1Valid = isValidFilter(f1);
|
|
55168
55182
|
const f2Valid = isValidFilter(f2);
|
|
55169
55183
|
const values2 = [f1Valid ? f1 : null, f2Valid ? f2 : null].filter(
|
|
55170
55184
|
(value2) => value2 !== null
|
|
55171
55185
|
);
|
|
55172
|
-
|
|
55173
|
-
onChange?.(values2);
|
|
55174
|
-
}
|
|
55186
|
+
onChange?.(values2);
|
|
55175
55187
|
},
|
|
55176
55188
|
[onChange]
|
|
55177
55189
|
);
|
|
@@ -105613,6 +105625,9 @@ var de_DE_default = {
|
|
|
105613
105625
|
selectCell: {
|
|
105614
105626
|
placeholder: "{{label}} ausw\xE4hlen"
|
|
105615
105627
|
},
|
|
105628
|
+
multiSelectCell: {
|
|
105629
|
+
placeholder: "Werte ausw\xE4hlen"
|
|
105630
|
+
},
|
|
105616
105631
|
booleanCell: {
|
|
105617
105632
|
options: {
|
|
105618
105633
|
yes: "Ja",
|
|
@@ -105678,7 +105693,7 @@ var en_AU_default = {
|
|
|
105678
105693
|
close: "Close",
|
|
105679
105694
|
locationFilter: {
|
|
105680
105695
|
selectAll: "Select all",
|
|
105681
|
-
includeSublocations: "Include
|
|
105696
|
+
includeSublocations: "Include sub-locations",
|
|
105682
105697
|
searchLocations: "Search locations",
|
|
105683
105698
|
locations: "Locations"
|
|
105684
105699
|
},
|
|
@@ -105776,6 +105791,9 @@ var en_AU_default = {
|
|
|
105776
105791
|
selectCell: {
|
|
105777
105792
|
placeholder: "Select {{label}}"
|
|
105778
105793
|
},
|
|
105794
|
+
multiSelectCell: {
|
|
105795
|
+
placeholder: "Select values"
|
|
105796
|
+
},
|
|
105779
105797
|
booleanCell: {
|
|
105780
105798
|
options: {
|
|
105781
105799
|
yes: "Yes",
|
|
@@ -105939,6 +105957,9 @@ var en_CA_default = {
|
|
|
105939
105957
|
selectCell: {
|
|
105940
105958
|
placeholder: "Select {{label}}"
|
|
105941
105959
|
},
|
|
105960
|
+
multiSelectCell: {
|
|
105961
|
+
placeholder: "Select values"
|
|
105962
|
+
},
|
|
105942
105963
|
booleanCell: {
|
|
105943
105964
|
options: {
|
|
105944
105965
|
yes: "Yes",
|
|
@@ -106102,6 +106123,9 @@ var en_GB_default = {
|
|
|
106102
106123
|
selectCell: {
|
|
106103
106124
|
placeholder: "Select {{label}}"
|
|
106104
106125
|
},
|
|
106126
|
+
multiSelectCell: {
|
|
106127
|
+
placeholder: "Select values"
|
|
106128
|
+
},
|
|
106105
106129
|
booleanCell: {
|
|
106106
106130
|
options: {
|
|
106107
106131
|
yes: "Yes",
|
|
@@ -106431,6 +106455,9 @@ var es_ES_default = {
|
|
|
106431
106455
|
selectCell: {
|
|
106432
106456
|
placeholder: "Seleccionar {{label}}"
|
|
106433
106457
|
},
|
|
106458
|
+
multiSelectCell: {
|
|
106459
|
+
placeholder: "Seleccionar valores"
|
|
106460
|
+
},
|
|
106434
106461
|
booleanCell: {
|
|
106435
106462
|
options: {
|
|
106436
106463
|
yes: "S\xED",
|
|
@@ -106594,6 +106621,9 @@ var es_default = {
|
|
|
106594
106621
|
selectCell: {
|
|
106595
106622
|
placeholder: "Seleccionar {{label}}"
|
|
106596
106623
|
},
|
|
106624
|
+
multiSelectCell: {
|
|
106625
|
+
placeholder: "Seleccionar valores"
|
|
106626
|
+
},
|
|
106597
106627
|
booleanCell: {
|
|
106598
106628
|
options: {
|
|
106599
106629
|
yes: "S\xED",
|
|
@@ -106757,6 +106787,9 @@ var fr_CA_default = {
|
|
|
106757
106787
|
selectCell: {
|
|
106758
106788
|
placeholder: "S\xE9lectionner {{label}}"
|
|
106759
106789
|
},
|
|
106790
|
+
multiSelectCell: {
|
|
106791
|
+
placeholder: "S\xE9lectionner les valeurs"
|
|
106792
|
+
},
|
|
106760
106793
|
booleanCell: {
|
|
106761
106794
|
options: {
|
|
106762
106795
|
yes: "Oui",
|
|
@@ -106920,6 +106953,9 @@ var fr_FR_default = {
|
|
|
106920
106953
|
selectCell: {
|
|
106921
106954
|
placeholder: "S\xE9lectionner {{label}}"
|
|
106922
106955
|
},
|
|
106956
|
+
multiSelectCell: {
|
|
106957
|
+
placeholder: "S\xE9lectionner les valeurs"
|
|
106958
|
+
},
|
|
106923
106959
|
booleanCell: {
|
|
106924
106960
|
options: {
|
|
106925
106961
|
yes: "Oui",
|
|
@@ -107083,6 +107119,9 @@ var is_IS_default = {
|
|
|
107083
107119
|
selectCell: {
|
|
107084
107120
|
placeholder: "Veldu {{label}}"
|
|
107085
107121
|
},
|
|
107122
|
+
multiSelectCell: {
|
|
107123
|
+
placeholder: "Veldu Gildi"
|
|
107124
|
+
},
|
|
107086
107125
|
booleanCell: {
|
|
107087
107126
|
options: {
|
|
107088
107127
|
yes: "J\xE1",
|
|
@@ -107246,6 +107285,9 @@ var ja_JP_default = {
|
|
|
107246
107285
|
selectCell: {
|
|
107247
107286
|
placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
|
|
107248
107287
|
},
|
|
107288
|
+
multiSelectCell: {
|
|
107289
|
+
placeholder: "\u5024\u3092\u9078\u629E"
|
|
107290
|
+
},
|
|
107249
107291
|
booleanCell: {
|
|
107250
107292
|
options: {
|
|
107251
107293
|
yes: "\u306F\u3044",
|
|
@@ -107409,6 +107451,9 @@ var pl_PL_default = {
|
|
|
107409
107451
|
selectCell: {
|
|
107410
107452
|
placeholder: "Wybierz {{label}}"
|
|
107411
107453
|
},
|
|
107454
|
+
multiSelectCell: {
|
|
107455
|
+
placeholder: "Wybierz warto\u015Bci"
|
|
107456
|
+
},
|
|
107412
107457
|
booleanCell: {
|
|
107413
107458
|
options: {
|
|
107414
107459
|
yes: "Tak",
|
|
@@ -107611,8 +107656,8 @@ var pt_BR_default = {
|
|
|
107611
107656
|
description: "Depois que sua equipe criar esses itens, voc\xEA poder\xE1 acess\xE1-los aqui. ",
|
|
107612
107657
|
title: "N\xE3o H\xE1 Itens para Exibir Agora",
|
|
107613
107658
|
itemsTitle: "N\xE3o H\xE1 %{itemsLabel} para Exibir Agora",
|
|
107614
|
-
tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado assim que voc\xEA adicionar informa\xE7\xF5es
|
|
107615
|
-
searchTooltip: "A pesquisa ser\xE1 ativada assim que voc\xEA adicionar informa\xE7\xF5es \xE0
|
|
107659
|
+
tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado assim que voc\xEA adicionar informa\xE7\xF5es \xE0 %{tableName}",
|
|
107660
|
+
searchTooltip: "A pesquisa ser\xE1 ativada assim que voc\xEA adicionar informa\xE7\xF5es \xE0 %{tableName}",
|
|
107616
107661
|
featureFilter: "Filtrar",
|
|
107617
107662
|
featureQuickFilter: "Filtro r\xE1pido",
|
|
107618
107663
|
featureGroupBy: "Agrupar por",
|
|
@@ -107738,6 +107783,9 @@ var pt_BR_default = {
|
|
|
107738
107783
|
selectCell: {
|
|
107739
107784
|
placeholder: "Selecionar {{label}}"
|
|
107740
107785
|
},
|
|
107786
|
+
multiSelectCell: {
|
|
107787
|
+
placeholder: "Selecionar Valores"
|
|
107788
|
+
},
|
|
107741
107789
|
booleanCell: {
|
|
107742
107790
|
options: {
|
|
107743
107791
|
yes: "Sim",
|
|
@@ -107901,6 +107949,9 @@ var th_TH_default = {
|
|
|
107901
107949
|
selectCell: {
|
|
107902
107950
|
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01 {{label}}"
|
|
107903
107951
|
},
|
|
107952
|
+
multiSelectCell: {
|
|
107953
|
+
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E48\u0E32"
|
|
107954
|
+
},
|
|
107904
107955
|
booleanCell: {
|
|
107905
107956
|
options: {
|
|
107906
107957
|
yes: "\u0E43\u0E0A\u0E48",
|
|
@@ -108064,6 +108115,9 @@ var zh_SG_default = {
|
|
|
108064
108115
|
selectCell: {
|
|
108065
108116
|
placeholder: "\u9009\u62E9{{label}}"
|
|
108066
108117
|
},
|
|
108118
|
+
multiSelectCell: {
|
|
108119
|
+
placeholder: "\u9009\u62E9\u503C"
|
|
108120
|
+
},
|
|
108067
108121
|
booleanCell: {
|
|
108068
108122
|
options: {
|
|
108069
108123
|
yes: "\u662F",
|
|
@@ -109390,7 +109444,7 @@ var Table = (props) => {
|
|
|
109390
109444
|
const internalTableContext = useInternalTableContext();
|
|
109391
109445
|
const clientSideRowData = props.rows ? { rowData: props.rows } : {};
|
|
109392
109446
|
const serverSideInfiniteScroll = internalTableContext.onServerSideDataRequest ? { serverSideInfiniteScroll: true } : {};
|
|
109393
|
-
const { columnApi, getRowHeight, gridApi } = internalTableContext;
|
|
109447
|
+
const { columnApi, getRowHeight, gridApi, filterState } = internalTableContext;
|
|
109394
109448
|
const [viewportWidth, setViewportWidth] = React80__default.default.useState(0);
|
|
109395
109449
|
const rowActionsWidth = React80__default.default.useRef(0);
|
|
109396
109450
|
const [tableHeight, setTableHeight] = React80__default.default.useState(0);
|
|
@@ -109619,6 +109673,13 @@ var Table = (props) => {
|
|
|
109619
109673
|
setSiblingGroupsRowSelection(selectedGroupIndex, gridApi);
|
|
109620
109674
|
}
|
|
109621
109675
|
}, [internalTableContext.selectedGroupIndex]);
|
|
109676
|
+
React80__default.default.useEffect(() => {
|
|
109677
|
+
filterState.allAvailableFilters.forEach((filter) => {
|
|
109678
|
+
if (Array.isArray(filter.filterValues) && filter.filterValues.length === 0) {
|
|
109679
|
+
tableApi.removeFilter(filter.field);
|
|
109680
|
+
}
|
|
109681
|
+
});
|
|
109682
|
+
}, [filterState.allAvailableFilters]);
|
|
109622
109683
|
function footerValueGetter(params) {
|
|
109623
109684
|
if (props.getSubtotalLabel) {
|
|
109624
109685
|
return props.getSubtotalLabel(
|
package/dist/modern/index.js
CHANGED
|
@@ -54892,6 +54892,7 @@ function ServerSideNumberFilterRenderer({
|
|
|
54892
54892
|
}
|
|
54893
54893
|
);
|
|
54894
54894
|
const prevValueRef = useRef([]);
|
|
54895
|
+
const internalClearRef = useRef(false);
|
|
54895
54896
|
const debounceTimerRef = useRef(null);
|
|
54896
54897
|
useEffect(() => {
|
|
54897
54898
|
return () => {
|
|
@@ -54901,9 +54902,10 @@ function ServerSideNumberFilterRenderer({
|
|
|
54901
54902
|
};
|
|
54902
54903
|
}, []);
|
|
54903
54904
|
useEffect(() => {
|
|
54904
|
-
if (prevValueRef.current.length
|
|
54905
|
+
if (prevValueRef.current.length > 0 && value.length === 0 && !internalClearRef.current) {
|
|
54905
54906
|
setLocalFilter({});
|
|
54906
54907
|
}
|
|
54908
|
+
internalClearRef.current = false;
|
|
54907
54909
|
prevValueRef.current = value;
|
|
54908
54910
|
}, [value]);
|
|
54909
54911
|
const transformToFilterArray = (filter) => {
|
|
@@ -54989,12 +54991,19 @@ function ServerSideNumberFilterRenderer({
|
|
|
54989
54991
|
clearTimeout(debounceTimerRef.current);
|
|
54990
54992
|
}
|
|
54991
54993
|
debounceTimerRef.current = setTimeout(() => {
|
|
54992
|
-
|
|
54993
|
-
|
|
54994
|
-
|
|
54995
|
-
|
|
54996
|
-
}
|
|
54994
|
+
const { type, value: value2, valueTo } = next;
|
|
54995
|
+
if (!type) {
|
|
54996
|
+
onChange?.([]);
|
|
54997
|
+
return;
|
|
54998
|
+
}
|
|
54999
|
+
const isInRange = type === "inRange";
|
|
55000
|
+
const hasValues = isInRange ? value2 !== void 0 && valueTo !== void 0 : value2 !== void 0;
|
|
55001
|
+
if (hasValues) {
|
|
54997
55002
|
updateFilter(next);
|
|
55003
|
+
} else {
|
|
55004
|
+
internalClearRef.current = true;
|
|
55005
|
+
setLocalFilter(next);
|
|
55006
|
+
onChange?.([]);
|
|
54998
55007
|
}
|
|
54999
55008
|
}, DEBOUNCE_TIME);
|
|
55000
55009
|
},
|
|
@@ -55127,6 +55136,17 @@ function ServerSideMultiNumberFilterRenderer({
|
|
|
55127
55136
|
const [returnedFilter] = returnedFilterArray;
|
|
55128
55137
|
const next = returnedFilter ? { ...returnedFilter, operator: firstFilter.operator } : { operator: firstFilter.operator };
|
|
55129
55138
|
setFirstFilter(next);
|
|
55139
|
+
const isCleared = !returnedFilter || !isValidFilter(returnedFilter) && !returnedFilter.type;
|
|
55140
|
+
if (isCleared) {
|
|
55141
|
+
if (debounceTimerRef.current) {
|
|
55142
|
+
clearTimeout(debounceTimerRef.current);
|
|
55143
|
+
debounceTimerRef.current = null;
|
|
55144
|
+
}
|
|
55145
|
+
setFirstFilter({ operator: "and" });
|
|
55146
|
+
setSecondFilter({ operator: "and" });
|
|
55147
|
+
onChange?.([]);
|
|
55148
|
+
return;
|
|
55149
|
+
}
|
|
55130
55150
|
if (debounceTimerRef.current)
|
|
55131
55151
|
clearTimeout(debounceTimerRef.current);
|
|
55132
55152
|
debounceTimerRef.current = setTimeout(() => {
|
|
@@ -55145,20 +55165,12 @@ function ServerSideMultiNumberFilterRenderer({
|
|
|
55145
55165
|
};
|
|
55146
55166
|
const fireOnChange = useCallback(
|
|
55147
55167
|
(f1, f2) => {
|
|
55148
|
-
if (!f1.type) {
|
|
55149
|
-
onChange?.([]);
|
|
55150
|
-
setFirstFilter({ operator: "and" });
|
|
55151
|
-
setSecondFilter({ operator: "and" });
|
|
55152
|
-
return;
|
|
55153
|
-
}
|
|
55154
55168
|
const f1Valid = isValidFilter(f1);
|
|
55155
55169
|
const f2Valid = isValidFilter(f2);
|
|
55156
55170
|
const values2 = [f1Valid ? f1 : null, f2Valid ? f2 : null].filter(
|
|
55157
55171
|
(value2) => value2 !== null
|
|
55158
55172
|
);
|
|
55159
|
-
|
|
55160
|
-
onChange?.(values2);
|
|
55161
|
-
}
|
|
55173
|
+
onChange?.(values2);
|
|
55162
55174
|
},
|
|
55163
55175
|
[onChange]
|
|
55164
55176
|
);
|
|
@@ -105600,6 +105612,9 @@ var de_DE_default = {
|
|
|
105600
105612
|
selectCell: {
|
|
105601
105613
|
placeholder: "{{label}} ausw\xE4hlen"
|
|
105602
105614
|
},
|
|
105615
|
+
multiSelectCell: {
|
|
105616
|
+
placeholder: "Werte ausw\xE4hlen"
|
|
105617
|
+
},
|
|
105603
105618
|
booleanCell: {
|
|
105604
105619
|
options: {
|
|
105605
105620
|
yes: "Ja",
|
|
@@ -105665,7 +105680,7 @@ var en_AU_default = {
|
|
|
105665
105680
|
close: "Close",
|
|
105666
105681
|
locationFilter: {
|
|
105667
105682
|
selectAll: "Select all",
|
|
105668
|
-
includeSublocations: "Include
|
|
105683
|
+
includeSublocations: "Include sub-locations",
|
|
105669
105684
|
searchLocations: "Search locations",
|
|
105670
105685
|
locations: "Locations"
|
|
105671
105686
|
},
|
|
@@ -105763,6 +105778,9 @@ var en_AU_default = {
|
|
|
105763
105778
|
selectCell: {
|
|
105764
105779
|
placeholder: "Select {{label}}"
|
|
105765
105780
|
},
|
|
105781
|
+
multiSelectCell: {
|
|
105782
|
+
placeholder: "Select values"
|
|
105783
|
+
},
|
|
105766
105784
|
booleanCell: {
|
|
105767
105785
|
options: {
|
|
105768
105786
|
yes: "Yes",
|
|
@@ -105926,6 +105944,9 @@ var en_CA_default = {
|
|
|
105926
105944
|
selectCell: {
|
|
105927
105945
|
placeholder: "Select {{label}}"
|
|
105928
105946
|
},
|
|
105947
|
+
multiSelectCell: {
|
|
105948
|
+
placeholder: "Select values"
|
|
105949
|
+
},
|
|
105929
105950
|
booleanCell: {
|
|
105930
105951
|
options: {
|
|
105931
105952
|
yes: "Yes",
|
|
@@ -106089,6 +106110,9 @@ var en_GB_default = {
|
|
|
106089
106110
|
selectCell: {
|
|
106090
106111
|
placeholder: "Select {{label}}"
|
|
106091
106112
|
},
|
|
106113
|
+
multiSelectCell: {
|
|
106114
|
+
placeholder: "Select values"
|
|
106115
|
+
},
|
|
106092
106116
|
booleanCell: {
|
|
106093
106117
|
options: {
|
|
106094
106118
|
yes: "Yes",
|
|
@@ -106418,6 +106442,9 @@ var es_ES_default = {
|
|
|
106418
106442
|
selectCell: {
|
|
106419
106443
|
placeholder: "Seleccionar {{label}}"
|
|
106420
106444
|
},
|
|
106445
|
+
multiSelectCell: {
|
|
106446
|
+
placeholder: "Seleccionar valores"
|
|
106447
|
+
},
|
|
106421
106448
|
booleanCell: {
|
|
106422
106449
|
options: {
|
|
106423
106450
|
yes: "S\xED",
|
|
@@ -106581,6 +106608,9 @@ var es_default = {
|
|
|
106581
106608
|
selectCell: {
|
|
106582
106609
|
placeholder: "Seleccionar {{label}}"
|
|
106583
106610
|
},
|
|
106611
|
+
multiSelectCell: {
|
|
106612
|
+
placeholder: "Seleccionar valores"
|
|
106613
|
+
},
|
|
106584
106614
|
booleanCell: {
|
|
106585
106615
|
options: {
|
|
106586
106616
|
yes: "S\xED",
|
|
@@ -106744,6 +106774,9 @@ var fr_CA_default = {
|
|
|
106744
106774
|
selectCell: {
|
|
106745
106775
|
placeholder: "S\xE9lectionner {{label}}"
|
|
106746
106776
|
},
|
|
106777
|
+
multiSelectCell: {
|
|
106778
|
+
placeholder: "S\xE9lectionner les valeurs"
|
|
106779
|
+
},
|
|
106747
106780
|
booleanCell: {
|
|
106748
106781
|
options: {
|
|
106749
106782
|
yes: "Oui",
|
|
@@ -106907,6 +106940,9 @@ var fr_FR_default = {
|
|
|
106907
106940
|
selectCell: {
|
|
106908
106941
|
placeholder: "S\xE9lectionner {{label}}"
|
|
106909
106942
|
},
|
|
106943
|
+
multiSelectCell: {
|
|
106944
|
+
placeholder: "S\xE9lectionner les valeurs"
|
|
106945
|
+
},
|
|
106910
106946
|
booleanCell: {
|
|
106911
106947
|
options: {
|
|
106912
106948
|
yes: "Oui",
|
|
@@ -107070,6 +107106,9 @@ var is_IS_default = {
|
|
|
107070
107106
|
selectCell: {
|
|
107071
107107
|
placeholder: "Veldu {{label}}"
|
|
107072
107108
|
},
|
|
107109
|
+
multiSelectCell: {
|
|
107110
|
+
placeholder: "Veldu Gildi"
|
|
107111
|
+
},
|
|
107073
107112
|
booleanCell: {
|
|
107074
107113
|
options: {
|
|
107075
107114
|
yes: "J\xE1",
|
|
@@ -107233,6 +107272,9 @@ var ja_JP_default = {
|
|
|
107233
107272
|
selectCell: {
|
|
107234
107273
|
placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
|
|
107235
107274
|
},
|
|
107275
|
+
multiSelectCell: {
|
|
107276
|
+
placeholder: "\u5024\u3092\u9078\u629E"
|
|
107277
|
+
},
|
|
107236
107278
|
booleanCell: {
|
|
107237
107279
|
options: {
|
|
107238
107280
|
yes: "\u306F\u3044",
|
|
@@ -107396,6 +107438,9 @@ var pl_PL_default = {
|
|
|
107396
107438
|
selectCell: {
|
|
107397
107439
|
placeholder: "Wybierz {{label}}"
|
|
107398
107440
|
},
|
|
107441
|
+
multiSelectCell: {
|
|
107442
|
+
placeholder: "Wybierz warto\u015Bci"
|
|
107443
|
+
},
|
|
107399
107444
|
booleanCell: {
|
|
107400
107445
|
options: {
|
|
107401
107446
|
yes: "Tak",
|
|
@@ -107598,8 +107643,8 @@ var pt_BR_default = {
|
|
|
107598
107643
|
description: "Depois que sua equipe criar esses itens, voc\xEA poder\xE1 acess\xE1-los aqui. ",
|
|
107599
107644
|
title: "N\xE3o H\xE1 Itens para Exibir Agora",
|
|
107600
107645
|
itemsTitle: "N\xE3o H\xE1 %{itemsLabel} para Exibir Agora",
|
|
107601
|
-
tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado assim que voc\xEA adicionar informa\xE7\xF5es
|
|
107602
|
-
searchTooltip: "A pesquisa ser\xE1 ativada assim que voc\xEA adicionar informa\xE7\xF5es \xE0
|
|
107646
|
+
tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado assim que voc\xEA adicionar informa\xE7\xF5es \xE0 %{tableName}",
|
|
107647
|
+
searchTooltip: "A pesquisa ser\xE1 ativada assim que voc\xEA adicionar informa\xE7\xF5es \xE0 %{tableName}",
|
|
107603
107648
|
featureFilter: "Filtrar",
|
|
107604
107649
|
featureQuickFilter: "Filtro r\xE1pido",
|
|
107605
107650
|
featureGroupBy: "Agrupar por",
|
|
@@ -107725,6 +107770,9 @@ var pt_BR_default = {
|
|
|
107725
107770
|
selectCell: {
|
|
107726
107771
|
placeholder: "Selecionar {{label}}"
|
|
107727
107772
|
},
|
|
107773
|
+
multiSelectCell: {
|
|
107774
|
+
placeholder: "Selecionar Valores"
|
|
107775
|
+
},
|
|
107728
107776
|
booleanCell: {
|
|
107729
107777
|
options: {
|
|
107730
107778
|
yes: "Sim",
|
|
@@ -107888,6 +107936,9 @@ var th_TH_default = {
|
|
|
107888
107936
|
selectCell: {
|
|
107889
107937
|
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01 {{label}}"
|
|
107890
107938
|
},
|
|
107939
|
+
multiSelectCell: {
|
|
107940
|
+
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E48\u0E32"
|
|
107941
|
+
},
|
|
107891
107942
|
booleanCell: {
|
|
107892
107943
|
options: {
|
|
107893
107944
|
yes: "\u0E43\u0E0A\u0E48",
|
|
@@ -108051,6 +108102,9 @@ var zh_SG_default = {
|
|
|
108051
108102
|
selectCell: {
|
|
108052
108103
|
placeholder: "\u9009\u62E9{{label}}"
|
|
108053
108104
|
},
|
|
108105
|
+
multiSelectCell: {
|
|
108106
|
+
placeholder: "\u9009\u62E9\u503C"
|
|
108107
|
+
},
|
|
108054
108108
|
booleanCell: {
|
|
108055
108109
|
options: {
|
|
108056
108110
|
yes: "\u662F",
|
|
@@ -109377,7 +109431,7 @@ var Table = (props) => {
|
|
|
109377
109431
|
const internalTableContext = useInternalTableContext();
|
|
109378
109432
|
const clientSideRowData = props.rows ? { rowData: props.rows } : {};
|
|
109379
109433
|
const serverSideInfiniteScroll = internalTableContext.onServerSideDataRequest ? { serverSideInfiniteScroll: true } : {};
|
|
109380
|
-
const { columnApi, getRowHeight, gridApi } = internalTableContext;
|
|
109434
|
+
const { columnApi, getRowHeight, gridApi, filterState } = internalTableContext;
|
|
109381
109435
|
const [viewportWidth, setViewportWidth] = React80.useState(0);
|
|
109382
109436
|
const rowActionsWidth = React80.useRef(0);
|
|
109383
109437
|
const [tableHeight, setTableHeight] = React80.useState(0);
|
|
@@ -109606,6 +109660,13 @@ var Table = (props) => {
|
|
|
109606
109660
|
setSiblingGroupsRowSelection(selectedGroupIndex, gridApi);
|
|
109607
109661
|
}
|
|
109608
109662
|
}, [internalTableContext.selectedGroupIndex]);
|
|
109663
|
+
React80.useEffect(() => {
|
|
109664
|
+
filterState.allAvailableFilters.forEach((filter) => {
|
|
109665
|
+
if (Array.isArray(filter.filterValues) && filter.filterValues.length === 0) {
|
|
109666
|
+
tableApi.removeFilter(filter.field);
|
|
109667
|
+
}
|
|
109668
|
+
});
|
|
109669
|
+
}, [filterState.allAvailableFilters]);
|
|
109609
109670
|
function footerValueGetter(params) {
|
|
109610
109671
|
if (props.getSubtotalLabel) {
|
|
109611
109672
|
return props.getSubtotalLabel(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/data-table",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.29.0",
|
|
4
4
|
"description": "Complex data grid built on top of ag-grid, with DST components and styles.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/legacy/index.cjs",
|
|
@@ -130,7 +130,6 @@
|
|
|
130
130
|
"@testing-library/react": "11.0.4",
|
|
131
131
|
"@testing-library/react-hooks": "8.0.1",
|
|
132
132
|
"@testing-library/user-event": "13.1.5",
|
|
133
|
-
"@types/enzyme": "3.10.12",
|
|
134
133
|
"@types/lodash.debounce": "4.0.7",
|
|
135
134
|
"@types/lodash.isequal": "4.5.0",
|
|
136
135
|
"@types/ramda": "0.28.23",
|
|
@@ -141,14 +140,12 @@
|
|
|
141
140
|
"@types/testing-library__jest-dom": "5.14.5",
|
|
142
141
|
"@typescript-eslint/eslint-plugin": "5.48.2",
|
|
143
142
|
"@typescript-eslint/parser": "5.48.1",
|
|
144
|
-
"@wojtekmaj/enzyme-adapter-react-17": "0.6.7",
|
|
145
143
|
"css-loader": "6.7.1",
|
|
146
144
|
"cypress": "13.6.1",
|
|
147
145
|
"cypress-axe": "1.5.0",
|
|
148
146
|
"cypress-multi-reporters": "1.6.4",
|
|
149
147
|
"cypress-real-events": "^1.11.0",
|
|
150
148
|
"cypress-web-vitals": "^4.1.2",
|
|
151
|
-
"enzyme": "3.11.0",
|
|
152
149
|
"esbuild-sass-plugin": "^2.16.1",
|
|
153
150
|
"eslint": "8.31.0",
|
|
154
151
|
"eslint-config-airbnb": "19.0.4",
|