@procore/data-table 14.19.0 → 14.21.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.
@@ -54096,19 +54096,34 @@ var ServerSideLocationFilterRenderer = React77__default.default.forwardRef(
54096
54096
  determineSelectedState(value)
54097
54097
  );
54098
54098
  const [disabledValues, setDisabledValues] = React77__default.default.useState([]);
54099
+ const enableSublocationsInitialValue = value.some(
54100
+ (selected) => {
54101
+ var _a2;
54102
+ return (_a2 = selected.sublocations) == null ? void 0 : _a2.length;
54103
+ }
54104
+ );
54105
+ const getUniqDisabledValues = () => {
54106
+ const newDisabledValues = [];
54107
+ value.forEach((location) => {
54108
+ newDisabledValues.push(...findSublocations(location));
54109
+ });
54110
+ const uniqDisabledValues = ramda.uniqBy(ramda.prop("id"), newDisabledValues).filter(
54111
+ ({ id }) => !selectedValueIds.includes(id)
54112
+ );
54113
+ return uniqDisabledValues;
54114
+ };
54115
+ React77.useEffect(() => {
54116
+ if (enableSublocationsInitialValue && options.length) {
54117
+ setDisabledValues(getUniqDisabledValues());
54118
+ setEnableSublocations(true);
54119
+ }
54120
+ }, [options]);
54099
54121
  const [enableSublocations, setEnableSublocations] = React77__default.default.useState(false);
54100
54122
  const onSelectSublocations = React77__default.default.useCallback(() => {
54101
54123
  if (enableSublocations) {
54102
54124
  setDisabledValues([]);
54103
54125
  } else {
54104
- const newDisabledValues = [];
54105
- value.forEach((location) => {
54106
- newDisabledValues.push(...findSublocations(location));
54107
- });
54108
- const uniqDisabledValues = ramda.uniqBy(ramda.prop("id"), newDisabledValues).filter(
54109
- ({ id }) => !selectedValueIds.includes(id)
54110
- );
54111
- setDisabledValues(uniqDisabledValues);
54126
+ setDisabledValues(getUniqDisabledValues());
54112
54127
  }
54113
54128
  setEnableSublocations(!enableSublocations);
54114
54129
  }, [enableSublocations, value, selectedValueIds, options]);
@@ -54164,18 +54179,18 @@ var ServerSideLocationFilterRenderer = React77__default.default.forwardRef(
54164
54179
  const findSublocations = (selected) => {
54165
54180
  return options.filter((option) => {
54166
54181
  return ramda.startsWith(
54167
- `${getLabel3(selected).toLowerCase()} > `,
54168
- getLabel3(option).toLowerCase()
54169
- );
54182
+ getLabel3(selected).toLowerCase().replace(/\s+>\s+/g, " > "),
54183
+ getLabel3(option).toLowerCase().replace(/\s+>\s+/g, " > ")
54184
+ ) && option.id !== selected.id;
54170
54185
  });
54171
54186
  };
