@gridsuite/commons-ui 0.66.1 → 0.68.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 +6 -6
- 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 +1 -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 +9 -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 +1 -2
- package/dist/components/inputs/reactQueryBuilder/FieldSelector.js +1 -1
- 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 +42 -14
- package/dist/components/topBar/UserInformationDialog.d.ts +9 -0
- package/dist/components/topBar/UserInformationDialog.js +70 -0
- 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 +8 -5
- 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/services/userAdmin.d.ts +4 -0
- package/dist/services/userAdmin.js +12 -0
- 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 +12 -2
- package/dist/translations/en/topBarEn.js +13 -2
- 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 +12 -2
- package/dist/translations/fr/topBarFr.js +13 -2
- 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 +8 -5
- package/package.json +1 -1
- package/dist/utils/mapper/elementIcon.d.ts +0 -5
|
@@ -17,5 +17,4 @@ export interface DirectoryItemSelectorProps extends TreeViewFinderProps {
|
|
|
17
17
|
multiselect?: boolean;
|
|
18
18
|
expanded?: UUID[];
|
|
19
19
|
}
|
|
20
|
-
declare function DirectoryItemSelector({ open, types, equipmentTypes, itemFilter, expanded, ...otherTreeViewFinderProps }: Readonly<DirectoryItemSelectorProps>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export default DirectoryItemSelector;
|
|
20
|
+
export declare function DirectoryItemSelector({ open, types, equipmentTypes, itemFilter, expanded, ...otherTreeViewFinderProps }: Readonly<DirectoryItemSelectorProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useCallback, useEffect } from "react";
|
|
3
|
-
import getFileIcon from "../../utils/mapper/
|
|
3
|
+
import { getFileIcon } from "../../utils/mapper/getFileIcon.js";
|
|
4
4
|
import { ElementType } from "../../utils/types/elementType.js";
|
|
5
|
-
import TreeViewFinder from "../treeViewFinder/TreeViewFinder.js";
|
|
5
|
+
import { TreeViewFinder } from "../treeViewFinder/TreeViewFinder.js";
|
|
6
6
|
import { useSnackMessage } from "../../hooks/useSnackMessage.js";
|
|
7
7
|
import { fetchElementsInfos } from "../../services/explore.js";
|
|
8
8
|
import { fetchRootFolders, fetchDirectoryContent } from "../../services/directory.js";
|
|
@@ -219,5 +219,5 @@ function DirectoryItemSelector({
|
|
|
219
219
|
);
|
|
220
220
|
}
|
|
221
221
|
export {
|
|
222
|
-
DirectoryItemSelector
|
|
222
|
+
DirectoryItemSelector
|
|
223
223
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
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 './DirectoryItemSelector';
|
|
@@ -5,9 +5,7 @@ import clsx from "clsx";
|
|
|
5
5
|
import { FormattedMessage } from "react-intl";
|
|
6
6
|
import { Box } from "@mui/material";
|
|
7
7
|
import { EQUIPMENT_TYPE } from "../../../utils/types/equipmentType.js";
|
|
8
|
-
import "
|
|
9
|
-
import TagRenderer from "../tagRenderer/TagRenderer.js";
|
|
10
|
-
import "notistack";
|
|
8
|
+
import { TagRenderer } from "../tagRenderer/TagRenderer.js";
|
|
11
9
|
import { OverflowableText } from "../../overflowableText/OverflowableText.js";
|
|
12
10
|
import { mergeSx } from "../../../utils/styles.js";
|
|
13
11
|
function EquipmentItem({
|
|
@@ -0,0 +1,7 @@
|
|
|
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 './EquipmentItem';
|
|
@@ -11,6 +11,5 @@ function ElementSearchDialog(props) {
|
|
|
11
11
|
return /* @__PURE__ */ jsx(Dialog, { open, onClose: handleClose, disableRestoreFocus: true, "aria-labelledby": "dialog-title-search", fullWidth: true, children: /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(ElementSearchInput, { onSearchTermChange, ...rest }) }) });
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
|
-
ElementSearchDialog
|
|
15
|
-
ElementSearchDialog as default
|
|
14
|
+
ElementSearchDialog
|
|
16
15
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
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 './ElementSearchDialog';
|
|
@@ -0,0 +1,7 @@
|
|
|
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 './ElementSearchInput';
|
|
@@ -0,0 +1,7 @@
|
|
|
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 './useElementSearch';
|
|
@@ -23,11 +23,11 @@ export type Paginated<T> = {
|
|
|
23
23
|
interface UseElementSearch<T> {
|
|
24
24
|
fetchElements: (newSearchTerm: string) => Promise<Paginated<T> | T[]>;
|
|
25
25
|
}
|
|
26
|
-
declare const useElementSearch: <T>(props: UseElementSearch<T>) => {
|
|
26
|
+
export declare const useElementSearch: <T>(props: UseElementSearch<T>) => {
|
|
27
27
|
searchTerm: string;
|
|
28
28
|
updateSearchTerm: (newSearchTerm: string) => void;
|
|
29
29
|
elementsFound: T[];
|
|
30
30
|
isLoading: boolean;
|
|
31
31
|
totalElements: number;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useRef, useCallback } from "react";
|
|
2
|
-
import useDebounce from "../../../hooks/useDebounce.js";
|
|
2
|
+
import { useDebounce } from "../../../hooks/useDebounce.js";
|
|
3
3
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
4
4
|
const SEARCH_FETCH_TIMEOUT_MILLIS = 1e3;
|
|
5
5
|
const useElementSearch = (props) => {
|
|
@@ -65,5 +65,5 @@ const useElementSearch = (props) => {
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
export {
|
|
68
|
-
useElementSearch
|
|
68
|
+
useElementSearch
|
|
69
69
|
};
|
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export { default as useElementSearch } from './hooks/useElementSearch';
|
|
13
|
-
export type { Paginated } from './hooks/useElementSearch';
|
|
7
|
+
export * from './elementItem';
|
|
8
|
+
export * from './elementSearchDialog';
|
|
9
|
+
export * from './elementSearchInput';
|
|
10
|
+
export * from './hooks';
|
|
11
|
+
export * from './tagRenderer';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { EquipmentItem } from "./elementItem/EquipmentItem.js";
|
|
1
2
|
import { ElementSearchDialog } from "./elementSearchDialog/ElementSearchDialog.js";
|
|
2
|
-
import { default as default2 } from "./tagRenderer/TagRenderer.js";
|
|
3
3
|
import { ElementSearchInput } from "./elementSearchInput/ElementSearchInput.js";
|
|
4
|
-
import {
|
|
4
|
+
import { useElementSearch } from "./hooks/useElementSearch.js";
|
|
5
|
+
import { TagRenderer } from "./tagRenderer/TagRenderer.js";
|
|
5
6
|
export {
|
|
6
7
|
ElementSearchDialog,
|
|
7
8
|
ElementSearchInput,
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
EquipmentItem,
|
|
10
|
+
TagRenderer,
|
|
11
|
+
useElementSearch
|
|
10
12
|
};
|
|
@@ -12,5 +12,4 @@ export interface TagRendererProps {
|
|
|
12
12
|
equipmentVlTag?: SxProps<Theme>;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
declare function TagRenderer({ element, ...props }: TagRendererProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
16
|
-
export default TagRenderer;
|
|
15
|
+
export declare function TagRenderer({ element, ...props }: TagRendererProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
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 './TagRenderer';
|
|
@@ -1,36 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import { Theme } from '@mui/material';
|
|
3
2
|
|
|
4
|
-
export declare const styles: {
|
|
5
|
-
accordion: () => {
|
|
6
|
-
'&:before': {
|
|
7
|
-
display: string;
|
|
8
|
-
};
|
|
9
|
-
background: string;
|
|
10
|
-
};
|
|
11
|
-
accordionSummary: (theme: Theme) => {
|
|
12
|
-
flexDirection: string;
|
|
13
|
-
padding: number;
|
|
14
|
-
'.MuiAccordionSummary-content': {
|
|
15
|
-
paddingLeft: number;
|
|
16
|
-
};
|
|
17
|
-
'&:not(.Mui-expanded)': {
|
|
18
|
-
borderBottom: string;
|
|
19
|
-
borderColor: string;
|
|
20
|
-
};
|
|
21
|
-
'& .MuiAccordionSummary-expandIconWrapper': {
|
|
22
|
-
transform: string;
|
|
23
|
-
};
|
|
24
|
-
'& .MuiAccordionSummary-expandIconWrapper.Mui-expanded': {
|
|
25
|
-
transform: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
accordionDetails: () => {
|
|
29
|
-
padding: number;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
3
|
export interface ExpandableGroupProps extends PropsWithChildren {
|
|
33
4
|
renderHeader: ReactNode;
|
|
34
5
|
}
|
|
35
|
-
declare function ExpandableGroup({ renderHeader, children }: Readonly<ExpandableGroupProps>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
export default ExpandableGroup;
|
|
6
|
+
export declare function ExpandableGroup({ renderHeader, children }: Readonly<ExpandableGroupProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 './ExpandableGroup';
|
|
@@ -12,5 +12,4 @@ export interface FilterCreationDialogProps {
|
|
|
12
12
|
equipmentType: string;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
declare function FilterCreationDialog({ open, onClose, activeDirectory, elementExists, language, sourceFilterForExplicitNamingConversion, }: FilterCreationDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export default FilterCreationDialog;
|
|
15
|
+
export declare function FilterCreationDialog({ open, onClose, activeDirectory, elementExists, language, sourceFilterForExplicitNamingConversion, }: FilterCreationDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,12 +4,12 @@ import { useForm } from "react-hook-form";
|
|
|
4
4
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
5
5
|
import { saveExplicitNamingFilter, saveCriteriaBasedFilter, saveExpertFilter } from "./utils/filterApi.js";
|
|
6
6
|
import { useSnackMessage } from "../../hooks/useSnackMessage.js";
|
|
7
|
-
import CustomMuiDialog from "../dialogs/customMuiDialog/CustomMuiDialog.js";
|
|
7
|
+
import { CustomMuiDialog } from "../dialogs/customMuiDialog/CustomMuiDialog.js";
|
|
8
8
|
import { criteriaBasedFilterEmptyFormData, criteriaBasedFilterSchema } from "./criteriaBased/CriteriaBasedFilterForm.js";
|
|
9
9
|
import { getExplicitNamingFilterEmptyFormData, explicitNamingFilterSchema, FILTER_EQUIPMENTS_ATTRIBUTES } from "./explicitNaming/ExplicitNamingFilterForm.js";
|
|
10
|
-
import FieldConstants from "../../utils/constants/fieldConstants.js";
|
|
10
|
+
import { FieldConstants } from "../../utils/constants/fieldConstants.js";
|
|
11
11
|
import "../../utils/yupConfig.js";
|
|
12
|
-
import FilterForm from "./FilterForm.js";
|
|
12
|
+
import { FilterForm } from "./FilterForm.js";
|
|
13
13
|
import { getExpertFilterEmptyFormData, expertFilterSchema, EXPERT_FILTER_QUERY } from "./expert/ExpertFilterForm.js";
|
|
14
14
|
import { FilterType } from "./constants/FilterConstants.js";
|
|
15
15
|
import * as yup from "yup";
|
|
@@ -119,5 +119,5 @@ function FilterCreationDialog({
|
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
121
|
export {
|
|
122
|
-
FilterCreationDialog
|
|
122
|
+
FilterCreationDialog
|
|
123
123
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementExistsType } from '../../utils/types/elementType';
|
|
2
2
|
import { UUID } from 'crypto';
|
|
3
3
|
|
|
4
|
-
interface FilterFormProps {
|
|
4
|
+
export interface FilterFormProps {
|
|
5
5
|
creation?: boolean;
|
|
6
6
|
activeDirectory?: UUID;
|
|
7
7
|
elementExists?: ElementExistsType;
|
|
@@ -10,5 +10,4 @@ interface FilterFormProps {
|
|
|
10
10
|
equipmentType: string;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
declare function FilterForm(props: FilterFormProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default FilterForm;
|
|
13
|
+
export declare function FilterForm(props: FilterFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,15 +2,15 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
4
4
|
import { Grid } from "@mui/material";
|
|
5
|
-
import FieldConstants from "../../utils/constants/fieldConstants.js";
|
|
6
|
-
import CriteriaBasedFilterForm from "./criteriaBased/CriteriaBasedFilterForm.js";
|
|
7
|
-
import ExplicitNamingFilterForm from "./explicitNaming/ExplicitNamingFilterForm.js";
|
|
8
|
-
import ExpertFilterForm from "./expert/ExpertFilterForm.js";
|
|
5
|
+
import { FieldConstants } from "../../utils/constants/fieldConstants.js";
|
|
6
|
+
import { CriteriaBasedFilterForm } from "./criteriaBased/CriteriaBasedFilterForm.js";
|
|
7
|
+
import { ExplicitNamingFilterForm } from "./explicitNaming/ExplicitNamingFilterForm.js";
|
|
8
|
+
import { ExpertFilterForm } from "./expert/ExpertFilterForm.js";
|
|
9
9
|
import { FilterType } from "./constants/FilterConstants.js";
|
|
10
|
-
import RadioInput from "../inputs/reactHookForm/booleans/RadioInput.js";
|
|
10
|
+
import { RadioInput } from "../inputs/reactHookForm/booleans/RadioInput.js";
|
|
11
11
|
import { ElementType } from "../../utils/types/elementType.js";
|
|
12
|
-
import UniqueNameInput from "../inputs/reactHookForm/text/UniqueNameInput.js";
|
|
13
|
-
import DescriptionField from "../inputs/reactHookForm/text/DescriptionField.js";
|
|
12
|
+
import { UniqueNameInput } from "../inputs/reactHookForm/text/UniqueNameInput.js";
|
|
13
|
+
import { DescriptionField } from "../inputs/reactHookForm/text/DescriptionField.js";
|
|
14
14
|
function FilterForm(props) {
|
|
15
15
|
const { sourceFilterForExplicitNamingConversion, creation, activeDirectory, elementExists } = props;
|
|
16
16
|
const { setValue } = useFormContext();
|
|
@@ -57,5 +57,5 @@ function FilterForm(props) {
|
|
|
57
57
|
] });
|
|
58
58
|
}
|
|
59
59
|
export {
|
|
60
|
-
FilterForm
|
|
60
|
+
FilterForm
|
|
61
61
|
};
|
|
@@ -16,5 +16,4 @@ export interface CriteriaBasedFilterEditionDialogProps {
|
|
|
16
16
|
elementExists?: ElementExistsType;
|
|
17
17
|
language?: string;
|
|
18
18
|
}
|
|
19
|
-
declare function CriteriaBasedFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, getFilterById, selectionForCopy, setSelectionForCopy, activeDirectory, elementExists, language, }: Readonly<CriteriaBasedFilterEditionDialogProps>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export default CriteriaBasedFilterEditionDialog;
|
|
19
|
+
export declare function CriteriaBasedFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, getFilterById, selectionForCopy, setSelectionForCopy, activeDirectory, elementExists, language, }: Readonly<CriteriaBasedFilterEditionDialogProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { yupResolver } from "@hookform/resolvers/yup";
|
|
2
3
|
import { useState, useEffect, useCallback } from "react";
|
|
3
4
|
import { useForm } from "react-hook-form";
|
|
4
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
5
|
-
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
6
|
-
import { backToFrontTweak, frontToBackTweak } from "./criteriaBasedFilterUtils.js";
|
|
7
|
-
import CustomMuiDialog from "../../dialogs/customMuiDialog/CustomMuiDialog.js";
|
|
8
5
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
9
|
-
import {
|
|
6
|
+
import { saveFilter } from "../../../services/explore.js";
|
|
7
|
+
import { FetchStatus } from "../../../utils/constants/fetchStatus.js";
|
|
8
|
+
import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
|
|
10
9
|
import "../../../utils/yupConfig.js";
|
|
10
|
+
import { CustomMuiDialog } from "../../dialogs/customMuiDialog/CustomMuiDialog.js";
|
|
11
|
+
import { FilterForm } from "../FilterForm.js";
|
|
11
12
|
import { FilterType, NO_SELECTION_FOR_COPY } from "../constants/FilterConstants.js";
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import FilterForm from "../FilterForm.js";
|
|
13
|
+
import { criteriaBasedFilterSchema } from "./CriteriaBasedFilterForm.js";
|
|
14
|
+
import { backToFrontTweak, frontToBackTweak } from "./criteriaBasedFilterUtils.js";
|
|
15
15
|
import * as yup from "yup";
|
|
16
16
|
const formSchema = yup.object().shape({
|
|
17
17
|
[FieldConstants.NAME]: yup.string().trim().required("nameEmpty"),
|
|
@@ -100,5 +100,5 @@ function CriteriaBasedFilterEditionDialog({
|
|
|
100
100
|
);
|
|
101
101
|
}
|
|
102
102
|
export {
|
|
103
|
-
CriteriaBasedFilterEditionDialog
|
|
103
|
+
CriteriaBasedFilterEditionDialog
|
|
104
104
|
};
|
|
@@ -10,5 +10,4 @@ export declare const criteriaBasedFilterSchema: {
|
|
|
10
10
|
export declare const criteriaBasedFilterEmptyFormData: {
|
|
11
11
|
criteriaBased: any;
|
|
12
12
|
};
|
|
13
|
-
declare function CriteriaBasedFilterForm(): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default CriteriaBasedFilterForm;
|
|
13
|
+
export declare function CriteriaBasedFilterForm(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import Grid from "@mui/material/Grid";
|
|
3
|
-
import
|
|
4
|
-
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
3
|
+
import { filterPropertiesYupSchema, FilterProperties } from "./FilterProperties.js";
|
|
4
|
+
import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
|
|
5
5
|
import "../../../utils/yupConfig.js";
|
|
6
|
-
import CriteriaBasedForm from "./CriteriaBasedForm.js";
|
|
6
|
+
import { CriteriaBasedForm } from "./CriteriaBasedForm.js";
|
|
7
7
|
import { getCriteriaBasedSchema, getCriteriaBasedFormData } from "./criteriaBasedFilterUtils.js";
|
|
8
8
|
import { FILTER_EQUIPMENTS } from "../utils/filterFormUtils.js";
|
|
9
9
|
import { FreePropertiesTypes } from "./FilterFreeProperties.js";
|
|
@@ -30,7 +30,7 @@ function CriteriaBasedFilterForm() {
|
|
|
30
30
|
] });
|
|
31
31
|
}
|
|
32
32
|
export {
|
|
33
|
+
CriteriaBasedFilterForm,
|
|
33
34
|
criteriaBasedFilterEmptyFormData,
|
|
34
|
-
criteriaBasedFilterSchema
|
|
35
|
-
CriteriaBasedFilterForm as default
|
|
35
|
+
criteriaBasedFilterSchema
|
|
36
36
|
};
|
|
@@ -4,5 +4,4 @@ export interface CriteriaBasedFormProps {
|
|
|
4
4
|
equipments: Record<string, FormEquipment>;
|
|
5
5
|
defaultValues: Record<string, any>;
|
|
6
6
|
}
|
|
7
|
-
declare function CriteriaBasedForm({ equipments, defaultValues }: CriteriaBasedFormProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default CriteriaBasedForm;
|
|
7
|
+
export declare function CriteriaBasedForm({ equipments, defaultValues }: CriteriaBasedFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,9 +2,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
3
3
|
import { Grid } from "@mui/material";
|
|
4
4
|
import { useEffect } from "react";
|
|
5
|
-
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
6
|
-
import SelectInput from "../../inputs/reactHookForm/selectInputs/SelectInput.js";
|
|
7
|
-
import InputWithPopupConfirmation from "../../inputs/reactHookForm/selectInputs/InputWithPopupConfirmation.js";
|
|
5
|
+
import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
|
|
6
|
+
import { SelectInput } from "../../inputs/reactHookForm/selectInputs/SelectInput.js";
|
|
7
|
+
import { InputWithPopupConfirmation } from "../../inputs/reactHookForm/selectInputs/InputWithPopupConfirmation.js";
|
|
8
8
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
9
9
|
function CriteriaBasedForm({ equipments, defaultValues }) {
|
|
10
10
|
const { getValues, setValue } = useFormContext();
|
|
@@ -49,5 +49,5 @@ function CriteriaBasedForm({ equipments, defaultValues }) {
|
|
|
49
49
|
] });
|
|
50
50
|
}
|
|
51
51
|
export {
|
|
52
|
-
CriteriaBasedForm
|
|
52
|
+
CriteriaBasedForm
|
|
53
53
|
};
|
|
@@ -8,5 +8,5 @@ interface FilterFreePropertiesProps {
|
|
|
8
8
|
freePropertiesType: FreePropertiesTypes;
|
|
9
9
|
predefined: PredefinedProperties;
|
|
10
10
|
}
|
|
11
|
-
declare function FilterFreeProperties({ freePropertiesType, predefined }: FilterFreePropertiesProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export
|
|
11
|
+
export declare function FilterFreeProperties({ freePropertiesType, predefined }: FilterFreePropertiesProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -4,10 +4,10 @@ import { useWatch, useFieldArray } from "react-hook-form";
|
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import AddIcon from "@mui/icons-material/Add";
|
|
6
6
|
import { useMemo } from "react";
|
|
7
|
-
import ErrorInput from "../../inputs/reactHookForm/errorManagement/ErrorInput.js";
|
|
8
|
-
import FieldErrorAlert from "../../inputs/reactHookForm/errorManagement/FieldErrorAlert.js";
|
|
9
|
-
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
10
|
-
import FilterProperty,
|
|
7
|
+
import { ErrorInput } from "../../inputs/reactHookForm/errorManagement/ErrorInput.js";
|
|
8
|
+
import { FieldErrorAlert } from "../../inputs/reactHookForm/errorManagement/FieldErrorAlert.js";
|
|
9
|
+
import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
|
|
10
|
+
import { FilterProperty, PROPERTY_NAME, PROPERTY_VALUES_1, PROPERTY_VALUES_2, PROPERTY_VALUES } from "./FilterProperty.js";
|
|
11
11
|
import { Line, Hvdc } from "../../../utils/types/equipmentTypes.js";
|
|
12
12
|
var FreePropertiesTypes = /* @__PURE__ */ ((FreePropertiesTypes2) => {
|
|
13
13
|
FreePropertiesTypes2["SUBSTATION_FILTER_PROPERTIES"] = "substationFreeProperties";
|
|
@@ -63,6 +63,6 @@ function FilterFreeProperties({ freePropertiesType, predefined }) {
|
|
|
63
63
|
] });
|
|
64
64
|
}
|
|
65
65
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
FilterFreeProperties,
|
|
67
|
+
FreePropertiesTypes
|
|
68
68
|
};
|
|
@@ -5,12 +5,14 @@ import { useWatch } from "react-hook-form";
|
|
|
5
5
|
import { FormattedMessage } from "react-intl";
|
|
6
6
|
import { Line, Hvdc, Substation, Load, Generator, TwoWindingTransfo, Battery, ShuntCompensator, VoltageLevel } from "../../../utils/types/equipmentTypes.js";
|
|
7
7
|
import { areArrayElementsUnique } from "../../../utils/functions.js";
|
|
8
|
-
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
8
|
+
import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
|
|
9
9
|
import "../../../utils/yupConfig.js";
|
|
10
|
-
import
|
|
10
|
+
import { FreePropertiesTypes, FilterFreeProperties } from "./FilterFreeProperties.js";
|
|
11
11
|
import { PROPERTY_NAME, PROPERTY_VALUES, PROPERTY_VALUES_1, PROPERTY_VALUES_2 } from "./FilterProperty.js";
|
|
12
|
-
import usePredefinedProperties from "../../../hooks/usePredefinedProperties.js";
|
|
12
|
+
import { usePredefinedProperties } from "../../../hooks/usePredefinedProperties.js";
|
|
13
13
|
import { FilterType } from "../constants/FilterConstants.js";
|
|
14
|
+
import "@mui/icons-material";
|
|
15
|
+
import { EquipmentType } from "../../../utils/types/equipmentType.js";
|
|
14
16
|
import * as yup from "yup";
|
|
15
17
|
function propertyValuesTest(values, context, doublePropertyValues) {
|
|
16
18
|
const rootLevelForm = context.from[context.from.length - 1];
|
|
@@ -92,7 +94,7 @@ function FilterProperties() {
|
|
|
92
94
|
}, [displayEquipmentProperties, watchEquipmentType, setEquipmentType]);
|
|
93
95
|
useEffect(() => {
|
|
94
96
|
if (displaySubstationProperties) {
|
|
95
|
-
setSubstationType(
|
|
97
|
+
setSubstationType(EquipmentType.SUBSTATION);
|
|
96
98
|
}
|
|
97
99
|
}, [displaySubstationProperties, setSubstationType]);
|
|
98
100
|
return watchEquipmentType && /* @__PURE__ */ jsx(Grid, { item: true, container: true, spacing: 1, children: /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, children: [
|
|
@@ -114,6 +116,6 @@ function FilterProperties() {
|
|
|
114
116
|
] }) });
|
|
115
117
|
}
|
|
116
118
|
export {
|
|
117
|
-
FilterProperties
|
|
119
|
+
FilterProperties,
|
|
118
120
|
filterPropertiesYupSchema
|
|
119
121
|
};
|
|
@@ -14,5 +14,5 @@ interface FilterPropertyProps {
|
|
|
14
14
|
predefined: PredefinedProperties;
|
|
15
15
|
propertyType: string;
|
|
16
16
|
}
|
|
17
|
-
declare function FilterProperty(props: FilterPropertyProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export
|
|
17
|
+
export declare function FilterProperty(props: FilterPropertyProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -4,9 +4,9 @@ import DeleteIcon from "@mui/icons-material/Delete";
|
|
|
4
4
|
import IconButton from "@mui/material/IconButton";
|
|
5
5
|
import Grid from "@mui/material/Grid";
|
|
6
6
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
7
|
-
import AutocompleteInput from "../../inputs/reactHookForm/autocompleteInputs/AutocompleteInput.js";
|
|
8
|
-
import MultipleAutocompleteInput from "../../inputs/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js";
|
|
9
|
-
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
7
|
+
import { AutocompleteInput } from "../../inputs/reactHookForm/autocompleteInputs/AutocompleteInput.js";
|
|
8
|
+
import { MultipleAutocompleteInput } from "../../inputs/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js";
|
|
9
|
+
import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
|
|
10
10
|
const PROPERTY_NAME = "name_property";
|
|
11
11
|
const PROPERTY_VALUES = "prop_values";
|
|
12
12
|
const PROPERTY_VALUES_1 = "prop_values1";
|
|
@@ -57,9 +57,9 @@ function FilterProperty(props) {
|
|
|
57
57
|
] });
|
|
58
58
|
}
|
|
59
59
|
export {
|
|
60
|
+
FilterProperty,
|
|
60
61
|
PROPERTY_NAME,
|
|
61
62
|
PROPERTY_VALUES,
|
|
62
63
|
PROPERTY_VALUES_1,
|
|
63
|
-
PROPERTY_VALUES_2
|
|
64
|
-
FilterProperty as default
|
|
64
|
+
PROPERTY_VALUES_2
|
|
65
65
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
1
|
+
import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
|
|
2
2
|
import { PROPERTY_VALUES, PROPERTY_VALUES_1, PROPERTY_VALUES_2, PROPERTY_NAME } from "./FilterProperty.js";
|
|
3
3
|
import { FilterType } from "../constants/FilterConstants.js";
|
|
4
4
|
import "../../../utils/yupConfig.js";
|