@gridsuite/commons-ui 0.66.1 → 0.67.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 (421) hide show
  1. package/dist/components/authentication/AuthenticationRouter.d.ts +1 -2
  2. package/dist/components/authentication/AuthenticationRouter.js +5 -5
  3. package/dist/components/authentication/AuthenticationRouterErrorDisplay.js +1 -1
  4. package/dist/components/authentication/Login.d.ts +1 -2
  5. package/dist/components/authentication/Login.js +1 -1
  6. package/dist/components/authentication/Logout.d.ts +1 -2
  7. package/dist/components/authentication/Logout.js +1 -1
  8. package/dist/components/authentication/SignInCallbackHandler.d.ts +1 -2
  9. package/dist/components/authentication/SignInCallbackHandler.js +1 -1
  10. package/dist/components/authentication/SilentRenewCallbackHandler.d.ts +1 -2
  11. package/dist/components/authentication/SilentRenewCallbackHandler.js +5 -2
  12. package/dist/components/authentication/index.d.ts +5 -5
  13. package/dist/components/authentication/index.js +12 -12
  14. package/dist/components/cardErrorBoundary/CardErrorBoundary.d.ts +2 -2
  15. package/dist/components/cardErrorBoundary/CardErrorBoundary.js +1 -1
  16. package/dist/components/cardErrorBoundary/index.d.ts +7 -3
  17. package/dist/components/cardErrorBoundary/index.js +2 -2
  18. package/dist/components/checkBoxList/CheckBoxList.d.ts +0 -1
  19. package/dist/components/checkBoxList/CheckBoxList.js +1 -2
  20. package/dist/components/checkBoxList/CheckBoxListItem.d.ts +0 -1
  21. package/dist/components/checkBoxList/CheckBoxListItem.js +1 -2
  22. package/dist/components/checkBoxList/CheckBoxListItems.d.ts +0 -1
  23. package/dist/components/checkBoxList/CheckBoxListItems.js +2 -3
  24. package/dist/components/checkBoxList/ClickableCheckBoxItem.d.ts +0 -1
  25. package/dist/components/checkBoxList/ClickableCheckBoxItem.js +1 -2
  26. package/dist/components/checkBoxList/ClickableRowItem.d.ts +0 -1
  27. package/dist/components/checkBoxList/ClickableRowItem.js +1 -2
  28. package/dist/components/checkBoxList/DraggableCheckBoxListItem.d.ts +0 -1
  29. package/dist/components/checkBoxList/DraggableCheckBoxListItem.js +1 -2
  30. package/dist/components/checkBoxList/DraggableClickableCheckBoxItem.d.ts +0 -1
  31. package/dist/components/checkBoxList/DraggableClickableCheckBoxItem.js +2 -3
  32. package/dist/components/checkBoxList/DraggableClickableRowItem.d.ts +0 -1
  33. package/dist/components/checkBoxList/DraggableClickableRowItem.js +2 -3
  34. package/dist/components/checkBoxList/index.d.ts +7 -3
  35. package/dist/components/checkBoxList/index.js +1 -1
  36. package/dist/components/customAGGrid/customAggrid.d.ts +2 -2
  37. package/dist/components/customAGGrid/customAggrid.js +1 -1
  38. package/dist/components/customAGGrid/index.d.ts +8 -0
  39. package/dist/components/customAGGrid/index.js +7 -0
  40. package/dist/components/dialogs/customMuiDialog/CustomMuiDialog.d.ts +1 -2
  41. package/dist/components/dialogs/customMuiDialog/CustomMuiDialog.js +7 -7
  42. package/dist/components/dialogs/descriptionModificationDialog/DescriptionModificationDialog.d.ts +1 -2
  43. package/dist/components/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +4 -4
  44. package/dist/components/dialogs/descriptionModificationDialog/index.d.ts +7 -0
  45. package/dist/components/dialogs/descriptionModificationDialog/index.js +4 -0
  46. package/dist/components/dialogs/index.d.ts +10 -0
  47. package/dist/components/dialogs/index.js +10 -0
  48. package/dist/components/dialogs/modifyElementSelection/ModifyElementSelection.d.ts +1 -2
  49. package/dist/components/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
  50. package/dist/components/dialogs/modifyElementSelection/index.d.ts +7 -0
  51. package/dist/components/dialogs/modifyElementSelection/index.js +4 -0
  52. package/dist/components/dialogs/popupConfirmationDialog/PopupConfirmationDialog.d.ts +1 -2
  53. package/dist/components/dialogs/popupConfirmationDialog/PopupConfirmationDialog.js +2 -2
  54. package/dist/components/dialogs/popupConfirmationDialog/index.d.ts +7 -0
  55. package/dist/components/dialogs/popupConfirmationDialog/index.js +4 -0
  56. package/dist/components/directoryItemSelector/DirectoryItemSelector.d.ts +1 -2
  57. package/dist/components/directoryItemSelector/DirectoryItemSelector.js +3 -3
  58. package/dist/components/directoryItemSelector/index.d.ts +7 -0
  59. package/dist/components/directoryItemSelector/index.js +4 -0
  60. package/dist/components/elementSearch/elementItem/EquipmentItem.d.ts +1 -1
  61. package/dist/components/elementSearch/elementItem/EquipmentItem.js +1 -3
  62. package/dist/components/elementSearch/elementItem/index.d.ts +7 -0
  63. package/dist/components/elementSearch/elementItem/index.js +4 -0
  64. package/dist/components/elementSearch/elementSearchDialog/ElementSearchDialog.d.ts +0 -1
  65. package/dist/components/elementSearch/elementSearchDialog/ElementSearchDialog.js +1 -2
  66. package/dist/components/elementSearch/elementSearchDialog/index.d.ts +7 -0
  67. package/dist/components/elementSearch/elementSearchDialog/index.js +4 -0
  68. package/dist/components/elementSearch/elementSearchInput/index.d.ts +7 -0
  69. package/dist/components/elementSearch/elementSearchInput/index.js +4 -0
  70. package/dist/components/elementSearch/hooks/index.d.ts +7 -0
  71. package/dist/components/elementSearch/hooks/index.js +4 -0
  72. package/dist/components/elementSearch/hooks/useElementSearch.d.ts +2 -2
  73. package/dist/components/elementSearch/hooks/useElementSearch.js +2 -2
  74. package/dist/components/elementSearch/index.d.ts +5 -7
  75. package/dist/components/elementSearch/index.js +6 -4
  76. package/dist/components/elementSearch/tagRenderer/TagRenderer.d.ts +1 -2
  77. package/dist/components/elementSearch/tagRenderer/TagRenderer.js +1 -1
  78. package/dist/components/elementSearch/tagRenderer/index.d.ts +7 -0
  79. package/dist/components/elementSearch/tagRenderer/index.js +4 -0
  80. package/dist/components/expandableGroup/ExpandableGroup.d.ts +1 -31
  81. package/dist/components/expandableGroup/ExpandableGroup.js +1 -2
  82. package/dist/components/expandableGroup/index.d.ts +7 -4
  83. package/dist/components/expandableGroup/index.js +2 -2
  84. package/dist/components/filter/FilterCreationDialog.d.ts +1 -2
  85. package/dist/components/filter/FilterCreationDialog.js +4 -4
  86. package/dist/components/filter/FilterForm.d.ts +2 -3
  87. package/dist/components/filter/FilterForm.js +8 -8
  88. package/dist/components/filter/criteriaBased/CriteriaBasedFilterEditionDialog.d.ts +1 -2
  89. package/dist/components/filter/criteriaBased/CriteriaBasedFilterEditionDialog.js +9 -9
  90. package/dist/components/filter/criteriaBased/CriteriaBasedFilterForm.d.ts +1 -2
  91. package/dist/components/filter/criteriaBased/CriteriaBasedFilterForm.js +5 -5
  92. package/dist/components/filter/criteriaBased/CriteriaBasedForm.d.ts +1 -2
  93. package/dist/components/filter/criteriaBased/CriteriaBasedForm.js +4 -4
  94. package/dist/components/filter/criteriaBased/FilterFreeProperties.d.ts +2 -2
  95. package/dist/components/filter/criteriaBased/FilterFreeProperties.js +6 -6
  96. package/dist/components/filter/criteriaBased/FilterProperties.d.ts +1 -2
  97. package/dist/components/filter/criteriaBased/FilterProperties.js +7 -5
  98. package/dist/components/filter/criteriaBased/FilterProperty.d.ts +2 -2
  99. package/dist/components/filter/criteriaBased/FilterProperty.js +5 -5
  100. package/dist/components/filter/criteriaBased/criteriaBasedFilterUtils.js +1 -1
  101. package/dist/components/filter/criteriaBased/index.d.ts +13 -0
  102. package/dist/components/filter/criteriaBased/index.js +27 -0
  103. package/dist/components/filter/expert/ExpertFilterEditionDialog.d.ts +1 -2
  104. package/dist/components/filter/expert/ExpertFilterEditionDialog.js +8 -8
  105. package/dist/components/filter/expert/ExpertFilterForm.d.ts +1 -2
  106. package/dist/components/filter/expert/ExpertFilterForm.js +7 -7
  107. package/dist/components/filter/expert/expertFilterConstants.d.ts +1 -1
  108. package/dist/components/filter/expert/expertFilterConstants.js +3 -3
  109. package/dist/components/filter/expert/index.d.ts +11 -0
  110. package/dist/components/filter/expert/index.js +39 -0
  111. package/dist/components/filter/explicitNaming/ExplicitNamingFilterEditionDialog.d.ts +1 -2
  112. package/dist/components/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js +8 -8
  113. package/dist/components/filter/explicitNaming/ExplicitNamingFilterForm.d.ts +3 -3
  114. package/dist/components/filter/explicitNaming/ExplicitNamingFilterForm.js +7 -7
  115. package/dist/components/filter/explicitNaming/index.d.ts +8 -0
  116. package/dist/components/filter/explicitNaming/index.js +9 -0
  117. package/dist/components/filter/index.d.ts +13 -0
  118. package/dist/components/filter/index.js +86 -0
  119. package/dist/components/filter/utils/filterApi.js +1 -1
  120. package/dist/components/filter/utils/filterFormUtils.js +4 -4
  121. package/dist/components/filter/utils/index.d.ts +8 -0
  122. package/dist/components/filter/utils/index.js +9 -0
  123. package/dist/components/flatParameters/FlatParameters.d.ts +0 -1
  124. package/dist/components/flatParameters/FlatParameters.js +1 -2
  125. package/dist/components/flatParameters/index.d.ts +7 -4
  126. package/dist/components/flatParameters/index.js +3 -2
  127. package/dist/components/index.d.ts +22 -0
  128. package/dist/components/index.js +293 -0
  129. package/dist/components/inputs/SelectClearable.d.ts +2 -2
  130. package/dist/components/inputs/SelectClearable.js +2 -2
  131. package/dist/components/inputs/index.d.ts +9 -0
  132. package/dist/components/inputs/index.js +119 -0
  133. package/dist/components/inputs/reactHookForm/DirectoryItemsInput.d.ts +1 -2
  134. package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +8 -8
  135. package/dist/components/inputs/reactHookForm/RawReadOnlyInput.d.ts +1 -2
  136. package/dist/components/inputs/reactHookForm/RawReadOnlyInput.js +1 -1
  137. package/dist/components/inputs/reactHookForm/agGridTable/BottomRightButtons.d.ts +1 -2
  138. package/dist/components/inputs/reactHookForm/agGridTable/BottomRightButtons.js +4 -4
  139. package/dist/components/inputs/reactHookForm/agGridTable/CustomAgGridTable.d.ts +1 -2
  140. package/dist/components/inputs/reactHookForm/agGridTable/CustomAgGridTable.js +4 -4
  141. package/dist/components/inputs/reactHookForm/agGridTable/cellEditors/index.d.ts +7 -0
  142. package/dist/components/inputs/reactHookForm/agGridTable/cellEditors/index.js +4 -0
  143. package/dist/components/inputs/reactHookForm/agGridTable/cellEditors/numericEditor.d.ts +1 -2
  144. package/dist/components/inputs/reactHookForm/agGridTable/cellEditors/numericEditor.js +1 -1
  145. package/dist/components/inputs/reactHookForm/agGridTable/csvUploader/CsvUploader.d.ts +1 -2
  146. package/dist/components/inputs/reactHookForm/agGridTable/csvUploader/CsvUploader.js +3 -3
  147. package/dist/components/inputs/reactHookForm/agGridTable/csvUploader/index.d.ts +7 -0
  148. package/dist/components/inputs/reactHookForm/agGridTable/csvUploader/index.js +4 -0
  149. package/dist/components/inputs/reactHookForm/agGridTable/index.d.ts +10 -0
  150. package/dist/components/inputs/reactHookForm/agGridTable/index.js +11 -0
  151. package/dist/components/inputs/reactHookForm/autocompleteInputs/AutocompleteInput.d.ts +1 -2
  152. package/dist/components/inputs/reactHookForm/autocompleteInputs/AutocompleteInput.js +3 -3
  153. package/dist/components/inputs/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.d.ts +1 -2
  154. package/dist/components/inputs/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +2 -2
  155. package/dist/components/inputs/reactHookForm/autocompleteInputs/index.d.ts +8 -0
  156. package/dist/components/inputs/reactHookForm/autocompleteInputs/index.js +6 -0
  157. package/dist/components/inputs/reactHookForm/booleans/BooleanInput.d.ts +1 -2
  158. package/dist/components/inputs/reactHookForm/booleans/BooleanInput.js +1 -1
  159. package/dist/components/inputs/reactHookForm/booleans/CheckboxInput.d.ts +1 -2
  160. package/dist/components/inputs/reactHookForm/booleans/CheckboxInput.js +2 -2
  161. package/dist/components/inputs/reactHookForm/booleans/RadioInput.d.ts +2 -2
  162. package/dist/components/inputs/reactHookForm/booleans/RadioInput.js +2 -2
  163. package/dist/components/inputs/reactHookForm/booleans/SwitchInput.d.ts +1 -2
  164. package/dist/components/inputs/reactHookForm/booleans/SwitchInput.js +2 -2
  165. package/dist/components/inputs/reactHookForm/booleans/index.d.ts +10 -0
  166. package/dist/components/inputs/reactHookForm/booleans/index.js +10 -0
  167. package/dist/components/inputs/reactHookForm/errorManagement/ErrorInput.d.ts +1 -2
  168. package/dist/components/inputs/reactHookForm/errorManagement/ErrorInput.js +1 -1
  169. package/dist/components/inputs/reactHookForm/errorManagement/FieldErrorAlert.d.ts +1 -2
  170. package/dist/components/inputs/reactHookForm/errorManagement/FieldErrorAlert.js +1 -1
  171. package/dist/components/inputs/reactHookForm/errorManagement/MidFormError.d.ts +1 -2
  172. package/dist/components/inputs/reactHookForm/errorManagement/MidFormError.js +1 -1
  173. package/dist/components/inputs/reactHookForm/errorManagement/index.d.ts +9 -0
  174. package/dist/components/inputs/reactHookForm/errorManagement/index.js +8 -0
  175. package/dist/components/inputs/reactHookForm/index.d.ts +17 -0
  176. package/dist/components/inputs/reactHookForm/index.js +85 -0
  177. package/dist/components/inputs/reactHookForm/numbers/FloatInput.d.ts +1 -2
  178. package/dist/components/inputs/reactHookForm/numbers/FloatInput.js +2 -2
  179. package/dist/components/inputs/reactHookForm/numbers/IntegerInput.d.ts +1 -2
  180. package/dist/components/inputs/reactHookForm/numbers/IntegerInput.js +2 -2
  181. package/dist/components/inputs/reactHookForm/numbers/RangeInput.d.ts +2 -2
  182. package/dist/components/inputs/reactHookForm/numbers/RangeInput.js +4 -4
  183. package/dist/components/inputs/reactHookForm/numbers/SliderInput.d.ts +1 -2
  184. package/dist/components/inputs/reactHookForm/numbers/SliderInput.js +1 -1
  185. package/dist/components/inputs/reactHookForm/numbers/index.d.ts +11 -0
  186. package/dist/components/inputs/reactHookForm/numbers/index.js +17 -0
  187. package/dist/components/inputs/reactHookForm/provider/CustomFormProvider.d.ts +2 -2
  188. package/dist/components/inputs/reactHookForm/provider/CustomFormProvider.js +1 -1
  189. package/dist/components/inputs/reactHookForm/provider/index.d.ts +8 -0
  190. package/dist/components/inputs/reactHookForm/provider/index.js +7 -0
  191. package/dist/components/inputs/reactHookForm/provider/useCustomFormContext.d.ts +1 -2
  192. package/dist/components/inputs/reactHookForm/provider/useCustomFormContext.js +1 -1
  193. package/dist/components/inputs/reactHookForm/selectInputs/CountriesInput.d.ts +1 -2
  194. package/dist/components/inputs/reactHookForm/selectInputs/CountriesInput.js +3 -3
  195. package/dist/components/inputs/reactHookForm/selectInputs/InputWithPopupConfirmation.d.ts +1 -2
  196. package/dist/components/inputs/reactHookForm/selectInputs/InputWithPopupConfirmation.js +2 -2
  197. package/dist/components/inputs/reactHookForm/selectInputs/MuiSelectInput.d.ts +1 -2
  198. package/dist/components/inputs/reactHookForm/selectInputs/MuiSelectInput.js +1 -1
  199. package/dist/components/inputs/reactHookForm/selectInputs/SelectInput.d.ts +1 -2
  200. package/dist/components/inputs/reactHookForm/selectInputs/SelectInput.js +2 -2
  201. package/dist/components/inputs/reactHookForm/selectInputs/index.d.ts +10 -0
  202. package/dist/components/inputs/reactHookForm/selectInputs/index.js +10 -0
  203. package/dist/components/inputs/reactHookForm/text/DescriptionField.d.ts +1 -2
  204. package/dist/components/inputs/reactHookForm/text/DescriptionField.js +3 -3
  205. package/dist/components/inputs/reactHookForm/text/ExpandingTextField.d.ts +1 -2
  206. package/dist/components/inputs/reactHookForm/text/ExpandingTextField.js +3 -3
  207. package/dist/components/inputs/reactHookForm/text/TextInput.d.ts +1 -2
  208. package/dist/components/inputs/reactHookForm/text/TextInput.js +4 -4
  209. package/dist/components/inputs/reactHookForm/text/UniqueNameInput.d.ts +1 -2
  210. package/dist/components/inputs/reactHookForm/text/UniqueNameInput.js +3 -3
  211. package/dist/components/inputs/reactHookForm/text/index.d.ts +10 -0
  212. package/dist/components/inputs/reactHookForm/text/index.js +10 -0
  213. package/dist/components/inputs/reactHookForm/utils/CancelButton.d.ts +1 -2
  214. package/dist/components/inputs/reactHookForm/utils/CancelButton.js +1 -1
  215. package/dist/components/inputs/reactHookForm/utils/FieldLabel.d.ts +1 -2
  216. package/dist/components/inputs/reactHookForm/utils/FieldLabel.js +1 -1
  217. package/dist/components/inputs/reactHookForm/utils/SubmitButton.d.ts +1 -2
  218. package/dist/components/inputs/reactHookForm/utils/SubmitButton.js +1 -1
  219. package/dist/components/inputs/reactHookForm/utils/TextFieldWithAdornment.d.ts +1 -2
  220. package/dist/components/inputs/reactHookForm/utils/TextFieldWithAdornment.js +1 -1
  221. package/dist/components/inputs/reactHookForm/utils/functions.d.ts +0 -1
  222. package/dist/components/inputs/reactHookForm/utils/functions.js +0 -4
  223. package/dist/components/inputs/reactHookForm/utils/index.d.ts +11 -0
  224. package/dist/components/inputs/reactHookForm/utils/index.js +17 -0
  225. package/dist/components/inputs/reactQueryBuilder/AddButton.d.ts +2 -2
  226. package/dist/components/inputs/reactQueryBuilder/AddButton.js +1 -1
  227. package/dist/components/inputs/reactQueryBuilder/AutocompleteWithFavorites.d.ts +2 -2
  228. package/dist/components/inputs/reactQueryBuilder/AutocompleteWithFavorites.js +1 -1
  229. package/dist/components/inputs/reactQueryBuilder/CombinatorSelector.d.ts +1 -2
  230. package/dist/components/inputs/reactQueryBuilder/CombinatorSelector.js +2 -2
  231. package/dist/components/inputs/reactQueryBuilder/CountryValueEditor.d.ts +1 -2
  232. package/dist/components/inputs/reactQueryBuilder/CountryValueEditor.js +5 -5
  233. package/dist/components/inputs/reactQueryBuilder/CustomReactQueryBuilder.d.ts +1 -2
  234. package/dist/components/inputs/reactQueryBuilder/CustomReactQueryBuilder.js +9 -9
  235. package/dist/components/inputs/reactQueryBuilder/ElementValueEditor.d.ts +2 -2
  236. package/dist/components/inputs/reactQueryBuilder/ElementValueEditor.js +3 -3
  237. package/dist/components/inputs/reactQueryBuilder/FieldSelector.d.ts +1 -2
  238. package/dist/components/inputs/reactQueryBuilder/FieldSelector.js +1 -1
  239. package/dist/components/inputs/reactQueryBuilder/PropertyValueEditor.d.ts +4 -3
  240. package/dist/components/inputs/reactQueryBuilder/PropertyValueEditor.js +4 -4
  241. package/dist/components/inputs/reactQueryBuilder/RemoveButton.d.ts +1 -2
  242. package/dist/components/inputs/reactQueryBuilder/RemoveButton.js +1 -1
  243. package/dist/components/inputs/reactQueryBuilder/TextValueEditor.d.ts +1 -2
  244. package/dist/components/inputs/reactQueryBuilder/TextValueEditor.js +3 -3
  245. package/dist/components/inputs/reactQueryBuilder/TranslatedValueEditor.d.ts +1 -2
  246. package/dist/components/inputs/reactQueryBuilder/TranslatedValueEditor.js +3 -3
  247. package/dist/components/inputs/reactQueryBuilder/ValueEditor.d.ts +1 -2
  248. package/dist/components/inputs/reactQueryBuilder/ValueEditor.js +8 -8
  249. package/dist/components/inputs/reactQueryBuilder/ValueSelector.d.ts +1 -2
  250. package/dist/components/inputs/reactQueryBuilder/ValueSelector.js +1 -1
  251. package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.d.ts +1 -2
  252. package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.js +2 -2
  253. package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.d.ts +2 -2
  254. package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +1 -1
  255. package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/index.d.ts +8 -0
  256. package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/index.js +6 -0
  257. package/dist/components/inputs/reactQueryBuilder/hooks/index.d.ts +8 -0
  258. package/dist/components/inputs/reactQueryBuilder/hooks/index.js +6 -0
  259. package/dist/components/inputs/reactQueryBuilder/hooks/useConvertValue.d.ts +1 -2
  260. package/dist/components/inputs/reactQueryBuilder/hooks/useConvertValue.js +1 -1
  261. package/dist/components/inputs/reactQueryBuilder/hooks/useValid.d.ts +1 -2
  262. package/dist/components/inputs/reactQueryBuilder/hooks/useValid.js +1 -1
  263. package/dist/components/inputs/reactQueryBuilder/index.d.ts +20 -0
  264. package/dist/components/inputs/reactQueryBuilder/index.js +34 -0
  265. package/dist/components/muiVirtualizedTable/ColumnHeader.d.ts +3 -3
  266. package/dist/components/muiVirtualizedTable/ColumnHeader.js +3 -3
  267. package/dist/components/muiVirtualizedTable/KeyedColumnsRowIndexer.js +1 -1
  268. package/dist/components/muiVirtualizedTable/MuiVirtualizedTable.d.ts +6 -20
  269. package/dist/components/muiVirtualizedTable/MuiVirtualizedTable.js +5 -5
  270. package/dist/components/muiVirtualizedTable/index.d.ts +2 -3
  271. package/dist/components/muiVirtualizedTable/index.js +8 -4
  272. package/dist/components/multipleSelectionDialog/MultipleSelectionDialog.d.ts +1 -2
  273. package/dist/components/multipleSelectionDialog/MultipleSelectionDialog.js +1 -1
  274. package/dist/components/multipleSelectionDialog/index.d.ts +7 -4
  275. package/dist/components/multipleSelectionDialog/index.js +2 -2
  276. package/dist/components/overflowableText/OverflowableText.d.ts +0 -1
  277. package/dist/components/overflowableText/OverflowableText.js +1 -2
  278. package/dist/components/overflowableText/index.d.ts +7 -4
  279. package/dist/components/overflowableText/index.js +1 -1
  280. package/dist/components/snackbarProvider/SnackbarProvider.d.ts +1 -2
  281. package/dist/components/snackbarProvider/SnackbarProvider.js +1 -1
  282. package/dist/components/snackbarProvider/index.d.ts +7 -3
  283. package/dist/components/snackbarProvider/index.js +2 -2
  284. package/dist/components/topBar/AboutDialog.d.ts +2 -2
  285. package/dist/components/topBar/AboutDialog.js +1 -1
  286. package/dist/components/topBar/GridLogo.d.ts +1 -2
  287. package/dist/components/topBar/GridLogo.js +2 -2
  288. package/dist/components/topBar/TopBar.d.ts +4 -9
  289. package/dist/components/topBar/TopBar.js +4 -13
  290. package/dist/components/topBar/index.d.ts +2 -3
  291. package/dist/components/topBar/index.js +6 -5
  292. package/dist/components/treeViewFinder/TreeViewFinder.d.ts +1 -2
  293. package/dist/components/treeViewFinder/TreeViewFinder.js +4 -4
  294. package/dist/components/treeViewFinder/index.d.ts +1 -2
  295. package/dist/components/treeViewFinder/index.js +2 -2
  296. package/dist/hooks/customStates/index.d.ts +8 -0
  297. package/dist/hooks/customStates/index.js +6 -0
  298. package/dist/hooks/customStates/useStateBoolean.d.ts +1 -2
  299. package/dist/hooks/customStates/useStateBoolean.js +1 -1
  300. package/dist/hooks/customStates/useStateNumber.d.ts +1 -2
  301. package/dist/hooks/customStates/useStateNumber.js +1 -1
  302. package/dist/hooks/index.d.ts +14 -0
  303. package/dist/hooks/index.js +22 -0
  304. package/dist/hooks/useConfidentialityWarning.d.ts +1 -2
  305. package/dist/hooks/useConfidentialityWarning.js +1 -1
  306. package/dist/hooks/useDebounce.d.ts +1 -2
  307. package/dist/hooks/useDebounce.js +1 -1
  308. package/dist/hooks/useIntlRef.d.ts +1 -2
  309. package/dist/hooks/useIntlRef.js +1 -1
  310. package/dist/hooks/useLocalizedCountries.js +1 -1
  311. package/dist/hooks/usePredefinedProperties.d.ts +3 -3
  312. package/dist/hooks/usePredefinedProperties.js +3 -3
  313. package/dist/hooks/usePrevious.d.ts +0 -1
  314. package/dist/hooks/usePrevious.js +0 -1
  315. package/dist/hooks/useSnackMessage.js +1 -1
  316. package/dist/index.d.ts +7 -181
  317. package/dist/index.js +357 -236
  318. package/dist/redux/index.d.ts +8 -0
  319. package/dist/redux/index.js +20 -0
  320. package/dist/services/appsMetadata.d.ts +2 -25
  321. package/dist/translations/en/cardErrorBoundaryEn.d.ts +1 -2
  322. package/dist/translations/en/cardErrorBoundaryEn.js +1 -1
  323. package/dist/translations/en/commonButtonEn.d.ts +1 -2
  324. package/dist/translations/en/commonButtonEn.js +1 -1
  325. package/dist/translations/en/csvEn.d.ts +1 -2
  326. package/dist/translations/en/csvEn.js +1 -1
  327. package/dist/translations/en/descriptionEn.d.ts +1 -2
  328. package/dist/translations/en/descriptionEn.js +1 -1
  329. package/dist/translations/en/directoryItemsInputEn.d.ts +1 -2
  330. package/dist/translations/en/directoryItemsInputEn.js +1 -1
  331. package/dist/translations/en/elementSearchEn.d.ts +1 -2
  332. package/dist/translations/en/elementSearchEn.js +1 -1
  333. package/dist/translations/en/equipmentSearchEn.d.ts +1 -2
  334. package/dist/translations/en/equipmentSearchEn.js +1 -1
  335. package/dist/translations/en/equipmentsEn.d.ts +1 -2
  336. package/dist/translations/en/equipmentsEn.js +1 -1
  337. package/dist/translations/en/filterEn.d.ts +1 -2
  338. package/dist/translations/en/filterEn.js +1 -1
  339. package/dist/translations/en/filterExpertEn.d.ts +1 -2
  340. package/dist/translations/en/filterExpertEn.js +1 -1
  341. package/dist/translations/en/flatParametersEn.d.ts +1 -2
  342. package/dist/translations/en/flatParametersEn.js +1 -1
  343. package/dist/translations/en/index.d.ts +24 -0
  344. package/dist/translations/en/index.js +38 -0
  345. package/dist/translations/en/inputsEn.d.ts +1 -2
  346. package/dist/translations/en/inputsEn.js +1 -1
  347. package/dist/translations/en/loginEn.d.ts +1 -2
  348. package/dist/translations/en/loginEn.js +1 -1
  349. package/dist/translations/en/multipleSelectionDialogEn.d.ts +1 -2
  350. package/dist/translations/en/multipleSelectionDialogEn.js +1 -1
  351. package/dist/translations/en/reportViewerEn.d.ts +1 -2
  352. package/dist/translations/en/reportViewerEn.js +1 -1
  353. package/dist/translations/en/tableEn.d.ts +1 -2
  354. package/dist/translations/en/tableEn.js +1 -1
  355. package/dist/translations/en/topBarEn.d.ts +1 -2
  356. package/dist/translations/en/topBarEn.js +1 -1
  357. package/dist/translations/en/treeviewFinderEn.d.ts +1 -2
  358. package/dist/translations/en/treeviewFinderEn.js +1 -1
  359. package/dist/translations/fr/cardErrorBoundaryFr.d.ts +1 -2
  360. package/dist/translations/fr/cardErrorBoundaryFr.js +1 -1
  361. package/dist/translations/fr/commonButtonFr.d.ts +1 -2
  362. package/dist/translations/fr/commonButtonFr.js +1 -1
  363. package/dist/translations/fr/csvFr.d.ts +1 -2
  364. package/dist/translations/fr/csvFr.js +1 -1
  365. package/dist/translations/fr/descriptionFr.d.ts +1 -2
  366. package/dist/translations/fr/descriptionFr.js +1 -1
  367. package/dist/translations/fr/directoryItemsInputFr.d.ts +1 -2
  368. package/dist/translations/fr/directoryItemsInputFr.js +1 -1
  369. package/dist/translations/fr/elementSearchFr.d.ts +1 -2
  370. package/dist/translations/fr/elementSearchFr.js +1 -1
  371. package/dist/translations/fr/equipmentSearchFr.d.ts +1 -2
  372. package/dist/translations/fr/equipmentSearchFr.js +1 -1
  373. package/dist/translations/fr/equipmentsFr.d.ts +1 -2
  374. package/dist/translations/fr/equipmentsFr.js +1 -1
  375. package/dist/translations/fr/filterExpertFr.d.ts +1 -2
  376. package/dist/translations/fr/filterExpertFr.js +1 -1
  377. package/dist/translations/fr/filterFr.d.ts +1 -2
  378. package/dist/translations/fr/filterFr.js +1 -1
  379. package/dist/translations/fr/flatParametersFr.d.ts +1 -2
  380. package/dist/translations/fr/flatParametersFr.js +1 -1
  381. package/dist/translations/fr/index.d.ts +24 -0
  382. package/dist/translations/fr/index.js +38 -0
  383. package/dist/translations/fr/inputsFr.d.ts +1 -2
  384. package/dist/translations/fr/inputsFr.js +1 -1
  385. package/dist/translations/fr/loginFr.d.ts +1 -2
  386. package/dist/translations/fr/loginFr.js +1 -1
  387. package/dist/translations/fr/multipleSelectionDialogFr.d.ts +1 -2
  388. package/dist/translations/fr/multipleSelectionDialogFr.js +1 -1
  389. package/dist/translations/fr/reportViewerFr.d.ts +1 -2
  390. package/dist/translations/fr/reportViewerFr.js +1 -1
  391. package/dist/translations/fr/tableFr.d.ts +1 -2
  392. package/dist/translations/fr/tableFr.js +1 -1
  393. package/dist/translations/fr/topBarFr.d.ts +1 -2
  394. package/dist/translations/fr/topBarFr.js +1 -1
  395. package/dist/translations/fr/treeviewFinderFr.d.ts +1 -2
  396. package/dist/translations/fr/treeviewFinderFr.js +1 -1
  397. package/dist/utils/algos.d.ts +1 -2
  398. package/dist/utils/algos.js +1 -1
  399. package/dist/utils/constants/browserConstants.d.ts +11 -0
  400. package/dist/utils/constants/browserConstants.js +12 -0
  401. package/dist/utils/constants/fetchStatus.d.ts +1 -2
  402. package/dist/utils/constants/fetchStatus.js +1 -1
  403. package/dist/utils/constants/fieldConstants.d.ts +1 -2
  404. package/dist/utils/constants/fieldConstants.js +1 -1
  405. package/dist/utils/constants/index.d.ts +9 -0
  406. package/dist/utils/constants/index.js +12 -0
  407. package/dist/utils/index.d.ts +14 -0
  408. package/dist/utils/index.js +61 -0
  409. package/dist/utils/mapper/equipmentTypesForPredefinedPropertiesMapper.d.ts +2 -3
  410. package/dist/utils/mapper/equipmentTypesForPredefinedPropertiesMapper.js +2 -2
  411. package/dist/utils/mapper/getFileIcon.d.ts +4 -0
  412. package/dist/utils/mapper/{elementIcon.js → getFileIcon.js} +1 -1
  413. package/dist/utils/mapper/index.d.ts +8 -0
  414. package/dist/utils/mapper/index.js +6 -0
  415. package/dist/utils/types/equipmentType.js +1 -1
  416. package/dist/utils/types/index.d.ts +11 -0
  417. package/dist/utils/types/index.js +27 -0
  418. package/dist/utils/types/metadata.d.ts +19 -7
  419. package/dist/utils/types/types.d.ts +0 -5
  420. package/package.json +1 -1
  421. package/dist/utils/mapper/elementIcon.d.ts +0 -5
