@gridsuite/commons-ui 0.55.0 → 0.56.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/assets/criteria-based-filter-edition-dialog.css +168 -0
- package/dist/chunks/criteria-based-filter-edition-dialog.DxqH-mLe.js +1673 -0
- package/dist/chunks/filter-properties.GRon8-ML.js +195 -0
- package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +13 -3
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +14 -10
- package/dist/components/dialogs/custom-mui-dialog.d.ts +21 -0
- package/dist/components/dialogs/custom-mui-dialog.js +87 -0
- package/dist/components/dialogs/description-modification-dialog.d.ts +11 -0
- package/dist/components/dialogs/description-modification-dialog.js +71 -0
- package/dist/components/dialogs/popup-confirmation-dialog.d.ts +11 -0
- package/dist/components/dialogs/popup-confirmation-dialog.js +38 -0
- package/dist/components/filter/constants/equipment-types.d.ts +72 -0
- package/dist/components/filter/constants/equipment-types.js +63 -0
- package/dist/components/filter/constants/expert-filter-constants.d.ts +546 -0
- package/dist/components/filter/constants/expert-filter-constants.js +663 -0
- package/dist/components/filter/constants/field-constants.d.ts +45 -0
- package/dist/components/filter/constants/field-constants.js +43 -0
- package/dist/components/filter/constants/filter-constants.d.ts +21 -0
- package/dist/components/filter/constants/filter-constants.js +10 -0
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +29 -0
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +19 -0
- package/dist/components/filter/criteria-based/criteria-based-filter-form.d.ts +15 -0
- package/dist/components/filter/criteria-based/criteria-based-filter-form.js +33 -0
- package/dist/components/filter/criteria-based/criteria-based-filter-utils.d.ts +37 -0
- package/dist/components/filter/criteria-based/criteria-based-filter-utils.js +127 -0
- package/dist/components/filter/criteria-based/criteria-based-form.d.ts +7 -0
- package/dist/components/filter/criteria-based/criteria-based-form.js +50 -0
- package/dist/components/filter/criteria-based/filter-free-properties.d.ts +10 -0
- package/dist/components/filter/criteria-based/filter-free-properties.js +15 -0
- package/dist/components/filter/criteria-based/filter-properties.d.ts +21 -0
- package/dist/components/filter/criteria-based/filter-properties.js +19 -0
- package/dist/components/filter/criteria-based/filter-property.d.ts +19 -0
- package/dist/components/filter/criteria-based/filter-property.js +67 -0
- package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +28 -0
- package/dist/components/filter/expert/expert-filter-edition-dialog.js +20 -0
- package/dist/components/filter/expert/expert-filter-form.d.ts +21 -0
- package/dist/components/filter/expert/expert-filter-form.js +22 -0
- package/dist/components/filter/expert/expert-filter-utils.d.ts +19 -0
- package/dist/components/filter/expert/expert-filter-utils.js +302 -0
- package/dist/components/filter/expert/expert-filter.type.d.ts +113 -0
- package/dist/components/filter/expert/expert-filter.type.js +103 -0
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.d.ts +22 -0
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +19 -0
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.d.ts +22 -0
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +23 -0
- package/dist/components/filter/filter-context.d.ts +12 -0
- package/dist/components/filter/filter-context.js +10 -0
- package/dist/components/filter/filter-creation-dialog.d.ts +21 -0
- package/dist/components/filter/filter-creation-dialog.js +17 -0
- package/dist/components/filter/filter-form.d.ts +11 -0
- package/dist/components/filter/filter-form.js +14 -0
- package/dist/components/filter/utils/criteria-based-utils.d.ts +28 -0
- package/dist/components/filter/utils/criteria-based-utils.js +197 -0
- package/dist/components/filter/utils/filters-utils.d.ts +5 -0
- package/dist/components/filter/utils/filters-utils.js +99 -0
- package/dist/components/inputs/select-clearable.d.ts +14 -0
- package/dist/components/inputs/select-clearable.js +40 -0
- package/dist/components/react-hook-form/ExpandingTextField.d.ts +1 -1
- package/dist/components/react-hook-form/ExpandingTextField.js +0 -37
- package/dist/components/react-hook-form/ag-grid-table-rhf/bottom-right-buttons.d.ts +17 -0
- package/dist/components/react-hook-form/ag-grid-table-rhf/bottom-right-buttons.js +15 -0
- package/dist/components/react-hook-form/ag-grid-table-rhf/cell-editors/numericEditor.d.ts +23 -0
- package/dist/components/react-hook-form/ag-grid-table-rhf/cell-editors/numericEditor.js +70 -0
- package/dist/components/react-hook-form/ag-grid-table-rhf/csv-uploader/csv-uploader.d.ts +16 -0
- package/dist/components/react-hook-form/ag-grid-table-rhf/csv-uploader/csv-uploader.js +69 -0
- package/dist/components/react-hook-form/ag-grid-table-rhf/custom-ag-grid-table.d.ts +23 -0
- package/dist/components/react-hook-form/ag-grid-table-rhf/custom-ag-grid-table.js +15 -0
- package/dist/components/react-hook-form/autocomplete-input.d.ts +17 -29
- package/dist/components/react-hook-form/autocomplete-input.js +4 -15
- package/dist/components/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.d.ts +2 -0
- package/dist/components/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js +46 -0
- package/dist/components/react-hook-form/directory-items-input.d.ts +0 -3
- package/dist/components/react-hook-form/directory-items-input.js +5 -6
- package/dist/components/react-hook-form/error-management/error-input.d.ts +13 -4
- package/dist/components/react-hook-form/error-management/error-input.js +7 -7
- package/dist/components/react-hook-form/error-management/field-error-alert.d.ts +6 -3
- package/dist/components/react-hook-form/error-management/field-error-alert.js +3 -1
- package/dist/components/react-hook-form/numbers/float-input.d.ts +5 -17
- package/dist/components/react-hook-form/numbers/float-input.js +3 -5
- package/dist/components/react-hook-form/numbers/integer-input.d.ts +15 -12
- package/dist/components/react-hook-form/numbers/utils.d.ts +8 -2
- package/dist/components/react-hook-form/provider/custom-form-provider.d.ts +1 -0
- package/dist/components/react-hook-form/provider/custom-form-provider.js +12 -3
- package/dist/components/react-hook-form/radio-input.d.ts +14 -17
- package/dist/components/react-hook-form/radio-input.js +7 -9
- package/dist/components/react-hook-form/range-input.d.ts +54 -0
- package/dist/components/react-hook-form/range-input.js +118 -0
- package/dist/components/react-hook-form/select-inputs/countries-input.d.ts +8 -0
- package/dist/components/react-hook-form/select-inputs/countries-input.js +36 -0
- package/dist/components/react-hook-form/select-inputs/input-with-popup-confirmation.d.ts +2 -0
- package/dist/components/react-hook-form/select-inputs/input-with-popup-confirmation.js +61 -0
- package/dist/components/react-hook-form/select-inputs/mui-select-input.d.ts +12 -0
- package/dist/components/react-hook-form/select-inputs/mui-select-input.js +25 -0
- package/dist/components/react-hook-form/select-inputs/select-input.d.ts +9 -0
- package/dist/components/react-hook-form/select-inputs/select-input.js +37 -0
- package/dist/components/react-hook-form/text-input.d.ts +23 -32
- package/dist/components/react-hook-form/text-input.js +6 -20
- package/dist/components/react-hook-form/unique-name-input.d.ts +21 -0
- package/dist/components/react-hook-form/unique-name-input.js +129 -0
- package/dist/components/react-hook-form/utils/cancel-button.d.ts +9 -8
- package/dist/components/react-hook-form/utils/field-label.d.ts +12 -5
- package/dist/components/react-hook-form/utils/field-label.js +5 -1
- package/dist/components/react-hook-form/utils/functions.d.ts +12 -4
- package/dist/components/react-hook-form/utils/functions.js +21 -1
- package/dist/components/react-hook-form/utils/submit-button.d.ts +9 -8
- package/dist/components/react-hook-form/utils/text-field-with-adornment.d.ts +11 -11
- package/dist/components/react-hook-form/utils/text-field-with-adornment.js +18 -23
- package/dist/components/react-query-builder-inputs/add-button.d.ts +8 -0
- package/dist/components/react-query-builder-inputs/add-button.js +17 -0
- package/dist/components/react-query-builder-inputs/combinator-selector.d.ts +5 -0
- package/dist/components/react-query-builder-inputs/combinator-selector.js +38 -0
- package/dist/components/react-query-builder-inputs/country-value-editor.d.ts +5 -0
- package/dist/components/react-query-builder-inputs/country-value-editor.js +46 -0
- package/dist/components/react-query-builder-inputs/custom-react-query-builder.d.ts +8 -0
- package/dist/components/react-query-builder-inputs/custom-react-query-builder.js +21 -0
- package/dist/components/react-query-builder-inputs/element-value-editor.d.ts +14 -0
- package/dist/components/react-query-builder-inputs/element-value-editor.js +69 -0
- package/dist/components/react-query-builder-inputs/property-value-editor.d.ts +9 -0
- package/dist/components/react-query-builder-inputs/property-value-editor.js +100 -0
- package/dist/components/react-query-builder-inputs/remove-button.d.ts +5 -0
- package/dist/components/react-query-builder-inputs/remove-button.js +9 -0
- package/dist/components/react-query-builder-inputs/text-value-editor.d.ts +5 -0
- package/dist/components/react-query-builder-inputs/text-value-editor.js +34 -0
- package/dist/components/react-query-builder-inputs/translated-value-editor.d.ts +5 -0
- package/dist/components/react-query-builder-inputs/translated-value-editor.js +58 -0
- package/dist/components/react-query-builder-inputs/use-convert-value.d.ts +9 -0
- package/dist/components/react-query-builder-inputs/use-convert-value.js +24 -0
- package/dist/components/react-query-builder-inputs/use-valid.d.ts +7 -0
- package/dist/components/react-query-builder-inputs/use-valid.js +13 -0
- package/dist/components/react-query-builder-inputs/value-editor.d.ts +5 -0
- package/dist/components/react-query-builder-inputs/value-editor.js +18 -0
- package/dist/components/react-query-builder-inputs/value-selector.d.ts +4 -0
- package/dist/components/react-query-builder-inputs/value-selector.js +14 -0
- package/dist/hooks/localized-countries-hook.d.ts +6 -0
- package/dist/hooks/localized-countries-hook.js +45 -0
- package/dist/hooks/predefined-properties-hook.d.ts +18 -0
- package/dist/hooks/predefined-properties-hook.js +43 -0
- package/dist/hooks/useDebounce.d.ts +7 -1
- package/dist/hooks/useSnackMessage.d.ts +23 -5
- package/dist/hooks/useSnackMessage.js +14 -12
- package/dist/index.d.ts +87 -142
- package/dist/index.js +168 -91
- package/dist/utils/FetchStatus.d.ts +12 -0
- package/dist/utils/FetchStatus.js +9 -0
- package/dist/utils/conversion-utils.d.ts +12 -0
- package/dist/utils/conversion-utils.js +22 -0
- package/dist/utils/equipment-types-for-predefined-properties-mapper.d.ts +3 -0
- package/dist/utils/equipment-types-for-predefined-properties-mapper.js +31 -0
- package/dist/utils/functions.d.ts +14 -0
- package/dist/utils/functions.js +16 -0
- package/dist/utils/types.d.ts +21 -0
- package/dist/utils/types.js +1 -0
- package/dist/utils/yup-config.d.ts +8 -0
- package/dist/utils/yup-config.js +16 -0
- package/package.json +15 -2
- package/dist/components/react-hook-form/select-input.d.ts +0 -17
- package/dist/components/react-hook-form/select-input.js +0 -30
package/dist/index.js
CHANGED
|
@@ -13,160 +13,237 @@ import { default as default10 } from "./components/ElementSearchDialog/element-s
|
|
|
13
13
|
import { TagRenderer } from "./components/ElementSearchDialog/tag-renderer.js";
|
|
14
14
|
import { FlatParameters } from "./components/FlatParameters/FlatParameters.js";
|
|
15
15
|
import { default as default11 } from "./components/MultipleSelectionDialog/MultipleSelectionDialog.js";
|
|
16
|
+
import { default as default12 } from "./components/dialogs/custom-mui-dialog.js";
|
|
17
|
+
import { default as default13 } from "./components/dialogs/description-modification-dialog.js";
|
|
18
|
+
import { default as default14 } from "./components/filter/criteria-based/criteria-based-form.js";
|
|
19
|
+
import { default as default15 } from "./components/dialogs/popup-confirmation-dialog.js";
|
|
20
|
+
import { B, b, c, C, E, a, F, R } from "./chunks/criteria-based-filter-edition-dialog.DxqH-mLe.js";
|
|
21
|
+
import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS, getCriteriaBasedFormData, getCriteriaBasedSchema } from "./components/filter/utils/criteria-based-utils.js";
|
|
22
|
+
import { Battery, BusBar, DanglingLine, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, noSelectionForCopy } from "./components/filter/constants/equipment-types.js";
|
|
23
|
+
import { FieldConstants } from "./components/filter/constants/field-constants.js";
|
|
24
|
+
import { GRIDSUITE_DEFAULT_PRECISION, isBlankOrEmpty, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, unitToMicroUnit } from "./utils/conversion-utils.js";
|
|
16
25
|
import { ElementType } from "./utils/ElementType.js";
|
|
17
26
|
import { EQUIPMENT_TYPE, EquipmentType, equipmentStyles, getEquipmentsInfosForSearchBar } from "./utils/EquipmentType.js";
|
|
18
27
|
import { dispatchUser, getPreLoginPath, initializeAuthenticationDev, initializeAuthenticationProd, logout } from "./utils/AuthService.js";
|
|
19
28
|
import { getFileIcon } from "./utils/ElementIcon.js";
|
|
20
29
|
import { LOGOUT_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, SIGNIN_CALLBACK_ERROR, UNAUTHORIZED_USER_INFO, USER, USER_VALIDATION_ERROR, setLoggedUser, setSignInCallbackError } from "./utils/actions.js";
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
30
|
+
import { default as default16 } from "./components/translations/report-viewer-en.js";
|
|
31
|
+
import { default as default17 } from "./components/translations/report-viewer-fr.js";
|
|
32
|
+
import { default as default18 } from "./components/translations/login-en.js";
|
|
33
|
+
import { default as default19 } from "./components/translations/login-fr.js";
|
|
34
|
+
import { default as default20 } from "./components/translations/top-bar-en.js";
|
|
35
|
+
import { default as default21 } from "./components/translations/top-bar-fr.js";
|
|
36
|
+
import { default as default22 } from "./components/translations/table-en.js";
|
|
37
|
+
import { default as default23 } from "./components/translations/table-fr.js";
|
|
38
|
+
import { default as default24 } from "./components/translations/treeview-finder-en.js";
|
|
39
|
+
import { default as default25 } from "./components/translations/treeview-finder-fr.js";
|
|
40
|
+
import { default as default26 } from "./components/translations/element-search-en.js";
|
|
41
|
+
import { default as default27 } from "./components/translations/element-search-fr.js";
|
|
42
|
+
import { default as default28 } from "./components/translations/equipment-search-en.js";
|
|
43
|
+
import { default as default29 } from "./components/translations/equipment-search-fr.js";
|
|
44
|
+
import { default as default30 } from "./components/translations/card-error-boundary-en.js";
|
|
45
|
+
import { default as default31 } from "./components/translations/card-error-boundary-fr.js";
|
|
46
|
+
import { default as default32 } from "./components/translations/flat-parameters-en.js";
|
|
47
|
+
import { default as default33 } from "./components/translations/flat-parameters-fr.js";
|
|
48
|
+
import { default as default34 } from "./components/translations/multiple-selection-dialog-en.js";
|
|
49
|
+
import { default as default35 } from "./components/translations/multiple-selection-dialog-fr.js";
|
|
50
|
+
import { default as default36 } from "./components/translations/common-button-en.js";
|
|
51
|
+
import { default as default37 } from "./components/translations/common-button-fr.js";
|
|
52
|
+
import { default as default38 } from "./components/translations/directory-items-input-en.js";
|
|
53
|
+
import { default as default39 } from "./components/translations/directory-items-input-fr.js";
|
|
45
54
|
import { EquipmentItem } from "./components/ElementSearchDialog/equipment-item.js";
|
|
46
|
-
import { default as
|
|
55
|
+
import { default as default40 } from "./components/CardErrorBoundary/card-error-boundary.js";
|
|
47
56
|
import { useIntlRef } from "./hooks/useIntlRef.js";
|
|
48
57
|
import { useSnackMessage } from "./hooks/useSnackMessage.js";
|
|
49
58
|
import { useDebounce } from "./hooks/useDebounce.js";
|
|
59
|
+
import { default as default41 } from "./components/inputs/select-clearable.js";
|
|
50
60
|
import { useCustomFormContext } from "./components/react-hook-form/provider/use-custom-form-context.js";
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { genHelperError, genHelperPreviousValue, identity, isFieldRequired } from "./components/react-hook-form/utils/functions.js";
|
|
70
|
-
import {
|
|
71
|
-
import { default as
|
|
61
|
+
import { default as default42 } from "./components/react-hook-form/provider/custom-form-provider.js";
|
|
62
|
+
import { default as default43 } from "./components/react-hook-form/autocomplete-input.js";
|
|
63
|
+
import { default as default44 } from "./components/react-hook-form/text-input.js";
|
|
64
|
+
import { default as default45 } from "./components/react-hook-form/ExpandingTextField.js";
|
|
65
|
+
import { default as default46 } from "./components/react-hook-form/radio-input.js";
|
|
66
|
+
import { default as default47 } from "./components/react-hook-form/slider-input.js";
|
|
67
|
+
import { default as default48 } from "./components/react-hook-form/numbers/float-input.js";
|
|
68
|
+
import { default as default49 } from "./components/react-hook-form/numbers/integer-input.js";
|
|
69
|
+
import { default as default50 } from "./components/react-hook-form/select-inputs/select-input.js";
|
|
70
|
+
import { default as default51 } from "./components/react-hook-form/booleans/checkbox-input.js";
|
|
71
|
+
import { default as default52 } from "./components/react-hook-form/booleans/switch-input.js";
|
|
72
|
+
import { default as default53 } from "./components/react-hook-form/error-management/error-input.js";
|
|
73
|
+
import { default as default54 } from "./components/react-hook-form/error-management/field-error-alert.js";
|
|
74
|
+
import { default as default55 } from "./components/react-hook-form/error-management/mid-form-error.js";
|
|
75
|
+
import { default as default56 } from "./components/react-hook-form/utils/text-field-with-adornment.js";
|
|
76
|
+
import { default as default57 } from "./components/react-hook-form/utils/field-label.js";
|
|
77
|
+
import { default as default58 } from "./components/react-hook-form/utils/submit-button.js";
|
|
78
|
+
import { default as default59 } from "./components/react-hook-form/utils/cancel-button.js";
|
|
79
|
+
import { genHelperError, genHelperPreviousValue, gridItem, identity, isFieldRequired, isFloatNumber, toFloatOrNullValue } from "./components/react-hook-form/utils/functions.js";
|
|
80
|
+
import { areArrayElementsUnique, isObjectEmpty, keyGenerator, mergeSx } from "./utils/functions.js";
|
|
81
|
+
import { default as default60 } from "./components/react-hook-form/directory-items-input.js";
|
|
82
|
+
import { default as default61 } from "./components/DirectoryItemSelector/directory-item-selector.js";
|
|
72
83
|
import { RawReadOnlyInput } from "./components/react-hook-form/raw-read-only-input.js";
|
|
84
|
+
import { saveCriteriaBasedFilter, saveExpertFilter, saveExplicitNamingFilter } from "./components/filter/utils/filters-utils.js";
|
|
85
|
+
import { DEFAULT_RANGE_VALUE, default as default62, getRangeInputDataForm, getRangeInputSchema } from "./components/react-hook-form/range-input.js";
|
|
86
|
+
import { default as default63 } from "./components/react-hook-form/select-inputs/input-with-popup-confirmation.js";
|
|
87
|
+
import { default as default64 } from "./components/react-hook-form/select-inputs/mui-select-input.js";
|
|
88
|
+
import { CountriesInput } from "./components/react-hook-form/select-inputs/countries-input.js";
|
|
89
|
+
import { default as default65 } from "./components/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js";
|
|
90
|
+
import { UniqueNameInput } from "./components/react-hook-form/unique-name-input.js";
|
|
73
91
|
import { UserManagerMock } from "./utils/UserManagerMock.js";
|
|
74
92
|
export {
|
|
75
93
|
default4 as AboutDialog,
|
|
76
94
|
default6 as AuthenticationRouter,
|
|
77
|
-
|
|
95
|
+
default43 as AutocompleteInput,
|
|
96
|
+
Battery,
|
|
97
|
+
B as BottomRightButtons,
|
|
98
|
+
BusBar,
|
|
78
99
|
CHANGE_WAYS,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
100
|
+
CONTINGENCY_LIST_EQUIPMENTS,
|
|
101
|
+
default59 as CancelButton,
|
|
102
|
+
default40 as CardErrorBoundary,
|
|
103
|
+
default51 as CheckboxInput,
|
|
104
|
+
CountriesInput,
|
|
105
|
+
b as CriteriaBasedFilterEditionDialog,
|
|
106
|
+
default14 as CriteriaBasedForm,
|
|
107
|
+
c as CsvUploader,
|
|
108
|
+
C as CustomAgGridTable,
|
|
109
|
+
default42 as CustomFormProvider,
|
|
110
|
+
default12 as CustomMuiDialog,
|
|
83
111
|
DARK_THEME,
|
|
84
112
|
DEFAULT_CELL_PADDING,
|
|
85
113
|
DEFAULT_HEADER_HEIGHT,
|
|
114
|
+
DEFAULT_RANGE_VALUE,
|
|
86
115
|
DEFAULT_ROW_HEIGHT,
|
|
87
|
-
|
|
88
|
-
|
|
116
|
+
DanglingLine,
|
|
117
|
+
default13 as DescriptionModificationDialog,
|
|
118
|
+
default61 as DirectoryItemSelector,
|
|
119
|
+
default60 as DirectoryItemsInput,
|
|
89
120
|
EQUIPMENT_TYPE,
|
|
90
121
|
default10 as ElementSearchDialog,
|
|
91
122
|
ElementType,
|
|
92
123
|
EquipmentItem,
|
|
93
124
|
EquipmentType,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
125
|
+
default53 as ErrorInput,
|
|
126
|
+
default45 as ExpandingTextField,
|
|
127
|
+
E as ExpertFilterEditionDialog,
|
|
128
|
+
a as ExplicitNamingFilterEditionDialog,
|
|
129
|
+
FILTER_EQUIPMENTS,
|
|
130
|
+
FieldConstants,
|
|
131
|
+
default54 as FieldErrorAlert,
|
|
132
|
+
default57 as FieldLabel,
|
|
133
|
+
F as FilterCreationDialog,
|
|
98
134
|
FlatParameters,
|
|
99
|
-
|
|
100
|
-
|
|
135
|
+
default48 as FloatInput,
|
|
136
|
+
GRIDSUITE_DEFAULT_PRECISION,
|
|
137
|
+
Generator,
|
|
138
|
+
Hvdc,
|
|
139
|
+
default63 as InputWithPopupConfirmation,
|
|
140
|
+
default49 as IntegerInput,
|
|
101
141
|
KeyedColumnsRowIndexer,
|
|
102
142
|
LANG_ENGLISH,
|
|
103
143
|
LANG_FRENCH,
|
|
104
144
|
LANG_SYSTEM,
|
|
145
|
+
LCC,
|
|
105
146
|
LIGHT_THEME,
|
|
106
147
|
LOGOUT_ERROR,
|
|
107
|
-
|
|
148
|
+
Line,
|
|
149
|
+
Load,
|
|
150
|
+
default55 as MidFormError,
|
|
151
|
+
default64 as MuiSelectInput,
|
|
108
152
|
default7 as MuiVirtualizedTable,
|
|
153
|
+
default65 as MultipleAutocompleteInput,
|
|
109
154
|
default11 as MultipleSelectionDialog,
|
|
110
155
|
OverflowableText,
|
|
156
|
+
default15 as PopupConfirmationDialog,
|
|
111
157
|
RESET_AUTHENTICATION_ROUTER_ERROR,
|
|
112
|
-
|
|
158
|
+
R as ROW_DRAGGING_SELECTION_COLUMN_DEF,
|
|
159
|
+
default46 as RadioInput,
|
|
160
|
+
default62 as RangeInput,
|
|
113
161
|
RawReadOnlyInput,
|
|
114
162
|
default8 as ReportViewer,
|
|
115
163
|
default9 as ReportViewerDialog,
|
|
116
164
|
SHOW_AUTH_INFO_LOGIN,
|
|
117
165
|
SIGNIN_CALLBACK_ERROR,
|
|
118
|
-
|
|
119
|
-
|
|
166
|
+
SVC,
|
|
167
|
+
default41 as SelectClearable,
|
|
168
|
+
default50 as SelectInput,
|
|
169
|
+
ShuntCompensator,
|
|
170
|
+
default47 as SliderInput,
|
|
120
171
|
default5 as SnackbarProvider,
|
|
121
|
-
|
|
122
|
-
|
|
172
|
+
default58 as SubmitButton,
|
|
173
|
+
Substation,
|
|
174
|
+
default52 as SwitchInput,
|
|
123
175
|
TagRenderer,
|
|
124
|
-
|
|
125
|
-
|
|
176
|
+
default56 as TextFieldWithAdornment,
|
|
177
|
+
default44 as TextInput,
|
|
178
|
+
ThreeWindingTransfo,
|
|
126
179
|
default3 as TopBar,
|
|
127
180
|
default2 as TreeViewFinder,
|
|
181
|
+
TwoWindingTransfo,
|
|
128
182
|
UNAUTHORIZED_USER_INFO,
|
|
129
183
|
USER,
|
|
130
184
|
USER_VALIDATION_ERROR,
|
|
185
|
+
UniqueNameInput,
|
|
131
186
|
UserManagerMock,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
187
|
+
VSC,
|
|
188
|
+
VoltageLevel,
|
|
189
|
+
areArrayElementsUnique,
|
|
190
|
+
default30 as card_error_boundary_en,
|
|
191
|
+
default31 as card_error_boundary_fr,
|
|
192
|
+
default36 as common_button_en,
|
|
193
|
+
default37 as common_button_fr,
|
|
194
|
+
default38 as directory_items_input_en,
|
|
195
|
+
default39 as directory_items_input_fr,
|
|
138
196
|
dispatchUser,
|
|
139
|
-
|
|
140
|
-
|
|
197
|
+
default26 as element_search_en,
|
|
198
|
+
default27 as element_search_fr,
|
|
141
199
|
equipmentStyles,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
200
|
+
default28 as equipment_search_en,
|
|
201
|
+
default29 as equipment_search_fr,
|
|
202
|
+
default32 as flat_parameters_en,
|
|
203
|
+
default33 as flat_parameters_fr,
|
|
146
204
|
genHelperError,
|
|
147
205
|
genHelperPreviousValue,
|
|
206
|
+
getCriteriaBasedFormData,
|
|
207
|
+
getCriteriaBasedSchema,
|
|
148
208
|
getEquipmentsInfosForSearchBar,
|
|
149
209
|
getFileIcon,
|
|
150
210
|
getPreLoginPath,
|
|
211
|
+
getRangeInputDataForm,
|
|
212
|
+
getRangeInputSchema,
|
|
213
|
+
gridItem,
|
|
151
214
|
identity,
|
|
152
215
|
initializeAuthenticationDev,
|
|
153
216
|
initializeAuthenticationProd,
|
|
217
|
+
isBlankOrEmpty,
|
|
154
218
|
isFieldRequired,
|
|
155
|
-
|
|
156
|
-
|
|
219
|
+
isFloatNumber,
|
|
220
|
+
isObjectEmpty,
|
|
221
|
+
keyGenerator,
|
|
222
|
+
default18 as login_en,
|
|
223
|
+
default19 as login_fr,
|
|
157
224
|
logout,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
225
|
+
mergeSx,
|
|
226
|
+
microUnitToUnit,
|
|
227
|
+
default34 as multiple_selection_dialog_en,
|
|
228
|
+
default35 as multiple_selection_dialog_fr,
|
|
229
|
+
noSelectionForCopy,
|
|
230
|
+
default16 as report_viewer_en,
|
|
231
|
+
default17 as report_viewer_fr,
|
|
232
|
+
roundToDefaultPrecision,
|
|
233
|
+
roundToPrecision,
|
|
234
|
+
saveCriteriaBasedFilter,
|
|
235
|
+
saveExpertFilter,
|
|
236
|
+
saveExplicitNamingFilter,
|
|
162
237
|
setLoggedUser,
|
|
163
238
|
setSignInCallbackError,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
239
|
+
default22 as table_en,
|
|
240
|
+
default23 as table_fr,
|
|
241
|
+
toFloatOrNullValue,
|
|
242
|
+
default20 as top_bar_en,
|
|
243
|
+
default21 as top_bar_fr,
|
|
244
|
+
default24 as treeview_finder_en,
|
|
245
|
+
default25 as treeview_finder_fr,
|
|
246
|
+
unitToMicroUnit,
|
|
170
247
|
useCustomFormContext,
|
|
171
248
|
useDebounce,
|
|
172
249
|
useIntlRef,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FetchStatus: {
|
|
8
|
+
IDLE: string;
|
|
9
|
+
FETCHING: string;
|
|
10
|
+
FETCH_SUCCESS: string;
|
|
11
|
+
FETCH_ERROR: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GRIDSUITE_DEFAULT_PRECISION: number;
|
|
8
|
+
export declare const roundToPrecision: (num: number, precision: number) => number;
|
|
9
|
+
export declare const roundToDefaultPrecision: (num: number) => number;
|
|
10
|
+
export declare function isBlankOrEmpty(value: unknown): boolean;
|
|
11
|
+
export declare const unitToMicroUnit: (num: number) => number | undefined;
|
|
12
|
+
export declare const microUnitToUnit: (num: number) => number | undefined;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const GRIDSUITE_DEFAULT_PRECISION = 13;
|
|
2
|
+
const roundToPrecision = (num, precision) => Number(num.toPrecision(precision));
|
|
3
|
+
const roundToDefaultPrecision = (num) => roundToPrecision(num, GRIDSUITE_DEFAULT_PRECISION);
|
|
4
|
+
function isBlankOrEmpty(value) {
|
|
5
|
+
if (value === void 0 || value === null) {
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
if (typeof value === "string") {
|
|
9
|
+
return /^\s*$/.test(value);
|
|
10
|
+
}
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
const unitToMicroUnit = (num) => isBlankOrEmpty(num) ? void 0 : roundToDefaultPrecision(num * 1e6);
|
|
14
|
+
const microUnitToUnit = (num) => isBlankOrEmpty(num) ? void 0 : roundToDefaultPrecision(num / 1e6);
|
|
15
|
+
export {
|
|
16
|
+
GRIDSUITE_DEFAULT_PRECISION,
|
|
17
|
+
isBlankOrEmpty,
|
|
18
|
+
microUnitToUnit,
|
|
19
|
+
roundToDefaultPrecision,
|
|
20
|
+
roundToPrecision,
|
|
21
|
+
unitToMicroUnit
|
|
22
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const mapEquipmentTypeForPredefinedProperties = (type) => {
|
|
2
|
+
switch (type) {
|
|
3
|
+
case "SUBSTATION":
|
|
4
|
+
return "substation";
|
|
5
|
+
case "LOAD":
|
|
6
|
+
return "load";
|
|
7
|
+
case "GENERATOR":
|
|
8
|
+
return "generator";
|
|
9
|
+
case "LINE":
|
|
10
|
+
return "line";
|
|
11
|
+
case "TWO_WINDINGS_TRANSFORMER":
|
|
12
|
+
return "twt";
|
|
13
|
+
case "BATTERY":
|
|
14
|
+
return "battery";
|
|
15
|
+
case "SHUNT_COMPENSATOR":
|
|
16
|
+
return "shuntCompensator";
|
|
17
|
+
case "VOLTAGE_LEVEL":
|
|
18
|
+
return "voltageLevel";
|
|
19
|
+
case "BUSBAR_SECTION":
|
|
20
|
+
case "DANGLING_LINE":
|
|
21
|
+
case "HVDC_LINE":
|
|
22
|
+
case "LCC_CONVERTER_STATION":
|
|
23
|
+
case "THREE_WINDINGS_TRANSFORMER":
|
|
24
|
+
case "STATIC_VAR_COMPENSATOR":
|
|
25
|
+
case "VSC_CONVERTER_STATION":
|
|
26
|
+
return void 0;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
mapEquipmentTypeForPredefinedProperties
|
|
31
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021, 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
|
+
/**
|
|
8
|
+
* function to generate a key
|
|
9
|
+
* @returns {number} key
|
|
10
|
+
*/
|
|
11
|
+
export declare function keyGenerator(): () => number;
|
|
12
|
+
export declare const areArrayElementsUnique: (array: unknown[]) => boolean;
|
|
13
|
+
export declare const mergeSx: (...allSx: unknown[]) => unknown[];
|
|
14
|
+
export declare const isObjectEmpty: (object: object) => boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function keyGenerator() {
|
|
2
|
+
let key = 1;
|
|
3
|
+
return () => key++;
|
|
4
|
+
}
|
|
5
|
+
const areArrayElementsUnique = (array) => {
|
|
6
|
+
let uniqueValues = [...new Set(array)];
|
|
7
|
+
return uniqueValues.length === array.length;
|
|
8
|
+
};
|
|
9
|
+
const mergeSx = (...allSx) => allSx.flat();
|
|
10
|
+
const isObjectEmpty = (object) => object && Object.keys(object).length === 0;
|
|
11
|
+
export {
|
|
12
|
+
areArrayElementsUnique,
|
|
13
|
+
isObjectEmpty,
|
|
14
|
+
keyGenerator,
|
|
15
|
+
mergeSx
|
|
16
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Battery, BusBar, DanglingLine, Generator, Hvdc, LCC, Line, Load, ShuntCompensator, Substation, SVC, ThreeWindingTransfo, TwoWindingTransfo, VoltageLevel, VSC } from '../components/filter/constants/equipment-types.ts';
|
|
2
|
+
import { ElementType } from './ElementType.ts';
|
|
3
|
+
import { UUID } from 'crypto';
|
|
4
|
+
|
|
5
|
+
export type Input = string | number;
|
|
6
|
+
export type ElementAttributes = {
|
|
7
|
+
elementUuid: UUID;
|
|
8
|
+
elementName: string;
|
|
9
|
+
type: keyof typeof ElementType;
|
|
10
|
+
};
|
|
11
|
+
export type Equipment = typeof Substation | typeof Line | typeof Generator | typeof Load | typeof Battery | typeof SVC | typeof DanglingLine | typeof LCC | typeof VSC | typeof Hvdc | typeof BusBar | typeof TwoWindingTransfo | typeof ThreeWindingTransfo | typeof ShuntCompensator | typeof VoltageLevel | typeof Substation;
|
|
12
|
+
export type EquipmentType = {
|
|
13
|
+
[Type in Equipment['type']]: Type;
|
|
14
|
+
}[Equipment['type']];
|
|
15
|
+
export type Option = {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
} | string;
|
|
19
|
+
export type PredefinedProperties = {
|
|
20
|
+
[propertyName: string]: string[];
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
import * as yup from 'yup';
|
|
8
|
+
export default yup;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as yup from "yup";
|
|
2
|
+
yup.setLocale({
|
|
3
|
+
mixed: {
|
|
4
|
+
required: "YupRequired",
|
|
5
|
+
notType: ({ type }) => {
|
|
6
|
+
if (type === "number") {
|
|
7
|
+
return "YupNotTypeNumber";
|
|
8
|
+
} else {
|
|
9
|
+
return "YupNotTypeDefault";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
yup as default
|
|
16
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridsuite/commons-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.0",
|
|
4
4
|
"description": "common react components for gridsuite applications",
|
|
5
5
|
"engines": {
|
|
6
6
|
"npm": ">=9",
|
|
@@ -28,16 +28,22 @@
|
|
|
28
28
|
"licenses-check": "license-checker --summary --excludePrivatePackages --production --onlyAllow \"$( jq -r .onlyAllow[] license-checker-config.json | tr '\n' ';')\" --excludePackages \"$( jq -r .excludePackages[] license-checker-config.json | tr '\n' ';')\""
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
+
"@react-querybuilder/material": "^6.5.5",
|
|
32
|
+
"@react-querybuilder/dnd": "^6.5.5",
|
|
31
33
|
"autosuggest-highlight": "^3.3.4",
|
|
32
34
|
"clsx": "^2.1.0",
|
|
33
35
|
"jwt-decode": "^4.0.0",
|
|
36
|
+
"localized-countries": "^2.0.0",
|
|
34
37
|
"memoize-one": "^6.0.0",
|
|
35
38
|
"oidc-client": "^1.11.5",
|
|
36
39
|
"prop-types": "^15.8.1",
|
|
37
40
|
"react-csv-downloader": "^3.1.0",
|
|
38
41
|
"react-request-fullscreen": "^1.1.2",
|
|
39
42
|
"react-virtualized": "^9.22.5",
|
|
40
|
-
"uuid": "^9.0.1"
|
|
43
|
+
"uuid": "^9.0.1",
|
|
44
|
+
"react-dnd": "^16.0.1",
|
|
45
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
46
|
+
"react-querybuilder": "^6.5.1"
|
|
41
47
|
},
|
|
42
48
|
"peerDependencies": {
|
|
43
49
|
"@emotion/react": "^11.11.4",
|
|
@@ -46,11 +52,14 @@
|
|
|
46
52
|
"@mui/icons-material": "^5.15.14",
|
|
47
53
|
"@mui/lab": "5.0.0-alpha.169",
|
|
48
54
|
"@mui/material": "^5.15.14",
|
|
55
|
+
"ag-grid-community": "^31.0.0",
|
|
56
|
+
"ag-grid-react": "^31.2.0",
|
|
49
57
|
"notistack": "^3.0.1",
|
|
50
58
|
"react": "^18.2.0",
|
|
51
59
|
"react-dom": "^18.2.0",
|
|
52
60
|
"react-hook-form": "^7.51.2",
|
|
53
61
|
"react-intl": "^6.6.4",
|
|
62
|
+
"react-papaparse": "^4.1.0",
|
|
54
63
|
"react-router-dom": "^6.22.3",
|
|
55
64
|
"yup": "^1.4.0"
|
|
56
65
|
},
|
|
@@ -83,6 +92,8 @@
|
|
|
83
92
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
84
93
|
"@typescript-eslint/parser": "^6.21.0",
|
|
85
94
|
"@vitejs/plugin-react": "^4.2.1",
|
|
95
|
+
"ag-grid-community": "^31.0.0",
|
|
96
|
+
"ag-grid-react": "^31.2.0",
|
|
86
97
|
"babel-eslint": "^10.1.0",
|
|
87
98
|
"bufferutil": "^4.0.8",
|
|
88
99
|
"eslint": "^8.57.0",
|
|
@@ -95,6 +106,7 @@
|
|
|
95
106
|
"eslint-plugin-react": "^7.34.1",
|
|
96
107
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
97
108
|
"glob": "^10.3.12",
|
|
109
|
+
"identity-obj-proxy": "^3.0.0",
|
|
98
110
|
"jest": "^29.7.0",
|
|
99
111
|
"jest-environment-jsdom": "^29.7.0",
|
|
100
112
|
"jest-svg-transformer": "^1.0.0",
|
|
@@ -105,6 +117,7 @@
|
|
|
105
117
|
"react-dom": "^18.2.0",
|
|
106
118
|
"react-hook-form": "^7.51.2",
|
|
107
119
|
"react-intl": "^6.6.4",
|
|
120
|
+
"react-papaparse": "^4.1.0",
|
|
108
121
|
"react-resizable": "^3.0.5",
|
|
109
122
|
"react-router-dom": "^6.22.3",
|
|
110
123
|
"ts-node": "^10.9.2",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
export default SelectInput;
|
|
3
|
-
declare function SelectInput(props: any): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare namespace SelectInput {
|
|
5
|
-
let propTypes: {
|
|
6
|
-
name: PropTypes.Validator<string>;
|
|
7
|
-
label: PropTypes.Requireable<string>;
|
|
8
|
-
options: PropTypes.Validator<any[]>;
|
|
9
|
-
outputTransform: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
-
inputTransform: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
readOnly: PropTypes.Requireable<boolean>;
|
|
12
|
-
previousValue: PropTypes.Requireable<any>;
|
|
13
|
-
allowNewValue: PropTypes.Requireable<boolean>;
|
|
14
|
-
onChangeCallback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
-
formProps: PropTypes.Requireable<object>;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import AutocompleteInput from "./autocomplete-input.js";
|
|
4
|
-
import { useIntl } from "react-intl";
|
|
5
|
-
const SelectInput = (props) => {
|
|
6
|
-
const intl = useIntl();
|
|
7
|
-
const inputTransform = (value) => props.options.find((option) => (option == null ? void 0 : option.id) === value) || null;
|
|
8
|
-
const outputTransform = (value) => {
|
|
9
|
-
return (value == null ? void 0 : value.id) ?? null;
|
|
10
|
-
};
|
|
11
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
-
AutocompleteInput,
|
|
13
|
-
{
|
|
14
|
-
getOptionLabel: (option) => {
|
|
15
|
-
return (option == null ? void 0 : option.label) ? intl.formatMessage({ id: option == null ? void 0 : option.label }) : option == null ? void 0 : option.id;
|
|
16
|
-
},
|
|
17
|
-
inputTransform,
|
|
18
|
-
outputTransform,
|
|
19
|
-
readOnly: true,
|
|
20
|
-
...props
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
};
|
|
24
|
-
SelectInput.propTypes = {
|
|
25
|
-
options: PropTypes.array.isRequired,
|
|
26
|
-
...AutocompleteInput.propTypes
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
SelectInput as default
|
|
30
|
-
};
|