@gridsuite/commons-ui 0.57.0 → 0.59.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/_mocks_/svg.d.ts +4 -0
- package/dist/_mocks_/svg.js +8 -0
- package/dist/chunks/{criteria-based-filter-edition-dialog.BEXoNmzz.js → criteria-based-filter-edition-dialog.p2pUWzxc.js} +142 -158
- package/dist/chunks/{filter-properties.GRon8-ML.js → filter-properties.B7-q_yPf.js} +4 -4
- package/dist/components/AuthenticationRouter/AuthenticationRouter.d.ts +28 -9
- package/dist/components/AuthenticationRouter/AuthenticationRouter.js +1 -1
- package/dist/components/AuthenticationRouter/index.d.ts +6 -0
- package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +27 -13
- package/dist/components/CardErrorBoundary/card-error-boundary.js +7 -6
- package/dist/components/CardErrorBoundary/index.d.ts +6 -0
- package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +0 -4
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +14 -26
- package/dist/components/ElementSearchDialog/element-search-dialog.d.ts +18 -15
- package/dist/components/ElementSearchDialog/element-search-dialog.js +28 -65
- package/dist/components/ElementSearchDialog/equipment-item.d.ts +25 -16
- package/dist/components/ElementSearchDialog/equipment-item.js +9 -8
- package/dist/components/ElementSearchDialog/index.d.ts +6 -0
- package/dist/components/ElementSearchDialog/tag-renderer.d.ts +20 -10
- package/dist/components/ElementSearchDialog/tag-renderer.js +6 -11
- package/dist/components/FlatParameters/FlatParameters.d.ts +29 -9
- package/dist/components/FlatParameters/FlatParameters.js +3 -3
- package/dist/components/FlatParameters/index.d.ts +6 -0
- package/dist/components/Login/Login.d.ts +11 -4
- package/dist/components/Login/Logout.d.ts +11 -4
- package/dist/components/Login/index.d.ts +6 -0
- package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +25 -2
- package/dist/components/MuiVirtualizedTable/ColumnHeader.js +68 -59
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +72 -61
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +69 -83
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +93 -113
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +84 -106
- package/dist/components/MuiVirtualizedTable/index.d.ts +7 -1
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +16 -9
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +1 -1
- package/dist/components/MultipleSelectionDialog/index.d.ts +6 -0
- package/dist/components/OverflowableText/index.d.ts +6 -0
- package/dist/components/OverflowableText/overflowable-text.d.ts +11 -1
- package/dist/components/OverflowableText/overflowable-text.js +39 -26
- package/dist/components/ReportViewer/filter-button.d.ts +11 -1
- package/dist/components/ReportViewer/filter-button.js +5 -2
- package/dist/components/ReportViewer/index.d.ts +6 -0
- package/dist/components/ReportViewer/log-report-item.d.ts +14 -64
- package/dist/components/ReportViewer/log-report-item.js +13 -47
- package/dist/components/ReportViewer/log-report.d.ts +16 -17
- package/dist/components/ReportViewer/log-report.js +2 -1
- package/dist/components/ReportViewer/log-severity.d.ts +13 -0
- package/dist/components/ReportViewer/log-severity.js +35 -0
- package/dist/components/ReportViewer/log-table.d.ts +9 -6
- package/dist/components/ReportViewer/log-table.js +6 -4
- package/dist/components/ReportViewer/multi-select-list.d.ts +17 -1
- package/dist/components/ReportViewer/report-item.d.ts +12 -12
- package/dist/components/ReportViewer/report-item.js +0 -7
- package/dist/components/ReportViewer/report-tree-view-context.d.ts +11 -1
- package/dist/components/ReportViewer/report-viewer.d.ts +7 -4
- package/dist/components/ReportViewer/report-viewer.js +8 -6
- package/dist/components/ReportViewer/report.type.d.ts +22 -0
- package/dist/components/ReportViewer/report.type.js +1 -0
- package/dist/components/ReportViewerDialog/index.d.ts +6 -0
- package/dist/components/ReportViewerDialog/report-viewer-dialog.d.ts +9 -1
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +7 -4
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +4 -1
- package/dist/components/SignInCallbackHandler/index.d.ts +6 -0
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +7 -4
- package/dist/components/SilentRenewCallbackHandler/index.d.ts +6 -0
- package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +3 -1
- package/dist/components/SnackbarProvider/SnackbarProvider.js +9 -7
- package/dist/components/SnackbarProvider/index.d.ts +6 -0
- package/dist/components/TopBar/AboutDialog.d.ts +30 -23
- package/dist/components/TopBar/AboutDialog.js +4 -22
- package/dist/components/TopBar/GridLogo.d.ts +13 -32
- package/dist/components/TopBar/GridLogo.js +12 -15
- package/dist/components/TopBar/TopBar.d.ts +52 -51
- package/dist/components/TopBar/TopBar.js +389 -380
- package/dist/components/TopBar/TopBar.test.d.ts +6 -0
- package/dist/components/TopBar/index.d.ts +6 -0
- package/dist/components/TreeViewFinder/TreeViewFinder.js +1 -1
- package/dist/components/TreeViewFinder/index.d.ts +7 -0
- package/dist/components/dialogs/custom-mui-dialog.d.ts +2 -1
- package/dist/components/dialogs/custom-mui-dialog.js +6 -4
- package/dist/components/dialogs/description-modification-dialog.js +2 -2
- package/dist/components/dialogs/modify-element-selection.d.ts +14 -0
- package/dist/components/dialogs/modify-element-selection.js +99 -0
- package/dist/components/dialogs/popup-confirmation-dialog.js +1 -1
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +2 -3
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +4 -4
- package/dist/components/filter/criteria-based/criteria-based-filter-form.js +5 -3
- package/dist/components/filter/criteria-based/criteria-based-filter-utils.d.ts +12 -6
- package/dist/components/filter/criteria-based/criteria-based-filter-utils.js +44 -4
- package/dist/components/filter/criteria-based/criteria-based-form.d.ts +2 -0
- package/dist/components/filter/criteria-based/criteria-based-form.js +6 -6
- package/dist/components/filter/criteria-based/filter-free-properties.d.ts +1 -1
- package/dist/components/filter/criteria-based/filter-free-properties.js +5 -5
- package/dist/components/filter/criteria-based/filter-properties.js +3 -3
- package/dist/components/filter/criteria-based/filter-property.d.ts +1 -1
- package/dist/components/filter/criteria-based/filter-property.js +3 -3
- package/dist/components/filter/{constants → expert}/expert-filter-constants.d.ts +22 -1
- package/dist/components/filter/{constants → expert}/expert-filter-constants.js +46 -16
- package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +1 -7
- package/dist/components/filter/expert/expert-filter-edition-dialog.js +5 -7
- package/dist/components/filter/expert/expert-filter-form.js +5 -5
- package/dist/components/filter/expert/expert-filter-utils.js +1 -1
- package/dist/components/filter/expert/expert-filter.type.d.ts +4 -1
- package/dist/components/filter/expert/expert-filter.type.js +3 -0
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.d.ts +0 -2
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +4 -4
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.d.ts +10 -2
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +12 -8
- package/dist/components/filter/filter-creation-dialog.d.ts +4 -8
- package/dist/components/filter/filter-creation-dialog.js +3 -4
- package/dist/components/filter/filter-form.d.ts +4 -0
- package/dist/components/filter/filter-form.js +6 -5
- package/dist/components/filter/utils/filter-api.d.ts +5 -0
- package/dist/components/filter/utils/{filters-utils.js → filter-api.js} +16 -10
- package/dist/components/filter/utils/filter-form-utils.d.ts +17 -0
- package/dist/components/filter/utils/{criteria-based-utils.js → filter-form-utils.js} +16 -63
- package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/bottom-right-buttons.js +1 -1
- package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js +61 -0
- package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/custom-ag-grid-table.js +2 -2
- package/dist/components/{react-hook-form → inputs/react-hook-form/autocomplete-inputs}/autocomplete-input.d.ts +3 -3
- package/dist/components/{react-hook-form → inputs/react-hook-form/autocomplete-inputs}/autocomplete-input.js +4 -4
- package/dist/components/{react-hook-form → inputs/react-hook-form}/autocomplete-inputs/multiple-autocomplete-input.js +1 -1
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.d.ts +10 -0
- package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/boolean-input.js +0 -7
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.d.ts +9 -0
- package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/checkbox-input.js +0 -6
- package/dist/components/inputs/react-hook-form/booleans/switch-input.d.ts +9 -0
- package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/switch-input.js +0 -6
- package/dist/components/{react-hook-form → inputs/react-hook-form}/directory-items-input.d.ts +0 -2
- package/dist/components/{react-hook-form → inputs/react-hook-form}/directory-items-input.js +11 -15
- package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +6 -0
- package/dist/components/inputs/react-hook-form/numbers/integer-input.d.ts +4 -0
- package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/integer-input.js +1 -4
- package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/custom-form-provider.js +1 -1
- package/dist/components/{react-hook-form → inputs/react-hook-form}/range-input.d.ts +1 -1
- package/dist/components/{react-hook-form → inputs/react-hook-form}/range-input.js +2 -2
- package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/countries-input.d.ts +1 -1
- package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/countries-input.js +14 -4
- package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/input-with-popup-confirmation.js +1 -1
- package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/select-input.d.ts +2 -2
- package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/select-input.js +4 -1
- package/dist/components/inputs/react-hook-form/slider-input.d.ts +8 -0
- package/dist/components/{react-hook-form → inputs/react-hook-form}/slider-input.js +4 -12
- package/dist/components/{react-hook-form → inputs/react-hook-form}/text-input.d.ts +1 -1
- package/dist/components/{react-hook-form → inputs/react-hook-form}/unique-name-input.d.ts +2 -2
- package/dist/components/{react-hook-form → inputs/react-hook-form}/unique-name-input.js +2 -2
- package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/text-field-with-adornment.d.ts +1 -1
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/combinator-selector.js +1 -1
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/country-value-editor.js +1 -1
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/custom-react-query-builder.js +3 -3
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/element-value-editor.js +21 -28
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/property-value-editor.js +3 -3
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/remove-button.js +2 -2
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-convert-value.js +1 -1
- package/dist/components/inputs/react-query-builder/value-editor.js +18 -0
- package/dist/components/inputs/select-clearable.js +1 -1
- package/dist/components/translations/card-error-boundary-en.d.ts +1 -1
- package/dist/components/translations/card-error-boundary-fr.d.ts +1 -1
- package/dist/components/translations/common-button-en.d.ts +10 -4
- package/dist/components/translations/common-button-fr.d.ts +10 -4
- package/dist/components/translations/directory-items-input-en.d.ts +1 -1
- package/dist/components/translations/directory-items-input-fr.d.ts +1 -1
- package/dist/components/translations/element-search-en.d.ts +1 -1
- package/dist/components/translations/element-search-fr.d.ts +1 -1
- package/dist/components/translations/equipment-search-en.d.ts +1 -1
- package/dist/components/translations/equipment-search-fr.d.ts +1 -1
- package/dist/components/translations/filter-en.d.ts +27 -21
- package/dist/components/translations/filter-en.js +2 -1
- package/dist/components/translations/filter-expert-en.d.ts +73 -0
- package/dist/components/translations/filter-expert-en.js +69 -0
- package/dist/components/translations/filter-expert-fr.d.ts +73 -0
- package/dist/components/translations/filter-expert-fr.js +69 -0
- package/dist/components/translations/filter-fr.d.ts +27 -21
- package/dist/components/translations/filter-fr.js +2 -1
- package/dist/components/translations/flat-parameters-en.d.ts +1 -1
- package/dist/components/translations/flat-parameters-fr.d.ts +1 -1
- package/dist/components/translations/inputs-en.d.ts +1 -1
- package/dist/components/translations/inputs-fr.d.ts +1 -1
- package/dist/components/translations/login-en.d.ts +1 -1
- package/dist/components/translations/login-fr.d.ts +1 -1
- package/dist/components/translations/multiple-selection-dialog-en.d.ts +1 -1
- package/dist/components/translations/multiple-selection-dialog-fr.d.ts +1 -1
- package/dist/components/translations/report-viewer-en.d.ts +1 -1
- package/dist/components/translations/report-viewer-fr.d.ts +1 -1
- package/dist/components/translations/table-en.d.ts +1 -1
- package/dist/components/translations/table-fr.d.ts +1 -1
- package/dist/components/translations/top-bar-en.d.ts +1 -1
- package/dist/components/translations/top-bar-fr.d.ts +1 -1
- package/dist/components/translations/treeview-finder-en.d.ts +1 -1
- package/dist/components/translations/treeview-finder-fr.d.ts +1 -1
- package/dist/hooks/localized-countries-hook.d.ts +10 -4
- package/dist/hooks/localized-countries-hook.js +1 -1
- package/dist/hooks/predefined-properties-hook.d.ts +1 -15
- package/dist/hooks/predefined-properties-hook.js +8 -16
- package/dist/hooks/useDebounce.d.ts +1 -1
- package/dist/hooks/useSnackMessage.d.ts +4 -7
- package/dist/hooks/useSnackMessage.js +36 -43
- package/dist/index.d.ts +76 -218
- package/dist/index.js +156 -122
- package/dist/redux/actions.d.ts +54 -0
- package/dist/redux/commonStore.d.ts +15 -0
- package/dist/redux/commonStore.js +11 -0
- package/dist/services/apps-metadata.d.ts +32 -0
- package/dist/services/apps-metadata.js +26 -0
- package/dist/services/directory.d.ts +6 -0
- package/dist/services/directory.js +42 -0
- package/dist/services/explore.d.ts +6 -0
- package/dist/services/explore.js +62 -0
- package/dist/services/index.d.ts +16 -0
- package/dist/services/index.js +20 -0
- package/dist/services/study.d.ts +3 -0
- package/dist/services/study.js +16 -0
- package/dist/services/utils.d.ts +9 -0
- package/dist/services/utils.js +62 -0
- package/dist/utils/AuthService.d.ts +20 -9
- package/dist/utils/AuthService.js +30 -14
- package/dist/utils/ElementIcon.d.ts +4 -1
- package/dist/utils/UserManagerMock.d.ts +14 -14
- package/dist/utils/UserManagerMock.js +9 -15
- package/dist/utils/algos.d.ts +1 -1
- package/dist/utils/equipment-types-for-predefined-properties-mapper.d.ts +1 -1
- package/dist/utils/functions.d.ts +0 -1
- package/dist/utils/functions.js +1 -3
- package/dist/utils/styles.d.ts +5 -3
- package/dist/utils/styles.js +4 -1
- package/dist/utils/types.d.ts +13 -3
- package/package.json +9 -7
- package/dist/components/filter/filter-context.d.ts +0 -12
- package/dist/components/filter/filter-context.js +0 -10
- package/dist/components/filter/utils/criteria-based-utils.d.ts +0 -28
- package/dist/components/filter/utils/filters-utils.d.ts +0 -5
- package/dist/components/react-hook-form/ag-grid-table-rhf/csv-uploader/csv-uploader.js +0 -69
- package/dist/components/react-hook-form/booleans/boolean-input.d.ts +0 -16
- package/dist/components/react-hook-form/booleans/checkbox-input.d.ts +0 -14
- package/dist/components/react-hook-form/booleans/switch-input.d.ts +0 -14
- package/dist/components/react-hook-form/error-management/mid-form-error.d.ts +0 -4
- package/dist/components/react-hook-form/numbers/integer-input.d.ts +0 -21
- package/dist/components/react-hook-form/slider-input.d.ts +0 -21
- package/dist/components/react-query-builder-inputs/value-editor.js +0 -18
- package/dist/utils/actions.d.ts +0 -50
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/ExpandingTextField.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/ExpandingTextField.js +0 -0
- /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/bottom-right-buttons.d.ts +0 -0
- /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/cell-editors/numericEditor.d.ts +0 -0
- /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/cell-editors/numericEditor.js +0 -0
- /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/csv-uploader/csv-uploader.d.ts +0 -0
- /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/custom-ag-grid-table.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/autocomplete-inputs/multiple-autocomplete-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/error-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/error-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/field-error-alert.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/field-error-alert.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/mid-form-error.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/float-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/float-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/utils.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/utils.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/custom-form-provider.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/use-custom-form-context.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/use-custom-form-context.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/radio-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/radio-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/raw-read-only-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/raw-read-only-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/input-with-popup-confirmation.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/mui-select-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/mui-select-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/text-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/cancel-button.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/cancel-button.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/field-label.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/field-label.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/functions.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/functions.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/submit-button.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/submit-button.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/text-field-with-adornment.js +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/add-button.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/add-button.js +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/combinator-selector.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/country-value-editor.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/custom-react-query-builder.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/element-value-editor.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/property-value-editor.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/remove-button.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/text-value-editor.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/text-value-editor.js +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/translated-value-editor.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/translated-value-editor.js +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-convert-value.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-valid.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-valid.js +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/value-editor.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/value-selector.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/value-selector.js +0 -0
- /package/dist/{utils → redux}/actions.js +0 -0
- /package/dist/{components/filter/constants → utils}/equipment-types.d.ts +0 -0
- /package/dist/{components/filter/constants → utils}/equipment-types.js +0 -0
- /package/dist/{components/filter/constants → utils}/field-constants.d.ts +0 -0
- /package/dist/{components/filter/constants → utils}/field-constants.js +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@mui/material/Dialog";
|
|
3
|
+
import "@mui/material/DialogTitle";
|
|
4
|
+
import "@mui/material/DialogContent";
|
|
5
|
+
import "@mui/material/DialogActions";
|
|
6
|
+
import "react-papaparse";
|
|
7
|
+
import "@mui/material/Button";
|
|
8
|
+
import "react";
|
|
9
|
+
import "@mui/material/Grid";
|
|
10
|
+
import "react-intl";
|
|
11
|
+
import "react-csv-downloader";
|
|
12
|
+
import "@mui/material/Alert";
|
|
13
|
+
import "@mui/material";
|
|
14
|
+
import "react-hook-form";
|
|
15
|
+
import "../../../../TreeViewFinder/TreeViewFinder.js";
|
|
16
|
+
import "../../../../TopBar/TopBar.js";
|
|
17
|
+
import "@mui/icons-material";
|
|
18
|
+
import "@mui/lab";
|
|
19
|
+
import "notistack";
|
|
20
|
+
import "react-router-dom";
|
|
21
|
+
import "../../../../../utils/AuthService.js";
|
|
22
|
+
import "../../../../MuiVirtualizedTable/MuiVirtualizedTable.js";
|
|
23
|
+
import "../../../../ReportViewer/report-item.js";
|
|
24
|
+
import "uuid";
|
|
25
|
+
import "../../../../ReportViewer/log-table.js";
|
|
26
|
+
import "../../../../ReportViewer/report-tree-view-context.js";
|
|
27
|
+
import "@mui/x-tree-view";
|
|
28
|
+
import "../../../../OverflowableText/overflowable-text.js";
|
|
29
|
+
import "clsx";
|
|
30
|
+
import "../../utils/submit-button.js";
|
|
31
|
+
import "../../utils/cancel-button.js";
|
|
32
|
+
import "../../provider/custom-form-provider.js";
|
|
33
|
+
import "../../../../dialogs/description-modification-dialog.js";
|
|
34
|
+
import "../../../../../utils/field-constants.js";
|
|
35
|
+
import "yup";
|
|
36
|
+
import "../../../../dialogs/popup-confirmation-dialog.js";
|
|
37
|
+
import { c } from "../../../../../chunks/criteria-based-filter-edition-dialog.p2pUWzxc.js";
|
|
38
|
+
import "ag-grid-react";
|
|
39
|
+
import "ag-grid-community/styles/ag-grid.css";
|
|
40
|
+
import "ag-grid-community/styles/ag-theme-alpine.css";
|
|
41
|
+
import "autosuggest-highlight/match";
|
|
42
|
+
import "autosuggest-highlight/parse";
|
|
43
|
+
import "../../../../CardErrorBoundary/card-error-boundary.js";
|
|
44
|
+
import "@mui/icons-material/Folder";
|
|
45
|
+
import "../../../../../chunks/filter-properties.B7-q_yPf.js";
|
|
46
|
+
import "@mui/icons-material/Delete";
|
|
47
|
+
import "@mui/material/IconButton";
|
|
48
|
+
import "../../../../../utils/yup-config.js";
|
|
49
|
+
import "../../range-input.js";
|
|
50
|
+
import "../../../../filter/expert/expert-filter-utils.js";
|
|
51
|
+
import "../../select-inputs/mui-select-input.js";
|
|
52
|
+
import "localized-countries";
|
|
53
|
+
import "localized-countries/data/fr";
|
|
54
|
+
import "localized-countries/data/en";
|
|
55
|
+
import "@mui/icons-material/Check";
|
|
56
|
+
import "@mui/material/CircularProgress";
|
|
57
|
+
import "@mui/material/TextField";
|
|
58
|
+
import "../../../../filter/utils/filter-form-utils.js";
|
|
59
|
+
export {
|
|
60
|
+
c as default
|
|
61
|
+
};
|
|
@@ -5,9 +5,9 @@ import "ag-grid-react";
|
|
|
5
5
|
import "ag-grid-community/styles/ag-grid.css";
|
|
6
6
|
import "ag-grid-community/styles/ag-theme-alpine.css";
|
|
7
7
|
import "@mui/material";
|
|
8
|
-
import { C, R, C as C2 } from "
|
|
8
|
+
import { C, R, C as C2 } from "../../../../chunks/criteria-based-filter-edition-dialog.p2pUWzxc.js";
|
|
9
9
|
import "react-intl";
|
|
10
|
-
import "
|
|
10
|
+
import "../../../../utils/field-constants.js";
|
|
11
11
|
export {
|
|
12
12
|
C as CustomAgGridTable,
|
|
13
13
|
R as ROW_DRAGGING_SELECTION_COLUMN_DEF,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Option } from '
|
|
1
|
+
import { Option } from '../../../../utils/types';
|
|
2
2
|
import { FunctionComponent } from 'react';
|
|
3
3
|
import { AutocompleteProps, TextFieldProps } from '@mui/material';
|
|
4
4
|
|
|
@@ -6,8 +6,8 @@ export interface AutocompleteInputProps extends Omit<AutocompleteProps<Option, b
|
|
|
6
6
|
name: string;
|
|
7
7
|
options: Option[];
|
|
8
8
|
label?: string;
|
|
9
|
-
outputTransform?: (value: Option) => Option;
|
|
10
|
-
inputTransform?: (value: Option |
|
|
9
|
+
outputTransform?: (value: Option | null) => Option | null;
|
|
10
|
+
inputTransform?: (value: Option | null) => Option | null;
|
|
11
11
|
readOnly?: boolean;
|
|
12
12
|
previousValue?: string;
|
|
13
13
|
allowNewValue?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Autocomplete, TextField } from "@mui/material";
|
|
3
3
|
import { useController } from "react-hook-form";
|
|
4
|
-
import { isFieldRequired, genHelperPreviousValue, genHelperError, identity } from "
|
|
5
|
-
import FieldLabel from "
|
|
6
|
-
import { useCustomFormContext } from "
|
|
4
|
+
import { isFieldRequired, genHelperPreviousValue, genHelperError, identity } from "../utils/functions.js";
|
|
5
|
+
import FieldLabel from "../utils/field-label.js";
|
|
6
|
+
import { useCustomFormContext } from "../provider/use-custom-form-context.js";
|
|
7
7
|
const AutocompleteInput = ({
|
|
8
8
|
name,
|
|
9
9
|
label,
|
|
@@ -43,7 +43,7 @@ const AutocompleteInput = ({
|
|
|
43
43
|
return /* @__PURE__ */ jsx(
|
|
44
44
|
Autocomplete,
|
|
45
45
|
{
|
|
46
|
-
value: inputTransform(value
|
|
46
|
+
value: inputTransform(value),
|
|
47
47
|
onChange: (_, data) => handleChange(data),
|
|
48
48
|
...allowNewValue && {
|
|
49
49
|
freeSolo: true,
|
|
@@ -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 "./autocomplete-input.js";
|
|
5
5
|
const MultipleAutocompleteInput = ({ name, ...props }) => {
|
|
6
6
|
const [unsavedInput, setUnsavedInput] = useState("");
|
|
7
7
|
const watchAutocompleteValues = useWatch({
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Checkbox, Switch } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export interface BooleanInputProps {
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
formProps?: any;
|
|
7
|
+
Input: typeof Switch | typeof Checkbox;
|
|
8
|
+
}
|
|
9
|
+
declare const BooleanInput: ({ name, label, formProps, Input }: BooleanInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default BooleanInput;
|
package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/boolean-input.js
RENAMED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { FormControlLabel } from "@mui/material";
|
|
6
5
|
import { useController } from "react-hook-form";
|
|
@@ -38,12 +37,6 @@ const BooleanInput = ({ name, label, formProps, Input }) => {
|
|
|
38
37
|
}
|
|
39
38
|
return CustomInput;
|
|
40
39
|
};
|
|
41
|
-
BooleanInput.propTypes = {
|
|
42
|
-
name: PropTypes.string.isRequired,
|
|
43
|
-
label: PropTypes.string,
|
|
44
|
-
formProps: PropTypes.object,
|
|
45
|
-
Input: PropTypes.elementType.isRequired
|
|
46
|
-
};
|
|
47
40
|
export {
|
|
48
41
|
BooleanInput as default
|
|
49
42
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CheckboxProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export interface CheckboxInputProps {
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
formProps?: CheckboxProps;
|
|
7
|
+
}
|
|
8
|
+
declare const CheckboxInput: ({ name, label, formProps }: CheckboxInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default CheckboxInput;
|
package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/checkbox-input.js
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import BooleanInput from "./boolean-input.js";
|
|
4
3
|
import { Checkbox } from "@mui/material";
|
|
5
4
|
const CheckboxInput = ({ name, label, formProps }) => {
|
|
@@ -13,11 +12,6 @@ const CheckboxInput = ({ name, label, formProps }) => {
|
|
|
13
12
|
}
|
|
14
13
|
);
|
|
15
14
|
};
|
|
16
|
-
CheckboxInput.propTypes = {
|
|
17
|
-
name: PropTypes.string.isRequired,
|
|
18
|
-
label: PropTypes.string,
|
|
19
|
-
formProps: PropTypes.object
|
|
20
|
-
};
|
|
21
15
|
export {
|
|
22
16
|
CheckboxInput as default
|
|
23
17
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SwitchProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export interface SwitchInputProps {
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
formProps?: SwitchProps;
|
|
7
|
+
}
|
|
8
|
+
declare const SwitchInput: ({ name, label, formProps }: SwitchInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SwitchInput;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import BooleanInput from "./boolean-input.js";
|
|
4
3
|
import { Switch } from "@mui/material";
|
|
5
4
|
const SwitchInput = ({ name, label, formProps }) => {
|
|
@@ -13,11 +12,6 @@ const SwitchInput = ({ name, label, formProps }) => {
|
|
|
13
12
|
}
|
|
14
13
|
);
|
|
15
14
|
};
|
|
16
|
-
SwitchInput.propTypes = {
|
|
17
|
-
name: PropTypes.string.isRequired,
|
|
18
|
-
label: PropTypes.string,
|
|
19
|
-
formProps: PropTypes.object
|
|
20
|
-
};
|
|
21
15
|
export {
|
|
22
16
|
SwitchInput as default
|
|
23
17
|
};
|
package/dist/components/{react-hook-form → inputs/react-hook-form}/directory-items-input.d.ts
RENAMED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { UUID } from 'crypto';
|
|
2
1
|
import { FunctionComponent } from 'react';
|
|
3
2
|
|
|
4
3
|
export declare const NAME = "name";
|
|
@@ -14,7 +13,6 @@ export interface DirectoryItemsInputProps {
|
|
|
14
13
|
onChange?: (e: any) => void;
|
|
15
14
|
disable?: boolean;
|
|
16
15
|
labelRequiredFromContext?: boolean;
|
|
17
|
-
fetchDirectoryElementPath?: (id: UUID) => Promise<any[]>;
|
|
18
16
|
}
|
|
19
17
|
declare const DirectoryItemsInput: FunctionComponent<DirectoryItemsInputProps>;
|
|
20
18
|
export default DirectoryItemsInput;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { FormControl, Chip, Grid, Tooltip, IconButton } from "@mui/material";
|
|
3
|
-
import { OverflowableText } from "../OverflowableText/overflowable-text.js";
|
|
4
3
|
import FieldLabel from "./utils/field-label.js";
|
|
5
4
|
import FolderIcon from "@mui/icons-material/Folder";
|
|
6
|
-
import { useState, useMemo,
|
|
5
|
+
import { useState, useMemo, useCallback } from "react";
|
|
7
6
|
import { useFieldArray, useController } from "react-hook-form";
|
|
8
7
|
import { useIntl } from "react-intl";
|
|
9
|
-
import MidFormError from "./error-management/mid-form-error.js";
|
|
10
8
|
import { RawReadOnlyInput } from "./raw-read-only-input.js";
|
|
11
|
-
import { mergeSx } from "../../utils/styles.js";
|
|
12
|
-
import DirectoryItemSelector from "../DirectoryItemSelector/directory-item-selector.js";
|
|
13
9
|
import { useCustomFormContext } from "./provider/use-custom-form-context.js";
|
|
14
10
|
import { isFieldRequired } from "./utils/functions.js";
|
|
15
11
|
import ErrorInput from "./error-management/error-input.js";
|
|
16
|
-
import { useSnackMessage } from "
|
|
17
|
-
import {
|
|
12
|
+
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
13
|
+
import { mergeSx } from "../../../utils/styles.js";
|
|
14
|
+
import { OverflowableText } from "../../OverflowableText/overflowable-text.js";
|
|
15
|
+
import MidFormError from "./error-management/mid-form-error.js";
|
|
16
|
+
import DirectoryItemSelector from "../../DirectoryItemSelector/directory-item-selector.js";
|
|
17
|
+
import { fetchDirectoryElementPath } from "../../../services/directory.js";
|
|
18
18
|
const NAME = "name";
|
|
19
19
|
const styles = {
|
|
20
20
|
formDirectoryElements1: {
|
|
@@ -58,8 +58,7 @@ const DirectoryItemsInput = ({
|
|
|
58
58
|
onRowChanged,
|
|
59
59
|
onChange,
|
|
60
60
|
disable = false,
|
|
61
|
-
labelRequiredFromContext = true
|
|
62
|
-
fetchDirectoryElementPath
|
|
61
|
+
labelRequiredFromContext = true
|
|
63
62
|
}) => {
|
|
64
63
|
const { snackError } = useSnackMessage();
|
|
65
64
|
const intl = useIntl();
|
|
@@ -77,7 +76,6 @@ const DirectoryItemsInput = ({
|
|
|
77
76
|
});
|
|
78
77
|
const formContext = useCustomFormContext();
|
|
79
78
|
const { getValues, validationSchema } = formContext;
|
|
80
|
-
const { fetchDirectoryContent, fetchRootFolders, fetchElementsInfos } = useContext(FilterContext);
|
|
81
79
|
const {
|
|
82
80
|
fieldState: { error }
|
|
83
81
|
} = useController({
|
|
@@ -139,7 +137,7 @@ const DirectoryItemsInput = ({
|
|
|
139
137
|
var _a;
|
|
140
138
|
const chips = getValues(name);
|
|
141
139
|
const chip = (_a = chips.at(index)) == null ? void 0 : _a.id;
|
|
142
|
-
if (chip
|
|
140
|
+
if (chip) {
|
|
143
141
|
fetchDirectoryElementPath(chip).then((response) => {
|
|
144
142
|
const path = response.reverse().filter((e) => e.elementUuid !== chip).map((e) => e.elementUuid);
|
|
145
143
|
setExpanded(path);
|
|
@@ -149,7 +147,7 @@ const DirectoryItemsInput = ({
|
|
|
149
147
|
});
|
|
150
148
|
}
|
|
151
149
|
},
|
|
152
|
-
[getValues, name
|
|
150
|
+
[getValues, name]
|
|
153
151
|
);
|
|
154
152
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
155
153
|
/* @__PURE__ */ jsxs(
|
|
@@ -157,6 +155,7 @@ const DirectoryItemsInput = ({
|
|
|
157
155
|
{
|
|
158
156
|
sx: mergeSx(
|
|
159
157
|
styles.formDirectoryElements1,
|
|
158
|
+
//@ts-ignore
|
|
160
159
|
(error == null ? void 0 : error.message) && styles.formDirectoryElementsError
|
|
161
160
|
),
|
|
162
161
|
error: !!(error == null ? void 0 : error.message),
|
|
@@ -219,9 +218,6 @@ const DirectoryItemsInput = ({
|
|
|
219
218
|
equipmentTypes,
|
|
220
219
|
title: intl.formatMessage({ id: titleId }),
|
|
221
220
|
itemFilter,
|
|
222
|
-
fetchDirectoryContent,
|
|
223
|
-
fetchRootFolders,
|
|
224
|
-
fetchElementsInfos,
|
|
225
221
|
selected,
|
|
226
222
|
expanded,
|
|
227
223
|
multiSelect
|
|
@@ -6,7 +6,7 @@ const IntegerInput = (props) => {
|
|
|
6
6
|
if ("-" === value) {
|
|
7
7
|
return value;
|
|
8
8
|
}
|
|
9
|
-
return value === null || isNaN(value) ? "" : value.toString();
|
|
9
|
+
return value === null || typeof value === "number" && isNaN(value) ? "" : value.toString();
|
|
10
10
|
};
|
|
11
11
|
const outputTransform = (value) => {
|
|
12
12
|
if (value === "-") {
|
|
@@ -27,9 +27,6 @@ const IntegerInput = (props) => {
|
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
};
|
|
30
|
-
IntegerInput.propTypes = {
|
|
31
|
-
...TextInput.propTypes
|
|
32
|
-
};
|
|
33
30
|
export {
|
|
34
31
|
IntegerInput as default
|
|
35
32
|
};
|
package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/custom-form-provider.js
RENAMED
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext } from "react";
|
|
3
3
|
import { FormProvider } from "react-hook-form";
|
|
4
4
|
import * as yup from "yup";
|
|
5
|
-
import { getSystemLanguage } from "
|
|
5
|
+
import { getSystemLanguage } from "../../../../hooks/localized-countries-hook.js";
|
|
6
6
|
const CustomFormContext = createContext({
|
|
7
7
|
removeOptional: false,
|
|
8
8
|
validationSchema: yup.object(),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useWatch } from "react-hook-form";
|
|
3
3
|
import FloatInput from "./numbers/float-input.js";
|
|
4
|
-
import "
|
|
4
|
+
import "../../../utils/yup-config.js";
|
|
5
5
|
import { FormattedMessage } from "react-intl";
|
|
6
6
|
import { useMemo } from "react";
|
|
7
7
|
import InputLabel from "@mui/material/InputLabel";
|
|
8
8
|
import { Grid } from "@mui/material";
|
|
9
9
|
import FormControl from "@mui/material/FormControl";
|
|
10
10
|
import MuiSelectInput from "./select-inputs/mui-select-input.js";
|
|
11
|
-
import { FieldConstants } from "
|
|
11
|
+
import { FieldConstants } from "../../../utils/field-constants.js";
|
|
12
12
|
import * as yup from "yup";
|
|
13
13
|
const style = {
|
|
14
14
|
inputLegend: (theme) => ({
|
package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/countries-input.js
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from "react";
|
|
2
3
|
import { Chip } from "@mui/material";
|
|
3
|
-
import AutocompleteInput from "../autocomplete-input.js";
|
|
4
|
-
import { useLocalizedCountries } from "
|
|
4
|
+
import AutocompleteInput from "../autocomplete-inputs/autocomplete-input.js";
|
|
5
|
+
import { useLocalizedCountries } from "../../../../hooks/localized-countries-hook.js";
|
|
5
6
|
import { useCustomFormContext } from "../provider/use-custom-form-context.js";
|
|
6
7
|
const CountriesInput = ({
|
|
7
8
|
name,
|
|
@@ -9,13 +10,23 @@ const CountriesInput = ({
|
|
|
9
10
|
}) => {
|
|
10
11
|
const { language } = useCustomFormContext();
|
|
11
12
|
const { translate, countryCodes } = useLocalizedCountries(language);
|
|
13
|
+
const translateOption = useCallback(
|
|
14
|
+
(option) => {
|
|
15
|
+
if (typeof option === "string") {
|
|
16
|
+
return translate(option);
|
|
17
|
+
} else {
|
|
18
|
+
return translate(option.label);
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
[translate]
|
|
22
|
+
);
|
|
12
23
|
return /* @__PURE__ */ jsx(
|
|
13
24
|
AutocompleteInput,
|
|
14
25
|
{
|
|
15
26
|
name,
|
|
16
27
|
label,
|
|
17
28
|
options: countryCodes,
|
|
18
|
-
getOptionLabel:
|
|
29
|
+
getOptionLabel: translateOption,
|
|
19
30
|
fullWidth: true,
|
|
20
31
|
multiple: true,
|
|
21
32
|
renderTags: (val, getTagsProps) => val.map((code, index) => /* @__PURE__ */ jsx(
|
|
@@ -31,6 +42,5 @@ const CountriesInput = ({
|
|
|
31
42
|
);
|
|
32
43
|
};
|
|
33
44
|
export {
|
|
34
|
-
CountriesInput,
|
|
35
45
|
CountriesInput as default
|
|
36
46
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useController } from "react-hook-form";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
import PopupConfirmationDialog from "
|
|
4
|
+
import PopupConfirmationDialog from "../../../dialogs/popup-confirmation-dialog.js";
|
|
5
5
|
const InputWithPopupConfirmation = ({
|
|
6
6
|
Input,
|
|
7
7
|
name,
|
package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/select-input.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Option } from '
|
|
1
|
+
import { Option } from '../../../../utils/types';
|
|
2
2
|
import { FunctionComponent } from 'react';
|
|
3
|
-
import { AutocompleteInputProps } from '../autocomplete-input';
|
|
3
|
+
import { AutocompleteInputProps } from '../autocomplete-inputs/autocomplete-input';
|
|
4
4
|
|
|
5
5
|
export interface SelectInputProps extends Omit<AutocompleteInputProps, 'outputTransform' | 'inputTransform' | 'readOnly' | 'getOptionLabel'> {
|
|
6
6
|
options: Option[];
|
package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/select-input.js
RENAMED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import AutocompleteInput from "../autocomplete-input.js";
|
|
2
|
+
import AutocompleteInput from "../autocomplete-inputs/autocomplete-input.js";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
const SelectInput = (props) => {
|
|
5
5
|
const intl = useIntl();
|
|
6
6
|
const inputTransform = (value) => {
|
|
7
|
+
if (value === null) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
7
10
|
if (typeof value === "string") {
|
|
8
11
|
return props.options.find(
|
|
9
12
|
(option) => typeof option !== "string" && (option == null ? void 0 : option.id) === value
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SliderProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export interface SliderInputProps extends SliderProps {
|
|
4
|
+
name: string;
|
|
5
|
+
onValueChanged: (value: any) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const SliderInput: ({ name, min, max, step, size, onValueChanged, }: SliderInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SliderInput;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import { Slider } from "@mui/material";
|
|
4
3
|
import { useController } from "react-hook-form";
|
|
5
4
|
import { identity } from "./utils/functions.js";
|
|
@@ -9,13 +8,14 @@ const SliderInput = ({
|
|
|
9
8
|
max,
|
|
10
9
|
step,
|
|
11
10
|
size = "small",
|
|
12
|
-
|
|
11
|
+
onValueChanged = identity
|
|
13
12
|
}) => {
|
|
14
13
|
const {
|
|
15
14
|
field: { onChange, value }
|
|
16
15
|
} = useController({ name });
|
|
17
|
-
const handleValueChange = (
|
|
18
|
-
|
|
16
|
+
const handleValueChange = (event, value2, activeThumb) => {
|
|
17
|
+
onValueChanged(value2);
|
|
18
|
+
onChange(value2);
|
|
19
19
|
};
|
|
20
20
|
return /* @__PURE__ */ jsx(
|
|
21
21
|
Slider,
|
|
@@ -29,14 +29,6 @@ const SliderInput = ({
|
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
};
|
|
32
|
-
SliderInput.propTypes = {
|
|
33
|
-
name: PropTypes.string.isRequired,
|
|
34
|
-
min: PropTypes.number.isRequired,
|
|
35
|
-
max: PropTypes.number.isRequired,
|
|
36
|
-
step: PropTypes.number.isRequired,
|
|
37
|
-
size: PropTypes.string,
|
|
38
|
-
onValueChange: PropTypes.func
|
|
39
|
-
};
|
|
40
32
|
export {
|
|
41
33
|
SliderInput as default
|
|
42
34
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Input } from '
|
|
1
|
+
import { Input } from '../../../utils/types';
|
|
2
2
|
import { TextFieldWithAdornmentProps } from './utils/text-field-with-adornment';
|
|
3
3
|
import { TextFieldProps } from '@mui/material';
|
|
4
4
|
import { FunctionComponent, ReactElement } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { elementExistsType } from '
|
|
1
|
+
import { elementExistsType } from '../../filter/criteria-based/criteria-based-filter-edition-dialog';
|
|
2
2
|
import { UUID } from 'crypto';
|
|
3
|
-
import { ElementType } from '
|
|
3
|
+
import { ElementType } from '../../../utils/ElementType';
|
|
4
4
|
import { TextFieldProps } from '@mui/material';
|
|
5
5
|
import { FunctionComponent } from 'react';
|
|
6
6
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect } from "react";
|
|
3
|
-
import { useDebounce } from "
|
|
3
|
+
import { useDebounce } from "../../../hooks/useDebounce.js";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import { InputAdornment } from "@mui/material";
|
|
6
6
|
import CheckIcon from "@mui/icons-material/Check";
|
|
7
7
|
import { useController, useFormContext } from "react-hook-form";
|
|
8
8
|
import CircularProgress from "@mui/material/CircularProgress";
|
|
9
9
|
import TextField from "@mui/material/TextField";
|
|
10
|
-
import { FieldConstants } from "
|
|
10
|
+
import { FieldConstants } from "../../../utils/field-constants.js";
|
|
11
11
|
const UniqueNameInput = ({
|
|
12
12
|
name,
|
|
13
13
|
label,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback } from "react";
|
|
3
|
-
import PopupConfirmationDialog from "
|
|
3
|
+
import PopupConfirmationDialog from "../../dialogs/popup-confirmation-dialog.js";
|
|
4
4
|
import { MaterialValueSelector } from "@react-querybuilder/material";
|
|
5
5
|
const CombinatorSelector = (props) => {
|
|
6
6
|
const [tempCombinator, setTempCombinator] = useState(props.value);
|
|
@@ -3,7 +3,7 @@ import { MaterialValueEditor } from "@react-querybuilder/material";
|
|
|
3
3
|
import { Autocomplete, TextField } from "@mui/material";
|
|
4
4
|
import useConvertValue from "./use-convert-value.js";
|
|
5
5
|
import useValid from "./use-valid.js";
|
|
6
|
-
import { useLocalizedCountries } from "
|
|
6
|
+
import { useLocalizedCountries } from "../../../hooks/localized-countries-hook.js";
|
|
7
7
|
import { useCustomFormContext } from "../react-hook-form/provider/use-custom-form-context.js";
|
|
8
8
|
import { useMemo } from "react";
|
|
9
9
|
const CountryValueEditor = (props) => {
|
|
@@ -7,15 +7,15 @@ import "@react-querybuilder/material";
|
|
|
7
7
|
import "react-querybuilder";
|
|
8
8
|
import "react-intl";
|
|
9
9
|
import "react-hook-form";
|
|
10
|
-
import { j } from "
|
|
10
|
+
import { j } from "../../../chunks/criteria-based-filter-edition-dialog.p2pUWzxc.js";
|
|
11
11
|
import "./combinator-selector.js";
|
|
12
12
|
import "./add-button.js";
|
|
13
13
|
import "./value-selector.js";
|
|
14
14
|
import "react";
|
|
15
|
-
import "
|
|
15
|
+
import "../../filter/expert/expert-filter-constants.js";
|
|
16
16
|
import "../react-hook-form/error-management/error-input.js";
|
|
17
17
|
import "../react-hook-form/error-management/field-error-alert.js";
|
|
18
|
-
import "
|
|
18
|
+
import "../../filter/expert/expert-filter-utils.js";
|
|
19
19
|
export {
|
|
20
20
|
j as default
|
|
21
21
|
};
|