@itwin/reports-config-widget-react 0.3.0 → 0.4.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.
Files changed (234) hide show
  1. package/.rush/temp/operation/rebuild/all.log +2 -2
  2. package/.rush/temp/operation/rebuild/state.json +1 -1
  3. package/.rush/temp/package-deps_rebuild.json +30 -30
  4. package/.rush/temp/shrinkwrap-deps.json +142 -175
  5. package/CHANGELOG.json +26 -0
  6. package/CHANGELOG.md +15 -1
  7. package/coverage/clover.xml +858 -0
  8. package/coverage/coverage-final.json +33 -0
  9. package/coverage/lcov-report/base.css +224 -0
  10. package/coverage/lcov-report/block-navigation.js +87 -0
  11. package/coverage/lcov-report/favicon.png +0 -0
  12. package/coverage/lcov-report/index.html +206 -0
  13. package/coverage/lcov-report/prettify.css +1 -0
  14. package/coverage/lcov-report/prettify.js +2 -0
  15. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  16. package/coverage/lcov-report/sorter.js +196 -0
  17. package/coverage/lcov-report/src/ReportsConfigWidget.ts.html +193 -0
  18. package/coverage/lcov-report/src/index.html +116 -0
  19. package/coverage/lcov-report/src/test/index.html +116 -0
  20. package/coverage/lcov-report/src/test/test-utils.tsx.html +196 -0
  21. package/coverage/lcov-report/src/widget/ReportsConfigUiProvider.tsx.html +265 -0
  22. package/coverage/lcov-report/src/widget/components/ActionPanel.tsx.html +247 -0
  23. package/coverage/lcov-report/src/widget/components/AddMappingsModal.tsx.html +589 -0
  24. package/coverage/lcov-report/src/widget/components/BulkExtractor.ts.html +664 -0
  25. package/coverage/lcov-report/src/widget/components/Constants.ts.html +106 -0
  26. package/coverage/lcov-report/src/widget/components/DeleteModal.tsx.html +367 -0
  27. package/coverage/lcov-report/src/widget/components/ExtractionStates/FailedExtractionState.tsx.html +187 -0
  28. package/coverage/lcov-report/src/widget/components/ExtractionStates/QueuedExtractionState.tsx.html +145 -0
  29. package/coverage/lcov-report/src/widget/components/ExtractionStates/RunningExtractionState.tsx.html +139 -0
  30. package/coverage/lcov-report/src/widget/components/ExtractionStates/StartingExtractionState.tsx.html +151 -0
  31. package/coverage/lcov-report/src/widget/components/ExtractionStates/SucceededExtractionState.tsx.html +190 -0
  32. package/coverage/lcov-report/src/widget/components/ExtractionStates/index.html +176 -0
  33. package/coverage/lcov-report/src/widget/components/ExtractionStatus.tsx.html +295 -0
  34. package/coverage/lcov-report/src/widget/components/ExtractionToast.tsx.html +208 -0
  35. package/coverage/lcov-report/src/widget/components/HorizontalTile.tsx.html +289 -0
  36. package/coverage/lcov-report/src/widget/components/LocalizedTablePaginator.tsx.html +262 -0
  37. package/coverage/lcov-report/src/widget/components/ReportAction.tsx.html +472 -0
  38. package/coverage/lcov-report/src/widget/components/ReportHorizontalTile.tsx.html +472 -0
  39. package/coverage/lcov-report/src/widget/components/ReportMappingHorizontalTile.tsx.html +469 -0
  40. package/coverage/lcov-report/src/widget/components/ReportMappings.tsx.html +1063 -0
  41. package/coverage/lcov-report/src/widget/components/Reports.tsx.html +754 -0
  42. package/coverage/lcov-report/src/widget/components/ReportsConfigContext.tsx.html +370 -0
  43. package/coverage/lcov-report/src/widget/components/ReportsContainer.tsx.html +301 -0
  44. package/coverage/lcov-report/src/widget/components/ReportsHeader.tsx.html +166 -0
  45. package/coverage/lcov-report/src/widget/components/ReportsRouter.tsx.html +274 -0
  46. package/coverage/lcov-report/src/widget/components/SearchBar.tsx.html +286 -0
  47. package/coverage/lcov-report/src/widget/components/SelectIModel.tsx.html +337 -0
  48. package/coverage/lcov-report/src/widget/components/index.html +416 -0
  49. package/coverage/lcov-report/src/widget/components/utils.tsx.html +565 -0
  50. package/coverage/lcov-report/src/widget/context/BulkExtractorContext.tsx.html +163 -0
  51. package/coverage/lcov-report/src/widget/context/ReportsConfigApiContext.tsx.html +202 -0
  52. package/coverage/lcov-report/src/widget/context/index.html +131 -0
  53. package/coverage/lcov-report/src/widget/hooks/index.html +116 -0
  54. package/coverage/lcov-report/src/widget/hooks/useValidator.ts.html +295 -0
  55. package/coverage/lcov-report/src/widget/index.html +116 -0
  56. package/coverage/lcov.info +1596 -0
  57. package/jest.config.js +1 -0
  58. package/lib/cjs/ReportsConfigWidget.js +1 -1
  59. package/lib/cjs/ReportsConfigWidget.js.map +1 -1
  60. package/lib/cjs/test/AddMappingModal.test.js +6 -7
  61. package/lib/cjs/test/AddMappingModal.test.js.map +1 -1
  62. package/lib/cjs/test/DeleteModal.test.js +2 -2
  63. package/lib/cjs/test/DeleteModal.test.js.map +1 -1
  64. package/lib/cjs/test/ReportAction.test.js +7 -7
  65. package/lib/cjs/test/ReportAction.test.js.map +1 -1
  66. package/lib/cjs/test/ReportMappingHorizontalTile.test.js +18 -19
  67. package/lib/cjs/test/ReportMappingHorizontalTile.test.js.map +1 -1
  68. package/lib/cjs/test/ReportMappings.test.js +19 -21
  69. package/lib/cjs/test/ReportMappings.test.js.map +1 -1
  70. package/lib/cjs/test/Reports.test.js +27 -29
  71. package/lib/cjs/test/Reports.test.js.map +1 -1
  72. package/lib/cjs/test/WidgetHeader.test.js +9 -3
  73. package/lib/cjs/test/WidgetHeader.test.js.map +1 -1
  74. package/lib/cjs/test/test-utils.js +2 -5
  75. package/lib/cjs/test/test-utils.js.map +1 -1
  76. package/lib/cjs/tsconfig.tsbuildinfo +1 -1
  77. package/lib/cjs/widget/ReportsConfigUiProvider.d.ts +3 -3
  78. package/lib/cjs/widget/ReportsConfigUiProvider.d.ts.map +1 -1
  79. package/lib/cjs/widget/ReportsConfigUiProvider.js +5 -7
  80. package/lib/cjs/widget/ReportsConfigUiProvider.js.map +1 -1
  81. package/lib/cjs/widget/components/ActionPanel.d.ts +2 -2
  82. package/lib/cjs/widget/components/ActionPanel.d.ts.map +1 -1
  83. package/lib/cjs/widget/components/ActionPanel.js.map +1 -1
  84. package/lib/cjs/widget/components/ActionPanel.scss +2 -3
  85. package/lib/cjs/widget/components/AddMappingsModal.d.ts.map +1 -1
  86. package/lib/cjs/widget/components/AddMappingsModal.js +22 -27
  87. package/lib/cjs/widget/components/AddMappingsModal.js.map +1 -1
  88. package/lib/cjs/widget/components/AddMappingsModal.scss +1 -2
  89. package/lib/cjs/widget/components/BulkExtractor.js +2 -2
  90. package/lib/cjs/widget/components/BulkExtractor.js.map +1 -1
  91. package/lib/cjs/widget/components/DeleteModal.js +3 -3
  92. package/lib/cjs/widget/components/DeleteModal.js.map +1 -1
  93. package/lib/cjs/widget/components/DeleteModal.scss +2 -3
  94. package/lib/cjs/widget/components/ExtractionStatus.js +2 -2
  95. package/lib/cjs/widget/components/ExtractionStatus.js.map +1 -1
  96. package/lib/cjs/widget/components/ExtractionStatus.scss +6 -7
  97. package/lib/cjs/widget/components/HorizontalTile.js +2 -2
  98. package/lib/cjs/widget/components/HorizontalTile.js.map +1 -1
  99. package/lib/cjs/widget/components/HorizontalTile.scss +10 -16
  100. package/lib/cjs/widget/components/LocalizedTablePaginator.js +2 -2
  101. package/lib/cjs/widget/components/LocalizedTablePaginator.js.map +1 -1
  102. package/lib/cjs/widget/components/ReportAction.js +14 -16
  103. package/lib/cjs/widget/components/ReportAction.js.map +1 -1
  104. package/lib/cjs/widget/components/ReportAction.scss +1 -2
  105. package/lib/cjs/widget/components/ReportHorizontalTile.js +9 -11
  106. package/lib/cjs/widget/components/ReportHorizontalTile.js.map +1 -1
  107. package/lib/cjs/widget/components/ReportMappingHorizontalTile.d.ts.map +1 -1
  108. package/lib/cjs/widget/components/ReportMappingHorizontalTile.js +17 -17
  109. package/lib/cjs/widget/components/ReportMappingHorizontalTile.js.map +1 -1
  110. package/lib/cjs/widget/components/ReportMappings.d.ts.map +1 -1
  111. package/lib/cjs/widget/components/ReportMappings.js +23 -26
  112. package/lib/cjs/widget/components/ReportMappings.js.map +1 -1
  113. package/lib/cjs/widget/components/ReportMappings.scss +9 -10
  114. package/lib/cjs/widget/components/Reports.d.ts.map +1 -1
  115. package/lib/cjs/widget/components/Reports.js +21 -21
  116. package/lib/cjs/widget/components/Reports.js.map +1 -1
  117. package/lib/cjs/widget/components/Reports.scss +15 -15
  118. package/lib/cjs/widget/components/ReportsConfigContext.js +23 -31
  119. package/lib/cjs/widget/components/ReportsConfigContext.js.map +1 -1
  120. package/lib/cjs/widget/components/ReportsContainer.js +4 -5
  121. package/lib/cjs/widget/components/ReportsContainer.js.map +1 -1
  122. package/lib/cjs/widget/components/ReportsContainer.scss +1 -3
  123. package/lib/cjs/widget/components/ReportsRouter.js +1 -2
  124. package/lib/cjs/widget/components/ReportsRouter.js.map +1 -1
  125. package/lib/cjs/widget/components/SearchBar.d.ts.map +1 -1
  126. package/lib/cjs/widget/components/SearchBar.js +4 -4
  127. package/lib/cjs/widget/components/SearchBar.js.map +1 -1
  128. package/lib/cjs/widget/components/SearchBar.scss +0 -1
  129. package/lib/cjs/widget/components/SelectIModel.js +5 -5
  130. package/lib/cjs/widget/components/SelectIModel.js.map +1 -1
  131. package/lib/cjs/widget/components/SelectIModel.scss +2 -3
  132. package/lib/cjs/widget/components/utils.d.ts.map +1 -1
  133. package/lib/cjs/widget/components/utils.js +1 -1
  134. package/lib/cjs/widget/components/utils.js.map +1 -1
  135. package/lib/cjs/widget/components/utils.scss +16 -8
  136. package/lib/cjs/widget/context/BulkExtractorContext.js +1 -1
  137. package/lib/cjs/widget/context/BulkExtractorContext.js.map +1 -1
  138. package/lib/cjs/widget/context/ReportsConfigApiContext.js +1 -1
  139. package/lib/cjs/widget/context/ReportsConfigApiContext.js.map +1 -1
  140. package/lib/cjs/widget/hooks/useValidator.js +1 -1
  141. package/lib/cjs/widget/hooks/useValidator.js.map +1 -1
  142. package/lib/esm/ReportsConfigWidget.js +1 -1
  143. package/lib/esm/ReportsConfigWidget.js.map +1 -1
  144. package/lib/esm/test/AddMappingModal.test.js +1 -2
  145. package/lib/esm/test/AddMappingModal.test.js.map +1 -1
  146. package/lib/esm/test/ReportMappingHorizontalTile.test.js +1 -2
  147. package/lib/esm/test/ReportMappingHorizontalTile.test.js.map +1 -1
  148. package/lib/esm/test/ReportMappings.test.js +6 -8
  149. package/lib/esm/test/ReportMappings.test.js.map +1 -1
  150. package/lib/esm/test/Reports.test.js +4 -6
  151. package/lib/esm/test/Reports.test.js.map +1 -1
  152. package/lib/esm/test/WidgetHeader.test.js +8 -2
  153. package/lib/esm/test/WidgetHeader.test.js.map +1 -1
  154. package/lib/esm/test/test-utils.js +1 -4
  155. package/lib/esm/test/test-utils.js.map +1 -1
  156. package/lib/esm/tsconfig.tsbuildinfo +1 -1
  157. package/lib/esm/widget/ReportsConfigUiProvider.d.ts +3 -3
  158. package/lib/esm/widget/ReportsConfigUiProvider.d.ts.map +1 -1
  159. package/lib/esm/widget/ReportsConfigUiProvider.js +2 -4
  160. package/lib/esm/widget/ReportsConfigUiProvider.js.map +1 -1
  161. package/lib/esm/widget/components/ActionPanel.d.ts +2 -2
  162. package/lib/esm/widget/components/ActionPanel.d.ts.map +1 -1
  163. package/lib/esm/widget/components/ActionPanel.js.map +1 -1
  164. package/lib/esm/widget/components/ActionPanel.scss +2 -3
  165. package/lib/esm/widget/components/AddMappingsModal.d.ts.map +1 -1
  166. package/lib/esm/widget/components/AddMappingsModal.js +10 -15
  167. package/lib/esm/widget/components/AddMappingsModal.js.map +1 -1
  168. package/lib/esm/widget/components/AddMappingsModal.scss +1 -2
  169. package/lib/esm/widget/components/DeleteModal.js +2 -2
  170. package/lib/esm/widget/components/DeleteModal.js.map +1 -1
  171. package/lib/esm/widget/components/DeleteModal.scss +2 -3
  172. package/lib/esm/widget/components/ExtractionStatus.scss +6 -7
  173. package/lib/esm/widget/components/HorizontalTile.scss +10 -16
  174. package/lib/esm/widget/components/ReportAction.js +7 -9
  175. package/lib/esm/widget/components/ReportAction.js.map +1 -1
  176. package/lib/esm/widget/components/ReportAction.scss +1 -2
  177. package/lib/esm/widget/components/ReportHorizontalTile.js +4 -6
  178. package/lib/esm/widget/components/ReportHorizontalTile.js.map +1 -1
  179. package/lib/esm/widget/components/ReportMappingHorizontalTile.d.ts.map +1 -1
  180. package/lib/esm/widget/components/ReportMappingHorizontalTile.js +11 -11
  181. package/lib/esm/widget/components/ReportMappingHorizontalTile.js.map +1 -1
  182. package/lib/esm/widget/components/ReportMappings.d.ts.map +1 -1
  183. package/lib/esm/widget/components/ReportMappings.js +7 -10
  184. package/lib/esm/widget/components/ReportMappings.js.map +1 -1
  185. package/lib/esm/widget/components/ReportMappings.scss +9 -10
  186. package/lib/esm/widget/components/Reports.d.ts.map +1 -1
  187. package/lib/esm/widget/components/Reports.js +9 -9
  188. package/lib/esm/widget/components/Reports.js.map +1 -1
  189. package/lib/esm/widget/components/Reports.scss +15 -15
  190. package/lib/esm/widget/components/ReportsConfigContext.js +19 -27
  191. package/lib/esm/widget/components/ReportsConfigContext.js.map +1 -1
  192. package/lib/esm/widget/components/ReportsContainer.js +1 -2
  193. package/lib/esm/widget/components/ReportsContainer.js.map +1 -1
  194. package/lib/esm/widget/components/ReportsContainer.scss +1 -3
  195. package/lib/esm/widget/components/ReportsRouter.js +1 -2
  196. package/lib/esm/widget/components/ReportsRouter.js.map +1 -1
  197. package/lib/esm/widget/components/SearchBar.d.ts.map +1 -1
  198. package/lib/esm/widget/components/SearchBar.js +2 -2
  199. package/lib/esm/widget/components/SearchBar.js.map +1 -1
  200. package/lib/esm/widget/components/SearchBar.scss +0 -1
  201. package/lib/esm/widget/components/SelectIModel.scss +2 -3
  202. package/lib/esm/widget/components/utils.d.ts.map +1 -1
  203. package/lib/esm/widget/components/utils.js +2 -2
  204. package/lib/esm/widget/components/utils.js.map +1 -1
  205. package/lib/esm/widget/components/utils.scss +16 -8
  206. package/lib/public/locales/en/ReportsConfigWidget.json +4 -0
  207. package/package.json +30 -30
  208. package/public/locales/en/ReportsConfigWidget.json +4 -0
  209. package/reports-config-widget-react.build.error.log +14 -1
  210. package/reports-config-widget-react.build.log +63 -2
  211. package/src/test/WidgetHeader.test.tsx +9 -2
  212. package/src/widget/ReportsConfigUiProvider.tsx +7 -14
  213. package/src/widget/components/ActionPanel.scss +2 -3
  214. package/src/widget/components/ActionPanel.tsx +1 -1
  215. package/src/widget/components/AddMappingsModal.scss +1 -2
  216. package/src/widget/components/AddMappingsModal.tsx +16 -21
  217. package/src/widget/components/DeleteModal.scss +2 -3
  218. package/src/widget/components/DeleteModal.tsx +3 -3
  219. package/src/widget/components/ExtractionStatus.scss +6 -7
  220. package/src/widget/components/HorizontalTile.scss +10 -16
  221. package/src/widget/components/ReportAction.scss +1 -2
  222. package/src/widget/components/ReportAction.tsx +3 -3
  223. package/src/widget/components/ReportHorizontalTile.tsx +1 -1
  224. package/src/widget/components/ReportMappingHorizontalTile.tsx +28 -27
  225. package/src/widget/components/ReportMappings.scss +9 -10
  226. package/src/widget/components/ReportMappings.tsx +2 -4
  227. package/src/widget/components/Reports.scss +15 -15
  228. package/src/widget/components/Reports.tsx +25 -22
  229. package/src/widget/components/ReportsContainer.scss +1 -3
  230. package/src/widget/components/SearchBar.scss +0 -1
  231. package/src/widget/components/SearchBar.tsx +6 -1
  232. package/src/widget/components/SelectIModel.scss +2 -3
  233. package/src/widget/components/utils.scss +16 -8
  234. package/src/widget/components/utils.tsx +7 -6
