@gridsuite/commons-ui 0.57.0 → 0.59.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 (299) hide show
  1. package/dist/_mocks_/svg.d.ts +4 -0
  2. package/dist/_mocks_/svg.js +8 -0
  3. package/dist/chunks/{criteria-based-filter-edition-dialog.BEXoNmzz.js → criteria-based-filter-edition-dialog.p2pUWzxc.js} +142 -158
  4. package/dist/chunks/{filter-properties.GRon8-ML.js → filter-properties.B7-q_yPf.js} +4 -4
  5. package/dist/components/AuthenticationRouter/AuthenticationRouter.d.ts +28 -9
  6. package/dist/components/AuthenticationRouter/AuthenticationRouter.js +1 -1
  7. package/dist/components/AuthenticationRouter/index.d.ts +6 -0
  8. package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +27 -13
  9. package/dist/components/CardErrorBoundary/card-error-boundary.js +7 -6
  10. package/dist/components/CardErrorBoundary/index.d.ts +6 -0
  11. package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +0 -4
  12. package/dist/components/DirectoryItemSelector/directory-item-selector.js +14 -26
  13. package/dist/components/ElementSearchDialog/element-search-dialog.d.ts +18 -15
  14. package/dist/components/ElementSearchDialog/element-search-dialog.js +28 -65
  15. package/dist/components/ElementSearchDialog/equipment-item.d.ts +25 -16
  16. package/dist/components/ElementSearchDialog/equipment-item.js +9 -8
  17. package/dist/components/ElementSearchDialog/index.d.ts +6 -0
  18. package/dist/components/ElementSearchDialog/tag-renderer.d.ts +20 -10
  19. package/dist/components/ElementSearchDialog/tag-renderer.js +6 -11
  20. package/dist/components/FlatParameters/FlatParameters.d.ts +29 -9
  21. package/dist/components/FlatParameters/FlatParameters.js +3 -3
  22. package/dist/components/FlatParameters/index.d.ts +6 -0
  23. package/dist/components/Login/Login.d.ts +11 -4
  24. package/dist/components/Login/Logout.d.ts +11 -4
  25. package/dist/components/Login/index.d.ts +6 -0
  26. package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +25 -2
  27. package/dist/components/MuiVirtualizedTable/ColumnHeader.js +68 -59
  28. package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +72 -61
  29. package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +69 -83
  30. package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +93 -113
  31. package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +84 -106
  32. package/dist/components/MuiVirtualizedTable/index.d.ts +7 -1
  33. package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +16 -9
  34. package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +1 -1
  35. package/dist/components/MultipleSelectionDialog/index.d.ts +6 -0
  36. package/dist/components/OverflowableText/index.d.ts +6 -0
  37. package/dist/components/OverflowableText/overflowable-text.d.ts +11 -1
  38. package/dist/components/OverflowableText/overflowable-text.js +39 -26
  39. package/dist/components/ReportViewer/filter-button.d.ts +11 -1
  40. package/dist/components/ReportViewer/filter-button.js +5 -2
  41. package/dist/components/ReportViewer/index.d.ts +6 -0
  42. package/dist/components/ReportViewer/log-report-item.d.ts +14 -64
  43. package/dist/components/ReportViewer/log-report-item.js +13 -47
  44. package/dist/components/ReportViewer/log-report.d.ts +16 -17
  45. package/dist/components/ReportViewer/log-report.js +2 -1
  46. package/dist/components/ReportViewer/log-severity.d.ts +13 -0
  47. package/dist/components/ReportViewer/log-severity.js +35 -0
  48. package/dist/components/ReportViewer/log-table.d.ts +9 -6
  49. package/dist/components/ReportViewer/log-table.js +6 -4
  50. package/dist/components/ReportViewer/multi-select-list.d.ts +17 -1
  51. package/dist/components/ReportViewer/report-item.d.ts +12 -12
  52. package/dist/components/ReportViewer/report-item.js +0 -7
  53. package/dist/components/ReportViewer/report-tree-view-context.d.ts +11 -1
  54. package/dist/components/ReportViewer/report-viewer.d.ts +7 -4
  55. package/dist/components/ReportViewer/report-viewer.js +8 -6
  56. package/dist/components/ReportViewer/report.type.d.ts +22 -0
  57. package/dist/components/ReportViewer/report.type.js +1 -0
  58. package/dist/components/ReportViewerDialog/index.d.ts +6 -0
  59. package/dist/components/ReportViewerDialog/report-viewer-dialog.d.ts +9 -1
  60. package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +7 -4
  61. package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +4 -1
  62. package/dist/components/SignInCallbackHandler/index.d.ts +6 -0
  63. package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +7 -4
  64. package/dist/components/SilentRenewCallbackHandler/index.d.ts +6 -0
  65. package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +3 -1
  66. package/dist/components/SnackbarProvider/SnackbarProvider.js +9 -7
  67. package/dist/components/SnackbarProvider/index.d.ts +6 -0
  68. package/dist/components/TopBar/AboutDialog.d.ts +30 -23
  69. package/dist/components/TopBar/AboutDialog.js +4 -22
  70. package/dist/components/TopBar/GridLogo.d.ts +13 -32
  71. package/dist/components/TopBar/GridLogo.js +12 -15
  72. package/dist/components/TopBar/TopBar.d.ts +52 -51
  73. package/dist/components/TopBar/TopBar.js +389 -380
  74. package/dist/components/TopBar/TopBar.test.d.ts +6 -0
  75. package/dist/components/TopBar/index.d.ts +6 -0
  76. package/dist/components/TreeViewFinder/TreeViewFinder.js +1 -1
  77. package/dist/components/TreeViewFinder/index.d.ts +7 -0
  78. package/dist/components/dialogs/custom-mui-dialog.d.ts +2 -1
  79. package/dist/components/dialogs/custom-mui-dialog.js +6 -4
  80. package/dist/components/dialogs/description-modification-dialog.js +2 -2
  81. package/dist/components/dialogs/modify-element-selection.d.ts +14 -0
  82. package/dist/components/dialogs/modify-element-selection.js +99 -0
  83. package/dist/components/dialogs/popup-confirmation-dialog.js +1 -1
  84. package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +2 -3
  85. package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +4 -4
  86. package/dist/components/filter/criteria-based/criteria-based-filter-form.js +5 -3
  87. package/dist/components/filter/criteria-based/criteria-based-filter-utils.d.ts +12 -6
  88. package/dist/components/filter/criteria-based/criteria-based-filter-utils.js +44 -4
  89. package/dist/components/filter/criteria-based/criteria-based-form.d.ts +2 -0
  90. package/dist/components/filter/criteria-based/criteria-based-form.js +6 -6
  91. package/dist/components/filter/criteria-based/filter-free-properties.d.ts +1 -1
  92. package/dist/components/filter/criteria-based/filter-free-properties.js +5 -5
  93. package/dist/components/filter/criteria-based/filter-properties.js +3 -3
  94. package/dist/components/filter/criteria-based/filter-property.d.ts +1 -1
  95. package/dist/components/filter/criteria-based/filter-property.js +3 -3
  96. package/dist/components/filter/{constants → expert}/expert-filter-constants.d.ts +22 -1
  97. package/dist/components/filter/{constants → expert}/expert-filter-constants.js +46 -16
  98. package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +1 -7
  99. package/dist/components/filter/expert/expert-filter-edition-dialog.js +5 -7
  100. package/dist/components/filter/expert/expert-filter-form.js +5 -5
  101. package/dist/components/filter/expert/expert-filter-utils.js +1 -1
  102. package/dist/components/filter/expert/expert-filter.type.d.ts +4 -1
  103. package/dist/components/filter/expert/expert-filter.type.js +3 -0
  104. package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.d.ts +0 -2
  105. package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +4 -4
  106. package/dist/components/filter/explicit-naming/explicit-naming-filter-form.d.ts +10 -2
  107. package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +12 -8
  108. package/dist/components/filter/filter-creation-dialog.d.ts +4 -8
  109. package/dist/components/filter/filter-creation-dialog.js +3 -4
  110. package/dist/components/filter/filter-form.d.ts +4 -0
  111. package/dist/components/filter/filter-form.js +6 -5
  112. package/dist/components/filter/utils/filter-api.d.ts +5 -0
  113. package/dist/components/filter/utils/{filters-utils.js → filter-api.js} +16 -10
  114. package/dist/components/filter/utils/filter-form-utils.d.ts +17 -0
  115. package/dist/components/filter/utils/{criteria-based-utils.js → filter-form-utils.js} +16 -63
  116. package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/bottom-right-buttons.js +1 -1
  117. package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js +61 -0
  118. package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/custom-ag-grid-table.js +2 -2
  119. package/dist/components/{react-hook-form → inputs/react-hook-form/autocomplete-inputs}/autocomplete-input.d.ts +3 -3
  120. package/dist/components/{react-hook-form → inputs/react-hook-form/autocomplete-inputs}/autocomplete-input.js +4 -4
  121. package/dist/components/{react-hook-form → inputs/react-hook-form}/autocomplete-inputs/multiple-autocomplete-input.js +1 -1
  122. package/dist/components/inputs/react-hook-form/booleans/boolean-input.d.ts +10 -0
  123. package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/boolean-input.js +0 -7
  124. package/dist/components/inputs/react-hook-form/booleans/checkbox-input.d.ts +9 -0
  125. package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/checkbox-input.js +0 -6
  126. package/dist/components/inputs/react-hook-form/booleans/switch-input.d.ts +9 -0
  127. package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/switch-input.js +0 -6
  128. package/dist/components/{react-hook-form → inputs/react-hook-form}/directory-items-input.d.ts +0 -2
  129. package/dist/components/{react-hook-form → inputs/react-hook-form}/directory-items-input.js +11 -15
  130. package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +6 -0
  131. package/dist/components/inputs/react-hook-form/numbers/integer-input.d.ts +4 -0
  132. package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/integer-input.js +1 -4
  133. package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/custom-form-provider.js +1 -1
  134. package/dist/components/{react-hook-form → inputs/react-hook-form}/range-input.d.ts +1 -1
  135. package/dist/components/{react-hook-form → inputs/react-hook-form}/range-input.js +2 -2
  136. package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/countries-input.d.ts +1 -1
  137. package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/countries-input.js +14 -4
  138. package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/input-with-popup-confirmation.js +1 -1
  139. package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/select-input.d.ts +2 -2
  140. package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/select-input.js +4 -1
  141. package/dist/components/inputs/react-hook-form/slider-input.d.ts +8 -0
  142. package/dist/components/{react-hook-form → inputs/react-hook-form}/slider-input.js +4 -12
  143. package/dist/components/{react-hook-form → inputs/react-hook-form}/text-input.d.ts +1 -1
  144. package/dist/components/{react-hook-form → inputs/react-hook-form}/unique-name-input.d.ts +2 -2
  145. package/dist/components/{react-hook-form → inputs/react-hook-form}/unique-name-input.js +2 -2
  146. package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/text-field-with-adornment.d.ts +1 -1
  147. package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/combinator-selector.js +1 -1
  148. package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/country-value-editor.js +1 -1
  149. package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/custom-react-query-builder.js +3 -3
  150. package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/element-value-editor.js +21 -28
  151. package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/property-value-editor.js +3 -3
  152. package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/remove-button.js +2 -2
  153. package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-convert-value.js +1 -1
  154. package/dist/components/inputs/react-query-builder/value-editor.js +18 -0
  155. package/dist/components/inputs/select-clearable.js +1 -1
  156. package/dist/components/translations/card-error-boundary-en.d.ts +1 -1
  157. package/dist/components/translations/card-error-boundary-fr.d.ts +1 -1
  158. package/dist/components/translations/common-button-en.d.ts +10 -4
  159. package/dist/components/translations/common-button-fr.d.ts +10 -4
  160. package/dist/components/translations/directory-items-input-en.d.ts +1 -1
  161. package/dist/components/translations/directory-items-input-fr.d.ts +1 -1
  162. package/dist/components/translations/element-search-en.d.ts +1 -1
  163. package/dist/components/translations/element-search-fr.d.ts +1 -1
  164. package/dist/components/translations/equipment-search-en.d.ts +1 -1
  165. package/dist/components/translations/equipment-search-fr.d.ts +1 -1
  166. package/dist/components/translations/filter-en.d.ts +27 -21
  167. package/dist/components/translations/filter-en.js +2 -1
  168. package/dist/components/translations/filter-expert-en.d.ts +73 -0
  169. package/dist/components/translations/filter-expert-en.js +69 -0
  170. package/dist/components/translations/filter-expert-fr.d.ts +73 -0
  171. package/dist/components/translations/filter-expert-fr.js +69 -0
  172. package/dist/components/translations/filter-fr.d.ts +27 -21
  173. package/dist/components/translations/filter-fr.js +2 -1
  174. package/dist/components/translations/flat-parameters-en.d.ts +1 -1
  175. package/dist/components/translations/flat-parameters-fr.d.ts +1 -1
  176. package/dist/components/translations/inputs-en.d.ts +1 -1
  177. package/dist/components/translations/inputs-fr.d.ts +1 -1
  178. package/dist/components/translations/login-en.d.ts +1 -1
  179. package/dist/components/translations/login-fr.d.ts +1 -1
  180. package/dist/components/translations/multiple-selection-dialog-en.d.ts +1 -1
  181. package/dist/components/translations/multiple-selection-dialog-fr.d.ts +1 -1
  182. package/dist/components/translations/report-viewer-en.d.ts +1 -1
  183. package/dist/components/translations/report-viewer-fr.d.ts +1 -1
  184. package/dist/components/translations/table-en.d.ts +1 -1
  185. package/dist/components/translations/table-fr.d.ts +1 -1
  186. package/dist/components/translations/top-bar-en.d.ts +1 -1
  187. package/dist/components/translations/top-bar-fr.d.ts +1 -1
  188. package/dist/components/translations/treeview-finder-en.d.ts +1 -1
  189. package/dist/components/translations/treeview-finder-fr.d.ts +1 -1
  190. package/dist/hooks/localized-countries-hook.d.ts +10 -4
  191. package/dist/hooks/localized-countries-hook.js +1 -1
  192. package/dist/hooks/predefined-properties-hook.d.ts +1 -15
  193. package/dist/hooks/predefined-properties-hook.js +8 -16
  194. package/dist/hooks/useDebounce.d.ts +1 -1
  195. package/dist/hooks/useSnackMessage.d.ts +4 -7
  196. package/dist/hooks/useSnackMessage.js +36 -43
  197. package/dist/index.d.ts +76 -218
  198. package/dist/index.js +156 -122
  199. package/dist/redux/actions.d.ts +54 -0
  200. package/dist/redux/commonStore.d.ts +15 -0
  201. package/dist/redux/commonStore.js +11 -0
  202. package/dist/services/apps-metadata.d.ts +32 -0
  203. package/dist/services/apps-metadata.js +26 -0
  204. package/dist/services/directory.d.ts +6 -0
  205. package/dist/services/directory.js +42 -0
  206. package/dist/services/explore.d.ts +6 -0
  207. package/dist/services/explore.js +62 -0
  208. package/dist/services/index.d.ts +16 -0
  209. package/dist/services/index.js +20 -0
  210. package/dist/services/study.d.ts +3 -0
  211. package/dist/services/study.js +16 -0
  212. package/dist/services/utils.d.ts +9 -0
  213. package/dist/services/utils.js +62 -0
  214. package/dist/utils/AuthService.d.ts +20 -9
  215. package/dist/utils/AuthService.js +30 -14
  216. package/dist/utils/ElementIcon.d.ts +4 -1
  217. package/dist/utils/UserManagerMock.d.ts +14 -14
  218. package/dist/utils/UserManagerMock.js +9 -15
  219. package/dist/utils/algos.d.ts +1 -1
  220. package/dist/utils/equipment-types-for-predefined-properties-mapper.d.ts +1 -1
  221. package/dist/utils/functions.d.ts +0 -1
  222. package/dist/utils/functions.js +1 -3
  223. package/dist/utils/styles.d.ts +5 -3
  224. package/dist/utils/styles.js +4 -1
  225. package/dist/utils/types.d.ts +13 -3
  226. package/package.json +9 -7
  227. package/dist/components/filter/filter-context.d.ts +0 -12
  228. package/dist/components/filter/filter-context.js +0 -10
  229. package/dist/components/filter/utils/criteria-based-utils.d.ts +0 -28
  230. package/dist/components/filter/utils/filters-utils.d.ts +0 -5
  231. package/dist/components/react-hook-form/ag-grid-table-rhf/csv-uploader/csv-uploader.js +0 -69
  232. package/dist/components/react-hook-form/booleans/boolean-input.d.ts +0 -16
  233. package/dist/components/react-hook-form/booleans/checkbox-input.d.ts +0 -14
  234. package/dist/components/react-hook-form/booleans/switch-input.d.ts +0 -14
  235. package/dist/components/react-hook-form/error-management/mid-form-error.d.ts +0 -4
  236. package/dist/components/react-hook-form/numbers/integer-input.d.ts +0 -21
  237. package/dist/components/react-hook-form/slider-input.d.ts +0 -21
  238. package/dist/components/react-query-builder-inputs/value-editor.js +0 -18
  239. package/dist/utils/actions.d.ts +0 -50
  240. /package/dist/components/{react-hook-form → inputs/react-hook-form}/ExpandingTextField.d.ts +0 -0
  241. /package/dist/components/{react-hook-form → inputs/react-hook-form}/ExpandingTextField.js +0 -0
  242. /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/bottom-right-buttons.d.ts +0 -0
  243. /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/cell-editors/numericEditor.d.ts +0 -0
  244. /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/cell-editors/numericEditor.js +0 -0
  245. /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/csv-uploader/csv-uploader.d.ts +0 -0
  246. /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/custom-ag-grid-table.d.ts +0 -0
  247. /package/dist/components/{react-hook-form → inputs/react-hook-form}/autocomplete-inputs/multiple-autocomplete-input.d.ts +0 -0
  248. /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/error-input.d.ts +0 -0
  249. /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/error-input.js +0 -0
  250. /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/field-error-alert.d.ts +0 -0
  251. /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/field-error-alert.js +0 -0
  252. /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/mid-form-error.js +0 -0
  253. /package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/float-input.d.ts +0 -0
  254. /package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/float-input.js +0 -0
  255. /package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/utils.d.ts +0 -0
  256. /package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/utils.js +0 -0
  257. /package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/custom-form-provider.d.ts +0 -0
  258. /package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/use-custom-form-context.d.ts +0 -0
  259. /package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/use-custom-form-context.js +0 -0
  260. /package/dist/components/{react-hook-form → inputs/react-hook-form}/radio-input.d.ts +0 -0
  261. /package/dist/components/{react-hook-form → inputs/react-hook-form}/radio-input.js +0 -0
  262. /package/dist/components/{react-hook-form → inputs/react-hook-form}/raw-read-only-input.d.ts +0 -0
  263. /package/dist/components/{react-hook-form → inputs/react-hook-form}/raw-read-only-input.js +0 -0
  264. /package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/input-with-popup-confirmation.d.ts +0 -0
  265. /package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/mui-select-input.d.ts +0 -0
  266. /package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/mui-select-input.js +0 -0
  267. /package/dist/components/{react-hook-form → inputs/react-hook-form}/text-input.js +0 -0
  268. /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/cancel-button.d.ts +0 -0
  269. /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/cancel-button.js +0 -0
  270. /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/field-label.d.ts +0 -0
  271. /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/field-label.js +0 -0
  272. /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/functions.d.ts +0 -0
  273. /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/functions.js +0 -0
  274. /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/submit-button.d.ts +0 -0
  275. /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/submit-button.js +0 -0
  276. /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/text-field-with-adornment.js +0 -0
  277. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/add-button.d.ts +0 -0
  278. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/add-button.js +0 -0
  279. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/combinator-selector.d.ts +0 -0
  280. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/country-value-editor.d.ts +0 -0
  281. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/custom-react-query-builder.d.ts +0 -0
  282. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/element-value-editor.d.ts +0 -0
  283. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/property-value-editor.d.ts +0 -0
  284. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/remove-button.d.ts +0 -0
  285. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/text-value-editor.d.ts +0 -0
  286. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/text-value-editor.js +0 -0
  287. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/translated-value-editor.d.ts +0 -0
  288. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/translated-value-editor.js +0 -0
  289. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-convert-value.d.ts +0 -0
  290. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-valid.d.ts +0 -0
  291. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-valid.js +0 -0
  292. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/value-editor.d.ts +0 -0
  293. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/value-selector.d.ts +0 -0
  294. /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/value-selector.js +0 -0
  295. /package/dist/{utils → redux}/actions.js +0 -0
  296. /package/dist/{components/filter/constants → utils}/equipment-types.d.ts +0 -0
  297. /package/dist/{components/filter/constants → utils}/equipment-types.js +0 -0
  298. /package/dist/{components/filter/constants → utils}/field-constants.d.ts +0 -0
  299. /package/dist/{components/filter/constants → utils}/field-constants.js +0 -0
