@gridsuite/commons-ui 0.195.0 → 0.197.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.
Files changed (46) hide show
  1. package/dist/components/csvDownloader/use-csv-export.js +6 -2
  2. package/dist/components/index.d.ts +1 -0
  3. package/dist/components/index.js +53 -0
  4. package/dist/components/network-modification-table/columns-definition.d.ts +26 -0
  5. package/dist/components/network-modification-table/columns-definition.js +36 -0
  6. package/dist/components/network-modification-table/index.d.ts +13 -0
  7. package/dist/components/network-modification-table/index.js +55 -0
  8. package/dist/components/network-modification-table/network-modification-table-styles.d.ts +210 -0
  9. package/dist/components/network-modification-table/network-modification-table-styles.js +333 -0
  10. package/dist/components/network-modification-table/network-modifications-table.d.ts +20 -0
  11. package/dist/components/network-modification-table/network-modifications-table.js +166 -0
  12. package/dist/components/network-modification-table/renderers/depth-box.d.ts +6 -0
  13. package/dist/components/network-modification-table/renderers/depth-box.js +21 -0
  14. package/dist/components/network-modification-table/renderers/drag-handle-cell.d.ts +5 -0
  15. package/dist/components/network-modification-table/renderers/drag-handle-cell.js +10 -0
  16. package/dist/components/network-modification-table/renderers/index.d.ts +12 -0
  17. package/dist/components/network-modification-table/renderers/index.js +14 -0
  18. package/dist/components/network-modification-table/renderers/name-cell.d.ts +7 -0
  19. package/dist/components/network-modification-table/renderers/name-cell.js +84 -0
  20. package/dist/components/network-modification-table/renderers/network-modification-node-editor-name-header.d.ts +14 -0
  21. package/dist/components/network-modification-table/renderers/network-modification-node-editor-name-header.js +40 -0
  22. package/dist/components/network-modification-table/renderers/select-cell.d.ts +8 -0
  23. package/dist/components/network-modification-table/renderers/select-cell.js +60 -0
  24. package/dist/components/network-modification-table/renderers/select-header-cell.d.ts +7 -0
  25. package/dist/components/network-modification-table/renderers/select-header-cell.js +26 -0
  26. package/dist/components/network-modification-table/row/drag-row-clone.d.ts +7 -0
  27. package/dist/components/network-modification-table/row/drag-row-clone.js +35 -0
  28. package/dist/components/network-modification-table/row/index.d.ts +8 -0
  29. package/dist/components/network-modification-table/row/index.js +6 -0
  30. package/dist/components/network-modification-table/row/modification-row.d.ts +12 -0
  31. package/dist/components/network-modification-table/row/modification-row.js +117 -0
  32. package/dist/components/network-modification-table/use-modifications-drag-and-drop.d.ts +21 -0
  33. package/dist/components/network-modification-table/use-modifications-drag-and-drop.js +170 -0
  34. package/dist/components/network-modification-table/utils.d.ts +40 -0
  35. package/dist/components/network-modification-table/utils.js +164 -0
  36. package/dist/hooks/useModificationLabelComputer.d.ts +1 -12
  37. package/dist/index.js +59 -1
  38. package/dist/module-tanstack.d.js +1 -0
  39. package/dist/services/index.js +6 -1
  40. package/dist/services/networkModification.d.ts +21 -0
  41. package/dist/services/networkModification.js +34 -0
  42. package/dist/utils/types/index.d.ts +1 -0
  43. package/dist/utils/types/network-modification-metadata.d.ts +15 -0
  44. package/dist/utils/types/network-modification-metadata.js +1 -0
  45. package/dist/utils/types/network-modification-types.d.ts +5 -6
  46. package/package.json +3 -1