@@ -2,12 +2,11 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/itwinui-css/scss/variables";
6
5
 
7
6
  .rcw-add-mappings-container {
8
7
  display: flex;
9
8
  flex-direction: column;
10
- gap: $iui-baseline;
9
+ gap: var(--iui-size-s);
11
10
  width: 45vw;
12
11
  min-width: 100%;
13
12
  overflow: auto;
@@ -15,6 +15,7 @@ import type { CreateTypeFromInterface } from "./utils";
15
15
  import { handleError } from "./utils";
16
16
  import { ReportsConfigWidget } from "../../ReportsConfigWidget";
17
17
  import type { AccessToken } from "@itwin/core-bentley";
18
+ import type { Column } from "react-table";
18
19
 
19
20
  export type MappingType = CreateTypeFromInterface<Mapping>;
20
21
 
@@ -74,29 +75,23 @@ export const AddMappingsModal = ({
74
75
  }, [getAccessToken, mappingsClient, selectedIModelId, setIsLoading]);
75
76
 
76
77
  const mappingsColumns = useMemo(
77
- () => [
78
+ (): Column<CreateTypeFromInterface<Mapping>>[] => [
78
79
  {
79
- Header: "Table",
80
- columns: [
81
- {
82
- id: "mappingName",
83
- Header: ReportsConfigWidget.localization.getLocalizedString(
84
- "ReportsConfigWidget:MappingName"
85
- ),
86
- accessor: "mappingName",
87
- Filter: tableFilters.TextFilter(),
88
- },
89
- {
90
- id: "description",
91
- Header: ReportsConfigWidget.localization.getLocalizedString(
92
- "ReportsConfigWidget:Description"
93
- ),
94
- accessor: "description",
95
- Filter: tableFilters.TextFilter(),
96
- },
97
- ],
80
+ id: "mappingName",
81
+ Header: ReportsConfigWidget.localization.getLocalizedString(
82
+ "ReportsConfigWidget:MappingName"
83
+ ),
84
+ accessor: "mappingName",
85
+ Filter: tableFilters.TextFilter(),
98
86
  },
99
- ],
87
+ {
88
+ id: "description",
89
+ Header: ReportsConfigWidget.localization.getLocalizedString(
90
+ "ReportsConfigWidget:Description"
91
+ ),
92
+ accessor: "description",
93
+ Filter: tableFilters.TextFilter(),
94
+ }],
100
95
  []
101
96
  );
102
97
 
@@ -2,11 +2,10 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/itwinui-css/scss/variables";
6
5
 
7
6
  .rcw-delete-modal-body-text {
8
7
  display: flex;
9
- gap: $iui-xs;
8
+ gap: var(--iui-size-2xs);
10
9
  flex-wrap: wrap;
11
10
 
12
11
  >strong {
@@ -15,5 +14,5 @@
15
14
  }
16
15
 
17
16
  .rcw-loading-delete {
18
- margin-right: $iui-s;
17
+ margin-right: var(--iui-size-xs);
19
18
  }
@@ -4,11 +4,11 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import {
6
6
  Button,
7
- Leading,
8
7
  MiddleTextTruncation,
9
8
  Modal,
10
9
  ModalButtonBar,
11
10
  ModalContent,
11
+ Text,
12
12
  } from "@itwin/itwinui-react";
13
13
  import React, { useState } from "react";
14
14
  import { ReportsConfigWidget } from "../../ReportsConfigWidget";
@@ -54,11 +54,11 @@ export const DeleteModal = ({
54
54
  >
55
55
  <ModalContent>
56
56
  <div className="rcw-delete-modal-body-text">
57
- <Leading>
57
+ <Text variant='leading'>
58
58
  {ReportsConfigWidget.localization.getLocalizedString(
59
59
  "ReportsConfigWidget:AreYouSureYouWantToDelete"
60
60
  )}
61
- </Leading>
61
+ </Text>
62
62
  <strong>{<MiddleTextTruncation text={`${entityName}?`} />}</strong>
63
63
  </div>
64
64
  </ModalContent>
@@ -2,7 +2,6 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/itwinui-css/scss/variables";
6
5
 
7
6
  .rcw-extraction-status {
8
7
  align-items: center;
@@ -10,10 +9,10 @@
10
9
  display: flex;
11
10
 
12
11
  .rcw-status-icon {
13
- width: $iui-icons-default;
14
- height: $iui-icons-default;
12
+ width: var(--iui-size-m);
13
+ height: var(--iui-size-m);
15
14
  align-items: center;
16
- margin: auto $iui-xs * 3;
15
+ margin: auto calc(var(--iui-size-2xs) * 3);
17
16
  display: flex;
18
17
  }
19
18
  }
@@ -22,11 +21,11 @@
22
21
  align-items: center;
23
22
  height: 38px;
24
23
  display: flex;
25
- margin: auto $iui-xs * 3;
24
+ margin: auto calc(var(--iui-size-2xs) * 3);
26
25
 
27
26
  .rcw-status-icon {
28
- width: $iui-icons-default;
29
- height: $iui-icons-default;
27
+ width: var(--iui-size-m);
28
+ height: var(--iui-size-m);
30
29
  }
31
30
  }
32
31
 
@@ -2,18 +2,14 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/itwinui-css/scss/variables";
6
- @import "~@itwin/itwinui-css/scss/icon/index";
7
-
8
5
  .rcw-horizontal-tile {
9
6
  &-container {
10
7
  display: flex;
11
8
  justify-content: space-between;
12
9
  border-radius: 5px;
13
- background-color: var(--iui-color-background-2);
14
- height: $iui-baseline * 4;
15
- min-height: 44px;
16
- padding: 5.5px $iui-s;
10
+ background-color: var(--iui-color-background-backdrop);
11
+ min-height: calc(var(--iui-size-s) * 5);
12
+ padding: 5.5px var(--iui-size-xs);
17
13
 
18
14
  .rcw-body-container {
19
15
  display: flex;
@@ -38,18 +34,16 @@
38
34
  align-self: center;
39
35
  min-width: 36px;
40
36
  flex-shrink: 0;
41
- display: flex;
37
+ margin-right: var(--iui-size-2xs);
42
38
  }
43
39
  }
44
40
 
45
41
  &-selected {
46
- @include themed {
47
- border: 1px solid t(iui-color-foreground-primary);
48
- background: linear-gradient(
49
- rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6)),
50
- rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6))
51
- ),
52
- linear-gradient(t(iui-color-background-1), t(iui-color-background-1));
53
- }
42
+ border: 1px solid var(--iui-color-border-accent);
43
+ background: linear-gradient(
44
+ rgba(var(--iui-color-accent-hsl), var(--iui-opacity-6)),
45
+ rgba(var(--iui-color-accent-hsl), var(--iui-opacity-6))
46
+ ),
47
+ linear-gradient(var(--iui-color-background), var(--iui-color-background));
54
48
  }
