@itwin/grouping-mapping-widget 0.20.0 → 0.21.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/lib/cjs/components/GroupingMappingContext.js +13 -3
- package/lib/cjs/components/GroupingMappingContext.js.map +1 -1
- package/lib/cjs/components/Mappings/Extraction/ExtractionMessageModal.d.ts +1 -1
- package/lib/cjs/components/Mappings/Extraction/ExtractionMessageModal.js.map +1 -1
- package/lib/cjs/components/Mappings/Extraction/ExtractionStatusIcon.d.ts +1 -1
- package/lib/cjs/components/Mappings/Extraction/ExtractionStatusIcon.js.map +1 -1
- package/lib/cjs/components/Mappings/Mappings.js +2 -2
- package/lib/cjs/components/Mappings/Mappings.js.map +1 -1
- package/lib/cjs/components/Mappings/MappingsView.d.ts +4 -4
- package/lib/cjs/components/Mappings/MappingsView.js +4 -4
- package/lib/cjs/components/Mappings/MappingsView.js.map +1 -1
- package/lib/cjs/components/Mappings/hooks/useMappingsOperations.d.ts +3 -11
- package/lib/cjs/components/Mappings/hooks/useMappingsOperations.js +32 -25
- package/lib/cjs/components/Mappings/hooks/useMappingsOperations.js.map +1 -1
- package/lib/cjs/components/context/ExtractionStatusDataContext.d.ts +20 -0
- package/lib/cjs/components/context/ExtractionStatusDataContext.js +26 -0
- package/lib/cjs/components/context/ExtractionStatusDataContext.js.map +1 -0
- package/lib/esm/components/GroupingMappingContext.js +13 -3
- package/lib/esm/components/GroupingMappingContext.js.map +1 -1
- package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.d.ts +1 -1
- package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.js.map +1 -1
- package/lib/esm/components/Mappings/Extraction/ExtractionStatusIcon.d.ts +1 -1
- package/lib/esm/components/Mappings/Extraction/ExtractionStatusIcon.js.map +1 -1
- package/lib/esm/components/Mappings/Mappings.js +2 -2
- package/lib/esm/components/Mappings/Mappings.js.map +1 -1
- package/lib/esm/components/Mappings/MappingsView.d.ts +4 -4
- package/lib/esm/components/Mappings/MappingsView.js +4 -4
- package/lib/esm/components/Mappings/MappingsView.js.map +1 -1
- package/lib/esm/components/Mappings/hooks/useMappingsOperations.d.ts +3 -11
- package/lib/esm/components/Mappings/hooks/useMappingsOperations.js +33 -26
- package/lib/esm/components/Mappings/hooks/useMappingsOperations.js.map +1 -1
- package/lib/esm/components/context/ExtractionStatusDataContext.d.ts +20 -0
- package/lib/esm/components/context/ExtractionStatusDataContext.js +22 -0
- package/lib/esm/components/context/ExtractionStatusDataContext.js.map +1 -0
- package/package.json +29 -30
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { createContext, useContext } from "react";
|
|
6
|
+
export const ExtractionStatusDataContext = createContext({
|
|
7
|
+
extractionStatusIcon: {
|
|
8
|
+
iconStatus: undefined,
|
|
9
|
+
iconMessage: "",
|
|
10
|
+
},
|
|
11
|
+
extractionMessageData: [],
|
|
12
|
+
setExtractionStatusIcon: () => { },
|
|
13
|
+
setExtractionMessageData: () => { },
|
|
14
|
+
});
|
|
15
|
+
export const useExtractionStatusDataContext = () => {
|
|
16
|
+
const context = useContext(ExtractionStatusDataContext);
|
|
17
|
+
if (!context) {
|
|
18
|
+
throw new Error("useExtractionStatusIconContext should be used within a ExtractionStatusIconContext provider");
|
|
19
|
+
}
|
|
20
|
+
return context;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=ExtractionStatusDataContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtractionStatusDataContext.js","sourceRoot":"","sources":["../../../../src/components/context/ExtractionStatusDataContext.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAqBlD,MAAM,CAAC,MAAM,2BAA2B,GAAG,aAAa,CAA6B;IACnF,oBAAoB,EAAE;QACpB,UAAU,EAAE,SAAS;QACrB,WAAW,EAAE,EAAE;KAChB;IACD,qBAAqB,EAAE,EAAE;IACzB,uBAAuB,EAAE,GAAG,EAAE,GAAG,CAAC;IAClC,wBAAwB,EAAE,GAAG,EAAE,GAAG,CAAC;CACpC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAA+B,EAAE;IAC7E,MAAM,OAAO,GAAG,UAAU,CAAC,2BAA2B,CAAC,CAAC;IAExD,IAAG,CAAC,OAAO,EAAC;QACV,MAAM,IAAI,KAAK,CACb,6FAA6F,CAC9F,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { createContext, useContext } from \"react\";\n\nexport interface ExtractionStatusData {\n iconStatus: \"negative\" | \"positive\" | \"warning\" | undefined;\n iconMessage: string;\n}\n\nexport interface ExtractionMessageData {\n date: string;\n category: string;\n level: string;\n message: string;\n}\n\nexport interface IExtractionStatusDataProps {\n extractionStatusIcon: ExtractionStatusData;\n extractionMessageData: ExtractionMessageData[];\n setExtractionStatusIcon: (extractionStatusIcon: ExtractionStatusData | ((extractionStatusIcon: ExtractionStatusData) => ExtractionStatusData)) => void;\n setExtractionMessageData: (extractionMessageData: ExtractionMessageData[]) => void;\n}\n\nexport const ExtractionStatusDataContext = createContext<IExtractionStatusDataProps>({\n extractionStatusIcon: {\n iconStatus: undefined,\n iconMessage: \"\",\n },\n extractionMessageData: [],\n setExtractionStatusIcon: () => { },\n setExtractionMessageData: () => { },\n});\n\nexport const useExtractionStatusDataContext = (): IExtractionStatusDataProps => {\n const context = useContext(ExtractionStatusDataContext);\n\n if(!context){\n throw new Error(\n \"useExtractionStatusIconContext should be used within a ExtractionStatusIconContext provider\"\n );\n }\n return context;\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/grouping-mapping-widget",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "An iTwin.js 3D Viewer Widget that interfaces with the iTwin Reporting Platform.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Bentley",
|
|
@@ -54,28 +54,28 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@faker-js/faker": "^7.5.0",
|
|
57
|
-
"@itwin/appui-abstract": "^4.
|
|
58
|
-
"@itwin/appui-layout-react": "^4.
|
|
59
|
-
"@itwin/appui-react": "^4.
|
|
60
|
-
"@itwin/build-tools": "^4.
|
|
61
|
-
"@itwin/components-react": "^4.
|
|
62
|
-
"@itwin/core-bentley": "^4.
|
|
63
|
-
"@itwin/core-common": "^4.
|
|
64
|
-
"@itwin/core-frontend": "^4.
|
|
65
|
-
"@itwin/core-geometry": "^4.
|
|
66
|
-
"@itwin/core-i18n": "^4.
|
|
67
|
-
"@itwin/core-markup": "^4.
|
|
68
|
-
"@itwin/core-orbitgt": "^4.
|
|
69
|
-
"@itwin/core-quantity": "^4.
|
|
70
|
-
"@itwin/core-react": "^4.
|
|
71
|
-
"@itwin/core-telemetry": "^4.
|
|
72
|
-
"@itwin/ecschema-metadata": "^4.
|
|
57
|
+
"@itwin/appui-abstract": "^4.1.0",
|
|
58
|
+
"@itwin/appui-layout-react": "^4.1.0",
|
|
59
|
+
"@itwin/appui-react": "^4.1.0",
|
|
60
|
+
"@itwin/build-tools": "^4.1.0",
|
|
61
|
+
"@itwin/components-react": "^4.1.0",
|
|
62
|
+
"@itwin/core-bentley": "^4.1.0",
|
|
63
|
+
"@itwin/core-common": "^4.1.0",
|
|
64
|
+
"@itwin/core-frontend": "^4.1.0",
|
|
65
|
+
"@itwin/core-geometry": "^4.1.0",
|
|
66
|
+
"@itwin/core-i18n": "^4.1.0",
|
|
67
|
+
"@itwin/core-markup": "^4.1.0",
|
|
68
|
+
"@itwin/core-orbitgt": "^4.1.0",
|
|
69
|
+
"@itwin/core-quantity": "^4.1.0",
|
|
70
|
+
"@itwin/core-react": "^4.1.0",
|
|
71
|
+
"@itwin/core-telemetry": "^4.1.0",
|
|
72
|
+
"@itwin/ecschema-metadata": "^4.1.0",
|
|
73
73
|
"@itwin/eslint-plugin": "^3.7.7",
|
|
74
|
-
"@itwin/imodel-components-react": "^4.
|
|
75
|
-
"@itwin/presentation-common": "^4.
|
|
76
|
-
"@itwin/presentation-components": "^4.
|
|
77
|
-
"@itwin/presentation-frontend": "^4.
|
|
78
|
-
"@itwin/webgl-compatibility": "^4.
|
|
74
|
+
"@itwin/imodel-components-react": "^4.1.0",
|
|
75
|
+
"@itwin/presentation-common": "^4.1.0",
|
|
76
|
+
"@itwin/presentation-components": "^4.1.0",
|
|
77
|
+
"@itwin/presentation-frontend": "^4.1.0",
|
|
78
|
+
"@itwin/webgl-compatibility": "^4.1.0",
|
|
79
79
|
"@testing-library/dom": "^8.12.0",
|
|
80
80
|
"@testing-library/jest-dom": "^5.16.3",
|
|
81
81
|
"@testing-library/react": "^12.1.4",
|
|
@@ -101,7 +101,6 @@
|
|
|
101
101
|
"jest": "^27.5.1",
|
|
102
102
|
"jest-cli": "^27.5.1",
|
|
103
103
|
"jest-transform-stub": "^2.0.0",
|
|
104
|
-
"msw": "^0.39.2",
|
|
105
104
|
"react": "^17.0.2",
|
|
106
105
|
"react-dom": "^17.0.2",
|
|
107
106
|
"react-redux": "^7.2.0",
|
|
@@ -114,13 +113,13 @@
|
|
|
114
113
|
"typescript": "~4.5.0"
|
|
115
114
|
},
|
|
116
115
|
"peerDependencies": {
|
|
117
|
-
"@itwin/appui-abstract": "^4.
|
|
118
|
-
"@itwin/appui-react": "^4.
|
|
119
|
-
"@itwin/components-react": "^4.
|
|
120
|
-
"@itwin/core-frontend": "^4.
|
|
121
|
-
"@itwin/core-react": "^4.
|
|
122
|
-
"@itwin/presentation-components": "^4.
|
|
123
|
-
"@itwin/presentation-frontend": "^4.
|
|
116
|
+
"@itwin/appui-abstract": "^4.1.0",
|
|
117
|
+
"@itwin/appui-react": "^4.1.0",
|
|
118
|
+
"@itwin/components-react": "^4.1.0",
|
|
119
|
+
"@itwin/core-frontend": "^4.1.0",
|
|
120
|
+
"@itwin/core-react": "^4.1.0",
|
|
121
|
+
"@itwin/presentation-components": "^4.1.0",
|
|
122
|
+
"@itwin/presentation-frontend": "^4.1.0",
|
|
124
123
|
"react": "^17.0.2",
|
|
125
124
|
"react-dom": "^17.0.2",
|
|
126
125
|
"react-redux": "^7.2.0"
|