@gridsuite/commons-ui 0.212.0 → 0.214.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 (505) hide show
  1. package/dist/components/customAGGrid/cell-renderers.js +1 -1
  2. package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +18 -12
  3. package/dist/components/dnd-table/dnd-table-bottom-left-buttons.js +1 -1
  4. package/dist/components/dnd-table/dnd-table-bottom-right-buttons.js +1 -1
  5. package/dist/components/dnd-table/dnd-table.js +27 -21
  6. package/dist/components/dnd-table-v2/deletable-table-row.js +1 -1
  7. package/dist/components/dnd-table-v2/dnd-table-add-rows-dialog.js +18 -12
  8. package/dist/components/dnd-table-v2/dnd-table-bottom-left-buttons.js +1 -1
  9. package/dist/components/dnd-table-v2/dnd-table-bottom-right-buttons.js +1 -1
  10. package/dist/components/dnd-table-v2/dnd-table-row.js +34 -21
  11. package/dist/components/dnd-table-v2/dnd-table.js +18 -13
  12. package/dist/components/elementSearch/elementItem/EquipmentItem.js +1 -1
  13. package/dist/components/elementSearch/tagRenderer/TagRenderer.js +1 -1
  14. package/dist/components/filter/FilterCreationDialog.js +1 -1
  15. package/dist/components/filter/FilterForm.js +5 -3
  16. package/dist/components/filter/HeaderFilterForm.js +17 -11
  17. package/dist/components/filter/expert/ExpertFilterEditionDialog.js +1 -1
  18. package/dist/components/filter/expert/ExpertFilterForm.d.ts +1 -1
  19. package/dist/components/filter/expert/ExpertFilterForm.js +20 -26
  20. package/dist/components/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js +1 -1
  21. package/dist/components/filter/explicitNaming/ExplicitNamingFilterForm.js +29 -27
  22. package/dist/components/filter/utils/filterApi.js +3 -3
  23. package/dist/components/flatParameters/FlatParameters.js +2 -2
  24. package/dist/components/grid/grid-item.js +1 -1
  25. package/dist/components/index.d.ts +1 -13
  26. package/dist/components/index.js +108 -92
  27. package/dist/components/muiTable/OverflowableTableCell.d.ts +1 -1
  28. package/dist/components/muiTable/OverflowableTableCell.js +1 -1
  29. package/dist/components/muiTable/OverflowableTableCellWithCheckbox.d.ts +1 -1
  30. package/dist/components/muiTable/OverflowableTableCellWithCheckbox.js +1 -1
  31. package/dist/components/network-modification-table/columns-definition.d.ts +0 -2
  32. package/dist/components/network-modification-table/index.js +16 -0
  33. package/dist/components/network-modification-table/network-modifications-table.d.ts +8 -2
  34. package/dist/components/network-modification-table/network-modifications-table.js +33 -8
  35. package/dist/components/network-modification-table/renderers/cell-renderers.d.ts +23 -0
  36. package/dist/components/network-modification-table/renderers/cell-renderers.js +103 -0
  37. package/dist/components/network-modification-table/renderers/description-cell.d.ts +9 -0
  38. package/dist/components/network-modification-table/renderers/description-cell.js +75 -0
  39. package/dist/components/network-modification-table/renderers/index.d.ts +4 -0
  40. package/dist/components/network-modification-table/renderers/index.js +17 -1
  41. package/dist/components/network-modification-table/renderers/name-cell.d.ts +2 -2
  42. package/dist/components/network-modification-table/renderers/name-cell.js +29 -10
  43. package/dist/components/network-modification-table/renderers/root-network-chip-cell.d.ts +13 -0
  44. package/dist/components/network-modification-table/renderers/root-network-chip-cell.js +114 -0
  45. package/dist/components/network-modification-table/renderers/select-cell.js +2 -2
  46. package/dist/components/network-modification-table/renderers/select-header-cell.js +2 -2
  47. package/dist/components/network-modification-table/renderers/switch-cell.d.ts +9 -0
  48. package/dist/components/network-modification-table/renderers/switch-cell.js +63 -0
  49. package/dist/components/network-modifications/battery/creation/BatteryCreationForm.js +17 -11
  50. package/dist/components/network-modifications/battery/creation/batteryCreation.utils.js +15 -9
  51. package/dist/components/network-modifications/by-filter/assignment/assignment/assignment-form.js +23 -16
  52. package/dist/components/network-modifications/by-filter/assignment/modification-by-assignment-form.js +20 -15
  53. package/dist/components/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +21 -14
  54. package/dist/components/network-modifications/common/activePowerControl/ActivePowerControlForm.js +19 -13
  55. package/dist/components/network-modifications/common/connectivity/ConnectivityForm.js +19 -13
  56. package/dist/components/network-modifications/common/connectivity/PositionForm.js +19 -13
  57. package/dist/components/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +19 -13
  58. package/dist/components/network-modifications/common/measurements/PowerWithValidityForm.js +20 -14
  59. package/dist/components/network-modifications/common/properties/PropertiesForm.js +16 -10
  60. package/dist/components/network-modifications/common/properties/PropertyForm.js +17 -11
  61. package/dist/components/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +17 -11
  62. package/dist/components/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.js +17 -11
  63. package/dist/components/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +17 -11
  64. package/dist/components/network-modifications/common/setpoints/SetPointsForm.js +16 -10
  65. package/dist/components/network-modifications/common/shortCircuit/ShortCircuitForm.js +19 -13
  66. package/dist/components/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +16 -10
  67. package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.utils.js +15 -9
  68. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +17 -11
  69. package/dist/components/network-modifications/index.js +17 -11
  70. package/dist/components/network-modifications/load/common/LoadDialogHeader.js +17 -11
  71. package/dist/components/network-modifications/load/creation/loadCreation.utils.js +15 -9
  72. package/dist/components/network-modifications/load/modification/loadModification.utils.js +15 -9
  73. package/dist/components/network-modifications/shunt-compensator/common/CharacteristicsForm.js +19 -13
  74. package/dist/components/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +19 -13
  75. package/dist/components/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.js +15 -9
  76. package/dist/components/network-modifications/substation/creation/SubstationCreationForm.js +20 -14
  77. package/dist/components/network-modifications/substation/modification/SubstationModificationForm.js +20 -14
  78. package/dist/components/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +19 -13
  79. package/dist/components/network-modifications/voltageLevel/creation/index.js +17 -11
  80. package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +16 -10
  81. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +18 -12
  82. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +1 -1
  83. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusForm.js +18 -12
  84. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +16 -10
  85. package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +20 -14
  86. package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +18 -12
  87. package/dist/components/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +15 -9
  88. package/dist/components/network-modifications/voltageLevel/index.js +17 -11
  89. package/dist/components/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +21 -15
  90. package/dist/components/notifications/NotificationsProvider.js +12 -1
  91. package/dist/components/parameters/common/ProviderParam.js +19 -13
  92. package/dist/components/parameters/common/contingency-table/columns-definitions.js +15 -10
  93. package/dist/components/parameters/common/hook/use-parameters-form.js +1 -1
  94. package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +21 -15
  95. package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +17 -11
  96. package/dist/components/parameters/common/name-element-editor/name-element-editor-form.js +2 -2
  97. package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +19 -13
  98. package/dist/components/parameters/common/parameter-field.js +27 -23
  99. package/dist/components/parameters/common/parameter-table/parameter-table.js +1 -1
  100. package/dist/components/parameters/common/parameter-table/table-cell.js +30 -17
  101. package/dist/components/parameters/common/parameter-table/table-row.js +1 -1
  102. package/dist/components/parameters/common/parameter-table-field/parameter-table-field.js +17 -11
  103. package/dist/components/parameters/common/parameters-creation-dialog.js +5 -3
  104. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +20 -14
  105. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table.js +1 -1
  106. package/dist/components/parameters/common/widget/parameter-float.js +20 -14
  107. package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +20 -13
  108. package/dist/components/parameters/common/widget/parameter-line-slider.js +19 -13
  109. package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +15 -11
  110. package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +17 -12
  111. package/dist/components/parameters/dynamic-margin-calculation/loads-variations-parameters.js +16 -11
  112. package/dist/components/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +15 -11
  113. package/dist/components/parameters/dynamic-security-analysis/contingency-parameters.js +15 -11
  114. package/dist/components/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +17 -12
  115. package/dist/components/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +15 -11
  116. package/dist/components/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +16 -12
  117. package/dist/components/parameters/dynamic-simulation/curve/common/grid-buttons.js +1 -1
  118. package/dist/components/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +1 -1
  119. package/dist/components/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +1 -1
  120. package/dist/components/parameters/dynamic-simulation/dynamic-simulation-inline.js +17 -13
  121. package/dist/components/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +15 -11
  122. package/dist/components/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js +15 -11
  123. package/dist/components/parameters/loadflow/load-flow-general-parameters.js +17 -13
  124. package/dist/components/parameters/loadflow/load-flow-parameters-content.js +15 -11
  125. package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +16 -12
  126. package/dist/components/parameters/loadflow/load-flow-parameters-form.js +18 -12
  127. package/dist/components/parameters/loadflow/load-flow-parameters-header.js +19 -15
  128. package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +17 -13
  129. package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +15 -11
  130. package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +16 -12
  131. package/dist/components/parameters/network-visualizations/map-parameters.js +17 -13
  132. package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +19 -13
  133. package/dist/components/parameters/network-visualizations/network-visualizations-form.js +17 -13
  134. package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +16 -11
  135. package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +16 -11
  136. package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +17 -13
  137. package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +20 -14
  138. package/dist/components/parameters/pcc-min/pcc-min-form-utils.js +20 -14
  139. package/dist/components/parameters/pcc-min/pcc-min-parameters-dialog.js +16 -11
  140. package/dist/components/parameters/pcc-min/pcc-min-parameters-form.js +19 -15
  141. package/dist/components/parameters/pcc-min/pcc-min-parameters-inline.js +17 -13
  142. package/dist/components/parameters/pcc-min/use-pcc-min-parameters-form.js +16 -10
  143. package/dist/components/parameters/security-analysis/columns-definitions.js +15 -11
  144. package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +16 -12
  145. package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +19 -14
  146. package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.js +17 -13
  147. package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +15 -11
  148. package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +19 -15
  149. package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js +15 -11
  150. package/dist/components/parameters/sensi/columns-definitions.js +15 -11
  151. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +16 -12
  152. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +19 -15
  153. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +17 -13
  154. package/dist/components/parameters/sensi/sensitivity-parameters-fields.js +19 -13
  155. package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +15 -10
  156. package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +14 -9
  157. package/dist/components/parameters/sensi/utils.d.ts +1 -1
  158. package/dist/components/parameters/sensi/utils.js +16 -12
  159. package/dist/components/parameters/short-circuit/short-circuit-general-tab-panel.js +21 -17
  160. package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +23 -16
  161. package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-row.js +1 -1
  162. package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table.js +1 -1
  163. package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-cell.js +21 -15
  164. package/dist/components/parameters/short-circuit/short-circuit-icc-material-table.js +1 -1
  165. package/dist/components/parameters/short-circuit/short-circuit-parameters-content.js +15 -11
  166. package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +16 -12
  167. package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +18 -12
  168. package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +17 -13
  169. package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +16 -12
  170. package/dist/components/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +17 -13
  171. package/dist/components/parameters/short-circuit/short-circuit-study-area-tab-panel.js +20 -16
  172. package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +20 -16
  173. package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +19 -15
  174. package/dist/components/parameters/voltage-init/general-parameters.js +15 -11
  175. package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +20 -15
  176. package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +20 -15
  177. package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +16 -11
  178. package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +18 -14
  179. package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.js +17 -13
  180. package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +15 -10
  181. package/dist/components/topBar/AboutDialog.js +1 -1
  182. package/dist/components/topBar/TopBar.d.ts +3 -3
  183. package/dist/components/topBar/TopBar.js +11 -11
  184. package/dist/components/topBar/UserInformationDialog.d.ts +3 -3
  185. package/dist/components/topBar/UserInformationDialog.js +10 -7
  186. package/dist/components/treeViewFinder/TreeViewFinder.js +1 -1
  187. package/dist/components/{announcement → ui/announcement}/AnnouncementBanner.d.ts +4 -4
  188. package/dist/components/{announcement → ui/announcement}/AnnouncementBanner.js +4 -4
  189. package/dist/components/ui/announcement/AnnouncementNotification.d.ts +7 -0
  190. package/dist/components/{announcement → ui/announcement}/AnnouncementNotification.js +13 -3
  191. package/dist/components/ui/announcement/useGlobalAnnouncement.d.ts +10 -0
  192. package/dist/components/{announcement → ui/announcement}/useGlobalAnnouncement.js +6 -6
  193. package/dist/components/{checkBoxList → ui/checkBoxList}/CheckBoxListItem.js +4 -4
  194. package/dist/components/{checkBoxList → ui/checkBoxList}/CheckBoxListItemContent.js +4 -4
  195. package/dist/components/{checkBoxList → ui/checkBoxList}/DraggableCheckBoxListItem.js +4 -4
  196. package/dist/components/{checkBoxList → ui/checkBoxList}/DraggableCheckBoxListItemContent.js +4 -4
  197. package/dist/components/{checkBoxList → ui/checkBoxList}/checkBoxList.type.d.ts +1 -1
  198. package/dist/components/{csvDownloader → ui/csvDownloader}/csv-export.type.d.ts +1 -1
  199. package/dist/components/{csvDownloader → ui/csvDownloader}/use-csv-export.js +5 -5
  200. package/dist/components/{dialogs → ui/dialogs}/customMuiDialog/CustomMuiDialog.d.ts +1 -1
  201. package/dist/components/{dialogs → ui/dialogs}/customMuiDialog/CustomMuiDialog.js +3 -3
  202. package/dist/components/{dialogs → ui/dialogs}/descriptionModificationDialog/DescriptionModificationDialog.js +6 -6
  203. package/dist/components/{dialogs → ui/dialogs}/elementSaveDialog/ElementSaveDialog.d.ts +1 -1
  204. package/dist/components/{dialogs → ui/dialogs}/elementSaveDialog/ElementSaveDialog.js +16 -22
  205. package/dist/components/{dialogs → ui/dialogs}/elementSaveDialog/utils.d.ts +1 -1
  206. package/dist/components/{dialogs → ui/dialogs}/elementSaveDialog/utils.js +1 -1
  207. package/dist/components/{dialogs → ui/dialogs}/index.d.ts +1 -0
  208. package/dist/components/{dialogs → ui/dialogs}/index.js +2 -0
  209. package/dist/components/{dialogs → ui/dialogs}/modifyElementSelection/ModifyElementSelection.d.ts +1 -1
  210. package/dist/components/{dialogs → ui/dialogs}/modifyElementSelection/ModifyElementSelection.js +7 -7
  211. package/dist/components/{multipleSelectionDialog → ui/dialogs/multipleSelectionDialog}/MultipleSelectionDialog.d.ts +1 -1
  212. package/dist/components/{multipleSelectionDialog → ui/dialogs/multipleSelectionDialog}/MultipleSelectionDialog.js +1 -1
  213. package/dist/components/{dialogs → ui/dialogs}/popupConfirmationDialog/PopupConfirmationDialog.js +1 -1
  214. package/dist/components/ui/index.d.ts +20 -0
  215. package/dist/components/{inputs → ui}/index.js +56 -2
  216. package/dist/components/{inputs → ui/inputs}/SelectClearable.js +1 -1
  217. package/dist/components/{inputs → ui/inputs}/index.d.ts +0 -2
  218. package/dist/components/ui/inputs/index.js +6 -0
  219. package/dist/components/{menus → ui/menus}/custom-nested-menu.d.ts +1 -1
  220. package/dist/components/{menus → ui/menus}/custom-nested-menu.js +1 -1
  221. package/dist/components/{overflowableText → ui/overflowableText}/OverflowableText.d.ts +1 -1
  222. package/dist/components/{overflowableText → ui/overflowableText}/OverflowableText.js +4 -4
  223. package/dist/components/{inputs → ui}/reactHookForm/DirectoryItemsInput.js +1 -1
  224. package/dist/components/{inputs → ui}/reactHookForm/OverflowableChip.js +1 -1
  225. package/dist/components/{inputs → ui}/reactHookForm/agGridTable/BottomRightButtons.js +1 -1
  226. package/dist/components/{inputs → ui}/reactHookForm/chip-items-input.js +1 -1
  227. package/dist/components/{inputs → ui}/reactHookForm/expandableInput/DeletableRow.js +1 -1
  228. package/dist/components/{inputs → ui}/reactHookForm/expandableInput/ExpandableInput.js +1 -1
  229. package/dist/components/{inputs → ui}/reactHookForm/selectInputs/InputWithPopupConfirmation.js +1 -1
  230. package/dist/components/{inputs → ui}/reactHookForm/selectInputs/SelectWithConfirmationInput.js +1 -1
  231. package/dist/components/{inputs → ui}/reactHookForm/text/DescriptionField.js +1 -1
  232. package/dist/components/{inputs → ui}/reactHookForm/text/DescriptionInput.js +3 -3
  233. package/dist/components/{inputs → ui}/reactHookForm/utils/HelperPreviousValue.js +1 -1
  234. package/dist/components/{inputs → ui}/reactQueryBuilder/CombinatorSelector.js +1 -1
  235. package/dist/index.js +116 -95
  236. package/dist/services/index.js +4 -1
  237. package/dist/services/networkModification.d.ts +8 -1
  238. package/dist/services/networkModification.js +45 -1
  239. package/dist/translations/en/filterEn.d.ts +0 -1
  240. package/dist/translations/en/filterEn.js +0 -1
  241. package/dist/translations/en/filterExpertEn.d.ts +0 -2
  242. package/dist/translations/en/filterExpertEn.js +0 -2
  243. package/dist/translations/en/networkModificationsEn.d.ts +1 -0
  244. package/dist/translations/en/networkModificationsEn.js +4 -3
  245. package/dist/translations/fr/filterExpertFr.d.ts +0 -2
  246. package/dist/translations/fr/filterExpertFr.js +0 -2
  247. package/dist/translations/fr/filterFr.d.ts +0 -1
  248. package/dist/translations/fr/filterFr.js +0 -1
  249. package/dist/translations/fr/networkModificationsFr.d.ts +1 -0
  250. package/dist/translations/fr/networkModificationsFr.js +4 -3
  251. package/dist/utils/constants/index.js +2 -1
  252. package/dist/utils/constants/translationKeys.d.ts +1 -0
  253. package/dist/utils/constants/translationKeys.js +2 -0
  254. package/dist/utils/index.js +4 -2
  255. package/dist/utils/types/equipmentTypes.d.ts +1 -0
  256. package/dist/utils/types/equipmentTypes.js +5 -1
  257. package/dist/utils/types/index.js +2 -1
  258. package/dist/utils/types/network-modification-types.d.ts +6 -0
  259. package/package.json +1 -1
  260. package/dist/components/announcement/AnnouncementNotification.d.ts +0 -7
  261. package/dist/components/announcement/useGlobalAnnouncement.d.ts +0 -10
  262. /package/dist/components/{addButton → ui/addButton}/AddButton.d.ts +0 -0
  263. /package/dist/components/{addButton → ui/addButton}/AddButton.js +0 -0
  264. /package/dist/components/{addButton → ui/addButton}/index.d.ts +0 -0
  265. /package/dist/components/{addButton → ui/addButton}/index.js +0 -0
  266. /package/dist/components/{announcement → ui/announcement}/index.d.ts +0 -0
  267. /package/dist/components/{announcement → ui/announcement}/index.js +0 -0
  268. /package/dist/components/{checkBoxList → ui/checkBoxList}/CheckBoxList.d.ts +0 -0
  269. /package/dist/components/{checkBoxList → ui/checkBoxList}/CheckBoxList.js +0 -0
  270. /package/dist/components/{checkBoxList → ui/checkBoxList}/CheckBoxListItem.d.ts +0 -0
  271. /package/dist/components/{checkBoxList → ui/checkBoxList}/CheckBoxListItemContent.d.ts +0 -0
  272. /package/dist/components/{checkBoxList → ui/checkBoxList}/CheckBoxListItems.d.ts +0 -0
  273. /package/dist/components/{checkBoxList → ui/checkBoxList}/CheckBoxListItems.js +0 -0
  274. /package/dist/components/{checkBoxList → ui/checkBoxList}/DraggableCheckBoxListItem.d.ts +0 -0
  275. /package/dist/components/{checkBoxList → ui/checkBoxList}/DraggableCheckBoxListItemContent.d.ts +0 -0
  276. /package/dist/components/{checkBoxList → ui/checkBoxList}/checkBoxList.type.js +0 -0
  277. /package/dist/components/{checkBoxList → ui/checkBoxList}/index.d.ts +0 -0
  278. /package/dist/components/{checkBoxList → ui/checkBoxList}/index.js +0 -0
  279. /package/dist/components/{csvDownloader → ui/csvDownloader}/csv-export.d.ts +0 -0
  280. /package/dist/components/{csvDownloader → ui/csvDownloader}/csv-export.js +0 -0
  281. /package/dist/components/{csvDownloader → ui/csvDownloader}/csv-export.type.js +0 -0
  282. /package/dist/components/{csvDownloader → ui/csvDownloader}/export-csv-button.d.ts +0 -0
  283. /package/dist/components/{csvDownloader → ui/csvDownloader}/export-csv-button.js +0 -0
  284. /package/dist/components/{csvDownloader → ui/csvDownloader}/index.d.ts +0 -0
  285. /package/dist/components/{csvDownloader → ui/csvDownloader}/index.js +0 -0
  286. /package/dist/components/{csvDownloader → ui/csvDownloader}/use-csv-export.d.ts +0 -0
  287. /package/dist/components/{dialogs → ui/dialogs}/descriptionModificationDialog/DescriptionModificationDialog.d.ts +0 -0
  288. /package/dist/components/{dialogs → ui/dialogs}/descriptionModificationDialog/index.d.ts +0 -0
  289. /package/dist/components/{dialogs → ui/dialogs}/descriptionModificationDialog/index.js +0 -0
  290. /package/dist/components/{dialogs → ui/dialogs}/elementSaveDialog/index.d.ts +0 -0
  291. /package/dist/components/{dialogs → ui/dialogs}/elementSaveDialog/index.js +0 -0
  292. /package/dist/components/{dialogs → ui/dialogs}/modifyElementSelection/index.d.ts +0 -0
  293. /package/dist/components/{dialogs → ui/dialogs}/modifyElementSelection/index.js +0 -0
  294. /package/dist/components/{multipleSelectionDialog → ui/dialogs/multipleSelectionDialog}/index.d.ts +0 -0
  295. /package/dist/components/{multipleSelectionDialog → ui/dialogs/multipleSelectionDialog}/index.js +0 -0
  296. /package/dist/components/{dialogs → ui/dialogs}/popupConfirmationDialog/PopupConfirmationDialog.d.ts +0 -0
  297. /package/dist/components/{dialogs → ui/dialogs}/popupConfirmationDialog/index.d.ts +0 -0
  298. /package/dist/components/{dialogs → ui/dialogs}/popupConfirmationDialog/index.js +0 -0
  299. /package/dist/components/{expandableGroup → ui/expandableGroup}/ExpandableGroup.d.ts +0 -0
  300. /package/dist/components/{expandableGroup → ui/expandableGroup}/ExpandableGroup.js +0 -0
  301. /package/dist/components/{expandableGroup → ui/expandableGroup}/index.d.ts +0 -0
  302. /package/dist/components/{expandableGroup → ui/expandableGroup}/index.js +0 -0
  303. /package/dist/components/{icons → ui/icons}/ArrowsInputIcon.d.ts +0 -0
  304. /package/dist/components/{icons → ui/icons}/ArrowsInputIcon.js +0 -0
  305. /package/dist/components/{icons → ui/icons}/ArrowsOutputIcon.d.ts +0 -0
  306. /package/dist/components/{icons → ui/icons}/ArrowsOutputIcon.js +0 -0
  307. /package/dist/components/{icons → ui/icons}/EditNoteIcon.d.ts +0 -0
  308. /package/dist/components/{icons → ui/icons}/EditNoteIcon.js +0 -0
  309. /package/dist/components/{icons → ui/icons}/LeftPanelCloseIcon.d.ts +0 -0
  310. /package/dist/components/{icons → ui/icons}/LeftPanelCloseIcon.js +0 -0
  311. /package/dist/components/{icons → ui/icons}/LeftPanelOpenIcon.d.ts +0 -0
  312. /package/dist/components/{icons → ui/icons}/LeftPanelOpenIcon.js +0 -0
  313. /package/dist/components/{icons → ui/icons}/index.d.ts +0 -0
  314. /package/dist/components/{icons → ui/icons}/index.js +0 -0
  315. /package/dist/components/{inputs → ui/inputs}/ActivableChip.d.ts +0 -0
  316. /package/dist/components/{inputs → ui/inputs}/ActivableChip.js +0 -0
  317. /package/dist/components/{inputs → ui/inputs}/SelectClearable.d.ts +0 -0
  318. /package/dist/components/{inputs → ui/inputs}/checkbox-autocomplete/checkbox-autocomplete.d.ts +0 -0
  319. /package/dist/components/{inputs → ui/inputs}/checkbox-autocomplete/checkbox-autocomplete.js +0 -0
  320. /package/dist/components/{inputs → ui/inputs}/checkbox-autocomplete/checkbox-item.d.ts +0 -0
  321. /package/dist/components/{inputs → ui/inputs}/checkbox-autocomplete/checkbox-item.js +0 -0
  322. /package/dist/components/{inputs → ui/inputs}/checkbox-autocomplete/index.d.ts +0 -0
  323. /package/dist/components/{inputs → ui/inputs}/checkbox-autocomplete/index.js +0 -0
  324. /package/dist/components/{inputs → ui/inputs}/checkbox-autocomplete/virtualized-list-item.d.ts +0 -0
  325. /package/dist/components/{inputs → ui/inputs}/checkbox-autocomplete/virtualized-list-item.js +0 -0
  326. /package/dist/components/{inputs → ui/inputs}/checkbox-autocomplete/virtualized-list.d.ts +0 -0
  327. /package/dist/components/{inputs → ui/inputs}/checkbox-autocomplete/virtualized-list.js +0 -0
  328. /package/dist/components/{menus → ui/menus}/index.d.ts +0 -0
  329. /package/dist/components/{menus → ui/menus}/index.js +0 -0
  330. /package/dist/components/{overflowableText → ui/overflowableText}/index.d.ts +0 -0
  331. /package/dist/components/{overflowableText → ui/overflowableText}/index.js +0 -0
  332. /package/dist/components/{inputs → ui}/reactHookForm/CheckboxNullableInput.d.ts +0 -0
  333. /package/dist/components/{inputs → ui}/reactHookForm/CheckboxNullableInput.js +0 -0
  334. /package/dist/components/{inputs → ui}/reactHookForm/CountrySelectionInput.d.ts +0 -0
  335. /package/dist/components/{inputs → ui}/reactHookForm/CountrySelectionInput.js +0 -0
  336. /package/dist/components/{inputs → ui}/reactHookForm/DirectoryItemsInput.d.ts +0 -0
  337. /package/dist/components/{inputs → ui}/reactHookForm/OverflowableChip.d.ts +0 -0
  338. /package/dist/components/{inputs → ui}/reactHookForm/OverflowableChipWithHelperText.d.ts +0 -0
  339. /package/dist/components/{inputs → ui}/reactHookForm/OverflowableChipWithHelperText.js +0 -0
  340. /package/dist/components/{inputs → ui}/reactHookForm/RawReadOnlyInput.d.ts +0 -0
  341. /package/dist/components/{inputs → ui}/reactHookForm/RawReadOnlyInput.js +0 -0
  342. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/BottomRightButtons.d.ts +0 -0
  343. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/CustomAgGridTable.d.ts +0 -0
  344. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/CustomAgGridTable.js +0 -0
  345. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/cellEditors/index.d.ts +0 -0
  346. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/cellEditors/index.js +0 -0
  347. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/cellEditors/numericEditor.d.ts +0 -0
  348. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/cellEditors/numericEditor.js +0 -0
  349. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/csvUploader/CsvUploader.d.ts +0 -0
  350. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/csvUploader/CsvUploader.js +0 -0
  351. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/csvUploader/index.d.ts +0 -0
  352. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/csvUploader/index.js +0 -0
  353. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/index.d.ts +0 -0
  354. /package/dist/components/{inputs → ui}/reactHookForm/agGridTable/index.js +0 -0
  355. /package/dist/components/{inputs → ui}/reactHookForm/autocompleteInputs/AutocompleteInput.d.ts +0 -0
  356. /package/dist/components/{inputs → ui}/reactHookForm/autocompleteInputs/AutocompleteInput.js +0 -0
  357. /package/dist/components/{inputs → ui}/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.d.ts +0 -0
  358. /package/dist/components/{inputs → ui}/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +0 -0
  359. /package/dist/components/{inputs → ui}/reactHookForm/autocompleteInputs/index.d.ts +0 -0
  360. /package/dist/components/{inputs → ui}/reactHookForm/autocompleteInputs/index.js +0 -0
  361. /package/dist/components/{inputs → ui}/reactHookForm/booleans/BooleanInput.d.ts +0 -0
  362. /package/dist/components/{inputs → ui}/reactHookForm/booleans/BooleanInput.js +0 -0
  363. /package/dist/components/{inputs → ui}/reactHookForm/booleans/CheckboxInput.d.ts +0 -0
  364. /package/dist/components/{inputs → ui}/reactHookForm/booleans/CheckboxInput.js +0 -0
  365. /package/dist/components/{inputs → ui}/reactHookForm/booleans/RadioInput.d.ts +0 -0
  366. /package/dist/components/{inputs → ui}/reactHookForm/booleans/RadioInput.js +0 -0
  367. /package/dist/components/{inputs → ui}/reactHookForm/booleans/SwitchInput.d.ts +0 -0
  368. /package/dist/components/{inputs → ui}/reactHookForm/booleans/SwitchInput.js +0 -0
  369. /package/dist/components/{inputs → ui}/reactHookForm/booleans/index.d.ts +0 -0
  370. /package/dist/components/{inputs → ui}/reactHookForm/booleans/index.js +0 -0
  371. /package/dist/components/{inputs → ui}/reactHookForm/chip-items-input.d.ts +0 -0
  372. /package/dist/components/{inputs → ui}/reactHookForm/constants.d.ts +0 -0
  373. /package/dist/components/{inputs → ui}/reactHookForm/constants.js +0 -0
  374. /package/dist/components/{inputs → ui}/reactHookForm/errorManagement/ErrorInput.d.ts +0 -0
  375. /package/dist/components/{inputs → ui}/reactHookForm/errorManagement/ErrorInput.js +0 -0
  376. /package/dist/components/{inputs → ui}/reactHookForm/errorManagement/FieldErrorAlert.d.ts +0 -0
  377. /package/dist/components/{inputs → ui}/reactHookForm/errorManagement/FieldErrorAlert.js +0 -0
  378. /package/dist/components/{inputs → ui}/reactHookForm/errorManagement/MidFormError.d.ts +0 -0
  379. /package/dist/components/{inputs → ui}/reactHookForm/errorManagement/MidFormError.js +0 -0
  380. /package/dist/components/{inputs → ui}/reactHookForm/errorManagement/index.d.ts +0 -0
  381. /package/dist/components/{inputs → ui}/reactHookForm/errorManagement/index.js +0 -0
  382. /package/dist/components/{inputs → ui}/reactHookForm/expandableInput/DeletableRow.d.ts +0 -0
  383. /package/dist/components/{inputs → ui}/reactHookForm/expandableInput/ExpandableInput.d.ts +0 -0
  384. /package/dist/components/{inputs → ui}/reactHookForm/expandableInput/index.d.ts +0 -0
  385. /package/dist/components/{inputs → ui}/reactHookForm/expandableInput/index.js +0 -0
  386. /package/dist/components/{inputs → ui}/reactHookForm/index.d.ts +0 -0
  387. /package/dist/components/{inputs → ui}/reactHookForm/index.js +0 -0
  388. /package/dist/components/{inputs → ui}/reactHookForm/numbers/FloatInput.d.ts +0 -0
  389. /package/dist/components/{inputs → ui}/reactHookForm/numbers/FloatInput.js +0 -0
  390. /package/dist/components/{inputs → ui}/reactHookForm/numbers/IntegerInput.d.ts +0 -0
  391. /package/dist/components/{inputs → ui}/reactHookForm/numbers/IntegerInput.js +0 -0
  392. /package/dist/components/{inputs → ui}/reactHookForm/numbers/RangeInput.d.ts +0 -0
  393. /package/dist/components/{inputs → ui}/reactHookForm/numbers/RangeInput.js +0 -0
  394. /package/dist/components/{inputs → ui}/reactHookForm/numbers/SliderInput.d.ts +0 -0
  395. /package/dist/components/{inputs → ui}/reactHookForm/numbers/SliderInput.js +0 -0
  396. /package/dist/components/{inputs → ui}/reactHookForm/numbers/index.d.ts +0 -0
  397. /package/dist/components/{inputs → ui}/reactHookForm/numbers/index.js +0 -0
  398. /package/dist/components/{inputs → ui}/reactHookForm/numbers/utils.d.ts +0 -0
  399. /package/dist/components/{inputs → ui}/reactHookForm/numbers/utils.js +0 -0
  400. /package/dist/components/{inputs → ui}/reactHookForm/provider/CustomFormProvider.d.ts +0 -0
  401. /package/dist/components/{inputs → ui}/reactHookForm/provider/CustomFormProvider.js +0 -0
  402. /package/dist/components/{inputs → ui}/reactHookForm/provider/index.d.ts +0 -0
  403. /package/dist/components/{inputs → ui}/reactHookForm/provider/index.js +0 -0
  404. /package/dist/components/{inputs → ui}/reactHookForm/provider/useCustomFormContext.d.ts +0 -0
  405. /package/dist/components/{inputs → ui}/reactHookForm/provider/useCustomFormContext.js +0 -0
  406. /package/dist/components/{inputs → ui}/reactHookForm/readOnly/ButtonReadOnlyInput.d.ts +0 -0
  407. /package/dist/components/{inputs → ui}/reactHookForm/readOnly/ButtonReadOnlyInput.js +0 -0
  408. /package/dist/components/{inputs → ui}/reactHookForm/readOnly/ReadOnlyInput.d.ts +0 -0
  409. /package/dist/components/{inputs → ui}/reactHookForm/readOnly/ReadOnlyInput.js +0 -0
  410. /package/dist/components/{inputs → ui}/reactHookForm/readOnly/index.d.ts +0 -0
  411. /package/dist/components/{inputs → ui}/reactHookForm/readOnly/index.js +0 -0
  412. /package/dist/components/{inputs → ui}/reactHookForm/selectInputs/CountriesInput.d.ts +0 -0
  413. /package/dist/components/{inputs → ui}/reactHookForm/selectInputs/CountriesInput.js +0 -0
  414. /package/dist/components/{inputs → ui}/reactHookForm/selectInputs/EnumInput.d.ts +0 -0
  415. /package/dist/components/{inputs → ui}/reactHookForm/selectInputs/EnumInput.js +0 -0
  416. /package/dist/components/{inputs → ui}/reactHookForm/selectInputs/InputWithPopupConfirmation.d.ts +0 -0
  417. /package/dist/components/{inputs → ui}/reactHookForm/selectInputs/MuiSelectInput.d.ts +0 -0
  418. /package/dist/components/{inputs → ui}/reactHookForm/selectInputs/MuiSelectInput.js +0 -0
  419. /package/dist/components/{inputs → ui}/reactHookForm/selectInputs/SelectInput.d.ts +0 -0
  420. /package/dist/components/{inputs → ui}/reactHookForm/selectInputs/SelectInput.js +0 -0
  421. /package/dist/components/{inputs → ui}/reactHookForm/selectInputs/SelectWithConfirmationInput.d.ts +0 -0
  422. /package/dist/components/{inputs → ui}/reactHookForm/selectInputs/index.d.ts +0 -0
  423. /package/dist/components/{inputs → ui}/reactHookForm/selectInputs/index.js +0 -0
  424. /package/dist/components/{inputs → ui}/reactHookForm/tableInputs/index.d.ts +0 -0
  425. /package/dist/components/{inputs → ui}/reactHookForm/tableInputs/index.js +0 -0
  426. /package/dist/components/{inputs → ui}/reactHookForm/tableInputs/table-numerical-input.d.ts +0 -0
  427. /package/dist/components/{inputs → ui}/reactHookForm/tableInputs/table-numerical-input.js +0 -0
  428. /package/dist/components/{inputs → ui}/reactHookForm/tableInputs/table-text-input.d.ts +0 -0
  429. /package/dist/components/{inputs → ui}/reactHookForm/tableInputs/table-text-input.js +0 -0
  430. /package/dist/components/{inputs → ui}/reactHookForm/text/DescriptionField.d.ts +0 -0
  431. /package/dist/components/{inputs → ui}/reactHookForm/text/DescriptionInput.d.ts +0 -0
  432. /package/dist/components/{inputs → ui}/reactHookForm/text/ExpandingTextField.d.ts +0 -0
  433. /package/dist/components/{inputs → ui}/reactHookForm/text/ExpandingTextField.js +0 -0
  434. /package/dist/components/{inputs → ui}/reactHookForm/text/TextInput.d.ts +0 -0
  435. /package/dist/components/{inputs → ui}/reactHookForm/text/TextInput.js +0 -0
  436. /package/dist/components/{inputs → ui}/reactHookForm/text/UniqueNameInput.d.ts +0 -0
  437. /package/dist/components/{inputs → ui}/reactHookForm/text/UniqueNameInput.js +0 -0
  438. /package/dist/components/{inputs → ui}/reactHookForm/text/index.d.ts +0 -0
  439. /package/dist/components/{inputs → ui}/reactHookForm/text/index.js +0 -0
  440. /package/dist/components/{inputs → ui}/reactHookForm/utils/CancelButton.d.ts +0 -0
  441. /package/dist/components/{inputs → ui}/reactHookForm/utils/CancelButton.js +0 -0
  442. /package/dist/components/{inputs → ui}/reactHookForm/utils/FieldLabel.d.ts +0 -0
  443. /package/dist/components/{inputs → ui}/reactHookForm/utils/FieldLabel.js +0 -0
  444. /package/dist/components/{inputs → ui}/reactHookForm/utils/HelperPreviousValue.d.ts +0 -0
  445. /package/dist/components/{inputs → ui}/reactHookForm/utils/SubmitButton.d.ts +0 -0
  446. /package/dist/components/{inputs → ui}/reactHookForm/utils/SubmitButton.js +0 -0
  447. /package/dist/components/{inputs → ui}/reactHookForm/utils/TextFieldWithAdornment.d.ts +0 -0
  448. /package/dist/components/{inputs → ui}/reactHookForm/utils/TextFieldWithAdornment.js +0 -0
  449. /package/dist/components/{inputs → ui}/reactHookForm/utils/functions.d.ts +0 -0
  450. /package/dist/components/{inputs → ui}/reactHookForm/utils/functions.js +0 -0
  451. /package/dist/components/{inputs → ui}/reactHookForm/utils/index.d.ts +0 -0
  452. /package/dist/components/{inputs → ui}/reactHookForm/utils/index.js +0 -0
  453. /package/dist/components/{inputs → ui}/reactQueryBuilder/AddButton.d.ts +0 -0
  454. /package/dist/components/{inputs → ui}/reactQueryBuilder/AddButton.js +0 -0
  455. /package/dist/components/{inputs → ui}/reactQueryBuilder/AutocompleteWithFavorites.d.ts +0 -0
  456. /package/dist/components/{inputs → ui}/reactQueryBuilder/AutocompleteWithFavorites.js +0 -0
  457. /package/dist/components/{inputs → ui}/reactQueryBuilder/CombinatorSelector.d.ts +0 -0
  458. /package/dist/components/{inputs → ui}/reactQueryBuilder/CountryValueEditor.d.ts +0 -0
  459. /package/dist/components/{inputs → ui}/reactQueryBuilder/CountryValueEditor.js +0 -0
  460. /package/dist/components/{inputs → ui}/reactQueryBuilder/CustomReactQueryBuilder.d.ts +0 -0
  461. /package/dist/components/{inputs → ui}/reactQueryBuilder/CustomReactQueryBuilder.js +0 -0
  462. /package/dist/components/{inputs → ui}/reactQueryBuilder/ElementValueEditor.d.ts +0 -0
  463. /package/dist/components/{inputs → ui}/reactQueryBuilder/ElementValueEditor.js +0 -0
  464. /package/dist/components/{inputs → ui}/reactQueryBuilder/FieldSelector.d.ts +0 -0
  465. /package/dist/components/{inputs → ui}/reactQueryBuilder/FieldSelector.js +0 -0
  466. /package/dist/components/{inputs → ui}/reactQueryBuilder/OperatorSelector.d.ts +0 -0
  467. /package/dist/components/{inputs → ui}/reactQueryBuilder/OperatorSelector.js +0 -0
  468. /package/dist/components/{inputs → ui}/reactQueryBuilder/PropertyValueEditor.d.ts +0 -0
  469. /package/dist/components/{inputs → ui}/reactQueryBuilder/PropertyValueEditor.js +0 -0
  470. /package/dist/components/{inputs → ui}/reactQueryBuilder/RemoveButton.d.ts +0 -0
  471. /package/dist/components/{inputs → ui}/reactQueryBuilder/RemoveButton.js +0 -0
  472. /package/dist/components/{inputs → ui}/reactQueryBuilder/TextValueEditor.d.ts +0 -0
  473. /package/dist/components/{inputs → ui}/reactQueryBuilder/TextValueEditor.js +0 -0
  474. /package/dist/components/{inputs → ui}/reactQueryBuilder/TranslatedValueEditor.d.ts +0 -0
  475. /package/dist/components/{inputs → ui}/reactQueryBuilder/TranslatedValueEditor.js +0 -0
  476. /package/dist/components/{inputs → ui}/reactQueryBuilder/ValueEditor.d.ts +0 -0
  477. /package/dist/components/{inputs → ui}/reactQueryBuilder/ValueEditor.js +0 -0
  478. /package/dist/components/{inputs → ui}/reactQueryBuilder/ValueSelector.d.ts +0 -0
  479. /package/dist/components/{inputs → ui}/reactQueryBuilder/ValueSelector.js +0 -0
  480. /package/dist/components/{inputs → ui}/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.d.ts +0 -0
  481. /package/dist/components/{inputs → ui}/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.js +0 -0
  482. /package/dist/components/{inputs → ui}/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.d.ts +0 -0
  483. /package/dist/components/{inputs → ui}/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +0 -0
  484. /package/dist/components/{inputs → ui}/reactQueryBuilder/compositeRuleEditor/index.d.ts +0 -0
  485. /package/dist/components/{inputs → ui}/reactQueryBuilder/compositeRuleEditor/index.js +0 -0
  486. /package/dist/components/{inputs → ui}/reactQueryBuilder/hooks/index.d.ts +0 -0
  487. /package/dist/components/{inputs → ui}/reactQueryBuilder/hooks/index.js +0 -0
  488. /package/dist/components/{inputs → ui}/reactQueryBuilder/hooks/useConvertValue.d.ts +0 -0
  489. /package/dist/components/{inputs → ui}/reactQueryBuilder/hooks/useConvertValue.js +0 -0
  490. /package/dist/components/{inputs → ui}/reactQueryBuilder/hooks/useValid.d.ts +0 -0
  491. /package/dist/components/{inputs → ui}/reactQueryBuilder/hooks/useValid.js +0 -0
  492. /package/dist/components/{inputs → ui}/reactQueryBuilder/index.d.ts +0 -0
  493. /package/dist/components/{inputs → ui}/reactQueryBuilder/index.js +0 -0
  494. /package/dist/components/{resizablePanels → ui/resizablePanels}/ResizeHandle.d.ts +0 -0
  495. /package/dist/components/{resizablePanels → ui/resizablePanels}/ResizeHandle.js +0 -0
  496. /package/dist/components/{resizablePanels → ui/resizablePanels}/index.d.ts +0 -0
  497. /package/dist/components/{resizablePanels → ui/resizablePanels}/index.js +0 -0
  498. /package/dist/components/{snackbarProvider → ui/snackbarProvider}/SnackbarProvider.d.ts +0 -0
  499. /package/dist/components/{snackbarProvider → ui/snackbarProvider}/SnackbarProvider.js +0 -0
  500. /package/dist/components/{snackbarProvider → ui/snackbarProvider}/index.d.ts +0 -0
  501. /package/dist/components/{snackbarProvider → ui/snackbarProvider}/index.js +0 -0
  502. /package/dist/components/{tooltip → ui/tooltip}/CustomTooltip.d.ts +0 -0
  503. /package/dist/components/{tooltip → ui/tooltip}/CustomTooltip.js +0 -0
  504. /package/dist/components/{tooltip → ui/tooltip}/index.d.ts +0 -0
  505. /package/dist/components/{tooltip → ui/tooltip}/index.js +0 -0