55
49
  }
@@ -2,7 +2,6 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/itwinui-css/scss/variables";
6
5
 
7
6
  .rcw-details-form-container {
8
7
  overflow-x: auto;
@@ -11,6 +10,6 @@
11
10
  .rcw-details-form {
12
11
  display: flex;
13
12
  flex-direction: column;
14
- gap: $iui-baseline;
13
+ gap: var(--iui-size-);
15
14
  }
16
15
  }
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- import { Fieldset, LabeledInput, Small } from "@itwin/itwinui-react";
5
+ import { Fieldset, LabeledInput, Text } from "@itwin/itwinui-react";
6
6
  import React, { useState } from "react";
7
7
  import ActionPanel from "./ActionPanel";
8
8
  import useValidator, { NAME_REQUIREMENTS } from "../hooks/useValidator";
@@ -70,11 +70,11 @@ export const ReportAction = ({ report, onSaveSuccess, onClickCancel }: ReportAct
70
70
  )}
71
71
  className="rcw-details-form"
72
72
  >
73
- <Small className="field-legend">
73
+ <Text variant='small' className="field-legend">
74
74
  {ReportsConfigWidget.localization.getLocalizedString(
75
75
  "ReportsConfigWidget:MandatoryFields"
76
76
  )}
77
- </Small>
77
+ </Text>
78
78
  <LabeledInput