@@ -25,8 +25,12 @@ const useCsvExport = () => {
25
25
  if (params.column.getColId() === "limitName") {
26
26
  return formatNAValue(params.value);
27
27
  }
28
- if (props.language === LANG_FRENCH && typeof params.value === "number") {
29
- return params.value.toString().replace(".", ",");
28
+ if (typeof params.value === "number") {
29
+ const fractionDigits = params.column.getColDef()?.cellRendererParams?.fractionDigits ?? params.column.getColDef()?.context?.fractionDigits;
30
+ const roundedValue = fractionDigits != null && !Number.isNaN(params.value) ? params.value.toFixed(fractionDigits) : params.value;
31
+ if (props.language === LANG_FRENCH) {
32
+ return roundedValue.toString().replace(".", ",");
33
+ }
30
34
  }
31
35
  return params.value;
32
36
  };
@@ -31,3 +31,4 @@ export * from './muiTable';
31
31
  export * from './resizablePanels';
32
32
  export * from './network-modifications';
33
33
  export * from './node';
34
+ export * from './network-modification-table';
@@ -244,9 +244,23 @@ import { emptyModificationByAssignmentFormData, modificationByAssignmentDtoToFor
244
244
  import { DataType as DataType2 } from "./network-modifications/by-filter/assignment/assignment/assignment.type.js";
245
245
  import { BuildStatusChip } from "./node/build-status-chip.js";
246
246
  import { BuildStatus } from "./node/constant.js";
247
+ import { COLUMNS_WITHOUT_BORDER, DEPTH_CELL_WIDTH, DROP_FORBIDDEN_INDICATOR_BOTTOM, DROP_FORBIDDEN_INDICATOR_TOP, DROP_INDICATOR_BOTTOM, DROP_INDICATOR_TOP, MODIFICATION_ROW_HEIGHT, createCellBorderColor, createCellContentWrapperSx, createCellStyle, createEditDescriptionStyle, createHeaderCellStyle, createModificationNameCellStyle, createNameCellLabelBoxSx, createNameCellRootStyle, createRootNetworkChipCellSx, createRowSx, networkModificationTableStyles } from "./network-modification-table/network-modification-table-styles.js";
248
+ import { AUTO_EXTENSIBLE_COLUMNS, BASE_MODIFICATION_TABLE_COLUMNS, computeTagMinSize } from "./network-modification-table/columns-definition.js";
249
+ import { NetworkModificationsTable } from "./network-modification-table/network-modifications-table.js";
250
+ import { useModificationsDragAndDrop } from "./network-modification-table/use-modifications-drag-and-drop.js";
251
+ import { DepthBox } from "./network-modification-table/renderers/depth-box.js";
252
+ import { DragHandleCell } from "./network-modification-table/renderers/drag-handle-cell.js";
253
+ import { NameCell } from "./network-modification-table/renderers/name-cell.js";
254
+ import { NetworkModificationEditorNameHeader } from "./network-modification-table/renderers/network-modification-node-editor-name-header.js";
255
+ import { SelectCell } from "./network-modification-table/renderers/select-cell.js";
256
+ import { SelectHeaderCell } from "./network-modification-table/renderers/select-header-cell.js";
257
+ import { DragCloneRow } from "./network-modification-table/row/drag-row-clone.js";
258
+ import { ModificationRow } from "./network-modification-table/row/modification-row.js";
259
+ import { fetchSubModificationsForExpandedRows, findAllLoadedCompositeModifications, findModificationInTree, formatToComposedModification, isCompositeModification, mergeSubModificationsIntoTree, moveSubModificationInTree, updateModificationFieldInTree, updateSubModificationsOfACompositeInTree } from "./network-modification-table/utils.js";
247
260
  export {
248
261
  ACCURACY,
249
262
  ACTIVE,
263
+ AUTO_EXTENSIBLE_COLUMNS,
250
264
  AboutDialog,
251
265
  ActivableChip,
252
266
  AddButton,
@@ -259,6 +273,7 @@ export {
259
273
  AutocompleteInput,
260
274
  AutocompleteWithFavorites,
261
275
  BALANCE_TYPE,
276
+ BASE_MODIFICATION_TABLE_COLUMNS,
262
277
  BooleanCellRenderer,
263
278
  BooleanInput,
264
279
  BooleanNullableCellRenderer,
@@ -278,6 +293,7 @@ export {
278
293
  COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS,
279
294
  COLUMNS_DEFINITIONS_NODES,
280
295
  COLUMNS_DEFINITIONS_PSTS,
296
+ COLUMNS_WITHOUT_BORDER,
281
297
  COMBINATOR_OPTIONS,
282
298
  COMMON_PARAMETERS,
283
299
  COMPONENT_LIBRARY,
@@ -329,12 +345,18 @@ export {
329
345
  DEFAULT_REACTIVE_SLACKS_THRESHOLD,
330
346
  DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD,
331
347
  DEFAULT_UPDATE_BUS_VOLTAGE,
348
+ DEPTH_CELL_WIDTH,
332
349
  DESCRIPTION,
333
350
  DIAGONAL_LABEL,
334
351
  DISTRIBUTED_SLACK,
335
352
  DISTRIBUTION_KEY,
353
+ DROP_FORBIDDEN_INDICATOR_BOTTOM,
354
+ DROP_FORBIDDEN_INDICATOR_TOP,
355
+ DROP_INDICATOR_BOTTOM,
356
+ DROP_INDICATOR_TOP,
336
357
  DataType,
337
358
  DefaultCellRenderer,
359
+ DepthBox,
338
360
  DescriptionField,
339
361
  DescriptionInput,
340
362
  DescriptionModificationDialog,
@@ -346,6 +368,8 @@ export {
346
368
  DndTableAddRowsDialog,
347
369
  DndTableBottomLeftButtons,
348
370
  DndTableBottomRightButtons,
371
+ DragCloneRow,
372
+ DragHandleCell,
349
373
  DynamicMarginCalculationInline,
350
374
  DynamicSecurityAnalysisInline,
351
375
  DynamicSimulationInline,
@@ -443,11 +467,13 @@ export {
443
467
  MAX_ROWS_NUMBER,
444
468
  MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
445
469
  MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
470
+ MODIFICATION_ROW_HEIGHT,
446
471
  MONITORED_BRANCHES_EQUIPMENT_TYPES,
447
472
  MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES,
448
473
  MessageLogCellRenderer,
449
474
  MidFormError,
450
475
  ModificationByAssignmentForm,
476
+ ModificationRow,
451
477
  ModifyElementSelection,
452
478
  MuiSelectInput,
453
479
  MultipleAutocompleteInput,
@@ -458,7 +484,10 @@ export {
458
484
  NODE_CLUSTER,
459
485
  NODE_CLUSTER_FILTER_IDS,
460
486
  NadPositionsGenerationMode,
487
+ NameCell,
488
+ NetworkModificationEditorNameHeader,
461
489
  NetworkModificationNameCellRenderer,
490
+ NetworkModificationsTable,
462
491
  NetworkVisualizationParametersInline,
463
492
  NetworkVisualizationTabValues,
464
493
  NetworkVisualizationsParametersEditionDialog,
@@ -557,7 +586,9 @@ export {
557
586
  SWITCH_TYPE,
558
587
  SecurityAnalysisParametersDialog,
559
588
  SecurityAnalysisParametersInline,
589
+ SelectCell,
560
590
  SelectClearable,
591
+ SelectHeaderCell,
561
592
  SelectInput,
562
593
  SelectWithConfirmationInput,
563
594
  SensiBranchesTabValues,
@@ -623,10 +654,21 @@ export {
623
654
  byFilterDeletionDtoToForm,
624
655
  byFilterDeletionFormSchema,
625
656
  byFilterDeletionFormToDto,
657
+ computeTagMinSize,
626
658
  copyEquipmentPropertiesForCreation,
627
659
  countRules,
660
+ createCellBorderColor,
661
+ createCellContentWrapperSx,
662
+ createCellStyle,
628
663
  createConnectivityData,
664
+ createEditDescriptionStyle,
665
+ createHeaderCellStyle,
666
+ createModificationNameCellStyle,
667
+ createNameCellLabelBoxSx,
668
+ createNameCellRootStyle,
629
669
  createPropertyModification,
670
+ createRootNetworkChipCellSx,
671
+ createRowSx,
630
672
  creationPropertiesSchema,
631
673
  dispatchUser,
632
674
  doesNodeHasChildren,
@@ -643,8 +685,12 @@ export {
643
685
  extractDefault,
644
686
  fetchCsvSeparator,
645
687
  fetchPredefinedProperties,
688
+ fetchSubModificationsForExpandedRows,
646
689
  filledTextField,
690
+ findAllLoadedCompositeModifications,
691
+ findModificationInTree,
647
692
  formatComputingTypeLabel,
693
+ formatToComposedModification,
648
694
  genHelperError,
649
695
  generateTreeViewFinderClass,
650
696
  getActivePowerSetPointSchema,
@@ -709,6 +755,7 @@ export {
709
755
  initializedProperty,
710
756
  intlInitialVoltageProfileMode,
711
757
  intlPredefinedParametersOptions,
758
+ isCompositeModification,
712
759
  isFieldRequired,
713
760
  isFloatNumber,
714
761
  isIntegerNumber,
@@ -726,10 +773,13 @@ export {
726
773
  login,
727
774
  logout,
728
775
  mergeModificationAndEquipmentProperties,
776
+ mergeSubModificationsIntoTree,
729
777
  modificationByAssignmentDtoToForm,
730
778
  modificationByAssignmentFormSchema,
731
779
  modificationByAssignmentFormToDto,
732
780
  modificationPropertiesSchema,
781
+ moveSubModificationInTree,
782
+ networkModificationTableStyles,
733
783
  newEquipmentDeletionDto,
734
784
  onlyStartedGeneratorsOptions,
735
785
  queryValidator,
@@ -755,6 +805,8 @@ export {
755
805
  toModificationProperties,
756
806
  translateSwitchKinds,
757
807
  unscrollableDialogStyles,
808
+ updateModificationFieldInTree,
809
+ updateSubModificationsOfACompositeInTree,
758
810
  useConvertValue,
759
811
  useCsvExport,
760
812
  useCustomFormContext,
@@ -762,6 +814,7 @@ export {
762
814
  useGlobalAnnouncement,
763
815
  useHvdcLccDeletion,
764
816
  useListenerManager,
817
+ useModificationsDragAndDrop,
765
818
  useNotificationsListener,
766
819
  useParametersForm,
767
820
  useTabs,
@@ -0,0 +1,26 @@
1
+ import { NetworkModificationEditorNameHeaderProps } from './renderers';
2
+ export declare const computeTagMinSize: (tag: string) => number;
3
+ export declare const BASE_MODIFICATION_TABLE_COLUMNS: {
4
+ DRAG_HANDLE: {
5
+ id: string;
6
+ autoExtensible: boolean;
7
+ };
8
+ SELECT: {
9
+ id: string;
10
+ autoExtensible: boolean;
11
+ };
12
+ NAME: {
13
+ id: string;
14
+ autoExtensible: boolean;
15
+ };
16
+ DESCRIPTION: {
17
+ id: string;
18
+ autoExtensible: boolean;
19
+ };
20
+ SWITCH: {
21
+ id: string;
22
+ autoExtensible: boolean;
23
+ };
24
+ };
25
+ export declare const AUTO_EXTENSIBLE_COLUMNS: string[];
26
+ export type NameHeaderProps = Omit<NetworkModificationEditorNameHeaderProps, 'modificationCount'>;
@@ -0,0 +1,36 @@
1
+ const CHIP_PADDING_PX = 24;
2
+ const CHAR_WIDTH_PX = 8;
3
+ const COLUMN_PADDING_PX = 12;
4
+ const MIN_COLUMN_SIZE = 40;
5
+ const computeTagMinSize = (tag) => {
6
+ const chipContentWidth = tag.length * CHAR_WIDTH_PX + CHIP_PADDING_PX;
7
+ return Math.max(chipContentWidth + COLUMN_PADDING_PX, MIN_COLUMN_SIZE);
8
+ };
9
+ const BASE_MODIFICATION_TABLE_COLUMNS = {
10
+ DRAG_HANDLE: {
11
+ id: "dragHandle",
12
+ autoExtensible: false
13
+ },
14
+ SELECT: {
15
+ id: "select",
16
+ autoExtensible: false
17
+ },
18
+ NAME: {
19
+ id: "modificationName",
20
+ autoExtensible: true
21
+ },
22
+ DESCRIPTION: {
23
+ id: "modificationDescription",
24
+ autoExtensible: false
25
+ },
26
+ SWITCH: {
27
+ id: "switch",
28
+ autoExtensible: false
29
+ }
30
+ };
31
+ const AUTO_EXTENSIBLE_COLUMNS = Object.values(BASE_MODIFICATION_TABLE_COLUMNS).filter((column) => column.autoExtensible).map((column) => column.id);
32
+ export {
33
+ AUTO_EXTENSIBLE_COLUMNS,
34
+ BASE_MODIFICATION_TABLE_COLUMNS,
35
+ computeTagMinSize
36
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright (c) 2026, RTE (http://www.rte-france.com)
3
+ * This Source Code Form is subject to the terms of the Mozilla Public
4
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
+ */
7
+ export * from './network-modification-table-styles';
8
+ export * from './columns-definition';
9
+ export * from './network-modifications-table';
10
+ export * from './use-modifications-drag-and-drop';
11
+ export * from './renderers';
12
+ export * from './row';
13
+ export * from './utils';
@@ -0,0 +1,55 @@
1
+ import { COLUMNS_WITHOUT_BORDER, DEPTH_CELL_WIDTH, DROP_FORBIDDEN_INDICATOR_BOTTOM, DROP_FORBIDDEN_INDICATOR_TOP, DROP_INDICATOR_BOTTOM, DROP_INDICATOR_TOP, MODIFICATION_ROW_HEIGHT, createCellBorderColor, createCellContentWrapperSx, createCellStyle, createEditDescriptionStyle, createHeaderCellStyle, createModificationNameCellStyle, createNameCellLabelBoxSx, createNameCellRootStyle, createRootNetworkChipCellSx, createRowSx, networkModificationTableStyles } from "./network-modification-table-styles.js";
2
+ import { AUTO_EXTENSIBLE_COLUMNS, BASE_MODIFICATION_TABLE_COLUMNS, computeTagMinSize } from "./columns-definition.js";
3
+ import { NetworkModificationsTable } from "./network-modifications-table.js";
4
+ import { useModificationsDragAndDrop } from "./use-modifications-drag-and-drop.js";
5
+ import { DepthBox } from "./renderers/depth-box.js";
6
+ import { DragHandleCell } from "./renderers/drag-handle-cell.js";
7
+ import { NameCell } from "./renderers/name-cell.js";
8
+ import { NetworkModificationEditorNameHeader } from "./renderers/network-modification-node-editor-name-header.js";
9
+ import { SelectCell } from "./renderers/select-cell.js";
10
+ import { SelectHeaderCell } from "./renderers/select-header-cell.js";
11
+ import { DragCloneRow } from "./row/drag-row-clone.js";
12
+ import { ModificationRow } from "./row/modification-row.js";
13
+ import { fetchSubModificationsForExpandedRows, findAllLoadedCompositeModifications, findModificationInTree, formatToComposedModification, isCompositeModification, mergeSubModificationsIntoTree, moveSubModificationInTree, updateModificationFieldInTree, updateSubModificationsOfACompositeInTree } from "./utils.js";
14
+ export {
15
+ AUTO_EXTENSIBLE_COLUMNS,
16
+ BASE_MODIFICATION_TABLE_COLUMNS,
17
+ COLUMNS_WITHOUT_BORDER,
18
+ DEPTH_CELL_WIDTH,
19
+ DROP_FORBIDDEN_INDICATOR_BOTTOM,
20
+ DROP_FORBIDDEN_INDICATOR_TOP,
21
+ DROP_INDICATOR_BOTTOM,
22
+ DROP_INDICATOR_TOP,
23
+ DepthBox,
24
+ DragCloneRow,
25
+ DragHandleCell,
26
+ MODIFICATION_ROW_HEIGHT,
27
+ ModificationRow,
28
+ NameCell,
29
+ NetworkModificationEditorNameHeader,
30
+ NetworkModificationsTable,
31
+ SelectCell,
32
+ SelectHeaderCell,
33
+ computeTagMinSize,
34
+ createCellBorderColor,
35
+ createCellContentWrapperSx,
36
+ createCellStyle,
37
+ createEditDescriptionStyle,
38
+ createHeaderCellStyle,
39
+ createModificationNameCellStyle,
40
+ createNameCellLabelBoxSx,
41
+ createNameCellRootStyle,
42
+ createRootNetworkChipCellSx,
43
+ createRowSx,
44
+ fetchSubModificationsForExpandedRows,
45
+ findAllLoadedCompositeModifications,
46
+ findModificationInTree,
47
+ formatToComposedModification,
48
+ isCompositeModification,
49
+ mergeSubModificationsIntoTree,
50
+ moveSubModificationInTree,
51
+ networkModificationTableStyles,
52
+ updateModificationFieldInTree,
53
+ updateSubModificationsOfACompositeInTree,
54
+ useModificationsDragAndDrop
55
+ };
@@ -0,0 +1,210 @@
1
+ import { VirtualItem } from '@tanstack/react-virtual';
2
+ import { SxProps, Theme } from '@mui/material';
3
+ import { CSSProperties } from 'react';
4
+ export declare const MODIFICATION_ROW_HEIGHT = 41;
5
+ export declare const DEPTH_CELL_WIDTH: number;
6
+ export declare const createCellBorderColor: (theme: Theme) => string;
7
+ export declare const networkModificationTableStyles: {
8
+ readonly tableWrapper: (theme: Theme) => {
9
+ display: "flex";
10
+ flexDirection: "column";
11
+ flexGrow: number;
12
+ margin: string;
13
+ border: `1px solid ${string}`;
14
+ overflow: "hidden";
15
+ minHeight: number;
16
+ };
17
+ readonly container: {
18
+ readonly position: "relative";
19
+ readonly flexGrow: 1;
20
+ readonly overflow: "auto";
21
+ readonly height: "100%";
22
+ };
23
+ readonly table: (theme: Theme) => {
24
+ width: string;
25
+ tableLayout: "fixed";
26
+ borderCollapse: "collapse";
27
+ backgroundColor: string;
28
+ };
29
+ readonly thead: (theme: Theme) => {
30
+ backgroundColor: string;
31
+ position: "sticky";
32
+ top: number;
33
+ zIndex: number;
34
+ width: string;
35
+ '& tr:hover': {
36
+ backgroundColor: "transparent";
37
+ };
38
+ };
39
+ readonly tableRow: {
40
+ readonly display: "flex";
41
+ readonly alignItems: "center";
42
+ readonly transition: "none";
43
+ readonly opacity: 1;
44
+ };
45
+ readonly tableBody: {
46
+ readonly position: "relative";
47
+ };
48
+ readonly tableCell: {
49
+ readonly fontSize: "small";
50
+ readonly minWidth: 0;
51
+ readonly display: "flex";
52
+ };
53
+ readonly dragRowClone: (theme: Theme) => {
54
+ backgroundColor: "background.paper";
55
+ boxShadow: number;
56
+ opacity: number;
57
+ border: "1px solid #f5f5f5";
58
+ display: "flex";
59
+ width: string;
60
+ padding: string;
61
+ };
62
+ readonly overflow: {
63
+ readonly whiteSpace: "pre";
64
+ readonly textOverflow: "ellipsis";
65
+ readonly overflow: "hidden";
66
+ };
67
+ readonly selectCheckBox: (theme: Theme) => {
68
+ padding: string;
69
+ };
70
+ readonly dragHandle: (theme: Theme) => {
71
+ display: "flex";
72
+ alignItems: "center";
73
+ cursor: "grab";
74
+ opacity: number;
75
+ padding: string;
76
+ 'tr:hover &': {
77
+ opacity: number;
78
+ };
79
+ };
80
+ readonly dragIndicatorIcon: {
81
+ readonly width: "16px";
82
+ readonly height: "16px";
83
+ };
84
+ readonly modificationLabel: {
85
+ readonly textOverflow: "ellipsis";
86
+ readonly overflow: "hidden";
87
+ readonly whiteSpace: "nowrap";
88
+ readonly paddingLeft: "0.5vw";
89
+ };
90
+ readonly rootNetworkHeader: {
91
+ readonly width: "100%";
92
+ readonly display: "flex";
93
+ readonly justifyContent: "center";
94
+ };
95
+ readonly columnCell: {
96
+ readonly select: {
97
+ readonly padding: 2;
98
+ readonly justifyContent: "center";
99
+ };
100
+ readonly modificationName: {
101
+ readonly cursor: "pointer";
102
+ readonly minWidth: 0;
103
+ readonly overflow: "hidden";
104
+ readonly flex: 1;
105
+ };
106
+ readonly rootNetworkChip: {
107
+ readonly textAlign: "center";
108
+ };
109
+ };
110
+ readonly nameCellInnerRow: {
111
+ readonly position: "relative";
112
+ readonly display: "flex";
113
+ readonly alignItems: "center";
114
+ readonly gap: 0;
115
+ readonly flex: 1;
116
+ readonly minWidth: 0;
117
+ readonly alignSelf: "stretch";
118
+ };
119
+ readonly nameCellTogglerBox: {
120
+ readonly width: `${number}px`;
121
+ readonly alignItems: "center";
122
+ readonly justifyContent: "center";
123
+ };
124
+ readonly nameCellToggleButton: {
125
+ readonly padding: "4px";
126
+ readonly width: `${number}px`;
127
+ readonly height: `${number}px`;
128
+ };
129
+ readonly nameCellLabelBoxPlain: {
130
+ readonly flex: 1;
131
+ readonly minWidth: 0;
132
+ };
133
+ readonly folderDepthBox: (theme: Theme) => {
134
+ width: string;
135
+ display: "flex";
136
+ alignSelf: "stretch";
137
+ position: "relative";
138
+ borderRight: string;
139
+ };
140
+ readonly depthBox: (theme: Theme) => {
141
+ width: string;
142
+ display: "flex";
143
+ justifyContent: "flex-start";
144
+ alignSelf: "stretch";
145
+ position: "relative";
146
+ borderRight: string;
147
+ };
148
+ readonly depthBoxTick: (theme: Theme) => {
149
+ position: "absolute";
150
+ top: string;
151
+ left: string;
152
+ width: string;
153
+ height: string;
154
+ backgroundColor: string;
155
+ };
156
+ readonly modificationNameHeader: {
157
+ readonly display: "flex";
158
+ readonly flexDirection: "row";
159
+ readonly alignItems: "center";
160
+ readonly minWidth: 0;
161
+ readonly gap: 2;
162
+ readonly '& .MuiTypography-root': {
163
+ readonly fontSize: "inherit";
164
+ };
165
+ };
166
+ readonly icon: (theme: Theme) => {
167
+ width: string;
168
+ };
169
+ readonly iconEdit: (theme: Theme) => {
170
+ marginRight: string;
171
+ };
172
+ readonly circularProgress: (theme: Theme) => {
173
+ marginRight: string;
174
+ color: string;
175
+ };
176
+ readonly modificationCircularProgress: (theme: Theme) => {
177
+ marginRight: string;
178
+ color: string;
179
+ };
180
+ readonly toolbarCircularProgress: (theme: Theme) => {
181
+ display: "flex";
182
+ alignItems: "center";
183
+ justifyContent: "center";
184
+ marginLeft: string;
185
+ marginRight: string;
186
+ color: string;
187
+ };
188
+ };
189
+ export declare const DROP_INDICATOR_TOP = "inset 0 2px 0 #90caf9";
190
+ export declare const DROP_INDICATOR_BOTTOM = "inset 0 -2px 0 #90caf9";
191
+ export declare const DROP_FORBIDDEN_INDICATOR_TOP = "inset 0 2px 0 #FF3636";
192
+ export declare const DROP_FORBIDDEN_INDICATOR_BOTTOM = "inset 0 -2px 0 #FF3636";
193
+ export declare const createRowSx: (theme: Theme, isHighlighted: boolean, isDragging: boolean, virtualRow: VirtualItem, depth: number, isComposite: boolean) => SxProps;
194
+ export declare const createModificationNameCellStyle: (activated: boolean) => CSSProperties;
195
+ export declare const createRootNetworkChipCellSx: (activated: boolean) => SxProps;
196
+ export declare const createEditDescriptionStyle: (description: string | undefined) => SxProps;
197
+ export declare const createCellStyle: (cell: any, isAutoExtensible: boolean) => any;
198
+ export declare const createHeaderCellStyle: (header: any, theme: Theme, isFirst: boolean, isLast: boolean, isAutoExtensible: boolean) => any;
199
+ export declare const COLUMNS_WITHOUT_BORDER: Set<string>;
200
+ export declare const createCellContentWrapperSx: (theme: Theme, withoutBorders: boolean) => SxProps;
201
+ export declare const createNameCellRootStyle: (theme: Theme, isExpanded: boolean, depth: number) => {
202
+ borderTop?: string | undefined;
203
+ borderBottom?: string | undefined;
204
+ height: string;
205
+ width: string;
206
+ display: string;
207
+ alignItems: string;
208
+ gap: number;
209
+ };
210
+ export declare const createNameCellLabelBoxSx: (isExpanded: boolean, depth: number) => SxProps<Theme>;