@itwin/reports-config-widget-react 0.5.0 → 0.7.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/CHANGELOG.json +76 -1
- package/CHANGELOG.md +27 -2
- package/LICENSE.md +9 -9
- package/README.md +38 -38
- package/__mocks__/fileMock.js +4 -4
- package/api/reports-config-widget-react.api.md +126 -0
- package/api/reports-config-widget-react.exports.csv +14 -0
- package/api/temp/reports-config-widget-react.api.md +126 -0
- package/coverage/clover.xml +521 -521
- package/coverage/coverage-final.json +32 -32
- package/coverage/lcov-report/index.html +31 -31
- package/coverage/lcov-report/src/ReportsConfigWidget.ts.html +15 -15
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/test/index.html +11 -11
- package/coverage/lcov-report/src/test/test-utils.tsx.html +46 -16
- package/coverage/lcov-report/src/widget/ReportsConfigUiProvider.tsx.html +29 -86
- package/coverage/lcov-report/src/widget/components/ActionPanel.tsx.html +5 -38
- package/coverage/lcov-report/src/widget/components/AddMappingsModal.tsx.html +25 -121
- package/coverage/lcov-report/src/widget/components/BulkExtractor.ts.html +120 -96
- package/coverage/lcov-report/src/widget/components/Constants.ts.html +5 -5
- package/coverage/lcov-report/src/widget/components/DeleteModal.tsx.html +13 -103
- package/coverage/lcov-report/src/widget/components/ExtractionStates/FailedExtractionState.tsx.html +6 -21
- package/coverage/lcov-report/src/widget/components/ExtractionStates/QueuedExtractionState.tsx.html +6 -21
- package/coverage/lcov-report/src/widget/components/ExtractionStates/RunningExtractionState.tsx.html +7 -22
- package/coverage/lcov-report/src/widget/components/ExtractionStates/StartingExtractionState.tsx.html +7 -28
- package/coverage/lcov-report/src/widget/components/ExtractionStates/SucceededExtractionState.tsx.html +6 -21
- package/coverage/lcov-report/src/widget/components/ExtractionStates/index.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStatus.tsx.html +20 -47
- package/coverage/lcov-report/src/widget/components/ExtractionToast.tsx.html +20 -11
- package/coverage/lcov-report/src/widget/components/HorizontalTile.tsx.html +16 -79
- package/coverage/lcov-report/src/widget/components/LocalizedTablePaginator.tsx.html +15 -108
- package/coverage/lcov-report/src/widget/components/ReportAction.tsx.html +36 -75
- package/coverage/lcov-report/src/widget/components/ReportHorizontalTile.tsx.html +62 -92
- package/coverage/lcov-report/src/widget/components/ReportMappingHorizontalTile.tsx.html +104 -128
- package/coverage/lcov-report/src/widget/components/ReportMappings.tsx.html +88 -301
- package/coverage/lcov-report/src/widget/components/Reports.tsx.html +42 -204
- package/coverage/lcov-report/src/widget/components/ReportsConfigContext.tsx.html +164 -50
- package/coverage/lcov-report/src/widget/components/ReportsContainer.tsx.html +15 -63
- package/coverage/lcov-report/src/widget/components/ReportsHeader.tsx.html +8 -47
- package/coverage/lcov-report/src/widget/components/ReportsRouter.tsx.html +6 -12
- package/coverage/lcov-report/src/widget/components/SearchBar.tsx.html +13 -25
- package/coverage/lcov-report/src/widget/components/SelectIModel.tsx.html +11 -56
- package/coverage/lcov-report/src/widget/components/index.html +50 -50
- package/coverage/lcov-report/src/widget/components/utils.tsx.html +25 -169
- package/coverage/lcov-report/src/widget/context/BulkExtractorContext.tsx.html +6 -12
- package/coverage/lcov-report/src/widget/context/ReportsConfigApiContext.tsx.html +10 -13
- package/coverage/lcov-report/src/widget/context/index.html +1 -1
- package/coverage/lcov-report/src/widget/hooks/index.html +1 -1
- package/coverage/lcov-report/src/widget/hooks/useValidator.ts.html +12 -54
- package/coverage/lcov-report/src/widget/index.html +13 -13
- package/coverage/lcov.info +941 -919
- package/jest.config.js +14 -17
- package/lib/cjs/ReportsConfigWidget.d.ts +4 -0
- package/lib/cjs/ReportsConfigWidget.d.ts.map +1 -1
- package/lib/cjs/ReportsConfigWidget.js +4 -0
- package/lib/cjs/ReportsConfigWidget.js.map +1 -1
- package/lib/cjs/reports-config-widget-react.d.ts +1 -0
- package/lib/cjs/reports-config-widget-react.d.ts.map +1 -1
- package/lib/cjs/reports-config-widget-react.js +4 -3
- package/lib/cjs/reports-config-widget-react.js.map +1 -1
- package/lib/cjs/test/AddMappingModal.test.js +11 -10
- package/lib/cjs/test/AddMappingModal.test.js.map +1 -1
- package/lib/cjs/test/BulkExtractor.test.js +68 -43
- package/lib/cjs/test/BulkExtractor.test.js.map +1 -1
- package/lib/cjs/test/DeleteModal.test.js +3 -3
- package/lib/cjs/test/DeleteModal.test.js.map +1 -1
- package/lib/cjs/test/ReportAction.test.js +6 -4
- package/lib/cjs/test/ReportAction.test.js.map +1 -1
- package/lib/cjs/test/ReportMappingHorizontalTile.test.js +64 -25
- package/lib/cjs/test/ReportMappingHorizontalTile.test.js.map +1 -1
- package/lib/cjs/test/ReportMappings.test.js +39 -18
- package/lib/cjs/test/ReportMappings.test.js.map +1 -1
- package/lib/cjs/test/Reports.test.js +3 -3
- package/lib/cjs/test/Reports.test.js.map +1 -1
- package/lib/cjs/test/WidgetHeader.test.js +3 -3
- package/lib/cjs/test/WidgetHeader.test.js.map +1 -1
- package/lib/cjs/test/test-utils.d.ts +8 -0
- package/lib/cjs/test/test-utils.d.ts.map +1 -1
- package/lib/cjs/test/test-utils.js +16 -4
- package/lib/cjs/test/test-utils.js.map +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/widget/ReportsConfigUiProvider.d.ts +10 -4
- package/lib/cjs/widget/ReportsConfigUiProvider.d.ts.map +1 -1
- package/lib/cjs/widget/ReportsConfigUiProvider.js +11 -7
- package/lib/cjs/widget/ReportsConfigUiProvider.js.map +1 -1
- package/lib/cjs/widget/components/ActionPanel.d.ts.map +1 -1
- package/lib/cjs/widget/components/ActionPanel.js.map +1 -1
- package/lib/cjs/widget/components/AddMappingsModal.d.ts +1 -1
- package/lib/cjs/widget/components/AddMappingsModal.d.ts.map +1 -1
- package/lib/cjs/widget/components/AddMappingsModal.js +7 -7
- package/lib/cjs/widget/components/AddMappingsModal.js.map +1 -1
- package/lib/cjs/widget/components/AddMappingsModal.scss +1 -1
- package/lib/cjs/widget/components/BulkExtractor.d.ts +8 -5
- package/lib/cjs/widget/components/BulkExtractor.d.ts.map +1 -1
- package/lib/cjs/widget/components/BulkExtractor.js +52 -35
- package/lib/cjs/widget/components/BulkExtractor.js.map +1 -1
- package/lib/cjs/widget/components/Constants.d.ts.map +1 -1
- package/lib/cjs/widget/components/Constants.js +3 -3
- package/lib/cjs/widget/components/Constants.js.map +1 -1
- package/lib/cjs/widget/components/DeleteModal.d.ts +1 -1
- package/lib/cjs/widget/components/DeleteModal.d.ts.map +1 -1
- package/lib/cjs/widget/components/DeleteModal.js +5 -5
- package/lib/cjs/widget/components/DeleteModal.js.map +1 -1
- package/lib/cjs/widget/components/DeleteModal.scss +2 -2
- package/lib/cjs/widget/components/ExtractionStates/FailedExtractionState.d.ts.map +1 -1
- package/lib/cjs/widget/components/ExtractionStates/FailedExtractionState.js +3 -3
- package/lib/cjs/widget/components/ExtractionStates/FailedExtractionState.js.map +1 -1
- package/lib/cjs/widget/components/ExtractionStates/QueuedExtractionState.d.ts.map +1 -1
- package/lib/cjs/widget/components/ExtractionStates/QueuedExtractionState.js +3 -3
- package/lib/cjs/widget/components/ExtractionStates/QueuedExtractionState.js.map +1 -1
- package/lib/cjs/widget/components/ExtractionStates/RunningExtractionState.d.ts.map +1 -1
- package/lib/cjs/widget/components/ExtractionStates/RunningExtractionState.js +3 -3
- package/lib/cjs/widget/components/ExtractionStates/RunningExtractionState.js.map +1 -1
- package/lib/cjs/widget/components/ExtractionStates/StartingExtractionState.d.ts.map +1 -1
- package/lib/cjs/widget/components/ExtractionStates/StartingExtractionState.js +3 -3
- package/lib/cjs/widget/components/ExtractionStates/StartingExtractionState.js.map +1 -1
- package/lib/cjs/widget/components/ExtractionStates/SucceededExtractionState.d.ts.map +1 -1
- package/lib/cjs/widget/components/ExtractionStates/SucceededExtractionState.js +3 -3
- package/lib/cjs/widget/components/ExtractionStates/SucceededExtractionState.js.map +1 -1
- package/lib/cjs/widget/components/ExtractionStatus.d.ts +1 -1
- package/lib/cjs/widget/components/ExtractionStatus.d.ts.map +1 -1
- package/lib/cjs/widget/components/ExtractionStatus.js +9 -9
- package/lib/cjs/widget/components/ExtractionStatus.js.map +1 -1
- package/lib/cjs/widget/components/ExtractionStatus.scss +1 -1
- package/lib/cjs/widget/components/ExtractionToast.d.ts.map +1 -1
- package/lib/cjs/widget/components/ExtractionToast.js +3 -3
- package/lib/cjs/widget/components/ExtractionToast.js.map +1 -1
- package/lib/cjs/widget/components/HorizontalTile.d.ts.map +1 -1
- package/lib/cjs/widget/components/HorizontalTile.js +1 -2
- package/lib/cjs/widget/components/HorizontalTile.js.map +1 -1
- package/lib/cjs/widget/components/HorizontalTile.scss +1 -4
- package/lib/cjs/widget/components/LocalizedTablePaginator.d.ts.map +1 -1
- package/lib/cjs/widget/components/LocalizedTablePaginator.js +1 -1
- package/lib/cjs/widget/components/LocalizedTablePaginator.js.map +1 -1
- package/lib/cjs/widget/components/ReportAction.d.ts +8 -0
- package/lib/cjs/widget/components/ReportAction.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportAction.js +9 -7
- package/lib/cjs/widget/components/ReportAction.js.map +1 -1
- package/lib/cjs/widget/components/ReportAction.scss +1 -1
- package/lib/cjs/widget/components/ReportHorizontalTile.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportHorizontalTile.js +4 -4
- package/lib/cjs/widget/components/ReportHorizontalTile.js.map +1 -1
- package/lib/cjs/widget/components/ReportMappingHorizontalTile.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportMappingHorizontalTile.js +46 -45
- package/lib/cjs/widget/components/ReportMappingHorizontalTile.js.map +1 -1
- package/lib/cjs/widget/components/ReportMappings.d.ts +8 -0
- package/lib/cjs/widget/components/ReportMappings.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportMappings.js +25 -11
- package/lib/cjs/widget/components/ReportMappings.js.map +1 -1
- package/lib/cjs/widget/components/Reports.d.ts +9 -1
- package/lib/cjs/widget/components/Reports.d.ts.map +1 -1
- package/lib/cjs/widget/components/Reports.js +7 -8
- package/lib/cjs/widget/components/Reports.js.map +1 -1
- package/lib/cjs/widget/components/Reports.scss +0 -1
- package/lib/cjs/widget/components/ReportsConfigContext.d.ts +34 -4
- package/lib/cjs/widget/components/ReportsConfigContext.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportsConfigContext.js +27 -9
- package/lib/cjs/widget/components/ReportsConfigContext.js.map +1 -1
- package/lib/cjs/widget/components/ReportsContainer.d.ts +3 -6
- package/lib/cjs/widget/components/ReportsContainer.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportsContainer.js +7 -5
- package/lib/cjs/widget/components/ReportsContainer.js.map +1 -1
- package/lib/cjs/widget/components/ReportsContainer.scss +1 -1
- package/lib/cjs/widget/components/ReportsHeader.d.ts +1 -1
- package/lib/cjs/widget/components/ReportsHeader.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportsHeader.js +6 -7
- package/lib/cjs/widget/components/ReportsHeader.js.map +1 -1
- package/lib/cjs/widget/components/ReportsRouter.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportsRouter.js +3 -3
- package/lib/cjs/widget/components/ReportsRouter.js.map +1 -1
- package/lib/cjs/widget/components/SearchBar.d.ts +1 -1
- package/lib/cjs/widget/components/SearchBar.d.ts.map +1 -1
- package/lib/cjs/widget/components/SearchBar.js +4 -4
- package/lib/cjs/widget/components/SearchBar.js.map +1 -1
- package/lib/cjs/widget/components/SelectIModel.d.ts +1 -1
- package/lib/cjs/widget/components/SelectIModel.d.ts.map +1 -1
- package/lib/cjs/widget/components/SelectIModel.js +1 -1
- package/lib/cjs/widget/components/SelectIModel.js.map +1 -1
- package/lib/cjs/widget/components/SelectIModel.scss +1 -1
- package/lib/cjs/widget/components/utils.d.ts +1 -1
- package/lib/cjs/widget/components/utils.d.ts.map +1 -1
- package/lib/cjs/widget/components/utils.js +5 -5
- package/lib/cjs/widget/components/utils.js.map +1 -1
- package/lib/cjs/widget/components/utils.scss +1 -1
- package/lib/cjs/widget/context/BulkExtractorContext.d.ts.map +1 -1
- package/lib/cjs/widget/context/BulkExtractorContext.js.map +1 -1
- package/lib/cjs/widget/context/ReportsConfigApiContext.d.ts +3 -3
- package/lib/cjs/widget/context/ReportsConfigApiContext.d.ts.map +1 -1
- package/lib/cjs/widget/context/ReportsConfigApiContext.js.map +1 -1
- package/lib/cjs/widget/hooks/useValidator.d.ts +1 -4
- package/lib/cjs/widget/hooks/useValidator.d.ts.map +1 -1
- package/lib/cjs/widget/hooks/useValidator.js +3 -3
- package/lib/cjs/widget/hooks/useValidator.js.map +1 -1
- package/lib/esm/ReportsConfigWidget.d.ts +4 -0
- package/lib/esm/ReportsConfigWidget.d.ts.map +1 -1
- package/lib/esm/ReportsConfigWidget.js +4 -0
- package/lib/esm/ReportsConfigWidget.js.map +1 -1
- package/lib/esm/reports-config-widget-react.d.ts +1 -0
- package/lib/esm/reports-config-widget-react.d.ts.map +1 -1
- package/lib/esm/reports-config-widget-react.js +4 -3
- package/lib/esm/reports-config-widget-react.js.map +1 -1
- package/lib/esm/test/AddMappingModal.test.js +12 -11
- package/lib/esm/test/AddMappingModal.test.js.map +1 -1
- package/lib/esm/test/BulkExtractor.test.js +69 -44
- package/lib/esm/test/BulkExtractor.test.js.map +1 -1
- package/lib/esm/test/DeleteModal.test.js +4 -4
- package/lib/esm/test/DeleteModal.test.js.map +1 -1
- package/lib/esm/test/ReportAction.test.js +7 -5
- package/lib/esm/test/ReportAction.test.js.map +1 -1
- package/lib/esm/test/ReportMappingHorizontalTile.test.js +65 -26
- package/lib/esm/test/ReportMappingHorizontalTile.test.js.map +1 -1
- package/lib/esm/test/ReportMappings.test.js +41 -20
- package/lib/esm/test/ReportMappings.test.js.map +1 -1
- package/lib/esm/test/Reports.test.js +4 -4
- package/lib/esm/test/Reports.test.js.map +1 -1
- package/lib/esm/test/WidgetHeader.test.js +3 -3
- package/lib/esm/test/WidgetHeader.test.js.map +1 -1
- package/lib/esm/test/test-utils.d.ts +8 -0
- package/lib/esm/test/test-utils.d.ts.map +1 -1
- package/lib/esm/test/test-utils.js +15 -3
- package/lib/esm/test/test-utils.js.map +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/widget/ReportsConfigUiProvider.d.ts +10 -4
- package/lib/esm/widget/ReportsConfigUiProvider.d.ts.map +1 -1
- package/lib/esm/widget/ReportsConfigUiProvider.js +12 -8
- package/lib/esm/widget/ReportsConfigUiProvider.js.map +1 -1
- package/lib/esm/widget/components/ActionPanel.d.ts.map +1 -1
- package/lib/esm/widget/components/ActionPanel.js.map +1 -1
- package/lib/esm/widget/components/AddMappingsModal.d.ts +1 -1
- package/lib/esm/widget/components/AddMappingsModal.d.ts.map +1 -1
- package/lib/esm/widget/components/AddMappingsModal.js +7 -7
- package/lib/esm/widget/components/AddMappingsModal.js.map +1 -1
- package/lib/esm/widget/components/AddMappingsModal.scss +1 -1
- package/lib/esm/widget/components/BulkExtractor.d.ts +8 -5
- package/lib/esm/widget/components/BulkExtractor.d.ts.map +1 -1
- package/lib/esm/widget/components/BulkExtractor.js +53 -36
- package/lib/esm/widget/components/BulkExtractor.js.map +1 -1
- package/lib/esm/widget/components/Constants.d.ts.map +1 -1
- package/lib/esm/widget/components/Constants.js +3 -3
- package/lib/esm/widget/components/Constants.js.map +1 -1
- package/lib/esm/widget/components/DeleteModal.d.ts +1 -1
- package/lib/esm/widget/components/DeleteModal.d.ts.map +1 -1
- package/lib/esm/widget/components/DeleteModal.js +6 -6
- package/lib/esm/widget/components/DeleteModal.js.map +1 -1
- package/lib/esm/widget/components/DeleteModal.scss +2 -2
- package/lib/esm/widget/components/ExtractionStates/FailedExtractionState.d.ts.map +1 -1
- package/lib/esm/widget/components/ExtractionStates/FailedExtractionState.js +3 -3
- package/lib/esm/widget/components/ExtractionStates/FailedExtractionState.js.map +1 -1
- package/lib/esm/widget/components/ExtractionStates/QueuedExtractionState.d.ts.map +1 -1
- package/lib/esm/widget/components/ExtractionStates/QueuedExtractionState.js +3 -3
- package/lib/esm/widget/components/ExtractionStates/QueuedExtractionState.js.map +1 -1
- package/lib/esm/widget/components/ExtractionStates/RunningExtractionState.d.ts.map +1 -1
- package/lib/esm/widget/components/ExtractionStates/RunningExtractionState.js +3 -3
- package/lib/esm/widget/components/ExtractionStates/RunningExtractionState.js.map +1 -1
- package/lib/esm/widget/components/ExtractionStates/StartingExtractionState.d.ts.map +1 -1
- package/lib/esm/widget/components/ExtractionStates/StartingExtractionState.js +3 -3
- package/lib/esm/widget/components/ExtractionStates/StartingExtractionState.js.map +1 -1
- package/lib/esm/widget/components/ExtractionStates/SucceededExtractionState.d.ts.map +1 -1
- package/lib/esm/widget/components/ExtractionStates/SucceededExtractionState.js +3 -3
- package/lib/esm/widget/components/ExtractionStates/SucceededExtractionState.js.map +1 -1
- package/lib/esm/widget/components/ExtractionStatus.d.ts +1 -1
- package/lib/esm/widget/components/ExtractionStatus.d.ts.map +1 -1
- package/lib/esm/widget/components/ExtractionStatus.js +9 -9
- package/lib/esm/widget/components/ExtractionStatus.js.map +1 -1
- package/lib/esm/widget/components/ExtractionStatus.scss +1 -1
- package/lib/esm/widget/components/ExtractionToast.d.ts.map +1 -1
- package/lib/esm/widget/components/ExtractionToast.js +3 -3
- package/lib/esm/widget/components/ExtractionToast.js.map +1 -1
- package/lib/esm/widget/components/HorizontalTile.d.ts.map +1 -1
- package/lib/esm/widget/components/HorizontalTile.js +1 -2
- package/lib/esm/widget/components/HorizontalTile.js.map +1 -1
- package/lib/esm/widget/components/HorizontalTile.scss +1 -4
- package/lib/esm/widget/components/LocalizedTablePaginator.d.ts.map +1 -1
- package/lib/esm/widget/components/LocalizedTablePaginator.js +1 -1
- package/lib/esm/widget/components/LocalizedTablePaginator.js.map +1 -1
- package/lib/esm/widget/components/ReportAction.d.ts +8 -0
- package/lib/esm/widget/components/ReportAction.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportAction.js +10 -8
- package/lib/esm/widget/components/ReportAction.js.map +1 -1
- package/lib/esm/widget/components/ReportAction.scss +1 -1
- package/lib/esm/widget/components/ReportHorizontalTile.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportHorizontalTile.js +6 -6
- package/lib/esm/widget/components/ReportHorizontalTile.js.map +1 -1
- package/lib/esm/widget/components/ReportMappingHorizontalTile.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportMappingHorizontalTile.js +47 -46
- package/lib/esm/widget/components/ReportMappingHorizontalTile.js.map +1 -1
- package/lib/esm/widget/components/ReportMappings.d.ts +8 -0
- package/lib/esm/widget/components/ReportMappings.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportMappings.js +28 -14
- package/lib/esm/widget/components/ReportMappings.js.map +1 -1
- package/lib/esm/widget/components/Reports.d.ts +9 -1
- package/lib/esm/widget/components/Reports.d.ts.map +1 -1
- package/lib/esm/widget/components/Reports.js +8 -9
- package/lib/esm/widget/components/Reports.js.map +1 -1
- package/lib/esm/widget/components/Reports.scss +0 -1
- package/lib/esm/widget/components/ReportsConfigContext.d.ts +34 -4
- package/lib/esm/widget/components/ReportsConfigContext.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportsConfigContext.js +28 -10
- package/lib/esm/widget/components/ReportsConfigContext.js.map +1 -1
- package/lib/esm/widget/components/ReportsContainer.d.ts +3 -6
- package/lib/esm/widget/components/ReportsContainer.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportsContainer.js +7 -5
- package/lib/esm/widget/components/ReportsContainer.js.map +1 -1
- package/lib/esm/widget/components/ReportsContainer.scss +1 -1
- package/lib/esm/widget/components/ReportsHeader.d.ts +1 -1
- package/lib/esm/widget/components/ReportsHeader.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportsHeader.js +6 -7
- package/lib/esm/widget/components/ReportsHeader.js.map +1 -1
- package/lib/esm/widget/components/ReportsRouter.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportsRouter.js +3 -3
- package/lib/esm/widget/components/ReportsRouter.js.map +1 -1
- package/lib/esm/widget/components/SearchBar.d.ts +1 -1
- package/lib/esm/widget/components/SearchBar.d.ts.map +1 -1
- package/lib/esm/widget/components/SearchBar.js +4 -4
- package/lib/esm/widget/components/SearchBar.js.map +1 -1
- package/lib/esm/widget/components/SelectIModel.d.ts +1 -1
- package/lib/esm/widget/components/SelectIModel.d.ts.map +1 -1
- package/lib/esm/widget/components/SelectIModel.js +2 -2
- package/lib/esm/widget/components/SelectIModel.js.map +1 -1
- package/lib/esm/widget/components/SelectIModel.scss +1 -1
- package/lib/esm/widget/components/utils.d.ts +1 -1
- package/lib/esm/widget/components/utils.d.ts.map +1 -1
- package/lib/esm/widget/components/utils.js +6 -6
- package/lib/esm/widget/components/utils.js.map +1 -1
- package/lib/esm/widget/components/utils.scss +1 -1
- package/lib/esm/widget/context/BulkExtractorContext.d.ts.map +1 -1
- package/lib/esm/widget/context/BulkExtractorContext.js.map +1 -1
- package/lib/esm/widget/context/ReportsConfigApiContext.d.ts +3 -3
- package/lib/esm/widget/context/ReportsConfigApiContext.d.ts.map +1 -1
- package/lib/esm/widget/context/ReportsConfigApiContext.js.map +1 -1
- package/lib/esm/widget/hooks/useValidator.d.ts +1 -4
- package/lib/esm/widget/hooks/useValidator.d.ts.map +1 -1
- package/lib/esm/widget/hooks/useValidator.js +3 -3
- package/lib/esm/widget/hooks/useValidator.js.map +1 -1
- package/package.json +9 -4
- package/src/ReportsConfigWidget.ts +9 -9
- package/src/reports-config-widget-react.ts +4 -3
- package/src/test/AddMappingModal.test.tsx +45 -70
- package/src/test/BulkExtractor.test.ts +73 -118
- package/src/test/DeleteModal.test.tsx +6 -23
- package/src/test/ReportAction.test.tsx +20 -38
- package/src/test/ReportMappingHorizontalTile.test.tsx +137 -106
- package/src/test/ReportMappings.test.tsx +73 -88
- package/src/test/Reports.test.tsx +30 -64
- package/src/test/WidgetHeader.test.tsx +3 -3
- package/src/test/test-utils.tsx +18 -8
- package/src/widget/ReportsConfigUiProvider.tsx +18 -37
- package/src/widget/components/ActionPanel.tsx +3 -14
- package/src/widget/components/AddMappingsModal.scss +1 -1
- package/src/widget/components/AddMappingsModal.tsx +21 -53
- package/src/widget/components/BulkExtractor.ts +67 -59
- package/src/widget/components/Constants.ts +4 -4
- package/src/widget/components/DeleteModal.scss +2 -2
- package/src/widget/components/DeleteModal.tsx +11 -41
- package/src/widget/components/ExtractionStates/FailedExtractionState.tsx +4 -9
- package/src/widget/components/ExtractionStates/QueuedExtractionState.tsx +4 -9
- package/src/widget/components/ExtractionStates/RunningExtractionState.tsx +4 -9
- package/src/widget/components/ExtractionStates/StartingExtractionState.tsx +4 -11
- package/src/widget/components/ExtractionStates/SucceededExtractionState.tsx +4 -9
- package/src/widget/components/ExtractionStatus.scss +1 -1
- package/src/widget/components/ExtractionStatus.tsx +9 -18
- package/src/widget/components/ExtractionToast.tsx +12 -9
- package/src/widget/components/HorizontalTile.scss +1 -4
- package/src/widget/components/HorizontalTile.tsx +12 -33
- package/src/widget/components/LocalizedTablePaginator.tsx +13 -44
- package/src/widget/components/ReportAction.scss +1 -1
- package/src/widget/components/ReportAction.tsx +26 -39
- package/src/widget/components/ReportHorizontalTile.tsx +45 -55
- package/src/widget/components/ReportMappingHorizontalTile.tsx +70 -78
- package/src/widget/components/ReportMappings.tsx +61 -132
- package/src/widget/components/Reports.scss +0 -1
- package/src/widget/components/Reports.tsx +30 -84
- package/src/widget/components/ReportsConfigContext.tsx +70 -32
- package/src/widget/components/ReportsContainer.scss +1 -1
- package/src/widget/components/ReportsContainer.tsx +12 -28
- package/src/widget/components/ReportsHeader.tsx +6 -19
- package/src/widget/components/ReportsRouter.tsx +4 -6
- package/src/widget/components/SearchBar.tsx +9 -13
- package/src/widget/components/SelectIModel.scss +1 -1
- package/src/widget/components/SelectIModel.tsx +9 -24
- package/src/widget/components/utils.scss +1 -1
- package/src/widget/components/utils.tsx +21 -69
- package/src/widget/context/BulkExtractorContext.tsx +4 -6
- package/src/widget/context/ReportsConfigApiContext.tsx +7 -8
- package/src/widget/hooks/useValidator.ts +10 -24
- package/tsconfig.json +11 -11
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,82 @@
|
|
|
2
2
|
"name": "@itwin/reports-config-widget-react",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Tue, 11 Jun 2024 15:52:04 GMT",
|
|
6
|
+
"version": "0.7.0",
|
|
7
|
+
"tag": "@itwin/reports-config-widget-react_v0.7.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "Guillar1@users.noreply.github.com",
|
|
12
|
+
"package": "@itwin/reports-config-widget-react",
|
|
13
|
+
"commit": "3da5297647e428425165200c5596f7a760925961",
|
|
14
|
+
"comment": "Fixed an issue where custom base URL's were not being used."
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"minor": [
|
|
18
|
+
{
|
|
19
|
+
"author": "Guillar1@users.noreply.github.com",
|
|
20
|
+
"package": "@itwin/reports-config-widget-react",
|
|
21
|
+
"commit": "3da5297647e428425165200c5596f7a760925961",
|
|
22
|
+
"comment": "UIProvider props has been changed to extend from ReportsConfigContext."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"author": "Guillar1@users.noreply.github.com",
|
|
26
|
+
"package": "@itwin/reports-config-widget-react",
|
|
27
|
+
"commit": "3da5297647e428425165200c5596f7a760925961",
|
|
28
|
+
"comment": "Changed client prop types to use corresponding interfaces."
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"date": "Mon, 10 Jun 2024 17:40:38 GMT",
|
|
35
|
+
"version": "0.6.0",
|
|
36
|
+
"tag": "@itwin/reports-config-widget-react_v0.6.0",
|
|
37
|
+
"comments": {
|
|
38
|
+
"patch": [
|
|
39
|
+
{
|
|
40
|
+
"author": "Guillar1@users.noreply.github.com",
|
|
41
|
+
"package": "@itwin/reports-config-widget-react",
|
|
42
|
+
"commit": "5afd6004849184a8a417df306e956af6d5eca51b",
|
|
43
|
+
"comment": "Fixed an issue that caused the extraction state for the mappings in the ReportMappings component to keep appearing after every rerender while in a final state."
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"none": [
|
|
47
|
+
{
|
|
48
|
+
"author": "hansraj.koravenciah@bentley.com",
|
|
49
|
+
"package": "@itwin/reports-config-widget-react",
|
|
50
|
+
"commit": "36c49a556b4c99a4203d243fcb44581ec80ee9fb",
|
|
51
|
+
"comment": "Ran prettier on ec3, lca, reportconfig and reportmapping widgets"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"minor": [
|
|
55
|
+
{
|
|
56
|
+
"author": "hansraj.koravenciah@bentley.com",
|
|
57
|
+
"package": "@itwin/reports-config-widget-react",
|
|
58
|
+
"commit": "fb68ffda26c43a99920e14d53d4d0a70c9a79c38",
|
|
59
|
+
"comment": "Upgraded insights-client version to 0.10.1, fixed functions using old dependencies"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"date": "Tue, 21 May 2024 13:26:36 GMT",
|
|
66
|
+
"version": "0.5.0",
|
|
67
|
+
"tag": "@itwin/reports-config-widget-react_v0.5.0",
|
|
68
|
+
"comments": {
|
|
69
|
+
"none": [
|
|
70
|
+
{
|
|
71
|
+
"author": "Guillar1@users.noreply.github.com",
|
|
72
|
+
"package": "@itwin/reports-config-widget-react",
|
|
73
|
+
"commit": "60fe54a19b5a2d8354163b137da975cd27be8489",
|
|
74
|
+
"comment": ""
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"date": "Mon, 29 Jan 2024 21:37:20 GMT",
|
|
6
81
|
"version": "0.5.0",
|
|
7
82
|
"tag": "@itwin/reports-config-widget-react_v0.5.0",
|
|
8
83
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
# Change Log - @itwin/reports-config-widget-react
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 11 Jun 2024 15:52:04 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.7.0
|
|
8
|
+
|
|
9
|
+
Tue, 11 Jun 2024 15:52:04 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- UIProvider props has been changed to extend from ReportsConfigContext. ([#897](https://github.com/iTwin/viewer-components-react/pull/897))
|
|
14
|
+
- Changed client prop types to use corresponding interfaces. ([#897](https://github.com/iTwin/viewer-components-react/pull/897))
|
|
15
|
+
|
|
16
|
+
### Patches
|
|
17
|
+
|
|
18
|
+
- Fixed an issue where custom base URL's were not being used. ([#897](https://github.com/iTwin/viewer-components-react/pull/897))
|
|
19
|
+
|
|
20
|
+
## 0.6.0
|
|
21
|
+
|
|
22
|
+
Mon, 10 Jun 2024 17:40:38 GMT
|
|
23
|
+
|
|
24
|
+
### Minor changes
|
|
25
|
+
|
|
26
|
+
- Upgraded insights-client version to 0.10.1, fixed functions using old dependencies ([#841](https://github.com/iTwin/viewer-components-react/pull/841))
|
|
27
|
+
|
|
28
|
+
### Patches
|
|
29
|
+
|
|
30
|
+
- Fixed an issue that caused the extraction state for the mappings in the ReportMappings component to keep appearing after every rerender while in a final state. ([#866](https://github.com/iTwin/viewer-components-react/pull/866))
|
|
31
|
+
|
|
7
32
|
## 0.5.0
|
|
8
33
|
|
|
9
|
-
Mon, 29 Jan 2024 21:
|
|
34
|
+
Mon, 29 Jan 2024 21:37:20 GMT
|
|
10
35
|
|
|
11
36
|
### Minor changes
|
|
12
37
|
|
package/LICENSE.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# MIT License
|
|
2
|
-
|
|
3
|
-
Copyright © 2022 Bentley Systems, Inc. All rights reserved.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright © 2022 Bentley Systems, Inc. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
# @itwin/reports-config-widget-react
|
|
2
|
-
|
|
3
|
-
Copyright © Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
The Reports Config widget is a UI component for iTwin Viewer applications that simplifies how users (and developers) interface with the [Reporting Platform APIs](https://developer.bentley.com/apis/insights/overview/). This widget is one piece of the Reporting story that focuses on the configuration of Reports and the extraction thereof. It complements the [Grouping & Mapping Widget](https://www.npmjs.com/package/@itwin/grouping-mapping-widget).
|
|
5
|
-
The reports-config-widget-react package provides a UiProvider class - `ReportsConfigProvider` - which can be passed into the `uiProviders` prop of the iTwin Viewer's `<Viewer />` component.
|
|
6
|
-
|
|
7
|
-
## Getting Started
|
|
8
|
-
|
|
9
|
-
This is not a standalone UI and requires a parent iTwin Viewer application to work as intended.
|
|
10
|
-
A guide on how to create a basic iTwin Viewer application can be found here: <https://www.itwinjs.org/learning/tutorials/develop-web-viewer/>.
|
|
11
|
-
This package provides a viewer 'widget'. Documentation on how to add a widget to your application can be found here: <https://developer.bentley.com/tutorials/itwin-viewer-hello-world/#2-your-first-ui-widget>.
|
|
12
|
-
|
|
13
|
-
## Permissions and Scopes
|
|
14
|
-
|
|
15
|
-
The SPA client used by your iTwin viewer must have these additional scopes:
|
|
16
|
-
|
|
17
|
-
- `insights:read`
|
|
18
|
-
- `insights:modify`
|
|
19
|
-
- `projects:read`
|
|
20
|
-
|
|
21
|
-
In addition, users must have the `imodels_read` and `imodels_write` [permissions](https://developer.bentley.com/apis/insights/operations/create-mapping/#authorization) assigned at either the Project or iModel level. Further instruction on how to create roles and assign permissions can be found in the [iTwin Platform Projects API documentation](https://developer.bentley.com/apis/projects/tutorials/).
|
|
22
|
-
|
|
23
|
-
## Sample usage
|
|
24
|
-
|
|
25
|
-
### Call ReportsConfigWidget.initialize() **_before_** making use of the provider
|
|
26
|
-
|
|
27
|
-
```ts
|
|
28
|
-
import { ReportsConfigProvider, ReportsConfigWidget } from '@itwin/reports-config-widget-react'
|
|
29
|
-
|
|
30
|
-
...
|
|
31
|
-
|
|
32
|
-
await ReportsConfigWidget.initialize(IModelApp.localization);
|
|
33
|
-
|
|
34
|
-
<Viewer
|
|
35
|
-
...
|
|
36
|
-
uiProviders={[new ReportsConfigProvider()]}
|
|
37
|
-
/>
|
|
38
|
-
```
|
|
1
|
+
# @itwin/reports-config-widget-react
|
|
2
|
+
|
|
3
|
+
Copyright © Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
The Reports Config widget is a UI component for iTwin Viewer applications that simplifies how users (and developers) interface with the [Reporting Platform APIs](https://developer.bentley.com/apis/insights/overview/). This widget is one piece of the Reporting story that focuses on the configuration of Reports and the extraction thereof. It complements the [Grouping & Mapping Widget](https://www.npmjs.com/package/@itwin/grouping-mapping-widget).
|
|
5
|
+
The reports-config-widget-react package provides a UiProvider class - `ReportsConfigProvider` - which can be passed into the `uiProviders` prop of the iTwin Viewer's `<Viewer />` component.
|
|
6
|
+
|
|
7
|
+
## Getting Started
|
|
8
|
+
|
|
9
|
+
This is not a standalone UI and requires a parent iTwin Viewer application to work as intended.
|
|
10
|
+
A guide on how to create a basic iTwin Viewer application can be found here: <https://www.itwinjs.org/learning/tutorials/develop-web-viewer/>.
|
|
11
|
+
This package provides a viewer 'widget'. Documentation on how to add a widget to your application can be found here: <https://developer.bentley.com/tutorials/itwin-viewer-hello-world/#2-your-first-ui-widget>.
|
|
12
|
+
|
|
13
|
+
## Permissions and Scopes
|
|
14
|
+
|
|
15
|
+
The SPA client used by your iTwin viewer must have these additional scopes:
|
|
16
|
+
|
|
17
|
+
- `insights:read`
|
|
18
|
+
- `insights:modify`
|
|
19
|
+
- `projects:read`
|
|
20
|
+
|
|
21
|
+
In addition, users must have the `imodels_read` and `imodels_write` [permissions](https://developer.bentley.com/apis/insights/operations/create-mapping/#authorization) assigned at either the Project or iModel level. Further instruction on how to create roles and assign permissions can be found in the [iTwin Platform Projects API documentation](https://developer.bentley.com/apis/projects/tutorials/).
|
|
22
|
+
|
|
23
|
+
## Sample usage
|
|
24
|
+
|
|
25
|
+
### Call ReportsConfigWidget.initialize() **_before_** making use of the provider
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import { ReportsConfigProvider, ReportsConfigWidget } from '@itwin/reports-config-widget-react'
|
|
29
|
+
|
|
30
|
+
...
|
|
31
|
+
|
|
32
|
+
await ReportsConfigWidget.initialize(IModelApp.localization);
|
|
33
|
+
|
|
34
|
+
<Viewer
|
|
35
|
+
...
|
|
36
|
+
uiProviders={[new ReportsConfigProvider()]}
|
|
37
|
+
/>
|
|
38
|
+
```
|
package/__mocks__/fileMock.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
-
module.exports = {};
|
|
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
|
+
module.exports = {};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
## API Report File for "@itwin/reports-config-widget-react"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
9
|
+
import type { AccessToken } from '@itwin/core-bentley';
|
|
10
|
+
import type { ExtractionRequestDetails } from '@itwin/insights-client';
|
|
11
|
+
import type { IExtractionClient } from '@itwin/insights-client';
|
|
12
|
+
import type { IMappingsClient } from '@itwin/insights-client';
|
|
13
|
+
import { IModelsClient } from '@itwin/imodels-client-management';
|
|
14
|
+
import type { IReportsClient } from '@itwin/insights-client';
|
|
15
|
+
import type { Localization } from '@itwin/core-common';
|
|
16
|
+
import { default as React_2 } from 'react';
|
|
17
|
+
import type { Report } from '@itwin/insights-client';
|
|
18
|
+
import { StagePanelLocation } from '@itwin/appui-react';
|
|
19
|
+
import { StagePanelSection } from '@itwin/appui-react';
|
|
20
|
+
import type { UiItemsProvider } from '@itwin/appui-react';
|
|
21
|
+
import type { Widget } from '@itwin/appui-react';
|
|
22
|
+
|
|
23
|
+
// @public (undocumented)
|
|
24
|
+
export class BulkExtractor {
|
|
25
|
+
constructor(reportsClient: IReportsClient, extractionClient: IExtractionClient, getAccessToken: () => Promise<AccessToken>, successfulExtractionToast: (iModelName: string, odataFeedUrl: string) => void, failedExtractionToast: (iModelName: string) => void);
|
|
26
|
+
// (undocumented)
|
|
27
|
+
getIModelState(iModelId: string, iModelName: string, odataFeedUrl: string): Promise<ExtractionStates>;
|
|
28
|
+
// (undocumented)
|
|
29
|
+
getReportState(reportId: string): Promise<ExtractionStates>;
|
|
30
|
+
// (undocumented)
|
|
31
|
+
runIModelExtraction(extractionRequestDetails: ExtractionRequestDetails): Promise<void>;
|
|
32
|
+
// (undocumented)
|
|
33
|
+
runIModelExtractions(extractionRequestsDetails: ExtractionRequestDetails[]): Promise<void>;
|
|
34
|
+
// (undocumented)
|
|
35
|
+
runReportExtractions(reportIds: string[]): Promise<void>;
|
|
36
|
+
// (undocumented)
|
|
37
|
+
setHook(setJobRunning: React.Dispatch<React.SetStateAction<boolean>>, iModels: string[]): void;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// @public
|
|
41
|
+
export const ReportAction: ({ report, onSaveSuccess, onClickCancel }: ReportActionProps) => JSX.Element;
|
|
42
|
+
|
|
43
|
+
// @public
|
|
44
|
+
export interface ReportActionProps {
|
|
45
|
+
// (undocumented)
|
|
46
|
+
onClickCancel?: () => void;
|
|
47
|
+
// (undocumented)
|
|
48
|
+
onSaveSuccess: () => void;
|
|
49
|
+
// (undocumented)
|
|
50
|
+
report?: Report;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// @public
|
|
54
|
+
export const ReportMappings: ({ report, onClickClose, defaultIModelId }: ReportMappingsProps) => JSX.Element | null;
|
|
55
|
+
|
|
56
|
+
// @public
|
|
57
|
+
export interface ReportMappingsProps {
|
|
58
|
+
// (undocumented)
|
|
59
|
+
defaultIModelId?: string;
|
|
60
|
+
// (undocumented)
|
|
61
|
+
onClickClose: () => void;
|
|
62
|
+
// (undocumented)
|
|
63
|
+
report: Report;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// @public
|
|
67
|
+
export const Reports: ({ onClickAddReport, onClickReportModify, onClickReportTitle }: ReportsProps) => JSX.Element | null;
|
|
68
|
+
|
|
69
|
+
// @internal (undocumented)
|
|
70
|
+
export const REPORTS_CONFIG_BASE_URL = "https://api.bentley.com";
|
|
71
|
+
|
|
72
|
+
// @public
|
|
73
|
+
export const ReportsConfigContext: (props: ReportsConfigContextProps) => JSX.Element;
|
|
74
|
+
|
|
75
|
+
// @public
|
|
76
|
+
export interface ReportsConfigContextProps {
|
|
77
|
+
baseUrl?: string;
|
|
78
|
+
bulkExtractor?: BulkExtractor;
|
|
79
|
+
// (undocumented)
|
|
80
|
+
children?: React_2.ReactNode;
|
|
81
|
+
extractionClient?: IExtractionClient;
|
|
82
|
+
getAccessToken?: GetAccessTokenFn;
|
|
83
|
+
iModelsClient?: IModelsClient;
|
|
84
|
+
// (undocumented)
|
|
85
|
+
iTwinId: string;
|
|
86
|
+
mappingsClient?: IMappingsClient;
|
|
87
|
+
reportsClient?: IReportsClient;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// @public
|
|
91
|
+
export class ReportsConfigProvider implements UiItemsProvider {
|
|
92
|
+
constructor(_props?: ReportsContainerProps | undefined);
|
|
93
|
+
// (undocumented)
|
|
94
|
+
readonly id = "ReportsConfigProvider";
|
|
95
|
+
// (undocumented)
|
|
96
|
+
provideWidgets(_stageId: string, stageUsage: string, location: StagePanelLocation, section?: StagePanelSection): ReadonlyArray<Widget>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// @public
|
|
100
|
+
export class ReportsConfigWidget {
|
|
101
|
+
// (undocumented)
|
|
102
|
+
static initialize(localization?: Localization): Promise<void>;
|
|
103
|
+
// (undocumented)
|
|
104
|
+
static get localization(): Localization;
|
|
105
|
+
// (undocumented)
|
|
106
|
+
static get localizationNamespace(): string;
|
|
107
|
+
// (undocumented)
|
|
108
|
+
static terminate(): void;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// @public
|
|
112
|
+
export interface ReportsProps {
|
|
113
|
+
// (undocumented)
|
|
114
|
+
onClickAddReport?: () => void;
|
|
115
|
+
// (undocumented)
|
|
116
|
+
onClickReportModify?: (report: Report) => void;
|
|
117
|
+
// (undocumented)
|
|
118
|
+
onClickReportTitle?: (report: Report) => void;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
export * from "@itwin/insights-client";
|
|
123
|
+
|
|
124
|
+
// (No @packageDocumentation comment for this package)
|
|
125
|
+
|
|
126
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
sep=;
|
|
2
|
+
Release Tag;API Item
|
|
3
|
+
public;BulkExtractor
|
|
4
|
+
public;ReportAction: ({ report, onSaveSuccess, onClickCancel }: ReportActionProps) => JSX.Element
|
|
5
|
+
public;ReportActionProps
|
|
6
|
+
public;ReportMappings: ({ report, onClickClose, defaultIModelId }: ReportMappingsProps) => JSX.Element | null
|
|
7
|
+
public;ReportMappingsProps
|
|
8
|
+
public;Reports: ({ onClickAddReport, onClickReportModify, onClickReportTitle }: ReportsProps) => JSX.Element | null
|
|
9
|
+
internal;REPORTS_CONFIG_BASE_URL = "https://api.bentley.com"
|
|
10
|
+
public;ReportsConfigContext: (props: ReportsConfigContextProps) => JSX.Element
|
|
11
|
+
public;ReportsConfigContextProps
|
|
12
|
+
public;ReportsConfigProvider
|
|
13
|
+
public;ReportsConfigWidget
|
|
14
|
+
public;ReportsProps
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
## API Report File for "@itwin/reports-config-widget-react"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
9
|
+
import type { AccessToken } from '@itwin/core-bentley';
|
|
10
|
+
import type { ExtractionRequestDetails } from '@itwin/insights-client';
|
|
11
|
+
import type { IExtractionClient } from '@itwin/insights-client';
|
|
12
|
+
import type { IMappingsClient } from '@itwin/insights-client';
|
|
13
|
+
import { IModelsClient } from '@itwin/imodels-client-management';
|
|
14
|
+
import type { IReportsClient } from '@itwin/insights-client';
|
|
15
|
+
import type { Localization } from '@itwin/core-common';
|
|
16
|
+
import { default as React_2 } from 'react';
|
|
17
|
+
import type { Report } from '@itwin/insights-client';
|
|
18
|
+
import { StagePanelLocation } from '@itwin/appui-react';
|
|
19
|
+
import { StagePanelSection } from '@itwin/appui-react';
|
|
20
|
+
import type { UiItemsProvider } from '@itwin/appui-react';
|
|
21
|
+
import type { Widget } from '@itwin/appui-react';
|
|
22
|
+
|
|
23
|
+
// @public (undocumented)
|
|
24
|
+
export class BulkExtractor {
|
|
25
|
+
constructor(reportsClient: IReportsClient, extractionClient: IExtractionClient, getAccessToken: () => Promise<AccessToken>, successfulExtractionToast: (iModelName: string, odataFeedUrl: string) => void, failedExtractionToast: (iModelName: string) => void);
|
|
26
|
+
// (undocumented)
|
|
27
|
+
getIModelState(iModelId: string, iModelName: string, odataFeedUrl: string): Promise<ExtractionStates>;
|
|
28
|
+
// (undocumented)
|
|
29
|
+
getReportState(reportId: string): Promise<ExtractionStates>;
|
|
30
|
+
// (undocumented)
|
|
31
|
+
runIModelExtraction(extractionRequestDetails: ExtractionRequestDetails): Promise<void>;
|
|
32
|
+
// (undocumented)
|
|
33
|
+
runIModelExtractions(extractionRequestsDetails: ExtractionRequestDetails[]): Promise<void>;
|
|
34
|
+
// (undocumented)
|
|
35
|
+
runReportExtractions(reportIds: string[]): Promise<void>;
|
|
36
|
+
// (undocumented)
|
|
37
|
+
setHook(setJobRunning: React.Dispatch<React.SetStateAction<boolean>>, iModels: string[]): void;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// @public
|
|
41
|
+
export const ReportAction: ({ report, onSaveSuccess, onClickCancel }: ReportActionProps) => JSX.Element;
|
|
42
|
+
|
|
43
|
+
// @public
|
|
44
|
+
export interface ReportActionProps {
|
|
45
|
+
// (undocumented)
|
|
46
|
+
onClickCancel?: () => void;
|
|
47
|
+
// (undocumented)
|
|
48
|
+
onSaveSuccess: () => void;
|
|
49
|
+
// (undocumented)
|
|
50
|
+
report?: Report;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// @public
|
|
54
|
+
export const ReportMappings: ({ report, onClickClose, defaultIModelId }: ReportMappingsProps) => JSX.Element | null;
|
|
55
|
+
|
|
56
|
+
// @public
|
|
57
|
+
export interface ReportMappingsProps {
|
|
58
|
+
// (undocumented)
|
|
59
|
+
defaultIModelId?: string;
|
|
60
|
+
// (undocumented)
|
|
61
|
+
onClickClose: () => void;
|
|
62
|
+
// (undocumented)
|
|
63
|
+
report: Report;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// @public
|
|
67
|
+
export const Reports: ({ onClickAddReport, onClickReportModify, onClickReportTitle }: ReportsProps) => JSX.Element | null;
|
|
68
|
+
|
|
69
|
+
// @internal (undocumented)
|
|
70
|
+
export const REPORTS_CONFIG_BASE_URL = "https://api.bentley.com";
|
|
71
|
+
|
|
72
|
+
// @public
|
|
73
|
+
export const ReportsConfigContext: (props: ReportsConfigContextProps) => JSX.Element;
|
|
74
|
+
|
|
75
|
+
// @public
|
|
76
|
+
export interface ReportsConfigContextProps {
|
|
77
|
+
baseUrl?: string;
|
|
78
|
+
bulkExtractor?: BulkExtractor;
|
|
79
|
+
// (undocumented)
|
|
80
|
+
children?: React_2.ReactNode;
|
|
81
|
+
extractionClient?: IExtractionClient;
|
|
82
|
+
getAccessToken?: GetAccessTokenFn;
|
|
83
|
+
iModelsClient?: IModelsClient;
|
|
84
|
+
// (undocumented)
|
|
85
|
+
iTwinId: string;
|
|
86
|
+
mappingsClient?: IMappingsClient;
|
|
87
|
+
reportsClient?: IReportsClient;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// @public
|
|
91
|
+
export class ReportsConfigProvider implements UiItemsProvider {
|
|
92
|
+
constructor(_props?: ReportsContainerProps | undefined);
|
|
93
|
+
// (undocumented)
|
|
94
|
+
readonly id = "ReportsConfigProvider";
|
|
95
|
+
// (undocumented)
|
|
96
|
+
provideWidgets(_stageId: string, stageUsage: string, location: StagePanelLocation, section?: StagePanelSection): ReadonlyArray<Widget>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// @public
|
|
100
|
+
export class ReportsConfigWidget {
|
|
101
|
+
// (undocumented)
|
|
102
|
+
static initialize(localization?: Localization): Promise<void>;
|
|
103
|
+
// (undocumented)
|
|
104
|
+
static get localization(): Localization;
|
|
105
|
+
// (undocumented)
|
|
106
|
+
static get localizationNamespace(): string;
|
|
107
|
+
// (undocumented)
|
|
108
|
+
static terminate(): void;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// @public
|
|
112
|
+
export interface ReportsProps {
|
|
113
|
+
// (undocumented)
|
|
114
|
+
onClickAddReport?: () => void;
|
|
115
|
+
// (undocumented)
|
|
116
|
+
onClickReportModify?: (report: Report) => void;
|
|
117
|
+
// (undocumented)
|
|
118
|
+
onClickReportTitle?: (report: Report) => void;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
export * from "@itwin/insights-client";
|
|
123
|
+
|
|
124
|
+
// (No @packageDocumentation comment for this package)
|
|
125
|
+
|
|
126
|
+
```
|