@gridsuite/commons-ui 0.287.0 → 0.289.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 (280) hide show
  1. package/dist/chunks/index.BJsVzTMz.js +92 -0
  2. package/dist/chunks/module.pXeJjFiM.js +306 -0
  3. package/dist/components/composite/agGridTable/CustomAgGridTable.js +0 -2
  4. package/dist/components/composite/customAGGrid/custom-aggrid-filters/hooks/use-custom-aggrid-comparator-filter.js +0 -2
  5. package/dist/components/composite/customAGGrid/customAggrid.js +8439 -2
  6. package/dist/components/composite/customAGGrid/hooks/use-custom-aggrid-sort.js +0 -2
  7. package/dist/components/composite/dnd-table/dnd-table-add-rows-dialog.js +1 -8
  8. package/dist/components/composite/dnd-table/dnd-table-row.js +1 -8
  9. package/dist/components/composite/dnd-table/dnd-table.js +1 -8
  10. package/dist/components/composite/elementSearch/elementItem/EquipmentItem.js +1 -2
  11. package/dist/components/composite/filter/FilterForm.js +0 -7
  12. package/dist/components/composite/filter/HeaderFilterForm.js +1 -8
  13. package/dist/components/composite/filter/expert/ExpertFilterForm.js +14 -9
  14. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +1 -8
  15. package/dist/components/composite/grid/grid-section.js +1 -8
  16. package/dist/components/composite/reactQueryBuilder/OperatorSelector.js +0 -2
  17. package/dist/components/composite/report/QuickSearch.js +0 -2
  18. package/dist/components/composite/report/report-viewer/log-table/log-table.js +1 -8
  19. package/dist/components/ui/csvPicker/csv-picker-confirmation-dialog.js +0 -7
  20. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +0 -7
  21. package/dist/components/ui/dialogs/name-element-editor/name-element-editor-utils.js +0 -7
  22. package/dist/components/ui/directoryItemSelector/DirectoryItemSelector.js +0 -2
  23. package/dist/components/ui/icons/ArrowsInputIcon.js +3 -2
  24. package/dist/components/ui/icons/ArrowsOutputIcon.js +3 -2
  25. package/dist/components/ui/icons/DatasetLinkedIcon.js +3 -2
  26. package/dist/components/ui/icons/EditNoteIcon.js +3 -2
  27. package/dist/components/ui/icons/LeftPanelCloseIcon.js +3 -2
  28. package/dist/components/ui/icons/LeftPanelOpenIcon.js +3 -2
  29. package/dist/components/ui/menus/custom-nested-menu.js +2 -2
  30. package/dist/components/ui/reactHookForm/DirectoryItemsInput.js +0 -2
  31. package/dist/components/ui/reactHookForm/chip-items-input.js +0 -2
  32. package/dist/components/ui/reactHookForm/text/DescriptionInput.js +0 -4
  33. package/dist/features/common/renderTable-ExportCsv.js +2 -10
  34. package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +2 -10
  35. package/dist/features/global-filter/ui/global-filter-panel.js +2 -10
  36. package/dist/features/global-filter/ui/selected-global-filters.js +2 -10
  37. package/dist/features/index.js +3 -8
  38. package/dist/features/network-modification-table/network-modifications-table.js +0 -2
  39. package/dist/features/network-modification-table/renderers/description-cell.js +0 -6
  40. package/dist/features/network-modification-table/renderers/name-cell.js +2 -10
  41. package/dist/features/network-modification-table/renderers/reference-link-cell.js +1 -9
  42. package/dist/features/network-modification-table/renderers/root-network-chip-cell.js +0 -2
  43. package/dist/features/network-modification-table/renderers/switch-cell.js +0 -2
  44. package/dist/features/network-modification-table/row/drag-row-clone.js +0 -2
  45. package/dist/features/network-modification-table/use-modifications-drag-and-drop.js +0 -2
  46. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +2 -10
  47. package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +2 -10
  48. package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +2 -10
  49. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +2 -10
  50. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +53 -3
  51. package/dist/features/network-modifications/battery/modification/batteryModification.utils.js +2 -10
  52. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +1 -8
  53. package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +1 -8
  54. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +1 -8
  55. package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +2 -10
  56. package/dist/features/network-modifications/by-filter/formula/formula/reference-autocomplete-input.js +2 -10
  57. package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +2 -10
  58. package/dist/features/network-modifications/common/activePowerControl/ActivePowerControlForm.js +1 -8
  59. package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +1 -8
  60. package/dist/features/network-modifications/common/connectivity/PositionForm.js +1 -8
  61. package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +1 -8
  62. package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +2 -10
  63. package/dist/features/network-modifications/common/currentLimits/SelectedOperationalLimitGroup.js +2 -10
  64. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +2 -10
  65. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsPropertiesSideStack.js +2 -10
  66. package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +2 -10
  67. package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.js +1 -8
  68. package/dist/features/network-modifications/common/index.d.ts +1 -0
  69. package/dist/features/network-modifications/common/index.js +2 -0
  70. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +2 -10
  71. package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +1 -8
  72. package/dist/features/network-modifications/common/properties/PropertiesForm.js +1 -8
  73. package/dist/features/network-modifications/common/properties/PropertyForm.js +1 -8
  74. package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +1 -8
  75. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.js +1 -8
  76. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +1 -8
  77. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +1 -8
  78. package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +1 -8
  79. package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +1 -8
  80. package/dist/features/network-modifications/common/tabbedForm.styles.d.ts +32 -0
  81. package/dist/features/network-modifications/common/tabbedForm.styles.js +14 -0
  82. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +1 -8
  83. package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +2 -10
  84. package/dist/features/network-modifications/equipmentDeletion/equipmentDeletion.utils.js +1 -8
  85. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +1 -8
  86. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/useHvdcLccDeletion.js +0 -2
  87. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +2 -10
  88. package/dist/features/network-modifications/generator/creation/generatorCreation.utils.js +2 -10
  89. package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +2 -10
  90. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +2 -10
  91. package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +53 -3
  92. package/dist/features/network-modifications/generator/modification/generatorModification.utils.js +2 -10
  93. package/dist/features/network-modifications/hvdcLine/vsc/common/characteristics/VscHvdcLineCharacteristicsPane.js +2 -10
  94. package/dist/features/network-modifications/hvdcLine/vsc/common/converterStation/VscConverterStationPane.js +2 -10
  95. package/dist/features/network-modifications/hvdcLine/vsc/common/form/VscHvdcLineDialogHeader.js +2 -10
  96. package/dist/features/network-modifications/hvdcLine/vsc/common/form/VscHvdcLineDialogTabs.js +1 -8
  97. package/dist/features/network-modifications/hvdcLine/vsc/common/form/VscHvdcLineDialogTabsContent.js +2 -10
  98. package/dist/features/network-modifications/hvdcLine/vsc/common/form/VscHvdcLineForm.js +57 -2
  99. package/dist/features/network-modifications/hvdcLine/vsc/creation/vscHvdcLineCreation.utils.js +1 -8
  100. package/dist/features/network-modifications/hvdcLine/vsc/modification/vscHvdcLineModification.utils.js +2 -10
  101. package/dist/features/network-modifications/index.js +3 -8
  102. package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +2 -10
  103. package/dist/features/network-modifications/line/common/LineDialogHeader.js +2 -10
  104. package/dist/features/network-modifications/line/common/LineDialogTabsContent.js +2 -10
  105. package/dist/features/network-modifications/line/common/LineForm.js +56 -2
  106. package/dist/features/network-modifications/line/creation/lineCreation.utils.js +2 -10
  107. package/dist/features/network-modifications/line/modification/lineModification.utils.js +2 -10
  108. package/dist/features/network-modifications/load/common/LoadDialogHeader.js +2 -10
  109. package/dist/features/network-modifications/load/common/LoadForm.js +57 -3
  110. package/dist/features/network-modifications/load/creation/loadCreation.utils.js +1 -8
  111. package/dist/features/network-modifications/load/modification/loadModification.utils.js +2 -10
  112. package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +1 -8
  113. package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +2 -10
  114. package/dist/features/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.js +2 -10
  115. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +2 -10
  116. package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.js +2 -10
  117. package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form-utils.js +2 -10
  118. package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form.js +2 -10
  119. package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form-utils.js +2 -10
  120. package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form.js +2 -10
  121. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-header.js +2 -10
  122. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tabs-content.js +2 -10
  123. package/dist/features/network-modifications/static-var-compensator/common/susceptance-area.js +2 -10
  124. package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js +12 -19
  125. package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.js +2 -10
  126. package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +2 -10
  127. package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +2 -8
  128. package/dist/features/network-modifications/tabular/TabularForm.js +2 -10
  129. package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.js +2 -10
  130. package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.js +2 -10
  131. package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.js +2 -10
  132. package/dist/features/network-modifications/tabular/tabular.utils.js +2 -10
  133. package/dist/features/network-modifications/tabular/tabularCreation.utils.js +2 -10
  134. package/dist/features/network-modifications/tabular/tabularModification.utils.js +2 -10
  135. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.js +2 -10
  136. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.js +2 -10
  137. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.js +2 -10
  138. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.js +56 -2
  139. package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.js +2 -10
  140. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.js +2 -10
  141. package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.js +2 -10
  142. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/RegulatedTerminalSection.js +2 -10
  143. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.js +2 -10
  144. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.js +2 -10
  145. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.js +2 -10
  146. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.js +2 -10
  147. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.js +2 -10
  148. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.js +2 -10
  149. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.js +2 -10
  150. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.js +2 -10
  151. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.js +2 -10
  152. package/dist/features/network-modifications/voltageLevel/common/HeaderWithTooltip.js +2 -10
  153. package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-form.js +2 -10
  154. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +5 -12
  155. package/dist/features/network-modifications/voltageLevel/creation/index.js +2 -10
  156. package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +1 -8
  157. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +1 -8
  158. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusForm.js +1 -8
  159. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +1 -8
  160. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +2 -10
  161. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +1 -8
  162. package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +2 -10
  163. package/dist/features/network-modifications/voltageLevel/index.js +2 -10
  164. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +5 -12
  165. package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js +2 -10
  166. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js +2 -10
  167. package/dist/features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js +2 -10
  168. package/dist/features/network-modifications/voltageLevel/topology/creation/CreateVoltageLevelTopologyForm.js +2 -10
  169. package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.js +2 -10
  170. package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js +2 -10
  171. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.js +2 -10
  172. package/dist/features/parameters/common/contingency-table/columns-definitions.js +1 -8
  173. package/dist/features/parameters/common/contingency-table/contingency-table.js +0 -2
  174. package/dist/features/parameters/common/limitreductions/limit-reduction-table-cell.js +1 -8
  175. package/dist/features/parameters/common/limitreductions/limit-reductions-table-form.js +1 -8
  176. package/dist/features/parameters/common/parameter-field.js +1 -8
  177. package/dist/features/parameters/common/parameter-layout/parameter-layout.js +1 -8
  178. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +1 -8
  179. package/dist/features/parameters/common/parameters-creation-dialog.js +0 -7
  180. package/dist/features/parameters/common/provider-param.js +1 -8
  181. package/dist/features/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +1 -8
  182. package/dist/features/parameters/common/widget/parameter-float.js +1 -8
  183. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +1 -8
  184. package/dist/features/parameters/common/widget/parameter-line-slider.js +1 -8
  185. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -8
  186. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +1 -8
  187. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -8
  188. package/dist/features/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +1 -8
  189. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +1 -8
  190. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +1 -8
  191. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -8
  192. package/dist/features/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +1 -8
  193. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +0 -2
  194. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-preview.js +0 -2
  195. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +1 -8
  196. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +1 -8
  197. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters-utils.js +1 -8
  198. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +1 -8
  199. package/dist/features/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js +1 -8
  200. package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +1 -8
  201. package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -8
  202. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +1 -8
  203. package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +0 -7
  204. package/dist/features/parameters/loadflow/load-flow-parameters-header.js +1 -8
  205. package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +1 -8
  206. package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +1 -8
  207. package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +1 -8
  208. package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +1 -8
  209. package/dist/features/parameters/network-visualizations/map-parameters.js +1 -8
  210. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +1 -8
  211. package/dist/features/parameters/network-visualizations/network-visualizations-form.js +1 -8
  212. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +0 -7
  213. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +1 -8
  214. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +1 -8
  215. package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.js +1 -8
  216. package/dist/features/parameters/pcc-min/pcc-min-form-utils.js +1 -8
  217. package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +0 -7
  218. package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +1 -8
  219. package/dist/features/parameters/pcc-min/use-pcc-min-parameters-form.js +1 -8
  220. package/dist/features/parameters/security-analysis/columns-definitions.js +1 -8
  221. package/dist/features/parameters/security-analysis/security-analysis-parameters-content.js +1 -8
  222. package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +0 -7
  223. package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +1 -8
  224. package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +1 -8
  225. package/dist/features/parameters/security-analysis/security-analysis-parameters-utils.js +1 -8
  226. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +1 -8
  227. package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +1 -8
  228. package/dist/features/parameters/sensi/columns-definitions.js +1 -8
  229. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +0 -7
  230. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +1 -8
  231. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +1 -8
  232. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +1 -8
  233. package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +1 -8
  234. package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.js +1 -8
  235. package/dist/features/parameters/sensi/utils.js +1 -8
  236. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +1 -8
  237. package/dist/features/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +1 -8
  238. package/dist/features/parameters/short-circuit/short-circuit-icc-material-table-cell.js +1 -8
  239. package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +1 -8
  240. package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +0 -7
  241. package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +1 -8
  242. package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +1 -8
  243. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +1 -8
  244. package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +1 -8
  245. package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -8
  246. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +1 -8
  247. package/dist/features/parameters/voltage-init/general-parameters.js +1 -8
  248. package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +1 -8
  249. package/dist/features/parameters/voltage-init/voltage-init-form-utils.js +1 -8
  250. package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +0 -7
  251. package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +1 -8
  252. package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +1 -8
  253. package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +1 -8
  254. package/dist/features/process-configs/common/process-config-modifications-edition.js +2 -10
  255. package/dist/features/process-configs/lf-process-config-edition-dialog.js +2 -10
  256. package/dist/features/process-configs/loadflow/lf-process-config-edition.js +1 -8
  257. package/dist/features/process-configs/loadflow/lf-process-config-edition.utils.js +2 -10
  258. package/dist/features/process-configs/process-config.utils.js +2 -10
  259. package/dist/features/process-configs/sa-process-config-edition-dialog.js +2 -10
  260. package/dist/features/process-configs/sc-process-config-edition-dialog.js +2 -10
  261. package/dist/features/process-configs/security-analysis/sa-process-config-edition.js +1 -8
  262. package/dist/features/process-configs/security-analysis/sa-process-config-edition.utils.js +2 -10
  263. package/dist/features/process-configs/shortcircuit/sc-process-config-edition.js +1 -8
  264. package/dist/features/process-configs/shortcircuit/sc-process-config-edition.utils.js +2 -10
  265. package/dist/features/results/loadflow/limit-violation-result.js +2 -10
  266. package/dist/features/results/securityanalysis/security-analysis-result-nmk.js +2 -10
  267. package/dist/features/results/securityanalysis/security-analysis-table.js +2 -10
  268. package/dist/features/results/shortcircuit/shortcircuit-analysis-result-table.js +2 -10
  269. package/dist/features/results/shortcircuit/shortcircuit-analysis-result.js +2 -10
  270. package/dist/features/side-bar/footer/applications/ApplicationMenu.js +1 -9
  271. package/dist/features/side-bar/footer/applications/OtherAppRedirection.js +1 -9
  272. package/dist/features/side-bar/footer/common/SideBarMenuItem.js +1 -9
  273. package/dist/features/side-bar/footer/profile/ProfileMenu.js +1 -9
  274. package/dist/features/side-bar/footer/settings/DarkModeToggle.js +1 -9
  275. package/dist/features/side-bar/footer/settings/LanguageSelection.js +1 -9
  276. package/dist/features/side-bar/footer/settings/SettingsMenu.js +1 -9
  277. package/dist/hooks/useLocalizedCountries.js +1000 -2
  278. package/dist/index.js +2 -0
  279. package/package.json +2 -2
  280. package/dist/assets/ExpertFilterForm.css +0 -180
