@gridsuite/commons-ui 0.57.0 → 0.58.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.CbhgOSRk.js} +139 -110
- package/dist/chunks/{filter-properties.GRon8-ML.js → filter-properties.B7-q_yPf.js} +4 -4
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +2 -1
- 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.js +4 -3
- package/dist/components/OverflowableText/overflowable-text.js +39 -9
- 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 +108 -0
- package/dist/components/dialogs/popup-confirmation-dialog.js +1 -1
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +1 -2
- 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.js +5 -5
- package/dist/components/filter/criteria-based/filter-properties.js +3 -3
- package/dist/components/filter/criteria-based/filter-property.js +3 -3
- package/dist/components/filter/{constants → expert}/expert-filter-constants.js +7 -6
- package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +3 -3
- package/dist/components/filter/expert/expert-filter-edition-dialog.js +5 -6
- 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/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-context.d.ts +1 -0
- package/dist/components/filter/filter-context.js +2 -1
- package/dist/components/filter/filter-creation-dialog.d.ts +5 -2
- package/dist/components/filter/filter-creation-dialog.js +3 -3
- 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} +5 -45
- 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/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/csv-uploader/csv-uploader.js +23 -23
- 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/{react-hook-form → inputs/react-hook-form}/directory-items-input.js +5 -5
- package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/integer-input.d.ts +3 -3
- 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 +2 -3
- 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/{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 +22 -22
- 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/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 +51 -39
- package/dist/index.js +129 -120
- package/dist/redux/commonStore.d.ts +15 -0
- package/dist/redux/commonStore.js +11 -0
- package/dist/services/explore.d.ts +4 -0
- package/dist/services/explore.js +34 -0
- package/dist/services/study.d.ts +3 -0
- package/dist/services/study.js +16 -0
- package/dist/services/utils.d.ts +8 -0
- package/dist/services/utils.js +58 -0
- package/dist/utils/AuthService.js +1 -1
- package/dist/utils/types.d.ts +1 -1
- package/package.json +8 -7
- 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-query-builder-inputs/value-editor.js +0 -18
- /package/dist/components/filter/{constants → expert}/expert-filter-constants.d.ts +0 -0
- /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}/booleans/boolean-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/boolean-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/checkbox-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/checkbox-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/switch-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/switch-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/directory-items-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.d.ts +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/integer-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}/slider-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/slider-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.d.ts +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
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TextInputProps } from './components/inputs/react-hook-form/text-input';
|
|
1
2
|
import { CheckboxProps, SwitchProps, SxProps, TextFieldProps } from '@mui/material';
|
|
2
3
|
import { FunctionComponent, ReactElement } from 'react';
|
|
3
4
|
|
|
@@ -63,11 +64,7 @@ export {
|
|
|
63
64
|
USER_VALIDATION_ERROR,
|
|
64
65
|
RESET_AUTHENTICATION_ROUTER_ERROR,
|
|
65
66
|
SHOW_AUTH_INFO_LOGIN,
|
|
66
|
-
} from './
|
|
67
|
-
export {
|
|
68
|
-
getCriteriaBasedFormData,
|
|
69
|
-
getCriteriaBasedSchema,
|
|
70
|
-
} from './components/filter/utils/criteria-based-utils';
|
|
67
|
+
} from './redux/actions';
|
|
71
68
|
export { default as report_viewer_en } from './components/translations/report-viewer-en';
|
|
72
69
|
export { default as report_viewer_fr } from './components/translations/report-viewer-fr';
|
|
73
70
|
export { default as login_en } from './components/translations/login-en';
|
|
@@ -99,26 +96,28 @@ export { TagRenderer } from './components/ElementSearchDialog';
|
|
|
99
96
|
export { EquipmentItem } from './components/ElementSearchDialog/equipment-item';
|
|
100
97
|
export { useIntlRef } from './hooks/useIntlRef';
|
|
101
98
|
export { default as SelectClearable } from './components/inputs/select-clearable';
|
|
102
|
-
export { useCustomFormContext } from './components/react-hook-form/provider/use-custom-form-context';
|
|
103
|
-
export { default as CustomFormProvider } from './components/react-hook-form/provider/custom-form-provider';
|
|
104
|
-
export { default as SliderInput } from './components/react-hook-form/slider-input';
|
|
105
|
-
export { default as TextFieldWithAdornment } from './components/react-hook-form/utils/text-field-with-adornment';
|
|
106
|
-
export { default as SelectInput } from './components/react-hook-form/select-inputs/select-input';
|
|
107
|
-
export { default as ErrorInput } from './components/react-hook-form/error-management/error-input';
|
|
108
|
-
export { default as AutocompleteInput } from './components/react-hook-form/autocomplete-input';
|
|
109
|
-
export { default as TextInput } from './components/react-hook-form/text-input';
|
|
110
|
-
export { default as FloatInput } from './components/react-hook-form/numbers/float-input';
|
|
111
|
-
export { default as RadioInput } from './components/react-hook-form/radio-input';
|
|
112
|
-
export { default as SubmitButton } from './components/react-hook-form/utils/submit-button';
|
|
113
|
-
export { default as CancelButton } from './components/react-hook-form/utils/cancel-button';
|
|
114
|
-
export { default as FieldLabel } from './components/react-hook-form/utils/field-label';
|
|
115
|
-
export { default as FieldErrorAlert } from './components/react-hook-form/error-management/field-error-alert';
|
|
99
|
+
export { useCustomFormContext } from './components/inputs/react-hook-form/provider/use-custom-form-context';
|
|
100
|
+
export { default as CustomFormProvider } from './components/inputs/react-hook-form/provider/custom-form-provider';
|
|
101
|
+
export { default as SliderInput } from './components/inputs/react-hook-form/slider-input';
|
|
102
|
+
export { default as TextFieldWithAdornment } from './components/inputs/react-hook-form/utils/text-field-with-adornment';
|
|
103
|
+
export { default as SelectInput } from './components/inputs/react-hook-form/select-inputs/select-input';
|
|
104
|
+
export { default as ErrorInput } from './components/inputs/react-hook-form/error-management/error-input';
|
|
105
|
+
export { default as AutocompleteInput } from './components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input';
|
|
106
|
+
export { default as TextInput } from './components/inputs/react-hook-form/text-input';
|
|
107
|
+
export { default as FloatInput } from './components/inputs/react-hook-form/numbers/float-input';
|
|
108
|
+
export { default as RadioInput } from './components/inputs/react-hook-form/radio-input';
|
|
109
|
+
export { default as SubmitButton } from './components/inputs/react-hook-form/utils/submit-button';
|
|
110
|
+
export { default as CancelButton } from './components/inputs/react-hook-form/utils/cancel-button';
|
|
111
|
+
export { default as FieldLabel } from './components/inputs/react-hook-form/utils/field-label';
|
|
112
|
+
export { default as FieldErrorAlert } from './components/inputs/react-hook-form/error-management/field-error-alert';
|
|
116
113
|
export { default as FilterCreationDialog } from './components/filter/filter-creation-dialog';
|
|
117
114
|
export { default as ExpertFilterEditionDialog } from './components/filter/expert/expert-filter-edition-dialog';
|
|
118
115
|
export { default as ExplicitNamingFilterEditionDialog } from './components/filter/explicit-naming/explicit-naming-filter-edition-dialog';
|
|
119
116
|
export { default as CriteriaBasedFilterEditionDialog } from './components/filter/criteria-based/criteria-based-filter-edition-dialog';
|
|
120
|
-
export { default as ExpandingTextField } from './components/react-hook-form/
|
|
117
|
+
export { default as ExpandingTextField } from './components/inputs/react-hook-form/ExpandingTextField';
|
|
121
118
|
export { default as CustomMuiDialog } from './components/dialogs/custom-mui-dialog';
|
|
119
|
+
export { default as DescriptionModificationDialog } from './components/dialogs/description-modification-dialog';
|
|
120
|
+
export { default as ModifyElementSelection } from './components/dialogs/modify-element-selection';
|
|
122
121
|
export {
|
|
123
122
|
genHelperPreviousValue,
|
|
124
123
|
genHelperError,
|
|
@@ -127,10 +126,10 @@ export {
|
|
|
127
126
|
gridItem,
|
|
128
127
|
isFloatNumber,
|
|
129
128
|
toFloatOrNullValue,
|
|
130
|
-
} from './components/react-hook-form/utils/functions';
|
|
131
|
-
export { default as DirectoryItemsInput } from './components/react-hook-form/directory-items-input';
|
|
129
|
+
} from './components/inputs/react-hook-form/utils/functions';
|
|
130
|
+
export { default as DirectoryItemsInput } from './components/inputs/react-hook-form/directory-items-input';
|
|
132
131
|
export { default as DirectoryItemSelector } from './components/DirectoryItemSelector/directory-item-selector';
|
|
133
|
-
export { RawReadOnlyInput } from './components/react-hook-form/raw-read-only-input';
|
|
132
|
+
export { RawReadOnlyInput } from './components/inputs/react-hook-form/raw-read-only-input';
|
|
134
133
|
export { UserManagerMock } from './utils/UserManagerMock';
|
|
135
134
|
export {
|
|
136
135
|
keyGenerator,
|
|
@@ -139,28 +138,31 @@ export {
|
|
|
139
138
|
isObjectEmpty,
|
|
140
139
|
} from './utils/functions';
|
|
141
140
|
|
|
142
|
-
export { ElementType
|
|
141
|
+
export { ElementType } from './utils/ElementType';
|
|
142
|
+
export { getFileIcon } from './utils/ElementIcon';
|
|
143
|
+
|
|
143
144
|
export {
|
|
144
145
|
saveExplicitNamingFilter,
|
|
145
146
|
saveCriteriaBasedFilter,
|
|
146
147
|
saveExpertFilter,
|
|
147
|
-
} from './components/filter/utils/
|
|
148
|
+
} from './components/filter/utils/filter-api';
|
|
148
149
|
export {
|
|
149
|
-
RangeInput,
|
|
150
|
+
default as RangeInput,
|
|
150
151
|
DEFAULT_RANGE_VALUE,
|
|
151
152
|
getRangeInputDataForm,
|
|
152
153
|
getRangeInputSchema,
|
|
153
|
-
} from './components/react-hook-form/range-input';
|
|
154
|
-
export { InputWithPopupConfirmation } from './components/react-hook-form/select-inputs/input-with-popup-confirmation';
|
|
155
|
-
export { MuiSelectInput } from './components/react-hook-form/select-inputs/mui-select-input';
|
|
154
|
+
} from './components/inputs/react-hook-form/range-input';
|
|
155
|
+
export { default as InputWithPopupConfirmation } from './components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation';
|
|
156
|
+
export { default as MuiSelectInput } from './components/inputs/react-hook-form/select-inputs/mui-select-input';
|
|
157
|
+
export { default as CountriesInput } from './components/inputs/react-hook-form/select-inputs/countries-input';
|
|
156
158
|
export {
|
|
157
|
-
CountriesInput,
|
|
158
159
|
getSystemLanguage,
|
|
159
160
|
getComputedLanguage,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
export {
|
|
163
|
-
export {
|
|
161
|
+
useLocalizedCountries,
|
|
162
|
+
} from './hooks/localized-countries-hook';
|
|
163
|
+
export { default as MultipleAutocompleteInput } from './components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input';
|
|
164
|
+
export { default as CsvUploader } from './components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader';
|
|
165
|
+
export { UniqueNameInput } from './components/inputs/react-hook-form/unique-name-input';
|
|
164
166
|
|
|
165
167
|
export {
|
|
166
168
|
Line,
|
|
@@ -179,9 +181,9 @@ export {
|
|
|
179
181
|
VoltageLevel,
|
|
180
182
|
Substation,
|
|
181
183
|
noSelectionForCopy,
|
|
182
|
-
} from './
|
|
184
|
+
} from './utils/equipment-types';
|
|
183
185
|
|
|
184
|
-
export { FieldConstants } from './
|
|
186
|
+
export { FieldConstants } from './utils/field-constants';
|
|
185
187
|
|
|
186
188
|
export {
|
|
187
189
|
GRIDSUITE_DEFAULT_PRECISION,
|
|
@@ -194,9 +196,11 @@ export {
|
|
|
194
196
|
|
|
195
197
|
export { useSnackMessage } from './hooks/useSnackMessage';
|
|
196
198
|
export { useDebounce } from './hooks/useDebounce';
|
|
197
|
-
export { ROW_DRAGGING_SELECTION_COLUMN_DEF } from './components/react-hook-form/ag-grid-table
|
|
198
|
-
export {
|
|
199
|
-
|
|
199
|
+
export { ROW_DRAGGING_SELECTION_COLUMN_DEF } from './components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table';
|
|
200
|
+
export {
|
|
201
|
+
FILTER_EQUIPMENTS,
|
|
202
|
+
CONTINGENCY_LIST_EQUIPMENTS,
|
|
203
|
+
} from './components/filter/utils/filter-form-utils';
|
|
200
204
|
|
|
201
205
|
/**
|
|
202
206
|
* Section to export manual type declarations of .js and .jsx files
|
|
@@ -257,6 +261,14 @@ export const FlatParameters: FunctionComponent<FlatParametersProps>;
|
|
|
257
261
|
interface OverflowableTextProps {
|
|
258
262
|
sx?: SxProps;
|
|
259
263
|
text?: string | ReactElement;
|
|
264
|
+
maxLineCount?: number;
|
|
260
265
|
}
|
|
261
266
|
|
|
262
267
|
export const OverflowableText: FunctionComponent<OverflowableTextProps>;
|
|
268
|
+
|
|
269
|
+
export {
|
|
270
|
+
getCriteriaBasedFormData,
|
|
271
|
+
getCriteriaBasedSchema,
|
|
272
|
+
} from './components/filter/criteria-based/criteria-based-filter-utils';
|
|
273
|
+
|
|
274
|
+
export { setCommonStore } from './redux/commonStore';
|
package/dist/index.js
CHANGED
|
@@ -15,100 +15,104 @@ import { FlatParameters } from "./components/FlatParameters/FlatParameters.js";
|
|
|
15
15
|
import { default as default11 } from "./components/MultipleSelectionDialog/MultipleSelectionDialog.js";
|
|
16
16
|
import { default as default12 } from "./components/dialogs/custom-mui-dialog.js";
|
|
17
17
|
import { default as default13 } from "./components/dialogs/description-modification-dialog.js";
|
|
18
|
-
import { default as default14 } from "./components/
|
|
19
|
-
import { default as default15 } from "./components/
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { Battery, BusBar, DanglingLine, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, noSelectionForCopy } from "./
|
|
23
|
-
import { FieldConstants } from "./
|
|
18
|
+
import { default as default14 } from "./components/dialogs/modify-element-selection.js";
|
|
19
|
+
import { default as default15 } from "./components/filter/criteria-based/criteria-based-form.js";
|
|
20
|
+
import { default as default16 } from "./components/dialogs/popup-confirmation-dialog.js";
|
|
21
|
+
import { B, b, c, C, E, a, F, R } from "./chunks/criteria-based-filter-edition-dialog.CbhgOSRk.js";
|
|
22
|
+
import { Battery, BusBar, DanglingLine, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, noSelectionForCopy } from "./utils/equipment-types.js";
|
|
23
|
+
import { FieldConstants } from "./utils/field-constants.js";
|
|
24
24
|
import { GRIDSUITE_DEFAULT_PRECISION, isBlankOrEmpty, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, unitToMicroUnit } from "./utils/conversion-utils.js";
|
|
25
25
|
import { ElementType } from "./utils/ElementType.js";
|
|
26
26
|
import { EQUIPMENT_TYPE, EquipmentType, equipmentStyles, getEquipmentsInfosForSearchBar } from "./utils/EquipmentType.js";
|
|
27
27
|
import { dispatchUser, getPreLoginPath, initializeAuthenticationDev, initializeAuthenticationProd, logout } from "./utils/AuthService.js";
|
|
28
28
|
import { getFileIcon } from "./utils/ElementIcon.js";
|
|
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 "./
|
|
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
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
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 "./redux/actions.js";
|
|
30
|
+
import { default as default17 } from "./components/translations/report-viewer-en.js";
|
|
31
|
+
import { default as default18 } from "./components/translations/report-viewer-fr.js";
|
|
32
|
+
import { default as default19 } from "./components/translations/login-en.js";
|
|
33
|
+
import { default as default20 } from "./components/translations/login-fr.js";
|
|
34
|
+
import { default as default21 } from "./components/translations/top-bar-en.js";
|
|
35
|
+
import { default as default22 } from "./components/translations/top-bar-fr.js";
|
|
36
|
+
import { default as default23 } from "./components/translations/table-en.js";
|
|
37
|
+
import { default as default24 } from "./components/translations/table-fr.js";
|
|
38
|
+
import { default as default25 } from "./components/translations/treeview-finder-en.js";
|
|
39
|
+
import { default as default26 } from "./components/translations/treeview-finder-fr.js";
|
|
40
|
+
import { default as default27 } from "./components/translations/element-search-en.js";
|
|
41
|
+
import { default as default28 } from "./components/translations/element-search-fr.js";
|
|
42
|
+
import { default as default29 } from "./components/translations/equipment-search-en.js";
|
|
43
|
+
import { default as default30 } from "./components/translations/equipment-search-fr.js";
|
|
44
|
+
import { default as default31 } from "./components/translations/filter-en.js";
|
|
45
|
+
import { default as default32 } from "./components/translations/filter-fr.js";
|
|
46
|
+
import { default as default33 } from "./components/translations/card-error-boundary-en.js";
|
|
47
|
+
import { default as default34 } from "./components/translations/card-error-boundary-fr.js";
|
|
48
|
+
import { default as default35 } from "./components/translations/flat-parameters-en.js";
|
|
49
|
+
import { default as default36 } from "./components/translations/flat-parameters-fr.js";
|
|
50
|
+
import { default as default37 } from "./components/translations/multiple-selection-dialog-en.js";
|
|
51
|
+
import { default as default38 } from "./components/translations/multiple-selection-dialog-fr.js";
|
|
52
|
+
import { default as default39 } from "./components/translations/common-button-en.js";
|
|
53
|
+
import { default as default40 } from "./components/translations/common-button-fr.js";
|
|
54
|
+
import { default as default41 } from "./components/translations/directory-items-input-en.js";
|
|
55
|
+
import { default as default42 } from "./components/translations/directory-items-input-fr.js";
|
|
56
56
|
import { EquipmentItem } from "./components/ElementSearchDialog/equipment-item.js";
|
|
57
|
-
import { default as
|
|
57
|
+
import { default as default43 } from "./components/CardErrorBoundary/card-error-boundary.js";
|
|
58
58
|
import { useIntlRef } from "./hooks/useIntlRef.js";
|
|
59
59
|
import { useSnackMessage } from "./hooks/useSnackMessage.js";
|
|
60
60
|
import { useDebounce } from "./hooks/useDebounce.js";
|
|
61
|
-
import { default as
|
|
62
|
-
import { useCustomFormContext } from "./components/react-hook-form/provider/use-custom-form-context.js";
|
|
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 { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { genHelperError, genHelperPreviousValue, gridItem, identity, isFieldRequired, isFloatNumber, toFloatOrNullValue } from "./components/react-hook-form/utils/functions.js";
|
|
61
|
+
import { default as default44 } from "./components/inputs/select-clearable.js";
|
|
62
|
+
import { useCustomFormContext } from "./components/inputs/react-hook-form/provider/use-custom-form-context.js";
|
|
63
|
+
import { default as default45 } from "./components/inputs/react-hook-form/provider/custom-form-provider.js";
|
|
64
|
+
import { default as default46 } from "./components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.js";
|
|
65
|
+
import { default as default47 } from "./components/inputs/react-hook-form/text-input.js";
|
|
66
|
+
import { default as default48 } from "./components/inputs/react-hook-form/ExpandingTextField.js";
|
|
67
|
+
import { default as default49 } from "./components/inputs/react-hook-form/radio-input.js";
|
|
68
|
+
import { default as default50 } from "./components/inputs/react-hook-form/slider-input.js";
|
|
69
|
+
import { default as default51 } from "./components/inputs/react-hook-form/numbers/float-input.js";
|
|
70
|
+
import { default as default52 } from "./components/inputs/react-hook-form/numbers/integer-input.js";
|
|
71
|
+
import { default as default53 } from "./components/inputs/react-hook-form/select-inputs/select-input.js";
|
|
72
|
+
import { default as default54 } from "./components/inputs/react-hook-form/booleans/checkbox-input.js";
|
|
73
|
+
import { default as default55 } from "./components/inputs/react-hook-form/booleans/switch-input.js";
|
|
74
|
+
import { default as default56 } from "./components/inputs/react-hook-form/error-management/error-input.js";
|
|
75
|
+
import { default as default57 } from "./components/inputs/react-hook-form/error-management/field-error-alert.js";
|
|
76
|
+
import { default as default58 } from "./components/inputs/react-hook-form/error-management/mid-form-error.js";
|
|
77
|
+
import { default as default59 } from "./components/inputs/react-hook-form/utils/text-field-with-adornment.js";
|
|
78
|
+
import { default as default60 } from "./components/inputs/react-hook-form/utils/field-label.js";
|
|
79
|
+
import { default as default61 } from "./components/inputs/react-hook-form/utils/submit-button.js";
|
|
80
|
+
import { default as default62 } from "./components/inputs/react-hook-form/utils/cancel-button.js";
|
|
81
|
+
import { genHelperError, genHelperPreviousValue, gridItem, identity, isFieldRequired, isFloatNumber, toFloatOrNullValue } from "./components/inputs/react-hook-form/utils/functions.js";
|
|
82
82
|
import { areArrayElementsUnique, isObjectEmpty, keyGenerator, mergeSx } from "./utils/functions.js";
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { RawReadOnlyInput } from "./components/react-hook-form/raw-read-only-input.js";
|
|
86
|
-
import { saveCriteriaBasedFilter, saveExpertFilter, saveExplicitNamingFilter } from "./components/filter/utils/
|
|
87
|
-
import { DEFAULT_RANGE_VALUE, default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
83
|
+
import { default as default63 } from "./components/inputs/react-hook-form/directory-items-input.js";
|
|
84
|
+
import { default as default64 } from "./components/DirectoryItemSelector/directory-item-selector.js";
|
|
85
|
+
import { RawReadOnlyInput } from "./components/inputs/react-hook-form/raw-read-only-input.js";
|
|
86
|
+
import { saveCriteriaBasedFilter, saveExpertFilter, saveExplicitNamingFilter } from "./components/filter/utils/filter-api.js";
|
|
87
|
+
import { DEFAULT_RANGE_VALUE, default as default65, getRangeInputDataForm, getRangeInputSchema } from "./components/inputs/react-hook-form/range-input.js";
|
|
88
|
+
import { default as default66 } from "./components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation.js";
|
|
89
|
+
import { default as default67 } from "./components/inputs/react-hook-form/select-inputs/mui-select-input.js";
|
|
90
|
+
import { default as default68 } from "./components/inputs/react-hook-form/select-inputs/countries-input.js";
|
|
91
|
+
import { getComputedLanguage, getSystemLanguage, useLocalizedCountries } from "./hooks/localized-countries-hook.js";
|
|
92
|
+
import { default as default69 } from "./components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js";
|
|
93
|
+
import { UniqueNameInput } from "./components/inputs/react-hook-form/unique-name-input.js";
|
|
93
94
|
import { UserManagerMock } from "./utils/UserManagerMock.js";
|
|
95
|
+
import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS } from "./components/filter/utils/filter-form-utils.js";
|
|
96
|
+
import { getCriteriaBasedFormData, getCriteriaBasedSchema } from "./components/filter/criteria-based/criteria-based-filter-utils.js";
|
|
97
|
+
import { setCommonStore } from "./redux/commonStore.js";
|
|
94
98
|
export {
|
|
95
99
|
default4 as AboutDialog,
|
|
96
100
|
default6 as AuthenticationRouter,
|
|
97
|
-
|
|
101
|
+
default46 as AutocompleteInput,
|
|
98
102
|
Battery,
|
|
99
103
|
B as BottomRightButtons,
|
|
100
104
|
BusBar,
|
|
101
105
|
CHANGE_WAYS,
|
|
102
106
|
CONTINGENCY_LIST_EQUIPMENTS,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
CountriesInput,
|
|
107
|
+
default62 as CancelButton,
|
|
108
|
+
default43 as CardErrorBoundary,
|
|
109
|
+
default54 as CheckboxInput,
|
|
110
|
+
default68 as CountriesInput,
|
|
107
111
|
b as CriteriaBasedFilterEditionDialog,
|
|
108
|
-
|
|
112
|
+
default15 as CriteriaBasedForm,
|
|
109
113
|
c as CsvUploader,
|
|
110
114
|
C as CustomAgGridTable,
|
|
111
|
-
|
|
115
|
+
default45 as CustomFormProvider,
|
|
112
116
|
default12 as CustomMuiDialog,
|
|
113
117
|
DARK_THEME,
|
|
114
118
|
DEFAULT_CELL_PADDING,
|
|
@@ -117,29 +121,29 @@ export {
|
|
|
117
121
|
DEFAULT_ROW_HEIGHT,
|
|
118
122
|
DanglingLine,
|
|
119
123
|
default13 as DescriptionModificationDialog,
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
default64 as DirectoryItemSelector,
|
|
125
|
+
default63 as DirectoryItemsInput,
|
|
122
126
|
EQUIPMENT_TYPE,
|
|
123
127
|
default10 as ElementSearchDialog,
|
|
124
128
|
ElementType,
|
|
125
129
|
EquipmentItem,
|
|
126
130
|
EquipmentType,
|
|
127
|
-
|
|
128
|
-
|
|
131
|
+
default56 as ErrorInput,
|
|
132
|
+
default48 as ExpandingTextField,
|
|
129
133
|
E as ExpertFilterEditionDialog,
|
|
130
134
|
a as ExplicitNamingFilterEditionDialog,
|
|
131
135
|
FILTER_EQUIPMENTS,
|
|
132
136
|
FieldConstants,
|
|
133
|
-
|
|
134
|
-
|
|
137
|
+
default57 as FieldErrorAlert,
|
|
138
|
+
default60 as FieldLabel,
|
|
135
139
|
F as FilterCreationDialog,
|
|
136
140
|
FlatParameters,
|
|
137
|
-
|
|
141
|
+
default51 as FloatInput,
|
|
138
142
|
GRIDSUITE_DEFAULT_PRECISION,
|
|
139
143
|
Generator,
|
|
140
144
|
Hvdc,
|
|
141
|
-
|
|
142
|
-
|
|
145
|
+
default66 as InputWithPopupConfirmation,
|
|
146
|
+
default52 as IntegerInput,
|
|
143
147
|
KeyedColumnsRowIndexer,
|
|
144
148
|
LANG_ENGLISH,
|
|
145
149
|
LANG_FRENCH,
|
|
@@ -149,34 +153,35 @@ export {
|
|
|
149
153
|
LOGOUT_ERROR,
|
|
150
154
|
Line,
|
|
151
155
|
Load,
|
|
152
|
-
|
|
153
|
-
|
|
156
|
+
default58 as MidFormError,
|
|
157
|
+
default14 as ModifyElementSelection,
|
|
158
|
+
default67 as MuiSelectInput,
|
|
154
159
|
default7 as MuiVirtualizedTable,
|
|
155
|
-
|
|
160
|
+
default69 as MultipleAutocompleteInput,
|
|
156
161
|
default11 as MultipleSelectionDialog,
|
|
157
162
|
OverflowableText,
|
|
158
|
-
|
|
163
|
+
default16 as PopupConfirmationDialog,
|
|
159
164
|
RESET_AUTHENTICATION_ROUTER_ERROR,
|
|
160
165
|
R as ROW_DRAGGING_SELECTION_COLUMN_DEF,
|
|
161
|
-
|
|
162
|
-
|
|
166
|
+
default49 as RadioInput,
|
|
167
|
+
default65 as RangeInput,
|
|
163
168
|
RawReadOnlyInput,
|
|
164
169
|
default8 as ReportViewer,
|
|
165
170
|
default9 as ReportViewerDialog,
|
|
166
171
|
SHOW_AUTH_INFO_LOGIN,
|
|
167
172
|
SIGNIN_CALLBACK_ERROR,
|
|
168
173
|
SVC,
|
|
169
|
-
|
|
170
|
-
|
|
174
|
+
default44 as SelectClearable,
|
|
175
|
+
default53 as SelectInput,
|
|
171
176
|
ShuntCompensator,
|
|
172
|
-
|
|
177
|
+
default50 as SliderInput,
|
|
173
178
|
default5 as SnackbarProvider,
|
|
174
|
-
|
|
179
|
+
default61 as SubmitButton,
|
|
175
180
|
Substation,
|
|
176
|
-
|
|
181
|
+
default55 as SwitchInput,
|
|
177
182
|
TagRenderer,
|
|
178
|
-
|
|
179
|
-
|
|
183
|
+
default59 as TextFieldWithAdornment,
|
|
184
|
+
default47 as TextInput,
|
|
180
185
|
ThreeWindingTransfo,
|
|
181
186
|
default3 as TopBar,
|
|
182
187
|
default2 as TreeViewFinder,
|
|
@@ -189,24 +194,25 @@ export {
|
|
|
189
194
|
VSC,
|
|
190
195
|
VoltageLevel,
|
|
191
196
|
areArrayElementsUnique,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
197
|
+
default33 as card_error_boundary_en,
|
|
198
|
+
default34 as card_error_boundary_fr,
|
|
199
|
+
default39 as common_button_en,
|
|
200
|
+
default40 as common_button_fr,
|
|
201
|
+
default41 as directory_items_input_en,
|
|
202
|
+
default42 as directory_items_input_fr,
|
|
198
203
|
dispatchUser,
|
|
199
|
-
|
|
200
|
-
|
|
204
|
+
default27 as element_search_en,
|
|
205
|
+
default28 as element_search_fr,
|
|
201
206
|
equipmentStyles,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
207
|
+
default29 as equipment_search_en,
|
|
208
|
+
default30 as equipment_search_fr,
|
|
209
|
+
default31 as filter_en,
|
|
210
|
+
default32 as filter_fr,
|
|
211
|
+
default35 as flat_parameters_en,
|
|
212
|
+
default36 as flat_parameters_fr,
|
|
208
213
|
genHelperError,
|
|
209
214
|
genHelperPreviousValue,
|
|
215
|
+
getComputedLanguage,
|
|
210
216
|
getCriteriaBasedFormData,
|
|
211
217
|
getCriteriaBasedSchema,
|
|
212
218
|
getEquipmentsInfosForSearchBar,
|
|
@@ -214,6 +220,7 @@ export {
|
|
|
214
220
|
getPreLoginPath,
|
|
215
221
|
getRangeInputDataForm,
|
|
216
222
|
getRangeInputSchema,
|
|
223
|
+
getSystemLanguage,
|
|
217
224
|
gridItem,
|
|
218
225
|
identity,
|
|
219
226
|
initializeAuthenticationDev,
|
|
@@ -223,33 +230,35 @@ export {
|
|
|
223
230
|
isFloatNumber,
|
|
224
231
|
isObjectEmpty,
|
|
225
232
|
keyGenerator,
|
|
226
|
-
|
|
227
|
-
|
|
233
|
+
default19 as login_en,
|
|
234
|
+
default20 as login_fr,
|
|
228
235
|
logout,
|
|
229
236
|
mergeSx,
|
|
230
237
|
microUnitToUnit,
|
|
231
|
-
|
|
232
|
-
|
|
238
|
+
default37 as multiple_selection_dialog_en,
|
|
239
|
+
default38 as multiple_selection_dialog_fr,
|
|
233
240
|
noSelectionForCopy,
|
|
234
|
-
|
|
235
|
-
|
|
241
|
+
default17 as report_viewer_en,
|
|
242
|
+
default18 as report_viewer_fr,
|
|
236
243
|
roundToDefaultPrecision,
|
|
237
244
|
roundToPrecision,
|
|
238
245
|
saveCriteriaBasedFilter,
|
|
239
246
|
saveExpertFilter,
|
|
240
247
|
saveExplicitNamingFilter,
|
|
248
|
+
setCommonStore,
|
|
241
249
|
setLoggedUser,
|
|
242
250
|
setSignInCallbackError,
|
|
243
|
-
|
|
244
|
-
|
|
251
|
+
default23 as table_en,
|
|
252
|
+
default24 as table_fr,
|
|
245
253
|
toFloatOrNullValue,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
254
|
+
default21 as top_bar_en,
|
|
255
|
+
default22 as top_bar_fr,
|
|
256
|
+
default25 as treeview_finder_en,
|
|
257
|
+
default26 as treeview_finder_fr,
|
|
250
258
|
unitToMicroUnit,
|
|
251
259
|
useCustomFormContext,
|
|
252
260
|
useDebounce,
|
|
253
261
|
useIntlRef,
|
|
262
|
+
useLocalizedCountries,
|
|
254
263
|
useSnackMessage
|
|
255
264
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { User } from 'oidc-client';
|
|
2
|
+
|
|
3
|
+
interface CommonStore {
|
|
4
|
+
getState: () => {
|
|
5
|
+
user: User;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Set a copy of the reference to the store to be able to access it from this library.
|
|
10
|
+
* It's useful to get access to the user token outside of the React context in API files.
|
|
11
|
+
* NB : temporary solution before refactoring the token management in the whole gridsuite stack.
|
|
12
|
+
*/
|
|
13
|
+
export declare function setCommonStore(store: CommonStore): void;
|
|
14
|
+
export declare function getUserToken(): string | undefined;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UUID } from 'crypto';
|
|
2
|
+
|
|
3
|
+
export declare function createFilter(newFilter: any, name: string, description: string, parentDirectoryUuid?: UUID, token?: string): Promise<any>;
|
|
4
|
+
export declare function saveFilter(filter: any, name: string, token?: string): Promise<any>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { backendFetch } from "./utils.js";
|
|
2
|
+
const PREFIX_EXPLORE_SERVER_QUERIES = "api/gateway/explore";
|
|
3
|
+
function createFilter(newFilter, name, description, parentDirectoryUuid, token) {
|
|
4
|
+
let urlSearchParams = new URLSearchParams();
|
|
5
|
+
urlSearchParams.append("name", name);
|
|
6
|
+
urlSearchParams.append("description", description);
|
|
7
|
+
parentDirectoryUuid && urlSearchParams.append("parentDirectoryUuid", parentDirectoryUuid);
|
|
8
|
+
return backendFetch(
|
|
9
|
+
PREFIX_EXPLORE_SERVER_QUERIES + "/v1/explore/filters?" + urlSearchParams.toString(),
|
|
10
|
+
{
|
|
11
|
+
method: "post",
|
|
12
|
+
headers: { "Content-Type": "application/json" },
|
|
13
|
+
body: JSON.stringify(newFilter)
|
|
14
|
+
},
|
|
15
|
+
token
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function saveFilter(filter, name, token) {
|
|
19
|
+
let urlSearchParams = new URLSearchParams();
|
|
20
|
+
urlSearchParams.append("name", name);
|
|
21
|
+
return backendFetch(
|
|
22
|
+
PREFIX_EXPLORE_SERVER_QUERIES + "/v1/explore/filters/" + filter.id + "?" + urlSearchParams.toString(),
|
|
23
|
+
{
|
|
24
|
+
method: "put",
|
|
25
|
+
headers: { "Content-Type": "application/json" },
|
|
26
|
+
body: JSON.stringify(filter)
|
|
27
|
+
},
|
|
28
|
+
token
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
createFilter,
|
|
33
|
+
saveFilter
|
|
34
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { backendFetchJson } from "./utils.js";
|
|
2
|
+
const PREFIX_STUDY_QUERIES = "api/gateway/study";
|
|
3
|
+
function exportFilter(studyUuid, filterUuid, token) {
|
|
4
|
+
console.info("get filter export on study root node");
|
|
5
|
+
return backendFetchJson(
|
|
6
|
+
PREFIX_STUDY_QUERIES + "/v1/studies/" + studyUuid + "/filters/" + filterUuid + "/elements",
|
|
7
|
+
{
|
|
8
|
+
method: "get",
|
|
9
|
+
headers: { "Content-Type": "application/json" }
|
|
10
|
+
},
|
|
11
|
+
token
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
exportFilter
|
|
16
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
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 backendFetch: (url: string, init: any, token?: string) => Promise<any>;
|
|
8
|
+
export declare const backendFetchJson: (url: string, init: any, token?: string) => Promise<any>;
|