54172
54187
  const handleSelectSublocations = (selected) => {
54173
54188
  if (enableSublocations) {
54174
54189
  const filteredOptions = options.filter((option) => {
54175
54190
  return ramda.startsWith(
54176
- `${getLabel3(selected).toLowerCase()} > `,
54177
- getLabel3(option).toLowerCase()
54178
- );
54191
+ getLabel3(selected).toLowerCase().replace(/ /g, ""),
54192
+ getLabel3(option).toLowerCase().replace(/ /g, "")
54193
+ ) && option.id !== selected.id;
54179
54194
  });
54180
54195
  return filteredOptions;
54181
54196
  } else {
@@ -54231,6 +54246,8 @@ var ServerSideLocationFilterRenderer = React77__default.default.forwardRef(
54231
54246
  {
54232
54247
  block: true,
54233
54248
  onClear: () => {
54249
+ setEnableSublocations(false);
54250
+ setDisabledValues([]);
54234
54251
  onChange([]);
54235
54252
  },
54236
54253
  label: `${I18n.t("dataTable.filters.locationFilter.locations")} ${value.length ? `(${value.length})` : ""}`
@@ -56478,6 +56495,15 @@ var getMainMenuItems = (props, I18n) => {
56478
56495
  }
56479
56496
  }
56480
56497
  ];
56498
+ if (!props.column.getColDef().lockVisible) {
56499
+ defaultItems.push({
56500
+ label: I18n.t("dataTable.menuOptions.hideColumn"),
56501
+ value: "hideColumn",
56502
+ action() {
56503
+ props.columnApi.setColumnVisible(props.column, false);
56504
+ }
56505
+ });
56506
+ }
56481
56507
  const resetColumns = {
56482
56508
  label: I18n.t("dataTable.menuOptions.resetColumns"),
56483
56509
  value: "resetColumns",
@@ -78583,6 +78609,7 @@ var de_DE_default = {
78583
78609
  noPin: "Nicht anheften",
78584
78610
  autoSizeThisColumn: "Gr\xF6\xDFe dieser Spalte automatisch anpassen",
78585
78611
  autoSizeAllColumns: "Alle Spalten automatisch anpassen",
78612
+ hideColumn: "Spalte ausblenden",
78586
78613
  resetColumns: "Spalten zur\xFCcksetzen",
78587
78614
  unGroupBy: "Gruppierung aufheben nach {{label}}",
78588
78615
  groupBy: "Gruppieren nach {{label}}"
@@ -78657,27 +78684,27 @@ var en_AU_default = {
78657
78684
  emptyState: {
78658
78685
  noFilteredResults: {
78659
78686
  description: "Check your spelling and filter options, or search for a different keyword.",
78660
- title: "No Items Match Your Search",
78661
- itemsTitle: "No %{itemsLabel} Match Your Search"
78687
+ title: "No items match your search",
78688
+ itemsTitle: "No %{itemsLabel} match your search"
78662
78689
  },
78663
78690
  noResults: {
78664
78691
  description: "Once your team creates these items, you can access them here. ",
78665
- title: "There Are No Items to Display Right Now",
78666
- itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
78692
+ title: "There are no items to display right now",
78693
+ itemsTitle: "There are no %{itemsLabel} to display right now",
78667
78694
  tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
78668
78695
  searchTooltip: "Search will be enabled once you add information to the %{tableName}",
78669
78696
  featureFilter: "Filter",
78670
- featureQuickFilter: "Quick Filter",
78671
- featureGroupBy: "Group By",
78697
+ featureQuickFilter: "Quick filter",
78698
+ featureGroupBy: "Group by",
78672
78699
  featureConfigure: "Configure",
78673
78700
  tableNameFallback: "Table"
78674
78701
  }
78675
78702
  },
78676
78703
  bulkActions: {
78677
78704
  apply: "Apply",
78678
- bulkEdit: "Bulk Edit",
78705
+ bulkEdit: "Bulk edit",
78679
78706
  cancel: "Cancel",
78680
- editValues: "Edit Values",
78707
+ editValues: "Edit values",
78681
78708
  error: "Sorry, the items couldn't be updated. Try again.",
78682
78709
  placeholderForField: "Enter %{fieldName}",
78683
78710
  selection: "%{count} %{number} selected",
@@ -78688,11 +78715,11 @@ var en_AU_default = {
78688
78715
  exporting: "Exporting...",
78689
78716
  filters: {
78690
78717
  filters: "Filters",
78691
- moreFilters: "More Filters",
78692
- clearAllFilters: "Clear All Filters",
78718
+ moreFilters: "More filters",
78719
+ clearAllFilters: "Clear all filters",
78693
78720
  close: "Close",
78694
78721
  locationFilter: {
78695
- selectAll: "Select All",
78722
+ selectAll: "Select all",
78696
78723
  includeSublocations: "Include sublocations",
78697
78724
  searchLocations: "Search locations",
78698
78725
  locations: "Locations"
@@ -78700,17 +78727,17 @@ var en_AU_default = {
78700
78727
  numberFilter: {
78701
78728
  labels: {
78702
78729
  and: "and",
78703
- input_placeholder: "Enter Value",
78730
+ input_placeholder: "Enter value",
78704
78731
  placeholder: "Select an item"
78705
78732
  },
78706
78733
  options: {
78707
- any_value: "Any Value",
78708
- is_between: "Is Between",
78709
- greater_than: "Is Greater Than",
78710
- greater_than_equal_to: "Is Greater Than or Equal To",
78711
- less_than: "Is Less Than",
78712
- less_than_equal_to: "Is Less Than or Equal To",
78713
- no_value: "No Value"
78734
+ any_value: "Any value",
78735
+ is_between: "Is between",
78736
+ greater_than: "Is greater than",
78737
+ greater_than_equal_to: "Is greater than or equal to",
78738
+ less_than: "Is less than",
78739
+ less_than_equal_to: "Is less than or equal to",
78740
+ no_value: "No value"
78714
78741
  }
78715
78742
  }
78716
78743
  },
@@ -78720,34 +78747,35 @@ var en_AU_default = {
78720
78747
  },
78721
78748
  menuOptions: {
78722
78749
  sortMenuItem: {
78723
- label: "Sort By This Column",
78724
- sortAscItem: "Sort Column Ascending",
78725
- sortDescItem: "Sort Column Descending",
78726
- sortResetItem: "Column Not Sorted"
78750
+ label: "Sort by this column",
78751
+ sortAscItem: "Sort column ascending",
78752
+ sortDescItem: "Sort column descending",
78753
+ sortResetItem: "Column not sorted"
78727
78754
  },
78728
- expandAllGroups: "Expand All Groups",
78729
- collapseAllGroups: "Collapse All Groups",
78730
- pinColumn: "Pin Column",
78731
- pinLeft: "Pin Left",
78732
- pinRight: "Pin Right",
78733
- noPin: "No Pin",
78734
- autoSizeThisColumn: "Autosize This Column",
78735
- autoSizeAllColumns: "Autosize All Columns",
78736
- resetColumns: "Reset Columns",
78755
+ expandAllGroups: "Expand all groups",
78756
+ collapseAllGroups: "Collapse all groups",
78757
+ pinColumn: "Pin column",
78758
+ pinLeft: "Pin left",
78759
+ pinRight: "Pin right",
78760
+ noPin: "No pin",
78761
+ autoSizeThisColumn: "Autosize this column",
78762
+ autoSizeAllColumns: "Autosize all columns",
78763
+ hideColumn: "Hide column",
78764
+ resetColumns: "Reset columns",
78737
78765
  unGroupBy: "Un-Group by {{label}}",
78738
- groupBy: "Group By {{label}}"
78766
+ groupBy: "Group by {{label}}"
78739
78767
  },
78740
- grandTotals: "Grand Totals",
78768
+ grandTotals: "Grand totals",
78741
78769
  search: "Search",
78742
78770
  subtotals: "Subtotals",
78743
78771
  tableSettings: {
78744
- configureColumns: "Configure Columns",
78745
- resetToDefault: "Show All",
78746
- rowHeight: "Row Height",
78772
+ configureColumns: "Configure columns",
78773
+ resetToDefault: "Show all",
78774
+ rowHeight: "Row height",
78747
78775
  small: "Small",
78748
78776
  medium: "Medium",
78749
78777
  large: "Large",
78750
- tableSettings: "Table Settings",
78778
+ tableSettings: "Table settings",
78751
78779
  groupBy: "Group by:",
78752
78780
  reset: "Reset",
78753
78781
  selectColumnGroup: "Select a column to group",
@@ -78807,27 +78835,27 @@ var en_CA_default = {
78807
78835
  emptyState: {
78808
78836
  noFilteredResults: {
78809
78837
  description: "Check your spelling and filter options, or search for a different keyword.",
78810
- title: "No Items Match Your Search",
78811
- itemsTitle: "No %{itemsLabel} Match Your Search"
78838
+ title: "No items match your search",
78839
+ itemsTitle: "No %{itemsLabel} match your search"
78812
78840
  },
78813
78841
  noResults: {
78814
78842
  description: "Once your team creates these items, you can access them here. ",
78815
- title: "There Are No Items to Display Right Now",
78816
- itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
78843
+ title: "There are no items to display right now",
78844
+ itemsTitle: "There are no %{itemsLabel} to display right now",
78817
78845
  tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
78818
78846
  searchTooltip: "Search will be enabled once you add information to the %{tableName}",
78819
78847
  featureFilter: "Filter",
78820
- featureQuickFilter: "Quick Filter",
78821
- featureGroupBy: "Group By",
78848
+ featureQuickFilter: "Quick filter",
78849
+ featureGroupBy: "Group by",
78822
78850
  featureConfigure: "Configure",
78823
78851
  tableNameFallback: "Table"
78824
78852
  }
78825
78853
  },
78826
78854
  bulkActions: {
78827
78855
  apply: "Apply",
78828
- bulkEdit: "Bulk Edit",
78856
+ bulkEdit: "Bulk edit",
78829
78857
  cancel: "Cancel",
78830
- editValues: "Edit Values",
78858
+ editValues: "Edit values",
78831
78859
  error: "Sorry, the items couldn't be updated. Try again.",
78832
78860
  placeholderForField: "Enter %{fieldName}",
78833
78861
  selection: "%{count} %{number} selected",
@@ -78838,8 +78866,8 @@ var en_CA_default = {
78838
78866
  exporting: "Exporting...",
78839
78867
  filters: {
78840
78868
  filters: "Filters",
78841
- moreFilters: "More Filters",
78842
- clearAllFilters: "Clear All Filters",
78869
+ moreFilters: "More filters",
78870
+ clearAllFilters: "Clear all filters",
78843
78871
  close: "Close",
78844
78872
  locationFilter: {
78845
78873
  selectAll: "Select all",
@@ -78850,17 +78878,17 @@ var en_CA_default = {
78850
78878
  numberFilter: {
78851
78879
  labels: {
78852
78880
  and: "and",
78853
- input_placeholder: "Enter Value",
78881
+ input_placeholder: "Enter value",
78854
78882
  placeholder: "Select an item"
78855
78883
  },
78856
78884
  options: {
78857
- any_value: "Any Value",
78858
- is_between: "Is Between",
78859
- greater_than: "Is Greater Than",
78860
- greater_than_equal_to: "Is Greater Than or Equal To",
78861
- less_than: "Is Less Than",
78862
- less_than_equal_to: "Is Less Than or Equal To",
78863
- no_value: "No Value"
78885
+ any_value: "Any value",
78886
+ is_between: "Is between",
78887
+ greater_than: "Is greater than",
78888
+ greater_than_equal_to: "Is greater than or equal to",
78889
+ less_than: "Is less than",
78890
+ less_than_equal_to: "Is less than or equal to",
78891
+ no_value: "No value"
78864
78892
  }
78865
78893
  }
78866
78894
  },
@@ -78870,34 +78898,35 @@ var en_CA_default = {
78870
78898
  },
78871
78899
  menuOptions: {
78872
78900
  sortMenuItem: {
78873
- label: "Sort By This Column",
78874
- sortAscItem: "Sort Column Ascending",
78875
- sortDescItem: "Sort Column Descending",
78876
- sortResetItem: "Column Not Sorted"
78901
+ label: "Sort by this column",
78902
+ sortAscItem: "Sort column ascending",
78903
+ sortDescItem: "Sort column descending",
78904
+ sortResetItem: "Column not sorted"
78877
78905
  },
78878
- expandAllGroups: "Expand All Groups",
78879
- collapseAllGroups: "Collapse All Groups",
78880
- pinColumn: "Pin Column",
78881
- pinLeft: "Pin Left",
78882
- pinRight: "Pin Right",
78883
- noPin: "No Pin",
78884
- autoSizeThisColumn: "Autosize This Column",
78885
- autoSizeAllColumns: "Autosize All Columns",
78886
- resetColumns: "Reset Columns",
78906
+ expandAllGroups: "Expand all groups",
78907
+ collapseAllGroups: "Collapse all groups",
78908
+ pinColumn: "Pin column",
78909
+ pinLeft: "Pin left",
78910
+ pinRight: "Pin right",
78911
+ noPin: "No pin",
78912
+ autoSizeThisColumn: "Autosize this column",
78913
+ autoSizeAllColumns: "Autosize all columns",
78914
+ hideColumn: "Hide column",
78915
+ resetColumns: "Reset columns",
78887
78916
  unGroupBy: "Un-Group by {{label}}",
78888
- groupBy: "Group By {{label}}"
78917
+ groupBy: "Group by {{label}}"
78889
78918
  },
78890
- grandTotals: "Grand Totals",
78919
+ grandTotals: "Grand totals",
78891
78920
  search: "Search",
78892
78921
  subtotals: "Subtotals",
78893
78922
  tableSettings: {
78894
- configureColumns: "Configure Columns",
78895
- resetToDefault: "Show All",
78896
- rowHeight: "Row Height",
78923
+ configureColumns: "Configure columns",
78924
+ resetToDefault: "Show all",
78925
+ rowHeight: "Row height",
78897
78926
  small: "Small",
78898
78927
  medium: "Medium",
78899
78928
  large: "Large",
78900
- tableSettings: "Table Settings",
78929
+ tableSettings: "Table settings",
78901
78930
  groupBy: "Group by:",
78902
78931
  reset: "Reset",
78903
78932
  selectColumnGroup: "Select a column to group",
@@ -78957,27 +78986,27 @@ var en_GB_default = {
78957
78986
  emptyState: {
78958
78987
  noFilteredResults: {
78959
78988
  description: "Check your spelling and filter options, or search for a different keyword.",
78960
- title: "No Items Match Your Search",
78961
- itemsTitle: "No %{itemsLabel} Match Your Search"
78989
+ title: "No items match your search",
78990
+ itemsTitle: "No %{itemsLabel} match your search"
78962
78991
  },
78963
78992
  noResults: {
78964
78993
  description: "Once your team creates these items, you can access them here. ",
78965
- title: "There Are No Items to Display Right Now",
78966
- itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
78994
+ title: "There are no items to display right now",
78995
+ itemsTitle: "There are no %{itemsLabel} to display right now",
78967
78996
  tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
78968
78997
  searchTooltip: "Search will be enabled once you add information to the %{tableName}",
78969
78998
  featureFilter: "Filter",
78970
- featureQuickFilter: "Quick Filter",
78971
- featureGroupBy: "Group By",
78999
+ featureQuickFilter: "Quick filter",
79000
+ featureGroupBy: "Group by",
78972
79001
  featureConfigure: "Configure",
78973
79002
  tableNameFallback: "Table"
78974
79003
  }
78975
79004
  },
78976
79005
  bulkActions: {
78977
79006
  apply: "Apply",
78978
- bulkEdit: "Bulk Edit",
79007
+ bulkEdit: "Bulk edit",
78979
79008
  cancel: "Cancel",
78980
- editValues: "Edit Values",
79009
+ editValues: "Edit values",
78981
79010
  error: "Sorry, the items couldn't be updated. Try again.",
78982
79011
  placeholderForField: "Enter %{fieldName}",
78983
79012
  selection: "%{count} %{number} selected",
@@ -78988,8 +79017,8 @@ var en_GB_default = {
78988
79017
  exporting: "Exporting...",
78989
79018
  filters: {
78990
79019
  filters: "Filters",
78991
- moreFilters: "More Filters",
78992
- clearAllFilters: "Clear All Filters",
79020
+ moreFilters: "More filters",
79021
+ clearAllFilters: "Clear all filters",
78993
79022
  close: "Close",
78994
79023
  locationFilter: {
78995
79024
  selectAll: "Select all",
@@ -79000,17 +79029,17 @@ var en_GB_default = {
79000
79029
  numberFilter: {
79001
79030
  labels: {
79002
79031
  and: "and",
79003
- input_placeholder: "Enter Value",
79032
+ input_placeholder: "Enter value",
79004
79033
  placeholder: "Select an item"
79005
79034
  },
79006
79035
  options: {
79007
- any_value: "Any Value",
79008
- is_between: "Is Between",
79009
- greater_than: "Is Greater Than",
79010
- greater_than_equal_to: "Is Greater Than or Equal To",
79011
- less_than: "Is Less Than",
79012
- less_than_equal_to: "Is Less Than or Equal To",
79013
- no_value: "No Value"
79036
+ any_value: "Any value",
79037
+ is_between: "Is between",
79038
+ greater_than: "Is greater than",
79039
+ greater_than_equal_to: "Is greater than or equal to",
79040
+ less_than: "Is less than",
79041
+ less_than_equal_to: "Is less than or equal to",
79042
+ no_value: "No value"
79014
79043
  }
79015
79044
  }
79016
79045
  },
@@ -79020,34 +79049,35 @@ var en_GB_default = {
79020
79049
  },
79021
79050
  menuOptions: {
79022
79051
  sortMenuItem: {
79023
- label: "Sort By This Column",
79024
- sortAscItem: "Sort Column Ascending",
79025
- sortDescItem: "Sort Column Descending",
79026
- sortResetItem: "Column Not Sorted"
79052
+ label: "Sort by this column",
79053
+ sortAscItem: "Sort column ascending",
79054
+ sortDescItem: "Sort column descending",
79055
+ sortResetItem: "Column not sorted"
79027
79056
  },
79028
- expandAllGroups: "Expand All Groups",
79029
- collapseAllGroups: "Collapse All Groups",
79030
- pinColumn: "Pin Column",
79031
- pinLeft: "Pin Left",
79032
- pinRight: "Pin Right",
79033
- noPin: "No Pin",
79034
- autoSizeThisColumn: "Autosize This Column",
79035
- autoSizeAllColumns: "Autosize All Columns",
79036
- resetColumns: "Reset Columns",
79037
- unGroupBy: "Un-Group by {{label}}",
79038
- groupBy: "Group By {{label}}"
79057
+ expandAllGroups: "Expand all groups",
79058
+ collapseAllGroups: "Collapse all groups",
79059
+ pinColumn: "Pin column",
79060
+ pinLeft: "Pin left",
79061
+ pinRight: "Pin right",
79062
+ noPin: "No pin",
79063
+ autoSizeThisColumn: "Autosize this column",
79064
+ autoSizeAllColumns: "Autosize all columns",
79065
+ hideColumn: "Hide column",
79066
+ resetColumns: "Reset columns",
79067
+ unGroupBy: "Un-group by {{label}}",
79068
+ groupBy: "Group by {{label}}"
79039
79069
  },
79040
- grandTotals: "Grand Totals",
79070
+ grandTotals: "Grand totals",
79041
79071
  search: "Search",
79042
79072
  subtotals: "Subtotals",
79043
79073
  tableSettings: {
79044
- configureColumns: "Configure Columns",
79045
- resetToDefault: "Show All",
79046
- rowHeight: "Row Height",
79074
+ configureColumns: "Configure columns",
79075
+ resetToDefault: "Show all",
79076
+ rowHeight: "Row height",
79047
79077
  small: "Small",
79048
79078
  medium: "Medium",
79049
79079
  large: "Large",
79050
- tableSettings: "Table Settings",
79080
+ tableSettings: "Table settings",
79051
79081
  groupBy: "Group by:",
79052
79082
  reset: "Reset",
79053
79083
  selectColumnGroup: "Select a column to group",
@@ -79183,6 +79213,7 @@ var en_default = {
79183
79213
  noPin: "No Pin",
79184
79214
  autoSizeThisColumn: "Autosize This Column",
79185
79215
  autoSizeAllColumns: "Autosize All Columns",
79216
+ hideColumn: "Hide Column",
79186
79217
  resetColumns: "Reset Columns",
79187
79218
  unGroupBy: "Un-Group by {{label}}",
79188
79219
  groupBy: "Group by {{label}}"
@@ -79265,7 +79296,7 @@ var es_ES_default = {
79265
79296
  title: "No hay elementos para mostrar en este momento",
79266
79297
  itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
79267
79298
  tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que a\xF1ada informaci\xF3n a la %{tableName}",
79268
- searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a %{tableName}",
79299
+ searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que a\xF1ada informaci\xF3n a %{tableName}",
79269
79300
  featureFilter: "Filtro",
79270
79301
  featureQuickFilter: "Filtro r\xE1pido",
79271
79302
  featureGroupBy: "Agrupar por",
@@ -79333,6 +79364,7 @@ var es_ES_default = {
79333
79364
  noPin: "No fijar",
79334
79365
  autoSizeThisColumn: "Ajustar el tama\xF1o de esta columna autom\xE1ticamente",
79335
79366
  autoSizeAllColumns: "Ajustar el tama\xF1o de todas las columnas autom\xE1ticamente",
79367
+ hideColumn: "Ocultar columna",
79336
79368
  resetColumns: "Restablecer columnas",
79337
79369
  unGroupBy: "Desagrupar por {{label}}",
79338
79370
  groupBy: "Agrupar por {{label}}"
@@ -79483,6 +79515,7 @@ var es_default = {
79483
79515
  noPin: "Sin anclaje",
79484
79516
  autoSizeThisColumn: "Ajustar tama\xF1o de esta columna autom\xE1ticamente",
79485
79517
  autoSizeAllColumns: "Ajustar tama\xF1o de todas las columnas autom\xE1ticamente",
79518
+ hideColumn: "Ocultar columna",
79486
79519
  resetColumns: "Restablecer columnas",
79487
79520
  unGroupBy: "Desagrupar por {{label}}",
79488
79521
  groupBy: "Agrupar por {{label}}"
@@ -79633,6 +79666,7 @@ var fr_CA_default = {
79633
79666
  noPin: "Ne pas \xE9pingler",
79634
79667
  autoSizeThisColumn: "Dimensionner automatiquement cette colonne",
79635
79668
  autoSizeAllColumns: "Dimensionner automatiquement toutes les colonnes",
79669
+ hideColumn: "Masquer la colonne",
79636
79670
  resetColumns: "R\xE9initialiser les colonnes",
79637
79671
  unGroupBy: "D\xE9grouper par {{label}}",
79638
79672
  groupBy: "Grouper par {{label}}"
@@ -79645,7 +79679,7 @@ var fr_CA_default = {
79645
79679
  resetToDefault: "Afficher tout",
79646
79680
  rowHeight: "Hauteur de la rang\xE9e",
79647
79681
  small: "Petit",
79648
- medium: "Moyen",
79682
+ medium: "Moyenne",
79649
79683
  large: "Grand",
79650
79684
  tableSettings: "Param\xE8tres du tableau",
79651
79685
  groupBy: "Regrouper par :",
@@ -79783,6 +79817,7 @@ var fr_FR_default = {
79783
79817
  noPin: "Ne pas \xE9pingler",
79784
79818
  autoSizeThisColumn: "Dimensionner automatiquement cette colonne",
79785
79819
  autoSizeAllColumns: "Dimensionner automatiquement toutes les colonnes",
79820
+ hideColumn: "Masquer la colonne",
79786
79821
  resetColumns: "R\xE9initialiser les colonnes",
79787
79822
  unGroupBy: "D\xE9grouper par {{label}}",
79788
79823
  groupBy: "Regrouper par {{label}}"
@@ -79933,6 +79968,7 @@ var is_IS_default = {
79933
79968
  noPin: "Enginn pinna",
79934
79969
  autoSizeThisColumn: "St\xE6r\xF0u \xFEennan d\xE1lk sj\xE1lfkrafa",
79935
79970
  autoSizeAllColumns: "Sj\xE1lfvirk st\xE6r\xF0 allra d\xE1lka",
79971
+ hideColumn: "Fela d\xE1lk",
79936
79972
  resetColumns: "Endurstilla d\xE1lka",
79937
79973
  unGroupBy: "Taka \xFAr h\xF3pi eftir {{label}}",
79938
79974
  groupBy: "Flokka\xF0 eftir {{label}}"
@@ -80006,7 +80042,7 @@ var ja_JP_default = {
80006
80042
  dataTable: {
80007
80043
  emptyState: {
80008
80044
  noFilteredResults: {
80009
- description: "\u30B9\u30DA\u30EB\u3068\u30D5\u30A3\u30EB\u30BF\u30FC\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u78BA\u8A8D\u3059\u308B\u304B\u3001\u5225\u306E\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u691C\u7D22\u3057\u307E\u3059\u3002",
80045
+ description: "\u30B9\u30DA\u30EB\u3068\u30D5\u30A3\u30EB\u30BF\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u78BA\u8A8D\u3059\u308B\u304B\u3001\u5225\u306E\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u691C\u7D22\u3057\u307E\u3059\u3002",
80010
80046
  title: "\u691C\u7D22\u306B\u4E00\u81F4\u3059\u308B\u9805\u76EE\u306F\u3042\u308A\u307E\u305B\u3093",
80011
80047
  itemsTitle: "\u691C\u7D22\u306B\u4E00\u81F4\u3059\u308B%{itemsLabel}\u306F\u3042\u308A\u307E\u305B\u3093"
80012
80048
  },
@@ -80016,7 +80052,7 @@ var ja_JP_default = {
80016
80052
  itemsTitle: "\u73FE\u5728\u3001\u8868\u793A\u3059\u308B%{itemsLabel}\u304C\u3042\u308A\u307E\u305B\u3093",
80017
80053
  tooltip: "\u60C5\u5831\u3092%{tableName}\u306B\u8FFD\u52A0\u3059\u308B\u3068\u3001[%{featureName}]\u30DC\u30BF\u30F3\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3059",
80018
80054
  searchTooltip: "%{tableName}\u306B\u60C5\u5831\u3092\u8FFD\u52A0\u3059\u308B\u3068\u691C\u7D22\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3059",
80019
- featureFilter: "\u30D5\u30A3\u30EB\u30BF\u30FC",
80055
+ featureFilter: "\u30D5\u30A3\u30EB\u30BF",
80020
80056
  featureQuickFilter: "\u30AF\u30A4\u30C3\u30AF\u30D5\u30A3\u30EB\u30BF\u30FC",
80021
80057
  featureGroupBy: "\u30B0\u30EB\u30FC\u30D7\u5316",
80022
80058
  featureConfigure: "\u69CB\u6210",
@@ -80037,9 +80073,9 @@ var ja_JP_default = {
80037
80073
  },
80038
80074
  exporting: "\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u4E2D...",
80039
80075
  filters: {
80040
- filters: "\u30D5\u30A3\u30EB\u30BF\u30FC",
80041
- moreFilters: "\u305D\u306E\u4ED6\u306E\u30D5\u30A3\u30EB\u30BF\u30FC",
80042
- clearAllFilters: "\u3059\u3079\u3066\u306E\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u6D88\u53BB",
80076
+ filters: "\u30D5\u30A3\u30EB\u30BF",
80077
+ moreFilters: "\u305D\u306E\u4ED6\u306E\u30D5\u30A3\u30EB\u30BF",
80078
+ clearAllFilters: "\u3059\u3079\u3066\u306E\u30D5\u30A3\u30EB\u30BF\u3092\u6D88\u53BB",
80043
80079
  close: "\u7D42\u4E86",
80044
80080
  locationFilter: {
80045
80081
  selectAll: "\u3059\u3079\u3066\u9078\u629E",
@@ -80083,6 +80119,7 @@ var ja_JP_default = {
80083
80119
  noPin: "\u30D4\u30F3\u7559\u3081\u306F\u3042\u308A\u307E\u305B\u3093",
80084
80120
  autoSizeThisColumn: "\u3053\u306E\u5217\u3092\u81EA\u52D5\u30B5\u30A4\u30BA\u8ABF\u6574\u3059\u308B",
80085
80121
  autoSizeAllColumns: "\u3059\u3079\u3066\u306E\u5217\u3092\u81EA\u52D5\u30B5\u30A4\u30BA\u8ABF\u6574\u3059\u308B",
80122
+ hideColumn: "\u5217\u3092\u975E\u8868\u793A",
80086
80123
  resetColumns: "\u5217\u3092\u30EA\u30BB\u30C3\u30C8\u3059\u308B",
80087
80124
  unGroupBy: "{{label}}\u3067\u30B0\u30EB\u30FC\u30D7\u5316\u3092\u89E3\u9664\u3059\u308B",
80088
80125
  groupBy: "{{label}}\u3067\u30B0\u30EB\u30FC\u30D7\u5316\u3059\u308B"
@@ -80153,7 +80190,153 @@ var ja_JP_default = {
80153
80190
 
80154
80191
  // src/locales/pl-PL.json
80155
80192
  var pl_PL_default = {
80156
- dataTable: {}
80193
+ dataTable: {
80194
+ emptyState: {
80195
+ noFilteredResults: {
80196
+ description: "Sprawd\u017A pisowni\u0119 i filtry lub wyszukaj inne s\u0142owo kluczowe.",
80197
+ title: "Brak pozycji pasuj\u0105cych do wyszukiwania",
80198
+ itemsTitle: "Brak %{itemsLabel} pasuj\u0105cych do wyszukiwania"
80199
+ },
80200
+ noResults: {
80201
+ description: "Po utworzeniu tych pozycji przez zesp\xF3\u0142 mo\u017Cesz uzyska\u0107 do nich dost\u0119p w tym miejscu. ",
80202
+ title: "Obecnie nie ma pozycji do wy\u015Bwietlenia",
80203
+ itemsTitle: "Obecnie nie ma %{itemsLabel} do wy\u015Bwietlenia",
80204
+ tooltip: "Przycisk %{featureName} zostanie w\u0142\u0105czony, gdy dodasz informacje do %{tableName}",
80205
+ searchTooltip: "Wyszukiwanie zostanie w\u0142\u0105czone po dodaniu informacji do %{tableName}",
80206
+ featureFilter: "Filtruj",
80207
+ featureQuickFilter: "Szybki filtr",
80208
+ featureGroupBy: "Grupuj wed\u0142ug",
80209
+ featureConfigure: "Skonfiguruj",
80210
+ tableNameFallback: "tabela"
80211
+ }
80212
+ },
80213
+ bulkActions: {
80214
+ apply: "Zastosuj",
80215
+ bulkEdit: "Edycja masowa",
80216
+ cancel: "Anuluj",
80217
+ editValues: "Edytuj warto\u015Bci",
80218
+ error: "Przepraszamy, nie mo\u017Cna zaktualizowa\u0107 pozycji.Spr\xF3buj ponownie.",
80219
+ placeholderForField: "Wprowad\u017A %{fieldName}",
80220
+ selection: "Wybrano %{count} %{number}",
80221
+ success: "Pozycje zosta\u0142y pomy\u015Blnie zaktualizowane.",
80222
+ one: "pozycja",
80223
+ many: "pozycje"
80224
+ },
80225
+ exporting: "Eksportowanie...",
80226
+ filters: {
80227
+ filters: "Filtry",
80228
+ moreFilters: "Wi\u0119cej filtr\xF3w",
80229
+ clearAllFilters: "Wyczy\u015B\u0107 wszystkie filtry",
80230
+ close: "Zamknij",
80231
+ locationFilter: {
80232
+ selectAll: "Zaznacz wszystkie",
80233
+ includeSublocations: "Uwzgl\u0119dnij lokalizacje podrz\u0119dne",
80234
+ searchLocations: "Wyszukaj lokalizacje",
80235
+ locations: "Lokalizacje"
80236
+ },
80237
+ numberFilter: {
80238
+ labels: {
80239
+ and: "i",
80240
+ input_placeholder: "Wprowad\u017A warto\u015B\u0107",
80241
+ placeholder: "Wybierz pozycj\u0119"
80242
+ },
80243
+ options: {
80244
+ any_value: "Dowolna warto\u015B\u0107",
80245
+ is_between: "jest pomi\u0119dzy",
80246
+ greater_than: "jest wi\u0119ksze ni\u017C",
80247
+ greater_than_equal_to: "jest wi\u0119ksze ni\u017C lub r\xF3wne",
80248
+ less_than: "mniej ni\u017C",
80249
+ less_than_equal_to: "mniej ni\u017C lub r\xF3wne",
80250
+ no_value: "brak warto\u015Bci"
80251
+ }
80252
+ }
80253
+ },
80254
+ loading: {
80255
+ initial: "\u0141adowanie informacji.",
80256
+ secondary: "Trwa \u0142adowanie informacji. Prosimy o cierpliwo\u015B\u0107."
80257
+ },
80258
+ menuOptions: {
80259
+ sortMenuItem: {
80260
+ label: "Sortuj wed\u0142ug tej kolumny",
80261
+ sortAscItem: "Sortuj kolumny rosn\u0105co",
80262
+ sortDescItem: "Sortuj kolumny malej\u0105co",
80263
+ sortResetItem: "Kolumna nieposortowana"
80264
+ },
80265
+ expandAllGroups: "Rozwi\u0144 wszystkie grupy",
80266
+ collapseAllGroups: "Zwi\u0144 wszystkie grupy",
80267
+ pinColumn: "Przypnij kolumn\u0119",
80268
+ pinLeft: "Przypnij do lewej",
80269
+ pinRight: "Przypnij do prawej",
80270
+ noPin: "Bez przypinania",
80271
+ autoSizeThisColumn: "Automatycznie ustaw rozmiar tej kolumny",
80272
+ autoSizeAllColumns: "Automatycznie ustaw rozmiar wszystkich kolumn",
80273
+ hideColumn: "Ukryj kolumn\u0119",
80274
+ resetColumns: "Resetuj kolumny",
80275
+ unGroupBy: "Rozgrupuj wed\u0142ug {{label}}",
80276
+ groupBy: "Grupuj wed\u0142ug {{label}}"
80277
+ },
80278
+ grandTotals: "Sumy ca\u0142kowite",
80279
+ search: "Szukaj",
80280
+ subtotals: "Sumy cz\u0119\u015Bciowe",
80281
+ tableSettings: {
80282
+ configureColumns: "Skonfiguruj kolumny",
80283
+ resetToDefault: "Poka\u017C wszystkie",
80284
+ rowHeight: "Wysoko\u015B\u0107 wiersza",
80285
+ small: "Ma\u0142y",
80286
+ medium: "\u015Aredni",
80287
+ large: "Du\u017Cy",
80288
+ tableSettings: "Ustawienia tabeli",
80289
+ groupBy: "Grupuj wed\u0142ug:",
80290
+ reset: "Zresetuj",
80291
+ selectColumnGroup: "Wybierz kolumn\u0119 do zgrupowania",
80292
+ configure: "Skonfiguruj"
80293
+ },
80294
+ rowGroupToggle: {
80295
+ expandTierOne: "Otw\xF3rz pierwsze grupy w tabeli.",
80296
+ expandAll: "Otw\xF3rz wszystkie grupy w tabeli.",
80297
+ collapseAll: "Zamknij wszystkie grupy w tabeli."
80298
+ },
80299
+ columnGroupToggle: {
80300
+ collapse: "Zwi\u0144 grup\u0119 kolumn",
80301
+ expand: "Rozwi\u0144 grup\u0119 kolumn"
80302
+ },
80303
+ cells: {
80304
+ textCell: {
80305
+ placeholder: "Wprowad\u017A tekst"
80306
+ },
80307
+ currencyCell: {
80308
+ placeholder: "Wprowad\u017A walut\u0119"
80309
+ },
80310
+ numberCell: {
80311
+ placeholder: "Wprowad\u017A numer"
80312
+ },
80313
+ percentCell: {
80314
+ placeholder: "Wprowad\u017A %"
80315
+ },
80316
+ pillCell: {
80317
+ placeholder: "Wybierz {{label}}"
80318
+ },
80319
+ selectCell: {
80320
+ placeholder: "Wybierz {{label}}"
80321
+ },
80322
+ booleanCell: {
80323
+ options: {
80324
+ yes: "Tak",
80325
+ no: "Nie"
80326
+ }
80327
+ }
80328
+ },
80329
+ filterRenders: {
80330
+ dateFilter: {
80331
+ single: "Pojedyncze",
80332
+ range: "Zakres"
80333
+ }
80334
+ },
80335
+ groupCell: {
80336
+ expand: "Rozwi\u0144 grup\u0119",
80337
+ collapse: "Zwi\u0144 grup\u0119"
80338
+ }
80339
+ }
80157
80340
  };
80158
80341
 
80159
80342
  // src/locales/pseudo.json
@@ -80238,6 +80421,7 @@ var pseudo_default = {
80238
80421
  noPin: "[\u0220\u0220\u01FF \xB7 \u01A4\u012B\u019E\u019E]",
80239
80422
  autoSizeThisColumn: "[\u0226\u0226\u0226\u0226\u016D\u0167\u01FF\u015F\u012B\u1E91\u1E17 \xB7 \u0166\u0127\u012B\u015F \xB7 \u0187\u01FF\u0140\u016D\u1E3F\u019E\u019E\u019E\u019E]",
80240
80423
  autoSizeAllColumns: "[\u0226\u0226\u0226\u0226\u016D\u0167\u01FF\u015F\u012B\u1E91\u1E17 \xB7 \u0226\u0140\u0140 \xB7 \u0187\u01FF\u0140\u016D\u1E3F\u019E\u015F\u015F\u015F\u015F]",
80424
+ hideColumn: "[\u0126\u0126\u0126\u012B\u1E13\u1E17 \xB7 \u0187\u01FF\u0140\u016D\u1E3F\u019E\u019E\u019E]",
80241
80425
  resetColumns: "[\u0158\u0158\u0158\u1E17\u015F\u1E17\u0167 \xB7 \u0187\u01FF\u0140\u016D\u1E3F\u019E\u015F\u015F\u015F]",
80242
80426
  unGroupBy: "[\u016C\u016C\u016C\u016C\u016C\u019E-\u0193\u0159\u01FF\u016D\u01A5 \xB7 \u0180\u1E8F \xB7 {{\u0140\u0227\u0180\u1E17\u0140}}}}}}]",
80243
80427
  groupBy: "[\u0193\u0193\u0193\u0193\u0159\u01FF\u016D\u01A5 \xB7 \u0180\u1E8F \xB7 {{\u0140\u0227\u0180\u1E17\u0140}}}}}]"
@@ -80388,6 +80572,7 @@ var pt_BR_default = {
80388
80572
  noPin: "N\xE3o Fixar",
80389
80573
  autoSizeThisColumn: "Dimensionar Automaticamente Esta Coluna",
80390
80574
  autoSizeAllColumns: "Dimensionar Automaticamente Todas as Colunas",
80575
+ hideColumn: "Ocultar Coluna",
80391
80576
  resetColumns: "Redefinir Colunas",
80392
80577
  unGroupBy: "Desagrupar por {{label}}",
80393
80578
  groupBy: "Agrupar por {{label}}"
@@ -80538,6 +80723,7 @@ var th_TH_default = {
80538
80723
  noPin: "\u0E44\u0E21\u0E48\u0E1B\u0E31\u0E01\u0E2B\u0E21\u0E38\u0E14",
80539
80724
  autoSizeThisColumn: "\u0E1B\u0E23\u0E31\u0E1A\u0E02\u0E19\u0E32\u0E14\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C\u0E19\u0E35\u0E49\u0E42\u0E14\u0E22\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34",
80540
80725
  autoSizeAllColumns: "\u0E1B\u0E23\u0E31\u0E1A\u0E02\u0E19\u0E32\u0E14\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14\u0E42\u0E14\u0E22\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34",
80726
+ hideColumn: "\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
80541
80727
  resetColumns: "\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
80542
80728
  unGroupBy: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E01\u0E25\u0E38\u0E48\u0E21\u0E15\u0E32\u0E21 {{label}}",
80543
80729
  groupBy: "\u0E08\u0E31\u0E14\u0E01\u0E25\u0E38\u0E48\u0E21\u0E15\u0E32\u0E21 {{label}}"
@@ -80688,6 +80874,7 @@ var zh_SG_default = {
80688
80874
  noPin: "\u4E0D\u56FA\u5B9A",
80689
80875
  autoSizeThisColumn: "\u81EA\u52A8\u8C03\u6574\u6B64\u5217\u7684\u5927\u5C0F",
80690
80876
  autoSizeAllColumns: "\u81EA\u52A8\u8C03\u6574\u6240\u6709\u5217\u7684\u5927\u5C0F",
80877
+ hideColumn: "\u9690\u85CF\u5217",
80691
80878
  resetColumns: "\u91CD\u7F6E\u5217",
80692
80879
  unGroupBy: "\u53D6\u6D88\u6309{{label}}\u5206\u7EC4",
80693
80880
  groupBy: "\u6309{{label}}\u5206\u7EC4"
@@ -82913,6 +83100,7 @@ var Table = (props) => {
82913
83100
  onGridReady,
82914
83101
  onColumnEverythingChanged: props.onColumnEverythingChanged,
82915
83102
  onModelUpdated,
83103
+ onCellFocused: props.onCellFocused,
82916
83104
  onRowDragEnd,
82917
83105
  onRowDragMove,
82918
83106
  onRowGroupOpened: internalRowGroupOpened,
@@ -83928,9 +84116,9 @@ var LocationQuickFilterRenderer = ({
83928
84116
  const findSublocations = (selected) => {
83929
84117
  return options.filter((option) => {
83930
84118
  return ramda.startsWith(
83931
- `${getLabel3(selected).toLowerCase()} > `,
83932
- getLabel3(option).toLowerCase()
83933
- );
84119
+ getLabel3(selected).toLowerCase().replace(/\s+>\s+/g, " > "),
84120
+ getLabel3(option).toLowerCase().replace(/\s+>\s+/g, " > ")
84121
+ ) && option.id !== selected.id;
83934
84122
  });
83935
84123
  };
83936
84124
  const handleSelectSublocations = (selected) => {
@@ -83993,6 +84181,8 @@ var LocationQuickFilterRenderer = ({
83993
84181
  "dataTable.filters.locationFilter.locations"
83994
84182
  )}${triggerLabel}`,
83995
84183
  onClear: () => {
84184
+ setEnableSublocations(false);
84185
+ setDisabledValues([]);
83996
84186
  onChange([]);
83997
84187
  },
83998
84188
  block: true