@@ -130,7 +130,9 @@ const TopBar = ({
130
130
  language
131
131
  }) => {
132
132
  const [anchorElSettingsMenu, setAnchorElSettingsMenu] = useState(null);
133
- const [anchorElAppsMenu, setAnchorElAppsMenu] = useState(null);
133
+ const [anchorElAppsMenu, setAnchorElAppsMenu] = useState(
134
+ null
135
+ );
134
136
  const handleToggleSettingsMenu = (event) => {
135
137
  setAnchorElSettingsMenu(event.currentTarget);
136
138
  };
@@ -157,17 +159,17 @@ const TopBar = ({
157
159
  return tab[0] + tab[tab.length - 1];
158
160
  }
159
161
  };
160
- const changeTheme = (event, value) => {
162
+ const changeTheme = (_, value) => {
161
163
  if (onThemeClick && value !== null) {
162
164
  onThemeClick(value);
163
165
  }
164
166
  };
165
- const changeEquipmentLabelling = (event, value) => {
167
+ const changeEquipmentLabelling = (_, value) => {
166
168
  if (onEquipmentLabellingClick && value !== null) {
167
169
  onEquipmentLabellingClick(value);
168
170
  }
169
171
  };
170
- const changeLanguage = (event, value) => {
172
+ const changeLanguage = (_, value) => {
171
173
  if (onLanguageClick && value !== null) {
172
174
  onLanguageClick(value);
173
175
  }
@@ -193,401 +195,408 @@ const TopBar = ({
193
195
  ),
194
196
  [onLogoClick, appLogo, appName, appColor]
195
197
  );
196
- return /* @__PURE__ */ jsx(AppBar, { position: "static", color: "default", sx: styles.appBar, children: /* @__PURE__ */ jsxs(Toolbar, { children: [
197
- logo_clickable,
198
- /* @__PURE__ */ jsx(Box, { sx: styles.grow, children }),
199
- user && /* @__PURE__ */ jsxs(Box, { children: [
200
- /* @__PURE__ */ jsx(
201
- IconButton,
202
- {
203
- "aria-label": "apps",
204
- "aria-controls": "apps-menu",
205
- "aria-haspopup": "true",
206
- onClick: handleClickAppsMenu,
207
- color: "inherit",
208
- children: /* @__PURE__ */ jsx(Apps, {})
209
- }
210
- ),
211
- /* @__PURE__ */ jsx(
212
- StyledMenu,
213
- {
214
- id: "apps-menu",
215
- anchorEl: anchorElAppsMenu,
216
- keepMounted: true,
217
- open: Boolean(anchorElAppsMenu),
218
- onClose: handleCloseAppsMenu,
219
- children: appsAndUrls && appsAndUrls.filter((item) => !item.hiddenInAppsMenu).map((item) => /* @__PURE__ */ jsx(
220
- Box,
221
- {
222
- component: "a",
223
- href: item.url,
224
- sx: styles.link,
225
- target: "_blank",
226
- rel: "noopener noreferrer",
227
- children: /* @__PURE__ */ jsx(
228
- StyledMenuItem,
198
+ return (
199
+ //@ts-ignore appBar style is not defined
200
+ /* @__PURE__ */ jsx(AppBar, { position: "static", color: "default", sx: styles.appBar, children: /* @__PURE__ */ jsxs(Toolbar, { children: [
201
+ logo_clickable,
202
+ /* @__PURE__ */ jsx(Box, { sx: styles.grow, children }),
203
+ user && /* @__PURE__ */ jsxs(Box, { children: [
204
+ /* @__PURE__ */ jsx(
205
+ IconButton,
206
+ {
207
+ "aria-label": "apps",
208
+ "aria-controls": "apps-menu",
209
+ "aria-haspopup": "true",
210
+ onClick: handleClickAppsMenu,
211
+ color: "inherit",
212
+ children: /* @__PURE__ */ jsx(Apps, {})
213
+ }
214
+ ),
215
+ /* @__PURE__ */ jsx(
216
+ StyledMenu,
217
+ {
218
+ id: "apps-menu",
219
+ anchorEl: anchorElAppsMenu,
220
+ keepMounted: true,
221
+ open: Boolean(anchorElAppsMenu),
222
+ onClose: handleCloseAppsMenu,
223
+ children: appsAndUrls && appsAndUrls.filter((item) => !item.hiddenInAppsMenu).map((item) => {
224
+ var _a;
225
+ return /* @__PURE__ */ jsx(
226
+ Box,
229
227
  {
230
- onClick: handleCloseAppsMenu,
231
- children: /* @__PURE__ */ jsxs(ListItemText, { children: [
232
- /* @__PURE__ */ jsx(
233
- "span",
234
- {
235
- style: {
236
- fontWeight: "bold"
237
- },
238
- children: "Grid"
239
- }
240
- ),
241
- /* @__PURE__ */ jsx(
242
- "span",
243
- {
244
- style: {
245
- color: item.appColor === void 0 ? "grey" : item.appColor,
246
- fontWeight: "bold"
247
- },
248
- children: item.name
249
- }
250
- )
251
- ] })
252
- }
253
- )
254
- },
255
- item.name
256
- ))
257
- }
258
- )
259
- ] }),
260
- user && /* @__PURE__ */ jsxs(Box, { sx: styles.menuContainerg, children: [
261
- /* @__PURE__ */ jsxs(
262
- Button,
263
- {
264
- "aria-controls": "settings-menu",
265
- "aria-haspopup": "true",
266
- sx: styles.showHideMenu,
267
- onClick: handleToggleSettingsMenu,
268
- color: "inherit",
269
- style: Boolean(anchorElSettingsMenu) ? { cursor: "initial" } : { cursor: "pointer" },
270
- children: [
271
- /* @__PURE__ */ jsx(Box, { component: "span", sx: styles.name, children: user !== null ? abbreviationFromUserName(
272
- user.profile.name
273
- ) : "" }),
274
- anchorElSettingsMenu ? /* @__PURE__ */ jsx(ArrowDropUp, { sx: styles.arrowIcon }) : /* @__PURE__ */ jsx(ArrowDropDown, { sx: styles.arrowIcon })
275
- ]
276
- }
277
- ),
278
- /* @__PURE__ */ jsx(
279
- Popper,
280
- {
281
- sx: styles.settingsMenu,
282
- open: Boolean(anchorElSettingsMenu),
283
- anchorEl: anchorElSettingsMenu,
284
- children: /* @__PURE__ */ jsx(Paper, { children: /* @__PURE__ */ jsx(
285
- ClickAwayListener,
286
- {
287
- onClickAway: handleCloseSettingsMenu,
288
- children: /* @__PURE__ */ jsxs(MenuList, { id: "settings-menu", children: [
289
- /* @__PURE__ */ jsxs(
290
- StyledMenuItem,
291
- {
292
- sx: styles.borderBottom,
293
- disabled: true,
294
- style: { opacity: "1" },
295
- children: [
296
- /* @__PURE__ */ jsx(CustomListItemIcon, { children: /* @__PURE__ */ jsx(Person, { fontSize: "small" }) }),
297
- /* @__PURE__ */ jsx(ListItemText, { disabled: false, children: user !== null && /* @__PURE__ */ jsxs(
298
- Box,
299
- {
300
- component: "span",
301
- sx: styles.sizeLabel,
302
- children: [
303
- user.profile.name,
304
- " ",
305
- /* @__PURE__ */ jsx("br", {}),
306
- /* @__PURE__ */ jsx(
307
- Box,
228
+ component: "a",
229
+ href: (_a = item.url) == null ? void 0 : _a.toString(),
230
+ sx: styles.link,
231
+ target: "_blank",
232
+ rel: "noopener noreferrer",
233
+ children: /* @__PURE__ */ jsx(
234
+ StyledMenuItem,
235
+ {
236
+ onClick: handleCloseAppsMenu,
237
+ children: /* @__PURE__ */ jsxs(ListItemText, { children: [
238
+ /* @__PURE__ */ jsx(
239
+ "span",
240
+ {
241
+ style: {
242
+ fontWeight: "bold"
243
+ },
244
+ children: "Grid"
245
+ }
246
+ ),
247
+ /* @__PURE__ */ jsx(
248
+ "span",
249
+ {
250
+ style: {
251
+ color: item.appColor === void 0 ? "grey" : item.appColor,
252
+ fontWeight: "bold"
253
+ },
254
+ children: item.name
255
+ }
256
+ )
257
+ ] })
258
+ }
259
+ )
260
+ },
261
+ item.name
262
+ );
263
+ })
264
+ }
265
+ )
266
+ ] }),
267
+ user && /* @__PURE__ */ jsxs(Box, { sx: styles.menuContainer, children: [
268
+ /* @__PURE__ */ jsxs(
269
+ Button,
270
+ {
271
+ "aria-controls": "settings-menu",
272
+ "aria-haspopup": "true",
273
+ sx: styles.showHideMenu,
274
+ onClick: handleToggleSettingsMenu,
275
+ color: "inherit",
276
+ style: Boolean(anchorElSettingsMenu) ? { cursor: "initial" } : { cursor: "pointer" },
277
+ children: [
278
+ /* @__PURE__ */ jsx(Box, { component: "span", sx: styles.name, children: user !== null ? abbreviationFromUserName(
279
+ //@ts-ignore name could be undefined, how to handle this case ?
280
+ user.profile.name
281
+ ) : "" }),
282
+ anchorElSettingsMenu ? /* @__PURE__ */ jsx(ArrowDropUp, { sx: styles.arrowIcon }) : /* @__PURE__ */ jsx(ArrowDropDown, { sx: styles.arrowIcon })
283
+ ]
284
+ }
285
+ ),
286
+ /* @__PURE__ */ jsx(
287
+ Popper,
288
+ {
289
+ sx: styles.settingsMenu,
290
+ open: Boolean(anchorElSettingsMenu),
291
+ anchorEl: anchorElSettingsMenu,
292
+ children: /* @__PURE__ */ jsx(Paper, { children: /* @__PURE__ */ jsx(
293
+ ClickAwayListener,
294
+ {
295
+ onClickAway: handleCloseSettingsMenu,
296
+ children: /* @__PURE__ */ jsxs(MenuList, { id: "settings-menu", children: [
297
+ /* @__PURE__ */ jsxs(
298
+ StyledMenuItem,
299
+ {
300
+ sx: styles.borderBottom,
301
+ disabled: true,
302
+ style: { opacity: "1" },
303
+ children: [
304
+ /* @__PURE__ */ jsx(CustomListItemIcon, { children: /* @__PURE__ */ jsx(Person, { fontSize: "small" }) }),
305
+ /* @__PURE__ */ jsx(ListItemText, { children: user !== null && /* @__PURE__ */ jsxs(
306
+ Box,
307
+ {
308
+ component: "span",
309
+ sx: styles.sizeLabel,
310
+ children: [
311
+ user.profile.name,
312
+ " ",
313
+ /* @__PURE__ */ jsx("br", {}),
314
+ /* @__PURE__ */ jsx(
315
+ Box,
316
+ {
317
+ component: "span",
318
+ sx: styles.userMail,
319
+ children: user.profile.email
320
+ }
321
+ )
322
+ ]
323
+ }
324
+ ) })
325
+ ]
326
+ }
327
+ ),
328
+ /* @__PURE__ */ jsxs(
329
+ StyledMenuItem,
330
+ {
331
+ disabled: true,
332
+ style: {
333
+ opacity: "1",
334
+ paddingTop: "10px",
335
+ paddingBottom: "10px",
336
+ backgroundColor: "transparent"
337
+ },
338
+ children: [
339
+ /* @__PURE__ */ jsx(ListItemText, { children: /* @__PURE__ */ jsx(
340
+ Typography,
341
+ {
342
+ sx: styles.sizeLabel,
343
+ children: /* @__PURE__ */ jsx(
344
+ FormattedMessage,
308
345
  {
309
- component: "span",
310
- sx: styles.userMail,
311
- children: user.profile.email
346
+ id: "top-bar/displayMode",
347
+ defaultMessage: "Display mode"
312
348
  }
313
349
  )
314
- ]
315
- }
316
- ) })
317
- ]
318
- }
319
- ),
320
- /* @__PURE__ */ jsxs(
321
- StyledMenuItem,
322
- {
323
- disabled: true,
324
- style: {
325
- opacity: "1",
326
- paddingTop: "10px",
327
- paddingBottom: "10px",
328
- backgroundColor: "transparent"
329
- },
330
- children: [
331
- /* @__PURE__ */ jsx(ListItemText, { children: /* @__PURE__ */ jsx(
332
- Typography,
333
- {
334
- sx: styles.sizeLabel,
335
- children: /* @__PURE__ */ jsx(
336
- FormattedMessage,
337
- {
338
- id: "top-bar/displayMode",
339
- defaultMessage: "Display mode"
340
- }
341
- )
342
- }
343
- ) }),
344
- /* @__PURE__ */ jsxs(
345
- ToggleButtonGroup,
346
- {
347
- exclusive: true,
348
- value: theme,
349
- size: "large",
350
- sx: styles.toggleButtonGroup,
351
- onChange: changeTheme,
352
- children: [
353
- /* @__PURE__ */ jsx(
354
- ToggleButton,
355
- {
356
- value: LIGHT_THEME,
357
- "aria-label": LIGHT_THEME,
358
- sx: styles.toggleButton,
359
- children: /* @__PURE__ */ jsx(WbSunny, { fontSize: "small" })
360
- }
361
- ),
362
- /* @__PURE__ */ jsx(
363
- ToggleButton,
350
+ }
351
+ ) }),
352
+ /* @__PURE__ */ jsxs(
353
+ ToggleButtonGroup,
354
+ {
355
+ exclusive: true,
356
+ value: theme,
357
+ size: "large",
358
+ sx: styles.toggleButtonGroup,
359
+ onChange: changeTheme,
360
+ children: [
361
+ /* @__PURE__ */ jsx(
362
+ ToggleButton,
363
+ {
364
+ value: LIGHT_THEME,
365
+ "aria-label": LIGHT_THEME,
366
+ sx: styles.toggleButton,
367
+ children: /* @__PURE__ */ jsx(WbSunny, { fontSize: "small" })
368
+ }
369
+ ),
370
+ /* @__PURE__ */ jsx(
371
+ ToggleButton,
372
+ {
373
+ value: DARK_THEME,
374
+ "aria-label": DARK_THEME,
375
+ sx: styles.toggleButton,
376
+ children: /* @__PURE__ */ jsx(Brightness3, { fontSize: "small" })
377
+ }
378
+ )
379
+ ]
380
+ }
381
+ )
382
+ ]
383
+ }
384
+ ),
385
+ onEquipmentLabellingClick && /* @__PURE__ */ jsxs(
386
+ StyledMenuItem,
387
+ {
388
+ disabled: true,
389
+ style: {
390
+ opacity: "1",
391
+ // padding: '0',
392
+ paddingTop: "10px",
393
+ paddingBottom: "10px",
394
+ backgroundColor: "transparent"
395
+ },
396
+ children: [
397
+ /* @__PURE__ */ jsx(ListItemText, { children: /* @__PURE__ */ jsx(
398
+ Typography,
399
+ {
400
+ sx: styles.sizeLabel,
401
+ children: /* @__PURE__ */ jsx(
402
+ FormattedMessage,
364
403
  {
365
- value: DARK_THEME,
366
- "aria-label": DARK_THEME,
367
- sx: styles.toggleButton,
368
- children: /* @__PURE__ */ jsx(Brightness3, { fontSize: "small" })
404
+ id: "top-bar/equipmentLabel",
405
+ defaultMessage: "Equipment label"
369
406
  }
370
407
  )
371
- ]
372
- }
373
- )
374
- ]
375
- }
376
- ),
377
- onEquipmentLabellingClick && /* @__PURE__ */ jsxs(
378
- StyledMenuItem,
379
- {
380
- disabled: true,
381
- style: {
382
- opacity: "1",
383
- // padding: '0',
384
- paddingTop: "10px",
385
- paddingBottom: "10px",
386
- backgroundColor: "transparent"
387
- },
388
- children: [
389
- /* @__PURE__ */ jsx(ListItemText, { children: /* @__PURE__ */ jsx(
390
- Typography,
391
- {
392
- sx: styles.sizeLabel,
393
- children: /* @__PURE__ */ jsx(
394
- FormattedMessage,
395
- {
396
- id: "top-bar/equipmentLabel",
397
- defaultMessage: "Equipment label"
398
- }
399
- )
400
- }
401
- ) }),
402
- /* @__PURE__ */ jsxs(
403
- ToggleButtonGroup,
404
- {
405
- exclusive: true,
406
- value: equipmentLabelling,
407
- sx: styles.toggleButtonGroup,
408
- onChange: changeEquipmentLabelling,
409
- children: [
410
- /* @__PURE__ */ jsx(
411
- ToggleButton,
412
- {
413
- value: false,
414
- sx: styles.toggleButton,
415
- children: /* @__PURE__ */ jsx(
416
- FormattedMessage,
417
- {
418
- id: "top-bar/id",
419
- defaultMessage: "Id"
420
- }
421
- )
422
- }
423
- ),
424
- /* @__PURE__ */ jsx(
425
- ToggleButton,
408
+ }
409
+ ) }),
410
+ /* @__PURE__ */ jsxs(
411
+ ToggleButtonGroup,
412
+ {
413
+ exclusive: true,
414
+ value: equipmentLabelling,
415
+ sx: styles.toggleButtonGroup,
416
+ onChange: changeEquipmentLabelling,
417
+ children: [
418
+ /* @__PURE__ */ jsx(
419
+ ToggleButton,
420
+ {
421
+ value: false,
422
+ sx: styles.toggleButton,
423
+ children: /* @__PURE__ */ jsx(
424
+ FormattedMessage,
425
+ {
426
+ id: "top-bar/id",
427
+ defaultMessage: "Id"
428
+ }
429
+ )
430
+ }
431
+ ),
432
+ /* @__PURE__ */ jsx(
433
+ ToggleButton,
434
+ {
435
+ value: true,
436
+ sx: styles.toggleButton,
437
+ children: /* @__PURE__ */ jsx(
438
+ FormattedMessage,
439
+ {
440
+ id: "top-bar/name",
441
+ defaultMessage: "Name"
442
+ }
443
+ )
444
+ }
445
+ )
446
+ ]
447
+ }
448
+ )
449
+ ]
450
+ }
451
+ ),
452
+ /* @__PURE__ */ jsxs(
453
+ StyledMenuItem,
454
+ {
455
+ disabled: true,
456
+ style: {
457
+ opacity: "1",
458
+ paddingTop: "10px",
459
+ paddingBottom: "10px",
460
+ backgroundColor: "transparent"
461
+ },
462
+ children: [
463
+ /* @__PURE__ */ jsx(ListItemText, { children: /* @__PURE__ */ jsx(
464
+ Typography,
465
+ {
466
+ sx: styles.sizeLabel,
467
+ children: /* @__PURE__ */ jsx(
468
+ FormattedMessage,
426
469
  {
427
- value: true,
428
- sx: styles.toggleButton,
429
- children: /* @__PURE__ */ jsx(
430
- FormattedMessage,
431
- {
432
- id: "top-bar/name",
433
- defaultMessage: "Name"
434
- }
435
- )
470
+ id: "top-bar/language",
471
+ defaultMessage: "Language"
436
472
  }
437
473
  )
438
- ]
439
- }
440
- )
441
- ]
442
- }
443
- ),
444
- /* @__PURE__ */ jsxs(
445
- StyledMenuItem,
446
- {
447
- disabled: true,
448
- style: {
449
- opacity: "1",
450
- paddingTop: "10px",
451
- paddingBottom: "10px",
452
- backgroundColor: "transparent"
453
- },
454
- children: [
455
- /* @__PURE__ */ jsx(ListItemText, { children: /* @__PURE__ */ jsx(
456
- Typography,
457
- {
458
- sx: styles.sizeLabel,
459
- children: /* @__PURE__ */ jsx(
460
- FormattedMessage,
461
- {
462
- id: "top-bar/language",
463
- defaultMessage: "Language"
464
- }
465
- )
466
- }
467
- ) }),
468
- /* @__PURE__ */ jsxs(
469
- ToggleButtonGroup,
470
- {
471
- exclusive: true,
472
- value: language,
473
- sx: styles.toggleButtonGroup,
474
- onChange: changeLanguage,
475
- children: [
476
- /* @__PURE__ */ jsx(
477
- ToggleButton,
478
- {
479
- value: LANG_SYSTEM,
480
- "aria-label": LANG_SYSTEM,
481
- sx: styles.languageToggleButton,
482
- children: /* @__PURE__ */ jsx(Computer, {})
483
- }
484
- ),
485
- /* @__PURE__ */ jsx(
486
- ToggleButton,
474
+ }
475
+ ) }),
476
+ /* @__PURE__ */ jsxs(
477
+ ToggleButtonGroup,
478
+ {
479
+ exclusive: true,
480
+ value: language,
481
+ sx: styles.toggleButtonGroup,
482
+ onChange: changeLanguage,
483
+ children: [
484
+ /* @__PURE__ */ jsx(
485
+ ToggleButton,
486
+ {
487
+ value: LANG_SYSTEM,
488
+ "aria-label": LANG_SYSTEM,
489
+ sx: styles.languageToggleButton,
490
+ children: /* @__PURE__ */ jsx(Computer, {})
491
+ }
492
+ ),
493
+ /* @__PURE__ */ jsx(
494
+ ToggleButton,
495
+ {
496
+ value: LANG_ENGLISH,
497
+ "aria-label": LANG_ENGLISH,
498
+ sx: styles.languageToggleButton,
499
+ children: EN
500
+ }
501
+ ),
502
+ /* @__PURE__ */ jsx(
503
+ ToggleButton,
504
+ {
505
+ value: LANG_FRENCH,
506
+ "aria-label": LANG_FRENCH,
507
+ sx: styles.toggleButton,
508
+ children: FR
509
+ }
510
+ )
511
+ ]
512
+ }
513
+ )
514
+ ]
515
+ }
516
+ ),
517
+ onParametersClick && /* @__PURE__ */ jsxs(
518
+ StyledMenuItem,
519
+ {
520
+ onClick: onParametersClicked,
521
+ sx: styles.borderTop,
522
+ children: [
523
+ /* @__PURE__ */ jsx(CustomListItemIcon, { children: /* @__PURE__ */ jsx(Settings, { fontSize: "small" }) }),
524
+ /* @__PURE__ */ jsx(ListItemText, { children: /* @__PURE__ */ jsx(
525
+ Typography,
526
+ {
527
+ sx: styles.sizeLabel,
528
+ children: /* @__PURE__ */ jsx(
529
+ FormattedMessage,
487
530
  {
488
- value: LANG_ENGLISH,
489
- "aria-label": LANG_ENGLISH,
490
- sx: styles.languageToggleButton,
491
- children: EN
531
+ id: "top-bar/settings",
532
+ defaultMessage: "Settings"
492
533
  }
493
- ),
494
- /* @__PURE__ */ jsx(
495
- ToggleButton,
534
+ )
535
+ }
536
+ ) })
537
+ ]
538
+ }
539
+ ),
540
+ /* @__PURE__ */ jsxs(
541
+ StyledMenuItem,
542
+ {
543
+ sx: styles.borderBottom,
544
+ style: { opacity: "1" },
545
+ onClick: onAboutClicked,
546
+ children: [
547
+ /* @__PURE__ */ jsx(CustomListItemIcon, { children: /* @__PURE__ */ jsx(HelpOutline, { fontSize: "small" }) }),
548
+ /* @__PURE__ */ jsx(ListItemText, { children: /* @__PURE__ */ jsx(
549
+ Typography,
550
+ {
551
+ sx: styles.sizeLabel,
552
+ children: /* @__PURE__ */ jsx(
553
+ FormattedMessage,
496
554
  {
497
- value: LANG_FRENCH,
498
- "aria-label": LANG_FRENCH,
499
- sx: styles.toggleButton,
500
- children: FR
555
+ id: "top-bar/about",
556
+ defaultMessage: "About"
501
557
  }
502
558
  )
503
- ]
504
- }
505
- )
506
- ]
507
- }
508
- ),
509
- onParametersClick && /* @__PURE__ */ jsxs(
510
- StyledMenuItem,
511
- {
512
- onClick: onParametersClicked,
513
- sx: styles.borderTop,
514
- children: [
515
- /* @__PURE__ */ jsx(CustomListItemIcon, { children: /* @__PURE__ */ jsx(Settings, { fontSize: "small" }) }),
516
- /* @__PURE__ */ jsx(ListItemText, { children: /* @__PURE__ */ jsx(
517
- Typography,
518
- {
519
- sx: styles.sizeLabel,
520
- children: /* @__PURE__ */ jsx(
521
- FormattedMessage,
522
- {
523
- id: "top-bar/settings",
524
- defaultMessage: "Settings"
525
- }
526
- )
527
- }
528
- ) })
529
- ]
530
- }
531
- ),
532
- /* @__PURE__ */ jsxs(
533
- StyledMenuItem,
534
- {
535
- sx: styles.borderBottom,
536
- style: { opacity: "1" },
537
- onClick: onAboutClicked,
538
- children: [
539
- /* @__PURE__ */ jsx(CustomListItemIcon, { children: /* @__PURE__ */ jsx(HelpOutline, { fontSize: "small" }) }),
540
- /* @__PURE__ */ jsx(ListItemText, { children: /* @__PURE__ */ jsx(
541
- Typography,
542
- {
543
- sx: styles.sizeLabel,
544
- children: /* @__PURE__ */ jsx(
545
- FormattedMessage,
546
- {
547
- id: "top-bar/about",
548
- defaultMessage: "About"
549
- }
550
- )
551
- }
552
- ) })
553
- ]
554
- }
555
- ),
556
- /* @__PURE__ */ jsxs(StyledMenuItem, { onClick: onLogoutClick, children: [
557
- /* @__PURE__ */ jsx(CustomListItemIcon, { children: /* @__PURE__ */ jsx(ExitToApp, { fontSize: "small" }) }),
558
- /* @__PURE__ */ jsx(ListItemText, { children: /* @__PURE__ */ jsx(
559
- Typography,
560
- {
561
- sx: styles.sizeLabel,
562
- children: /* @__PURE__ */ jsx(
563
- FormattedMessage,
564
- {
565
- id: "top-bar/logout",
566
- defaultMessage: "Logout"
567
- }
568
- )
559
+ }
560
+ ) })
561
+ ]
569
562
  }
570
- ) })
563
+ ),
564
+ /* @__PURE__ */ jsxs(StyledMenuItem, { onClick: onLogoutClick, children: [
565
+ /* @__PURE__ */ jsx(CustomListItemIcon, { children: /* @__PURE__ */ jsx(ExitToApp, { fontSize: "small" }) }),
566
+ /* @__PURE__ */ jsx(ListItemText, { children: /* @__PURE__ */ jsx(
567
+ Typography,
568
+ {
569
+ sx: styles.sizeLabel,
570
+ children: /* @__PURE__ */ jsx(
571
+ FormattedMessage,
572
+ {
573
+ id: "top-bar/logout",
574
+ defaultMessage: "Logout"
575
+ }
576
+ )
577
+ }
578
+ ) })
579
+ ] })
571
580
  ] })
572
- ] })
573
- }
574
- ) })
581
+ }
582
+ ) })
583
+ }
584
+ )
585
+ ] }),
586
+ /* @__PURE__ */ jsx(
587
+ AboutDialog,
588
+ {
589
+ open: isAboutDialogOpen,
590
+ onClose: () => setAboutDialogOpen(false),
591
+ appName,
592
+ appVersion,
593
+ appLicense,
594
+ globalVersionPromise,
595
+ additionalModulesPromise
575
596
  }
576
597
  )
577
- ] }),
578
- /* @__PURE__ */ jsx(
579
- AboutDialog,
580
- {
581
- open: isAboutDialogOpen,
582
- onClose: () => setAboutDialogOpen(false),
583
- appName,
584
- appVersion,
585
- appLicense,
586
- globalVersionPromise,
587
- additionalModulesPromise
588
- }
589
- )
590
- ] }) });
598
+ ] }) })
599
+ );
591
600
  };
592
601
  TopBar.propTypes = {
593
602
  onParametersClick: PropTypes.func,