@gridsuite/commons-ui 0.56.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.DxqH-mLe.js → criteria-based-filter-edition-dialog.CbhgOSRk.js} +140 -111
- 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/TopBar/TopBar.js +371 -429
- 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.d.ts +5 -0
- package/dist/components/filter/{constants → expert}/expert-filter-constants.js +12 -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.d.ts +73 -1
- package/dist/components/filter/expert/expert-filter-utils.js +8 -6
- package/dist/components/filter/expert/expert-filter.type.d.ts +1 -0
- package/dist/components/filter/expert/expert-filter.type.js +1 -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-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/components/translations/filter-en.d.ts +22 -0
- package/dist/components/translations/filter-en.js +23 -0
- package/dist/components/translations/filter-fr.d.ts +22 -0
- package/dist/components/translations/filter-fr.js +23 -0
- 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 +53 -39
- package/dist/index.js +129 -116
- 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 +9 -9
- 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/{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';
|
|
@@ -82,6 +79,8 @@ export { default as element_search_en } from './components/translations/element-
|
|
|
82
79
|
export { default as element_search_fr } from './components/translations/element-search-fr';
|
|
83
80
|
export { default as equipment_search_en } from './components/translations/equipment-search-en';
|
|
84
81
|
export { default as equipment_search_fr } from './components/translations/equipment-search-fr';
|
|
82
|
+
export { default as filter_en } from './components/translations/filter-en';
|
|
83
|
+
export { default as filter_fr } from './components/translations/filter-fr';
|
|
85
84
|
export { default as card_error_boundary_en } from './components/translations/card-error-boundary-en';
|
|
86
85
|
export { default as card_error_boundary_fr } from './components/translations/card-error-boundary-fr';
|
|
87
86
|
export { default as flat_parameters_en } from './components/translations/flat-parameters-en';
|
|
@@ -97,26 +96,28 @@ export { TagRenderer } from './components/ElementSearchDialog';
|
|
|
97
96
|
export { EquipmentItem } from './components/ElementSearchDialog/equipment-item';
|
|
98
97
|
export { useIntlRef } from './hooks/useIntlRef';
|
|
99
98
|
export { default as SelectClearable } from './components/inputs/select-clearable';
|
|
100
|
-
export { useCustomFormContext } from './components/react-hook-form/provider/use-custom-form-context';
|
|
101
|
-
export { default as CustomFormProvider } from './components/react-hook-form/provider/custom-form-provider';
|
|
102
|
-
export { default as SliderInput } from './components/react-hook-form/slider-input';
|
|
103
|
-
export { default as TextFieldWithAdornment } from './components/react-hook-form/utils/text-field-with-adornment';
|
|
104
|
-
export { default as SelectInput } from './components/react-hook-form/select-inputs/select-input';
|
|
105
|
-
export { default as ErrorInput } from './components/react-hook-form/error-management/error-input';
|
|
106
|
-
export { default as AutocompleteInput } from './components/react-hook-form/autocomplete-input';
|
|
107
|
-
export { default as TextInput } from './components/react-hook-form/text-input';
|
|
108
|
-
export { default as FloatInput } from './components/react-hook-form/numbers/float-input';
|
|
109
|
-
export { default as RadioInput } from './components/react-hook-form/radio-input';
|
|
110
|
-
export { default as SubmitButton } from './components/react-hook-form/utils/submit-button';
|
|
111
|
-
export { default as CancelButton } from './components/react-hook-form/utils/cancel-button';
|
|
112
|
-
export { default as FieldLabel } from './components/react-hook-form/utils/field-label';
|
|
113
|
-
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';
|
|
114
113
|
export { default as FilterCreationDialog } from './components/filter/filter-creation-dialog';
|
|
115
114
|
export { default as ExpertFilterEditionDialog } from './components/filter/expert/expert-filter-edition-dialog';
|
|
116
115
|
export { default as ExplicitNamingFilterEditionDialog } from './components/filter/explicit-naming/explicit-naming-filter-edition-dialog';
|
|
117
116
|
export { default as CriteriaBasedFilterEditionDialog } from './components/filter/criteria-based/criteria-based-filter-edition-dialog';
|
|
118
|
-
export { default as ExpandingTextField } from './components/react-hook-form/
|
|
117
|
+
export { default as ExpandingTextField } from './components/inputs/react-hook-form/ExpandingTextField';
|
|
119
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';
|
|
120
121
|
export {
|
|
121
122
|
genHelperPreviousValue,
|
|
122
123
|
genHelperError,
|
|
@@ -125,10 +126,10 @@ export {
|
|
|
125
126
|
gridItem,
|
|
126
127
|
isFloatNumber,
|
|
127
128
|
toFloatOrNullValue,
|
|
128
|
-
} from './components/react-hook-form/utils/functions';
|
|
129
|
-
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';
|
|
130
131
|
export { default as DirectoryItemSelector } from './components/DirectoryItemSelector/directory-item-selector';
|
|
131
|
-
export { RawReadOnlyInput } from './components/react-hook-form/raw-read-only-input';
|
|
132
|
+
export { RawReadOnlyInput } from './components/inputs/react-hook-form/raw-read-only-input';
|
|
132
133
|
export { UserManagerMock } from './utils/UserManagerMock';
|
|
133
134
|
export {
|
|
134
135
|
keyGenerator,
|
|
@@ -137,28 +138,31 @@ export {
|
|
|
137
138
|
isObjectEmpty,
|
|
138
139
|
} from './utils/functions';
|
|
139
140
|
|
|
140
|
-
export { ElementType
|
|
141
|
+
export { ElementType } from './utils/ElementType';
|
|
142
|
+
export { getFileIcon } from './utils/ElementIcon';
|
|
143
|
+
|
|
141
144
|
export {
|
|
142
145
|
saveExplicitNamingFilter,
|
|
143
146
|
saveCriteriaBasedFilter,
|
|
144
147
|
saveExpertFilter,
|
|
145
|
-
} from './components/filter/utils/
|
|
148
|
+
} from './components/filter/utils/filter-api';
|
|
146
149
|
export {
|
|
147
|
-
RangeInput,
|
|
150
|
+
default as RangeInput,
|
|
148
151
|
DEFAULT_RANGE_VALUE,
|
|
149
152
|
getRangeInputDataForm,
|
|
150
153
|
getRangeInputSchema,
|
|
151
|
-
} from './components/react-hook-form/range-input';
|
|
152
|
-
export { InputWithPopupConfirmation } from './components/react-hook-form/select-inputs/input-with-popup-confirmation';
|
|
153
|
-
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';
|
|
154
158
|
export {
|
|
155
|
-
CountriesInput,
|
|
156
159
|
getSystemLanguage,
|
|
157
160
|
getComputedLanguage,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
export {
|
|
161
|
-
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';
|
|
162
166
|
|
|
163
167
|
export {
|
|
164
168
|
Line,
|
|
@@ -177,9 +181,9 @@ export {
|
|
|
177
181
|
VoltageLevel,
|
|
178
182
|
Substation,
|
|
179
183
|
noSelectionForCopy,
|
|
180
|
-
} from './
|
|
184
|
+
} from './utils/equipment-types';
|
|
181
185
|
|
|
182
|
-
export { FieldConstants } from './
|
|
186
|
+
export { FieldConstants } from './utils/field-constants';
|
|
183
187
|
|
|
184
188
|
export {
|
|
185
189
|
GRIDSUITE_DEFAULT_PRECISION,
|
|
@@ -192,9 +196,11 @@ export {
|
|
|
192
196
|
|
|
193
197
|
export { useSnackMessage } from './hooks/useSnackMessage';
|
|
194
198
|
export { useDebounce } from './hooks/useDebounce';
|
|
195
|
-
export { ROW_DRAGGING_SELECTION_COLUMN_DEF } from './components/react-hook-form/ag-grid-table
|
|
196
|
-
export {
|
|
197
|
-
|
|
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';
|
|
198
204
|
|
|
199
205
|
/**
|
|
200
206
|
* Section to export manual type declarations of .js and .jsx files
|
|
@@ -255,6 +261,14 @@ export const FlatParameters: FunctionComponent<FlatParametersProps>;
|
|
|
255
261
|
interface OverflowableTextProps {
|
|
256
262
|
sx?: SxProps;
|
|
257
263
|
text?: string | ReactElement;
|
|
264
|
+
maxLineCount?: number;
|
|
258
265
|
}
|
|
259
266
|
|
|
260
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,98 +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
|
|
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";
|
|
54
56
|
import { EquipmentItem } from "./components/ElementSearchDialog/equipment-item.js";
|
|
55
|
-
import { default as
|
|
57
|
+
import { default as default43 } from "./components/CardErrorBoundary/card-error-boundary.js";
|
|
56
58
|
import { useIntlRef } from "./hooks/useIntlRef.js";
|
|
57
59
|
import { useSnackMessage } from "./hooks/useSnackMessage.js";
|
|
58
60
|
import { useDebounce } from "./hooks/useDebounce.js";
|
|
59
|
-
import { default as
|
|
60
|
-
import { useCustomFormContext } from "./components/react-hook-form/provider/use-custom-form-context.js";
|
|
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 { 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 { 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";
|
|
80
82
|
import { areArrayElementsUnique, isObjectEmpty, keyGenerator, mergeSx } from "./utils/functions.js";
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { RawReadOnlyInput } from "./components/react-hook-form/raw-read-only-input.js";
|
|
84
|
-
import { saveCriteriaBasedFilter, saveExpertFilter, saveExplicitNamingFilter } from "./components/filter/utils/
|
|
85
|
-
import { DEFAULT_RANGE_VALUE, default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
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";
|
|
91
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";
|
|
92
98
|
export {
|
|
93
99
|
default4 as AboutDialog,
|
|
94
100
|
default6 as AuthenticationRouter,
|
|
95
|
-
|
|
101
|
+
default46 as AutocompleteInput,
|
|
96
102
|
Battery,
|
|
97
103
|
B as BottomRightButtons,
|
|
98
104
|
BusBar,
|
|
99
105
|
CHANGE_WAYS,
|
|
100
106
|
CONTINGENCY_LIST_EQUIPMENTS,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
CountriesInput,
|
|
107
|
+
default62 as CancelButton,
|
|
108
|
+
default43 as CardErrorBoundary,
|
|
109
|
+
default54 as CheckboxInput,
|
|
110
|
+
default68 as CountriesInput,
|
|
105
111
|
b as CriteriaBasedFilterEditionDialog,
|
|
106
|
-
|
|
112
|
+
default15 as CriteriaBasedForm,
|
|
107
113
|
c as CsvUploader,
|
|
108
114
|
C as CustomAgGridTable,
|
|
109
|
-
|
|
115
|
+
default45 as CustomFormProvider,
|
|
110
116
|
default12 as CustomMuiDialog,
|
|
111
117
|
DARK_THEME,
|
|
112
118
|
DEFAULT_CELL_PADDING,
|
|
@@ -115,29 +121,29 @@ export {
|
|
|
115
121
|
DEFAULT_ROW_HEIGHT,
|
|
116
122
|
DanglingLine,
|
|
117
123
|
default13 as DescriptionModificationDialog,
|
|
118
|
-
|
|
119
|
-
|
|
124
|
+
default64 as DirectoryItemSelector,
|
|
125
|
+
default63 as DirectoryItemsInput,
|
|
120
126
|
EQUIPMENT_TYPE,
|
|
121
127
|
default10 as ElementSearchDialog,
|
|
122
128
|
ElementType,
|
|
123
129
|
EquipmentItem,
|
|
124
130
|
EquipmentType,
|
|
125
|
-
|
|
126
|
-
|
|
131
|
+
default56 as ErrorInput,
|
|
132
|
+
default48 as ExpandingTextField,
|
|
127
133
|
E as ExpertFilterEditionDialog,
|
|
128
134
|
a as ExplicitNamingFilterEditionDialog,
|
|
129
135
|
FILTER_EQUIPMENTS,
|
|
130
136
|
FieldConstants,
|
|
131
|
-
|
|
132
|
-
|
|
137
|
+
default57 as FieldErrorAlert,
|
|
138
|
+
default60 as FieldLabel,
|
|
133
139
|
F as FilterCreationDialog,
|
|
134
140
|
FlatParameters,
|
|
135
|
-
|
|
141
|
+
default51 as FloatInput,
|
|
136
142
|
GRIDSUITE_DEFAULT_PRECISION,
|
|
137
143
|
Generator,
|
|
138
144
|
Hvdc,
|
|
139
|
-
|
|
140
|
-
|
|
145
|
+
default66 as InputWithPopupConfirmation,
|
|
146
|
+
default52 as IntegerInput,
|
|
141
147
|
KeyedColumnsRowIndexer,
|
|
142
148
|
LANG_ENGLISH,
|
|
143
149
|
LANG_FRENCH,
|
|
@@ -147,34 +153,35 @@ export {
|
|
|
147
153
|
LOGOUT_ERROR,
|
|
148
154
|
Line,
|
|
149
155
|
Load,
|
|
150
|
-
|
|
151
|
-
|
|
156
|
+
default58 as MidFormError,
|
|
157
|
+
default14 as ModifyElementSelection,
|
|
158
|
+
default67 as MuiSelectInput,
|
|
152
159
|
default7 as MuiVirtualizedTable,
|
|
153
|
-
|
|
160
|
+
default69 as MultipleAutocompleteInput,
|
|
154
161
|
default11 as MultipleSelectionDialog,
|
|
155
162
|
OverflowableText,
|
|
156
|
-
|
|
163
|
+
default16 as PopupConfirmationDialog,
|
|
157
164
|
RESET_AUTHENTICATION_ROUTER_ERROR,
|
|
158
165
|
R as ROW_DRAGGING_SELECTION_COLUMN_DEF,
|
|
159
|
-
|
|
160
|
-
|
|
166
|
+
default49 as RadioInput,
|
|
167
|
+
default65 as RangeInput,
|
|
161
168
|
RawReadOnlyInput,
|
|
162
169
|
default8 as ReportViewer,
|
|
163
170
|
default9 as ReportViewerDialog,
|
|
164
171
|
SHOW_AUTH_INFO_LOGIN,
|
|
165
172
|
SIGNIN_CALLBACK_ERROR,
|
|
166
173
|
SVC,
|
|
167
|
-
|
|
168
|
-
|
|
174
|
+
default44 as SelectClearable,
|
|
175
|
+
default53 as SelectInput,
|
|
169
176
|
ShuntCompensator,
|
|
170
|
-
|
|
177
|
+
default50 as SliderInput,
|
|
171
178
|
default5 as SnackbarProvider,
|
|
172
|
-
|
|
179
|
+
default61 as SubmitButton,
|
|
173
180
|
Substation,
|
|
174
|
-
|
|
181
|
+
default55 as SwitchInput,
|
|
175
182
|
TagRenderer,
|
|
176
|
-
|
|
177
|
-
|
|
183
|
+
default59 as TextFieldWithAdornment,
|
|
184
|
+
default47 as TextInput,
|
|
178
185
|
ThreeWindingTransfo,
|
|
179
186
|
default3 as TopBar,
|
|
180
187
|
default2 as TreeViewFinder,
|
|
@@ -187,22 +194,25 @@ export {
|
|
|
187
194
|
VSC,
|
|
188
195
|
VoltageLevel,
|
|
189
196
|
areArrayElementsUnique,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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,
|
|
196
203
|
dispatchUser,
|
|
197
|
-
|
|
198
|
-
|
|
204
|
+
default27 as element_search_en,
|
|
205
|
+
default28 as element_search_fr,
|
|
199
206
|
equipmentStyles,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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,
|
|
204
213
|
genHelperError,
|
|
205
214
|
genHelperPreviousValue,
|
|
215
|
+
getComputedLanguage,
|
|
206
216
|
getCriteriaBasedFormData,
|
|
207
217
|
getCriteriaBasedSchema,
|
|
208
218
|
getEquipmentsInfosForSearchBar,
|
|
@@ -210,6 +220,7 @@ export {
|
|
|
210
220
|
getPreLoginPath,
|
|
211
221
|
getRangeInputDataForm,
|
|
212
222
|
getRangeInputSchema,
|
|
223
|
+
getSystemLanguage,
|
|
213
224
|
gridItem,
|
|
214
225
|
identity,
|
|
215
226
|
initializeAuthenticationDev,
|
|
@@ -219,33 +230,35 @@ export {
|
|
|
219
230
|
isFloatNumber,
|
|
220
231
|
isObjectEmpty,
|
|
221
232
|
keyGenerator,
|
|
222
|
-
|
|
223
|
-
|
|
233
|
+
default19 as login_en,
|
|
234
|
+
default20 as login_fr,
|
|
224
235
|
logout,
|
|
225
236
|
mergeSx,
|
|
226
237
|
microUnitToUnit,
|
|
227
|
-
|
|
228
|
-
|
|
238
|
+
default37 as multiple_selection_dialog_en,
|
|
239
|
+
default38 as multiple_selection_dialog_fr,
|
|
229
240
|
noSelectionForCopy,
|
|
230
|
-
|
|
231
|
-
|
|
241
|
+
default17 as report_viewer_en,
|
|
242
|
+
default18 as report_viewer_fr,
|
|
232
243
|
roundToDefaultPrecision,
|
|
233
244
|
roundToPrecision,
|
|
234
245
|
saveCriteriaBasedFilter,
|
|
235
246
|
saveExpertFilter,
|
|
236
247
|
saveExplicitNamingFilter,
|
|
248
|
+
setCommonStore,
|
|
237
249
|
setLoggedUser,
|
|
238
250
|
setSignInCallbackError,
|
|
239
|
-
|
|
240
|
-
|
|
251
|
+
default23 as table_en,
|
|
252
|
+
default24 as table_fr,
|
|
241
253
|
toFloatOrNullValue,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
254
|
+
default21 as top_bar_en,
|
|
255
|
+
default22 as top_bar_fr,
|
|
256
|
+
default25 as treeview_finder_en,
|
|
257
|
+
default26 as treeview_finder_fr,
|
|
246
258
|
unitToMicroUnit,
|
|
247
259
|
useCustomFormContext,
|
|
248
260
|
useDebounce,
|
|
249
261
|
useIntlRef,
|
|
262
|
+
useLocalizedCountries,
|
|
250
263
|
useSnackMessage
|
|
251
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
|
+
};
|