@gridsuite/commons-ui 0.56.0 → 0.57.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/chunks/{criteria-based-filter-edition-dialog.DxqH-mLe.js → criteria-based-filter-edition-dialog.BEXoNmzz.js} +1 -1
- package/dist/components/TopBar/TopBar.js +371 -429
- package/dist/components/filter/constants/expert-filter-constants.d.ts +5 -0
- package/dist/components/filter/constants/expert-filter-constants.js +5 -0
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +1 -1
- package/dist/components/filter/expert/expert-filter-edition-dialog.js +1 -1
- package/dist/components/filter/expert/expert-filter-form.js +1 -1
- package/dist/components/filter/expert/expert-filter-utils.d.ts +73 -1
- package/dist/components/filter/expert/expert-filter-utils.js +7 -5
- 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.js +1 -1
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +1 -1
- package/dist/components/filter/filter-creation-dialog.js +1 -1
- package/dist/components/filter/filter-form.js +1 -1
- package/dist/components/react-hook-form/ag-grid-table-rhf/bottom-right-buttons.js +1 -1
- package/dist/components/react-hook-form/ag-grid-table-rhf/csv-uploader/csv-uploader.js +1 -1
- package/dist/components/react-hook-form/ag-grid-table-rhf/custom-ag-grid-table.js +1 -1
- package/dist/components/react-query-builder-inputs/custom-react-query-builder.js +1 -1
- package/dist/components/react-query-builder-inputs/element-value-editor.js +1 -1
- package/dist/components/react-query-builder-inputs/remove-button.js +1 -1
- package/dist/components/react-query-builder-inputs/value-editor.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/index.d.ts +2 -0
- package/dist/index.js +77 -73
- package/package.json +4 -5
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ 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
18
|
import { default as default14 } from "./components/filter/criteria-based/criteria-based-form.js";
|
|
19
19
|
import { default as default15 } from "./components/dialogs/popup-confirmation-dialog.js";
|
|
20
|
-
import { B, b, c, C, E, a, F, R } from "./chunks/criteria-based-filter-edition-dialog.
|
|
20
|
+
import { B, b, c, C, E, a, F, R } from "./chunks/criteria-based-filter-edition-dialog.BEXoNmzz.js";
|
|
21
21
|
import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS, getCriteriaBasedFormData, getCriteriaBasedSchema } from "./components/filter/utils/criteria-based-utils.js";
|
|
22
22
|
import { Battery, BusBar, DanglingLine, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, noSelectionForCopy } from "./components/filter/constants/equipment-types.js";
|
|
23
23
|
import { FieldConstants } from "./components/filter/constants/field-constants.js";
|
|
@@ -41,72 +41,74 @@ import { default as default26 } from "./components/translations/element-search-e
|
|
|
41
41
|
import { default as default27 } from "./components/translations/element-search-fr.js";
|
|
42
42
|
import { default as default28 } from "./components/translations/equipment-search-en.js";
|
|
43
43
|
import { default as default29 } from "./components/translations/equipment-search-fr.js";
|
|
44
|
-
import { default as default30 } from "./components/translations/
|
|
45
|
-
import { default as default31 } from "./components/translations/
|
|
46
|
-
import { default as default32 } from "./components/translations/
|
|
47
|
-
import { default as default33 } from "./components/translations/
|
|
48
|
-
import { default as default34 } from "./components/translations/
|
|
49
|
-
import { default as default35 } from "./components/translations/
|
|
50
|
-
import { default as default36 } from "./components/translations/
|
|
51
|
-
import { default as default37 } from "./components/translations/
|
|
52
|
-
import { default as default38 } from "./components/translations/
|
|
53
|
-
import { default as default39 } from "./components/translations/
|
|
44
|
+
import { default as default30 } from "./components/translations/filter-en.js";
|
|
45
|
+
import { default as default31 } from "./components/translations/filter-fr.js";
|
|
46
|
+
import { default as default32 } from "./components/translations/card-error-boundary-en.js";
|
|
47
|
+
import { default as default33 } from "./components/translations/card-error-boundary-fr.js";
|
|
48
|
+
import { default as default34 } from "./components/translations/flat-parameters-en.js";
|
|
49
|
+
import { default as default35 } from "./components/translations/flat-parameters-fr.js";
|
|
50
|
+
import { default as default36 } from "./components/translations/multiple-selection-dialog-en.js";
|
|
51
|
+
import { default as default37 } from "./components/translations/multiple-selection-dialog-fr.js";
|
|
52
|
+
import { default as default38 } from "./components/translations/common-button-en.js";
|
|
53
|
+
import { default as default39 } from "./components/translations/common-button-fr.js";
|
|
54
|
+
import { default as default40 } from "./components/translations/directory-items-input-en.js";
|
|
55
|
+
import { default as default41 } 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 default42 } 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
|
|
61
|
+
import { default as default43 } from "./components/inputs/select-clearable.js";
|
|
60
62
|
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
|
|
63
|
+
import { default as default44 } from "./components/react-hook-form/provider/custom-form-provider.js";
|
|
64
|
+
import { default as default45 } from "./components/react-hook-form/autocomplete-input.js";
|
|
65
|
+
import { default as default46 } from "./components/react-hook-form/text-input.js";
|
|
66
|
+
import { default as default47 } from "./components/react-hook-form/ExpandingTextField.js";
|
|
67
|
+
import { default as default48 } from "./components/react-hook-form/radio-input.js";
|
|
68
|
+
import { default as default49 } from "./components/react-hook-form/slider-input.js";
|
|
69
|
+
import { default as default50 } from "./components/react-hook-form/numbers/float-input.js";
|
|
70
|
+
import { default as default51 } from "./components/react-hook-form/numbers/integer-input.js";
|
|
71
|
+
import { default as default52 } from "./components/react-hook-form/select-inputs/select-input.js";
|
|
72
|
+
import { default as default53 } from "./components/react-hook-form/booleans/checkbox-input.js";
|
|
73
|
+
import { default as default54 } from "./components/react-hook-form/booleans/switch-input.js";
|
|
74
|
+
import { default as default55 } from "./components/react-hook-form/error-management/error-input.js";
|
|
75
|
+
import { default as default56 } from "./components/react-hook-form/error-management/field-error-alert.js";
|
|
76
|
+
import { default as default57 } from "./components/react-hook-form/error-management/mid-form-error.js";
|
|
77
|
+
import { default as default58 } from "./components/react-hook-form/utils/text-field-with-adornment.js";
|
|
78
|
+
import { default as default59 } from "./components/react-hook-form/utils/field-label.js";
|
|
79
|
+
import { default as default60 } from "./components/react-hook-form/utils/submit-button.js";
|
|
80
|
+
import { default as default61 } from "./components/react-hook-form/utils/cancel-button.js";
|
|
79
81
|
import { genHelperError, genHelperPreviousValue, gridItem, identity, isFieldRequired, isFloatNumber, toFloatOrNullValue } from "./components/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 { default as default62 } from "./components/react-hook-form/directory-items-input.js";
|
|
84
|
+
import { default as default63 } from "./components/DirectoryItemSelector/directory-item-selector.js";
|
|
83
85
|
import { RawReadOnlyInput } from "./components/react-hook-form/raw-read-only-input.js";
|
|
84
86
|
import { saveCriteriaBasedFilter, saveExpertFilter, saveExplicitNamingFilter } from "./components/filter/utils/filters-utils.js";
|
|
85
|
-
import { DEFAULT_RANGE_VALUE, default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
87
|
+
import { DEFAULT_RANGE_VALUE, default as default64, getRangeInputDataForm, getRangeInputSchema } from "./components/react-hook-form/range-input.js";
|
|
88
|
+
import { default as default65 } from "./components/react-hook-form/select-inputs/input-with-popup-confirmation.js";
|
|
89
|
+
import { default as default66 } from "./components/react-hook-form/select-inputs/mui-select-input.js";
|
|
88
90
|
import { CountriesInput } from "./components/react-hook-form/select-inputs/countries-input.js";
|
|
89
|
-
import { default as
|
|
91
|
+
import { default as default67 } from "./components/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js";
|
|
90
92
|
import { UniqueNameInput } from "./components/react-hook-form/unique-name-input.js";
|
|
91
93
|
import { UserManagerMock } from "./utils/UserManagerMock.js";
|
|
92
94
|
export {
|
|
93
95
|
default4 as AboutDialog,
|
|
94
96
|
default6 as AuthenticationRouter,
|
|
95
|
-
|
|
97
|
+
default45 as AutocompleteInput,
|
|
96
98
|
Battery,
|
|
97
99
|
B as BottomRightButtons,
|
|
98
100
|
BusBar,
|
|
99
101
|
CHANGE_WAYS,
|
|
100
102
|
CONTINGENCY_LIST_EQUIPMENTS,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
default61 as CancelButton,
|
|
104
|
+
default42 as CardErrorBoundary,
|
|
105
|
+
default53 as CheckboxInput,
|
|
104
106
|
CountriesInput,
|
|
105
107
|
b as CriteriaBasedFilterEditionDialog,
|
|
106
108
|
default14 as CriteriaBasedForm,
|
|
107
109
|
c as CsvUploader,
|
|
108
110
|
C as CustomAgGridTable,
|
|
109
|
-
|
|
111
|
+
default44 as CustomFormProvider,
|
|
110
112
|
default12 as CustomMuiDialog,
|
|
111
113
|
DARK_THEME,
|
|
112
114
|
DEFAULT_CELL_PADDING,
|
|
@@ -115,29 +117,29 @@ export {
|
|
|
115
117
|
DEFAULT_ROW_HEIGHT,
|
|
116
118
|
DanglingLine,
|
|
117
119
|
default13 as DescriptionModificationDialog,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
default63 as DirectoryItemSelector,
|
|
121
|
+
default62 as DirectoryItemsInput,
|
|
120
122
|
EQUIPMENT_TYPE,
|
|
121
123
|
default10 as ElementSearchDialog,
|
|
122
124
|
ElementType,
|
|
123
125
|
EquipmentItem,
|
|
124
126
|
EquipmentType,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
default55 as ErrorInput,
|
|
128
|
+
default47 as ExpandingTextField,
|
|
127
129
|
E as ExpertFilterEditionDialog,
|
|
128
130
|
a as ExplicitNamingFilterEditionDialog,
|
|
129
131
|
FILTER_EQUIPMENTS,
|
|
130
132
|
FieldConstants,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
default56 as FieldErrorAlert,
|
|
134
|
+
default59 as FieldLabel,
|
|
133
135
|
F as FilterCreationDialog,
|
|
134
136
|
FlatParameters,
|
|
135
|
-
|
|
137
|
+
default50 as FloatInput,
|
|
136
138
|
GRIDSUITE_DEFAULT_PRECISION,
|
|
137
139
|
Generator,
|
|
138
140
|
Hvdc,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
+
default65 as InputWithPopupConfirmation,
|
|
142
|
+
default51 as IntegerInput,
|
|
141
143
|
KeyedColumnsRowIndexer,
|
|
142
144
|
LANG_ENGLISH,
|
|
143
145
|
LANG_FRENCH,
|
|
@@ -147,34 +149,34 @@ export {
|
|
|
147
149
|
LOGOUT_ERROR,
|
|
148
150
|
Line,
|
|
149
151
|
Load,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
+
default57 as MidFormError,
|
|
153
|
+
default66 as MuiSelectInput,
|
|
152
154
|
default7 as MuiVirtualizedTable,
|
|
153
|
-
|
|
155
|
+
default67 as MultipleAutocompleteInput,
|
|
154
156
|
default11 as MultipleSelectionDialog,
|
|
155
157
|
OverflowableText,
|
|
156
158
|
default15 as PopupConfirmationDialog,
|
|
157
159
|
RESET_AUTHENTICATION_ROUTER_ERROR,
|
|
158
160
|
R as ROW_DRAGGING_SELECTION_COLUMN_DEF,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
+
default48 as RadioInput,
|
|
162
|
+
default64 as RangeInput,
|
|
161
163
|
RawReadOnlyInput,
|
|
162
164
|
default8 as ReportViewer,
|
|
163
165
|
default9 as ReportViewerDialog,
|
|
164
166
|
SHOW_AUTH_INFO_LOGIN,
|
|
165
167
|
SIGNIN_CALLBACK_ERROR,
|
|
166
168
|
SVC,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
+
default43 as SelectClearable,
|
|
170
|
+
default52 as SelectInput,
|
|
169
171
|
ShuntCompensator,
|
|
170
|
-
|
|
172
|
+
default49 as SliderInput,
|
|
171
173
|
default5 as SnackbarProvider,
|
|
172
|
-
|
|
174
|
+
default60 as SubmitButton,
|
|
173
175
|
Substation,
|
|
174
|
-
|
|
176
|
+
default54 as SwitchInput,
|
|
175
177
|
TagRenderer,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
+
default58 as TextFieldWithAdornment,
|
|
179
|
+
default46 as TextInput,
|
|
178
180
|
ThreeWindingTransfo,
|
|
179
181
|
default3 as TopBar,
|
|
180
182
|
default2 as TreeViewFinder,
|
|
@@ -187,20 +189,22 @@ export {
|
|
|
187
189
|
VSC,
|
|
188
190
|
VoltageLevel,
|
|
189
191
|
areArrayElementsUnique,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
default32 as card_error_boundary_en,
|
|
193
|
+
default33 as card_error_boundary_fr,
|
|
194
|
+
default38 as common_button_en,
|
|
195
|
+
default39 as common_button_fr,
|
|
196
|
+
default40 as directory_items_input_en,
|
|
197
|
+
default41 as directory_items_input_fr,
|
|
196
198
|
dispatchUser,
|
|
197
199
|
default26 as element_search_en,
|
|
198
200
|
default27 as element_search_fr,
|
|
199
201
|
equipmentStyles,
|
|
200
202
|
default28 as equipment_search_en,
|
|
201
203
|
default29 as equipment_search_fr,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
+
default30 as filter_en,
|
|
205
|
+
default31 as filter_fr,
|
|
206
|
+
default34 as flat_parameters_en,
|
|
207
|
+
default35 as flat_parameters_fr,
|
|
204
208
|
genHelperError,
|
|
205
209
|
genHelperPreviousValue,
|
|
206
210
|
getCriteriaBasedFormData,
|
|
@@ -224,8 +228,8 @@ export {
|
|
|
224
228
|
logout,
|
|
225
229
|
mergeSx,
|
|
226
230
|
microUnitToUnit,
|
|
227
|
-
|
|
228
|
-
|
|
231
|
+
default36 as multiple_selection_dialog_en,
|
|
232
|
+
default37 as multiple_selection_dialog_fr,
|
|
229
233
|
noSelectionForCopy,
|
|
230
234
|
default16 as report_viewer_en,
|
|
231
235
|
default17 as report_viewer_fr,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridsuite/commons-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"description": "common react components for gridsuite applications",
|
|
5
5
|
"engines": {
|
|
6
6
|
"npm": ">=9",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"licenses-check": "license-checker --summary --excludePrivatePackages --production --onlyAllow \"$( jq -r .onlyAllow[] license-checker-config.json | tr '\n' ';')\" --excludePackages \"$( jq -r .excludePackages[] license-checker-config.json | tr '\n' ';')\""
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@react-querybuilder/material": "^
|
|
32
|
-
"@react-querybuilder/dnd": "^
|
|
31
|
+
"@react-querybuilder/material": "^7.2.0",
|
|
32
|
+
"@react-querybuilder/dnd": "^7.2.0",
|
|
33
33
|
"autosuggest-highlight": "^3.3.4",
|
|
34
34
|
"clsx": "^2.1.0",
|
|
35
35
|
"jwt-decode": "^4.0.0",
|
|
@@ -38,12 +38,11 @@
|
|
|
38
38
|
"oidc-client": "^1.11.5",
|
|
39
39
|
"prop-types": "^15.8.1",
|
|
40
40
|
"react-csv-downloader": "^3.1.0",
|
|
41
|
-
"react-request-fullscreen": "^1.1.2",
|
|
42
41
|
"react-virtualized": "^9.22.5",
|
|
43
42
|
"uuid": "^9.0.1",
|
|
44
43
|
"react-dnd": "^16.0.1",
|
|
45
44
|
"react-dnd-html5-backend": "^16.0.1",
|
|
46
|
-
"react-querybuilder": "^
|
|
45
|
+
"react-querybuilder": "^7.2.0"
|
|
47
46
|
},
|
|
48
47
|
"peerDependencies": {
|
|
49
48
|
"@emotion/react": "^11.11.4",
|