@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
@@ -16,7 +16,8 @@ const filter_fr = {
16
16
  emptyRule: "Le filtre contient un champ vide",
17
17
  incorrectRule: "Le filtre contient un champ incorrect",
18
18
  betweenRule: "La valeur de gauche d'une règle 'entre' doit être inférieure à la valeur de droite",
19
- emptyGroup: "Le filtre contient un groupe vide. Supprimez le ou ajoutez des règles à ce groupe"
19
+ emptyGroup: "Le filtre contient un groupe vide. Supprimez le ou ajoutez des règles à ce groupe",
20
+ Hvdc: "HVDC"
20
21
  };
21
22
  export {
22
23
  filter_fr as default
@@ -1,4 +1,3 @@
1
- export default flat_parameters_en;
2
1
  /**
3
2
  * Copyright (c) 2023, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -10,3 +9,4 @@ declare const flat_parameters_en: {
10
9
  'flat_parameters/some': string;
11
10
  'flat_parameters/all': string;
12
11
  };
12
+ export default flat_parameters_en;
@@ -1,4 +1,3 @@
1
- export default flat_parameters_fr;
2
1
  /**
3
2
  * Copyright (c) 2023, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -10,3 +9,4 @@ declare const flat_parameters_fr: {
10
9
  'flat_parameters/some': string;
11
10
  'flat_parameters/all': string;
12
11
  };
12
+ export default flat_parameters_fr;
@@ -1,4 +1,3 @@
1
- export default inputs_en;
2
1
  /**
3
2
  * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -23,3 +22,4 @@ declare const inputs_en: {
23
22
  'inputs/switch': string;
24
23
  Optional: string;
25
24
  };
25
+ export default inputs_en;
@@ -1,4 +1,3 @@
1
- export default inputs_fr;
2
1
  /**
3
2
  * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -23,3 +22,4 @@ declare const inputs_fr: {
23
22
  'inputs/switch': string;
24
23
  Optional: string;
25
24
  };
25
+ export default inputs_fr;
@@ -1,4 +1,3 @@
1
- export default login_en;
2
1
  /**
3
2
  * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -16,3 +15,4 @@ declare const login_en: {
16
15
  'login/errorInLogoutMessage': string;
17
16
  'login/logout': string;
18
17
  };
18
+ export default login_en;
@@ -1,4 +1,3 @@
1
- export default login_fr;
2
1
  /**
3
2
  * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -16,3 +15,4 @@ declare const login_fr: {
16
15
  'login/errorInLogoutMessage': string;
17
16
  'login/logout': string;
18
17
  };
18
+ export default login_fr;
@@ -1,4 +1,3 @@
1
- export default multiple_selection_dialog_en;
2
1
  /**
3
2
  * Copyright (c) 2023, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -10,3 +9,4 @@ declare const multiple_selection_dialog_en: {
10
9
  'multiple_selection_dialog/validate': string;
11
10
  'multiple_selection_dialog/selectAll': string;
12
11
  };
12
+ export default multiple_selection_dialog_en;
@@ -1,4 +1,3 @@
1
- export default multiple_selection_dialog_fr;
2
1
  /**
3
2
  * Copyright (c) 2023, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -10,3 +9,4 @@ declare const multiple_selection_dialog_fr: {
10
9
  'multiple_selection_dialog/validate': string;
11
10
  'multiple_selection_dialog/selectAll': string;
12
11
  };
12
+ export default multiple_selection_dialog_fr;
@@ -1,4 +1,3 @@
1
- export default report_viewer_en;
2
1
  /**
3
2
  * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -10,3 +9,4 @@ declare const report_viewer_en: {
10
9
  'report_viewer/severity': string;
11
10
  'report_viewer/message': string;
12
11
  };
12
+ export default report_viewer_en;
@@ -1,4 +1,3 @@
1
- export default report_viewer_fr;
2
1
  /**
3
2
  * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -10,3 +9,4 @@ declare const report_viewer_fr: {
10
9
  'report_viewer/severity': string;
11
10
  'report_viewer/message': string;
12
11
  };
12
+ export default report_viewer_fr;
@@ -1,4 +1,3 @@
1
- export default table_en;
2
1
  /**
3
2
  * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -8,3 +7,4 @@ export default table_en;
8
7
  declare const table_en: {
9
8
  'MuiVirtualizedTable/exportCSV': string;
10
9
  };
10
+ export default table_en;
@@ -1,4 +1,3 @@
1
- export default table_fr;
2
1
  /**
3
2
  * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -8,3 +7,4 @@ export default table_fr;
8
7
  declare const table_fr: {
9
8
  'MuiVirtualizedTable/exportCSV': string;
10
9
  };
10
+ export default table_fr;
@@ -1,4 +1,3 @@
1
- export default top_bar_en;
2
1
  /**
3
2
  * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -28,3 +27,4 @@ declare const top_bar_en: {
28
27
  'about-dialog/module-tooltip-server': string;
29
28
  'about-dialog/module-tooltip-other': string;
30
29
  };
30
+ export default top_bar_en;
@@ -1,4 +1,3 @@
1
- export default top_bar_fr;
2
1
  /**
3
2
  * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -28,3 +27,4 @@ declare const top_bar_fr: {
28
27
  'about-dialog/module-tooltip-server': string;
29
28
  'about-dialog/module-tooltip-other': string;
30
29
  };
30
+ export default top_bar_fr;
@@ -1,4 +1,3 @@
1
- export default treeview_finder_en;
2
1
  /**
3
2
  * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -15,3 +14,4 @@ declare const treeview_finder_en: {
15
14
  'treeview_finder/addElementsValidation': string;
16
15
  'treeview_finder/replaceElementsValidation': string;
17
16
  };
17
+ export default treeview_finder_en;
@@ -1,4 +1,3 @@
1
- export default treeview_finder_fr;
2
1
  /**
3
2
  * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
3
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -15,3 +14,4 @@ declare const treeview_finder_fr: {
15
14
  'treeview_finder/addElementsValidation': string;
16
15
  'treeview_finder/replaceElementsValidation': string;
17
16
  };
17
+ export default treeview_finder_fr;
@@ -1,6 +1,12 @@
1
- export function getSystemLanguage(): string;
2
- export function getComputedLanguage(language: any): any;
3
- export function useLocalizedCountries(language: any): {
4
- translate: (countryCode: any) => any;
1
+ /**
2
+ * Copyright (c) 2023, RTE (http://www.rte-france.com)
3
+ * This Source Code Form is subject to the terms of the Mozilla Public
4
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
+ */
7
+ export declare const getSystemLanguage: () => string;
8
+ export declare const getComputedLanguage: (language: string | undefined) => string;
9
+ export declare const useLocalizedCountries: (language: string | undefined) => {
10
+ translate: (countryCode: string) => string;
5
11
  countryCodes: string[];
6
12
  };
@@ -9,7 +9,7 @@ const getSystemLanguage = () => {
9
9
  return supportedLanguages.includes(systemLanguage) ? systemLanguage : LANG_ENGLISH;
10
10
  };
11
11
  const getComputedLanguage = (language) => {
12
- return language === LANG_SYSTEM ? getSystemLanguage() : language;
12
+ return language === LANG_SYSTEM ? getSystemLanguage() : language ?? LANG_ENGLISH;
13
13
  };
14
14
  const useLocalizedCountries = (language) => {
15
15
  const [localizedCountriesModule, setLocalizedCountriesModule] = useState();
@@ -1,18 +1,4 @@
1
- import { EquipmentType, PredefinedProperties } from '../utils/types.ts';
1
+ import { EquipmentType, PredefinedProperties } from '../utils/types';
2
2
  import { Dispatch, SetStateAction } from 'react';
3
3
 
4
- interface Metadata {
5
- name: string;
6
- url: string;
7
- appColor: string;
8
- hiddenInAppsMenu: boolean;
9
- resources: unknown;
10
- }
11
- export interface StudyMetadata extends Metadata {
12
- name: 'Study';
13
- predefinedEquipmentProperties: {
14
- [networkElementType: string]: PredefinedProperties;
15
- };
16
- }
17
4
  export declare const usePredefinedProperties: (initialType: EquipmentType | null) => [PredefinedProperties, Dispatch<SetStateAction<EquipmentType | null>>];
18
- export {};
@@ -1,31 +1,23 @@
1
- import { useState, useContext, useEffect } from "react";
1
+ import { useState, useEffect } from "react";
2
2
  import { mapEquipmentTypeForPredefinedProperties } from "../utils/equipment-types-for-predefined-properties-mapper.js";
3
3
  import { useSnackMessage } from "./useSnackMessage.js";
4
- import { FilterContext } from "../components/filter/filter-context.js";
5
- const isStudyMetadata = (metadata) => {
6
- return metadata.name === "Study";
7
- };
8
- const fetchPredefinedProperties = async (equipmentType, fetchAppsAndUrls) => {
4
+ import { fetchStudyMetadata } from "../services/apps-metadata.js";
5
+ const fetchPredefinedProperties = async (equipmentType) => {
9
6
  var _a;
10
7
  const networkEquipmentType = mapEquipmentTypeForPredefinedProperties(equipmentType);
11
8
  if (networkEquipmentType === void 0) {
12
9
  return Promise.resolve(void 0);
13
10
  }
14
- const res = await fetchAppsAndUrls();
15
- const studyMetadata = res.filter(isStudyMetadata);
16
- if (!studyMetadata) {
17
- return Promise.reject("Study entry could not be found in metadata");
18
- }
19
- return (_a = studyMetadata[0].predefinedEquipmentProperties) == null ? void 0 : _a[networkEquipmentType];
11
+ const studyMetadata = await fetchStudyMetadata();
12
+ return (_a = studyMetadata.predefinedEquipmentProperties) == null ? void 0 : _a[networkEquipmentType];
20
13
  };
21
14
  const usePredefinedProperties = (initialType) => {
22
15
  const [type, setType] = useState(initialType);
23
16
  const [equipmentPredefinedProps, setEquipmentPredefinedProps] = useState({});
24
17
  const { snackError } = useSnackMessage();
25
- const { fetchAppsAndUrls } = useContext(FilterContext);
26
18
  useEffect(() => {
27
- if (fetchAppsAndUrls && type !== null) {
28
- fetchPredefinedProperties(type, fetchAppsAndUrls).then((p) => {
19
+ if (type !== null) {
20
+ fetchPredefinedProperties(type).then((p) => {
29
21
  if (p !== void 0) {
30
22
  setEquipmentPredefinedProps(p);
31
23
  }
@@ -35,7 +27,7 @@ const usePredefinedProperties = (initialType) => {
35
27
  });
36
28
  });
37
29
  }
38
- }, [type, setEquipmentPredefinedProps, snackError, fetchAppsAndUrls]);
30
+ }, [type, setEquipmentPredefinedProps, snackError]);
39
31
  return [equipmentPredefinedProps, setType];
40
32
  };
41
33
  export {
@@ -4,4 +4,4 @@
4
4
  * License, v. 2.0. If a copy of the MPL was not distributed with this
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
- export declare const useDebounce: (func: (...args: any[]) => any, delay?: number) => ((...args: any[]) => any) & import('@mui/utils/debounce').Cancelable;
7
+ export declare const useDebounce: <T extends (...args: any[]) => any>(func: T, delay?: number) => T & import('@mui/utils/debounce').Cancelable;
@@ -1,10 +1,6 @@
1
- /**
2
- * Copyright (c) 2021, RTE (http://www.rte-france.com)
3
- * This Source Code Form is subject to the terms of the Mozilla Public
4
- * License, v. 2.0. If a copy of the MPL was not distributed with this
5
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
- */
7
- interface SnackInputs {
1
+ import { OptionsObject, closeSnackbar } from 'notistack';
2
+
3
+ interface SnackInputs extends Omit<OptionsObject, 'variant' | 'style'> {
8
4
  messageTxt?: string;
9
5
  messageId?: string;
10
6
  messageValues?: {
@@ -18,6 +14,7 @@ export interface UseSnackMessageReturn {
18
14
  snackError: (snackInputs: SnackInputs) => void;
19
15
  snackWarning: (snackInputs: SnackInputs) => void;
20
16
  snackInfo: (snackInputs: SnackInputs) => void;
17
+ closeSnackbar: typeof closeSnackbar;
21
18
  }
22
19
  export declare function useSnackMessage(): UseSnackMessageReturn;
23
20
  export {};
@@ -3,49 +3,34 @@ import { useSnackbar } from "notistack";
3
3
  import { useIntlRef } from "./useIntlRef.js";
4
4
  function useSnackMessage() {
5
5
  const intlRef = useIntlRef();
6
- const { enqueueSnackbar } = useSnackbar();
7
- const snackError = useCallback(
8
- (snackInputs) => makeSnackbar(snackInputs, intlRef, enqueueSnackbar, "error", true),
6
+ const { enqueueSnackbar, closeSnackbar: closeSnackbar2 } = useSnackbar();
7
+ const enqueue = useCallback(
8
+ (snackInputs, variant) => {
9
+ const message = makeMessage(intlRef, snackInputs);
10
+ if (message === null) {
11
+ return;
12
+ }
13
+ return enqueueSnackbar(message, {
14
+ ...snackInputs,
15
+ variant,
16
+ style: { whiteSpace: "pre-line" }
17
+ });
18
+ },
9
19
  [enqueueSnackbar, intlRef]
10
20
  );
21
+ const snackError = useCallback(
22
+ (snackInputs) => enqueue(snackInputs, "error"),
23
+ [enqueue]
24
+ );
11
25
  const snackWarning = useCallback(
12
- (snackInputs) => makeSnackbar(
13
- snackInputs,
14
- intlRef,
15
- enqueueSnackbar,
16
- "warning",
17
- true
18
- ),
19
- [enqueueSnackbar, intlRef]
26
+ (snackInputs) => enqueue(snackInputs, "warning"),
27
+ [enqueue]
20
28
  );
21
29
  const snackInfo = useCallback(
22
- (snackInputs) => makeSnackbar(snackInputs, intlRef, enqueueSnackbar, "info", false),
23
- [enqueueSnackbar, intlRef]
24
- );
25
- return { snackError, snackInfo, snackWarning };
26
- }
27
- function makeSnackbar(snackInputs, intlRef, enqueueSnackbar, level, persistent) {
28
- const message = checkAndTranslateIfNecessary(
29
- intlRef,
30
- snackInputs.messageTxt,
31
- snackInputs.messageId,
32
- snackInputs.messageValues
33
- );
34
- const header = checkAndTranslateIfNecessary(
35
- intlRef,
36
- snackInputs.headerTxt,
37
- snackInputs.headerId,
38
- snackInputs.headerValues
30
+ (snackInputs) => enqueue(snackInputs, "info"),
31
+ [enqueue]
39
32
  );
40
- if (message !== null && header !== null) {
41
- displayMessageWithSnackbar(
42
- message,
43
- header,
44
- enqueueSnackbar,
45
- level,
46
- persistent
47
- );
48
- }
33
+ return { snackError, snackInfo, snackWarning, closeSnackbar: closeSnackbar2 };
49
34
  }
50
35
  function checkAndTranslateIfNecessary(intlRef, txt, id, values) {
51
36
  checkInputs(txt, id, values);
@@ -61,7 +46,19 @@ function checkInputs(txt, id, values) {
61
46
  console.warn("Snack inputs should be [*Txt] OR [*Id, *Values]");
62
47
  }
63
48
  }
64
- function displayMessageWithSnackbar(message, header, enqueueSnackbar, level, persistent) {
49
+ function makeMessage(intlRef, snackInputs) {
50
+ const message = checkAndTranslateIfNecessary(
51
+ intlRef,
52
+ snackInputs.messageTxt,
53
+ snackInputs.messageId,
54
+ snackInputs.messageValues
55
+ );
56
+ const header = checkAndTranslateIfNecessary(
57
+ intlRef,
58
+ snackInputs.headerTxt,
59
+ snackInputs.headerId,
60
+ snackInputs.headerValues
61
+ );
65
62
  let fullMessage = "";
66
63
  if (header) {
67
64
  fullMessage += header;
@@ -72,11 +69,7 @@ function displayMessageWithSnackbar(message, header, enqueueSnackbar, level, per
72
69
  }
73
70
  fullMessage += message;
74
71
  }
75
- enqueueSnackbar(fullMessage, {
76
- variant: level,
77
- persist: persistent,
78
- style: { whiteSpace: "pre-line" }
79
- });
72
+ return fullMessage;
80
73
  }
81
74
  export {
82
75
  useSnackMessage