@gridsuite/commons-ui 0.61.4 → 0.63.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/AuthenticationRouter.d.ts +1 -1
- package/dist/components/AuthenticationRouter/AuthenticationRouter.js +5 -5
- package/dist/components/AuthenticationRouter/index.d.ts +3 -7
- package/dist/components/AuthenticationRouter/index.js +2 -2
- package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +0 -1
- package/dist/components/CardErrorBoundary/card-error-boundary.js +5 -3
- package/dist/components/CardErrorBoundary/index.d.ts +3 -7
- package/dist/components/CardErrorBoundary/index.js +2 -2
- package/dist/components/CustomAGGrid/custom-aggrid.js +1 -1
- package/dist/components/CustomAGGrid/custom-aggrid.style.js +5 -5
- package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +2 -3
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +108 -105
- package/dist/components/ElementSearchDialog/element-search-dialog.d.ts +1 -1
- package/dist/components/ElementSearchDialog/element-search-dialog.js +2 -2
- package/dist/components/ElementSearchDialog/element-search-input.d.ts +1 -1
- package/dist/components/ElementSearchDialog/element-search-input.js +4 -6
- package/dist/components/ElementSearchDialog/equipment-item.d.ts +3 -3
- package/dist/components/ElementSearchDialog/equipment-item.js +13 -13
- package/dist/components/ElementSearchDialog/index.d.ts +3 -3
- package/dist/components/ElementSearchDialog/index.js +5 -5
- package/dist/components/ElementSearchDialog/tag-renderer.d.ts +11 -12
- package/dist/components/ElementSearchDialog/tag-renderer.js +5 -6
- package/dist/components/ElementSearchDialog/use-element-search.d.ts +2 -2
- package/dist/components/ElementSearchDialog/use-element-search.js +2 -2
- package/dist/components/ExpandableGroup/expandable-group.d.ts +3 -3
- package/dist/components/ExpandableGroup/expandable-group.js +6 -6
- package/dist/components/ExpandableGroup/index.d.ts +3 -7
- package/dist/components/ExpandableGroup/index.js +2 -2
- package/dist/components/FlatParameters/FlatParameters.d.ts +1 -1
- package/dist/components/FlatParameters/FlatParameters.js +46 -46
- package/dist/components/FlatParameters/index.d.ts +3 -7
- package/dist/components/Login/Login.d.ts +1 -7
- package/dist/components/Login/Login.js +3 -9
- package/dist/components/Login/Logout.d.ts +1 -1
- package/dist/components/Login/Logout.js +11 -11
- package/dist/components/Login/index.d.ts +3 -7
- package/dist/components/Login/index.js +2 -2
- package/dist/components/MuiVirtualizedTable/ColumnHeader.js +9 -8
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +24 -9
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +200 -205
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +6 -6
- package/dist/components/MuiVirtualizedTable/index.d.ts +2 -2
- package/dist/components/MuiVirtualizedTable/index.js +3 -3
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +1 -1
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +5 -15
- package/dist/components/MultipleSelectionDialog/index.d.ts +3 -7
- package/dist/components/MultipleSelectionDialog/index.js +2 -2
- package/dist/components/OverflowableText/index.d.ts +3 -7
- package/dist/components/OverflowableText/overflowable-text.js +2 -2
- package/dist/components/ReportViewer/filter-button.d.ts +1 -1
- package/dist/components/ReportViewer/filter-button.js +3 -3
- package/dist/components/ReportViewer/index.d.ts +3 -7
- package/dist/components/ReportViewer/index.js +2 -2
- package/dist/components/ReportViewer/log-report-item.d.ts +1 -1
- package/dist/components/ReportViewer/log-report-item.js +12 -9
- package/dist/components/ReportViewer/log-report.js +3 -3
- package/dist/components/ReportViewer/log-table.d.ts +2 -1
- package/dist/components/ReportViewer/log-table.js +6 -5
- package/dist/components/ReportViewer/multi-select-list.d.ts +1 -1
- package/dist/components/ReportViewer/multi-select-list.js +3 -3
- package/dist/components/ReportViewer/report-item.js +4 -3
- package/dist/components/ReportViewer/report-viewer.js +11 -12
- package/dist/components/ReportViewerDialog/index.d.ts +3 -7
- package/dist/components/ReportViewerDialog/index.js +2 -2
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +1 -1
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +3 -3
- package/dist/components/SignInCallbackHandler/index.d.ts +3 -7
- package/dist/components/SignInCallbackHandler/index.js +2 -2
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +1 -1
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.js +3 -3
- package/dist/components/SilentRenewCallbackHandler/index.d.ts +3 -7
- package/dist/components/SilentRenewCallbackHandler/index.js +2 -2
- package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +1 -1
- package/dist/components/SnackbarProvider/SnackbarProvider.js +14 -13
- package/dist/components/SnackbarProvider/index.d.ts +3 -7
- package/dist/components/SnackbarProvider/index.js +2 -2
- package/dist/components/TopBar/AboutDialog.d.ts +1 -2
- package/dist/components/TopBar/AboutDialog.js +151 -153
- package/dist/components/TopBar/GridLogo.d.ts +2 -2
- package/dist/components/TopBar/GridLogo.js +24 -24
- package/dist/components/TopBar/TopBar.d.ts +2 -27
- package/dist/components/TopBar/TopBar.js +9 -33
- package/dist/components/TopBar/index.d.ts +1 -1
- package/dist/components/TopBar/index.js +1 -1
- package/dist/components/TreeViewFinder/TreeViewFinder.js +51 -45
- package/dist/components/TreeViewFinder/index.d.ts +1 -1
- package/dist/components/TreeViewFinder/index.js +1 -1
- package/dist/components/dialogs/custom-mui-dialog.d.ts +2 -2
- package/dist/components/dialogs/custom-mui-dialog.js +5 -5
- package/dist/components/dialogs/description-modification-dialog.d.ts +7 -3
- package/dist/components/dialogs/description-modification-dialog.js +11 -5
- package/dist/components/dialogs/modify-element-selection.d.ts +1 -2
- package/dist/components/dialogs/modify-element-selection.js +21 -13
- package/dist/components/dialogs/popup-confirmation-dialog.d.ts +7 -3
- package/dist/components/dialogs/popup-confirmation-dialog.js +3 -6
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +4 -5
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +123 -16
- package/dist/components/filter/criteria-based/criteria-based-filter-form.d.ts +1 -2
- package/dist/components/filter/criteria-based/criteria-based-filter-form.js +6 -5
- package/dist/components/filter/criteria-based/criteria-based-filter-utils.js +27 -20
- package/dist/components/filter/criteria-based/criteria-based-form.d.ts +1 -2
- package/dist/components/filter/criteria-based/criteria-based-form.js +17 -6
- package/dist/components/filter/criteria-based/filter-free-properties.d.ts +5 -3
- package/dist/components/filter/criteria-based/filter-free-properties.js +69 -13
- package/dist/components/filter/criteria-based/filter-properties.d.ts +1 -6
- package/dist/components/filter/criteria-based/filter-properties.js +124 -16
- package/dist/components/filter/criteria-based/filter-property.d.ts +1 -2
- package/dist/components/filter/criteria-based/filter-property.js +16 -16
- package/dist/components/filter/expert/expert-filter-constants.d.ts +1 -1
- package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +3 -4
- package/dist/components/filter/expert/expert-filter-edition-dialog.js +128 -15
- package/dist/components/filter/expert/expert-filter-form.d.ts +1 -2
- package/dist/components/filter/expert/expert-filter-form.js +141 -20
- package/dist/components/filter/expert/expert-filter-utils.d.ts +2 -2
- package/dist/components/filter/expert/expert-filter-utils.js +45 -46
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.d.ts +3 -4
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +136 -16
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.d.ts +4 -5
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +241 -24
- package/dist/components/filter/filter-creation-dialog.d.ts +3 -4
- package/dist/components/filter/filter-creation-dialog.js +125 -13
- package/dist/components/filter/filter-form.d.ts +4 -5
- package/dist/components/filter/filter-form.js +73 -14
- package/dist/components/filter/utils/filter-api.js +1 -1
- package/dist/components/filter/utils/filter-form-utils.js +1 -1
- package/dist/components/inputs/react-hook-form/ExpandingTextField.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/ExpandingTextField.js +5 -5
- package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.js +102 -13
- package/dist/components/inputs/react-hook-form/ag-grid-table/cell-editors/numericEditor.d.ts +7 -6
- package/dist/components/inputs/react-hook-form/ag-grid-table/cell-editors/numericEditor.js +13 -15
- package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.d.ts +7 -3
- package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js +220 -61
- package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.js +243 -11
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.d.ts +4 -2
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.js +12 -12
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js +2 -2
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.js +2 -2
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.js +3 -3
- package/dist/components/inputs/react-hook-form/booleans/switch-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/booleans/switch-input.js +3 -3
- package/dist/components/inputs/react-hook-form/directory-items-input.d.ts +11 -3
- package/dist/components/inputs/react-hook-form/directory-items-input.js +11 -11
- package/dist/components/inputs/react-hook-form/error-management/error-input.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/error-management/error-input.js +7 -9
- package/dist/components/inputs/react-hook-form/error-management/field-error-alert.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/error-management/field-error-alert.js +2 -4
- package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/error-management/mid-form-error.js +2 -2
- package/dist/components/inputs/react-hook-form/numbers/float-input.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/numbers/float-input.js +6 -5
- package/dist/components/inputs/react-hook-form/numbers/integer-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/numbers/integer-input.js +5 -5
- package/dist/components/inputs/react-hook-form/provider/custom-form-provider.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/provider/custom-form-provider.js +11 -8
- package/dist/components/inputs/react-hook-form/provider/use-custom-form-context.d.ts +2 -1
- package/dist/components/inputs/react-hook-form/provider/use-custom-form-context.js +1 -1
- package/dist/components/inputs/react-hook-form/radio-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/radio-input.js +2 -8
- package/dist/components/inputs/react-hook-form/range-input.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/range-input.js +5 -5
- package/dist/components/inputs/react-hook-form/raw-read-only-input.d.ts +2 -1
- package/dist/components/inputs/react-hook-form/raw-read-only-input.js +1 -1
- package/dist/components/inputs/react-hook-form/select-inputs/countries-input.d.ts +1 -3
- package/dist/components/inputs/react-hook-form/select-inputs/countries-input.js +4 -8
- package/dist/components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation.d.ts +3 -1
- package/dist/components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation.js +4 -4
- package/dist/components/inputs/react-hook-form/select-inputs/mui-select-input.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/select-inputs/mui-select-input.js +11 -10
- package/dist/components/inputs/react-hook-form/select-inputs/select-input.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/select-inputs/select-input.js +16 -8
- package/dist/components/inputs/react-hook-form/slider-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/slider-input.js +6 -6
- package/dist/components/inputs/react-hook-form/text-input.d.ts +6 -2
- package/dist/components/inputs/react-hook-form/text-input.js +9 -9
- package/dist/components/inputs/react-hook-form/unique-name-input.d.ts +4 -6
- package/dist/components/inputs/react-hook-form/unique-name-input.js +12 -12
- package/dist/components/inputs/react-hook-form/utils/cancel-button.d.ts +9 -10
- package/dist/components/inputs/react-hook-form/utils/cancel-button.js +2 -6
- package/dist/components/inputs/react-hook-form/utils/field-label.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/utils/field-label.js +3 -3
- package/dist/components/inputs/react-hook-form/utils/functions.js +1 -1
- package/dist/components/inputs/react-hook-form/utils/submit-button.d.ts +9 -10
- package/dist/components/inputs/react-hook-form/utils/submit-button.js +2 -6
- package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.js +7 -7
- package/dist/components/inputs/react-query-builder/add-button.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/add-button.js +13 -10
- package/dist/components/inputs/react-query-builder/combinator-selector.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/combinator-selector.js +7 -6
- package/dist/components/inputs/react-query-builder/composite-rule-editor/group-value-editor.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/composite-rule-editor/group-value-editor.js +2 -2
- package/dist/components/inputs/react-query-builder/composite-rule-editor/rule-value-editor.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/composite-rule-editor/rule-value-editor.js +5 -5
- package/dist/components/inputs/react-query-builder/country-value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/country-value-editor.js +18 -18
- package/dist/components/inputs/react-query-builder/custom-react-query-builder.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/custom-react-query-builder.js +92 -19
- package/dist/components/inputs/react-query-builder/element-value-editor.d.ts +7 -3
- package/dist/components/inputs/react-query-builder/element-value-editor.js +50 -62
- package/dist/components/inputs/react-query-builder/property-value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/property-value-editor.js +5 -5
- package/dist/components/inputs/react-query-builder/remove-button.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/remove-button.js +26 -7
- package/dist/components/inputs/react-query-builder/text-value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/text-value-editor.js +17 -17
- package/dist/components/inputs/react-query-builder/translated-value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/translated-value-editor.js +22 -26
- package/dist/components/inputs/react-query-builder/value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/value-editor.js +119 -18
- package/dist/components/inputs/react-query-builder/value-selector.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/value-selector.js +2 -2
- package/dist/components/inputs/select-clearable.d.ts +1 -2
- package/dist/components/inputs/select-clearable.js +6 -5
- package/dist/components/translations/card-error-boundary-en.d.ts +2 -2
- package/dist/components/translations/card-error-boundary-en.js +2 -2
- package/dist/components/translations/card-error-boundary-fr.d.ts +2 -2
- package/dist/components/translations/card-error-boundary-fr.js +2 -2
- package/dist/components/translations/common-button-en.d.ts +2 -2
- package/dist/components/translations/common-button-en.js +2 -2
- package/dist/components/translations/common-button-fr.d.ts +2 -2
- package/dist/components/translations/common-button-fr.js +2 -2
- package/dist/components/translations/directory-items-input-en.d.ts +2 -2
- package/dist/components/translations/directory-items-input-en.js +2 -2
- package/dist/components/translations/directory-items-input-fr.d.ts +2 -2
- package/dist/components/translations/directory-items-input-fr.js +2 -2
- package/dist/components/translations/element-search-en.d.ts +2 -2
- package/dist/components/translations/element-search-en.js +2 -2
- package/dist/components/translations/element-search-fr.d.ts +2 -2
- package/dist/components/translations/element-search-fr.js +2 -2
- package/dist/components/translations/equipment-search-en.d.ts +2 -2
- package/dist/components/translations/equipment-search-en.js +2 -2
- package/dist/components/translations/equipment-search-fr.d.ts +2 -2
- package/dist/components/translations/equipment-search-fr.js +2 -2
- package/dist/components/translations/filter-en.d.ts +3 -2
- package/dist/components/translations/filter-en.js +3 -2
- package/dist/components/translations/filter-expert-en.d.ts +2 -2
- package/dist/components/translations/filter-expert-en.js +2 -2
- package/dist/components/translations/filter-expert-fr.d.ts +2 -2
- package/dist/components/translations/filter-expert-fr.js +2 -2
- package/dist/components/translations/filter-fr.d.ts +3 -2
- package/dist/components/translations/filter-fr.js +3 -2
- package/dist/components/translations/flat-parameters-en.d.ts +2 -2
- package/dist/components/translations/flat-parameters-en.js +2 -2
- package/dist/components/translations/flat-parameters-fr.d.ts +2 -2
- package/dist/components/translations/flat-parameters-fr.js +2 -2
- package/dist/components/translations/inputs-en.d.ts +2 -2
- package/dist/components/translations/inputs-en.js +2 -2
- package/dist/components/translations/inputs-fr.d.ts +2 -2
- package/dist/components/translations/inputs-fr.js +2 -2
- package/dist/components/translations/login-en.d.ts +2 -2
- package/dist/components/translations/login-en.js +2 -2
- package/dist/components/translations/login-fr.d.ts +2 -2
- package/dist/components/translations/login-fr.js +2 -2
- package/dist/components/translations/multiple-selection-dialog-en.d.ts +2 -2
- package/dist/components/translations/multiple-selection-dialog-en.js +2 -2
- package/dist/components/translations/multiple-selection-dialog-fr.d.ts +2 -2
- package/dist/components/translations/multiple-selection-dialog-fr.js +2 -2
- package/dist/components/translations/report-viewer-en.d.ts +2 -2
- package/dist/components/translations/report-viewer-en.js +2 -2
- package/dist/components/translations/report-viewer-fr.d.ts +2 -2
- package/dist/components/translations/report-viewer-fr.js +2 -2
- package/dist/components/translations/table-en.d.ts +2 -2
- package/dist/components/translations/table-en.js +2 -2
- package/dist/components/translations/table-fr.d.ts +2 -2
- package/dist/components/translations/table-fr.js +2 -2
- package/dist/components/translations/top-bar-en.d.ts +2 -2
- package/dist/components/translations/top-bar-en.js +2 -2
- package/dist/components/translations/top-bar-fr.d.ts +2 -2
- package/dist/components/translations/top-bar-fr.js +2 -2
- package/dist/components/translations/treeview-finder-en.d.ts +2 -2
- package/dist/components/translations/treeview-finder-en.js +2 -2
- package/dist/components/translations/treeview-finder-fr.d.ts +2 -2
- package/dist/components/translations/treeview-finder-fr.js +2 -2
- package/dist/hooks/localized-countries-hook.js +1 -1
- package/dist/hooks/predefined-properties-hook.d.ts +2 -1
- package/dist/hooks/predefined-properties-hook.js +2 -2
- package/dist/hooks/useDebounce.d.ts +2 -1
- package/dist/hooks/useDebounce.js +1 -1
- package/dist/hooks/useIntlRef.d.ts +2 -1
- package/dist/hooks/useIntlRef.js +1 -1
- package/dist/hooks/useSnackMessage.d.ts +2 -2
- package/dist/hooks/useSnackMessage.js +36 -36
- package/dist/index.d.ts +13 -14
- package/dist/index.js +163 -157
- package/dist/redux/commonStore.d.ts +1 -1
- package/dist/services/apps-metadata.js +1 -1
- package/dist/services/directory.js +6 -6
- package/dist/services/explore.js +14 -12
- package/dist/services/index.d.ts +0 -5
- package/dist/services/study.js +2 -2
- package/dist/services/utils.d.ts +1 -1
- package/dist/services/utils.js +26 -26
- package/dist/utils/AuthService.d.ts +21 -12
- package/dist/utils/AuthService.js +88 -143
- package/dist/utils/ElementIcon.d.ts +3 -2
- package/dist/utils/ElementIcon.js +4 -3
- package/dist/utils/ElementType.d.ts +3 -6
- package/dist/utils/EquipmentType.js +3 -3
- package/dist/utils/FetchStatus.d.ts +2 -1
- package/dist/utils/FetchStatus.js +1 -1
- package/dist/utils/Metadata.d.ts +15 -0
- package/dist/utils/Metadata.js +1 -0
- package/dist/utils/UserManagerMock.d.ts +50 -25
- package/dist/utils/UserManagerMock.js +118 -11
- package/dist/utils/algos.d.ts +2 -1
- package/dist/utils/algos.js +2 -2
- package/dist/utils/equipment-types-for-predefined-properties-mapper.d.ts +2 -1
- package/dist/utils/equipment-types-for-predefined-properties-mapper.js +3 -1
- package/dist/utils/field-constants.d.ts +2 -1
- package/dist/utils/field-constants.js +1 -1
- package/dist/utils/functions.js +5 -2
- package/dist/utils/types.d.ts +1 -1
- package/dist/utils/yup-config.js +1 -2
- package/package.json +10 -4
- package/dist/chunks/criteria-based-filter-edition-dialog.CAT38SvB.js +0 -1694
- package/dist/chunks/filter-properties.B7-q_yPf.js +0 -195
- /package/dist/assets/{criteria-based-filter-edition-dialog.css → expert-filter-form.css} +0 -0
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import { FormattedMessage } from "react-intl";
|
|
4
3
|
import { Select, MenuItem } from "@mui/material";
|
|
5
4
|
import { useController } from "react-hook-form";
|
|
6
|
-
|
|
5
|
+
function MuiSelectInput({
|
|
7
6
|
name,
|
|
8
7
|
options,
|
|
9
8
|
...props
|
|
10
|
-
})
|
|
9
|
+
}) {
|
|
11
10
|
const {
|
|
12
11
|
field: { value, onChange }
|
|
13
12
|
} = useController({
|
|
14
13
|
name
|
|
15
14
|
});
|
|
16
|
-
return /* @__PURE__ */ jsx(Select, { value, onChange, ...props, children: options.map((option
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /* @__PURE__ */ jsx(Select, { value, onChange, ...props, children: options.map((option) => /* @__PURE__ */ jsx(
|
|
16
|
+
MenuItem,
|
|
17
|
+
{
|
|
18
|
+
value: option.id ?? option,
|
|
19
|
+
children: /* @__PURE__ */ jsx(FormattedMessage, { id: option.label ?? option })
|
|
20
|
+
},
|
|
21
|
+
option.id ?? option.label
|
|
22
|
+
)) });
|
|
23
|
+
}
|
|
23
24
|
export {
|
|
24
25
|
MuiSelectInput as default
|
|
25
26
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Option } from '../../../../utils/types';
|
|
2
|
-
import { FunctionComponent } from 'react';
|
|
3
2
|
import { AutocompleteInputProps } from '../autocomplete-inputs/autocomplete-input';
|
|
4
3
|
|
|
5
4
|
export interface SelectInputProps extends Omit<AutocompleteInputProps, 'outputTransform' | 'inputTransform' | 'readOnly' | 'getOptionLabel'> {
|
|
6
5
|
options: Option[];
|
|
7
6
|
}
|
|
8
|
-
declare
|
|
7
|
+
declare function SelectInput(props: SelectInputProps): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default SelectInput;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import AutocompleteInput from "../autocomplete-inputs/autocomplete-input.js";
|
|
3
2
|
import { useIntl } from "react-intl";
|
|
4
|
-
|
|
3
|
+
import AutocompleteInput from "../autocomplete-inputs/autocomplete-input.js";
|
|
4
|
+
function SelectInput(props) {
|
|
5
5
|
const intl = useIntl();
|
|
6
|
+
const { options } = props;
|
|
6
7
|
const inputTransform = (value) => {
|
|
7
8
|
if (value === null) {
|
|
8
9
|
return null;
|
|
9
10
|
}
|
|
10
11
|
if (typeof value === "string") {
|
|
11
|
-
return
|
|
12
|
+
return options.find(
|
|
12
13
|
(option) => typeof option !== "string" && (option == null ? void 0 : option.id) === value
|
|
13
14
|
) || null;
|
|
14
15
|
}
|
|
15
|
-
return
|
|
16
|
+
return options.find(
|
|
16
17
|
(option) => typeof option !== "string" && (option == null ? void 0 : option.id) === value.id
|
|
17
18
|
) || null;
|
|
18
19
|
};
|
|
@@ -22,19 +23,26 @@ const SelectInput = (props) => {
|
|
|
22
23
|
}
|
|
23
24
|
return (value == null ? void 0 : value.id) ?? null;
|
|
24
25
|
};
|
|
26
|
+
const getOptionLabel = (option) => {
|
|
27
|
+
if (typeof option === "string") {
|
|
28
|
+
return option;
|
|
29
|
+
}
|
|
30
|
+
if (option.label) {
|
|
31
|
+
return intl.formatMessage({ id: option.label });
|
|
32
|
+
}
|
|
33
|
+
return option.id;
|
|
34
|
+
};
|
|
25
35
|
return /* @__PURE__ */ jsx(
|
|
26
36
|
AutocompleteInput,
|
|
27
37
|
{
|
|
28
|
-
getOptionLabel
|
|
29
|
-
return typeof option !== "string" ? (option == null ? void 0 : option.label) ? intl.formatMessage({ id: option == null ? void 0 : option.label }) : option == null ? void 0 : option.id : option;
|
|
30
|
-
},
|
|
38
|
+
getOptionLabel,
|
|
31
39
|
inputTransform,
|
|
32
40
|
outputTransform,
|
|
33
41
|
readOnly: true,
|
|
34
42
|
...props
|
|
35
43
|
}
|
|
36
44
|
);
|
|
37
|
-
}
|
|
45
|
+
}
|
|
38
46
|
export {
|
|
39
47
|
SelectInput as default
|
|
40
48
|
};
|
|
@@ -4,5 +4,5 @@ export interface SliderInputProps extends SliderProps {
|
|
|
4
4
|
name: string;
|
|
5
5
|
onValueChanged: (value: any) => void;
|
|
6
6
|
}
|
|
7
|
-
declare
|
|
7
|
+
declare function SliderInput({ name, min, max, step, size, onValueChanged, }: SliderInputProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default SliderInput;
|
|
@@ -2,20 +2,20 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Slider } from "@mui/material";
|
|
3
3
|
import { useController } from "react-hook-form";
|
|
4
4
|
import { identity } from "./utils/functions.js";
|
|
5
|
-
|
|
5
|
+
function SliderInput({
|
|
6
6
|
name,
|
|
7
7
|
min,
|
|
8
8
|
max,
|
|
9
9
|
step,
|
|
10
10
|
size = "small",
|
|
11
11
|
onValueChanged = identity
|
|
12
|
-
})
|
|
12
|
+
}) {
|
|
13
13
|
const {
|
|
14
14
|
field: { onChange, value }
|
|
15
15
|
} = useController({ name });
|
|
16
|
-
const handleValueChange = (event,
|
|
17
|
-
onValueChanged(
|
|
18
|
-
onChange(
|
|
16
|
+
const handleValueChange = (event, newValue, activeThumb) => {
|
|
17
|
+
onValueChanged(newValue);
|
|
18
|
+
onChange(newValue);
|
|
19
19
|
};
|
|
20
20
|
return /* @__PURE__ */ jsx(
|
|
21
21
|
Slider,
|
|
@@ -28,7 +28,7 @@ const SliderInput = ({
|
|
|
28
28
|
onChange: handleValueChange
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
|
-
}
|
|
31
|
+
}
|
|
32
32
|
export {
|
|
33
33
|
SliderInput as default
|
|
34
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Input } from '../../../utils/types';
|
|
2
2
|
import { TextFieldWithAdornmentProps } from './utils/text-field-with-adornment';
|
|
3
3
|
import { TextFieldProps } from '@mui/material';
|
|
4
|
-
import {
|
|
4
|
+
import { ReactElement } from 'react';
|
|
5
5
|
|
|
6
6
|
export interface TextInputProps {
|
|
7
7
|
name: string;
|
|
@@ -20,5 +20,9 @@ export interface TextInputProps {
|
|
|
20
20
|
clearable?: boolean;
|
|
21
21
|
formProps?: Omit<TextFieldWithAdornmentProps | TextFieldProps, 'value' | 'onChange' | 'inputRef' | 'inputProps' | 'InputProps'>;
|
|
22
22
|
}
|
|
23
|
-
declare
|
|
23
|
+
declare function TextInput({ name, label, labelValues, // this prop is used to add a value to label. this value is displayed without being translated
|
|
24
|
+
id, adornment, customAdornment, outputTransform, // transform materialUi input value before sending it to react hook form, mostly used to deal with number fields
|
|
25
|
+
inputTransform, // transform react hook form value before sending it to materialUi input, mostly used to deal with number fields
|
|
26
|
+
acceptValue, // used to check user entry before committing the input change, used mostly to prevent user from typing a character in number field
|
|
27
|
+
previousValue, clearable, formProps, }: TextInputProps): import("react/jsx-runtime").JSX.Element;
|
|
24
28
|
export default TextInput;
|
|
@@ -5,8 +5,8 @@ import { useController } from "react-hook-form";
|
|
|
5
5
|
import TextFieldWithAdornment from "./utils/text-field-with-adornment.js";
|
|
6
6
|
import FieldLabel from "./utils/field-label.js";
|
|
7
7
|
import { isFieldRequired, genHelperPreviousValue, genHelperError, identity } from "./utils/functions.js";
|
|
8
|
-
import
|
|
9
|
-
|
|
8
|
+
import useCustomFormContext from "./provider/use-custom-form-context.js";
|
|
9
|
+
function TextInput({
|
|
10
10
|
name,
|
|
11
11
|
label,
|
|
12
12
|
labelValues,
|
|
@@ -15,15 +15,15 @@ const TextInput = ({
|
|
|
15
15
|
adornment,
|
|
16
16
|
customAdornment,
|
|
17
17
|
outputTransform = identity,
|
|
18
|
-
//transform materialUi input value before sending it to react hook form, mostly used to deal with number fields
|
|
18
|
+
// transform materialUi input value before sending it to react hook form, mostly used to deal with number fields
|
|
19
19
|
inputTransform = identity,
|
|
20
|
-
//transform react hook form value before sending it to materialUi input, mostly used to deal with number fields
|
|
20
|
+
// transform react hook form value before sending it to materialUi input, mostly used to deal with number fields
|
|
21
21
|
acceptValue = () => true,
|
|
22
|
-
//used to check user entry before committing the input change, used mostly to prevent user from typing a character in number field
|
|
22
|
+
// used to check user entry before committing the input change, used mostly to prevent user from typing a character in number field
|
|
23
23
|
previousValue,
|
|
24
24
|
clearable,
|
|
25
25
|
formProps
|
|
26
|
-
})
|
|
26
|
+
}) {
|
|
27
27
|
const { validationSchema, getValues, removeOptional } = useCustomFormContext();
|
|
28
28
|
const {
|
|
29
29
|
field: { onChange, value, ref },
|
|
@@ -53,7 +53,7 @@ const TextInput = ({
|
|
|
53
53
|
{
|
|
54
54
|
size: "small",
|
|
55
55
|
fullWidth: true,
|
|
56
|
-
id: id
|
|
56
|
+
id: id ?? label,
|
|
57
57
|
label: fieldLabel,
|
|
58
58
|
value: transformedValue,
|
|
59
59
|
onChange: handleValueChanged,
|
|
@@ -72,9 +72,9 @@ const TextInput = ({
|
|
|
72
72
|
...formProps,
|
|
73
73
|
...finalAdornment
|
|
74
74
|
},
|
|
75
|
-
id
|
|
75
|
+
id ?? label
|
|
76
76
|
);
|
|
77
|
-
}
|
|
77
|
+
}
|
|
78
78
|
export {
|
|
79
79
|
TextInput as default
|
|
80
80
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementExistsType, ElementType } from '../../../utils/ElementType';
|
|
2
2
|
import { UUID } from 'crypto';
|
|
3
|
-
import { ElementType } from '../../../utils/ElementType';
|
|
4
3
|
import { TextFieldProps } from '@mui/material';
|
|
5
|
-
import { FunctionComponent } from 'react';
|
|
6
4
|
|
|
7
5
|
interface UniqueNameInputProps {
|
|
8
6
|
name: string;
|
|
@@ -12,10 +10,10 @@ interface UniqueNameInputProps {
|
|
|
12
10
|
onManualChangeCallback?: () => void;
|
|
13
11
|
formProps?: Omit<TextFieldProps, 'value' | 'onChange' | 'name' | 'label' | 'inputRef' | 'inputProps' | 'InputProps'>;
|
|
14
12
|
activeDirectory?: UUID;
|
|
15
|
-
elementExists?:
|
|
13
|
+
elementExists?: ElementExistsType;
|
|
16
14
|
}
|
|
17
15
|
/**
|
|
18
16
|
* Input component that constantly check if the field's value is available or not
|
|
19
17
|
*/
|
|
20
|
-
|
|
21
|
-
export
|
|
18
|
+
declare function UniqueNameInput({ name, label, elementType, autoFocus, onManualChangeCallback, formProps, activeDirectory, elementExists, }: UniqueNameInputProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default UniqueNameInput;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect } from "react";
|
|
3
|
-
import { useDebounce } from "../../../hooks/useDebounce.js";
|
|
4
3
|
import { FormattedMessage } from "react-intl";
|
|
5
4
|
import { InputAdornment } from "@mui/material";
|
|
6
5
|
import CheckIcon from "@mui/icons-material/Check";
|
|
7
6
|
import { useController, useFormContext } from "react-hook-form";
|
|
8
7
|
import CircularProgress from "@mui/material/CircularProgress";
|
|
9
8
|
import TextField from "@mui/material/TextField";
|
|
10
|
-
import
|
|
11
|
-
|
|
9
|
+
import useDebounce from "../../../hooks/useDebounce.js";
|
|
10
|
+
import FieldConstants from "../../../utils/field-constants.js";
|
|
11
|
+
function UniqueNameInput({
|
|
12
12
|
name,
|
|
13
13
|
label,
|
|
14
14
|
elementType,
|
|
@@ -17,7 +17,7 @@ const UniqueNameInput = ({
|
|
|
17
17
|
formProps,
|
|
18
18
|
activeDirectory,
|
|
19
19
|
elementExists
|
|
20
|
-
})
|
|
20
|
+
}) {
|
|
21
21
|
var _a;
|
|
22
22
|
const {
|
|
23
23
|
field: { onChange, onBlur, value, ref },
|
|
@@ -38,21 +38,21 @@ const UniqueNameInput = ({
|
|
|
38
38
|
const isValidating = (_a = errors.root) == null ? void 0 : _a.isValidating;
|
|
39
39
|
const directory = selectedDirectory || activeDirectory;
|
|
40
40
|
const handleCheckName = useCallback(
|
|
41
|
-
(
|
|
42
|
-
if (
|
|
43
|
-
elementExists
|
|
41
|
+
(nameValue) => {
|
|
42
|
+
if (nameValue) {
|
|
43
|
+
elementExists == null ? void 0 : elementExists(directory, nameValue, elementType).then((alreadyExist) => {
|
|
44
44
|
if (alreadyExist) {
|
|
45
45
|
setError(name, {
|
|
46
46
|
type: "validate",
|
|
47
47
|
message: "nameAlreadyUsed"
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
}).catch((
|
|
50
|
+
}).catch((e) => {
|
|
51
51
|
setError(name, {
|
|
52
52
|
type: "validate",
|
|
53
53
|
message: "nameValidityCheckErrorMsg"
|
|
54
54
|
});
|
|
55
|
-
console.error(
|
|
55
|
+
console.error(e == null ? void 0 : e.message);
|
|
56
56
|
}).finally(() => {
|
|
57
57
|
clearErrors("root.isValidating");
|
|
58
58
|
});
|
|
@@ -95,7 +95,7 @@ const UniqueNameInput = ({
|
|
|
95
95
|
]);
|
|
96
96
|
const handleManualChange = (e) => {
|
|
97
97
|
onChange(e.target.value);
|
|
98
|
-
onManualChangeCallback
|
|
98
|
+
onManualChangeCallback == null ? void 0 : onManualChangeCallback();
|
|
99
99
|
};
|
|
100
100
|
const translatedLabel = /* @__PURE__ */ jsx(FormattedMessage, { id: label });
|
|
101
101
|
const translatedError = error && /* @__PURE__ */ jsx(FormattedMessage, { id: error.message });
|
|
@@ -123,7 +123,7 @@ const UniqueNameInput = ({
|
|
|
123
123
|
...formProps
|
|
124
124
|
}
|
|
125
125
|
);
|
|
126
|
-
}
|
|
126
|
+
}
|
|
127
127
|
export {
|
|
128
|
-
UniqueNameInput
|
|
128
|
+
UniqueNameInput as default
|
|
129
129
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2023, 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
|
+
declare function CancelButton({ ...inProps }: {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export default CancelButton;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
|
-
import PropTypes from "prop-types";
|
|
5
4
|
import { useThemeProps } from "@mui/material/styles";
|
|
6
|
-
|
|
5
|
+
function CancelButton({ ...inProps }) {
|
|
7
6
|
const props = useThemeProps({ props: inProps, name: "CancelButton" });
|
|
8
7
|
return /* @__PURE__ */ jsx(Button, { ...props, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "cancel" }) });
|
|
9
|
-
}
|
|
10
|
-
CancelButton.propTypes = {
|
|
11
|
-
buttonProps: PropTypes.object
|
|
12
|
-
};
|
|
8
|
+
}
|
|
13
9
|
export {
|
|
14
10
|
CancelButton as default
|
|
15
11
|
};
|
|
@@ -9,5 +9,5 @@ type FieldLabelProps = {
|
|
|
9
9
|
optional?: boolean;
|
|
10
10
|
values?: any;
|
|
11
11
|
};
|
|
12
|
-
declare
|
|
12
|
+
declare function FieldLabel({ label, optional, values, }: FieldLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default FieldLabel;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { FormattedMessage } from "react-intl";
|
|
3
|
-
|
|
3
|
+
function FieldLabel({
|
|
4
4
|
label,
|
|
5
5
|
optional = false,
|
|
6
6
|
values = void 0
|
|
7
|
-
})
|
|
7
|
+
}) {
|
|
8
8
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9
9
|
/* @__PURE__ */ jsx(FormattedMessage, { id: label, values }),
|
|
10
10
|
optional && /* @__PURE__ */ jsx(FormattedMessage, { id: "Optional" })
|
|
11
11
|
] });
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
13
|
export {
|
|
14
14
|
FieldLabel as default
|
|
15
15
|
};
|
|
@@ -6,7 +6,7 @@ function genHelperPreviousValue(previousValue, adornment) {
|
|
|
6
6
|
return {
|
|
7
7
|
...(previousValue || previousValue === 0) && {
|
|
8
8
|
error: false,
|
|
9
|
-
helperText: previousValue + (adornment ?
|
|
9
|
+
helperText: previousValue + (adornment ? ` ${adornment == null ? void 0 : adornment.text}` : "")
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022, 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
|
+
declare function SubmitButton({ ...buttonProps }: {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export default SubmitButton;
|
|
@@ -2,8 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button } from "@mui/material";
|
|
3
3
|
import { useFormState } from "react-hook-form";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
|
-
|
|
6
|
-
const SubmitButton = ({ ...buttonProps }) => {
|
|
5
|
+
function SubmitButton({ ...buttonProps }) {
|
|
7
6
|
const { isDirty } = useFormState();
|
|
8
7
|
return /* @__PURE__ */ jsx(
|
|
9
8
|
Button,
|
|
@@ -13,10 +12,7 @@ const SubmitButton = ({ ...buttonProps }) => {
|
|
|
13
12
|
children: /* @__PURE__ */ jsx(FormattedMessage, { id: "validate" })
|
|
14
13
|
}
|
|
15
14
|
);
|
|
16
|
-
}
|
|
17
|
-
SubmitButton.propTypes = {
|
|
18
|
-
buttonProps: PropTypes.object
|
|
19
|
-
};
|
|
15
|
+
}
|
|
20
16
|
export {
|
|
21
17
|
SubmitButton as default
|
|
22
18
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Input } from '../../../../utils/types';
|
|
2
2
|
import { TextFieldProps } from '@mui/material';
|
|
3
|
-
import { FunctionComponent } from 'react';
|
|
4
3
|
|
|
5
4
|
export type TextFieldWithAdornmentProps = TextFieldProps & {
|
|
6
5
|
value: Input;
|
|
@@ -8,5 +7,5 @@ export type TextFieldWithAdornmentProps = TextFieldProps & {
|
|
|
8
7
|
adornmentText: string;
|
|
9
8
|
handleClearValue?: () => void;
|
|
10
9
|
};
|
|
11
|
-
declare
|
|
10
|
+
declare function TextFieldWithAdornment(props: TextFieldWithAdornmentProps): import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export default TextFieldWithAdornment;
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useCallback } from "react";
|
|
3
3
|
import { Clear } from "@mui/icons-material";
|
|
4
4
|
import { InputAdornment, IconButton, TextField } from "@mui/material";
|
|
5
|
-
|
|
5
|
+
function TextFieldWithAdornment(props) {
|
|
6
6
|
const {
|
|
7
7
|
adornmentPosition,
|
|
8
8
|
adornmentText,
|
|
@@ -13,14 +13,14 @@ const TextFieldWithAdornment = (props) => {
|
|
|
13
13
|
} = props;
|
|
14
14
|
const [isFocused, setIsFocused] = useState(false);
|
|
15
15
|
const getAdornmentStyle = useCallback(
|
|
16
|
-
(
|
|
17
|
-
if (
|
|
16
|
+
(innerVariant) => {
|
|
17
|
+
if (innerVariant === "filled") {
|
|
18
18
|
return {
|
|
19
19
|
alignItems: "start",
|
|
20
20
|
marginBottom: "0.4em"
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
if (
|
|
23
|
+
if (innerVariant === "standard") {
|
|
24
24
|
return {
|
|
25
25
|
marginBottom: "0.3em"
|
|
26
26
|
};
|
|
@@ -81,11 +81,11 @@ const TextFieldWithAdornment = (props) => {
|
|
|
81
81
|
variant,
|
|
82
82
|
value,
|
|
83
83
|
InputProps: adornmentPosition === "start" ? withStartAdornmentText() : withEndAdornmentText(),
|
|
84
|
-
onFocus: (
|
|
85
|
-
onBlur: (
|
|
84
|
+
onFocus: () => setIsFocused(true),
|
|
85
|
+
onBlur: () => setIsFocused(false)
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
|
-
}
|
|
88
|
+
}
|
|
89
89
|
export {
|
|
90
90
|
TextFieldWithAdornment as default
|
|
91
91
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
1
|
import { ActionWithRulesAndAddersProps } from 'react-querybuilder';
|
|
3
2
|
|
|
4
3
|
interface ActionWithRulesAndAddersWithLabelProps extends ActionWithRulesAndAddersProps {
|
|
5
4
|
label: string;
|
|
6
5
|
}
|
|
7
|
-
declare
|
|
6
|
+
declare function AddButton(props: ActionWithRulesAndAddersWithLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default AddButton;
|
|
@@ -2,16 +2,19 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button } from "@mui/material";
|
|
3
3
|
import AddIcon from "@mui/icons-material/ControlPoint";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
function AddButton(props) {
|
|
6
|
+
const { label, handleOnClick } = props;
|
|
7
|
+
return /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
8
|
+
Button,
|
|
9
|
+
{
|
|
10
|
+
startIcon: /* @__PURE__ */ jsx(AddIcon, {}),
|
|
11
|
+
onClick: handleOnClick,
|
|
12
|
+
size: "small",
|
|
13
|
+
className: "add-button",
|
|
14
|
+
children: /* @__PURE__ */ jsx(FormattedMessage, { id: label })
|
|
15
|
+
}
|
|
16
|
+
) });
|
|
17
|
+
}
|
|
15
18
|
export {
|
|
16
19
|
AddButton as default
|
|
17
20
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
1
|
import { CombinatorSelectorProps } from 'react-querybuilder';
|
|
3
2
|
|
|
4
|
-
declare
|
|
3
|
+
declare function CombinatorSelector(props: CombinatorSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default CombinatorSelector;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback } from "react";
|
|
3
|
-
import PopupConfirmationDialog from "../../dialogs/popup-confirmation-dialog.js";
|
|
4
3
|
import { MaterialValueSelector } from "@react-querybuilder/material";
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import PopupConfirmationDialog from "../../dialogs/popup-confirmation-dialog.js";
|
|
5
|
+
function CombinatorSelector(props) {
|
|
6
|
+
const { value, handleOnChange } = props;
|
|
7
|
+
const [tempCombinator, setTempCombinator] = useState(value);
|
|
7
8
|
const [openPopup, setOpenPopup] = useState(false);
|
|
8
9
|
const handlePopupConfirmation = useCallback(() => {
|
|
9
|
-
|
|
10
|
+
handleOnChange(tempCombinator);
|
|
10
11
|
setOpenPopup(false);
|
|
11
|
-
}, [
|
|
12
|
+
}, [handleOnChange, tempCombinator]);
|
|
12
13
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13
14
|
/* @__PURE__ */ jsx(
|
|
14
15
|
PopupConfirmationDialog,
|
|
@@ -32,7 +33,7 @@ const CombinatorSelector = (props) => {
|
|
|
32
33
|
}
|
|
33
34
|
)
|
|
34
35
|
] });
|
|
35
|
-
}
|
|
36
|
+
}
|
|
36
37
|
export {
|
|
37
38
|
CombinatorSelector as default
|
|
38
39
|
};
|
package/dist/components/inputs/react-query-builder/composite-rule-editor/group-value-editor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CompositeField } from '../../../filter/expert/expert-filter.type';
|
|
2
2
|
import { ValueEditorProps } from 'react-querybuilder';
|
|
3
3
|
|
|
4
|
-
declare
|
|
4
|
+
declare function GroupValueEditor(props: ValueEditorProps<CompositeField>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default GroupValueEditor;
|
package/dist/components/inputs/react-query-builder/composite-rule-editor/group-value-editor.js
CHANGED
|
@@ -9,7 +9,7 @@ const styles = {
|
|
|
9
9
|
borderColor: theme.palette.grey[500]
|
|
10
10
|
})
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
function GroupValueEditor(props) {
|
|
13
13
|
const {
|
|
14
14
|
fieldData: { combinator, children },
|
|
15
15
|
value,
|
|
@@ -56,7 +56,7 @@ const GroupValueEditor = (props) => {
|
|
|
56
56
|
})
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
|
-
}
|
|
59
|
+
}
|
|
60
60
|
export {
|
|
61
61
|
GroupValueEditor as default
|
|
62
62
|
};
|
package/dist/components/inputs/react-query-builder/composite-rule-editor/rule-value-editor.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ type RuleValueEditorProps = ValueEditorProps & {
|
|
|
5
5
|
rule?: CompositeRule;
|
|
6
6
|
handleOnChangeRule: (rule: CompositeRule) => void;
|
|
7
7
|
};
|
|
8
|
-
declare
|
|
8
|
+
declare function RuleValueEditor(props: RuleValueEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default RuleValueEditor;
|