@itwin/grouping-mapping-widget 0.2.2 → 0.3.1

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 (81) hide show
  1. package/lib/cjs/widget/components/ActionPanel.d.ts +3 -2
  2. package/lib/cjs/widget/components/ActionPanel.js +6 -4
  3. package/lib/cjs/widget/components/ActionPanel.js.map +1 -1
  4. package/lib/cjs/widget/components/CalculatedPropertyAction.js +2 -2
  5. package/lib/cjs/widget/components/CalculatedPropertyAction.js.map +1 -1
  6. package/lib/cjs/widget/components/CalculatedPropertyAction.scss +5 -5
  7. package/lib/cjs/widget/components/CustomCalculationAction.js +1 -1
  8. package/lib/cjs/widget/components/CustomCalculationAction.js.map +1 -1
  9. package/lib/cjs/widget/components/DeleteModal.js +4 -2
  10. package/lib/cjs/widget/components/DeleteModal.js.map +1 -1
  11. package/lib/cjs/widget/components/DeleteModal.scss +6 -0
  12. package/lib/cjs/widget/components/GroupAction.js +63 -12
  13. package/lib/cjs/widget/components/GroupAction.js.map +1 -1
  14. package/lib/cjs/widget/components/GroupAction.scss +23 -0
  15. package/lib/cjs/widget/components/GroupPropertyAction.js +51 -20
  16. package/lib/cjs/widget/components/GroupPropertyAction.js.map +1 -1
  17. package/lib/cjs/widget/components/GroupQueryBuilderContext.d.ts +2 -0
  18. package/lib/cjs/widget/components/GroupQueryBuilderContext.js +2 -0
  19. package/lib/cjs/widget/components/GroupQueryBuilderContext.js.map +1 -1
  20. package/lib/cjs/widget/components/Grouping.js +4 -4
  21. package/lib/cjs/widget/components/Grouping.js.map +1 -1
  22. package/lib/cjs/widget/components/MappingAction.js +1 -1
  23. package/lib/cjs/widget/components/MappingAction.js.map +1 -1
  24. package/lib/cjs/widget/components/QueryBuilder.d.ts +1 -1
  25. package/lib/cjs/widget/components/QueryBuilder.js +10 -4
  26. package/lib/cjs/widget/components/QueryBuilder.js.map +1 -1
  27. package/lib/cjs/widget/components/property-grid/PrimitivePropertyRenderer.js +7 -3
  28. package/lib/cjs/widget/components/property-grid/PrimitivePropertyRenderer.js.map +1 -1
  29. package/lib/cjs/widget/components/property-grid/PropertyGrid.scss +3 -3
  30. package/lib/cjs/widget/components/property-grid/PropertyRender.d.ts +1 -1
  31. package/lib/cjs/widget/components/property-grid/PropertyRender.js +5 -8
  32. package/lib/cjs/widget/components/property-grid/PropertyRender.js.map +1 -1
  33. package/lib/cjs/widget/components/property-grid/PropertyView.d.ts +2 -0
  34. package/lib/cjs/widget/components/property-grid/PropertyView.js +17 -11
  35. package/lib/cjs/widget/components/property-grid/PropertyView.js.map +1 -1
  36. package/lib/cjs/widget/components/property-grid/PropertyView.scss +19 -4
  37. package/lib/cjs/widget/components/utils.d.ts +1 -0
  38. package/lib/cjs/widget/components/utils.js +6 -1
  39. package/lib/cjs/widget/components/utils.js.map +1 -1
  40. package/lib/cjs/widget/components/utils.scss +5 -0
  41. package/lib/esm/widget/components/ActionPanel.d.ts +3 -2
  42. package/lib/esm/widget/components/ActionPanel.js +7 -5
  43. package/lib/esm/widget/components/ActionPanel.js.map +1 -1
  44. package/lib/esm/widget/components/CalculatedPropertyAction.js +2 -2
  45. package/lib/esm/widget/components/CalculatedPropertyAction.js.map +1 -1
  46. package/lib/esm/widget/components/CalculatedPropertyAction.scss +5 -5
  47. package/lib/esm/widget/components/CustomCalculationAction.js +1 -1
  48. package/lib/esm/widget/components/CustomCalculationAction.js.map +1 -1
  49. package/lib/esm/widget/components/DeleteModal.js +6 -4
  50. package/lib/esm/widget/components/DeleteModal.js.map +1 -1
  51. package/lib/esm/widget/components/DeleteModal.scss +6 -0
  52. package/lib/esm/widget/components/GroupAction.js +65 -14
  53. package/lib/esm/widget/components/GroupAction.js.map +1 -1
  54. package/lib/esm/widget/components/GroupAction.scss +23 -0
  55. package/lib/esm/widget/components/GroupPropertyAction.js +51 -20
  56. package/lib/esm/widget/components/GroupPropertyAction.js.map +1 -1
  57. package/lib/esm/widget/components/GroupQueryBuilderContext.d.ts +2 -0
  58. package/lib/esm/widget/components/GroupQueryBuilderContext.js +2 -0
  59. package/lib/esm/widget/components/GroupQueryBuilderContext.js.map +1 -1
  60. package/lib/esm/widget/components/Grouping.js +4 -4
  61. package/lib/esm/widget/components/Grouping.js.map +1 -1
  62. package/lib/esm/widget/components/MappingAction.js +1 -1
  63. package/lib/esm/widget/components/MappingAction.js.map +1 -1
  64. package/lib/esm/widget/components/QueryBuilder.d.ts +1 -1
  65. package/lib/esm/widget/components/QueryBuilder.js +10 -4
  66. package/lib/esm/widget/components/QueryBuilder.js.map +1 -1
  67. package/lib/esm/widget/components/property-grid/PrimitivePropertyRenderer.js +7 -3
  68. package/lib/esm/widget/components/property-grid/PrimitivePropertyRenderer.js.map +1 -1
  69. package/lib/esm/widget/components/property-grid/PropertyGrid.scss +3 -3
  70. package/lib/esm/widget/components/property-grid/PropertyRender.d.ts +1 -1
  71. package/lib/esm/widget/components/property-grid/PropertyRender.js +5 -8
  72. package/lib/esm/widget/components/property-grid/PropertyRender.js.map +1 -1
  73. package/lib/esm/widget/components/property-grid/PropertyView.d.ts +2 -0
  74. package/lib/esm/widget/components/property-grid/PropertyView.js +17 -11
  75. package/lib/esm/widget/components/property-grid/PropertyView.js.map +1 -1
  76. package/lib/esm/widget/components/property-grid/PropertyView.scss +19 -4
  77. package/lib/esm/widget/components/utils.d.ts +1 -0
  78. package/lib/esm/widget/components/utils.js +5 -1
  79. package/lib/esm/widget/components/utils.js.map +1 -1
  80. package/lib/esm/widget/components/utils.scss +5 -0
  81. package/package.json +6 -4