79
79
  name="name"
80
80
  label={ReportsConfigWidget.localization.getLocalizedString(
@@ -111,7 +111,7 @@ export const ReportHorizontalTile = (props: ReportHorizontalTileProps) => {
111
111
  </MenuItem>,
112
112
  ].flat()}
113
113
  >
114
- <IconButton styleType="borderless">
114
+ <IconButton styleType="borderless" title={ReportsConfigWidget.localization.getLocalizedString("ReportsConfigWidget:ReportOptions")}>
115
115
  <SvgMore />
116
116
  </IconButton>
117
117
  </DropdownMenu>
@@ -11,7 +11,7 @@ import { ReportsConfigWidget } from "../../ReportsConfigWidget";
11
11
  import { IconButton } from "@itwin/itwinui-react";
12
12
  import {
13
13
  SvgDelete,
14
- SvgRefresh,
14
+ SvgPlay,
15
15
  } from "@itwin/itwinui-icons-react";
16
16
  import { HorizontalTile } from "./HorizontalTile";
17
17
  import type { ReportMappingAndMapping } from "./ReportMappings";
@@ -86,20 +86,33 @@ export const ReportMappingHorizontalTile = (props: ReportMappingHorizontalTilePr
86
86
  data-testid="tile-action-button">
87
87
  {extractionState === ExtractionStates.None ?
88
88
  (
89
- <IconButton
90
- styleType="borderless"
91
- title={ReportsConfigWidget.localization.getLocalizedString(
92
- "ReportsConfigWidget:UpdateDataset"
93
- )}
94
- onClick={async () => {
95
- setExtractionState(ExtractionStates.Starting);
96
- await props.bulkExtractor.runIModelExtraction(props.mapping.imodelId);
97
- props.jobStartEvent.raiseEvent(props.mapping.imodelId);
98
- }}
99
- disabled={jobStarted}
100
- >
101
- <SvgRefresh />
102
- </IconButton>
89
+ <>
90
+ <IconButton
91
+ styleType="borderless"
92
+ title={ReportsConfigWidget.localization.getLocalizedString(
93
+ "ReportsConfigWidget:UpdateDataset"
94
+ )}
95
+ onClick={async () => {
96
+ setExtractionState(ExtractionStates.Starting);
97
+ await props.bulkExtractor.runIModelExtraction(props.mapping.imodelId);
98
+ props.jobStartEvent.raiseEvent(props.mapping.imodelId);
99
+ }}
100
+ disabled={jobStarted}
101
+ >
102
+ <SvgPlay />
103
+ </IconButton>
104
+ <IconButton
105
+ styleType="borderless"
106
+ title={ReportsConfigWidget.localization.getLocalizedString(
107
+ "ReportsConfigWidget:Remove"
108
+ )}
109
+ onClick={() => {
110
+ props.onClickDelete();
111
+ }}
112
+ >
113
+ <SvgDelete />
114
+ </IconButton>
115
+ </>
103
116
  ) : (
104
117
  <ExtractionStatus
105
118
  state={extractionState}
@@ -108,18 +121,6 @@ export const ReportMappingHorizontalTile = (props: ReportMappingHorizontalTilePr
108
121
  }}
109
122
  ></ExtractionStatus>
110
123
  )}
111
- <IconButton
112
- styleType="borderless"
113
- title={ReportsConfigWidget.localization.getLocalizedString(
114
- "ReportsConfigWidget:Remove"
115
- )}
116
- onClick={() => {
117
- props.onClickDelete();
118
- }}
119
- disabled={jobStarted}
120
- >
121
- <SvgDelete />
122
- </IconButton>
123
124
  </div >
124
125
  )}
