@procore/data-table 13.3.0 → 13.3.2
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 +12 -0
- package/README.md +1 -1
- package/dist/legacy/index.js +260 -58
- package/dist/legacy/index.mjs +264 -62
- package/dist/modern/index.js +257 -55
- package/dist/modern/index.mjs +261 -59
- package/package.json +2 -2
package/dist/legacy/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React82, { useState, forwardRef, useContext, useRef, useImperativeHandle, useLayoutEffect, useCallback, useMemo, memo, useEffect, Component as Component$1, createElement } from 'react';
|
|
2
2
|
import { startsWith, equals, omit, isNil, mergeDeepLeft, intersection, 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, FlexList, Typography, Tooltip, Button, Required, colors, Form, spacing, Switch, Panel, UNSAFE_StyledFilterTokenLabel, typographyWeights, SelectButton, StyledSelectButton, StyledSelectButtonLabel, StyledButton, StyledSelectArrow, Popover, UNSAFE_StyledSuperSelectTrigger, UNSAFE_StyledSuperSelectLabel, UNSAFE_StyledSuperSelectArrow, DateTimeProvider, useField, Label, UNSAFE_mergeRefs, ContactItem as ContactItem$1, ToggleButton, Pagination, Link, AvatarStack, Pill, Typeahead, UNSAFE_FilterToken, useI18n, I18nContext, UNSAFE_SuperSelect, Avatar, MultiSelect, H3, Checkbox, useVisibility, UNSAFE_useSuperSelectContext, DropdownFlyout, StyledDropdownFlyoutLabel, StyledDropdownFlyoutExpandIcon, EmptyState as EmptyState$1 } from '@procore/core-react';
|
|
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, colors, Form, spacing, Switch, Panel, UNSAFE_StyledFilterTokenLabel, typographyWeights, SelectButton, StyledSelectButton, StyledSelectButtonLabel, StyledButton, StyledSelectArrow, Popover, UNSAFE_StyledSuperSelectTrigger, UNSAFE_StyledSuperSelectLabel, UNSAFE_StyledSuperSelectArrow, DateTimeProvider, useField, Label, UNSAFE_mergeRefs, ContactItem as ContactItem$1, ToggleButton, Pagination, Link, AvatarStack, Pill, Typeahead, UNSAFE_FilterToken, useI18n, I18nContext, UNSAFE_SuperSelect, Avatar, MultiSelect, H3, Checkbox, useVisibility, UNSAFE_useSuperSelectContext, DropdownFlyout, StyledDropdownFlyoutLabel, StyledDropdownFlyoutExpandIcon, EmptyState as EmptyState$1 } from '@procore/core-react';
|
|
4
4
|
import classnames from 'classnames/bind';
|
|
5
5
|
import { Error as Error$1, Grip, Pencil, Building, Calendar as Calendar$1, CaretsInVertical, CaretsOutVertical, CaretsOutVerticalWithLine, CaretsIn, CaretsOut, CaretDown, CaretRight, ArrowDown, ArrowUp } from '@procore/core-icons';
|
|
6
6
|
import classNames from 'classnames';
|
|
@@ -996,6 +996,43 @@ var rowHeightMap = {
|
|
|
996
996
|
[rowSize.md]: "medium",
|
|
997
997
|
[rowSize.lg]: "large"
|
|
998
998
|
};
|
|
999
|
+
var Spinner = ({
|
|
1000
|
+
loading,
|
|
1001
|
+
...rest
|
|
1002
|
+
}) => /* @__PURE__ */ React82.createElement(Box, { "data-qa": loading ? "loading" : "loaded", display: "flex-row", flex: 1 }, /* @__PURE__ */ React82.createElement(Spinner$1, { loading, size: "md", centered: true, ...rest }));
|
|
1003
|
+
function isNestedColumnDefinition(Column2) {
|
|
1004
|
+
return "children" in Column2;
|
|
1005
|
+
}
|
|
1006
|
+
function isNestedColDef(colDef) {
|
|
1007
|
+
if (!colDef.groupId) {
|
|
1008
|
+
return false;
|
|
1009
|
+
}
|
|
1010
|
+
return "groupId" in colDef;
|
|
1011
|
+
}
|
|
1012
|
+
function getLeafColDefs(columnDefinitions) {
|
|
1013
|
+
return columnDefinitions.flatMap((colDef) => {
|
|
1014
|
+
return isNestedColDef(colDef) ? getLeafColDefs(colDef.children) : [colDef];
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
function isFirstColumn(params) {
|
|
1018
|
+
var _a;
|
|
1019
|
+
const displayedColumns = ((_a = params == null ? void 0 : params.columnApi) == null ? void 0 : _a.getAllDisplayedColumns()) || [];
|
|
1020
|
+
return displayedColumns.length ? displayedColumns[0] === params.column : false;
|
|
1021
|
+
}
|
|
1022
|
+
function getCheckboxColumn(columnApi) {
|
|
1023
|
+
var _a, _b;
|
|
1024
|
+
const isGrouping = ((_b = (_a = columnApi == null ? void 0 : columnApi.getRowGroupColumns) == null ? void 0 : _a.call(columnApi)) == null ? void 0 : _b.length) !== 0;
|
|
1025
|
+
if (isGrouping) {
|
|
1026
|
+
return null;
|
|
1027
|
+
}
|
|
1028
|
+
const displayedColumns = (columnApi == null ? void 0 : columnApi.getAllDisplayedColumns()) || [];
|
|
1029
|
+
return displayedColumns.length ? displayedColumns[0] : null;
|
|
1030
|
+
}
|
|
1031
|
+
function removeEventListenerFromGrid(event, listener, gridApi) {
|
|
1032
|
+
if (!gridApi || (gridApi == null ? void 0 : gridApi.destroyCalled))
|
|
1033
|
+
return;
|
|
1034
|
+
gridApi == null ? void 0 : gridApi.removeEventListener(event, listener);
|
|
1035
|
+
}
|
|
999
1036
|
|
|
1000
1037
|
// src/styles.scss
|
|
1001
1038
|
var styles_exports = {};
|
|
@@ -53833,7 +53870,7 @@ var LocationFilterOverlay = React82.forwardRef(
|
|
|
53833
53870
|
getLabel3(item)
|
|
53834
53871
|
);
|
|
53835
53872
|
})),
|
|
53836
|
-
loading && /* @__PURE__ */ React82.createElement(UNSAFE_Menu.Footer, null, /* @__PURE__ */ React82.createElement(Flex, { justifyContent: "center" }, /* @__PURE__ */ React82.createElement(Spinner, { size: "sm" })))
|
|
53873
|
+
loading && /* @__PURE__ */ React82.createElement(UNSAFE_Menu.Footer, null, /* @__PURE__ */ React82.createElement(Flex, { justifyContent: "center" }, /* @__PURE__ */ React82.createElement(Spinner$1, { size: "sm" })))
|
|
53837
53874
|
));
|
|
53838
53875
|
}
|
|
53839
53876
|
);
|
|
@@ -54038,8 +54075,16 @@ function useFilterState({
|
|
|
54038
54075
|
}
|
|
54039
54076
|
return () => {
|
|
54040
54077
|
listenersEnabled.current = false;
|
|
54041
|
-
|
|
54042
|
-
|
|
54078
|
+
removeEventListenerFromGrid(
|
|
54079
|
+
"filterChanged",
|
|
54080
|
+
filterEventFunction,
|
|
54081
|
+
gridApi
|
|
54082
|
+
);
|
|
54083
|
+
removeEventListenerFromGrid(
|
|
54084
|
+
"rowDataUpdated",
|
|
54085
|
+
filterEventFunction,
|
|
54086
|
+
gridApi
|
|
54087
|
+
);
|
|
54043
54088
|
};
|
|
54044
54089
|
}, [gridApi, columnDefinitions]);
|
|
54045
54090
|
return { allAvailableFilters, changeFilterValue, filterableColumns };
|
|
@@ -54533,38 +54578,6 @@ var ServerSideFilter = ({
|
|
|
54533
54578
|
)
|
|
54534
54579
|
);
|
|
54535
54580
|
};
|
|
54536
|
-
var Spinner2 = ({
|
|
54537
|
-
loading,
|
|
54538
|
-
...rest
|
|
54539
|
-
}) => /* @__PURE__ */ React82.createElement(Box, { "data-qa": loading ? "loading" : "loaded", display: "flex-row", flex: 1 }, /* @__PURE__ */ React82.createElement(Spinner, { loading, size: "md", centered: true, ...rest }));
|
|
54540
|
-
function isNestedColumnDefinition(Column2) {
|
|
54541
|
-
return "children" in Column2;
|
|
54542
|
-
}
|
|
54543
|
-
function isNestedColDef(colDef) {
|
|
54544
|
-
if (!colDef.groupId) {
|
|
54545
|
-
return false;
|
|
54546
|
-
}
|
|
54547
|
-
return "groupId" in colDef;
|
|
54548
|
-
}
|
|
54549
|
-
function getLeafColDefs(columnDefinitions) {
|
|
54550
|
-
return columnDefinitions.flatMap((colDef) => {
|
|
54551
|
-
return isNestedColDef(colDef) ? getLeafColDefs(colDef.children) : [colDef];
|
|
54552
|
-
});
|
|
54553
|
-
}
|
|
54554
|
-
function isFirstColumn(params) {
|
|
54555
|
-
var _a;
|
|
54556
|
-
const displayedColumns = ((_a = params == null ? void 0 : params.columnApi) == null ? void 0 : _a.getAllDisplayedColumns()) || [];
|
|
54557
|
-
return displayedColumns.length ? displayedColumns[0] === params.column : false;
|
|
54558
|
-
}
|
|
54559
|
-
function getCheckboxColumn(columnApi) {
|
|
54560
|
-
var _a, _b;
|
|
54561
|
-
const isGrouping = ((_b = (_a = columnApi == null ? void 0 : columnApi.getRowGroupColumns) == null ? void 0 : _a.call(columnApi)) == null ? void 0 : _b.length) !== 0;
|
|
54562
|
-
if (isGrouping) {
|
|
54563
|
-
return null;
|
|
54564
|
-
}
|
|
54565
|
-
const displayedColumns = (columnApi == null ? void 0 : columnApi.getAllDisplayedColumns()) || [];
|
|
54566
|
-
return displayedColumns.length ? displayedColumns[0] : null;
|
|
54567
|
-
}
|
|
54568
54581
|
|
|
54569
54582
|
// src/utils/transformers.ts
|
|
54570
54583
|
var emptyObject = {};
|
|
@@ -55279,7 +55292,7 @@ function ClientSideRowCheckbox(props) {
|
|
|
55279
55292
|
useEffect(() => {
|
|
55280
55293
|
props.api.addEventListener("rowSelected", handleRowSelection);
|
|
55281
55294
|
return () => {
|
|
55282
|
-
|
|
55295
|
+
removeEventListenerFromGrid("rowSelected", handleRowSelection, props.api);
|
|
55283
55296
|
};
|
|
55284
55297
|
}, []);
|
|
55285
55298
|
return /* @__PURE__ */ React82.createElement(Box, { paddingRight: "md" }, /* @__PURE__ */ React82.createElement(
|
|
@@ -55393,7 +55406,11 @@ function GroupCaret(props) {
|
|
|
55393
55406
|
props.api.addEventListener("rowGroupOpened", handleRowGroupToggle);
|
|
55394
55407
|
return () => {
|
|
55395
55408
|
mounted.current = false;
|
|
55396
|
-
|
|
55409
|
+
removeEventListenerFromGrid(
|
|
55410
|
+
"rowGroupOpened",
|
|
55411
|
+
handleRowGroupToggle,
|
|
55412
|
+
props.api
|
|
55413
|
+
);
|
|
55397
55414
|
};
|
|
55398
55415
|
}, []);
|
|
55399
55416
|
return /* @__PURE__ */ React82.createElement(Box, { className: AutoGroupCell_default.expandableCaret }, props.node.isExpandable() && /* @__PURE__ */ React82.createElement(
|
|
@@ -55420,7 +55437,11 @@ var AutoGroupCellRenderer = (props) => {
|
|
|
55420
55437
|
useEffect(() => {
|
|
55421
55438
|
props.api.addEventListener("cellValueChanged", handleCellValueChange);
|
|
55422
55439
|
return () => {
|
|
55423
|
-
|
|
55440
|
+
removeEventListenerFromGrid(
|
|
55441
|
+
"cellValueChanged",
|
|
55442
|
+
handleCellValueChange,
|
|
55443
|
+
props.api
|
|
55444
|
+
);
|
|
55424
55445
|
};
|
|
55425
55446
|
}, []);
|
|
55426
55447
|
const adjustedLevel = props.node.footer ? props.node.level + 1 : props.node.level;
|
|
@@ -56282,7 +56303,7 @@ var GenericHeaderRenderer = (props) => {
|
|
|
56282
56303
|
props.api.addEventListener("columnMoved", calculatePosition);
|
|
56283
56304
|
calculatePosition();
|
|
56284
56305
|
return () => {
|
|
56285
|
-
|
|
56306
|
+
removeEventListenerFromGrid("columnMoved", calculatePosition, props.api);
|
|
56286
56307
|
};
|
|
56287
56308
|
}, []);
|
|
56288
56309
|
const onSortToggled = (event) => {
|
|
@@ -56361,8 +56382,11 @@ var GenericHeaderRenderer = (props) => {
|
|
|
56361
56382
|
};
|
|
56362
56383
|
(_a2 = props.api) == null ? void 0 : _a2.addEventListener("expandOrCollapseAll", onExpandAllChange);
|
|
56363
56384
|
return () => {
|
|
56364
|
-
|
|
56365
|
-
|
|
56385
|
+
removeEventListenerFromGrid(
|
|
56386
|
+
"expandOrCollapseAll",
|
|
56387
|
+
onExpandAllChange,
|
|
56388
|
+
props.api
|
|
56389
|
+
);
|
|
56366
56390
|
};
|
|
56367
56391
|
}, [props.api]);
|
|
56368
56392
|
React82.useEffect(() => {
|
|
@@ -56453,7 +56477,11 @@ var GenericHeaderRenderer = (props) => {
|
|
|
56453
56477
|
props.api.addEventListener(selectionChanged, onSelectionChanged);
|
|
56454
56478
|
onSelectionChanged();
|
|
56455
56479
|
return () => {
|
|
56456
|
-
|
|
56480
|
+
removeEventListenerFromGrid(
|
|
56481
|
+
selectionChanged,
|
|
56482
|
+
onSelectionChanged,
|
|
56483
|
+
props.api
|
|
56484
|
+
);
|
|
56457
56485
|
};
|
|
56458
56486
|
}, [isFirstColumn2, selectAll]);
|
|
56459
56487
|
const { ref, isOverflowing, recalculate } = useOverflowObserver();
|
|
@@ -56465,8 +56493,8 @@ var GenericHeaderRenderer = (props) => {
|
|
|
56465
56493
|
props.api.addEventListener("cellMouseOver", handler);
|
|
56466
56494
|
props.api.addEventListener("columnResized", handler);
|
|
56467
56495
|
return () => {
|
|
56468
|
-
|
|
56469
|
-
|
|
56496
|
+
removeEventListenerFromGrid("cellMouseOver", handler, props.api);
|
|
56497
|
+
removeEventListenerFromGrid("columnResized", handler, props.api);
|
|
56470
56498
|
};
|
|
56471
56499
|
}, []);
|
|
56472
56500
|
React82.useEffect(() => {
|
|
@@ -56492,8 +56520,16 @@ var GenericHeaderRenderer = (props) => {
|
|
|
56492
56520
|
props.api.addEventListener(selectionChanged, updateSelectAllCheckbox);
|
|
56493
56521
|
props.api.addEventListener(paginationChanged, updateSelectAllCheckbox);
|
|
56494
56522
|
return () => {
|
|
56495
|
-
|
|
56496
|
-
|
|
56523
|
+
removeEventListenerFromGrid(
|
|
56524
|
+
selectionChanged,
|
|
56525
|
+
updateSelectAllCheckbox,
|
|
56526
|
+
props.api
|
|
56527
|
+
);
|
|
56528
|
+
removeEventListenerFromGrid(
|
|
56529
|
+
paginationChanged,
|
|
56530
|
+
updateSelectAllCheckbox,
|
|
56531
|
+
props.api
|
|
56532
|
+
);
|
|
56497
56533
|
};
|
|
56498
56534
|
}, [isFirstColumn2, props.selectionSSREnabled, props.api, onSSDR]);
|
|
56499
56535
|
const toggleSelectAll = React82.useCallback(() => {
|
|
@@ -56704,7 +56740,7 @@ function CustomLoader(params) {
|
|
|
56704
56740
|
level: params.node.level,
|
|
56705
56741
|
lastRowInGroup: params.node === groupNodes.last
|
|
56706
56742
|
}
|
|
56707
|
-
), /* @__PURE__ */ React82.createElement(
|
|
56743
|
+
), /* @__PURE__ */ React82.createElement(Spinner, { loading: true, size: "sm" }), /* @__PURE__ */ React82.createElement(Box, { paddingLeft: "sm" }, /* @__PURE__ */ React82.createElement(Typography, { color: "gray15", italic: true, intent: "small" }, I18n.t(
|
|
56708
56744
|
`dataTable.loading.${params.node === groupNodes.first ? "initial" : "secondary"}`
|
|
56709
56745
|
))));
|
|
56710
56746
|
}
|
|
@@ -56714,7 +56750,7 @@ var DefaultFrameworkComponents = {
|
|
|
56714
56750
|
agColumnHeader: GenericHeaderRenderer,
|
|
56715
56751
|
agLoadingCellRenderer: CustomLoader,
|
|
56716
56752
|
agColumnGroupHeader: GenericColumnGroupHeader,
|
|
56717
|
-
loadingOverlayRenderer:
|
|
56753
|
+
loadingOverlayRenderer: Spinner,
|
|
56718
56754
|
emptyStateRenderer: EmptyState
|
|
56719
56755
|
};
|
|
56720
56756
|
function getFrameworkComponents(headerMenuConfig, onSelectAll, selectionSSREnabled) {
|
|
@@ -58861,12 +58897,18 @@ var useRowSelectionState = () => {
|
|
|
58861
58897
|
const { gridApi, rowSelectionRef } = useInternalTableContext();
|
|
58862
58898
|
React82.useEffect(() => {
|
|
58863
58899
|
function selectionEventFunction() {
|
|
58864
|
-
|
|
58900
|
+
if (!(gridApi == null ? void 0 : gridApi.destroyCalled)) {
|
|
58901
|
+
setSelectedRows(getSelectedRows({ gridApi, rowSelectionRef }));
|
|
58902
|
+
}
|
|
58865
58903
|
}
|
|
58866
58904
|
selectionEventFunction();
|
|
58867
58905
|
gridApi == null ? void 0 : gridApi.addEventListener("selectionChanged", selectionEventFunction);
|
|
58868
58906
|
return () => {
|
|
58869
|
-
|
|
58907
|
+
removeEventListenerFromGrid(
|
|
58908
|
+
"selectionChanged",
|
|
58909
|
+
selectionEventFunction,
|
|
58910
|
+
gridApi
|
|
58911
|
+
);
|
|
58870
58912
|
};
|
|
58871
58913
|
}, [gridApi]);
|
|
58872
58914
|
return selectedRows;
|
|
@@ -76369,7 +76411,7 @@ function personOptionRenderer(editorParams) {
|
|
|
76369
76411
|
};
|
|
76370
76412
|
}
|
|
76371
76413
|
function LoadingField() {
|
|
76372
|
-
return /* @__PURE__ */ React82.createElement(Box, { marginTop: "md" }, /* @__PURE__ */ React82.createElement(Spinner, { size: "sm", loading: true }));
|
|
76414
|
+
return /* @__PURE__ */ React82.createElement(Box, { marginTop: "md" }, /* @__PURE__ */ React82.createElement(Spinner$1, { size: "sm", loading: true }));
|
|
76373
76415
|
}
|
|
76374
76416
|
function RadioList({
|
|
76375
76417
|
getId: getId3,
|
|
@@ -76704,7 +76746,7 @@ var BulkEditInput = (props) => {
|
|
|
76704
76746
|
);
|
|
76705
76747
|
} else {
|
|
76706
76748
|
console.warn(
|
|
76707
|
-
`@procore/
|
|
76749
|
+
`@procore/data-table: Unable to find the field for ${props.editor}. Will fallback to a Form.Text.`
|
|
76708
76750
|
);
|
|
76709
76751
|
return defaultField;
|
|
76710
76752
|
}
|
|
@@ -77179,9 +77221,10 @@ var ConfigurationColumns = React82.forwardRef(
|
|
|
77179
77221
|
onDisplayedColumnsChanged
|
|
77180
77222
|
);
|
|
77181
77223
|
return () => {
|
|
77182
|
-
|
|
77224
|
+
removeEventListenerFromGrid(
|
|
77183
77225
|
"displayedColumnsChanged",
|
|
77184
|
-
onDisplayedColumnsChanged
|
|
77226
|
+
onDisplayedColumnsChanged,
|
|
77227
|
+
gridApi
|
|
77185
77228
|
);
|
|
77186
77229
|
};
|
|
77187
77230
|
}, [gridApi, colDefs]);
|
|
@@ -78050,9 +78093,10 @@ var RowGroupSelector = ({ localeText }) => {
|
|
|
78050
78093
|
onDisplayedColumnsChanged
|
|
78051
78094
|
);
|
|
78052
78095
|
return () => {
|
|
78053
|
-
|
|
78096
|
+
removeEventListenerFromGrid(
|
|
78054
78097
|
"displayedColumnsChanged",
|
|
78055
|
-
onDisplayedColumnsChanged
|
|
78098
|
+
onDisplayedColumnsChanged,
|
|
78099
|
+
gridApi
|
|
78056
78100
|
);
|
|
78057
78101
|
};
|
|
78058
78102
|
}, [gridApi]);
|
|
@@ -79850,6 +79894,150 @@ var is_IS_default = {
|
|
|
79850
79894
|
}
|
|
79851
79895
|
};
|
|
79852
79896
|
|
|
79897
|
+
// src/locales/ja-JP.json
|
|
79898
|
+
var ja_JP_default = {
|
|
79899
|
+
dataTable: {
|
|
79900
|
+
emptyState: {
|
|
79901
|
+
noFilteredResults: {
|
|
79902
|
+
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",
|
|
79903
|
+
title: "\u691C\u7D22\u306B\u4E00\u81F4\u3059\u308B\u9805\u76EE\u306F\u3042\u308A\u307E\u305B\u3093",
|
|
79904
|
+
itemsTitle: "\u691C\u7D22\u306B\u4E00\u81F4\u3059\u308B%{itemsLabel}\u306F\u3042\u308A\u307E\u305B\u3093"
|
|
79905
|
+
},
|
|
79906
|
+
noResults: {
|
|
79907
|
+
description: "\u30C1\u30FC\u30E0\u304C\u3053\u308C\u3089\u306E\u9805\u76EE\u3092\u4F5C\u6210\u3057\u305F\u3089\u3001\u3053\u3061\u3089\u3067\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3059\u3002 ",
|
|
79908
|
+
title: "\u73FE\u5728\u3001\u8868\u793A\u3059\u308B\u9805\u76EE\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
79909
|
+
itemsTitle: "\u73FE\u5728\u3001\u8868\u793A\u3059\u308B%{itemsLabel}\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
79910
|
+
tooltip: "\u60C5\u5831\u3092%{tableName}\u306B\u8FFD\u52A0\u3059\u308B\u3068\u3001[%{featureName}]\u30DC\u30BF\u30F3\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3059",
|
|
79911
|
+
featureFilter: "\u30D5\u30A3\u30EB\u30BF\u30FC",
|
|
79912
|
+
featureSearch: "\u691C\u7D22",
|
|
79913
|
+
featureGroupBy: "\u30B0\u30EB\u30FC\u30D7\u5316",
|
|
79914
|
+
featureConfigure: "\u69CB\u6210",
|
|
79915
|
+
tableNameFallback: "\u8868"
|
|
79916
|
+
}
|
|
79917
|
+
},
|
|
79918
|
+
bulkActions: {
|
|
79919
|
+
apply: "\u9069\u7528\u3059\u308B",
|
|
79920
|
+
bulkEdit: "\u4E00\u62EC\u7DE8\u96C6",
|
|
79921
|
+
cancel: "\u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
79922
|
+
editValues: "\u5024\u3092\u7DE8\u96C6\u3059\u308B",
|
|
79923
|
+
error: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u304C\u3001\u9805\u76EE\u3092\u66F4\u65B0\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
79924
|
+
placeholderForField: "%{fieldName}\u3092\u5165\u529B\u3059\u308B",
|
|
79925
|
+
selection: "%{count}%{number}\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
|
|
79926
|
+
success: "\u9805\u76EE\u306F\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F\u3002",
|
|
79927
|
+
one: "\u9805\u76EE",
|
|
79928
|
+
many: "\u9805\u76EE"
|
|
79929
|
+
},
|
|
79930
|
+
exporting: "\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u4E2D...",
|
|
79931
|
+
filters: {
|
|
79932
|
+
filters: "\u30D5\u30A3\u30EB\u30BF\u30FC",
|
|
79933
|
+
moreFilters: "\u305D\u306E\u4ED6\u306E\u30D5\u30A3\u30EB\u30BF\u30FC",
|
|
79934
|
+
clearAllFilters: "\u3059\u3079\u3066\u306E\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u30AF\u30EA\u30A2",
|
|
79935
|
+
close: "\u9589\u3058\u308B",
|
|
79936
|
+
locationFilter: {
|
|
79937
|
+
selectAll: "\u3059\u3079\u3066\u3092\u9078\u629E\u3059\u308B",
|
|
79938
|
+
includeSublocations: "\u30B5\u30D6\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3\u3092\u542B\u3081\u308B",
|
|
79939
|
+
searchLocations: "\u5834\u6240\u3092\u691C\u7D22",
|
|
79940
|
+
locations: "\u5834\u6240"
|
|
79941
|
+
},
|
|
79942
|
+
numberFilter: {
|
|
79943
|
+
labels: {
|
|
79944
|
+
and: "\u305D\u3057\u3066",
|
|
79945
|
+
input_placeholder: "\u5024\u3092\u5165\u529B",
|
|
79946
|
+
placeholder: "\u9805\u76EE\u3092\u9078\u629E\u3059\u308B"
|
|
79947
|
+
},
|
|
79948
|
+
options: {
|
|
79949
|
+
any_value: "\u4EFB\u610F\u306E\u5024",
|
|
79950
|
+
is_between: "\u9593\u306B\u3042\u308B",
|
|
79951
|
+
greater_than: "\u3088\u308A\u5927\u304D\u3044",
|
|
79952
|
+
greater_than_equal_to: "\u4EE5\u4E0A\u3067\u3042\u308B",
|
|
79953
|
+
less_than: "\u672A\u6E80\u3067\u3042\u308B",
|
|
79954
|
+
less_than_equal_to: "\u4EE5\u4E0B\u3067\u3059",
|
|
79955
|
+
no_value: "\u5024\u304C\u3042\u308A\u307E\u305B\u3093"
|
|
79956
|
+
}
|
|
79957
|
+
}
|
|
79958
|
+
},
|
|
79959
|
+
loading: {
|
|
79960
|
+
initial: "\u60C5\u5831\u3092\u8AAD\u307F\u8FBC\u3093\u3067\u3044\u307E\u3059\u3002",
|
|
79961
|
+
secondary: "\u60C5\u5831\u3092\u8AAD\u307F\u8FBC\u3093\u3067\u3044\u307E\u3059\u3002\u3057\u3070\u3089\u304F\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002"
|
|
79962
|
+
},
|
|
79963
|
+
menuOptions: {
|
|
79964
|
+
sortMenuItem: {
|
|
79965
|
+
label: "\u3053\u306E\u5217\u3067\u4E26\u3079\u66FF\u3048\u308B",
|
|
79966
|
+
sortAscItem: "\u5217\u3092\u6607\u9806\u306B\u4E26\u3079\u66FF\u3048\u308B",
|
|
79967
|
+
sortDescItem: "\u5217\u3092\u964D\u9806\u306B\u4E26\u3079\u66FF\u3048\u308B",
|
|
79968
|
+
sortResetItem: "\u5217\u306F\u4E26\u3079\u66FF\u3048\u3089\u308C\u3066\u3044\u307E\u305B\u3093"
|
|
79969
|
+
},
|
|
79970
|
+
expandAllGroups: "\u3059\u3079\u3066\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u5C55\u958B\u3059\u308B",
|
|
79971
|
+
collapseAllGroups: "\u3059\u3079\u3066\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u6298\u308A\u305F\u305F\u3080",
|
|
79972
|
+
pinColumn: "\u5217\u3092\u30D4\u30F3\u7559\u3081\u3059\u308B",
|
|
79973
|
+
pinLeft: "\u5DE6\u5074\u3092\u30D4\u30F3\u7559\u3081\u3059\u308B",
|
|
79974
|
+
pinRight: "\u53F3\u5074\u3092\u30D4\u30F3\u7559\u3081\u3059\u308B",
|
|
79975
|
+
noPin: "\u30D4\u30F3\u7559\u3081\u306F\u3042\u308A\u307E\u305B\u3093",
|
|
79976
|
+
autoSizeThisColumn: "\u3053\u306E\u5217\u3092\u81EA\u52D5\u30B5\u30A4\u30BA\u8ABF\u6574\u3059\u308B",
|
|
79977
|
+
autoSizeAllColumns: "\u3059\u3079\u3066\u306E\u5217\u3092\u81EA\u52D5\u30B5\u30A4\u30BA\u8ABF\u6574\u3059\u308B",
|
|
79978
|
+
resetColumns: "\u5217\u3092\u30EA\u30BB\u30C3\u30C8\u3059\u308B",
|
|
79979
|
+
unGroupBy: "{{label}}\u3067\u30B0\u30EB\u30FC\u30D7\u5316\u3092\u89E3\u9664\u3059\u308B",
|
|
79980
|
+
groupBy: "{{label}}\u3067\u30B0\u30EB\u30FC\u30D7\u5316\u3059\u308B"
|
|
79981
|
+
},
|
|
79982
|
+
grandTotals: "\u5358\u7D14\u96C6\u8A08",
|
|
79983
|
+
search: "\u691C\u7D22",
|
|
79984
|
+
subtotals: "\u5C0F\u8A08",
|
|
79985
|
+
tableSettings: {
|
|
79986
|
+
configureColumns: "\u5217\u3092\u69CB\u6210",
|
|
79987
|
+
resetToDefault: "\u3059\u3079\u3066\u3092\u8868\u793A\u3059\u308B",
|
|
79988
|
+
rowHeight: "\u5217\u306E\u9AD8\u3055",
|
|
79989
|
+
small: "\u5C0F",
|
|
79990
|
+
medium: "\u4E2D",
|
|
79991
|
+
large: "\u5927",
|
|
79992
|
+
tableSettings: "\u8868\u306E\u8A2D\u5B9A",
|
|
79993
|
+
groupBy: "\u30B0\u30EB\u30FC\u30D7\u5316:",
|
|
79994
|
+
reset: "\u30EA\u30BB\u30C3\u30C8",
|
|
79995
|
+
selectColumnGroup: "\u30B0\u30EB\u30FC\u30D7\u5316\u3059\u308B\u5217\u3092\u9078\u629E"
|
|
79996
|
+
},
|
|
79997
|
+
rowGroupToggle: {
|
|
79998
|
+
expandTierOne: "\u8868\u306E\u6700\u521D\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u958B\u304D\u307E\u3059\u3002",
|
|
79999
|
+
expandAll: "\u8868\u306E\u3059\u3079\u3066\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u958B\u304D\u307E\u3059\u3002",
|
|
80000
|
+
collapseAll: "\u8868\u306E\u3059\u3079\u3066\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u9589\u3058\u307E\u3059\u3002"
|
|
80001
|
+
},
|
|
80002
|
+
columnGroupToggle: {
|
|
80003
|
+
collapse: "\u5217\u30B0\u30EB\u30FC\u30D7\u3092\u6298\u308A\u7573\u3080",
|
|
80004
|
+
expand: "\u5217\u30B0\u30EB\u30FC\u30D7\u3092\u5C55\u958B\u3059\u308B"
|
|
80005
|
+
},
|
|
80006
|
+
cells: {
|
|
80007
|
+
textCell: {
|
|
80008
|
+
placeholder: "\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B\u3059\u308B"
|
|
80009
|
+
},
|
|
80010
|
+
currencyCell: {
|
|
80011
|
+
placeholder: "\u901A\u8CA8\u3092\u5165\u529B\u3059\u308B"
|
|
80012
|
+
},
|
|
80013
|
+
numberCell: {
|
|
80014
|
+
placeholder: "\u756A\u53F7\u3092\u5165\u529B\u3059\u308B"
|
|
80015
|
+
},
|
|
80016
|
+
percentCell: {
|
|
80017
|
+
placeholder: "%\u3092\u5165\u529B"
|
|
80018
|
+
},
|
|
80019
|
+
pillCell: {
|
|
80020
|
+
placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
|
|
80021
|
+
},
|
|
80022
|
+
selectCell: {
|
|
80023
|
+
placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
|
|
80024
|
+
},
|
|
80025
|
+
booleanCell: {
|
|
80026
|
+
options: {
|
|
80027
|
+
yes: "\u306F\u3044",
|
|
80028
|
+
no: "\u3044\u3044\u3048"
|
|
80029
|
+
}
|
|
80030
|
+
}
|
|
80031
|
+
},
|
|
80032
|
+
filterRenders: {
|
|
80033
|
+
dateFilter: {
|
|
80034
|
+
single: "\u5358\u72EC",
|
|
80035
|
+
range: "\u7BC4\u56F2"
|
|
80036
|
+
}
|
|
80037
|
+
}
|
|
80038
|
+
}
|
|
80039
|
+
};
|
|
80040
|
+
|
|
79853
80041
|
// src/locales/pt-BR.json
|
|
79854
80042
|
var pt_BR_default = {
|
|
79855
80043
|
dataTable: {
|
|
@@ -80294,6 +80482,7 @@ var translations = {
|
|
|
80294
80482
|
"fr-CA": fr_CA_default,
|
|
80295
80483
|
"fr-FR": fr_FR_default,
|
|
80296
80484
|
"is-IS": is_IS_default,
|
|
80485
|
+
"ja-JP": ja_JP_default,
|
|
80297
80486
|
"pt-BR": pt_BR_default,
|
|
80298
80487
|
"th-TH": th_TH_default,
|
|
80299
80488
|
"zh-SG": zh_SG_default
|
|
@@ -81590,7 +81779,9 @@ var Table = (props) => {
|
|
|
81590
81779
|
maxHeight = nodeHeight;
|
|
81591
81780
|
}
|
|
81592
81781
|
});
|
|
81593
|
-
gridApi == null ? void 0 : gridApi.
|
|
81782
|
+
if (!(gridApi == null ? void 0 : gridApi.destroyCalled)) {
|
|
81783
|
+
gridApi == null ? void 0 : gridApi.setHeaderHeight(maxHeight);
|
|
81784
|
+
}
|
|
81594
81785
|
}
|
|
81595
81786
|
React82.useEffect(() => {
|
|
81596
81787
|
var _a2, _b2;
|
|
@@ -81603,7 +81794,11 @@ var Table = (props) => {
|
|
|
81603
81794
|
gridApi.addEventListener("firstDataRendered", setHeaderHeight);
|
|
81604
81795
|
setHeaderHeight();
|
|
81605
81796
|
return () => {
|
|
81606
|
-
|
|
81797
|
+
removeEventListenerFromGrid(
|
|
81798
|
+
"firstDataRendered",
|
|
81799
|
+
setHeaderHeight,
|
|
81800
|
+
gridApi
|
|
81801
|
+
);
|
|
81607
81802
|
};
|
|
81608
81803
|
}
|
|
81609
81804
|
return;
|
|
@@ -81845,7 +82040,10 @@ var Table = (props) => {
|
|
|
81845
82040
|
}, [internalTableContext.onTableConfigChange]);
|
|
81846
82041
|
const onDisplayedColumnsChanged = React82.useCallback(
|
|
81847
82042
|
(event) => {
|
|
82043
|
+
var _a2;
|
|
81848
82044
|
if (props.onRowDragEnd) {
|
|
82045
|
+
if ((_a2 = event.columnApi) == null ? void 0 : _a2.destroyCalled)
|
|
82046
|
+
return;
|
|
81849
82047
|
const firstVisibleColumn = event.columnApi.getAllGridColumns().find((col) => col.isVisible());
|
|
81850
82048
|
if (!(firstVisibleColumn == null ? void 0 : firstVisibleColumn.getColDef().rowDrag)) {
|
|
81851
82049
|
adjustRowDragIcon(event.api, event.columnApi);
|
|
@@ -82147,7 +82345,7 @@ var Table = (props) => {
|
|
|
82147
82345
|
props.UNSAFE_internalAGGridOverrides ?? {}
|
|
82148
82346
|
);
|
|
82149
82347
|
return /* @__PURE__ */ React82.createElement(
|
|
82150
|
-
|
|
82348
|
+
Spinner,
|
|
82151
82349
|
{
|
|
82152
82350
|
loading: loadingStatus.loading,
|
|
82153
82351
|
label: loadingStatus.message,
|
|
@@ -82314,7 +82512,11 @@ var TablePagination = ({
|
|
|
82314
82512
|
}
|
|
82315
82513
|
gridApi == null ? void 0 : gridApi.addEventListener("paginationChanged", onPaginationChanged);
|
|
82316
82514
|
return () => {
|
|
82317
|
-
|
|
82515
|
+
removeEventListenerFromGrid(
|
|
82516
|
+
"paginationChanged",
|
|
82517
|
+
onPaginationChanged,
|
|
82518
|
+
gridApi
|
|
82519
|
+
);
|
|
82318
82520
|
};
|
|
82319
82521
|
}, []);
|
|
82320
82522
|
return /* @__PURE__ */ React82.createElement(
|
|
@@ -82879,7 +83081,7 @@ var LocationQuickFilterOverlay = React82.forwardRef(
|
|
|
82879
83081
|
getLabel3(item)
|
|
82880
83082
|
);
|
|
82881
83083
|
})),
|
|
82882
|
-
loading && /* @__PURE__ */ React82.createElement(UNSAFE_Menu.Footer, null, /* @__PURE__ */ React82.createElement(Flex, { justifyContent: "center" }, /* @__PURE__ */ React82.createElement(Spinner, { size: "sm" })))
|
|
83084
|
+
loading && /* @__PURE__ */ React82.createElement(UNSAFE_Menu.Footer, null, /* @__PURE__ */ React82.createElement(Flex, { justifyContent: "center" }, /* @__PURE__ */ React82.createElement(Spinner$1, { size: "sm" })))
|
|
82883
83085
|
));
|
|
82884
83086
|
}
|
|
82885
83087
|
);
|