@@ -1,7 +1,8 @@
1
+ import { Dispatch, SetStateAction } from 'react';
1
2
  import { ColumnDef } from '@tanstack/react-table';
2
3
  import { UUID } from 'node:crypto';
3
4
  import { NetworkModificationEditorNameHeaderProps } from './renderers';
4
- import { ComposedModificationMetadata, NetworkModificationMetadata } from '../../utils';
5
+ import { ExcludedNetworkModifications, RootNetworkRowInfo, ComposedModificationMetadata, NetworkModificationMetadata } from '../../utils';
5
6
  interface NetworkModificationsTableProps extends Omit<NetworkModificationEditorNameHeaderProps, 'modificationCount'> {
6
7
  modifications: NetworkModificationMetadata[];
7
8
  handleCellClick: (modification: NetworkModificationMetadata) => void;
@@ -13,6 +14,11 @@ interface NetworkModificationsTableProps extends Omit<NetworkModificationEditorN
13
14
  highlightedModificationUuid: UUID | null;
14
15
  studyUuid: UUID | null;
15
16
  currentNodeId?: UUID;
17
+ currentRootNetworkUuid?: UUID;
18
+ rootNetworks?: RootNetworkRowInfo[];
19
+ modificationsToExclude?: ExcludedNetworkModifications[];
20
+ setModificationsToExclude?: Dispatch<SetStateAction<ExcludedNetworkModifications[]>>;
21
+ isDisabled?: boolean;
16
22
  }