125
126
  />
@@ -2,31 +2,29 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/itwinui-css/scss/variables";
6
5
 
7
6
  .rcw-report-mapping-misc {
8
7
  display: flex;
9
8
  flex-direction: column;
10
- gap: $iui-baseline;
9
+ gap: var(--iui-size-s);
11
10
  }
12
11
 
13
12
  .rcw-report-mappings-container {
14
13
  display: flex;
15
14
  flex-direction: column;
16
15
  flex-grow: 1;
17
- padding: $iui-baseline $iui-m;
18
16
  min-height: 0;
19
17
 
20
18
  .rcw-odata-url-input {
21
- margin-bottom: $iui-baseline * 2;
19
+ margin-bottom: calc(var(--iui-size-s) * 2);
22
20
  }
23
21
 
24
22
  .rcw-toolbar {
25
23
  display: flex;
26
24
  justify-content: space-between;
27
- gap: $iui-s;
28
- border-bottom: 1px solid var(--iui-color-background-4);
29
- padding-bottom: $iui-baseline;
25
+ gap: var(--iui-size-xs);
26
+ border-bottom: 1px solid var(--iui-color-border-subtle);
27
+ padding-bottom: var(--iui-size-s);
30
28
  flex-wrap: wrap;
31
29
  }
32
30
 
@@ -34,13 +32,14 @@
34
32
  display: flex;
35
33
  flex-direction: column;
36
34
  overflow-y: overlay;
37
- gap: 8px;
38
- margin-top: 8px;
35
+ gap: var(--iui-size-xs);
36
+ margin-top: var(--iui-size-xs);
39
37
  }
