@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
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { getUserToken } from "../redux/commonStore.js";
|
|
2
|
+
const backendFetch = (url, init, token) => {
|
|
3
|
+
const initCopy = prepareRequest(init, token);
|
|
4
|
+
return safeFetch(url, initCopy);
|
|
5
|
+
};
|
|
6
|
+
const backendFetchJson = (url, init, token) => {
|
|
7
|
+
const initCopy = prepareRequest(init, token);
|
|
8
|
+
return safeFetch(url, initCopy).then(
|
|
9
|
+
(safeResponse) => safeResponse.status === 204 ? null : safeResponse.json()
|
|
10
|
+
);
|
|
11
|
+
};
|
|
12
|
+
const prepareRequest = (init, token) => {
|
|
13
|
+
if (!(typeof init === "undefined" || typeof init === "object")) {
|
|
14
|
+
throw new TypeError(
|
|
15
|
+
"First argument of prepareRequest is not an object : " + typeof init
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
const initCopy = Object.assign({}, init);
|
|
19
|
+
initCopy.headers = new Headers(initCopy.headers || {});
|
|
20
|
+
const tokenCopy = token ?? getUserToken();
|
|
21
|
+
initCopy.headers.append("Authorization", "Bearer " + tokenCopy);
|
|
22
|
+
return initCopy;
|
|
23
|
+
};
|
|
24
|
+
const safeFetch = (url, initCopy) => {
|
|
25
|
+
return fetch(url, initCopy).then(
|
|
26
|
+
(response) => response.ok ? response : handleError(response)
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
const handleError = (response) => {
|
|
30
|
+
return response.text().then((text) => {
|
|
31
|
+
const errorName = "HttpResponseError : ";
|
|
32
|
+
const errorJson = parseError(text);
|
|
33
|
+
let customError;
|
|
34
|
+
if (errorJson && errorJson.status && errorJson.error && errorJson.message) {
|
|
35
|
+
customError = new Error(
|
|
36
|
+
errorName + errorJson.status + " " + errorJson.error + ", message : " + errorJson.message
|
|
37
|
+
);
|
|
38
|
+
customError.status = errorJson.status;
|
|
39
|
+
} else {
|
|
40
|
+
customError = new Error(
|
|
41
|
+
errorName + response.status + " " + response.statusText + ", message : " + text
|
|
42
|
+
);
|
|
43
|
+
customError.status = response.status;
|
|
44
|
+
}
|
|
45
|
+
throw customError;
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
const parseError = (text) => {
|
|
49
|
+
try {
|
|
50
|
+
return JSON.parse(text);
|
|
51
|
+
} catch (err) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
backendFetch,
|
|
57
|
+
backendFetchJson
|
|
58
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Log, UserManager } from "oidc-client";
|
|
2
2
|
import { UserManagerMock } from "./UserManagerMock.js";
|
|
3
|
-
import { setShowAuthenticationRouterLogin, setLoggedUser, setLogoutError, setUnauthorizedUserInfo, setUserValidationError, setSignInCallbackError, resetAuthenticationRouterError } from "
|
|
3
|
+
import { setShowAuthenticationRouterLogin, setLoggedUser, setLogoutError, setUnauthorizedUserInfo, setUserValidationError, setSignInCallbackError, resetAuthenticationRouterError } from "../redux/actions.js";
|
|
4
4
|
import { jwtDecode } from "jwt-decode";
|
|
5
5
|
window.OIDCLog = Log;
|
|
6
6
|
const hackAuthorityKey = "oidc.hack.authority";
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Battery, BusBar, DanglingLine, Generator, Hvdc, LCC, Line, Load, ShuntCompensator, Substation, SVC, ThreeWindingTransfo, TwoWindingTransfo, VoltageLevel, VSC } from '
|
|
1
|
+
import { Battery, BusBar, DanglingLine, Generator, Hvdc, LCC, Line, Load, ShuntCompensator, Substation, SVC, ThreeWindingTransfo, TwoWindingTransfo, VoltageLevel, VSC } from './equipment-types.ts';
|
|
2
2
|
import { ElementType } from './ElementType.ts';
|
|
3
3
|
import { UUID } from 'crypto';
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridsuite/commons-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.0",
|
|
4
4
|
"description": "common react components for gridsuite applications",
|
|
5
5
|
"engines": {
|
|
6
6
|
"npm": ">=9",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"start": "vite demo/ --config vite.config.mts",
|
|
20
20
|
"start:open": "vite demo/ --config vite.config.mts --open",
|
|
21
21
|
"build": "tsc && vite build",
|
|
22
|
-
"build:
|
|
22
|
+
"build:pack": "tsc && vite build && npm pack",
|
|
23
23
|
"prepublishOnly": "npm run build",
|
|
24
24
|
"test": "jest",
|
|
25
25
|
"test:coverage": "jest --coverage",
|
|
@@ -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": "^7.2.0",
|
|
32
31
|
"@react-querybuilder/dnd": "^7.2.0",
|
|
32
|
+
"@react-querybuilder/material": "^7.2.0",
|
|
33
33
|
"autosuggest-highlight": "^3.3.4",
|
|
34
34
|
"clsx": "^2.1.0",
|
|
35
35
|
"jwt-decode": "^4.0.0",
|
|
@@ -38,11 +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-virtualized": "^9.22.5",
|
|
42
|
-
"uuid": "^9.0.1",
|
|
43
41
|
"react-dnd": "^16.0.1",
|
|
44
42
|
"react-dnd-html5-backend": "^16.0.1",
|
|
45
|
-
"react-querybuilder": "^7.2.0"
|
|
43
|
+
"react-querybuilder": "^7.2.0",
|
|
44
|
+
"react-virtualized": "^9.22.5",
|
|
45
|
+
"uuid": "^9.0.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@emotion/react": "^11.11.4",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"@types/autosuggest-highlight": "^3.2.3",
|
|
80
80
|
"@types/eslint": "^8.56.7",
|
|
81
81
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
82
|
+
"@types/json-logic-js": "^2.0.7",
|
|
82
83
|
"@types/license-checker": "^25.0.6",
|
|
83
84
|
"@types/node": "^18.19.31",
|
|
84
85
|
"@types/prop-types": "^15.7.12",
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
"ag-grid-community": "^31.0.0",
|
|
95
96
|
"ag-grid-react": "^31.2.0",
|
|
96
97
|
"babel-eslint": "^10.1.0",
|
|
98
|
+
"babel-preset-vite": "^1.1.3",
|
|
97
99
|
"bufferutil": "^4.0.8",
|
|
98
100
|
"eslint": "^8.57.0",
|
|
99
101
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -108,7 +110,6 @@
|
|
|
108
110
|
"identity-obj-proxy": "^3.0.0",
|
|
109
111
|
"jest": "^29.7.0",
|
|
110
112
|
"jest-environment-jsdom": "^29.7.0",
|
|
111
|
-
"jest-svg-transformer": "^1.0.0",
|
|
112
113
|
"license-checker": "^25.0.1",
|
|
113
114
|
"notistack": "^3.0.1",
|
|
114
115
|
"prettier": "^2.8.8",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { default as yup } from '../../../utils/yup-config';
|
|
3
|
-
|
|
4
|
-
export declare const getCriteriaBasedSchema: (extraFields: any) => {
|
|
5
|
-
criteriaBased: yup.ObjectSchema<{
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
}, yup.AnyObject, {
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
}, "">;
|
|
10
|
-
};
|
|
11
|
-
export declare const getCriteriaBasedFormData: (criteriaValues: any, extraFields: any) => {
|
|
12
|
-
criteriaBased: any;
|
|
13
|
-
};
|
|
14
|
-
type CriteriaFormField = {
|
|
15
|
-
renderer: FunctionComponent<any>;
|
|
16
|
-
props: {
|
|
17
|
-
label: string;
|
|
18
|
-
name: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
type CriteriaFormEquipment = {
|
|
22
|
-
id: string;
|
|
23
|
-
label: string;
|
|
24
|
-
fields: CriteriaFormField[];
|
|
25
|
-
};
|
|
26
|
-
export declare const CONTINGENCY_LIST_EQUIPMENTS: Record<string, CriteriaFormEquipment>;
|
|
27
|
-
export declare const FILTER_EQUIPMENTS: Record<string, CriteriaFormEquipment>;
|
|
28
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { UUID } from 'crypto';
|
|
2
|
-
|
|
3
|
-
export declare const saveExplicitNamingFilter: (tableValues: any[], isFilterCreation: boolean, equipmentType: string, name: string, description: string, id: string | null, setCreateFilterErr: (value: any) => void, handleClose: () => void, createFilter: (filter: any, name: string, description: string, activeDirectory: any) => Promise<void>, saveFilter: (filter: any, name: string) => Promise<void>, activeDirectory?: UUID) => void;
|
|
4
|
-
export declare const saveCriteriaBasedFilter: (filter: any, activeDirectory: any, onClose: () => void, onError: (message: string) => void, createFilter: (filter: any, name: string, description: string, activeDirectory: any) => Promise<void>) => void;
|
|
5
|
-
export declare const saveExpertFilter: (id: string | null, query: any, equipmentType: string, name: string, description: string, isFilterCreation: boolean, activeDirectory: any, onClose: () => void, onError: (message: string) => void, createFilter: (filter: any, name: string, description: string, activeDirectory: any) => Promise<void>, saveFilter: (filter: any, name: string) => Promise<void>) => void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import "@react-querybuilder/material";
|
|
4
|
-
import "./country-value-editor.js";
|
|
5
|
-
import "./translated-value-editor.js";
|
|
6
|
-
import "./text-value-editor.js";
|
|
7
|
-
import "@mui/material/Box";
|
|
8
|
-
import "react-hook-form";
|
|
9
|
-
import "../filter/constants/field-constants.js";
|
|
10
|
-
import "../filter/expert/expert-filter.type.js";
|
|
11
|
-
import "../filter/constants/equipment-types.js";
|
|
12
|
-
import { V } from "../../chunks/criteria-based-filter-edition-dialog.BEXoNmzz.js";
|
|
13
|
-
import "../../utils/ElementType.js";
|
|
14
|
-
import "./property-value-editor.js";
|
|
15
|
-
import "../filter/constants/filter-constants.js";
|
|
16
|
-
export {
|
|
17
|
-
V as default
|
|
18
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/boolean-input.d.ts
RENAMED
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/boolean-input.js
RENAMED
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/checkbox-input.d.ts
RENAMED
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/checkbox-input.js
RENAMED
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/switch-input.d.ts
RENAMED
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/switch-input.js
RENAMED
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/directory-items-input.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/error-input.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/float-input.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/integer-input.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/raw-read-only-input.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/cancel-button.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/submit-button.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/add-button.d.ts
RENAMED
|
File without changes
|
/package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/add-button.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-valid.d.ts
RENAMED
|
File without changes
|
/package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-valid.js
RENAMED
|
File without changes
|
/package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/value-editor.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/value-selector.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|