17
- export declare function NetworkModificationsTable({ modifications, handleCellClick, isRowDragDisabled, onRowDragStart, onRowDragEnd, onRowSelected, columns, highlightedModificationUuid, studyUuid, currentNodeId, isImpactedByNotification, notificationMessageId, isFetchingModifications, pendingState, }: Readonly<NetworkModificationsTableProps>): import("react/jsx-runtime").JSX.Element;
23
+ export declare function NetworkModificationsTable({ modifications, handleCellClick, isRowDragDisabled, onRowDragStart, onRowDragEnd, onRowSelected, columns, highlightedModificationUuid, studyUuid, currentNodeId, currentRootNetworkUuid, rootNetworks, modificationsToExclude, setModificationsToExclude, isDisabled, isImpactedByNotification, notificationMessageId, isFetchingModifications, pendingState, }: Readonly<NetworkModificationsTableProps>): import("react/jsx-runtime").JSX.Element;
18
24
  export {};
@@ -30,6 +30,11 @@ function NetworkModificationsTable({
30
30
  highlightedModificationUuid,
31
31
  studyUuid = null,
32
32
  currentNodeId = void 0,
33
+ currentRootNetworkUuid,
34
+ rootNetworks,
35
+ modificationsToExclude,
36
+ setModificationsToExclude,
37
+ isDisabled = false,
33
38
  isImpactedByNotification,
34
39
  notificationMessageId,
35
40
  isFetchingModifications,
@@ -74,26 +79,46 @@ function NetworkModificationsTable({
74
79
  }, []);
75
80
  const tableMeta = useMemo(
76
81
  () => ({
77
- lastClickedRowId,
78
- onRowSelected,
79
- isRowDragDisabled,
80
- modificationsCount: modifications.length,
81
- nameHeaderProps: {
82
+ context: {
83
+ studyUuid,
84
+ currentNodeId,
85
+ currentRootNetworkUuid,
86
+ rootNetworks
87
+ },
88
+ modifications: {
89
+ count: modifications.length,
90
+ toExclude: modificationsToExclude,
91
+ setToExclude: setModificationsToExclude
92
+ },
93
+ interaction: {
94
+ lastClickedRowId,
95
+ onRowSelected,
96
+ isRowDragDisabled
97
+ },
98
+ status: {
82
99
  isImpactedByNotification,
83
100
  notificationMessageId,
84
101
  isFetchingModifications,
85
- pendingState
102
+ pendingState,
103
+ isDisabled
86
104
  }
87
105
  }),
88
106
  [
107
+ studyUuid,
108
+ currentNodeId,
109
+ currentRootNetworkUuid,
110
+ rootNetworks,
111
+ modifications.length,
112
+ modificationsToExclude,
113
+ setModificationsToExclude,
89
114
  lastClickedRowId,
90
115
  onRowSelected,
91
116
  isRowDragDisabled,
92
- modifications.length,
93
117
  isImpactedByNotification,
94
118
  notificationMessageId,
95
119
  isFetchingModifications,
96
- pendingState
120
+ pendingState,
121
+ isDisabled
97
122
  ]
98
123
  );
99
124
  const table = useReactTable({
@@ -0,0 +1,23 @@
1
+ import { CellContext, HeaderContext } from '@tanstack/react-table';
2
+ import { ComposedModificationMetadata } from '../../../utils';
3
+ /**
4
+ * Cell/header renderers must keep a stable reference across renders to avoid
5
+ * unmounting/remounting cells and resetting local states. The renderers below are
6
+ * hoisted because they're reused by `createBaseColumns` and `createRootNetworksColumns`,
7
+ * factories called inside a hook — defining them inline there would produce fresh references.
8
+ *
9
+ * Dynamic values are routed via react-table's `meta`: table-wide via `table.options.meta`,
10
+ * per-column via `column.columnDef.meta`.
11
+ */
12
+ type CCtx = CellContext<ComposedModificationMetadata, unknown>;
13
+ type HCtx = HeaderContext<ComposedModificationMetadata, unknown>;
14
+ export declare function DragHandleRenderer({ table }: CCtx): import("react/jsx-runtime").JSX.Element;
15
+ export declare function SelectHeaderRenderer({ table }: HCtx): import("react/jsx-runtime").JSX.Element;
16
+ export declare function SelectCellRenderer({ row, table }: CCtx): import("react/jsx-runtime").JSX.Element;
17
+ export declare function NameHeaderRenderer({ table }: HCtx): import("react/jsx-runtime").JSX.Element;
18
+ export declare function NameCellRenderer({ row, column }: CCtx): import("react/jsx-runtime").JSX.Element;
19
+ export declare function DescriptionCellRenderer({ row, table }: CCtx): import("react/jsx-runtime").JSX.Element;
20
+ export declare function SwitchCellRenderer({ row, table }: CCtx): import("react/jsx-runtime").JSX.Element;
21
+ export declare function RootNetworkHeaderRenderer({ column, table }: HCtx): import("react/jsx-runtime").JSX.Element | null;
22
+ export declare function RootNetworkCellRenderer({ row, column, table }: CCtx): import("react/jsx-runtime").JSX.Element | null;
23
+ export {};
@@ -0,0 +1,103 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Box, Tooltip, Badge } from "@mui/material";
3
+ import { RemoveRedEye } from "@mui/icons-material";
4
+ import { FormattedMessage } from "react-intl";
5
+ import { DragHandleCell } from "./drag-handle-cell.js";
6
+ import { NameCell } from "./name-cell.js";
7
+ import { NetworkModificationEditorNameHeader } from "./network-modification-node-editor-name-header.js";
8
+ import { SelectCell } from "./select-cell.js";
9
+ import { SelectHeaderCell } from "./select-header-cell.js";
10
+ import { DescriptionCell } from "./description-cell.js";
11
+ import { SwitchCell } from "./switch-cell.js";
12
+ import { RootNetworkChipCell } from "./root-network-chip-cell.js";
13
+ import { networkModificationTableStyles, createRootNetworkChipCellSx } from "../network-modification-table-styles.js";
14
+ function DragHandleRenderer({ table }) {
15
+ return /* @__PURE__ */ jsx(DragHandleCell, { isRowDragDisabled: table.options.meta?.interaction.isRowDragDisabled ?? false });
16
+ }
17
+ function SelectHeaderRenderer({ table }) {
18
+ return /* @__PURE__ */ jsx(SelectHeaderCell, { table });
19
+ }
20
+ function SelectCellRenderer({ row, table }) {
21
+ return /* @__PURE__ */ jsx(SelectCell, { row, table });
22
+ }
23
+ function NameHeaderRenderer({ table }) {
24
+ const { meta } = table.options;
25
+ return /* @__PURE__ */ jsx(
26
+ NetworkModificationEditorNameHeader,
27
+ {
28
+ modificationCount: meta?.modifications.count ?? 0,
29
+ isImpactedByNotification: meta?.status.isImpactedByNotification ?? (() => false),
30
+ notificationMessageId: meta?.status.notificationMessageId,
31
+ isFetchingModifications: meta?.status.isFetchingModifications ?? false,
32
+ pendingState: meta?.status.pendingState ?? false
33
+ }
34
+ );
35
+ }
36
+ function NameCellRenderer({ row, column }) {
37
+ return /* @__PURE__ */ jsx(NameCell, { row, onChange: column.columnDef.meta?.onChange });
38
+ }
39
+ function DescriptionCellRenderer({ row, table }) {
40
+ const { meta } = table.options;
41
+ return /* @__PURE__ */ jsx(
42
+ DescriptionCell,
43
+ {
44
+ data: row.original,
45
+ studyUuid: meta?.context.studyUuid ?? null,
46
+ currentNodeId: meta?.context.currentNodeId,
47
+ isDisabled: meta?.status.isDisabled
48
+ }
49
+ );
50
+ }
51
+ function SwitchCellRenderer({ row, table }) {
52
+ const { meta } = table.options;
53
+ return /* @__PURE__ */ jsx(
54
+ SwitchCell,
55
+ {
56
+ data: row.original,
57
+ studyUuid: meta?.context.studyUuid ?? null,
58
+ currentNodeId: meta?.context.currentNodeId,
59
+ isDisabled: meta?.status.isDisabled
60
+ }
61
+ );
62
+ }
63
+ function RootNetworkHeaderRenderer({ column, table }) {
64
+ const { meta } = table.options;
65
+ const isCurrentRootNetwork = !!meta?.context.currentRootNetworkUuid && column.id === meta.context.currentRootNetworkUuid;
66
+ if (!isCurrentRootNetwork || (meta?.modifications.count ?? 0) < 1) {
67
+ return null;
68
+ }
69
+ const currentRootNetworkTag = meta?.context.rootNetworks?.find(
70
+ (r) => r.rootNetworkUuid === meta.context.currentRootNetworkUuid
71
+ )?.tag;
72
+ return /* @__PURE__ */ jsx(Box, { sx: networkModificationTableStyles.rootNetworkHeader, children: /* @__PURE__ */ jsx(Tooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: "visualizedRootNetwork", values: { tag: currentRootNetworkTag } }), children: /* @__PURE__ */ jsx(Badge, { overlap: "circular", color: "primary", variant: "dot", children: /* @__PURE__ */ jsx(RemoveRedEye, {}) }) }) });
73
+ }
74
+ function RootNetworkCellRenderer({ row, column, table }) {
75
+ const { meta } = table.options;
76
+ const rootNetwork = meta?.context.rootNetworks?.find((r) => r.rootNetworkUuid === column.id);
77
+ if (!rootNetwork || !meta?.modifications.toExclude || !meta.modifications.setToExclude) {
78
+ return null;
79
+ }
80
+ return /* @__PURE__ */ jsx(Box, { sx: createRootNetworkChipCellSx(row.original.activated), children: /* @__PURE__ */ jsx(
81
+ RootNetworkChipCell,
82
+ {
83
+ data: row.original,
84
+ studyUuid: meta?.context.studyUuid ?? null,
85
+ currentNodeId: meta?.context.currentNodeId,
86
+ rootNetwork,
87
+ modificationsToExclude: meta.modifications.toExclude,
88
+ setModificationsToExclude: meta.modifications.setToExclude,
89
+ isDisabled: meta?.status.isDisabled
90
+ }
91
+ ) });
92
+ }
93
+ export {
94
+ DescriptionCellRenderer,
95
+ DragHandleRenderer,
96
+ NameCellRenderer,
97
+ NameHeaderRenderer,
98
+ RootNetworkCellRenderer,
99
+ RootNetworkHeaderRenderer,
100
+ SelectCellRenderer,
101
+ SelectHeaderRenderer,
102
+ SwitchCellRenderer
103
+ };
@@ -0,0 +1,9 @@
1
+ import { UUID } from 'node:crypto';
2
+ import { ComposedModificationMetadata } from '../../../utils';
3
+ export interface DescriptionCellProps {
4
+ data: ComposedModificationMetadata;
5
+ studyUuid: UUID | null;
6
+ currentNodeId?: UUID;
7
+ isDisabled?: boolean;
8
+ }
9
+ export declare function DescriptionCell(props: DescriptionCellProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,75 @@
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import { useState, useCallback } from "react";
3
+ import { Tooltip, IconButton } from "@mui/material";
4
+ import { FormattedMessage } from "react-intl";
5
+ import "react-hook-form";
6
+ import "../../ui/reactHookForm/provider/CustomFormProvider.js";
7
+ import { DescriptionModificationDialog } from "../../ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
8
+ import "../../ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
9
+ import "../../../utils/conversionUtils.js";
10
+ import "../../../utils/types/equipmentType.js";
11
+ import "@mui/icons-material";
12
+ import "../../../utils/yupConfig.js";
13
+ import { setModificationMetadata } from "../../../services/networkModification.js";
14
+ import "../../treeViewFinder/TreeViewFinder.js";
15
+ import "localized-countries";
16
+ import "localized-countries/data/fr";
17
+ import "localized-countries/data/en";
18
+ import "notistack";
19
+ import "@hello-pangea/dnd";
20
+ import "../../ui/overflowableText/OverflowableText.js";
21
+ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
22
+ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
23
+ import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
24
+ import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
25
+ import { EditNoteIcon } from "../../ui/icons/EditNoteIcon.js";
26
+ import { createEditDescriptionStyle } from "../network-modification-table-styles.js";
27
+ function DescriptionCell(props) {
28
+ const { data, studyUuid, currentNodeId, isDisabled = false } = props;
29
+ const [isLoading, setIsLoading] = useState(false);
30
+ const [openDescModificationDialog, setOpenDescModificationDialog] = useState(false);
31
+ const modificationUuid = data.uuid;
32
+ const { description } = data;
33
+ const empty = !description;
34
+ const updateModification = useCallback(
35
+ async (descriptionRecord) => {
36
+ setIsLoading(true);
37
+ return setModificationMetadata(studyUuid, currentNodeId, modificationUuid, {
38
+ description: descriptionRecord.description,
39
+ type: data.type
40
+ }).finally(() => {
41
+ setIsLoading(false);
42
+ });
43
+ },
44
+ [studyUuid, currentNodeId, modificationUuid, data.type]
45
+ );
46
+ const handleDescDialogClose = useCallback(() => {
47
+ setOpenDescModificationDialog(false);
48
+ }, []);
49
+ const handleModifyDescription = useCallback(() => {
50
+ setOpenDescModificationDialog(true);
51
+ }, []);
52
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
53
+ openDescModificationDialog && modificationUuid && /* @__PURE__ */ jsx(
54
+ DescriptionModificationDialog,
55
+ {
56
+ open: true,
57
+ description: description ?? "",
58
+ onClose: handleDescDialogClose,
59
+ updateElement: updateModification
60
+ }
61
+ ),
62
+ /* @__PURE__ */ jsx(Tooltip, { title: description ?? /* @__PURE__ */ jsx(FormattedMessage, { id: "addDescription" }), arrow: true, enterDelay: 250, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
63
+ IconButton,
64
+ {
65
+ onClick: handleModifyDescription,
66
+ disabled: isLoading || isDisabled,
67
+ sx: createEditDescriptionStyle(data.description),
68
+ children: /* @__PURE__ */ jsx(EditNoteIcon, { empty })
69
+ }
70
+ ) }) })
71
+ ] });
72
+ }
73
+ export {
74
+ DescriptionCell
75
+ };
@@ -4,9 +4,13 @@
4
4
  * License, v. 2.0. If a copy of the MPL was not distributed with this
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
+ export * from './cell-renderers';
7
8
  export * from './depth-box';
