@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.
@@ -54052,19 +54052,31 @@ var ServerSideLocationFilterRenderer = React77__default.default.forwardRef(
54052
54052
  determineSelectedState(value)
54053
54053
  );
54054
54054
  const [disabledValues, setDisabledValues] = React77__default.default.useState([]);
54055
+ const enableSublocationsInitialValue = value.some(
54056
+ (selected) => selected.sublocations?.length
54057
+ );
54058
+ const getUniqDisabledValues = () => {
54059
+ const newDisabledValues = [];
54060
+ value.forEach((location) => {
54061
+ newDisabledValues.push(...findSublocations(location));
54062
+ });
54063
+ const uniqDisabledValues = ramda.uniqBy(ramda.prop("id"), newDisabledValues).filter(
54064
+ ({ id }) => !selectedValueIds.includes(id)
54065
+ );
54066
+ return uniqDisabledValues;
54067
+ };
54068
+ React77.useEffect(() => {
54069
+ if (enableSublocationsInitialValue && options.length) {
54070
+ setDisabledValues(getUniqDisabledValues());
54071
+ setEnableSublocations(true);
54072
+ }
54073
+ }, [options]);
54055
54074
  const [enableSublocations, setEnableSublocations] = React77__default.default.useState(false);
54056
54075
  const onSelectSublocations = React77__default.default.useCallback(() => {
54057
54076
  if (enableSublocations) {
54058
54077
  setDisabledValues([]);
54059
54078
  } else {
54060
- const newDisabledValues = [];
54061
- value.forEach((location) => {
54062
- newDisabledValues.push(...findSublocations(location));
54063
- });
54064
- const uniqDisabledValues = ramda.uniqBy(ramda.prop("id"), newDisabledValues).filter(
54065
- ({ id }) => !selectedValueIds.includes(id)
54066
- );
54067
- setDisabledValues(uniqDisabledValues);
54079
+ setDisabledValues(getUniqDisabledValues());
54068
54080
  }
54069
54081
  setEnableSublocations(!enableSublocations);
54070
54082
  }, [enableSublocations, value, selectedValueIds, options]);
@@ -54120,18 +54132,18 @@ var ServerSideLocationFilterRenderer = React77__default.default.forwardRef(
54120
54132
  const findSublocations = (selected) => {
54121
54133
  return options.filter((option) => {
54122
54134
  return ramda.startsWith(
54123
- `${getLabel3(selected).toLowerCase()} > `,
54124
- getLabel3(option).toLowerCase()
54125
- );
54135
+ getLabel3(selected).toLowerCase().replace(/\s+>\s+/g, " > "),
54136
+ getLabel3(option).toLowerCase().replace(/\s+>\s+/g, " > ")
54137
+ ) && option.id !== selected.id;
54126
54138
  });
54127
54139
  };
