@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
@@ -1,24 +1,31 @@
1
- import { default as PropTypes } from 'prop-types';
2
- export default AboutDialog;
3
- declare function AboutDialog({ open, onClose, globalVersionPromise, appName, appVersion, appGitTag, appLicense, additionalModulesPromise, }: {
4
- open: any;
5
- onClose: any;
6
- globalVersionPromise: any;
7
- appName: any;
8
- appVersion: any;
9
- appGitTag: any;
10
- appLicense: any;
11
- additionalModulesPromise: any;
12
- }): import("react/jsx-runtime").JSX.Element;
13
- declare namespace AboutDialog {
14
- namespace propTypes {
15
- let open: PropTypes.Validator<boolean>;
16
- let onClose: PropTypes.Requireable<(...args: any[]) => any>;
17
- let appName: PropTypes.Validator<string>;
18
- let appVersion: PropTypes.Requireable<string>;
19
- let appGitTag: PropTypes.Requireable<string>;
20
- let appLicense: PropTypes.Requireable<string>;
21
- let globalVersionPromise: PropTypes.Requireable<(...args: any[]) => any>;
22
- let additionalModulesPromise: PropTypes.Requireable<(...args: any[]) => any>;
23
- }
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
+ declare const moduleTypeSort: {
8
+ app: number;
9
+ server: number;
10
+ other: number;
11
+ };
12
+ type ModuleType = keyof typeof moduleTypeSort;
13
+ type GridSuiteModule = {
14
+ name: string;
15
+ type: ModuleType;
16
+ version?: string;
17
+ gitTag?: string;
18
+ license?: string;
19
+ };
20
+ export interface AboutDialogProps {
21
+ open: boolean;
22
+ onClose: () => void;
23
+ globalVersionPromise?: () => Promise<string>;
24
+ appName: string;
25
+ appVersion?: string;
26
+ appGitTag?: string;
27
+ appLicense?: string;
28
+ additionalModulesPromise?: () => Promise<GridSuiteModule[]>;
24
29
  }
30
+ declare const AboutDialog: ({ open, onClose, globalVersionPromise, appName, appVersion, appGitTag, appLicense, additionalModulesPromise, }: AboutDialogProps) => import("react/jsx-runtime").JSX.Element;
31
+ export default AboutDialog;
@@ -4,7 +4,6 @@ import { useTheme, Dialog, useMediaQuery, DialogTitle, Collapse, Alert, Box, Fad
4
4
  import { LoadingButton } from "@mui/lab";
5
5
  import { Refresh, ExpandMore, Gavel, Apps, WidgetsOutlined, DnsOutlined, QuestionMark } from "@mui/icons-material";
6
6
  import { FormattedMessage } from "react-intl";
7
- import PropTypes from "prop-types";
8
7
  import { LogoText } from "./GridLogo.js";
9
8
  const styles = {
10
9
  general: {
@@ -42,7 +41,7 @@ function getGlobalVersion(fnPromise, type, setData, setLoader) {
42
41
  if (setLoader) {
43
42
  setLoader(true);
44
43
  }
45
- resolve();
44
+ resolve(null);
46
45
  }).then(() => fnPromise()).then(
47
46
  (value) => {
48
47
  console.debug(type, "global version is", value);
@@ -72,7 +71,7 @@ const moduleTypeSort = {
72
71
  other: 20
73
72
  };
74
73
  function compareModules(c1, c2) {
75
- return [moduleTypeSort[c1.type] || 100] - [moduleTypeSort[c2.type] || 100] || (c1.name || "").localeCompare(c2.name || "");
74
+ return (moduleTypeSort[c1.type] || 100) - (moduleTypeSort[c2.type] || 100) || (c1.name || "").localeCompare(c2.name || "");
76
75
  }
77
76
  const AboutDialog = ({
78
77
  open,
@@ -220,7 +219,7 @@ const AboutDialog = ({
220
219
  {
221
220
  component: "span",
222
221
  sx: styles.versionField(
223
- !loadingGlobalVersion && actualGlobalVersion
222
+ !loadingGlobalVersion && !!actualGlobalVersion
224
223
  ),
225
224
  children: actualGlobalVersion || "unknown"
226
225
  }
@@ -311,16 +310,6 @@ const AboutDialog = ({
311
310
  }
312
311
  );
313
312
  };
314
- AboutDialog.propTypes = {
315
- open: PropTypes.bool.isRequired,
316
- onClose: PropTypes.func,
317
- appName: PropTypes.string.isRequired,
318
- appVersion: PropTypes.string,
319
- appGitTag: PropTypes.string,
320
- appLicense: PropTypes.string,
321
- globalVersionPromise: PropTypes.func,
322
- additionalModulesPromise: PropTypes.func
323
- };
324
313
  const moduleStyles = {
325
314
  icons: {
326
315
  flexGrow: 0,
@@ -388,7 +377,7 @@ function tooltipTypeLabel(type) {
388
377
  return "about-dialog/module-tooltip-other";
389
378
  }
390
379
  }
391
- const Module = ({ type, name, version, gitTag, license }) => {
380
+ const Module = ({ type, name, version, gitTag }) => {
392
381
  return /* @__PURE__ */ jsx(
393
382
  Grid,
394
383
  {
@@ -455,13 +444,6 @@ const Module = ({ type, name, version, gitTag, license }) => {
455
444
  }
456
445
  );
457
446
  };
458
- Module.propTypes = {
459
- type: PropTypes.string,
460
- name: PropTypes.string,
461
- version: PropTypes.string,
462
- gitTag: PropTypes.string,
463
- license: PropTypes.string
464
- };
465
447
  export {
466
448
  AboutDialog as default
467
449
  };
@@ -1,34 +1,15 @@
1
- import { default as PropTypes } from 'prop-types';
2
- export default GridLogo;
3
- export function LogoText({ appName, appColor, style, onClick }: {
4
- appName: any;
5
- appColor: any;
6
- style: any;
7
- onClick: any;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- export namespace LogoText {
10
- namespace propTypes {
11
- let appName: PropTypes.Validator<string>;
12
- let appColor: PropTypes.Validator<string>;
13
- let style: PropTypes.Requireable<object>;
14
- let onClick: PropTypes.Requireable<(...args: any[]) => any>;
15
- }
1
+ import { ReactNode } from 'react';
2
+ import { SxProps } from '@mui/material';
3
+
4
+ export interface GridLogoProps extends Omit<LogoTextProps, 'style'> {
5
+ appLogo: ReactNode;
16
6
  }
17
- declare function GridLogo({ appLogo, appName, appColor, onClick }: {
18
- appLogo: any;
19
- appName: any;
20
- appColor: any;
21
- onClick: any;
22
- }): import("react/jsx-runtime").JSX.Element;
23
- declare namespace GridLogo {
24
- export namespace propTypes_1 {
25
- export let appLogo: PropTypes.Requireable<PropTypes.ReactElementLike>;
26
- let appName_1: PropTypes.Validator<string>;
27
- export { appName_1 as appName };
28
- let appColor_1: PropTypes.Validator<string>;
29
- export { appColor_1 as appColor };
30
- let onClick_1: PropTypes.Requireable<(...args: any[]) => any>;
31
- export { onClick_1 as onClick };
32
- }
33
- export { propTypes_1 as propTypes };
7
+ declare const GridLogo: ({ appLogo, appName, appColor, onClick, }: Partial<GridLogoProps>) => import("react/jsx-runtime").JSX.Element;
8
+ export default GridLogo;
9
+ export interface LogoTextProps {
10
+ appName: string;
11
+ appColor: string;
12
+ style: SxProps;
13
+ onClick: () => void;
34
14
  }
15
+ export declare const LogoText: ({ appName, appColor, style, onClick, }: Partial<LogoTextProps>) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,6 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { Box, Typography } from "@mui/material";
3
3
  import { BrokenImage } from "@mui/icons-material";
4
4
  import { mergeSx } from "../../utils/styles.js";
5
- import PropTypes from "prop-types";
6
5
  const styles = {
7
6
  logo: {
8
7
  flexShrink: 0,
@@ -18,7 +17,12 @@ const styles = {
18
17
  cursor: "pointer"
19
18
  }
20
19
  };
21
- const GridLogo = ({ appLogo, appName, appColor, onClick }) => {
20
+ const GridLogo = ({
21
+ appLogo,
22
+ appName,
23
+ appColor,
24
+ onClick
25
+ }) => {
22
26
  return /* @__PURE__ */ jsxs(Fragment, { children: [
23
27
  /* @__PURE__ */ jsx(
24
28
  Box,
@@ -39,13 +43,12 @@ const GridLogo = ({ appLogo, appName, appColor, onClick }) => {
39
43
  )
40
44
  ] });
41
45
  };
42
- GridLogo.propTypes = {
43
- appLogo: PropTypes.element,
44
- appName: PropTypes.string.isRequired,
45
- appColor: PropTypes.string.isRequired,
46
- onClick: PropTypes.func
47
- };
48
- const LogoText = ({ appName, appColor, style, onClick }) => {
46
+ const LogoText = ({
47
+ appName,
48
+ appColor,
49
+ style,
50
+ onClick
51
+ }) => {
49
52
  return /* @__PURE__ */ jsxs(
50
53
  Typography,
51
54
  {
@@ -59,12 +62,6 @@ const LogoText = ({ appName, appColor, style, onClick }) => {
59
62
  }
60
63
  );
61
64
  };
62
- LogoText.propTypes = {
63
- appName: PropTypes.string.isRequired,
64
- appColor: PropTypes.string.isRequired,
65
- style: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
66
- onClick: PropTypes.func
67
- };
68
65
  export {
69
66
  LogoText,
70
67
  GridLogo as default
@@ -1,53 +1,54 @@
1
+ import { CommonMetadata } from '../../services';
2
+ import { User } from 'oidc-client';
3
+ import { LogoutProps } from '../Login/Logout';
4
+ import { AboutDialogProps } from './AboutDialog';
5
+ import { GridLogoProps } from './GridLogo';
1
6
  import { default as PropTypes } from 'prop-types';
2
- export const DARK_THEME: "Dark";
3
- export const LIGHT_THEME: "Light";
4
- export const LANG_SYSTEM: "sys";
5
- export const LANG_ENGLISH: "en";
6
- export const LANG_FRENCH: "fr";
7
+ import { PropsWithChildren } from 'react';
8
+
9
+ export declare const DARK_THEME = "Dark";
10
+ export declare const LIGHT_THEME = "Light";
11
+ export declare const LANG_SYSTEM = "sys";
12
+ export declare const LANG_ENGLISH = "en";
13
+ export declare const LANG_FRENCH = "fr";
14
+ export type GsLang = typeof LANG_ENGLISH | typeof LANG_FRENCH | typeof LANG_SYSTEM;
15
+ export type GsTheme = typeof LIGHT_THEME | typeof DARK_THEME;
16
+ export type TopBarProps = Omit<GridLogoProps, 'onClick'> & Omit<LogoutProps, 'disabled'> & Omit<AboutDialogProps, 'open' | 'onClose'> & {
17
+ onParametersClick?: () => void;
18
+ onLogoClick: GridLogoProps['onClick'];
19
+ user: User;
20
+ onAboutClick?: () => void;
21
+ appsAndUrls: CommonMetadata[];
22
+ onThemeClick?: (theme: GsTheme) => void;
23
+ theme?: GsTheme;
24
+ onEquipmentLabellingClick?: (toggle: boolean) => void;
25
+ equipmentLabelling?: boolean;
26
+ onLanguageClick: (value: GsLang) => void;
27
+ language: GsLang;
28
+ };
29
+ declare const TopBar: {
30
+ ({ appName, appColor, appLogo, appVersion, appLicense, onParametersClick, onLogoutClick, onLogoClick, user, children, appsAndUrls, onAboutClick, globalVersionPromise, additionalModulesPromise, onThemeClick, theme, onEquipmentLabellingClick, equipmentLabelling, onLanguageClick, language, }: PropsWithChildren<TopBarProps>): import("react/jsx-runtime").JSX.Element;
31
+ propTypes: {
32
+ onParametersClick: PropTypes.Requireable<(...args: any[]) => any>;
33
+ onLogoutClick: PropTypes.Requireable<(...args: any[]) => any>;
34
+ onLogoClick: PropTypes.Requireable<(...args: any[]) => any>;
35
+ appName: PropTypes.Requireable<string>;
36
+ appColor: PropTypes.Requireable<string>;
37
+ appLogo: PropTypes.Requireable<object>;
38
+ appVersion: PropTypes.Requireable<string>;
39
+ appLicense: PropTypes.Requireable<string>;
40
+ user: PropTypes.Requireable<object>;
41
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
42
+ appsAndUrls: PropTypes.Requireable<any[]>;
43
+ onThemeClick: PropTypes.Requireable<(...args: any[]) => any>;
44
+ theme: PropTypes.Requireable<string>;
45
+ onAboutClick: PropTypes.Requireable<(...args: any[]) => any>;
46
+ globalVersionPromise: PropTypes.Requireable<(...args: any[]) => any>;
47
+ additionalModulesPromise: PropTypes.Requireable<(...args: any[]) => any>;
48
+ onEquipmentLabellingClick: PropTypes.Requireable<(...args: any[]) => any>;
49
+ equipmentLabelling: PropTypes.Requireable<boolean>;
50
+ onLanguageClick: PropTypes.Validator<(...args: any[]) => any>;
51
+ language: PropTypes.Validator<string>;
52
+ };
53
+ };
7
54
  export default TopBar;
8
- declare function TopBar({ appName, appColor, appLogo, appVersion, appLicense, onParametersClick, onLogoutClick, onLogoClick, user, children, appsAndUrls, onAboutClick, globalVersionPromise, additionalModulesPromise, onThemeClick, theme, onEquipmentLabellingClick, equipmentLabelling, onLanguageClick, language, }: {
9
- appName: any;
10
- appColor: any;
11
- appLogo: any;
12
- appVersion: any;
13
- appLicense: any;
14
- onParametersClick: any;
15
- onLogoutClick: any;
16
- onLogoClick: any;
17
- user: any;
18
- children: any;
19
- appsAndUrls: any;
20
- onAboutClick: any;
21
- globalVersionPromise: any;
22
- additionalModulesPromise: any;
23
- onThemeClick: any;
24
- theme: any;
25
- onEquipmentLabellingClick: any;
26
- equipmentLabelling: any;
27
- onLanguageClick: any;
28
- language: any;
29
- }): import("react/jsx-runtime").JSX.Element;
30
- declare namespace TopBar {
31
- namespace propTypes {
32
- let onParametersClick: PropTypes.Requireable<(...args: any[]) => any>;
33
- let onLogoutClick: PropTypes.Requireable<(...args: any[]) => any>;
34
- let onLogoClick: PropTypes.Requireable<(...args: any[]) => any>;
35
- let appName: PropTypes.Requireable<string>;
36
- let appColor: PropTypes.Requireable<string>;
37
- let appLogo: PropTypes.Requireable<object>;
38
- let appVersion: PropTypes.Requireable<string>;
39
- let appLicense: PropTypes.Requireable<string>;
40
- let user: PropTypes.Requireable<object>;
41
- let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
42
- let appsAndUrls: PropTypes.Requireable<any[]>;
43
- let onThemeClick: PropTypes.Requireable<(...args: any[]) => any>;
44
- let theme: PropTypes.Requireable<string>;
45
- let onAboutClick: PropTypes.Requireable<(...args: any[]) => any>;
46
- let globalVersionPromise: PropTypes.Requireable<(...args: any[]) => any>;
47
- let additionalModulesPromise: PropTypes.Requireable<(...args: any[]) => any>;
48
- let onEquipmentLabellingClick: PropTypes.Requireable<(...args: any[]) => any>;
49
- let equipmentLabelling: PropTypes.Requireable<boolean>;
50
- let onLanguageClick: PropTypes.Validator<(...args: any[]) => any>;
51
- let language: PropTypes.Validator<string>;
52
- }
53
- }