9
+ export * from './description-cell';
8
10
  export * from './drag-handle-cell';
9
11
  export * from './name-cell';
10
12
  export * from './network-modification-node-editor-name-header';
13
+ export * from './root-network-chip-cell';
11
14
  export * from './select-cell';
12
15
  export * from './select-header-cell';
16
+ export * from './switch-cell';
@@ -1,14 +1,30 @@
1
+ import { DescriptionCellRenderer, DragHandleRenderer, NameCellRenderer, NameHeaderRenderer, RootNetworkCellRenderer, RootNetworkHeaderRenderer, SelectCellRenderer, SelectHeaderRenderer, SwitchCellRenderer } from "./cell-renderers.js";
1
2
  import { DepthBox } from "./depth-box.js";
3
+ import { DescriptionCell } from "./description-cell.js";
2
4
  import { DragHandleCell } from "./drag-handle-cell.js";
3
5
  import { NameCell } from "./name-cell.js";
4
6
  import { NetworkModificationEditorNameHeader } from "./network-modification-node-editor-name-header.js";
7
+ import { RootNetworkChipCell } from "./root-network-chip-cell.js";
5
8
  import { SelectCell } from "./select-cell.js";
6
9
  import { SelectHeaderCell } from "./select-header-cell.js";
10
+ import { SwitchCell } from "./switch-cell.js";
7
11
  export {
8
12
  DepthBox,
13
+ DescriptionCell,
14
+ DescriptionCellRenderer,
9
15
  DragHandleCell,
16
+ DragHandleRenderer,
10
17
  NameCell,
18
+ NameCellRenderer,
19
+ NameHeaderRenderer,
11
20
  NetworkModificationEditorNameHeader,
21
+ RootNetworkCellRenderer,
22
+ RootNetworkChipCell,
23
+ RootNetworkHeaderRenderer,
12
24
  SelectCell,
13
- SelectHeaderCell
25
+ SelectCellRenderer,
26
+ SelectHeaderCell,
27
+ SelectHeaderRenderer,
28
+ SwitchCell,
29
+ SwitchCellRenderer
14
30
  };