54128
54140
  const handleSelectSublocations = (selected) => {
54129
54141
  if (enableSublocations) {
54130
54142
  const filteredOptions = options.filter((option) => {
54131
54143
  return ramda.startsWith(
54132
- `${getLabel3(selected).toLowerCase()} > `,
54133
- getLabel3(option).toLowerCase()
54134
- );
54144
+ getLabel3(selected).toLowerCase().replace(/ /g, ""),
54145
+ getLabel3(option).toLowerCase().replace(/ /g, "")
54146
+ ) && option.id !== selected.id;
54135
54147
  });
54136
54148
  return filteredOptions;
54137
54149
  } else {
@@ -54187,6 +54199,8 @@ var ServerSideLocationFilterRenderer = React77__default.default.forwardRef(
54187
54199
  {
54188
54200
  block: true,
54189
54201
  onClear: () => {
54202
+ setEnableSublocations(false);
54203
+ setDisabledValues([]);
54190
54204
  onChange([]);
54191
54205
  },
54192
54206
  label: `${I18n.t("dataTable.filters.locationFilter.locations")} ${value.length ? `(${value.length})` : ""}`
@@ -56387,6 +56401,15 @@ var getMainMenuItems = (props, I18n) => {
56387
56401
  }
56388
56402
  }
56389
56403
  ];
56404
+ if (!props.column.getColDef().lockVisible) {
56405
+ defaultItems.push({
56406
+ label: I18n.t("dataTable.menuOptions.hideColumn"),
56407
+ value: "hideColumn",
56408
+ action() {
56409
+ props.columnApi.setColumnVisible(props.column, false);
56410
+ }
56411
+ });
56412
+ }
56390
56413
  const resetColumns = {
56391
56414
  label: I18n.t("dataTable.menuOptions.resetColumns"),
56392
56415
  value: "resetColumns",
@@ -78424,6 +78447,7 @@ var de_DE_default = {
78424
78447
  noPin: "Nicht anheften",
78425
78448
  autoSizeThisColumn: "Gr\xF6\xDFe dieser Spalte automatisch anpassen",
78426
78449
  autoSizeAllColumns: "Alle Spalten automatisch anpassen",
78450
+ hideColumn: "Spalte ausblenden",
78427
78451
  resetColumns: "Spalten zur\xFCcksetzen",
78428
78452
  unGroupBy: "Gruppierung aufheben nach {{label}}",
78429
78453
  groupBy: "Gruppieren nach {{label}}"
@@ -78498,27 +78522,27 @@ var en_AU_default = {
78498
78522
  emptyState: {
78499
78523
  noFilteredResults: {
78500
78524
  description: "Check your spelling and filter options, or search for a different keyword.",
78501
- title: "No Items Match Your Search",
78502
- itemsTitle: "No %{itemsLabel} Match Your Search"
78525
+ title: "No items match your search",
78526
+ itemsTitle: "No %{itemsLabel} match your search"
78503
78527
  },
78504
78528
  noResults: {
78505
78529
  description: "Once your team creates these items, you can access them here. ",
78506
- title: "There Are No Items to Display Right Now",
78507
- itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
78530
+ title: "There are no items to display right now",
78531
+ itemsTitle: "There are no %{itemsLabel} to display right now",
78508
78532
  tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
78509
78533
  searchTooltip: "Search will be enabled once you add information to the %{tableName}",
78510
78534
  featureFilter: "Filter",
78511
- featureQuickFilter: "Quick Filter",
78512
- featureGroupBy: "Group By",
78535
+ featureQuickFilter: "Quick filter",
78536
+ featureGroupBy: "Group by",
78513
78537
  featureConfigure: "Configure",
78514
78538
  tableNameFallback: "Table"
78515
78539
  }
78516
78540
  },
78517
78541
  bulkActions: {
78518
78542
  apply: "Apply",
78519
- bulkEdit: "Bulk Edit",
78543
+ bulkEdit: "Bulk edit",
78520
78544
  cancel: "Cancel",
78521
- editValues: "Edit Values",
78545
+ editValues: "Edit values",
78522
78546
  error: "Sorry, the items couldn't be updated. Try again.",
78523
78547
  placeholderForField: "Enter %{fieldName}",
78524
78548
  selection: "%{count} %{number} selected",
@@ -78529,11 +78553,11 @@ var en_AU_default = {
78529
78553
  exporting: "Exporting...",
78530
78554
  filters: {
78531
78555
  filters: "Filters",
78532
- moreFilters: "More Filters",
78533
- clearAllFilters: "Clear All Filters",
78556
+ moreFilters: "More filters",
78557
+ clearAllFilters: "Clear all filters",
78534
78558
  close: "Close",
78535
78559
  locationFilter: {
78536
- selectAll: "Select All",
78560
+ selectAll: "Select all",
78537
78561
  includeSublocations: "Include sublocations",
78538
78562
  searchLocations: "Search locations",
78539
78563
  locations: "Locations"
@@ -78541,17 +78565,17 @@ var en_AU_default = {
78541
78565
  numberFilter: {
78542
78566
  labels: {
78543
78567
  and: "and",
78544
- input_placeholder: "Enter Value",
78568
+ input_placeholder: "Enter value",
78545
78569
  placeholder: "Select an item"
78546
78570
  },
78547
78571
  options: {
78548
- any_value: "Any Value",
78549
- is_between: "Is Between",
78550
- greater_than: "Is Greater Than",
78551
- greater_than_equal_to: "Is Greater Than or Equal To",
78552
- less_than: "Is Less Than",
78553
- less_than_equal_to: "Is Less Than or Equal To",
78554
- no_value: "No Value"
78572
+ any_value: "Any value",
78573
+ is_between: "Is between",
78574
+ greater_than: "Is greater than",
78575
+ greater_than_equal_to: "Is greater than or equal to",
78576
+ less_than: "Is less than",
78577
+ less_than_equal_to: "Is less than or equal to",
78578
+ no_value: "No value"
78555
78579
  }
78556
78580
  }
78557
78581
  },
@@ -78561,34 +78585,35 @@ var en_AU_default = {
78561
78585
  },
78562
78586
  menuOptions: {
78563
78587
  sortMenuItem: {
78564
- label: "Sort By This Column",
78565
- sortAscItem: "Sort Column Ascending",
78566
- sortDescItem: "Sort Column Descending",
78567
- sortResetItem: "Column Not Sorted"
78588
+ label: "Sort by this column",
78589
+ sortAscItem: "Sort column ascending",
78590
+ sortDescItem: "Sort column descending",
78591
+ sortResetItem: "Column not sorted"
78568
78592
  },
78569
- expandAllGroups: "Expand All Groups",
78570
- collapseAllGroups: "Collapse All Groups",
78571
- pinColumn: "Pin Column",
78572
- pinLeft: "Pin Left",
78573
- pinRight: "Pin Right",
78574
- noPin: "No Pin",
78575
- autoSizeThisColumn: "Autosize This Column",
78576
- autoSizeAllColumns: "Autosize All Columns",
78577
- resetColumns: "Reset Columns",
78593
+ expandAllGroups: "Expand all groups",
78594
+ collapseAllGroups: "Collapse all groups",
78595
+ pinColumn: "Pin column",
78596
+ pinLeft: "Pin left",
78597
+ pinRight: "Pin right",
78598
+ noPin: "No pin",
78599
+ autoSizeThisColumn: "Autosize this column",
78600
+ autoSizeAllColumns: "Autosize all columns",
78601
+ hideColumn: "Hide column",
78602
+ resetColumns: "Reset columns",
78578
78603
  unGroupBy: "Un-Group by {{label}}",
78579
- groupBy: "Group By {{label}}"
78604
+ groupBy: "Group by {{label}}"
78580
78605
  },
78581
- grandTotals: "Grand Totals",
78606
+ grandTotals: "Grand totals",
78582
78607
  search: "Search",
78583
78608
  subtotals: "Subtotals",
78584
78609
  tableSettings: {
78585
- configureColumns: "Configure Columns",
78586
- resetToDefault: "Show All",
78587
- rowHeight: "Row Height",
78610
+ configureColumns: "Configure columns",
78611
+ resetToDefault: "Show all",
78612
+ rowHeight: "Row height",
78588
78613
  small: "Small",
78589
78614
  medium: "Medium",
78590
78615
  large: "Large",
78591
- tableSettings: "Table Settings",
78616
+ tableSettings: "Table settings",
78592
78617
  groupBy: "Group by:",
78593
78618
  reset: "Reset",
78594
78619
  selectColumnGroup: "Select a column to group",
@@ -78648,27 +78673,27 @@ var en_CA_default = {
78648
78673
  emptyState: {
78649
78674
  noFilteredResults: {
78650
78675
  description: "Check your spelling and filter options, or search for a different keyword.",
78651
- title: "No Items Match Your Search",
78652
- itemsTitle: "No %{itemsLabel} Match Your Search"
78676
+ title: "No items match your search",
78677
+ itemsTitle: "No %{itemsLabel} match your search"
78653
78678
  },
78654
78679
  noResults: {
78655
78680
  description: "Once your team creates these items, you can access them here. ",
78656
- title: "There Are No Items to Display Right Now",
78657
- itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
78681
+ title: "There are no items to display right now",
78682
+ itemsTitle: "There are no %{itemsLabel} to display right now",
78658
78683
  tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
78659
78684
  searchTooltip: "Search will be enabled once you add information to the %{tableName}",
78660
78685
  featureFilter: "Filter",
78661
- featureQuickFilter: "Quick Filter",
78662
- featureGroupBy: "Group By",
78686
+ featureQuickFilter: "Quick filter",
78687
+ featureGroupBy: "Group by",
78663
78688
  featureConfigure: "Configure",
78664
78689
  tableNameFallback: "Table"
78665
78690
  }
78666
78691
  },
78667
78692
  bulkActions: {
78668
78693
  apply: "Apply",
78669
- bulkEdit: "Bulk Edit",
78694
+ bulkEdit: "Bulk edit",
78670
78695
  cancel: "Cancel",
78671
- editValues: "Edit Values",
78696
+ editValues: "Edit values",
78672
78697
  error: "Sorry, the items couldn't be updated. Try again.",
78673
78698
  placeholderForField: "Enter %{fieldName}",
78674
78699
  selection: "%{count} %{number} selected",
@@ -78679,8 +78704,8 @@ var en_CA_default = {
78679
78704
  exporting: "Exporting...",
78680
78705
  filters: {
78681
78706
  filters: "Filters",
78682
- moreFilters: "More Filters",
78683
- clearAllFilters: "Clear All Filters",
78707
+ moreFilters: "More filters",
78708
+ clearAllFilters: "Clear all filters",
78684
78709
  close: "Close",
78685
78710
  locationFilter: {
78686
78711
  selectAll: "Select all",
@@ -78691,17 +78716,17 @@ var en_CA_default = {
78691
78716
  numberFilter: {
78692
78717
  labels: {
78693
78718
  and: "and",
78694
- input_placeholder: "Enter Value",
78719
+ input_placeholder: "Enter value",
78695
78720
  placeholder: "Select an item"
78696
78721
  },
78697
78722
  options: {
78698
- any_value: "Any Value",
78699
- is_between: "Is Between",
78700
- greater_than: "Is Greater Than",
78701
- greater_than_equal_to: "Is Greater Than or Equal To",
78702
- less_than: "Is Less Than",
78703
- less_than_equal_to: "Is Less Than or Equal To",
78704
- no_value: "No Value"
78723
+ any_value: "Any value",
78724
+ is_between: "Is between",
78725
+ greater_than: "Is greater than",
78726
+ greater_than_equal_to: "Is greater than or equal to",
78727
+ less_than: "Is less than",
78728
+ less_than_equal_to: "Is less than or equal to",
78729
+ no_value: "No value"
78705
78730
  }
78706
78731
  }
78707
78732
  },
@@ -78711,34 +78736,35 @@ var en_CA_default = {
78711
78736
  },
78712
78737
  menuOptions: {
78713
78738
  sortMenuItem: {
78714
- label: "Sort By This Column",
78715
- sortAscItem: "Sort Column Ascending",
78716
- sortDescItem: "Sort Column Descending",
78717
- sortResetItem: "Column Not Sorted"
78739
+ label: "Sort by this column",
78740
+ sortAscItem: "Sort column ascending",
78741
+ sortDescItem: "Sort column descending",
78742
+ sortResetItem: "Column not sorted"
78718
78743
  },
78719
- expandAllGroups: "Expand All Groups",
78720
- collapseAllGroups: "Collapse All Groups",
78721
- pinColumn: "Pin Column",
78722
- pinLeft: "Pin Left",
78723
- pinRight: "Pin Right",
78724
- noPin: "No Pin",
78725
- autoSizeThisColumn: "Autosize This Column",
78726
- autoSizeAllColumns: "Autosize All Columns",
78727
- resetColumns: "Reset Columns",
78744
+ expandAllGroups: "Expand all groups",
78745
+ collapseAllGroups: "Collapse all groups",
78746
+ pinColumn: "Pin column",
78747
+ pinLeft: "Pin left",
78748
+ pinRight: "Pin right",
78749
+ noPin: "No pin",
78750
+ autoSizeThisColumn: "Autosize this column",
78751
+ autoSizeAllColumns: "Autosize all columns",
78752
+ hideColumn: "Hide column",
78753
+ resetColumns: "Reset columns",
78728
78754
  unGroupBy: "Un-Group by {{label}}",
78729
- groupBy: "Group By {{label}}"
78755
+ groupBy: "Group by {{label}}"
78730
78756
  },
78731
- grandTotals: "Grand Totals",
78757
+ grandTotals: "Grand totals",
78732
78758
  search: "Search",
78733
78759
  subtotals: "Subtotals",
78734
78760
  tableSettings: {
78735
- configureColumns: "Configure Columns",
78736
- resetToDefault: "Show All",
78737
- rowHeight: "Row Height",
78761
+ configureColumns: "Configure columns",
78762
+ resetToDefault: "Show all",
78763
+ rowHeight: "Row height",
78738
78764
  small: "Small",
78739
78765
  medium: "Medium",
78740
78766
  large: "Large",
78741
- tableSettings: "Table Settings",
78767
+ tableSettings: "Table settings",
78742
78768
  groupBy: "Group by:",
78743
78769
  reset: "Reset",
78744
78770
  selectColumnGroup: "Select a column to group",
@@ -78798,27 +78824,27 @@ var en_GB_default = {
78798
78824
  emptyState: {
78799
78825
  noFilteredResults: {
78800
78826
  description: "Check your spelling and filter options, or search for a different keyword.",
78801
- title: "No Items Match Your Search",
78802
- itemsTitle: "No %{itemsLabel} Match Your Search"
78827
+ title: "No items match your search",
78828
+ itemsTitle: "No %{itemsLabel} match your search"
78803
78829
  },
78804
78830
  noResults: {
78805
78831
  description: "Once your team creates these items, you can access them here. ",
78806
- title: "There Are No Items to Display Right Now",
78807
- itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
78832
+ title: "There are no items to display right now",
78833
+ itemsTitle: "There are no %{itemsLabel} to display right now",
78808
78834
  tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
78809
78835
  searchTooltip: "Search will be enabled once you add information to the %{tableName}",
78810
78836
  featureFilter: "Filter",
78811
- featureQuickFilter: "Quick Filter",
78812
- featureGroupBy: "Group By",
78837
+ featureQuickFilter: "Quick filter",
78838
+ featureGroupBy: "Group by",
78813
78839
  featureConfigure: "Configure",
78814
78840
  tableNameFallback: "Table"
78815
78841
  }
78816
78842
  },
78817
78843
  bulkActions: {
78818
78844
  apply: "Apply",
78819
- bulkEdit: "Bulk Edit",
78845
+ bulkEdit: "Bulk edit",
78820
78846
  cancel: "Cancel",
78821
- editValues: "Edit Values",
78847
+ editValues: "Edit values",
78822
78848
  error: "Sorry, the items couldn't be updated. Try again.",
78823
78849
  placeholderForField: "Enter %{fieldName}",
78824
78850
  selection: "%{count} %{number} selected",
@@ -78829,8 +78855,8 @@ var en_GB_default = {
78829
78855
  exporting: "Exporting...",
78830
78856
  filters: {
78831
78857
  filters: "Filters",
78832
- moreFilters: "More Filters",
78833
- clearAllFilters: "Clear All Filters",
78858
+ moreFilters: "More filters",
78859
+ clearAllFilters: "Clear all filters",
78834
78860
  close: "Close",
78835
78861
  locationFilter: {
78836
78862
  selectAll: "Select all",
@@ -78841,17 +78867,17 @@ var en_GB_default = {
78841
78867
  numberFilter: {
78842
78868
  labels: {
78843
78869
  and: "and",
78844
- input_placeholder: "Enter Value",
78870
+ input_placeholder: "Enter value",
78845
78871
  placeholder: "Select an item"
78846
78872
  },
78847
78873
  options: {
78848
- any_value: "Any Value",
78849
- is_between: "Is Between",
78850
- greater_than: "Is Greater Than",
78851
- greater_than_equal_to: "Is Greater Than or Equal To",
78852
- less_than: "Is Less Than",
78853
- less_than_equal_to: "Is Less Than or Equal To",
78854
- no_value: "No Value"
78874
+ any_value: "Any value",
78875
+ is_between: "Is between",
78876
+ greater_than: "Is greater than",
78877
+ greater_than_equal_to: "Is greater than or equal to",
78878
+ less_than: "Is less than",
78879
+ less_than_equal_to: "Is less than or equal to",
78880
+ no_value: "No value"
78855
78881
  }
78856
78882
  }
78857
78883
  },
@@ -78861,34 +78887,35 @@ var en_GB_default = {
78861
78887
  },
78862
78888
  menuOptions: {
78863
78889
  sortMenuItem: {
78864
- label: "Sort By This Column",
78865
- sortAscItem: "Sort Column Ascending",
78866
- sortDescItem: "Sort Column Descending",
78867
- sortResetItem: "Column Not Sorted"
78890
+ label: "Sort by this column",
78891
+ sortAscItem: "Sort column ascending",
78892
+ sortDescItem: "Sort column descending",
78893
+ sortResetItem: "Column not sorted"
78868
78894
  },
78869
- expandAllGroups: "Expand All Groups",
78870
- collapseAllGroups: "Collapse All Groups",
78871
- pinColumn: "Pin Column",
78872
- pinLeft: "Pin Left",
78873
- pinRight: "Pin Right",
78874
- noPin: "No Pin",
78875
- autoSizeThisColumn: "Autosize This Column",
78876
- autoSizeAllColumns: "Autosize All Columns",
78877
- resetColumns: "Reset Columns",
78878
- unGroupBy: "Un-Group by {{label}}",
78879
- groupBy: "Group By {{label}}"
78895
+ expandAllGroups: "Expand all groups",
78896
+ collapseAllGroups: "Collapse all groups",
78897
+ pinColumn: "Pin column",
78898
+ pinLeft: "Pin left",
78899
+ pinRight: "Pin right",
78900
+ noPin: "No pin",
78901
+ autoSizeThisColumn: "Autosize this column",
78902
+ autoSizeAllColumns: "Autosize all columns",
78903
+ hideColumn: "Hide column",
78904
+ resetColumns: "Reset columns",
78905
+ unGroupBy: "Un-group by {{label}}",
78906
+ groupBy: "Group by {{label}}"
78880
78907
  },
78881
- grandTotals: "Grand Totals",
78908
+ grandTotals: "Grand totals",
78882
78909
  search: "Search",
78883
78910
  subtotals: "Subtotals",
78884
78911
  tableSettings: {
78885
- configureColumns: "Configure Columns",
78886
- resetToDefault: "Show All",
78887
- rowHeight: "Row Height",
78912
+ configureColumns: "Configure columns",
78913
+ resetToDefault: "Show all",
78914
+ rowHeight: "Row height",
78888
78915
  small: "Small",
78889
78916
  medium: "Medium",
78890
78917
  large: "Large",
78891
- tableSettings: "Table Settings",
78918
+ tableSettings: "Table settings",
78892
78919
  groupBy: "Group by:",
78893
78920
  reset: "Reset",
78894
78921
  selectColumnGroup: "Select a column to group",
@@ -79024,6 +79051,7 @@ var en_default = {
79024
79051
  noPin: "No Pin",
79025
79052
  autoSizeThisColumn: "Autosize This Column",
79026
79053
  autoSizeAllColumns: "Autosize All Columns",
79054
+ hideColumn: "Hide Column",
79027
79055
  resetColumns: "Reset Columns",
79028
79056
  unGroupBy: "Un-Group by {{label}}",
79029
79057
  groupBy: "Group by {{label}}"
@@ -79106,7 +79134,7 @@ var es_ES_default = {
79106
79134
  title: "No hay elementos para mostrar en este momento",
79107
79135
  itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
79108
79136
  tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que a\xF1ada informaci\xF3n a la %{tableName}",
79109
- searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a %{tableName}",
79137
+ searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que a\xF1ada informaci\xF3n a %{tableName}",
79110
79138
  featureFilter: "Filtro",
79111
79139
  featureQuickFilter: "Filtro r\xE1pido",
79112
79140
  featureGroupBy: "Agrupar por",
@@ -79174,6 +79202,7 @@ var es_ES_default = {
79174
79202
  noPin: "No fijar",
79175
79203
  autoSizeThisColumn: "Ajustar el tama\xF1o de esta columna autom\xE1ticamente",
79176
79204
  autoSizeAllColumns: "Ajustar el tama\xF1o de todas las columnas autom\xE1ticamente",
79205
+ hideColumn: "Ocultar columna",
79177
79206
  resetColumns: "Restablecer columnas",
79178
79207
  unGroupBy: "Desagrupar por {{label}}",
79179
79208
  groupBy: "Agrupar por {{label}}"
@@ -79324,6 +79353,7 @@ var es_default = {
79324
79353
  noPin: "Sin anclaje",
79325
79354
  autoSizeThisColumn: "Ajustar tama\xF1o de esta columna autom\xE1ticamente",
79326
79355
  autoSizeAllColumns: "Ajustar tama\xF1o de todas las columnas autom\xE1ticamente",
79356
+ hideColumn: "Ocultar columna",
79327
79357
  resetColumns: "Restablecer columnas",
79328
79358
  unGroupBy: "Desagrupar por {{label}}",
79329
79359
  groupBy: "Agrupar por {{label}}"
@@ -79474,6 +79504,7 @@ var fr_CA_default = {
79474
79504
  noPin: "Ne pas \xE9pingler",
79475
79505
  autoSizeThisColumn: "Dimensionner automatiquement cette colonne",
79476
79506
  autoSizeAllColumns: "Dimensionner automatiquement toutes les colonnes",
79507
+ hideColumn: "Masquer la colonne",
79477
79508
  resetColumns: "R\xE9initialiser les colonnes",
79478
79509
  unGroupBy: "D\xE9grouper par {{label}}",
79479
79510
  groupBy: "Grouper par {{label}}"
@@ -79486,7 +79517,7 @@ var fr_CA_default = {
79486
79517
  resetToDefault: "Afficher tout",
79487
79518
  rowHeight: "Hauteur de la rang\xE9e",
79488
79519
  small: "Petit",
79489
- medium: "Moyen",
79520
+ medium: "Moyenne",
79490
79521
  large: "Grand",
79491
79522
  tableSettings: "Param\xE8tres du tableau",
79492
79523
  groupBy: "Regrouper par :",
@@ -79624,6 +79655,7 @@ var fr_FR_default = {
79624
79655
  noPin: "Ne pas \xE9pingler",
79625
79656
  autoSizeThisColumn: "Dimensionner automatiquement cette colonne",
79626
79657
  autoSizeAllColumns: "Dimensionner automatiquement toutes les colonnes",
79658
+ hideColumn: "Masquer la colonne",
79627
79659
  resetColumns: "R\xE9initialiser les colonnes",
79628
79660
  unGroupBy: "D\xE9grouper par {{label}}",
79629
79661
  groupBy: "Regrouper par {{label}}"
@@ -79774,6 +79806,7 @@ var is_IS_default = {
79774
79806
  noPin: "Enginn pinna",
79775
79807
  autoSizeThisColumn: "St\xE6r\xF0u \xFEennan d\xE1lk sj\xE1lfkrafa",
79776
79808
  autoSizeAllColumns: "Sj\xE1lfvirk st\xE6r\xF0 allra d\xE1lka",
79809
+ hideColumn: "Fela d\xE1lk",
79777
79810
  resetColumns: "Endurstilla d\xE1lka",
79778
79811
  unGroupBy: "Taka \xFAr h\xF3pi eftir {{label}}",
79779
79812
  groupBy: "Flokka\xF0 eftir {{label}}"
@@ -79847,7 +79880,7 @@ var ja_JP_default = {
79847
79880
  dataTable: {
79848
79881
  emptyState: {
79849
79882
  noFilteredResults: {
79850
- 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",
79883
+ 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",
79851
79884
  title: "\u691C\u7D22\u306B\u4E00\u81F4\u3059\u308B\u9805\u76EE\u306F\u3042\u308A\u307E\u305B\u3093",
79852
79885
  itemsTitle: "\u691C\u7D22\u306B\u4E00\u81F4\u3059\u308B%{itemsLabel}\u306F\u3042\u308A\u307E\u305B\u3093"
79853
79886
  },
@@ -79857,7 +79890,7 @@ var ja_JP_default = {
79857
79890
  itemsTitle: "\u73FE\u5728\u3001\u8868\u793A\u3059\u308B%{itemsLabel}\u304C\u3042\u308A\u307E\u305B\u3093",
79858
79891
  tooltip: "\u60C5\u5831\u3092%{tableName}\u306B\u8FFD\u52A0\u3059\u308B\u3068\u3001[%{featureName}]\u30DC\u30BF\u30F3\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3059",
79859
79892
  searchTooltip: "%{tableName}\u306B\u60C5\u5831\u3092\u8FFD\u52A0\u3059\u308B\u3068\u691C\u7D22\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3059",
79860
- featureFilter: "\u30D5\u30A3\u30EB\u30BF\u30FC",
79893
+ featureFilter: "\u30D5\u30A3\u30EB\u30BF",
79861
79894
  featureQuickFilter: "\u30AF\u30A4\u30C3\u30AF\u30D5\u30A3\u30EB\u30BF\u30FC",
79862
79895
  featureGroupBy: "\u30B0\u30EB\u30FC\u30D7\u5316",
79863
79896
  featureConfigure: "\u69CB\u6210",
@@ -79878,9 +79911,9 @@ var ja_JP_default = {
79878
79911
  },
79879
79912
  exporting: "\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u4E2D...",
79880
79913
  filters: {
79881
- filters: "\u30D5\u30A3\u30EB\u30BF\u30FC",
79882
- moreFilters: "\u305D\u306E\u4ED6\u306E\u30D5\u30A3\u30EB\u30BF\u30FC",
79883
- clearAllFilters: "\u3059\u3079\u3066\u306E\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u6D88\u53BB",
79914
+ filters: "\u30D5\u30A3\u30EB\u30BF",
79915
+ moreFilters: "\u305D\u306E\u4ED6\u306E\u30D5\u30A3\u30EB\u30BF",
79916
+ clearAllFilters: "\u3059\u3079\u3066\u306E\u30D5\u30A3\u30EB\u30BF\u3092\u6D88\u53BB",
79884
79917
  close: "\u7D42\u4E86",
79885
79918
  locationFilter: {
79886
79919
  selectAll: "\u3059\u3079\u3066\u9078\u629E",
@@ -79924,6 +79957,7 @@ var ja_JP_default = {
79924
79957
  noPin: "\u30D4\u30F3\u7559\u3081\u306F\u3042\u308A\u307E\u305B\u3093",
79925
79958
  autoSizeThisColumn: "\u3053\u306E\u5217\u3092\u81EA\u52D5\u30B5\u30A4\u30BA\u8ABF\u6574\u3059\u308B",
79926
79959
  autoSizeAllColumns: "\u3059\u3079\u3066\u306E\u5217\u3092\u81EA\u52D5\u30B5\u30A4\u30BA\u8ABF\u6574\u3059\u308B",
79960
+ hideColumn: "\u5217\u3092\u975E\u8868\u793A",
79927
79961
  resetColumns: "\u5217\u3092\u30EA\u30BB\u30C3\u30C8\u3059\u308B",
79928
79962
  unGroupBy: "{{label}}\u3067\u30B0\u30EB\u30FC\u30D7\u5316\u3092\u89E3\u9664\u3059\u308B",
79929
79963
  groupBy: "{{label}}\u3067\u30B0\u30EB\u30FC\u30D7\u5316\u3059\u308B"
@@ -79994,7 +80028,153 @@ var ja_JP_default = {
79994
80028
 
79995
80029
  // src/locales/pl-PL.json
79996
80030
  var pl_PL_default = {
79997
- dataTable: {}
80031
+ dataTable: {
80032
+ emptyState: {
80033
+ noFilteredResults: {
80034
+ description: "Sprawd\u017A pisowni\u0119 i filtry lub wyszukaj inne s\u0142owo kluczowe.",
80035
+ title: "Brak pozycji pasuj\u0105cych do wyszukiwania",
80036
+ itemsTitle: "Brak %{itemsLabel} pasuj\u0105cych do wyszukiwania"
80037
+ },
80038
+ noResults: {
80039
+ description: "Po utworzeniu tych pozycji przez zesp\xF3\u0142 mo\u017Cesz uzyska\u0107 do nich dost\u0119p w tym miejscu. ",
80040
+ title: "Obecnie nie ma pozycji do wy\u015Bwietlenia",
80041
+ itemsTitle: "Obecnie nie ma %{itemsLabel} do wy\u015Bwietlenia",
80042
+ tooltip: "Przycisk %{featureName} zostanie w\u0142\u0105czony, gdy dodasz informacje do %{tableName}",
80043
+ searchTooltip: "Wyszukiwanie zostanie w\u0142\u0105czone po dodaniu informacji do %{tableName}",
80044
+ featureFilter: "Filtruj",
80045
+ featureQuickFilter: "Szybki filtr",
80046
+ featureGroupBy: "Grupuj wed\u0142ug",
80047
+ featureConfigure: "Skonfiguruj",
80048
+ tableNameFallback: "tabela"
80049
+ }
80050
+ },
80051
+ bulkActions: {
80052
+ apply: "Zastosuj",
80053
+ bulkEdit: "Edycja masowa",
80054
+ cancel: "Anuluj",
80055
+ editValues: "Edytuj warto\u015Bci",
80056
+ error: "Przepraszamy, nie mo\u017Cna zaktualizowa\u0107 pozycji.Spr\xF3buj ponownie.",
80057
+ placeholderForField: "Wprowad\u017A %{fieldName}",
80058
+ selection: "Wybrano %{count} %{number}",
80059
+ success: "Pozycje zosta\u0142y pomy\u015Blnie zaktualizowane.",
80060
+ one: "pozycja",
80061
+ many: "pozycje"
80062
+ },
80063
+ exporting: "Eksportowanie...",
80064
+ filters: {
80065
+ filters: "Filtry",
80066
+ moreFilters: "Wi\u0119cej filtr\xF3w",
80067
+ clearAllFilters: "Wyczy\u015B\u0107 wszystkie filtry",
80068
+ close: "Zamknij",
80069
+ locationFilter: {
80070
+ selectAll: "Zaznacz wszystkie",
80071
+ includeSublocations: "Uwzgl\u0119dnij lokalizacje podrz\u0119dne",
80072
+ searchLocations: "Wyszukaj lokalizacje",
80073
+ locations: "Lokalizacje"
80074
+ },
80075
+ numberFilter: {
80076
+ labels: {
80077
+ and: "i",
80078
+ input_placeholder: "Wprowad\u017A warto\u015B\u0107",
80079
+ placeholder: "Wybierz pozycj\u0119"
80080
+ },
80081
+ options: {
80082
+ any_value: "Dowolna warto\u015B\u0107",
80083
+ is_between: "jest pomi\u0119dzy",
80084
+ greater_than: "jest wi\u0119ksze ni\u017C",
80085
+ greater_than_equal_to: "jest wi\u0119ksze ni\u017C lub r\xF3wne",
80086
+ less_than: "mniej ni\u017C",
80087
+ less_than_equal_to: "mniej ni\u017C lub r\xF3wne",
80088
+ no_value: "brak warto\u015Bci"
80089
+ }
80090
+ }
80091
+ },
80092
+ loading: {
80093
+ initial: "\u0141adowanie informacji.",
80094
+ secondary: "Trwa \u0142adowanie informacji. Prosimy o cierpliwo\u015B\u0107."
80095
+ },
80096
+ menuOptions: {
80097
+ sortMenuItem: {
80098
+ label: "Sortuj wed\u0142ug tej kolumny",
80099
+ sortAscItem: "Sortuj kolumny rosn\u0105co",
80100
+ sortDescItem: "Sortuj kolumny malej\u0105co",
80101
+ sortResetItem: "Kolumna nieposortowana"
80102
+ },
80103
+ expandAllGroups: "Rozwi\u0144 wszystkie grupy",
80104
+ collapseAllGroups: "Zwi\u0144 wszystkie grupy",
80105
+ pinColumn: "Przypnij kolumn\u0119",
80106
+ pinLeft: "Przypnij do lewej",
80107
+ pinRight: "Przypnij do prawej",
80108
+ noPin: "Bez przypinania",
80109
+ autoSizeThisColumn: "Automatycznie ustaw rozmiar tej kolumny",
80110
+ autoSizeAllColumns: "Automatycznie ustaw rozmiar wszystkich kolumn",
80111
+ hideColumn: "Ukryj kolumn\u0119",
80112
+ resetColumns: "Resetuj kolumny",
80113
+ unGroupBy: "Rozgrupuj wed\u0142ug {{label}}",
80114
+ groupBy: "Grupuj wed\u0142ug {{label}}"
80115
+ },
80116
+ grandTotals: "Sumy ca\u0142kowite",
80117
+ search: "Szukaj",
80118
+ subtotals: "Sumy cz\u0119\u015Bciowe",
80119
+ tableSettings: {
80120
+ configureColumns: "Skonfiguruj kolumny",
80121
+ resetToDefault: "Poka\u017C wszystkie",
80122
+ rowHeight: "Wysoko\u015B\u0107 wiersza",
80123
+ small: "Ma\u0142y",
80124
+ medium: "\u015Aredni",
80125
+ large: "Du\u017Cy",
80126
+ tableSettings: "Ustawienia tabeli",
80127
+ groupBy: "Grupuj wed\u0142ug:",
80128
+ reset: "Zresetuj",
80129
+ selectColumnGroup: "Wybierz kolumn\u0119 do zgrupowania",
80130
+ configure: "Skonfiguruj"
80131
+ },
80132
+ rowGroupToggle: {
80133
+ expandTierOne: "Otw\xF3rz pierwsze grupy w tabeli.",
80134
+ expandAll: "Otw\xF3rz wszystkie grupy w tabeli.",
80135
+ collapseAll: "Zamknij wszystkie grupy w tabeli."
80136
+ },
80137
+ columnGroupToggle: {
80138
+ collapse: "Zwi\u0144 grup\u0119 kolumn",
80139
+ expand: "Rozwi\u0144 grup\u0119 kolumn"
80140
+ },
80141
+ cells: {
80142
+ textCell: {
80143
+ placeholder: "Wprowad\u017A tekst"
80144
+ },
80145
+ currencyCell: {
80146
+ placeholder: "Wprowad\u017A walut\u0119"
80147
+ },
80148
+ numberCell: {
80149
+ placeholder: "Wprowad\u017A numer"
80150
+ },
80151
+ percentCell: {
80152
+ placeholder: "Wprowad\u017A %"
80153
+ },
80154
+ pillCell: {
80155
+ placeholder: "Wybierz {{label}}"
80156
+ },
80157
+ selectCell: {
80158
+ placeholder: "Wybierz {{label}}"
80159
+ },
80160
+ booleanCell: {
80161
+ options: {
80162
+ yes: "Tak",
80163
+ no: "Nie"
80164
+ }
80165
+ }
80166
+ },
80167
+ filterRenders: {
80168
+ dateFilter: {
80169
+ single: "Pojedyncze",
80170
+ range: "Zakres"
80171
+ }
80172
+ },
80173
+ groupCell: {
80174
+ expand: "Rozwi\u0144 grup\u0119",
80175
+ collapse: "Zwi\u0144 grup\u0119"
80176
+ }
80177
+ }
79998
80178
  };
79999
80179
 
80000
80180
  // src/locales/pseudo.json
@@ -80079,6 +80259,7 @@ var pseudo_default = {
80079
80259
  noPin: "[\u0220\u0220\u01FF \xB7 \u01A4\u012B\u019E\u019E]",
80080
80260
  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]",
80081
80261
  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]",
80262
+ hideColumn: "[\u0126\u0126\u0126\u012B\u1E13\u1E17 \xB7 \u0187\u01FF\u0140\u016D\u1E3F\u019E\u019E\u019E]",
80082
80263
  resetColumns: "[\u0158\u0158\u0158\u1E17\u015F\u1E17\u0167 \xB7 \u0187\u01FF\u0140\u016D\u1E3F\u019E\u015F\u015F\u015F]",
80083
80264
  unGroupBy: "[\u016C\u016C\u016C\u016C\u016C\u019E-\u0193\u0159\u01FF\u016D\u01A5 \xB7 \u0180\u1E8F \xB7 {{\u0140\u0227\u0180\u1E17\u0140}}}}}}]",
80084
80265
  groupBy: "[\u0193\u0193\u0193\u0193\u0159\u01FF\u016D\u01A5 \xB7 \u0180\u1E8F \xB7 {{\u0140\u0227\u0180\u1E17\u0140}}}}}]"
@@ -80229,6 +80410,7 @@ var pt_BR_default = {
80229
80410
  noPin: "N\xE3o Fixar",
80230
80411
  autoSizeThisColumn: "Dimensionar Automaticamente Esta Coluna",
80231
80412
  autoSizeAllColumns: "Dimensionar Automaticamente Todas as Colunas",
80413
+ hideColumn: "Ocultar Coluna",
80232
80414
  resetColumns: "Redefinir Colunas",
80233
80415
  unGroupBy: "Desagrupar por {{label}}",
80234
80416
  groupBy: "Agrupar por {{label}}"
@@ -80379,6 +80561,7 @@ var th_TH_default = {
80379
80561
  noPin: "\u0E44\u0E21\u0E48\u0E1B\u0E31\u0E01\u0E2B\u0E21\u0E38\u0E14",
80380
80562
  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",
80381
80563
  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",
80564
+ hideColumn: "\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
80382
80565
  resetColumns: "\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
80383
80566
  unGroupBy: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E01\u0E25\u0E38\u0E48\u0E21\u0E15\u0E32\u0E21 {{label}}",
80384
80567
  groupBy: "\u0E08\u0E31\u0E14\u0E01\u0E25\u0E38\u0E48\u0E21\u0E15\u0E32\u0E21 {{label}}"
@@ -80529,6 +80712,7 @@ var zh_SG_default = {
80529
80712
  noPin: "\u4E0D\u56FA\u5B9A",
80530
80713
  autoSizeThisColumn: "\u81EA\u52A8\u8C03\u6574\u6B64\u5217\u7684\u5927\u5C0F",
80531
80714
  autoSizeAllColumns: "\u81EA\u52A8\u8C03\u6574\u6240\u6709\u5217\u7684\u5927\u5C0F",
80715
+ hideColumn: "\u9690\u85CF\u5217",
80532
80716
  resetColumns: "\u91CD\u7F6E\u5217",
80533
80717
  unGroupBy: "\u53D6\u6D88\u6309{{label}}\u5206\u7EC4",
80534
80718
  groupBy: "\u6309{{label}}\u5206\u7EC4"
@@ -82704,6 +82888,7 @@ var Table = (props) => {
82704
82888
  onGridReady,
82705
82889
  onColumnEverythingChanged: props.onColumnEverythingChanged,
82706
82890
  onModelUpdated,
82891
+ onCellFocused: props.onCellFocused,
82707
82892
  onRowDragEnd,
82708
82893
  onRowDragMove,
82709
82894
  onRowGroupOpened: internalRowGroupOpened,
@@ -83709,9 +83894,9 @@ var LocationQuickFilterRenderer = ({
83709
83894
  const findSublocations = (selected) => {
83710
83895
  return options.filter((option) => {
83711
83896
  return ramda.startsWith(
83712
- `${getLabel3(selected).toLowerCase()} > `,
83713
- getLabel3(option).toLowerCase()
83714
- );
83897
+ getLabel3(selected).toLowerCase().replace(/\s+>\s+/g, " > "),
83898
+ getLabel3(option).toLowerCase().replace(/\s+>\s+/g, " > ")
83899
+ ) && option.id !== selected.id;
83715
83900
  });
83716
83901
  };
83717
83902
  const handleSelectSublocations = (selected) => {
@@ -83774,6 +83959,8 @@ var LocationQuickFilterRenderer = ({
83774
83959
  "dataTable.filters.locationFilter.locations"
83775
83960
  )}${triggerLabel}`,
83776
83961
  onClear: () => {
83962
+ setEnableSublocations(false);
83963
+ setDisabledValues([]);
83777
83964
  onChange([]);
83778
83965
  },
83779
83966
  block: true