@procore/data-table 14.5.0 → 14.5.1

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.
@@ -1405,7 +1405,7 @@ ag-grid, ag-grid-angular, ag-grid-ng2, ag-grid-polymer, ag-grid-aurelia {
1405
1405
  animation-iteration-count: infinite;
1406
1406
  animation-name: ag-shake-left-to-right;
1407
1407
  }
1408
- @keyframes _ag-shake-left-to-right_qs3ag_366 {
1408
+ @keyframes _ag-shake-left-to-right_taxt5_366 {
1409
1409
  from {
1410
1410
  padding-left: 6px;
1411
1411
  padding-right: 2px;
@@ -5406,7 +5406,7 @@ input[class^=ag-][type=button]:focus, button[class^=ag-]:focus {
5406
5406
  animation-iteration-count: infinite;
5407
5407
  animation-timing-function: linear;
5408
5408
  }
5409
- @keyframes _spin_qs3ag_1 {
5409
+ @keyframes _spin_taxt5_1 {
5410
5410
  from {
5411
5411
  transform: rotate(0deg);
5412
5412
  }
@@ -7578,8 +7578,11 @@ input[class^=ag-][type=range]:disabled {
7578
7578
  .ag-theme-alpine.ag-theme-alpine.ag-theme-alpine .ag-ltr .ag-header-cell .ag-header-cell-comp-wrapper .ag-header-cell-label {
7579
7579
  padding: 8px 0;
7580
7580
  }
7581
+ .ag-theme-alpine.ag-theme-alpine.ag-theme-alpine .ag-ltr .ag-header-cell .ag-header-cell-comp-wrapper .ag-header-cell-label .data-table-header-display-name-container {
7582
+ width: 100%;
7583
+ }
7581
7584
  .ag-theme-alpine.ag-theme-alpine.ag-theme-alpine .ag-ltr .ag-header-cell .ag-header-cell-comp-wrapper .ag-header-cell-label .data-table-header-display-name {
7582
- white-space: nowrap;
7585
+ word-wrap: break-word;
7583
7586
  text-overflow: ellipsis;
7584
7587
  overflow: hidden;
7585
7588
  }
@@ -7885,7 +7888,7 @@ input[class^=ag-][type=range]:disabled {
7885
7888
  padding-left: 16px;
7886
7889
  }
7887
7890
 
7888
- div._contextPanel_qs3ag_7123 {
7891
+ div._contextPanel_taxt5_7126 {
7889
7892
  width: 400px;
7890
7893
  transition: all ease 500ms;
7891
7894
  flex: 0 0 auto;
@@ -7894,7 +7897,7 @@ div._contextPanel_qs3ag_7123 {
7894
7897
  border: 1px solid #d6dadc;
7895
7898
  display: flex;
7896
7899
  }
7897
- div._contextPanel--hidden_qs3ag_7132 {
7900
+ div._contextPanel--hidden_taxt5_7135 {
7898
7901
  border: none;
7899
7902
  overflow: hidden;
7900
7903
  padding: 0px;
@@ -7902,50 +7905,50 @@ div._contextPanel--hidden_qs3ag_7132 {
7902
7905
  width: 0px;
7903
7906
  }
7904
7907
 
7905
- ._contextPanelWrapper_qs3ag_7140 {
7908
+ ._contextPanelWrapper_taxt5_7143 {
7906
7909
  position: relative;
7907
7910
  flex-grow: 1;
7908
7911
  }
7909
7912
 
7910
- ._contextPanelBody_qs3ag_7145 {
7913
+ ._contextPanelBody_taxt5_7148 {
7911
7914
  width: clamp(380px, 400px, 100%);
7912
7915
  }
7913
7916
 
7914
- ._contextPanel-stickyHeader_qs3ag_7149 {
7917
+ ._contextPanel-stickyHeader_taxt5_7152 {
7915
7918
  background-color: #ffffff;
7916
7919
  position: sticky;
7917
7920
  top: 0;
7918
7921
  z-index: 5;
7919
7922
  }
7920
7923
 
7921
- ._filters-list_qs3ag_7156 {
7924
+ ._filters-list_taxt5_7159 {
7922
7925
  padding: 0;
7923
7926
  margin: 0;
7924
7927
  }
7925
- ._filters-list_qs3ag_7156 ol {
7928
+ ._filters-list_taxt5_7159 ol {
7926
7929
  padding: 0;
7927
7930
  margin: 0;
7928
7931
  }
7929
7932
 
7930
- ._col-drag-column-icon_qs3ag_7165 {
7933
+ ._col-drag-column-icon_taxt5_7168 {
7931
7934
  color: #6a767c;
7932
7935
  }
7933
7936
 
7934
- ._tabular-nums_qs3ag_7169 {
7937
+ ._tabular-nums_taxt5_7172 {
7935
7938
  font-variant-numeric: tabular-nums;
7936
7939
  }`;
7937
7940
  document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
7938
7941
  var styles_default = {
7939
- "contextPanel": "_contextPanel_qs3ag_7123",
7940
- "contextPanel--hidden": "_contextPanel--hidden_qs3ag_7132",
7941
- "contextPanelWrapper": "_contextPanelWrapper_qs3ag_7140",
7942
- "contextPanelBody": "_contextPanelBody_qs3ag_7145",
7943
- "contextPanel-stickyHeader": "_contextPanel-stickyHeader_qs3ag_7149",
7944
- "filters-list": "_filters-list_qs3ag_7156",
7945
- "col-drag-column-icon": "_col-drag-column-icon_qs3ag_7165",
7946
- "tabular-nums": "_tabular-nums_qs3ag_7169",
7947
- "ag-shake-left-to-right": "_ag-shake-left-to-right_qs3ag_366",
7948
- "spin": "_spin_qs3ag_1"
7942
+ "contextPanel": "_contextPanel_taxt5_7126",
7943
+ "contextPanel--hidden": "_contextPanel--hidden_taxt5_7135",
7944
+ "contextPanelWrapper": "_contextPanelWrapper_taxt5_7143",
7945
+ "contextPanelBody": "_contextPanelBody_taxt5_7148",
7946
+ "contextPanel-stickyHeader": "_contextPanel-stickyHeader_taxt5_7152",
7947
+ "filters-list": "_filters-list_taxt5_7159",
7948
+ "col-drag-column-icon": "_col-drag-column-icon_taxt5_7168",
7949
+ "tabular-nums": "_tabular-nums_taxt5_7172",
7950
+ "ag-shake-left-to-right": "_ag-shake-left-to-right_taxt5_366",
7951
+ "spin": "_spin_taxt5_1"
7949
7952
  };
7950
7953
 
7951
7954
  // src/utils/getCellValueTypographyProps.ts
@@ -8133,19 +8136,19 @@ var CompanyCellRenderer = withDataTableRenderer(Renderer2, "select");
8133
8136
 
8134
8137
  // src/utils/isEmptyValue.ts
8135
8138
  var isEmptyValue = (value) => {
8136
- if (typeof value === "boolean") {
8139
+ if (typeof value === "boolean" || typeof value === "number") {
8137
8140
  return false;
8138
8141
  }
8139
- if (Array.isArray(value)) {
8140
- return !value.length;
8142
+ if (!value) {
8143
+ return true;
8141
8144
  }
8142
- if (value === 0) {
8143
- return false;
8145
+ if (Array.isArray(value)) {
8146
+ return value.length === 0;
8144
8147
  }
8145
- if (value && Object.keys(value).length === 0 && Object.getPrototypeOf(value) === Object.prototype) {
8146
- return !!value;
8148
+ if (Object.getPrototypeOf(value) === Object.prototype) {
8149
+ return Object.keys(value).length === 0;
8147
8150
  }
8148
- return !value;
8151
+ return false;
8149
8152
  };
8150
8153
 
8151
8154
  // src/CellRenderers/CurrencyCell.tsx
@@ -56631,7 +56634,7 @@ var GenericHeaderRenderer = (props) => {
56631
56634
  trigger: isOverflowing ? "hover" : "none",
56632
56635
  overlay: /* @__PURE__ */ React83.createElement(Tooltip.Content, null, /* @__PURE__ */ React83.createElement("span", null, props.displayName))
56633
56636
  },
56634
- /* @__PURE__ */ React83.createElement("div", null, /* @__PURE__ */ React83.createElement("span", { ref, className: "data-table-header-display-name" }, props.displayName))
56637
+ /* @__PURE__ */ React83.createElement("div", { className: "data-table-header-display-name-container" }, /* @__PURE__ */ React83.createElement("span", { ref, className: "data-table-header-display-name" }, props.displayName))
56635
56638
  ), HeaderNode && /* @__PURE__ */ React83.createElement(
56636
56639
  Flex,
56637
56640
  {
@@ -77824,6 +77827,7 @@ function useContextPanel() {
77824
77827
  }
77825
77828
  var ConfigPanelButton = () => {
77826
77829
  const { contextPanel, totalRowCount } = useInternalTableContext();
77830
+ const I18n = useI18nContext();
77827
77831
  return /* @__PURE__ */ React83.createElement(
77828
77832
  EmptyResultsControlTooltip,
77829
77833
  {
@@ -77841,28 +77845,29 @@ var ConfigPanelButton = () => {
77841
77845
  contextPanel.show("configuration");
77842
77846
  }
77843
77847
  },
77848
+ icon: /* @__PURE__ */ React83.createElement(
77849
+ "svg",
77850
+ {
77851
+ style: { marginTop: "6px" },
77852
+ focusable: false,
77853
+ width: "15",
77854
+ height: "15",
77855
+ viewBox: "0 0 20 20",
77856
+ fill: "none",
77857
+ xmlns: "http://www.w3.org/2000/svg"
77858
+ },
77859
+ /* @__PURE__ */ React83.createElement(
77860
+ "path",
77861
+ {
77862
+ d: "M0 11.5V13.5H4.5V11.5H0ZM0 1.5V3.5H7.5V1.5H0ZM8.5 15V13.5H15V11.5H8.5V10H6.66667V15H8.5ZM3.5 5V6.5H0V8.5H3.5V10H5.5V5H3.5ZM15 8.5V6.5H7.5V8.5H15ZM9.5 5H11.6667V3.5H15V1.5H11.6667V0H9.5V5Z",
77863
+ fill: "currentColor"
77864
+ }
77865
+ )
77866
+ ),
77844
77867
  selected: contextPanel.content === "configuration",
77845
77868
  "data-qa": "table-config-button"
77846
77869
  },
77847
- /* @__PURE__ */ React83.createElement(
77848
- "svg",
77849
- {
77850
- style: { marginTop: "6px" },
77851
- focusable: false,
77852
- width: "15",
77853
- height: "15",
77854
- viewBox: "0 0 15 15",
77855
- fill: "none",
77856
- xmlns: "http://www.w3.org/2000/svg"
77857
- },
77858
- /* @__PURE__ */ React83.createElement(
77859
- "path",
77860
- {
77861
- d: "M0 11.5V13.5H4.5V11.5H0ZM0 1.5V3.5H7.5V1.5H0ZM8.5 15V13.5H15V11.5H8.5V10H6.66667V15H8.5ZM3.5 5V6.5H0V8.5H3.5V10H5.5V5H3.5ZM15 8.5V6.5H7.5V8.5H15ZM9.5 5H11.6667V3.5H15V1.5H11.6667V0H9.5V5Z",
77862
- fill: "currentColor"
77863
- }
77864
- )
77865
- )
77870
+ I18n.t("dataTable.tableSettings.configure")
77866
77871
  )
77867
77872
  );
77868
77873
  };
@@ -78697,7 +78702,8 @@ var de_DE_default = {
78697
78702
  tableSettings: "Tabelleneinstellungen",
78698
78703
  groupBy: "Gruppieren nach:",
78699
78704
  reset: "Zur\xFCcksetzen",
78700
- selectColumnGroup: "W\xE4hlen Sie eine Spalte zum Gruppieren."
78705
+ selectColumnGroup: "W\xE4hlen Sie eine Spalte zum Gruppieren.",
78706
+ configure: "Konfigurieren"
78701
78707
  },
78702
78708
  rowGroupToggle: {
78703
78709
  expandTierOne: "\xD6ffnen Sie die ersten Gruppen in der Tabelle.",
@@ -78841,7 +78847,8 @@ var en_AU_default = {
78841
78847
  tableSettings: "Table Settings",
78842
78848
  groupBy: "Group by:",
78843
78849
  reset: "Reset",
78844
- selectColumnGroup: "Select a column to group"
78850
+ selectColumnGroup: "Select a column to group",
78851
+ configure: "Configure"
78845
78852
  },
78846
78853
  rowGroupToggle: {
78847
78854
  expandTierOne: "Open first groups in the table.",
@@ -78985,7 +78992,8 @@ var en_CA_default = {
78985
78992
  tableSettings: "Table Settings",
78986
78993
  groupBy: "Group by:",
78987
78994
  reset: "Reset",
78988
- selectColumnGroup: "Select a column to group"
78995
+ selectColumnGroup: "Select a column to group",
78996
+ configure: "Configure"
78989
78997
  },
78990
78998
  rowGroupToggle: {
78991
78999
  expandTierOne: "Open first groups in the table.",
@@ -79129,7 +79137,8 @@ var en_GB_default = {
79129
79137
  tableSettings: "Table Settings",
79130
79138
  groupBy: "Group by:",
79131
79139
  reset: "Reset",
79132
- selectColumnGroup: "Select a column to group"
79140
+ selectColumnGroup: "Select a column to group",
79141
+ configure: "Configure"
79133
79142
  },
79134
79143
  rowGroupToggle: {
79135
79144
  expandTierOne: "Open first groups in the table.",
@@ -79273,7 +79282,8 @@ var en_default = {
79273
79282
  tableSettings: "Table Settings",
79274
79283
  groupBy: "Group by:",
79275
79284
  reset: "Reset",
79276
- selectColumnGroup: "Select a column to group"
79285
+ selectColumnGroup: "Select a column to group",
79286
+ configure: "Configure"
79277
79287
  },
79278
79288
  rowGroupToggle: {
79279
79289
  expandTierOne: "Open first groups in the table.",
@@ -79417,7 +79427,8 @@ var es_ES_default = {
79417
79427
  tableSettings: "Configuraci\xF3n de la tabla",
79418
79428
  groupBy: "Agrupar por:",
79419
79429
  reset: "Restablecer",
79420
- selectColumnGroup: "Seleccione una columna para agrupar"
79430
+ selectColumnGroup: "Seleccione una columna para agrupar",
79431
+ configure: "Configurar"
79421
79432
  },
79422
79433
  rowGroupToggle: {
79423
79434
  expandTierOne: "Abrir los primeros grupos de la tabla.",
@@ -79561,7 +79572,8 @@ var es_default = {
79561
79572
  tableSettings: "Configuraci\xF3n de la tabla",
79562
79573
  groupBy: "Agrupar por:",
79563
79574
  reset: "Restablecer",
79564
- selectColumnGroup: "Selecciona una columna para agrupar"
79575
+ selectColumnGroup: "Selecciona una columna para agrupar",
79576
+ configure: "Configurar"
79565
79577
  },
79566
79578
  rowGroupToggle: {
79567
79579
  expandTierOne: "Abrir los primeros grupos de la tabla.",
@@ -79705,7 +79717,8 @@ var fr_CA_default = {
79705
79717
  tableSettings: "Param\xE8tres du tableau",
79706
79718
  groupBy: "Regrouper par :",
79707
79719
  reset: "R\xE9initialiser",
79708
- selectColumnGroup: "S\xE9lectionnez une colonne \xE0 grouper"
79720
+ selectColumnGroup: "S\xE9lectionnez une colonne \xE0 grouper",
79721
+ configure: "Configurer"
79709
79722
  },
79710
79723
  rowGroupToggle: {
79711
79724
  expandTierOne: "Ouvrez les premiers groupes du tableau.",
@@ -79849,7 +79862,8 @@ var fr_FR_default = {
79849
79862
  tableSettings: "Param\xE8tres du tableau",
79850
79863
  groupBy: "Regrouper par\xA0:",
79851
79864
  reset: "R\xE9initialiser",
79852
- selectColumnGroup: "S\xE9lectionner une colonne \xE0 regrouper"
79865
+ selectColumnGroup: "S\xE9lectionner une colonne \xE0 regrouper",
79866
+ configure: "Configurer"
79853
79867
  },
79854
79868
  rowGroupToggle: {
79855
79869
  expandTierOne: "Ouvrez les premiers groupes du tableau.",
@@ -79993,7 +80007,8 @@ var is_IS_default = {
79993
80007
  tableSettings: "Tafla stillingar",
79994
80008
  groupBy: "H\xF3pur eftir:",
79995
80009
  reset: "Endurstilla",
79996
- selectColumnGroup: "Veldu d\xE1lk til a\xF0 flokka"
80010
+ selectColumnGroup: "Veldu d\xE1lk til a\xF0 flokka",
80011
+ configure: "Stilla"
79997
80012
  },
79998
80013
  rowGroupToggle: {
79999
80014
  expandTierOne: "Opna\xF0u fyrstu h\xF3pa \xED t\xF6flunni.",
@@ -80137,7 +80152,8 @@ var ja_JP_default = {
80137
80152
  tableSettings: "\u8868\u306E\u8A2D\u5B9A",
80138
80153
  groupBy: "\u30B0\u30EB\u30FC\u30D7\u5316:",
80139
80154
  reset: "\u30EA\u30BB\u30C3\u30C8",
80140
- selectColumnGroup: "\u30B0\u30EB\u30FC\u30D7\u5316\u3059\u308B\u5217\u3092\u9078\u629E"
80155
+ selectColumnGroup: "\u30B0\u30EB\u30FC\u30D7\u5316\u3059\u308B\u5217\u3092\u9078\u629E",
80156
+ configure: "\u69CB\u6210"
80141
80157
  },
80142
80158
  rowGroupToggle: {
80143
80159
  expandTierOne: "\u8868\u306E\u6700\u521D\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u958B\u304D\u307E\u3059\u3002",
@@ -80281,7 +80297,8 @@ var pt_BR_default = {
80281
80297
  tableSettings: "Configura\xE7\xF5es da Tabela",
80282
80298
  groupBy: "Agrupar por:",
80283
80299
  reset: "Redefinir",
80284
- selectColumnGroup: "Selecionar uma coluna para agrupar"
80300
+ selectColumnGroup: "Selecionar uma coluna para agrupar",
80301
+ configure: "Configurar"
80285
80302
  },
80286
80303
  rowGroupToggle: {
80287
80304
  expandTierOne: "Abra os primeiros grupos na tabela.",
@@ -80425,7 +80442,8 @@ var th_TH_default = {
80425
80442
  tableSettings: "\u0E01\u0E32\u0E23\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E15\u0E32\u0E23\u0E32\u0E07",
80426
80443
  groupBy: "\u0E08\u0E31\u0E14\u0E01\u0E25\u0E38\u0E48\u0E21\u0E15\u0E32\u0E21:",
80427
80444
  reset: "\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15",
80428
- selectColumnGroup: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C\u0E17\u0E35\u0E48\u0E08\u0E30\u0E08\u0E31\u0E14\u0E01\u0E25\u0E38\u0E48\u0E21"
80445
+ selectColumnGroup: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C\u0E17\u0E35\u0E48\u0E08\u0E30\u0E08\u0E31\u0E14\u0E01\u0E25\u0E38\u0E48\u0E21",
80446
+ configure: "\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E04\u0E48\u0E32"
80429
80447
  },
80430
80448
  rowGroupToggle: {
80431
80449
  expandTierOne: "\u0E40\u0E1B\u0E34\u0E14\u0E01\u0E25\u0E38\u0E48\u0E21\u0E41\u0E23\u0E01\u0E43\u0E19\u0E15\u0E32\u0E23\u0E32\u0E07",
@@ -80569,7 +80587,8 @@ var zh_SG_default = {
80569
80587
  tableSettings: "\u8868\u683C\u8BBE\u7F6E",
80570
80588
  groupBy: "\u5206\u7EC4\u4F9D\u636E\uFF1A",
80571
80589
  reset: "\u91CD\u7F6E",
80572
- selectColumnGroup: "\u9009\u62E9\u8981\u5206\u7C7B\u7684\u5217"
80590
+ selectColumnGroup: "\u9009\u62E9\u8981\u5206\u7C7B\u7684\u5217",
80591
+ configure: "\u914D\u7F6E"
80573
80592
  },
80574
80593
  rowGroupToggle: {
80575
80594
  expandTierOne: "\u6253\u5F00\u8868\u4E2D\u7684\u7B2C\u4E00\u4E2A\u7EC4\u3002",