@procore/data-table 14.46.5 → 14.47.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 +13 -0
- package/dist/legacy/index.cjs +77 -29
- package/dist/legacy/index.d.cts +5 -3
- package/dist/legacy/index.d.ts +5 -3
- package/dist/legacy/index.js +79 -31
- package/dist/modern/index.cjs +77 -29
- package/dist/modern/index.d.cts +5 -3
- package/dist/modern/index.d.ts +5 -3
- package/dist/modern/index.js +79 -31
- package/package.json +3 -3
package/dist/modern/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React80, { useEffect, useState, forwardRef, useContext, useRef, useImperativeHandle, useLayoutEffect, useCallback, useMemo, memo, Component as Component$1, createElement } from 'react';
|
|
2
2
|
import { uniqBy, prop, startsWith, mergeDeepRight, intersection, equals, omit, mergeDeepLeft, isNil, isEmpty, groupBy } from 'ramda';
|
|
3
|
-
import { useI18nContext, Select, Input, UNSAFE_useOverlayTriggerContext, Card, Flex, Box, SegmentedController, Calendar, useDateTime, OverlayTrigger, isEventSource, DateInput, UNSAFE_isValidYearRange, DateSelect, PillSelect, TextArea, UNSAFE_useMenuImperativeControlNavigation, UNSAFE_Menu, UNSAFE_menuItemsWrapperAttribute, Spinner as Spinner$1, FlexList, Typography, Tooltip, Button, Required, MultiSelect, colors, Form, spacing, Switch, Panel, SelectButton, StyledSelectButton, typographyWeights, StyledSelectButtonLabel, StyledButton, StyledSelectArrow, Popover, UNSAFE_StyledSuperSelectTrigger, UNSAFE_StyledSuperSelectLabel, UNSAFE_StyledSuperSelectArrow, UNSAFE_StyledFilterTokenLabel, DateTimeProvider, UNSAFE_mergeRefs, useField, Label
|
|
3
|
+
import { useI18nContext, Select, Input, UNSAFE_useOverlayTriggerContext, Card, Flex, Box, SegmentedController, Calendar, useDateTime, OverlayTrigger, isEventSource, DateInput, UNSAFE_isValidYearRange, DateSelect, PillSelect, TextArea, UNSAFE_useMenuImperativeControlNavigation, UNSAFE_Menu, UNSAFE_menuItemsWrapperAttribute, Spinner as Spinner$1, FlexList, Typography, Tooltip, Button, Required, MultiSelect, colors, Form, spacing, Switch, Panel, SelectButton, StyledSelectButton, typographyWeights, StyledSelectButtonLabel, StyledButton, StyledSelectArrow, Popover, UNSAFE_StyledSuperSelectTrigger, UNSAFE_StyledSuperSelectLabel, UNSAFE_StyledSuperSelectArrow, UNSAFE_StyledFilterTokenLabel, DateTimeProvider, UNSAFE_mergeRefs, useField, Label, ContactItem as ContactItem$1, Checkbox, RadioButton, Link, AvatarStack, Pill, UNSAFE_SuperSelect, ToggleButton, Avatar, UNSAFE_useSuperSelectContext, UNSAFE_FilterToken, Typeahead, useI18n, I18nContext, Pagination as Pagination$1, useVisibility, DropdownFlyout, EmptyState as EmptyState$1, StyledDropdownFlyoutLabel, StyledDropdownFlyoutExpandIcon } from '@procore/core-react';
|
|
4
4
|
import classnames from 'classnames/bind';
|
|
5
5
|
import debounce5 from 'lodash.debounce';
|
|
6
6
|
import { Error as Error$1, Grip, Building, ExternalLink, Clear, Calendar as Calendar$1, Pencil, CaretsIn, CaretsOut, ArrowDown, ArrowUp, CaretsInVertical, CaretsOutVerticalWithLine, CaretsOutVertical, CaretDown, CaretRight } from '@procore/core-icons';
|
|
@@ -54171,8 +54171,23 @@ function useFilterOptions() {
|
|
|
54171
54171
|
}
|
|
54172
54172
|
var NumberFilterRenderer = React80.memo(
|
|
54173
54173
|
function(props) {
|
|
54174
|
-
const
|
|
54174
|
+
const fieldLabel = props["aria-label"];
|
|
54175
54175
|
const I18n = useI18nContext();
|
|
54176
|
+
const minValueAriaLabel = I18n.t("labels.min_value_aria_label", {
|
|
54177
|
+
defaultValue: "%{field} minimum value",
|
|
54178
|
+
field: fieldLabel ?? "",
|
|
54179
|
+
scope
|
|
54180
|
+
}).trim();
|
|
54181
|
+
const maxValueAriaLabel = I18n.t("labels.max_value_aria_label", {
|
|
54182
|
+
defaultValue: "%{field} maximum value",
|
|
54183
|
+
field: fieldLabel ?? "",
|
|
54184
|
+
scope
|
|
54185
|
+
}).trim();
|
|
54186
|
+
const valueAriaLabel = I18n.t("labels.value_aria_label", {
|
|
54187
|
+
defaultValue: "%{field} value",
|
|
54188
|
+
field: fieldLabel ?? "",
|
|
54189
|
+
scope
|
|
54190
|
+
}).trim();
|
|
54176
54191
|
const defaultFilterOptions = useFilterOptions();
|
|
54177
54192
|
const lowerLimitInputRef = React80.useRef(null);
|
|
54178
54193
|
const [localValue, setLocalValue] = React80.useState(
|
|
@@ -54257,7 +54272,7 @@ var NumberFilterRenderer = React80.memo(
|
|
|
54257
54272
|
{
|
|
54258
54273
|
block: true,
|
|
54259
54274
|
label: localLabel,
|
|
54260
|
-
"aria-
|
|
54275
|
+
"aria-label": fieldLabel,
|
|
54261
54276
|
onClear,
|
|
54262
54277
|
onSelect,
|
|
54263
54278
|
placeholder: I18n.t("labels.placeholder", {
|
|
@@ -54289,6 +54304,7 @@ var NumberFilterRenderer = React80.memo(
|
|
|
54289
54304
|
{
|
|
54290
54305
|
ref: lowerLimitInputRef,
|
|
54291
54306
|
type: "number",
|
|
54307
|
+
"aria-label": hasUpperLimitValue ? minValueAriaLabel : valueAriaLabel,
|
|
54292
54308
|
placeholder: I18n.t("labels.input_placeholder", {
|
|
54293
54309
|
defaultValue: "Enter Value",
|
|
54294
54310
|
scope
|
|
@@ -54305,6 +54321,7 @@ var NumberFilterRenderer = React80.memo(
|
|
|
54305
54321
|
Input,
|
|
54306
54322
|
{
|
|
54307
54323
|
type: "number",
|
|
54324
|
+
"aria-label": maxValueAriaLabel,
|
|
54308
54325
|
value: localValue?.filterTo,
|
|
54309
54326
|
onChange: onUpdateUpperLimit
|
|
54310
54327
|
}
|
|
@@ -54489,6 +54506,7 @@ var ServerSideFilter = ({
|
|
|
54489
54506
|
);
|
|
54490
54507
|
return null;
|
|
54491
54508
|
}
|
|
54509
|
+
const filterLabel = typeof filterHeading === "string" ? filterHeading : columnDefinition.headerName;
|
|
54492
54510
|
return /* @__PURE__ */ React80.createElement(
|
|
54493
54511
|
Box,
|
|
54494
54512
|
{
|
|
@@ -54498,7 +54516,7 @@ var ServerSideFilter = ({
|
|
|
54498
54516
|
style: { width: "100%" }
|
|
54499
54517
|
},
|
|
54500
54518
|
filterHeading ? /* @__PURE__ */ React80.createElement(
|
|
54501
|
-
|
|
54519
|
+
Label,
|
|
54502
54520
|
{
|
|
54503
54521
|
"data-qa": `data-table-filter-heading-${fieldName}`,
|
|
54504
54522
|
id: `data-table-filter-heading-${fieldName}`
|
|
@@ -54508,6 +54526,7 @@ var ServerSideFilter = ({
|
|
|
54508
54526
|
/* @__PURE__ */ React80.createElement(
|
|
54509
54527
|
Component4,
|
|
54510
54528
|
{
|
|
54529
|
+
"aria-label": filterLabel,
|
|
54511
54530
|
columnDefinition,
|
|
54512
54531
|
"data-qa": `data-table-filter-input-${fieldName}`,
|
|
54513
54532
|
getOptions,
|
|
@@ -54524,9 +54543,25 @@ var ServerSideFilter = ({
|
|
|
54524
54543
|
var DEBOUNCE_TIME = 300;
|
|
54525
54544
|
function ServerSideNumberFilterRenderer({
|
|
54526
54545
|
value = [],
|
|
54527
|
-
onChange
|
|
54546
|
+
onChange,
|
|
54547
|
+
"aria-label": fieldLabel
|
|
54528
54548
|
}) {
|
|
54529
54549
|
const I18n = useI18nContext();
|
|
54550
|
+
const minValueAriaLabel = I18n.t("labels.min_value_aria_label", {
|
|
54551
|
+
defaultValue: "%{field} minimum value",
|
|
54552
|
+
field: fieldLabel ?? "",
|
|
54553
|
+
scope: "dataTable.filters.numberFilter"
|
|
54554
|
+
}).trim();
|
|
54555
|
+
const maxValueAriaLabel = I18n.t("labels.max_value_aria_label", {
|
|
54556
|
+
defaultValue: "%{field} maximum value",
|
|
54557
|
+
field: fieldLabel ?? "",
|
|
54558
|
+
scope: "dataTable.filters.numberFilter"
|
|
54559
|
+
}).trim();
|
|
54560
|
+
const valueAriaLabel = I18n.t("labels.value_aria_label", {
|
|
54561
|
+
defaultValue: "%{field} value",
|
|
54562
|
+
field: fieldLabel ?? "",
|
|
54563
|
+
scope: "dataTable.filters.numberFilter"
|
|
54564
|
+
}).trim();
|
|
54530
54565
|
const [localFilter, setLocalFilter] = useState(
|
|
54531
54566
|
() => {
|
|
54532
54567
|
return {};
|
|
@@ -54713,6 +54748,7 @@ function ServerSideNumberFilterRenderer({
|
|
|
54713
54748
|
Input,
|
|
54714
54749
|
{
|
|
54715
54750
|
type: "number",
|
|
54751
|
+
"aria-label": valueAriaLabel,
|
|
54716
54752
|
placeholder: I18n.t("labels.input_placeholder", {
|
|
54717
54753
|
defaultValue: "Enter Value",
|
|
54718
54754
|
scope: "dataTable.filters.numberFilter"
|
|
@@ -54724,6 +54760,7 @@ function ServerSideNumberFilterRenderer({
|
|
|
54724
54760
|
Input,
|
|
54725
54761
|
{
|
|
54726
54762
|
type: "number",
|
|
54763
|
+
"aria-label": minValueAriaLabel,
|
|
54727
54764
|
placeholder: I18n.t("labels.input_placeholder", {
|
|
54728
54765
|
defaultValue: "Enter Value",
|
|
54729
54766
|
scope: "dataTable.filters.numberFilter"
|
|
@@ -54738,6 +54775,7 @@ function ServerSideNumberFilterRenderer({
|
|
|
54738
54775
|
Input,
|
|
54739
54776
|
{
|
|
54740
54777
|
type: "number",
|
|
54778
|
+
"aria-label": maxValueAriaLabel,
|
|
54741
54779
|
placeholder: I18n.t("labels.input_placeholder", {
|
|
54742
54780
|
defaultValue: "Enter Value",
|
|
54743
54781
|
scope: "dataTable.filters.numberFilter"
|
|
@@ -54752,7 +54790,8 @@ function ServerSideNumberFilterRenderer({
|
|
|
54752
54790
|
var DEBOUNCE_TIME2 = 300;
|
|
54753
54791
|
function ServerSideMultiNumberFilterRenderer({
|
|
54754
54792
|
value = [],
|
|
54755
|
-
onChange
|
|
54793
|
+
onChange,
|
|
54794
|
+
"aria-label": fieldLabel
|
|
54756
54795
|
}) {
|
|
54757
54796
|
const I18n = useI18nContext();
|
|
54758
54797
|
const [firstFilter, setFirstFilter] = useState(
|
|
@@ -54829,6 +54868,7 @@ function ServerSideMultiNumberFilterRenderer({
|
|
|
54829
54868
|
return /* @__PURE__ */ React80.createElement(Box, { style: { display: "flex", flexDirection: "column", gap: "8px" } }, /* @__PURE__ */ React80.createElement(
|
|
54830
54869
|
ServerSideNumberFilterRenderer,
|
|
54831
54870
|
{
|
|
54871
|
+
"aria-label": fieldLabel,
|
|
54832
54872
|
value: firstFilter.type ? [firstFilter] : [],
|
|
54833
54873
|
onChange: handleFirstFilterChange
|
|
54834
54874
|
}
|
|
@@ -54865,6 +54905,7 @@ function ServerSideMultiNumberFilterRenderer({
|
|
|
54865
54905
|
), /* @__PURE__ */ React80.createElement(
|
|
54866
54906
|
ServerSideNumberFilterRenderer,
|
|
54867
54907
|
{
|
|
54908
|
+
"aria-label": fieldLabel,
|
|
54868
54909
|
value: secondFilter.type ? [secondFilter] : [],
|
|
54869
54910
|
onChange: handleSecondFilterChange
|
|
54870
54911
|
}
|
|
@@ -89253,7 +89294,7 @@ var __decorate230 = function(decorators, target, key, desc) {
|
|
|
89253
89294
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
|
89254
89295
|
return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
89255
89296
|
};
|
|
89256
|
-
var
|
|
89297
|
+
var Label2 = class {
|
|
89257
89298
|
constructor() {
|
|
89258
89299
|
this.enabled = true;
|
|
89259
89300
|
this.fontSize = 12;
|
|
@@ -89268,22 +89309,22 @@ var Label = class {
|
|
|
89268
89309
|
};
|
|
89269
89310
|
__decorate230([
|
|
89270
89311
|
Validate(BOOLEAN)
|
|
89271
|
-
],
|
|
89312
|
+
], Label2.prototype, "enabled", void 0);
|
|
89272
89313
|
__decorate230([
|
|
89273
89314
|
Validate(NUMBER(0))
|
|
89274
|
-
],
|
|
89315
|
+
], Label2.prototype, "fontSize", void 0);
|
|
89275
89316
|
__decorate230([
|
|
89276
89317
|
Validate(STRING)
|
|
89277
|
-
],
|
|
89318
|
+
], Label2.prototype, "fontFamily", void 0);
|
|
89278
89319
|
__decorate230([
|
|
89279
89320
|
Validate(OPT_FONT_STYLE)
|
|
89280
|
-
],
|
|
89321
|
+
], Label2.prototype, "fontStyle", void 0);
|
|
89281
89322
|
__decorate230([
|
|
89282
89323
|
Validate(OPT_FONT_WEIGHT)
|
|
89283
|
-
],
|
|
89324
|
+
], Label2.prototype, "fontWeight", void 0);
|
|
89284
89325
|
__decorate230([
|
|
89285
89326
|
Validate(COLOR_STRING)
|
|
89286
|
-
],
|
|
89327
|
+
], Label2.prototype, "color", void 0);
|
|
89287
89328
|
function calculateLabelRotation(opts) {
|
|
89288
89329
|
const { parallelFlipRotation = 0, regularFlipRotation = 0 } = opts;
|
|
89289
89330
|
const configuredRotation = opts.rotation ? normalizeAngle360(toRadians(opts.rotation)) : 0;
|
|
@@ -91024,7 +91065,7 @@ var PieNodeTag;
|
|
|
91024
91065
|
PieNodeTag2[PieNodeTag2["Callout"] = 1] = "Callout";
|
|
91025
91066
|
PieNodeTag2[PieNodeTag2["Label"] = 2] = "Label";
|
|
91026
91067
|
})(PieNodeTag || (PieNodeTag = {}));
|
|
91027
|
-
var PieSeriesCalloutLabel = class extends
|
|
91068
|
+
var PieSeriesCalloutLabel = class extends Label2 {
|
|
91028
91069
|
constructor() {
|
|
91029
91070
|
super(...arguments);
|
|
91030
91071
|
this.offset = 3;
|
|
@@ -91053,7 +91094,7 @@ __decorate238([
|
|
|
91053
91094
|
__decorate238([
|
|
91054
91095
|
Validate(BOOLEAN)
|
|
91055
91096
|
], PieSeriesCalloutLabel.prototype, "avoidCollisions", void 0);
|
|
91056
|
-
var PieSeriesSectorLabel = class extends
|
|
91097
|
+
var PieSeriesSectorLabel = class extends Label2 {
|
|
91057
91098
|
constructor() {
|
|
91058
91099
|
super(...arguments);
|
|
91059
91100
|
this.positionOffset = 0;
|
|
@@ -91104,7 +91145,7 @@ var PieTitle = class extends Caption {
|
|
|
91104
91145
|
__decorate238([
|
|
91105
91146
|
Validate(BOOLEAN)
|
|
91106
91147
|
], PieTitle.prototype, "showInLegend", void 0);
|
|
91107
|
-
var DoughnutInnerLabel = class extends
|
|
91148
|
+
var DoughnutInnerLabel = class extends Label2 {
|
|
91108
91149
|
constructor() {
|
|
91109
91150
|
super(...arguments);
|
|
91110
91151
|
this.text = "";
|
|
@@ -95211,7 +95252,7 @@ var __awaiter11 = function(thisArg, _arguments, P, generator) {
|
|
|
95211
95252
|
step((generator = generator.apply(thisArg, [])).next());
|
|
95212
95253
|
});
|
|
95213
95254
|
};
|
|
95214
|
-
var AreaSeriesLabel = class extends
|
|
95255
|
+
var AreaSeriesLabel = class extends Label2 {
|
|
95215
95256
|
constructor() {
|
|
95216
95257
|
super(...arguments);
|
|
95217
95258
|
this.formatter = void 0;
|
|
@@ -96253,7 +96294,7 @@ var BarSeriesNodeTag;
|
|
|
96253
96294
|
BarSeriesNodeTag2[BarSeriesNodeTag2["Bar"] = 0] = "Bar";
|
|
96254
96295
|
BarSeriesNodeTag2[BarSeriesNodeTag2["Label"] = 1] = "Label";
|
|
96255
96296
|
})(BarSeriesNodeTag || (BarSeriesNodeTag = {}));
|
|
96256
|
-
var BarSeriesLabel = class extends
|
|
96297
|
+
var BarSeriesLabel = class extends Label2 {
|
|
96257
96298
|
constructor() {
|
|
96258
96299
|
super(...arguments);
|
|
96259
96300
|
this.formatter = void 0;
|
|
@@ -96998,7 +97039,7 @@ var HistogramSeriesNodeTag;
|
|
|
96998
97039
|
HistogramSeriesNodeTag2[HistogramSeriesNodeTag2["Bin"] = 0] = "Bin";
|
|
96999
97040
|
HistogramSeriesNodeTag2[HistogramSeriesNodeTag2["Label"] = 1] = "Label";
|
|
97000
97041
|
})(HistogramSeriesNodeTag || (HistogramSeriesNodeTag = {}));
|
|
97001
|
-
var HistogramSeriesLabel = class extends
|
|
97042
|
+
var HistogramSeriesLabel = class extends Label2 {
|
|
97002
97043
|
constructor() {
|
|
97003
97044
|
super(...arguments);
|
|
97004
97045
|
this.formatter = void 0;
|
|
@@ -97609,7 +97650,7 @@ var __awaiter14 = function(thisArg, _arguments, P, generator) {
|
|
|
97609
97650
|
step((generator = generator.apply(thisArg, [])).next());
|
|
97610
97651
|
});
|
|
97611
97652
|
};
|
|
97612
|
-
var LineSeriesLabel = class extends
|
|
97653
|
+
var LineSeriesLabel = class extends Label2 {
|
|
97613
97654
|
constructor() {
|
|
97614
97655
|
super(...arguments);
|
|
97615
97656
|
this.formatter = void 0;
|
|
@@ -98270,7 +98311,7 @@ var __awaiter15 = function(thisArg, _arguments, P, generator) {
|
|
|
98270
98311
|
step((generator = generator.apply(thisArg, [])).next());
|
|
98271
98312
|
});
|
|
98272
98313
|
};
|
|
98273
|
-
var ScatterSeriesLabel = class extends
|
|
98314
|
+
var ScatterSeriesLabel = class extends Label2 {
|
|
98274
98315
|
constructor() {
|
|
98275
98316
|
super(...arguments);
|
|
98276
98317
|
this.formatter = void 0;
|
|
@@ -98846,7 +98887,7 @@ var TreemapSeriesNodeDoubleClickEvent = class extends TreemapSeriesNodeBaseClick
|
|
|
98846
98887
|
this.type = "nodeDoubleClick";
|
|
98847
98888
|
}
|
|
98848
98889
|
};
|
|
98849
|
-
var TreemapSeriesLabel = class extends
|
|
98890
|
+
var TreemapSeriesLabel = class extends Label2 {
|
|
98850
98891
|
constructor() {
|
|
98851
98892
|
super(...arguments);
|
|
98852
98893
|
this.padding = 10;
|
|
@@ -98855,7 +98896,7 @@ var TreemapSeriesLabel = class extends Label {
|
|
|
98855
98896
|
__decorate255([
|
|
98856
98897
|
Validate(NUMBER(0))
|
|
98857
98898
|
], TreemapSeriesLabel.prototype, "padding", void 0);
|
|
98858
|
-
var TreemapSeriesTileLabel = class extends
|
|
98899
|
+
var TreemapSeriesTileLabel = class extends Label2 {
|
|
98859
98900
|
constructor() {
|
|
98860
98901
|
super(...arguments);
|
|
98861
98902
|
this.wrapping = "on-space";
|
|
@@ -98867,7 +98908,7 @@ __decorate255([
|
|
|
98867
98908
|
var TreemapValueLabel = class {
|
|
98868
98909
|
constructor() {
|
|
98869
98910
|
this.style = (() => {
|
|
98870
|
-
const label = new
|
|
98911
|
+
const label = new Label2();
|
|
98871
98912
|
label.color = "white";
|
|
98872
98913
|
return label;
|
|
98873
98914
|
})();
|
|
@@ -101398,7 +101439,7 @@ __export(integrated_charts_scene_exports, {
|
|
|
101398
101439
|
Group: () => Group,
|
|
101399
101440
|
HdpiCanvas: () => HdpiCanvas,
|
|
101400
101441
|
Image: () => Image,
|
|
101401
|
-
Label: () =>
|
|
101442
|
+
Label: () => Label2,
|
|
101402
101443
|
Line: () => Line,
|
|
101403
101444
|
LinearScale: () => LinearScale,
|
|
101404
101445
|
Marker: () => Marker,
|
|
@@ -102904,7 +102945,7 @@ var LineSparkline = class extends Sparkline {
|
|
|
102904
102945
|
LineSparkline.className = "LineSparkline";
|
|
102905
102946
|
|
|
102906
102947
|
// ../../node_modules/@ag-grid-enterprise/sparklines/dist/esm/es6/sparkline/label/label.mjs
|
|
102907
|
-
var
|
|
102948
|
+
var Label3 = class {
|
|
102908
102949
|
constructor() {
|
|
102909
102950
|
this.enabled = true;
|
|
102910
102951
|
this.fontSize = 8;
|
|
@@ -102929,7 +102970,7 @@ var BarColumnLabelPlacement2;
|
|
|
102929
102970
|
BarColumnLabelPlacement3["Center"] = "center";
|
|
102930
102971
|
BarColumnLabelPlacement3["OutsideEnd"] = "outsideEnd";
|
|
102931
102972
|
})(BarColumnLabelPlacement2 || (BarColumnLabelPlacement2 = {}));
|
|
102932
|
-
var BarColumnLabel = class extends
|
|
102973
|
+
var BarColumnLabel = class extends Label3 {
|
|
102933
102974
|
constructor() {
|
|
102934
102975
|
super(...arguments);
|
|
102935
102976
|
this.formatter = void 0;
|
|
@@ -105990,7 +106031,10 @@ var en_default = {
|
|
|
105990
106031
|
labels: {
|
|
105991
106032
|
and: "and",
|
|
105992
106033
|
input_placeholder: "Enter Value",
|
|
105993
|
-
|
|
106034
|
+
max_value_aria_label: "%{field} maximum value",
|
|
106035
|
+
min_value_aria_label: "%{field} minimum value",
|
|
106036
|
+
placeholder: "Select an item",
|
|
106037
|
+
value_aria_label: "%{field} value"
|
|
105994
106038
|
},
|
|
105995
106039
|
options: {
|
|
105996
106040
|
any_value: "Any Value",
|
|
@@ -107810,7 +107854,10 @@ var pseudo_default = {
|
|
|
107810
107854
|
labels: {
|
|
107811
107855
|
and: "[\u0227\u019E\u1E13]",
|
|
107812
107856
|
input_placeholder: "[\u1E16\u1E16\u1E16\u019E\u0167\u1E17\u0159 \xB7 \u1E7C\u0227\u0140\u016D\u1E17\u1E17\u1E17]",
|
|
107813
|
-
|
|
107857
|
+
max_value_aria_label: "[[NOTRANSLATE]%{field}[/NOTRANSLATE] \xB7 \xB7 \xB7 \u1E3F\u0227\u1E8B\u012B\u1E3F\u016D\u1E3F \xB7 \u1E7D\u0227\u0140\u016D\u1E17\u1E17\u1E17]",
|
|
107858
|
+
min_value_aria_label: "[[NOTRANSLATE]%{field}[/NOTRANSLATE] \xB7 \xB7 \xB7 \u1E3F\u012B\u019E\u012B\u1E3F\u016D\u1E3F \xB7 \u1E7D\u0227\u0140\u016D\u1E17\u1E17\u1E17]",
|
|
107859
|
+
placeholder: "[\u015E\u015E\u015E\u1E17\u0140\u1E17\u0188\u0167 \xB7 \u0227\u019E \xB7 \u012B\u0167\u1E17\u1E3F\u1E3F\u1E3F]",
|
|
107860
|
+
value_aria_label: "[[NOTRANSLATE]%{field}[/NOTRANSLATE] \xB7 \xB7 \u1E7D\u0227\u0140\u016D\u1E17\u1E17]"
|
|
107814
107861
|
},
|
|
107815
107862
|
options: {
|
|
107816
107863
|
any_value: "[\u0226\u0226\u019E\u1E8F \xB7 \u1E7C\u0227\u0140\u016D\u1E17\u1E17]",
|
|
@@ -111185,8 +111232,9 @@ function ClientSideFilterInner(props) {
|
|
|
111185
111232
|
const { Component: Component4, columnDefinition, onChange, options, value } = props;
|
|
111186
111233
|
const filterHeading = columnDefinition.filterProps?.getFilterHeadingText?.(columnDefinition) ?? columnDefinition.headerName;
|
|
111187
111234
|
const filterOptions = React80.useMemo(() => options ?? [], [options]);
|
|
111235
|
+
const filterLabel = typeof filterHeading === "string" ? filterHeading : columnDefinition.headerName;
|
|
111188
111236
|
return /* @__PURE__ */ React80.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading && /* @__PURE__ */ React80.createElement(
|
|
111189
|
-
Label
|
|
111237
|
+
Label,
|
|
111190
111238
|
{
|
|
111191
111239
|
"data-qa": `data-table-filter-heading-${columnDefinition.field}`,
|
|
111192
111240
|
id: `data-table-filter-heading-${columnDefinition.field}`
|
|
@@ -111196,7 +111244,7 @@ function ClientSideFilterInner(props) {
|
|
|
111196
111244
|
Component4,
|
|
111197
111245
|
{
|
|
111198
111246
|
"data-qa": `data-table-filter-input-${columnDefinition.field}`,
|
|
111199
|
-
"aria-
|
|
111247
|
+
"aria-label": filterLabel,
|
|
111200
111248
|
columnDefinition,
|
|
111201
111249
|
onChange,
|
|
111202
111250
|
options: filterOptions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/data-table",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.47.0",
|
|
4
4
|
"description": "Complex data grid built on top of ag-grid, with DST components and styles.",
|
|
5
5
|
"author": "Procore Technologies",
|
|
6
6
|
"homepage": "https://github.com/procore/core/tree/main/packages/data-table",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"styled-components": ">= 5.1.1 < 7"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@procore/cdn-translations": "0.1
|
|
76
|
+
"@procore/cdn-translations": "^1.0.1",
|
|
77
77
|
"@procore/error-pages": "^0.2.3",
|
|
78
78
|
"@procore/labs-datetime-select": "^0.2.2",
|
|
79
79
|
"@procore/labs-group-by-select": "4.1.0",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@procore/core-css": "10.17.0",
|
|
109
109
|
"@procore/core-icons": "^12.18.0",
|
|
110
110
|
"@procore/core-prettier": "10.2.0",
|
|
111
|
-
"@procore/core-react": "^12.
|
|
111
|
+
"@procore/core-react": "^12.51.0",
|
|
112
112
|
"@procore/eslint-config": "10.0.0",
|
|
113
113
|
"@procore/globalization-toolkit": "3.1.0",
|
|
114
114
|
"@procore/labs-financials-utils": "4.3.1",
|