@gridsuite/commons-ui 0.66.0 → 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.
- package/dist/components/authentication/AuthenticationRouter.d.ts +1 -2
- package/dist/components/authentication/AuthenticationRouter.js +5 -5
- package/dist/components/authentication/AuthenticationRouterErrorDisplay.js +1 -1
- package/dist/components/authentication/Login.d.ts +1 -2
- package/dist/components/authentication/Login.js +1 -1
- package/dist/components/authentication/Logout.d.ts +1 -2
- package/dist/components/authentication/Logout.js +1 -1
- package/dist/components/authentication/SignInCallbackHandler.d.ts +1 -2
- package/dist/components/authentication/SignInCallbackHandler.js +1 -1
- package/dist/components/authentication/SilentRenewCallbackHandler.d.ts +1 -2
- package/dist/components/authentication/SilentRenewCallbackHandler.js +5 -2
- package/dist/components/authentication/index.d.ts +5 -5
- package/dist/components/authentication/index.js +12 -12
- package/dist/components/cardErrorBoundary/CardErrorBoundary.d.ts +2 -2
- package/dist/components/cardErrorBoundary/CardErrorBoundary.js +1 -1
- package/dist/components/cardErrorBoundary/index.d.ts +7 -3
- package/dist/components/cardErrorBoundary/index.js +2 -2
- package/dist/components/checkBoxList/CheckBoxList.d.ts +0 -1
- package/dist/components/checkBoxList/CheckBoxList.js +1 -2
- package/dist/components/checkBoxList/CheckBoxListItem.d.ts +0 -1
- package/dist/components/checkBoxList/CheckBoxListItem.js +1 -2
- package/dist/components/checkBoxList/CheckBoxListItems.d.ts +0 -1
- package/dist/components/checkBoxList/CheckBoxListItems.js +2 -3
- package/dist/components/checkBoxList/ClickableCheckBoxItem.d.ts +0 -1
- package/dist/components/checkBoxList/ClickableCheckBoxItem.js +1 -2
- package/dist/components/checkBoxList/ClickableRowItem.d.ts +0 -1
- package/dist/components/checkBoxList/ClickableRowItem.js +1 -2
- package/dist/components/checkBoxList/DraggableCheckBoxListItem.d.ts +0 -1
- package/dist/components/checkBoxList/DraggableCheckBoxListItem.js +1 -2
- package/dist/components/checkBoxList/DraggableClickableCheckBoxItem.d.ts +0 -1
- package/dist/components/checkBoxList/DraggableClickableCheckBoxItem.js +2 -3
- package/dist/components/checkBoxList/DraggableClickableRowItem.d.ts +0 -1
- package/dist/components/checkBoxList/DraggableClickableRowItem.js +2 -3
- package/dist/components/checkBoxList/index.d.ts +7 -3
- package/dist/components/checkBoxList/index.js +1 -1
- package/dist/components/customAGGrid/customAggrid.d.ts +2 -2
- package/dist/components/customAGGrid/customAggrid.js +1 -1
- package/dist/components/customAGGrid/index.d.ts +8 -0
- package/dist/components/customAGGrid/index.js +7 -0
- package/dist/components/dialogs/customMuiDialog/CustomMuiDialog.d.ts +1 -2
- package/dist/components/dialogs/customMuiDialog/CustomMuiDialog.js +7 -7
- package/dist/components/dialogs/descriptionModificationDialog/DescriptionModificationDialog.d.ts +1 -2
- package/dist/components/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +4 -4
- package/dist/components/dialogs/descriptionModificationDialog/index.d.ts +7 -0
- package/dist/components/dialogs/descriptionModificationDialog/index.js +4 -0
- package/dist/components/dialogs/index.d.ts +10 -0
- package/dist/components/dialogs/index.js +10 -0
- package/dist/components/dialogs/modifyElementSelection/ModifyElementSelection.d.ts +1 -2
- package/dist/components/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
- package/dist/components/dialogs/modifyElementSelection/index.d.ts +7 -0
- package/dist/components/dialogs/modifyElementSelection/index.js +4 -0
- package/dist/components/dialogs/popupConfirmationDialog/PopupConfirmationDialog.d.ts +1 -2
- package/dist/components/dialogs/popupConfirmationDialog/PopupConfirmationDialog.js +2 -2
- package/dist/components/dialogs/popupConfirmationDialog/index.d.ts +7 -0
- package/dist/components/dialogs/popupConfirmationDialog/index.js +4 -0
- package/dist/components/directoryItemSelector/DirectoryItemSelector.d.ts +1 -2
- package/dist/components/directoryItemSelector/DirectoryItemSelector.js +3 -3
- package/dist/components/directoryItemSelector/index.d.ts +7 -0
- package/dist/components/directoryItemSelector/index.js +4 -0
- package/dist/components/elementSearch/elementItem/EquipmentItem.d.ts +1 -1
- package/dist/components/elementSearch/elementItem/EquipmentItem.js +1 -3
- package/dist/components/elementSearch/elementItem/index.d.ts +7 -0
- package/dist/components/elementSearch/elementItem/index.js +4 -0
- package/dist/components/elementSearch/elementSearchDialog/ElementSearchDialog.d.ts +0 -1
- package/dist/components/elementSearch/elementSearchDialog/ElementSearchDialog.js +1 -2
- package/dist/components/elementSearch/elementSearchDialog/index.d.ts +7 -0
- package/dist/components/elementSearch/elementSearchDialog/index.js +4 -0
- package/dist/components/elementSearch/elementSearchInput/index.d.ts +7 -0
- package/dist/components/elementSearch/elementSearchInput/index.js +4 -0
- package/dist/components/elementSearch/hooks/index.d.ts +7 -0
- package/dist/components/elementSearch/hooks/index.js +4 -0
- package/dist/components/elementSearch/hooks/useElementSearch.d.ts +2 -2
- package/dist/components/elementSearch/hooks/useElementSearch.js +2 -2
- package/dist/components/elementSearch/index.d.ts +5 -7
- package/dist/components/elementSearch/index.js +6 -4
- package/dist/components/elementSearch/tagRenderer/TagRenderer.d.ts +1 -2
- package/dist/components/elementSearch/tagRenderer/TagRenderer.js +1 -1
- package/dist/components/elementSearch/tagRenderer/index.d.ts +7 -0
- package/dist/components/elementSearch/tagRenderer/index.js +4 -0
- package/dist/components/expandableGroup/ExpandableGroup.d.ts +1 -31
- package/dist/components/expandableGroup/ExpandableGroup.js +1 -2
- package/dist/components/expandableGroup/index.d.ts +7 -4
- package/dist/components/expandableGroup/index.js +2 -2
- package/dist/components/filter/FilterCreationDialog.d.ts +1 -2
- package/dist/components/filter/FilterCreationDialog.js +4 -4
- package/dist/components/filter/FilterForm.d.ts +2 -3
- package/dist/components/filter/FilterForm.js +8 -8
- package/dist/components/filter/criteriaBased/CriteriaBasedFilterEditionDialog.d.ts +1 -2
- package/dist/components/filter/criteriaBased/CriteriaBasedFilterEditionDialog.js +9 -9
- package/dist/components/filter/criteriaBased/CriteriaBasedFilterForm.d.ts +1 -2
- package/dist/components/filter/criteriaBased/CriteriaBasedFilterForm.js +5 -5
- package/dist/components/filter/criteriaBased/CriteriaBasedForm.d.ts +1 -2
- package/dist/components/filter/criteriaBased/CriteriaBasedForm.js +4 -4
- package/dist/components/filter/criteriaBased/FilterFreeProperties.d.ts +2 -2
- package/dist/components/filter/criteriaBased/FilterFreeProperties.js +6 -6
- package/dist/components/filter/criteriaBased/FilterProperties.d.ts +1 -2
- package/dist/components/filter/criteriaBased/FilterProperties.js +7 -5
- package/dist/components/filter/criteriaBased/FilterProperty.d.ts +2 -2
- package/dist/components/filter/criteriaBased/FilterProperty.js +5 -5
- package/dist/components/filter/criteriaBased/criteriaBasedFilterUtils.js +1 -1
- package/dist/components/filter/criteriaBased/index.d.ts +13 -0
- package/dist/components/filter/criteriaBased/index.js +27 -0
- package/dist/components/filter/expert/ExpertFilterEditionDialog.d.ts +1 -2
- package/dist/components/filter/expert/ExpertFilterEditionDialog.js +8 -8
- package/dist/components/filter/expert/ExpertFilterForm.d.ts +1 -2
- package/dist/components/filter/expert/ExpertFilterForm.js +7 -7
- package/dist/components/filter/expert/expertFilterConstants.d.ts +1 -1
- package/dist/components/filter/expert/expertFilterConstants.js +3 -3
- package/dist/components/filter/expert/index.d.ts +11 -0
- package/dist/components/filter/expert/index.js +39 -0
- package/dist/components/filter/explicitNaming/ExplicitNamingFilterEditionDialog.d.ts +1 -2
- package/dist/components/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js +8 -8
- package/dist/components/filter/explicitNaming/ExplicitNamingFilterForm.d.ts +3 -3
- package/dist/components/filter/explicitNaming/ExplicitNamingFilterForm.js +7 -7
- package/dist/components/filter/explicitNaming/index.d.ts +8 -0
- package/dist/components/filter/explicitNaming/index.js +9 -0
- package/dist/components/filter/index.d.ts +13 -0
- package/dist/components/filter/index.js +86 -0
- package/dist/components/filter/utils/filterApi.js +1 -1
- package/dist/components/filter/utils/filterFormUtils.js +4 -4
- package/dist/components/filter/utils/index.d.ts +8 -0
- package/dist/components/filter/utils/index.js +9 -0
- package/dist/components/flatParameters/FlatParameters.d.ts +0 -1
- package/dist/components/flatParameters/FlatParameters.js +1 -2
- package/dist/components/flatParameters/index.d.ts +7 -4
- package/dist/components/flatParameters/index.js +3 -2
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.js +293 -0
- package/dist/components/inputs/SelectClearable.d.ts +2 -2
- package/dist/components/inputs/SelectClearable.js +2 -2
- package/dist/components/inputs/index.d.ts +9 -0
- package/dist/components/inputs/index.js +119 -0
- package/dist/components/inputs/reactHookForm/DirectoryItemsInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +8 -8
- package/dist/components/inputs/reactHookForm/RawReadOnlyInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/RawReadOnlyInput.js +1 -1
- package/dist/components/inputs/reactHookForm/agGridTable/BottomRightButtons.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/agGridTable/BottomRightButtons.js +4 -4
- package/dist/components/inputs/reactHookForm/agGridTable/CustomAgGridTable.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/agGridTable/CustomAgGridTable.js +4 -4
- package/dist/components/inputs/reactHookForm/agGridTable/cellEditors/index.d.ts +7 -0
- package/dist/components/inputs/reactHookForm/agGridTable/cellEditors/index.js +4 -0
- package/dist/components/inputs/reactHookForm/agGridTable/cellEditors/numericEditor.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/agGridTable/cellEditors/numericEditor.js +1 -1
- package/dist/components/inputs/reactHookForm/agGridTable/csvUploader/CsvUploader.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/agGridTable/csvUploader/CsvUploader.js +3 -3
- package/dist/components/inputs/reactHookForm/agGridTable/csvUploader/index.d.ts +7 -0
- package/dist/components/inputs/reactHookForm/agGridTable/csvUploader/index.js +4 -0
- package/dist/components/inputs/reactHookForm/agGridTable/index.d.ts +10 -0
- package/dist/components/inputs/reactHookForm/agGridTable/index.js +11 -0
- package/dist/components/inputs/reactHookForm/autocompleteInputs/AutocompleteInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/autocompleteInputs/AutocompleteInput.js +3 -3
- package/dist/components/inputs/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +2 -2
- package/dist/components/inputs/reactHookForm/autocompleteInputs/index.d.ts +8 -0
- package/dist/components/inputs/reactHookForm/autocompleteInputs/index.js +6 -0
- package/dist/components/inputs/reactHookForm/booleans/BooleanInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/booleans/BooleanInput.js +1 -1
- package/dist/components/inputs/reactHookForm/booleans/CheckboxInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/booleans/CheckboxInput.js +2 -2
- package/dist/components/inputs/reactHookForm/booleans/RadioInput.d.ts +2 -2
- package/dist/components/inputs/reactHookForm/booleans/RadioInput.js +2 -2
- package/dist/components/inputs/reactHookForm/booleans/SwitchInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/booleans/SwitchInput.js +2 -2
- package/dist/components/inputs/reactHookForm/booleans/index.d.ts +10 -0
- package/dist/components/inputs/reactHookForm/booleans/index.js +10 -0
- package/dist/components/inputs/reactHookForm/errorManagement/ErrorInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/errorManagement/ErrorInput.js +1 -1
- package/dist/components/inputs/reactHookForm/errorManagement/FieldErrorAlert.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/errorManagement/FieldErrorAlert.js +1 -1
- package/dist/components/inputs/reactHookForm/errorManagement/MidFormError.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/errorManagement/MidFormError.js +1 -1
- package/dist/components/inputs/reactHookForm/errorManagement/index.d.ts +9 -0
- package/dist/components/inputs/reactHookForm/errorManagement/index.js +8 -0
- package/dist/components/inputs/reactHookForm/index.d.ts +17 -0
- package/dist/components/inputs/reactHookForm/index.js +85 -0
- package/dist/components/inputs/reactHookForm/numbers/FloatInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/numbers/FloatInput.js +2 -2
- package/dist/components/inputs/reactHookForm/numbers/IntegerInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/numbers/IntegerInput.js +2 -2
- package/dist/components/inputs/reactHookForm/numbers/RangeInput.d.ts +2 -2
- package/dist/components/inputs/reactHookForm/numbers/RangeInput.js +4 -4
- package/dist/components/inputs/reactHookForm/numbers/SliderInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/numbers/SliderInput.js +1 -1
- package/dist/components/inputs/reactHookForm/numbers/index.d.ts +11 -0
- package/dist/components/inputs/reactHookForm/numbers/index.js +17 -0
- package/dist/components/inputs/reactHookForm/provider/CustomFormProvider.d.ts +2 -2
- package/dist/components/inputs/reactHookForm/provider/CustomFormProvider.js +1 -1
- package/dist/components/inputs/reactHookForm/provider/index.d.ts +8 -0
- package/dist/components/inputs/reactHookForm/provider/index.js +7 -0
- package/dist/components/inputs/reactHookForm/provider/useCustomFormContext.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/provider/useCustomFormContext.js +1 -1
- package/dist/components/inputs/reactHookForm/selectInputs/CountriesInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/selectInputs/CountriesInput.js +3 -3
- package/dist/components/inputs/reactHookForm/selectInputs/InputWithPopupConfirmation.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/selectInputs/InputWithPopupConfirmation.js +2 -2
- package/dist/components/inputs/reactHookForm/selectInputs/MuiSelectInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/selectInputs/MuiSelectInput.js +1 -1
- package/dist/components/inputs/reactHookForm/selectInputs/SelectInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/selectInputs/SelectInput.js +2 -2
- package/dist/components/inputs/reactHookForm/selectInputs/index.d.ts +10 -0
- package/dist/components/inputs/reactHookForm/selectInputs/index.js +10 -0
- package/dist/components/inputs/reactHookForm/text/DescriptionField.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/text/DescriptionField.js +3 -3
- package/dist/components/inputs/reactHookForm/text/ExpandingTextField.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/text/ExpandingTextField.js +3 -3
- package/dist/components/inputs/reactHookForm/text/TextInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/text/TextInput.js +4 -4
- package/dist/components/inputs/reactHookForm/text/UniqueNameInput.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/text/UniqueNameInput.js +3 -3
- package/dist/components/inputs/reactHookForm/text/index.d.ts +10 -0
- package/dist/components/inputs/reactHookForm/text/index.js +10 -0
- package/dist/components/inputs/reactHookForm/utils/CancelButton.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/utils/CancelButton.js +1 -1
- package/dist/components/inputs/reactHookForm/utils/FieldLabel.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/utils/FieldLabel.js +1 -1
- package/dist/components/inputs/reactHookForm/utils/SubmitButton.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/utils/SubmitButton.js +1 -1
- package/dist/components/inputs/reactHookForm/utils/TextFieldWithAdornment.d.ts +1 -2
- package/dist/components/inputs/reactHookForm/utils/TextFieldWithAdornment.js +1 -1
- package/dist/components/inputs/reactHookForm/utils/functions.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/utils/functions.js +0 -4
- package/dist/components/inputs/reactHookForm/utils/index.d.ts +11 -0
- package/dist/components/inputs/reactHookForm/utils/index.js +17 -0
- package/dist/components/inputs/reactQueryBuilder/AddButton.d.ts +2 -2
- package/dist/components/inputs/reactQueryBuilder/AddButton.js +1 -1
- package/dist/components/inputs/reactQueryBuilder/AutocompleteWithFavorites.d.ts +2 -2
- package/dist/components/inputs/reactQueryBuilder/AutocompleteWithFavorites.js +2 -1
- package/dist/components/inputs/reactQueryBuilder/CombinatorSelector.d.ts +1 -2
- package/dist/components/inputs/reactQueryBuilder/CombinatorSelector.js +2 -2
- package/dist/components/inputs/reactQueryBuilder/CountryValueEditor.d.ts +1 -2
- package/dist/components/inputs/reactQueryBuilder/CountryValueEditor.js +5 -5
- package/dist/components/inputs/reactQueryBuilder/CustomReactQueryBuilder.d.ts +1 -2
- package/dist/components/inputs/reactQueryBuilder/CustomReactQueryBuilder.js +10 -9
- package/dist/components/inputs/reactQueryBuilder/ElementValueEditor.d.ts +2 -2
- package/dist/components/inputs/reactQueryBuilder/ElementValueEditor.js +3 -3
- package/dist/components/inputs/reactQueryBuilder/FieldSelector.d.ts +3 -0
- package/dist/components/inputs/reactQueryBuilder/FieldSelector.js +28 -0
- package/dist/components/inputs/reactQueryBuilder/PropertyValueEditor.d.ts +4 -3
- package/dist/components/inputs/reactQueryBuilder/PropertyValueEditor.js +4 -4
- package/dist/components/inputs/reactQueryBuilder/RemoveButton.d.ts +1 -2
- package/dist/components/inputs/reactQueryBuilder/RemoveButton.js +1 -1
- package/dist/components/inputs/reactQueryBuilder/TextValueEditor.d.ts +1 -2
- package/dist/components/inputs/reactQueryBuilder/TextValueEditor.js +3 -3
- package/dist/components/inputs/reactQueryBuilder/TranslatedValueEditor.d.ts +1 -2
- package/dist/components/inputs/reactQueryBuilder/TranslatedValueEditor.js +3 -3
- package/dist/components/inputs/reactQueryBuilder/ValueEditor.d.ts +1 -2
- package/dist/components/inputs/reactQueryBuilder/ValueEditor.js +8 -8
- package/dist/components/inputs/reactQueryBuilder/ValueSelector.d.ts +1 -2
- package/dist/components/inputs/reactQueryBuilder/ValueSelector.js +1 -1
- package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.d.ts +1 -2
- package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.js +2 -2
- package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.d.ts +2 -2
- package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +1 -1
- package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/index.d.ts +8 -0
- package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/index.js +6 -0
- package/dist/components/inputs/reactQueryBuilder/hooks/index.d.ts +8 -0
- package/dist/components/inputs/reactQueryBuilder/hooks/index.js +6 -0
- package/dist/components/inputs/reactQueryBuilder/hooks/useConvertValue.d.ts +1 -2
- package/dist/components/inputs/reactQueryBuilder/hooks/useConvertValue.js +1 -1
- package/dist/components/inputs/reactQueryBuilder/hooks/useValid.d.ts +1 -2
- package/dist/components/inputs/reactQueryBuilder/hooks/useValid.js +1 -1
- package/dist/components/inputs/reactQueryBuilder/index.d.ts +20 -0
- package/dist/components/inputs/reactQueryBuilder/index.js +34 -0
- package/dist/components/muiVirtualizedTable/ColumnHeader.d.ts +3 -3
- package/dist/components/muiVirtualizedTable/ColumnHeader.js +3 -3
- package/dist/components/muiVirtualizedTable/KeyedColumnsRowIndexer.js +1 -1
- package/dist/components/muiVirtualizedTable/MuiVirtualizedTable.d.ts +6 -20
- package/dist/components/muiVirtualizedTable/MuiVirtualizedTable.js +5 -5
- package/dist/components/muiVirtualizedTable/index.d.ts +2 -3
- package/dist/components/muiVirtualizedTable/index.js +8 -4
- package/dist/components/multipleSelectionDialog/MultipleSelectionDialog.d.ts +1 -2
- package/dist/components/multipleSelectionDialog/MultipleSelectionDialog.js +1 -1
- package/dist/components/multipleSelectionDialog/index.d.ts +7 -4
- package/dist/components/multipleSelectionDialog/index.js +2 -2
- package/dist/components/overflowableText/OverflowableText.d.ts +0 -1
- package/dist/components/overflowableText/OverflowableText.js +1 -2
- package/dist/components/overflowableText/index.d.ts +7 -4
- package/dist/components/overflowableText/index.js +1 -1
- package/dist/components/snackbarProvider/SnackbarProvider.d.ts +1 -2
- package/dist/components/snackbarProvider/SnackbarProvider.js +1 -1
- package/dist/components/snackbarProvider/index.d.ts +7 -3
- package/dist/components/snackbarProvider/index.js +2 -2
- package/dist/components/topBar/AboutDialog.d.ts +2 -2
- package/dist/components/topBar/AboutDialog.js +1 -1
- package/dist/components/topBar/GridLogo.d.ts +1 -2
- package/dist/components/topBar/GridLogo.js +2 -2
- package/dist/components/topBar/TopBar.d.ts +4 -9
- package/dist/components/topBar/TopBar.js +4 -13
- package/dist/components/topBar/index.d.ts +2 -3
- package/dist/components/topBar/index.js +6 -5
- package/dist/components/treeViewFinder/TreeViewFinder.d.ts +1 -2
- package/dist/components/treeViewFinder/TreeViewFinder.js +4 -4
- package/dist/components/treeViewFinder/index.d.ts +1 -2
- package/dist/components/treeViewFinder/index.js +2 -2
- package/dist/hooks/customStates/index.d.ts +8 -0
- package/dist/hooks/customStates/index.js +6 -0
- package/dist/hooks/customStates/useStateBoolean.d.ts +1 -2
- package/dist/hooks/customStates/useStateBoolean.js +1 -1
- package/dist/hooks/customStates/useStateNumber.d.ts +1 -2
- package/dist/hooks/customStates/useStateNumber.js +1 -1
- package/dist/hooks/index.d.ts +14 -0
- package/dist/hooks/index.js +22 -0
- package/dist/hooks/useConfidentialityWarning.d.ts +1 -2
- package/dist/hooks/useConfidentialityWarning.js +1 -1
- package/dist/hooks/useDebounce.d.ts +1 -2
- package/dist/hooks/useDebounce.js +1 -1
- package/dist/hooks/useIntlRef.d.ts +1 -2
- package/dist/hooks/useIntlRef.js +1 -1
- package/dist/hooks/useLocalizedCountries.js +1 -1
- package/dist/hooks/usePredefinedProperties.d.ts +3 -3
- package/dist/hooks/usePredefinedProperties.js +3 -3
- package/dist/hooks/usePrevious.d.ts +0 -1
- package/dist/hooks/usePrevious.js +0 -1
- package/dist/hooks/useSnackMessage.js +1 -1
- package/dist/index.d.ts +7 -181
- package/dist/index.js +357 -236
- package/dist/redux/index.d.ts +8 -0
- package/dist/redux/index.js +20 -0
- package/dist/services/appsMetadata.d.ts +2 -25
- package/dist/translations/en/cardErrorBoundaryEn.d.ts +1 -2
- package/dist/translations/en/cardErrorBoundaryEn.js +1 -1
- package/dist/translations/en/commonButtonEn.d.ts +1 -2
- package/dist/translations/en/commonButtonEn.js +1 -1
- package/dist/translations/en/csvEn.d.ts +1 -2
- package/dist/translations/en/csvEn.js +1 -1
- package/dist/translations/en/descriptionEn.d.ts +1 -2
- package/dist/translations/en/descriptionEn.js +1 -1
- package/dist/translations/en/directoryItemsInputEn.d.ts +1 -2
- package/dist/translations/en/directoryItemsInputEn.js +1 -1
- package/dist/translations/en/elementSearchEn.d.ts +1 -2
- package/dist/translations/en/elementSearchEn.js +1 -1
- package/dist/translations/en/equipmentSearchEn.d.ts +1 -2
- package/dist/translations/en/equipmentSearchEn.js +1 -1
- package/dist/translations/en/equipmentsEn.d.ts +1 -2
- package/dist/translations/en/equipmentsEn.js +1 -1
- package/dist/translations/en/filterEn.d.ts +1 -2
- package/dist/translations/en/filterEn.js +1 -1
- package/dist/translations/en/filterExpertEn.d.ts +1 -2
- package/dist/translations/en/filterExpertEn.js +1 -1
- package/dist/translations/en/flatParametersEn.d.ts +1 -2
- package/dist/translations/en/flatParametersEn.js +1 -1
- package/dist/translations/en/index.d.ts +24 -0
- package/dist/translations/en/index.js +38 -0
- package/dist/translations/en/inputsEn.d.ts +1 -2
- package/dist/translations/en/inputsEn.js +1 -1
- package/dist/translations/en/loginEn.d.ts +1 -2
- package/dist/translations/en/loginEn.js +1 -1
- package/dist/translations/en/multipleSelectionDialogEn.d.ts +1 -2
- package/dist/translations/en/multipleSelectionDialogEn.js +1 -1
- package/dist/translations/en/reportViewerEn.d.ts +1 -2
- package/dist/translations/en/reportViewerEn.js +1 -1
- package/dist/translations/en/tableEn.d.ts +1 -2
- package/dist/translations/en/tableEn.js +1 -1
- package/dist/translations/en/topBarEn.d.ts +1 -2
- package/dist/translations/en/topBarEn.js +1 -1
- package/dist/translations/en/treeviewFinderEn.d.ts +1 -2
- package/dist/translations/en/treeviewFinderEn.js +1 -1
- package/dist/translations/fr/cardErrorBoundaryFr.d.ts +1 -2
- package/dist/translations/fr/cardErrorBoundaryFr.js +1 -1
- package/dist/translations/fr/commonButtonFr.d.ts +1 -2
- package/dist/translations/fr/commonButtonFr.js +1 -1
- package/dist/translations/fr/csvFr.d.ts +1 -2
- package/dist/translations/fr/csvFr.js +1 -1
- package/dist/translations/fr/descriptionFr.d.ts +1 -2
- package/dist/translations/fr/descriptionFr.js +1 -1
- package/dist/translations/fr/directoryItemsInputFr.d.ts +1 -2
- package/dist/translations/fr/directoryItemsInputFr.js +1 -1
- package/dist/translations/fr/elementSearchFr.d.ts +1 -2
- package/dist/translations/fr/elementSearchFr.js +1 -1
- package/dist/translations/fr/equipmentSearchFr.d.ts +1 -2
- package/dist/translations/fr/equipmentSearchFr.js +1 -1
- package/dist/translations/fr/equipmentsFr.d.ts +1 -2
- package/dist/translations/fr/equipmentsFr.js +1 -1
- package/dist/translations/fr/filterExpertFr.d.ts +1 -2
- package/dist/translations/fr/filterExpertFr.js +1 -1
- package/dist/translations/fr/filterFr.d.ts +1 -2
- package/dist/translations/fr/filterFr.js +1 -1
- package/dist/translations/fr/flatParametersFr.d.ts +1 -2
- package/dist/translations/fr/flatParametersFr.js +1 -1
- package/dist/translations/fr/index.d.ts +24 -0
- package/dist/translations/fr/index.js +38 -0
- package/dist/translations/fr/inputsFr.d.ts +1 -2
- package/dist/translations/fr/inputsFr.js +1 -1
- package/dist/translations/fr/loginFr.d.ts +1 -2
- package/dist/translations/fr/loginFr.js +1 -1
- package/dist/translations/fr/multipleSelectionDialogFr.d.ts +1 -2
- package/dist/translations/fr/multipleSelectionDialogFr.js +1 -1
- package/dist/translations/fr/reportViewerFr.d.ts +1 -2
- package/dist/translations/fr/reportViewerFr.js +1 -1
- package/dist/translations/fr/tableFr.d.ts +1 -2
- package/dist/translations/fr/tableFr.js +1 -1
- package/dist/translations/fr/topBarFr.d.ts +1 -2
- package/dist/translations/fr/topBarFr.js +1 -1
- package/dist/translations/fr/treeviewFinderFr.d.ts +1 -2
- package/dist/translations/fr/treeviewFinderFr.js +1 -1
- package/dist/utils/algos.d.ts +1 -2
- package/dist/utils/algos.js +1 -1
- package/dist/utils/constants/browserConstants.d.ts +11 -0
- package/dist/utils/constants/browserConstants.js +12 -0
- package/dist/utils/constants/fetchStatus.d.ts +1 -2
- package/dist/utils/constants/fetchStatus.js +1 -1
- package/dist/utils/constants/fieldConstants.d.ts +1 -2
- package/dist/utils/constants/fieldConstants.js +1 -1
- package/dist/utils/constants/index.d.ts +9 -0
- package/dist/utils/constants/index.js +12 -0
- package/dist/utils/index.d.ts +14 -0
- package/dist/utils/index.js +61 -0
- package/dist/utils/mapper/equipmentTypesForPredefinedPropertiesMapper.d.ts +2 -3
- package/dist/utils/mapper/equipmentTypesForPredefinedPropertiesMapper.js +2 -2
- package/dist/utils/mapper/getFileIcon.d.ts +4 -0
- package/dist/utils/mapper/{elementIcon.js → getFileIcon.js} +1 -1
- package/dist/utils/mapper/index.d.ts +8 -0
- package/dist/utils/mapper/index.js +6 -0
- package/dist/utils/types/equipmentType.js +1 -1
- package/dist/utils/types/index.d.ts +11 -0
- package/dist/utils/types/index.js +27 -0
- package/dist/utils/types/metadata.d.ts +19 -7
- package/dist/utils/types/types.d.ts +0 -5
- package/package.json +1 -1
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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;
|
|
@@ -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;
|
|
@@ -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
|
|
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;
|
|
@@ -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
|
|
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
|
|
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
|
|
11
|
+
export declare function AutocompleteWithFavorites<Value>({ favorites, valid, options, value, ...otherProps }: AutocompleteWithFavoritesProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -27,6 +27,7 @@ function AutocompleteWithFavorites({
|
|
|
27
27
|
size: "small",
|
|
28
28
|
value,
|
|
29
29
|
options: optionsWithFavorites,
|
|
30
|
+
isOptionEqualToValue: (option, val) => option === val || val === "",
|
|
30
31
|
...otherProps,
|
|
31
32
|
groupBy: (option) => favorites.includes(option) ? `fav` : "not_fav",
|
|
32
33
|
multiple: Array.isArray(value),
|
|
@@ -39,5 +40,5 @@ function AutocompleteWithFavorites({
|
|
|
39
40
|
);
|
|
40
41
|
}
|
|
41
42
|
export {
|
|
42
|
-
AutocompleteWithFavorites
|
|
43
|
+
AutocompleteWithFavorites
|
|
43
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
|
|
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
|
|
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,15 +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";
|
|
19
|
+
import { RemoveButton } from "./RemoveButton.js";
|
|
20
|
+
import { FieldSelector } from "./FieldSelector.js";
|
|
20
21
|
function RuleAddButton(props) {
|
|
21
22
|
return /* @__PURE__ */ jsx(AddButton, { ...props, label: "rule" });
|
|
22
23
|
}
|
|
@@ -74,7 +75,7 @@ function CustomReactQueryBuilder(props) {
|
|
|
74
75
|
removeGroupAction: RemoveButton,
|
|
75
76
|
valueEditor: ValueEditor,
|
|
76
77
|
operatorSelector: ValueSelector,
|
|
77
|
-
fieldSelector:
|
|
78
|
+
fieldSelector: FieldSelector,
|
|
78
79
|
valueSourceSelector: ValueSelector
|
|
79
80
|
},
|
|
80
81
|
listsAsArrays: true
|
|
@@ -84,5 +85,5 @@ function CustomReactQueryBuilder(props) {
|
|
|
84
85
|
] });
|
|
85
86
|
}
|
|
86
87
|
export {
|
|
87
|
-
CustomReactQueryBuilder
|
|
88
|
+
CustomReactQueryBuilder
|
|
88
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
|
|
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
|
|
42
|
+
ElementValueEditor
|
|
43
43
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { toFlatOptionArray } from "react-querybuilder";
|
|
3
|
+
import { Autocomplete, TextField } from "@mui/material";
|
|
4
|
+
function FieldSelector({ options, className, value, disabled, handleOnChange }) {
|
|
5
|
+
const optionList = toFlatOptionArray(options);
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
Autocomplete,
|
|
8
|
+
{
|
|
9
|
+
onChange: (event, newValue) => {
|
|
10
|
+
if (newValue) {
|
|
11
|
+
handleOnChange(newValue.name);
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
value: optionList.find((option) => option.name === value),
|
|
15
|
+
disabled,
|
|
16
|
+
className,
|
|
17
|
+
options: optionList,
|
|
18
|
+
disableClearable: true,
|
|
19
|
+
size: "small",
|
|
20
|
+
renderInput: (params) => /* @__PURE__ */ jsx(TextField, { ...params, label: "", variant: "standard" }),
|
|
21
|
+
autoHighlight: true,
|
|
22
|
+
getOptionLabel: (option) => option.label
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
FieldSelector
|
|
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:
|
|
5
|
+
equipmentType: EquipmentType;
|
|
5
6
|
valueEditorProps: ValueEditorProps;
|
|
6
7
|
}
|
|
7
|
-
declare function PropertyValueEditor(props: ExpertFilterPropertyProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
52
|
+
TranslatedValueEditor
|
|
53
53
|
};
|