@@ -2,7 +2,7 @@ import { Row } from '@tanstack/react-table';
2
2
  import { ComposedModificationMetadata } from '../../../utils';
3
3
  interface NameCellProps {
4
4
  row: Row<ComposedModificationMetadata>;
5
- onEditNameCell?: (modification: ComposedModificationMetadata, newName: string) => void;
5
+ onChange?: (modification: ComposedModificationMetadata, newValue: string) => Promise<unknown>;
6
6
  }
7
- export declare function NameCell({ row, onEditNameCell }: Readonly<NameCellProps>): import("react/jsx-runtime").JSX.Element;
7
+ export declare function NameCell({ row, onChange }: Readonly<NameCellProps>): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -1,21 +1,22 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useCallback, useMemo, useState, useRef } from "react";
2
+ import { useCallback, useMemo, useState, useEffect, useRef } from "react";
3
3
  import { useIntl } from "react-intl";
4
4
  import { useTheme, Box, IconButton, InputBase } from "@mui/material";
5
5
  import { KeyboardArrowDown, KeyboardArrowRight } from "@mui/icons-material";
6
- import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
6
+ import { CustomTooltip } from "../../ui/tooltip/CustomTooltip.js";
7
7
  import { networkModificationTableStyles, createNameCellLabelBoxSx, createModificationNameCellStyle, createNameCellRootStyle } from "../network-modification-table-styles.js";
