@gridsuite/commons-ui 0.64.5 → 0.65.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/{AuthenticationRouter → authentication}/AuthenticationRouter.d.ts +1 -1
- package/dist/components/{AuthenticationRouter → authentication}/AuthenticationRouter.js +5 -5
- package/dist/components/authentication/index.d.ts +12 -0
- package/dist/components/authentication/index.js +16 -0
- package/dist/{utils/AuthService.d.ts → components/authentication/utils/authService.d.ts} +1 -1
- package/dist/{utils/AuthService.js → components/authentication/utils/authService.js} +2 -2
- package/dist/components/cardErrorBoundary/index.d.ts +3 -0
- package/dist/components/cardErrorBoundary/index.js +4 -0
- package/dist/components/checkBoxList/CheckBoxList.d.ts +4 -0
- package/dist/components/{CheckBoxList/check-box-list.js → checkBoxList/CheckBoxList.js} +4 -4
- package/dist/components/{CheckBoxList/check-box-list-item.d.ts → checkBoxList/CheckBoxListItem.d.ts} +1 -1
- package/dist/components/{CheckBoxList/check-box-list-item.js → checkBoxList/CheckBoxListItem.js} +2 -2
- package/dist/components/{CheckBoxList/check-box-list-items.d.ts → checkBoxList/CheckBoxListItems.d.ts} +1 -1
- package/dist/components/{CheckBoxList/check-box-list-items.js → checkBoxList/CheckBoxListItems.js} +3 -3
- package/dist/components/{CheckBoxList/clickable-check-box-item.d.ts → checkBoxList/ClickableCheckBoxItem.d.ts} +1 -1
- package/dist/components/{CheckBoxList/clickable-check-box-item.js → checkBoxList/ClickableCheckBoxItem.js} +1 -1
- package/dist/components/{CheckBoxList/clickable-row-item.d.ts → checkBoxList/ClickableRowItem.d.ts} +1 -1
- package/dist/components/{CheckBoxList/clickable-row-item.js → checkBoxList/ClickableRowItem.js} +1 -1
- package/dist/components/{CheckBoxList/draggable-check-box-list-item.d.ts → checkBoxList/DraggableCheckBoxListItem.d.ts} +1 -1
- package/dist/components/{CheckBoxList/draggable-check-box-list-item.js → checkBoxList/DraggableCheckBoxListItem.js} +2 -2
- package/dist/components/{CheckBoxList/draggable-clickable-check-box-item.d.ts → checkBoxList/DraggableClickableCheckBoxItem.d.ts} +1 -1
- package/dist/components/{CheckBoxList/draggable-clickable-check-box-item.js → checkBoxList/DraggableClickableCheckBoxItem.js} +1 -1
- package/dist/components/{CheckBoxList/draggable-clickable-row-item.d.ts → checkBoxList/DraggableClickableRowItem.d.ts} +1 -1
- package/dist/components/{CheckBoxList/draggable-clickable-row-item.js → checkBoxList/DraggableClickableRowItem.js} +1 -1
- package/dist/components/checkBoxList/index.d.ts +4 -0
- package/dist/components/checkBoxList/index.js +4 -0
- package/dist/components/{CustomAGGrid/custom-aggrid.js → customAGGrid/customAggrid.js} +1 -1
- package/dist/components/dialogs/{custom-mui-dialog.d.ts → customMuiDialog/CustomMuiDialog.d.ts} +1 -1
- package/dist/components/dialogs/{custom-mui-dialog.js → customMuiDialog/CustomMuiDialog.js} +4 -4
- package/dist/components/dialogs/{description-modification-dialog.js → descriptionModificationDialog/DescriptionModificationDialog.js} +5 -5
- package/dist/components/dialogs/{modify-element-selection.d.ts → modifyElementSelection/ModifyElementSelection.d.ts} +1 -1
- package/dist/components/dialogs/{modify-element-selection.js → modifyElementSelection/ModifyElementSelection.js} +4 -4
- package/dist/components/dialogs/{popup-confirmation-dialog.js → popupConfirmationDialog/PopupConfirmationDialog.js} +1 -1
- package/dist/components/{DirectoryItemSelector/directory-item-selector.d.ts → directoryItemSelector/DirectoryItemSelector.d.ts} +1 -1
- package/dist/components/{DirectoryItemSelector/directory-item-selector.js → directoryItemSelector/DirectoryItemSelector.js} +3 -3
- package/dist/components/{ElementSearchDialog/equipment-item.d.ts → elementSearch/elementItem/EquipmentItem.d.ts} +2 -2
- package/dist/components/{ElementSearchDialog/equipment-item.js → elementSearch/elementItem/EquipmentItem.js} +4 -4
- package/dist/components/{ElementSearchDialog/element-search-dialog.d.ts → elementSearch/elementSearchDialog/ElementSearchDialog.d.ts} +1 -1
- package/dist/components/{ElementSearchDialog/element-search-dialog.js → elementSearch/elementSearchDialog/ElementSearchDialog.js} +1 -1
- package/dist/components/{ElementSearchDialog/use-element-search.js → elementSearch/hooks/useElementSearch.js} +2 -2
- package/dist/components/elementSearch/index.d.ts +13 -0
- package/dist/components/elementSearch/index.js +10 -0
- package/dist/components/{ElementSearchDialog/tag-renderer.d.ts → elementSearch/tagRenderer/TagRenderer.d.ts} +1 -1
- package/dist/components/{ElementSearchDialog/tag-renderer.js → elementSearch/tagRenderer/TagRenderer.js} +3 -3
- package/dist/components/expandableGroup/index.d.ts +4 -0
- package/dist/components/expandableGroup/index.js +4 -0
- package/dist/components/filter/{filter-creation-dialog.d.ts → FilterCreationDialog.d.ts} +1 -1
- package/dist/components/filter/{filter-creation-dialog.js → FilterCreationDialog.js} +9 -9
- package/dist/components/filter/{filter-form.d.ts → FilterForm.d.ts} +1 -1
- package/dist/components/filter/{filter-form.js → FilterForm.js} +9 -9
- package/dist/components/filter/{criteria-based/criteria-based-filter-edition-dialog.d.ts → criteriaBased/CriteriaBasedFilterEditionDialog.d.ts} +1 -1
- package/dist/components/filter/{criteria-based/criteria-based-filter-edition-dialog.js → criteriaBased/CriteriaBasedFilterEditionDialog.js} +8 -8
- package/dist/components/filter/{criteria-based/criteria-based-filter-form.d.ts → criteriaBased/CriteriaBasedFilterForm.d.ts} +1 -1
- package/dist/components/filter/{criteria-based/criteria-based-filter-form.js → criteriaBased/CriteriaBasedFilterForm.js} +7 -7
- package/dist/components/filter/{criteria-based/criteria-based-form.d.ts → criteriaBased/CriteriaBasedForm.d.ts} +1 -1
- package/dist/components/filter/{criteria-based/criteria-based-form.js → criteriaBased/CriteriaBasedForm.js} +3 -3
- package/dist/components/filter/{criteria-based/filter-free-properties.d.ts → criteriaBased/FilterFreeProperties.d.ts} +1 -1
- package/dist/components/filter/{criteria-based/filter-free-properties.js → criteriaBased/FilterFreeProperties.js} +5 -5
- package/dist/components/filter/{criteria-based/filter-properties.d.ts → criteriaBased/FilterProperties.d.ts} +1 -1
- package/dist/components/filter/{criteria-based/filter-properties.js → criteriaBased/FilterProperties.js} +7 -7
- package/dist/components/filter/{criteria-based/filter-property.d.ts → criteriaBased/FilterProperty.d.ts} +1 -1
- package/dist/components/filter/{criteria-based/filter-property.js → criteriaBased/FilterProperty.js} +3 -3
- package/dist/components/filter/{criteria-based/criteria-based-filter-utils.d.ts → criteriaBased/criteriaBasedFilterUtils.d.ts} +1 -1
- package/dist/components/filter/{criteria-based/criteria-based-filter-utils.js → criteriaBased/criteriaBasedFilterUtils.js} +6 -6
- package/dist/components/filter/expert/{expert-filter-edition-dialog.d.ts → ExpertFilterEditionDialog.d.ts} +1 -1
- package/dist/components/filter/expert/{expert-filter-edition-dialog.js → ExpertFilterEditionDialog.js} +10 -10
- package/dist/components/filter/expert/{expert-filter-form.d.ts → ExpertFilterForm.d.ts} +2 -2
- package/dist/components/filter/expert/{expert-filter-form.js → ExpertFilterForm.js} +9 -9
- package/dist/components/filter/expert/{expert-filter-constants.d.ts → expertFilterConstants.d.ts} +1 -1
- package/dist/components/filter/expert/{expert-filter-constants.js → expertFilterConstants.js} +1 -1
- package/dist/components/filter/expert/{expert-filter-utils.d.ts → expertFilterUtils.d.ts} +1 -1
- package/dist/components/filter/expert/{expert-filter-utils.js → expertFilterUtils.js} +3 -3
- package/dist/components/filter/{explicit-naming/explicit-naming-filter-edition-dialog.d.ts → explicitNaming/ExplicitNamingFilterEditionDialog.d.ts} +1 -1
- package/dist/components/filter/{explicit-naming/explicit-naming-filter-edition-dialog.js → explicitNaming/ExplicitNamingFilterEditionDialog.js} +9 -9
- package/dist/components/filter/{explicit-naming/explicit-naming-filter-form.d.ts → explicitNaming/ExplicitNamingFilterForm.d.ts} +3 -3
- package/dist/components/filter/{explicit-naming/explicit-naming-filter-form.js → explicitNaming/ExplicitNamingFilterForm.js} +12 -12
- package/dist/components/filter/utils/{filter-api.js → filterApi.js} +5 -5
- package/dist/components/filter/utils/{filter-form-utils.d.ts → filterFormUtils.d.ts} +1 -1
- package/dist/components/filter/utils/{filter-form-utils.js → filterFormUtils.js} +4 -4
- package/dist/components/{FlatParameters → flatParameters}/FlatParameters.js +1 -1
- package/dist/components/inputs/{select-clearable.js → SelectClearable.js} +1 -1
- package/dist/components/inputs/{react-hook-form/directory-items-input.js → reactHookForm/DirectoryItemsInput.js} +7 -7
- package/dist/components/inputs/{react-hook-form/ag-grid-table/bottom-right-buttons.js → reactHookForm/agGridTable/BottomRightButtons.js} +3 -3
- package/dist/components/inputs/{react-hook-form/ag-grid-table/custom-ag-grid-table.js → reactHookForm/agGridTable/CustomAgGridTable.js} +2 -2
- package/dist/components/inputs/{react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js → reactHookForm/agGridTable/csvUploader/CsvUploader.js} +2 -2
- package/dist/components/inputs/{react-hook-form/autocomplete-inputs/autocomplete-input.d.ts → reactHookForm/autocompleteInputs/AutocompleteInput.d.ts} +1 -1
- package/dist/components/inputs/{react-hook-form/autocomplete-inputs/autocomplete-input.js → reactHookForm/autocompleteInputs/AutocompleteInput.js} +2 -2
- package/dist/components/inputs/{react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js → reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js} +1 -1
- package/dist/components/inputs/{react-hook-form/booleans/checkbox-input.js → reactHookForm/booleans/CheckboxInput.js} +1 -1
- package/dist/components/inputs/{react-hook-form/radio-input.js → reactHookForm/booleans/RadioInput.js} +1 -1
- package/dist/components/inputs/{react-hook-form/booleans/switch-input.js → reactHookForm/booleans/SwitchInput.js} +1 -1
- package/dist/components/inputs/{react-hook-form/numbers/float-input.d.ts → reactHookForm/numbers/FloatInput.d.ts} +1 -1
- package/dist/components/inputs/{react-hook-form/numbers/float-input.js → reactHookForm/numbers/FloatInput.js} +1 -1
- package/dist/components/inputs/{react-hook-form/numbers/integer-input.d.ts → reactHookForm/numbers/IntegerInput.d.ts} +1 -1
- package/dist/components/inputs/{react-hook-form/numbers/integer-input.js → reactHookForm/numbers/IntegerInput.js} +1 -1
- package/dist/components/inputs/{react-hook-form/range-input.d.ts → reactHookForm/numbers/RangeInput.d.ts} +1 -1
- package/dist/components/inputs/{react-hook-form/range-input.js → reactHookForm/numbers/RangeInput.js} +4 -4
- package/dist/components/inputs/{react-hook-form/slider-input.js → reactHookForm/numbers/SliderInput.js} +1 -1
- package/dist/components/inputs/{react-hook-form/provider/custom-form-provider.js → reactHookForm/provider/CustomFormProvider.js} +1 -1
- package/dist/components/inputs/{react-hook-form/provider/use-custom-form-context.d.ts → reactHookForm/provider/useCustomFormContext.d.ts} +1 -1
- package/dist/components/inputs/{react-hook-form/provider/use-custom-form-context.js → reactHookForm/provider/useCustomFormContext.js} +1 -1
- package/dist/components/inputs/{react-hook-form/select-inputs/countries-input.js → reactHookForm/selectInputs/CountriesInput.js} +3 -3
- package/dist/components/inputs/{react-hook-form/select-inputs/input-with-popup-confirmation.js → reactHookForm/selectInputs/InputWithPopupConfirmation.js} +1 -1
- package/dist/components/inputs/{react-hook-form/select-inputs/select-input.d.ts → reactHookForm/selectInputs/SelectInput.d.ts} +2 -2
- package/dist/components/inputs/{react-hook-form/select-inputs/select-input.js → reactHookForm/selectInputs/SelectInput.js} +1 -1
- package/dist/components/inputs/{react-hook-form/description-field.js → reactHookForm/text/DescriptionField.js} +1 -1
- package/dist/components/inputs/{react-hook-form → reactHookForm/text}/ExpandingTextField.d.ts +1 -1
- package/dist/components/inputs/{react-hook-form → reactHookForm/text}/ExpandingTextField.js +2 -2
- package/dist/components/inputs/{react-hook-form/text-input.d.ts → reactHookForm/text/TextInput.d.ts} +2 -2
- package/dist/components/inputs/{react-hook-form/text-input.js → reactHookForm/text/TextInput.js} +4 -4
- package/dist/components/inputs/{react-hook-form/unique-name-input.d.ts → reactHookForm/text/UniqueNameInput.d.ts} +1 -1
- package/dist/components/inputs/{react-hook-form/unique-name-input.js → reactHookForm/text/UniqueNameInput.js} +2 -2
- package/dist/components/inputs/{react-hook-form/utils/text-field-with-adornment.d.ts → reactHookForm/utils/TextFieldWithAdornment.d.ts} +1 -1
- package/dist/components/inputs/{react-query-builder/combinator-selector.js → reactQueryBuilder/CombinatorSelector.js} +1 -1
- package/dist/components/inputs/{react-query-builder/country-value-editor.js → reactQueryBuilder/CountryValueEditor.js} +6 -6
- package/dist/components/inputs/{react-query-builder/custom-react-query-builder.js → reactQueryBuilder/CustomReactQueryBuilder.js} +9 -9
- package/dist/components/inputs/{react-query-builder/element-value-editor.js → reactQueryBuilder/ElementValueEditor.js} +2 -2
- package/dist/components/inputs/{react-query-builder/property-value-editor.js → reactQueryBuilder/PropertyValueEditor.js} +4 -4
- package/dist/components/inputs/{react-query-builder/remove-button.js → reactQueryBuilder/RemoveButton.js} +1 -1
- package/dist/components/inputs/{react-query-builder/text-value-editor.js → reactQueryBuilder/TextValueEditor.js} +2 -2
- package/dist/components/inputs/{react-query-builder/translated-value-editor.js → reactQueryBuilder/TranslatedValueEditor.js} +2 -2
- package/dist/components/inputs/{react-query-builder/value-editor.js → reactQueryBuilder/ValueEditor.js} +12 -12
- package/dist/components/inputs/{react-query-builder/composite-rule-editor/group-value-editor.d.ts → reactQueryBuilder/compositeRuleEditor/GroupValueEditor.d.ts} +1 -1
- package/dist/components/inputs/{react-query-builder/composite-rule-editor/group-value-editor.js → reactQueryBuilder/compositeRuleEditor/GroupValueEditor.js} +1 -1
- package/dist/components/inputs/{react-query-builder/composite-rule-editor/rule-value-editor.d.ts → reactQueryBuilder/compositeRuleEditor/RuleValueEditor.d.ts} +1 -1
- package/dist/components/inputs/{react-query-builder/use-convert-value.js → reactQueryBuilder/hooks/useConvertValue.js} +1 -1
- package/dist/components/{MuiVirtualizedTable → muiVirtualizedTable}/MuiVirtualizedTable.js +1 -1
- package/dist/components/{MultipleSelectionDialog → multipleSelectionDialog}/MultipleSelectionDialog.d.ts +1 -1
- package/dist/components/{MultipleSelectionDialog → multipleSelectionDialog}/MultipleSelectionDialog.js +2 -2
- package/dist/components/overflowableText/index.d.ts +4 -0
- package/dist/components/overflowableText/index.js +4 -0
- package/dist/components/{TopBar → topBar}/TopBar.d.ts +1 -1
- package/dist/components/{TreeViewFinder → treeViewFinder}/TreeViewFinder.js +1 -1
- package/dist/hooks/useConfidentialityWarning.js +1 -1
- package/dist/hooks/{localized-countries-hook.js → useLocalizedCountries.js} +1 -1
- package/dist/hooks/{predefined-properties-hook.d.ts → usePredefinedProperties.d.ts} +1 -1
- package/dist/hooks/{predefined-properties-hook.js → usePredefinedProperties.js} +2 -2
- package/dist/index.d.ts +166 -171
- package/dist/index.js +215 -213
- package/dist/services/{apps-metadata.d.ts → appsMetadata.d.ts} +1 -1
- package/dist/services/directory.d.ts +1 -1
- package/dist/services/explore.d.ts +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +1 -1
- package/dist/utils/{ElementIcon.d.ts → mapper/elementIcon.d.ts} +1 -1
- package/dist/utils/{ElementIcon.js → mapper/elementIcon.js} +1 -1
- package/dist/utils/{equipment-types-for-predefined-properties-mapper.d.ts → mapper/equipmentTypesForPredefinedPropertiesMapper.d.ts} +1 -1
- package/dist/utils/{EquipmentType.js → types/equipmentType.js} +1 -1
- package/dist/utils/{types.d.ts → types/types.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/components/AuthenticationRouter/index.d.ts +0 -4
- package/dist/components/AuthenticationRouter/index.js +0 -4
- package/dist/components/CardErrorBoundary/index.d.ts +0 -3
- package/dist/components/CardErrorBoundary/index.js +0 -4
- package/dist/components/CheckBoxList/check-box-list.d.ts +0 -4
- package/dist/components/CheckBoxList/index.d.ts +0 -3
- package/dist/components/CheckBoxList/index.js +0 -4
- package/dist/components/ElementSearchDialog/index.d.ts +0 -13
- package/dist/components/ElementSearchDialog/index.js +0 -10
- package/dist/components/ExpandableGroup/index.d.ts +0 -4
- package/dist/components/ExpandableGroup/index.js +0 -4
- package/dist/components/Login/index.d.ts +0 -3
- package/dist/components/Login/index.js +0 -4
- package/dist/components/OverflowableText/index.d.ts +0 -4
- package/dist/components/OverflowableText/index.js +0 -4
- package/dist/components/ReportViewer/filter-button.d.ts +0 -11
- package/dist/components/ReportViewer/filter-button.js +0 -62
- package/dist/components/ReportViewer/index.d.ts +0 -4
- package/dist/components/ReportViewer/index.js +0 -4
- package/dist/components/ReportViewer/log-report-item.d.ts +0 -18
- package/dist/components/ReportViewer/log-report-item.js +0 -54
- package/dist/components/ReportViewer/log-report.d.ts +0 -20
- package/dist/components/ReportViewer/log-report.js +0 -41
- package/dist/components/ReportViewer/log-severity.d.ts +0 -13
- package/dist/components/ReportViewer/log-severity.js +0 -35
- package/dist/components/ReportViewer/log-table.d.ts +0 -11
- package/dist/components/ReportViewer/log-table.js +0 -121
- package/dist/components/ReportViewer/multi-select-list.d.ts +0 -17
- package/dist/components/ReportViewer/multi-select-list.js +0 -27
- package/dist/components/ReportViewer/report-item.d.ts +0 -13
- package/dist/components/ReportViewer/report-item.js +0 -100
- package/dist/components/ReportViewer/report-tree-view-context.d.ts +0 -12
- package/dist/components/ReportViewer/report-tree-view-context.js +0 -8
- package/dist/components/ReportViewer/report-viewer.d.ts +0 -7
- package/dist/components/ReportViewer/report-viewer.js +0 -154
- package/dist/components/ReportViewer/report.type.d.ts +0 -22
- package/dist/components/ReportViewerDialog/index.d.ts +0 -4
- package/dist/components/ReportViewerDialog/index.js +0 -4
- package/dist/components/ReportViewerDialog/report-viewer-dialog.d.ts +0 -9
- package/dist/components/ReportViewerDialog/report-viewer-dialog.js +0 -49
- package/dist/components/SignInCallbackHandler/index.d.ts +0 -3
- package/dist/components/SignInCallbackHandler/index.js +0 -4
- package/dist/components/SilentRenewCallbackHandler/index.d.ts +0 -3
- package/dist/components/SilentRenewCallbackHandler/index.js +0 -4
- package/dist/utils/Metadata.js +0 -1
- /package/dist/assets/{expert-filter-form.css → ExpertFilterForm.css} +0 -0
- /package/dist/components/{Login → authentication}/Login.d.ts +0 -0
- /package/dist/components/{Login → authentication}/Login.js +0 -0
- /package/dist/components/{Login → authentication}/Logout.d.ts +0 -0
- /package/dist/components/{Login → authentication}/Logout.js +0 -0
- /package/dist/components/{SignInCallbackHandler → authentication}/SignInCallbackHandler.d.ts +0 -0
- /package/dist/components/{SignInCallbackHandler → authentication}/SignInCallbackHandler.js +0 -0
- /package/dist/components/{SilentRenewCallbackHandler → authentication}/SilentRenewCallbackHandler.d.ts +0 -0
- /package/dist/components/{SilentRenewCallbackHandler → authentication}/SilentRenewCallbackHandler.js +0 -0
- /package/dist/{utils/UserManagerMock.d.ts → components/authentication/utils/userManagerMock.d.ts} +0 -0
- /package/dist/{utils/UserManagerMock.js → components/authentication/utils/userManagerMock.js} +0 -0
- /package/dist/components/{CardErrorBoundary/card-error-boundary.d.ts → cardErrorBoundary/CardErrorBoundary.d.ts} +0 -0
- /package/dist/components/{CardErrorBoundary/card-error-boundary.js → cardErrorBoundary/CardErrorBoundary.js} +0 -0
- /package/dist/components/{CheckBoxList/check-box-list-type.d.ts → checkBoxList/checkBoxList.type.d.ts} +0 -0
- /package/dist/components/{CheckBoxList/check-box-list-type.js → checkBoxList/checkBoxList.type.js} +0 -0
- /package/dist/components/{CustomAGGrid/custom-aggrid.d.ts → customAGGrid/customAggrid.d.ts} +0 -0
- /package/dist/components/{CustomAGGrid/custom-aggrid.style.d.ts → customAGGrid/customAggrid.style.d.ts} +0 -0
- /package/dist/components/{CustomAGGrid/custom-aggrid.style.js → customAGGrid/customAggrid.style.js} +0 -0
- /package/dist/components/dialogs/{description-modification-dialog.d.ts → descriptionModificationDialog/DescriptionModificationDialog.d.ts} +0 -0
- /package/dist/components/dialogs/{popup-confirmation-dialog.d.ts → popupConfirmationDialog/PopupConfirmationDialog.d.ts} +0 -0
- /package/dist/components/{ElementSearchDialog/element-search-input.d.ts → elementSearch/elementSearchInput/ElementSearchInput.d.ts} +0 -0
- /package/dist/components/{ElementSearchDialog/element-search-input.js → elementSearch/elementSearchInput/ElementSearchInput.js} +0 -0
- /package/dist/components/{ElementSearchDialog/use-element-search.d.ts → elementSearch/hooks/useElementSearch.d.ts} +0 -0
- /package/dist/components/{ExpandableGroup/expandable-group.d.ts → expandableGroup/ExpandableGroup.d.ts} +0 -0
- /package/dist/components/{ExpandableGroup/expandable-group.js → expandableGroup/ExpandableGroup.js} +0 -0
- /package/dist/components/filter/constants/{filter-constants.d.ts → FilterConstants.d.ts} +0 -0
- /package/dist/components/filter/constants/{filter-constants.js → FilterConstants.js} +0 -0
- /package/dist/components/filter/expert/{expert-filter.type.d.ts → expertFilter.type.d.ts} +0 -0
- /package/dist/components/filter/expert/{expert-filter.type.js → expertFilter.type.js} +0 -0
- /package/dist/components/filter/utils/{filter-api.d.ts → filterApi.d.ts} +0 -0
- /package/dist/components/{FlatParameters → flatParameters}/FlatParameters.d.ts +0 -0
- /package/dist/components/{FlatParameters → flatParameters}/index.d.ts +0 -0
- /package/dist/components/{FlatParameters → flatParameters}/index.js +0 -0
- /package/dist/components/inputs/{select-clearable.d.ts → SelectClearable.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/directory-items-input.d.ts → reactHookForm/DirectoryItemsInput.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/raw-read-only-input.d.ts → reactHookForm/RawReadOnlyInput.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/raw-read-only-input.js → reactHookForm/RawReadOnlyInput.js} +0 -0
- /package/dist/components/inputs/{react-hook-form/ag-grid-table/bottom-right-buttons.d.ts → reactHookForm/agGridTable/BottomRightButtons.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/ag-grid-table/custom-ag-grid-table.d.ts → reactHookForm/agGridTable/CustomAgGridTable.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/ag-grid-table/cell-editors → reactHookForm/agGridTable/cellEditors}/numericEditor.d.ts +0 -0
- /package/dist/components/inputs/{react-hook-form/ag-grid-table/cell-editors → reactHookForm/agGridTable/cellEditors}/numericEditor.js +0 -0
- /package/dist/components/inputs/{react-hook-form/ag-grid-table/csv-uploader/csv-uploader.d.ts → reactHookForm/agGridTable/csvUploader/CsvUploader.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/autocomplete-inputs/multiple-autocomplete-input.d.ts → reactHookForm/autocompleteInputs/MultipleAutocompleteInput.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/booleans/boolean-input.d.ts → reactHookForm/booleans/BooleanInput.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/booleans/boolean-input.js → reactHookForm/booleans/BooleanInput.js} +0 -0
- /package/dist/components/inputs/{react-hook-form/booleans/checkbox-input.d.ts → reactHookForm/booleans/CheckboxInput.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/radio-input.d.ts → reactHookForm/booleans/RadioInput.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/booleans/switch-input.d.ts → reactHookForm/booleans/SwitchInput.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/error-management/error-input.d.ts → reactHookForm/errorManagement/ErrorInput.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/error-management/error-input.js → reactHookForm/errorManagement/ErrorInput.js} +0 -0
- /package/dist/components/inputs/{react-hook-form/error-management/field-error-alert.d.ts → reactHookForm/errorManagement/FieldErrorAlert.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/error-management/field-error-alert.js → reactHookForm/errorManagement/FieldErrorAlert.js} +0 -0
- /package/dist/components/inputs/{react-hook-form/error-management/mid-form-error.d.ts → reactHookForm/errorManagement/MidFormError.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/error-management/mid-form-error.js → reactHookForm/errorManagement/MidFormError.js} +0 -0
- /package/dist/components/inputs/{react-hook-form/slider-input.d.ts → reactHookForm/numbers/SliderInput.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form → reactHookForm}/numbers/utils.d.ts +0 -0
- /package/dist/components/inputs/{react-hook-form → reactHookForm}/numbers/utils.js +0 -0
- /package/dist/components/inputs/{react-hook-form/provider/custom-form-provider.d.ts → reactHookForm/provider/CustomFormProvider.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/select-inputs/countries-input.d.ts → reactHookForm/selectInputs/CountriesInput.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/select-inputs/input-with-popup-confirmation.d.ts → reactHookForm/selectInputs/InputWithPopupConfirmation.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/select-inputs/mui-select-input.d.ts → reactHookForm/selectInputs/MuiSelectInput.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/select-inputs/mui-select-input.js → reactHookForm/selectInputs/MuiSelectInput.js} +0 -0
- /package/dist/components/inputs/{react-hook-form/description-field.d.ts → reactHookForm/text/DescriptionField.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/utils/cancel-button.d.ts → reactHookForm/utils/CancelButton.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/utils/cancel-button.js → reactHookForm/utils/CancelButton.js} +0 -0
- /package/dist/components/inputs/{react-hook-form/utils/field-label.d.ts → reactHookForm/utils/FieldLabel.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/utils/field-label.js → reactHookForm/utils/FieldLabel.js} +0 -0
- /package/dist/components/inputs/{react-hook-form/utils/submit-button.d.ts → reactHookForm/utils/SubmitButton.d.ts} +0 -0
- /package/dist/components/inputs/{react-hook-form/utils/submit-button.js → reactHookForm/utils/SubmitButton.js} +0 -0
- /package/dist/components/inputs/{react-hook-form/utils/text-field-with-adornment.js → reactHookForm/utils/TextFieldWithAdornment.js} +0 -0
- /package/dist/components/inputs/{react-hook-form → reactHookForm}/utils/functions.d.ts +0 -0
- /package/dist/components/inputs/{react-hook-form → reactHookForm}/utils/functions.js +0 -0
- /package/dist/components/inputs/{react-query-builder/add-button.d.ts → reactQueryBuilder/AddButton.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/add-button.js → reactQueryBuilder/AddButton.js} +0 -0
- /package/dist/components/inputs/{react-query-builder/autocomplete-with-favorites.d.ts → reactQueryBuilder/AutocompleteWithFavorites.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/autocomplete-with-favorites.js → reactQueryBuilder/AutocompleteWithFavorites.js} +0 -0
- /package/dist/components/inputs/{react-query-builder/combinator-selector.d.ts → reactQueryBuilder/CombinatorSelector.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/country-value-editor.d.ts → reactQueryBuilder/CountryValueEditor.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/custom-react-query-builder.d.ts → reactQueryBuilder/CustomReactQueryBuilder.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/element-value-editor.d.ts → reactQueryBuilder/ElementValueEditor.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/property-value-editor.d.ts → reactQueryBuilder/PropertyValueEditor.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/remove-button.d.ts → reactQueryBuilder/RemoveButton.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/text-value-editor.d.ts → reactQueryBuilder/TextValueEditor.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/translated-value-editor.d.ts → reactQueryBuilder/TranslatedValueEditor.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/value-editor.d.ts → reactQueryBuilder/ValueEditor.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/value-selector.d.ts → reactQueryBuilder/ValueSelector.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/value-selector.js → reactQueryBuilder/ValueSelector.js} +0 -0
- /package/dist/components/inputs/{react-query-builder/composite-rule-editor/rule-value-editor.js → reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js} +0 -0
- /package/dist/components/inputs/{react-query-builder/use-convert-value.d.ts → reactQueryBuilder/hooks/useConvertValue.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/use-valid.d.ts → reactQueryBuilder/hooks/useValid.d.ts} +0 -0
- /package/dist/components/inputs/{react-query-builder/use-valid.js → reactQueryBuilder/hooks/useValid.js} +0 -0
- /package/dist/components/{MuiVirtualizedTable → muiVirtualizedTable}/ColumnHeader.d.ts +0 -0
- /package/dist/components/{MuiVirtualizedTable → muiVirtualizedTable}/ColumnHeader.js +0 -0
- /package/dist/components/{MuiVirtualizedTable → muiVirtualizedTable}/KeyedColumnsRowIndexer.d.ts +0 -0
- /package/dist/components/{MuiVirtualizedTable → muiVirtualizedTable}/KeyedColumnsRowIndexer.js +0 -0
- /package/dist/components/{MuiVirtualizedTable → muiVirtualizedTable}/MuiVirtualizedTable.d.ts +0 -0
- /package/dist/components/{MuiVirtualizedTable → muiVirtualizedTable}/index.d.ts +0 -0
- /package/dist/components/{MuiVirtualizedTable → muiVirtualizedTable}/index.js +0 -0
- /package/dist/components/{MultipleSelectionDialog → multipleSelectionDialog}/index.d.ts +0 -0
- /package/dist/components/{MultipleSelectionDialog → multipleSelectionDialog}/index.js +0 -0
- /package/dist/components/{OverflowableText/overflowable-text.d.ts → overflowableText/OverflowableText.d.ts} +0 -0
- /package/dist/components/{OverflowableText/overflowable-text.js → overflowableText/OverflowableText.js} +0 -0
- /package/dist/components/{SnackbarProvider → snackbarProvider}/SnackbarProvider.d.ts +0 -0
- /package/dist/components/{SnackbarProvider → snackbarProvider}/SnackbarProvider.js +0 -0
- /package/dist/components/{SnackbarProvider → snackbarProvider}/index.d.ts +0 -0
- /package/dist/components/{SnackbarProvider → snackbarProvider}/index.js +0 -0
- /package/dist/components/{TopBar → topBar}/AboutDialog.d.ts +0 -0
- /package/dist/components/{TopBar → topBar}/AboutDialog.js +0 -0
- /package/dist/components/{TopBar → topBar}/GridLogo.d.ts +0 -0
- /package/dist/components/{TopBar → topBar}/GridLogo.js +0 -0
- /package/dist/components/{TopBar → topBar}/TopBar.js +0 -0
- /package/dist/components/{TopBar → topBar}/index.d.ts +0 -0
- /package/dist/components/{TopBar → topBar}/index.js +0 -0
- /package/dist/components/{TopBar → topBar/tests}/TopBar.test.d.ts +0 -0
- /package/dist/components/{TreeViewFinder → treeViewFinder}/TreeViewFinder.d.ts +0 -0
- /package/dist/components/{TreeViewFinder → treeViewFinder}/index.d.ts +0 -0
- /package/dist/components/{TreeViewFinder → treeViewFinder}/index.js +0 -0
- /package/dist/hooks/{localized-countries-hook.d.ts → useLocalizedCountries.d.ts} +0 -0
- /package/dist/redux/{authActions.d.ts → actions/authActions.d.ts} +0 -0
- /package/dist/redux/{authActions.js → actions/authActions.js} +0 -0
- /package/dist/services/{apps-metadata.js → appsMetadata.js} +0 -0
- /package/dist/{components/translations/card-error-boundary-en.d.ts → translations/en/cardErrorBoundaryEn.d.ts} +0 -0
- /package/dist/{components/translations/card-error-boundary-en.js → translations/en/cardErrorBoundaryEn.js} +0 -0
- /package/dist/{components/translations/common-button-en.d.ts → translations/en/commonButtonEn.d.ts} +0 -0
- /package/dist/{components/translations/common-button-en.js → translations/en/commonButtonEn.js} +0 -0
- /package/dist/{components/translations/csv-en.d.ts → translations/en/csvEn.d.ts} +0 -0
- /package/dist/{components/translations/csv-en.js → translations/en/csvEn.js} +0 -0
- /package/dist/{components/translations/description-en.d.ts → translations/en/descriptionEn.d.ts} +0 -0
- /package/dist/{components/translations/description-en.js → translations/en/descriptionEn.js} +0 -0
- /package/dist/{components/translations/directory-items-input-en.d.ts → translations/en/directoryItemsInputEn.d.ts} +0 -0
- /package/dist/{components/translations/directory-items-input-en.js → translations/en/directoryItemsInputEn.js} +0 -0
- /package/dist/{components/translations/element-search-en.d.ts → translations/en/elementSearchEn.d.ts} +0 -0
- /package/dist/{components/translations/element-search-en.js → translations/en/elementSearchEn.js} +0 -0
- /package/dist/{components/translations/equipment-search-en.d.ts → translations/en/equipmentSearchEn.d.ts} +0 -0
- /package/dist/{components/translations/equipment-search-en.js → translations/en/equipmentSearchEn.js} +0 -0
- /package/dist/{components/translations/equipments-en.d.ts → translations/en/equipmentsEn.d.ts} +0 -0
- /package/dist/{components/translations/equipments-en.js → translations/en/equipmentsEn.js} +0 -0
- /package/dist/{components/translations/filter-en.d.ts → translations/en/filterEn.d.ts} +0 -0
- /package/dist/{components/translations/filter-en.js → translations/en/filterEn.js} +0 -0
- /package/dist/{components/translations/filter-expert-en.d.ts → translations/en/filterExpertEn.d.ts} +0 -0
- /package/dist/{components/translations/filter-expert-en.js → translations/en/filterExpertEn.js} +0 -0
- /package/dist/{components/translations/flat-parameters-en.d.ts → translations/en/flatParametersEn.d.ts} +0 -0
- /package/dist/{components/translations/flat-parameters-en.js → translations/en/flatParametersEn.js} +0 -0
- /package/dist/{components/translations/inputs-en.d.ts → translations/en/inputsEn.d.ts} +0 -0
- /package/dist/{components/translations/inputs-en.js → translations/en/inputsEn.js} +0 -0
- /package/dist/{components/translations/login-en.d.ts → translations/en/loginEn.d.ts} +0 -0
- /package/dist/{components/translations/login-en.js → translations/en/loginEn.js} +0 -0
- /package/dist/{components/translations/multiple-selection-dialog-en.d.ts → translations/en/multipleSelectionDialogEn.d.ts} +0 -0
- /package/dist/{components/translations/multiple-selection-dialog-en.js → translations/en/multipleSelectionDialogEn.js} +0 -0
- /package/dist/{components/translations/report-viewer-en.d.ts → translations/en/reportViewerEn.d.ts} +0 -0
- /package/dist/{components/translations/report-viewer-en.js → translations/en/reportViewerEn.js} +0 -0
- /package/dist/{components/translations/table-en.d.ts → translations/en/tableEn.d.ts} +0 -0
- /package/dist/{components/translations/table-en.js → translations/en/tableEn.js} +0 -0
- /package/dist/{components/translations/top-bar-en.d.ts → translations/en/topBarEn.d.ts} +0 -0
- /package/dist/{components/translations/top-bar-en.js → translations/en/topBarEn.js} +0 -0
- /package/dist/{components/translations/treeview-finder-en.d.ts → translations/en/treeviewFinderEn.d.ts} +0 -0
- /package/dist/{components/translations/treeview-finder-en.js → translations/en/treeviewFinderEn.js} +0 -0
- /package/dist/{components/translations/card-error-boundary-fr.d.ts → translations/fr/cardErrorBoundaryFr.d.ts} +0 -0
- /package/dist/{components/translations/card-error-boundary-fr.js → translations/fr/cardErrorBoundaryFr.js} +0 -0
- /package/dist/{components/translations/common-button-fr.d.ts → translations/fr/commonButtonFr.d.ts} +0 -0
- /package/dist/{components/translations/common-button-fr.js → translations/fr/commonButtonFr.js} +0 -0
- /package/dist/{components/translations/csv-fr.d.ts → translations/fr/csvFr.d.ts} +0 -0
- /package/dist/{components/translations/csv-fr.js → translations/fr/csvFr.js} +0 -0
- /package/dist/{components/translations/description-fr.d.ts → translations/fr/descriptionFr.d.ts} +0 -0
- /package/dist/{components/translations/description-fr.js → translations/fr/descriptionFr.js} +0 -0
- /package/dist/{components/translations/directory-items-input-fr.d.ts → translations/fr/directoryItemsInputFr.d.ts} +0 -0
- /package/dist/{components/translations/directory-items-input-fr.js → translations/fr/directoryItemsInputFr.js} +0 -0
- /package/dist/{components/translations/element-search-fr.d.ts → translations/fr/elementSearchFr.d.ts} +0 -0
- /package/dist/{components/translations/element-search-fr.js → translations/fr/elementSearchFr.js} +0 -0
- /package/dist/{components/translations/equipment-search-fr.d.ts → translations/fr/equipmentSearchFr.d.ts} +0 -0
- /package/dist/{components/translations/equipment-search-fr.js → translations/fr/equipmentSearchFr.js} +0 -0
- /package/dist/{components/translations/equipments-fr.d.ts → translations/fr/equipmentsFr.d.ts} +0 -0
- /package/dist/{components/translations/equipments-fr.js → translations/fr/equipmentsFr.js} +0 -0
- /package/dist/{components/translations/filter-expert-fr.d.ts → translations/fr/filterExpertFr.d.ts} +0 -0
- /package/dist/{components/translations/filter-expert-fr.js → translations/fr/filterExpertFr.js} +0 -0
- /package/dist/{components/translations/filter-fr.d.ts → translations/fr/filterFr.d.ts} +0 -0
- /package/dist/{components/translations/filter-fr.js → translations/fr/filterFr.js} +0 -0
- /package/dist/{components/translations/flat-parameters-fr.d.ts → translations/fr/flatParametersFr.d.ts} +0 -0
- /package/dist/{components/translations/flat-parameters-fr.js → translations/fr/flatParametersFr.js} +0 -0
- /package/dist/{components/translations/inputs-fr.d.ts → translations/fr/inputsFr.d.ts} +0 -0
- /package/dist/{components/translations/inputs-fr.js → translations/fr/inputsFr.js} +0 -0
- /package/dist/{components/translations/login-fr.d.ts → translations/fr/loginFr.d.ts} +0 -0
- /package/dist/{components/translations/login-fr.js → translations/fr/loginFr.js} +0 -0
- /package/dist/{components/translations/multiple-selection-dialog-fr.d.ts → translations/fr/multipleSelectionDialogFr.d.ts} +0 -0
- /package/dist/{components/translations/multiple-selection-dialog-fr.js → translations/fr/multipleSelectionDialogFr.js} +0 -0
- /package/dist/{components/translations/report-viewer-fr.d.ts → translations/fr/reportViewerFr.d.ts} +0 -0
- /package/dist/{components/translations/report-viewer-fr.js → translations/fr/reportViewerFr.js} +0 -0
- /package/dist/{components/translations/table-fr.d.ts → translations/fr/tableFr.d.ts} +0 -0
- /package/dist/{components/translations/table-fr.js → translations/fr/tableFr.js} +0 -0
- /package/dist/{components/translations/top-bar-fr.d.ts → translations/fr/topBarFr.d.ts} +0 -0
- /package/dist/{components/translations/top-bar-fr.js → translations/fr/topBarFr.js} +0 -0
- /package/dist/{components/translations/treeview-finder-fr.d.ts → translations/fr/treeviewFinderFr.d.ts} +0 -0
- /package/dist/{components/translations/treeview-finder-fr.js → translations/fr/treeviewFinderFr.js} +0 -0
- /package/dist/utils/{FetchStatus.d.ts → constants/fetchStatus.d.ts} +0 -0
- /package/dist/utils/{FetchStatus.js → constants/fetchStatus.js} +0 -0
- /package/dist/utils/{field-constants.d.ts → constants/fieldConstants.d.ts} +0 -0
- /package/dist/utils/{field-constants.js → constants/fieldConstants.js} +0 -0
- /package/dist/utils/{conversion-utils.d.ts → conversionUtils.d.ts} +0 -0
- /package/dist/utils/{conversion-utils.js → conversionUtils.js} +0 -0
- /package/dist/utils/{equipment-types-for-predefined-properties-mapper.js → mapper/equipmentTypesForPredefinedPropertiesMapper.js} +0 -0
- /package/dist/utils/{ElementType.d.ts → types/elementType.d.ts} +0 -0
- /package/dist/utils/{ElementType.js → types/elementType.js} +0 -0
- /package/dist/utils/{EquipmentType.d.ts → types/equipmentType.d.ts} +0 -0
- /package/dist/utils/{equipment-types.d.ts → types/equipmentTypes.d.ts} +0 -0
- /package/dist/utils/{equipment-types.js → types/equipmentTypes.js} +0 -0
- /package/dist/utils/{Metadata.d.ts → types/metadata.d.ts} +0 -0
- /package/dist/{components/ReportViewer/report.type.js → utils/types/metadata.js} +0 -0
- /package/dist/utils/{types.js → types/types.js} +0 -0
- /package/dist/utils/{yup-config.d.ts → yupConfig.d.ts} +0 -0
- /package/dist/utils/{yup-config.js → yupConfig.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import Grid from "@mui/material/Grid";
|
|
3
|
-
import FilterProperties, { filterPropertiesYupSchema } from "./
|
|
4
|
-
import FieldConstants from "../../../utils/
|
|
5
|
-
import "../../../utils/
|
|
6
|
-
import CriteriaBasedForm from "./
|
|
7
|
-
import { getCriteriaBasedSchema, getCriteriaBasedFormData } from "./
|
|
8
|
-
import { FILTER_EQUIPMENTS } from "../utils/
|
|
9
|
-
import { FreePropertiesTypes } from "./
|
|
3
|
+
import FilterProperties, { filterPropertiesYupSchema } from "./FilterProperties.js";
|
|
4
|
+
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
5
|
+
import "../../../utils/yupConfig.js";
|
|
6
|
+
import CriteriaBasedForm from "./CriteriaBasedForm.js";
|
|
7
|
+
import { getCriteriaBasedSchema, getCriteriaBasedFormData } from "./criteriaBasedFilterUtils.js";
|
|
8
|
+
import { FILTER_EQUIPMENTS } from "../utils/filterFormUtils.js";
|
|
9
|
+
import { FreePropertiesTypes } from "./FilterFreeProperties.js";
|
|
10
10
|
import * as yup from "yup";
|
|
11
11
|
const criteriaBasedFilterSchema = getCriteriaBasedSchema({
|
|
12
12
|
[FieldConstants.ENERGY_SOURCE]: yup.string().nullable(),
|
|
@@ -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/
|
|
6
|
-
import SelectInput from "../../inputs/
|
|
7
|
-
import InputWithPopupConfirmation from "../../inputs/
|
|
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();
|
|
@@ -4,11 +4,11 @@ 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/
|
|
8
|
-
import FieldErrorAlert from "../../inputs/
|
|
9
|
-
import FieldConstants from "../../../utils/
|
|
10
|
-
import FilterProperty, { PROPERTY_NAME, PROPERTY_VALUES_1, PROPERTY_VALUES_2, PROPERTY_VALUES } from "./
|
|
11
|
-
import { Line, Hvdc } from "../../../utils/
|
|
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
|
+
import { Line, Hvdc } from "../../../utils/types/equipmentTypes.js";
|
|
12
12
|
var FreePropertiesTypes = /* @__PURE__ */ ((FreePropertiesTypes2) => {
|
|
13
13
|
FreePropertiesTypes2["SUBSTATION_FILTER_PROPERTIES"] = "substationFreeProperties";
|
|
14
14
|
FreePropertiesTypes2["FREE_FILTER_PROPERTIES"] = "freeProperties";
|
|
@@ -3,14 +3,14 @@ import Grid from "@mui/material/Grid";
|
|
|
3
3
|
import { useMemo, useEffect } from "react";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import { FormattedMessage } from "react-intl";
|
|
6
|
-
import { Line, Hvdc, Substation, Load, Generator, TwoWindingTransfo, Battery, ShuntCompensator, VoltageLevel } from "../../../utils/
|
|
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/
|
|
9
|
-
import "../../../utils/
|
|
10
|
-
import FilterFreeProperties, { FreePropertiesTypes } from "./
|
|
11
|
-
import { PROPERTY_NAME, PROPERTY_VALUES, PROPERTY_VALUES_1, PROPERTY_VALUES_2 } from "./
|
|
12
|
-
import usePredefinedProperties from "../../../hooks/
|
|
13
|
-
import { FilterType } from "../constants/
|
|
8
|
+
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
9
|
+
import "../../../utils/yupConfig.js";
|
|
10
|
+
import FilterFreeProperties, { FreePropertiesTypes } from "./FilterFreeProperties.js";
|
|
11
|
+
import { PROPERTY_NAME, PROPERTY_VALUES, PROPERTY_VALUES_1, PROPERTY_VALUES_2 } from "./FilterProperty.js";
|
|
12
|
+
import usePredefinedProperties from "../../../hooks/usePredefinedProperties.js";
|
|
13
|
+
import { FilterType } from "../constants/FilterConstants.js";
|
|
14
14
|
import * as yup from "yup";
|
|
15
15
|
function propertyValuesTest(values, context, doublePropertyValues) {
|
|
16
16
|
const rootLevelForm = context.from[context.from.length - 1];
|
package/dist/components/filter/{criteria-based/filter-property.js → criteriaBased/FilterProperty.js}
RENAMED
|
@@ -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/
|
|
8
|
-
import MultipleAutocompleteInput from "../../inputs/
|
|
9
|
-
import FieldConstants from "../../../utils/
|
|
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";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import FieldConstants from "../../../utils/
|
|
2
|
-
import { PROPERTY_VALUES, PROPERTY_VALUES_1, PROPERTY_VALUES_2, PROPERTY_NAME } from "./
|
|
3
|
-
import { FilterType } from "../constants/
|
|
4
|
-
import "../../../utils/
|
|
5
|
-
import { getRangeInputSchema, getRangeInputDataForm, DEFAULT_RANGE_VALUE } from "../../inputs/
|
|
6
|
-
import { FreePropertiesTypes } from "./
|
|
1
|
+
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
2
|
+
import { PROPERTY_VALUES, PROPERTY_VALUES_1, PROPERTY_VALUES_2, PROPERTY_NAME } from "./FilterProperty.js";
|
|
3
|
+
import { FilterType } from "../constants/FilterConstants.js";
|
|
4
|
+
import "../../../utils/yupConfig.js";
|
|
5
|
+
import { getRangeInputSchema, getRangeInputDataForm, DEFAULT_RANGE_VALUE } from "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
6
|
+
import { FreePropertiesTypes } from "./FilterFreeProperties.js";
|
|
7
7
|
import * as yup from "yup";
|
|
8
8
|
const getCriteriaBasedSchema = (extraFields) => ({
|
|
9
9
|
[FieldConstants.CRITERIA_BASED]: yup.object().shape({
|
|
@@ -2,17 +2,17 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useEffect, useCallback } from "react";
|
|
3
3
|
import { useForm } from "react-hook-form";
|
|
4
4
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
5
|
-
import FieldConstants from "../../../utils/
|
|
6
|
-
import { noSelectionForCopy } from "../../../utils/
|
|
5
|
+
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
6
|
+
import { noSelectionForCopy } from "../../../utils/types/equipmentTypes.js";
|
|
7
7
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
8
|
-
import CustomMuiDialog from "../../dialogs/
|
|
9
|
-
import "../../../utils/
|
|
10
|
-
import FilterForm from "../
|
|
11
|
-
import { expertFilterSchema, EXPERT_FILTER_QUERY } from "./
|
|
12
|
-
import { saveExpertFilter } from "../utils/
|
|
13
|
-
import { importExpertRules } from "./
|
|
14
|
-
import { FilterType } from "../constants/
|
|
15
|
-
import FetchStatus from "../../../utils/
|
|
8
|
+
import CustomMuiDialog from "../../dialogs/customMuiDialog/CustomMuiDialog.js";
|
|
9
|
+
import "../../../utils/yupConfig.js";
|
|
10
|
+
import FilterForm from "../FilterForm.js";
|
|
11
|
+
import { expertFilterSchema, EXPERT_FILTER_QUERY } from "./ExpertFilterForm.js";
|
|
12
|
+
import { saveExpertFilter } from "../utils/filterApi.js";
|
|
13
|
+
import { importExpertRules } from "./expertFilterUtils.js";
|
|
14
|
+
import { FilterType } from "../constants/FilterConstants.js";
|
|
15
|
+
import FetchStatus from "../../../utils/constants/fetchStatus.js";
|
|
16
16
|
import * as yup from "yup";
|
|
17
17
|
const formSchema = yup.object().shape({
|
|
18
18
|
[FieldConstants.NAME]: yup.string().trim().required("nameEmpty"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldType } from './
|
|
1
|
+
import { FieldType } from './expertFilter.type';
|
|
2
2
|
|
|
3
3
|
import * as yup from 'yup';
|
|
4
4
|
export declare const EXPERT_FILTER_QUERY = "rules";
|
|
@@ -8,7 +8,7 @@ export declare const expertFilterSchema: {
|
|
|
8
8
|
};
|
|
9
9
|
export declare function getExpertFilterEmptyFormData(): {
|
|
10
10
|
rules: {
|
|
11
|
-
combinator: import('./
|
|
11
|
+
combinator: import('./expertFilter.type').CombinatorType;
|
|
12
12
|
rules: {
|
|
13
13
|
id: string;
|
|
14
14
|
field: FieldType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../../assets/
|
|
1
|
+
import '../../../assets/ExpertFilterForm.css';
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
4
|
import Grid from "@mui/material/Grid";
|
|
@@ -7,14 +7,14 @@ import { useFormContext, useWatch } from "react-hook-form";
|
|
|
7
7
|
import * as yup from "yup";
|
|
8
8
|
import { v4 } from "uuid";
|
|
9
9
|
import { useIntl } from "react-intl";
|
|
10
|
-
import { testQuery } from "./
|
|
11
|
-
import { COMBINATOR_OPTIONS, OPERATOR_OPTIONS, EXPERT_FILTER_EQUIPMENTS, RULES, fields } from "./
|
|
12
|
-
import { FieldType } from "./
|
|
13
|
-
import FieldConstants from "../../../utils/
|
|
14
|
-
import InputWithPopupConfirmation from "../../inputs/
|
|
15
|
-
import SelectInput from "../../inputs/
|
|
16
|
-
import { FilterType } from "../constants/
|
|
17
|
-
import CustomReactQueryBuilder from "../../inputs/
|
|
10
|
+
import { testQuery } from "./expertFilterUtils.js";
|
|
11
|
+
import { COMBINATOR_OPTIONS, OPERATOR_OPTIONS, EXPERT_FILTER_EQUIPMENTS, RULES, fields } from "./expertFilterConstants.js";
|
|
12
|
+
import { FieldType } from "./expertFilter.type.js";
|
|
13
|
+
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
14
|
+
import InputWithPopupConfirmation from "../../inputs/reactHookForm/selectInputs/InputWithPopupConfirmation.js";
|
|
15
|
+
import SelectInput from "../../inputs/reactHookForm/selectInputs/SelectInput.js";
|
|
16
|
+
import { FilterType } from "../constants/FilterConstants.js";
|
|
17
|
+
import CustomReactQueryBuilder from "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
18
18
|
yup.setLocale({
|
|
19
19
|
mixed: {
|
|
20
20
|
required: "YupRequired",
|
package/dist/components/filter/expert/{expert-filter-constants.js → expertFilterConstants.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OperatorType, CombinatorType, FieldType, DataType } from "./
|
|
1
|
+
import { OperatorType, CombinatorType, FieldType, DataType } from "./expertFilter.type.js";
|
|
2
2
|
var RULES = /* @__PURE__ */ ((RULES2) => {
|
|
3
3
|
RULES2["EMPTY_RULE"] = "emptyRule";
|
|
4
4
|
RULES2["EMPTY_GROUP"] = "emptyGroup";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defaultOperators, getParentPath, findPath, remove } from "react-querybuilder";
|
|
2
2
|
import { validate } from "uuid";
|
|
3
|
-
import { FieldType, DataType } from "./
|
|
4
|
-
import { FIELDS_OPTIONS, OPERATOR_OPTIONS, RULES } from "./
|
|
5
|
-
import { isBlankOrEmpty, microUnitToUnit, unitToMicroUnit } from "../../../utils/
|
|
3
|
+
import { FieldType, DataType } from "./expertFilter.type.js";
|
|
4
|
+
import { FIELDS_OPTIONS, OPERATOR_OPTIONS, RULES } from "./expertFilterConstants.js";
|
|
5
|
+
import { isBlankOrEmpty, microUnitToUnit, unitToMicroUnit } from "../../../utils/conversionUtils.js";
|
|
6
6
|
const microUnits = [
|
|
7
7
|
FieldType.SHUNT_CONDUCTANCE_1,
|
|
8
8
|
FieldType.SHUNT_CONDUCTANCE_2,
|
|
@@ -4,16 +4,16 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { useForm } from "react-hook-form";
|
|
5
5
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
6
6
|
import { v4 } from "uuid";
|
|
7
|
-
import { saveExplicitNamingFilter } from "../utils/
|
|
7
|
+
import { saveExplicitNamingFilter } from "../utils/filterApi.js";
|
|
8
8
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
9
|
-
import CustomMuiDialog from "../../dialogs/
|
|
10
|
-
import "../../../utils/
|
|
11
|
-
import { explicitNamingFilterSchema, FILTER_EQUIPMENTS_ATTRIBUTES } from "./
|
|
12
|
-
import FieldConstants from "../../../utils/
|
|
13
|
-
import FilterForm from "../
|
|
14
|
-
import { noSelectionForCopy } from "../../../utils/
|
|
15
|
-
import { FilterType } from "../constants/
|
|
16
|
-
import FetchStatus from "../../../utils/
|
|
9
|
+
import CustomMuiDialog from "../../dialogs/customMuiDialog/CustomMuiDialog.js";
|
|
10
|
+
import "../../../utils/yupConfig.js";
|
|
11
|
+
import { explicitNamingFilterSchema, FILTER_EQUIPMENTS_ATTRIBUTES } from "./ExplicitNamingFilterForm.js";
|
|
12
|
+
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
13
|
+
import FilterForm from "../FilterForm.js";
|
|
14
|
+
import { noSelectionForCopy } from "../../../utils/types/equipmentTypes.js";
|
|
15
|
+
import { FilterType } from "../constants/FilterConstants.js";
|
|
16
|
+
import FetchStatus from "../../../utils/constants/fetchStatus.js";
|
|
17
17
|
import * as yup from "yup";
|
|
18
18
|
const formSchema = yup.object().shape({
|
|
19
19
|
[FieldConstants.NAME]: yup.string().trim().required("nameEmpty"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DISTRIBUTION_KEY } from '../constants/
|
|
2
|
-
import { default as yup } from '../../../utils/
|
|
3
|
-
import { default as FieldConstants } from '../../../utils/
|
|
1
|
+
import { DISTRIBUTION_KEY } from '../constants/FilterConstants';
|
|
2
|
+
import { default as yup } from '../../../utils/yupConfig';
|
|
3
|
+
import { default as FieldConstants } from '../../../utils/constants/fieldConstants';
|
|
4
4
|
import { UUID } from 'crypto';
|
|
5
5
|
|
|
6
6
|
export declare const FILTER_EQUIPMENTS_ATTRIBUTES = "filterEquipmentsAttributes";
|
|
@@ -4,19 +4,19 @@ import { useIntl } from "react-intl";
|
|
|
4
4
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
5
5
|
import Grid from "@mui/material/Grid";
|
|
6
6
|
import { v4 } from "uuid";
|
|
7
|
-
import FieldConstants from "../../../utils/
|
|
8
|
-
import "../../../utils/
|
|
9
|
-
import CustomAgGridTable, { ROW_DRAGGING_SELECTION_COLUMN_DEF } from "../../inputs/
|
|
10
|
-
import SelectInput from "../../inputs/
|
|
11
|
-
import { Generator, Load } from "../../../utils/
|
|
12
|
-
import NumericEditor from "../../inputs/
|
|
13
|
-
import InputWithPopupConfirmation from "../../inputs/
|
|
14
|
-
import { toFloatOrNullValue } from "../../inputs/
|
|
15
|
-
import { DISTRIBUTION_KEY, FilterType } from "../constants/
|
|
16
|
-
import { FILTER_EQUIPMENTS } from "../utils/
|
|
7
|
+
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
8
|
+
import "../../../utils/yupConfig.js";
|
|
9
|
+
import CustomAgGridTable, { ROW_DRAGGING_SELECTION_COLUMN_DEF } from "../../inputs/reactHookForm/agGridTable/CustomAgGridTable.js";
|
|
10
|
+
import SelectInput from "../../inputs/reactHookForm/selectInputs/SelectInput.js";
|
|
11
|
+
import { Generator, Load } from "../../../utils/types/equipmentTypes.js";
|
|
12
|
+
import NumericEditor from "../../inputs/reactHookForm/agGridTable/cellEditors/numericEditor.js";
|
|
13
|
+
import InputWithPopupConfirmation from "../../inputs/reactHookForm/selectInputs/InputWithPopupConfirmation.js";
|
|
14
|
+
import { toFloatOrNullValue } from "../../inputs/reactHookForm/utils/functions.js";
|
|
15
|
+
import { DISTRIBUTION_KEY, FilterType } from "../constants/FilterConstants.js";
|
|
16
|
+
import { FILTER_EQUIPMENTS } from "../utils/filterFormUtils.js";
|
|
17
17
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
18
|
-
import { ElementType } from "../../../utils/
|
|
19
|
-
import ModifyElementSelection from "../../dialogs/
|
|
18
|
+
import { ElementType } from "../../../utils/types/elementType.js";
|
|
19
|
+
import ModifyElementSelection from "../../dialogs/modifyElementSelection/ModifyElementSelection.js";
|
|
20
20
|
import { exportFilter } from "../../../services/study.js";
|
|
21
21
|
import * as yup from "yup";
|
|
22
22
|
const FILTER_EQUIPMENTS_ATTRIBUTES = "filterEquipmentsAttributes";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import FieldConstants from "../../../utils/
|
|
2
|
-
import { frontToBackTweak } from "../
|
|
3
|
-
import { Generator, Load } from "../../../utils/
|
|
4
|
-
import { exportExpertRules } from "../expert/
|
|
5
|
-
import { DISTRIBUTION_KEY, FilterType } from "../constants/
|
|
1
|
+
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
2
|
+
import { frontToBackTweak } from "../criteriaBased/criteriaBasedFilterUtils.js";
|
|
3
|
+
import { Generator, Load } from "../../../utils/types/equipmentTypes.js";
|
|
4
|
+
import { exportExpertRules } from "../expert/expertFilterUtils.js";
|
|
5
|
+
import { DISTRIBUTION_KEY, FilterType } from "../constants/FilterConstants.js";
|
|
6
6
|
import { createFilter, saveFilter } from "../../../services/explore.js";
|
|
7
7
|
const saveExplicitNamingFilter = (tableValues, isFilterCreation, equipmentType, name, description, id, setCreateFilterErr, handleClose, activeDirectory, token) => {
|
|
8
8
|
let cleanedTableValues;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import FieldConstants from "../../../utils/
|
|
2
|
-
import RangeInput from "../../inputs/
|
|
3
|
-
import CountriesInput from "../../inputs/
|
|
4
|
-
import SelectInput from "../../inputs/
|
|
1
|
+
import FieldConstants from "../../../utils/constants/fieldConstants.js";
|
|
2
|
+
import RangeInput from "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
3
|
+
import CountriesInput from "../../inputs/reactHookForm/selectInputs/CountriesInput.js";
|
|
4
|
+
import SelectInput from "../../inputs/reactHookForm/selectInputs/SelectInput.js";
|
|
5
5
|
const countries = {
|
|
6
6
|
renderer: CountriesInput,
|
|
7
7
|
props: {
|
|
@@ -3,7 +3,7 @@ import { useState, useCallback, Fragment } from "react";
|
|
|
3
3
|
import { List, ListItem, Tooltip, Typography, Divider, TextField, Select, MenuItem, IconButton, Autocomplete, Chip, Switch } from "@mui/material";
|
|
4
4
|
import { Tune } from "@mui/icons-material";
|
|
5
5
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
6
|
-
import MultipleSelectionDialog from "../
|
|
6
|
+
import MultipleSelectionDialog from "../multipleSelectionDialog/MultipleSelectionDialog.js";
|
|
7
7
|
const styles = {
|
|
8
8
|
paramList: {
|
|
9
9
|
width: "100%",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIntl } from "react-intl";
|
|
3
3
|
import { Autocomplete, TextField } from "@mui/material";
|
|
4
|
-
import FieldLabel from "./
|
|
4
|
+
import FieldLabel from "./reactHookForm/utils/FieldLabel.js";
|
|
5
5
|
function SelectClearable(props) {
|
|
6
6
|
const { value, onChange, label, options, ...otherProps } = props;
|
|
7
7
|
const intl = useIntl();
|
|
@@ -4,16 +4,16 @@ import FolderIcon from "@mui/icons-material/Folder";
|
|
|
4
4
|
import { useState, useMemo, useCallback } from "react";
|
|
5
5
|
import { useFieldArray, useController } from "react-hook-form";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
|
-
import RawReadOnlyInput from "./
|
|
8
|
-
import FieldLabel from "./utils/
|
|
9
|
-
import useCustomFormContext from "./provider/
|
|
7
|
+
import RawReadOnlyInput from "./RawReadOnlyInput.js";
|
|
8
|
+
import FieldLabel from "./utils/FieldLabel.js";
|
|
9
|
+
import useCustomFormContext from "./provider/useCustomFormContext.js";
|
|
10
10
|
import { isFieldRequired } from "./utils/functions.js";
|
|
11
|
-
import ErrorInput from "./
|
|
11
|
+
import ErrorInput from "./errorManagement/ErrorInput.js";
|
|
12
12
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
13
13
|
import { mergeSx } from "../../../utils/styles.js";
|
|
14
|
-
import { OverflowableText } from "../../OverflowableText
|
|
15
|
-
import MidFormError from "./
|
|
16
|
-
import DirectoryItemSelector from "../../DirectoryItemSelector
|
|
14
|
+
import { OverflowableText } from "../../overflowableText/OverflowableText.js";
|
|
15
|
+
import MidFormError from "./errorManagement/MidFormError.js";
|
|
16
|
+
import DirectoryItemSelector from "../../directoryItemSelector/DirectoryItemSelector.js";
|
|
17
17
|
import { fetchDirectoryElementPath } from "../../../services/directory.js";
|
|
18
18
|
const NAME = "name";
|
|
19
19
|
const styles = {
|
|
@@ -7,9 +7,9 @@ import DeleteIcon from "@mui/icons-material/Delete";
|
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { useIntl } from "react-intl";
|
|
9
9
|
import { styled } from "@mui/material/styles";
|
|
10
|
-
import ErrorInput from "../
|
|
11
|
-
import FieldErrorAlert from "../
|
|
12
|
-
import CsvUploader from "./
|
|
10
|
+
import ErrorInput from "../errorManagement/ErrorInput.js";
|
|
11
|
+
import FieldErrorAlert from "../errorManagement/FieldErrorAlert.js";
|
|
12
|
+
import CsvUploader from "./csvUploader/CsvUploader.js";
|
|
13
13
|
const InnerColoredButton = styled(IconButton)(({ theme }) => {
|
|
14
14
|
return {
|
|
15
15
|
color: theme.palette.primary.main
|
|
@@ -6,8 +6,8 @@ import "ag-grid-community/styles/ag-grid.css";
|
|
|
6
6
|
import "ag-grid-community/styles/ag-theme-alpine.css";
|
|
7
7
|
import { useTheme, Grid } from "@mui/material";
|
|
8
8
|
import { useIntl } from "react-intl";
|
|
9
|
-
import BottomRightButtons from "./
|
|
10
|
-
import FieldConstants from "../../../../utils/
|
|
9
|
+
import BottomRightButtons from "./BottomRightButtons.js";
|
|
10
|
+
import FieldConstants from "../../../../utils/constants/fieldConstants.js";
|
|
11
11
|
const ROW_DRAGGING_SELECTION_COLUMN_DEF = [
|
|
12
12
|
{
|
|
13
13
|
rowDrag: true,
|
|
@@ -13,8 +13,8 @@ import Alert from "@mui/material/Alert";
|
|
|
13
13
|
import { DialogContentText } from "@mui/material";
|
|
14
14
|
import { useWatch } from "react-hook-form";
|
|
15
15
|
import { RECORD_SEP, UNIT_SEP } from "papaparse";
|
|
16
|
-
import FieldConstants from "../../../../../utils/
|
|
17
|
-
import CancelButton from "../../utils/
|
|
16
|
+
import FieldConstants from "../../../../../utils/constants/fieldConstants.js";
|
|
17
|
+
import CancelButton from "../../utils/CancelButton.js";
|
|
18
18
|
function CsvUploader({
|
|
19
19
|
name,
|
|
20
20
|
onClose,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Option } from '../../../../utils/types';
|
|
1
|
+
import { Option } from '../../../../utils/types/types';
|
|
2
2
|
import { AutocompleteProps, TextFieldProps } from '@mui/material';
|
|
3
3
|
|
|
4
4
|
export interface AutocompleteInputProps extends Omit<AutocompleteProps<Option, boolean | undefined, boolean | undefined, boolean | undefined>, 'value' | 'onChange' | 'renderInput'> {
|
|
@@ -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/
|
|
6
|
-
import useCustomFormContext from "../provider/
|
|
5
|
+
import FieldLabel from "../utils/FieldLabel.js";
|
|
6
|
+
import useCustomFormContext from "../provider/useCustomFormContext.js";
|
|
7
7
|
function AutocompleteInput({
|
|
8
8
|
name,
|
|
9
9
|
label,
|
|
@@ -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 "./
|
|
4
|
+
import AutocompleteInput from "./AutocompleteInput.js";
|
|
5
5
|
function MultipleAutocompleteInput({ name, ...props }) {
|
|
6
6
|
const [unsavedInput, setUnsavedInput] = useState("");
|
|
7
7
|
const watchAutocompleteValues = useWatch({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Checkbox } from "@mui/material";
|
|
3
|
-
import BooleanInput from "./
|
|
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
|
}
|
|
@@ -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 "
|
|
5
|
+
import FieldLabel from "../utils/FieldLabel.js";
|
|
6
6
|
function RadioInput({ name, label, id, options, formProps }) {
|
|
7
7
|
const {
|
|
8
8
|
field: { onChange, value }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Switch } from "@mui/material";
|
|
3
|
-
import BooleanInput from "./
|
|
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
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextInputProps } from '../text
|
|
1
|
+
import { TextInputProps } from '../text/TextInput';
|
|
2
2
|
|
|
3
3
|
export type FloatInputProps = Omit<TextInputProps, 'outputTransform' | 'inputTransform' | 'acceptValue'>;
|
|
4
4
|
declare function FloatInput(props: FloatInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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 "./
|
|
9
|
-
import "
|
|
10
|
-
import MuiSelectInput from "
|
|
11
|
-
import FieldConstants from "
|
|
8
|
+
import FloatInput from "./FloatInput.js";
|
|
9
|
+
import "../../../../utils/yupConfig.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) => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Slider } from "@mui/material";
|
|
3
3
|
import { useController } from "react-hook-form";
|
|
4
|
-
import { identity } from "
|
|
4
|
+
import { identity } from "../utils/functions.js";
|
|
5
5
|
function SliderInput({ name, min, max, step, size = "small", onValueChanged = identity }) {
|
|
6
6
|
const {
|
|
7
7
|
field: { onChange, value }
|