@@ -34,3 +34,8 @@
34
34
  text-overflow: ellipsis;
35
35
  }
36
36
  }
37
+
38
+ .gm-loading-spinner {
39
+ display: flex;
40
+ align-items: center;
41
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/grouping-mapping-widget",
3
- "version": "0.2.2",
3
+ "version": "0.3.1",
4
4
  "description": "An iTwin.js 3D Viewer Widget that interfaces with the iTwin Reporting Platform.",
5
5
  "keywords": [
6
6
  "Bentley",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@itwin/imodel-browser-react": "^0.12.1",
40
40
  "@itwin/itwinui-icons-react": "^1.7.0",
41
- "@itwin/itwinui-react": "^1.29.2",
41
+ "@itwin/itwinui-react": "^1.33.0",
42
42
  "classnames": "^2.3.1",
43
43
  "cross-fetch": "^3.1.4",
44
44
  "immer": "^9.0.7",
@@ -60,7 +60,7 @@
60
60
  "@itwin/core-quantity": "^3.0.0",
61
61
  "@itwin/core-react": "^3.0.0",
62
62
  "@itwin/eslint-plugin": "^3.0.0",
63
- "@itwin/itwinui-css": "^0.44.1",
63
+ "@itwin/imodel-components-react": "^3.0.0",
64
64
  "@itwin/presentation-common": "^3.0.0",
65
65
  "@itwin/presentation-components": "^3.0.0",
66
66
  "@itwin/presentation-frontend": "^3.0.0",
@@ -89,6 +89,7 @@
89
89
  "@itwin/appui-abstract": "^3.0.0",
90
90
  "@itwin/appui-react": "^3.0.0",
91
91
  "@itwin/components-react": "^3.0.0",
92
+ "@itwin/core-frontend": "^3.0.0",
92
93
  "@itwin/core-react": "^3.0.0",
93
94
  "@itwin/presentation-components": "^3.0.0",
94
95
  "@itwin/presentation-frontend": "^3.0.0",
@@ -112,5 +113,6 @@
112
113
  "pseudolocalize": "betools pseudolocalize --englishDir ./public/locales/en --out ./public/locales/en-PSEUDO",
113
114
  "rebuild": "npm run clean && npm run build",
114
115
  "test": ""
115
- }
116
+ },
117
+ "readme": "# @itwin/grouping-mapping-widget\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved.\r\nThe Grouping Mapping 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/).\r\nThe grouping-mapping-widget package provides a UiProvider class - `GroupingMappingProvider` - which can be passed into the `uiProviders` prop of the iTwin Viewer's `<Viewer />` component.\r\n\r\n## Getting Started\r\n\r\nThis is not a standalone UI and requires a parent iTwin Viewer application to work as intended.\r\nA guide on how to create a basic iTwin Viewer application can be found here: <https://www.itwinjs.org/learning/tutorials/develop-web-viewer/>.\r\nThis 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>.\r\n\r\n## Permissions and Scopes\r\n\r\nThe SPA client used by your iTwin viewer must have these additional scopes:\r\n\r\n- `insights:read`\r\n- `insights:modify`\r\n- `projects:read`\r\n\r\nIn 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/).\r\n\r\n## Sample usage\r\n\r\n```tsx\r\nimport { GroupingMappingProvider } from \"@itwin/grouping-mapping-widget\";\r\n<Viewer\r\n ...\r\n uiProviders={[new GroupingMappingProvider()]}\r\n/>\r\n```\r\n"
116
118
  }