@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
|
@@ -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 './BottomRightButtons';
|
|
8
|
+
export * from './CustomAgGridTable';
|
|
9
|
+
export * from './cellEditors';
|
|
10
|
+
export * from './csvUploader';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BottomRightButtons } from "./BottomRightButtons.js";
|
|
2
|
+
import { CustomAgGridTable, ROW_DRAGGING_SELECTION_COLUMN_DEF } from "./CustomAgGridTable.js";
|
|
3
|
+
import { NumericEditor } from "./cellEditors/numericEditor.js";
|
|
4
|
+
import { CsvUploader } from "./csvUploader/CsvUploader.js";
|
|
5
|
+
export {
|
|
6
|
+
BottomRightButtons,
|
|
7
|
+
CsvUploader,
|
|
8
|
+
CustomAgGridTable,
|
|
9
|
+
NumericEditor,
|
|
10
|
+
ROW_DRAGGING_SELECTION_COLUMN_DEF
|
|
11
|
+
};
|
|
@@ -13,8 +13,7 @@ export interface AutocompleteInputProps extends Omit<AutocompleteProps<Option, b
|
|
|
13
13
|
onChangeCallback?: () => void;
|
|
14
14
|
formProps?: Omit<TextFieldProps, 'value' | 'onChange' | 'inputRef' | 'inputProps' | 'InputProps'>;
|
|
15
15
|
}
|
|
16
|
-
declare function AutocompleteInput({ name, label, options, outputTransform, // transform materialUi input value before sending it to react hook form, mostly used to deal with select fields that need to return a string
|
|
16
|
+
export declare function AutocompleteInput({ name, label, options, outputTransform, // transform materialUi input value before sending it to react hook form, mostly used to deal with select fields that need to return a string
|
|
17
17
|
inputTransform, // transform react hook form value before sending it to materialUi input, mostly used to deal with select fields that need to return a string
|
|
18
18
|
readOnly, previousValue, allowNewValue, onChangeCallback, // method called when input value is changing
|
|
19
19
|
formProps, ...props }: AutocompleteInputProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export default AutocompleteInput;
|
|
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Autocomplete, TextField } from "@mui/material";
|
|
3
3
|
import { useController } from "react-hook-form";
|
|
4
4
|
import { isFieldRequired, genHelperPreviousValue, genHelperError, identity } from "../utils/functions.js";
|
|
5
|
-
import FieldLabel from "../utils/FieldLabel.js";
|
|
6
|
-
import useCustomFormContext from "../provider/useCustomFormContext.js";
|
|
5
|
+
import { FieldLabel } from "../utils/FieldLabel.js";
|
|
6
|
+
import { useCustomFormContext } from "../provider/useCustomFormContext.js";
|
|
7
7
|
function AutocompleteInput({
|
|
8
8
|
name,
|
|
9
9
|
label,
|
|
@@ -75,5 +75,5 @@ function AutocompleteInput({
|
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
77
|
export {
|
|
78
|
-
AutocompleteInput
|
|
78
|
+
AutocompleteInput
|
|
79
79
|
};
|
package/dist/components/inputs/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare function MultipleAutocompleteInput({ name, ...props }: any): import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
export default MultipleAutocompleteInput;
|
|
1
|
+
export declare function MultipleAutocompleteInput({ name, ...props }: any): import("react/jsx-runtime").JSX.Element;
|
package/dist/components/inputs/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { useWatch, useFieldArray } from "react-hook-form";
|
|
4
|
-
import AutocompleteInput from "./AutocompleteInput.js";
|
|
4
|
+
import { AutocompleteInput } from "./AutocompleteInput.js";
|
|
5
5
|
function MultipleAutocompleteInput({ name, ...props }) {
|
|
6
6
|
const [unsavedInput, setUnsavedInput] = useState("");
|
|
7
7
|
const watchAutocompleteValues = useWatch({
|
|
@@ -40,5 +40,5 @@ function MultipleAutocompleteInput({ name, ...props }) {
|
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
export {
|
|
43
|
-
MultipleAutocompleteInput
|
|
43
|
+
MultipleAutocompleteInput
|
|
44
44
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
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 './AutocompleteInput';
|
|
8
|
+
export * from './MultipleAutocompleteInput';
|
|
@@ -6,5 +6,4 @@ export interface BooleanInputProps {
|
|
|
6
6
|
formProps?: any;
|
|
7
7
|
Input: typeof Switch | typeof Checkbox;
|
|
8
8
|
}
|
|
9
|
-
declare function BooleanInput({ name, label, formProps, Input }: BooleanInputProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default BooleanInput;
|
|
9
|
+
export declare function BooleanInput({ name, label, formProps, Input }: BooleanInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,5 +5,4 @@ export interface CheckboxInputProps {
|
|
|
5
5
|
label?: string;
|
|
6
6
|
formProps?: CheckboxProps;
|
|
7
7
|
}
|
|
8
|
-
declare function CheckboxInput({ name, label, formProps }: CheckboxInputProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default CheckboxInput;
|
|
8
|
+
export declare function CheckboxInput({ name, label, formProps }: CheckboxInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Checkbox } from "@mui/material";
|
|
3
|
-
import BooleanInput from "./BooleanInput.js";
|
|
3
|
+
import { BooleanInput } from "./BooleanInput.js";
|
|
4
4
|
function CheckboxInput({ name, label, formProps }) {
|
|
5
5
|
return /* @__PURE__ */ jsx(BooleanInput, { name, label, formProps, Input: Checkbox });
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
CheckboxInput
|
|
8
|
+
CheckboxInput
|
|
9
9
|
};
|
|
@@ -11,5 +11,5 @@ export interface RadioInputProps {
|
|
|
11
11
|
options: RadioOptions;
|
|
12
12
|
formProps?: Omit<RadioGroupProps, 'value'>;
|
|
13
13
|
}
|
|
14
|
-
declare function RadioInput({ name, label, id, options, formProps }: Readonly<RadioInputProps>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export
|
|
14
|
+
export declare function RadioInput({ name, label, id, options, formProps }: Readonly<RadioInputProps>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { FormControl, FormLabel, RadioGroup, FormControlLabel, Radio } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { useController } from "react-hook-form";
|
|
5
|
-
import FieldLabel from "../utils/FieldLabel.js";
|
|
5
|
+
import { FieldLabel } from "../utils/FieldLabel.js";
|
|
6
6
|
function RadioInput({ name, label, id, options, formProps }) {
|
|
7
7
|
const {
|
|
8
8
|
field: { onChange, value }
|
|
@@ -21,5 +21,5 @@ function RadioInput({ name, label, id, options, formProps }) {
|
|
|
21
21
|
] });
|
|
22
22
|
}
|
|
23
23
|
export {
|
|
24
|
-
RadioInput
|
|
24
|
+
RadioInput
|
|
25
25
|
};
|
|
@@ -5,5 +5,4 @@ export interface SwitchInputProps {
|
|
|
5
5
|
label?: string;
|
|
6
6
|
formProps?: SwitchProps;
|
|
7
7
|
}
|
|
8
|
-
declare function SwitchInput({ name, label, formProps }: SwitchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default SwitchInput;
|
|
8
|
+
export declare function SwitchInput({ name, label, formProps }: SwitchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Switch } from "@mui/material";
|
|
3
|
-
import BooleanInput from "./BooleanInput.js";
|
|
3
|
+
import { BooleanInput } from "./BooleanInput.js";
|
|
4
4
|
function SwitchInput({ name, label, formProps }) {
|
|
5
5
|
return /* @__PURE__ */ jsx(BooleanInput, { name, label, formProps, Input: Switch });
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
SwitchInput
|
|
8
|
+
SwitchInput
|
|
9
9
|
};
|
|
@@ -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 './BooleanInput';
|
|
8
|
+
export * from './CheckboxInput';
|
|
9
|
+
export * from './RadioInput';
|
|
10
|
+
export * from './SwitchInput';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BooleanInput } from "./BooleanInput.js";
|
|
2
|
+
import { CheckboxInput } from "./CheckboxInput.js";
|
|
3
|
+
import { RadioInput } from "./RadioInput.js";
|
|
4
|
+
import { SwitchInput } from "./SwitchInput.js";
|
|
5
|
+
export {
|
|
6
|
+
BooleanInput,
|
|
7
|
+
CheckboxInput,
|
|
8
|
+
RadioInput,
|
|
9
|
+
SwitchInput
|
|
10
|
+
};
|
|
@@ -10,5 +10,4 @@ export interface ErrorInputProps {
|
|
|
10
10
|
message: string | React.ReactNode;
|
|
11
11
|
}) => React.ReactNode;
|
|
12
12
|
}
|
|
13
|
-
declare function ErrorInput({ name, InputField }: ErrorInputProps): "" | import("react/jsx-runtime").JSX.Element | undefined;
|
|
14
|
-
export default ErrorInput;
|
|
13
|
+
export declare function ErrorInput({ name, InputField }: ErrorInputProps): "" | import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -3,5 +3,4 @@ import { default as React } from 'react';
|
|
|
3
3
|
export interface FieldErrorAlertProps {
|
|
4
4
|
message: string | React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
declare function FieldErrorAlert({ message }: Readonly<FieldErrorAlertProps>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default FieldErrorAlert;
|
|
6
|
+
export declare function FieldErrorAlert({ message }: Readonly<FieldErrorAlertProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,5 +3,4 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
export type MidFormErrorProps = {
|
|
4
4
|
message: string | ReactNode;
|
|
5
5
|
};
|
|
6
|
-
declare function MidFormError({ message }: Readonly<MidFormErrorProps>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default MidFormError;
|
|
6
|
+
export declare function MidFormError({ message }: Readonly<MidFormErrorProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
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 './ErrorInput';
|
|
8
|
+
export * from './FieldErrorAlert';
|
|
9
|
+
export * from './MidFormError';
|
|
@@ -0,0 +1,17 @@
|
|
|
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 './DirectoryItemsInput';
|
|
8
|
+
export * from './RawReadOnlyInput';
|
|
9
|
+
export * from './agGridTable';
|
|
10
|
+
export * from './autocompleteInputs';
|
|
11
|
+
export * from './booleans';
|
|
12
|
+
export * from './errorManagement';
|
|
13
|
+
export * from './numbers';
|
|
14
|
+
export * from './provider';
|
|
15
|
+
export * from './selectInputs';
|
|
16
|
+
export * from './text';
|
|
17
|
+
export * from './utils';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { DirectoryItemsInput, NAME } from "./DirectoryItemsInput.js";
|
|
2
|
+
import { RawReadOnlyInput } from "./RawReadOnlyInput.js";
|
|
3
|
+
import { BottomRightButtons } from "./agGridTable/BottomRightButtons.js";
|
|
4
|
+
import { CustomAgGridTable, ROW_DRAGGING_SELECTION_COLUMN_DEF } from "./agGridTable/CustomAgGridTable.js";
|
|
5
|
+
import { NumericEditor } from "./agGridTable/cellEditors/numericEditor.js";
|
|
6
|
+
import { CsvUploader } from "./agGridTable/csvUploader/CsvUploader.js";
|
|
7
|
+
import { AutocompleteInput } from "./autocompleteInputs/AutocompleteInput.js";
|
|
8
|
+
import { MultipleAutocompleteInput } from "./autocompleteInputs/MultipleAutocompleteInput.js";
|
|
9
|
+
import { BooleanInput } from "./booleans/BooleanInput.js";
|
|
10
|
+
import { CheckboxInput } from "./booleans/CheckboxInput.js";
|
|
11
|
+
import { RadioInput } from "./booleans/RadioInput.js";
|
|
12
|
+
import { SwitchInput } from "./booleans/SwitchInput.js";
|
|
13
|
+
import { ErrorInput } from "./errorManagement/ErrorInput.js";
|
|
14
|
+
import { FieldErrorAlert } from "./errorManagement/FieldErrorAlert.js";
|
|
15
|
+
import { MidFormError } from "./errorManagement/MidFormError.js";
|
|
16
|
+
import { FloatInput } from "./numbers/FloatInput.js";
|
|
17
|
+
import { IntegerInput } from "./numbers/IntegerInput.js";
|
|
18
|
+
import { DEFAULT_RANGE_VALUE, RangeInput, RangeType, getRangeInputDataForm, getRangeInputSchema } from "./numbers/RangeInput.js";
|
|
19
|
+
import { SliderInput } from "./numbers/SliderInput.js";
|
|
20
|
+
import { isFloatNumber, isIntegerNumber } from "./numbers/utils.js";
|
|
21
|
+
import { CustomFormContext, CustomFormProvider } from "./provider/CustomFormProvider.js";
|
|
22
|
+
import { useCustomFormContext } from "./provider/useCustomFormContext.js";
|
|
23
|
+
import { CountriesInput } from "./selectInputs/CountriesInput.js";
|
|
24
|
+
import { InputWithPopupConfirmation } from "./selectInputs/InputWithPopupConfirmation.js";
|
|
25
|
+
import { MuiSelectInput } from "./selectInputs/MuiSelectInput.js";
|
|
26
|
+
import { SelectInput } from "./selectInputs/SelectInput.js";
|
|
27
|
+
import { DescriptionField } from "./text/DescriptionField.js";
|
|
28
|
+
import { ExpandingTextField } from "./text/ExpandingTextField.js";
|
|
29
|
+
import { TextInput } from "./text/TextInput.js";
|
|
30
|
+
import { UniqueNameInput } from "./text/UniqueNameInput.js";
|
|
31
|
+
import { CancelButton } from "./utils/CancelButton.js";
|
|
32
|
+
import { FieldLabel } from "./utils/FieldLabel.js";
|
|
33
|
+
import { SubmitButton } from "./utils/SubmitButton.js";
|
|
34
|
+
import { TextFieldWithAdornment } from "./utils/TextFieldWithAdornment.js";
|
|
35
|
+
import { genHelperError, genHelperPreviousValue, gridItem, identity, isFieldRequired, toFloatOrNullValue } from "./utils/functions.js";
|
|
36
|
+
export {
|
|
37
|
+
AutocompleteInput,
|
|
38
|
+
BooleanInput,
|
|
39
|
+
BottomRightButtons,
|
|
40
|
+
CancelButton,
|
|
41
|
+
CheckboxInput,
|
|
42
|
+
CountriesInput,
|
|
43
|
+
CsvUploader,
|
|
44
|
+
CustomAgGridTable,
|
|
45
|
+
CustomFormContext,
|
|
46
|
+
CustomFormProvider,
|
|
47
|
+
DEFAULT_RANGE_VALUE,
|
|
48
|
+
DescriptionField,
|
|
49
|
+
DirectoryItemsInput,
|
|
50
|
+
ErrorInput,
|
|
51
|
+
ExpandingTextField,
|
|
52
|
+
FieldErrorAlert,
|
|
53
|
+
FieldLabel,
|
|
54
|
+
FloatInput,
|
|
55
|
+
InputWithPopupConfirmation,
|
|
56
|
+
IntegerInput,
|
|
57
|
+
MidFormError,
|
|
58
|
+
MuiSelectInput,
|
|
59
|
+
MultipleAutocompleteInput,
|
|
60
|
+
NAME,
|
|
61
|
+
NumericEditor,
|
|
62
|
+
ROW_DRAGGING_SELECTION_COLUMN_DEF,
|
|
63
|
+
RadioInput,
|
|
64
|
+
RangeInput,
|
|
65
|
+
RangeType,
|
|
66
|
+
RawReadOnlyInput,
|
|
67
|
+
SelectInput,
|
|
68
|
+
SliderInput,
|
|
69
|
+
SubmitButton,
|
|
70
|
+
SwitchInput,
|
|
71
|
+
TextFieldWithAdornment,
|
|
72
|
+
TextInput,
|
|
73
|
+
UniqueNameInput,
|
|
74
|
+
genHelperError,
|
|
75
|
+
genHelperPreviousValue,
|
|
76
|
+
getRangeInputDataForm,
|
|
77
|
+
getRangeInputSchema,
|
|
78
|
+
gridItem,
|
|
79
|
+
identity,
|
|
80
|
+
isFieldRequired,
|
|
81
|
+
isFloatNumber,
|
|
82
|
+
isIntegerNumber,
|
|
83
|
+
toFloatOrNullValue,
|
|
84
|
+
useCustomFormContext
|
|
85
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TextInputProps } from '../text/TextInput';
|
|
2
2
|
|
|
3
3
|
export type FloatInputProps = Omit<TextInputProps, 'outputTransform' | 'inputTransform' | 'acceptValue'>;
|
|
4
|
-
declare function FloatInput(props: FloatInputProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export default FloatInput;
|
|
4
|
+
export declare function FloatInput(props: FloatInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import TextInput from "../text/TextInput.js";
|
|
2
|
+
import { TextInput } from "../text/TextInput.js";
|
|
3
3
|
import { isFloatNumber } from "./utils.js";
|
|
4
4
|
const normalizeFixed = (number) => {
|
|
5
5
|
return number.toLocaleString("en-US", {
|
|
@@ -45,5 +45,5 @@ function FloatInput(props) {
|
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
export {
|
|
48
|
-
FloatInput
|
|
48
|
+
FloatInput
|
|
49
49
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { TextInputProps } from '../text/TextInput';
|
|
2
2
|
|
|
3
|
-
declare function IntegerInput(props: TextInputProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default IntegerInput;
|
|
3
|
+
export declare function IntegerInput(props: TextInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import TextInput from "../text/TextInput.js";
|
|
2
|
+
import { TextInput } from "../text/TextInput.js";
|
|
3
3
|
import { isIntegerNumber } from "./utils.js";
|
|
4
4
|
function IntegerInput(props) {
|
|
5
5
|
const inputTransform = (value) => {
|
|
@@ -28,5 +28,5 @@ function IntegerInput(props) {
|
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
export {
|
|
31
|
-
IntegerInput
|
|
31
|
+
IntegerInput
|
|
32
32
|
};
|
|
@@ -49,5 +49,5 @@ interface RangeInputProps {
|
|
|
49
49
|
name: string;
|
|
50
50
|
label: string;
|
|
51
51
|
}
|
|
52
|
-
declare function RangeInput({ name, label }: RangeInputProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
export
|
|
52
|
+
export declare function RangeInput({ name, label }: RangeInputProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export {};
|
|
@@ -5,10 +5,10 @@ import { useMemo } from "react";
|
|
|
5
5
|
import InputLabel from "@mui/material/InputLabel";
|
|
6
6
|
import { Grid } from "@mui/material";
|
|
7
7
|
import FormControl from "@mui/material/FormControl";
|
|
8
|
-
import FloatInput from "./FloatInput.js";
|
|
8
|
+
import { FloatInput } from "./FloatInput.js";
|
|
9
9
|
import "../../../../utils/yupConfig.js";
|
|
10
|
-
import MuiSelectInput from "../selectInputs/MuiSelectInput.js";
|
|
11
|
-
import FieldConstants from "../../../../utils/constants/fieldConstants.js";
|
|
10
|
+
import { MuiSelectInput } from "../selectInputs/MuiSelectInput.js";
|
|
11
|
+
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
12
12
|
import * as yup from "yup";
|
|
13
13
|
const style = {
|
|
14
14
|
inputLegend: (theme) => ({
|
|
@@ -108,8 +108,8 @@ function RangeInput({ name, label }) {
|
|
|
108
108
|
}
|
|
109
109
|
export {
|
|
110
110
|
DEFAULT_RANGE_VALUE,
|
|
111
|
+
RangeInput,
|
|
111
112
|
RangeType,
|
|
112
|
-
RangeInput as default,
|
|
113
113
|
getRangeInputDataForm,
|
|
114
114
|
getRangeInputSchema
|
|
115
115
|
};
|
|
@@ -4,5 +4,4 @@ export interface SliderInputProps extends SliderProps {
|
|
|
4
4
|
name: string;
|
|
5
5
|
onValueChanged: (value: any) => void;
|
|
6
6
|
}
|
|
7
|
-
declare function SliderInput({ name, min, max, step, size, onValueChanged }: SliderInputProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default SliderInput;
|
|
7
|
+
export declare function SliderInput({ name, min, max, step, size, onValueChanged }: SliderInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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 './FloatInput';
|
|
8
|
+
export * from './IntegerInput';
|
|
9
|
+
export * from './RangeInput';
|
|
10
|
+
export * from './SliderInput';
|
|
11
|
+
export * from './utils';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FloatInput } from "./FloatInput.js";
|
|
2
|
+
import { IntegerInput } from "./IntegerInput.js";
|
|
3
|
+
import { DEFAULT_RANGE_VALUE, RangeInput, RangeType, getRangeInputDataForm, getRangeInputSchema } from "./RangeInput.js";
|
|
4
|
+
import { SliderInput } from "./SliderInput.js";
|
|
5
|
+
import { isFloatNumber, isIntegerNumber } from "./utils.js";
|
|
6
|
+
export {
|
|
7
|
+
DEFAULT_RANGE_VALUE,
|
|
8
|
+
FloatInput,
|
|
9
|
+
IntegerInput,
|
|
10
|
+
RangeInput,
|
|
11
|
+
RangeType,
|
|
12
|
+
SliderInput,
|
|
13
|
+
getRangeInputDataForm,
|
|
14
|
+
getRangeInputSchema,
|
|
15
|
+
isFloatNumber,
|
|
16
|
+
isIntegerNumber
|
|
17
|
+
};
|
|
@@ -10,5 +10,5 @@ type CustomFormContextProps = {
|
|
|
10
10
|
export type MergedFormContextProps = UseFormReturn<any> & CustomFormContextProps;
|
|
11
11
|
type CustomFormProviderProps = PropsWithChildren<MergedFormContextProps>;
|
|
12
12
|
export declare const CustomFormContext: React.Context<CustomFormContextProps>;
|
|
13
|
-
declare function CustomFormProvider(props: CustomFormProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export
|
|
13
|
+
export declare function CustomFormProvider(props: CustomFormProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
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 './CustomFormProvider';
|
|
8
|
+
export * from './useCustomFormContext';
|
|
@@ -2,5 +2,4 @@ export interface CountryInputProps {
|
|
|
2
2
|
name: string;
|
|
3
3
|
label: string;
|
|
4
4
|
}
|
|
5
|
-
declare function CountriesInput({ name, label }: Readonly<CountryInputProps>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default CountriesInput;
|
|
5
|
+
export declare function CountriesInput({ name, label }: Readonly<CountryInputProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
import { Chip } from "@mui/material";
|
|
4
|
-
import AutocompleteInput from "../autocompleteInputs/AutocompleteInput.js";
|
|
4
|
+
import { AutocompleteInput } from "../autocompleteInputs/AutocompleteInput.js";
|
|
5
5
|
import { useLocalizedCountries } from "../../../../hooks/useLocalizedCountries.js";
|
|
6
|
-
import useCustomFormContext from "../provider/useCustomFormContext.js";
|
|
6
|
+
import { useCustomFormContext } from "../provider/useCustomFormContext.js";
|
|
7
7
|
function CountriesInput({ name, label }) {
|
|
8
8
|
const { language } = useCustomFormContext();
|
|
9
9
|
const { translate, countryCodes } = useLocalizedCountries(language);
|
|
@@ -30,5 +30,5 @@ function CountriesInput({ name, label }) {
|
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
export {
|
|
33
|
-
CountriesInput
|
|
33
|
+
CountriesInput
|
|
34
34
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
declare function InputWithPopupConfirmation({ Input, name, shouldOpenPopup, // condition to open popup confirmation
|
|
1
|
+
export declare function InputWithPopupConfirmation({ Input, name, shouldOpenPopup, // condition to open popup confirmation
|
|
2
2
|
resetOnConfirmation, // function to reset values in your form on confirmation,
|
|
3
3
|
message, validateButtonLabel, ...props }: any): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default InputWithPopupConfirmation;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useController } from "react-hook-form";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
import PopupConfirmationDialog from "../../../dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
|
|
4
|
+
import { PopupConfirmationDialog } from "../../../dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
|
|
5
5
|
function InputWithPopupConfirmation({
|
|
6
6
|
Input,
|
|
7
7
|
name,
|
|
@@ -57,5 +57,5 @@ function InputWithPopupConfirmation({
|
|
|
57
57
|
] });
|
|
58
58
|
}
|
|
59
59
|
export {
|
|
60
|
-
InputWithPopupConfirmation
|
|
60
|
+
InputWithPopupConfirmation
|
|
61
61
|
};
|
|
@@ -7,5 +7,4 @@ export type MuiSelectInputProps = SelectProps & {
|
|
|
7
7
|
label: string;
|
|
8
8
|
}[];
|
|
9
9
|
};
|
|
10
|
-
declare function MuiSelectInput({ name, options, ...props }: MuiSelectInputProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default MuiSelectInput;
|
|
10
|
+
export declare function MuiSelectInput({ name, options, ...props }: MuiSelectInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,5 +11,5 @@ function MuiSelectInput({ name, options, ...props }) {
|
|
|
11
11
|
return /* @__PURE__ */ jsx(Select, { value, onChange, ...props, children: options.map((option) => /* @__PURE__ */ jsx(MenuItem, { value: option.id ?? option, children: /* @__PURE__ */ jsx(FormattedMessage, { id: option.label ?? option }) }, option.id ?? option.label)) });
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
|
-
MuiSelectInput
|
|
14
|
+
MuiSelectInput
|
|
15
15
|
};
|