@gridsuite/commons-ui 0.260.0 → 0.261.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/dist/components/composite/agGridTable/BottomTableButtons.js +5 -5
- package/dist/components/composite/customAGGrid/cell-renderers.js +1 -1
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +10 -8
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.js +2 -2
- package/dist/components/composite/customAGGrid/custom-aggrid-header.js +9 -9
- package/dist/components/composite/customAGGrid/custom-aggrid-menu.js +2 -2
- package/dist/components/composite/dnd-table/dnd-table-bottom-left-buttons.js +4 -4
- package/dist/components/composite/dnd-table/dnd-table-bottom-right-buttons.js +6 -6
- package/dist/components/composite/dnd-table/dnd-table.js +4 -4
- package/dist/components/composite/elementSearch/elementSearchInput/ElementSearchInput.js +4 -2
- package/dist/components/composite/filter/HeaderFilterForm.js +4 -4
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +7 -7
- package/dist/components/composite/flatParameters/FlatParameters.js +17 -11
- package/dist/components/composite/grid/grid-item.d.ts +4 -4
- package/dist/components/composite/grid/grid-item.js +2 -2
- package/dist/components/composite/grid/grid-section.js +2 -2
- package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
- package/dist/components/composite/report/QuickSearch.js +31 -29
- package/dist/components/composite/report/report-viewer/log-table/log-table.js +2 -2
- package/dist/components/ui/csvPicker/csv-picker.js +4 -4
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +8 -8
- package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
- package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +4 -4
- package/dist/components/ui/inputs/SelectClearable.js +3 -1
- package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +7 -5
- package/dist/components/ui/reactHookForm/CheckboxNullableInput.js +4 -2
- package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +3 -1
- package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +1 -1
- package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +1 -1
- package/dist/components/ui/reactHookForm/chip-items-input.js +11 -9
- package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +5 -5
- package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
- package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -3
- package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +4 -4
- package/dist/components/ui/reactHookForm/numbers/RangeInput.js +5 -5
- package/dist/components/ui/reactHookForm/readOnly/ButtonReadOnlyInput.js +26 -24
- package/dist/components/ui/reactHookForm/readOnly/ReadOnlyInput.js +11 -9
- package/dist/components/ui/reactHookForm/selectInputs/CountriesInput.js +2 -2
- package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +30 -28
- package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +10 -8
- package/dist/components/ui/reactHookForm/text/ExpandingTextField.js +6 -4
- package/dist/components/ui/reactHookForm/text/TextInput.js +7 -5
- package/dist/components/ui/reactHookForm/text/UniqueNameInput.js +6 -4
- package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +10 -8
- package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.js +4 -2
- package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
- package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
- package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +8 -8
- package/dist/features/global-filter/ui/global-filter-panel.js +35 -29
- package/dist/features/network-modification-table/network-modification-table-styles.js +2 -3
- package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +5 -5
- package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +8 -6
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +4 -2
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +6 -6
- package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -4
- package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +3 -3
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
- package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +2 -2
- package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +3 -3
- package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
- package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
- package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
- package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +10 -10
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +5 -5
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +2 -2
- package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.js +2 -2
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +6 -6
- package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -3
- package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
- package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
- package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +2 -2
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +4 -4
- package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +4 -4
- package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +2 -2
- package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +2 -2
- package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +5 -5
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +4 -4
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +4 -4
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +7 -7
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +9 -7
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +4 -2
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +7 -7
- package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -4
- package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +4 -4
- package/dist/features/network-modifications/line/common/LineDialogHeader.js +2 -2
- package/dist/features/network-modifications/load/common/LoadDialogHeader.js +9 -7
- package/dist/features/network-modifications/load/common/LoadDialogTabs.js +4 -2
- package/dist/features/network-modifications/load/common/LoadForm.js +4 -4
- package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +13 -13
- package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +9 -9
- package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +11 -11
- package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +6 -6
- package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +10 -8
- package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +10 -8
- package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +8 -8
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +2 -2
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +6 -6
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +23 -19
- package/dist/features/parameters/common/line-separator.js +2 -2
- package/dist/features/parameters/common/parameter-field.js +6 -6
- package/dist/features/parameters/common/parameter-layout/parameter-layout.js +7 -7
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
- package/dist/features/parameters/common/parameters.js +6 -4
- package/dist/features/parameters/common/provider-param.js +4 -4
- package/dist/features/parameters/common/widget/parameter-float.js +4 -4
- package/dist/features/parameters/common/widget/parameter-group.js +2 -2
- package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
- package/dist/features/parameters/common/widget/parameter-line-slider.d.ts +4 -3
- package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
- package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +4 -4
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
- package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +2 -2
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +4 -4
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.js +2 -2
- package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
- package/dist/features/parameters/dynamic-simulation/curve/common/grid-search.js +7 -5
- package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +5 -5
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +5 -5
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +3 -3
- package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +13 -13
- package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +4 -4
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +4 -4
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
- package/dist/features/parameters/loadflow/load-flow-parameters-content.js +3 -3
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
- package/dist/features/parameters/loadflow/load-flow-parameters-form.js +4 -4
- package/dist/features/parameters/network-visualizations/map-parameters.js +8 -8
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +8 -6
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
- package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +8 -6
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +2 -2
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -6
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +6 -6
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -2
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -2
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -7
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +11 -11
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
- package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +5 -5
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +2 -2
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +4 -4
- package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +8 -6
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +2 -2
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
- package/dist/features/topBar/AboutDialog.js +40 -28
- package/dist/features/topBar/TopBar.js +2 -2
- package/dist/features/topBar/UserInformationDialog.js +34 -34
- package/dist/features/topBar/UserSettingsDialog.js +3 -1
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useState, useRef, useMemo, useEffect, useCallback } from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
-
import { useTheme, Box, Chip
|
|
4
|
+
import { useTheme, Box, Chip } from "@mui/material";
|
|
5
5
|
import { Visibility, VisibilityOff } from "@mui/icons-material";
|
|
6
6
|
import { getDefaultSeverityFilter, REPORT_SEVERITY } from "../../report-severity.js";
|
|
7
7
|
import { QuickSearch } from "../../QuickSearch.js";
|
|
@@ -65,7 +65,7 @@ const chipStyle = (severity, severityFilter, theme) => ({
|
|
|
65
65
|
cursor: "pointer",
|
|
66
66
|
border: `1px solid ${theme.palette.divider}`,
|
|
67
67
|
"&:hover": {
|
|
68
|
-
backgroundColor: alpha(REPORT_SEVERITY[severity].colorHexCode, 0.5)
|
|
68
|
+
backgroundColor: theme.alpha(REPORT_SEVERITY[severity].colorHexCode, 0.5)
|
|
69
69
|
},
|
|
70
70
|
"& .MuiChip-deleteIcon": {
|
|
71
71
|
color: theme.palette.text.primary,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback } from "react";
|
|
3
3
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid, Tooltip, Typography, Button } from "@mui/material";
|
|
5
5
|
import { useCSVReader } from "react-papaparse";
|
|
6
6
|
import "../../../utils/conversionUtils.js";
|
|
7
7
|
import "../../../utils/types/equipmentType.js";
|
|
@@ -74,9 +74,9 @@ function CsvPicker({
|
|
|
74
74
|
...parseConfig
|
|
75
75
|
},
|
|
76
76
|
onUploadAccepted: handleUploadAccepted,
|
|
77
|
-
children: ({ getRootProps }) => /* @__PURE__ */ jsxs(
|
|
78
|
-
/* @__PURE__ */ jsx(
|
|
79
|
-
/* @__PURE__ */ jsx(
|
|
77
|
+
children: ({ getRootProps }) => /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, alignItems: "center", justifyContent: "right", wrap: "nowrap", children: [
|
|
78
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(Tooltip, { title: selectedFile?.name, children: /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: "bold", overflow: "hidden", textOverflow: "ellipsis" }, children: selectedFile ? selectedFile.name : /* @__PURE__ */ jsx(FormattedMessage, { id: "uploadMessage" }) }) }) }),
|
|
79
|
+
/* @__PURE__ */ jsx(Grid, { size: "auto", children: /* @__PURE__ */ jsx(
|
|
80
80
|
Button,
|
|
81
81
|
{
|
|
82
82
|
...getRootProps(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
3
3
|
import { useState, useCallback, useEffect } from "react";
|
|
4
|
-
import { Stack,
|
|
4
|
+
import { Stack, Grid, Button, Typography, Box, CircularProgress } from "@mui/material";
|
|
5
5
|
import { useForm } from "react-hook-form";
|
|
6
6
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
7
7
|
import * as yup from "yup";
|
|
@@ -187,13 +187,13 @@ function ElementSaveDialog({
|
|
|
187
187
|
);
|
|
188
188
|
const renderChooser = () => {
|
|
189
189
|
if (isCreateMode) {
|
|
190
|
-
return /* @__PURE__ */ jsxs(
|
|
191
|
-
/* @__PURE__ */ jsx(
|
|
190
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
|
|
191
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(Button, { onClick: handleChangeFolder, variant: "contained", size: "small", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "showSelectDirectoryDialog" }) }) }),
|
|
192
192
|
/* @__PURE__ */ jsx(Typography, { m: 1, component: "span", children: /* @__PURE__ */ jsx(Box, { fontWeight: "fontWeightBold", children: destinationFolder ? destinationFolder.name : /* @__PURE__ */ jsx(CircularProgress, {}) }) })
|
|
193
193
|
] });
|
|
194
194
|
}
|
|
195
|
-
return /* @__PURE__ */ jsxs(
|
|
196
|
-
/* @__PURE__ */ jsx(
|
|
195
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
|
|
196
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(Button, { onClick: handleChangeFolder, variant: "contained", size: "small", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "showSelectDirectoryItemDialog" }) }) }),
|
|
197
197
|
/* @__PURE__ */ jsx(Typography, { m: 1, component: "span", children: /* @__PURE__ */ jsx(Box, { fontWeight: "fontWeightBold", children: selectedItem ? selectedItem.fullPath : null }) })
|
|
198
198
|
] });
|
|
199
199
|
};
|
|
@@ -208,7 +208,7 @@ function ElementSaveDialog({
|
|
|
208
208
|
formContext: { ...formMethods, validationSchema: schema },
|
|
209
209
|
children: [
|
|
210
210
|
/* @__PURE__ */ jsxs(Stack, { spacing: 2, marginTop: "auto", children: [
|
|
211
|
-
!createOnlyMode && /* @__PURE__ */ jsx(
|
|
211
|
+
!createOnlyMode && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
212
212
|
RadioInput,
|
|
213
213
|
{
|
|
214
214
|
name: FieldConstants.OPERATION_TYPE,
|
|
@@ -225,7 +225,7 @@ function ElementSaveDialog({
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
) }),
|
|
228
|
-
/* @__PURE__ */ jsx(
|
|
228
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
229
229
|
UniqueNameInput,
|
|
230
230
|
{
|
|
231
231
|
name: FieldConstants.NAME,
|
|
@@ -236,7 +236,7 @@ function ElementSaveDialog({
|
|
|
236
236
|
autoFocus: true
|
|
237
237
|
}
|
|
238
238
|
) }),
|
|
239
|
-
/* @__PURE__ */ jsx(
|
|
239
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(DescriptionField, {}) }),
|
|
240
240
|
renderChooser()
|
|
241
241
|
] }),
|
|
242
242
|
/* @__PURE__ */ jsx(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Grid, Typography, Box, Button } from "@mui/material";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import { useController } from "react-hook-form";
|
|
6
6
|
import { FolderOutlined } from "@mui/icons-material";
|
|
@@ -47,14 +47,14 @@ function ModifyElementSelection(props) {
|
|
|
47
47
|
setOpen(false);
|
|
48
48
|
};
|
|
49
49
|
return /* @__PURE__ */ jsxs(
|
|
50
|
-
|
|
50
|
+
Grid,
|
|
51
51
|
{
|
|
52
52
|
sx: {
|
|
53
53
|
marginTop: "10px",
|
|
54
54
|
alignItems: "center"
|
|
55
55
|
},
|
|
56
56
|
children: [
|
|
57
|
-
/* @__PURE__ */ jsxs(
|
|
57
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, children: [
|
|
58
58
|
/* @__PURE__ */ jsx(Typography, { m: 1, component: "span", children: /* @__PURE__ */ jsxs(Box, { fontWeight: "fontWeightBold", display: "flex", justifyContent: "center", alignItems: "center", children: [
|
|
59
59
|
/* @__PURE__ */ jsx(FolderOutlined, {}),
|
|
60
60
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, Stack } from "@mui/material";
|
|
3
3
|
import { DescriptionField } from "../../reactHookForm/text/DescriptionField.js";
|
|
4
4
|
import { UniqueNameInput } from "../../reactHookForm/text/UniqueNameInput.js";
|
|
5
5
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
@@ -12,8 +12,8 @@ function NameElementEditorForm({
|
|
|
12
12
|
activeDirectory,
|
|
13
13
|
elementType
|
|
14
14
|
}) {
|
|
15
|
-
return /* @__PURE__ */ jsx(
|
|
16
|
-
/* @__PURE__ */ jsx(
|
|
15
|
+
return /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Stack, { spacing: 2, marginBottom: "8px", children: [
|
|
16
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
17
17
|
UniqueNameInput,
|
|
18
18
|
{
|
|
19
19
|
name: FieldConstants.NAME,
|
|
@@ -25,7 +25,7 @@ function NameElementEditorForm({
|
|
|
25
25
|
fullWidth: false
|
|
26
26
|
}
|
|
27
27
|
) }),
|
|
28
|
-
/* @__PURE__ */ jsx(
|
|
28
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(DescriptionField, { expandingTextSx: elementEditionStyles.description }) })
|
|
29
29
|
] }) });
|
|
30
30
|
}
|
|
31
31
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { styled, Popper, autocompleteClasses, Autocomplete, TextField
|
|
3
|
+
import { styled, Popper, autocompleteClasses, Autocomplete, TextField } from "@mui/material";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import VirtualizedList from "./virtualized-list.js";
|
|
6
6
|
import CheckboxItem from "./checkbox-item.js";
|
|
@@ -17,7 +17,7 @@ const styles = {
|
|
|
17
17
|
height: "inherit",
|
|
18
18
|
zIndex: 20,
|
|
19
19
|
// jump up to avoid input zone pushed down below component
|
|
20
|
-
backgroundColor: lighten(theme.palette.background.default, 0.16)
|
|
20
|
+
backgroundColor: theme.lighten(theme.palette.background.default, 0.16)
|
|
21
21
|
},
|
|
22
22
|
"&.Mui-focused": {
|
|
23
23
|
".MuiInputLabel-root": {
|
|
@@ -105,19 +105,21 @@ function CheckboxAutocomplete({
|
|
|
105
105
|
disableCloseOnSelect: true,
|
|
106
106
|
size: "small",
|
|
107
107
|
disableListWrap: true,
|
|
108
|
-
PopperComponent: StyledPopper,
|
|
109
108
|
options,
|
|
110
109
|
noOptionsText: intl.formatMessage({ id: "noOption" }),
|
|
111
110
|
getOptionLabel,
|
|
112
111
|
...otherProps,
|
|
113
112
|
limitTags: 1,
|
|
114
113
|
multiple: true,
|
|
115
|
-
ListboxComponent: virtualize ? VirtualizedList : void 0,
|
|
116
114
|
renderInput,
|
|
117
115
|
renderOption,
|
|
118
116
|
inputValue,
|
|
119
117
|
onChange: handleChange,
|
|
120
|
-
onBlur: handleBlur
|
|
118
|
+
onBlur: handleBlur,
|
|
119
|
+
slots: { popper: StyledPopper },
|
|
120
|
+
slotProps: {
|
|
121
|
+
listbox: { component: virtualize ? VirtualizedList : void 0 }
|
|
122
|
+
}
|
|
121
123
|
}
|
|
122
124
|
);
|
|
123
125
|
}
|
|
@@ -48,8 +48,10 @@ function CheckboxNullableInput({
|
|
|
48
48
|
indeterminate: nullDisabled ? void 0 : value === null,
|
|
49
49
|
onChange: handleChangeValue,
|
|
50
50
|
value: "checked",
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
slotProps: {
|
|
52
|
+
input: {
|
|
53
|
+
"aria-label": "primary checkbox"
|
|
54
|
+
}
|
|
53
55
|
},
|
|
54
56
|
...formProps
|
|
55
57
|
}
|
|
@@ -111,18 +111,20 @@ function ChipItemsInput({ label, name, hideErrorMessage }) {
|
|
|
111
111
|
TextField,
|
|
112
112
|
{
|
|
113
113
|
variant: "standard",
|
|
114
|
-
InputProps: {
|
|
115
|
-
disableUnderline: true,
|
|
116
|
-
style: {
|
|
117
|
-
marginTop: "5px",
|
|
118
|
-
height: "30px",
|
|
119
|
-
marginLeft: "10px"
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
114
|
value: textEntered,
|
|
123
115
|
onKeyDown: keyPress,
|
|
124
116
|
onChange: handleChange,
|
|
125
|
-
onBlur
|
|
117
|
+
onBlur,
|
|
118
|
+
slotProps: {
|
|
119
|
+
input: {
|
|
120
|
+
disableUnderline: true,
|
|
121
|
+
style: {
|
|
122
|
+
marginTop: "5px",
|
|
123
|
+
height: "30px",
|
|
124
|
+
marginLeft: "10px"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
126
128
|
}
|
|
127
129
|
)
|
|
128
130
|
] }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Stack,
|
|
2
|
+
import { Box, Stack, Grid, Tooltip, Typography, FormHelperText, Button } from "@mui/material";
|
|
3
3
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
4
4
|
import { useState, useMemo, useCallback } from "react";
|
|
5
5
|
import { useController } from "react-hook-form";
|
|
@@ -37,9 +37,9 @@ function DirectoryItemInput({ name, types, ...props }) {
|
|
|
37
37
|
);
|
|
38
38
|
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
39
39
|
/* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", children: [
|
|
40
|
-
/* @__PURE__ */ jsxs(
|
|
41
|
-
/* @__PURE__ */ jsx(
|
|
42
|
-
/* @__PURE__ */ jsx(
|
|
40
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", children: [
|
|
41
|
+
/* @__PURE__ */ jsx(Grid, { paddingTop: 1, children: /* @__PURE__ */ jsx(FolderOutlined, {}) }),
|
|
42
|
+
/* @__PURE__ */ jsx(Grid, { paddingTop: 1, paddingLeft: 1, children: /* @__PURE__ */ jsx(
|
|
43
43
|
Tooltip,
|
|
44
44
|
{
|
|
45
45
|
title: nodeInfos?.[DIRECTORY_ITEM_FULL_PATH] ?? "",
|
|
@@ -54,7 +54,7 @@ function DirectoryItemInput({ name, types, ...props }) {
|
|
|
54
54
|
children: /* @__PURE__ */ jsx(Typography, { fontWeight: breadcrumb ? void 0 : "bold", noWrap: true, children: breadcrumb || /* @__PURE__ */ jsx(FormattedMessage, { id: getAbsenceLabelKeyFromType(types?.[0]) }) })
|
|
55
55
|
}
|
|
56
56
|
) }),
|
|
57
|
-
/* @__PURE__ */ jsx(
|
|
57
|
+
/* @__PURE__ */ jsx(Grid, { paddingTop: 1, paddingLeft: 1, children: error?.message && /* @__PURE__ */ jsx(FormHelperText, { error: true, children: intl.formatMessage({ id: error?.message }) }) })
|
|
58
58
|
] }),
|
|
59
59
|
/* @__PURE__ */ jsx(Button, { onClick: () => setIsOpen(true), variant: "contained", color: "primary", component: "label", children: /* @__PURE__ */ jsx(FormattedMessage, { id: breadcrumb ? "edit" : "Select" }) })
|
|
60
60
|
] }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, Alert } from "@mui/material";
|
|
3
3
|
function FieldErrorAlert({ message }) {
|
|
4
|
-
return /* @__PURE__ */ jsx(
|
|
4
|
+
return /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(Alert, { severity: "error", children: message }) });
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
7
|
FieldErrorAlert
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid, IconButton } from "@mui/material";
|
|
5
5
|
import { RestoreFromTrash, Delete } from "@mui/icons-material";
|
|
6
6
|
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
7
7
|
function DeletableRow({
|
|
@@ -14,7 +14,7 @@ function DeletableRow({
|
|
|
14
14
|
const intl = useIntl();
|
|
15
15
|
const [isMouseHover, setIsMouseHover] = useState(false);
|
|
16
16
|
return /* @__PURE__ */ jsxs(
|
|
17
|
-
|
|
17
|
+
Grid,
|
|
18
18
|
{
|
|
19
19
|
container: true,
|
|
20
20
|
spacing: 2,
|
|
@@ -24,7 +24,7 @@ function DeletableRow({
|
|
|
24
24
|
onMouseLeave: () => setIsMouseHover(false),
|
|
25
25
|
children: [
|
|
26
26
|
children,
|
|
27
|
-
/* @__PURE__ */ jsx(
|
|
27
|
+
/* @__PURE__ */ jsx(Grid, { size: 1, children: isMouseHover && !disabledDeletion && /* @__PURE__ */ jsx(
|
|
28
28
|
CustomTooltip,
|
|
29
29
|
{
|
|
30
30
|
title: intl.formatMessage({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useFieldArray } from "react-hook-form";
|
|
3
|
-
import {
|
|
3
|
+
import { Grid } from "@mui/material";
|
|
4
4
|
import { forwardRef, useImperativeHandle } from "react";
|
|
5
5
|
import { DeletableRow } from "./DeletableRow.js";
|
|
6
6
|
import { ErrorInput } from "../errorManagement/ErrorInput.js";
|
|
@@ -40,8 +40,8 @@ const ExpandableInput = forwardRef(
|
|
|
40
40
|
}),
|
|
41
41
|
[append, replace]
|
|
42
42
|
);
|
|
43
|
-
return /* @__PURE__ */ jsxs(
|
|
44
|
-
/* @__PURE__ */ jsx(
|
|
43
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
44
|
+
/* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(ErrorInput, { name, InputField: MidFormError }) }),
|
|
45
45
|
watchProps && values.map((value, idx) => /* @__PURE__ */ jsx(
|
|
46
46
|
DeletableRow,
|
|
47
47
|
{
|
|
@@ -58,7 +58,7 @@ const ExpandableInput = forwardRef(
|
|
|
58
58
|
},
|
|
59
59
|
value.id
|
|
60
60
|
)),
|
|
61
|
-
addButtonLabel && /* @__PURE__ */ jsx(
|
|
61
|
+
addButtonLabel && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(AddButton, { disabled, onClick: () => append(initialValue), label: addButtonLabel }) })
|
|
62
62
|
] });
|
|
63
63
|
}
|
|
64
64
|
);
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useWatch } from "react-hook-form";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
|
-
import { FormControl, InputLabel,
|
|
5
|
+
import { FormControl, InputLabel, Grid } from "@mui/material";
|
|
6
6
|
import * as yup from "yup";
|
|
7
7
|
import { FloatInput } from "./FloatInput.js";
|
|
8
8
|
import { MuiSelectInput } from "../selectInputs/MuiSelectInput.js";
|
|
@@ -51,8 +51,8 @@ function RangeInput({ name, label }) {
|
|
|
51
51
|
const isOperationTypeRange = useMemo(() => watchOperationType === RangeType.RANGE.id, [watchOperationType]);
|
|
52
52
|
return /* @__PURE__ */ jsxs(FormControl, { fullWidth: true, children: [
|
|
53
53
|
/* @__PURE__ */ jsx(InputLabel, { sx: style.inputLegend, shrink: true, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
|
|
54
|
-
/* @__PURE__ */ jsxs(
|
|
55
|
-
/* @__PURE__ */ jsx(
|
|
54
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 0, children: [
|
|
55
|
+
/* @__PURE__ */ jsx(Grid, { style: isOperationTypeRange ? { flex: "min-content" } : {}, children: /* @__PURE__ */ jsx(
|
|
56
56
|
MuiSelectInput,
|
|
57
57
|
{
|
|
58
58
|
name: `${name}.${FieldConstants.OPERATION_TYPE}`,
|
|
@@ -60,7 +60,7 @@ function RangeInput({ name, label }) {
|
|
|
60
60
|
fullWidth: true
|
|
61
61
|
}
|
|
62
62
|
) }),
|
|
63
|
-
/* @__PURE__ */ jsx(
|
|
63
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
64
64
|
FloatInput,
|
|
65
65
|
{
|
|
66
66
|
label: "",
|
|
@@ -72,7 +72,7 @@ function RangeInput({ name, label }) {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
) }),
|
|
75
|
-
isOperationTypeRange && /* @__PURE__ */ jsx(
|
|
75
|
+
isOperationTypeRange && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
76
76
|
FloatInput,
|
|
77
77
|
{
|
|
78
78
|
name: `${name}.${FieldConstants.VALUE_2}`,
|
|
@@ -14,33 +14,35 @@ function ButtonReadOnlyInput({ name, isNumerical = false, children }) {
|
|
|
14
14
|
return /* @__PURE__ */ jsx(
|
|
15
15
|
TextField,
|
|
16
16
|
{
|
|
17
|
-
InputProps: {
|
|
18
|
-
readOnly: true,
|
|
19
|
-
sx: isNumerical ? {
|
|
20
|
-
"& input": {
|
|
21
|
-
textAlign: "right"
|
|
22
|
-
}
|
|
23
|
-
} : {},
|
|
24
|
-
endAdornment: /* @__PURE__ */ jsx(
|
|
25
|
-
InputAdornment,
|
|
26
|
-
{
|
|
27
|
-
sx: {
|
|
28
|
-
"& button": {
|
|
29
|
-
borderRadius: 0,
|
|
30
|
-
borderLeft: "1px solid",
|
|
31
|
-
borderColor: theme.palette.action.disabled,
|
|
32
|
-
marginRight: "-14px",
|
|
33
|
-
marginLeft: "-8px"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
position: "end",
|
|
37
|
-
children
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
},
|
|
41
17
|
size: "small",
|
|
42
18
|
fullWidth: true,
|
|
43
19
|
value,
|
|
20
|
+
slotProps: {
|
|
21
|
+
input: {
|
|
22
|
+
readOnly: true,
|
|
23
|
+
sx: isNumerical ? {
|
|
24
|
+
"& input": {
|
|
25
|
+
textAlign: "right"
|
|
26
|
+
}
|
|
27
|
+
} : {},
|
|
28
|
+
endAdornment: /* @__PURE__ */ jsx(
|
|
29
|
+
InputAdornment,
|
|
30
|
+
{
|
|
31
|
+
sx: {
|
|
32
|
+
"& button": {
|
|
33
|
+
borderRadius: 0,
|
|
34
|
+
borderLeft: "1px solid",
|
|
35
|
+
borderColor: theme.palette.action.disabled,
|
|
36
|
+
marginRight: "-14px",
|
|
37
|
+
marginLeft: "-8px"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
position: "end",
|
|
41
|
+
children
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
},
|
|
44
46
|
...genHelperError(error?.message)
|
|
45
47
|
}
|
|
46
48
|
);
|
|
@@ -13,18 +13,20 @@ function ReadOnlyInput({ name, isNumerical = false }) {
|
|
|
13
13
|
return /* @__PURE__ */ jsx(
|
|
14
14
|
TextField,
|
|
15
15
|
{
|
|
16
|
-
InputProps: {
|
|
17
|
-
readOnly: true,
|
|
18
|
-
disableUnderline: true,
|
|
19
|
-
sx: isNumerical ? {
|
|
20
|
-
"& input": {
|
|
21
|
-
textAlign: "right"
|
|
22
|
-
}
|
|
23
|
-
} : {}
|
|
24
|
-
},
|
|
25
16
|
fullWidth: true,
|
|
26
17
|
value,
|
|
27
18
|
variant: "standard",
|
|
19
|
+
slotProps: {
|
|
20
|
+
input: {
|
|
21
|
+
readOnly: true,
|
|
22
|
+
disableUnderline: true,
|
|
23
|
+
sx: isNumerical ? {
|
|
24
|
+
"& input": {
|
|
25
|
+
textAlign: "right"
|
|
26
|
+
}
|
|
27
|
+
} : {}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
28
30
|
...genHelperError(error?.message)
|
|
29
31
|
}
|
|
30
32
|
);
|
|
@@ -26,8 +26,8 @@ function CountriesInput({ name, label, dataTestId }) {
|
|
|
26
26
|
getOptionLabel: translateOption,
|
|
27
27
|
fullWidth: true,
|
|
28
28
|
multiple: true,
|
|
29
|
-
|
|
30
|
-
const { key, ...tagProps } =
|
|
29
|
+
renderValue: (val, getItemProps) => val.map((code, index) => {
|
|
30
|
+
const { key, ...tagProps } = getItemProps({ index });
|
|
31
31
|
return /* @__PURE__ */ jsx(
|
|
32
32
|
Chip,
|
|
33
33
|
{
|
|
@@ -73,34 +73,36 @@ function TableNumericalInput({
|
|
|
73
73
|
size: "small",
|
|
74
74
|
fullWidth: true,
|
|
75
75
|
inputRef: ref,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
76
|
+
slotProps: {
|
|
77
|
+
input: {
|
|
78
|
+
endAdornment: /* @__PURE__ */ jsxs(InputAdornment, { position: "end", children: [
|
|
79
|
+
transformedValue && adornment?.text,
|
|
80
|
+
clearable && /* @__PURE__ */ jsx(
|
|
81
|
+
IconButton,
|
|
82
|
+
{
|
|
83
|
+
onClick: handleClearValue,
|
|
84
|
+
style: {
|
|
85
|
+
visibility: clearable ? "visible" : "hidden"
|
|
86
|
+
},
|
|
87
|
+
children: /* @__PURE__ */ jsx(Clear, {})
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] }),
|
|
91
|
+
disableInjectingGlobalStyles: true,
|
|
92
|
+
// disable auto-fill animations and increase rendering perf
|
|
93
|
+
inputProps: {
|
|
94
|
+
style: {
|
|
95
|
+
fontSize: "small",
|
|
96
|
+
color: previousValue !== void 0 && previousValue === parseFloat(value) && !valueModified ? "grey" : void 0,
|
|
97
|
+
// grey out the value if it is the same as the previous one
|
|
98
|
+
textAlign: style?.textAlign ?? "left"
|
|
99
|
+
},
|
|
100
|
+
inputMode: "numeric",
|
|
101
|
+
pattern: "[0-9]*",
|
|
102
|
+
lang: "en-US",
|
|
103
|
+
// to have '.' as decimal separator
|
|
104
|
+
...inputProps
|
|
105
|
+
}
|
|
104
106
|
}
|
|
105
107
|
},
|
|
106
108
|
...hideErrorMessage ? {} : genHelperError(error?.message),
|
|
@@ -25,14 +25,16 @@ function TableTextInput({ name, hideErrorMessage, inputProps, ...props }) {
|
|
|
25
25
|
size: "small",
|
|
26
26
|
fullWidth: true,
|
|
27
27
|
inputRef: ref,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
slotProps: {
|
|
29
|
+
input: {
|
|
30
|
+
disableInjectingGlobalStyles: true,
|
|
31
|
+
// disable auto-fill animations and increase rendering perf
|
|
32
|
+
inputProps: {
|
|
33
|
+
style: {
|
|
34
|
+
fontSize: "small"
|
|
35
|
+
},
|
|
36
|
+
...inputProps
|
|
37
|
+
}
|
|
36
38
|
}
|
|
37
39
|
},
|
|
38
40
|
...hideErrorMessage ? {} : genHelperError(error?.message),
|
|
@@ -44,10 +44,12 @@ function ExpandingTextField({
|
|
|
44
44
|
inputProps: { "data-testid": "DescriptionInputField" }
|
|
45
45
|
},
|
|
46
46
|
helperText: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: descriptionCounter }),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
slotProps: {
|
|
48
|
+
formHelperText: {
|
|
49
|
+
sx: {
|
|
50
|
+
ml: "auto",
|
|
51
|
+
color: (theme) => isOverTheLimit ? theme.palette.error.main : theme.palette.text.secondary
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
54
|
},
|
|
53
55
|
...rowsToDisplay && { rows: rowsToDisplay },
|