8
8
  import { DepthBox } from "./depth-box.js";
9
9
  import { isCompositeModification } from "../utils.js";
10
10
  import { useModificationLabelComputer } from "../../../hooks/useModificationLabelComputer.js";
11
11
  import "../../../utils/conversionUtils.js";
12
+ import { snackWithFallback } from "../../../utils/error.js";
12
13
  import "../../../utils/types/equipmentType.js";
13
14
  import { mergeSx } from "../../../utils/styles.js";
14
15
  import "../../../utils/yupConfig.js";
15
16
  import "localized-countries";
16
17
  import "localized-countries/data/fr";
17
18
  import "localized-countries/data/en";
18
- import "notistack";
19
+ import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
19
20
  const MIN_CHAR_WIDTH = 30;
20
21
  function measureTextPx(text, font) {
21
22
  const ctx = document.createElement("canvas").getContext("2d");
@@ -25,10 +26,11 @@ function measureTextPx(text, font) {
25
26
  }
26
27
  return text.length * 8;
27
28
  }
28
- function NameCell({ row, onEditNameCell }) {
29
+ function NameCell({ row, onChange }) {
29
30
  const intl = useIntl();
30
31
  const theme = useTheme();
31
32
  const { computeLabel } = useModificationLabelComputer();
33
+ const { snackError } = useSnackMessage();
32
34
  const { depth } = row;
33
35
  const isComposite = isCompositeModification(row.original);
34
36
  const getModificationLabel = useCallback(
@@ -40,8 +42,7 @@ function NameCell({ row, onEditNameCell }) {
40
42
  },
41
43
  [computeLabel, intl]
42
44
  );
43
- const label = useMemo(() => getModificationLabel(row.original), [getModificationLabel, row.original]);
44
- const compositeName = useMemo(() => {
45
+ const savedCompositeName = useMemo(() => {
45
46
  if (!isComposite) {
46
47
  return "";
47
48
  }
@@ -51,6 +52,14 @@ function NameCell({ row, onEditNameCell }) {
51
52
  return "";
52
53
  }
53
54
  }, [isComposite, row.original.messageValues]);
55
+ const [compositeName, setCompositeName] = useState(savedCompositeName);
56
+ useEffect(() => {
57
+ setCompositeName(savedCompositeName);
58
+ }, [savedCompositeName]);
59
+ const label = useMemo(
60
+ () => isComposite ? getModificationLabel({ ...row.original, messageValues: JSON.stringify({ name: compositeName }) }) : getModificationLabel(row.original),
61
+ [getModificationLabel, row.original, isComposite, compositeName]
62
+ );
54
63
  const [isEditing, setIsEditing] = useState(false);
55
64
  const [draftName, setDraftName] = useState("");
56
65
  const [inputBaseWidthPx, setInputBaseWidthPx] = useState(null);
@@ -62,16 +71,26 @@ function NameCell({ row, onEditNameCell }) {
62
71
  setIsEditing(false);
63
72
  setInputBaseWidthPx(null);
64
73
  }, []);
74
+ const updateName = useCallback(
75
+ (newName) => {
76
+ setCompositeName(newName);
77
+ Promise.resolve(onChange?.(row.original, newName)).catch((error) => {
78
+ setCompositeName(savedCompositeName);
79
+ snackWithFallback(snackError, error, { headerId: "networkModificationRenamingError" });
80
+ });
81
+ },
82
+ [onChange, row.original, savedCompositeName, snackError]
83
+ );
65
84
  const handleBlur = useCallback(() => {
66
85
  if (!isEditingRef.current) {
67
86
  return;
68
87
  }
69
88
  const trimmed = draftName.trim();
70
89
  if (trimmed !== "" && trimmed !== compositeName) {
71
- onEditNameCell?.(row.original, trimmed);
90
+ updateName(trimmed);
72
91
  }
73
92
  stopEditing();
74
- }, [compositeName, draftName, onEditNameCell, row.original, stopEditing]);
93
+ }, [compositeName, draftName, updateName, stopEditing]);
75
94
  const handleLabelClick = useCallback(
76
95
  (e) => {
77
96
  e.stopPropagation();
@@ -96,7 +115,7 @@ function NameCell({ row, onEditNameCell }) {
96
115
  if (e.key === "Enter") {
97
116
  const trimmed = draftName.trim();
98
117
  if (trimmed !== "" && trimmed !== compositeName) {
99
- onEditNameCell?.(row.original, trimmed);
118
+ updateName(trimmed);
100
119
  }
101
120
  stopEditing();
102
121
  inputRef.current?.blur();
@@ -105,7 +124,7 @@ function NameCell({ row, onEditNameCell }) {
105
124
  inputRef.current?.blur();
106
125
  }
107
126
  },
108
- [compositeName, draftName, onEditNameCell, row.original, stopEditing]
127
+ [compositeName, draftName, updateName, stopEditing]
109
128
  );
110
129
  const renderDepthBox = () => {
111
130
  const depthLevelCount = depth;
@@ -0,0 +1,13 @@
1
+ import { default as React, SetStateAction } from 'react';
2
+ import { UUID } from 'node:crypto';
3
+ import { ComposedModificationMetadata, ExcludedNetworkModifications, RootNetworkRowInfo } from '../../../utils';
4
+ export interface RootNetworkChipCellProps {
5
+ data: ComposedModificationMetadata;
6
+ studyUuid: UUID | null;
7
+ currentNodeId?: UUID;
8
+ rootNetwork: RootNetworkRowInfo;
9
+ modificationsToExclude: ExcludedNetworkModifications[];
10
+ setModificationsToExclude: React.Dispatch<SetStateAction<ExcludedNetworkModifications[]>>;
11
+ isDisabled?: boolean;
12
+ }
13
+ export declare function RootNetworkChipCell(props: RootNetworkChipCellProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,114 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useState, useMemo, useCallback } from "react";
3
+ import "react-intl";
4
+ import "@mui/material";
5
+ import { ActivableChip } from "../../ui/inputs/ActivableChip.js";
6
+ import "../../../utils/conversionUtils.js";
7
+ import { snackWithFallback } from "../../../utils/error.js";
8
+ import "../../../utils/types/equipmentType.js";
9
+ import "@mui/icons-material";
10
+ import "../../../utils/yupConfig.js";
11
+ import { updateModificationStatusByRootNetwork } from "../../../services/networkModification.js";
12
+ import "localized-countries";
13
+ import "localized-countries/data/fr";
14
+ import "localized-countries/data/en";
15
+ import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
16
+ function getUpdatedExcludedModifications(prev, rootNetworkUuid, modificationUuid) {
17
+ const exists = prev.some((item) => item.rootNetworkUuid === rootNetworkUuid);
18
+ if (exists) {
19
+ let newStatus = false;
20
+ const nextExcluded = prev.map((modif) => {
21
+ if (modif.rootNetworkUuid !== rootNetworkUuid) {
22
+ return modif;
23
+ }
24
+ const isExcluded = modif.modificationUuidsToExclude.includes(modificationUuid);
25
+ const newModificationUuidsToExclude = isExcluded ? modif.modificationUuidsToExclude.filter((id) => id !== modificationUuid) : [...modif.modificationUuidsToExclude, modificationUuid];
26
+ newStatus = isExcluded;
27
+ return {
28
+ ...modif,
29
+ modificationUuidsToExclude: newModificationUuidsToExclude
30
+ };
31
+ });
32
+ return { nextExcluded, newStatus };
33
+ }
34
+ return {
35
+ nextExcluded: [
36
+ ...prev,
37
+ {
38
+ rootNetworkUuid,
39
+ modificationUuidsToExclude: [modificationUuid]
40
+ }
41
+ ],
42
+ newStatus: false
43
+ };
44
+ }
45
+ function RootNetworkChipCell(props) {
46
+ const {
47
+ data,
48
+ studyUuid,
49
+ currentNodeId,
50
+ rootNetwork,
51
+ modificationsToExclude,
52
+ setModificationsToExclude,
53
+ isDisabled = false
54
+ } = props;
55
+ const [isLoading, setIsLoading] = useState(false);
56
+ const { snackError } = useSnackMessage();
57
+ const modificationUuid = data.uuid;
58
+ const isModificationActivated = useMemo(() => {
59
+ if (rootNetwork.isCreating) {
60
+ return true;
61
+ }
62
+ const excludedSet = new Set(
63
+ modificationsToExclude.find((item) => item.rootNetworkUuid === rootNetwork.rootNetworkUuid)?.modificationUuidsToExclude || []
64
+ );
65
+ return !excludedSet.has(modificationUuid);
66
+ }, [modificationUuid, modificationsToExclude, rootNetwork.rootNetworkUuid, rootNetwork.isCreating]);
67
+ const handleModificationActivationByRootNetwork = useCallback(() => {
68
+ if (!studyUuid || !currentNodeId) {
69
+ return;
70
+ }
71
+ setIsLoading(true);
72
+ const { nextExcluded, newStatus } = getUpdatedExcludedModifications(
73
+ modificationsToExclude,
74
+ rootNetwork.rootNetworkUuid,
75
+ modificationUuid
76
+ );
77
+ setModificationsToExclude(nextExcluded);
78
+ updateModificationStatusByRootNetwork(
79
+ studyUuid,
80
+ currentNodeId,
81
+ rootNetwork.rootNetworkUuid,
82
+ modificationUuid,
83
+ newStatus
84
+ ).catch((error) => {
85
+ setModificationsToExclude(
86
+ (prev) => getUpdatedExcludedModifications(prev, rootNetwork.rootNetworkUuid, modificationUuid).nextExcluded
87
+ );
88
+ snackWithFallback(snackError, error, { headerId: "modificationActivationByRootNetworkError" });
89
+ }).finally(() => {
90
+ setIsLoading(false);
91
+ });
92
+ }, [
93
+ modificationUuid,
94
+ studyUuid,
95
+ currentNodeId,
96
+ modificationsToExclude,
97
+ rootNetwork.rootNetworkUuid,
98
+ setModificationsToExclude,
99
+ snackError
100
+ ]);
101
+ return /* @__PURE__ */ jsx(
102
+ ActivableChip,
103
+ {
104
+ label: rootNetwork.tag,
105
+ tooltipMessage: rootNetwork.name,
106
+ isActivated: isModificationActivated,
107
+ isDisabled: isLoading || isDisabled,
108
+ onClick: handleModificationActivationByRootNetwork
109
+ }
110
+ );
111
+ }
112
+ export {
113
+ RootNetworkChipCell
114
+ };
@@ -18,7 +18,7 @@ function SelectCell({ row, table }) {
18
18
  (event) => {
19
19
  const rows = table.getRowModel().flatRows;
20
20
  const currentIndex = rows.indexOf(row);
21
- const anchorRowId = meta?.lastClickedRowId.current;
21
+ const anchorRowId = meta?.interaction.lastClickedRowId.current;
22
22
  const anchorIndex = anchorRowId == null ? null : rows.findIndex((candidate) => candidate.id === anchorRowId);
23
23
  const targetSelected = !isSelected;
24
24
  if (event.shiftKey && anchorIndex != null && anchorIndex !== -1) {
@@ -27,7 +27,7 @@ function SelectCell({ row, table }) {
27
27
  row.toggleSelected(targetSelected);
28
28
  }
29
29
  if (meta) {
30
- meta.lastClickedRowId.current = row.id;
30
+ meta.interaction.lastClickedRowId.current = row.id;
31
31
  }
32
32
  },
33
33
  [table, row, meta, isSelected]
@@ -6,8 +6,8 @@ function SelectHeaderCell({ table }) {
6
6
  const { meta } = table.options;
7
7
  if (meta) {
8
8
  const nextSelectedRows = table.getIsAllRowsSelected() ? [] : table.getCoreRowModel().rows.map((r) => r.original);
9
- meta.onRowSelected?.(nextSelectedRows);
10
- meta.lastClickedRowId.current = null;
9
+ meta.interaction.onRowSelected?.(nextSelectedRows);
10
+ meta.interaction.lastClickedRowId.current = null;
11
11
  }
12
12
  table.toggleAllRowsSelected();
13
13
  }, [table]);
@@ -0,0 +1,9 @@
1
+ import { UUID } from 'node:crypto';
2
+ import { ComposedModificationMetadata } from '../../../utils';
3
+ export interface SwitchCellProps {
4
+ data: ComposedModificationMetadata;
5
+ studyUuid: UUID | null;
6
+ currentNodeId?: UUID;
7
+ isDisabled?: boolean;
8
+ }
9
+ export declare function SwitchCell(props: SwitchCellProps): import("react/jsx-runtime").JSX.Element;