@@ -4,5 +4,4 @@ import { AutocompleteInputProps } from '../autocompleteInputs/AutocompleteInput'
4
4
  export interface SelectInputProps extends Omit<AutocompleteInputProps, 'outputTransform' | 'inputTransform' | 'readOnly' | 'getOptionLabel'> {
5
5
  options: Option[];
6
6
  }
7
- declare function SelectInput(props: SelectInputProps): import("react/jsx-runtime").JSX.Element;
8
- export default SelectInput;
7
+ export declare function SelectInput(props: SelectInputProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useIntl } from "react-intl";
3
- import AutocompleteInput from "../autocompleteInputs/AutocompleteInput.js";
3
+ import { AutocompleteInput } from "../autocompleteInputs/AutocompleteInput.js";
4
4
  function SelectInput(props) {
5
5
  const intl = useIntl();
6
6
  const { options } = props;
@@ -40,5 +40,5 @@ function SelectInput(props) {
40
40
  );
41
41
  }
42
42
  export {
43
- SelectInput as default
43
+ SelectInput
44
44
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2024, 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 * from './CountriesInput';
8
+ export * from './InputWithPopupConfirmation';
9
+ export * from './MuiSelectInput';
10
+ export * from './SelectInput';
@@ -0,0 +1,10 @@
1
+ import { CountriesInput } from "./CountriesInput.js";
2
+ import { InputWithPopupConfirmation } from "./InputWithPopupConfirmation.js";
3
+ import { MuiSelectInput } from "./MuiSelectInput.js";
4
+ import { SelectInput } from "./SelectInput.js";
5
+ export {
6
+ CountriesInput,
7
+ InputWithPopupConfirmation,
8
+ MuiSelectInput,
9
+ SelectInput
10
+ };
@@ -4,5 +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
- declare function DescriptionField(): import("react/jsx-runtime").JSX.Element;
8
- export default DescriptionField;
7
+ export declare function DescriptionField(): import("react/jsx-runtime").JSX.Element;
@@ -5,8 +5,8 @@ import { Box, Button } from "@mui/material";
5
5
  import AddIcon from "@mui/icons-material/Add";
6
6
  import DeleteIcon from "@mui/icons-material/Delete";
7
7
  import { useFormContext } from "react-hook-form";
8
- import FieldConstants from "../../../../utils/constants/fieldConstants.js";
9
- import ExpandingTextField from "./ExpandingTextField.js";
8
+ import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
9
+ import { ExpandingTextField } from "./ExpandingTextField.js";
10
10
  function DescriptionField() {
11
11
  const [isDescriptionFieldVisible, setIsDescriptionFieldVisible] = useState(false);
12
12
  const { setValue } = useFormContext();
@@ -44,5 +44,5 @@ function DescriptionField() {
44
44
  ] }) });