@@ -0,0 +1,92 @@
1
+ function getDefaultExportFromCjs(x) {
2
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
3
+ }
4
+ var match$2 = { exports: {} };
5
+ var match$1 = match$2.exports;
6
+ var hasRequiredMatch;
7
+ function requireMatch() {
8
+ if (hasRequiredMatch) return match$2.exports;
9
+ hasRequiredMatch = 1;
10
+ (function(module, exports) {
11
+ !(function(e, t) {
12
+ module.exports = t();
13
+ })(match$1, (() => {
14
+ return e = { 772: (e2, t2, o) => {
15
+ const r = o(826).remove, i = /[.*+?^${}()|[\]\\]/g, n = /[a-z0-9_]/i, u = /\s+/;
16
+ e2.exports = function(e3, t3, o2) {
17
+ var s, a;
18
+ a = { insideWords: false, findAllOccurrences: false, requireMatchAll: false }, s = (s = o2) || {}, Object.keys(s).forEach(((e4) => {
19
+ a[e4] = !!s[e4];
20
+ })), o2 = a;
21
+ const c = Array.from(e3).map(((e4) => r(e4)));
22
+ let l = c.join("");
23
+ return (t3 = r(t3)).trim().split(u).filter(((e4) => e4.length > 0)).reduce(((e4, t4) => {
24
+ const r2 = t4.length, u2 = !o2.insideWords && n.test(t4[0]) ? "\\b" : "", s2 = new RegExp(u2 + t4.replace(i, "\\$&"), "i");
25
+ let a2, A;
26
+ if (a2 = s2.exec(l), o2.requireMatchAll && null === a2) return l = "", [];
27
+ for (; a2; ) {
28
+ A = a2.index;
29
+ const t5 = r2 - c.slice(A, A + r2).join("").length, i2 = A - c.slice(0, A).join("").length, n2 = [A + i2, A + r2 + i2 + t5];
30
+ if (n2[0] !== n2[1] && e4.push(n2), l = l.slice(0, A) + new Array(r2 + 1).join(" ") + l.slice(A + r2), !o2.findAllOccurrences) break;
31
+ a2 = s2.exec(l);
32
+ }
33
+ return e4;
34
+ }), []).sort(((e4, t4) => e4[0] - t4[0]));
35
+ };
36
+ }, 826: (e2) => {
37
+ var t2 = { À: "A", Á: "A", Â: "A", Ã: "A", Ä: "A", Å: "A", Ấ: "A", Ắ: "A", Ẳ: "A", Ẵ: "A", Ặ: "A", Æ: "AE", Ầ: "A", Ằ: "A", Ȃ: "A", Ç: "C", Ḉ: "C", È: "E", É: "E", Ê: "E", Ë: "E", Ế: "E", Ḗ: "E", Ề: "E", Ḕ: "E", Ḝ: "E", Ȇ: "E", Ì: "I", Í: "I", Î: "I", Ï: "I", Ḯ: "I", Ȋ: "I", Ð: "D", Ñ: "N", Ò: "O", Ó: "O", Ô: "O", Õ: "O", Ö: "O", Ø: "O", Ố: "O", Ṍ: "O", Ṓ: "O", Ȏ: "O", Ù: "U", Ú: "U", Û: "U", Ü: "U", Ý: "Y", à: "a", á: "a", â: "a", ã: "a", ä: "a", å: "a", ấ: "a", ắ: "a", ẳ: "a", ẵ: "a", ặ: "a", æ: "ae", ầ: "a", ằ: "a", ȃ: "a", ç: "c", ḉ: "c", è: "e", é: "e", ê: "e", ë: "e", ế: "e", ḗ: "e", ề: "e", ḕ: "e", ḝ: "e", ȇ: "e", ì: "i", í: "i", î: "i", ï: "i", ḯ: "i", ȋ: "i", ð: "d", ñ: "n", ò: "o", ó: "o", ô: "o", õ: "o", ö: "o", ø: "o", ố: "o", ṍ: "o", ṓ: "o", ȏ: "o", ù: "u", ú: "u", û: "u", ü: "u", ý: "y", ÿ: "y", Ā: "A", ā: "a", Ă: "A", ă: "a", Ą: "A", ą: "a", Ć: "C", ć: "c", Ĉ: "C", ĉ: "c", Ċ: "C", ċ: "c", Č: "C", č: "c", C̆: "C", c̆: "c", Ď: "D", ď: "d", Đ: "D", đ: "d", Ē: "E", ē: "e", Ĕ: "E", ĕ: "e", Ė: "E", ė: "e", Ę: "E", ę: "e", Ě: "E", ě: "e", Ĝ: "G", Ǵ: "G", ĝ: "g", ǵ: "g", Ğ: "G", ğ: "g", Ġ: "G", ġ: "g", Ģ: "G", ģ: "g", Ĥ: "H", ĥ: "h", Ħ: "H", ħ: "h", Ḫ: "H", ḫ: "h", Ĩ: "I", ĩ: "i", Ī: "I", ī: "i", Ĭ: "I", ĭ: "i", Į: "I", į: "i", İ: "I", ı: "i", IJ: "IJ", ij: "ij", Ĵ: "J", ĵ: "j", Ķ: "K", ķ: "k", Ḱ: "K", ḱ: "k", K̆: "K", k̆: "k", Ĺ: "L", ĺ: "l", Ļ: "L", ļ: "l", Ľ: "L", ľ: "l", Ŀ: "L", ŀ: "l", Ł: "l", ł: "l", Ḿ: "M", ḿ: "m", M̆: "M", m̆: "m", Ń: "N", ń: "n", Ņ: "N", ņ: "n", Ň: "N", ň: "n", ʼn: "n", N̆: "N", n̆: "n", Ō: "O", ō: "o", Ŏ: "O", ŏ: "o", Ő: "O", ő: "o", Œ: "OE", œ: "oe", P̆: "P", p̆: "p", Ŕ: "R", ŕ: "r", Ŗ: "R", ŗ: "r", Ř: "R", ř: "r", R̆: "R", r̆: "r", Ȓ: "R", ȓ: "r", Ś: "S", ś: "s", Ŝ: "S", ŝ: "s", Ş: "S", Ș: "S", ș: "s", ş: "s", Š: "S", š: "s", Ţ: "T", ţ: "t", ț: "t", Ț: "T", Ť: "T", ť: "t", Ŧ: "T", ŧ: "t", T̆: "T", t̆: "t", Ũ: "U", ũ: "u", Ū: "U", ū: "u", Ŭ: "U", ŭ: "u", Ů: "U", ů: "u", Ű: "U", ű: "u", Ų: "U", ų: "u", Ȗ: "U", ȗ: "u", V̆: "V", v̆: "v", Ŵ: "W", ŵ: "w", Ẃ: "W", ẃ: "w", X̆: "X", x̆: "x", Ŷ: "Y", ŷ: "y", Ÿ: "Y", Y̆: "Y", y̆: "y", Ź: "Z", ź: "z", Ż: "Z", ż: "z", Ž: "Z", ž: "z", ſ: "s", ƒ: "f", Ơ: "O", ơ: "o", Ư: "U", ư: "u", Ǎ: "A", ǎ: "a", Ǐ: "I", ǐ: "i", Ǒ: "O", ǒ: "o", Ǔ: "U", ǔ: "u", Ǖ: "U", ǖ: "u", Ǘ: "U", ǘ: "u", Ǚ: "U", ǚ: "u", Ǜ: "U", ǜ: "u", Ứ: "U", ứ: "u", Ṹ: "U", ṹ: "u", Ǻ: "A", ǻ: "a", Ǽ: "AE", ǽ: "ae", Ǿ: "O", ǿ: "o", Þ: "TH", þ: "th", Ṕ: "P", ṕ: "p", Ṥ: "S", ṥ: "s", X́: "X", x́: "x", Ѓ: "Г", ѓ: "г", Ќ: "К", ќ: "к", A̋: "A", a̋: "a", E̋: "E", e̋: "e", I̋: "I", i̋: "i", Ǹ: "N", ǹ: "n", Ồ: "O", ồ: "o", Ṑ: "O", ṑ: "o", Ừ: "U", ừ: "u", Ẁ: "W", ẁ: "w", Ỳ: "Y", ỳ: "y", Ȁ: "A", ȁ: "a", Ȅ: "E", ȅ: "e", Ȉ: "I", ȉ: "i", Ȍ: "O", ȍ: "o", Ȑ: "R", ȑ: "r", Ȕ: "U", ȕ: "u", B̌: "B", b̌: "b", Č̣: "C", č̣: "c", Ê̌: "E", ê̌: "e", F̌: "F", f̌: "f", Ǧ: "G", ǧ: "g", Ȟ: "H", ȟ: "h", J̌: "J", ǰ: "j", Ǩ: "K", ǩ: "k", M̌: "M", m̌: "m", P̌: "P", p̌: "p", Q̌: "Q", q̌: "q", Ř̩: "R", ř̩: "r", Ṧ: "S", ṧ: "s", V̌: "V", v̌: "v", W̌: "W", w̌: "w", X̌: "X", x̌: "x", Y̌: "Y", y̌: "y", A̧: "A", a̧: "a", B̧: "B", b̧: "b", Ḑ: "D", ḑ: "d", Ȩ: "E", ȩ: "e", Ɛ̧: "E", ɛ̧: "e", Ḩ: "H", ḩ: "h", I̧: "I", i̧: "i", Ɨ̧: "I", ɨ̧: "i", M̧: "M", m̧: "m", O̧: "O", o̧: "o", Q̧: "Q", q̧: "q", U̧: "U", u̧: "u", X̧: "X", x̧: "x", Z̧: "Z", z̧: "z" }, o = Object.keys(t2).join("|"), r = new RegExp(o, "g"), i = new RegExp(o, ""), n = function(e3) {
38
+ return e3.replace(r, (function(e4) {
39
+ return t2[e4];
40
+ }));
41
+ };
42
+ e2.exports = n, e2.exports.has = function(e3) {
43
+ return !!e3.match(i);
44
+ }, e2.exports.remove = n;
45
+ } }, t = {}, (function o(r) {
46
+ var i = t[r];
47
+ if (void 0 !== i) return i.exports;
48
+ var n = t[r] = { exports: {} };
49
+ return e[r](n, n.exports, o), n.exports;
50
+ })(772);
51
+ var e, t;
52
+ }));
53
+ })(match$2);
54
+ return match$2.exports;
55
+ }
56
+ var matchExports = requireMatch();
57
+ const match = /* @__PURE__ */ getDefaultExportFromCjs(matchExports);
58
+ var parse$2 = { exports: {} };
59
+ var parse$1 = parse$2.exports;
60
+ var hasRequiredParse;
61
+ function requireParse() {
62
+ if (hasRequiredParse) return parse$2.exports;
63
+ hasRequiredParse = 1;
64
+ (function(module, exports) {
65
+ !(function(t, e) {
66
+ module.exports = e();
67
+ })(parse$1, (() => {
68
+ return t = { 705: (t2) => {
69
+ t2.exports = function(t3, e2) {
70
+ const h = [];
71
+ return 0 === e2.length ? h.push({ text: t3, highlight: false }) : e2[0][0] > 0 && h.push({ text: t3.slice(0, e2[0][0]), highlight: false }), e2.forEach(((i, o) => {
72
+ const s = i[0], r = i[1];
73
+ h.push({ text: t3.slice(s, r), highlight: true }), o === e2.length - 1 ? r < t3.length && h.push({ text: t3.slice(r, t3.length), highlight: false }) : r < e2[o + 1][0] && h.push({ text: t3.slice(r, e2[o + 1][0]), highlight: false });
74
+ })), h;
75
+ };
76
+ } }, e = {}, (function h(i) {
77
+ var o = e[i];
78
+ if (void 0 !== o) return o.exports;
79
+ var s = e[i] = { exports: {} };
80
+ return t[i](s, s.exports, h), s.exports;
81
+ })(705);
82
+ var t, e;
83
+ }));
84
+ })(parse$2);
85
+ return parse$2.exports;
86
+ }
87
+ var parseExports = requireParse();
88
+ const parse = /* @__PURE__ */ getDefaultExportFromCjs(parseExports);
89
+ export {
90
+ match as m,
91
+ parse as p
92
+ };
@@ -0,0 +1,306 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import $dw2me$muimaterialMenu from "@mui/material/Menu";
3
+ import { forwardRef, useRef, useImperativeHandle, useState } from "react";
4
+ import $dw2me$muimaterialMenuItem from "@mui/material/MenuItem";
5
+ import { styled } from "@mui/material/styles";
6
+ import $dw2me$muimaterialTypography from "@mui/material/Typography";
7
+ import $dw2me$muimaterialBox from "@mui/material/Box";
8
+ import $dw2me$muimaterialSvgIcon from "@mui/material/SvgIcon";
9
+ import $dw2me$muimaterialButton from "@mui/material/Button";
10
+ function $parcel$exportWildcard(dest, source) {
11
+ Object.keys(source).forEach(function(key) {
12
+ if (key === "default" || key === "__esModule" || Object.prototype.hasOwnProperty.call(dest, key)) {
13
+ return;
14
+ }
15
+ Object.defineProperty(dest, key, {
16
+ enumerable: true,
17
+ get: function get() {
18
+ return source[key];
19
+ }
20
+ });
21
+ });
22
+ return dest;
23
+ }
24
+ function $parcel$export(e, n, v, s) {
25
+ Object.defineProperty(e, n, { get: v, set: s, enumerable: true, configurable: true });
26
+ }
27
+ var $4a0ad0bf42c271a8$exports = {};
28
+ var $ad513b13aee61650$exports = {};
29
+ $parcel$export($ad513b13aee61650$exports, "ContextMenu", () => $ad513b13aee61650$export$8dc6765e8be191c7);
30
+ var $80b2acfbe3fcf9bd$exports = {};
31
+ $parcel$export($80b2acfbe3fcf9bd$exports, "nestedMenuItemsFromObject", () => $80b2acfbe3fcf9bd$export$fa07f0a23a9d3fdc);
32
+ var $72864715d956ea8e$exports = {};
33
+ $parcel$export($72864715d956ea8e$exports, "IconMenuItem", () => $72864715d956ea8e$export$29aa74ef483b19fe);
34
+ const $72864715d956ea8e$var$StyledMenuItem = styled($dw2me$muimaterialMenuItem)({
35
+ display: "flex",
36
+ justifyContent: "space-between",
37
+ paddingLeft: "4px",
38
+ paddingRight: "4px"
39
+ });
40
+ const $72864715d956ea8e$var$StyledTypography = styled($dw2me$muimaterialTypography)({
41
+ paddingLeft: "8px",
42
+ paddingRight: "8px",
43
+ textAlign: "left"
44
+ });
45
+ const $72864715d956ea8e$var$FlexBox = styled($dw2me$muimaterialBox)({
46
+ display: "flex"
47
+ });
48
+ const $72864715d956ea8e$export$29aa74ef483b19fe = /* @__PURE__ */ forwardRef(function IconMenuItem({ MenuItemProps, className, label, leftIcon, renderLabel, rightIcon, ...props }, ref) {
49
+ return /* @__PURE__ */ jsxs($72864715d956ea8e$var$StyledMenuItem, {
50
+ ...MenuItemProps,
51
+ ref,
52
+ className,
53
+ ...props,
54
+ children: [
55
+ /* @__PURE__ */ jsxs($72864715d956ea8e$var$FlexBox, {
56
+ children: [
57
+ leftIcon,
58
+ renderLabel ? renderLabel() : /* @__PURE__ */ jsx($72864715d956ea8e$var$StyledTypography, {
59
+ children: label
60
+ })
61
+ ]
62
+ }),
63
+ rightIcon
64
+ ]
65
+ });
66
+ });
67
+ var $fbbfd8893e0b22a2$exports = {};
68
+ $parcel$export($fbbfd8893e0b22a2$exports, "NestedMenuItem", () => $fbbfd8893e0b22a2$export$a49133e888f99d9b);
69
+ const $c842cdd09bc7bdb3$export$6172d85aadfc9b96 = (props) => {
70
+ return /* @__PURE__ */ jsx($dw2me$muimaterialSvgIcon, {
71
+ ...props,
72
+ children: /* @__PURE__ */ jsx("path", {
73
+ d: "M9.29 6.71c-.39.39-.39 1.02 0 1.41L13.17 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01z"
74
+ })
75
+ });
76
+ };
77
+ const $fbbfd8893e0b22a2$export$a49133e888f99d9b = /* @__PURE__ */ forwardRef(function NestedMenuItem(props, ref) {
78
+ const { parentMenuOpen, label, renderLabel, rightIcon = /* @__PURE__ */ jsx($c842cdd09bc7bdb3$export$6172d85aadfc9b96, {}), leftIcon = null, children, className, tabIndex: tabIndexProp, ContainerProps: ContainerPropsProp = {}, MenuProps, delay = 0, ...MenuItemProps } = props;
79
+ const { ref: containerRefProp, ...ContainerProps } = ContainerPropsProp;
80
+ const menuItemRef = useRef(null);
81
+ useImperativeHandle(ref, () => menuItemRef.current);
82
+ const containerRef = useRef(null);
83
+ useImperativeHandle(containerRefProp, () => containerRef.current);
84
+ const menuContainerRef = useRef(null);
85
+ const timeoutRef = useRef(null);
86
+ const [isSubMenuOpen, setIsSubMenuOpen] = useState(false);
87
+ const handleMouseEnter = (e) => {
88
+ timeoutRef.current = setTimeout(() => {
89
+ if (!props.disabled) setIsSubMenuOpen(true);
90
+ if (ContainerProps.onMouseEnter) ContainerProps.onMouseEnter(e);
91
+ }, delay);
92
+ };
93
+ const handleMouseLeave = (e) => {
94
+ timeoutRef.current && clearTimeout(timeoutRef.current);
95
+ setIsSubMenuOpen(false);
96
+ if (ContainerProps.onMouseLeave) ContainerProps.onMouseLeave(e);
97
+ };
98
+ const isSubmenuFocused = () => {
99
+ const active = containerRef.current?.ownerDocument.activeElement ?? null;
100
+ if (menuContainerRef.current == null) return false;
101
+ for (const child of menuContainerRef.current.children) {
102
+ if (child === active) return true;
103
+ }
104
+ return false;
105
+ };
106
+ const handleFocus = (e) => {
107
+ if (e.target === containerRef.current && !props.disabled) setIsSubMenuOpen(true);
108
+ if (ContainerProps.onFocus) ContainerProps.onFocus(e);
109
+ };
110
+ const handleKeyDown = (e) => {
111
+ if (e.key === "Escape") return;
112
+ if (isSubmenuFocused()) e.stopPropagation();
113
+ const active = containerRef.current?.ownerDocument.activeElement;
114
+ if (e.key === "ArrowLeft" && isSubmenuFocused()) containerRef.current?.focus();
115
+ if (e.key === "ArrowRight" && e.target === containerRef.current && e.target === active) {
116
+ const firstChild = menuContainerRef.current?.children[0];
117
+ firstChild?.focus();
118
+ }
119
+ };
120
+ const open = isSubMenuOpen && parentMenuOpen;
121
+ let tabIndex;
122
+ if (!props.disabled) tabIndex = tabIndexProp !== void 0 ? tabIndexProp : -1;
123
+ return /* @__PURE__ */ jsxs("div", {
124
+ ...ContainerProps,
125
+ ref: containerRef,
126
+ onFocus: handleFocus,
127
+ tabIndex,
128
+ onMouseEnter: handleMouseEnter,
129
+ onMouseLeave: handleMouseLeave,
130
+ onKeyDown: handleKeyDown,
131
+ children: [
132
+ /* @__PURE__ */ jsx($72864715d956ea8e$export$29aa74ef483b19fe, {
133
+ MenuItemProps,
134
+ className,
135
+ ref: menuItemRef,
136
+ leftIcon,
137
+ rightIcon,
138
+ label,
139
+ renderLabel
140
+ }),
141
+ /* @__PURE__ */ jsx($dw2me$muimaterialMenu, {
142
+ // Set pointer events to 'none' to prevent the invisible Popover div
143
+ // from capturing events for clicks and hovers
144
+ style: {
145
+ pointerEvents: "none"
146
+ },
147
+ anchorEl: menuItemRef.current,
148
+ anchorOrigin: {
149
+ horizontal: "right",
150
+ vertical: "top"
151
+ },
152
+ transformOrigin: {
153
+ horizontal: "left",
154
+ vertical: "top"
155
+ },
156
+ open,
157
+ autoFocus: false,
158
+ disableAutoFocus: true,
159
+ disableEnforceFocus: true,
160
+ onClose: () => {
161
+ setIsSubMenuOpen(false);
162
+ },
163
+ ...MenuProps,
164
+ children: /* @__PURE__ */ jsx("div", {
165
+ ref: menuContainerRef,
166
+ style: {
167
+ pointerEvents: "auto"
168
+ },
169
+ children
170
+ })
171
+ })
172
+ ]
173
+ });
174
+ });
175
+ $fbbfd8893e0b22a2$export$a49133e888f99d9b.displayName = "NestedMenuItem";
176
+ function $80b2acfbe3fcf9bd$export$fa07f0a23a9d3fdc({ menuItemsData: items, isOpen, handleClose }) {
177
+ return items.map((item) => {
178
+ const { leftIcon, rightIcon, label, items: items2, callback, sx, disabled, delay } = item;
179
+ if (items2 && items2.length > 0)
180
+ return /* @__PURE__ */ jsx($fbbfd8893e0b22a2$export$a49133e888f99d9b, {
181
+ leftIcon,
182
+ rightIcon,
183
+ label,
184
+ parentMenuOpen: isOpen,
185
+ sx,
186
+ delay,
187
+ disabled,
188
+ children: $80b2acfbe3fcf9bd$export$fa07f0a23a9d3fdc({
189
+ handleClose,
190
+ isOpen,
191
+ menuItemsData: items2
192
+ })
193
+ }, label);
194
+ else
195
+ return /* @__PURE__ */ jsx($72864715d956ea8e$export$29aa74ef483b19fe, {
196
+ leftIcon,
197
+ rightIcon,
198
+ label,
199
+ onClick: (event) => {
200
+ handleClose();
201
+ callback && callback(event, item);
202
+ },
203
+ sx,
204
+ disabled
205
+ }, label);
206
+ });
207
+ }
208
+ const $ad513b13aee61650$export$8dc6765e8be191c7 = /* @__PURE__ */ forwardRef(function ContextMenu({ children, menuItems, menuItemsData }, ref) {
209
+ const wrapperRef = ref ?? useRef(null);
210
+ const [menuPosition, setMenuPosition] = useState(null);
211
+ const [mouseDownPosition, setMouseDownPosition] = useState(null);
212
+ const handleItemClick = () => setMenuPosition(null);
213
+ const handleMouseDown = (e) => {
214
+ if (menuPosition !== null) setMenuPosition(null);
215
+ if (e.button !== 2) return;
216
+ const wrapperBounds = wrapperRef.current.getBoundingClientRect();
217
+ if (e.clientX < wrapperBounds.left || e.clientX > wrapperBounds.right || e.clientY < wrapperBounds.top || e.clientY > wrapperBounds.bottom) return;
218
+ setMouseDownPosition({
219
+ left: e.clientX,
220
+ top: e.clientY
221
+ });
222
+ };
223
+ const handleMouseUp = (e) => {
224
+ const top = e.clientY;
225
+ const left = e.clientX;
226
+ if (mouseDownPosition === null) return;
227
+ if (mouseDownPosition.top === top && mouseDownPosition.left === left) setMenuPosition({
228
+ left: e.clientX,
229
+ top: e.clientY
230
+ });
231
+ };
232
+ const menuContents = menuItems ?? (menuItemsData && $80b2acfbe3fcf9bd$export$fa07f0a23a9d3fdc({
233
+ handleClose: handleItemClick,
234
+ isOpen: !!menuPosition,
235
+ menuItemsData
236
+ }));
237
+ return /* @__PURE__ */ jsxs("div", {
238
+ ref: wrapperRef,
239
+ onContextMenu: (e) => e.preventDefault(),
240
+ onMouseDown: handleMouseDown,
241
+ onMouseUp: handleMouseUp,
242
+ children: [
243
+ menuPosition && /* @__PURE__ */ jsx($dw2me$muimaterialMenu, {
244
+ onContextMenu: (e) => e.preventDefault(),
245
+ open: !!menuPosition,
246
+ onClose: () => setMenuPosition(null),
247
+ anchorReference: "anchorPosition",
248
+ anchorPosition: menuPosition,
249
+ children: menuContents
250
+ }),
251
+ children
252
+ ]
253
+ });
254
+ });
255
+ var $0967ca77ae60d41a$exports = {};
256
+ $parcel$export($0967ca77ae60d41a$exports, "NestedDropdown", () => $0967ca77ae60d41a$export$84d8e229d5f1c7fc);
257
+ const $4a9ea60dc2f34ae6$export$4e3778eb35f54199 = (props) => {
258
+ return /* @__PURE__ */ jsx($dw2me$muimaterialSvgIcon, {
259
+ ...props,
260
+ children: /* @__PURE__ */ jsx("path", {
261
+ d: "M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0z"
262
+ })
263
+ });
264
+ };
265
+ const $0967ca77ae60d41a$export$84d8e229d5f1c7fc = /* @__PURE__ */ forwardRef(function NestedDropdown(props, ref) {
266
+ const [anchorEl, setAnchorEl] = useState(null);
267
+ const open = Boolean(anchorEl);
268
+ const { menuItemsData: data, onClick, ButtonProps, MenuProps, ...rest } = props;
269
+ const handleClick = (e) => {
270
+ setAnchorEl(e.currentTarget);
271
+ onClick && onClick(e);
272
+ };
273
+ const handleClose = () => setAnchorEl(null);
274
+ const menuItems = $80b2acfbe3fcf9bd$export$fa07f0a23a9d3fdc({
275
+ handleClose,
276
+ isOpen: open,
277
+ menuItemsData: data?.items ?? []
278
+ });
279
+ return /* @__PURE__ */ jsxs("div", {
280
+ ref,
281
+ ...rest,
282
+ children: [
283
+ /* @__PURE__ */ jsx($dw2me$muimaterialButton, {
284
+ onClick: handleClick,
285
+ endIcon: /* @__PURE__ */ jsx($4a9ea60dc2f34ae6$export$4e3778eb35f54199, {}),
286
+ ...ButtonProps,
287
+ children: data?.label ?? "Menu"
288
+ }),
289
+ /* @__PURE__ */ jsx($dw2me$muimaterialMenu, {
290
+ anchorEl,
291
+ open,
292
+ onClose: handleClose,
293
+ ...MenuProps,
294
+ children: menuItems
295
+ })
296
+ ]
297
+ });
298
+ });
299
+ $parcel$exportWildcard($4a0ad0bf42c271a8$exports, $ad513b13aee61650$exports);
300
+ $parcel$exportWildcard($4a0ad0bf42c271a8$exports, $72864715d956ea8e$exports);
301
+ $parcel$exportWildcard($4a0ad0bf42c271a8$exports, $0967ca77ae60d41a$exports);
302
+ $parcel$exportWildcard($4a0ad0bf42c271a8$exports, $fbbfd8893e0b22a2$exports);
303
+ $parcel$exportWildcard($4a0ad0bf42c271a8$exports, $80b2acfbe3fcf9bd$exports);
304
+ export {
305
+ $fbbfd8893e0b22a2$export$a49133e888f99d9b as $
306
+ };
@@ -12,8 +12,6 @@ import { CustomAGGrid } from "../customAGGrid/customAggrid.js";
12
12
  import "react-intl";
13
13
  import "../customAGGrid/context/custom-aggrid-context.js";
14
14
  import "localized-countries";
15
- import "localized-countries/data/fr";
16
- import "localized-countries/data/en";
17
15
  import "notistack";
18
16
  import "mathjs";
19
17
  const getDropIndicatorPosition = ({ overNode, y }) => {
@@ -6,8 +6,6 @@ import "../../../../../utils/types/equipmentType.js";
6
6
  import "@mui/icons-material";
7
7
  import "@mui/material";
8
8
  import "localized-countries";
9
- import "localized-countries/data/fr";
10
- import "localized-countries/data/en";
11
9
  import { useSnackMessage } from "../../../../../hooks/useSnackMessage.js";
12
10
  import "react-hook-form";
13
11
  import { FilterDataTypes, FilterTextComparators } from "../../custom-aggrid-types.js";