40
38
 
41
39
  .rcw-search-bar-container {
42
- flex-basis: $iui-3xl;
40
+ flex-basis: var(--iui-size-3xl);
43
41
  flex-shrink: 1;
44
42
  flex-grow: 1;
43
+ display: flex;
45
44
  }
46
45
  }
@@ -11,7 +11,6 @@ import {
11
11
  Button,
12
12
  IconButton,
13
13
  LabeledInput,
14
- Surface,
15
14
  Text,
16
15
  toaster,
17
16
  } from "@itwin/itwinui-react";
@@ -182,7 +181,7 @@ export const ReportMappings = ({ report, onClickClose, defaultIModelId }: Report
182
181
 
183
182
  return (
184
183
  <>
185
- <Surface className="rcw-report-mappings-container">
184
+ <div className="rcw-report-mappings-container">
186
185
  <LabeledInput
187
186
  label={ReportsConfigWidget.localization.getLocalizedString(
188
187
  "ReportsConfigWidget:ODataFeedURL"
@@ -195,7 +194,6 @@ export const ReportMappings = ({ report, onClickClose, defaultIModelId }: Report
195
194
  title={ReportsConfigWidget.localization.getLocalizedString(
196
195
  "ReportsConfigWidget:Copy"
197
196
  )}
198
- styleType="borderless"
199
197
  onClick={async (_) => {
200
198
  await navigator.clipboard.writeText(odataFeedUrl);
201
199
  toaster.positive(
@@ -273,7 +271,7 @@ export const ReportMappings = ({ report, onClickClose, defaultIModelId }: Report
273
271
  ))}
274
272
  </div>
275
273
  )}
276
- </Surface>
274
+ </div>
277
275
  <AddMappingsModal
278
276
  show={showAddMapping}
279
277
  reportId={report.id}
@@ -2,39 +2,39 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/itwinui-css/scss/variables";
6
5
 
7
6
  .rcw-reports-list-container {
8
7
  display: flex;
9
8
  flex-direction: column;
10
9
  flex-grow: 1;
11
- padding: $iui-baseline $iui-m;
12
10
  min-height: 0;
13
11
 
14
12
  .rcw-toolbar {
15
13
  display: flex;
16
14
  justify-content: space-between;
17
- gap: $iui-s;
18
- border-bottom: 1px solid var(--iui-color-background-4);
19
- padding-bottom: $iui-baseline;
15
+ gap: var(--iui-size-xs);
16
+ border-bottom: 1px solid var(--iui-color-border-subtle);
17
+ padding-bottom: var(--iui-size-s);
20
18
  flex-wrap: wrap;
21
- }
22
19
 
23
- .rcw-search-bar-container {
24
- flex-basis: $iui-3xl;
25
- flex-shrink: 1;
26
- flex-grow: 1;
20
+ .rcw-search-bar-container {
21
+ flex-shrink: 1;
22
+ flex-grow: 0;
23
+ display: flex;
24
+ }
25
+
26
+ .rcw-button-spacing {
27
+ display: flex;
28
+ gap: var(--iui-size-xs);
29
+ }
27
30
  }
28
31
 
29
32
  .rcw-reports-list {
30
33
  display: flex;
31
34
  flex-direction: column;
32
35
  overflow-y: overlay;
33
- gap: 7.5px;
34
- margin-top: 7.5px;
36
+ gap: var(--iui-size-xs);
37
+ margin-top: var(--iui-size-xs);
35
38
  }
36
39
  }
37
40
 
38
- .rcw-button-container {
39
- display: flex;
40
- }
@@ -3,7 +3,7 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import { SvgAdd, SvgPlay, SvgRefresh } from "@itwin/itwinui-icons-react";
6
- import { Button, IconButton, Surface } from "@itwin/itwinui-react";
6
+ import { Button, IconButton } from "@itwin/itwinui-react";
7
7
  import React, { useCallback, useEffect, useMemo, useState } from "react";
8
8
  import type { CreateTypeFromInterface } from "./utils";
9
9
  import {
@@ -121,28 +121,31 @@ export const Reports = ({
121
121
 
122
122
  return (
123
123
  <>
124
- <Surface className="rcw-reports-list-container">
124
+ <div className="rcw-reports-list-container">
125
125
  <div className="rcw-toolbar">
126
- {onClickAddReport && (
127
- <Button
128
- startIcon={<SvgAdd />}
129
- onClick={onClickAddReport}
130
- styleType="high-visibility"
131
- >
132
- {ReportsConfigWidget.localization.getLocalizedString(
133
- "ReportsConfigWidget:New"
134
- )}
135
- </Button>
136
- )}
137
- <IconButton
138
- title={ReportsConfigWidget.localization.getLocalizedString(
139
- "ReportsConfigWidget:UpdateDatasets"
126
+ <div className="rcw-button-spacing">
127
+ {onClickAddReport && (
128
+ <Button
129
+ startIcon={<SvgAdd />}
130
+ onClick={onClickAddReport}
131
+ styleType="high-visibility"
132
+ title="New Report"
133
+ >
134
+ {ReportsConfigWidget.localization.getLocalizedString(
135
+ "ReportsConfigWidget:New"
136
+ )}
137
+ </Button>
140
138
  )}
141
- onClick={updateDatasets}
142
- disabled={selectedReportIds.length === 0}
143
- >
144
- <SvgPlay />
145
- </IconButton>
139
+ <IconButton
140
+ title={ReportsConfigWidget.localization.getLocalizedString(
141
+ "ReportsConfigWidget:UpdateDatasets"
142
+ )}
143
+ onClick={updateDatasets}
144
+ disabled={selectedReportIds.length === 0}
145
+ >
146
+ <SvgPlay />
147
+ </IconButton>
148
+ </div>
146
149
  <div
147
150
  className="rcw-search-bar-container"
148
151
  data-testid="rcw-search-bar"
@@ -202,7 +205,7 @@ export const Reports = ({
202
205
  ))}
203
206
  </div>
204
207
  )}
205
- </Surface>
208
+ </div>
206
209
  <DeleteModal
207
210
  entityName={showDeleteModal?.displayName}
208
211
  onClose={() => setShowDeleteModal(undefined)}
@@ -2,7 +2,6 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/itwinui-css/scss/variables";
6
5
 
7
6
  .rcw-reports-container {
8
7
  position: absolute;
@@ -10,9 +9,8 @@
10
9
  left: 0;
11
10
  display: flex;
12
11
  flex-direction: column;
13
- padding: $iui-baseline $iui-m;
12
+ padding: var(--iui-size-s) var(--iui-size-m);
14
13
  box-sizing: border-box;
15
14
  height: 100%;
16
15
  overflow: auto;
17
- gap: $iui-baseline;
18
16
  }
@@ -2,7 +2,6 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/itwinui-css/scss/variables";
6
5
 
7
6
  @keyframes rcw-expand {
8
7
  0% {
@@ -44,6 +44,7 @@ export const SearchBar = ({
44
44
  <IconButton
45
45
  onClick={() => setSearchBarClosing(true)}
46
46
  styleType="borderless"
47
+ title={ReportsConfigWidget.localization.getLocalizedString("ReportsConfigWidget:ClearSearch")}
47
48
  >
48
49
  <SvgCloseSmall />
49
50
  </IconButton>
@@ -55,7 +56,11 @@ export const SearchBar = ({
55
56
  />
56
57
  </div>
57
58
  ) : (
58
- <IconButton styleType="borderless" data-testid="rcw-search-button" onClick={() => setSearchBarOpened(true)}>
59
+ <IconButton
60
+ styleType="borderless"
61
+ data-testid="rcw-search-button"
62
+ title={ReportsConfigWidget.localization.getLocalizedString("ReportsConfigWidget:SearchReport")}
63
+ onClick={() => setSearchBarOpened(true)}>
59
64
  <SvgSearch />
60
65
  </IconButton>
61
66
  );
@@ -2,15 +2,14 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/itwinui-css/scss/variables";
6
5
 
7
6
  .rcw-select-imodel {
8
7
  position: relative;
9
- margin-bottom: $iui-baseline * 2;
8
+ margin-bottom: calc(var(--iui-size-s) * 2);
10
9
 
11
10
  .rcw-combobox {
12
11
  display: flex;
13
- gap: $iui-s;
12
+ gap: var(--iui-size-xs);
14
13
  width: 100%;
15
14
  }
16
15
  }
@@ -2,20 +2,28 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/itwinui-css/scss/variables";
6
- @import "~@itwin/itwinui-css/scss/icon/index";
7
- @import "~@itwin/itwinui-css/scss/button/index";
8
5
 
9
6
  .rcw-widget-header-container {
10
7
  display: flex;
11
- margin-bottom: $iui-baseline;
12
- align-items: center;
8
+ margin-bottom: calc(var(--iui-size-s) * 2);
9
+
10
+ .rcw-chevron {
11
+ cursor: pointer;
12
+ align-self: center;
13
+ margin-right: var(--iui-size-xs);
14
+ }
15
+
16
+ .rcw-chevron-disabled {
17
+ fill: var(--iui-color-icon-muted);
18
+ cursor: not-allowed;
19
+ align-self: center;
20
+ margin-right: var(--iui-size-xs);
21
+ }
13
22
 
14
23
  .rcw-title {
15
24
  overflow: hidden;
16
25
  white-space: nowrap;
17
26
  text-overflow: ellipsis;
18
- margin-bottom: 3px;
19
27
  }
20
28
  }
21
29
 
@@ -29,11 +37,11 @@
29
37
  justify-content: center;
30
38
  align-items: center;
31
39
  flex-direction: column;
32
- gap: $iui-baseline;
40
+ gap: var(--iui-size-s);
33
41
  height: 100%;
34
42
  }
35
43
 
36
44
  .rcw-skeleton-block {
37
- height: $iui-baseline * 3;
45
+ height: calc(var(--iui-size-s) * 3);
38
46
  width: 100%;
39
47
  }