45
45
  }
46
46
  export {
47
- DescriptionField as default
47
+ DescriptionField
48
48
  };
@@ -10,5 +10,4 @@ export interface ExpandingTextFieldProps extends TextInputProps {
10
10
  label?: string;
11
11
  textFieldFormProps?: TextFieldProps;
12
12
  }
13
- declare function ExpandingTextField({ name, maxCharactersNumber, rows, minRows, sx, label, textFieldFormProps, ...otherTexFieldProps }: ExpandingTextFieldProps): import("react/jsx-runtime").JSX.Element;
14
- export default ExpandingTextField;
13
+ export declare function ExpandingTextField({ name, maxCharactersNumber, rows, minRows, sx, label, textFieldFormProps, ...otherTexFieldProps }: ExpandingTextFieldProps): import("react/jsx-runtime").JSX.Element;
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { Typography } from "@mui/material";
4
4
  import { useWatch } from "react-hook-form";
5
- import useCustomFormContext from "../provider/useCustomFormContext.js";
6
- import TextInput from "./TextInput.js";
5
+ import { useCustomFormContext } from "../provider/useCustomFormContext.js";
6
+ import { TextInput } from "./TextInput.js";
7
7
  function ExpandingTextField({
8
8
  name,
9
9
  maxCharactersNumber = 500,
@@ -59,5 +59,5 @@ function ExpandingTextField({
59
59
  return /* @__PURE__ */ jsx(TextInput, { name, label, formProps, ...otherTexFieldProps });
60
60
  }
61
61
  export {
62
- ExpandingTextField as default
62
+ ExpandingTextField
63
63
  };
@@ -20,9 +20,8 @@ export interface TextInputProps {
20
20
  clearable?: boolean;
21
21
  formProps?: Omit<TextFieldWithAdornmentProps | TextFieldProps, 'value' | 'onChange' | 'inputRef' | 'inputProps' | 'InputProps'>;
22
22
  }
23
- declare function TextInput({ name, label, labelValues, // this prop is used to add a value to label. this value is displayed without being translated
23
+ export declare function TextInput({ name, label, labelValues, // this prop is used to add a value to label. this value is displayed without being translated
24
24
  id, adornment, customAdornment, outputTransform, // transform materialUi input value before sending it to react hook form, mostly used to deal with number fields
25
25
  inputTransform, // transform react hook form value before sending it to materialUi input, mostly used to deal with number fields
26
26
  acceptValue, // used to check user entry before committing the input change, used mostly to prevent user from typing a character in number field
27
27
  previousValue, clearable, formProps, }: TextInputProps): import("react/jsx-runtime").JSX.Element;
28
- export default TextInput;
@@ -2,10 +2,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { InputAdornment, IconButton, TextField } from "@mui/material";
3
3
  import { Clear } from "@mui/icons-material";
4
4
  import { useController } from "react-hook-form";
5
- import TextFieldWithAdornment from "../utils/TextFieldWithAdornment.js";
6
- import FieldLabel from "../utils/FieldLabel.js";
5
+ import { TextFieldWithAdornment } from "../utils/TextFieldWithAdornment.js";
6
+ import { FieldLabel } from "../utils/FieldLabel.js";
7
7
  import { isFieldRequired, genHelperPreviousValue, genHelperError, identity } from "../utils/functions.js";
8
- import useCustomFormContext from "../provider/useCustomFormContext.js";
8
+ import { useCustomFormContext } from "../provider/useCustomFormContext.js";
9
9
  function TextInput({
10
10
  name,
11
11
  label,
@@ -76,5 +76,5 @@ function TextInput({
76
76
  );
77
77
  }
78
78
  export {
79
- TextInput as default
79
+ TextInput
80
80
  };
@@ -15,5 +15,4 @@ export interface UniqueNameInputProps {
15
15
  /**
16
16
  * Input component that constantly check if the field's value is available or not
17
17
  */
18
- declare function UniqueNameInput({ name, label, elementType, autoFocus, onManualChangeCallback, formProps, activeDirectory, elementExists, }: Readonly<UniqueNameInputProps>): import("react/jsx-runtime").JSX.Element;
19
- export default UniqueNameInput;
18
+ export declare function UniqueNameInput({ name, label, elementType, autoFocus, onManualChangeCallback, formProps, activeDirectory, elementExists, }: Readonly<UniqueNameInputProps>): import("react/jsx-runtime").JSX.Element;
@@ -6,8 +6,8 @@ import CheckIcon from "@mui/icons-material/Check";
6
6
  import { useController, useFormContext } from "react-hook-form";
7
7
  import CircularProgress from "@mui/material/CircularProgress";
8
8
  import TextField from "@mui/material/TextField";
9
- import useDebounce from "../../../../hooks/useDebounce.js";
10
- import FieldConstants from "../../../../utils/constants/fieldConstants.js";
9
+ import { useDebounce } from "../../../../hooks/useDebounce.js";
10
+ import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
11
11
  function UniqueNameInput({
12
12
  name,
13
13
  label,
@@ -117,5 +117,5 @@ function UniqueNameInput({
117
117
  );
118
118
  }
119
119
  export {
120
- UniqueNameInput as default
120
+ UniqueNameInput
121
121
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2024, 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 * from './DescriptionField';
8
+ export * from './ExpandingTextField';
9
+ export * from './TextInput';
10
+ export * from './UniqueNameInput';
@@ -0,0 +1,10 @@
1
+ import { DescriptionField } from "./DescriptionField.js";
2
+ import { ExpandingTextField } from "./ExpandingTextField.js";
3
+ import { TextInput } from "./TextInput.js";
4
+ import { UniqueNameInput } from "./UniqueNameInput.js";
5
+ export {
6
+ DescriptionField,
7
+ ExpandingTextField,
8
+ TextInput,
9
+ UniqueNameInput
10
+ };
@@ -4,7 +4,6 @@
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
- declare function CancelButton({ ...inProps }: {
7
+ export declare function CancelButton({ ...inProps }: {
8
8
  [x: string]: any;
9
9
  }): import("react/jsx-runtime").JSX.Element;
10
- export default CancelButton;
@@ -7,5 +7,5 @@ function CancelButton({ ...inProps }) {
7
7
  return /* @__PURE__ */ jsx(Button, { ...props, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "cancel" }) });
8
8
  }
9
9
  export {
10
- CancelButton as default
10
+ CancelButton
11
11
  };
@@ -9,5 +9,4 @@ export type FieldLabelProps = {
9
9
  optional?: boolean;
10
10
  values?: any;
11
11
  };
12
- declare function FieldLabel({ label, optional, values }: FieldLabelProps): import("react/jsx-runtime").JSX.Element;
13
- export default FieldLabel;
12
+ export declare function FieldLabel({ label, optional, values }: FieldLabelProps): import("react/jsx-runtime").JSX.Element;
@@ -7,5 +7,5 @@ function FieldLabel({ label, optional = false, values = void 0 }) {
7
7
  ] });
8
8
  }
9
9
  export {
10
- FieldLabel as default
10
+ FieldLabel
11
11
  };
@@ -4,7 +4,6 @@
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
- declare function SubmitButton({ ...buttonProps }: {
7
+ export declare function SubmitButton({ ...buttonProps }: {
8
8
  [x: string]: any;
9
9
  }): import("react/jsx-runtime").JSX.Element;
10
- export default SubmitButton;
@@ -7,5 +7,5 @@ function SubmitButton({ ...buttonProps }) {
7
7
  return /* @__PURE__ */ jsx(Button, { ...buttonProps, disabled: !isDirty || ((buttonProps == null ? void 0 : buttonProps.disabled) ?? false), children: /* @__PURE__ */ jsx(FormattedMessage, { id: "validate" }) });
8
8
  }
9
9
  export {
10
- SubmitButton as default
10
+ SubmitButton
11
11
  };
@@ -7,5 +7,4 @@ export type TextFieldWithAdornmentProps = TextFieldProps & {
7
7
  adornmentText: string;
8
8
  handleClearValue?: () => void;
9
9
  };
10
- declare function TextFieldWithAdornment(props: TextFieldWithAdornmentProps): import("react/jsx-runtime").JSX.Element;
11
- export default TextFieldWithAdornment;
10
+ export declare function TextFieldWithAdornment(props: TextFieldWithAdornmentProps): import("react/jsx-runtime").JSX.Element;
@@ -58,5 +58,5 @@ function TextFieldWithAdornment(props) {
58
58
  );
59
59
  }
60
60
  export {
61
- TextFieldWithAdornment as default
61
+ TextFieldWithAdornment
62
62
  };
@@ -14,5 +14,4 @@ export declare function genHelperError(...errors: any[]): {
14
14
  export declare function identity(x: any): any;
15
15
  export declare const isFieldRequired: (fieldName: string, schema: any, values: unknown) => boolean;
16
16
  export declare const gridItem: (field: string | ReactElement, size?: number) => import("react/jsx-runtime").JSX.Element;
17
- export declare const isFloatNumber: (val: string) => boolean;
18
17
  export declare const toFloatOrNullValue: (value: string) => number | "-" | null;
@@ -31,9 +31,6 @@ const isFieldRequired = (fieldName, schema, values) => {
31
31
  const gridItem = (field, size = 6) => {
32
32
  return /* @__PURE__ */ jsx(Grid, { item: true, xs: size, alignItems: "start", children: field });
33
33
  };
34
- const isFloatNumber = (val) => {
35
- return /^-?[0-9]*[.,]?[0-9]*$/.test(val);
36
- };
37
34
  const toFloatOrNullValue = (value) => {
38
35
  if (value === "-") {
39
36
  return value;
@@ -50,6 +47,5 @@ export {
50
47
  gridItem,
51
48
  identity,
52
49
  isFieldRequired,
53
- isFloatNumber,
54
50
  toFloatOrNullValue
55
51
  };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) 2024, 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 * from './CancelButton';
8
+ export * from './FieldLabel';
9
+ export * from './SubmitButton';
10
+ export * from './TextFieldWithAdornment';
11
+ export * from './functions';
@@ -0,0 +1,17 @@
1
+ import { CancelButton } from "./CancelButton.js";
2
+ import { FieldLabel } from "./FieldLabel.js";
3
+ import { SubmitButton } from "./SubmitButton.js";
4
+ import { TextFieldWithAdornment } from "./TextFieldWithAdornment.js";
5
+ import { genHelperError, genHelperPreviousValue, gridItem, identity, isFieldRequired, toFloatOrNullValue } from "./functions.js";
6
+ export {
7
+ CancelButton,
8
+ FieldLabel,
9
+ SubmitButton,
10
+ TextFieldWithAdornment,
11
+ genHelperError,
12
+ genHelperPreviousValue,
13
+ gridItem,
14
+ identity,
15
+ isFieldRequired,
16
+ toFloatOrNullValue
17
+ };
@@ -3,5 +3,5 @@ import { ActionWithRulesAndAddersProps } from 'react-querybuilder';
3
3
  interface ActionWithRulesAndAddersWithLabelProps extends ActionWithRulesAndAddersProps {
4
4
  label: string;
5
5
  }
6
- declare function AddButton(props: ActionWithRulesAndAddersWithLabelProps): import("react/jsx-runtime").JSX.Element;
7
- export default AddButton;
6
+ export declare function AddButton(props: ActionWithRulesAndAddersWithLabelProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -7,5 +7,5 @@ function AddButton(props) {
7
7
  return /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(Button, { startIcon: /* @__PURE__ */ jsx(AddIcon, {}), onClick: handleOnClick, size: "small", className: "add-button", children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }) });
8
8
  }
9
9
  export {
10
- AddButton as default
10
+ AddButton
11
11
  };
@@ -8,5 +8,5 @@ interface AutocompleteWithFavoritesProps<Value> extends Omit<AutocompleteProps<V
8
8
  * Autocomplete component which allows to have a few "favorite" options always displayed
9
9
  * at the beginning of the selector and separated from the others options
10
10
  */
11
- declare function AutocompleteWithFavorites<Value>({ favorites, valid, options, value, ...otherProps }: AutocompleteWithFavoritesProps<Value>): import("react/jsx-runtime").JSX.Element;
12
- export default AutocompleteWithFavorites;
11
+ export declare function AutocompleteWithFavorites<Value>({ favorites, valid, options, value, ...otherProps }: AutocompleteWithFavoritesProps<Value>): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -40,5 +40,5 @@ function AutocompleteWithFavorites({
40
40
  );
41
41
  }
42
42
  export {
43
- AutocompleteWithFavorites as default
43
+ AutocompleteWithFavorites
44
44
  };
@@ -1,4 +1,3 @@
1
1
  import { CombinatorSelectorProps } from 'react-querybuilder';
2
2
 
3
- declare function CombinatorSelector(props: CombinatorSelectorProps): import("react/jsx-runtime").JSX.Element;
4
- export default CombinatorSelector;
3
+ export declare function CombinatorSelector(props: CombinatorSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState, useCallback } from "react";
3
3
  import { MaterialValueSelector } from "@react-querybuilder/material";
4
- import PopupConfirmationDialog from "../../dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
4
+ import { PopupConfirmationDialog } from "../../dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
5
5
  function CombinatorSelector(props) {
6
6
  const { value, handleOnChange } = props;
7
7
  const [tempCombinator, setTempCombinator] = useState(value);
@@ -35,5 +35,5 @@ function CombinatorSelector(props) {
35
35
  ] });
36
36
  }
37
37
  export {
38
- CombinatorSelector as default
38
+ CombinatorSelector
39
39
  };
@@ -1,4 +1,3 @@
1
1
  import { ValueEditorProps } from 'react-querybuilder';
2
2
 
3
- declare function CountryValueEditor(props: ValueEditorProps): import("react/jsx-runtime").JSX.Element;
4
- export default CountryValueEditor;
3
+ export declare function CountryValueEditor(props: ValueEditorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,11 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { useLocalizedCountries } from "../../../hooks/useLocalizedCountries.js";
4
- import useCustomFormContext from "../reactHookForm/provider/useCustomFormContext.js";
4
+ import { useCustomFormContext } from "../reactHookForm/provider/useCustomFormContext.js";
5
5
  import { fetchFavoriteAndDefaultCountries } from "../../../services/appsMetadata.js";
6
- import AutocompleteWithFavorites from "./AutocompleteWithFavorites.js";
7
- import useConvertValue from "./hooks/useConvertValue.js";
8
- import useValid from "./hooks/useValid.js";
6
+ import { AutocompleteWithFavorites } from "./AutocompleteWithFavorites.js";
7
+ import { useConvertValue } from "./hooks/useConvertValue.js";
8
+ import { useValid } from "./hooks/useValid.js";
9
9
  function CountryValueEditor(props) {
10
10
  const { value, handleOnChange } = props;
11
11
  const { language } = useCustomFormContext();
@@ -41,5 +41,5 @@ function CountryValueEditor(props) {
41
41
  );
42
42
  }
43
43
  export {
44
- CountryValueEditor as default
44
+ CountryValueEditor
45
45
  };
@@ -4,5 +4,4 @@ export interface CustomReactQueryBuilderProps {
4
4
  name: string;
5
5
  fields: Field[];
6
6
  }
7
- declare function CustomReactQueryBuilder(props: Readonly<CustomReactQueryBuilderProps>): import("react/jsx-runtime").JSX.Element;
8
- export default CustomReactQueryBuilder;
7
+ export declare function CustomReactQueryBuilder(props: Readonly<CustomReactQueryBuilderProps>): import("react/jsx-runtime").JSX.Element;
@@ -8,16 +8,16 @@ import { formatQuery, QueryBuilder } from "react-querybuilder";
8
8
  import { useIntl } from "react-intl";
9
9
  import { useFormContext } from "react-hook-form";
10
10
  import { useCallback, useMemo } from "react";
11
- import CombinatorSelector from "./CombinatorSelector.js";
12
- import AddButton from "./AddButton.js";
13
- import ValueEditor from "./ValueEditor.js";
14
- import ValueSelector from "./ValueSelector.js";
11
+ import { CombinatorSelector } from "./CombinatorSelector.js";
12
+ import { AddButton } from "./AddButton.js";
13
+ import { ValueEditor } from "./ValueEditor.js";
14
+ import { ValueSelector } from "./ValueSelector.js";
15
15
  import { COMBINATOR_OPTIONS } from "../../filter/expert/expertFilterConstants.js";
16
- import ErrorInput from "../reactHookForm/errorManagement/ErrorInput.js";
17
- import FieldErrorAlert from "../reactHookForm/errorManagement/FieldErrorAlert.js";
16
+ import { ErrorInput } from "../reactHookForm/errorManagement/ErrorInput.js";
17
+ import { FieldErrorAlert } from "../reactHookForm/errorManagement/FieldErrorAlert.js";
18
18
  import { countRules, getOperators, queryValidator } from "../../filter/expert/expertFilterUtils.js";
19
- import RemoveButton from "./RemoveButton.js";
20
- import FieldSelector from "./FieldSelector.js";
19
+ import { RemoveButton } from "./RemoveButton.js";
20
+ import { FieldSelector } from "./FieldSelector.js";
21
21
  function RuleAddButton(props) {
22
22
  return /* @__PURE__ */ jsx(AddButton, { ...props, label: "rule" });
23
23
  }
@@ -85,5 +85,5 @@ function CustomReactQueryBuilder(props) {
85
85
  ] });
86
86
  }
87
87
  export {
88
- CustomReactQueryBuilder as default
88
+ CustomReactQueryBuilder
89
89
  };
@@ -14,5 +14,5 @@ interface ElementValueEditorProps {
14
14
  itemFilter?: any;
15
15
  defaultValue?: any;
16
16
  }
17
- declare function ElementValueEditor(props: ElementValueEditorProps): import("react/jsx-runtime").JSX.Element;
18
- export default ElementValueEditor;
17
+ export declare function ElementValueEditor(props: ElementValueEditorProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -1,9 +1,9 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { validate } from "uuid";
3
3
  import { useEffect } from "react";
4
- import useCustomFormContext from "../reactHookForm/provider/useCustomFormContext.js";
4
+ import { useCustomFormContext } from "../reactHookForm/provider/useCustomFormContext.js";
5
5
  import { fetchElementsInfos } from "../../../services/explore.js";
6
- import DirectoryItemsInput from "../reactHookForm/DirectoryItemsInput.js";
6
+ import { DirectoryItemsInput } from "../reactHookForm/DirectoryItemsInput.js";
7
7
  function ElementValueEditor(props) {
8
8
  const { defaultValue, name, elementType, equipmentTypes, titleId, hideErrorMessage, itemFilter, onChange } = props;
9
9
  const { setValue } = useCustomFormContext();
@@ -39,5 +39,5 @@ function ElementValueEditor(props) {
39
39
  );
40
40
  }
41
41
  export {
42
- ElementValueEditor as default
42
+ ElementValueEditor
43
43
  };
@@ -1,4 +1,3 @@
1
1
  import { ValueSelectorProps } from 'react-querybuilder';
2
2
 
3
- declare function FieldSelector({ options, className, value, disabled, handleOnChange }: Readonly<ValueSelectorProps>): import("react/jsx-runtime").JSX.Element;
4
- export default FieldSelector;
3
+ export declare function FieldSelector({ options, className, value, disabled, handleOnChange }: Readonly<ValueSelectorProps>): import("react/jsx-runtime").JSX.Element;
@@ -24,5 +24,5 @@ function FieldSelector({ options, className, value, disabled, handleOnChange })
24
24
  );
25
25
  }
26
26
  export {
27
- FieldSelector as default
27
+ FieldSelector
28
28
  };
@@ -1,8 +1,9 @@
1
+ import { EquipmentType } from '../../../utils';
1
2
  import { ValueEditorProps } from 'react-querybuilder';
2
3
 
3
4
  interface ExpertFilterPropertyProps {
4
- equipmentType: string;
5
+ equipmentType: EquipmentType;
5
6
  valueEditorProps: ValueEditorProps;
6
7
  }
7
- declare function PropertyValueEditor(props: ExpertFilterPropertyProps): import("react/jsx-runtime").JSX.Element;
8
- export default PropertyValueEditor;
8
+ export declare function PropertyValueEditor(props: ExpertFilterPropertyProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -3,10 +3,10 @@ import { useEffect, useMemo, useCallback } from "react";
3
3
  import Grid from "@mui/material/Grid";
4
4
  import { Autocomplete, TextField, Select, MenuItem } from "@mui/material";
5
5
  import { useIntl } from "react-intl";
6
- import useValid from "./hooks/useValid.js";
6
+ import { useValid } from "./hooks/useValid.js";
7
7
  import { OPERATOR_OPTIONS } from "../../filter/expert/expertFilterConstants.js";
8
- import FieldConstants from "../../../utils/constants/fieldConstants.js";
9
- import usePredefinedProperties from "../../../hooks/usePredefinedProperties.js";
8
+ import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
9
+ import { usePredefinedProperties } from "../../../hooks/usePredefinedProperties.js";
10
10
  const PROPERTY_VALUE_OPERATORS = [OPERATOR_OPTIONS.IN];
11
11
  function PropertyValueEditor(props) {
12
12
  const { equipmentType, valueEditorProps } = props;
@@ -91,5 +91,5 @@ function PropertyValueEditor(props) {
91
91
  ] });
92
92
  }
93
93
  export {
94
- PropertyValueEditor as default
94
+ PropertyValueEditor
95
95
  };
@@ -1,4 +1,3 @@
1
1
  import { ActionWithRulesProps } from 'react-querybuilder';
2
2
 
3
- declare function RemoveButton(props: ActionWithRulesProps): import("react/jsx-runtime").JSX.Element;
4
- export default RemoveButton;
3
+ export declare function RemoveButton(props: ActionWithRulesProps): import("react/jsx-runtime").JSX.Element;
@@ -16,5 +16,5 @@ function RemoveButton(props) {
16
16
  return /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: () => handleDelete(), className, children: !isLastRuleOrGroup && /* @__PURE__ */ jsx(DeleteIcon, {}) });
17
17
  }
18
18
  export {
19
- RemoveButton as default
19
+ RemoveButton
20
20
  };
@@ -1,4 +1,3 @@
1
1
  import { ValueEditorProps } from 'react-querybuilder';
2
2
 
3
- declare function TextValueEditor(props: ValueEditorProps): import("react/jsx-runtime").JSX.Element;
4
- export default TextValueEditor;
3
+ export declare function TextValueEditor(props: ValueEditorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { MaterialValueEditor } from "@react-querybuilder/material";
3
3
  import { Autocomplete, TextField } from "@mui/material";
4
- import useConvertValue from "./hooks/useConvertValue.js";
5
- import useValid from "./hooks/useValid.js";
4
+ import { useConvertValue } from "./hooks/useConvertValue.js";
5
+ import { useValid } from "./hooks/useValid.js";
6
6
  function TextValueEditor(props) {
7
7
  useConvertValue(props);
8
8
  const valid = useValid(props);
@@ -31,5 +31,5 @@ function TextValueEditor(props) {
31
31
  );
32
32
  }
33
33
  export {
34
- TextValueEditor as default
34
+ TextValueEditor
35
35
  };
@@ -1,4 +1,3 @@
1
1
  import { ValueEditorProps } from 'react-querybuilder';
2
2
 
3
- declare function TranslatedValueEditor(props: ValueEditorProps): import("react/jsx-runtime").JSX.Element;
4
- export default TranslatedValueEditor;
3
+ export declare function TranslatedValueEditor(props: ValueEditorProps): import("react/jsx-runtime").JSX.Element;
@@ -3,8 +3,8 @@ import { useMemo } from "react";
3
3
  import { MaterialValueEditor } from "@react-querybuilder/material";
4
4
  import { useIntl } from "react-intl";
5
5
  import { Autocomplete, TextField } from "@mui/material";
6
- import useConvertValue from "./hooks/useConvertValue.js";
7
- import useValid from "./hooks/useValid.js";
6
+ import { useConvertValue } from "./hooks/useConvertValue.js";
7
+ import { useValid } from "./hooks/useValid.js";
8
8
  function TranslatedValueEditor(props) {
9
9
  const intl = useIntl();
10
10
  const { values, value, handleOnChange } = props;
@@ -49,5 +49,5 @@ function TranslatedValueEditor(props) {
49
49
  );
50
50
  }
51
51
  export {
52
- TranslatedValueEditor as default
52
+ TranslatedValueEditor
53
53
  };
@@ -1,4 +1,3 @@
1
1
  import { ValueEditorProps } from 'react-querybuilder';
2
2
 
3
- declare function ValueEditor(props: ValueEditorProps): import("react/jsx-runtime").JSX.Element | null;
4
- export default ValueEditor;
3
+ export declare function ValueEditor(props: ValueEditorProps): import("react/jsx-runtime").JSX.Element | null;